|
|
(self.webpackChunk=self.webpackChunk||[]).push([[6913],{89489:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},59477:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},40001:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},65363:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},26227:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},49198:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},41464:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},73331:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},15277:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},52671:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},8657:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},56082:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},33853:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},15075:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},43531:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},76618:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},61485:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},38819:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},47472:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(bn,an){"use strict";an.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},38476:function(){"use strict"},74413:function(){"use strict";function bn(fe,z,ee,ae){ee===void 0&&(ee=0),ae===void 0&&(ae=1/0),this._name=fe,this._defaultValue=z,this._minimum=ee,this._maximum=ae}Object.defineProperty(bn.prototype,"name",{get:function(){return this._name},set:function(fe){if(typeof fe!="string"||fe==="")throw new Error("Shape name must be a valid string.");this._name=fe}}),Object.defineProperty(bn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("The default value must be a real number, not: "+fe);this._defaultValue=fe}}),Object.defineProperty(bn.prototype,"minimum",{get:function(){return this._minimum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Minimum must be a real number, not: "+fe);this._minimum=fe}}),Object.defineProperty(bn.prototype,"maximum",{get:function(){return this._maximum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Maximum must be a real number, not: "+fe);this._maximum=fe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(fe,z){var ee=go.Shape._FigureParameters[fe];return ee?ee[z]:null},go.Shape.setFigureParameter=function(fe,z,ee){if(!(ee instanceof bn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValue<ee.minimum||ee.defaultValue>ee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var ae=go.Shape._FigureParameters[fe];ae||(ae=[],go.Shape._FigureParameters[fe]=ae),ae[z]=ee};var an=[];function Ge(fe,z){var ee=an.pop();return ee===void 0?new go.Point(fe,z):(ee.x=fe,ee.y=z,ee)}function rt(){var fe=an.pop();return fe===void 0?new go.Point:fe}function vt(fe){an.push(fe)}function ie(fe,z,ee,ae,re,le,ue,pe,Te){Te||(Te=new go.Point);var Ce=fe-ee,Fe=re-ue,Ae=NaN,je=NaN;if(Ce===0)if(Fe===0)fe===ee&&(Ae=fe,je=z);else{var Ne=(le-pe)/Fe,Be=le-Ne*re;Ae=fe,je=Ne*Ae+Be}else if(Fe===0){var ze=(z-ae)/Ce,Qe=z-ze*fe;Ae=re,je=ze*Ae+Qe}else{var ze=(z-ae)/Ce,Ne=(le-pe)/Fe,Qe=z-ze*fe,Be=le-Ne*re;Ae=(Be-Qe)/(ze-Ne),je=ze*Ae+Qe}return Te.x=Ae,Te.y=je,Te}function _e(fe,z,ee,ae,re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne){var Be=1-Te,ze=Te,Qe=fe*Be+ee*ze,$e=z*Be+ae*ze,Ye=ee*Be+re*ze,at=ae*Be+le*ze,ut=re*Be+ue*ze,ht=le*Be+pe*ze,Ct=Qe*Be+Ye*ze,et=$e*Be+at*ze,it=Ye*Be+ut*ze,St=at*Be+ht*ze,bt=Ct*Be+it*ze,Pt=et*Be+St*ze;Ce.x=Qe,Ce.y=$e,Fe.x=Ct,Fe.y=et,Ae.x=bt,Ae.y=Pt,je.x=it,je.y=St,Ne.x=ut,Ne.y=ht}var Ie=new go.Spot(.156,.156),ge=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new bn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=5),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*ce,le=new go.Geometry().add(new go.PathFigure(ae,0,!0).add(new go.PathSegment(go.PathSegment.Line,z-ae,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)).add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)).add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,ee-re,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,ae,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,re,ee,0,ee-re)).add(new go.PathSegment(go.PathSegment.Line,0,ae)).add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()));return re>1&&(le.spot1=new go.Spot(0,0,re,re),le.spot2=new go.Spot(1,1,-re,-re)),le}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=ee/2,ae.endX=z,ae.endY=ee/2,ae}),go.Shape.defineFigureGenerator("LineV",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z/2,ae.startY=0,ae.endX=z/2,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.25*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.75*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(fe,z,ee){var ae=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ae*z,(1-ae)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(fe,z,ee){var ae=z/2,re=new go.Geometry().add(new go.PathFigure(z,z/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ae,ae,ae,ae).close()));return re.spot1=Ie,re.spot2=ge,re.defaultStretch=go.GraphObject.Uniform,re}),go.Shape.defineFigureGenerator("Line1",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=0,ae.endX=z,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Line2",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z,ae.startY=0,ae.endX=0,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Curve1",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,ce*z,0,z,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,0,ce*ee,(1-ce)*z,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,ce*ee,ce*z,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-ce)*z,0,0,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new bn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=.1:ae<-1?ae=-1:ae>1&&(ae=1);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new bn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=10:ae<-z?ae=-z:ae>z&&(ae=z);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.setFigureParameter("Trapezoid1",0,new bn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=.2:ae<.5?ae=-.5:ae>.5&&(ae=.5);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new bn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=20:ae<-z?ae=-z/2:ae>z&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.setFigureParameter("ManualOperation",0,new bn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=10:ae<-z?ae=-z/2:ae>z&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())):le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}});var Pe=[];function Ee(){var fe=Pe.pop();return fe===void 0?[]:fe}function ye(fe){fe.length=0,Pe.push(fe)}function Me(fe){for(var z=Ee(),ee=.5,ae=.5,re=Math.PI*1.5,le=0,ue=0;ue<fe;ue++)le=2*Math.PI/fe*ue+re,z[ue]=new go.Point(ae+ee*Math.cos(le),ae+ee*Math.sin(le));return z.push(z[0]),z}function ve(fe){var z=xe(fe),ee=Ee();ee[0]=z[0];for(var ae=1,re=1;ae<z.length;ae+=2,re+=3)ee[re]=z[ae],ee[re+1]=z[ae],ee[re+2]=z[ae+1];return ye(z),ee}function xe(fe){for(var z=Me(fe),ee=Ee(),ae=Math.floor(z.length/2),re=z.length-1,le=fe%2===0?2:1,ue=0;ue<re;ue++){var pe=z[ue],Te=z[ue+1],Ce=z[(ae+ue-1)%re],Fe=z[(ae+ue+le)%re];ee[ue*2]=pe,ee[ue*2+1]=ie(pe.x,pe.y,Ce.x,Ce.y,Te.x,Te.y,Fe.x,Fe.y,new go.Point)}return ee[ee.length]=ee[0],ye(z),ee}go.Shape.defineFigureGenerator("Pentagon",function(fe,z,ee){var ae=Me(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<5;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.2,.22),re.spot2=new go.Spot(.8,.9),re}),go.Shape.defineFigureGenerator("Hexagon",function(fe,z,ee){var ae=Me(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<6;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.07,.25),re.spot2=new go.Spot(.93,.75),re}),go.Shape.defineFigureGenerator("Heptagon",function(fe,z,ee){var ae=Me(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<7;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.2,.15),re.spot2=new go.Spot(.8,.85),re}),go.Shape.defineFigureGenerator("Octagon",function(fe,z,ee){var ae=Me(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<8;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.15,.15),re.spot2=new go.Spot(.85,.85),re}),go.Shape.defineFigureGenerator("Nonagon",function(fe,z,ee){var ae=Me(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<9;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.17,.13),re.spot2=new go.Spot(.82,.82),re}),go.Shape.defineFigureGenerator("Decagon",function(fe,z,ee){var ae=Me(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<10;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.16,.16),re.spot2=new go.Spot(.84,.84),re}),go.Shape.defineFigureGenerator("Dodecagon",function(fe,z,ee){var ae=Me(12),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<12;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.16,.16),re.spot2=new go.Spot(.84,.84),re}),go.Shape.defineFigureGenerator("FivePointedStar",function(fe,z,ee){var ae=xe(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<10;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.266,.333),re.spot2=new go.Spot(.733,.733),re}),go.Shape.defineFigureGenerator("SixPointedStar",function(fe,z,ee){var ae=xe(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<12;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.17,.25),re.spot2=new go.Spot(.83,.75),re}),go.Shape.defineFigureGenerator("SevenPointedStar",function(fe,z,ee){var ae=xe(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<14;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.666),re}),go.Shape.defineFigureGenerator("EightPointedStar",function(fe,z,ee){var ae=xe(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<16;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.25,.25),re.spot2=new go.Spot(.75,.75),re}),go.Shape.defineFigureGenerator("NinePointedStar",function(fe,z,ee){var ae=xe(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<18;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.666),re}),go.Shape.defineFigureGenerator("TenPointedStar",function(fe,z,ee){var ae=xe(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<20;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.281,.261),re.spot2=new go.Spot(.723,.748),re}),go.Shape.defineFigureGenerator("FivePointedBurst",function(fe,z,ee){var ae=ve(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("SixPointedBurst",function(fe,z,ee){var ae=ve(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.17,.222),re.spot2=new go.Spot(.833,.777),re}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(fe,z,ee){var ae=ve(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("EightPointedBurst",function(fe,z,ee){var ae=ve(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("NinePointedBurst",function(fe,z,ee){var ae=ve(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("TenPointedBurst",function(fe,z,ee){var ae=ve(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.setFigureParameter("FramedRectangle",0,new bn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new bn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(fe,z,ee){var ae=fe?fe.parameter1:NaN,re=fe?fe.parameter2:NaN;isNaN(ae)&&(ae=8),isNaN(re)&&(re=8);var le=new go.Geometry,ue=new go.PathFigure(0,0,!0);return le.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae<z/2&&re<ee/2&&(ue.add(new go.PathSegment(go.PathSegment.Move,ae,re)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,re).close())),le.setSpots(0,0,1,1,ae,re,-ae,-re),le}),go.Shape.setFigureParameter("Ring",0,new bn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=8);var re=z/2,le=new go.Geometry,ue=new go.PathFigure(z,z/2,!0);le.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,0,360,re,re,re,re).close());var pe=Math.max(re-ae,0);return pe>0&&(ue.add(new go.PathSegment(go.PathSegment.Move,z/2+pe,z/2)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,re,re,pe,pe).close())),le.spot1=Ie,le.spot2=ge,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Cloud",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.08034461*z,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*z,.05349299*ee,-.09239631*z,.07836421*ee,.1406031*z,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*z,.074219*ee,.2450511*z,-.00697547*ee,.3776197*z,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*z,.07004196*ee,.4539471*z,0,.6066018*z,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*z,.08370865*ee,.6914277*z,-.01904177*ee,.8921095*z,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*z,.3194596*ee,1.036446*z,.04105738*ee,1.020377*z,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*z,.562044*ee,1.04448*z,.360238*ee,.992256*z,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*z,.8217117*ee,1.032337*z,.5771781*ee,1.018411*z,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*z,.9156953*ee,1.028411*z,.9571472*ee,.8556702*z,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*z,.9310455*ee,.7431877*z,1.009325*ee,.5624123*z,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*z,.9344623*ee,.4820677*z,1.031761*ee,.3030112*z,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.870098*ee,.2329994*z,1.01518*ee,.03213784*z,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*z,.6545475*ee,-.02812061*z,.9032597*ee,-.01205169*z,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*z,.4265613*ee,-.01812061*z,.6089503*ee,-.00606892*z,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.1944299*ee,-.01606892*z,.3892545*ee,-.01205169*z,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(fe,z,ee){var ae=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ae*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close())).setSpots(ae/2,ae/2,1-ae/2,1-ae/2)}),go.Shape.setFigureParameter("Pie",0,new bn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new bn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(fe,z,ee){var ae=fe?fe.parameter1:NaN,re=fe?fe.parameter2:NaN;isNaN(ae)&&(ae=0),isNaN(re)&&(re=315);var le=ae%360;le<0&&(le+=360);var ue=re%360,pe=Math.min(z,ee)/2;return new go.Geometry().add(new go.PathFigure(pe,pe).add(new go.PathSegment(go.PathSegment.Arc,le,ue,pe,pe,pe,pe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(fe,z,ee){var ae=ce/Math.SQRT2*.5,re=Math.SQRT2/2,le=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,re*z,le*ee,z,(1-ae)*ee,(re+ae)*z,(le+ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new bn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThinCross",0,new bn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThickX",0,new bn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;if((isNaN(ae)||ae<0)&&(ae=30),z===0||ee===0){var re=new go.Geometry(go.Geometry.Rectangle);return re.startX=0,re.startY=0,re.endX=z,re.endY=ee,re}else{var le=z/2,ue=ee/2,pe=Math.atan2(ee,z),Te=ae-Math.min(Math.cos(pe)*ae/2,le),Ce=ae-Math.min(Math.sin(pe)*ae/2,ue),re=new go.Geometry,Fe=new go.PathFigure(Te,0,!0);return re.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,z-Te,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,ee-Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,z-Te,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,Te,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,ee-Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),re}}),go.Shape.setFigureParameter("ThinX",0,new bn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=new go.Geometry,le=new go.PathFigure(.1*z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),re}),go.Shape.setFigureParameter("SquareIBeam",0,new bn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close()),re}),go.Shape.setFigureParameter("RoundedIBeam",0,new bn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.5);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,Math.abs(1-ae)*z,.25*ee,Math.abs(1-ae)*z,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re}),go.Shape.defineFigureGenerator("HalfEllipse",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,ce*z,0,z,(.5-ce/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,(.5+ce/2)*ee,ce*z,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,0,z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*z,.75*ee,.5*z,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*z,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,0,0,.45*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.55*z,0,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.5*ee,.9*z,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*z,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.6*z,.2*ee,z,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.7*ee,z,.8*ee,.6*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,.5*z,.75*ee,.55*z,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.7*ee,.45*z,.95*ee,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*z,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*z,.01*ee,0,.25*ee,.4*z,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.4*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.15*z,ee,.5*z,.75*ee,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.6*ee,.55*z,.95*ee,.5*z,.75*ee));var le=.2,ue=.3,pe=0,Te=le*ce;return re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Te+pe)*ee,(.5-Te+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Te+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Te+pe)*ee,(.5+Te+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-Te+ue)*z,(.5-le+pe)*ee,(.5-le+ue+.05)*z,(.5-Te+pe-.02)*ee)),le=.2,ue=0,pe=-.3,Te=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Te+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Te+pe)*ee,(.5+Te+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Te+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Te+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Te+pe)*ee,(.5-Te+ue)*z,(.5+le+pe)*ee)),le=.2,ue=-.3,pe=0,Te=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue-.05)*z,(.5-Te+pe-.02)*ee,(.5+Te+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Te+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Te+pe)*ee,(.5-Te+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+Te+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Te+pe)*ee).close()),ae.setSpots(.06,.33,.93,.68),ae}),go.Shape.defineFigureGenerator("YinYang",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*.5,z*.5,z*.5,z*.5)),re.add(new go.PathSegment(go.PathSegment.Arc,90,-180,z*.5,z*.75,z*.25,z*.25)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,z*.5,z*.25,z*.25,z*.25));var le=.1,ue=.5,pe=.25;return re.add(new go.PathSegment(go.PathSegment.Move,(ue+le)*z,pe*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,0,-360,z*ue,ee*pe,le*z,le*z).close()),re=new go.PathFigure(z*.5,0,!1),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*.5,z*.5,z*.5,z*.5)),pe=.75,re=new go.PathFigure((ue+le)*z,pe*ee,!0),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,0,360,z*ue,ee*pe,le*z,le*z).close()),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Peace",function(fe,z,ee){var ae=.8535533905932737,re=.5*z,le=.5*ee;return new go.Geometry().add(new go.PathFigure(re,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,re,le,re,le)).add(new go.PathSegment(go.PathSegment.Line,re,ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ae*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=.5,pe=.5,Te=new go.PathFigure(ue*z,(pe-le)*ee);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),le=.4,re=ce*.4;var Ce=rt(),Fe=rt(),Ae=rt(),je=rt();_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.42,Ce,Fe,Ae,je,je);var Ne=rt(),Be=rt(),ze=rt();_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.58,je,je,ze,Ne,Be);var Qe=rt(),$e=rt(),Ye=rt();_e(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.42,Qe,$e,Ye,je,je);var at=rt(),ut=rt(),ht=rt();return _e(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.58,je,je,ht,at,ut),Te.add(new go.PathSegment(go.PathSegment.Move,ht.x*z,ht.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,at.x*z,at.y*ee,ut.x*z,ut.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ae.x*z,Ae.y*ee,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,ht.x*z,ht.y*ee).close()),Te.add(new go.PathSegment(go.PathSegment.Move,Ye.x*z,Ye.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,ze.x*z,ze.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ne.x*z,Ne.y*ee,Be.x*z,Be.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ye.x*z,Ye.y*ee,Qe.x*z,Qe.y*ee,$e.x*z,$e.y*ee).close()),vt(Ce),vt(Fe),vt(Ae),vt(je),vt(Ne),vt(Be),vt(ze),vt(Qe),vt($e),vt(Ye),vt(at),vt(ut),vt(ht),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Fragile",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*z,0)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*z,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.5*ee,z,.25*ee,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new bn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30),ae>z&&(ae=z);var re=(z-ae)/2,le=re+ae;return new go.Geometry().add(new go.PathFigure(le,.5*ee).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,re,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*z,0)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(fe,z,ee){var ae=new go.Geometry,re=ce*.4,le=.4,ue=.5,pe=.5,Te=rt(),Ce=rt(),Fe=rt(),Ae=rt(),je=new go.PathFigure((ue-le)*z,pe*ee,!1);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.44,Fe,Ae,Ce,Te,Te),je.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee));var Ne=Ge(Ce.x,Ce.y);_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.56,Te,Te,Ce,Fe,Ae);var Be=Ge(Ce.x,Ce.y);je.add(new go.PathSegment(go.PathSegment.Line,(Ne.x*.1+.95*.9)*z,Ne.y*.1*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.85*z,Ne.y*.1*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),je.add(new go.PathSegment(go.PathSegment.Line,z,0)),je.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),je.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,.15*ee)),je.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,(Be.y*.1+.05*.9)*ee)),je.add(new go.PathSegment(go.PathSegment.Line,Be.x*z,Be.y*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),le=.35,re=ce*.35;var ze=new go.PathFigure(ue*z,(pe-le)*ee,!1);ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee));var Qe=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Qe),vt(Te),vt(Ce),vt(Fe),vt(Ae),vt(Ne),vt(Be),ae.spot1=new go.Spot(.202,.257),ae.spot2=new go.Spot(.792,.739),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("GenderFemale",function(fe,z,ee){var ae=new go.Geometry,re=.375,le=0,ue=-.125,pe=re*ce,Te=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),re=.325,le=0,ue=-.125,pe=re*ce;var Te=new go.PathFigure((1-.5+re+le)*z,(.5+ue)*ee,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee));var Te=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);return ae.add(Te),ae.spot1=new go.Spot(.232,.136),ae.spot2=new go.Spot(.682,.611),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicImplies",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,ae*z,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(fe,z,ee){var ae=new go.Geometry().add(new go.PathFigure(.5*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*z,.5*ee,.5*z,.5*ee)));return ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicTruth",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(fe,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(fe,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new bn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new bn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=.3);var le=(1-ae)*z,ue=(.5-re/2)*ee,pe=(.5+re/2)*ee,Te=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);Te.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Te.spot1=new go.Spot(0,ue/ee);var Fe=ie(0,pe/ee,1,pe/ee,le/z,1,1,.5,rt());return Te.spot2=new go.Spot(Fe.x,Fe.y),vt(Fe),Te}),go.Shape.setFigureParameter("Arrow2",0,new bn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new bn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=30),ae>z&&(ae=z);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=30),re=Math.min(re,ee/2);var le=z-ae,ue=(ee-re)/2,pe=ue+re,Te=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);Te.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Te.spot1=new go.Spot(0,ue/ee);var Fe=ie(0,pe/ee,1,pe/ee,le/z,1,1,.5,rt());return Te.spot2=new go.Spot(Fe.x,Fe.y),vt(Fe),Te}),go.Shape.defineFigureGenerator("Chevron",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("DoubleArrow",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.214*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.786*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),ae}),go.Shape.setFigureParameter("DoubleEndArrow",0,new bn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close());var Te=ie(0,.5,.3,0,0,re/ee,.1,re/ee,rt());return ue.spot1=new go.Spot(Te.x,Te.y),Te=ie(.7,1,1,.5,0,le/ee,1,le/ee,Te),ue.spot2=new go.Spot(Te.x,Te.y),vt(Te),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new bn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new bn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=40);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,Te=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Te=ee):(le=0,ue=ee,pe=0,Te=ee));var Ce=new go.Geometry,Fe=new go.PathFigure(z,.5*ee,!0);Ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var Ae=ie(0,.5,.3,pe/ee,0,le/ee,1,le/ee,rt());return Ce.spot1=new go.Spot(Ae.x,Ae.y),Ae=ie(.7,Te/ee,1,.5,0,ue/ee,1,ue/ee,Ae),Ce.spot2=new go.Spot(Ae.x,Ae.y),vt(Ae),Ce}),go.Shape.setFigureParameter("IBeamArrow",0,new bn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(0,re/ee);var Te=ie(.7,1,1,.5,0,le/ee,1,le/ee,rt());return ue.spot2=new go.Spot(Te.x,Te.y),vt(Te),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new bn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new bn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=40);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,Te=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Te=ee):(le=0,ue=ee,pe=0,Te=ee));var Ce=new go.Geometry,Fe=new go.PathFigure(z,.5*ee,!0);Ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),Ce.spot1=new go.Spot(0,le/ee);var Ae=ie(.7,Te/ee,1,.5,0,ue/ee,1,ue/ee,rt());return Ce.spot2=new go.Spot(Ae.x,Ae.y),vt(Ae),Ce}),go.Shape.setFigureParameter("Pointer",0,new bn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.1);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),re.spot1=new go.Spot(ae,.35);var ue=ie(.2,.65,1,.65,0,1,1,.5,rt());return re.spot2=new go.Spot(ue.x,ue.y),vt(ue),re}),go.Shape.setFigureParameter("RoundedPointer",0,new bn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re.spot1=new go.Spot(ae,.35);var ue=ie(0,.65,1,.65,0,1,1,.5,rt());return re.spot2=new go.Spot(ue.x,ue.y),vt(ue),re}),go.Shape.setFigureParameter("SplitEndArrow",0,new bn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.4);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,.3);var Te=ie(.7,1,1,.5,0,le/ee,1,le/ee,rt());return ue.spot2=new go.Spot(Te.x,Te.y),vt(Te),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new bn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=50);var re=(ee-ae)/2,le=re+ae;ae>ee&&(re=0,le=ee);var ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,re/ee);var Te=ie(.7,1,1,.5,0,le/ee,1,le/ee,rt());return ue.spot2=new go.Spot(Te.x,Te.y),vt(Te),ue}),go.Shape.setFigureParameter("SquareArrow",0,new bn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.7);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,0).close()),re.spot1=go.Spot.TopLeft,re.spot2=new go.Spot(ae,1),re}),go.Shape.defineFigureGenerator("Cone1",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(0,.9*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee).close()),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.97),ae}),go.Shape.defineFigureGenerator("Cone2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.9*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,ee,.85/.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var le=new go.PathFigure(0,.9*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,.8*ee,.85/.9*z,.8*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.82),ae}),go.Shape.defineFigureGenerator("Cube1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.5,.85),ae}),go.Shape.defineFigureGenerator("Cube2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.3*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0).close());var le=new go.PathFigure(0,.3*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.7,1),ae}),go.Shape.defineFigureGenerator("Cylinder1",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(0,ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,ce*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,1*z,ae,(.5+le)*z,0,1*z,ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,1*ee,1*z,ee-ce*ae,(.5+le)*z,1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,1*ee,0,ee-ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae));var pe=new go.PathFigure(z,ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,2*ae,1*z,2*ae-ce*ae,(.5+le)*z,2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ae,(.5-le)*z,2*ae,0,2*ae-ce*ae)),re.spot1=new go.Spot(0,0,0,2*ae),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(0,ee-ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,ce*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,(.5+le)*z,0,z,ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,ee-ce*ae,(.5+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,ee,0,ee-ce*ae));var pe=new go.PathFigure(0,ee-ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee-2*ae,0,ee-ae-ce*ae,(.5-le)*z,ee-2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ee-ae,(.5+le)*z,ee-2*ae,z,ee-ae-ce*ae)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,0,-2*ae),re}),go.Shape.defineFigureGenerator("Cylinder3",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-ce*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-ce*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ce*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,ce*ae,0));var pe=new go.PathFigure(ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,2*ae,.5*ee,ae+ce*ae,0,2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,ee,2*ae,(.5+le)*ee,ae+ce*ae,ee)),re.spot1=new go.Spot(0,0,2*ae,0),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder4",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(z-ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-ce*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-ce*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ce*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,ce*ae,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0));var pe=new go.PathFigure(z-ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-2*ae,.5*ee,z-ae-ce*ae,0,z-2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z-2*ae,(.5+le)*ee,z-ae-ce*ae,ee)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,-2*ae,0),re}),go.Shape.defineFigureGenerator("Prism1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.25*z,.25*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.408,.172),ae.spot2=new go.Spot(.833,.662),ae}),go.Shape.defineFigureGenerator("Prism2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("Pyramid1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Pyramid2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Actor",function(fe,z,ee){var ae=new go.Geometry,re=.2,le=.1,ue=ce*re,pe=ce*le,Te=.5,Ce=.1,Fe=new go.PathFigure(Te*z,(Ce+le)*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te-re)*z,Ce*ee,(Te-ue)*z,(Ce+le)*ee,(Te-re)*z,(Ce+pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-le)*ee,(Te-re)*z,(Ce-pe)*ee,(Te-ue)*z,(Ce-le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+re)*z,Ce*ee,(Te+ue)*z,(Ce-le)*ee,(Te+re)*z,(Ce-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+le)*ee,(Te+re)*z,(Ce+pe)*ee,(Te+ue)*z,(Ce+le)*ee));var Ae=.05,je=ce*Ae;Te=.05,Ce=.25;var Ne=new go.PathFigure(.5*z,.2*ee,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),Te=.95,Ce=.25,Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ae)*z,Ce*ee,(Te+je)*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),Ae=.025,je=ce*Ae,Te=.825,Ce=.35,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee,(Te+je)*z,(Ce-Ae)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ae)*z,Ce*ee,(Te-je)*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),Ae=.05,je=ce*Ae,Te=.5,Ce=.7,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee,(Te+je)*z,(Ce-Ae)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ae)*z,Ce*ee,(Te-je)*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),Ae=.025,je=ce*Ae,Te=.175,Ce=.35,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee,(Te+je)*z,(Ce-Ae)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ae)*z,Ce*ee,(Te-je)*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),Ae=.05,je=ce*Ae,Te=.05,Ce=.25,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee,(Te-je)*z,(Ce-Ae)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),ae.spot1=new go.Spot(.2,.2),ae.spot2=new go.Spot(.8,.65),ae}),go.Shape.setFigureParameter("Card",0,new bn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,0).close()),re.spot1=new go.Spot(0,ae),re.spot2=go.Spot.BottomRight,re}),go.Shape.defineFigureGenerator("Collate",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee));var le=new go.PathFigure(.5*z,.5*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,.25),ae}),go.Shape.defineFigureGenerator("CreateRequest",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("Database",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.4*ee,z,(.3+le)*ee,(.5+re)*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-re)*z,.4*ee,0,(.3+le)*ee)),ae.spot1=new go.Spot(0,.4),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("DataStorage",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.9*ee,.25*z,.1*ee).close()),ae.spot1=new go.Spot(.226,0),ae.spot2=new go.Spot(.81,1),ae}),go.Shape.defineFigureGenerator("DiskStorage",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("Display",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("DividedEvent",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)?re=.2:re<.15&&(re=.15);var le=ce*.2,ue=new go.PathFigure(0,.2*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,0,(.2-le)*ee,(.2-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.2*ee,(.8+le)*z,0,z,(.2-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,ee,z,(.8+le)*ee,(.8+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-le)*z,ee,0,(.8+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var pe=new go.PathFigure(0,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("DividedProcess",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;(isNaN(re)||re<.1)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("Document",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("ExternalOrganization",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;(isNaN(re)||re<.2)&&(re=.2);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("ExternalProcess",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(.1*z,.4*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.9*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.6*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.4*z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.9*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("File",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.75*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Interrupt",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee));var le=new go.PathFigure(z,.5*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee));var ue=new go.PathFigure(z,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("InternalStorage",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.1);var ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,le*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee)),ae}),go.Shape.defineFigureGenerator("Junction",function(fe,z,ee){var ae=new go.Geometry,re=1/Math.SQRT2,le=(1-1/Math.SQRT2)/2,ue=ce*.5,pe=.5,Te=new go.PathFigure(z,pe*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,ee,z,(pe+ue)*ee,(pe+ue)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-ue)*z,ee,0,(pe+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,0,0,(pe-ue)*ee,(pe-ue)*z,0)),Te.add(new go.PathSegment(go.PathSegment.Bezier,z,pe*ee,(pe+ue)*z,0,z,(pe-ue)*ee));var Ce=new go.PathFigure((le+re)*z,(le+re)*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le*z,le*ee)),Ce.add(new go.PathSegment(go.PathSegment.Move,le*z,(le+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,(le+re)*z,le*ee)),ae}),go.Shape.defineFigureGenerator("LinedDocument",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close());var le=new go.PathFigure(.1*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.75*ee)),ae.spot1=new go.Spot(.1,0),ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("LoopLimit",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MagneticTape",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(.5*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(le+.1)*z,.9*ee,z,(le+re)*ee,(le+re)*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.15,.15),ae.spot2=new go.Spot(.85,.8),ae}),go.Shape.defineFigureGenerator("ManualInput",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MessageFromUser",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.7);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,re*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("MicroformProcessing",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,re*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("MicroformRecording",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("MultiDocument",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.44*ee,.96*z,.47*ee,.93*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.54*ee,.86*z,.57*ee,.83*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*z,.4*ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0).close());var le=new go.PathFigure(.1*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.44*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.8,.77),ae}),go.Shape.defineFigureGenerator("MultiProcess",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.1*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close());var le=new go.PathFigure(.2*z,.1*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.1*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),ae.spot1=new go.Spot(0,.2),ae.spot2=new go.Spot(.8,1),ae}),go.Shape.defineFigureGenerator("OfflineStorage",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=1-re,ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close());var pe=new go.PathFigure(.5*re*z,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*re)*z,re*ee)),ae}),go.Shape.defineFigureGenerator("OffPageConnector",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("Or",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ae}),go.Shape.defineFigureGenerator("PaperTape",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.5*z,.6*ee,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=new go.Spot(0,.49),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Procedure",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure((1-re)*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,re*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae}),go.Shape.defineFigureGenerator("Process",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Sort",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(0,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.5),ae}),go.Shape.defineFigureGenerator("Start",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(re*z,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee));var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ae.spot1=new go.Spot(re,0),ae.spot2=new go.Spot(1-re,1),ae}),go.Shape.defineFigureGenerator("Terminator",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee)),ae.spot1=new go.Spot(.23,0),ae.spot2=new go.Spot(.77,1),ae}),go.Shape.defineFigureGenerator("TransmittalTape",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-re)*ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("AndGate",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(.5+re)*z,0,z,(.5-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.5+re)*ee,(.5+re)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.55,1),ae}),go.Shape.defineFigureGenerator("Buffer",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Clock",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,le*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee));var Te=new go.PathFigure(.8*z,.75*ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*z,.75*ee)),ae}),go.Shape.defineFigureGenerator("Ground",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.3*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),ae}),go.Shape.defineFigureGenerator("Inverter",function(fe,z,ee){var ae=new go.Geometry,re=ce*.1,le=.1,ue=.9,pe=.5,Te=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Te.add(new go.PathSegment(go.PathSegment.Line,0,0)),Te.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee));var Ce=new go.PathFigure((ue+le)*z,pe*ee,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.4,.75),ae}),go.Shape.defineFigureGenerator("NandGate",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.4,ue=ce*.1,pe=.1,Te=.9,Ce=.5,Fe=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+re)*z,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+re)*z,0,.8*z,(.5-le)*ee));var Ae=new go.PathFigure((Te+pe)*z,Ce*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+pe)*ee,(Te+pe)*z,(Ce+ue)*ee,(Te+ue)*z,(Ce+pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z,Ce*ee,(Te-ue)*z,(Ce+pe)*ee,(Te-pe)*z,(Ce+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-pe)*ee,(Te-pe)*z,(Ce-ue)*ee,(Te-ue)*z,(Ce-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z,Ce*ee,(Te+ue)*z,(Ce-pe)*ee,(Te+pe)*z,(Ce-ue)*ee)),ae.spot1=new go.Spot(0,.05),ae.spot2=new go.Spot(.55,.95),ae}),go.Shape.defineFigureGenerator("NorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=0,pe=.5,Te=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=ce*.1,ue=.9,pe=.5;var Ce=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.6,.75),ae}),go.Shape.defineFigureGenerator("OrGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=0,pe=.5,Te=new go.PathFigure(0,0,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le+le)*z,(pe-re)*ee,.8*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(pe+le)*ee,(ue+le+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee).close()),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("XnorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=.2,pe=.5,Te=new go.PathFigure(.1*z,0,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=ce*.1,ue=.9,pe=.5;var Fe=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.65,.75),ae}),go.Shape.defineFigureGenerator("XorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=.2,pe=.5,Te=new go.PathFigure(.1*z,0,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.2*z,0,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le)*z,(pe-re)*ee,.9*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.9*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee).close()),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.8,.75),ae}),go.Shape.defineFigureGenerator("Capacitor",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Resistor",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Inductor",function(fe,z,ee){var ae=new go.Geometry,re=ce*.1,le=.1,ue=.1,pe=.5,Te=new go.PathFigure((ue-re*.5)*z,ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.3,Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.5,Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.7,Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.9,Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re*.5)*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),ae}),go.Shape.defineFigureGenerator("ACvoltageSource",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=.5,pe=.5,Te=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Move,(ue-le+.1)*z,pe*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le-.1)*z,pe*ee,ue*z,(pe-le)*ee,ue*z,(pe+le)*ee)),ae}),go.Shape.defineFigureGenerator("DCvoltageSource",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Diode",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Wifi",function(fe,z,ee){var ae=new go.Geometry,re=z,le=ee;z=z*.38,ee=ee*.6;var ue=ce*.8,pe=.8,Te=0,Ce=.5,Fe=(re-z)/2,Ae=(le-ee)/2,je=new go.PathFigure(Te*z+Fe,(Ce+pe)*ee+Ae,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z+Fe,Ce*ee+Ae,(Te-ue)*z+Fe,(Ce+pe)*ee+Ae,(Te-pe)*z+Fe,(Ce+ue)*ee+Ae)),je.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe)*z+Fe,(Ce-ue)*ee+Ae,(Te-ue)*z+Fe,(Ce-pe)*ee+Ae)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe+ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce-ue)*ee+Ae)),je.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce+ue)*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae).close()),ue=ce*.4,pe=.4,Te=.2,Ce=.5;var Ne=new go.PathFigure(Te*z+Fe,(Ce+pe)*ee+Ae,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z+Fe,Ce*ee+Ae,(Te-ue)*z+Fe,(Ce+pe)*ee+Ae,(Te-pe)*z+Fe,(Ce+ue)*ee+Ae)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe)*z+Fe,(Ce-ue)*ee+Ae,(Te-ue)*z+Fe,(Ce-pe)*ee+Ae)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe+ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce-ue)*ee+Ae)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce+ue)*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae).close()),ue=ce*.2,pe=.2,Te=.5,Ce=.5;var Be=new go.PathFigure((Te-pe)*z+Fe,Ce*ee+Ae,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe)*z+Fe,(Ce-ue)*ee+Ae,(Te-ue)*z+Fe,(Ce-pe)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z+Fe,Ce*ee+Ae,(Te+ue)*z+Fe,(Ce-pe)*ee+Ae,(Te+pe)*z+Fe,(Ce-ue)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe)*z+Fe,(Ce+ue)*ee+Ae,(Te+ue)*z+Fe,(Ce+pe)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z+Fe,Ce*ee+Ae,(Te-ue)*z+Fe,(Ce+pe)*ee+Ae,(Te-pe)*z+Fe,(Ce+ue)*ee+Ae)),ue=ce*.4,pe=.4,Te=.8,Ce=.5;var ze=new go.PathFigure(Te*z+Fe,(Ce-pe)*ee+Ae,!0);ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z+Fe,Ce*ee+Ae,(Te+ue)*z+Fe,(Ce-pe)*ee+Ae,(Te+pe)*z+Fe,(Ce-ue)*ee+Ae)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe)*z+Fe,(Ce+ue)*ee+Ae,(Te+ue)*z+Fe,(Ce+pe)*ee+Ae)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe-ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce+ue)*ee+Ae)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce-ue)*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae).close()),ue=ce*.8,pe=.8,Te=1,Ce=.5;var Qe=new go.PathFigure(Te*z+Fe,(Ce-pe)*ee+Ae,!0);return ae.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z+Fe,Ce*ee+Ae,(Te+ue)*z+Fe,(Ce-pe)*ee+Ae,(Te+pe)*z+Fe,(Ce-ue)*ee+Ae)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe)*z+Fe,(Ce+ue)*ee+Ae,(Te+ue)*z+Fe,(Ce+pe)*ee+Ae)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe-ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce+ue)*ee+Ae)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce-ue)*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae).close()),ae}),go.Shape.defineFigureGenerator("Email",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Ethernet",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.35*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,0).close());var le=new go.PathFigure(.1*z,ee,!0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var ue=new go.PathFigure(.6*z,ee,!0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee).close());var pe=new go.PathFigure(0,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.75*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*z,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.25*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Power",function(fe,z,ee){var ae=new go.Geometry,re=ce*.4,le=.4,ue=.5,pe=.5,Te=rt(),Ce=rt(),Fe=rt(),Ae=rt();_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Te,Te,Ce,Fe,Ae);var je=Ge(Ce.x,Ce.y),Ne=new go.PathFigure(Ce.x*z,Ce.y*ee,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),_e(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Fe,Ae,Ce,Te,Te),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee)),re=ce*.3,le=.3,_e(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Fe,Ae,Ce,Te,Te),Ne.add(new go.PathSegment(go.PathSegment.Line,Ce.x*z,Ce.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Ae.x*z,Ae.y*ee,Fe.x*z,Fe.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Te,Te,Ce,Fe,Ae),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Ae.x*z,Ae.y*ee,Fe.x*z,Fe.y*ee).close());var Ne=new go.PathFigure(.45*z,0,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),vt(Te),vt(Ce),vt(Fe),vt(Ae),vt(je),ae.spot1=new go.Spot(.25,.45),ae.spot2=new go.Spot(.75,.8),ae}),go.Shape.defineFigureGenerator("Fallout",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee/2,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,180,360,z/2,ee/2,z/2,ee/2));function le(ue,pe,Te){ue.add(new go.PathSegment(go.PathSegment.Move,(.3+pe)*z,(.8+Te)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.5+pe)*z,(.5+Te)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.1+pe)*z,(.5+Te)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.3+pe)*z,(.8+Te)*ee).close())}return le(re,0,0),le(re,.4,0),le(re,.2,-.3),ae}),go.Shape.defineFigureGenerator("IrritationHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),ae.spot1=new go.Spot(.3,.3),ae.spot2=new go.Spot(.7,.7),ae}),go.Shape.defineFigureGenerator("ElectricalHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.37*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.11*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.04*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.49*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.37*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.63*z,.86*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.91*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,.78*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.44*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.56*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),ae}),go.Shape.defineFigureGenerator("FireHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.29*z,0,-.25*z,.63*ee,.45*z,.44*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.51*z,.42*ee,.48*z,.17*ee,.54*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.59*z,.18*ee,.59*z,.29*ee,.58*z,.28*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,.6*ee,.8*z,.34*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.88*z,.31*ee,.87*z,.48*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,1.17*z,.76*ee,.82*z,.8*ee).close()),ae.spot1=new go.Spot(.07,.445),ae.spot2=new go.Spot(.884,.958),ae}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=0,ue=0,pe=re*ce,Te=.4*Math.SQRT2/2+.5,Ce=.5-.5*Math.SQRT2/2,Fe=1,Ae=.5,je=.5,Ne=0,Be=new go.PathFigure(Te*z,(1-Ce)*ee,!1);return ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,Ae*ee,Fe*z,.7*ee,Fe*z,Ae*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(je+le)*z,(Ne+le)*ee,(.5+re+le)*z,(.5-pe+le)*ee,(.5+pe+le)*z,(.5-re+le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+le)*z,.9*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+le)*z,.8*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+le)*z,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.2+le)*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.2*z,.35*ee,.3*z,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.7*z,.65*ee,.8*z,.65*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var re=new go.PathFigure(0,.2*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.7*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,0,.6*z,.5*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,ee,.4*z,.5*ee,z,.5*ee).close());var le=new go.PathFigure(.45*z,.73*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.73*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.38*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.63*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.31*z,.27*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.56*z,.27*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(.335*z,(1-.555)*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.68*ee,(1-.12)*z,.46*ee,(1-.02)*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.335*z,(1-.555)*ee,.02*z,.54*ee,.12*z,.46*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.365*z,(1-.595)*ee));var ue=.5-.285,pe=.5,Te=ue,Ce=Math.PI/4,Fe=4*(1-Math.cos(Ce))/(3*Math.sin(Ce)),Ae=Fe*.5,je=ue,Ne=ue,Be=Fe*je,ze=Fe*Ne;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-je)*z,Te*ee,(pe-(Be+je)/2)*z,(Te+(Ne+ze)/2)*ee,(pe-je)*z,(Te+ze)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(Te-Ne)*ee,(pe-je)*z,(Te-ze)*ee,(pe-Be)*z,(Te-Ne)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+je)*z,Te*ee,(pe+Be)*z,(Te-Ne)*ee,(pe+je)*z,(Te-ze)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+je)*z,(Te+ze)*ee,(pe+(Be+je)/2)*z,(Te+(Ne+ze)/2)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee));var Qe=new go.PathFigure(.2*z,ee,!1);ae.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*ee));var $e=new go.PathFigure(.8*z,ee,!1);return ae.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var le=new go.PathFigure(.2*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventError",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(.1*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Caution",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.05*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.8*ee,0,ee,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.1*ee,.5*z,0,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.95*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,z,ee,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,ee));var le=.05;return re.add(new go.PathSegment(go.PathSegment.Move,(.5-le)*z,.875*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*z,.875*ee,le*z,le*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.325*ee,.575*z,.725*ee,.625*z,.375*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.75*ee,.375*z,.375*ee,.425*z,.725*ee)),ae}),go.Shape.defineFigureGenerator("Recycle",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.45*z,.95*ee,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.185*z,.85*ee,.17*z,.95*ee,.15*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.235*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.625*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.275*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.1875*z,.95*ee,0,.675*ee,0,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.775*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.22*z,.775*ee));var le=new go.PathFigure(.475*z,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.225*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.275*z,.175*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.325*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.05*ee,.35*z,0,.375*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.575*z,.375*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.525*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.475*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.315*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.32*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,0,.65*z,.05*ee,.625*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.38*z,.0105*ee));var ue=new go.PathFigure(.675*z,.575*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.875*z,.525*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.85*z,.95*ee,z,.8*ee,z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.725*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.675*z,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.775*z,.775*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=new go.PathFigure(z,re*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,ee,z,(re+le)*ee,(re+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,re*ee,(re-le)*z,ee,0,(re+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,0,0,(re-le)*ee,(re-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,re*ee,(re+le)*z,0,z,(re-le)*ee));var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.15*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.85*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.58*z,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.78*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Package",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.15*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,.15*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.15*ee).close()),ae.spot1=new go.Spot(0,.1),ae.spot2=new go.Spot(1,1),ae}),go.Shape.defineFigureGenerator("Class",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Component",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close());var le=new go.PathFigure(0,.2*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var ue=new go.PathFigure(0,.6*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),ae}),go.Shape.defineFigureGenerator("Boat Shipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.15*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee));var le=new go.PathFigure(.15*z,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Customer/Supplier",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Workcell",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Supermarket",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ae}),go.Shape.defineFigureGenerator("TruckShipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(z,.8*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee).close());var ue=.1,pe=ce*.1,Te=.2,Ce=.9,Fe=new go.PathFigure((Te-ue)*z,Ce*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-ue)*ee,(Te-ue)*z,(Ce-pe)*ee,(Te-pe)*z,(Ce-ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+ue)*z,Ce*ee,(Te+pe)*z,(Ce-ue)*ee,(Te+ue)*z,(Ce-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+ue)*ee,(Te+ue)*z,(Ce+pe)*ee,(Te+pe)*z,(Ce+ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te-ue)*z,Ce*ee,(Te-pe)*z,(Ce+ue)*ee,(Te-ue)*z,(Ce+pe)*ee).close()),ue=.1,pe=ce*.1,Te=.8,Ce=.9;var Ae=new go.PathFigure((Te-ue)*z,Ce*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-ue)*ee,(Te-ue)*z,(Ce-pe)*ee,(Te-pe)*z,(Ce-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te+ue)*z,Ce*ee,(Te+pe)*z,(Ce-ue)*ee,(Te+ue)*z,(Ce-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+ue)*ee,(Te+ue)*z,(Ce+pe)*ee,(Te+pe)*z,(Ce+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te-ue)*z,Ce*ee,(Te-pe)*z,(Ce+ue)*ee,(Te-ue)*z,(Ce+pe)*ee).close()),ae}),go.Shape.defineFigureGenerator("KanbanPost",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),ae}),go.Shape.defineFigureGenerator("Forklift",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0));var le=new go.PathFigure(0,.5*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var ue=new go.PathFigure(.5*z,.8*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee));var pe=new go.PathFigure(.5*z,.7*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee));var Te=.1,Ce=ce*.1,Fe=.1,Ae=.9,je=new go.PathFigure((Fe-Te)*z,Ae*ee,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae-Te)*ee,(Fe-Te)*z,(Ae-Ce)*ee,(Fe-Ce)*z,(Ae-Te)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Te)*z,Ae*ee,(Fe+Ce)*z,(Ae-Te)*ee,(Fe+Te)*z,(Ae-Ce)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae+Te)*ee,(Fe+Te)*z,(Ae+Ce)*ee,(Fe+Ce)*z,(Ae+Te)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Te)*z,Ae*ee,(Fe-Ce)*z,(Ae+Te)*ee,(Fe-Te)*z,(Ae+Ce)*ee)),Te=.1,Ce=ce*.1,Fe=.4,Ae=.9;var Ne=new go.PathFigure((Fe-Te)*z,Ae*ee,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae-Te)*ee,(Fe-Te)*z,(Ae-Ce)*ee,(Fe-Ce)*z,(Ae-Te)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Te)*z,Ae*ee,(Fe+Ce)*z,(Ae-Te)*ee,(Fe+Te)*z,(Ae-Ce)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae+Te)*ee,(Fe+Te)*z,(Ae+Ce)*ee,(Fe+Ce)*z,(Ae+Te)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Te)*z,Ae*ee,(Fe-Ce)*z,(Ae+Te)*ee,(Fe-Te)*z,(Ae+Ce)*ee)),ae}),go.Shape.defineFigureGenerator("RailShipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.4*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.4*ee).close());var le=new go.PathFigure(.45*z,.7*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee));var ue=new go.PathFigure(.55*z,.4*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.4*ee).close());var Fe=.05,Ae=ce*.05,je=.175,Ne=.95,pe=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee));var Fe=.05,Ae=ce*.05,je=.375,Ne=.95,Te=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee));var Fe=.05,Ae=ce*.05,je=.625,Ne=.95,Ce=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee));var Fe=.05,Ae=ce*.05,je=.825,Ne=.95,Be=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee).close());var ze=new go.PathFigure(0,ee,!1);return ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Warehouse",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(.15*z,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee).close());var pe=.05,Te=ce*.05,Ce=.35,Fe=.775,Ae=new go.PathFigure((Ce-pe)*z,Fe*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Fe-pe)*ee,(Ce-pe)*z,(Fe-Te)*ee,(Ce-Te)*z,(Fe-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*z,Fe*ee,(Ce+Te)*z,(Fe-pe)*ee,(Ce+pe)*z,(Fe-Te)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Fe+pe)*ee,(Ce+pe)*z,(Fe+Te)*ee,(Ce+Te)*z,(Fe+pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*z,Fe*ee,(Ce-Te)*z,(Fe+pe)*ee,(Ce-pe)*z,(Fe+Te)*ee).close()),ae}),go.Shape.defineFigureGenerator("ControlCenter",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee).close()),ae}),go.Shape.defineFigureGenerator("Bluetooth",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Globe",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.75*z,0,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.75*ee,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*z,ee,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,.25*ee,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,.15*z,.25*ee,.15*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.85*z,.75*ee,.85*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.15*ee,.35*z,.3*ee,.65*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.85*ee,.35*z,.7*ee,.65*z,.7*ee)),ae}),go.Shape.defineFigureGenerator("Wave",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.25*ee,.1*z,0,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.25*ee,.425*z,.5*ee,.575*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.25*ee,.8*z,0,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.75*ee,.1*z,.5*ee,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.75*ee,.425*z,ee,.575*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.75*ee,.8*z,.5*ee,.9*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Operator",function(fe,z,ee){var ae=new go.Geometry,re=.3,le=ce*.3,ue=.5,pe=.7,Te=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var Ce=new go.PathFigure(0,.7*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.7*ee,0,0,z,0)),ae}),go.Shape.defineFigureGenerator("TripleFanBlades",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.65*z,.3*ee,.65*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.35*z,.5*ee,.35*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*z,.6*ee,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.2*z,ee,.35*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,.7*z,.6*ee,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.8*z,ee,.65*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("CentrifugalPump",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,0,ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.4*ee,.8*z,ee,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae}),go.Shape.defineFigureGenerator("Battery",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.1*ee));var le=new go.PathFigure(0,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Delete",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=.5,pe=.5,Te=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var Ce=new go.PathFigure(.15*z,.5*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Flag",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.1*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.1*ee,.15*z,0,.35*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,.65*z,.2*ee,.85*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.85*z,.6*ee,.65*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*z,.4*ee,.15*z,.4*ee).close()),ae}),go.Shape.defineFigureGenerator("Help",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=.5,pe=.5,Te=new go.PathFigure((ue-re)*z,pe*ee,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),re=.05,le=ce*.05,ue=.5,pe=.8;var Ce=new go.PathFigure((ue-re)*z,pe*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,.75*z,.475*ee,.75*z,.225*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.35*ee,.4*z,.2*ee,.3*z,.25*ee)),ae}),go.Shape.defineFigureGenerator("Location",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.975*z,.025*ee,.5*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*z,.5*ee,.5*z,0,.025*z,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*z,.3*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.3*ee)),ae}),go.Shape.defineFigureGenerator("Unlocked",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.35*ee)),ae}),go.Shape.defineFigureGenerator("Gear",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.9375*z,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*z,.3316875*ee,.79840625*z,.39915625*ee,.7834375*z,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*z,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*z,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*z,.19378125*ee,.64228125*z,.2188125*ee,.603875*z,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*z,.239375*ee,.39759375*z,.20190625*ee,.36053125*z,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*z,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*z,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*z,.4375*ee,.21765625*z,.36059375*ee,.201875*z,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*z,.67596875*ee,.20221875*z,.603875*ee,.21884375*z,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*z,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*z,.80621875*ee,.36353125*z,.78340625*ee,.3991875*z,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*z,.760625*ee,.602375*z,.79809375*ee,.63946875*z,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*z,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*z,.56246875*ee,.78234375*z,.63940625*ee,.798125*z,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*z,.5*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.3*ee,0,.375*ee,.05*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.075*ee,.3*z,.225*ee,.4*z,.175*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.525*z,.075*ee,.46*z,.05*ee,.525*z,.05*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.4*ee,.525*z,.275*ee,.475*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.55*ee,z,.4*ee,z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.425*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.7*ee,.675*z,.55*ee,.675*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.575*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,.85*ee,.65*z,.7*ee,.65*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.535*z,ee,.61*z,.85*ee,.61*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*z,ee,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Map",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("Eject",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.7)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var le=new go.PathFigure(0,ee*.6,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close()),ae}),go.Shape.defineFigureGenerator("Pencil",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.85).close());var le=new go.PathFigure(.126*z,.85*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.126*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.85*ee).close());var ue=new go.PathFigure(.402*z,.85*ee,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.402*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.85*ee).close());var pe=new go.PathFigure(.678*z,.85*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.678*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.85*ee).close());var Te=new go.PathFigure(.5*z,.1*ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*z,.3*ee).close()),ae}),go.Shape.defineFigureGenerator("Staircase",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),ae}),go.Shape.defineFigureGenerator("5Bars",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*(1-.184)).close());var le=new go.PathFigure(z*.204,ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.204,ee*(1-.184))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*(1-.184*2))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*1).close());var ue=new go.PathFigure(z*.408,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.408,ee*(1-.184*2))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*(1-.184*3))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*1).close());var pe=new go.PathFigure(z*.612,ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.612,ee*(1-.184*3))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*(1-.184*4))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*1).close());var Te=new go.PathFigure(z*.816,ee,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),Te.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),Te.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1).close()),ae}),go.Shape.defineFigureGenerator("PC",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,0).close());var le=new go.PathFigure(z*.055,.07*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.07)),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.1).close());var ue=new go.PathFigure(z*.055,.13*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.13)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.16)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.16).close());var pe=new go.PathFigure(z*.055,.18*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.18)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.21)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.21).close());var Te=new go.PathFigure(z*1,0,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),Te.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),Te.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.65).close()),ae}),go.Shape.defineFigureGenerator("Plane",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.55*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.35*z,.525*ee,0,.4*ee,.225*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.2*ee,.975*z,0,z,.08*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee).close()),ae}),go.Shape.defineFigureGenerator("Key",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*.5,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.6*ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.17*z,.425*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*z,.5*ee,.075*z,.075*ee).close()),ae}),go.Shape.defineFigureGenerator("FilmTape",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*0,z*.3,z*.055)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var le=new go.PathFigure(0,0,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*0)),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*1,z*.3,z*.055)),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var ue=new go.PathFigure(z*.11,ee*.1,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.11,ee*.8).close());var pe=new go.PathFigure(z*(.11+.24133333*1+.028*1),ee*.1,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.8)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*1),ee*.8).close());var Te=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),Te.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),Te.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*2),ee*.8).close()),ae}),go.Shape.defineFigureGenerator("FloppyDisk",function(fe,z,ee){var ae=new go.Geometry,re=8,le=re*ce,ue=new go.PathFigure(re,0,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.86,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.14)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,0,re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re,0,0,le,le,0).close());var pe=new go.PathFigure(z*.83,0,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*0).close());var Te=new go.PathFigure(z*.83,ee*1,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),Te.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),Te.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*1).close());var Ce=new go.PathFigure(z*.78,ee*.05,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.05)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.25)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.78,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("SpeechBubble",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=15),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*ce,le=ee*.8,ue=new go.Geometry,pe=new go.PathFigure(ae,0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le-ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,le,z,le-re,z-re,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.55,le)),pe.add(new go.PathSegment(go.PathSegment.Line,ae,le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,le-ae,re,le,0,le-re)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()),re>1?(ue.spot1=new go.Spot(0,0,re,re),ue.spot2=new go.Spot(1,.8,-re,-re)):(ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.8)),ue}),go.Shape.defineFigureGenerator("Repeat",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.45,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.45).close());var le=new go.PathFigure(z*1,ee*.55,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.55).close()),ae}),go.Shape.defineFigureGenerator("Windows",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*z,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.9).close());var le=new go.PathFigure(z*.1,ee*.2,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,z*.22,ee*.285)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.37)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.25).close());var ue=new go.PathFigure(z*.28,ee*.37,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.37)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.41)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.28,ee*.41).close()),ae}),go.Shape.defineFigureGenerator("Beaker",function(fe,z,ee){var ae=new go.Geometry,re=15,le=re*ce,ue=new go.PathFigure(z*.62,ee*.475,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.475)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.03)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.62,ee*.03).close()),le>1?(ae.spot1=new go.Spot(0,0,le,le),ae.spot2=new go.Spot(1,1,-le,-le)):(ae.spot1=go.Spot.TopLeft,ae.spot2=go.Spot.BottomRight),ae}),go.Shape.defineFigureGenerator("Download",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.4,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.66)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(1-.26),ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*0).close()),ae}),go.Shape.defineFigureGenerator("Bin",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;return re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close()),ae}),go.Shape.defineFigureGenerator("Upload",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.5,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.74,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("EmptyDrink",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close()),ae}),go.Shape.defineFigureGenerator("Drink",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close());var le=new go.PathFigure(z*.235,ee*.28,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.765,ee*.28)),le.add(new go.PathSegment(go.PathSegment.Line,z*.655,ee*.97)),le.add(new go.PathSegment(go.PathSegment.Line,z*.345,ee*.97).close()),ae}),go.Shape.defineFigureGenerator("4Arrows",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,ee*0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727: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 bn={},an="5.0",Ge={},rt=null,vt=!1,ie=!1,_e=null,Ie=!1,ge=null,ce=null,Pe=0;Pe<arguments.length;Pe++){var Ee=arguments[Pe];if(Ee!==null)switch(typeof Ee){case"number":an=Ee.toFixed(1);break;case"string":Ee.match(new RegExp("^[0-9]\\.[0-9]+$"))?an=Ee:_e=Ee;break;case"object":typeof Ee.is3D!="undefined"?rt=Ee:Ge=Ee;break;case"boolean":vt=Ee,ie=!0;break}}rt===null&&(rt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ge.material_id!==void 0&&!ie&&(vt=!0)),_e!==null&&Ge.id===void 0&&(Ge.id=_e);var ye="",Me="",ve=!1,xe=null,fe=null,z=null,ee=!1,ae=null,re=null,le=null,ue=null,pe=null;Ge.height!==void 0&&(Ge.height=Math.round(Ge.height)),Ge.width!==void 0&&(Ge.width=Math.round(Ge.width));var Te=function(gt){return parseFloat(gt)>4?parseFloat(gt):5};bn.setHTML5Codebase=function(gt,dt){ce=gt,St(gt,dt)},bn.setJavaCodebase=bn.setJavaCodebaseVersion=bn.isCompiledInstalled=bn.setPreCompiledScriptPath=bn.setPreCompiledResourcePath=function(){},bn.setHTML5CodebaseVersion=function(gt,dt){var mt=parseFloat(gt);if(mt!==NaN&&mt<5){console.log("The GeoGebra HTML5 codebase version "+mt+" is deprecated. Using version latest instead.");return}ge=gt,it(gt,dt)},bn.getHTML5CodebaseVersion=function(){return fe},bn.getParameters=function(){return Ge},bn.setFontsCSSURL=function(gt){ue=gt},bn.setGiacJSURL=function(gt){},bn.setJNLPFile=function(gt){ye=gt},bn.setJNLPBaseDir=function(gt){},bn.inject=function(){function gt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var dt="auto",mt=Ge.id,kt,Et=!1,Ut=0;Ut<arguments.length;Ut++){var wt=arguments[Ut];typeof wt=="string"?(wt=wt.toLowerCase(),wt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?dt=wt:mt=arguments[Ut]):typeof wt=="boolean"?Et=wt:wt instanceof HTMLElement&&(kt=wt)}pt();function pt(){if(!Ie){setTimeout(pt,200);return}dt=Ct(dt);var tt=kt||document.getElementById(mt);if(!tt){console.log("possibly bug on ajax loading? ");return}if(bn.removeExistingApplet(tt,!1),Ge.width===void 0&&tt.clientWidth&&(Ge.width=tt.clientWidth),Ge.height===void 0&&tt.clientHeight&&(Ge.height=tt.clientHeight),!(Ge.width&&Ge.height)&&dt==="html5"&&(delete Ge.width,delete Ge.height),xe=dt,dt==="screenshot")$e(tt,Ge);else{var Ze=!1;Ge.hasOwnProperty("playButton")&&Ge.playButton||Ge.hasOwnProperty("clickToLoad")&&Ge.clickToLoad?Ze=!0:Ge.hasOwnProperty("playButtonAutoDecide")&&Ge.playButtonAutoDecide&&(Ze=(!Ce()||gt())&&Fe()),Ze?(xe="screenshot",at(tt,Ge,Et,dt)):Qe(tt,Ge,Et)}}};function Ce(){try{return window.self!==window.top}catch(gt){return!0}}function Fe(){return Ge.hasOwnProperty("screenshotGenerator")&&Ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}bn.getViews=function(){return rt},bn.isJavaInstalled=function(){return!1};var Ae=function(gt){var dt=function(Ut){var wt=JSON.parse(Ut),pt=function(we){return we.type=="G"||we.type=="E"},tt=wt.elements?wt.elements.filter(pt)[0]:wt;if(!tt||!tt.url){mt();return}Ge.fileName=tt.url,je(tt.settings||{}),rt.is3D=!0;var Ze="https://www.geogebra.org/images/";bn.setPreviewImage(ae||tt.previewUrl,Ze+"GeoGebra_loading.png",Ze+"applet_play.png"),gt()},mt=function(){Ge.onError&&Ge.onError(),bt("Error: Fetching material (id "+Ge.material_id+") failed.",Ge)},kt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Et="/materials/"+Ge.material_id+"?scope=basic";Ne("https://"+kt+"/api/proxy.php?path="+encodeURIComponent(Et),dt,mt)};function je(gt){var dt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(mt){gt[mt]=!!gt[mt]}),dt.forEach(function(mt){Ge[mt]===void 0&>[mt]!==void 0&&(Ge[mt]=gt[mt])}),Ge.showToolBarHelp===void 0&&(Ge.showToolBarHelp=Ge.showToolBar)}function Ne(gt,dt,mt){var kt=new XMLHttpRequest;kt.open("GET",gt),kt.onload=function(){dt(kt.responseText)},kt.onerror=mt,kt.send()}bn.isHTML5Installed=function(){return!0},bn.getLoadedAppletType=function(){return xe},bn.setPreviewImage=function(gt,dt,mt){ae=gt,re=dt,le=mt},bn.removeExistingApplet=function(gt,dt){var mt;typeof gt=="string"&&(gt=document.getElementById(gt)),xe=null;var kt=null;for(mt=0;mt<gt.childNodes.length;mt++){var Et=gt.childNodes[mt],Ut=Et.className;Ut==="applet_screenshot"?dt?(Et.style.display="block",xe="screenshot"):Et.style.display="none":Ut!=="applet_scaler prerender"&&(gt.removeChild(Et),kt=Ut&&Ut.indexOf("appletParameters")!=-1?Et.id:null,mt--)}var wt=Ge.id!==void 0?Ge.id:kt,pt=window[wt];pt&&typeof pt.getBase64=="function"&&(pt.remove(),window[wt]=null)},bn.refreshHitPoints=function(){if(Te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var gt=bn.getAppletObject();return gt&&typeof gt.recalculateEnvironments=="function"?(gt.recalculateEnvironments(),!0):!1},bn.startAnimation=function(){var gt=bn.getAppletObject();return gt&&typeof gt.startAnimation=="function"?(gt.startAnimation(),!0):!1},bn.stopAnimation=function(){var gt=bn.getAppletObject();return gt&&typeof gt.stopAnimation=="function"?(gt.stopAnimation(),!0):!1},bn.getAppletObject=function(){var gt=Ge.id!==void 0?Ge.id:"ggbApplet";return window[gt]},bn.resize=function(){};var Be=function(gt,dt,mt){var kt=document.createElement("param");kt.setAttribute("name",dt),kt.setAttribute("value",mt),gt.appendChild(kt)},ze=function(gt){return gt&>!=="false"},Qe=function(gt,dt,mt){Te(fe)<=4.2&&(mt=!0);var kt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(kt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Et=document.createElement("div");Et.classList.add("appletParameters","notranslate");var Ut=dt.width,wt=dt.height;if(dt.disableAutoScale=dt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():dt.disableAutoScale,dt.width!==void 0)if(Te(fe)<=4.4)ze(dt.showToolBar)&&(dt.height-=7),ze(dt.showAlgebraInput)&&(dt.height-=37),dt.width<605&&ze(dt.showToolBar)&&(dt.width=605,Ut=605);else{var pt=100;(ze(dt.showToolBar)||ze(dt.showMenuBar))&&(dt.hasOwnProperty("customToolBar")&&(dt.customToolbar=dt.customToolBar),pt=ze(dt.showMenuBar)?245:155),Ut<pt&&(dt.width=pt,Ut=pt)}Et.style.border="none",Et.style.display="inline-block";for(var tt in dt)dt.hasOwnProperty(tt)&&tt!=="appletOnLoad"&&Et.setAttribute("data-param-"+tt,dt[tt]);ue&&Et.setAttribute("data-param-fontscssurl",ue),bn.resize=function(){GGBAppletUtils.responsiveResize(gt,dt)},window.addEventListener("resize",function(ft){bn.resize()});var Ze=typeof dt.appletOnLoad=="function"?dt.appletOnLoad:function(){};if(!mt&&dt.width!==void 0){dt.hasOwnProperty("showSplash")||Et.setAttribute("data-param-showSplash","false");var we=gt.querySelector(".applet_scaler.prerender"),be=we!==null;if(be)var Ke=we.querySelector(".ggb_preview");else{var Ke=ht(Ut,wt,dt.borderColor,!1);we=document.createElement("div"),we.className="applet_scaler",we.style.position="relative",we.style.display="block",we.style.width=Ut+"px",we.style.height=wt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(we,"66%"),Te(fe)>=5?(dt.appletOnLoad=function(ft){var Mt=gt.querySelector(".ggb_preview");Mt&&Mt.parentNode.removeChild(Mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(we),window.GGBT_wsf_view&&$(window).trigger("resize"),Ze(ft)},be||we.appendChild(Ke)):Et.appendChild(Ke),we.appendChild(Et),be||gt.appendChild(we),setTimeout(function(){bn.resize()},1)}else{var Xe=document.createElement("div");Xe.className="applet_scaler",Xe.style.position="relative",Xe.style.display="block",Xe.appendChild(Et),gt.appendChild(Xe),dt.appletOnLoad=function(ft){bn.resize(),Ze(ft)}}function Oe(ft,Mt){Mt&&typeof Mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ft,Mt.appletOnLoad):renderGGBElement(ft),bt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Mt)}function Ue(ft,Mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ft,params:Mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Jt){Oe(Jt.article,Jt.params)}),html5AppletsToProcess=null)},Te(fe)<5&&(ft.className+=" geogebraweb")):Oe(ft,Mt)}if(kt){scriptLoadStarted=!0;for(var He=0;He<Et.childNodes.length;He++){var Ve=Et.childNodes[He].tagName;Ve==="TABLE"&&(Et.removeChild(Et.childNodes[He]),He--)}if(ggbHTML5LoadedScript!==null){var Je=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Je!=null&&Je.parentNode.removeChild(Je)}var ct=document.createElement("script"),yt=function(){Ue(Et,dt)};ct.src=Me+z,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=fe,ggbHTML5LoadedScript=ct.src,bt("GeoGebra HTML5 codebase loaded: '"+Me+"'.",dt),!ce&&(!ge||ge=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),yt()):Me.requirejs?__webpack_require__.e(4184).then(function(){var ft=[__webpack_require__(74620)];yt.apply(null,ft)}.bind(this)).catch(__webpack_require__.oe):(ct.onload=yt,gt.appendChild(ct))}else Ue(Et,dt);dt.height=wt,dt.width=Ut},$e=function(gt,dt,mt){var kt=ht(dt.width,dt.height,dt.borderColor,mt),Et=document.createElement("div");Et.style.position="relative",Et.style.display="block",Et.style.width=dt.width+"px",Et.style.height=dt.height+"px",Et.className="applet_screenshot applet_scaler"+(mt?" applet_screenshot_play":""),Et.appendChild(kt);var Ut=GGBAppletUtils.getScale(dt,gt,mt);mt?(gt.appendChild(ut()),window.GGBT_wsf_view||(gt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Et,"66%"),gt.appendChild(Et),Ut!==1&&!isNaN(Ut)&&(GGBAppletUtils.scaleElement(Et,Ut),Et.style.width=dt.width+"px",Et.style.height=dt.height+"px",Et.parentNode.style.width=dt.width*Ut+"px",Et.parentNode.style.height=dt.height*Ut+"px"),bn.resize=function(){Ye(gt,kt,Et,mt)},window.addEventListener("resize",function(wt){bn.resize()}),bn.resize()};function Ye(gt,dt,mt,kt){if(gt.contains(dt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(gt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(gt)}var Et=GGBAppletUtils.getScale(Ge,gt,kt);mt.parentNode!==null&&(!isNaN(Et)&&Et!==1?(GGBAppletUtils.scaleElement(mt,Et),mt.parentNode.style.width=Ge.width*Et+"px",mt.parentNode.style.height=Ge.height*Et+"px"):(GGBAppletUtils.scaleElement(mt,1),mt.parentNode.style.width=Ge.width+"px",mt.parentNode.style.height=Ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(gt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}bn.onExitFullscreen=function(gt,dt){dt.appendChild(gt)};var at=function(gt,dt,mt,kt){$e(gt,dt,!0);for(var Et=function(){var pt=[];for(wt=0;wt<gt.childNodes.length;wt++)pt.push(gt.childNodes[wt]);if(window.GGBT_wsf_view){var tt=window.GGBT_wsf_view.renderFullScreen(gt,dt.id),Ze=document.getElementById("fullscreencontainer"),we=jQuery(gt).find(".fullscreencontent");we.length>0?(tt.remove(),we.attr("id","fullscreencontent").show(),jQuery(Ze).append(we),window.dispatchEvent(new Event("resize"))):Qe(tt,dt,!1),window.GGBT_wsf_view.launchFullScreen(Ze)}else xe=kt,Qe(gt,dt,!1);if(!window.GGBT_wsf_view)for(wt=0;wt<pt.length;wt++)gt.removeChild(pt[wt])},Ut=gt.getElementsByClassName("ggb_preview_play"),wt=0;wt<Ut.length;wt++)Ut[wt].addEventListener("click",Et,!1),Ut[wt].addEventListener("ontouchstart",Et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(gt),Fe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ut=function(){var gt=document.createElement("div");if(gt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var dt='.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");}',mt=document.createElement("style");mt.styleSheet?mt.styleSheet.cssText=dt:mt.appendChild(document.createTextNode(dt)),document.getElementsByTagName("head")[0].appendChild(mt)}return gt},ht=function(gt,dt,mt,kt){var Et=document.createElement("div");Et.className="ggb_preview",Et.style.position="absolute",Et.style.zIndex="90",Et.style.width=gt-2+"px",Et.style.height=dt-2+"px",Et.style.top="0px",Et.style.left="0px",Et.style.overflow="hidden",Et.style.backgroundColor="white";var Ut="lightgrey";mt!==void 0&&(mt==="none"?Ut="transparent":Ut=mt),Et.style.border="1px solid "+Ut;var wt=document.createElement("img");if(wt.style.position="relative",wt.style.zIndex="1000",wt.style.top="-1px",wt.style.left="-1px",ae!==null&&wt.setAttribute("src",ae),wt.style.opacity=.7,re!==null){var pt,tt,Ze;if(!kt){pt=document.createElement("img"),pt.style.position="absolute",pt.style.zIndex="1001",pt.style.opacity=1,wt.style.opacity=.3,tt=360,tt>gt/4*3&&(tt=gt/4*3),Ze=tt/5.8,pt.setAttribute("src",re),pt.setAttribute("width",tt),pt.setAttribute("height",Ze);var we=(gt-tt)/2,be=(dt-Ze)/2;pt.style.left=we+"px",pt.style.top=be+"px",Et.appendChild(pt)}}return Et.appendChild(wt),Et},Ct=function(gt){return gt=gt.toLowerCase(),gt==="html5"||gt==="screenshot"?gt:"html5"},et=["web","webSimple","web3d","tablet","tablet3d","phone"],it=function(gt,dt){if(fe=gt,dt){St(fe,!0);return}var mt=!vt;if(mt){var kt=Te(fe);!isNaN(kt)&&kt<4.4&&(mt=!1)}var Et,Ut;window.location.protocol.substr(0,4)==="http"?Et=window.location.protocol:Et="http:";var wt=fe.indexOf("//");wt>0?Ut=fe:wt===0?Ut=Et+fe:Ut="https://www.geogebra.org/apps/5.2.814.0/";for(var pt in et)if(fe.slice(et[pt].length*-1)===et[pt]||fe.slice((et[pt].length+1)*-1)===et[pt]+"/"){St(Ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&mt&&!rt.is3D&&!rt.AV&&!rt.SV&&!rt.CV&&!rt.EV2&&!rt.CP&&!rt.PC&&!rt.DA&&!rt.FI&&!rt.PV&&!ze(Ge.showToolBar)&&!ze(Ge.showMenuBar)&&!ze(Ge.showAlgebraInput)&&!ze(Ge.enableRightClick)&&(!Ge.appName||Ge.appName=="classic")?Ut+="webSimple/":Ut+="web3d/",St(Ut,!1)},St=function(gt,dt){if(gt.requirejs){Me=gt;return}gt.slice(-1)!=="/"&&(gt+="/"),Me=gt,dt===null&&(dt=gt.indexOf("http")===-1),ve=dt,z="web.nocache.js",ee=!1;var mt=Me.split("/");mt.length>1&&(!dt&&mt[mt.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):et.indexOf(mt[mt.length-2])>=0&&(z=mt[mt.length-2]+".nocache.js")),mt=gt.split("/"),fe=mt[mt.length-3],fe.substr(0,4)==="test"?fe=fe.substr(4,1)+"."+fe.substr(5,1):(fe.substr(0,3)==="war"||fe.substr(0,4)==="beta")&&(fe="5.0");var kt=parseFloat(fe);kt!==NaN&&kt<5&>.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+kt+" is deprecated. Using version latest instead."),it("5.0",dt))},bt=function(gt,dt){window.console&&window.console.log&&(!dt||typeof dt.showLogging=="undefined"||dt.showLogging&&dt.showLogging!=="false")&&console.log(gt)};Ge.material_id!==void 0?Ae(Pt):Pt();function Pt(){var gt=an;ge!==null?gt=ge:parseFloat(gt)<5&&(gt="5.0"),it(gt,!1),ce!==null&&St(ce,ve),Ie=!0}return bn},GGBAppletUtils=function(){"use strict";function bn(){return window.GGBT_wsf_edit!==void 0}function an(Ie,ge){ge!=1?(Ie.style.transformOrigin="0% 0% 0px",Ie.style.webkitTransformOrigin="0% 0% 0px",Ie.style.transform="scale("+ge+","+ge+")",Ie.style.webkitTransform="scale("+ge+","+ge+")",Ie.style.maxWidth="initial",Ie.querySelector(".ggb_preview")!==null&&(Ie.querySelector(".ggb_preview").style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ie.style.transform="none",Ie.style.webkitTransform="none")}function Ge(Ie,ge,ce,Pe,Ee,ye){var Me=null;if(ye!=null&&ye!="")for(var ve=Ie.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+ye+" ")>-1){Me=ve;break}else ve=ve.parentNode;var xe=0,fe=0,z=0,ee=0,ae=0,re=0,le=0;if(Me)xe=Me.offsetWidth,fe=Math.max(Pe?Me.offsetWidth:0,Me.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),z=xe):(xe=window.innerWidth,fe=window.innerHeight,z=window.innerWidth),Ie){var ue=Ie.getBoundingClientRect();ue.left>0&&ue.left<=xe&&(Ee===void 0||!Ee)&&(document.dir==="rtl"?(ae=xe-ue.width-ue.left,re=z<=480?10:30):(re=ue.left,ae=z<=480?10:30),ee=re+ae)}if(Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=Ie.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return Ie&&((ce===void 0||!ce)&&ge>0&&ge+ee<xe?xe=ge:xe-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(fe-=le)),{width:xe,height:fe}}function rt(Ie,ge,ce,Pe,Ee){if(Ie.isScreenshoGenerator)return 1;var ye=Pe!==void 0&&Pe,Me=Ie.noScaleMargin!=null&&Ie.noScaleMargin,ve=function(pe){return pe&&pe!=="false"},xe=ve(Ie.autoHeight),fe=Ge(ge,Ie.width,ce,xe,ye&&window.GGBT_wsf_view||Me,Ee),z=parseInt(fe.width),ee=Ie.width,ae=Ie.height;if(ee===void 0){var re=ge.querySelector(".appletParameters");re&&(ee=re.offsetWidth,ae=re.offsetHeight)}var le=z/ee,ue=ye?1:fe.height/ae;return ce!==void 0&&!ce&&(le=Math.min(1,le),ue=Math.min(1,ue)),Math.min(le,ue)}function vt(Ie,ge,ce){var Pe=1,Ee,ye=!1;if(Ie.hasOwnProperty("allowUpscale")&&(ye=Ie.allowUpscale),Ie.hasOwnProperty("scale")&&(Pe=parseFloat(Ie.scale),(isNaN(Pe)||Pe===null||Pe===0)&&(Pe=1),Pe>1&&(ye=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ye=!0),!(Ie.hasOwnProperty("disableAutoScale")&&Ie.disableAutoScale))Ee=rt(Ie,ge,ye,ce,Ie.scaleContainerClass);else return Pe;return ye&&(!Ie.hasOwnProperty("scale")||Pe===1)?Ee:Math.min(Pe,Ee)}function ie(Ie){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),Pe=Ie.getBoundingClientRect(),Ee=(ge-Pe.width)/2,ye=(ce-Pe.height)/2;ye<0&&(ye=0),Ie.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee<40?Ie.style.left="40px":Ie.style.left=Ee+"px",Ie.style.top=ye+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ye<40?Ie.style.top="40px":Ie.style.top=ye+"px",Ie.style.left=Ee+"px")}function _e(Ie,ge){var ce=Ie.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ie)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var Pe=vt(ge,Ie);bn()&&ce.setAttribute("data-param-scale",Pe);for(var Ee=null,ye=0;ye<Ie.childNodes.length;ye++)if(Ie.childNodes[ye].className!==void 0&&Ie.childNodes[ye].className.match(/^applet_scaler/)){Ee=Ie.childNodes[ye];break}if(Ee!==null&&Ee.querySelector(".noscale")!==null)return;var Me=ge.id!==void 0?ge.id:"ggbApplet",ve=window[Me];(ve==null||!ve.recalculateEnvironments)&&Ee!==null&&!Ee.className.match(/fullscreen/)&&(Ee.parentNode.style.transform="",!isNaN(Pe)&&Pe!==1?(Ee.parentNode.style.width=ge.width*Pe+"px",Ee.parentNode.style.height=ge.height*Pe+"px",an(Ee,Pe)):(an(Ee,1),Ee.parentNode.style.width=ge.width+"px",Ee.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ie(Ie),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:bn,positionCenter:ie,getScale:vt,scaleElement:an}}();__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 bn=n.location.search;return bn.indexOf(J)!=-1||bn.indexOf(K)!=-1}function q(bn,an){}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(bn){var an=s[L].bindings;s[L].bindings=function(){for(var Ge=an?an():{},rt=bn[webModule.__softPermutationId],vt=O;vt<rt.length;vt++){var ie=rt[vt];Ge[ie[O]]=ie[P]}return Ge}};var t;function u(){return v(),t}function v(){if(!t){var bn=o.createElement(Q);if(bn.id=L,bn.style.cssText=R+S,bn.tabIndex=-1,o.body.appendChild(bn),t=bn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var an=document.compatMode==U?V:W;t.write(an+X),t.close()}}}function w(bn){function an(rt){function vt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ie=vt();if(ie){rt();return}function _e(){if(!ie){if(!vt())return;ie=!0,rt(),o.removeEventListener&&o.removeEventListener(Z,_e,!1),Ie&&clearInterval(Ie)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var Ie=setInterval(function(){_e()},$)}function Ge(rt){var vt=u(),ie=vt.body,_e=vt.createElement(_);_e.language=ab,_e.crossOrigin=W,_e.src=rt,webModule.__errFn&&(_e.onerror=function(){webModule.__errFn(L,new Error(bb+rt))}),ie.appendChild(_e)}an(function(){Ge(bn)})}webModule.__startLoadingFragment=function(bn){return C(bn)},webModule.__installRunAsyncCode=function(bn){var an=u(),Ge=an.body,rt=an.createElement(_);rt.language=ab,rt.text=bn,Ge.appendChild(rt),Ge.removeChild(rt)};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(bn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(bn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(bn){var an=c[bn];return an==null?null:an},r=d,webModule.__errFn=e}function B(){function bn(Ie){var ge=Ie.lastIndexOf(rb);ge==-1&&(ge=Ie.length);var ce=Ie.indexOf(sb);ce==-1&&(ce=Ie.length);var Pe=Ie.lastIndexOf(tb,Math.min(ce,ge));return Pe>=O?Ie.substring(O,Pe+P):W}function an(Ie){if(!Ie.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=Ie+vb,Ie=bn(ge.src)}return Ie}function Ge(){var Ie=__gwt_getMetaProperty(wb);return Ie!=null?Ie:W}function rt(){for(var Ie=o.getElementsByTagName(_),ge=O;ge<Ie.length;++ge)if(Ie[ge].src.indexOf(xb)!=-1)return bn(Ie[ge].src);return W}function vt(){var Ie=o.getElementsByTagName(yb);return Ie.length>O?Ie[Ie.length-P].href:W}function ie(){var Ie=o.location;return Ie.href==Ie.protocol+zb+Ie.host+Ie.pathname+Ie.search+Ie.hash}var _e=Ge();return _e==W&&(_e=rt()),_e==W&&(_e=vt()),_e==W&&ie()&&(_e=bn(o.location.href)),_e=an(_e),_e}function C(bn){return bn.match(/^\//)||bn.match(/^[a-zA-Z]+:\/\//)?bn:webModule.__moduleBase+bn}function D(){var bn=[],an=O,Ge=[],rt=[];function vt(Ie){var ge=rt[Ie](),ce=Ge[Ie];if(ge in ce)return ge;var Pe=[];for(var Ee in ce)Pe[ce[Ee]]=Ee;throw r&&r(Ie,Pe,ge),null}if(__gwt_isKnownPropertyValue=function(Ie,ge){return ge in Ge[Ie]},webModule.__getPropMap=function(){var Ie={};for(var ge in Ge)Ge.hasOwnProperty(ge)&&(Ie[ge]=vt(ge));return Ie},webModule.__computePropValue=vt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ie;try{ie=Cb;var _e=ie.indexOf(Db);_e!=-1&&(an=parseInt(ie.substring(_e+P),$),ie=ie.substring(O,_e))}catch(Ie){}return webModule.__softPermutationId=an,C(ie+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})()},77903:function(bn,an,Ge){"use strict";Ge.d(an,{Ax:function(){return _e},Ds:function(){return Ie},KI:function(){return ce},SI:function(){return ie},f1:function(){return vt}});var rt=Ge(3294);function vt(Pe){let Ee=!0;if(Pe.length>0){for(let ye=0;ye<Pe.length;ye++)if(Pe[ye].compile_success==0||!Pe[ye].compile_success){Ee=!1;break}}else Ee=!1;return Ee}function ie(Pe,Ee=""){let ye=[];for(let Me=0;Me<Pe.length;Me++){let ve=Pe[Me],xe=Ee?`${Ee}/${ve.name}`:`${ve.name}`;ye.push({title:ve.name,type:ve.type,isLeaf:ve.type!=="tree",key:xe})}return ye}function _e(Pe,Ee,ye){for(let Me=0;Me<Pe.length;Me++){let ve=Pe[Me];if(ve.key===Ee){ve.children=ye;break}ve.children&&_e(ve.children,Ee,ye)}return Pe}function Ie(Pe,Ee,ye){let Me;return function(){let ve=this,xe=arguments,fe=function(){Me=null,ye||Pe.apply(ve,xe)},z=ye&&!Me;clearTimeout(Me),Me=setTimeout(fe,Ee),z&&Pe.apply(ve,xe)}}const ge=!0,ce=rt.Z.API_SERVER},73524:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Me}});var rt=Ge(59301),vt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ie=Ge(92310),_e=Ge.n(ie),Ie=Ge(71418),ge=Ge(2859),ce=Ge(99064),Pe=Ge(955),Ee=(ve,xe,fe)=>new Promise((z,ee)=>{var ae=ue=>{try{le(fe.next(ue))}catch(pe){ee(pe)}},re=ue=>{try{le(fe.throw(ue))}catch(pe){ee(pe)}},le=ue=>ue.done?z(ue.value):Promise.resolve(ue.value).then(ae,re);le((fe=fe.apply(ve,xe)).next())}),Me=({data:ve,className:xe,fullWidth:fe,style:z={},onClose:ee,onOk:ae,showFullTools:re,noAssociationId:le})=>{const ue=(0,rt.useRef)(null),pe=(0,rt.useRef)(null),Te=(0,rt.useRef)(null),Ce=(0,rt.useRef)(null),[Fe,Ae]=(0,rt.useState)(!1),[je,Ne]=(0,rt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,rt.useEffect)(()=>(Te.current||(Te.current=document.createElement("style"),document.head.appendChild(Te.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),Te.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&Be()):(document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)),()=>{document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)}),[ve==null?void 0:ve.visible]);const Be=()=>Ee(void 0,null,function*(){Ae(!0),Ne("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ye=yield(0,Pe.ZJ)(ve==null?void 0:ve.src);ue.current.src="",ue.current.src=Ye,ue.current.onload=function(){$e()},Ae(!1),Ne("")}),ze=Ye=>Ee(void 0,null,function*(){Ae(!0),Ne("\u6B63\u5728\u4FDD\u5B58\u4E2D");const at=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:Ye.dataUrl}});at!=null&&at.id&&!le?(yield(0,ce.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:at==null?void 0:at.id,settings:JSON.stringify(Ye.state)}})).status===0&&ae():at!=null&&at.id&&ae(at),Ae(!1),Ne("")}),Qe=()=>{const Ye=document.querySelector('a[href="https://markerjs.com/"]');Ye&&Ye.parentNode&&(Ye.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(ut=>{const ht=document.querySelector(ut.name);ht&&ht.setAttribute("title",ut.title)})},$e=()=>{pe.current=new ge.hP(ue.current),pe.current.targetRoot=Ce.current,pe.current.addEventListener("render",ze),pe.current.addEventListener("beforeclose",ee),re&&(pe.current.availableMarkerTypes=pe.current.ALL_MARKER_TYPES,pe.current.uiStyleSettings.redoButtonVisible=!0,pe.current.uiStyleSettings.notesButtonVisible=!0,pe.current.uiStyleSettings.zoomButtonVisible=!0,pe.current.uiStyleSettings.zoomOutButtonVisible=!0,pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pe.current.uiStyleSettings,pe.current.show(),ve!=null&&ve.snapshotData&&pe.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Qe()},300)};return rt.createElement(rt.Fragment,null,(ve==null?void 0:ve.visible)&&rt.createElement(Ie.Z,{spinning:Fe,tip:je,style:{position:"absolute",width:"100vw"}},rt.createElement("div",{ref:Ce,className:_e()(vt.imageDimensions,xe,fe?vt.fullWidth:""),style:z},rt.createElement("img",{className:vt.img,ref:ue}))))}},41588:function(bn,an,Ge){"use strict";var rt=Ge(59301),vt=Ge(95237),ie=Ge(43604),_e=Ge(99313),Ie=Ge(3113),ge=Ge(85149),ce=Ge(88010),Pe=Ge(48136),Ee=Ge(59301);const ye=(0,rt.forwardRef)(({callback:Me,showSaveButton:ve,value:xe=""},fe)=>{const z=(0,rt.useRef)(),ee=[{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 "}]}]}],ae=[{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}`}]}]}],re=pe=>{z.current.setValue(z.current.getValue()+" "+pe.value+" ")},le=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ee.createElement(vt.Z,{className:ce.Z.lists,gutter:[10,10]},ee.map((pe,Te)=>Ee.createElement(ie.Z,{flex:"110px",className:ce.Z.item},Ee.createElement("div",null,Ee.createElement(ge.Z,{value:`$$${pe.value}$$`}),pe.name),Ee.createElement("div",{className:ce.Z.children},pe.children.map((Ce,Fe)=>Ee.createElement("div",{key:Fe},Ee.createElement("h1",null,Ce.name),Ee.createElement(vt.Z,{gutter:[10,10]},Ce.data.map((Ae,je)=>Ee.createElement(ie.Z,{key:je,onClick:()=>re(Ae),className:ce.Z.diamond},Ee.createElement(ge.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ee.createElement(vt.Z,{className:ce.Z.lists,gutter:[10,10]},ae.map((pe,Te)=>Ee.createElement(ie.Z,{flex:"110px",className:ce.Z.item},Ee.createElement("div",null,Ee.createElement(ge.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Ee.createElement("div",{className:ce.Z.children},pe.children.map((Ce,Fe)=>Ee.createElement("div",{key:Fe},Ce.name&&Ee.createElement("h1",null,Ce.name),Ee.createElement(vt.Z,{gutter:[10,10]},Ce.data.map((Ae,je)=>Ee.createElement(ie.Z,{key:je,onClick:()=>re(Ae),className:ce.Z.diamond},Ee.createElement(ge.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var Te=pe.innerText;return Me&&Me(Te),Te};return(0,rt.useImperativeHandle)(fe,()=>({getData:ue})),Ee.createElement("div",{className:ce.Z.mathWrap},Ee.createElement(_e.default,{defaultActiveKey:"1",items:le}),Ee.createElement("math-field",{locale:"zh_cn",className:ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:z,style:{width:800,marginTop:30,fontSize:18}},xe||""),ve&&Ee.createElement("div",{className:ce.Z.button},Ee.createElement(Ie.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});an.Z=ye},8797:function(bn,an,Ge){"use strict";var rt=Ge(59301),vt=Ge(93314),ie=Ge(3113),_e=Object.defineProperty,Ie=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ye=(fe,z,ee)=>z in fe?_e(fe,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):fe[z]=ee,Me=(fe,z)=>{for(var ee in z||(z={}))Pe.call(z,ee)&&ye(fe,ee,z[ee]);if(ce)for(var ee of ce(z))Ee.call(z,ee)&&ye(fe,ee,z[ee]);return fe},ve=(fe,z)=>Ie(fe,ge(z));const xe=({img:fe,buttonProps:z={},styles:ee={},customText:ae,ButtonText:re,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:Te,loading:Ce=!1})=>rt.createElement("section",{className:"tc animated fadeIn",style:Me(Me({},{color:"#999",margin:"100px auto",visibility:Ce?"hidden":"visible"}),ee)},rt.createElement("img",{src:fe||vt,style:ve(Me({},Te),{pointerEvents:"none",userSelect:"none"})}),rt.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),re&&rt.createElement(ie.ZP,Me({className:ue,onClick:le},z),re),pe&&pe);an.Z=xe},23210:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ue}});var rt=Ge(59301),vt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ie=Ge(3113),_e=Ge(70557),Ie=Ge(23954),ge=Ge(6848),ce=Ge(955),Pe=Ge(94941),Ee=Ge(8797),ye=Ge(3294),Me=Ge(19381),ve=Ge(59301),xe=Object.defineProperty,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(pe,Te,Ce)=>Te in pe?xe(pe,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):pe[Te]=Ce,re=(pe,Te)=>{for(var Ce in Te||(Te={}))z.call(Te,Ce)&&ae(pe,Ce,Te[Ce]);if(fe)for(var Ce of fe(Te))ee.call(Te,Ce)&&ae(pe,Ce,Te[Ce]);return pe},le=(pe,Te,Ce)=>new Promise((Fe,Ae)=>{var je=ze=>{try{Be(Ce.next(ze))}catch(Qe){Ae(Qe)}},Ne=ze=>{try{Be(Ce.throw(ze))}catch(Qe){Ae(Qe)}},Be=ze=>ze.done?Fe(ze.value):Promise.resolve(ze.value).then(je,Ne);Be((Ce=Ce.apply(pe,Te)).next())}),ue=({editOffice:pe="view",data:Te,theme:Ce,type:Fe,filename:Ae,monacoEditor:je,className:Ne,style:Be,close:ze,onClose:Qe,hasMask:$e,disabledDownload:Ye,onImgDimensions:at,showNodata:ut,recordInfo:ht})=>{const[Ct,et]=(0,rt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[it,St]=(0,rt.useState)(""),[bt,Pt]=(0,rt.useState)(),gt=window.ENV==="build"?"/react/build":"",dt=location.host.startsWith("localhost")?ye.Z.PROXY_SERVER:ye.Z.API_SERVER,kt=10*(1024*1024),Et=(0,rt.useRef)();Te!=null&&Te.startsWith("/api")&&Fe!=="txt"&&(Te=ye.Z.API_SERVER+Te);const Ut=Ze=>Ze.substring(Ze.lastIndexOf("/")+1).split(".").pop();Ae&&je&&(je.filename=Ae),(0,rt.useEffect)(()=>{var Ze,we;const be=(we=(Ze=document.cookie)==null?void 0:Ze.replace(/\s/g,""))==null?void 0:we.split(";");be==null||be.map(Ke=>{let Xe=Ke.split("=");Xe[0]==="_educoder_session"&&St(Xe[1])})},[]),(0,rt.useEffect)(()=>{Fe==="office"&&(Te.indexOf("bigfilescdn.")>-1||Te.indexOf("bigfiles1")>-1?Pt({url:Te,fileType:Ut(Te),model:Te.indexOf("model=edit")?"edit":"view"}):wt())},[Fe,Te]);const wt=()=>le(void 0,null,function*(){console.log("data:",Te);let Ze=Te;Te.startsWith("http")||(Ze=location.origin+Ze);let we=new URL(Ze).pathname.split("/").pop();const be=yield(0,Pe.gJ)({attachment_id:we});be.url=dt+be.url,Pt(be)}),pt=()=>{if(Te.startsWith("http")||Te.startsWith("blob:")){tt();return}(0,ce.Sv)(Ae||"educoder",Te,Ae)},tt=()=>{ht&&(0,Me.fc)({id:ht==null?void 0:ht.id,watch_type:1,course_id:ht==null?void 0:ht.course_id}),(0,ce.Nd)(Ae||"educoder",decodeURIComponent(Te))};return ve.createElement("div",{style:re({},Be||{}),className:`${$e&&vt.bgBlack} ${Fe?vt.wrp:"hide"}`},ze&&ve.createElement("div",{className:vt.close,ref:Et},!!at&&ve.createElement(ge.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Et.current},ve.createElement("span",{onClick:()=>{Qe(),at()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!Ye&&ve.createElement(ge.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Et.current},ve.createElement("span",{onClick:tt},ve.createElement("i",{className:"icon-quxiaozhiding"}))),ve.createElement(ge.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Et.current},ve.createElement("span",{className:"",onClick:Qe},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${vt[Ne]} ${Ne} ${vt.monaco} ${Fe==="txt"?"show":"hide"}`},Fe==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(Ie.ZP,re({},je)))),Fe==="audio"&&ve.createElement("audio",{src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Te}`,autoPlay:!0}),Fe==="video"&&ve.createElement(ve.Fragment,null,(Te==null?void 0:Te.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${Te}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Te}`,autoPlay:!0})),Fe==="office"&&bt&&ve.createElement("iframe",{src:`${gt}/office.html?key=${bt.key}&url=${btoa(bt.url)}&callbackUrl=${dt+(bt.callbackUrl||"")}&fileType=${bt.fileType}&title=${bt.title||""}&model=${pe}&officeServer=${ye.Z.ONLYOFFICE}&disabledDownload=${!!Ye}`}),Fe==="html"&&ve.createElement("iframe",{src:Te+"&disposition=inline"}),Fe==="pdf"&&ve.createElement("iframe",{src:`${gt}/js/pdfview/index.html?filename=${Ae||"educoder.pdf"}&url=${encodeURIComponent(Te)}&disabledDownload=${!!Ye}`}),Fe==="image"&&ve.createElement("img",{src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Te}`}),(Fe==="other"||Fe==="download")&&ve.createElement(ve.Fragment,null,ut?ve.createElement(Ee.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(ie.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:pt,disabled:Ye},"\u4E0B\u8F7D")}):ve.createElement(ie.ZP,{type:"primary",size:"middle",onClick:pt,disabled:Ye},ve.createElement(_e.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(bn,an,Ge){"use strict";Ge.d(an,{z:function(){return Fe},Z:function(){return Ae}});var rt=Ge(59301),vt=Ge(50304),ie=Ge(24768),_e=Ge(64018),Ie=Ge(40846),ge=Ge(3294),ce=Ge(955),Pe=Ge(15342),Ee=Ge(1012),ye=Ge(23210),Me=Ge(59301),xe=({html:je})=>{const Ne=(0,rt.useRef)(null),Be=(0,rt.useRef)(null),ze=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 36px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,rt.useEffect)(()=>{const Qe=Ne.current.attachShadow({mode:"open"});Be.current=document.createElement("div"),Be.current.className="markdown-body",Be.current.innerHTML=je,Qe.appendChild(Be.current);const $e=document.createElement("style");return $e.textContent=ze,Qe.appendChild($e),()=>{Qe.innerHTML=""}},[]),(0,rt.useEffect)(()=>{Be.current&&(Be.current.innerHTML=je)},[je]),Me.createElement("div",{ref:Ne})},fe=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,re=(je,Ne,Be)=>Ne in je?fe(je,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Be}):je[Ne]=Be,le=(je,Ne)=>{for(var Be in Ne||(Ne={}))ee.call(Ne,Be)&&re(je,Be,Ne[Be]);if(z)for(var Be of z(Ne))ae.call(Ne,Be)&&re(je,Be,Ne[Be]);return je};const ue="@\u2581\u2581@",pe="@\u2581@",Te=/<pre[^>]*>/g;function Ce(je){let Ne=document.createElement("div");return Ne.innerHTML=je,Ne.childNodes.length===0?"":Ne.childNodes[0].nodeValue}const Fe=(je,Ne)=>{je=je||"";const Be=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Qe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$e=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ne?je.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Be,(Ye,at,ut,ht,Ct,et,it)=>{const St=at||ht||et,bt=ut||Ct||it||"?";return ge.Z.API_SERVER+"/api/attachments/"+St+bt+"&t="+(0,ce.Jn)(St,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(je=je.replace($e,(Ye,at,ut,ht,Ct,et,it)=>{const St=at||ht||et,bt=ut||Ct||it||"?";return ge.Z.API_SERVER+"/attachments/download/"+St+bt+"&t="+(0,ce.Jn)(St,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replace(Be,(Ye,at,ut,ht,Ct,et,it)=>{const St=at||ht||et,bt=ut||Ct||it||"?";return ge.Z.API_SERVER+"/api/attachments/"+St+bt+"&t="+(0,ce.Jn)(St,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replace(ze,(Ye,at,ut,ht,Ct)=>{const et=at||ht,it=ut||Ct||"";return'"'+ge.Z.API_SERVER+"/api/attachments/"+et+it+et+it+"&t="+(0,ce.Jn)(et,Date.now())}).replace(Qe,(Ye,at,ut,ht,Ct)=>{const et=at||ht,it=ut||Ct||"";return"("+ge.Z.API_SERVER+"/files/uploads/"+et+it+et+it+"&t="+(0,ce.Jn)(et,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,`
|
|
|
`),je)};var Ae=({value:je="",className:Ne,showTextOnly:Be,showLines:ze,style:Qe={},stylesPrev:$e={},highlightKeywords:Ye,showProgramFill:at,isProgramFill:ut,disabledFill:ht=!1,programFillValue:Ct,onFillChange:et=bt=>{},onFillBlur:it=()=>{},onFillFocus:St=()=>{}})=>{let bt=String(je);const[Pt,gt]=(0,rt.useState)(""),[dt,mt]=(0,rt.useState)("office"),[kt,Et]=(0,rt.useState)([]),Ut=(0,rt.useRef)("a"+(0,Ee.Z)()),wt={},pt=(ct,yt,ft)=>{const Mt=document.createElement(ct===pe?"input":"textarea");Mt.style.width="100%",Mt.style.height=ct===pe?"40px":"151px",Mt.rows=5,Mt.spellcheck=!1,Mt.name="edu-program-fill",Mt.placeholder="\u8BF7\u8F93\u5165",Mt.dataset.id=yt;const Jt=Object.keys(wt).length;return wt[Jt]=Mt,`<span class="edu-program-fill-wrap ${ct===pe?"":"show"}" style="width:${ct===pe?"400px":"100%"}" title=${ft||""}><span>${Mt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function tt(ct){return ct=ct.replace(/!\[.*?\]\(.*?\)/g,""),ct=ct.replace(/\[.*?\]\(.*?\)/g,""),ct=ct.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ct=ct.replace(/<embed.*?>/g,""),ct=ct.replace(/<img.*?>/g,""),ct=ct.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ct=ct.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ct=ct.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ct=ct.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ct}const Ze=ct=>ct.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(yt,ft){let Mt=ft.replace(/(\n|\r)/g,"").split("}"),Jt=[];return Mt.map(Vt=>{Vt!=""&&Jt.push(`.${Ut.current} ${Vt}`)}),`<style>${Jt.join("}")}</style>`}),we=(0,rt.useMemo)(()=>{try{const Mt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Jt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Vt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Kt=/\(\/attachments\/download\//g;bt=bt.replace(Kt,"("+ge.Z.API_SERVER+"/attachments/download/").replace(Mt,"("+ge.Z.API_SERVER+"/api/attachments/").replace(Jt,'"'+ge.Z.API_SERVER+"/api/attachments/").replace(Vt,'"'+ge.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`)}catch(Mt){}if(at){let Mt=-1;return bt=bt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Jt,Vt,Kt){var Ht;return++Mt,pt(Jt,Mt,(Ht=Ct==null?void 0:Ct[Mt])==null?void 0:Ht.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ze(bt||"")}</pre>`}let ct=Ze(bt);ct=(0,ie.ZP)(ct);const yt=(0,ie.ez)();bt.match(/\[TOC\]/)&&(ct=ct.replace("<p>[TOC]</p>",(0,ie.Qv)()),(0,ie.Iy)()),ct=ct.replace(/(__special_katext_id_\d+__)/g,(Mt,Jt)=>{const{type:Vt,expression:Kt}=yt[Jt];return(0,Pe.renderToString)(Ce(Kt)||"",{displayMode:Vt==="block",throwOnError:!1,output:"html"})}),ct=ct.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ie.AL)();const ft=document.createElement("div");if(ft.innerHTML=ct,Be)return ft.innerText;if(Ye){const Mt=Ye.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Oe(ft,Mt),ft.innerHTML}return setTimeout(()=>Ve(),500),ft.innerHTML},[bt,Ye]);(0,rt.useEffect)(()=>{Ue.current&&Ue.current.querySelectorAll(["input","textarea"]).forEach(yt=>{yt.oninput=be,yt.onblur=Ke,yt.onfocus=Xe})},[kt]),(0,rt.useEffect)(()=>{var ct,yt,ft,Mt,Jt;if(Ct!=null&&Ct.length)try{const Vt=Ue.current.querySelectorAll(".edu-program-fill-score"),Kt=Ue.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ht,tn]of Kt.entries())tn.value=((ct=Ct==null?void 0:Ct[Ht])==null?void 0:ct.value)||"",((yt=Ct==null?void 0:Ct[Ht])==null?void 0:yt.type)==="warning"?tn.className="program-fill-warning":((ft=Ct==null?void 0:Ct[Ht])==null?void 0:ft.type)==="success"?tn.className="program-fill-success":tn.className="";for(const[Ht,tn]of Vt.entries())tn.innerHTML=(Mt=Ct==null?void 0:Ct[Ht])!=null&&Mt.score?`${(Jt=Ct==null?void 0:Ct[Ht])==null?void 0:Jt.score}\u5206`:"";Et(Ct)}catch(Vt){console.log(Vt,"error")}},[Ct]);const be=ct=>{kt[ct.target.dataset.id]=kt[ct.target.dataset.id]||{},kt[ct.target.dataset.id].value=ct.target.value,Et([...kt]),et(kt,ct.target.dataset.id)},Ke=ct=>{kt[ct.target.dataset.id]=kt[ct.target.dataset.id]||{},kt[ct.target.dataset.id].value=ct.target.value,Et([...kt]),it(kt,ct.target.dataset.id)},Xe=ct=>{kt[ct.target.dataset.id]=kt[ct.target.dataset.id]||{},kt[ct.target.dataset.id].value=ct.target.value,Et([...kt]),St(kt,ct.target.dataset.id)};function Oe(ct,yt){return ct.childNodes.forEach(ft=>{var Mt;if(ft.childNodes.length>0)Oe(ft,yt);else if(ft.nodeName!=="IMG")if(ft.innerHTML)ft.innerHTML=(Mt=ft.innerHTML)==null?void 0:Mt.replace(new RegExp(yt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Jt=document.createElement("span");Jt.innerHTML=ft.textContent.replace(new RegExp(yt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ft.replaceWith(Jt)}})}const Ue=(0,rt.useRef)();ie.jb.WebkitLineClamp=ze,ze&&(Qe=le(le({},Qe),ie.jb));function He(ct){let yt=ct.target;if(yt.tagName.toUpperCase()==="A"){let ft=yt.getAttribute("href");if(ft.indexOf("office")>-1)ct.preventDefault(),gt(ft),mt("office");else if(ft.indexOf("application/pdf")>-1)ct.preventDefault(),gt(ft),mt("pdf");else if(ft.indexOf("text/html")>-1)ct.preventDefault(),gt(ft),mt("html");else if(ft.startsWith("#")){ct.preventDefault();let Mt=document.getElementById(ft.replace("#",""));Mt&&Mt.scrollIntoView(!0)}}}const Ve=()=>{var ct;const yt=(ct=Ue.current)==null?void 0:ct.querySelectorAll("video");yt==null||yt.forEach(ft=>{if(ft.oncontextmenu=()=>!1,ft.src.indexOf(".m3u8")>-1&&!ft.canPlayType("application/vnd.apple.mpegurl")){if(Ie.ZP.isSupported()){var Mt=new Ie.ZP;Mt.loadSource(ft.src),Mt.attachMedia(ft)}}})};(0,rt.useEffect)(()=>{if(Ue.current&&we&&we.match(Te)&&window.PR.prettyPrint(),Ue.current)return Ue.current.addEventListener("click",He),()=>{var ct;(ct=Ue.current)==null||ct.removeEventListener("click",He),(0,ie.AL)(),(0,ie.Iy)()}},[we,Ue.current,He]),(0,rt.useEffect)(()=>{var ct;const yt=ft=>{ft.preventDefault(),ft.clipboardData.setData("text",window.getSelection().toString())};return(ct=Ue.current)==null||ct.addEventListener("copy",yt),()=>{var ft;(ft=Ue.current)==null||ft.removeEventListener("copy",yt)}},[Ue.current]);const Je=ct=>/<style[\s\S]*?>/i.test(ct||"");return rt.createElement(rt.Fragment,null,Be&&rt.createElement("div",{ref:Ue},we),!Be&&!Je(we)&&rt.createElement("div",{ref:Ue,style:le({},Qe),className:`${Ne||""} ${ht?"disabled-fill":""} markdown-body ${Ut.current}`,dangerouslySetInnerHTML:{__html:we}}),!Be&&Je(we)&&rt.createElement(xe,{html:we}),rt.createElement(ye.Z,{close:!0,data:Pt,type:Pt!=null&&Pt.length?dt:"",style:le({},$e),onClose:()=>gt("")}))}},17064:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return _e}});var rt=Ge(59301),vt=Ge(34604),ie=Ge(59301),_e=({defaultX:Ie="40%",leftChild:ge,rightChild:ce,className:Pe,hideResize:Ee=!1})=>{const[ye,Me]=(0,rt.useState)(Ie),ve=(0,rt.useRef)();function xe(){ve.current=!0}(0,rt.useEffect)(()=>{function ee(re){ve.current&&(vt.Z.publish("resize-move-bar",re),Me(re.pageX))}function ae(){ve.current=!1}return window.addEventListener("mousemove",ee),window.addEventListener("mouseup",ae),()=>{window.removeEventListener("mousemove",ee),window.removeEventListener("mouseup",ae)}},[]);const fe=typeof ye=="number"&&ye!==.01?`${ye}px`:Ie,z=`calc(100% - ${Ee?"0px":"4px"} - ${fe})`;return ie.createElement("div",{className:`split-panel-container ${Pe}`},ie.createElement("section",{style:{width:fe,display:ye===.01?"none":""}},ge),ie.createElement("section",{className:"resize-x-bar",onMouseDown:xe},ie.createElement("a",{className:"btn-resize"},ie.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},ie.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),ie.createElement("section",{style:{width:z}},ce))}},81939:function(bn,an,Ge){"use strict";Ge.d(an,{cT:function(){return je},pe:function(){return Ce}});var rt=Ge(59301),vt=Ge(54580),ie=Ge(8591),_e=Ge(99064),Ie=Ge(28209),ge=Ge.n(Ie),ce=Ge(1012),Pe=Ge(89070),Ee=Ge(47257),ye=Ge.n(Ee),Me=Object.defineProperty,ve=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Be,ze,Qe)=>ze in Be?Me(Be,ze,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Be[ze]=Qe,re=(Be,ze)=>{for(var Qe in ze||(ze={}))z.call(ze,Qe)&&ae(Be,Qe,ze[Qe]);if(fe)for(var Qe of fe(ze))ee.call(ze,Qe)&&ae(Be,Qe,ze[Qe]);return Be},le=(Be,ze)=>ve(Be,xe(ze)),ue=(Be,ze)=>{var Qe={};for(var $e in Be)z.call(Be,$e)&&ze.indexOf($e)<0&&(Qe[$e]=Be[$e]);if(Be!=null&&fe)for(var $e of fe(Be))ze.indexOf($e)<0&&ee.call(Be,$e)&&(Qe[$e]=Be[$e]);return Qe},pe=(Be,ze,Qe)=>new Promise(($e,Ye)=>{var at=Ct=>{try{ht(Qe.next(Ct))}catch(et){Ye(et)}},ut=Ct=>{try{ht(Qe.throw(Ct))}catch(et){Ye(et)}},ht=Ct=>Ct.done?$e(Ct.value):Promise.resolve(Ct.value).then(at,ut);ht((Qe=Qe.apply(Be,ze)).next())});const{Dragger:Te}=vt.default,Ce=Be=>{const ze="bf3c199c2470cb477d907b1e0917c17b",Qe="5183666c72eec9e4";var $e=ge().enc.Utf8.parse(ze);let Ye=ge().enc.Utf8.parse(Qe);var at=ge().AES.decrypt(Be,$e,{iv:Ye,mode:ge().mode.CBC});return at.toString(ge().enc.Utf8)};let Fe;const Ae=Be=>pe(void 0,[Be],function*({identifier:ze,oldFilename:Qe,newFilename:$e}){var Ye,at,ut,ht,Ct,et;const it=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});it.data=JSON.parse(Ce(it.data));const St=new OSS({endpoint:(Ye=it==null?void 0:it.data)==null?void 0:Ye.end_point,region:(at=it==null?void 0:it.data)==null?void 0:at.region,accessKeyId:(ut=it==null?void 0:it.data)==null?void 0:ut.access_key_id,accessKeySecret:(ht=it==null?void 0:it.data)==null?void 0:ht.access_key_secret,bucket:(Ct=it==null?void 0:it.data)==null?void 0:Ct.bucket,stsToken:(et=it==null?void 0:it.data)==null?void 0:et.security_token});return new Promise((bt,Pt)=>{console.log(11111,`${ze}/${Qe}`,`${ze}/${$e}`,it.data),St.copy(`/${ze}/${Qe}`,`/${ze}/${$e}`).then(gt=>{console.log("\u62F7\u8D1D\u6210\u529F",gt)}).catch(gt=>{console.log(gt)})})}),je=(Be,ze,Qe)=>pe(void 0,null,function*(){var $e,Ye,at,ut,ht,Ct;ze.file_name=Be.name;const et=yield(0,_e.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Ce(et.data)),et.data=JSON.parse(Ce(et.data));const it=Be.name.split(".");it.pop();const St=ze.realFileName?it.join(""):(0,ce.Z)(),bt=new(ye())({endpoint:($e=et==null?void 0:et.data)==null?void 0:$e.end_point,region:(Ye=et==null?void 0:et.data)==null?void 0:Ye.region,accessKeyId:(at=et==null?void 0:et.data)==null?void 0:at.access_key_id,accessKeySecret:(ut=et==null?void 0:et.data)==null?void 0:ut.access_key_secret,bucket:(ht=et==null?void 0:et.data)==null?void 0:ht.bucket,stsToken:(Ct=et==null?void 0:et.data)==null?void 0:Ct.security_token});return new Promise((Pt,gt)=>{var dt;bt.multipartUpload(`${St}`,new Blob([Be],{type:Be.type}),le(re({timeout:200*1e3,partSize:102400},Qe),{callback:{url:(dt=et==null?void 0:et.data)==null?void 0:dt.callback_url,host:et==null?void 0:et.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,_e.rz)(ze)}})).then(function(mt){var kt;Be.response=(kt=mt.data)==null?void 0:kt.data,Pt(mt==null?void 0:mt.data)}).catch(function(mt){gt(mt),console.log("err:",mt)})})}),Ne=Be=>{var ze=Be,{user:Qe,cancelUpload:$e}=ze,Ye=ue(ze,["user","cancelUpload"]);const[at,ut]=(0,rt.useState)([]);let[ht,Ct]=(0,rt.useState)();const et={onRemove:St=>{ut([...at.filter(bt=>bt.name!==St.name)]),Ye.onChange(at.filter(bt=>bt.name!==St.name))},disabled:Ye.disabled,multiple:!0,fileList:at==null?void 0:at.map(St=>St.file),customRequest:()=>{},beforeUpload:St=>pe(void 0,null,function*(){let bt=Ye.maxSize||1073741824;if(at.filter(Pt=>Pt.name===St.name).length){ie.ZP.info(`${St.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(St==null?void 0:St.size)>bt?(ie.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${bt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(at.push({name:St.name,file:St}),ut([...at]),Ye.onChange(at),!1)})},it=(St,bt)=>pe(void 0,null,function*(){var Pt,gt,dt,mt,kt,Et;bt.file_name=St.name;const Ut=St.name,wt=yield(0,_e.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(wt.data=JSON.parse(Ce(wt.data)),(wt==null?void 0:wt.status)!==0){at[at.findIndex(Ze=>Ze.name===Ut)].status="error",at[at.findIndex(Ze=>Ze.name===Ut)].file.status="error",Ye.onChange(at),ie.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}ht=new(ye())({endpoint:(Pt=wt==null?void 0:wt.data)==null?void 0:Pt.end_point,region:(gt=wt==null?void 0:wt.data)==null?void 0:gt.region,accessKeyId:(dt=wt==null?void 0:wt.data)==null?void 0:dt.access_key_id,accessKeySecret:(mt=wt==null?void 0:wt.data)==null?void 0:mt.access_key_secret,bucket:(kt=wt==null?void 0:wt.data)==null?void 0:kt.bucket,stsToken:(Et=wt==null?void 0:wt.data)==null?void 0:Et.security_token}),console.log(St,"file"),Ct(ht);const pt=St.name.split(".");pt.pop();const tt=Ut.indexOf(".")>-1?bt.realFileName?pt.join("."):(0,ce.Z)():Ut;return new Promise((Ze,we)=>{var be;try{ht.multipartUpload(`${Ye.identifier}/${tt}${Ut.indexOf(".")>-1?"."+Ut.split(".").pop():""}`,new Blob([St.file],{type:St.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ke,Xe,Oe)=>{try{console.log("\u8FDB\u5EA6",Ke,Xe,Oe);const Ue=at.findIndex(He=>He.name===Ut);at[Ue].file.percent=Ke*100,at[Ue].tempCheckpoint=Xe,ut([...at])}catch(Ue){}},checkpoint:at[at.findIndex(Ke=>Ke.name===Ut)].tempCheckpoint,callback:{customValue:{id:Ut+""},url:(be=wt==null?void 0:wt.data)==null?void 0:be.callback_url,host:wt==null?void 0:wt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,_e.rz)(bt)}}).then(function(Ke){var Xe,Oe,Ue;const He=at.findIndex(Je=>Je.name===Ut);let Ve="done";if(((Xe=Ke.data)==null?void 0:Xe.status)===0){St.response=(Oe=Ke.data)==null?void 0:Oe.data;const Je=at.findIndex(ct=>ct.name===Ut);at[Je].status="done",at[Je].file.status="done"}else ie.ZP.warning((Ue=Ke.data)==null?void 0:Ue.message),Ve="error";at[He].status=Ve,at[He].file.status=Ve,Ye.onChange(at),Ze(Ke==null?void 0:Ke.data)}).catch(function(Ke){at[at.findIndex(Xe=>Xe.name===Ut)].status="error",at[at.findIndex(Xe=>Xe.name===Ut)].file.status="error",ie.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ut([...at]),Ye.onChange(at),we(Ke),console.log("err:",Ke)})}catch(Ke){}})});return(0,rt.useEffect)(()=>{at.every(St=>St==="done"||St==="error")&&Ye.onComplete(at)},[at]),(0,rt.useEffect)(()=>{$e&&(ht==null||ht.cancel())},[$e]),(0,rt.useEffect)(()=>{Ye.uploading&&at.map(St=>pe(void 0,null,function*(){var bt;if((!St.status||St.status==="error")&&!$e){St.status="uploading",St.file.status="uploading";const Pt=yield it(St,{login:(bt=Qe==null?void 0:Qe.userInfo)==null?void 0:bt.login,container_type:Ye.container_type,container_id:Ye.container_id,description:Ye.description,realFileName:Ye.realFileName})}}))},[Ye.uploading]),rt.createElement(Te,le(re({},et),{height:Ye.height,className:Ye.className}),rt.createElement("p",{className:"ant-upload-hint"},Ye.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};an.ZP=(0,Pe.connect)(({loading:Be,globalSetting:ze,user:Qe})=>({globalSetting:ze,loading:Be.models.competitions,user:Qe}))(Ne)},97692:function(bn,an,Ge){"use strict";Ge.d(an,{h:function(){return pe}});var rt=Ge(59301),vt=Ge(57809),ie=Ge(78241),_e=Ge(3113),Ie=Ge(89780),ge=Ge.n(Ie),ce=Ge(37036),Pe=Ge(95625),Ee=Object.defineProperty,ye=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,z=(Te,Ce,Fe)=>Ce in Te?Ee(Te,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Te[Ce]=Fe,ee=(Te,Ce)=>{for(var Fe in Ce||(Ce={}))xe.call(Ce,Fe)&&z(Te,Fe,Ce[Fe]);if(ve)for(var Fe of ve(Ce))fe.call(Ce,Fe)&&z(Te,Fe,Ce[Fe]);return Te},ae=(Te,Ce)=>ye(Te,Me(Ce));const re=vt.default.Option,le={labelCol:{span:4},wrapperCol:{span:20}},ue={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"]};an.Z=({callback:Te,onCancel:Ce})=>{const[Fe,Ae]=(0,rt.useState)("python");function je(Be){Ae(ue[Be][1])}function Ne(Be){Te(Be)}return rt.createElement(ie.default,ae(ee({},le),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ne,style:{width:500}}),rt.createElement(ie.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},rt.createElement(vt.default,{getPopupContainer:Be=>Be.parentNode,onChange:je},Object.keys(ue).map(Be=>rt.createElement(re,{key:Be,value:Be},ue[Be][0])))),rt.createElement(ie.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},rt.createElement(pe,{mode:Fe})),rt.createElement("div",{className:"flex-container flex-end"},rt.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),rt.createElement(_e.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function pe({value:Te,onChange:Ce,mode:Fe,options:Ae={}}){const je=(0,rt.useRef)(),[Ne,Be]=(0,rt.useState)();return(0,rt.useEffect)(()=>{if(Ne){let ze=function(Qe){const $e=Qe.getValue();Ce&&Ce($e)};return Ne.on("change",ze),()=>{Ne.off("change",ze)}}},[Ne,Ce]),(0,rt.useEffect)(()=>{Ne&&Ne.setOption("mode",Fe)},[Ne,Fe]),(0,rt.useEffect)(()=>{Ne&&(Te!==Ne.getValue()||Te==="")&&setTimeout(()=>{Ne.setValue(Te||"")},300)},[Ne,Te]),(0,rt.useEffect)(()=>{if(je.current&&!Ne){const ze=ge().fromTextArea(je.current,ee({mode:Fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ae));Be(ze)}},[je.current,Ne]),rt.createElement("div",{className:"my-codemirror-container"},rt.createElement("textarea",{ref:je}))}},12290:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Nr}});var rt=Ge(59301),vt=Ge(89780),ie=Ge.n(vt),_e=Ge(76374),Ie=Ge(37036),ge=Ge(6313),ce=Ge(25717),Pe=Ge(99498),Ee=Ge(25419),ye=Ge(67549),Me=Ge(85149),ve=({value:hn="",className:cn,showTextOnly:Ot,showLines:gn,style:Nn={}})=>{const Xt=(0,rt.useMemo)(()=>"",[hn]);return rt.createElement(rt.Fragment,null,rt.createElement("div",{dangerouslySetInnerHTML:{__html:Xt}}))},xe=Ge(59301),fe=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=(hn,cn,Ot)=>cn in hn?fe(hn,cn,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):hn[cn]=Ot,pe=(hn,cn)=>{for(var Ot in cn||(cn={}))re.call(cn,Ot)&&ue(hn,Ot,cn[Ot]);if(ae)for(var Ot of ae(cn))le.call(cn,Ot)&&ue(hn,Ot,cn[Ot]);return hn},Te=(hn,cn)=>z(hn,ee(cn));let Ce=[{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\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",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 Fe({onActionCallback:hn,title:cn,icon:Ot,actionName:gn,className:Nn="",children:Xt}){function zt(){hn(gn)}return xe.createElement("a",{title:cn,className:Nn,onClick:zt},xe.createElement("i",{className:`${Ot}`}),Xt)}var Ae=({watch:hn,showNullButton:cn,showNullProgramButton:Ot,onActionCallback:gn,fullScreen:Nn,insertTemp:Xt,hidetoolBar:zt,extraUse:Pn})=>{const _n=[...Ce,{title:`${hn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${hn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!zt&&_n.map((qn,Yn)=>xe.createElement("li",{key:Yn},qn.actionName?xe.createElement(Fe,Te(pe({},qn),{onActionCallback:gn})):xe.createElement("span",{className:"v-line"}))),cn?xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:gn},xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ot?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:gn},xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:gn},xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Xt&&xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Xt}`,onActionCallback:gn},xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Pn&&xe.createElement("li",null,Pn),xe.createElement("li",{className:"btn-full-screen"},xe.createElement(Fe,{icon:`${Nn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Nn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:gn})))},je=Ge(79346),Ne=Ge(78241),Be=Ge(92832),ze=Ge(3113),Qe=Object.defineProperty,$e=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Ct=(hn,cn,Ot)=>cn in hn?Qe(hn,cn,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):hn[cn]=Ot,et=(hn,cn)=>{for(var Ot in cn||(cn={}))ut.call(cn,Ot)&&Ct(hn,Ot,cn[Ot]);if(at)for(var Ot of at(cn))ht.call(cn,Ot)&&Ct(hn,Ot,cn[Ot]);return hn},it=(hn,cn)=>$e(hn,Ye(cn));const St={labelCol:{span:4},wrapperCol:{span:20}};var bt=({callback:hn,onCancel:cn})=>{function Ot(gn){hn(gn)}return rt.createElement(Ne.default,it(et({},St),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ot,style:{width:500}}),rt.createElement(Ne.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},rt.createElement(Be.default,null)),rt.createElement(Ne.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},rt.createElement(Be.default,null)),rt.createElement("div",{className:"flex-container flex-end"},rt.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),rt.createElement(ze.ZP,{type:"ghost",onClick:cn},"\u53D6\u6D88")))},Pt=Ge(97692),gt=Ge(28451),dt=Ge(43418),mt=Ge(95237),kt=Ge(73524),Et=Ge(59301),Ut=({callback:hn,onCancel:cn})=>{const Ot=document.createElement("canvas"),gn=Ot.getContext("2d");Ot.width=1e3,Ot.height=800,gn.fillStyle="#ffffff",gn.fillRect(0,0,Ot.width,Ot.height);const Nn=Ot.toDataURL("image/png");return Et.createElement(dt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Et.createElement(mt.Z,{style:{height:"100vh"}},Et.createElement(kt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Nn,visible:!0,title:String(Date.now())},onOk:Xt=>{hn({src:Xt.url})},onClose:cn})))},wt=Ge(12378);function pt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(pt,go.CommandHandler),pt.prototype.canAlignSelection=function(){var hn=this.diagram;return!(hn===null||hn.isReadOnly||hn.isModelReadOnly||hn.selection.count<2)},pt.prototype.alignLeft=function(){var hn=this.diagram;hn.startTransaction("aligning left");var cn=1/0;hn.selection.each(function(Ot){Ot instanceof go.Link||(cn=Math.min(Ot.position.x,cn))}),hn.selection.each(function(Ot){Ot instanceof go.Link||Ot.move(new go.Point(cn,Ot.position.y))}),hn.commitTransaction("aligning left")},pt.prototype.alignRight=function(){var hn=this.diagram;hn.startTransaction("aligning right");var cn=-1/0;hn.selection.each(function(Ot){if(!(Ot instanceof go.Link)){var gn=Ot.actualBounds.x+Ot.actualBounds.width;cn=Math.max(gn,cn)}}),hn.selection.each(function(Ot){Ot instanceof go.Link||Ot.move(new go.Point(cn-Ot.actualBounds.width,Ot.position.y))}),hn.commitTransaction("aligning right")},pt.prototype.alignTop=function(){var hn=this.diagram;hn.startTransaction("alignTop");var cn=1/0;hn.selection.each(function(Ot){Ot instanceof go.Link||(cn=Math.min(Ot.position.y,cn))}),hn.selection.each(function(Ot){Ot instanceof go.Link||Ot.move(new go.Point(Ot.position.x,cn))}),hn.commitTransaction("alignTop")},pt.prototype.alignBottom=function(){var hn=this.diagram;hn.startTransaction("aligning bottom");var cn=-1/0;hn.selection.each(function(Ot){if(!(Ot instanceof go.Link)){var gn=Ot.actualBounds.y+Ot.actualBounds.height;cn=Math.max(gn,cn)}}),hn.selection.each(function(Ot){Ot instanceof go.Link||Ot.move(new go.Point(Ot.actualBounds.x,cn-Ot.actualBounds.height))}),hn.commitTransaction("aligning bottom")},pt.prototype.alignCenterX=function(){var hn=this.diagram,cn=hn.selection.first();if(cn){hn.startTransaction("aligning Center X");var Ot=cn.actualBounds.x+cn.actualBounds.width/2;hn.selection.each(function(gn){gn instanceof go.Link||gn.move(new go.Point(Ot-gn.actualBounds.width/2,gn.actualBounds.y))}),hn.commitTransaction("aligning Center X")}},pt.prototype.alignCenterY=function(){var hn=this.diagram,cn=hn.selection.first();if(cn){hn.startTransaction("aligning Center Y");var Ot=cn.actualBounds.y+cn.actualBounds.height/2;hn.selection.each(function(gn){gn instanceof go.Link||gn.move(new go.Point(gn.actualBounds.x,Ot-gn.actualBounds.height/2))}),hn.commitTransaction("aligning Center Y")}},pt.prototype.alignColumn=function(hn){var cn=this.diagram;cn.startTransaction("align Column"),hn===void 0&&(hn=0),hn=parseFloat(hn);var Ot=new Array;cn.selection.each(function(Pn){Pn instanceof go.Link||Ot.push(Pn)});for(var gn=0;gn<Ot.length-1;gn++){var Nn=Ot[gn],Xt=Nn.actualBounds.y+Nn.actualBounds.height+hn,zt=Ot[gn+1];zt.move(new go.Point(Nn.actualBounds.x,Xt))}cn.commitTransaction("align Column")},pt.prototype.alignRow=function(hn){hn===void 0&&(hn=0),hn=parseFloat(hn);var cn=this.diagram;cn.startTransaction("align Row");var Ot=new Array;cn.selection.each(function(Pn){Pn instanceof go.Link||Ot.push(Pn)});for(var gn=0;gn<Ot.length-1;gn++){var Nn=Ot[gn],Xt=Nn.actualBounds.x+Nn.actualBounds.width+hn,zt=Ot[gn+1];zt.move(new go.Point(Xt,Nn.actualBounds.y))}cn.commitTransaction("align Row")},pt.prototype.canRotate=function(hn){var cn=this.diagram;return!(cn===null||cn.isReadOnly||cn.isModelReadOnly||cn.selection.count<1)},pt.prototype.rotate=function(hn){hn===void 0&&(hn=90);var cn=this.diagram;cn.startTransaction("rotate "+hn.toString());var cn=this.diagram;cn.selection.each(function(Ot){Ot instanceof go.Link||Ot instanceof go.Group||(Ot.angle+=hn)}),cn.commitTransaction("rotate "+hn.toString())},pt.prototype.pullToFront=function(){var hn=this.diagram;hn.startTransaction("pullToFront");var cn=new go.Map;hn.selection.each(function(Ot){cn.set(Ot.layer,0)}),cn.iteratorKeys.each(function(Ot){var gn=0;Ot.parts.each(function(Nn){if(!Nn.isSelected){var Xt=Nn.zOrder;isNaN(Xt)?Nn.zOrder=0:gn=Math.max(gn,Xt)}}),cn.set(Ot,gn)}),hn.selection.each(function(Ot){pt._assignZOrder(Ot,cn.get(Ot.layer)+1)}),hn.commitTransaction("pullToFront")},pt.prototype.pushToBack=function(){var hn=this.diagram;hn.startTransaction("pushToBack");var cn=new go.Map;hn.selection.each(function(Ot){cn.set(Ot.layer,0)}),cn.iteratorKeys.each(function(Ot){var gn=0;Ot.parts.each(function(Nn){if(!Nn.isSelected){var Xt=Nn.zOrder;isNaN(Xt)?Nn.zOrder=0:gn=Math.min(gn,Xt)}}),cn.set(Ot,gn)}),hn.selection.each(function(Ot){pt._assignZOrder(Ot,cn.get(Ot.layer)-1-pt._findGroupDepth(Ot))}),hn.commitTransaction("pushToBack")},pt._assignZOrder=function(hn,cn,Ot){Ot===void 0&&(Ot=hn),hn.layer===Ot.layer&&(hn.zOrder=cn),hn instanceof go.Group&&hn.memberParts.each(function(gn){pt._assignZOrder(gn,cn+1,Ot)})},pt._findGroupDepth=function(hn){if(hn instanceof go.Group){var cn=0;return hn.memberParts.each(function(Ot){cn=Math.max(cn,pt._findGroupDepth(Ot))}),cn+1}else return 0},pt.prototype.doKeyDown=function(){var hn=this.diagram;if(hn!==null){var cn=hn.lastInput;if(cn.key==="Up"||cn.key==="Down"||cn.key==="Left"||cn.key==="Right"){var Ot=this.arrowKeyBehavior;if(Ot==="none")return;if(Ot==="select"){this._arrowKeySelect();return}else if(Ot==="move"){this._arrowKeyMove();return}else if(Ot==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},pt.prototype._getAllParts=function(){var hn=new Array;return this.diagram.nodes.each(function(cn){hn.push(cn)}),this.diagram.parts.each(function(cn){hn.push(cn)}),hn},pt.prototype._arrowKeyMove=function(){var hn=this.diagram,cn=hn.lastInput,Ot=0,gn=0;if(cn.control||cn.meta)Ot=1,gn=1;else if(hn.grid!==null){var Nn=hn.grid.gridCellSize;gn=Nn.width,Ot=Nn.height}hn.startTransaction("arrowKeyMove"),hn.selection.each(function(Xt){cn.key==="Up"?Xt.move(new go.Point(Xt.actualBounds.x,Xt.actualBounds.y-Ot)):cn.key==="Down"?Xt.move(new go.Point(Xt.actualBounds.x,Xt.actualBounds.y+Ot)):cn.key==="Left"?Xt.move(new go.Point(Xt.actualBounds.x-gn,Xt.actualBounds.y)):cn.key==="Right"&&Xt.move(new go.Point(Xt.actualBounds.x+gn,Xt.actualBounds.y))}),hn.commitTransaction("arrowKeyMove")},pt.prototype._arrowKeySelect=function(){var hn=this.diagram,cn=hn.lastInput,Ot=null;cn.key==="Up"?Ot=this._findNearestPartTowards(270):cn.key==="Down"?Ot=this._findNearestPartTowards(90):cn.key==="Left"?Ot=this._findNearestPartTowards(180):cn.key==="Right"&&(Ot=this._findNearestPartTowards(0)),Ot!==null&&(cn.shift?Ot.isSelected=!0:cn.control||cn.meta?Ot.isSelected=!Ot.isSelected:hn.select(Ot))},pt.prototype._findNearestPartTowards=function(hn){var cn=this.diagram.selection.first();if(cn===null)return null;for(var Ot=cn.actualBounds.center,gn=this._getAllParts(),Nn=1/0,Xt=cn,zt=0;zt<gn.length;zt++){var Pn=gn[zt];if(Pn!==cn&&Pn.canSelect()){var _n=Pn.actualBounds.center,qn=Ot.directionPoint(_n),Yn=this._angleCloseness(qn,hn);if(Yn<=45){var $t=Ot.distanceSquaredPoint(_n);$t*=1+Math.sin(Yn*Math.PI/180),$t<Nn&&(Nn=$t,Xt=Pn)}}}return Xt},pt.prototype._angleCloseness=function(hn,cn){return Math.min(Math.abs(cn-hn),Math.min(Math.abs(cn+360-hn),Math.abs(cn-360-hn)))},pt.prototype._arrowKeyTree=function(){var hn=this.diagram,cn=hn.selection.first();if(cn instanceof go.Node){var Ot=hn.lastInput;if(Ot.key==="Right"){if(!cn.isTreeLeaf)if(!cn.isTreeExpanded)hn.commandHandler.canExpandTree(cn)&&hn.commandHandler.expandTree(cn);else{var gn=this._sortTreeChildrenByY(cn).first();gn!==null&&hn.select(gn)}}else if(Ot.key==="Left")if(!cn.isTreeLeaf&&cn.isTreeExpanded)hn.commandHandler.canCollapseTree(cn)&&hn.commandHandler.collapseTree(cn);else{var Nn=cn.findTreeParentNode();Nn!==null&&hn.select(Nn)}else if(Ot.key==="Up"){var Nn=cn.findTreeParentNode();if(Nn!==null){var Xt=this._sortTreeChildrenByY(Nn),zt=Xt.indexOf(cn);if(zt>0){for(var Pn=Xt.elt(zt-1);Pn!==null&&Pn.isTreeExpanded&&!Pn.isTreeLeaf;){var _n=this._sortTreeChildrenByY(Pn);Pn=_n.last()}Pn!==null&&hn.select(Pn)}else hn.select(Nn)}}else if(Ot.key==="Down")if(cn.isTreeExpanded&&!cn.isTreeLeaf){var gn=this._sortTreeChildrenByY(cn).first();gn!==null&&hn.select(gn)}else for(;cn!==null;){var Nn=cn.findTreeParentNode();if(Nn===null)break;var Xt=this._sortTreeChildrenByY(Nn),zt=Xt.indexOf(cn);if(zt<Xt.length-1){hn.select(Xt.elt(zt+1));break}else cn=Nn}var qn=hn.selection.first();qn!==null&&hn.scrollToRect(qn.actualBounds)}},pt.prototype._sortTreeChildrenByY=function(hn){var cn=new go.List().addAll(hn.findTreeChildrenNodes());return cn.sort(function(Ot,gn){var Nn=Ot.location,Xt=gn.location;return Nn.y<Xt.y?-1:Nn.y>Xt.y?1:Nn.x<Xt.x?-1:Nn.x>Xt.x?1:0}),cn},pt.prototype.copyToClipboard=function(hn){go.CommandHandler.prototype.copyToClipboard.call(this,hn),this._lastPasteOffset.set(this.pasteOffset)},pt.prototype.pasteFromClipboard=function(){var hn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(hn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),hn},Object.defineProperty(pt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(hn){if(hn!=="move"&&hn!=="select"&&hn!=="scroll"&&hn!=="tree"&&hn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+hn);this._arrowKeyBehavior=hn}}),Object.defineProperty(pt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(hn){if(!(hn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+hn);this._pasteOffset.set(hn)}});var tt=pt,Ze=Ge(74413),we=Ge(43604),be=Ge(99064),Ke={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Xe=Ge(24065),Oe=Ge(59301),Ue=(hn,cn,Ot)=>new Promise((gn,Nn)=>{var Xt=_n=>{try{Pn(Ot.next(_n))}catch(qn){Nn(qn)}},zt=_n=>{try{Pn(Ot.throw(_n))}catch(qn){Nn(qn)}},Pn=_n=>_n.done?gn(_n.value):Promise.resolve(_n.value).then(Xt,zt);Pn((Ot=Ot.apply(hn,cn)).next())});function He({onCancel:hn,callback:cn}){let Ot=(0,rt.useRef)(),gn=(0,rt.useRef)(),Nn=(0,rt.useRef)(),Xt=(0,rt.useRef)(!1);const zt=(0,rt.useRef)(!1),[Pn,_n]=(0,rt.useState)(0);function qn(){const $t=wt.bx.make,jn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Ot.current=new wt.S0(gn.current,{padding:20,grid:$t(wt.s_,"Grid",$t(wt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),$t(wt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Jn=>{var lr=Jn.diagram.commandHandler.addTopLevelParts(Jn.diagram.selection,!0);lr||Jn.diagram.currentTool.doCancel()},commandHandler:$t(tt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Jn=>{var lr=Jn.subject;lr.location=lr.location.copy().snapToGridPoint(Jn.diagram.grid.gridOrigin,Jn.diagram.grid.gridCellSize),setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Jn=>{var lr=Jn.subject;setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Jn=>{var lr=Jn.parameter.part;lr.invalidateConnectedLinks();var vr=Jn.subject;Jn.diagram.toolManager.linkingTool.isForwards?vr.toNode.invalidateConnectedLinks():vr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ot.current.nodeTemplate=$t(wt.NB,"Auto",{locationSpot:wt.z6.Center,locationObjectName:"SHAPE",desiredSize:new wt.$u(120,60),minSize:new wt.$u(40,40),resizable:!0,resizeCellSize:new wt.$u(10,10),rotatable:!0},new wt.KX("location","loc",wt.E9.parse).makeTwoWay(wt.E9.stringify),new wt.KX("desiredSize","size",wt.$u.parse).makeTwoWay(wt.$u.stringify),$t(wt.bn,{name:"SHAPE",fill:jn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:wt.z6.AllSides,toSpot:wt.z6.AllSides},new wt.KX("figure"),new wt.KX("fill"),new wt.KX("stroke","borderColor"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),$t(wt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),$t(wt.al,{margin:1,textAlign:"center",overflow:wt.al.OverflowEllipsis,editable:!0},new wt.KX("text").makeTwoWay(),new wt.KX("stroke","color"))),Ot.current.nodeTemplate.toolTip=$t("ToolTip",$t(wt.s_,"Vertical",{maxSize:new wt.$u(200,NaN)},$t(wt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new wt.KX("text")),$t(wt.al,{font:"10pt sans-serif",textAlign:"center"},new wt.KX("text","details"))));function Wn(Jn,lr){var vr=(Sr,Kr)=>{Sr.handled=!0,Sr.diagram.model.commit(ai=>{var Br=Kr.part.adornedPart,br=new wt.E9().setRectSpot(Br.actualBounds,Jn);br.subtract(Br.location),br.scale(2,2),br.x+=Math.sign(br.x)*130,br.y+=Math.sign(br.y)*130,br.add(Br.location),br.snapToGridPoint(Sr.diagram.grid.gridOrigin,Sr.diagram.grid.gridCellSize);var si=ai.copyNodeData(Br.data);ai.setGroupKeyForNodeData(si,ai.getGroupKeyForNodeData(Br.data)),ai.addNodeData(si);var Tn={from:Br.key,to:ai.getKeyForNodeData(si)};ai.addLinkData(Tn);var Ri=Sr.diagram.findNodeForData(si);Ri.location=br,Sr.diagram.select(Ri),setTimeout(()=>{Sr.diagram.commandHandler.editTextBlock()},20)})};return $t(wt.bn,{figure:lr,alignment:Jn,alignmentFocus:Jn.opposite(),width:Jn.equals(wt.z6.Top)||Jn.equals(wt.z6.Bottom)?25:18,height:Jn.equals(wt.z6.Top)||Jn.equals(wt.z6.Bottom)?18:25,fill:"orange",stroke:jn.white,strokeWidth:4,mouseEnter:(Sr,Kr)=>Kr.fill="dodgerblue",mouseLeave:(Sr,Kr)=>Kr.fill="orange",isActionable:!0,click:vr,contextClick:vr})}function or(Jn){return $t(wt.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(lr,vr)=>vr.fill="dodgerblue",mouseLeave:(lr,vr)=>vr.fill="orange",click:(lr,vr)=>{lr.diagram.commandHandler.showContextMenu(vr.part.adornedPart)}},Jn||{})}Ot.current.nodeTemplate.selectionAdornmentTemplate=$t(wt.uz,"Spot",$t(wt.Vm,{padding:10}),Wn(wt.z6.Top,"TriangleUp"),Wn(wt.z6.Left,"TriangleLeft"),Wn(wt.z6.Right,"TriangleRight"),Wn(wt.z6.Bottom,"TriangleDown"),or({alignment:new wt.z6(.75,0)}));function nn(Jn,lr){return(vr,Sr)=>{vr.handled=!0,vr.diagram.model.commit(Kr=>{Kr.set(Sr.part.adornedPart.data,Jn,lr)})}}function Cn(Jn,lr){return lr||(lr="color"),$t(wt.bn,{width:16,height:16,stroke:"lightgray",fill:Jn,margin:1,background:"transparent",mouseEnter:(vr,Sr)=>Sr.stroke="dodgerblue",mouseLeave:(vr,Sr)=>Sr.stroke="lightgray",click:nn(lr,Jn),contextClick:nn(lr,Jn)})}function rn(){return[$t("ContextMenuButton",$t(wt.s_,"Horizontal",Cn(jn.white,"fill"),Cn(jn.beige,"fill"),Cn(jn.extralightblue,"fill"),Cn(jn.extralightred,"fill"))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",Cn(jn.lightgray,"fill"),Cn(jn.lightgreen,"fill"),Cn(jn.lightblue,"fill"),Cn(jn.lightred,"fill")))]}function mn(){return[$t("ContextMenuButton",$t(wt.s_,"Horizontal",Cn(jn.black),Cn(jn.green),Cn(jn.blue),Cn(jn.red))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",Cn(jn.white),Cn(jn.magenta),Cn(jn.purple),Cn(jn.orange)))]}function En(Jn,lr){return lr||(lr="thickness"),$t(wt.bn,"LineH",{width:16,height:16,strokeWidth:Jn,margin:1,background:"transparent",mouseEnter:(vr,Sr)=>Sr.background="dodgerblue",mouseLeave:(vr,Sr)=>Sr.background="transparent",click:nn(lr,Jn),contextClick:nn(lr,Jn)})}function pn(Jn,lr){return lr||(lr="dash"),$t(wt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Jn,margin:1,background:"transparent",mouseEnter:(vr,Sr)=>Sr.background="dodgerblue",mouseLeave:(vr,Sr)=>Sr.background="transparent",click:nn(lr,Jn),contextClick:nn(lr,Jn)})}function kn(){return[$t("ContextMenuButton",$t(wt.s_,"Horizontal",En(1),En(2),En(3),En(4))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",pn(null),pn([2,4]),pn([4,4])))]}function Mn(Jn,lr){return lr||(lr="figure"),$t(wt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Jn,margin:1,background:"transparent",mouseEnter:(vr,Sr)=>Sr.fill="dodgerblue",mouseLeave:(vr,Sr)=>Sr.fill="lightgray",click:nn(lr,Jn),contextClick:nn(lr,Jn)})}Ot.current.nodeTemplate.contextMenu=$t("ContextMenu",$t("ContextMenuButton",$t(wt.s_,"Horizontal",Mn("Rectangle"),Mn("RoundedRectangle"),Mn("Ellipse"),Mn("Diamond"))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",Mn("Parallelogram2"),Mn("ManualOperation"),Mn("Procedure"),Mn("Cylinder1"))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",Mn("Terminator"),Mn("CreateRequest"),Mn("Document"),Mn("TriangleDown"))),rn(),mn(),kn()),Ot.current.groupTemplate=$t(wt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:wt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Jn,lr)=>{var vr=lr.addMembers(lr.diagram.selection,!0);vr||lr.diagram.currentTool.doCancel()},avoidable:!1},new wt.KX("location","loc",wt.E9.parse).makeTwoWay(wt.E9.stringify),$t(wt.s_,"Auto",{name:"BODY"},$t(wt.bn,{parameter1:10,fill:jn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:wt.z6.AllSides,toSpot:wt.z6.AllSides},new wt.KX("fill"),new wt.KX("stroke","color"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),$t(wt.Vm,{background:"transparent",margin:20})),$t(wt.al,{alignment:wt.z6.Top,alignmentFocus:wt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new wt.KX("text"),new wt.KX("stroke","color"))),Ot.current.groupTemplate.selectionAdornmentTemplate=$t(wt.uz,"Spot",$t(wt.s_,"Auto",$t(wt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),$t(wt.Vm,{margin:1.5})),or({alignment:wt.z6.TopRight,alignmentFocus:wt.z6.BottomRight})),Ot.current.groupTemplate.contextMenu=$t("ContextMenu",rn(),mn(),kn()),Ot.current.linkTemplate=$t(wt.rU,{layerName:"Foreground",routing:wt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new wt.KX("fromSpot","fromSpot",wt.z6.parse),new wt.KX("toSpot","toSpot",wt.z6.parse),new wt.KX("fromShortLength","dir",Jn=>Jn>=1?10:0),new wt.KX("toShortLength","dir",Jn=>Jn>=1?10:0),new wt.KX("points").makeTwoWay(),$t(wt.bn,{strokeWidth:2},new wt.KX("stroke","color"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),$t(wt.bn,{segmentIndex:0,segmentOffset:new wt.E9(15,0),segmentOrientation:wt.rU.OrientAlong,alignmentFocus:wt.z6.Right,figure:"circle",width:10,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Jn=>Jn===1)),$t(wt.bn,{segmentIndex:-1,segmentOffset:new wt.E9(-10,6),segmentOrientation:wt.rU.OrientPlus90,alignmentFocus:wt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Jn=>Jn>=1),new wt.KX("width","thickness",Jn=>7+3*Jn),new wt.KX("height","thickness",Jn=>7+3*Jn),new wt.KX("segmentOffset","thickness",Jn=>new wt.E9(-15,4+1.5*Jn))),$t(wt.bn,{segmentIndex:0,segmentOffset:new wt.E9(15,-6),segmentOrientation:wt.rU.OrientMinus90,alignmentFocus:wt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Jn=>Jn===2),new wt.KX("width","thickness",Jn=>7+3*Jn),new wt.KX("height","thickness",Jn=>7+3*Jn),new wt.KX("segmentOffset","thickness",Jn=>new wt.E9(-15,4+1.5*Jn))),$t(wt.al,{alignmentFocus:new wt.z6(0,1,-4,0),editable:!0},new wt.KX("text").makeTwoWay(),new wt.KX("stroke","color"))),Ot.current.linkTemplate.selectionAdornmentTemplate=$t(wt.uz,$t(wt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:zn(2)},new wt.KX("pathPattern","thickness",zn)),or({alignmentFocus:new wt.z6(0,0,-6,-4)}));function zn(Jn){return $t(wt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Jn+4).toString()+" H3"})}function Dn(Jn){var lr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Jn===0?lr="M0 0 M16 16 M0 8 L16 8":Jn===2&&(lr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),$t(wt.bn,{geometryString:lr,margin:2,background:"transparent",mouseEnter:(vr,Sr)=>Sr.background="dodgerblue",mouseLeave:(vr,Sr)=>Sr.background="transparent",click:nn("dir",Jn),contextClick:nn("dir",Jn)})}function ar(Jn){var lr=(vr,Sr)=>{vr.handled=!0,vr.diagram.model.commit(Kr=>{var ai=Sr.part.adornedPart;Kr.set(ai.data,Jn?"toSpot":"fromSpot",wt.z6.stringify(wt.z6.AllSides)),(Jn?ai.toNode:ai.fromNode).invalidateConnectedLinks()})};return $t(wt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(vr,Sr)=>Sr.background="dodgerblue",mouseLeave:(vr,Sr)=>Sr.background="transparent",click:lr,contextClick:lr})}function dn(Jn,lr){var vr=0,Sr=wt.z6.RightSide;Jn.equals(wt.z6.Top)?(vr=270,Sr=wt.z6.TopSide):Jn.equals(wt.z6.Left)?(vr=180,Sr=wt.z6.LeftSide):Jn.equals(wt.z6.Bottom)&&(vr=90,Sr=wt.z6.BottomSide),lr||(vr-=180);var Kr=(ai,Br)=>{ai.handled=!0,ai.diagram.model.commit(br=>{var si=Br.part.adornedPart;br.set(si.data,lr?"toSpot":"fromSpot",wt.z6.stringify(Sr)),(lr?si.toNode:si.fromNode).invalidateConnectedLinks()})};return $t(wt.bn,{alignment:Jn,alignmentFocus:Jn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:vr,background:"transparent",mouseEnter:(ai,Br)=>Br.background="dodgerblue",mouseLeave:(ai,Br)=>Br.background="transparent",click:Kr,contextClick:Kr})}Ot.current.linkTemplate.contextMenu=$t("ContextMenu",mn(),kn(),$t("ContextMenuButton",$t(wt.s_,"Horizontal",Dn(0),Dn(1),Dn(2))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",$t(wt.s_,"Spot",ar(!1),dn(wt.z6.Top,!1),dn(wt.z6.Left,!1),dn(wt.z6.Right,!1),dn(wt.z6.Bottom,!1)),$t(wt.s_,"Spot",{margin:new wt.Zt(0,0,0,2)},ar(!0),dn(wt.z6.Top,!0),dn(wt.z6.Left,!0),dn(wt.z6.Right,!0),dn(wt.z6.Bottom,!0)))));const Or=`{ "class": "GraphLinksModel",
|
|
|
"nodeDataArray": [
|
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
|
],
|
|
|
"linkDataArray": [
|
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
|
]}`;var Jr=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Rr(Jn){return console.log("shapeName:",Jn),Jr.indexOf(Jn)>=0}var vn=new wt.YI(Nn.current,{maxSelectionCount:1,linkTemplate:$t(wt.rU,{locationSpot:wt.z6.Center,selectionAdornmentTemplate:$t(wt.uz,"Link",{locationSpot:wt.z6.Center},$t(wt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),$t(wt.bn,{toArrow:"Standard",stroke:null}))},{routing:wt.rU.AvoidsNodes,curve:wt.rU.JumpOver,corner:5,toShortLength:4},new wt.KX("points"),$t(wt.bn,{isPanelMain:!0,strokeWidth:2}),$t(wt.bn,{toArrow:"Standard",stroke:null})),model:new wt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...wt.bn.getFigureGenerators().toArray().map(Jn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Jn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ot.current.addDiagramListener("TextEdited",function(Jn){var lr;const vr=Jn.subject.part;var Sr=(lr=document.activeElement)==null?void 0:lr.value;typeof Sr=="string"&&Sr.trim()===""&&Ot.current.model.commit(function(Kr){Kr.set(vr.data,"text","\u672A\u547D\u540D"),Ot.current.commandHandler.stopCommand()},"increment")}),vn.nodeTemplate=$t(wt.NB,"Auto",{locationSpot:wt.z6.Center},new wt.KX("location","location",wt.E9.parse).makeTwoWay(wt.E9.stringify),$t(wt.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new wt.KX("stroke").makeTwoWay(),new wt.KX("fill").makeTwoWay(),new wt.KX("figure")),$t(wt.al,{margin:new wt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new wt.$u(16,16),maxSize:new wt.$u(10,NaN),textAlign:"center",editable:!0},new wt.KX("key").makeTwoWay())),setTimeout(()=>{Ot.current.grid=$t(wt.s_,"Grid",$t(wt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),$t(wt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ot.current.grid.visible=!0,Ot.current.grid.gridCellStroke="darkgray",Ot.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ot.current,Ot.current}const Yn=()=>Ue(this,null,function*(){var $t,jn=Ot.current.makeImage();const Wn=yield(0,be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:jn.src,file_data:JSON.stringify({login:($t=(0,Xe.eY)())==null?void 0:$t.login,data:JSON.parse(Ot.current.model.toJson())})}});cn({src:Wn.url})});return(0,rt.useEffect)(()=>(setTimeout(()=>{qn()},500),_n(Pn+1),()=>{Ot.current=null}),[]),Oe.createElement("div",{ref:zt,className:Xt.current?`${Ke.maxH60} body-overflow-initial`:"body-overflow-initial"},Oe.createElement(dt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Pn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Oe.createElement(mt.Z,null,Oe.createElement(we.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Oe.createElement(we.Z,{onClick:()=>{var $t,jn,Wn=Ot.current.selection.first();if(Xt.current=!Xt.current,document.activeElement&&Wn){let or=(jn=($t=document.activeElement)==null?void 0:$t.value)==null?void 0:jn.trim();typeof or=="string"&&Ot.current.model.commit(function(nn){nn.set(Wn.data,"text",or||"\u672A\u547D\u540D"),Ot.current.commandHandler.stopCommand()},"increment")}_n(Pn+1)}},Oe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:hn},Oe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ke.flowChartWrp},Oe.createElement("div",{style:{display:"flex",height:"100%"}},Oe.createElement("div",{style:{width:"300px",height:"100%"}},Oe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Oe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ke.myPaletteDiv,ref:Nn})),Oe.createElement("div",{style:{flex:1,position:"relative"}},Oe.createElement("div",{ref:gn,style:{height:"80vh"}}))),Oe.createElement("div",{className:"tr"},Oe.createElement(ze.ZP,{size:"large",onClick:Yn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ve=He,Je=Ge(5112),ct=Ge(5871);const yt=Je.ZP.Group,ft={margin:"0 8px"};var Mt=({callback:hn,onCancel:cn})=>{function Ot(gn){hn(gn)}return rt.createElement(Ne.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ot},rt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},rt.createElement("span",{style:ft},"\u5355\u5143\u683C\u6570\uFF1A"),rt.createElement("span",{style:ft},"\u884C\u6570"),rt.createElement(Ne.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},rt.createElement(ct.Z,null)),rt.createElement("span",{style:ft},"\u5217\u6570"),rt.createElement(Ne.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},rt.createElement(ct.Z,null))),rt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},rt.createElement("span",{style:ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),rt.createElement(Ne.default.Item,{name:"align"},rt.createElement(yt,null,rt.createElement(Je.ZP,{value:"default"},rt.createElement("i",{className:"fa fa-align-justify"})),rt.createElement(Je.ZP,{value:"left"},rt.createElement("i",{className:"fa fa-align-left"})),rt.createElement(Je.ZP,{value:"center"},rt.createElement("i",{className:"fa fa-align-center"})),rt.createElement(Je.ZP,{value:"right"},rt.createElement("i",{className:"fa fa-align-right"}))))),rt.createElement("div",{className:"flex-container flex-end"},rt.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),rt.createElement(ze.ZP,{type:"ghost",onClick:cn},"\u53D6\u6D88")))},Jt=Ge(78673),Vt=Ge(80727),Kt=Ge.n(Vt),tn=(0,rt.forwardRef)(({use3d:hn,width:cn,height:Ot,callback:gn,showSaveButton:Nn},Xt)=>{const zt=(0,rt.useRef)(),Pn=(0,rt.useRef)(),[_n,qn]=(0,rt.useState)(!1),Yn=(0,rt.useRef)({id:zt,appName:"graphing",width:cn||1e3,height:Ot||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,rt.useEffect)(()=>{Pn.current=new(Kt())(Yn.current,!0),window.onload=function(){Pn.current.inject("applet_container")}},[]);const $t=()=>{var jn=window.ggbApplet.getPNGBase64(1,!0,72);return gn&&gn(jn),jn};return(0,rt.useEffect)(()=>{Yn.current.appName=_n?"3D":"graphing",Pn.current.inject("applet_container")},[_n]),(0,rt.useEffect)(()=>{qn(hn)},[hn]),(0,rt.useImperativeHandle)(Xt,()=>({getImgData:$t})),rt.createElement(rt.Fragment,null,rt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:zt}),rt.createElement(mt.Z,{align:"middle"},rt.createElement(we.Z,{flex:1},rt.createElement(Jt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:_n,onChange:jn=>qn(jn)})),rt.createElement(we.Z,null,rt.createElement(ze.ZP,{size:"large",onClick:$t,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),It=Ge(41588),Dt=Ge(8591);const qt="link",sn="upload-image",xn="add-flowchart",Ln="draw-image",Zn="add-flowchart",Xn="code-block",dr="add-table",fr="------------",pr={default:fr,left:`:${fr}`,center:`:${fr}:`,right:`${fr}:`};var Cr=Ge(58856);function Yr(){}let ii=0;const jr=1e4,fi="\u2581",Lr="@\u2581\u2581@",ot="@\u2581@",oi=`
|
|
|
**\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`,yi=["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 Pi(hn){return/^\d+$/.test(hn)?`${hn}px`:hn}const Ar=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Fr={[Ar+"-B"]:"bold",[Ar+"-I"]:"italic"},Si={[qt]:"\u6DFB\u52A0\u94FE\u63A5",[Xn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[sn]:"\u6DFB\u52A0\u56FE\u7247",[Ln]:"\u6DFB\u52A0\u753B\u56FE",[xn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[dr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Nr=({defaultValue:hn="",onChange:cn,width:Ot="100%",height:gn=400,miniToolbar:Nn=!1,isFocus:Xt=!1,watch:zt,insertTemp:Pn,mode:_n="markdown",id:qn="markdown-editor-id",showResizeBar:Yn=!1,noStorage:$t=!1,showNullButton:jn=!1,showNullProgramButton:Wn=!1,hidetoolBar:or=!1,fullScreen:nn=!1,onBlur:Cn,onCMBeforeChange:rn,onFullScreen:mn,className:En="",disablePaste:pn=!1,disabled:kn=!1,disabledFill:Mn=!1,placeholder:zn="",values:Dn="",extraUse:ar})=>{const[dn,Or]=(0,rt.useState)(null),[Jr,Rr]=(0,rt.useState)(hn),[vn,Jn]=(0,rt.useState)(zt),[lr,vr]=(0,rt.useState)(nn),[Sr,Kr]=(0,rt.useState)(""),[ai,Br]=(0,rt.useState)(0),[br,si]=(0,rt.useState)(gn),[Tn,Ri]=(0,rt.useState)(!1),[On,pi]=(0,rt.useState)(0),[xo,zi]=(0,rt.useState)(0),Lo=(0,rt.useRef)(),yo=(0,rt.useRef)(),Ur=(0,rt.useRef)(),Gr=(0,rt.useRef)();(0,rt.useEffect)(()=>{const Hr=window.scrollY||window.pageYOffset;Rr(Dn),dn==null||dn.setValue(Dn),window.scrollTo(0,Hr)},[Dn]),(0,rt.useEffect)(()=>{mn==null||mn(lr)},[lr]),(0,rt.useEffect)(()=>{if(Lo.current){let Hr=function(Kn,li){var Qi;if(pn){li.preventDefault();return}const zo=li.clipboardData;if(zo){const Mo=zo.types.toString(),Uo=zo.items;if(Mo==="Files"||zo.types.indexOf("Files")>-1){if(li.preventDefault(),_n=="stex")return;try{let ca=Uo[1];((Qi=Uo[0])==null?void 0:Qi.kind)==="file"&&(ca=Uo[0]);const Jo=ca.getAsFile(),qa=Jo.name.split(".").pop();(0,gt.I)(Jo,La=>{var es,wn,ma;La.id?((es=Jo==null?void 0:Jo.type)==null?void 0:es.indexOf("image"))>-1?Er.replaceSelection(`<img width="100%" src="/api/attachments/${La.id}?type=${La.content_type})" alt="" />`):((wn=Jo==null?void 0:Jo.type)==null?void 0:wn.indexOf("video"))>-1?Er.replaceSelection(`<video width="100%" controls src="/api/attachments/${La.id}"></video>`):((ma=Jo==null?void 0:Jo.type)==null?void 0:ma.indexOf("pdf"))>-1?Er.replaceSelection(`<a href="/api/attachments/${La.id}?type=${Jo.type}&disposition=inline" target="_blank">${Jo.name}</a>`):yi.includes(qa)?Er.replaceSelection(`<a href="/api/attachments/${La.id}?type=office&disposition=inline" target="_blank">${Jo.name}</a>`):Er.replaceSelection(`[${Jo.name}](/api/attachments/${La.id}?type=${La.content_type})`):(La==null?void 0:La.status)===401&&(document.location.href="/user/login")})}catch(ca){Dt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Er=ie().fromTextArea(Lo.current,{mode:_n,lineNumbers:!Nn,lineWrapping:!0,value:hn,autoCloseTags:!0,autoCloseBrackets:!0});return Er.on("keyup",function(Kn,li){li.keyCode===8&&(Kn.getValue()==""?Er.setOption("placeholder",zn):Er.setOption("placeholder",null))}),Er.on("keydown",function(Kn,li){if(li.keyCode===8){var Qi=Hi(Kn);Qi&&li.preventDefault()}}),Xt&&Er.focus(),Er.on("paste",Hr),kn&&Er.on("beforeChange",function(Kn,li){(li.origin==="paste"||li.origin==="+input")&&li.cancel()}),Or(Er),()=>{Er.off("paste",Hr)}}},[]);const Mi=(0,rt.useCallback)(()=>{if(yo.current)try{}catch(Hr){console.log(Hr,"---- to set md editor body height")}},[br,yo,lr]);(0,rt.useEffect)(()=>{function Hr(){let Er=new _e.Z(Kn=>{for(let li of Kn)(li.target.offsetHeight>0||li.target.offsetWidth>0)&&(Mi(),dn.setSize("100%","100%"),dn.refresh())});return Er.observe(Lo.current.parentElement),Er}if(dn){const Er=Hr();return()=>{var Kn,li;(Kn=Lo.current)!=null&&Kn.parentElement&&Er.unobserve((li=Lo.current)==null?void 0:li.parentElement)}}},[dn,Mi]),(0,rt.useEffect)(()=>{if(dn){let Hr=[];for(const[Er,Kn]of Object.entries(Fr)){let li={[Er]:()=>{cr(Kn)}};Hr.push(li),dn.addKeyMap(li)}return()=>{for(let Er of Hr)dn.removeKeyMap(Er)}}},[dn]),(0,rt.useEffect)(()=>{nn!==lr&&vr(nn)},[nn]),(0,Cr.Z)(()=>{if(!$t&&ai>0){let Hr=new Date().getTime(),Er=window.sessionStorage.getItem(qn);Hr>=ai+jr&&(!Er||Er!==Jr)&&(window.sessionStorage.setItem(qn,Jr),Ri(!0))}},jr),(0,rt.useEffect)(()=>{Jn(zt)},[dn,zt]),(0,rt.useEffect)(()=>{dn&&Xt&&dn.focus()},[dn,Xt]),(0,rt.useEffect)(()=>{if(vn&&dn){let Hr=function(Kn){let li=Kn.target;if(Gr.current){let Qi=li.scrollTop/li.scrollHeight;Gr.current.scrollTop=Gr.current.scrollHeight*Qi}};const Er=dn.getScrollerElement();return Er.addEventListener("scroll",Hr),()=>{Er.removeEventListener("scroll",Hr)}}},[dn,vn]),(0,rt.useEffect)(()=>{if(dn&&rn){let Hr=function(Er,Kn){rn(Er,Kn)};return dn.on("beforeChange",Hr),()=>{dn.off("beforeChange",Hr)}}},[dn,rn]),(0,rt.useEffect)(()=>{if(dn&&Cn){let Hr=function(){Cn(dn.getValue())};return dn.on("blur",Hr),()=>{dn.off("blur",Hr)}}},[dn,Cn]);function Hi(Hr,Er){var Kn=Hr.getDoc(),li=Kn.getCursor(),Qi=Kn.getLine(li.line),zo=Qi.charAt(li.ch-1),Mo=Qi.lastIndexOf("@\u2581@",li.ch),Uo=Qi.lastIndexOf("@\u2581\u2581@",li.ch),ca=Mo>Uo?Mo:Uo,Jo=Mo>Uo?3:4;if(Lr.indexOf(zo)===-1)return null;if(console.log("change1:",Er,Hr,Qi,li,ca,Mo,Uo,zo),ca>=0&&li.ch-ca<5){var qa=ca+Jo;return Kn.replaceRange("",{line:li.line,ch:ca},{line:li.line,ch:qa}),{line:li.line,ch:qa}}return null}(0,rt.useEffect)(()=>{if(dn){let Hr=function(Er,Kn){const li=Er.getValue();Rr(li),Br(new Date().getTime()),Er.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),cn&&(Wn?cn(li,Vr(li)):cn(li))};return dn.on("change",Hr),()=>{dn.off("change",Hr)}}},[dn,cn]),(0,rt.useEffect)(()=>{if(dn)if(hn==null)dn.setValue(""),Rr("");else{const Hr=window.scrollY||window.pageYOffset;hn!==dn.getValue()&&(dn.setValue(hn),Rr(hn),dn.setCursor(kn?1:dn.lineCount(),0),window.scrollTo(0,Hr))}},[dn,hn]);const cr=(0,rt.useCallback)(Hr=>{const Er=dn.getCursor(),Kn=dn.getSelection();let li=Kn.split(`
|
|
|
`);switch(Hr){case"bold":return dn.replaceSelection("**"+Kn+"**"),Kn===""&&dn.setCursor(Er.line,Er.ch+2),dn.focus();case"italic":return dn.replaceSelection("*"+Kn+"*"),Kn===""&&dn.setCursor(Er.line,Er.ch+1),dn.focus();case"code":return dn.replaceSelection("`"+Kn+"`"),Kn===""&&dn.setCursor(Er.line,Er.ch+1),dn.focus();case"inline-latex":return Kr("inline-latex"),dn.focus();case"latex":return dn.replaceSelection("```latex\n"+Kn+"\n```"),dn.setCursor(Er.line+1,Kn.length+1),dn.focus();case"line-break":return dn.replaceSelection(`<br/>
|
|
|
`),dn.focus();case"list-ul":return Kn===""?dn.replaceSelection("- "+Kn):dn.replaceSelection(li.map(Qi=>Qi===""?"":`- ${Qi}`).join(`
|
|
|
`)),dn.focus();case"list-ol":return Kn===""?dn.replaceSelection("1. "+Kn):dn.replaceSelection(li.map((Qi,zo)=>Qi===""?"":`${zo+1}. ${Qi}`).join(`
|
|
|
`)),dn.focus();case"add-null-ch":return Kn===""&&dn.setCursor(Er.line,Er.ch),dn.replaceSelection(fi),dn.focus();case"add-signal":return Kn===""&&dn.setCursor(Er.line,Er.ch),dn.replaceSelection(ot),dn.focus();case"add-multiple":return Kn===""&&dn.setCursor(Er.line,Er.ch),dn.replaceSelection(Lr),dn.focus();case"inster-template-1":return Kn===""&&dn.setCursor(Er.line,Er.ch),dn.replaceSelection(oi),dn.focus();case"eraser":return dn.setValue(""),dn.focus();case"trigger-watch":return Jn(!vn),dn.focus();case"trigger-full-screen":return vr(!lr),dn.focus();case qt:Kr(qt);return;case Xn:Kr(Xn);return;case sn:Kr(sn);return;case Ln:Kr(Ln);return;case"maths-latex":Kr("maths-latex");return;case xn:Kr(xn);return;case dr:Kr(dr);return;default:throw new Error}},[dn,vn,lr]),Lt=(0,rt.useCallback)((Hr,Er)=>{var Kn,li,Qi,zo,Mo,Uo;switch(Kr(""),Sr){case qt:const{title:es,link:wn}=Hr;return dn.replaceSelection(`[${es}](${wn})`),dn.focus();case Xn:const{language:ma,content:Ql}=Hr;return dn.replaceSelection(["```"+ma,Ql,"```"].join(`
|
|
|
`)),dn.focus();case"maths-latex":for(var ca=atob(Hr),Jo=new Uint8Array(ca.length),qa=0;qa<ca.length;qa++)Jo[qa]=ca.charCodeAt(qa);var La=new Blob([Jo],{type:"image/png"});(0,gt.I)(La,bi=>{bi.id?dn.replaceSelection(``):(bi==null?void 0:bi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":dn.replaceSelection("`$$"+Hr+"$$`");break;case sn:case Ln:case Zn:const{src:el,alt:So}=Hr,ro=Er,va=(Qi=(li=(Kn=ro==null?void 0:ro.name)==null?void 0:Kn.split("."))==null?void 0:li.pop)==null?void 0:Qi.call(li);return((zo=ro==null?void 0:ro.type)==null?void 0:zo.indexOf("image"))>-1||!(ro!=null&&ro.type)?ro!=null&&ro.align||ro!=null&&ro.width?dn.replaceSelection(`<p style="text-align:${ro.align||"initial"}"><img width="${ro.width?ro.width+"%":"initial"}" src="${el}" alt="${So||""}" /></p>`):dn.replaceSelection(`<img width="100%" src="${el}" alt="${So||""}" />`):((Mo=ro==null?void 0:ro.type)==null?void 0:Mo.indexOf("video"))>-1?dn.replaceSelection(`<video width="100%" controls src="${el}"></video>`):((Uo=ro==null?void 0:ro.type)==null?void 0:Uo.indexOf("pdf"))>-1?dn.replaceSelection(`<a href="${el}?type=${ro.type}&disposition=inline" target="_blank">${ro.name}</a>`):yi.includes(va)?dn.replaceSelection(`<a href="${el}?type=office&disposition=inline" target="_blank">${ro.name}</a>`):dn.replaceSelection(`[${ro.name}](${el})`),dn.focus();case dr:const{row:Io,col:qi,align:No}=Hr;let xs=`
|
|
|
`;for(let bi=0;bi<Io;bi++){let lo=[],ao=[];for(let Tr=0;Tr<qi;Tr++)bi===1&&ao.push(pr[No]),lo.push(" ");bi===1&&(xs+=`| ${ao.join(" | ")} |
|
|
|
`),xs+=`| ${lo.join(qi===1?"":" | ")} |
|
|
|
`}return dn.replaceSelection(xs+`
|
|
|
`),dn.focus();default:throw new Error}},[dn,Sr]),Ii=(0,rt.useMemo)(()=>{switch(Sr){case qt:return rt.createElement(bt,{callback:Lt,onCancel:_r});case Xn:return rt.createElement(Pt.Z,{callback:Lt,onCancel:_r});case sn:return rt.createElement(gt.Z,{callback:Lt,onCancel:_r});case xn:return rt.createElement(Ve,{callback:Lt,onCancel:_r});case dr:return rt.createElement(Mt,{callback:Lt,onCancel:_r});case"maths-latex":return rt.createElement(tn,{showSaveButton:!0,callback:Lt});case"inline-latex":return rt.createElement(It.Z,{showSaveButton:!0,callback:Lt});default:return null}},[Sr]);function _r(){Kr("")}(0,rt.useEffect)(()=>{if(Ur.current){let Hr=function(Mo){Qi=!0,zo=Mo.pageY},Er=function(){Qi=!1},Kn=function(Mo){if(Qi){let Uo=Mo.pageY-zo;Uo<0&&(Uo=0),Uo>300&&(Uo=300);let ca=gn+Uo+"px";si(ca)}},li=Ur.current,Qi=!1,zo=0;return li.addEventListener("mousedown",Hr),document.addEventListener("mousemove",Kn),document.addEventListener("mouseup",Er),()=>{li.removeEventListener("mousedown",Hr),document.removeEventListener("mousemove",Kn),document.removeEventListener("mouseup",Er)}}},[dn,Ur]),(0,rt.useEffect)(()=>{si(gn)},[gn]);const Ir=Pi(Ot),_i=Pi(br),Ji={width:Ir,height:_i},zr=(0,rt.useMemo)(()=>{if(ai){let Hr=new Date(ai),Er=Hr.getHours(),Kn=Hr.getMinutes(),li=Hr.getSeconds();return Er=Er<10?"0"+Er:Er,Kn=Kn<10?"0"+Kn:Kn,li=li<10?"0"+li:li,`${Er}:${Kn}:${li}`}return 0},[ai]),Vr=Hr=>{const Er=[];if(Wn){let Kn=-1;Hr=Hr.replace(/(@▁▁@|@▁@)/g,function(li,Qi,zo){Er.push({multiLine:li!==ot})})}return Er};function Ci(){window.sessionStorage.removeItem(qn),Ri(!1),Br(0)}function mi(){Ri(!1),Br(0),dn.setValue(window.sessionStorage.getItem(qn))}(0,rt.useEffect)(()=>{Si[Sr]&&Sr!==Ln&&Sr!==xn&&setTimeout(()=>{const Hr=document.getElementsByClassName("markdown-popup-form")[0],Er=window.innerWidth/2-Hr.offsetWidth/2,Kn=window.innerHeight/2-Hr.offsetHeight/2;pi(Er),zi(Kn)},0)},[Sr]);const Vi=Hr=>{Hr.preventDefault();const Er=Hr.clientX-On,Kn=Hr.clientY-xo;document.body.onmousemove=li=>{let Qi=li.clientX-Er,zo=li.clientY-Kn;const Mo=document.getElementsByClassName("markdown-popup-form")[0],Uo=window.innerWidth-Mo.offsetWidth,ca=window.innerHeight-Mo.offsetHeight;Qi=Math.max(0,Math.min(Qi,Uo)),zo=Math.max(0,Math.min(zo,ca)),io(li.clientX,li.clientY,Er,Kn)&&(pi(Qi),zi(zo))},document.body.onmouseup=function(){document.body.onmousemove=null}},io=(Hr,Er,Kn,li)=>{const Qi=document.body.clientHeight,zo=document.body.clientWidth;return Hr<20&&Kn>Hr||Hr>zo-20&&Kn<Hr||Er<20&&li>Er||Er>Qi-20&&li<Er?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return rt.createElement(rt.Fragment,null,rt.createElement("div",{className:"markdown-editor-wrapper",ref:yo},rt.createElement("div",{className:`markdown-editor-container ${En} ${vn?"on-preview":""} ${Nn?"mini":""} ${lr?"full-screen":""}`,style:Ji},rt.createElement(Ae,{insertTemp:Pn,watch:vn,fullScreen:lr,showNullButton:jn,showNullProgramButton:Wn,onActionCallback:cr,hidetoolBar:or,extraUse:ar}),rt.createElement("div",{className:"markdown-editor-body"},rt.createElement("div",{className:"codemirror-container"},rt.createElement("textarea",{ref:Lo,placeholder:zn})),vn?rt.createElement("div",{ref:Gr,className:"preview-container"},_n==="stex"&&rt.createElement(ve,{value:Jr}),_n!=="stex"&&rt.createElement(Me.Z,{disabledFill:Mn,showProgramFill:Wn,value:Jr})):null))),Yn?rt.createElement("a",{ref:Ur,className:"editor-resize"}):null,Sr===Ln&&rt.createElement(Ut,{callback:Lt,onCancel:_r}),Sr===xn&&rt.createElement(Ve,{callback:Lt,onCancel:_r}),rt.createElement(je.Z,null,Si[Sr]&&Sr!==Ln&&Sr!==xn?rt.createElement(dt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:On,top:xo},title:rt.createElement("div",{style:{cursor:"move"},onMouseDown:Vi},Si[Sr]),open:!0,onCancel:_r,footer:null,destroyOnClose:!0,width:Sr===xn?"1200px":null,height:Sr===xn?"80vh":null,className:"markdown-popup-form"},Ii):null))}},28451:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Ce},I:function(){return Ae}});var rt=Ge(78241),vt=Ge(8591),ie=Ge(92832),_e=Ge(81327),Ie=Ge(5871),ge=Ge(5112),ce=Ge(3113),Pe=Ge(77903),Ee=Ge(59301),ye=Ge(59301),Me=Object.defineProperty,ve=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(je,Ne,Be)=>Ne in je?Me(je,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Be}):je[Ne]=Be,re=(je,Ne)=>{for(var Be in Ne||(Ne={}))z.call(Ne,Be)&&ae(je,Be,Ne[Be]);if(fe)for(var Be of fe(Ne))ee.call(Ne,Be)&&ae(je,Be,Ne[Be]);return je},le=(je,Ne)=>ve(je,xe(Ne));const{useForm:ue}=rt.default,pe={width:280,marginRight:10},Te={labelCol:{span:5},wrapperCol:{span:19}};var Ce=({callback:je,onCancel:Ne})=>{const[Be]=ue();let ze=(0,Ee.useRef)();function Qe(at){ze.current.width=Be.getFieldValue("width"),ze.current.align=Be.getFieldValue("align"),je(at,ze.current)}function $e(at,ut){if(at.status===-1){vt.ZP.error(at.message);return}Be.setFieldsValue({src:`/api/attachments/${at.id}`,type:ut.type})}function Ye(at){let ut=at.target.files[0];ze.current=ut,Ae(ut,$e)}return ye.createElement(rt.default,le(re({form:Be},Te),{className:"upload-image-panel",onFinish:Qe,style:{width:470,overflow:"hidden"}}),ye.createElement(rt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ye.createElement("div",{className:"flex-container"},ye.createElement(rt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ye.createElement(ie.default,{style:pe})),ye.createElement(Fe,{onFileChange:Ye}))),ye.createElement(rt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ye.createElement(ie.default,{style:{width:264}})),ye.createElement(rt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ye.createElement(_e.Z,null,ye.createElement(rt.default.Item,{name:"width",style:{margin:0}},ye.createElement(Ie.Z,{style:{width:264}})),ye.createElement("span",{className:"ml8"},"%"))),ye.createElement(rt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ye.createElement(ge.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"}]})),ye.createElement("aside",null,ye.createElement(rt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ye.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(ce.ZP,{type:"default",onClick:Ne},"\u53D6\u6D88"))))};function Fe({onFileChange:je}){return ye.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ye.createElement("input",{type:"file",onChange:je}))}function Ae(je,Ne){if(!je)throw new String("\u6CA1\u6709\u6587\u4EF6");let Be=new FormData;Be.append("editormd-image-file",je),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var ze=new window.XMLHttpRequest;ze.withCredentials=!0,ze.addEventListener("load",function(Qe){Ne(JSON.parse(Qe.target.responseText),je)},!1),ze.addEventListener("error",function(Qe){console.error(Qe)},!1),ze.open("POST",`${Pe.KI}/api/attachments.json`),ze.send(Be)}},79346:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ie}});var rt=Ge(59301),vt=Ge(4676);class ie extends rt.Component{constructor(Ie){super(Ie);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:Ie}=this.props;return(0,vt.createPortal)(Ie,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(bn,an,Ge){"use strict";Ge.d(an,{SV:function(){return Ue},ZP:function(){return Oe}});var rt=Ge(59301),vt=Ge(76374);const ie={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"]},_e={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"]},Ie={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(`
|
|
|
`)}]},ge={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(`
|
|
|
`)}]},ce={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 Pe=Ge(53184),Ee=Ge.n(Pe),ye=Object.defineProperty,Me=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(He,Ve,Je)=>Ve in He?ye(He,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Je}):He[Ve]=Je,ae=(He,Ve)=>{for(var Je in Ve||(Ve={}))fe.call(Ve,Je)&&ee(He,Je,Ve[Je]);if(xe)for(var Je of xe(Ve))z.call(Ve,Je)&&ee(He,Je,Ve[Je]);return He},re=(He,Ve)=>Me(He,ve(Ve)),le=(He,Ve,Je)=>new Promise((ct,yt)=>{var ft=Vt=>{try{Jt(Je.next(Vt))}catch(Kt){yt(Kt)}},Mt=Vt=>{try{Jt(Je.throw(Vt))}catch(Kt){yt(Kt)}},Jt=Vt=>Vt.done?ct(Vt.value):Promise.resolve(Vt.value).then(ft,Mt);Jt((Je=Je.apply(He,Ve)).next())});const ue={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"]}},pe=(He,Ve)=>Ve.map(Je=>({label:Je,kind:He.languages.CompletionItemKind.Keyword,insertText:Je})),Te=He=>Object.keys(ue.tables).map(Ve=>({label:Ve,kind:He.languages.CompletionItemKind.Variable,insertText:Ve})),Ce=(He,Ve)=>{const Je=ue.tables[He];return Je?Je.map(ct=>({label:ct,kind:Ve.languages.CompletionItemKind.Field,insertText:ct})):[]};function Fe(He,Ve,Je,ct,yt){let ft=Ve.getWordUntilPosition(Je),Mt={startLineNumber:Je.lineNumber,endLineNumber:Je.lineNumber,startColumn:ft.startColumn,endColumn:ft.endColumn},Jt=ct.map(Vt=>({label:Vt,kind:He.languages.CompletionItemKind.Keyword,insertText:Vt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Mt}));return yt.map(Vt=>{Jt.push(re(ae({},Vt),{range:Mt}))}),Jt}var Ae=He=>{ue.languages.map(yt=>(He.languages.registerDocumentFormattingEditProvider(yt,{provideDocumentFormattingEdits(ft,Mt,Jt){return le(this,null,function*(){const Vt=Ee()(ft.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:ft.getFullModelRange(),text:Vt}]})}}),yt));const Ve=Ie.quickKey.map(yt=>({label:yt.label,kind:He.languages.CompletionItemKind.Method,insertText:yt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Je=ge.quickKey.map(yt=>({label:yt.label,kind:He.languages.CompletionItemKind.Method,insertText:yt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ct=_e.quickKey.map(yt=>({label:yt.label,kind:He.languages.CompletionItemKind.Method,insertText:yt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet}));He.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(yt,ft){var Mt=yt.getWordUntilPosition(ft),Jt={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Vt=yt.getLineContent(ft.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...Ie.keywords.map(Kt=>({label:Kt,kind:He.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt})),...Ie.quickKey.map(Kt=>({label:Kt.label,kind:He.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt}))]}}}),He.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(yt,ft){var Mt=yt.getWordUntilPosition(ft),Jt={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn};return{suggestions:[...ie.keywords.map(Vt=>({label:Vt,kind:He.languages.CompletionItemKind.Function,documentation:Vt,insertText:Vt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt}))]}}}),He.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(yt,ft){var Mt=yt.getWordUntilPosition(ft),Jt={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Vt=yt.getLineContent(ft.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[..._e.keywords.map(Kt=>({label:Kt,kind:He.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt})),..._e.quickKey.map(Kt=>({label:Kt.label,kind:He.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt}))]}}}),He.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(yt,ft){var Mt=yt.getWordUntilPosition(ft),Jt={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Vt=yt.getLineContent(ft.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...ce.keywords.map(Kt=>({label:Kt,kind:He.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt})),...ce.quickKey.map(Kt=>({label:Kt.label,kind:He.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt}))]}}}),He.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(yt,ft){var Mt=yt.getWordUntilPosition(ft),Jt={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Vt=yt.getLineContent(ft.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...ge.keywords.map(Kt=>({label:Kt,kind:He.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt})),...ge.quickKey.map(Kt=>({label:Kt.label,kind:He.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt}))]}}})};const je="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ne=Object.defineProperty,Be=(He,Ve,Je)=>Ve in He?Ne(He,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Je}):He[Ve]=Je,ze=(He,Ve,Je)=>Be(He,typeof Ve!="symbol"?Ve+"":Ve,Je);const Qe=class mx{constructor(Ve,Je,ct){this.placeholder=Ve,this.editor=Je,this.monaco=ct,Je.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.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)}};ze(Qe,"ID","editor.widget.placeholderHint");var Ye=Qe,at=Ge(96236),ut=Ge(8591),ht=Ge(6848),Ct=Ge(89392),et=Ge(34604),it=Ge(56102),St=Object.defineProperty,bt=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,kt=(He,Ve,Je)=>Ve in He?St(He,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Je}):He[Ve]=Je,Et=(He,Ve)=>{for(var Je in Ve||(Ve={}))dt.call(Ve,Je)&&kt(He,Je,Ve[Je]);if(gt)for(var Je of gt(Ve))mt.call(Ve,Je)&&kt(He,Je,Ve[Je]);return He},Ut=(He,Ve)=>bt(He,Pt(Ve)),wt=(He,Ve)=>{var Je={};for(var ct in He)dt.call(He,ct)&&Ve.indexOf(ct)<0&&(Je[ct]=He[ct]);if(He!=null&>)for(var ct of gt(He))Ve.indexOf(ct)<0&&mt.call(He,ct)&&(Je[ct]=He[ct]);return Je},pt=(He,Ve,Je)=>new Promise((ct,yt)=>{var ft=Vt=>{try{Jt(Je.next(Vt))}catch(Kt){yt(Kt)}},Mt=Vt=>{try{Jt(Je.throw(Vt))}catch(Kt){yt(Kt)}},Jt=Vt=>Vt.done?ct(Vt.value):Promise.resolve(Vt.value).then(ft,Mt);Jt((Je=Je.apply(He,Ve)).next())});function tt(He){return/^\d+$/.test(He)?`${He}px`:He}function Ze(){}let we=!1;const be={"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 Ke(He=[]){let Ve=He;if(Array.isArray(He)){for(let Je=0;Je<He.length;Je++){let ct=be[He[Je]];if(ct)return ct}return Ve[0]}return be[Ve]||Ve}let Xe=null;var Oe=He=>{var Ve=He,{width:Je="100%",height:ct="100%",value:yt,language:ft="javascript",style:Mt={},options:Jt={},overrideServices:Vt={},theme:Kt="vs-dark",onEditBlur:Ht,isCopy:tn=!1,onSave:It,autoHeight:Dt=!1,forbidCopy:qt=!1,onChange:sn=Ze,editorDidMount:xn=Ze,onFocus:Ln=Ze,onBreakPoint:Zn=Ze,breakPointValue:Xn=[],filename:dr="educoder.txt",errorLine:fr,errorContent:pr="",highlightLine:Cr,openBreakPoint:Yr=!1,placeholder:ii=""}=Ve,jr=wt(Ve,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const fi=(0,rt.useRef)(),Lr=(0,rt.useRef)({}),ot=(0,rt.useRef)(),oi=(0,rt.useRef)(),yi=(0,rt.useRef)([]),Pi=(0,rt.useRef)(!1),sr=(0,rt.useRef)(),Ar=(0,rt.useRef)(),Fr=(0,rt.useRef)(!1),[Si,Nr]=(0,rt.useState)(!1);function hn(){let nn;return fi.current&&(nn=new vt.Z(Cn=>{for(let rn of Cn)(rn.target.offsetHeight>0||rn.target.offsetWidth>0)&&Lr.current.instance.layout()}),nn.observe(fi.current)),nn}function cn(){ut.ZP.warning({content:decodeURIComponent(je),key:"monaco-editor-tip"})}const Ot=()=>{let nn=Lr.current.instance;if(yt!=null&&nn&&Si){const Cn=nn.getModel();Cn&&yt!==Cn.getValue()&&(we=!0,Cn.setValue(yt),nn.layout(),we=!1)}};(0,rt.useEffect)(()=>{const nn=et.Z.subscribe("formatDocument",Cn=>{var rn;let mn=Lr.current.instance;(rn=mn==null?void 0:mn.getAction)==null||rn.call(mn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Cn=>{sn(Cn)},nn},[]),(0,rt.useEffect)(()=>{var nn;let Cn=Lr.current.instance;oi.current&&clearTimeout(oi.current),oi.current=setTimeout(()=>{Ot()},500),yt&&(yt!=null&&yt.length)&&((nn=Cn==null?void 0:Cn.updateOptions)==null||nn.call(Cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(yt.split(/\r\n|\r|\n/g).length))+3,5)}))},[yt,Si,Lr.current]),(0,rt.useEffect)(()=>{if(fr&&Lr.current&&Lr.current.instance){let Cn=Lr.current.instance;Cn.changeViewZones(function(rn){var mn=document.createElement("div");mn.style.padding="10px 20px",mn.style.width="calc(100% - 20px)",mn.className="my-error-line-wrp",mn.innerHTML=pr,rn.addZone({afterLineNumber:fr||11,heightInLines:3,domNode:mn})});var nn={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}};Cn.addOverlayWidget(nn),Cn.revealPositionInCenter({lineNumber:20,column:1})}},[fr,Lr.current,Si]);const gn=(nn="",Cn)=>{if(!nn||nn.trim()==="")return!0;const mn=Lr.current.instance.getModel().getLineTokens(Cn);let En=!1;for(let pn=0;pn<2;pn++)mn.getStandardTokenType(pn)===1&&(En=!0);return En};(0,rt.useEffect)(()=>{var nn;const Cn=(nn=Lr.current)==null?void 0:nn.instance;if(Cn&&Si&&qt){const rn=Cn.onDidBlurEditorWidget(()=>{Fr.current=!1}),mn=Cn.onDidFocusEditorText(()=>{Fr.current=!0});return()=>{rn.dispose(),mn.dispose()}}},[Lr.current,Si,qt]),(0,rt.useEffect)(()=>{var nn;if((nn=Lr.current)!=null&&nn.instance&&Si&&Yr){let Cn=Lr.current.instance,rn=Cn.getModel();if(!rn)return;(()=>{var Rr;let vn=[],Jn=[];const lr=rn.getAllDecorations();for(let Sr of lr)Sr.options.className==="highlighted-line"&&(vn.push((Rr=Sr==null?void 0:Sr.range)==null?void 0:Rr.startLineNumber),Jn.push(Sr==null?void 0:Sr.id));if(Cr===vn[0])return;rn.deltaDecorations(Jn,[]);const vr=rn.getLineCount();Cr&&Cr<=vr&&(Cn.deltaDecorations([],[{range:new Xe.Range(Cr,1,Cr,rn.getLineMaxColumn(Cr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Cn.revealLineInCenter(Cr))})();const En=(Rr=!1)=>{var vn;let Jn=[],lr=[];const vr=rn.getAllDecorations();for(let Sr of vr)Sr.options.linesDecorationsClassName==="breakpoints-select"&&(Jn.push((vn=Sr==null?void 0:Sr.range)==null?void 0:vn.startLineNumber),lr.push(Sr==null?void 0:Sr.id));if(Rr)return{lines:Jn,ids:lr};Zn(Jn)},pn=Rr=>pt(void 0,null,function*(){let vn={range:new Xe.Range(Rr,1,Rr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield rn.deltaDecorations([],[vn]),En()}),kn=Rr=>pt(void 0,null,function*(){let vn=[];const Jn=Cn.getLineDecorations(Rr);for(let lr of Jn)lr.options.linesDecorationsClassName==="breakpoints-select"&&vn.push(lr.id);yield rn.deltaDecorations(vn,[]),En()}),Mn=Rr=>{let vn=Cn.getLineDecorations(Rr);for(let Jn of vn)if(Jn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ct.isEqual)(Xn,En(!0).lines)){rn.deltaDecorations(En(!0).ids,[]);const Rr=Xn.map(vn=>({range:new Xe.Range(vn,1,vn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));rn.deltaDecorations([],Rr)}const zn=Cn.onDidChangeModelContent(Rr=>{let vn=Cn.getPosition();if(vn){let Jn=vn.lineNumber;clearTimeout(Ar.current),Ar.current=setTimeout(()=>{gn(rn.getLineContent(Jn),Jn)?kn(Jn):Mn(Jn)?(kn(Jn),pn(Jn)):En()},100)}}),Dn=Cn.onMouseDown(Rr=>{var vn,Jn,lr;if(Rr.target.detail&&((lr=(Jn=(vn=Rr.target)==null?void 0:vn.element)==null?void 0:Jn.className)!=null&&lr.includes("line-numbers"))){let vr=Rr.target.position.lineNumber;if(gn(rn.getLineContent(vr),vr))return;Mn(vr)?kn(vr):pn(vr)}}),ar=Rr=>{let vn={range:new Xe.Range(Rr,1,Rr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};yi.current=Cn.deltaDecorations(yi.current,[vn])},dn=()=>{yi.current=Cn.deltaDecorations(yi.current,[])},Or=Cn.onMouseMove(Rr=>{var vn,Jn,lr;if(dn(),Rr.target.detail&&((lr=(Jn=(vn=Rr.target)==null?void 0:vn.element)==null?void 0:Jn.className)!=null&&lr.includes("line-numbers"))){let vr=Rr.target.position.lineNumber;if(gn(rn.getLineContent(vr),vr))return;ar(vr)}}),Jr=Cn.onMouseLeave(()=>{dn()});return()=>{zn.dispose(),Dn.dispose(),Or.dispose(),Jr.dispose()}}},[Lr.current,Si,Xn,Cr,Yr,ft]),(0,rt.useEffect)(()=>{var nn;(nn=Lr.current)!=null&&nn.instance&&Yr&&Lr.current.instance.setPosition({lineNumber:0,column:0})},[Cr]);function Nn(){let nn=Lr.current.instance;if(nn){const Cn=nn.getSelection(),rn=Lr.current.pastePos||{},mn=new Xe.Range(rn.startLineNumber||Cn.endLineNumber,rn.startColumn||Cn.endColumn,rn.endLineNumber||Cn.endLineNumber,rn.endColumn||Cn.endColumn);setTimeout(()=>{nn.executeEdits("",[{range:mn,text:""}])},300)}}function Xt(nn){(window.navigator.platform.match("Mac")?nn.metaKey:nn.ctrlKey)&&nn.keyCode==83&&(nn.preventDefault(),It())}const zt=()=>{if(Dt&&Lr.current.instance){const nn=Lr.current.instance.getContentHeight();Wn(nn<ct?ct:nn)}else Wn(ct)};function Pn(nn){var Cn=document.createEvent("MouseEvents");Cn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),nn.dispatchEvent(Cn)}const _n=nn=>{if(!Fr.current)return;const{keyCode:Cn,ctrlKey:rn,metaKey:mn,target:En,type:pn}=nn;return(pn==="paste"||(Cn===67||Cn===86)&&(mn||rn))&&En.nodeName==="TEXTAREA"&&(cn(),nn.preventDefault()),!1};function qn(nn,Cn){var rn=window.URL||window.webkitURL||window,mn=new Blob([Cn]),En=document.createElementNS("http://www.w3.org/1999/xhtml","a");En.href=rn.createObjectURL(mn),En.download=nn,Pn(En)}(0,rt.useEffect)(()=>{zt()},[zt]),(0,rt.useEffect)(()=>{fi.current&&!Si&&Promise.all([Ge.e(8909),Ge.e(3267)]).then(Ge.bind(Ge,71448)).then(nn=>{try{Xe=nn,Lr.current.instance=Xe.editor.create(fi.current,{value:yt,language:Ke(ft),theme:Kt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Vt);const Cn=Lr.current.instance;let En=[...at.BH._menuItems].find(zn=>zn[0]._debugName=="EditorContext")[1],pn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],kn=(zn,Dn)=>{var ar,dn;let Or=zn._first;do Dn.includes((dn=(ar=Or.element)==null?void 0:ar.command)==null?void 0:dn.id)&&zn._remove(Or);while(Or=Or.next)};if(xn(Cn,Xe),setTimeout(()=>{zt(),Lr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{qn(dr||"educoder.txt",Cn.getValue())}})},500),Lr.current.subscription=Cn.onDidChangeModelContent(zn=>{Pi.current?clearTimeout(sr.current):(zt(),sn(Cn.getValue(),zn)),sr.current=setTimeout(()=>{Pi.current=!1},500)}),window.Monaco||Ae(Xe,Ke(ft)),qt&&(kn(En,pn),fi.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",_n),window.removeEventListener("paste",_n),window.addEventListener("keydown",_n),window.addEventListener("paste",_n)),window.Monaco=Xe,Ht&&Cn.onDidBlurEditorWidget(()=>{Ht(Cn.getValue())}),Ln&&Cn.onDidFocusEditorText(()=>{Ln(Cn.getValue())}),qt)try{Cn.onDidPaste(zn=>{const Dn=Cn.getSelection(),ar=Lr.current.pastePos||{},dn=new Xe.Range(ar.startLineNumber||Dn.endLineNumber,ar.startColumn||Dn.endColumn,ar.endLineNumber||Dn.endLineNumber,ar.endColumn||Dn.endColumn);Cn.executeEdits("",[{range:zn.range,text:""}])})}catch(zn){}let Mn=hn();return ii&&typeof ii=="string"&&new Ye(ii,Cn,Xe),Nr(!0),()=>{const zn=Lr.current.instance;zn.dispose();const Dn=zn.getModel();Dn&&Dn.dispose(),Lr.current.subscription&&Lr.current.subscription.dispose(),Mn.unobserve(fi.current)}}catch(Cn){}})},[]),(0,rt.useEffect)(()=>{if(Lr.current.instance&&Si)return document.addEventListener("keydown",Xt,!1),()=>{document.removeEventListener("keydown",Xt)}},[It,Si]),(0,rt.useEffect)(()=>{let nn=Lr.current.instance;if(nn&&Si){let Cn=Ke(ft);Xe.editor.setModelLanguage(nn.getModel(),Cn)}},[ft,Si]),(0,rt.useEffect)(()=>{Lr.current.instance&&Si&&Xe.editor.setTheme(Kt)},[Kt,Si]),(0,rt.useEffect)(()=>{let nn=Lr.current.instance;ot.current=Jt,nn&&Si&&(nn.updateOptions(Et({},Jt)),setTimeout(()=>{nn.getModel().updateOptions(Et({},Jt))},200))},[JSON.stringify(Jt),Si]),(0,rt.useEffect)(()=>{let nn=Lr.current.instance;nn&&Si&&nn.layout()},[Je,ct,Si]);const[Yn,$t]=(0,rt.useState)(tt(Je)),[jn,Wn]=(0,rt.useState)(tt(ct)),or=Ut(Et({},Mt),{width:Yn,height:jn,position:"relative"});return rt.createElement("div",{className:"my-monaco-editor",ref:fi,style:or},tn&&rt.createElement(it.CopyToClipboard,{text:yt,onCopy:()=>ut.ZP.success("\u590D\u5236\u6210\u529F")},rt.createElement(ht.Z,{title:"\u590D\u5236\u4EE3\u7801"},rt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},rt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ue({width:He="100%",height:Ve="100%",original:Je,modified:ct,language:yt,options:ft={}}){const Mt=(0,rt.useRef)(),[Jt,Vt]=(0,rt.useState)(null);function Kt(Dt){let qt;return Mt.current&&(qt=new vt.Z(sn=>{for(let xn of sn)(xn.target.offsetHeight>0||xn.target.offsetWidth>0)&&Dt.layout()}),qt.observe(Mt.current)),qt}(0,rt.useEffect)(()=>(Mt.current&&Promise.all([Ge.e(8909),Ge.e(9404)]).then(Ge.bind(Ge,2550)).then(Dt=>{Xe=Dt;const qt=Xe.editor.createDiffEditor(Mt.current,Ut(Et({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},ft),{wordWrap:!0}));Vt(qt);let sn=Kt(qt);return()=>{qt.dispose();const xn=qt.getModel();xn&&xn.dispose(),sn.unobserve(Mt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,rt.useEffect)(()=>{Jt&&Jt.setModel({original:Xe.editor.createModel(Je,yt),modified:Xe.editor.createModel(ct,yt)})},[Je,ct,yt,Jt]);const Ht=tt(He),tn=tt(Ve),It={width:Ht,height:tn};return rt.createElement("div",{className:"my-diff-editor",ref:Mt,style:It})}},16869:function(bn,an,Ge){"use strict";var rt=Ge(38476),vt=Ge(57809),ie=Ge(78673),_e=Ge(59301);const Ie=vt.default.Option;an.Z=({isTheoretical:ge,onFontSizeChange:ce,cmFontSize:Pe,cmCodeMode:Ee,autoFormat:ye,onCodeModeChange:Me,onTabToSpace:ve,onAutoFormat:xe,formatDocument:fe,className:z="",tabToSpace:ee,children:ae,code_editor:re,challenge:le})=>{const ue={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return _e.createElement("div",{className:`tpi-code-setting ${z}`},_e.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),_e.createElement("section",null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),_e.createElement(vt.default,{bordered:!1,size:"small",value:Ee,onChange:Me},_e.createElement(Ie,{value:"vs"},"\u767D\u8272\u80CC\u666F"),_e.createElement(Ie,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!ge&&_e.createElement(_e.Fragment,null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),_e.createElement(vt.default,{bordered:!1,size:"small",value:Pe,onChange:ce},_e.createElement(Ie,{value:12},"12px"),_e.createElement(Ie,{value:14},"14px"),_e.createElement(Ie,{value:16},"16px"),_e.createElement(Ie,{value:18},"18px"),_e.createElement(Ie,{value:20},"20px"),_e.createElement(Ie,{value:22},"22px"))),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"Tab\u8F6C\u6362"),_e.createElement(ie.Z,{checked:ee,onChange:ve})),_e.createElement("div",{className:"file-item",onClick:fe},_e.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!ge&&_e.createElement(_e.Fragment,null,_e.createElement("h3",null,"\u5FEB\u6377\u952E"),_e.createElement("section",null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),_e.createElement("span",null,"Ctrl + S")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),_e.createElement("span",null,"F1 / Alt + F1")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),_e.createElement("span",null,"Ctrl + ]/[")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),_e.createElement("span",null,"Ctrl + Shift + \\")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),_e.createElement("span",null,"Home")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),_e.createElement("span",null,"End"))),ae),!ge&&_e.createElement(_e.Fragment,null,_e.createElement("h3",null,"\u5FEB\u6377\u952E"),_e.createElement("section",null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),_e.createElement("span",null,ue[le==null?void 0:le.difficulty])),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),_e.createElement("span",null,re==null?void 0:re.name)),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),_e.createElement("span",null,re!=null&&re.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},58856:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return vt}});var rt=Ge(59301);function vt(ie,_e){const Ie=(0,rt.useRef)();(0,rt.useEffect)(()=>{Ie.current=ie}),(0,rt.useEffect)(()=>{function ge(){Ie.current()}if(_e!==null){let ce=setInterval(ge,_e);return()=>clearInterval(ce)}},[_e])}},95480:function(bn,an,Ge){"use strict";Ge.r(an),Ge.d(an,{Types:function(){return Lr},default:function(){return yi}});var rt=Ge(59301),vt={header:"header___N_IdR",field:"field___XG_dh","oj-form-container":"oj-form-container___syYzK","oj-left-panel":"oj-left-panel___L082x","oj-form-info":"oj-form-info___q0IU5",footer:"footer___pGCM2",result:"result___LM9Ms",passText:"passText___nUoL4",noPassText:"noPassText___ECHHG",pass:"pass___tDubp",noPass:"noPass___ilYvg","test-case-name":"test-case-name___MI_KD","btn-remove-case":"btn-remove-case___OiaTQ","icon-tag":"icon-tag___D86WO",btn_back:"btn_back___FyaSY",testJi:"testJi___NDviK",upBtn:"upBtn___FiZX4","oj-problems":"oj-problems___xb70g",row:"row___v036E",a:"a___yRaYH",b:"b___gWQyu",inputTwo:"inputTwo___IZ9og",inputOne:"inputOne____NmcT",cusModal:"cusModal___fJ5gm","oj-custom-large-spin":"oj-custom-large-spin___Aar0g",MdEditor:"MdEditor___hgoes"},ie=Ge(92832),_e=Ge(43418),Ie=Ge(36381),ge=Ge(78241),ce=Ge(8591),Pe=Ge(95237),Ee=Ge(43604),ye=Ge(71418),Me=Ge(3113),ve=Ge(1710),xe=Ge(57809),fe=Ge(5871),z=Ge(5112),ee=Ge(24905),ae=Ge(81327),re=Ge(14478),le=Ge(59301);const{Option:ue}=xe.default;var pe=(sr=>(sr[sr.language=0]="language",sr[sr.difficulty=1]="difficulty",sr[sr.category=2]="category",sr[sr.openOrNot=3]="openOrNot",sr))(pe||{});const Te={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u9002\u4E2D",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function Ce(sr){return Te[sr].map(Ar=>le.createElement(ue,{key:Ar.title,value:Ar.key}," ",Ar.title," "))}function Fe(sr,Ar){sr.map(Fr=>{const{id:Si,name:Nr,sub_disciplines:hn}=Fr;let cn={value:Si,label:Nr};Ar.push(cn),hn&&hn.length>0&&(cn.children=[],Fe(hn,cn.children))})}function Ae(sr,Ar){var Fr;let Si=[];for(let Nr=0;Nr<sr.length;Nr++){const hn=sr[Nr];if(((Fr=hn.sub_disciplines)==null?void 0:Fr.length)>0){Si[0]=hn.id;for(let cn=0;cn<hn.sub_disciplines.length;cn++){const Ot=hn.sub_disciplines[cn];if(Ot.id===Ar)return Si[1]=Ot.id,[Si,Ot.tag_disciplines||Ot.sub_disciplines||[]]}}}return[Si,[]]}var je=Ge(89070),Ne=Ge(24334),Be=Ge(76618),ze=Ge(65363),Qe=Ge(12290),$e=Ge(99064);function Ye(sr){return(0,$e.v_)("practices.json",sr)}function at(){return(0,$e.U2)("problems/new.json")}function ut(sr){return(0,$e.U2)(`practices/${sr}/edit.json`)}function ht(sr,Ar){return(0,$e.gz)(`practices/${sr}`,Ar)}function Ct(sr,Ar){return post(`exercises/${sr}/exercise_questions.json`,Ar)}function et(sr,Ar){return put(`exercise_questions/${sr}.json`,Ar)}var it=Ge(17064),St=Ge(43428),bt=Ge(23954),Pt=Ge(16869),gt=Ge(79346),dt=Ge(16479),mt={"code-panel-container":"code-panel-container___BZjjl","action-oj-bar":"action-oj-bar___xbXpK",active:"active___EMVKI"},kt=Object.defineProperty,Et=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Ze=(sr,Ar,Fr)=>Ar in sr?kt(sr,Ar,{enumerable:!0,configurable:!0,writable:!0,value:Fr}):sr[Ar]=Fr,we=(sr,Ar)=>{for(var Fr in Ar||(Ar={}))pt.call(Ar,Fr)&&Ze(sr,Fr,Ar[Fr]);if(wt)for(var Fr of wt(Ar))tt.call(Ar,Fr)&&Ze(sr,Fr,Ar[Fr]);return sr},be=(sr,Ar)=>Et(sr,Ut(Ar));const Ke={theme:(0,dt.G)("cmCodeMode","vs-dark"),fontSize:(0,dt.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,dt.G)("cmTabToSpace",!0)};var Xe=(sr=>(sr[sr.set_font_size=0]="set_font_size",sr[sr.set_theme=1]="set_theme",sr[sr.on_tab_to_space=2]="on_tab_to_space",sr[sr.set_show_editor_setting=3]="set_show_editor_setting",sr))(Xe||{});function Oe(sr,Ar){switch(Ar.type){case 3:return be(we({},sr),{showEditorSetting:Ar.payload});case 1:return be(we({},sr),{theme:Ar.payload});case 0:return be(we({},sr),{fontSize:Ar.payload});case 2:return be(we({},sr),{tabToSpace:Ar.payload});default:throw new Error}}var Ue=({value:sr,onChange:Ar,language:Fr,onLanguage:Si,languageItems:Nr,ActionBarRender:hn=cn=>rt.createElement(He,{languageItems:Nr,onLanguage:Si,language:Fr,onShowCodeSetting:cn})})=>{const[cn,Ot]=(0,rt.useReducer)(Oe,Ke),{theme:gn,fontSize:Nn,showEditorSetting:Xt,tabToSpace:zt}=cn;console.log(sr,Fr,"value");const Pn={onFontSizeChange:$t=>{Ot({type:0,payload:$t}),(0,dt.t)("cmFontSize",$t)},tabToSpace:zt,cmFontSize:Nn,className:"oj",cmCodeMode:gn,onTabToSpace:$t=>{Ot({type:2,payload:$t}),(0,dt.t)("cmTabToSpace",$t)},onCodeModeChange:$t=>{Ot({type:1,payload:$t}),(0,dt.t)("cmCodeMode",$t)}};function _n(){Ot({type:3,payload:!1})}function qn(){Ot({type:3,payload:!0})}const Yn={value:sr,language:Fr,onChange:Ar,theme:gn,height:"calc(100% - 56px)",options:{fontSize:Nn,insertSpaces:zt}};return rt.createElement(rt.Fragment,null,rt.createElement("div",{className:mt["code-panel-container"]},hn(qn),rt.createElement(bt.ZP,we({key:Fr},Yn))),rt.createElement(gt.Z,null,rt.createElement(St.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Xt,onClose:_n},rt.createElement(Pt.Z,we({},Pn)))))};function He({languageItems:sr,language:Ar,onShowCodeSetting:Fr,onLanguage:Si}){return rt.createElement("div",{className:mt["action-oj-bar"]},sr==null?void 0:sr.map(Nr=>rt.createElement("div",{className:Ar===(Nr==null?void 0:Nr.language)?mt.active:"",onClick:()=>Si(Nr==null?void 0:Nr.language),key:Nr==null?void 0:Nr.language},Nr==null?void 0:Nr.language)),rt.createElement("a",{onClick:Fr},rt.createElement("i",{className:"iconfont icon-shezhi"})))}var Ve=Ge(99313),Je={flex_box_center:"flex_box_center___4yAaY",flex_space_between:"flex_space_between___YaUgM",flex_box_vertical_center:"flex_box_vertical_center___zR3dp",flex_box_center_end:"flex_box_center_end___rwgS5",flex_box_column:"flex_box_column___LhFeP",wrap:"wrap___xTL91",in:"in___eSY86",btns:"btns___UdEGI",customModal:"customModal___CL0OL"},ct=(sr,Ar,Fr)=>new Promise((Si,Nr)=>{var hn=gn=>{try{Ot(Fr.next(gn))}catch(Nn){Nr(Nn)}},cn=gn=>{try{Ot(Fr.throw(gn))}catch(Nn){Nr(Nn)}},Ot=gn=>gn.done?Si(gn.value):Promise.resolve(gn.value).then(hn,cn);Ot((Fr=Fr.apply(sr,Ar)).next())}),ft=({visible:sr,onOK:Ar,onCancel:Fr})=>{const[Si,Nr]=(0,rt.useState)(!1),[hn,cn]=(0,rt.useState)(!1),[Ot,gn]=(0,rt.useState)("1"),[Nn,Xt]=(0,rt.useState)(""),[zt,Pn]=(0,rt.useState)([]),_n=()=>ct(void 0,null,function*(){if(!Nn){ce.ZP.warning(`\u9898\u76EE${Wn}\u4E0D\u80FD\u4E3A\u7A7A`);return}cn(!0);const or=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:sr,name:Nn}});if((or==null?void 0:or.status)===0){Ar();return}cn(!1)}),qn=(or="")=>ct(void 0,null,function*(){Nr(!0);let nn=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:sr,search:or}});Pn(nn.tag_disciplines||[]),Nr(!1)}),Yn=or=>{let nn=or.name;_e.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u91CD\u547D\u540D",content:rt.createElement("div",null,rt.createElement(ie.default,{defaultValue:nn,placeholder:`\u8BF7\u8F93\u5165${Wn}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20,onChange:Cn=>{nn=Cn.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>ct(void 0,null,function*(){if(!nn)return ce.ZP.warning(`\u9898\u76EE${Wn}\u4E0D\u80FD\u4E3A\u7A7A`),Promise.reject();const Cn=yield(0,$e.ZP)(`/api/tag_disciplines/${or.id}/rename.json`,{method:"post",body:{id:or.id,name:nn}});(Cn==null?void 0:Cn.status)===0&&qn()})})},$t=or=>{_e.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:570,title:"\u5220\u9664",content:sr==="practice"?rt.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u6765\u6E90\u201C",rt.createElement("span",{className:"c-light-primary"},or.name),"\u201D\u5220\u9664\u5417\uFF1F",rt.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u6765\u6E90\u8FDB\u884C\u6E05\u9664\u3002"):rt.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u77E5\u8BC6\u70B9\u201C",rt.createElement("span",{className:"c-light-primary"},or.name),"\u201D\u5220\u9664\u5417\uFF1F",rt.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u77E5\u8BC6\u70B9\u8FDB\u884C\u6E05\u9664\u3002"),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>ct(void 0,null,function*(){const nn=yield(0,$e.ZP)(`/api/tag_disciplines/${or.id}.json`,{method:"delete",body:{id:or.id}});(nn==null?void 0:nn.status)===0&&qn()})})},jn=or=>{qn(or)},Wn=sr==="practice"?"\u77E5\u8BC6\u70B9":"\u6765\u6E90";return rt.createElement(_e.default,{afterClose:()=>{cn(!1),Nr(!1),Xt(""),gn("1"),Pn([])},centered:!0,keyboard:!1,width:600,title:`${Wn}\u7BA1\u7406`,open:!!sr,className:Je.customModal,footer:null,onCancel:Fr},rt.createElement("section",{className:Je.wrap},rt.createElement(Ve.default,{activeKey:Ot,onChange:or=>{Xt(""),gn(or),qn()}},rt.createElement(Ve.default.TabPane,{tab:`\u65B0\u589E${Wn}`,key:"1"},rt.createElement(ie.default,{value:Nn,onChange:or=>Xt(or.target.value),className:Je.in,placeholder:`\u8F93\u5165${Wn}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20}),rt.createElement("div",{className:Je.btns},rt.createElement(Me.ZP,{onClick:Fr,className:"mr20"},"\u53D6\u6D88 "),rt.createElement(Me.ZP,{loading:hn,onClick:_n,type:"primary"},"\u786E\u8BA4\u65B0\u5EFA"))),rt.createElement(Ve.default.TabPane,{tab:`\u5DF2\u6709${Wn}`,key:"2"},rt.createElement(ie.default.Search,{allowClear:!0,onSearch:jn,value:Nn,onChange:or=>Xt(or.target.value),className:Je.in,placeholder:`\u8F93\u5165${Wn}\u540D\u79F0\u8FDB\u884C\u67E5\u8BE2`}),rt.createElement(ve.default,{dataSource:zt,bordered:!1,loading:Si,scroll:zt.length>7?{y:300}:{},style:{padding:"0 0px 20px 0px"},columns:[{title:`${Wn}\u540D\u79F0`,dataIndex:"name",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"action",width:120,render:(or,nn)=>rt.createElement("span",null,rt.createElement("span",{onClick:()=>Yn(nn),className:"current mr10 c-light-primary"},"\u91CD\u547D\u540D"),rt.createElement("span",{onClick:()=>$t(nn),className:"current c-grey-666"},"\u5220\u9664"))}],pagination:!1})))))},Mt=Ge(3294),Jt=Ge(72161),Vt=Ge(61186),Kt=Ge.n(Vt),Ht=Ge(955),tn=Ge(85149),It=Ge(24065),Dt=Ge(59301),qt=Object.defineProperty,sn=Object.defineProperties,xn=Object.getOwnPropertyDescriptors,Ln=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,dr=(sr,Ar,Fr)=>Ar in sr?qt(sr,Ar,{enumerable:!0,configurable:!0,writable:!0,value:Fr}):sr[Ar]=Fr,fr=(sr,Ar)=>{for(var Fr in Ar||(Ar={}))Zn.call(Ar,Fr)&&dr(sr,Fr,Ar[Fr]);if(Ln)for(var Fr of Ln(Ar))Xn.call(Ar,Fr)&&dr(sr,Fr,Ar[Fr]);return sr},pr=(sr,Ar)=>sn(sr,xn(Ar)),Cr=(sr,Ar,Fr)=>new Promise((Si,Nr)=>{var hn=gn=>{try{Ot(Fr.next(gn))}catch(Nn){Nr(Nn)}},cn=gn=>{try{Ot(Fr.throw(gn))}catch(Nn){Nr(Nn)}},Ot=gn=>gn.done?Si(gn.value):Promise.resolve(gn.value).then(hn,cn);Ot((Fr=Fr.apply(sr,Ar)).next())});const{TextArea:Yr}=ie.default,{confirm:ii}=_e.default,{Panel:jr}=Ie.default,fi={loading:!0,user:null,status:0,data:void 0,lastedUpdateTime:0};var Lr=(sr=>(sr[sr.SET_INITAL_DATA=0]="SET_INITAL_DATA",sr[sr.SET_LOADING=1]="SET_LOADING",sr[sr.SET_STATUS=2]="SET_STATUS",sr))(Lr||{});const ot="#### \u9898\u76EE\u63CF\u8FF0\n\u73B0\u6709\u4E00\u4E2A\u6574\u578B\u6570\u7EC4 `nums`\uFF0C\u8BF7\u7F16\u5199\u7A0B\u5E8F\u5C06\u6570\u7EC4 `nums` \u4E2D\u7684\u6240\u6709 `$$0$$` \u79FB\u52A8\u5230\u6570\u7EC4\u7684\u672B\u5C3E\uFF0C\u4F46\u4E0D\u6539\u53D8\u975E\u96F6\u5143\u7D20\u5728\u6570\u7EC4\u4E2D\u7684\u76F8\u5BF9\u4F4D\u7F6E\u3002\u8BF7\u5728\u539F\u6570\u7EC4 `nums` \u4E0A\u8FDB\u884C\u64CD\u4F5C\u3002\n#### \u8F93\u5165\u8F93\u51FA\u683C\u5F0F\n**\u8F93\u5165\u683C\u5F0F**\n\u7B2C\u4E00\u884C\u6709\u4E00\u4E2A\u6574\u6570 `numsSize`\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u5927\u5C0F\uFF1B\n\u7B2C\u4E8C\u884C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n**\u8F93\u51FA\u683C\u5F0F**\n\u4E00\u884C\u8F93\u51FA\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B1\n**\u8F93\u5165**\n`4`\n`0 1 2 3`\n**\u8F93\u51FA**\n`1 2 3 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B2\n**\u8F93\u5165**\n`5`\n`1 1 0 1 0`\n**\u8F93\u51FA**\n`1 1 1 0 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8BF4\u660E\u63D0\u793A\n-`1\u2264n\u2264100`";function oi(sr,Ar){switch(Ar.type){case 0:return fr(fr({},sr),Ar.payload);case 1:return pr(fr({},sr),{loading:Ar.payload});case 2:return pr(fr({},sr),{status:Ar.payload});default:throw new Error}}var yi=()=>{var sr,Ar,Fr;const Si=(0,je.useLocation)(),{id:Nr}=(0,je.useParams)(),[hn]=ge.default.useForm(),[cn,Ot]=(0,rt.useState)(),[gn,Nn]=(0,rt.useState)(!1),[Xt,zt]=(0,rt.useState)([]),[Pn,_n]=(0,rt.useState)([]),[qn,Yn]=(0,rt.useState)([]),[$t,jn]=(0,rt.useState)([]),[Wn,or]=(0,rt.useState)([]),[nn,Cn]=(0,rt.useState)("C"),[rn,mn]=(0,rt.useReducer)(oi,fi),{loading:En,data:pn,user:kn,status:Mn}=rn,zn=pn==null?void 0:pn.hack_sets,Dn=(sr=pn==null?void 0:pn.hack)==null?void 0:sr.test_set_average,[ar,dn]=(0,rt.useState)(!1),Or=(0,rt.useRef)([]),[Jr,Rr]=(0,rt.useState)(!1),[vn,Jn]=(0,rt.useState)(!1),lr=(0,rt.useRef)(!0),[vr,Sr]=(0,rt.useState)({});(0,rt.useEffect)(()=>((0,je.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,je.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,je.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,je.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,rt.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)});const Kr=()=>Cr(void 0,null,function*(){const _r=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice"}}),Ir=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source"}});_n(_r.tag_disciplines||[]),Yn(Ir.tag_disciplines||[])});var ai=[{language:"C",code:""},{language:"C++",code:""},{language:"Java",code:""},{language:"Python",code:""}];const Br=(0,rt.useCallback)(()=>Cr(void 0,null,function*(){if(mn({type:1,payload:!0}),Nr){const _r=yield ut(Nr),{user:Ir,language:_i,practice_sets:Ji,practice_codes:zr,description:Vr,difficulty:Ci,name:mi,open_or_not:Vi,time_limit:io,test_set_average:Hr,test_set_score:Er,status:Kn,tag_discipline_ids:li,source_discipline_ids:Qi,item_banks_group_id:zo,is_file:Mo=!1,hide_actual_output:Uo,review_privilege:ca,review_description:Jo,submit_rule:qa}=_r;Sr({review_privilege:ca,status:Kn,review_description:Jo,name:mi}),dn(Uo);const es=Mo?[{input:"",output:"",score:100,position:1}]:Ji;Mo?(zt(Ji),hn.setFieldsValue({hack_sets:es})):zt([]),mn({type:0,payload:{loading:!0,user:Ir,status:Kn,data:{hack:{difficulty:Ci,name:mi,description:Vr,open_or_not:Vi,time_limit:io,test_set_average:Hr,test_set_score:Er,tag_discipline_ids:li,source_discipline_ids:Qi,is_file:Mo,submit_rule:qa},hack_sets:es}}}),Ot({hack:{difficulty:Ci,name:mi,description:Vr,open_or_not:Vi,time_limit:io,test_set_average:Hr,test_set_score:Er,tag_discipline_ids:li,source_discipline_ids:Qi,is_file:Mo}});const ma=zr==null?void 0:zr.map(Ql=>pr(fr({},Ql),{code:Ne.Base64.decode(Ql==null?void 0:Ql.code)}));or(ma),Or.current=ma}else{const{user:_r}=yield at();mn({type:0,payload:{loading:!0,status:0,user:_r,data:{hack:{difficulty:"",time_limit:3,description:ot,test_set_score:!0,test_set_average:!0,open_or_not:!0,name:"",is_file:!1,submit_rule:1},hack_sets:[{input:"",output:"",score:100,position:1}]}}}),Ot({hack:{difficulty:"",time_limit:3,description:"",test_set_average:!0,open_or_not:!0,name:"",is_file:!1}}),or(ai),Or.current=ai}mn({type:1,payload:!1})}),[Nr]);(0,rt.useEffect)(()=>{try{Br(),Kr()}catch(_r){console.log(_r,"----")}},[]);function br(_r,Ir){return Cr(this,null,function*(){var _i;const{hack_sets:Ji,hack:zr}=fr({},_r);zr.hide_actual_output=ar;let Vr=[],Ci=[],mi=0;const Vi=zr!=null&&zr.is_file?Xt.map((Er,Kn)=>pr(fr({},Er),{position:Kn+1})):Ji.map(Er=>pr(fr({},Er),{is_file:!1}));for(let Er of Vi)mi+=Er.score,Er.id&&Er.id>=0?Vr.push(Er):Ci.push(Er);if(!(Vi!=null&&Vi.length)){ce.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}if(mi!==100&&!zr.test_set_score){ce.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(Vi!=null&&Vi.some(Er=>!Er.output)){ce.ZP.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A");return}lr.current?Rr(!0):Jn(!0);let io;const Hr=Wn==null?void 0:Wn.map(Er=>pr(fr({},Er),{code:Ne.Base64.encode(Er==null?void 0:Er.code)}));if(Nr?io=yield ht(Nr,{practice:zr,practice_codes:Hr,practice_sets:Ci,update_practice_sets:Vr}):io=yield Ye({practice:zr,practice_codes:Hr,practice_sets:Vi,publish:!lr.current}),Rr(!1),Jn(!1),(io==null?void 0:io.status)===0){if((_i=io==null?void 0:io.similar_practice)!=null&&_i.length){Nn(!0),jn(io==null?void 0:io.similar_practice);return}if(Nr){if(ce.ZP.success("\u4FDD\u5B58\u6210\u529F"),!lr.current){const Er=yield(0,$e.ZP)(`/api/practices/${Nr}/start`,{method:"get"});(Er==null?void 0:Er.status)===0&&je.history.push(`/problems/${Er==null?void 0:Er.identifier}/oj/${Nr}`)}}else ce.ZP.success("\u65B0\u5EFA\u6210\u529F"),je.history.replace(`/problems/${io==null?void 0:io.identifier}/ojedit`)}})}function si(){je.history.replace("/problems")}const Tn=_r=>{const Ir=Math.floor(100/_r.length),_i=Ir+100%_r.length;_r=_r.map((Ji,zr)=>zr===_r.length-1?pr(fr({},Ji),{score:_i}):pr(fr({},Ji),{score:Ir})),zt(_r)};function Ri(_r){_r.target.value||Tn(Xt),mn({type:0,payload:{data:pr(fr({},pn),{hack:pr(fr({},pn.hack),{test_set_score:_r.target.value})})}})}function On(_r){mn({type:0,payload:{data:pr(fr({},pn),{hack:pr(fr({},pn.hack),{is_file:_r.target.value})})}})}function pi(_r){dn(_r.target.checked)}function xo(_r){const Ir=_r.target.value;Ir&&Tn(Xt),mn({type:0,payload:{data:pr(fr({},pn),{hack:pr(fr({},pn.hack),{test_set_average:Ir})})}})}function zi(){let _r=hn.getFieldValue("hack_sets");const Ir=_r.length+1,_i=Math.floor(100/Ir),Ji=100%Ir;_r.map((zr,Vr)=>(Dn&&(zr.score=_i),zr.position=Vr+1,zr)),_r.push({input:"",output:"",position:Ir,score:Dn?_i+Ji:0}),hn.setFieldsValue({hack_sets:_r}),mn({type:0,payload:{data:pr(fr({},pn),{hack_sets:_r})}})}(0,rt.useEffect)(()=>{if(Dn){const _r=zn==null?void 0:zn.length,Ir=Math.floor(100/_r),_i=100%_r;zn==null||zn.map((Ji,zr)=>(Ji.score=Ir,Ji.position=zr+1,zr===_r-1&&(Ji.score=Ir+_i),Ji)),mn({type:0,payload:{data:pr(fr({},pn),{hack_sets:zn})}}),hn.setFieldsValue({hack_sets:zn})}},[Dn]);function Lo(_r){let Ir=hn.getFieldValue("hack_sets");const _i=(Ir==null?void 0:Ir.length)-1,Ji=Math.ceil(100/_i),zr=100%_i;Ir.splice(_r,1),Ir==null||Ir.map((Vr,Ci)=>(Dn&&(Vr.score=Ji,Ci===_i-1&&(Vr.score=Ji+zr)),Vr.position=Ci+1,Vr)),mn({type:0,payload:{data:pr(fr({},pn),{hack_sets:Ir})}}),hn.setFieldsValue({hack_sets:Ir})}function yo(_r){Cn(_r)}const Ur=_r=>{var Ir;const _i=(Ir=Or.current)==null?void 0:Ir.findIndex(Ji=>Ji.language===nn);Or.current[_i].code=_r,or(Or.current)},Gr=_r=>{Ot(fr({},hn.getFieldsValue()))},Mi=_r=>Cr(void 0,null,function*(){const Ir=yield(0,$e.ZP)(`/api/practices/${_r}/start`,{method:"get"});(Ir==null?void 0:Ir.status)===0&&(0,Ht.xg)(`/problems/${Ir==null?void 0:Ir.identifier}/oj/${_r}`)}),Hi=()=>Cr(void 0,null,function*(){const _r=yield ut(Nr),{name:Ir,status:_i,review_privilege:Ji,review_description:zr}=_r;Sr({review_privilege:Ji,status:_i,review_description:zr,name:Ir})}),cr=()=>{let _r="";_e.default.confirm({icon:null,width:700,className:"custom-modal-divider",centered:!0,title:"\u4E0D\u901A\u8FC7\u539F\u56E0",content:Dt.createElement("div",{className:"mt20"},Dt.createElement(Qe.Z,{className:vt.MdEditor,defaultValue:_r,onChange:Ir=>{_r=Ir}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Cr(void 0,null,function*(){if(!_r)return ce.ZP.warning("\u4E0D\u901A\u8FC7\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Ir=yield(0,$e.ZP)(`/api/practices/${Nr}/review.json`,{method:"post",body:{op:"fail",description:_r}});(Ir==null?void 0:Ir.status)===0&&(ce.ZP.success("\u63D0\u4EA4\u6210\u529F"),Hi())})})},Lt=()=>Cr(void 0,null,function*(){_e.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u63D0\u793A",content:`\u786E\u8BA4\u5C06\u9898\u76EE\u300A${vr==null?void 0:vr.name}\u300B\u7684\u5BA1\u6838\u901A\u8FC7\u5417\uFF1F`,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Cr(void 0,null,function*(){const _r=yield(0,$e.ZP)(`/api/practices/${Nr}/review.json`,{method:"post",body:{op:"pass"}});(_r==null?void 0:_r.status)===0&&(ce.ZP.success("\u63D0\u4EA4\u6210\u529F"),Hi())})})}),Ii=()=>{const _r=_e.default.confirm({icon:null,width:700,className:`${vt.cusModal} custom-modal-divider`,centered:!0,title:Dt.createElement(Pe.Z,null,Dt.createElement(Ee.Z,{flex:"1"},"\u4E0D\u901A\u8FC7\u539F\u56E0"),Dt.createElement(Ee.Z,null,Dt.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>_r.destroy()}))),content:Dt.createElement("div",null,Dt.createElement(tn.Z,{className:"mt20",value:(vr==null?void 0:vr.review_description)||""}))})};return Dt.createElement(ye.Z,{spinning:En,size:"large",className:vt["oj-custom-large-spin"]},pn?Dt.createElement(rt.Fragment,null,Dt.createElement("header",{className:vt.header},Dt.createElement("div",null,Dt.createElement("img",{src:`${Mt.Z.IMG_SERVER}/images/${kn==null?void 0:kn.image_url}`,alt:"user",width:30}),Dt.createElement("span",null,kn==null?void 0:kn.name)),Dt.createElement("h2",null," ",(Ar=pn==null?void 0:pn.hack)==null?void 0:Ar.name," "),Nr?Dt.createElement("a",{className:vt.btn_back,onClick:si}," ",Dt.createElement(Be.Z,null),"\u9000\u51FA"):null),Dt.createElement(ge.default,{form:hn,initialValues:pn,layout:"vertical",className:vt["oj-form-container"],onValuesChange:Gr,onFinish:br},Dt.createElement(it.Z,{hideResize:!0,className:vt["oj-problems"],leftChild:Dt.createElement(Pi,{formValue:cn,onRemoveTestCase:Lo,onAddTestCase:zi,hack:pn.hack,onChangeScore:Ri,onChangehide:pi,onChangeAverage:xo,onChangeFile:On,uploadData:Xt,setUploadData:zt,handleUploadRatio:Tn,ischecked:ar,pointData:Pn,sourceData:qn,getPointData:Kr}),rightChild:Dt.createElement(Ue,{value:(Fr=Wn==null?void 0:Wn.find(_r=>_r.language===nn))==null?void 0:Fr.code,onChange:Ur,onLanguage:yo,languageItems:Wn,language:nn})}),Dt.createElement("div",{className:vt.footer},!!Nr&&Dt.createElement("div",{className:vt.result},Dt.createElement("span",null,"\u5BA1\u6838\u7ED3\u679C:"),vr!=null&&vr.review_privilege?Dt.createElement(Dt.Fragment,null,Dt.createElement("div",{onClick:Lt,className:vt.pass},"\u901A\u8FC7"),Dt.createElement("div",{onClick:cr,className:vt.noPass},"\u4E0D\u901A\u8FC7")):Dt.createElement(Dt.Fragment,null,(vr==null?void 0:vr.status)===0&&Dt.createElement("div",{className:vt.passText},Dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u53D1\u5E03"),(vr==null?void 0:vr.status)===1&&Dt.createElement("div",{className:vt.passText},Dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5DF2\u516C\u5F00"),(vr==null?void 0:vr.status)===2&&Dt.createElement("div",{className:vt.passText},Dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u5BA1\u6279"),(vr==null?void 0:vr.status)===3&&Dt.createElement("div",{className:vt.passText},Dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u4E2D"),(vr==null?void 0:vr.status)===4&&Dt.createElement("div",{className:vt.passText},Dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u5B8C\u6210\u5F85\u516C\u5F00"),(vr==null?void 0:vr.status)===5&&Dt.createElement("div",{className:vt.noPassText},Dt.createElement("i",{className:"iconfont icon-weitongguo1"}),"\u5BA1\u6838\u4E0D\u901A\u8FC7",Dt.createElement("span",{onClick:Ii},"\u67E5\u770B\u539F\u56E0")))),Dt.createElement(Me.ZP,{type:"primary",ghost:!0,onClick:si},"\u9000\u51FA\u7F16\u8F91"),Dt.createElement(Me.ZP,{disabled:vn,loading:Jr,type:"primary",onClick:()=>{lr.current=!0,hn.submit()}},"\u4FDD\u5B58 "),Nr?Dt.createElement(Me.ZP,{disabled:Jr,loading:vn,style:{background:"#2FC25B",border:0},type:"primary",onClick:()=>{lr.current=!1,hn.submit()}},"\u7ACB\u5373\u4F53\u9A8C"):Dt.createElement(Me.ZP,{disabled:Jr,loading:vn,type:"primary",onClick:()=>{lr.current=!1,hn.submit()}},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u5BA1\u6838")))):null,Dt.createElement(_e.default,{centered:!0,destroyOnClose:!0,footer:null,open:gn,onCancel:()=>Nn(!1),title:"\u76F8\u4F3C\u6027\u68C0\u6D4B",width:"600px"},Dt.createElement("div",null,Dt.createElement("p",{className:"font14"},"\u7ECF\u7CFB\u7EDF\u68C0\u6D4B\u53D1\u73B0\uFF0C\u672C\u9898\u76EE\u4E0E\u7CFB\u7EDF\u4E2D\u5DF2\u521B\u5EFA\u7684\u9898\u76EE\u9AD8\u5EA6\u96F7\u540C\uFF0C\u8BF7\u8C03\u6574\u9898\u76EE\u540E\u518D\u8FDB\u884C\u4FDD\u5B58"),Dt.createElement(ve.default,{dataSource:$t,bordered:!1,scroll:$t.length>7?{y:300}:{},columns:[{title:"\u76F8\u4F3C\u9898\u9898\u76EE",dataIndex:"name",ellipsis:!0,render:(_r,Ir)=>Dt.createElement("span",{onClick:()=>Mi(Ir==null?void 0:Ir.identifier),style:{textDecorationLine:"underline"},className:"current c-light-primary"},_r)},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"create_time",width:170,render:_r=>{var Ir;return(Ir=Kt()(_r))==null?void 0:Ir.format("YYYY-MM-DD HH:mm")}}],pagination:!1}))))};function Pi({ischecked:sr,formValue:Ar,hack:Fr,onChangeAverage:Si,onChangeScore:Nr,onChangehide:hn,onChangeFile:cn,onAddTestCase:Ot,onRemoveTestCase:gn,uploadData:Nn,setUploadData:Xt,handleUploadRatio:zt,pointData:Pn,sourceData:_n,getPointData:qn}){var Yn,$t;const{test_set_average:jn,test_set_score:Wn}=Fr,[or,nn]=(0,rt.useState)(!1),[Cn,rn]=(0,rt.useState)(!1),mn=(Dn,ar)=>{const dn=[...Nn];dn.splice(ar,1),jn?zt(dn):Xt(dn)},En=(Dn,ar)=>{console.log(Dn,ar);const dn=Nn.map((Or,Jr)=>Jr===ar?pr(fr({},Or),{score:Dn.target.value?Number(Dn.target.value):0}):Or);Xt(dn)},pn=Dn=>{const ar=Nn.concat(Dn);Fr.test_set_average?zt(ar):Xt(ar)};function kn(Dn){Dn.stopPropagation()}function Mn(){if((0,It.Ny)()){rn("practice");return}let Dn="";_e.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",content:Dt.createElement("div",null,Dt.createElement(ie.default,{placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:ar=>{Dn=ar.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Cr(this,null,function*(){const ar=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice",name:Dn}});(ar==null?void 0:ar.status)===0&&qn()})})}function zn(){if((0,It.Ny)()){rn("practice_source");return}let Dn="";_e.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u6765\u6E90",content:Dt.createElement("div",null,Dt.createElement(ie.default,{placeholder:"\u8BF7\u8F93\u5165\u6765\u6E90\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:ar=>{Dn=ar.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Cr(this,null,function*(){const ar=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice_source",name:Dn}});(ar==null?void 0:ar.status)===0&&qn()})})}return Dt.createElement("div",{className:vt["oj-left-panel"]},Dt.createElement("div",{className:vt["oj-form-info"]},Dt.createElement(ge.default.Item,{label:"\u9898\u76EE\u540D\u79F0",name:["hack","name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0"}],className:vt.inputOne},Dt.createElement(ie.default,{bordered:!1,maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0",suffix:Dt.createElement("span",null,(($t=(Yn=Ar==null?void 0:Ar.hack)==null?void 0:Yn.name)==null?void 0:$t.length)||0,"/",Dt.createElement("span",{className:"c-grey-999"},"60"))})),Dt.createElement(ge.default.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},Dt.createElement(Qe.Z,{placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u63CF\u8FF0\u2026",miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})),Dt.createElement("div",{className:vt.row},Dt.createElement("div",{className:vt.a},Dt.createElement(ge.default.Item,{label:"\u96BE\u6613\u5EA6",name:["hack","difficulty"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},Dt.createElement(xe.default,null,Ce(pe.difficulty)))),Dt.createElement("div",{className:vt.b},Dt.createElement(ge.default.Item,{label:"\u9898\u76EE\u6765\u6E90",name:["hack","source_discipline_ids"]},Dt.createElement(xe.default,{placeholder:"\u9009\u62E9\u9898\u76EE\u6765\u6E90",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:Dn=>Dn.parentNode},_n.map(Dn=>Dt.createElement(xe.default.Option,{key:Dn.id,value:Dn.id},Dn.name)))),Dt.createElement(Me.ZP,{style:{padding:"0 18px"},type:"primary",ghost:!0,onClick:()=>zn()},(0,It.Ny)()?"\u6765\u6E90\u7BA1\u7406":"\u65B0\u5EFA\u6765\u6E90"))),Dt.createElement("div",{className:vt.row},Dt.createElement("div",{className:vt.b,style:{width:"100%",marginLeft:0}},Dt.createElement(ge.default.Item,{label:"\u77E5\u8BC6\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"}],name:["hack","tag_discipline_ids"]},Dt.createElement(xe.default,{placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:Dn=>Dn.parentNode},Pn.map(Dn=>Dt.createElement(xe.default.Option,{key:Dn.id,value:Dn.id},Dn.name)))),Dt.createElement(Me.ZP,{type:"primary",ghost:!0,onClick:()=>Mn()},(0,It.Ny)()?"\u77E5\u8BC6\u70B9\u7BA1\u7406":"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))),Dt.createElement("div",{className:vt.field},Dt.createElement(ge.default.Item,{label:"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236",name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:1,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F1\u79D2"}],className:vt.inputTwo,extra:Dt.createElement("span",{style:{position:"absolute",left:200,top:11,color:"#333"}},"\u79D2",Dt.createElement("span",{className:"ml5 c-grey-999"},"(\u4EE3\u7801\u6267\u884C\u6240\u5141\u8BB8\u7684\u6700\u5927\u65F6\u957F)"))},Dt.createElement(fe.Z,{style:{width:185},min:1}))),Dt.createElement("div",{className:"tst-case-info"},Dt.createElement("h3",{className:"flex-container",style:{justifyContent:"space-between"}}," ","\u6D4B\u8BD5\u7528\u4F8B\u4E0E\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219",!Fr.is_file&&Dt.createElement(Me.ZP,{style:{height:40},type:"primary",ghost:!0,onClick:Ot},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B")),Dt.createElement(ge.default.Item,{name:["hack","test_set_score"]},Dt.createElement(z.ZP.Group,{onChange:Nr},Dt.createElement(z.ZP,{value:!0},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",Dt.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09")),Dt.createElement(z.ZP,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",Dt.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))),Dt.createElement(ee.default,{style:{marginBottom:"5px"},checked:sr,onChange:hn},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA \uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u5B66\u751F\u505A\u9898\u8FC7\u7A0B\u4E2D\u65E0\u6CD5\u770B\u5230\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\uFF0C\u4EC5\u5C55\u793A\u662F\u5426\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7\uFF09"),Dt.createElement(ge.default.Item,{className:vt.testJi,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B:"},Dt.createElement(z.ZP.Group,{onChange:cn},Dt.createElement(ae.Z,{direction:"horizontal"},Dt.createElement(z.ZP,{value:!1},"\u6587\u672C"),Dt.createElement(z.ZP,{value:!0},"\u6587\u4EF6")))),Dt.createElement(ge.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",name:["hack","submit_rule"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},Dt.createElement(z.ZP.Group,null,Dt.createElement(z.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Dt.createElement(z.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Dt.createElement(z.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),!Fr.test_set_score&&Dt.createElement(ge.default.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4"},Dt.createElement(z.ZP.Group,{onChange:Si},Dt.createElement(z.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),Dt.createElement(z.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),Fr.is_file&&Dt.createElement("div",{className:vt.upBtn},Dt.createElement(Me.ZP,{ghost:!0,type:"primary",className:"mb20",onClick:()=>nn(!0)},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),Dt.createElement(Jt.Y2,{disabled:Fr==null?void 0:Fr.test_set_average,inputChange:En,showScore:!Fr.test_set_score,data:Nn,onRemove:mn})),!Fr.is_file&&Dt.createElement(ge.default.List,{name:"hack_sets"},(Dn,{})=>Dt.createElement(Ie.default,{accordion:!0},Dn.map((ar,dn)=>Dt.createElement(jr,{key:`${ar.key}--${dn}`,header:Dt.createElement("a",{className:vt["test-case-name"]},Dt.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",dn+1),Wn?null:Dt.createElement(Dt.Fragment,null,Dt.createElement(ge.default.Item,{name:[ar.name,"score"],fieldKey:[ar.fieldKey,"score"],rules:[{required:!0,message:`\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6${dn+1}\u8BC4\u5206`}]},Dt.createElement(fe.Z,{onClick:kn,min:0,max:100,disabled:jn})),Dt.createElement("span",null,"%"))),extra:dn>0?Dt.createElement("div",{onClick:kn},Dt.createElement(re.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6\b"+(dn+1),onConfirm:()=>{gn(dn)}},Dt.createElement(ze.Z,{className:vt["btn-remove-case"]}))):null},Dt.createElement(ge.default.Item,{label:"\u8F93\u5165",name:[ar.name,"input"],fieldKey:[ar.fieldKey,"input"]},Dt.createElement(Yr,null)),Dt.createElement(ge.default.Item,{label:"\u8F93\u51FA",name:[ar.name,"output"],fieldKey:[ar.fieldKey,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Dt.createElement(Yr,null)))))))),Dt.createElement(Jt.ZP,{rootIdentifier:null,visible:or,onClose:()=>nn(!1),onOK:pn}),Dt.createElement(ft,{visible:Cn,onCancel:()=>{rn(!1),qn()},onOK:()=>{rn(!1),qn()}}))}},72161:function(bn,an,Ge){"use strict";Ge.d(an,{Y2:function(){return ut},ZP:function(){return ht}});var rt=Ge(59301),vt=Ge(54580),ie=Ge(8591),_e=Ge(43418),Ie=Ge(95237),ge=Ge(5112),ce=Ge(3113),Pe=Ge(24905),Ee=Ge(6848),ye=Ge(92832),Me={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",xe=Ge(47257),fe=Ge.n(xe),z=Ge(81939),ee=Ge(99064),ae=Ge(1012),re=Ge(955),le=Ge(23210),ue=Ge(59301),pe=Object.defineProperty,Te=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ne=(Ct,et,it)=>et in Ct?pe(Ct,et,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ct[et]=it,Be=(Ct,et)=>{for(var it in et||(et={}))Ae.call(et,it)&&Ne(Ct,it,et[it]);if(Fe)for(var it of Fe(et))je.call(et,it)&&Ne(Ct,it,et[it]);return Ct},ze=(Ct,et)=>Te(Ct,Ce(et)),Qe=(Ct,et,it)=>new Promise((St,bt)=>{var Pt=mt=>{try{dt(it.next(mt))}catch(kt){bt(kt)}},gt=mt=>{try{dt(it.throw(mt))}catch(kt){bt(kt)}},dt=mt=>mt.done?St(mt.value):Promise.resolve(mt.value).then(Pt,gt);dt((it=it.apply(Ct,et)).next())});const{Dragger:$e}=vt.default,Ye=Ct=>{const et=kt=>kt&&kt.substring(0,kt.lastIndexOf("."));for(var it=[...Ct],St=0,bt=[],Pt=0;Pt<it.length;Pt++){for(var gt="",dt=0;dt<bt.length;dt++)if(et(bt[dt][0].name)==et(it[Pt].name)){St=1,gt=dt;break}if(St==1)bt[gt].push(it[Pt]),St=0;else if(St==0){let kt=new Array;kt.push(it[Pt]),bt.push(kt)}}return bt.map(kt=>{if(kt.forEach(Et=>{let Ut=Et.name.split(/\.(?=[^\.]+$)/);Et.name=`${Ut[0]}.${Ut[1].toLowerCase()}`}),kt[0].name.includes(".in"))return kt.length===2?kt:[kt[0],{}];if(kt[0].name.includes(".out"))return kt.length===2?kt.reverse():[{},kt[0]]})},at=({onClose:Ct,onOK:et,visible:it,wrapClassName:St,rootIdentifier:bt,multiple:Pt=!1,defaultMultipleValue:gt=!0})=>{const[dt,mt]=(0,rt.useState)([]),[kt,Et]=(0,rt.useState)({}),[Ut,wt]=(0,rt.useState)(!1),[pt,tt]=(0,rt.useState)(!0),Ze=(0,rt.useRef)([]),we=(0,rt.useRef)(0),be=()=>{Ct()};(0,rt.useEffect)(()=>{Ke()},[]),(0,rt.useEffect)(()=>{it&&(Ze.current=[],we.current=0,mt([]),tt(gt))},[it]);const Ke=()=>Qe(void 0,null,function*(){try{const yt=yield(0,ee.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),ft=JSON.parse((0,z.pe)(yt.data));Et(ft)}catch(yt){}}),Xe=yt=>yt&&yt.substring(0,yt.lastIndexOf(".")),Oe=yt=>{var ft,Mt;const Jt=Xe((ft=yt[0])==null?void 0:ft.name)||Xe((Mt=yt[1])==null?void 0:Mt.name),Vt=dt.filter(Kt=>Xe(Kt.name)!==Jt);Ze.current=[...Vt],mt([...Vt])},Ue=yt=>{if(!pt){const Ht=new FormData;Ht.append("file",yt.file),(0,ee.ZP)("/api/attachments/get_file_content.json",{method:"post",body:Ht},!0).then(It=>{if(It.status===0){we.current=we.current+1;const Dt=Ze.current.map(qt=>{var sn;if(qt.name===yt.name){const xn=Be({},qt);return(sn=yt==null?void 0:yt.name)!=null&&sn.includes(".in")?xn.input=It==null?void 0:It.content:xn.output=It==null?void 0:It.content,xn}return qt});if(Ze.current=[...Dt],mt([...Dt]),we.current>0&&we.current===dt.length){wt(!1);let qt=Ye(Dt);qt=qt.filter(sn=>{var xn,Ln;return!!((xn=sn[0])!=null&&xn.name&&((Ln=sn[1])!=null&&Ln.name))}),qt=qt.map(sn=>ze(Be(Be({},sn[0]),sn[1]),{is_file:!1})),et(qt),Ct()}}else wt(!1),Ct()});return}const ft=new(fe())({endpoint:kt.end_point,region:kt.region,accessKeyId:kt.access_key_id,accessKeySecret:kt.access_key_secret,bucket:kt.bucket,stsToken:kt.security_token}),Mt=yt.name,Jt={container_type:"TestSet",file_name:Mt},Vt=(0,ae.Z)();let Kt=`testsets/${bt}/${Vt}${Mt.indexOf(".")>-1?"."+Mt.split(".").pop():""}`;bt===null&&(Kt=`testsets/${Vt}${Mt.indexOf(".")>-1?"."+Mt.split(".").pop():""}`),ft.multipartUpload(Kt,new Blob([yt.file],{type:yt.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Mt+""},url:kt==null?void 0:kt.callback_url,host:kt==null?void 0:kt.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ee.rz)(Jt)}}).then(function(Ht){if(Ht.data.status===0){we.current=we.current+1;const tn=Ze.current.map(It=>{var Dt,qt,sn,xn,Ln,Zn,Xn,dr,fr,pr,Cr,Yr,ii,jr,fi,Lr,ot;if(It.name===((qt=(Dt=Ht.data)==null?void 0:Dt.data)==null?void 0:qt.file_name)){const oi=Be({},It);return(Ln=(xn=(sn=Ht.data)==null?void 0:sn.data)==null?void 0:xn.file_name)!=null&&Ln.includes(".in")?(oi.in_object_key=(Xn=(Zn=Ht.data)==null?void 0:Zn.data)==null?void 0:Xn.object,oi.in_object_size=(fr=(dr=Ht.data)==null?void 0:dr.data)==null?void 0:fr.size,oi.input=(Cr=(pr=Ht.data)==null?void 0:pr.data)==null?void 0:Cr.file_name,oi.in_file=yt):(oi.out_object_key=(ii=(Yr=Ht.data)==null?void 0:Yr.data)==null?void 0:ii.object,oi.out_object_size=(fi=(jr=Ht.data)==null?void 0:jr.data)==null?void 0:fi.size,oi.output=(ot=(Lr=Ht.data)==null?void 0:Lr.data)==null?void 0:ot.file_name,oi.out_file=yt),oi}return It});if(Ze.current=[...tn],mt([...tn]),we.current>0&&we.current===dt.length){wt(!1);let It=Ye(tn);It=It.filter(Dt=>{var qt,sn;return!!((qt=Dt[0])!=null&&qt.name&&((sn=Dt[1])!=null&&sn.name))}),It=It.map(Dt=>ze(Be(Be({},Dt[0]),Dt[1]),{is_file:!0})),et(It),Ct()}}})},He=yt=>new Promise((ft,Mt)=>{let Jt=0,Vt=[];for(let Kt=0;Kt<yt.length;Kt++)yt[Kt].file.slice(0,1).arrayBuffer().then(()=>{Jt++,Jt===yt.length&&(Vt.length?(ie.ZP.warning(`${Vt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Mt()):ft(yt))}).catch(Ht=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",Ht),Jt++,Vt.push(yt[Kt].name),Jt===yt.length&&(Vt.length?(ie.ZP.warning(`${Vt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Mt()):ft(yt))})}),Ve=()=>Qe(void 0,null,function*(){if(dt.length===0){ie.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield He(dt),wt(!0),Ye(dt).some(ft=>{var Mt,Jt;return!((Mt=ft[0])!=null&&Mt.name&&((Jt=ft[1])!=null&&Jt.name))})){_e.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Qe(void 0,null,function*(){dt.map(ft=>Qe(void 0,null,function*(){Ue(ft)}))}),onCancel:()=>{wt(!1)}});return}dt.map(ft=>Qe(void 0,null,function*(){Ue(ft)}))}),Je={name:"file",fileList:dt,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:yt=>{if(dt!=null&&dt.some(Mt=>Mt.name===yt.name))return ie.ZP.info(`${yt.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(yt.size/1024/1024>100)return ie.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(yt.name))return ie.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const ft={name:yt.name,uid:yt.uid,file:yt,percent:0};return dt.push(ft),Ze.current=[...dt],mt([...dt]),!1}},ct=Ye(dt);return console.log(dt,ct,"fileList"),ue.createElement(_e.default,{open:it,wrapClassName:St,onOk:Ve,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:Ut},onCancel:be,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},ue.createElement("div",{className:Me.wrap},dt.length?ue.createElement("div",null,ue.createElement(Ie.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},ue.createElement("div",{style:{visibility:Pt?"visible":"hidden"}},ue.createElement("span",{className:Me.greyText},"\u7528\u4F8B\u7C7B\u578B"),ue.createElement(ge.ZP.Group,{className:`ml20 ${Me.testCaseRadio}`,optionType:"button",value:pt,onChange:yt=>tt(yt.target.value)},ue.createElement(ge.ZP,{value:!1},"\u6587\u672C"),ue.createElement(ge.ZP,{value:!0},"\u6587\u4EF6"))),ue.createElement(vt.default,Be({},Je),ue.createElement(ce.ZP,{type:"primary",className:Me.btnS},ue.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),ue.createElement(ut,{data:ct,onRemove:Oe})):ue.createElement("div",{className:`${Me.noData} mb30`},ue.createElement(vt.default.Dragger,ze(Be({},Je),{className:Me.dragger}),ue.createElement("img",{src:ve,alt:"",className:"mb20"}),ue.createElement("div",null,ue.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),ue.createElement("span",{className:Me.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),ue.createElement("div",{className:Me.text},ue.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),ue.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",ue.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",ue.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",ue.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",ue.createElement("br",null))))},ut=({data:Ct=[],onRemove:et,width:it="auto",showScore:St=!1,disabled:bt=!1,inputChange:Pt,onEvaluatingChange:gt,onSelectAll:dt,checkAll1:mt,checkAll2:kt,checkAll3:Et,checkAll4:Ut,checkAll5:wt,showEvaluatingSetting:pt=!1,className:tt="",isProgramHomework:Ze=!1})=>{const we={value:"",filename:"",dataUrl:""},[be,Ke]=(0,rt.useState)(Be({},we)),Xe=He=>{let Ve=document.createElement("a");document.body.appendChild(Ve);let Je=URL.createObjectURL(He.file);Ve.href=Je,Ve.download=He.name,Ve.click(),URL.revokeObjectURL(Je),document.body.removeChild(Ve)},Oe=(He,Ve)=>{(0,re.LR)(He,Ve)},Ue=(He,Ve)=>{_e.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ue.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{et(He,Ve)},onCancel:()=>{}})};return Ct.length?ue.createElement("div",{className:tt,style:{width:it}},ue.createElement("div",{className:`${Ze?Me.headProgram:Me.head}`},pt&&ue.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:mt,onChange:He=>{dt(He.target.checked,"hidden")}}),ue.createElement(Ee.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},ue.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ue.createElement("div",{style:{width:Ze?"25%":"15%"}},"\u7528\u4F8B"),ue.createElement("div",{style:{width:St?Ze?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),ue.createElement("div",{style:{width:St?Ze?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),St&&ue.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),pt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:Ut,onChange:He=>{dt(He.target.checked,"input_visible")}}),ue.createElement(Ee.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),pt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:kt,onChange:He=>{dt(He.target.checked,"is_invisible")}}),ue.createElement(Ee.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),pt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:wt,onChange:He=>{dt(He.target.checked,"actual_output_visible")}}),ue.createElement(Ee.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),pt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:Et,onChange:He=>{dt(He.target.checked,"last_match_rule")}}),ue.createElement(Ee.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ue.createElement("div",{className:Me.operation,style:Ze?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),ue.createElement("div",{className:Me.listWrapper,style:{boxShadow:Ze?"0px 2px 4px 0px #EAEEF4":"unset"}},Ct.map((He,Ve)=>{var Je,ct,yt,ft;return ue.createElement("div",{key:Ve,className:Me.list,style:Ze?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},pt&&ue.createElement("div",{style:{width:"15%"}},ue.createElement(Pe.default,{checked:!!He.hidden,onChange:Mt=>{gt(Mt.target.checked,Ve,"hidden")}})),ue.createElement("div",{style:{width:Ze?"25%":"15%",paddingLeft:Ze?"5px":"0px",paddingRight:Ze?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",Ve+1),ue.createElement("div",{className:Me.info,style:{width:St?Ze?"20%":"15%":"25%"}},ue.createElement("span",{title:He.input||((Je=He[0])==null?void 0:Je.name),onClick:()=>Qe(void 0,null,function*(){let Mt;He.input?He.input_file_url?Mt=He.input_file_url:Mt=He.in_file:Mt=He[0];let Jt;typeof Mt=="string"?(Jt=yield fetch(Mt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ke({value:yield Jt.text(),filename:"",dataUrl:Mt})):(Jt=yield(0,re.db)(Mt.file),Ke({value:Jt.text,filename:Mt.name,dataUrl:Jt.link}))})},He.input||((ct=He[0])==null?void 0:ct.name))),ue.createElement("div",{className:Me.info,style:{width:St?Ze?"20%":"15%":"25%"}},ue.createElement("span",{title:He.output||((yt=He[1])==null?void 0:yt.name),onClick:()=>Qe(void 0,null,function*(){let Mt;He.input?He.output_file_url?Mt=He.output_file_url:Mt=He.out_file:Mt=He[1];let Jt;typeof Mt=="string"?(Jt=yield fetch(Mt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ke({value:yield Jt.text(),filename:"",dataUrl:Mt})):(Jt=yield(0,re.db)(Mt.file),Ke({value:Jt.text,filename:Mt.name,dataUrl:Jt.link}))})},He.output||((ft=He[1])==null?void 0:ft.name))),St&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(ye.default,{size:"large",addonAfter:Ze?"%":null,disabled:bt,style:{width:"80%"},onChange:Mt=>Pt(Mt,Ve),value:He.score}),!Ze&&ue.createElement("span",null,"\xA0%")),pt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.input_visible||!1,onChange:Mt=>{gt(Mt.target.checked,Ve,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),pt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.is_invisible||!1,onChange:Mt=>{gt(Mt.target.checked,Ve,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),pt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.actual_output_visible||!1,onChange:Mt=>{gt(Mt.target.checked,Ve,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),pt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.last_match_rule||!1,onChange:Mt=>{gt(Mt.target.checked,Ve,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),ue.createElement("div",{onClick:()=>Ue(He,Ve),style:Ze?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},ue.createElement("span",{className:Me.del},"\u5220\u9664")))})),ue.createElement(le.Z,{close:!0,data:be.dataUrl,filename:be.filename,type:be.dataUrl.length?"txt":"",onClose:()=>Ke(Be({},we)),monacoEditor:{value:be.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):ue.createElement(ue.Fragment,null)};var ht=at},24768:function(bn,an,Ge){"use strict";Ge.d(an,{AL:function(){return pe},Iy:function(){return Me},Qv:function(){return fe},ez:function(){return ue},jb:function(){return ve}});var rt=Ge(32834),vt=Ge.n(rt),ie=Ge(11690),_e=Ge.n(ie);let Ie=1;function ge(je,Ne){const Be=je.match(/^(\s+)(?:```)/);if(Be===null)return Ne;const ze=Be[1];return Ne.split(`
|
|
|
`).map(Qe=>{const $e=Qe.match(/^\s+/);if($e===null)return Qe;const[Ye]=$e;return Ye.length>=ze.length?Qe.slice(ze.length):Qe}).join(`
|
|
|
`)}let ce=[],Pe=["<ul>"];const Ee=new(vt()).Renderer,ye=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Me(){ce.length=0,Pe=["<ul>"]}const ve={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function xe(je,Ne,Be,ze){if(Ne>=je.length||je[Ne].level<=Be)return Ne;var Qe=je[Ne];ze.push("<li><a href='#"+Ie+Qe.anchor+"'>"+Qe.text+"</a>"),Ne++;var $e=[];return Ne=xe(je,Ne,Qe.level,$e),$e.length>0&&(ze.push("<ul>"),$e.forEach(function(Ye){ze.push(Ye)}),ze.push("</ul>")),ze.push("</li>"),Ne=xe(je,Ne,Be,ze),Ne}function fe(){return xe(ce,0,0,Pe),Pe.push("</ul>"),Pe.join("")}const z={heading(je){const Ne=ye.exec(je);if(Ie+=1,Ne)return{type:"heading",raw:Ne[0],depth:Ne[1].length,text:Ne[2]}},fences(je){const Ne=this.rules.block.fences.exec(je);if(Ne){const Be=Ne[0];let ze=ge(Be,Ne[3]||"");const Qe=Ne[2]?Ne[2].trim():Ne[2];if(["latex","katex","math"].indexOf(Qe)>=0){const $e=re(),Ye=ze;ze=$e,le[$e]={type:"block",expression:Ye}}return{type:"code",raw:Be,lang:Qe,text:ze}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ae=0;const re=()=>`__special_katext_id_${ae++}__`;let le={};function ue(){return le}function pe(){ae=0,le={}}function Te(je){return je=je.replace(ee,(Ne,Be)=>{const ze=re();return le[ze]={type:"inline",expression:Be},ze}),je}const Ce=Ee.listitem;Ee.listitem=function(je){return Ce(Te(je))};const Fe=Ee.paragraph;Ee.paragraph=function(je){return Fe(Te(je))};const Ae=Ee.tablecell;Ee.tablecell=function(je,Ne){return Ae(Te(je),Ne)},Ee.code=function(je,Ne,Be){const ze=(Ne||"").match(/\S*/)[0];return ze?["latex","katex","math"].indexOf(ze)>=0?`<p class='editormd-tex'>${je}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ne}">${Be?je:(0,ie.escape)(je,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Be?je:(0,ie.escape)(je,!0))+"</code></pre>"},Ee.heading=function(je,Ne,Be){let ze=this.options.headerPrefix+Be.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ce.push({anchor:ze,level:Ne,text:je}),"<h"+Ne+' id="'+Ie+ze+'">'+je+"</h"+Ne+">"},vt().setOptions({silent:!0,gfm:!0,pedantic:!1}),vt().use({tokenizer:z,renderer:Ee}),an.ZP=vt()},16479:function(bn,an,Ge){"use strict";Ge.d(an,{G:function(){return Ie},t:function(){return _e}});var rt=Ge(7062),vt=Ge.n(rt);const ie=null;function _e(ge,ce){let Pe=vt().get("__ec");Pe||(Pe={}),Pe[ge]=ce,vt().set("__ec",Pe)}function Ie(ge,ce){let Pe=vt().get("__ec");return Pe?Pe[ge]===void 0?ce:Pe[ge]:ce}},47257:function(bn){(function(an){(function(Ge){if(1)bn.exports=Ge();else var rt})(function(){var Ge,rt,vt;return function(){function ie(_e,Ie,ge){function ce(ye,Me){if(!Ie[ye]){if(!_e[ye]){var ve=void 0;if(!Me&&ve)return require(ye,!0);if(Pe)return Pe(ye,!0);var xe=new Error("Cannot find module '"+ye+"'");throw xe.code="MODULE_NOT_FOUND",xe}var fe=Ie[ye]={exports:{}};_e[ye][0].call(fe.exports,function(z){var ee=_e[ye][1][z];return ce(ee||z)},fe,fe.exports,ie,_e,Ie,ge)}return Ie[ye].exports}for(var Pe=void 0,Ee=0;Ee<ge.length;Ee++)ce(ge[Ee]);return ce}return ie}()({1:[function(ie,_e,Ie){"use strict";var ge=ie("./browser/client");ge.Buffer=ie("buffer").Buffer,ge.urllib=ie("../shims/xhr"),ge.version=ie("./browser/version").version,_e.exports=ge},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator"));ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js"),ie("core-js/modules/es.array.slice.js");var Ee=ie("assert"),ye=ie("../common/utils/checkBucketName"),Me=ye.checkBucketName,ve=Ie;function xe(z){return Array.isArray?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"}function fe(z){return z?xe(z)?z:[z]:[]}ve.useBucket=function(ee){return Me(ee),this.options.bucket=ee,this},ve.setBucket=function(ee){return Me(ee),this.options.bucket=ee,this},ve.getBucket=function(){return this.options.bucket},ve.deleteBucket=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"",le),Ce.next=3,this.request(ue);case 3:if(pe=Ce.sent,!(pe.status===200||pe.status===204)){Ce.next=6;break}return Ce.abrupt("return",{res:pe.res});case 6:return Ce.next=8,this.requestError(pe);case 8:throw Ce.sent;case 9:case"end":return Ce.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.putBucketACL=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le,ue){var pe,Te;return ce.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return pe=this._bucketRequestParams("PUT",re,"acl",ue),pe.headers={"x-oss-acl":le},pe.successStatuses=[200],Fe.next=5,this.request(pe);case 5:return Te=Fe.sent,Fe.abrupt("return",{bucket:Te.headers.location&&Te.headers.location.substring(1)||null,res:Te.res});case 7:case"end":return Fe.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),ve.getBucketACL=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("GET",re,"acl",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ce.next=5,this.request(ue);case 5:return pe=Ce.sent,Ce.abrupt("return",{acl:pe.data.AccessControlList.Grant,owner:{id:pe.data.Owner.ID,displayName:pe.data.Owner.DisplayName},res:pe.res});case 7:case"end":return Ce.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.putBucketLogging=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le,ue){var pe,Te,Ce;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return pe=this._bucketRequestParams("PUT",re,"logging",ue),Te=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(re,`</TargetBucket>
|
|
|
`),le&&(Te+="<TargetPrefix>".concat(le,`</TargetPrefix>
|
|
|
`)),Te+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,pe.content=Te,pe.mime="xml",pe.successStatuses=[200],Ae.next=9,this.request(pe);case 9:return Ce=Ae.sent,Ae.abrupt("return",{res:Ce.res});case 11:case"end":return Ae.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),ve.getBucketLogging=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe,Te;return ce.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ue=this._bucketRequestParams("GET",re,"logging",le),ue.successStatuses=[200],ue.xmlResponse=!0,Fe.next=5,this.request(ue);case 5:return pe=Fe.sent,Te=pe.data.LoggingEnabled,Fe.abrupt("return",{enable:!!Te,prefix:Te&&Te.TargetPrefix||null,res:pe.res});case 8:case"end":return Fe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.deleteBucketLogging=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"logging",le),ue.successStatuses=[204,200],Ce.next=4,this.request(ue);case 4:return pe=Ce.sent,Ce.abrupt("return",{res:pe.res});case 6:case"end":return Ce.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.putBucketCORS=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le,ue){var pe,Te,Ce,Fe,Ae,je,Ne,Be,ze,Qe;return ce.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:for(le=le||[],Ee(le.length,"rules is required"),le.forEach(function(at){Ee(at.allowedOrigin,"allowedOrigin is required"),Ee(at.allowedMethod,"allowedMethod is required")}),pe=this._bucketRequestParams("PUT",re,"cors",ue),Te=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,Ce=function(ut){Te+="<AllowedOrigin>".concat(ut,"</AllowedOrigin>")},Fe=function(ut){Te+="<AllowedMethod>".concat(ut,"</AllowedMethod>")},Ae=function(ut){Te+="<AllowedHeader>".concat(ut,"</AllowedHeader>")},je=function(ut){Te+="<ExposeHeader>".concat(ut,"</ExposeHeader>")},Ne=0,Be=le.length;Ne<Be;Ne++)ze=le[Ne],Te+="<CORSRule>",fe(ze.allowedOrigin).forEach(Ce),fe(ze.allowedMethod).forEach(Fe),fe(ze.allowedHeader).forEach(Ae),fe(ze.exposeHeader).forEach(je),ze.maxAgeSeconds&&(Te+="<MaxAgeSeconds>".concat(ze.maxAgeSeconds,"</MaxAgeSeconds>")),Te+="</CORSRule>";return Te+="</CORSConfiguration>",pe.content=Te,pe.mime="xml",pe.successStatuses=[200],Ye.next=16,this.request(pe);case 16:return Qe=Ye.sent,Ye.abrupt("return",{res:Qe.res});case 18:case"end":return Ye.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),ve.getBucketCORS=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe,Te,Ce;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ue=this._bucketRequestParams("GET",re,"cors",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ae.next=5,this.request(ue);case 5:return pe=Ae.sent,Te=[],pe.data&&pe.data.CORSRule&&(Ce=pe.data.CORSRule,xe(Ce)||(Ce=[Ce]),Ce.forEach(function(je){var Ne={};Object.keys(je).forEach(function(Be){Ne[Be.slice(0,1).toLowerCase()+Be.slice(1,Be.length)]=je[Be]}),Te.push(Ne)})),Ae.abrupt("return",{rules:Te,res:pe.res});case 9:case"end":return Ae.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.deleteBucketCORS=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"cors",le),ue.successStatuses=[204],Ce.next=4,this.request(ue);case 4:return pe=Ce.sent,Ce.abrupt("return",{res:pe.res});case 6:case"end":return Ce.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.putBucketReferer=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le,ue,pe){var Te,Ce,Fe,Ae;return ce.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(Te=this._bucketRequestParams("PUT",re,"referer",pe),Ce=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,Ce+=" <AllowEmptyReferer>".concat(le?"true":"false",`</AllowEmptyReferer>
|
|
|
`),ue&&ue.length>0){for(Ce+=` <RefererList>
|
|
|
`,Fe=0;Fe<ue.length;Fe++)Ce+=" <Referer>".concat(ue[Fe],`</Referer>
|
|
|
`);Ce+=` </RefererList>
|
|
|
`}else Ce+=` <RefererList />
|
|
|
`;return Ce+="</RefererConfiguration>",Te.content=Ce,Te.mime="xml",Te.successStatuses=[200],Ne.next=10,this.request(Te);case 10:return Ae=Ne.sent,Ne.abrupt("return",{res:Ae.res});case 12:case"end":return Ne.stop()}},ae,this)}));function ee(ae,re,le,ue){return z.apply(this,arguments)}return ee}(),ve.getBucketReferer=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe,Te;return ce.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ue=this._bucketRequestParams("GET",re,"referer",le),ue.successStatuses=[200],ue.xmlResponse=!0,Fe.next=5,this.request(ue);case 5:return pe=Fe.sent,Te=pe.data.RefererList.Referer||null,Te&&(xe(Te)||(Te=[Te])),Fe.abrupt("return",{allowEmpty:pe.data.AllowEmptyReferer==="true",referers:Te,res:pe.res});case 9:case"end":return Fe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.deleteBucketReferer=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,this.putBucketReferer(re,!0,null,le);case 2:return pe.abrupt("return",pe.sent);case 3:case"end":return pe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve._bucketRequestParams=function(ee,ae,re,le){return{method:ee,bucket:ae,subres:re,timeout:le&&le.timeout,ctx:le&&le.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(ie,_e,Ie){(function(ge,ce){(function(){"use strict";var Pe=ie("@babel/runtime/helpers/interopRequireDefault"),Ee=Pe(ie("@babel/runtime/regenerator")),ye=Pe(ie("@babel/runtime/helpers/asyncToGenerator"));ie("core-js/modules/es.function.name.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.split.js"),ie("core-js/modules/es.object.assign.js"),ie("core-js/modules/es.array.includes.js"),ie("core-js/modules/es.string.replace.js"),ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.symbol.js"),ie("core-js/modules/es.symbol.description.js"),ie("core-js/modules/es.array.slice.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.promise.js"),ie("core-js/modules/es.regexp.to-string.js");var Me=ie("debug")("ali-oss"),ve=ie("xml2js"),xe=ie("agentkeepalive"),fe=ie("merge-descriptors"),z=ie("platform"),ee=ie("utility"),ae=ie("urllib"),re=ie("./version"),le=ie("bowser"),ue=ie("../common/signUtils"),pe=ie("../common/client/initOptions"),Te=ie("../common/utils/createRequest"),Ce=Te.createRequest,Fe=ie("../common/utils/encoder"),Ae=Fe.encoder,je=ie("../common/client/getReqUrl"),Ne=je.getReqUrl,Be=ie("../common/utils/setSTSToken"),ze=Be.setSTSToken,Qe=ie("../common/utils/retry"),$e=Qe.retry,Ye=ie("../common/utils/isFunction"),at=Ye.isFunction,ut=new xe;function ht(){var Pt=z.name,gt=z.version;Pt&&Pt.toLowerCase&&Pt.toLowerCase()==="ie"&>.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function Ct(){return location&&location.protocol==="https:"}function et(Pt,gt){if(ht(),!(this instanceof et))return new et(Pt,gt);Pt&&Pt.inited?this.options=Pt:this.options=et.initOptions(Pt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ae,this.agent=this.options.agent||ut),this.ctx=gt,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}_e.exports=et,et.initOptions=function(gt){gt.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var dt=Object.assign({secure:Ct(),useFetch:!1},gt);return pe(dt)};var it=et.prototype;it.debug=Me,fe(it,ie("./object")),fe(it,ie("./bucket")),fe(it,ie("../common/bucket/getBucketWebsite")),fe(it,ie("../common/bucket/putBucketWebsite")),fe(it,ie("../common/bucket/deleteBucketWebsite")),fe(it,ie("../common/bucket/getBucketLifecycle")),fe(it,ie("../common/bucket/putBucketLifecycle")),fe(it,ie("../common/bucket/deleteBucketLifecycle")),fe(it,ie("../common/bucket/putBucketVersioning")),fe(it,ie("../common/bucket/getBucketVersioning")),fe(it,ie("../common/bucket/getBucketInventory")),fe(it,ie("../common/bucket/deleteBucketInventory")),fe(it,ie("../common/bucket/listBucketInventory")),fe(it,ie("../common/bucket/putBucketInventory")),fe(it,ie("../common/bucket/abortBucketWorm")),fe(it,ie("../common/bucket/completeBucketWorm")),fe(it,ie("../common/bucket/extendBucketWorm")),fe(it,ie("../common/bucket/getBucketWorm")),fe(it,ie("../common/bucket/initiateBucketWorm")),fe(it,ie("./managed-upload")),fe(it,ie("../common/multipart-copy")),fe(it,ie("../common/multipart")),fe(it,ie("../common/parallel")),it.signature=function(gt){return this.debug("authorization stringToSign: %s",gt,"info"),ue.computeSignature(this.options.accessKeySecret,gt,this.options.headerEncoding)},it._getReqUrl=Ne,it.authorization=function(gt,dt,mt,kt){var Et=ue.buildCanonicalString(gt.toUpperCase(),dt,{headers:kt,parameters:mt});return ue.authorization(this.options.accessKeyId,this.options.accessKeySecret,Et,this.options.headerEncoding)},it.request=function(){var Pt=(0,ye.default)(Ee.default.mark(function gt(dt){var mt=this;return Ee.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if(!this.options.retryMax){Et.next=6;break}return Et.next=3,$e(St.bind(this),this.options.retryMax,{errorHandler:function(wt){var pt=function(Ze){if(dt.stream)return!1;var we=[-1,-2].includes(Ze.status),be=mt.options.requestErrorRetryHandle||function(){return!0};return we&&be(Ze)};return!!pt(wt)}})(dt);case 3:return Et.abrupt("return",Et.sent);case 6:return Et.abrupt("return",St.call(this,dt));case 7:case"end":return Et.stop()}},gt,this)}));return function(gt){return Pt.apply(this,arguments)}}();function St(Pt){return bt.apply(this,arguments)}function bt(){return bt=(0,ye.default)(Ee.default.mark(function Pt(gt){var dt,mt,kt,Et,Ut,wt;return Ee.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(!(this.options.stsToken&&at(this.options.refreshSTSToken))){tt.next=3;break}return tt.next=3,ze.call(this);case 3:return dt=Ce.call(this,gt),this.options.useFetch||(dt.params.mode="disable-fetch"),Et=!!gt.stream,tt.prev=6,tt.next=9,this.urllib.request(dt.url,dt.params);case 9:mt=tt.sent,this.debug("response %s %s, got %s, headers: %j",gt.method,dt.url,mt.status,mt.headers,"info"),tt.next=16;break;case 13:tt.prev=13,tt.t0=tt.catch(6),kt=tt.t0;case 16:if(!(mt&>.successStatuses&>.successStatuses.indexOf(mt.status)===-1)){tt.next=28;break}return tt.next=19,this.requestError(mt);case 19:if(Ut=tt.sent,!(Ut.code==="RequestTimeTooSkewed"&&!Et)){tt.next=25;break}return this.options.amendTimeSkewed=+new Date(Ut.serverTime)-new Date,tt.next=24,this.request(gt);case 24:return tt.abrupt("return",tt.sent);case 25:Ut.params=gt,tt.next=32;break;case 28:if(!kt){tt.next=32;break}return tt.next=31,this.requestError(kt);case 31:Ut=tt.sent;case 32:if(!Ut){tt.next=34;break}throw Ut;case 34:if(!gt.xmlResponse){tt.next=39;break}return tt.next=37,this.parseXML(mt.data);case 37:wt=tt.sent,mt.data=wt;case 39:return tt.abrupt("return",mt);case 40:case"end":return tt.stop()}},Pt,this,[[6,13]])})),bt.apply(this,arguments)}it._getResource=function(gt){var dt="/";return gt.bucket&&(dt+="".concat(gt.bucket,"/")),gt.object&&(dt+=Ae(gt.object,this.options.headerEncoding)),dt},it._escape=function(gt){return ee.encodeURIComponent(gt).replace(/%2F/g,"/")},it._getUserAgent=function(){var gt=ce&&ce.browser?"js":"nodejs",dt="aliyun-sdk-".concat(gt,"/").concat(re.version),mt=z.description;return!mt&&ce&&(mt="Node.js ".concat(ce.version.slice(1)," on ").concat(ce.platform," ").concat(ce.arch)),this._checkUserAgent("".concat(dt," ").concat(mt))},it._checkUserAgent=function(gt){var dt=gt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return dt},it.checkBrowserAndVersion=function(gt,dt){return le.name===gt&&le.version.split(".")[0]===dt},it.parseXML=function(gt){return new Promise(function(dt,mt){ge.isBuffer(gt)&&(gt=gt.toString()),ve.parseString(gt,{explicitRoot:!1,explicitArray:!1},function(kt,Et){kt?mt(kt):dt(Et)})})},it.requestError=function(){var Pt=(0,ye.default)(Ee.default.mark(function dt(mt){var kt,Et,Ut,wt;return Ee.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(kt=null,!(!mt.data||!mt.data.length)){tt.next=5;break}mt.status===-1||mt.status===-2?(kt=new Error(mt.message),kt.name=mt.name,kt.status=mt.status,kt.code=mt.name):(mt.status===404?(kt=new Error("Object not exists"),kt.name="NoSuchKeyError",kt.status=404,kt.code="NoSuchKey"):mt.status===412?(kt=new Error("Pre condition failed"),kt.name="PreconditionFailedError",kt.status=412,kt.code="PreconditionFailed"):(kt=new Error("Unknow error, status: ".concat(mt.status)),kt.name="UnknownError",kt.status=mt.status),kt.requestId=mt.headers["x-oss-request-id"],kt.host=""),tt.next=32;break;case 5:return Et=String(mt.data),this.debug("request response error data: %s",Et,"error"),tt.prev=7,tt.next=10,this.parseXML(Et);case 10:if(tt.t0=tt.sent,tt.t0){tt.next=13;break}tt.t0={};case 13:Ut=tt.t0,tt.next=23;break;case 16:return tt.prev=16,tt.t1=tt.catch(7),this.debug(Et,"error"),tt.t1.message+=`
|
|
|
raw xml: `.concat(Et),tt.t1.status=mt.status,tt.t1.requestId=mt.headers["x-oss-request-id"],tt.abrupt("return",tt.t1);case 23:wt=Ut.Message||"unknow request error, status: ".concat(mt.status),Ut.Condition&&(wt+=" (condition: ".concat(Ut.Condition,")")),kt=new Error(wt),kt.name=Ut.Code?"".concat(Ut.Code,"Error"):"UnknownError",kt.status=mt.status,kt.code=Ut.Code,kt.requestId=Ut.RequestId,kt.hostId=Ut.HostId,kt.serverTime=Ut.ServerTime;case 32:return this.debug("generate error %j",kt,"error"),tt.abrupt("return",kt);case 34:case"end":return tt.stop()}},dt,this,[[7,16]])}));function gt(dt){return Pt.apply(this,arguments)}return gt}()}).call(this)}).call(this,{isBuffer:ie("../../node_modules/is-buffer/index.js")},ie("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(ie,_e,Ie){(function(ge){(function(){"use strict";var ce=ie("@babel/runtime/helpers/interopRequireDefault"),Pe=ce(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.function.name.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.promise.js"),ie("core-js/modules/es.array.from.js"),ie("core-js/modules/es.string.iterator.js"),ie("core-js/modules/es.array.map.js"),ie("core-js/modules/es.array.filter.js"),ie("core-js/modules/es.array.find.js"),ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.regexp.to-string.js"),ie("core-js/modules/es.array.slice.js"),ie("core-js/modules/es.array.iterator.js"),ie("core-js/modules/es.array-buffer.slice.js"),ie("core-js/modules/es.typed-array.uint8-array.js"),ie("core-js/modules/es.typed-array.copy-within.js"),ie("core-js/modules/es.typed-array.every.js"),ie("core-js/modules/es.typed-array.fill.js"),ie("core-js/modules/es.typed-array.filter.js"),ie("core-js/modules/es.typed-array.find.js"),ie("core-js/modules/es.typed-array.find-index.js"),ie("core-js/modules/es.typed-array.for-each.js"),ie("core-js/modules/es.typed-array.includes.js"),ie("core-js/modules/es.typed-array.index-of.js"),ie("core-js/modules/es.typed-array.iterator.js"),ie("core-js/modules/es.typed-array.join.js"),ie("core-js/modules/es.typed-array.last-index-of.js"),ie("core-js/modules/es.typed-array.map.js"),ie("core-js/modules/es.typed-array.reduce.js"),ie("core-js/modules/es.typed-array.reduce-right.js"),ie("core-js/modules/es.typed-array.reverse.js"),ie("core-js/modules/es.typed-array.set.js"),ie("core-js/modules/es.typed-array.slice.js"),ie("core-js/modules/es.typed-array.some.js"),ie("core-js/modules/es.typed-array.sort.js"),ie("core-js/modules/es.typed-array.subarray.js"),ie("core-js/modules/es.typed-array.to-locale-string.js"),ie("core-js/modules/es.typed-array.to-string.js");var Ee=ce(ie("@babel/runtime/helpers/asyncToGenerator")),ye=ie("util"),Me=ie("path"),ve=ie("mime"),xe=ie("copy-to"),fe=ie("../common/utils/isBlob"),z=fe.isBlob,ee=ie("../common/utils/isFile"),ae=ee.isFile,re=ie("../common/utils/isBuffer"),le=re.isBuffer,ue=Ie;ue.multipartUpload=function(){var Ae=(0,Ee.default)(Pe.default.mark(function Ne(Be,ze){var Qe,$e,Ye,at,ut,ht,Ct,et,it,St=arguments;return Pe.default.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(Qe=St.length>2&&St[2]!==void 0?St[2]:{},this.resetCancelFlag(),Qe.disabledMD5=Qe.disabledMD5===void 0?!0:!!Qe.disabledMD5,!(Qe.checkpoint&&Qe.checkpoint.uploadId)){Pt.next=8;break}return ze&&ae(ze)&&(Qe.checkpoint.file=ze),Pt.next=7,this._resumeMultipart(Qe.checkpoint,Qe);case 7:return Pt.abrupt("return",Pt.sent);case 8:return $e=102400,Qe.mime||(ae(ze)?Qe.mime=ve.getType(Me.extname(ze.name)):z(ze)?Qe.mime=ze.type:le(ze)?Qe.mime="":Qe.mime=ve.getType(Me.extname(ze))),Qe.headers=Qe.headers||{},this._convertMetaToHeaders(Qe.meta,Qe.headers),Pt.next=14,this._getFileSize(ze);case 14:if(Ye=Pt.sent,!(Ye<$e)){Pt.next=26;break}return Qe.contentLength=Ye,Pt.next=19,this.put(Be,ze,Qe);case 19:if(at=Pt.sent,!(Qe&&Qe.progress)){Pt.next=23;break}return Pt.next=23,Qe.progress(1);case 23:return ut={res:at.res,bucket:this.options.bucket,name:Be,etag:at.res.headers.etag},(Qe.headers&&Qe.headers["x-oss-callback"]||Qe.callback)&&(ut.data=at.data),Pt.abrupt("return",ut);case 26:if(!(Qe.partSize&&parseInt(Qe.partSize,10)!==Qe.partSize)){Pt.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Qe.partSize&&Qe.partSize<$e)){Pt.next=30;break}throw new Error("partSize must not be smaller than ".concat($e));case 30:return Pt.next=32,this.initMultipartUpload(Be,Qe);case 32:if(ht=Pt.sent,Ct=ht.uploadId,et=this._getPartSize(Ye,Qe.partSize),it={file:ze,name:Be,fileSize:Ye,partSize:et,uploadId:Ct,doneParts:[]},!(Qe&&Qe.progress)){Pt.next=39;break}return Pt.next=39,Qe.progress(0,it,ht.res);case 39:return Pt.next=41,this._resumeMultipart(it,Qe);case 41:return Pt.abrupt("return",Pt.sent);case 42:case"end":return Pt.stop()}},Ne,this)}));function je(Ne,Be){return Ae.apply(this,arguments)}return je}(),ue._resumeMultipart=function(){var Ae=(0,Ee.default)(Pe.default.mark(function Ne(Be,ze){var Qe,$e,Ye,at,ut,ht,Ct,et,it,St,bt,Pt,gt,dt,mt,kt,Et,Ut,wt;return Pe.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(Qe=this,!this.isCancel()){tt.next=3;break}throw this._makeCancelEvent();case 3:return $e=Be.file,Ye=Be.fileSize,at=Be.partSize,ut=Be.uploadId,ht=Be.doneParts,Ct=Be.name,et=[],ht.length>0&&xe(ht).to(et),it=this._divideParts(Ye,at),St=it.length,bt=!1,Pt=function(we,be){return new Promise(function(){var Ke=(0,Ee.default)(Pe.default.mark(function Xe(Oe,Ue){var He,Ve,Je,ct,yt;return Pe.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(Mt.prev=0,we.isCancel()){Mt.next=29;break}return He=it[be-1],Mt.next=5,we._createBuffer($e,He.start,He.end);case 5:return Ve=Mt.sent,Je={content:Ve,size:He.end-He.start},Mt.prev=7,Mt.next=10,we._uploadPart(Ct,ut,be,Je,ze);case 10:ct=Mt.sent,Mt.next=18;break;case 13:if(Mt.prev=13,Mt.t0=Mt.catch(7),Mt.t0.status!==404){Mt.next=17;break}throw we._makeAbortEvent();case 17:throw Mt.t0;case 18:if(!(!we.isCancel()&&!bt)){Mt.next=26;break}if(Be.doneParts.push({number:be,etag:ct.res.headers.etag}),!ze.progress){Mt.next=23;break}return Mt.next=23,ze.progress(ht.length/(St+1),Be,ct.res);case 23:Oe({number:be,etag:ct.res.headers.etag}),Mt.next=27;break;case 26:Oe();case 27:Mt.next=30;break;case 29:Oe();case 30:Mt.next=41;break;case 32:Mt.prev=32,Mt.t1=Mt.catch(0),yt=new Error,yt.name=Mt.t1.name,yt.message=Mt.t1.message,yt.stack=Mt.t1.stack,yt.partNum=be,xe(Mt.t1).to(yt),Ue(yt);case 41:case"end":return Mt.stop()}},Xe,null,[[0,32],[7,13]])}));return function(Xe,Oe){return Ke.apply(this,arguments)}}())},gt=Array.from(new Array(St),function(Ze,we){return we+1}),dt=et.map(function(Ze){return Ze.number}),mt=gt.filter(function(Ze){return dt.indexOf(Ze)<0}),kt=5,Et=ze.parallel||kt,tt.next=17,this._parallel(mt,Et,function(Ze){return new Promise(function(we,be){Pt(Qe,Ze).then(function(Ke){Ke&&et.push(Ke),we()}).catch(function(Ke){be(Ke)})})});case 17:if(Ut=tt.sent,bt=!0,wt=Ut.find(function(Ze){return Ze.name==="abort"}),!wt){tt.next=22;break}throw wt;case 22:if(!this.isCancel()){tt.next=25;break}throw Pt=null,this._makeCancelEvent();case 25:if(!(Ut&&Ut.length>0)){tt.next=28;break}throw Ut[0].message="Failed to upload some parts with error: ".concat(Ut[0].toString()," part_num: ").concat(Ut[0].partNum),Ut[0];case 28:return tt.next=30,this.completeMultipartUpload(Ct,ut,et,ze);case 30:return tt.abrupt("return",tt.sent);case 31:case"end":return tt.stop()}},Ne,this)}));function je(Ne,Be){return Ae.apply(this,arguments)}return je}(),ue._getFileSize=function(){var Ae=(0,Ee.default)(Pe.default.mark(function Ne(Be){return Pe.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!le(Be)){Qe.next=4;break}return Qe.abrupt("return",Be.length);case 4:if(!(z(Be)||ae(Be))){Qe.next=6;break}return Qe.abrupt("return",Be.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Qe.stop()}},Ne)}));function je(Ne){return Ae.apply(this,arguments)}return je}();var pe=ie("stream"),Te=pe.Readable;function Ce(Ae,je){if(!(this instanceof Ce))return new Ce(Ae,je);Te.call(this,je),this.file=Ae,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ye.inherits(Ce,Te),Ce.prototype.readFileAndPush=function(je){if(this.fileBuffer)for(var Ne=!0;Ne&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Be=this.start,ze=Be+je;ze=ze>this.fileBuffer.length?this.fileBuffer.length:ze,this.start=ze,Ne=this.push(this.fileBuffer.slice(Be,ze))}},Ce.prototype._read=function(je){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Ne=16*1024;je=je||Ne;var Be=this;this.reader.onload=function(Qe){Be.fileBuffer=ge.from(new Uint8Array(Qe.target.result)),Be.file=null,Be.readFileAndPush(je)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(je)};function Fe(Ae){return Ae.arrayBuffer?Ae.arrayBuffer():new Promise(function(je,Ne){var Be=new FileReader;Be.onload=function(ze){je(ze.target.result)},Be.onerror=function(ze){Ne(ze)},Be.readAsArrayBuffer(Ae)})}ue._createBuffer=function(){var Ae=(0,Ee.default)(Pe.default.mark(function Ne(Be,ze,Qe){var $e,Ye;return Pe.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(!(z(Be)||ae(Be))){ut.next=8;break}return $e=Be.slice(ze,Qe),ut.next=4,Fe($e);case 4:return Ye=ut.sent,ut.abrupt("return",ge.from(Ye));case 8:if(!le(Be)){ut.next=12;break}return ut.abrupt("return",Be.subarray(ze,Qe));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ut.stop()}},Ne)}));function je(Ne,Be,ze){return Ae.apply(this,arguments)}return je}(),ue._getPartSize=function(je,Ne){var Be=1e4,ze=1*1024*1024;Ne||(Ne=ze);var Qe=Math.ceil(je/Be);return Ne<Qe&&(Ne=Qe,console.warn("partSize has been set to ".concat(Ne,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ne},ue._divideParts=function(je,Ne){for(var Be=Math.ceil(je/Ne),ze=[],Qe=0;Qe<Be;Qe++){var $e=Ne*Qe,Ye=Math.min($e+Ne,je);ze.push({start:$e,end:Ye})}return ze}}).call(this)}).call(this,ie("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault");ie("core-js/modules/es.function.name.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.regexp.to-string.js"),ie("core-js/modules/es.array.map.js"),ie("core-js/modules/es.number.constructor.js"),ie("core-js/modules/es.object.assign.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.replace.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js"),ie("core-js/modules/es.promise.js");var ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("fs"),ye=ie("copy-to"),Me=ie("path"),ve=ie("mime"),xe=ie("../common/callback"),fe=ie("merge-descriptors"),z=ie("../common/utils/isBlob"),ee=z.isBlob,ae=ie("../common/utils/isFile"),re=ae.isFile,le=ie("../common/utils/isBuffer"),ue=le.isBuffer,pe=ie("../common/utils/obj2xml"),Te=pe.obj2xml,Ce=Ie;Ce.append=function(){var Fe=(0,Pe.default)(ce.default.mark(function je(Ne,Be,ze){var Qe;return ce.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return ze=ze||{},ze.position===void 0&&(ze.position="0"),ze.subres={append:"",position:ze.position},ze.method="POST",Ye.next=6,this.put(Ne,Be,ze);case 6:return Qe=Ye.sent,Qe.nextAppendPosition=Qe.res.headers["x-oss-next-append-position"],Ye.abrupt("return",Qe);case 9:case"end":return Ye.stop()}},je,this)}));function Ae(je,Ne,Be){return Fe.apply(this,arguments)}return Ae}(),Ce.put=function(){var Fe=(0,Pe.default)(ce.default.mark(function je(Ne,Be,ze){var Qe,$e,Ye,at,ut;return ce.default.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(ze=ze||{},ze.disabledMD5=ze.disabledMD5===void 0?!0:!!ze.disabledMD5,ze.headers=ze.headers||{},Ne=this._objectName(Ne),!ue(Be)){Ct.next=8;break}Qe=Be,Ct.next=19;break;case 8:if(!(ee(Be)||re(Be))){Ct.next=18;break}return ze.mime||(re(Be)?ze.mime=ve.getType(Me.extname(Be.name)):ze.mime=Be.type),Ct.next=12,this._createBuffer(Be,0,Be.size);case 12:return Qe=Ct.sent,Ct.next=15,this._getFileSize(Be);case 15:ze.contentLength=Ct.sent,Ct.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(ze.meta,ze.headers),$e=ze.method||"PUT",Ye=this._objectRequestParams($e,Ne,ze),xe.encodeCallback(Ye,ze),Ye.mime=ze.mime,Ye.disabledMD5=ze.disabledMD5,Ye.content=Qe,Ye.successStatuses=[200],Ct.next=29,this.request(Ye);case 29:return at=Ct.sent,ut={name:Ne,url:this._objectUrl(Ne),res:at.res},Ye.headers&&Ye.headers["x-oss-callback"]&&(ut.data=JSON.parse(at.data.toString())),Ct.abrupt("return",ut);case 33:case"end":return Ct.stop()}},je,this)}));function Ae(je,Ne,Be){return Fe.apply(this,arguments)}return Ae}(),Ce.putStream=function(){var Fe=(0,Pe.default)(ce.default.mark(function je(Ne,Be,ze){var Qe,$e,Ye,at;return ce.default.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ze=ze||{},ze.headers=ze.headers||{},Ne=this._objectName(Ne),ze.contentLength?ze.headers["Content-Length"]=ze.contentLength:ze.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(ze.meta,ze.headers),Qe=ze.method||"PUT",$e=this._objectRequestParams(Qe,Ne,ze),xe.encodeCallback($e,ze),$e.mime=ze.mime,$e.stream=Be,$e.successStatuses=[200],ht.next=13,this.request($e);case 13:return Ye=ht.sent,at={name:Ne,url:this._objectUrl(Ne),res:Ye.res},$e.headers&&$e.headers["x-oss-callback"]&&(at.data=JSON.parse(Ye.data.toString())),ht.abrupt("return",at);case 17:case"end":return ht.stop()}},je,this)}));function Ae(je,Ne,Be){return Fe.apply(this,arguments)}return Ae}(),fe(Ce,ie("../common/object/copyObject")),fe(Ce,ie("../common/object/getObjectTagging")),fe(Ce,ie("../common/object/putObjectTagging")),fe(Ce,ie("../common/object/deleteObjectTagging")),fe(Ce,ie("../common/image")),fe(Ce,ie("../common/object/getBucketVersions")),fe(Ce,ie("../common/object/getACL")),fe(Ce,ie("../common/object/putACL")),fe(Ce,ie("../common/object/head")),fe(Ce,ie("../common/object/delete")),fe(Ce,ie("../common/object/get")),fe(Ce,ie("../common/object/putSymlink")),fe(Ce,ie("../common/object/getSymlink")),fe(Ce,ie("../common/object/deleteMulti")),fe(Ce,ie("../common/object/getObjectMeta")),fe(Ce,ie("../common/object/getObjectUrl")),fe(Ce,ie("../common/object/generateObjectUrl")),fe(Ce,ie("../common/object/signatureUrl")),fe(Ce,ie("../common/object/asyncSignatureUrl")),Ce.putMeta=function(){var Fe=(0,Pe.default)(ce.default.mark(function je(Ne,Be,ze){var Qe;return ce.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,this.copy(Ne,Ne,{meta:Be||{},timeout:ze&&ze.timeout,ctx:ze&&ze.ctx});case 2:return Qe=Ye.sent,Ye.abrupt("return",Qe);case 4:case"end":return Ye.stop()}},je,this)}));function Ae(je,Ne,Be){return Fe.apply(this,arguments)}return Ae}(),Ce.list=function(){var Fe=(0,Pe.default)(ce.default.mark(function je(Ne,Be){var ze,Qe,$e,Ye,at;return ce.default.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ze=this._objectRequestParams("GET","",Be),ze.query=Ne,ze.xmlResponse=!0,ze.successStatuses=[200],ht.next=6,this.request(ze);case 6:return Qe=ht.sent,$e=Qe.data.Contents||[],Ye=this,$e&&(Array.isArray($e)||($e=[$e]),$e=$e.map(function(Ct){return{name:Ct.Key,url:Ye._objectUrl(Ct.Key),lastModified:Ct.LastModified,etag:Ct.ETag,type:Ct.Type,size:Number(Ct.Size),storageClass:Ct.StorageClass,owner:{id:Ct.Owner.ID,displayName:Ct.Owner.DisplayName}}})),at=Qe.data.CommonPrefixes||null,at&&(Array.isArray(at)||(at=[at]),at=at.map(function(Ct){return Ct.Prefix})),ht.abrupt("return",{res:Qe.res,objects:$e,prefixes:at,nextMarker:Qe.data.NextMarker||null,isTruncated:Qe.data.IsTruncated==="true"});case 13:case"end":return ht.stop()}},je,this)}));function Ae(je,Ne){return Fe.apply(this,arguments)}return Ae}(),Ce.listV2=function(){var Fe=(0,Pe.default)(ce.default.mark(function je(Ne){var Be,ze,Qe,$e,Ye,at,ut,ht=arguments;return ce.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return Be=ht.length>1&&ht[1]!==void 0?ht[1]:{},ze=Ne["continuation-token"]||Ne.continuationToken,ze&&(Be.subres=Object.assign({"continuation-token":ze},Be.subres)),Qe=this._objectRequestParams("GET","",Be),Qe.query=Object.assign({"list-type":2},Ne),delete Qe.query["continuation-token"],delete Qe.query.continuationToken,Qe.xmlResponse=!0,Qe.successStatuses=[200],et.next=11,this.request(Qe);case 11:return $e=et.sent,Ye=$e.data.Contents||[],at=this,Ye&&(Array.isArray(Ye)||(Ye=[Ye]),Ye=Ye.map(function(it){var St=null;return it.Owner&&(St={id:it.Owner.ID,displayName:it.Owner.DisplayName}),{name:it.Key,url:at._objectUrl(it.Key),lastModified:it.LastModified,etag:it.ETag,type:it.Type,size:Number(it.Size),storageClass:it.StorageClass,owner:St}})),ut=$e.data.CommonPrefixes||null,ut&&(Array.isArray(ut)||(ut=[ut]),ut=ut.map(function(it){return it.Prefix})),et.abrupt("return",{res:$e.res,objects:Ye,prefixes:ut,isTruncated:$e.data.IsTruncated==="true",keyCount:+$e.data.KeyCount,continuationToken:$e.data.ContinuationToken||null,nextContinuationToken:$e.data.NextContinuationToken||null});case 18:case"end":return et.stop()}},je,this)}));function Ae(je){return Fe.apply(this,arguments)}return Ae}(),Ce.restore=function(){var Fe=(0,Pe.default)(ce.default.mark(function je(Ne){var Be,ze,Qe,$e,Ye=arguments;return ce.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return Be=Ye.length>1&&Ye[1]!==void 0?Ye[1]:{type:"Archive"},Be=Be||{},Be.subres=Object.assign({restore:""},Be.subres),Be.versionId&&(Be.subres.versionId=Be.versionId),ze=this._objectRequestParams("POST",Ne,Be),Be.type==="ColdArchive"&&(Qe={RestoreRequest:{Days:Be.Days?Be.Days:2,JobParameters:{Tier:Be.JobParameters?Be.JobParameters:"Standard"}}},ze.content=Te(Qe,{headers:!0}),ze.mime="xml"),ze.successStatuses=[202],ut.next=9,this.request(ze);case 9:return $e=ut.sent,ut.abrupt("return",{res:$e.res});case 11:case"end":return ut.stop()}},je,this)}));function Ae(je){return Fe.apply(this,arguments)}return Ae}(),Ce._objectUrl=function(Ae){return this._getReqUrl({bucket:this.options.bucket,object:Ae})},Ce._objectRequestParams=function(Ae,je,Ne){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ne=Ne||{},je=this._objectName(je);var Be={object:je,bucket:this.options.bucket,method:Ae,subres:Ne&&Ne.subres,timeout:Ne&&Ne.timeout,ctx:Ne&&Ne.ctx};return Ne.headers&&(Be.headers={},ye(Ne.headers).to(Be.headers)),Be},Ce._objectName=function(Ae){return Ae.replace(/^\/+/,"")},Ce._convertMetaToHeaders=function(Ae,je){Ae&&Object.keys(Ae).forEach(function(Ne){je["x-oss-meta-".concat(Ne)]=Ae[Ne]})},Ce._deleteFileSafe=function(Ae){var je=this;return new Promise(function(Ne){Ee.exists(Ae,function(Be){Be?Ee.unlink(Ae,function(ze){ze&&je.debug("unlink %j error: %s",Ae,ze,"error"),Ne()}):Ne()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(ie,_e,Ie){"use strict";Ie.version="6.18.1"},{}],7:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.abortBucketWorm=void 0;var Ee=ie("../utils/checkBucketName");function ye(ve,xe){return Me.apply(this,arguments)}function Me(){return Me=(0,Pe.default)(ce.default.mark(function ve(xe,fe){var z,ee;return ce.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return Ee.checkBucketName(xe),z=this._bucketRequestParams("DELETE",xe,"worm",fe),re.next=4,this.request(z);case 4:return ee=re.sent,re.abrupt("return",{res:ee.res,status:ee.status});case 6:case"end":return re.stop()}},ve,this)})),Me.apply(this,arguments)}Ie.abortBucketWorm=ye},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.completeBucketWorm=void 0;var Ee=ie("../utils/checkBucketName");function ye(ve,xe,fe){return Me.apply(this,arguments)}function Me(){return Me=(0,Pe.default)(ce.default.mark(function ve(xe,fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Ee.checkBucketName(xe),ee=this._bucketRequestParams("POST",xe,{wormId:fe},z),le.next=4,this.request(ee);case 4:return ae=le.sent,le.abrupt("return",{res:ae.res,status:ae.status});case 6:case"end":return le.stop()}},ve,this)})),Me.apply(this,arguments)}Ie.completeBucketWorm=ye},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.deleteBucketInventory=void 0;var Ee=ie("../utils/checkBucketName");function ye(ve,xe){return Me.apply(this,arguments)}function Me(){return Me=(0,Pe.default)(ce.default.mark(function ve(xe,fe){var z,ee,ae,re,le=arguments;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return z=le.length>2&&le[2]!==void 0?le[2]:{},ee=Object.assign({inventory:"",inventoryId:fe},z.subres),Ee.checkBucketName(xe),ae=this._bucketRequestParams("DELETE",xe,ee,z),ae.successStatuses=[204],pe.next=7,this.request(ae);case 7:return re=pe.sent,pe.abrupt("return",{status:re.status,res:re.res});case 9:case"end":return pe.stop()}},ve,this)})),Me.apply(this,arguments)}Ie.deleteBucketInventory=ye},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("../utils/checkBucketName"),ye=Ee.checkBucketName,Me=Ie;Me.deleteBucketLifecycle=function(){var ve=(0,Pe.default)(ce.default.mark(function fe(z,ee){var ae,re;return ce.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ye(z),ae=this._bucketRequestParams("DELETE",z,"lifecycle",ee),ae.successStatuses=[204],ue.next=5,this.request(ae);case 5:return re=ue.sent,ue.abrupt("return",{res:re.res});case 7:case"end":return ue.stop()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("../utils/checkBucketName"),ye=Ee.checkBucketName,Me=Ie;Me.deleteBucketWebsite=function(){var ve=(0,Pe.default)(ce.default.mark(function fe(z,ee){var ae,re;return ce.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ye(z),ae=this._bucketRequestParams("DELETE",z,"website",ee),ae.successStatuses=[204],ue.next=5,this.request(ae);case 5:return re=ue.sent,ue.abrupt("return",{res:re.res});case 7:case"end":return ue.stop()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.extendBucketWorm=void 0;var Ee=ie("../utils/checkBucketName"),ye=ie("../utils/obj2xml");function Me(xe,fe,z,ee){return ve.apply(this,arguments)}function ve(){return ve=(0,Pe.default)(ce.default.mark(function xe(fe,z,ee,ae){var re,le,ue;return ce.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Ee.checkBucketName(fe),re=this._bucketRequestParams("POST",fe,{wormExtend:"",wormId:z},ae),le={ExtendWormConfiguration:{RetentionPeriodInDays:ee}},re.mime="xml",re.content=ye.obj2xml(le,{headers:!0}),re.successStatuses=[200],Te.next=8,this.request(re);case 8:return ue=Te.sent,Te.abrupt("return",{res:ue.res,status:ue.status});case 10:case"end":return Te.stop()}},xe,this)})),ve.apply(this,arguments)}Ie.extendBucketWorm=Me},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.getBucketInventory=void 0;var Ee=ie("../utils/checkBucketName"),ye=ie("../utils/formatInventoryConfig");function Me(xe,fe){return ve.apply(this,arguments)}function ve(){return ve=(0,Pe.default)(ce.default.mark(function xe(fe,z){var ee,ae,re,le,ue=arguments;return ce.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ee=ue.length>2&&ue[2]!==void 0?ue[2]:{},ae=Object.assign({inventory:"",inventoryId:z},ee.subres),Ee.checkBucketName(fe),re=this._bucketRequestParams("GET",fe,ae,ee),re.successStatuses=[200],re.xmlResponse=!0,Te.next=8,this.request(re);case 8:return le=Te.sent,Te.abrupt("return",{status:le.status,res:le.res,inventory:ye.formatInventoryConfig(le.data)});case 10:case"end":return Te.stop()}},xe,this)})),ve.apply(this,arguments)}Ie.getBucketInventory=Me},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.array.map.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("../utils/checkBucketName"),ye=Ee.checkBucketName,Me=ie("../utils/isArray"),ve=Me.isArray,xe=ie("../utils/formatObjKey"),fe=xe.formatObjKey,z=Ie;z.getBucketLifecycle=function(){var ee=(0,Pe.default)(ce.default.mark(function re(le,ue){var pe,Te,Ce;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ye(le),pe=this._bucketRequestParams("GET",le,"lifecycle",ue),pe.successStatuses=[200],pe.xmlResponse=!0,Ae.next=6,this.request(pe);case 6:return Te=Ae.sent,Ce=Te.data.Rule||null,Ce&&(ve(Ce)||(Ce=[Ce]),Ce=Ce.map(function(je){return je.ID&&(je.id=je.ID,delete je.ID),je.Tag&&!ve(je.Tag)&&(je.Tag=[je.Tag]),fe(je,"firstLowerCase")})),Ae.abrupt("return",{rules:Ce,res:Te.res});case 10:case"end":return Ae.stop()}},re,this)}));function ae(re,le){return ee.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("../utils/checkBucketName"),ye=Ee.checkBucketName,Me=Ie;Me.getBucketVersioning=function(){var ve=(0,Pe.default)(ce.default.mark(function fe(z,ee){var ae,re,le;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ye(z),ae=this._bucketRequestParams("GET",z,"versioning",ee),ae.xmlResponse=!0,ae.successStatuses=[200],pe.next=6,this.request(ae);case 6:return re=pe.sent,le=re.data.Status,pe.abrupt("return",{status:re.status,versionStatus:le,res:re.res});case 9:case"end":return pe.stop()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("../utils/checkBucketName"),ye=Ee.checkBucketName,Me=ie("../utils/isObject"),ve=Me.isObject,xe=Ie;xe.getBucketWebsite=function(){var fe=(0,Pe.default)(ce.default.mark(function ee(ae,re){var le,ue,pe;return ce.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ye(ae),le=this._bucketRequestParams("GET",ae,"website",re),le.successStatuses=[200],le.xmlResponse=!0,Ce.next=6,this.request(le);case 6:return ue=Ce.sent,pe=[],ue.data.RoutingRules&&ue.data.RoutingRules.RoutingRule&&(ve(ue.data.RoutingRules.RoutingRule)?pe=[ue.data.RoutingRules.RoutingRule]:pe=ue.data.RoutingRules.RoutingRule),Ce.abrupt("return",{index:ue.data.IndexDocument&&ue.data.IndexDocument.Suffix||"",supportSubDir:ue.data.IndexDocument&&ue.data.IndexDocument.SupportSubDir||"false",type:ue.data.IndexDocument&&ue.data.IndexDocument.Type,routingRules:pe,error:ue.data.ErrorDocument&&ue.data.ErrorDocument.Key||null,res:ue.res});case 10:case"end":return Ce.stop()}},ee,this)}));function z(ee,ae){return fe.apply(this,arguments)}return z}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.getBucketWorm=void 0;var Ee=ie("../utils/checkBucketName"),ye=ie("../utils/dataFix");function Me(xe,fe){return ve.apply(this,arguments)}function ve(){return ve=(0,Pe.default)(ce.default.mark(function xe(fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Ee.checkBucketName(fe),ee=this._bucketRequestParams("GET",fe,"worm",z),ee.successStatuses=[200],ee.xmlResponse=!0,le.next=6,this.request(ee);case 6:return ae=le.sent,ye.dataFix(ae.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),le.abrupt("return",Object.assign(Object.assign({},ae.data),{res:ae.res,status:ae.status}));case 9:case"end":return le.stop()}},xe,this)})),ve.apply(this,arguments)}Ie.getBucketWorm=Me},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.initiateBucketWorm=void 0;var Ee=ie("../utils/obj2xml"),ye=ie("../utils/checkBucketName");function Me(xe,fe,z){return ve.apply(this,arguments)}function ve(){return ve=(0,Pe.default)(ce.default.mark(function xe(fe,z,ee){var ae,re,le;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ye.checkBucketName(fe),ae=this._bucketRequestParams("POST",fe,"worm",ee),re={InitiateWormConfiguration:{RetentionPeriodInDays:z}},ae.mime="xml",ae.content=Ee.obj2xml(re,{headers:!0}),ae.successStatuses=[200],pe.next=8,this.request(ae);case 8:return le=pe.sent,pe.abrupt("return",{res:le.res,wormId:le.res.headers["x-oss-worm-id"],status:le.status});case 10:case"end":return pe.stop()}},xe,this)})),ve.apply(this,arguments)}Ie.initiateBucketWorm=Me},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.listBucketInventory=void 0;var Ee=ie("../utils/checkBucketName"),ye=ie("../utils/formatInventoryConfig");function Me(xe){return ve.apply(this,arguments)}function ve(){return ve=(0,Pe.default)(ce.default.mark(function xe(fe){var z,ee,ae,re,le,ue,pe,Te,Ce=arguments;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return z=Ce.length>1&&Ce[1]!==void 0?Ce[1]:{},ee=z.continuationToken,ae=Object.assign({inventory:""},ee&&{"continuation-token":ee},z.subres),Ee.checkBucketName(fe),re=this._bucketRequestParams("GET",fe,ae,z),re.successStatuses=[200],re.xmlResponse=!0,Ae.next=9,this.request(re);case 9:return le=Ae.sent,ue=le.data,pe=le.res,Te=le.status,Ae.abrupt("return",{isTruncated:ue.IsTruncated==="true",nextContinuationToken:ue.NextContinuationToken,inventoryList:ye.formatInventoryConfig(ue.InventoryConfiguration,!0),status:Te,res:pe});case 12:case"end":return Ae.stop()}},xe,this)})),ve.apply(this,arguments)}Ie.listBucketInventory=Me},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js"),ie("core-js/modules/es.array.concat.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.putBucketInventory=void 0;var Ee=ie("../utils/checkBucketName"),ye=ie("../utils/obj2xml");function Me(xe,fe){return ve.apply(this,arguments)}function ve(){return ve=(0,Pe.default)(ce.default.mark(function xe(fe,z){var ee,ae,re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne=arguments;return ce.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ee=Ne.length>2&&Ne[2]!==void 0?Ne[2]:{},ae=Object.assign({inventory:"",inventoryId:z.id},ee.subres),Ee.checkBucketName(fe),re=z.OSSBucketDestination,le=z.optionalFields,ue=z.includedObjectVersions,pe="acs:oss:::",Te="acs:ram::".concat(re.accountId,":role/"),Ce={InventoryConfiguration:{Id:z.id,IsEnabled:z.isEnabled,Filter:{Prefix:z.prefix||""},Destination:{OSSBucketDestination:{Format:re.format,AccountId:re.accountId,RoleArn:"".concat(Te).concat(re.rolename),Bucket:"".concat(pe).concat(re.bucket),Prefix:re.prefix||"",Encryption:re.encryption||""}},Schedule:{Frequency:z.frequency},IncludedObjectVersions:ue,OptionalFields:{Field:(le==null?void 0:le.field)||[]}}},Fe=ye.obj2xml(Ce,{headers:!0,firstUpperCase:!0}),Ae=this._bucketRequestParams("PUT",fe,ae,ee),Ae.successStatuses=[200],Ae.mime="xml",Ae.content=Fe,ze.next=14,this.request(Ae);case 14:return je=ze.sent,ze.abrupt("return",{status:je.status,res:je.res});case 16:case"end":return ze.stop()}},xe,this)})),ve.apply(this,arguments)}Ie.putBucketInventory=Me},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.array.includes.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("../utils/checkBucketName"),ye=Ee.checkBucketName,Me=ie("../utils/isArray"),ve=Me.isArray,xe=ie("../utils/deepCopy"),fe=xe.deepCopy,z=ie("../utils/isObject"),ee=z.isObject,ae=ie("../utils/obj2xml"),re=ae.obj2xml,le=ie("../utils/checkObjectTag"),ue=le.checkObjectTag,pe=ie("../utils/getStrBytesCount"),Te=pe.getStrBytesCount,Ce=Ie;Ce.putBucketLifecycle=function(){var Be=(0,Pe.default)(ce.default.mark(function Qe($e,Ye,at){var ut,ht,Ct,et,it;return ce.default.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(ye($e),ve(Ye)){bt.next=3;break}throw new Error("rules must be Array");case 3:return ut=this._bucketRequestParams("PUT",$e,"lifecycle",at),ht=[],Ct={LifecycleConfiguration:{Rule:ht}},Ye.forEach(function(Pt){Fe(Pt),Ne(Pt),Pt.id&&(Pt.ID=Pt.id,delete Pt.id),ht.push(Pt)}),et=re(Ct,{headers:!0,firstUpperCase:!0}),ut.content=et,ut.mime="xml",ut.successStatuses=[200],bt.next=13,this.request(ut);case 13:return it=bt.sent,bt.abrupt("return",{res:it.res});case 15:case"end":return bt.stop()}},Qe,this)}));function ze(Qe,$e,Ye){return Be.apply(this,arguments)}return ze}();function Fe(Be){Be.days&&(Be.expiration={days:Be.days}),Be.date&&(Be.expiration={createdBeforeDate:Be.date})}function Ae(Be,ze){var Qe=Be.days,$e=Be.createdBeforeDate;if(!Qe&&!$e)throw new Error("".concat(ze," must includes days or createdBeforeDate"));if(Qe&&!/^[1-9][0-9]*$/.test(Qe))throw new Error("days must be a positive integer");if($e&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test($e))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function je(Be){if(!ve(Be)&&!ee(Be))throw new Error("tag must be Object or Array");Be=ee(Be)?[Be]:Be;var ze={},Qe=fe(Be);Qe.forEach(function($e){ze[$e.key]=$e.value}),ue(ze)}function Ne(Be){if(Be.id&&Te(Be.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Be.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Be.status))throw new Error("Status must be Enabled or Disabled");if(Be.transition){if(!["IA","Archive"].includes(Be.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Ae(Be.transition,"Transition")}if(Be.expiration){if(!Be.expiration.expiredObjectDeleteMarker)Ae(Be.expiration,"Expiration");else if(Be.expiration.days||Be.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Be.abortMultipartUpload&&Ae(Be.abortMultipartUpload,"AbortMultipartUpload"),!Be.expiration&&!Be.abortMultipartUpload&&!Be.transition&&!Be.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Be.tag){if(Be.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");je(Be.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.array.includes.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("../utils/checkBucketName"),ye=Ee.checkBucketName,Me=ie("../utils/obj2xml"),ve=Me.obj2xml,xe=Ie;xe.putBucketVersioning=function(){var fe=(0,Pe.default)(ce.default.mark(function ee(ae,re){var le,ue,pe,Te,Ce=arguments;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(le=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},ye(ae),["Enabled","Suspended"].includes(re)){Ae.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ue=this._bucketRequestParams("PUT",ae,"versioning",le),pe={VersioningConfiguration:{Status:re}},ue.mime="xml",ue.content=ve(pe,{headers:!0}),Ae.next=10,this.request(ue);case 10:return Te=Ae.sent,Ae.abrupt("return",{res:Te.res,status:Te.status});case 12:case"end":return Ae.stop()}},ee,this)}));function z(ee,ae){return fe.apply(this,arguments)}return z}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("../utils/checkBucketName"),ye=Ee.checkBucketName,Me=ie("../utils/obj2xml"),ve=Me.obj2xml,xe=ie("../utils/isArray"),fe=xe.isArray,z=Ie;z.putBucketWebsite=function(){var ee=(0,Pe.default)(ce.default.mark(function re(le){var ue,pe,Te,Ce,Fe,Ae,je,Ne=arguments;return ce.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(ue=Ne.length>1&&Ne[1]!==void 0?Ne[1]:{},pe=Ne.length>2?Ne[2]:void 0,ye(le),Te=this._bucketRequestParams("PUT",le,"website",pe),Ce={Suffix:ue.index||"index.html"},Fe={IndexDocument:Ce},Ae={WebsiteConfiguration:Fe},ue.supportSubDir&&(Ce.SupportSubDir=ue.supportSubDir),ue.type&&(Ce.Type=ue.type),ue.error&&(Fe.ErrorDocument={Key:ue.error}),ue.routingRules===void 0){ze.next=14;break}if(fe(ue.routingRules)){ze.next=13;break}throw new Error("RoutingRules must be Array");case 13:Fe.RoutingRules={RoutingRule:ue.routingRules};case 14:return Ae=ve(Ae),Te.content=Ae,Te.mime="xml",Te.successStatuses=[200],ze.next=20,this.request(Te);case 20:return je=ze.sent,ze.abrupt("return",{res:je.res});case 22:case"end":return ze.stop()}},re,this)}));function ae(re){return ee.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(ie,_e,Ie){(function(ge){(function(){"use strict";ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.regexp.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js"),Ie.encodeCallback=function(Pe,Ee){if(Pe.headers=Pe.headers||{},!Object.prototype.hasOwnProperty.call(Pe.headers,"x-oss-callback")&&Ee.callback){var ye={callbackUrl:encodeURI(Ee.callback.url),callbackBody:Ee.callback.body};Ee.callback.host&&(ye.callbackHost=Ee.callback.host),Ee.callback.contentType&&(ye.callbackBodyType=Ee.callback.contentType);var Me=ge.from(JSON.stringify(ye)).toString("base64");if(Pe.headers["x-oss-callback"]=Me,Ee.callback.customValue){var ve={};Object.keys(Ee.callback.customValue).forEach(function(xe){ve["x:".concat(xe)]=Ee.callback.customValue[xe].toString()}),Pe.headers["x-oss-callback-var"]=ge.from(JSON.stringify(ve)).toString("base64")}}}}).call(this)}).call(this,ie("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.replace.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js");var ge=function(fe){return fe&&fe.__esModule?fe:{default:fe}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.getReqUrl=void 0;var ce=ge(ie("copy-to")),Pe=ge(ie("url")),Ee=ge(ie("merge-descriptors")),ye=ge(ie("is-type-of")),Me=ie("../utils/isIP"),ve=ie("../utils/checkConfigValid");function xe(fe){var z={},ee=this.options.cname;ve.checkConfigValid(this.options.endpoint,"endpoint"),ce.default(this.options.endpoint,!1).to(z),fe.bucket&&!ee&&!Me.isIP(z.hostname)&&!this.options.sldEnable&&(z.host="".concat(fe.bucket,".").concat(z.host));var ae="/";fe.bucket&&this.options.sldEnable&&(ae+="".concat(fe.bucket,"/")),fe.object&&(ae+=this._escape(fe.object).replace(/\+/g,"%2B")),z.pathname=ae;var re={};if(fe.query&&Ee.default(re,fe.query),fe.subres){var le={};ye.default.string(fe.subres)?le[fe.subres]="":ye.default.array(fe.subres)?fe.subres.forEach(function(ue){le[ue]=""}):le=fe.subres,Ee.default(re,le)}return z.query=re,Pe.default.format(z)}Ie.getReqUrl=xe},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.object.assign.js"),ie("core-js/modules/es.string.trim.js");var ge=ie("humanize-ms"),ce=ie("url"),Pe=ie("../utils/checkBucketName"),Ee=Pe.checkBucketName,ye=ie("../utils/setRegion"),Me=ye.setRegion,ve=ie("../utils/checkConfigValid"),xe=ve.checkConfigValid;function fe(z,ee){xe(z,"endpoint");var ae=ce.parse(z);if(ae.protocol||(ae=ce.parse("http".concat(ee?"s":"","://").concat(z))),ae.protocol!=="http:"&&ae.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ae}_e.exports=function(z){if(!z||!z.accessKeyId||!z.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");z.stsToken&&!z.refreshSTSToken&&!z.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),z.bucket&&Ee(z.bucket);var ee=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},z);if(ee.accessKeyId=ee.accessKeyId.trim(),ee.accessKeySecret=ee.accessKeySecret.trim(),ee.timeout&&(ee.timeout=ge(ee.timeout)),ee.endpoint)ee.endpoint=fe(ee.endpoint,ee.secure);else if(ee.region)ee.endpoint=Me(ee.region,ee.internal,ee.secure);else throw new Error("require options.endpoint or options.region");return ee.inited=!0,ee}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(ie,_e,Ie){"use strict";var ge=ie("merge-descriptors"),ce=Ie;ge(ce,ie("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.array.concat.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("../utils/checkBucketName"),ye=Ee.checkBucketName,Me=ie("querystring"),ve=ie("js-base64"),xe=ve.Base64.encode,fe=Ie;fe.processObjectSave=function(){var ee=(0,Pe.default)(ce.default.mark(function re(le,ue,pe,Te){var Ce,Fe,Ae,je;return ce.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return z(le,"sourceObject"),z(ue,"targetObject"),z(pe,"process"),ue=this._objectName(ue),Te&&ye(Te),Ce=this._objectRequestParams("POST",le,{subres:"x-oss-process"}),Fe=Te?",b_".concat(xe(Te)):"",ue=xe(ue),Ae={"x-oss-process":"".concat(pe,"|sys/saveas,o_").concat(ue).concat(Fe)},Ce.content=Me.stringify(Ae),Be.next=12,this.request(Ce);case 12:return je=Be.sent,Be.abrupt("return",{res:je.res,status:je.res.status});case 14:case"end":return Be.stop()}},re,this)}));function ae(re,le,ue,pe){return ee.apply(this,arguments)}return ae}();function z(ee,ae){if(!ee)throw new Error("".concat(ae," is required"));if(typeof ee!="string")throw new Error("".concat(ae," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.function.name.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.promise.js"),ie("core-js/modules/es.array.from.js"),ie("core-js/modules/es.string.iterator.js"),ie("core-js/modules/es.array.map.js"),ie("core-js/modules/es.array.filter.js"),ie("core-js/modules/es.array.find.js"),ie("core-js/modules/es.regexp.to-string.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("debug")("ali-oss:multipart-copy"),ye=ie("copy-to"),Me=Ie;Me.uploadPartCopy=function(){var ve=(0,Pe.default)(ce.default.mark(function fe(z,ee,ae,re,le){var ue,pe,Te,Ce,Fe,Ae=arguments;return ce.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ue=Ae.length>5&&Ae[5]!==void 0?Ae[5]:{},ue.headers=ue.headers||{},pe=ue.versionId||ue.subres&&ue.subres.versionId||null,pe?Te="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey),"?versionId=").concat(pe):Te="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey)),ue.headers["x-oss-copy-source"]=Te,re&&(ue.headers["x-oss-copy-source-range"]="bytes=".concat(re)),ue.subres={partNumber:ae,uploadId:ee},Ce=this._objectRequestParams("PUT",z,ue),Ce.mime=ue.mime,Ce.successStatuses=[200],Ne.next=12,this.request(Ce);case 12:return Fe=Ne.sent,Ne.abrupt("return",{name:z,etag:Fe.res.headers.etag,res:Fe.res});case 14:case"end":return Ne.stop()}},fe,this)}));function xe(fe,z,ee,ae,re){return ve.apply(this,arguments)}return xe}(),Me.multipartUploadCopy=function(){var ve=(0,Pe.default)(ce.default.mark(function fe(z,ee){var ae,re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne,Be,ze=arguments;return ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return ae=ze.length>2&&ze[2]!==void 0?ze[2]:{},this.resetCancelFlag(),re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},$e.next=6,this._getObjectMeta(ee.sourceBucketName,ee.sourceKey,ue);case 6:if(pe=$e.sent,Te=pe.res.headers["content-length"],ee.startOffset=ee.startOffset||0,ee.endOffset=ee.endOffset||Te,!(ae.checkpoint&&ae.checkpoint.uploadId)){$e.next=14;break}return $e.next=13,this._resumeMultipartCopy(ae.checkpoint,ee,ae);case 13:return $e.abrupt("return",$e.sent);case 14:if(Ce=102400,Fe=ee.endOffset-ee.startOffset,!(Fe<Ce)){$e.next=18;break}throw new Error("copySize must not be smaller than ".concat(Ce));case 18:if(!(ae.partSize&&ae.partSize<Ce)){$e.next=20;break}throw new Error("partSize must not be smaller than ".concat(Ce));case 20:return $e.next=22,this.initMultipartUpload(z,ae);case 22:if(Ae=$e.sent,je=Ae.uploadId,Ne=this._getPartSize(Fe,ae.partSize),Be={name:z,copySize:Fe,partSize:Ne,uploadId:je,doneParts:[]},!(ae&&ae.progress)){$e.next=29;break}return $e.next=29,ae.progress(0,Be,Ae.res);case 29:return $e.next=31,this._resumeMultipartCopy(Be,ee,ae);case 31:return $e.abrupt("return",$e.sent);case 32:case"end":return $e.stop()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}(),Me._resumeMultipartCopy=function(){var ve=(0,Pe.default)(ce.default.mark(function fe(z,ee,ae){var re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne,Be,ze,Qe,$e,Ye,at,ut,ht,Ct,et,it;return ce.default.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(!this.isCancel()){bt.next=2;break}throw this._makeCancelEvent();case 2:if(re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},pe=z.copySize,Te=z.partSize,Ce=z.uploadId,Fe=z.doneParts,Ae=z.name,je=this._divideMultipartCopyParts(pe,Te,ee.startOffset),Ne=je.length,Be={headers:{}},ae.copyheaders&&ye(ae.copyheaders).to(Be.headers),le&&ye(ue).to(Be),ze=function(gt,dt,mt){return new Promise(function(){var kt=(0,Pe.default)(ce.default.mark(function Et(Ut,wt){var pt,tt,Ze;return ce.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(be.prev=0,gt.isCancel()){be.next=22;break}return pt=je[dt-1],tt="".concat(pt.start,"-").concat(pt.end-1),be.prev=4,be.next=7,gt.uploadPartCopy(Ae,Ce,dt,tt,mt,Be);case 7:Ze=be.sent,be.next=15;break;case 10:if(be.prev=10,be.t0=be.catch(4),be.t0.status!==404){be.next=14;break}throw gt._makeAbortEvent();case 14:throw be.t0;case 15:if(gt.isCancel()){be.next=22;break}if(Ee("content-range ".concat(Ze.res.headers["content-range"])),Fe.push({number:dt,etag:Ze.res.headers.etag}),z.doneParts=Fe,!(ae&&ae.progress)){be.next=22;break}return be.next=22,ae.progress(Fe.length/Ne,z,Ze.res);case 22:Ut(),be.next=29;break;case 25:be.prev=25,be.t1=be.catch(0),be.t1.partNum=dt,wt(be.t1);case 29:case"end":return be.stop()}},Et,null,[[0,25],[4,10]])}));return function(Et,Ut){return kt.apply(this,arguments)}}())},Qe=Array.from(new Array(Ne),function(Pt,gt){return gt+1}),$e=Fe.map(function(Pt){return Pt.number}),Ye=Qe.filter(function(Pt){return $e.indexOf(Pt)<0}),at=5,ut=ae.parallel||at,!(this.checkBrowserAndVersion("Internet Explorer","10")||ut===1)){bt.next=28;break}ht=0;case 18:if(!(ht<Ye.length)){bt.next=26;break}if(!this.isCancel()){bt.next=21;break}throw this._makeCancelEvent();case 21:return bt.next=23,ze(this,Ye[ht],ee);case 23:ht++,bt.next=18;break;case 26:bt.next=40;break;case 28:return bt.next=30,this._parallelNode(Ye,ut,ze,ee);case 30:if(Ct=bt.sent,et=Ct.find(function(Pt){return Pt.name==="abort"}),!et){bt.next=34;break}throw et;case 34:if(!this.isCancel()){bt.next=36;break}throw this._makeCancelEvent();case 36:if(!(Ct&&Ct.length>0)){bt.next=40;break}throw it=Ct[0],it.message="Failed to copy some parts with error: ".concat(it.toString()," part_num: ").concat(it.partNum),it;case 40:return bt.next=42,this.completeMultipartUpload(Ae,Ce,Fe,ae);case 42:return bt.abrupt("return",bt.sent);case 43:case"end":return bt.stop()}},fe,this)}));function xe(fe,z,ee){return ve.apply(this,arguments)}return xe}(),Me._divideMultipartCopyParts=function(xe,fe,z){for(var ee=Math.ceil(xe/fe),ae=[],re=0;re<ee;re++){var le=fe*re+z,ue=Math.min(le+fe,xe+z);ae.push({start:le,end:ue})}return ae},Me._getObjectMeta=function(){var ve=(0,Pe.default)(ce.default.mark(function fe(z,ee,ae){var re,le;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return re=this.getBucket(),this.setBucket(z),pe.next=4,this.head(ee,ae);case 4:return le=pe.sent,this.setBucket(re),pe.abrupt("return",le);case 7:case"end":return pe.stop()}},fe,this)}));function xe(fe,z,ee){return ve.apply(this,arguments)}return xe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(ie,_e,Ie){(function(ge){(function(){"use strict";var ce=ie("@babel/runtime/helpers/interopRequireDefault"),Pe=ce(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.array.map.js"),ie("core-js/modules/es.array.filter.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.array.sort.js"),ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.regexp.to-string.js");var Ee=ce(ie("@babel/runtime/helpers/asyncToGenerator")),ye=ie("copy-to"),Me=ie("./callback"),ve=ie("./utils/deepCopy"),xe=ve.deepCopyWith,fe=ie("./utils/isBuffer"),z=fe.isBuffer,ee=ie("./utils/omit"),ae=ee.omit,re=Ie;re.listUploads=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce){var Fe,Ae,je,Ne;return Pe.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return Ce=Ce||{},Fe={},ye(Ce).to(Fe),Fe.subres="uploads",Ae=this._objectRequestParams("GET","",Fe),Ae.query=Te,Ae.xmlResponse=!0,Ae.successStatuses=[200],ze.next=10,this.request(Ae);case 10:return je=ze.sent,Ne=je.data.Upload||[],Array.isArray(Ne)||(Ne=[Ne]),Ne=Ne.map(function(Qe){return{name:Qe.Key,uploadId:Qe.UploadId,initiated:Qe.Initiated}}),ze.abrupt("return",{res:je.res,uploads:Ne,bucket:je.data.Bucket,nextKeyMarker:je.data.NextKeyMarker,nextUploadIdMarker:je.data.NextUploadIdMarker,isTruncated:je.data.IsTruncated==="true"});case 15:case"end":return ze.stop()}},pe,this)}));function ue(pe,Te){return le.apply(this,arguments)}return ue}(),re.listParts=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce,Fe,Ae){var je,Ne,Be;return Pe.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Ae=Ae||{},je={},ye(Ae).to(je),je.subres={uploadId:Ce},Ne=this._objectRequestParams("GET",Te,je),Ne.query=Fe,Ne.xmlResponse=!0,Ne.successStatuses=[200],Qe.next=10,this.request(Ne);case 10:return Be=Qe.sent,Qe.abrupt("return",{res:Be.res,uploadId:Be.data.UploadId,bucket:Be.data.Bucket,name:Be.data.Key,partNumberMarker:Be.data.PartNumberMarker,nextPartNumberMarker:Be.data.NextPartNumberMarker,maxParts:Be.data.MaxParts,isTruncated:Be.data.IsTruncated,parts:Be.data.Part||[]});case 12:case"end":return Qe.stop()}},pe,this)}));function ue(pe,Te,Ce,Fe){return le.apply(this,arguments)}return ue}(),re.abortMultipartUpload=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce,Fe){var Ae,je,Ne;return Pe.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return this._stop(),Fe=Fe||{},Ae={},ye(Fe).to(Ae),Ae.subres={uploadId:Ce},je=this._objectRequestParams("DELETE",Te,Ae),je.successStatuses=[204],ze.next=9,this.request(je);case 9:return Ne=ze.sent,ze.abrupt("return",{res:Ne.res});case 11:case"end":return ze.stop()}},pe,this)}));function ue(pe,Te,Ce){return le.apply(this,arguments)}return ue}(),re.initMultipartUpload=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce){var Fe,Ae,je;return Pe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Ce=Ce||{},Fe={},ye(Ce).to(Fe),Fe.headers=Fe.headers||{},this._convertMetaToHeaders(Ce.meta,Fe.headers),Fe.subres="uploads",Ae=this._objectRequestParams("POST",Te,Fe),Ae.mime=Ce.mime,Ae.xmlResponse=!0,Ae.successStatuses=[200],Be.next=12,this.request(Ae);case 12:return je=Be.sent,Be.abrupt("return",{res:je.res,bucket:je.data.Bucket,name:je.data.Key,uploadId:je.data.UploadId});case 14:case"end":return Be.stop()}},pe,this)}));function ue(pe,Te){return le.apply(this,arguments)}return ue}(),re.uploadPart=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce,Fe,Ae,je,Ne,Be){var ze,Qe;return Pe.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(ze={size:Ne-je},Qe=ge&&ge.browser,!Qe){Ye.next=8;break}return Ye.next=5,this._createBuffer(Ae,je,Ne);case 5:ze.content=Ye.sent,Ye.next=11;break;case 8:return Ye.next=10,this._createStream(Ae,je,Ne);case 10:ze.stream=Ye.sent;case 11:return Ye.next=13,this._uploadPart(Te,Ce,Fe,ze,Be);case 13:return Ye.abrupt("return",Ye.sent);case 14:case"end":return Ye.stop()}},pe,this)}));function ue(pe,Te,Ce,Fe,Ae,je,Ne){return le.apply(this,arguments)}return ue}(),re.completeMultipartUpload=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce,Fe,Ae){var je,Ne,Be,ze,Qe,$e,Ye,at;return Pe.default.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:for(je=Fe.concat().sort(function(Ct,et){return Ct.number-et.number}).filter(function(Ct,et,it){return!et||Ct.number!==it[et-1].number}),Ne=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,Be=0;Be<je.length;Be++)ze=je[Be],Ne+=`<Part>
|
|
|
`,Ne+="<PartNumber>".concat(ze.number,`</PartNumber>
|
|
|
`),Ne+="<ETag>".concat(ze.etag,`</ETag>
|
|
|
`),Ne+=`</Part>
|
|
|
`;return Ne+="</CompleteMultipartUpload>",Ae=Ae||{},Qe={},Qe=xe(Ae,function(Ct){if(z(Ct))return null}),Qe.subres={uploadId:Ce},Qe.headers=ae(Qe.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),$e=this._objectRequestParams("POST",Te,Qe),Me.encodeCallback($e,Qe),$e.mime="xml",$e.content=Ne,$e.headers&&$e.headers["x-oss-callback"]||($e.xmlResponse=!0),$e.successStatuses=[200],ht.next=17,this.request($e);case 17:if(Ye=ht.sent,!Ae.progress){ht.next=21;break}return ht.next=21,Ae.progress(1,null,Ye.res);case 21:return at={res:Ye.res,bucket:$e.bucket,name:Te,etag:Ye.res.headers.etag},$e.headers&&$e.headers["x-oss-callback"]&&(at.data=JSON.parse(Ye.data.toString())),ht.abrupt("return",at);case 24:case"end":return ht.stop()}},pe,this)}));function ue(pe,Te,Ce,Fe){return le.apply(this,arguments)}return ue}(),re._uploadPart=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce,Fe,Ae,je){var Ne,Be,ze,Qe;return Pe.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return je=je||{},Ne={},ye(je).to(Ne),Ne.headers=Ne.headers||{},Ne.headers["Content-Length"]=Ae.size,Ne.headers=ae(Ne.headers,["x-oss-server-side-encryption"]),Ne.subres={partNumber:Fe,uploadId:Ce},Be=this._objectRequestParams("PUT",Te,Ne),Be.mime=Ne.mime,ze=ge&&ge.browser,ze?Be.content=Ae.content:Be.stream=Ae.stream,Be.successStatuses=[200],Be.disabledMD5=je.disabledMD5,Ye.next=15,this.request(Be);case 15:if(Qe=Ye.sent,Qe.res.headers.etag){Ye.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 18:return Ae.stream&&(Ae.stream=null,Be.stream=null),Ye.abrupt("return",{name:Te,etag:Qe.res.headers.etag,res:Qe.res});case 20:case"end":return Ye.stop()}},pe,this)}));function ue(pe,Te,Ce,Fe,Ae){return le.apply(this,arguments)}return ue}()}).call(this)}).call(this,ie("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator")),Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("url"),ye=ie("utility"),Me=ie("copy-to"),ve=ie("../../common/signUtils"),xe=ie("../utils/isIP"),fe=xe.isIP,z=ie("../utils/setSTSToken"),ee=z.setSTSToken,ae=ie("../utils/isFunction"),re=ae.isFunction,le=Ie;le.asyncSignatureUrl=function(){var ue=(0,Pe.default)(ce.default.mark(function Te(Ce,Fe){var Ae,je,Ne,Be,ze;return ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(!fe(this.options.endpoint.hostname)){$e.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Fe=Fe||{},Ce=this._objectName(Ce),Fe.method=Fe.method||"GET",Ae=ye.timestamp()+(Fe.expires||1800),je={bucket:this.options.bucket,object:Ce},Ne=this._getResource(je),!(this.options.stsToken&&re(this.options.refreshSTSToken))){$e.next=11;break}return $e.next=11,ee.call(this);case 11:return this.options.stsToken&&(Fe["security-token"]=this.options.stsToken),Be=ve._signatureForURL(this.options.accessKeySecret,Fe,Ne,Ae),ze=Ee.parse(this._getReqUrl(je)),ze.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Ae,Signature:Be.Signature},Me(Be.subResource).to(ze.query),$e.abrupt("return",ze.format());case 17:case"end":return $e.stop()}},Te,this)}));function pe(Te,Ce){return ue.apply(this,arguments)}return pe}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js"),ie("core-js/modules/es.array.find.js"),ie("core-js/modules/es.array.includes.js"),ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.replace.js");var Pe=ge(ie("@babel/runtime/helpers/typeof")),Ee=ge(ie("@babel/runtime/helpers/asyncToGenerator")),ye=ie("../utils/checkBucketName"),Me=ye.checkBucketName,ve=Ie,xe=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];ve.copy=function(){var fe=(0,Ee.default)(ce.default.mark(function ee(ae,re,le,ue){var pe,Te,Ce;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return(0,Pe.default)(le)==="object"&&(ue=le),ue=ue||{},ue.headers=ue.headers||{},Object.keys(ue.headers).forEach(function(je){ue.headers["x-oss-copy-source-".concat(je.toLowerCase())]=ue.headers[je]}),(ue.meta||Object.keys(ue.headers).find(function(je){return xe.includes(je.toLowerCase())}))&&(ue.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ue.meta,ue.headers),re=this._getSourceName(re,le),ue.versionId&&(re="".concat(re,"?versionId=").concat(ue.versionId)),ue.headers["x-oss-copy-source"]=re,pe=this._objectRequestParams("PUT",ae,ue),pe.xmlResponse=!0,pe.successStatuses=[200,304],Ae.next=14,this.request(pe);case 14:return Te=Ae.sent,Ce=Te.data,Ce&&(Ce={etag:Ce.ETag,lastModified:Ce.LastModified}),Ae.abrupt("return",{data:Ce,res:Te.res});case 18:case"end":return Ae.stop()}},ee,this)}));function z(ee,ae,re,le){return fe.apply(this,arguments)}return z}(),ve._getSourceName=function(z,ee){return typeof ee=="string"?z=this._objectName(z):z[0]!=="/"?ee=this.options.bucket:(ee=z.replace(/\/(.+?)(\/.*)/,"$1"),z=z.replace(/(\/.+?\/)(.*)/,"$2")),Me(ee),z=encodeURIComponent(z),z="/".concat(ee,"/").concat(z),z}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=Ie;Ee.delete=function(){var ye=(0,Pe.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae=arguments;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return fe=ae.length>1&&ae[1]!==void 0?ae[1]:{},fe.subres=Object.assign({},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),z=this._objectRequestParams("DELETE",xe,fe),z.successStatuses=[204],le.next=7,this.request(z);case 7:return ee=le.sent,le.abrupt("return",{res:ee.res});case 9:case"end":return le.stop()}},ve,this)}));function Me(ve){return ye.apply(this,arguments)}return Me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("utility"),ye=ie("../utils/obj2xml"),Me=ye.obj2xml,ve=Ie;ve.deleteMulti=function(){var xe=(0,Pe.default)(ce.default.mark(function z(ee){var ae,re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne,Be,ze,Qe=arguments;return ce.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(ae=Qe.length>1&&Qe[1]!==void 0?Qe[1]:{},re=[],!(!ee||!ee.length)){Ye.next=4;break}throw new Error("names is required");case 4:for(le=0;le<ee.length;le++)ue={},typeof ee[le]=="string"?ue.Key=Ee.escape(this._objectName(ee[le])):(pe=ee[le],Te=pe.key,Ce=pe.versionId,ue.Key=Ee.escape(this._objectName(Te)),ue.VersionId=Ce),re.push(ue);return Fe={Delete:{Quiet:!!ae.quiet,Object:re}},Ae=Me(Fe,{headers:!0}),ae.subres=Object.assign({delete:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),je=this._objectRequestParams("POST","",ae),je.mime="xml",je.content=Ae,je.xmlResponse=!0,je.successStatuses=[200],Ye.next=16,this.request(je);case 16:return Ne=Ye.sent,Be=Ne.data,ze=Be&&Be.Deleted||null,ze&&(Array.isArray(ze)||(ze=[ze])),Ye.abrupt("return",{res:Ne.res,deleted:ze||[]});case 21:case"end":return Ye.stop()}},z,this)}));function fe(z){return xe.apply(this,arguments)}return fe}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=Ie;Ee.deleteObjectTagging=function(){var ye=(0,Pe.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae=arguments;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return fe=ae.length>1&&ae[1]!==void 0?ae[1]:{},fe.subres=Object.assign({tagging:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),xe=this._objectName(xe),z=this._objectRequestParams("DELETE",xe,fe),z.successStatuses=[204],le.next=8,this.request(z);case 8:return ee=le.sent,le.abrupt("return",{status:ee.status,res:ee.res});case 10:case"end":return le.stop()}},ve,this)}));function Me(ve){return ye.apply(this,arguments)}return Me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.array.concat.js");var ge=ie("url"),ce=ie("../utils/isIP"),Pe=ce.isIP,Ee=Ie;Ee.generateObjectUrl=function(Me,ve){if(Pe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(ve)ve[ve.length-1]!=="/"&&(ve+="/");else{ve=this.options.endpoint.format();var xe=ge.parse(ve),fe=this.options.bucket;xe.hostname="".concat(fe,".").concat(xe.hostname),xe.host="".concat(fe,".").concat(xe.host),ve=xe.format()}return ve+this._escape(this._objectName(Me))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(ie,_e,Ie){(function(ge){(function(){"use strict";var ce=ie("@babel/runtime/helpers/interopRequireDefault"),Pe=ce(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Ee=ce(ie("@babel/runtime/helpers/asyncToGenerator")),ye=ie("fs"),Me=ie("is-type-of"),ve=Ie;ve.get=function(){var xe=(0,Ee.default)(Pe.default.mark(function z(ee,ae){var re,le,ue,pe,Te,Ce,Fe,Ae,je=arguments;return Pe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return re=je.length>2&&je[2]!==void 0?je[2]:{},le=null,ue=!1,Me.writableStream(ae)?le=ae:Me.string(ae)?(le=ye.createWriteStream(ae),ue=!0):re=ae,re=re||{},pe=ge&&ge.browser,Te=re.responseCacheControl===null?"":"no-cache",Ce=pe&&Te?{"response-cache-control":Te}:{},re.subres=Object.assign(Ce,re.subres),re.versionId&&(re.subres.versionId=re.versionId),re.process&&(re.subres["x-oss-process"]=re.process),Be.prev=11,Ae=this._objectRequestParams("GET",ee,re),Ae.writeStream=le,Ae.successStatuses=[200,206,304],Be.next=17,this.request(Ae);case 17:Fe=Be.sent,ue&&le.destroy(),Be.next=28;break;case 21:if(Be.prev=21,Be.t0=Be.catch(11),!ue){Be.next=27;break}return le.destroy(),Be.next=27,this._deleteFileSafe(ae);case 27:throw Be.t0;case 28:return Be.abrupt("return",{res:Fe.res,content:Fe.data});case 29:case"end":return Be.stop()}},z,this,[[11,21]])}));function fe(z,ee){return xe.apply(this,arguments)}return fe}()}).call(this)}).call(this,ie("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=Ie;Ee.getACL=function(){var ye=(0,Pe.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae=arguments;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return fe=ae.length>1&&ae[1]!==void 0?ae[1]:{},fe.subres=Object.assign({acl:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),xe=this._objectName(xe),z=this._objectRequestParams("GET",xe,fe),z.successStatuses=[200],z.xmlResponse=!0,le.next=9,this.request(z);case 9:return ee=le.sent,le.abrupt("return",{acl:ee.data.AccessControlList.Grant,owner:{id:ee.data.Owner.ID,displayName:ee.data.Owner.DisplayName},res:ee.res});case 11:case"end":return le.stop()}},ve,this)}));function Me(ve){return ye.apply(this,arguments)}return Me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.replace.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js"),ie("core-js/modules/es.object.assign.js"),ie("core-js/modules/es.array.map.js"),ie("core-js/modules/es.number.constructor.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=Ie,ye=ie("../utils/isObject"),Me=ye.isObject,ve=ie("../utils/isArray"),xe=ve.isArray;Ee.getBucketVersions=fe,Ee.listObjectVersions=fe;function fe(){return z.apply(this,arguments)}function z(){return z=(0,Pe.default)(ce.default.mark(function re(){var le,ue,pe,Te,Ce,Fe,Ae,je,Ne=arguments;return ce.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(le=Ne.length>0&&Ne[0]!==void 0?Ne[0]:{},ue=Ne.length>1&&Ne[1]!==void 0?Ne[1]:{},!(le.versionIdMarker&&le.keyMarker===void 0)){ze.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ue.subres=Object.assign({versions:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),pe=this._objectRequestParams("GET","",ue),pe.xmlResponse=!0,pe.successStatuses=[200],pe.query=ae(le),ze.next=12,this.request(pe);case 12:return Te=ze.sent,Ce=Te.data.Version||[],Fe=Te.data.DeleteMarker||[],Ae=this,Ce&&(Array.isArray(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Qe){return{name:Qe.Key,url:Ae._objectUrl(Qe.Key),lastModified:Qe.LastModified,isLatest:Qe.IsLatest==="true",versionId:Qe.VersionId,etag:Qe.ETag,type:Qe.Type,size:Number(Qe.Size),storageClass:Qe.StorageClass,owner:{id:Qe.Owner.ID,displayName:Qe.Owner.DisplayName}}})),Fe&&(xe(Fe)||(Fe=[Fe]),Fe=Fe.map(function(Qe){return{name:Qe.Key,lastModified:Qe.LastModified,versionId:Qe.VersionId,owner:{id:Qe.Owner.ID,displayName:Qe.Owner.DisplayName}}})),je=Te.data.CommonPrefixes||null,je&&(xe(je)||(je=[je]),je=je.map(function(Qe){return Qe.Prefix})),ze.abrupt("return",{res:Te.res,objects:Ce,deleteMarker:Fe,prefixes:je,nextMarker:Te.data.NextKeyMarker||null,NextVersionIdMarker:Te.data.NextVersionIdMarker||null,nextKeyMarker:Te.data.NextKeyMarker||null,nextVersionIdMarker:Te.data.NextVersionIdMarker||null,isTruncated:Te.data.IsTruncated==="true"});case 21:case"end":return ze.stop()}},re,this)})),z.apply(this,arguments)}function ee(re){return re.replace(/([A-Z])/g,"-$1").toLowerCase()}function ae(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={};return Me(re)&&Object.keys(re).forEach(function(ue){le[ee(ue)]=re[ue]}),le}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=Ie;Ee.getObjectMeta=function(){var ye=(0,Pe.default)(ce.default.mark(function ve(xe,fe){var z,ee;return ce.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return fe=fe||{},xe=this._objectName(xe),fe.subres=Object.assign({objectMeta:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),z=this._objectRequestParams("HEAD",xe,fe),z.successStatuses=[200],re.next=8,this.request(z);case 8:return ee=re.sent,re.abrupt("return",{status:ee.status,res:ee.res});case 10:case"end":return re.stop()}},ve,this)}));function Me(ve,xe){return ye.apply(this,arguments)}return Me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=Ie,ye=ie("../utils/isObject"),Me=ye.isObject;Ee.getObjectTagging=function(){var ve=(0,Pe.default)(ce.default.mark(function fe(z){var ee,ae,re,le,ue,pe,Te=arguments;return ce.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ee=Te.length>1&&Te[1]!==void 0?Te[1]:{},ee.subres=Object.assign({tagging:""},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),z=this._objectName(z),ae=this._objectRequestParams("GET",z,ee),ae.successStatuses=[200],Fe.next=8,this.request(ae);case 8:return re=Fe.sent,Fe.next=11,this.parseXML(re.data);case 11:return le=Fe.sent,ue=le.TagSet.Tag,ue=ue&&Me(ue)?[ue]:ue||[],pe={},ue.forEach(function(Ae){pe[Ae.Key]=Ae.Value}),Fe.abrupt("return",{status:re.status,res:re.res,tag:pe});case 17:case"end":return Fe.stop()}},fe,this)}));function xe(fe){return ve.apply(this,arguments)}return xe}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(ie,_e,Ie){"use strict";var ge=ie("../utils/isIP"),ce=ge.isIP,Pe=Ie;Pe.getObjectUrl=function(ye,Me){if(ce(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return Me?Me[Me.length-1]!=="/"&&(Me+="/"):Me=this.options.endpoint.format(),Me+this._escape(this._objectName(ye))}},{"../utils/isIP":69}],43:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=Ie;Ee.getSymlink=function(){var ye=(0,Pe.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae,re=arguments;return ce.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return fe=re.length>1&&re[1]!==void 0?re[1]:{},fe.subres=Object.assign({symlink:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),xe=this._objectName(xe),z=this._objectRequestParams("GET",xe,fe),z.successStatuses=[200],ue.next=8,this.request(z);case 8:return ee=ue.sent,ae=ee.res.headers["x-oss-symlink-target"],ue.abrupt("return",{targetName:decodeURIComponent(ae),res:ee.res});case 11:case"end":return ue.stop()}},ve,this)}));function Me(ve){return ye.apply(this,arguments)}return Me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("../utils/checkEnv"),ye=Ee.checkEnv,Me=Ie;Me.head=function(){var ve=(0,Pe.default)(ce.default.mark(function fe(z){var ee,ae,re,le,ue=arguments;return ce.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ee=ue.length>1&&ue[1]!==void 0?ue[1]:{},ye("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),ee.subres=Object.assign({},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),ae=this._objectRequestParams("HEAD",z,ee),ae.successStatuses=[200,304],Te.next=8,this.request(ae);case 8:return re=Te.sent,le={meta:null,res:re.res,status:re.status},re.status===200&&Object.keys(re.headers).forEach(function(Ce){Ce.indexOf("x-oss-meta-")===0&&(le.meta||(le.meta={}),le.meta[Ce.substring(11)]=re.headers[Ce])}),Te.abrupt("return",le);case 12:case"end":return Te.stop()}},fe,this)}));function xe(fe){return ve.apply(this,arguments)}return xe}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=Ie;Ee.putACL=function(){var ye=(0,Pe.default)(ce.default.mark(function ve(xe,fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return z=z||{},z.subres=Object.assign({acl:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),z.headers=z.headers||{},z.headers["x-oss-object-acl"]=fe,xe=this._objectName(xe),ee=this._objectRequestParams("PUT",xe,z),ee.successStatuses=[200],le.next=10,this.request(ee);case 10:return ae=le.sent,le.abrupt("return",{res:ae.res});case 12:case"end":return le.stop()}},ve,this)}));function Me(ve,xe,fe){return ye.apply(this,arguments)}return Me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js"),ie("core-js/modules/es.array.map.js"),ie("core-js/modules/es.object.keys.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("../utils/obj2xml"),ye=Ee.obj2xml,Me=ie("../utils/checkObjectTag"),ve=Me.checkObjectTag,xe=Ie;xe.putObjectTagging=function(){var fe=(0,Pe.default)(ce.default.mark(function ee(ae,re){var le,ue,pe,Te,Ce=arguments;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return le=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},ve(re),le.subres=Object.assign({tagging:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),ae=this._objectName(ae),ue=this._objectRequestParams("PUT",ae,le),ue.successStatuses=[200],re=Object.keys(re).map(function(je){return{Key:je,Value:re[je]}}),pe={Tagging:{TagSet:{Tag:re}}},ue.mime="xml",ue.content=ye(pe),Ae.next=13,this.request(ue);case 13:return Te=Ae.sent,Ae.abrupt("return",{res:Te.res,status:Te.status});case 15:case"end":return Ae.stop()}},ee,this)}));function z(ee,ae){return fe.apply(this,arguments)}return z}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=Ie;Ee.putSymlink=function(){var ye=(0,Pe.default)(ce.default.mark(function ve(xe,fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return z=z||{},z.headers=z.headers||{},fe=this._escape(this._objectName(fe)),this._convertMetaToHeaders(z.meta,z.headers),z.headers["x-oss-symlink-target"]=fe,z.subres=Object.assign({symlink:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),z.storageClass&&(z.headers["x-oss-storage-class"]=z.storageClass),xe=this._objectName(xe),ee=this._objectRequestParams("PUT",xe,z),ee.successStatuses=[200],le.next=13,this.request(ee);case 13:return ae=le.sent,le.abrupt("return",{res:ae.res});case 15:case"end":return le.stop()}},ve,this)}));function Me(ve,xe,fe){return ye.apply(this,arguments)}return Me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(ie,_e,Ie){"use strict";var ge=ie("url"),ce=ie("utility"),Pe=ie("copy-to"),Ee=ie("../../common/signUtils"),ye=ie("../utils/isIP"),Me=ye.isIP,ve=Ie;ve.signatureUrl=function(fe,z){if(Me(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");z=z||{},fe=this._objectName(fe),z.method=z.method||"GET";var ee=ce.timestamp()+(z.expires||1800),ae={bucket:this.options.bucket,object:fe},re=this._getResource(ae);this.options.stsToken&&(z["security-token"]=this.options.stsToken);var le=Ee._signatureForURL(this.options.accessKeySecret,z,re,ee),ue=ge.parse(this._getReqUrl(ae));return ue.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ee,Signature:le.Signature},Pe(le.subResource).to(ue.query),ue.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.array.iterator.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.promise.js"),ie("core-js/modules/es.string.iterator.js"),ie("core-js/modules/web.dom-collections.iterator.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.function.name.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator")),Ee=ie("./utils/isArray"),ye=Ee.isArray,Me=Ie;Me._parallelNode=function(){var ve=(0,Pe.default)(ce.default.mark(function fe(z,ee,ae,re){var le,ue,pe,Te,Ce,Fe,Ae,je;return ce.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:le=this,ue=[],pe=[],Te=z.length/ee,Ce=z.length%ee,Fe=Ce===0?Te:(z.length-Ce)/ee+1,Ae=1,je=0;case 8:if(!(je<z.length)){Be.next=26;break}if(!le.isCancel()){Be.next=11;break}return Be.abrupt("break",26);case 11:if(re?pe.push(ae(le,z[je],re)):pe.push(ae(le,z[je])),!(pe.length===ee||Ae===Fe&&je===z.length-1)){Be.next=23;break}return Be.prev=13,Ae+=1,Be.next=17,Promise.all(pe);case 17:Be.next=22;break;case 19:Be.prev=19,Be.t0=Be.catch(13),ue.push(Be.t0);case 22:pe=[];case 23:je++,Be.next=8;break;case 26:return Be.abrupt("return",ue);case 27:case"end":return Be.stop()}},fe,this,[[13,19]])}));function xe(fe,z,ee,ae){return ve.apply(this,arguments)}return xe}(),Me._parallel=function(xe,fe,z){var ee=this;return new Promise(function(ae){var re=[];if(fe<=0||!xe){ae(re);return}function le(Be){return function(){if(Be===null)throw new Error("Callback was already called.");var ze=Be;Be=null;for(var Qe=arguments.length,$e=new Array(Qe),Ye=0;Ye<Qe;Ye++)$e[Ye]=arguments[Ye];ze.apply(this,$e)}}function ue(Be){var ze=-1,Qe=Be.length;return function(){return++ze<Qe&&!ee.isCancel()?{value:Be[ze],key:ze}:null}}var pe=ue(xe),Te=!1,Ce=0,Fe=!1;function Ae(Be){Ce-=1,Be?(Te=!0,re.push(Be),ae(re)):Te&&Ce<=0?(Te=!0,ae(re)):Fe||(ee.isCancel()?ae(re):Ne())}function je(Be,ze){z(Be).then(function(Qe){ze(null,Qe)}).catch(function(Qe){ze(Qe)})}function Ne(){for(Fe=!0;Ce<fe&&!Te&&!ee.isCancel();){var Be=pe();if(Be===null||re.length>0){Te=!0,Ce<=0&&ae(re);return}Ce+=1,je(Be.value,le(Ae))}Fe=!1}Ne()})},Me.cancel=function(xe){this.options.cancelFlag=!0,ye(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(fe){if(fe.destroyed===!1){var z={name:"cancel",message:"cancel"};fe.destroy(z)}}),this.multipartUploadStreams=[],xe&&this.abortMultipartUpload(xe.name,xe.uploadId,xe.options)},Me.isCancel=function(){return this.options.cancelFlag},Me.resetCancelFlag=function(){this.options.cancelFlag=!1},Me._stop=function(){this.options.cancelFlag=!0},Me._makeCancelEvent=function(){var xe={status:0,name:"cancel"};return xe},Me._makeAbortEvent=function(){var xe={status:0,name:"abort",message:"upload task has been abort"};return xe}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(ie,_e,Ie){(function(ge){(function(){"use strict";ie("core-js/modules/es.string.trim.js"),ie("core-js/modules/es.array.sort.js"),ie("core-js/modules/es.array.join.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js"),ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.regexp.to-string.js");var ce=ie("./../../shims/crypto/crypto.js"),Pe=ie("is-type-of"),Ee=ie("./utils/lowercaseKeyHeader"),ye=Ee.lowercaseKeyHeader;Ie.buildCanonicalizedResource=function(ve,xe){var fe="".concat(ve),z="?";if(Pe.string(xe)&&xe.trim()!=="")fe+=z+xe;else if(Pe.array(xe))xe.sort(),fe+=z+xe.join("&");else if(xe){var ee=function(le,ue){return le[0]>ue[0]?1:le[0]<ue[0]?-1:0},ae=function(le){fe+=z+le,(xe[le]||xe[le]===0)&&(fe+="=".concat(xe[le])),z="&"};Object.keys(xe).sort(ee).forEach(ae)}return fe},Ie.buildCanonicalString=function(ve,xe,fe,z){fe=fe||{};var ee=ye(fe.headers),ae="x-oss-",re=[],le={},ue=[ve.toUpperCase(),ee["content-md5"]||"",ee["content-type"],z||ee["x-oss-date"]];return Object.keys(ee).forEach(function(pe){var Te=pe.toLowerCase();Te.indexOf(ae)===0&&(le[Te]=String(ee[pe]).trim())}),Object.keys(le).sort().forEach(function(pe){re.push("".concat(pe,":").concat(le[pe]))}),ue=ue.concat(re),ue.push(this.buildCanonicalizedResource(xe,fe.parameters)),ue.join(`
|
|
|
`)},Ie.computeSignature=function(ve,xe){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",z=ce.createHmac("sha1",ve);return z.update(ge.from(xe,fe)).digest("base64")},Ie.authorization=function(ve,xe,fe,z){return"OSS ".concat(ve,":").concat(this.computeSignature(xe,fe,z))},Ie._signatureForURL=function(ve){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=arguments.length>2?arguments[2]:void 0,z=arguments.length>3?arguments[3]:void 0,ee=arguments.length>4?arguments[4]:void 0,ae={},re=xe.subResource,le=re===void 0?{}:re;if(xe.process){var ue="x-oss-process";le[ue]=xe.process}if(xe.trafficLimit){var pe="x-oss-traffic-limit";le[pe]=xe.trafficLimit}if(xe.response&&Object.keys(xe.response).forEach(function(Ae){var je="response-".concat(Ae.toLowerCase());le[je]=xe.response[Ae]}),Object.keys(xe).forEach(function(Ae){var je=Ae.toLowerCase(),Ne=xe[Ae];je.indexOf("x-oss-")===0?ae[je]=Ne:(je.indexOf("content-md5")===0||je.indexOf("content-type")===0)&&(ae[Ae]=Ne)}),Object.prototype.hasOwnProperty.call(xe,"security-token")&&(le["security-token"]=xe["security-token"]),Object.prototype.hasOwnProperty.call(xe,"callback")){var Te={callbackUrl:encodeURI(xe.callback.url),callbackBody:xe.callback.body};if(xe.callback.host&&(Te.callbackHost=xe.callback.host),xe.callback.contentType&&(Te.callbackBodyType=xe.callback.contentType),le.callback=ge.from(JSON.stringify(Te)).toString("base64"),xe.callback.customValue){var Ce={};Object.keys(xe.callback.customValue).forEach(function(Ae){Ce["x:".concat(Ae)]=xe.callback.customValue[Ae]}),le["callback-var"]=ge.from(JSON.stringify(Ce)).toString("base64")}}var Fe=this.buildCanonicalString(xe.method,fe,{headers:ae,parameters:le},z.toString());return{Signature:this.computeSignature(ve,Fe,ee),subResource:le}}}).call(this)}).call(this,ie("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkBucketName=void 0,Ie.checkBucketName=function(ge){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=ce?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!Pe.test(ge))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkConfigValid=void 0;var ge={endpoint:ce,region:/^[a-zA-Z0-9\-_]+$/};function ce(Pe){return typeof Pe=="string"?/^[a-zA-Z0-9._:/-]+$/.test(Pe):Pe.host?/^[a-zA-Z0-9._:/-]+$/.test(Pe.host):!1}Ie.checkConfigValid=function(Pe,Ee){if(ge[Ee]){var ye=!0;if(ge[Ee]instanceof Function?ye=ge[Ee](Pe):ye=ge[Ee].test(Pe),!ye)throw new Error("The ".concat(Ee," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(ie,_e,Ie){(function(ge){(function(){"use strict";Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkEnv=void 0;function ce(Pe){ge.browser&&console.warn(Pe)}Ie.checkEnv=ce}).call(this)}).call(this,ie("_process"))},{_process:467}],54:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.object.entries.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkObjectTag=void 0;var ge=ie("./checkValid"),ce=ge.checkValid,Pe=ie("./isObject"),Ee=Pe.isObject,ye=[{validator:function(fe){if(typeof fe!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],Me={key:[].concat(ye,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(ye,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function ve(xe){if(!Ee(xe))throw new Error("tag must be Object");var fe=Object.entries(xe);if(fe.length>10)throw new Error("maximum of 10 tags for a object");var z=["key","value"];fe.forEach(function(ee){ee.forEach(function(ae,re){ce(ae,Me[z[re]])})})}Ie.checkObjectTag=ve},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkValid=void 0;function ge(ce,Pe){Pe.forEach(function(Ee){if(Ee.validator)Ee.validator(ce);else if(Ee.pattern&&!Ee.pattern.test(ce))throw new Error(Ee.msg)})}Ie.checkValid=ge},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(ie,_e,Ie){(function(ge){(function(){"use strict";ie("core-js/modules/es.array.includes.js"),ie("core-js/modules/es.string.includes.js"),ie("core-js/modules/es.object.assign.js"),ie("core-js/modules/es.array.concat.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.createRequest=void 0;var ce=ie("./../../../shims/crypto/crypto.js"),Pe=ie("debug")("ali-oss"),Ee=ie("mime"),ye=ie("dateformat"),Me=ie("copy-to"),ve=ie("path"),xe=ie("./encoder"),fe=xe.encoder,z=ie("./isIP"),ee=z.isIP,ae=ie("./setRegion"),re=ae.setRegion,le=ie("../client/getReqUrl"),ue=le.getReqUrl,pe=ie("./isDingTalk"),Te=pe.isDingTalk;function Ce(je,Ne){return je[Ne]||je[Ne.toLowerCase()]}function Fe(je,Ne){delete je[Ne],delete je[Ne.toLowerCase()]}function Ae(je){var Ne=new Date;this.options.amendTimeSkewed&&(Ne=+new Date+this.options.amendTimeSkewed);var Be={"x-oss-date":ye(Ne,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Be["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Be["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Be,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Be["x-oss-security-token"]=this.options.stsToken),Me(je.headers).to(Be),Ce(Be,"Content-Type")||(je.mime&&je.mime.indexOf("/")>0?Be["Content-Type"]=je.mime:Te()?Be["Content-Type"]="application/octet-stream":Be["Content-Type"]=Ee.getType(je.mime||ve.extname(je.object||""))),Ce(Be,"Content-Type")||Fe(Be,"Content-Type"),je.content&&(je.disabledMD5||(!je.headers||!je.headers["Content-MD5"]?Be["Content-MD5"]=ce.createHash("md5").update(ge.from(je.content,"utf8")).digest("base64"):Be["Content-MD5"]=je.headers["Content-MD5"]),Be["Content-Length"]||(Be["Content-Length"]=je.content.length));var ze=Object.prototype.hasOwnProperty;for(var Qe in Be)Be[Qe]&&ze.call(Be,Qe)&&(Be[Qe]=fe(String(Be[Qe]),this.options.headerEncoding));var $e=this._getResource(je);if(Be.authorization=this.authorization(je.method,$e,je.subres,Be,this.options.headerEncoding),ee(this.options.endpoint.hostname)){var Ye=this.options,at=Ye.region,ut=Ye.internal,ht=Ye.secure,Ct=re(at,ut,ht);Be.host="".concat(je.bucket,".").concat(Ct.host)}var et=ue.bind(this)(je);Pe("request %s %s, with headers %j, !!stream: %s",je.method,et,Be,!!je.stream);var it=je.timeout||this.options.timeout,St={method:je.method,content:je.content,stream:je.stream,headers:Be,timeout:it,writeStream:je.writeStream,customResponse:je.customResponse,ctx:je.ctx||this.ctx};return this.agent&&(St.agent=this.agent),this.httpsAgent&&(St.httpsAgent=this.httpsAgent),St.enableProxy=!!this.options.enableProxy,St.proxy=this.options.proxy?this.options.proxy:null,{url:et,params:St}}Ie.createRequest=Ae}).call(this)}).call(this,ie("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.entries.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.replace.js"),ie("core-js/modules/es.array.includes.js"),ie("core-js/modules/es.object.keys.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.dataFix=void 0;var ge=ie("./isObject"),ce=["true","TRUE","1",1],Pe=["false","FALSE","0",0];function Ee(ve,xe,fe){if(ge.isObject(ve)){var z=xe.remove,ee=z===void 0?[]:z,ae=xe.rename,re=ae===void 0?{}:ae,le=xe.camel,ue=le===void 0?[]:le,pe=xe.bool,Te=pe===void 0?[]:pe,Ce=xe.lowerFirst,Fe=Ce===void 0?!1:Ce;return ee.forEach(function(Ae){return delete ve[Ae]}),Object.entries(re).forEach(function(Ae){ve[Ae[0]]&&(ve[Ae[1]]||(ve[Ae[1]]=ve[Ae[0]],delete ve[Ae[0]]))}),ue.forEach(function(Ae){if(ve[Ae]){var je=Ae.replace(/^(.)/,function(Ne){return Ne.toLowerCase()}).replace(/-(\w)/g,function(Ne,Be){return Be.toUpperCase()});ve[je]||(ve[je]=ve[Ae])}}),Te.forEach(function(Ae){ve[Ae]=ye(ve[Ae])}),typeof fe=="function"&&fe(ve),Me(ve,Fe),Ee}}Ie.dataFix=Ee;function ye(ve){return ve?ce.includes(ve)?!0:Pe.includes(ve)?!1:ve:!1}function Me(ve,xe){xe&&Object.keys(ve).forEach(function(fe){var z=fe.replace(/^\w/,function(ee){return ee.toLowerCase()});typeof ve[z]=="undefined"&&(ve[z]=ve[fe],delete ve[fe])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault");ie("core-js/modules/es.array.slice.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js");var ce=ge(ie("@babel/runtime/helpers/typeof"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.deepCopyWith=Ie.deepCopy=void 0;var Pe=ie("./isBuffer");Ie.deepCopy=function(Ee){if(Ee===null||(0,ce.default)(Ee)!=="object")return Ee;if(Pe.isBuffer(Ee))return Ee.slice();var ye=Array.isArray(Ee)?[]:{};return Object.keys(Ee).forEach(function(Me){ye[Me]=Ie.deepCopy(Ee[Me])}),ye},Ie.deepCopyWith=function(Ee,ye){function Me(ve,xe,fe){var z=ye(ve,xe,fe);if(z!==void 0)return z;if(ve===null||(0,ce.default)(ve)!=="object")return ve;if(Pe.isBuffer(ve))return ve.slice();var ee=Array.isArray(ve)?[]:{};return Object.keys(ve).forEach(function(ae){ee[ae]=Me(ve[ae],ae,ve)}),ee}return ye?Me(Ee,"",null):Ie.deepCopy(Ee)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(ie,_e,Ie){(function(ge){(function(){"use strict";ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.encoder=void 0;function ce(Pe){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return Ee==="utf-8"?Pe:ge.from(Pe).toString("latin1")}Ie.encoder=ce}).call(this)}).call(this,ie("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.array.map.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.replace.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.formatInventoryConfig=void 0;var ge=ie("../utils/dataFix"),ce=ie("../utils/isObject"),Pe=ie("../utils/isArray"),Ee=ie("../utils/formatObjKey");function ye(ve){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return xe&&ce.isObject(ve)&&(ve=[ve]),Pe.isArray(ve)?ve=ve.map(Me):ve=Me(ve),ve}Ie.formatInventoryConfig=ye;function Me(ve){return ge.dataFix(ve,{bool:["IsEnabled"]},function(xe){var fe,z;xe.prefix=xe.Filter.Prefix,delete xe.Filter,xe.OSSBucketDestination=xe.Destination.OSSBucketDestination,xe.OSSBucketDestination.rolename=xe.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete xe.OSSBucketDestination.RoleArn,xe.OSSBucketDestination.bucket=xe.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete xe.OSSBucketDestination.Bucket,delete xe.Destination,xe.frequency=xe.Schedule.Frequency,delete xe.Schedule.Frequency,!((fe=xe==null?void 0:xe.OptionalFields)===null||fe===void 0)&&fe.Field&&!Pe.isArray((z=xe.OptionalFields)===null||z===void 0?void 0:z.Field)&&(xe.OptionalFields.Field=[xe.OptionalFields.Field])}),ve=Ee.formatObjKey(ve,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),ve}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault");ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js"),ie("core-js/modules/es.array.includes.js"),ie("core-js/modules/es.string.includes.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.replace.js");var ce=ge(ie("@babel/runtime/helpers/typeof"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.formatObjKey=void 0;function Pe(ye,Me,ve){if(ye===null||(0,ce.default)(ye)!=="object")return ye;var xe;if(Array.isArray(ye)){xe=[];for(var fe=0;fe<ye.length;fe++)xe.push(Pe(ye[fe],Me,ve))}else xe={},Object.keys(ye).forEach(function(z){xe[Ee(z,Me,ve)]=Pe(ye[z],Me,ve)});return xe}Ie.formatObjKey=Pe;function Ee(ye,Me,ve){return ve&&ve.exclude&&ve.exclude.includes(ye)||(Me==="firstUpperCase"?ye=ye.replace(/^./,function(xe){return xe.toUpperCase()}):Me==="firstLowerCase"&&(ye=ye.replace(/^./,function(xe){return xe.toLowerCase()}))),ye}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.getStrBytesCount=void 0;function ge(ce){for(var Pe=0,Ee=0;Ee<ce.length;Ee++){var ye=ce.charAt(Ee);/^[\u00-\uff]$/.test(ye)?Pe+=1:Pe+=2}return Pe}Ie.getStrBytesCount=ge},{"core-js/modules/es.regexp.exec.js":300}],63:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.object.to-string.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.isArray=void 0,Ie.isArray=function(ge){return Object.prototype.toString.call(ge)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(ie,_e,Ie){"use strict";Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.isBlob=void 0;function ge(ce){return typeof Blob!="undefined"&&ce instanceof Blob}Ie.isBlob=ge},{}],65:[function(ie,_e,Ie){(function(ge){(function(){"use strict";Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.isBuffer=void 0;function ce(Pe){return ge.isBuffer(Pe)}Ie.isBuffer=ce}).call(this)}).call(this,{isBuffer:ie("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(ie,_e,Ie){(function(ge){(function(){"use strict";ie("core-js/modules/es.array.includes.js"),ie("core-js/modules/es.string.includes.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.isDingTalk=void 0;function ce(){return!!(ge.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}Ie.isDingTalk=ce}).call(this)}).call(this,ie("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(ie,_e,Ie){"use strict";Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.isFile=void 0,Ie.isFile=function(ge){return typeof File!="undefined"&&ge instanceof File}},{}],68:[function(ie,_e,Ie){"use strict";Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.isFunction=void 0,Ie.isFunction=function(ge){return typeof ge=="function"}},{}],69:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.isIP=void 0,Ie.isIP=function(ge){var ce=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,Pe=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return ce.test(ge)||Pe.test(ge)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.object.to-string.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.isObject=void 0,Ie.isObject=function(ge){return Object.prototype.toString.call(ge)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.lowercaseKeyHeader=void 0;var ge=ie("./isObject");function ce(Pe){var Ee={};return ge.isObject(Pe)&&Object.keys(Pe).forEach(function(ye){Ee[ye.toLowerCase()]=Pe[ye]}),Ee}Ie.lowercaseKeyHeader=ce},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.replace.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js"),ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.array.join.js"),ie("core-js/modules/es.array.map.js"),ie("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.obj2xml=void 0;var ge=ie("./formatObjKey");function ce(Ee){return Object.prototype.toString.call(Ee).replace(/(.*? |])/g,"").toLowerCase()}function Pe(Ee,ye){var Me="";return ye&&ye.headers&&(Me=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),ye&&ye.firstUpperCase&&(Ee=ge.formatObjKey(Ee,"firstUpperCase")),ce(Ee)==="object"?Object.keys(Ee).forEach(function(ve){ce(Ee[ve])!=="undefined"&&ce(Ee[ve])!=="null"&&(ce(Ee[ve])==="string"||ce(Ee[ve])==="number"?Me+="<".concat(ve,">").concat(Ee[ve],"</").concat(ve,">"):ce(Ee[ve])==="object"?Me+="<".concat(ve,">").concat(Pe(Ee[ve]),"</").concat(ve,">"):ce(Ee[ve])==="array"?Me+=Ee[ve].map(function(xe){return"<".concat(ve,">").concat(Pe(xe),"</").concat(ve,">")}).join(""):Me+="<".concat(ve,">").concat(Ee[ve].toString(),"</").concat(ve,">"))}):Me+=Ee.toString(),Me}Ie.obj2xml=Pe},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.array.slice.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.function.name.js"),ie("core-js/modules/es.array.from.js"),ie("core-js/modules/es.string.iterator.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.symbol.js"),ie("core-js/modules/es.symbol.description.js"),ie("core-js/modules/es.symbol.iterator.js"),ie("core-js/modules/es.array.iterator.js"),ie("core-js/modules/web.dom-collections.iterator.js"),ie("core-js/modules/es.object.assign.js");function ge(ye,Me){var ve=typeof Symbol!="undefined"&&ye[Symbol.iterator]||ye["@@iterator"];if(!ve){if(Array.isArray(ye)||(ve=ce(ye))||Me&&ye&&typeof ye.length=="number"){ve&&(ye=ve);var xe=0,fe=function(){};return{s:fe,n:function(){return xe>=ye.length?{done:!0}:{done:!1,value:ye[xe++]}},e:function(le){throw le},f:fe}}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 z=!0,ee=!1,ae;return{s:function(){ve=ve.call(ye)},n:function(){var le=ve.next();return z=le.done,le},e:function(le){ee=!0,ae=le},f:function(){try{!z&&ve.return!=null&&ve.return()}finally{if(ee)throw ae}}}}function ce(ye,Me){if(ye){if(typeof ye=="string")return Pe(ye,Me);var ve=Object.prototype.toString.call(ye).slice(8,-1);if(ve==="Object"&&ye.constructor&&(ve=ye.constructor.name),ve==="Map"||ve==="Set")return Array.from(ye);if(ve==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ve))return Pe(ye,Me)}}function Pe(ye,Me){(Me==null||Me>ye.length)&&(Me=ye.length);for(var ve=0,xe=new Array(Me);ve<Me;ve++)xe[ve]=ye[ve];return xe}Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.omit=void 0;function Ee(ye,Me){var ve=Object.assign({},ye),xe=ge(Me),fe;try{for(xe.s();!(fe=xe.n()).done;){var z=fe.value;delete ve[z]}}catch(ee){xe.e(ee)}finally{xe.f()}return ve}Ie.omit=Ee},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.promise.js"),Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.retry=void 0;function ge(ce,Pe){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ye=0,Me=Ee.retryDelay,ve=Me===void 0?500:Me,xe=Ee.errorHandler,fe=xe===void 0?function(){return!0}:xe,z=function ee(){for(var ae=arguments.length,re=new Array(ae),le=0;le<ae;le++)re[le]=arguments[le];return new Promise(function(ue,pe){ce.apply(void 0,re).then(function(Te){ye=0,ue(Te)}).catch(function(Te){ye<Pe&&fe(Te)?(ye++,setTimeout(function(){ue(ee.apply(void 0,re))},ve)):(ye=0,pe(Te))})})};return z}Ie.retry=ge},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(ie,_e,Ie){"use strict";var ge=function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.setRegion=void 0;var ce=ge(ie("url")),Pe=ie("./checkConfigValid");function Ee(ye){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Pe.checkConfigValid(ye,"region");var xe=ve?"https://":"http://",fe=Me?"-internal.aliyuncs.com":".aliyuncs.com",z="vpc100-oss-cn-";return ye.substr(0,z.length)===z&&(fe=".aliyuncs.com"),ce.default.parse(xe+ye+fe)}Ie.setRegion=Ee},{"./checkConfigValid":52,url:472}],76:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/regenerator"));ie("core-js/modules/es.object.keys.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.array.find.js"),ie("core-js/modules/es.object.assign.js");var Pe=ge(ie("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkCredentials=Ie.setSTSToken=void 0;var Ee=ie("./formatObjKey");function ye(){return Me.apply(this,arguments)}function Me(){return Me=(0,Pe.default)(ce.default.mark(function xe(){var fe,z;return ce.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(this.options||(this.options={}),fe=new Date,!this.stsTokenFreshTime){ae.next=14;break}if(!(+fe-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){ae.next=12;break}return this.stsTokenFreshTime=fe,ae.next=7,this.options.refreshSTSToken();case 7:z=ae.sent,z=Ee.formatObjKey(z,"firstLowerCase"),z.securityToken&&(z.stsToken=z.securityToken),ve(z),Object.assign(this.options,z);case 12:ae.next=15;break;case 14:this.stsTokenFreshTime=fe;case 15:return ae.abrupt("return",null);case 16:case"end":return ae.stop()}},xe,this)})),Me.apply(this,arguments)}Ie.setSTSToken=ye;function ve(xe){var fe=["accessKeySecret","accessKeyId","stsToken"],z=Object.keys(xe);fe.forEach(function(ee){if(!z.find(function(ae){return ae===ee}))throw Error("refreshSTSToken must return contains ".concat(ee))})}Ie.checkCredentials=ve},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(ie,_e,Ie){function ge(Pe,Ee,ye,Me,ve,xe,fe){try{var z=Pe[xe](fe),ee=z.value}catch(ae){ye(ae);return}z.done?Ee(ee):Promise.resolve(ee).then(Me,ve)}function ce(Pe){return function(){var Ee=this,ye=arguments;return new Promise(function(Me,ve){var xe=Pe.apply(Ee,ye);function fe(ee){ge(xe,Me,ve,fe,z,"next",ee)}function z(ee){ge(xe,Me,ve,fe,z,"throw",ee)}fe(void 0)})}}_e.exports=ce,_e.exports.__esModule=!0,_e.exports.default=_e.exports},{}],78:[function(ie,_e,Ie){function ge(ce){return ce&&ce.__esModule?ce:{default:ce}}_e.exports=ge,_e.exports.__esModule=!0,_e.exports.default=_e.exports},{}],79:[function(ie,_e,Ie){function ge(ce){"@babel/helpers - typeof";return _e.exports=ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Pe){return typeof Pe}:function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},_e.exports.__esModule=!0,_e.exports.default=_e.exports,ge(ce)}_e.exports=ge,_e.exports.__esModule=!0,_e.exports.default=_e.exports},{}],80:[function(ie,_e,Ie){_e.exports=ie("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(ie,_e,Ie){_e.exports=ge,_e.exports.HttpsAgent=ge;function ge(){}},{}],82:[function(ie,_e,Ie){(function(ge){(function(){"use strict";var ce=ie("object-assign");function Pe(at,ut){if(at===ut)return 0;for(var ht=at.length,Ct=ut.length,et=0,it=Math.min(ht,Ct);et<it;++et)if(at[et]!==ut[et]){ht=at[et],Ct=ut[et];break}return ht<Ct?-1:Ct<ht?1:0}function Ee(at){return ge.Buffer&&typeof ge.Buffer.isBuffer=="function"?ge.Buffer.isBuffer(at):!!(at!=null&&at._isBuffer)}var ye=ie("util/"),Me=Object.prototype.hasOwnProperty,ve=Array.prototype.slice,xe=function(){return function(){}.name==="foo"}();function fe(at){return Object.prototype.toString.call(at)}function z(at){return Ee(at)||typeof ge.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(at):at?!!(at instanceof DataView||at.buffer&&at.buffer instanceof ArrayBuffer):!1}var ee=_e.exports=Ce,ae=/\s*function\s+([^\(\s]*)\s*/;function re(at){if(ye.isFunction(at)){if(xe)return at.name;var ut=at.toString(),ht=ut.match(ae);return ht&&ht[1]}}ee.AssertionError=function(ut){this.name="AssertionError",this.actual=ut.actual,this.expected=ut.expected,this.operator=ut.operator,ut.message?(this.message=ut.message,this.generatedMessage=!1):(this.message=pe(this),this.generatedMessage=!0);var ht=ut.stackStartFunction||Te;if(Error.captureStackTrace)Error.captureStackTrace(this,ht);else{var Ct=new Error;if(Ct.stack){var et=Ct.stack,it=re(ht),St=et.indexOf(`
|
|
|
`+it);if(St>=0){var bt=et.indexOf(`
|
|
|
`,St+1);et=et.substring(bt+1)}this.stack=et}}},ye.inherits(ee.AssertionError,Error);function le(at,ut){return typeof at=="string"?at.length<ut?at:at.slice(0,ut):at}function ue(at){if(xe||!ye.isFunction(at))return ye.inspect(at);var ut=re(at),ht=ut?": "+ut:"";return"[Function"+ht+"]"}function pe(at){return le(ue(at.actual),128)+" "+at.operator+" "+le(ue(at.expected),128)}function Te(at,ut,ht,Ct,et){throw new ee.AssertionError({message:ht,actual:at,expected:ut,operator:Ct,stackStartFunction:et})}ee.fail=Te;function Ce(at,ut){at||Te(at,!0,ut,"==",ee.ok)}ee.ok=Ce,ee.equal=function(ut,ht,Ct){ut!=ht&&Te(ut,ht,Ct,"==",ee.equal)},ee.notEqual=function(ut,ht,Ct){ut==ht&&Te(ut,ht,Ct,"!=",ee.notEqual)},ee.deepEqual=function(ut,ht,Ct){Fe(ut,ht,!1)||Te(ut,ht,Ct,"deepEqual",ee.deepEqual)},ee.deepStrictEqual=function(ut,ht,Ct){Fe(ut,ht,!0)||Te(ut,ht,Ct,"deepStrictEqual",ee.deepStrictEqual)};function Fe(at,ut,ht,Ct){if(at===ut)return!0;if(Ee(at)&&Ee(ut))return Pe(at,ut)===0;if(ye.isDate(at)&&ye.isDate(ut))return at.getTime()===ut.getTime();if(ye.isRegExp(at)&&ye.isRegExp(ut))return at.source===ut.source&&at.global===ut.global&&at.multiline===ut.multiline&&at.lastIndex===ut.lastIndex&&at.ignoreCase===ut.ignoreCase;if((at===null||typeof at!="object")&&(ut===null||typeof ut!="object"))return ht?at===ut:at==ut;if(z(at)&&z(ut)&&fe(at)===fe(ut)&&!(at instanceof Float32Array||at instanceof Float64Array))return Pe(new Uint8Array(at.buffer),new Uint8Array(ut.buffer))===0;if(Ee(at)!==Ee(ut))return!1;Ct=Ct||{actual:[],expected:[]};var et=Ct.actual.indexOf(at);return et!==-1&&et===Ct.expected.indexOf(ut)?!0:(Ct.actual.push(at),Ct.expected.push(ut),je(at,ut,ht,Ct))}function Ae(at){return Object.prototype.toString.call(at)=="[object Arguments]"}function je(at,ut,ht,Ct){if(at==null||ut===null||ut===void 0)return!1;if(ye.isPrimitive(at)||ye.isPrimitive(ut))return at===ut;if(ht&&Object.getPrototypeOf(at)!==Object.getPrototypeOf(ut))return!1;var et=Ae(at),it=Ae(ut);if(et&&!it||!et&&it)return!1;if(et)return at=ve.call(at),ut=ve.call(ut),Fe(at,ut,ht);var St=Ye(at),bt=Ye(ut),Pt,gt;if(St.length!==bt.length)return!1;for(St.sort(),bt.sort(),gt=St.length-1;gt>=0;gt--)if(St[gt]!==bt[gt])return!1;for(gt=St.length-1;gt>=0;gt--)if(Pt=St[gt],!Fe(at[Pt],ut[Pt],ht,Ct))return!1;return!0}ee.notDeepEqual=function(ut,ht,Ct){Fe(ut,ht,!1)&&Te(ut,ht,Ct,"notDeepEqual",ee.notDeepEqual)},ee.notDeepStrictEqual=Ne;function Ne(at,ut,ht){Fe(at,ut,!0)&&Te(at,ut,ht,"notDeepStrictEqual",Ne)}ee.strictEqual=function(ut,ht,Ct){ut!==ht&&Te(ut,ht,Ct,"===",ee.strictEqual)},ee.notStrictEqual=function(ut,ht,Ct){ut===ht&&Te(ut,ht,Ct,"!==",ee.notStrictEqual)};function Be(at,ut){if(!at||!ut)return!1;if(Object.prototype.toString.call(ut)=="[object RegExp]")return ut.test(at);try{if(at instanceof ut)return!0}catch(ht){}return Error.isPrototypeOf(ut)?!1:ut.call({},at)===!0}function ze(at){var ut;try{at()}catch(ht){ut=ht}return ut}function Qe(at,ut,ht,Ct){var et;if(typeof ut!="function")throw new TypeError('"block" argument must be a function');typeof ht=="string"&&(Ct=ht,ht=null),et=ze(ut),Ct=(ht&&ht.name?" ("+ht.name+").":".")+(Ct?" "+Ct:"."),at&&!et&&Te(et,ht,"Missing expected exception"+Ct);var it=typeof Ct=="string",St=!at&&ye.isError(et),bt=!at&&et&&!ht;if((St&&it&&Be(et,ht)||bt)&&Te(et,ht,"Got unwanted exception"+Ct),at&&et&&ht&&!Be(et,ht)||!at&&et)throw et}ee.throws=function(at,ut,ht){Qe(!0,at,ut,ht)},ee.doesNotThrow=function(at,ut,ht){Qe(!1,at,ut,ht)},ee.ifError=function(at){if(at)throw at};function $e(at,ut){at||Te(at,!0,ut,"==",$e)}ee.strict=ce($e,ee,{equal:ee.strictEqual,deepEqual:ee.deepStrictEqual,notEqual:ee.notStrictEqual,notDeepEqual:ee.notDeepStrictEqual}),ee.strict.strict=ee.strict;var Ye=Object.keys||function(at){var ut=[];for(var ht in at)Me.call(at,ht)&&ut.push(ht);return ut}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(ie,_e,Ie){typeof Object.create=="function"?_e.exports=function(ce,Pe){ce.super_=Pe,ce.prototype=Object.create(Pe.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}})}:_e.exports=function(ce,Pe){ce.super_=Pe;var Ee=function(){};Ee.prototype=Pe.prototype,ce.prototype=new Ee,ce.prototype.constructor=ce}},{}],84:[function(ie,_e,Ie){_e.exports=function(ce){return ce&&typeof ce=="object"&&typeof ce.copy=="function"&&typeof ce.fill=="function"&&typeof ce.readUInt8=="function"}},{}],85:[function(ie,_e,Ie){(function(ge,ce){(function(){var Pe=/%[sdj%]/g;Ie.format=function(bt){if(!je(bt)){for(var Pt=[],gt=0;gt<arguments.length;gt++)Pt.push(Me(arguments[gt]));return Pt.join(" ")}for(var gt=1,dt=arguments,mt=dt.length,kt=String(bt).replace(Pe,function(Ut){if(Ut==="%%")return"%";if(gt>=mt)return Ut;switch(Ut){case"%s":return String(dt[gt++]);case"%d":return Number(dt[gt++]);case"%j":try{return JSON.stringify(dt[gt++])}catch(wt){return"[Circular]"}default:return Ut}}),Et=dt[gt];gt<mt;Et=dt[++gt])Ce(Et)||!Qe(Et)?kt+=" "+Et:kt+=" "+Me(Et);return kt},Ie.deprecate=function(bt,Pt){if(Be(ce.process))return function(){return Ie.deprecate(bt,Pt).apply(this,arguments)};if(ge.noDeprecation===!0)return bt;var gt=!1;function dt(){if(!gt){if(ge.throwDeprecation)throw new Error(Pt);ge.traceDeprecation?console.trace(Pt):console.error(Pt),gt=!0}return bt.apply(this,arguments)}return dt};var Ee={},ye;Ie.debuglog=function(bt){if(Be(ye)&&(ye=ge.env.NODE_DEBUG||""),bt=bt.toUpperCase(),!Ee[bt])if(new RegExp("\\b"+bt+"\\b","i").test(ye)){var Pt=ge.pid;Ee[bt]=function(){var gt=Ie.format.apply(Ie,arguments);console.error("%s %d: %s",bt,Pt,gt)}}else Ee[bt]=function(){};return Ee[bt]};function Me(bt,Pt){var gt={seen:[],stylize:xe};return arguments.length>=3&&(gt.depth=arguments[2]),arguments.length>=4&&(gt.colors=arguments[3]),Te(Pt)?gt.showHidden=Pt:Pt&&Ie._extend(gt,Pt),Be(gt.showHidden)&&(gt.showHidden=!1),Be(gt.depth)&&(gt.depth=2),Be(gt.colors)&&(gt.colors=!1),Be(gt.customInspect)&&(gt.customInspect=!0),gt.colors&&(gt.stylize=ve),z(gt,bt,gt.depth)}Ie.inspect=Me,Me.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Me.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ve(bt,Pt){var gt=Me.styles[Pt];return gt?"\x1B["+Me.colors[gt][0]+"m"+bt+"\x1B["+Me.colors[gt][1]+"m":bt}function xe(bt,Pt){return bt}function fe(bt){var Pt={};return bt.forEach(function(gt,dt){Pt[gt]=!0}),Pt}function z(bt,Pt,gt){if(bt.customInspect&&Pt&&at(Pt.inspect)&&Pt.inspect!==Ie.inspect&&!(Pt.constructor&&Pt.constructor.prototype===Pt)){var dt=Pt.inspect(gt,bt);return je(dt)||(dt=z(bt,dt,gt)),dt}var mt=ee(bt,Pt);if(mt)return mt;var kt=Object.keys(Pt),Et=fe(kt);if(bt.showHidden&&(kt=Object.getOwnPropertyNames(Pt)),Ye(Pt)&&(kt.indexOf("message")>=0||kt.indexOf("description")>=0))return ae(Pt);if(kt.length===0){if(at(Pt)){var Ut=Pt.name?": "+Pt.name:"";return bt.stylize("[Function"+Ut+"]","special")}if(ze(Pt))return bt.stylize(RegExp.prototype.toString.call(Pt),"regexp");if($e(Pt))return bt.stylize(Date.prototype.toString.call(Pt),"date");if(Ye(Pt))return ae(Pt)}var wt="",pt=!1,tt=["{","}"];if(pe(Pt)&&(pt=!0,tt=["[","]"]),at(Pt)){var Ze=Pt.name?": "+Pt.name:"";wt=" [Function"+Ze+"]"}if(ze(Pt)&&(wt=" "+RegExp.prototype.toString.call(Pt)),$e(Pt)&&(wt=" "+Date.prototype.toUTCString.call(Pt)),Ye(Pt)&&(wt=" "+ae(Pt)),kt.length===0&&(!pt||Pt.length==0))return tt[0]+wt+tt[1];if(gt<0)return ze(Pt)?bt.stylize(RegExp.prototype.toString.call(Pt),"regexp"):bt.stylize("[Object]","special");bt.seen.push(Pt);var we;return pt?we=re(bt,Pt,gt,Et,kt):we=kt.map(function(be){return le(bt,Pt,gt,Et,be,pt)}),bt.seen.pop(),ue(we,wt,tt)}function ee(bt,Pt){if(Be(Pt))return bt.stylize("undefined","undefined");if(je(Pt)){var gt="'"+JSON.stringify(Pt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return bt.stylize(gt,"string")}if(Ae(Pt))return bt.stylize(""+Pt,"number");if(Te(Pt))return bt.stylize(""+Pt,"boolean");if(Ce(Pt))return bt.stylize("null","null")}function ae(bt){return"["+Error.prototype.toString.call(bt)+"]"}function re(bt,Pt,gt,dt,mt){for(var kt=[],Et=0,Ut=Pt.length;Et<Ut;++Et)St(Pt,String(Et))?kt.push(le(bt,Pt,gt,dt,String(Et),!0)):kt.push("");return mt.forEach(function(wt){wt.match(/^\d+$/)||kt.push(le(bt,Pt,gt,dt,wt,!0))}),kt}function le(bt,Pt,gt,dt,mt,kt){var Et,Ut,wt;if(wt=Object.getOwnPropertyDescriptor(Pt,mt)||{value:Pt[mt]},wt.get?wt.set?Ut=bt.stylize("[Getter/Setter]","special"):Ut=bt.stylize("[Getter]","special"):wt.set&&(Ut=bt.stylize("[Setter]","special")),St(dt,mt)||(Et="["+mt+"]"),Ut||(bt.seen.indexOf(wt.value)<0?(Ce(gt)?Ut=z(bt,wt.value,null):Ut=z(bt,wt.value,gt-1),Ut.indexOf(`
|
|
|
`)>-1&&(kt?Ut=Ut.split(`
|
|
|
`).map(function(pt){return" "+pt}).join(`
|
|
|
`).substr(2):Ut=`
|
|
|
`+Ut.split(`
|
|
|
`).map(function(pt){return" "+pt}).join(`
|
|
|
`))):Ut=bt.stylize("[Circular]","special")),Be(Et)){if(kt&&mt.match(/^\d+$/))return Ut;Et=JSON.stringify(""+mt),Et.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Et=Et.substr(1,Et.length-2),Et=bt.stylize(Et,"name")):(Et=Et.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Et=bt.stylize(Et,"string"))}return Et+": "+Ut}function ue(bt,Pt,gt){var dt=0,mt=bt.reduce(function(kt,Et){return dt++,Et.indexOf(`
|
|
|
`)>=0&&dt++,kt+Et.replace(/\u001b\[\d\d?m/g,"").length+1},0);return mt>60?gt[0]+(Pt===""?"":Pt+`
|
|
|
`)+" "+bt.join(`,
|
|
|
`)+" "+gt[1]:gt[0]+Pt+" "+bt.join(", ")+" "+gt[1]}function pe(bt){return Array.isArray(bt)}Ie.isArray=pe;function Te(bt){return typeof bt=="boolean"}Ie.isBoolean=Te;function Ce(bt){return bt===null}Ie.isNull=Ce;function Fe(bt){return bt==null}Ie.isNullOrUndefined=Fe;function Ae(bt){return typeof bt=="number"}Ie.isNumber=Ae;function je(bt){return typeof bt=="string"}Ie.isString=je;function Ne(bt){return typeof bt=="symbol"}Ie.isSymbol=Ne;function Be(bt){return bt===void 0}Ie.isUndefined=Be;function ze(bt){return Qe(bt)&&ht(bt)==="[object RegExp]"}Ie.isRegExp=ze;function Qe(bt){return typeof bt=="object"&&bt!==null}Ie.isObject=Qe;function $e(bt){return Qe(bt)&&ht(bt)==="[object Date]"}Ie.isDate=$e;function Ye(bt){return Qe(bt)&&(ht(bt)==="[object Error]"||bt instanceof Error)}Ie.isError=Ye;function at(bt){return typeof bt=="function"}Ie.isFunction=at;function ut(bt){return bt===null||typeof bt=="boolean"||typeof bt=="number"||typeof bt=="string"||typeof bt=="symbol"||typeof bt=="undefined"}Ie.isPrimitive=ut,Ie.isBuffer=ie("./support/isBuffer");function ht(bt){return Object.prototype.toString.call(bt)}function Ct(bt){return bt<10?"0"+bt.toString(10):bt.toString(10)}var et=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function it(){var bt=new Date,Pt=[Ct(bt.getHours()),Ct(bt.getMinutes()),Ct(bt.getSeconds())].join(":");return[bt.getDate(),et[bt.getMonth()],Pt].join(" ")}Ie.log=function(){console.log("%s - %s",it(),Ie.format.apply(Ie,arguments))},Ie.inherits=ie("inherits"),Ie._extend=function(bt,Pt){if(!Pt||!Qe(Pt))return bt;for(var gt=Object.keys(Pt),dt=gt.length;dt--;)bt[gt[dt]]=Pt[gt[dt]];return bt};function St(bt,Pt){return Object.prototype.hasOwnProperty.call(bt,Pt)}}).call(this)}).call(this,ie("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(ie,_e,Ie){(function(ge){(function(){"use strict";var ce=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Pe=typeof globalThis=="undefined"?ge:globalThis;_e.exports=function(){for(var ye=[],Me=0;Me<ce.length;Me++)typeof Pe[ce[Me]]=="function"&&(ye[ye.length]=ce[Me]);return ye}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(ie,_e,Ie){"use strict";Ie.byteLength=xe,Ie.toByteArray=z,Ie.fromByteArray=re;for(var ge=[],ce=[],Pe=typeof Uint8Array!="undefined"?Uint8Array:Array,Ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye=0,Me=Ee.length;ye<Me;++ye)ge[ye]=Ee[ye],ce[Ee.charCodeAt(ye)]=ye;ce[45]=62,ce[95]=63;function ve(le){var ue=le.length;if(ue%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var pe=le.indexOf("=");pe===-1&&(pe=ue);var Te=pe===ue?0:4-pe%4;return[pe,Te]}function xe(le){var ue=ve(le),pe=ue[0],Te=ue[1];return(pe+Te)*3/4-Te}function fe(le,ue,pe){return(ue+pe)*3/4-pe}function z(le){var ue,pe=ve(le),Te=pe[0],Ce=pe[1],Fe=new Pe(fe(le,Te,Ce)),Ae=0,je=Ce>0?Te-4:Te,Ne;for(Ne=0;Ne<je;Ne+=4)ue=ce[le.charCodeAt(Ne)]<<18|ce[le.charCodeAt(Ne+1)]<<12|ce[le.charCodeAt(Ne+2)]<<6|ce[le.charCodeAt(Ne+3)],Fe[Ae++]=ue>>16&255,Fe[Ae++]=ue>>8&255,Fe[Ae++]=ue&255;return Ce===2&&(ue=ce[le.charCodeAt(Ne)]<<2|ce[le.charCodeAt(Ne+1)]>>4,Fe[Ae++]=ue&255),Ce===1&&(ue=ce[le.charCodeAt(Ne)]<<10|ce[le.charCodeAt(Ne+1)]<<4|ce[le.charCodeAt(Ne+2)]>>2,Fe[Ae++]=ue>>8&255,Fe[Ae++]=ue&255),Fe}function ee(le){return ge[le>>18&63]+ge[le>>12&63]+ge[le>>6&63]+ge[le&63]}function ae(le,ue,pe){for(var Te,Ce=[],Fe=ue;Fe<pe;Fe+=3)Te=(le[Fe]<<16&16711680)+(le[Fe+1]<<8&65280)+(le[Fe+2]&255),Ce.push(ee(Te));return Ce.join("")}function re(le){for(var ue,pe=le.length,Te=pe%3,Ce=[],Fe=16383,Ae=0,je=pe-Te;Ae<je;Ae+=Fe)Ce.push(ae(le,Ae,Ae+Fe>je?je:Ae+Fe));return Te===1?(ue=le[pe-1],Ce.push(ge[ue>>2]+ge[ue<<4&63]+"==")):Te===2&&(ue=(le[pe-2]<<8)+le[pe-1],Ce.push(ge[ue>>10]+ge[ue>>4&63]+ge[ue<<2&63]+"=")),Ce.join("")}},{}],88:[function(ie,_e,Ie){(function(ge,ce,Pe){typeof _e!="undefined"&&_e.exports?_e.exports=Pe():typeof Ge=="function"&&Ge.amd?Ge(ce,Pe):ge[ce]=Pe()})(this,"bowser",function(){var ge=!0;function ce(fe){function z(Pt){var gt=fe.match(Pt);return gt&>.length>1&>[1]||""}function ee(Pt){var gt=fe.match(Pt);return gt&>.length>1&>[2]||""}var ae=z(/(ipod|iphone|ipad)/i).toLowerCase(),re=/like android/i.test(fe),le=!re&&/android/i.test(fe),ue=/nexus\s*[0-6]\s*/i.test(fe),pe=!ue&&/nexus\s*[0-9]+/i.test(fe),Te=/CrOS/.test(fe),Ce=/silk/i.test(fe),Fe=/sailfish/i.test(fe),Ae=/tizen/i.test(fe),je=/(web|hpw)(o|0)s/i.test(fe),Ne=/windows phone/i.test(fe),Be=/SamsungBrowser/i.test(fe),ze=!Ne&&/windows/i.test(fe),Qe=!ae&&!Ce&&/macintosh/i.test(fe),$e=!le&&!Fe&&!Ae&&!je&&/linux/i.test(fe),Ye=ee(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),at=z(/version\/(\d+(\.\d+)?)/i),ut=/tablet/i.test(fe)&&!/tablet pc/i.test(fe),ht=!ut&&/[^-]mobi/i.test(fe),Ct=/xbox/i.test(fe),et;/opera/i.test(fe)?et={name:"Opera",opera:ge,version:at||z(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(fe)?et={name:"Opera",opera:ge,version:z(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||at}:/SamsungBrowser/i.test(fe)?et={name:"Samsung Internet for Android",samsungBrowser:ge,version:at||z(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(fe)?et={name:"NAVER Whale browser",whale:ge,version:z(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(fe)?et={name:"MZ Browser",mzbrowser:ge,version:z(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(fe)?et={name:"Opera Coast",coast:ge,version:at||z(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(fe)?et={name:"Focus",focus:ge,version:z(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(fe)?et={name:"Yandex Browser",yandexbrowser:ge,version:at||z(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(fe)?et={name:"UC Browser",ucbrowser:ge,version:z(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(fe)?et={name:"Maxthon",maxthon:ge,version:z(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(fe)?et={name:"Epiphany",epiphany:ge,version:z(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(fe)?et={name:"Puffin",puffin:ge,version:z(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(fe)?et={name:"Sleipnir",sleipnir:ge,version:z(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(fe)?et={name:"K-Meleon",kMeleon:ge,version:z(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ne?(et={name:"Windows Phone",osname:"Windows Phone",windowsphone:ge},Ye?(et.msedge=ge,et.version=Ye):(et.msie=ge,et.version=z(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(fe)?et={name:"Internet Explorer",msie:ge,version:z(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Te?et={name:"Chrome",osname:"Chrome OS",chromeos:ge,chromeBook:ge,chrome:ge,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(fe)?et={name:"Microsoft Edge",msedge:ge,version:Ye}:/vivaldi/i.test(fe)?et={name:"Vivaldi",vivaldi:ge,version:z(/vivaldi\/(\d+(\.\d+)?)/i)||at}:Fe?et={name:"Sailfish",osname:"Sailfish OS",sailfish:ge,version:z(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(fe)?et={name:"SeaMonkey",seamonkey:ge,version:z(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(fe)?(et={name:"Firefox",firefox:ge,version:z(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(fe)&&(et.firefoxos=ge,et.osname="Firefox OS")):Ce?et={name:"Amazon Silk",silk:ge,version:z(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(fe)?et={name:"PhantomJS",phantom:ge,version:z(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(fe)?et={name:"SlimerJS",slimer:ge,version:z(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(fe)||/rim\stablet/i.test(fe)?et={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ge,version:at||z(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:je?(et={name:"WebOS",osname:"WebOS",webos:ge,version:at||z(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(fe)&&(et.touchpad=ge)):/bada/i.test(fe)?et={name:"Bada",osname:"Bada",bada:ge,version:z(/dolfin\/(\d+(\.\d+)?)/i)}:Ae?et={name:"Tizen",osname:"Tizen",tizen:ge,version:z(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||at}:/qupzilla/i.test(fe)?et={name:"QupZilla",qupzilla:ge,version:z(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||at}:/chromium/i.test(fe)?et={name:"Chromium",chromium:ge,version:z(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||at}:/chrome|crios|crmo/i.test(fe)?et={name:"Chrome",chrome:ge,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:le?et={name:"Android",version:at}:/safari|applewebkit/i.test(fe)?(et={name:"Safari",safari:ge},at&&(et.version=at)):ae?(et={name:ae=="iphone"?"iPhone":ae=="ipad"?"iPad":"iPod"},at&&(et.version=at)):/googlebot/i.test(fe)?et={name:"Googlebot",googlebot:ge,version:z(/googlebot\/(\d+(\.\d+))/i)||at}:et={name:z(/^(.*)\/(.*) /),version:ee(/^(.*)\/(.*) /)},!et.msedge&&/(apple)?webkit/i.test(fe)?(/(apple)?webkit\/537\.36/i.test(fe)?(et.name=et.name||"Blink",et.blink=ge):(et.name=et.name||"Webkit",et.webkit=ge),!et.version&&at&&(et.version=at)):!et.opera&&/gecko\//i.test(fe)&&(et.name=et.name||"Gecko",et.gecko=ge,et.version=et.version||z(/gecko\/(\d+(\.\d+)?)/i)),!et.windowsphone&&(le||et.silk)?(et.android=ge,et.osname="Android"):!et.windowsphone&&ae?(et[ae]=ge,et.ios=ge,et.osname="iOS"):Qe?(et.mac=ge,et.osname="macOS"):Ct?(et.xbox=ge,et.osname="Xbox"):ze?(et.windows=ge,et.osname="Windows"):$e&&(et.linux=ge,et.osname="Linux");function it(Pt){switch(Pt){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var St="";et.windows?St=it(z(/Windows ((NT|XP)( \d\d?.\d)?)/i)):et.windowsphone?St=z(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):et.mac?(St=z(/Mac OS X (\d+([_\.\s]\d+)*)/i),St=St.replace(/[_\s]/g,".")):ae?(St=z(/os (\d+([_\s]\d+)*) like mac os x/i),St=St.replace(/[_\s]/g,".")):le?St=z(/android[ \/-](\d+(\.\d+)*)/i):et.webos?St=z(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):et.blackberry?St=z(/rim\stablet\sos\s(\d+(\.\d+)*)/i):et.bada?St=z(/bada\/(\d+(\.\d+)*)/i):et.tizen&&(St=z(/tizen[\/\s](\d+(\.\d+)*)/i)),St&&(et.osversion=St);var bt=!et.windows&&St.split(".")[0];return ut||pe||ae=="ipad"||le&&(bt==3||bt>=4&&!ht)||et.silk?et.tablet=ge:(ht||ae=="iphone"||ae=="ipod"||le||ue||et.blackberry||et.webos||et.bada)&&(et.mobile=ge),et.msedge||et.msie&&et.version>=10||et.yandexbrowser&&et.version>=15||et.vivaldi&&et.version>=1||et.chrome&&et.version>=20||et.samsungBrowser&&et.version>=4||et.whale&&Me([et.version,"1.0"])===1||et.mzbrowser&&Me([et.version,"6.0"])===1||et.focus&&Me([et.version,"1.0"])===1||et.firefox&&et.version>=20||et.safari&&et.version>=6||et.opera&&et.version>=10||et.ios&&et.osversion&&et.osversion.split(".")[0]>=6||et.blackberry&&et.version>=10.1||et.chromium&&et.version>=20?et.a=ge:et.msie&&et.version<10||et.chrome&&et.version<20||et.firefox&&et.version<20||et.safari&&et.version<6||et.opera&&et.version<10||et.ios&&et.osversion&&et.osversion.split(".")[0]<6||et.chromium&&et.version<20?et.c=ge:et.x=ge,et}var Pe=ce(typeof navigator!="undefined"&&navigator.userAgent||"");Pe.test=function(fe){for(var z=0;z<fe.length;++z){var ee=fe[z];if(typeof ee=="string"&&ee in Pe)return!0}return!1};function Ee(fe){return fe.split(".").length}function ye(fe,z){var ee=[],ae;if(Array.prototype.map)return Array.prototype.map.call(fe,z);for(ae=0;ae<fe.length;ae++)ee.push(z(fe[ae]));return ee}function Me(fe){for(var z=Math.max(Ee(fe[0]),Ee(fe[1])),ee=ye(fe,function(ae){var re=z-Ee(ae);return ae=ae+new Array(re+1).join(".0"),ye(ae.split("."),function(le){return new Array(20-le.length).join("0")+le}).reverse()});--z>=0;){if(ee[0][z]>ee[1][z])return 1;if(ee[0][z]===ee[1][z]){if(z===0)return 0}else return-1}}function ve(fe,z,ee){var ae=Pe;typeof z=="string"&&(ee=z,z=void 0),z===void 0&&(z=!1),ee&&(ae=ce(ee));var re=""+ae.version;for(var le in fe)if(fe.hasOwnProperty(le)&&ae[le]){if(typeof fe[le]!="string")throw new Error("Browser version in the minVersion map should be a string: "+le+": "+String(fe));return Me([re,fe[le]])<0}return z}function xe(fe,z,ee){return!ve(fe,z,ee)}return Pe.isUnsupportedBrowser=ve,Pe.compareVersions=Me,Pe.check=xe,Pe._detect=ce,Pe.detect=ce,Pe})},{}],89:[function(ie,_e,Ie){},{}],90:[function(ie,_e,Ie){(function(ge){(function(){"use strict";var ce=ie("base64-js"),Pe=ie("ieee754");Ie.Buffer=ve,Ie.SlowBuffer=Te,Ie.INSPECT_MAX_BYTES=50;var Ee=2147483647;Ie.kMaxLength=Ee,ve.TYPED_ARRAY_SUPPORT=ye(),!ve.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ye(){try{var Ue=new Uint8Array(1);return Ue.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ue.foo()===42}catch(He){return!1}}Object.defineProperty(ve.prototype,"parent",{enumerable:!0,get:function(){if(ve.isBuffer(this))return this.buffer}}),Object.defineProperty(ve.prototype,"offset",{enumerable:!0,get:function(){if(ve.isBuffer(this))return this.byteOffset}});function Me(Ue){if(Ue>Ee)throw new RangeError('The value "'+Ue+'" is invalid for option "size"');var He=new Uint8Array(Ue);return He.__proto__=ve.prototype,He}function ve(Ue,He,Ve){if(typeof Ue=="number"){if(typeof He=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ee(Ue)}return xe(Ue,He,Ve)}typeof Symbol!="undefined"&&Symbol.species!=null&&ve[Symbol.species]===ve&&Object.defineProperty(ve,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),ve.poolSize=8192;function xe(Ue,He,Ve){if(typeof Ue=="string")return ae(Ue,He);if(ArrayBuffer.isView(Ue))return re(Ue);if(Ue==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ue);if(Xe(Ue,ArrayBuffer)||Ue&&Xe(Ue.buffer,ArrayBuffer))return le(Ue,He,Ve);if(typeof Ue=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Je=Ue.valueOf&&Ue.valueOf();if(Je!=null&&Je!==Ue)return ve.from(Je,He,Ve);var ct=ue(Ue);if(ct)return ct;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ue[Symbol.toPrimitive]=="function")return ve.from(Ue[Symbol.toPrimitive]("string"),He,Ve);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ue)}ve.from=function(Ue,He,Ve){return xe(Ue,He,Ve)},ve.prototype.__proto__=Uint8Array.prototype,ve.__proto__=Uint8Array;function fe(Ue){if(typeof Ue!="number")throw new TypeError('"size" argument must be of type number');if(Ue<0)throw new RangeError('The value "'+Ue+'" is invalid for option "size"')}function z(Ue,He,Ve){return fe(Ue),Ue<=0?Me(Ue):He!==void 0?typeof Ve=="string"?Me(Ue).fill(He,Ve):Me(Ue).fill(He):Me(Ue)}ve.alloc=function(Ue,He,Ve){return z(Ue,He,Ve)};function ee(Ue){return fe(Ue),Me(Ue<0?0:pe(Ue)|0)}ve.allocUnsafe=function(Ue){return ee(Ue)},ve.allocUnsafeSlow=function(Ue){return ee(Ue)};function ae(Ue,He){if((typeof He!="string"||He==="")&&(He="utf8"),!ve.isEncoding(He))throw new TypeError("Unknown encoding: "+He);var Ve=Ce(Ue,He)|0,Je=Me(Ve),ct=Je.write(Ue,He);return ct!==Ve&&(Je=Je.slice(0,ct)),Je}function re(Ue){for(var He=Ue.length<0?0:pe(Ue.length)|0,Ve=Me(He),Je=0;Je<He;Je+=1)Ve[Je]=Ue[Je]&255;return Ve}function le(Ue,He,Ve){if(He<0||Ue.byteLength<He)throw new RangeError('"offset" is outside of buffer bounds');if(Ue.byteLength<He+(Ve||0))throw new RangeError('"length" is outside of buffer bounds');var Je;return He===void 0&&Ve===void 0?Je=new Uint8Array(Ue):Ve===void 0?Je=new Uint8Array(Ue,He):Je=new Uint8Array(Ue,He,Ve),Je.__proto__=ve.prototype,Je}function ue(Ue){if(ve.isBuffer(Ue)){var He=pe(Ue.length)|0,Ve=Me(He);return Ve.length===0||Ue.copy(Ve,0,0,He),Ve}if(Ue.length!==void 0)return typeof Ue.length!="number"||Oe(Ue.length)?Me(0):re(Ue);if(Ue.type==="Buffer"&&Array.isArray(Ue.data))return re(Ue.data)}function pe(Ue){if(Ue>=Ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ee.toString(16)+" bytes");return Ue|0}function Te(Ue){return+Ue!=Ue&&(Ue=0),ve.alloc(+Ue)}ve.isBuffer=function(He){return He!=null&&He._isBuffer===!0&&He!==ve.prototype},ve.compare=function(He,Ve){if(Xe(He,Uint8Array)&&(He=ve.from(He,He.offset,He.byteLength)),Xe(Ve,Uint8Array)&&(Ve=ve.from(Ve,Ve.offset,Ve.byteLength)),!ve.isBuffer(He)||!ve.isBuffer(Ve))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(He===Ve)return 0;for(var Je=He.length,ct=Ve.length,yt=0,ft=Math.min(Je,ct);yt<ft;++yt)if(He[yt]!==Ve[yt]){Je=He[yt],ct=Ve[yt];break}return Je<ct?-1:ct<Je?1:0},ve.isEncoding=function(He){switch(String(He).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ve.concat=function(He,Ve){if(!Array.isArray(He))throw new TypeError('"list" argument must be an Array of Buffers');if(He.length===0)return ve.alloc(0);var Je;if(Ve===void 0)for(Ve=0,Je=0;Je<He.length;++Je)Ve+=He[Je].length;var ct=ve.allocUnsafe(Ve),yt=0;for(Je=0;Je<He.length;++Je){var ft=He[Je];if(Xe(ft,Uint8Array)&&(ft=ve.from(ft)),!ve.isBuffer(ft))throw new TypeError('"list" argument must be an Array of Buffers');ft.copy(ct,yt),yt+=ft.length}return ct};function Ce(Ue,He){if(ve.isBuffer(Ue))return Ue.length;if(ArrayBuffer.isView(Ue)||Xe(Ue,ArrayBuffer))return Ue.byteLength;if(typeof Ue!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ue);var Ve=Ue.length,Je=arguments.length>2&&arguments[2]===!0;if(!Je&&Ve===0)return 0;for(var ct=!1;;)switch(He){case"ascii":case"latin1":case"binary":return Ve;case"utf8":case"utf-8":return tt(Ue).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ve*2;case"hex":return Ve>>>1;case"base64":return be(Ue).length;default:if(ct)return Je?-1:tt(Ue).length;He=(""+He).toLowerCase(),ct=!0}}ve.byteLength=Ce;function Fe(Ue,He,Ve){var Je=!1;if((He===void 0||He<0)&&(He=0),He>this.length||((Ve===void 0||Ve>this.length)&&(Ve=this.length),Ve<=0)||(Ve>>>=0,He>>>=0,Ve<=He))return"";for(Ue||(Ue="utf8");;)switch(Ue){case"hex":return bt(this,He,Ve);case"utf8":case"utf-8":return ht(this,He,Ve);case"ascii":return it(this,He,Ve);case"latin1":case"binary":return St(this,He,Ve);case"base64":return ut(this,He,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pt(this,He,Ve);default:if(Je)throw new TypeError("Unknown encoding: "+Ue);Ue=(Ue+"").toLowerCase(),Je=!0}}ve.prototype._isBuffer=!0;function Ae(Ue,He,Ve){var Je=Ue[He];Ue[He]=Ue[Ve],Ue[Ve]=Je}ve.prototype.swap16=function(){var He=this.length;if(He%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ve=0;Ve<He;Ve+=2)Ae(this,Ve,Ve+1);return this},ve.prototype.swap32=function(){var He=this.length;if(He%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ve=0;Ve<He;Ve+=4)Ae(this,Ve,Ve+3),Ae(this,Ve+1,Ve+2);return this},ve.prototype.swap64=function(){var He=this.length;if(He%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ve=0;Ve<He;Ve+=8)Ae(this,Ve,Ve+7),Ae(this,Ve+1,Ve+6),Ae(this,Ve+2,Ve+5),Ae(this,Ve+3,Ve+4);return this},ve.prototype.toString=function(){var He=this.length;return He===0?"":arguments.length===0?ht(this,0,He):Fe.apply(this,arguments)},ve.prototype.toLocaleString=ve.prototype.toString,ve.prototype.equals=function(He){if(!ve.isBuffer(He))throw new TypeError("Argument must be a Buffer");return this===He?!0:ve.compare(this,He)===0},ve.prototype.inspect=function(){var He="",Ve=Ie.INSPECT_MAX_BYTES;return He=this.toString("hex",0,Ve).replace(/(.{2})/g,"$1 ").trim(),this.length>Ve&&(He+=" ... "),"<Buffer "+He+">"},ve.prototype.compare=function(He,Ve,Je,ct,yt){if(Xe(He,Uint8Array)&&(He=ve.from(He,He.offset,He.byteLength)),!ve.isBuffer(He))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof He);if(Ve===void 0&&(Ve=0),Je===void 0&&(Je=He?He.length:0),ct===void 0&&(ct=0),yt===void 0&&(yt=this.length),Ve<0||Je>He.length||ct<0||yt>this.length)throw new RangeError("out of range index");if(ct>=yt&&Ve>=Je)return 0;if(ct>=yt)return-1;if(Ve>=Je)return 1;if(Ve>>>=0,Je>>>=0,ct>>>=0,yt>>>=0,this===He)return 0;for(var ft=yt-ct,Mt=Je-Ve,Jt=Math.min(ft,Mt),Vt=this.slice(ct,yt),Kt=He.slice(Ve,Je),Ht=0;Ht<Jt;++Ht)if(Vt[Ht]!==Kt[Ht]){ft=Vt[Ht],Mt=Kt[Ht];break}return ft<Mt?-1:Mt<ft?1:0};function je(Ue,He,Ve,Je,ct){if(Ue.length===0)return-1;if(typeof Ve=="string"?(Je=Ve,Ve=0):Ve>2147483647?Ve=2147483647:Ve<-2147483648&&(Ve=-2147483648),Ve=+Ve,Oe(Ve)&&(Ve=ct?0:Ue.length-1),Ve<0&&(Ve=Ue.length+Ve),Ve>=Ue.length){if(ct)return-1;Ve=Ue.length-1}else if(Ve<0)if(ct)Ve=0;else return-1;if(typeof He=="string"&&(He=ve.from(He,Je)),ve.isBuffer(He))return He.length===0?-1:Ne(Ue,He,Ve,Je,ct);if(typeof He=="number")return He=He&255,typeof Uint8Array.prototype.indexOf=="function"?ct?Uint8Array.prototype.indexOf.call(Ue,He,Ve):Uint8Array.prototype.lastIndexOf.call(Ue,He,Ve):Ne(Ue,[He],Ve,Je,ct);throw new TypeError("val must be string, number or Buffer")}function Ne(Ue,He,Ve,Je,ct){var yt=1,ft=Ue.length,Mt=He.length;if(Je!==void 0&&(Je=String(Je).toLowerCase(),Je==="ucs2"||Je==="ucs-2"||Je==="utf16le"||Je==="utf-16le")){if(Ue.length<2||He.length<2)return-1;yt=2,ft/=2,Mt/=2,Ve/=2}function Jt(It,Dt){return yt===1?It[Dt]:It.readUInt16BE(Dt*yt)}var Vt;if(ct){var Kt=-1;for(Vt=Ve;Vt<ft;Vt++)if(Jt(Ue,Vt)===Jt(He,Kt===-1?0:Vt-Kt)){if(Kt===-1&&(Kt=Vt),Vt-Kt+1===Mt)return Kt*yt}else Kt!==-1&&(Vt-=Vt-Kt),Kt=-1}else for(Ve+Mt>ft&&(Ve=ft-Mt),Vt=Ve;Vt>=0;Vt--){for(var Ht=!0,tn=0;tn<Mt;tn++)if(Jt(Ue,Vt+tn)!==Jt(He,tn)){Ht=!1;break}if(Ht)return Vt}return-1}ve.prototype.includes=function(He,Ve,Je){return this.indexOf(He,Ve,Je)!==-1},ve.prototype.indexOf=function(He,Ve,Je){return je(this,He,Ve,Je,!0)},ve.prototype.lastIndexOf=function(He,Ve,Je){return je(this,He,Ve,Je,!1)};function Be(Ue,He,Ve,Je){Ve=Number(Ve)||0;var ct=Ue.length-Ve;Je?(Je=Number(Je),Je>ct&&(Je=ct)):Je=ct;var yt=He.length;Je>yt/2&&(Je=yt/2);for(var ft=0;ft<Je;++ft){var Mt=parseInt(He.substr(ft*2,2),16);if(Oe(Mt))return ft;Ue[Ve+ft]=Mt}return ft}function ze(Ue,He,Ve,Je){return Ke(tt(He,Ue.length-Ve),Ue,Ve,Je)}function Qe(Ue,He,Ve,Je){return Ke(Ze(He),Ue,Ve,Je)}function $e(Ue,He,Ve,Je){return Qe(Ue,He,Ve,Je)}function Ye(Ue,He,Ve,Je){return Ke(be(He),Ue,Ve,Je)}function at(Ue,He,Ve,Je){return Ke(we(He,Ue.length-Ve),Ue,Ve,Je)}ve.prototype.write=function(He,Ve,Je,ct){if(Ve===void 0)ct="utf8",Je=this.length,Ve=0;else if(Je===void 0&&typeof Ve=="string")ct=Ve,Je=this.length,Ve=0;else if(isFinite(Ve))Ve=Ve>>>0,isFinite(Je)?(Je=Je>>>0,ct===void 0&&(ct="utf8")):(ct=Je,Je=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var yt=this.length-Ve;if((Je===void 0||Je>yt)&&(Je=yt),He.length>0&&(Je<0||Ve<0)||Ve>this.length)throw new RangeError("Attempt to write outside buffer bounds");ct||(ct="utf8");for(var ft=!1;;)switch(ct){case"hex":return Be(this,He,Ve,Je);case"utf8":case"utf-8":return ze(this,He,Ve,Je);case"ascii":return Qe(this,He,Ve,Je);case"latin1":case"binary":return $e(this,He,Ve,Je);case"base64":return Ye(this,He,Ve,Je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,He,Ve,Je);default:if(ft)throw new TypeError("Unknown encoding: "+ct);ct=(""+ct).toLowerCase(),ft=!0}},ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ut(Ue,He,Ve){return He===0&&Ve===Ue.length?ce.fromByteArray(Ue):ce.fromByteArray(Ue.slice(He,Ve))}function ht(Ue,He,Ve){Ve=Math.min(Ue.length,Ve);for(var Je=[],ct=He;ct<Ve;){var yt=Ue[ct],ft=null,Mt=yt>239?4:yt>223?3:yt>191?2:1;if(ct+Mt<=Ve){var Jt,Vt,Kt,Ht;switch(Mt){case 1:yt<128&&(ft=yt);break;case 2:Jt=Ue[ct+1],(Jt&192)===128&&(Ht=(yt&31)<<6|Jt&63,Ht>127&&(ft=Ht));break;case 3:Jt=Ue[ct+1],Vt=Ue[ct+2],(Jt&192)===128&&(Vt&192)===128&&(Ht=(yt&15)<<12|(Jt&63)<<6|Vt&63,Ht>2047&&(Ht<55296||Ht>57343)&&(ft=Ht));break;case 4:Jt=Ue[ct+1],Vt=Ue[ct+2],Kt=Ue[ct+3],(Jt&192)===128&&(Vt&192)===128&&(Kt&192)===128&&(Ht=(yt&15)<<18|(Jt&63)<<12|(Vt&63)<<6|Kt&63,Ht>65535&&Ht<1114112&&(ft=Ht))}}ft===null?(ft=65533,Mt=1):ft>65535&&(ft-=65536,Je.push(ft>>>10&1023|55296),ft=56320|ft&1023),Je.push(ft),ct+=Mt}return et(Je)}var Ct=4096;function et(Ue){var He=Ue.length;if(He<=Ct)return String.fromCharCode.apply(String,Ue);for(var Ve="",Je=0;Je<He;)Ve+=String.fromCharCode.apply(String,Ue.slice(Je,Je+=Ct));return Ve}function it(Ue,He,Ve){var Je="";Ve=Math.min(Ue.length,Ve);for(var ct=He;ct<Ve;++ct)Je+=String.fromCharCode(Ue[ct]&127);return Je}function St(Ue,He,Ve){var Je="";Ve=Math.min(Ue.length,Ve);for(var ct=He;ct<Ve;++ct)Je+=String.fromCharCode(Ue[ct]);return Je}function bt(Ue,He,Ve){var Je=Ue.length;(!He||He<0)&&(He=0),(!Ve||Ve<0||Ve>Je)&&(Ve=Je);for(var ct="",yt=He;yt<Ve;++yt)ct+=pt(Ue[yt]);return ct}function Pt(Ue,He,Ve){for(var Je=Ue.slice(He,Ve),ct="",yt=0;yt<Je.length;yt+=2)ct+=String.fromCharCode(Je[yt]+Je[yt+1]*256);return ct}ve.prototype.slice=function(He,Ve){var Je=this.length;He=~~He,Ve=Ve===void 0?Je:~~Ve,He<0?(He+=Je,He<0&&(He=0)):He>Je&&(He=Je),Ve<0?(Ve+=Je,Ve<0&&(Ve=0)):Ve>Je&&(Ve=Je),Ve<He&&(Ve=He);var ct=this.subarray(He,Ve);return ct.__proto__=ve.prototype,ct};function gt(Ue,He,Ve){if(Ue%1!==0||Ue<0)throw new RangeError("offset is not uint");if(Ue+He>Ve)throw new RangeError("Trying to access beyond buffer length")}ve.prototype.readUIntLE=function(He,Ve,Je){He=He>>>0,Ve=Ve>>>0,Je||gt(He,Ve,this.length);for(var ct=this[He],yt=1,ft=0;++ft<Ve&&(yt*=256);)ct+=this[He+ft]*yt;return ct},ve.prototype.readUIntBE=function(He,Ve,Je){He=He>>>0,Ve=Ve>>>0,Je||gt(He,Ve,this.length);for(var ct=this[He+--Ve],yt=1;Ve>0&&(yt*=256);)ct+=this[He+--Ve]*yt;return ct},ve.prototype.readUInt8=function(He,Ve){return He=He>>>0,Ve||gt(He,1,this.length),this[He]},ve.prototype.readUInt16LE=function(He,Ve){return He=He>>>0,Ve||gt(He,2,this.length),this[He]|this[He+1]<<8},ve.prototype.readUInt16BE=function(He,Ve){return He=He>>>0,Ve||gt(He,2,this.length),this[He]<<8|this[He+1]},ve.prototype.readUInt32LE=function(He,Ve){return He=He>>>0,Ve||gt(He,4,this.length),(this[He]|this[He+1]<<8|this[He+2]<<16)+this[He+3]*16777216},ve.prototype.readUInt32BE=function(He,Ve){return He=He>>>0,Ve||gt(He,4,this.length),this[He]*16777216+(this[He+1]<<16|this[He+2]<<8|this[He+3])},ve.prototype.readIntLE=function(He,Ve,Je){He=He>>>0,Ve=Ve>>>0,Je||gt(He,Ve,this.length);for(var ct=this[He],yt=1,ft=0;++ft<Ve&&(yt*=256);)ct+=this[He+ft]*yt;return yt*=128,ct>=yt&&(ct-=Math.pow(2,8*Ve)),ct},ve.prototype.readIntBE=function(He,Ve,Je){He=He>>>0,Ve=Ve>>>0,Je||gt(He,Ve,this.length);for(var ct=Ve,yt=1,ft=this[He+--ct];ct>0&&(yt*=256);)ft+=this[He+--ct]*yt;return yt*=128,ft>=yt&&(ft-=Math.pow(2,8*Ve)),ft},ve.prototype.readInt8=function(He,Ve){return He=He>>>0,Ve||gt(He,1,this.length),this[He]&128?(255-this[He]+1)*-1:this[He]},ve.prototype.readInt16LE=function(He,Ve){He=He>>>0,Ve||gt(He,2,this.length);var Je=this[He]|this[He+1]<<8;return Je&32768?Je|4294901760:Je},ve.prototype.readInt16BE=function(He,Ve){He=He>>>0,Ve||gt(He,2,this.length);var Je=this[He+1]|this[He]<<8;return Je&32768?Je|4294901760:Je},ve.prototype.readInt32LE=function(He,Ve){return He=He>>>0,Ve||gt(He,4,this.length),this[He]|this[He+1]<<8|this[He+2]<<16|this[He+3]<<24},ve.prototype.readInt32BE=function(He,Ve){return He=He>>>0,Ve||gt(He,4,this.length),this[He]<<24|this[He+1]<<16|this[He+2]<<8|this[He+3]},ve.prototype.readFloatLE=function(He,Ve){return He=He>>>0,Ve||gt(He,4,this.length),Pe.read(this,He,!0,23,4)},ve.prototype.readFloatBE=function(He,Ve){return He=He>>>0,Ve||gt(He,4,this.length),Pe.read(this,He,!1,23,4)},ve.prototype.readDoubleLE=function(He,Ve){return He=He>>>0,Ve||gt(He,8,this.length),Pe.read(this,He,!0,52,8)},ve.prototype.readDoubleBE=function(He,Ve){return He=He>>>0,Ve||gt(He,8,this.length),Pe.read(this,He,!1,52,8)};function dt(Ue,He,Ve,Je,ct,yt){if(!ve.isBuffer(Ue))throw new TypeError('"buffer" argument must be a Buffer instance');if(He>ct||He<yt)throw new RangeError('"value" argument is out of bounds');if(Ve+Je>Ue.length)throw new RangeError("Index out of range")}ve.prototype.writeUIntLE=function(He,Ve,Je,ct){if(He=+He,Ve=Ve>>>0,Je=Je>>>0,!ct){var yt=Math.pow(2,8*Je)-1;dt(this,He,Ve,Je,yt,0)}var ft=1,Mt=0;for(this[Ve]=He&255;++Mt<Je&&(ft*=256);)this[Ve+Mt]=He/ft&255;return Ve+Je},ve.prototype.writeUIntBE=function(He,Ve,Je,ct){if(He=+He,Ve=Ve>>>0,Je=Je>>>0,!ct){var yt=Math.pow(2,8*Je)-1;dt(this,He,Ve,Je,yt,0)}var ft=Je-1,Mt=1;for(this[Ve+ft]=He&255;--ft>=0&&(Mt*=256);)this[Ve+ft]=He/Mt&255;return Ve+Je},ve.prototype.writeUInt8=function(He,Ve,Je){return He=+He,Ve=Ve>>>0,Je||dt(this,He,Ve,1,255,0),this[Ve]=He&255,Ve+1},ve.prototype.writeUInt16LE=function(He,Ve,Je){return He=+He,Ve=Ve>>>0,Je||dt(this,He,Ve,2,65535,0),this[Ve]=He&255,this[Ve+1]=He>>>8,Ve+2},ve.prototype.writeUInt16BE=function(He,Ve,Je){return He=+He,Ve=Ve>>>0,Je||dt(this,He,Ve,2,65535,0),this[Ve]=He>>>8,this[Ve+1]=He&255,Ve+2},ve.prototype.writeUInt32LE=function(He,Ve,Je){return He=+He,Ve=Ve>>>0,Je||dt(this,He,Ve,4,4294967295,0),this[Ve+3]=He>>>24,this[Ve+2]=He>>>16,this[Ve+1]=He>>>8,this[Ve]=He&255,Ve+4},ve.prototype.writeUInt32BE=function(He,Ve,Je){return He=+He,Ve=Ve>>>0,Je||dt(this,He,Ve,4,4294967295,0),this[Ve]=He>>>24,this[Ve+1]=He>>>16,this[Ve+2]=He>>>8,this[Ve+3]=He&255,Ve+4},ve.prototype.writeIntLE=function(He,Ve,Je,ct){if(He=+He,Ve=Ve>>>0,!ct){var yt=Math.pow(2,8*Je-1);dt(this,He,Ve,Je,yt-1,-yt)}var ft=0,Mt=1,Jt=0;for(this[Ve]=He&255;++ft<Je&&(Mt*=256);)He<0&&Jt===0&&this[Ve+ft-1]!==0&&(Jt=1),this[Ve+ft]=(He/Mt>>0)-Jt&255;return Ve+Je},ve.prototype.writeIntBE=function(He,Ve,Je,ct){if(He=+He,Ve=Ve>>>0,!ct){var yt=Math.pow(2,8*Je-1);dt(this,He,Ve,Je,yt-1,-yt)}var ft=Je-1,Mt=1,Jt=0;for(this[Ve+ft]=He&255;--ft>=0&&(Mt*=256);)He<0&&Jt===0&&this[Ve+ft+1]!==0&&(Jt=1),this[Ve+ft]=(He/Mt>>0)-Jt&255;return Ve+Je},ve.prototype.writeInt8=function(He,Ve,Je){return He=+He,Ve=Ve>>>0,Je||dt(this,He,Ve,1,127,-128),He<0&&(He=255+He+1),this[Ve]=He&255,Ve+1},ve.prototype.writeInt16LE=function(He,Ve,Je){return He=+He,Ve=Ve>>>0,Je||dt(this,He,Ve,2,32767,-32768),this[Ve]=He&255,this[Ve+1]=He>>>8,Ve+2},ve.prototype.writeInt16BE=function(He,Ve,Je){return He=+He,Ve=Ve>>>0,Je||dt(this,He,Ve,2,32767,-32768),this[Ve]=He>>>8,this[Ve+1]=He&255,Ve+2},ve.prototype.writeInt32LE=function(He,Ve,Je){return He=+He,Ve=Ve>>>0,Je||dt(this,He,Ve,4,2147483647,-2147483648),this[Ve]=He&255,this[Ve+1]=He>>>8,this[Ve+2]=He>>>16,this[Ve+3]=He>>>24,Ve+4},ve.prototype.writeInt32BE=function(He,Ve,Je){return He=+He,Ve=Ve>>>0,Je||dt(this,He,Ve,4,2147483647,-2147483648),He<0&&(He=4294967295+He+1),this[Ve]=He>>>24,this[Ve+1]=He>>>16,this[Ve+2]=He>>>8,this[Ve+3]=He&255,Ve+4};function mt(Ue,He,Ve,Je,ct,yt){if(Ve+Je>Ue.length)throw new RangeError("Index out of range");if(Ve<0)throw new RangeError("Index out of range")}function kt(Ue,He,Ve,Je,ct){return He=+He,Ve=Ve>>>0,ct||mt(Ue,He,Ve,4,34028234663852886e22,-34028234663852886e22),Pe.write(Ue,He,Ve,Je,23,4),Ve+4}ve.prototype.writeFloatLE=function(He,Ve,Je){return kt(this,He,Ve,!0,Je)},ve.prototype.writeFloatBE=function(He,Ve,Je){return kt(this,He,Ve,!1,Je)};function Et(Ue,He,Ve,Je,ct){return He=+He,Ve=Ve>>>0,ct||mt(Ue,He,Ve,8,17976931348623157e292,-17976931348623157e292),Pe.write(Ue,He,Ve,Je,52,8),Ve+8}ve.prototype.writeDoubleLE=function(He,Ve,Je){return Et(this,He,Ve,!0,Je)},ve.prototype.writeDoubleBE=function(He,Ve,Je){return Et(this,He,Ve,!1,Je)},ve.prototype.copy=function(He,Ve,Je,ct){if(!ve.isBuffer(He))throw new TypeError("argument should be a Buffer");if(Je||(Je=0),!ct&&ct!==0&&(ct=this.length),Ve>=He.length&&(Ve=He.length),Ve||(Ve=0),ct>0&&ct<Je&&(ct=Je),ct===Je||He.length===0||this.length===0)return 0;if(Ve<0)throw new RangeError("targetStart out of bounds");if(Je<0||Je>=this.length)throw new RangeError("Index out of range");if(ct<0)throw new RangeError("sourceEnd out of bounds");ct>this.length&&(ct=this.length),He.length-Ve<ct-Je&&(ct=He.length-Ve+Je);var yt=ct-Je;if(this===He&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ve,Je,ct);else if(this===He&&Je<Ve&&Ve<ct)for(var ft=yt-1;ft>=0;--ft)He[ft+Ve]=this[ft+Je];else Uint8Array.prototype.set.call(He,this.subarray(Je,ct),Ve);return yt},ve.prototype.fill=function(He,Ve,Je,ct){if(typeof He=="string"){if(typeof Ve=="string"?(ct=Ve,Ve=0,Je=this.length):typeof Je=="string"&&(ct=Je,Je=this.length),ct!==void 0&&typeof ct!="string")throw new TypeError("encoding must be a string");if(typeof ct=="string"&&!ve.isEncoding(ct))throw new TypeError("Unknown encoding: "+ct);if(He.length===1){var yt=He.charCodeAt(0);(ct==="utf8"&&yt<128||ct==="latin1")&&(He=yt)}}else typeof He=="number"&&(He=He&255);if(Ve<0||this.length<Ve||this.length<Je)throw new RangeError("Out of range index");if(Je<=Ve)return this;Ve=Ve>>>0,Je=Je===void 0?this.length:Je>>>0,He||(He=0);var ft;if(typeof He=="number")for(ft=Ve;ft<Je;++ft)this[ft]=He;else{var Mt=ve.isBuffer(He)?He:ve.from(He,ct),Jt=Mt.length;if(Jt===0)throw new TypeError('The value "'+He+'" is invalid for argument "value"');for(ft=0;ft<Je-Ve;++ft)this[ft+Ve]=Mt[ft%Jt]}return this};var Ut=/[^+/0-9A-Za-z-_]/g;function wt(Ue){if(Ue=Ue.split("=")[0],Ue=Ue.trim().replace(Ut,""),Ue.length<2)return"";for(;Ue.length%4!==0;)Ue=Ue+"=";return Ue}function pt(Ue){return Ue<16?"0"+Ue.toString(16):Ue.toString(16)}function tt(Ue,He){He=He||1/0;for(var Ve,Je=Ue.length,ct=null,yt=[],ft=0;ft<Je;++ft){if(Ve=Ue.charCodeAt(ft),Ve>55295&&Ve<57344){if(!ct){if(Ve>56319){(He-=3)>-1&&yt.push(239,191,189);continue}else if(ft+1===Je){(He-=3)>-1&&yt.push(239,191,189);continue}ct=Ve;continue}if(Ve<56320){(He-=3)>-1&&yt.push(239,191,189),ct=Ve;continue}Ve=(ct-55296<<10|Ve-56320)+65536}else ct&&(He-=3)>-1&&yt.push(239,191,189);if(ct=null,Ve<128){if((He-=1)<0)break;yt.push(Ve)}else if(Ve<2048){if((He-=2)<0)break;yt.push(Ve>>6|192,Ve&63|128)}else if(Ve<65536){if((He-=3)<0)break;yt.push(Ve>>12|224,Ve>>6&63|128,Ve&63|128)}else if(Ve<1114112){if((He-=4)<0)break;yt.push(Ve>>18|240,Ve>>12&63|128,Ve>>6&63|128,Ve&63|128)}else throw new Error("Invalid code point")}return yt}function Ze(Ue){for(var He=[],Ve=0;Ve<Ue.length;++Ve)He.push(Ue.charCodeAt(Ve)&255);return He}function we(Ue,He){for(var Ve,Je,ct,yt=[],ft=0;ft<Ue.length&&!((He-=2)<0);++ft)Ve=Ue.charCodeAt(ft),Je=Ve>>8,ct=Ve%256,yt.push(ct),yt.push(Je);return yt}function be(Ue){return ce.toByteArray(wt(Ue))}function Ke(Ue,He,Ve,Je){for(var ct=0;ct<Je&&!(ct+Ve>=He.length||ct>=Ue.length);++ct)He[ct+Ve]=Ue[ct];return ct}function Xe(Ue,He){return Ue instanceof He||Ue!=null&&Ue.constructor!=null&&Ue.constructor.name!=null&&Ue.constructor.name===He.name}function Oe(Ue){return Ue!==Ue}}).call(this)}).call(this,ie("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(ie,_e,Ie){_e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(ie,_e,Ie){"use strict";var ge=ie("get-intrinsic"),ce=ie("./"),Pe=ce(ge("String.prototype.indexOf"));_e.exports=function(ye,Me){var ve=ge(ye,!!Me);return typeof ve=="function"&&Pe(ye,".prototype.")>-1?ce(ve):ve}},{"./":93,"get-intrinsic":348}],93:[function(ie,_e,Ie){"use strict";var ge=ie("function-bind"),ce=ie("get-intrinsic"),Pe=ce("%Function.prototype.apply%"),Ee=ce("%Function.prototype.call%"),ye=ce("%Reflect.apply%",!0)||ge.call(Ee,Pe),Me=ce("%Object.getOwnPropertyDescriptor%",!0),ve=ce("%Object.defineProperty%",!0),xe=ce("%Math.max%");if(ve)try{ve({},"a",{value:1})}catch(z){ve=null}_e.exports=function(ee){var ae=ye(ge,Ee,arguments);if(Me&&ve){var re=Me(ae,"length");re.configurable&&ve(ae,"length",{value:1+xe(0,ee.length-(arguments.length-1))})}return ae};var fe=function(){return ye(ge,Pe,arguments)};ve?ve(_e.exports,"apply",{value:fe}):_e.exports.apply=fe},{"function-bind":347,"get-intrinsic":348}],94:[function(ie,_e,Ie){"use strict";var ge=Array.prototype.slice;_e.exports=ce;function ce(Ee,ye){if(!(this instanceof ce))return new ce(Ee,ye);this.src=Ee,this._withAccess=ye}ce.prototype.withAccess=function(Ee){return this._withAccess=Ee!==!1,this},ce.prototype.pick=function(Ee){return Array.isArray(Ee)||(Ee=ge.call(arguments)),Ee.length&&(this.keys=Ee),this},ce.prototype.to=function(Ee){if(Ee=Ee||{},!this.src)return Ee;var ye=this.keys||Object.keys(this.src);if(!this._withAccess){for(var Me=0;Me<ye.length;Me++)ve=ye[Me],Ee[ve]===void 0&&(Ee[ve]=this.src[ve]);return Ee}for(var Me=0;Me<ye.length;Me++){var ve=ye[Me];if(Pe(Ee,ve)){var xe=this.src.__lookupGetter__(ve),fe=this.src.__lookupSetter__(ve);xe&&Ee.__defineGetter__(ve,xe),fe&&Ee.__defineSetter__(ve,fe),!xe&&!fe&&(Ee[ve]=this.src[ve])}}return Ee},ce.prototype.toCover=function(Ee){for(var ye=this.keys||Object.keys(this.src),Me=0;Me<ye.length;Me++){var ve=ye[Me];delete Ee[ve];var xe=this.src.__lookupGetter__(ve),fe=this.src.__lookupSetter__(ve);xe&&Ee.__defineGetter__(ve,xe),fe&&Ee.__defineSetter__(ve,fe),!xe&&!fe&&(Ee[ve]=this.src[ve])}},ce.prototype.override=ce.prototype.toCover,ce.prototype.and=function(Ee){var ye={};return this.to(ye),this.src=Ee,this.to(ye),this.src=ye,this};function Pe(Ee,ye){return Ee[ye]===void 0&&Ee.__lookupGetter__(ye)===void 0&&Ee.__lookupSetter__(ye)===void 0}},{}],95:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/is-callable"),Pe=ie("../internals/try-to-string"),Ee=ge.TypeError;_e.exports=function(ye){if(ce(ye))return ye;throw Ee(Pe(ye)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/is-constructor"),Pe=ie("../internals/try-to-string"),Ee=ge.TypeError;_e.exports=function(ye){if(ce(ye))return ye;throw Ee(Pe(ye)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/is-callable"),Pe=ge.String,Ee=ge.TypeError;_e.exports=function(ye){if(typeof ye=="object"||ce(ye))return ye;throw Ee("Can't set "+Pe(ye)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(ie,_e,Ie){var ge=ie("../internals/well-known-symbol"),ce=ie("../internals/object-create"),Pe=ie("../internals/object-define-property"),Ee=ge("unscopables"),ye=Array.prototype;ye[Ee]==null&&Pe.f(ye,Ee,{configurable:!0,value:ce(null)}),_e.exports=function(Me){ye[Ee][Me]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/string-multibyte").charAt;_e.exports=function(ce,Pe,Ee){return Pe+(Ee?ge(ce,Pe).length:1)}},{"../internals/string-multibyte":239}],100:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/object-is-prototype-of"),Pe=ge.TypeError;_e.exports=function(Ee,ye){if(ce(ye,Ee))return Ee;throw Pe("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/is-object"),Pe=ge.String,Ee=ge.TypeError;_e.exports=function(ye){if(ce(ye))return ye;throw Ee(Pe(ye)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(ie,_e,Ie){_e.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-native"),ce=ie("../internals/descriptors"),Pe=ie("../internals/global"),Ee=ie("../internals/is-callable"),ye=ie("../internals/is-object"),Me=ie("../internals/has-own-property"),ve=ie("../internals/classof"),xe=ie("../internals/try-to-string"),fe=ie("../internals/create-non-enumerable-property"),z=ie("../internals/redefine"),ee=ie("../internals/object-define-property").f,ae=ie("../internals/object-is-prototype-of"),re=ie("../internals/object-get-prototype-of"),le=ie("../internals/object-set-prototype-of"),ue=ie("../internals/well-known-symbol"),pe=ie("../internals/uid"),Te=Pe.Int8Array,Ce=Te&&Te.prototype,Fe=Pe.Uint8ClampedArray,Ae=Fe&&Fe.prototype,je=Te&&re(Te),Ne=Ce&&re(Ce),Be=Object.prototype,ze=Pe.TypeError,Qe=ue("toStringTag"),$e=pe("TYPED_ARRAY_TAG"),Ye=pe("TYPED_ARRAY_CONSTRUCTOR"),at=ge&&!!le&&ve(Pe.opera)!=="Opera",ut=!1,ht,Ct,et,it={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},St={BigInt64Array:8,BigUint64Array:8},bt=function(Ut){if(!ye(Ut))return!1;var wt=ve(Ut);return wt==="DataView"||Me(it,wt)||Me(St,wt)},Pt=function(Et){if(!ye(Et))return!1;var Ut=ve(Et);return Me(it,Ut)||Me(St,Ut)},gt=function(Et){if(Pt(Et))return Et;throw ze("Target is not a typed array")},dt=function(Et){if(Ee(Et)&&(!le||ae(je,Et)))return Et;throw ze(xe(Et)+" is not a typed array constructor")},mt=function(Et,Ut,wt,pt){if(ce){if(wt)for(var tt in it){var Ze=Pe[tt];if(Ze&&Me(Ze.prototype,Et))try{delete Ze.prototype[Et]}catch(we){try{Ze.prototype[Et]=Ut}catch(be){}}}(!Ne[Et]||wt)&&z(Ne,Et,wt?Ut:at&&Ce[Et]||Ut,pt)}},kt=function(Et,Ut,wt){var pt,tt;if(ce){if(le){if(wt){for(pt in it)if(tt=Pe[pt],tt&&Me(tt,Et))try{delete tt[Et]}catch(Ze){}}if(!je[Et]||wt)try{return z(je,Et,wt?Ut:at&&je[Et]||Ut)}catch(Ze){}else return}for(pt in it)tt=Pe[pt],tt&&(!tt[Et]||wt)&&z(tt,Et,Ut)}};for(ht in it)Ct=Pe[ht],et=Ct&&Ct.prototype,et?fe(et,Ye,Ct):at=!1;for(ht in St)Ct=Pe[ht],et=Ct&&Ct.prototype,et&&fe(et,Ye,Ct);if((!at||!Ee(je)||je===Function.prototype)&&(je=function(){throw ze("Incorrect invocation")},at))for(ht in it)Pe[ht]&&le(Pe[ht],je);if((!at||!Ne||Ne===Be)&&(Ne=je.prototype,at))for(ht in it)Pe[ht]&&le(Pe[ht].prototype,Ne);if(at&&re(Ae)!==Ne&&le(Ae,Ne),ce&&!Me(Ne,Qe)){ut=!0,ee(Ne,Qe,{get:function(){return ye(this)?this[$e]:void 0}});for(ht in it)Pe[ht]&&fe(Pe[ht],$e,ht)}_e.exports={NATIVE_ARRAY_BUFFER_VIEWS:at,TYPED_ARRAY_CONSTRUCTOR:Ye,TYPED_ARRAY_TAG:ut&&$e,aTypedArray:gt,aTypedArrayConstructor:dt,exportTypedArrayMethod:mt,exportTypedArrayStaticMethod:kt,isView:bt,isTypedArray:Pt,TypedArray:je,TypedArrayPrototype:Ne}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/global"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/descriptors"),Ee=ie("../internals/array-buffer-native"),ye=ie("../internals/function-name"),Me=ie("../internals/create-non-enumerable-property"),ve=ie("../internals/redefine-all"),xe=ie("../internals/fails"),fe=ie("../internals/an-instance"),z=ie("../internals/to-integer-or-infinity"),ee=ie("../internals/to-length"),ae=ie("../internals/to-index"),re=ie("../internals/ieee754"),le=ie("../internals/object-get-prototype-of"),ue=ie("../internals/object-set-prototype-of"),pe=ie("../internals/object-get-own-property-names").f,Te=ie("../internals/object-define-property").f,Ce=ie("../internals/array-fill"),Fe=ie("../internals/array-slice-simple"),Ae=ie("../internals/set-to-string-tag"),je=ie("../internals/internal-state"),Ne=ye.PROPER,Be=ye.CONFIGURABLE,ze=je.get,Qe=je.set,$e="ArrayBuffer",Ye="DataView",at="prototype",ut="Wrong length",ht="Wrong index",Ct=ge[$e],et=Ct,it=et&&et[at],St=ge[Ye],bt=St&&St[at],Pt=Object.prototype,gt=ge.Array,dt=ge.RangeError,mt=ce(Ce),kt=ce([].reverse),Et=re.pack,Ut=re.unpack,wt=function(ft){return[ft&255]},pt=function(ft){return[ft&255,ft>>8&255]},tt=function(ft){return[ft&255,ft>>8&255,ft>>16&255,ft>>24&255]},Ze=function(ft){return ft[3]<<24|ft[2]<<16|ft[1]<<8|ft[0]},we=function(ft){return Et(ft,23,4)},be=function(ft){return Et(ft,52,8)},Ke=function(ft,Mt){Te(ft[at],Mt,{get:function(){return ze(this)[Mt]}})},Xe=function(ft,Mt,Jt,Vt){var Kt=ae(Jt),Ht=ze(ft);if(Kt+Mt>Ht.byteLength)throw dt(ht);var tn=ze(Ht.buffer).bytes,It=Kt+Ht.byteOffset,Dt=Fe(tn,It,It+Mt);return Vt?Dt:kt(Dt)},Oe=function(ft,Mt,Jt,Vt,Kt,Ht){var tn=ae(Jt),It=ze(ft);if(tn+Mt>It.byteLength)throw dt(ht);for(var Dt=ze(It.buffer).bytes,qt=tn+It.byteOffset,sn=Vt(+Kt),xn=0;xn<Mt;xn++)Dt[qt+xn]=sn[Ht?xn:Mt-xn-1]};if(!Ee)et=function(Mt){fe(this,it);var Jt=ae(Mt);Qe(this,{bytes:mt(gt(Jt),0),byteLength:Jt}),Pe||(this.byteLength=Jt)},it=et[at],St=function(Mt,Jt,Vt){fe(this,bt),fe(Mt,it);var Kt=ze(Mt).byteLength,Ht=z(Jt);if(Ht<0||Ht>Kt)throw dt("Wrong offset");if(Vt=Vt===void 0?Kt-Ht:ee(Vt),Ht+Vt>Kt)throw dt(ut);Qe(this,{buffer:Mt,byteLength:Vt,byteOffset:Ht}),Pe||(this.buffer=Mt,this.byteLength=Vt,this.byteOffset=Ht)},bt=St[at],Pe&&(Ke(et,"byteLength"),Ke(St,"buffer"),Ke(St,"byteLength"),Ke(St,"byteOffset")),ve(bt,{getInt8:function(Mt){return Xe(this,1,Mt)[0]<<24>>24},getUint8:function(Mt){return Xe(this,1,Mt)[0]},getInt16:function(Mt){var Jt=Xe(this,2,Mt,arguments.length>1?arguments[1]:void 0);return(Jt[1]<<8|Jt[0])<<16>>16},getUint16:function(Mt){var Jt=Xe(this,2,Mt,arguments.length>1?arguments[1]:void 0);return Jt[1]<<8|Jt[0]},getInt32:function(Mt){return Ze(Xe(this,4,Mt,arguments.length>1?arguments[1]:void 0))},getUint32:function(Mt){return Ze(Xe(this,4,Mt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Mt){return Ut(Xe(this,4,Mt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Mt){return Ut(Xe(this,8,Mt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Mt,Jt){Oe(this,1,Mt,wt,Jt)},setUint8:function(Mt,Jt){Oe(this,1,Mt,wt,Jt)},setInt16:function(Mt,Jt){Oe(this,2,Mt,pt,Jt,arguments.length>2?arguments[2]:void 0)},setUint16:function(Mt,Jt){Oe(this,2,Mt,pt,Jt,arguments.length>2?arguments[2]:void 0)},setInt32:function(Mt,Jt){Oe(this,4,Mt,tt,Jt,arguments.length>2?arguments[2]:void 0)},setUint32:function(Mt,Jt){Oe(this,4,Mt,tt,Jt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Mt,Jt){Oe(this,4,Mt,we,Jt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Mt,Jt){Oe(this,8,Mt,be,Jt,arguments.length>2?arguments[2]:void 0)}});else{var Ue=Ne&&Ct.name!==$e;if(!xe(function(){Ct(1)})||!xe(function(){new Ct(-1)})||xe(function(){return new Ct,new Ct(1.5),new Ct(NaN),Ue&&!Be})){et=function(Mt){return fe(this,it),new Ct(ae(Mt))},et[at]=it;for(var He=pe(Ct),Ve=0,Je;He.length>Ve;)(Je=He[Ve++])in et||Me(et,Je,Ct[Je]);it.constructor=et}else Ue&&Be&&Me(Ct,"name",$e);ue&&le(bt)!==Pt&&ue(bt,Pt);var ct=new St(new et(2)),yt=ce(bt.setInt8);ct.setInt8(0,2147483648),ct.setInt8(1,2147483649),(ct.getInt8(0)||!ct.getInt8(1))&&ve(bt,{setInt8:function(Mt,Jt){yt(this,Mt,Jt<<24>>24)},setUint8:function(Mt,Jt){yt(this,Mt,Jt<<24>>24)}},{unsafe:!0})}Ae(et,$e),Ae(St,Ye),_e.exports={ArrayBuffer:et,DataView:St}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/to-object"),ce=ie("../internals/to-absolute-index"),Pe=ie("../internals/length-of-array-like"),Ee=Math.min;_e.exports=[].copyWithin||function(Me,ve){var xe=ge(this),fe=Pe(xe),z=ce(Me,fe),ee=ce(ve,fe),ae=arguments.length>2?arguments[2]:void 0,re=Ee((ae===void 0?fe:ce(ae,fe))-ee,fe-z),le=1;for(ee<z&&z<ee+re&&(le=-1,ee+=re-1,z+=re-1);re-- >0;)ee in xe?xe[z]=xe[ee]:delete xe[z],z+=le,ee+=le;return xe}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/to-object"),ce=ie("../internals/to-absolute-index"),Pe=ie("../internals/length-of-array-like");_e.exports=function(ye){for(var Me=ge(this),ve=Pe(Me),xe=arguments.length,fe=ce(xe>1?arguments[1]:void 0,ve),z=xe>2?arguments[2]:void 0,ee=z===void 0?ve:ce(z,ve);ee>fe;)Me[fe++]=ye;return Me}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-iteration").forEach,ce=ie("../internals/array-method-is-strict"),Pe=ce("forEach");_e.exports=Pe?[].forEach:function(ye){return ge(this,ye,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(ie,_e,Ie){var ge=ie("../internals/length-of-array-like");_e.exports=function(ce,Pe){for(var Ee=0,ye=ge(Pe),Me=new ce(ye);ye>Ee;)Me[Ee]=Pe[Ee++];return Me}},{"../internals/length-of-array-like":188}],109:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/global"),ce=ie("../internals/function-bind-context"),Pe=ie("../internals/function-call"),Ee=ie("../internals/to-object"),ye=ie("../internals/call-with-safe-iteration-closing"),Me=ie("../internals/is-array-iterator-method"),ve=ie("../internals/is-constructor"),xe=ie("../internals/length-of-array-like"),fe=ie("../internals/create-property"),z=ie("../internals/get-iterator"),ee=ie("../internals/get-iterator-method"),ae=ge.Array;_e.exports=function(le){var ue=Ee(le),pe=ve(this),Te=arguments.length,Ce=Te>1?arguments[1]:void 0,Fe=Ce!==void 0;Fe&&(Ce=ce(Ce,Te>2?arguments[2]:void 0));var Ae=ee(ue),je=0,Ne,Be,ze,Qe,$e,Ye;if(Ae&&!(this==ae&&Me(Ae)))for(Qe=z(ue,Ae),$e=Qe.next,Be=pe?new this:[];!(ze=Pe($e,Qe)).done;je++)Ye=Fe?ye(Qe,Ce,[ze.value,je],!0):ze.value,fe(Be,je,Ye);else for(Ne=xe(ue),Be=pe?new this(Ne):ae(Ne);Ne>je;je++)Ye=Fe?Ce(ue[je],je):ue[je],fe(Be,je,Ye);return Be.length=je,Be}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(ie,_e,Ie){var ge=ie("../internals/to-indexed-object"),ce=ie("../internals/to-absolute-index"),Pe=ie("../internals/length-of-array-like"),Ee=function(ye){return function(Me,ve,xe){var fe=ge(Me),z=Pe(fe),ee=ce(xe,z),ae;if(ye&&ve!=ve){for(;z>ee;)if(ae=fe[ee++],ae!=ae)return!0}else for(;z>ee;ee++)if((ye||ee in fe)&&fe[ee]===ve)return ye||ee||0;return!ye&&-1}};_e.exports={includes:Ee(!0),indexOf:Ee(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(ie,_e,Ie){var ge=ie("../internals/function-bind-context"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/indexed-object"),Ee=ie("../internals/to-object"),ye=ie("../internals/length-of-array-like"),Me=ie("../internals/array-species-create"),ve=ce([].push),xe=function(fe){var z=fe==1,ee=fe==2,ae=fe==3,re=fe==4,le=fe==6,ue=fe==7,pe=fe==5||le;return function(Te,Ce,Fe,Ae){for(var je=Ee(Te),Ne=Pe(je),Be=ge(Ce,Fe),ze=ye(Ne),Qe=0,$e=Ae||Me,Ye=z?$e(Te,ze):ee||ue?$e(Te,0):void 0,at,ut;ze>Qe;Qe++)if((pe||Qe in Ne)&&(at=Ne[Qe],ut=Be(at,Qe,je),fe))if(z)Ye[Qe]=ut;else if(ut)switch(fe){case 3:return!0;case 5:return at;case 6:return Qe;case 2:ve(Ye,at)}else switch(fe){case 4:return!1;case 7:ve(Ye,at)}return le?-1:ae||re?re:Ye}};_e.exports={forEach:xe(0),map:xe(1),filter:xe(2),some:xe(3),every:xe(4),find:xe(5),findIndex:xe(6),filterReject:xe(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/function-apply"),ce=ie("../internals/to-indexed-object"),Pe=ie("../internals/to-integer-or-infinity"),Ee=ie("../internals/length-of-array-like"),ye=ie("../internals/array-method-is-strict"),Me=Math.min,ve=[].lastIndexOf,xe=!!ve&&1/[1].lastIndexOf(1,-0)<0,fe=ye("lastIndexOf"),z=xe||!fe;_e.exports=z?function(ae){if(xe)return ge(ve,this,arguments)||0;var re=ce(this),le=Ee(re),ue=le-1;for(arguments.length>1&&(ue=Me(ue,Pe(arguments[1]))),ue<0&&(ue=le+ue);ue>=0;ue--)if(ue in re&&re[ue]===ae)return ue||0;return-1}:ve},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(ie,_e,Ie){var ge=ie("../internals/fails"),ce=ie("../internals/well-known-symbol"),Pe=ie("../internals/engine-v8-version"),Ee=ce("species");_e.exports=function(ye){return Pe>=51||!ge(function(){var Me=[],ve=Me.constructor={};return ve[Ee]=function(){return{foo:1}},Me[ye](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/fails");_e.exports=function(ce,Pe){var Ee=[][ce];return!!Ee&&ge(function(){Ee.call(null,Pe||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/a-callable"),Pe=ie("../internals/to-object"),Ee=ie("../internals/indexed-object"),ye=ie("../internals/length-of-array-like"),Me=ge.TypeError,ve=function(xe){return function(fe,z,ee,ae){ce(z);var re=Pe(fe),le=Ee(re),ue=ye(re),pe=xe?ue-1:0,Te=xe?-1:1;if(ee<2)for(;;){if(pe in le){ae=le[pe],pe+=Te;break}if(pe+=Te,xe?pe<0:ue<=pe)throw Me("Reduce of empty array with no initial value")}for(;xe?pe>=0:ue>pe;pe+=Te)pe in le&&(ae=z(ae,le[pe],pe,re));return ae}};_e.exports={left:ve(!1),right:ve(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/to-absolute-index"),Pe=ie("../internals/length-of-array-like"),Ee=ie("../internals/create-property"),ye=ge.Array,Me=Math.max;_e.exports=function(ve,xe,fe){for(var z=Pe(ve),ee=ce(xe,z),ae=ce(fe===void 0?z:fe,z),re=ye(Me(ae-ee,0)),le=0;ee<ae;ee++,le++)Ee(re,le,ve[ee]);return re.length=le,re}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this");_e.exports=ge([].slice)},{"../internals/function-uncurry-this":157}],118:[function(ie,_e,Ie){var ge=ie("../internals/array-slice-simple"),ce=Math.floor,Pe=function(Me,ve){var xe=Me.length,fe=ce(xe/2);return xe<8?Ee(Me,ve):ye(Me,Pe(ge(Me,0,fe),ve),Pe(ge(Me,fe),ve),ve)},Ee=function(Me,ve){for(var xe=Me.length,fe=1,z,ee;fe<xe;){for(ee=fe,z=Me[fe];ee&&ve(Me[ee-1],z)>0;)Me[ee]=Me[--ee];ee!==fe++&&(Me[ee]=z)}return Me},ye=function(Me,ve,xe,fe){for(var z=ve.length,ee=xe.length,ae=0,re=0;ae<z||re<ee;)Me[ae+re]=ae<z&&re<ee?fe(ve[ae],xe[re])<=0?ve[ae++]:xe[re++]:ae<z?ve[ae++]:xe[re++];return Me};_e.exports=Pe},{"../internals/array-slice-simple":116}],119:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/is-array"),Pe=ie("../internals/is-constructor"),Ee=ie("../internals/is-object"),ye=ie("../internals/well-known-symbol"),Me=ye("species"),ve=ge.Array;_e.exports=function(xe){var fe;return ce(xe)&&(fe=xe.constructor,Pe(fe)&&(fe===ve||ce(fe.prototype))?fe=void 0:Ee(fe)&&(fe=fe[Me],fe===null&&(fe=void 0))),fe===void 0?ve:fe}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(ie,_e,Ie){var ge=ie("../internals/array-species-constructor");_e.exports=function(ce,Pe){return new(ge(ce))(Pe===0?0:Pe)}},{"../internals/array-species-constructor":119}],121:[function(ie,_e,Ie){var ge=ie("../internals/an-object"),ce=ie("../internals/iterator-close");_e.exports=function(Pe,Ee,ye,Me){try{return Me?Ee(ge(ye)[0],ye[1]):Ee(ye)}catch(ve){ce(Pe,"throw",ve)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(ie,_e,Ie){var ge=ie("../internals/well-known-symbol"),ce=ge("iterator"),Pe=!1;try{var Ee=0,ye={next:function(){return{done:!!Ee++}},return:function(){Pe=!0}};ye[ce]=function(){return this},Array.from(ye,function(){throw 2})}catch(Me){}_e.exports=function(Me,ve){if(!ve&&!Pe)return!1;var xe=!1;try{var fe={};fe[ce]=function(){return{next:function(){return{done:xe=!0}}}},Me(fe)}catch(z){}return xe}},{"../internals/well-known-symbol":268}],123:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this"),ce=ge({}.toString),Pe=ge("".slice);_e.exports=function(Ee){return Pe(ce(Ee),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/to-string-tag-support"),Pe=ie("../internals/is-callable"),Ee=ie("../internals/classof-raw"),ye=ie("../internals/well-known-symbol"),Me=ye("toStringTag"),ve=ge.Object,xe=Ee(function(){return arguments}())=="Arguments",fe=function(z,ee){try{return z[ee]}catch(ae){}};_e.exports=ce?Ee:function(z){var ee,ae,re;return z===void 0?"Undefined":z===null?"Null":typeof(ae=fe(ee=ve(z),Me))=="string"?ae:xe?Ee(ee):(re=Ee(ee))=="Object"&&Pe(ee.callee)?"Arguments":re}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(ie,_e,Ie){var ge=ie("../internals/has-own-property"),ce=ie("../internals/own-keys"),Pe=ie("../internals/object-get-own-property-descriptor"),Ee=ie("../internals/object-define-property");_e.exports=function(ye,Me,ve){for(var xe=ce(Me),fe=Ee.f,z=Pe.f,ee=0;ee<xe.length;ee++){var ae=xe[ee];!ge(ye,ae)&&!(ve&&ge(ve,ae))&&fe(ye,ae,z(Me,ae))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(ie,_e,Ie){var ge=ie("../internals/well-known-symbol"),ce=ge("match");_e.exports=function(Pe){var Ee=/./;try{"/./"[Pe](Ee)}catch(ye){try{return Ee[ce]=!1,"/./"[Pe](Ee)}catch(Me){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(ie,_e,Ie){var ge=ie("../internals/fails");_e.exports=!ge(function(){function ce(){}return ce.prototype.constructor=null,Object.getPrototypeOf(new ce)!==ce.prototype})},{"../internals/fails":150}],128:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/iterators-core").IteratorPrototype,ce=ie("../internals/object-create"),Pe=ie("../internals/create-property-descriptor"),Ee=ie("../internals/set-to-string-tag"),ye=ie("../internals/iterators"),Me=function(){return this};_e.exports=function(ve,xe,fe,z){var ee=xe+" Iterator";return ve.prototype=ce(ge,{next:Pe(+!z,fe)}),Ee(ve,ee,!1,!0),ye[ee]=Me,ve}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(ie,_e,Ie){var ge=ie("../internals/descriptors"),ce=ie("../internals/object-define-property"),Pe=ie("../internals/create-property-descriptor");_e.exports=ge?function(Ee,ye,Me){return ce.f(Ee,ye,Pe(1,Me))}:function(Ee,ye,Me){return Ee[ye]=Me,Ee}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(ie,_e,Ie){_e.exports=function(ge,ce){return{enumerable:!(ge&1),configurable:!(ge&2),writable:!(ge&4),value:ce}}},{}],131:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/to-property-key"),ce=ie("../internals/object-define-property"),Pe=ie("../internals/create-property-descriptor");_e.exports=function(Ee,ye,Me){var ve=ge(ye);ve in Ee?ce.f(Ee,ve,Pe(0,Me)):Ee[ve]=Me}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/function-call"),Pe=ie("../internals/is-pure"),Ee=ie("../internals/function-name"),ye=ie("../internals/is-callable"),Me=ie("../internals/create-iterator-constructor"),ve=ie("../internals/object-get-prototype-of"),xe=ie("../internals/object-set-prototype-of"),fe=ie("../internals/set-to-string-tag"),z=ie("../internals/create-non-enumerable-property"),ee=ie("../internals/redefine"),ae=ie("../internals/well-known-symbol"),re=ie("../internals/iterators"),le=ie("../internals/iterators-core"),ue=Ee.PROPER,pe=Ee.CONFIGURABLE,Te=le.IteratorPrototype,Ce=le.BUGGY_SAFARI_ITERATORS,Fe=ae("iterator"),Ae="keys",je="values",Ne="entries",Be=function(){return this};_e.exports=function(ze,Qe,$e,Ye,at,ut,ht){Me($e,Qe,Ye);var Ct=function(Et){if(Et===at&&Pt)return Pt;if(!Ce&&Et in St)return St[Et];switch(Et){case Ae:return function(){return new $e(this,Et)};case je:return function(){return new $e(this,Et)};case Ne:return function(){return new $e(this,Et)}}return function(){return new $e(this)}},et=Qe+" Iterator",it=!1,St=ze.prototype,bt=St[Fe]||St["@@iterator"]||at&&St[at],Pt=!Ce&&bt||Ct(at),gt=Qe=="Array"&&St.entries||bt,dt,mt,kt;if(gt&&(dt=ve(gt.call(new ze)),dt!==Object.prototype&&dt.next&&(!Pe&&ve(dt)!==Te&&(xe?xe(dt,Te):ye(dt[Fe])||ee(dt,Fe,Be)),fe(dt,et,!0,!0),Pe&&(re[et]=Be))),ue&&at==je&&bt&&bt.name!==je&&(!Pe&&pe?z(St,"name",je):(it=!0,Pt=function(){return ce(bt,this)})),at)if(mt={values:Ct(je),keys:ut?Pt:Ct(Ae),entries:Ct(Ne)},ht)for(kt in mt)(Ce||it||!(kt in St))&&ee(St,kt,mt[kt]);else ge({target:Qe,proto:!0,forced:Ce||it},mt);return(!Pe||ht)&&St[Fe]!==Pt&&ee(St,Fe,Pt,{name:at}),re[Qe]=Pt,mt}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(ie,_e,Ie){var ge=ie("../internals/path"),ce=ie("../internals/has-own-property"),Pe=ie("../internals/well-known-symbol-wrapped"),Ee=ie("../internals/object-define-property").f;_e.exports=function(ye){var Me=ge.Symbol||(ge.Symbol={});ce(Me,ye)||Ee(Me,ye,{value:Pe.f(ye)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(ie,_e,Ie){var ge=ie("../internals/fails");_e.exports=!ge(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/is-object"),Pe=ge.document,Ee=ce(Pe)&&ce(Pe.createElement);_e.exports=function(ye){return Ee?Pe.createElement(ye):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(ie,_e,Ie){_e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(ie,_e,Ie){var ge=ie("../internals/document-create-element"),ce=ge("span").classList,Pe=ce&&ce.constructor&&ce.constructor.prototype;_e.exports=Pe===Object.prototype?void 0:Pe},{"../internals/document-create-element":135}],138:[function(ie,_e,Ie){var ge=ie("../internals/engine-user-agent"),ce=ge.match(/firefox\/(\d+)/i);_e.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],139:[function(ie,_e,Ie){_e.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(ie,_e,Ie){var ge=ie("../internals/engine-user-agent");_e.exports=/MSIE|Trident/.test(ge)},{"../internals/engine-user-agent":145}],141:[function(ie,_e,Ie){var ge=ie("../internals/engine-user-agent"),ce=ie("../internals/global");_e.exports=/ipad|iphone|ipod/i.test(ge)&&ce.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(ie,_e,Ie){var ge=ie("../internals/engine-user-agent");_e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ge)},{"../internals/engine-user-agent":145}],143:[function(ie,_e,Ie){var ge=ie("../internals/classof-raw"),ce=ie("../internals/global");_e.exports=ge(ce.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(ie,_e,Ie){var ge=ie("../internals/engine-user-agent");_e.exports=/web0s(?!.*chrome)/i.test(ge)},{"../internals/engine-user-agent":145}],145:[function(ie,_e,Ie){var ge=ie("../internals/get-built-in");_e.exports=ge("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/engine-user-agent"),Pe=ge.process,Ee=ge.Deno,ye=Pe&&Pe.versions||Ee&&Ee.version,Me=ye&&ye.v8,ve,xe;Me&&(ve=Me.split("."),xe=ve[0]>0&&ve[0]<4?1:+(ve[0]+ve[1])),!xe&&ce&&(ve=ce.match(/Edge\/(\d+)/),(!ve||ve[1]>=74)&&(ve=ce.match(/Chrome\/(\d+)/),ve&&(xe=+ve[1]))),_e.exports=xe},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(ie,_e,Ie){var ge=ie("../internals/engine-user-agent"),ce=ge.match(/AppleWebKit\/(\d+)\./);_e.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],148:[function(ie,_e,Ie){_e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/object-get-own-property-descriptor").f,Pe=ie("../internals/create-non-enumerable-property"),Ee=ie("../internals/redefine"),ye=ie("../internals/set-global"),Me=ie("../internals/copy-constructor-properties"),ve=ie("../internals/is-forced");_e.exports=function(xe,fe){var z=xe.target,ee=xe.global,ae=xe.stat,re,le,ue,pe,Te,Ce;if(ee?le=ge:ae?le=ge[z]||ye(z,{}):le=(ge[z]||{}).prototype,le)for(ue in fe){if(Te=fe[ue],xe.noTargetGet?(Ce=ce(le,ue),pe=Ce&&Ce.value):pe=le[ue],re=ve(ee?ue:z+(ae?".":"#")+ue,xe.forced),!re&&pe!==void 0){if(typeof Te==typeof pe)continue;Me(Te,pe)}(xe.sham||pe&&pe.sham)&&Pe(Te,"sham",!0),Ee(le,ue,Te,xe)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(ie,_e,Ie){_e.exports=function(ge){try{return!!ge()}catch(ce){return!0}}},{}],151:[function(ie,_e,Ie){"use strict";ie("../modules/es.regexp.exec");var ge=ie("../internals/function-uncurry-this"),ce=ie("../internals/redefine"),Pe=ie("../internals/regexp-exec"),Ee=ie("../internals/fails"),ye=ie("../internals/well-known-symbol"),Me=ie("../internals/create-non-enumerable-property"),ve=ye("species"),xe=RegExp.prototype;_e.exports=function(fe,z,ee,ae){var re=ye(fe),le=!Ee(function(){var Ce={};return Ce[re]=function(){return 7},""[fe](Ce)!=7}),ue=le&&!Ee(function(){var Ce=!1,Fe=/a/;return fe==="split"&&(Fe={},Fe.constructor={},Fe.constructor[ve]=function(){return Fe},Fe.flags="",Fe[re]=/./[re]),Fe.exec=function(){return Ce=!0,null},Fe[re](""),!Ce});if(!le||!ue||ee){var pe=ge(/./[re]),Te=z(re,""[fe],function(Ce,Fe,Ae,je,Ne){var Be=ge(Ce),ze=Fe.exec;return ze===Pe||ze===xe.exec?le&&!Ne?{done:!0,value:pe(Fe,Ae,je)}:{done:!0,value:Be(Ae,Fe,je)}:{done:!1}});ce(String.prototype,fe,Te[0]),ce(xe,re,Te[1])}ae&&Me(xe[re],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(ie,_e,Ie){var ge=ie("../internals/function-bind-native"),ce=Function.prototype,Pe=ce.apply,Ee=ce.call;_e.exports=typeof Reflect=="object"&&Reflect.apply||(ge?Ee.bind(Pe):function(){return Ee.apply(Pe,arguments)})},{"../internals/function-bind-native":154}],153:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this"),ce=ie("../internals/a-callable"),Pe=ie("../internals/function-bind-native"),Ee=ge(ge.bind);_e.exports=function(ye,Me){return ce(ye),Me===void 0?ye:Pe?Ee(ye,Me):function(){return ye.apply(Me,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(ie,_e,Ie){var ge=ie("../internals/fails");_e.exports=!ge(function(){var ce=function(){}.bind();return typeof ce!="function"||ce.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(ie,_e,Ie){var ge=ie("../internals/function-bind-native"),ce=Function.prototype.call;_e.exports=ge?ce.bind(ce):function(){return ce.apply(ce,arguments)}},{"../internals/function-bind-native":154}],156:[function(ie,_e,Ie){var ge=ie("../internals/descriptors"),ce=ie("../internals/has-own-property"),Pe=Function.prototype,Ee=ge&&Object.getOwnPropertyDescriptor,ye=ce(Pe,"name"),Me=ye&&function(){}.name==="something",ve=ye&&(!ge||ge&&Ee(Pe,"name").configurable);_e.exports={EXISTS:ye,PROPER:Me,CONFIGURABLE:ve}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(ie,_e,Ie){var ge=ie("../internals/function-bind-native"),ce=Function.prototype,Pe=ce.bind,Ee=ce.call,ye=ge&&Pe.bind(Ee,Ee);_e.exports=ge?function(Me){return Me&&ye(Me)}:function(Me){return Me&&function(){return Ee.apply(Me,arguments)}}},{"../internals/function-bind-native":154}],158:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/is-callable"),Pe=function(Ee){return ce(Ee)?Ee:void 0};_e.exports=function(Ee,ye){return arguments.length<2?Pe(ge[Ee]):ge[Ee]&&ge[Ee][ye]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(ie,_e,Ie){var ge=ie("../internals/classof"),ce=ie("../internals/get-method"),Pe=ie("../internals/iterators"),Ee=ie("../internals/well-known-symbol"),ye=Ee("iterator");_e.exports=function(Me){if(Me!=null)return ce(Me,ye)||ce(Me,"@@iterator")||Pe[ge(Me)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/function-call"),Pe=ie("../internals/a-callable"),Ee=ie("../internals/an-object"),ye=ie("../internals/try-to-string"),Me=ie("../internals/get-iterator-method"),ve=ge.TypeError;_e.exports=function(xe,fe){var z=arguments.length<2?Me(xe):fe;if(Pe(z))return Ee(ce(z,xe));throw ve(ye(xe)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(ie,_e,Ie){var ge=ie("../internals/a-callable");_e.exports=function(ce,Pe){var Ee=ce[Pe];return Ee==null?void 0:ge(Ee)}},{"../internals/a-callable":95}],162:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this"),ce=ie("../internals/to-object"),Pe=Math.floor,Ee=ge("".charAt),ye=ge("".replace),Me=ge("".slice),ve=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xe=/\$([$&'`]|\d{1,2})/g;_e.exports=function(fe,z,ee,ae,re,le){var ue=ee+fe.length,pe=ae.length,Te=xe;return re!==void 0&&(re=ce(re),Te=ve),ye(le,Te,function(Ce,Fe){var Ae;switch(Ee(Fe,0)){case"$":return"$";case"&":return fe;case"`":return Me(z,0,ee);case"'":return Me(z,ue);case"<":Ae=re[Me(Fe,1,-1)];break;default:var je=+Fe;if(je===0)return Ce;if(je>pe){var Ne=Pe(je/10);return Ne===0?Ce:Ne<=pe?ae[Ne-1]===void 0?Ee(Fe,1):ae[Ne-1]+Ee(Fe,1):Ce}Ae=ae[je-1]}return Ae===void 0?"":Ae})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(ie,_e,Ie){(function(ge){(function(){var ce=function(Pe){return Pe&&Pe.Math==Math&&Pe};_e.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof ge=="object"&&ge)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this"),ce=ie("../internals/to-object"),Pe=ge({}.hasOwnProperty);_e.exports=Object.hasOwn||function(ye,Me){return Pe(ce(ye),Me)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(ie,_e,Ie){_e.exports={}},{}],166:[function(ie,_e,Ie){var ge=ie("../internals/global");_e.exports=function(ce,Pe){var Ee=ge.console;Ee&&Ee.error&&(arguments.length==1?Ee.error(ce):Ee.error(ce,Pe))}},{"../internals/global":163}],167:[function(ie,_e,Ie){var ge=ie("../internals/get-built-in");_e.exports=ge("document","documentElement")},{"../internals/get-built-in":158}],168:[function(ie,_e,Ie){var ge=ie("../internals/descriptors"),ce=ie("../internals/fails"),Pe=ie("../internals/document-create-element");_e.exports=!ge&&!ce(function(){return Object.defineProperty(Pe("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ge.Array,Pe=Math.abs,Ee=Math.pow,ye=Math.floor,Me=Math.log,ve=Math.LN2,xe=function(z,ee,ae){var re=ce(ae),le=ae*8-ee-1,ue=(1<<le)-1,pe=ue>>1,Te=ee===23?Ee(2,-24)-Ee(2,-77):0,Ce=z<0||z===0&&1/z<0?1:0,Fe=0,Ae,je,Ne;for(z=Pe(z),z!=z||z===1/0?(je=z!=z?1:0,Ae=ue):(Ae=ye(Me(z)/ve),Ne=Ee(2,-Ae),z*Ne<1&&(Ae--,Ne*=2),Ae+pe>=1?z+=Te/Ne:z+=Te*Ee(2,1-pe),z*Ne>=2&&(Ae++,Ne/=2),Ae+pe>=ue?(je=0,Ae=ue):Ae+pe>=1?(je=(z*Ne-1)*Ee(2,ee),Ae=Ae+pe):(je=z*Ee(2,pe-1)*Ee(2,ee),Ae=0));ee>=8;)re[Fe++]=je&255,je/=256,ee-=8;for(Ae=Ae<<ee|je,le+=ee;le>0;)re[Fe++]=Ae&255,Ae/=256,le-=8;return re[--Fe]|=Ce*128,re},fe=function(z,ee){var ae=z.length,re=ae*8-ee-1,le=(1<<re)-1,ue=le>>1,pe=re-7,Te=ae-1,Ce=z[Te--],Fe=Ce&127,Ae;for(Ce>>=7;pe>0;)Fe=Fe*256+z[Te--],pe-=8;for(Ae=Fe&(1<<-pe)-1,Fe>>=-pe,pe+=ee;pe>0;)Ae=Ae*256+z[Te--],pe-=8;if(Fe===0)Fe=1-ue;else{if(Fe===le)return Ae?NaN:Ce?-1/0:1/0;Ae=Ae+Ee(2,ee),Fe=Fe-ue}return(Ce?-1:1)*Ae*Ee(2,Fe-ee)};_e.exports={pack:xe,unpack:fe}},{"../internals/global":163}],170:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/fails"),Ee=ie("../internals/classof-raw"),ye=ge.Object,Me=ce("".split);_e.exports=Pe(function(){return!ye("z").propertyIsEnumerable(0)})?function(ve){return Ee(ve)=="String"?Me(ve,""):ye(ve)}:ye},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(ie,_e,Ie){var ge=ie("../internals/is-callable"),ce=ie("../internals/is-object"),Pe=ie("../internals/object-set-prototype-of");_e.exports=function(Ee,ye,Me){var ve,xe;return Pe&&ge(ve=ye.constructor)&&ve!==Me&&ce(xe=ve.prototype)&&xe!==Me.prototype&&Pe(Ee,xe),Ee}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this"),ce=ie("../internals/is-callable"),Pe=ie("../internals/shared-store"),Ee=ge(Function.toString);ce(Pe.inspectSource)||(Pe.inspectSource=function(ye){return Ee(ye)}),_e.exports=Pe.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(ie,_e,Ie){var ge=ie("../internals/native-weak-map"),ce=ie("../internals/global"),Pe=ie("../internals/function-uncurry-this"),Ee=ie("../internals/is-object"),ye=ie("../internals/create-non-enumerable-property"),Me=ie("../internals/has-own-property"),ve=ie("../internals/shared-store"),xe=ie("../internals/shared-key"),fe=ie("../internals/hidden-keys"),z="Object already initialized",ee=ce.TypeError,ae=ce.WeakMap,re,le,ue,pe=function(Be){return ue(Be)?le(Be):re(Be,{})},Te=function(Be){return function(ze){var Qe;if(!Ee(ze)||(Qe=le(ze)).type!==Be)throw ee("Incompatible receiver, "+Be+" required");return Qe}};if(ge||ve.state){var Ce=ve.state||(ve.state=new ae),Fe=Pe(Ce.get),Ae=Pe(Ce.has),je=Pe(Ce.set);re=function(Be,ze){if(Ae(Ce,Be))throw new ee(z);return ze.facade=Be,je(Ce,Be,ze),ze},le=function(Be){return Fe(Ce,Be)||{}},ue=function(Be){return Ae(Ce,Be)}}else{var Ne=xe("state");fe[Ne]=!0,re=function(Be,ze){if(Me(Be,Ne))throw new ee(z);return ze.facade=Be,ye(Be,Ne,ze),ze},le=function(Be){return Me(Be,Ne)?Be[Ne]:{}},ue=function(Be){return Me(Be,Ne)}}_e.exports={set:re,get:le,has:ue,enforce:pe,getterFor:Te}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(ie,_e,Ie){var ge=ie("../internals/well-known-symbol"),ce=ie("../internals/iterators"),Pe=ge("iterator"),Ee=Array.prototype;_e.exports=function(ye){return ye!==void 0&&(ce.Array===ye||Ee[Pe]===ye)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(ie,_e,Ie){var ge=ie("../internals/classof-raw");_e.exports=Array.isArray||function(Pe){return ge(Pe)=="Array"}},{"../internals/classof-raw":123}],176:[function(ie,_e,Ie){_e.exports=function(ge){return typeof ge=="function"}},{}],177:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this"),ce=ie("../internals/fails"),Pe=ie("../internals/is-callable"),Ee=ie("../internals/classof"),ye=ie("../internals/get-built-in"),Me=ie("../internals/inspect-source"),ve=function(){},xe=[],fe=ye("Reflect","construct"),z=/^\s*(?:class|function)\b/,ee=ge(z.exec),ae=!z.exec(ve),re=function(pe){if(!Pe(pe))return!1;try{return fe(ve,xe,pe),!0}catch(Te){return!1}},le=function(pe){if(!Pe(pe))return!1;switch(Ee(pe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!ee(z,Me(pe))}catch(Te){return!0}};le.sham=!0,_e.exports=!fe||ce(function(){var ue;return re(re.call)||!re(Object)||!re(function(){ue=!0})||ue})?le:re},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(ie,_e,Ie){var ge=ie("../internals/fails"),ce=ie("../internals/is-callable"),Pe=/#|\.prototype\./,Ee=function(fe,z){var ee=Me[ye(fe)];return ee==xe?!0:ee==ve?!1:ce(z)?ge(z):!!z},ye=Ee.normalize=function(fe){return String(fe).replace(Pe,".").toLowerCase()},Me=Ee.data={},ve=Ee.NATIVE="N",xe=Ee.POLYFILL="P";_e.exports=Ee},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(ie,_e,Ie){var ge=ie("../internals/is-object"),ce=Math.floor;_e.exports=Number.isInteger||function(Ee){return!ge(Ee)&&isFinite(Ee)&&ce(Ee)===Ee}},{"../internals/is-object":180}],180:[function(ie,_e,Ie){var ge=ie("../internals/is-callable");_e.exports=function(ce){return typeof ce=="object"?ce!==null:ge(ce)}},{"../internals/is-callable":176}],181:[function(ie,_e,Ie){_e.exports=!1},{}],182:[function(ie,_e,Ie){var ge=ie("../internals/is-object"),ce=ie("../internals/classof-raw"),Pe=ie("../internals/well-known-symbol"),Ee=Pe("match");_e.exports=function(ye){var Me;return ge(ye)&&((Me=ye[Ee])!==void 0?!!Me:ce(ye)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/get-built-in"),Pe=ie("../internals/is-callable"),Ee=ie("../internals/object-is-prototype-of"),ye=ie("../internals/use-symbol-as-uid"),Me=ge.Object;_e.exports=ye?function(ve){return typeof ve=="symbol"}:function(ve){var xe=ce("Symbol");return Pe(xe)&&Ee(xe.prototype,Me(ve))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/function-bind-context"),Pe=ie("../internals/function-call"),Ee=ie("../internals/an-object"),ye=ie("../internals/try-to-string"),Me=ie("../internals/is-array-iterator-method"),ve=ie("../internals/length-of-array-like"),xe=ie("../internals/object-is-prototype-of"),fe=ie("../internals/get-iterator"),z=ie("../internals/get-iterator-method"),ee=ie("../internals/iterator-close"),ae=ge.TypeError,re=function(ue,pe){this.stopped=ue,this.result=pe},le=re.prototype;_e.exports=function(ue,pe,Te){var Ce=Te&&Te.that,Fe=!!(Te&&Te.AS_ENTRIES),Ae=!!(Te&&Te.IS_ITERATOR),je=!!(Te&&Te.INTERRUPTED),Ne=ce(pe,Ce),Be,ze,Qe,$e,Ye,at,ut,ht=function(et){return Be&&ee(Be,"normal",et),new re(!0,et)},Ct=function(et){return Fe?(Ee(et),je?Ne(et[0],et[1],ht):Ne(et[0],et[1])):je?Ne(et,ht):Ne(et)};if(Ae)Be=ue;else{if(ze=z(ue),!ze)throw ae(ye(ue)+" is not iterable");if(Me(ze)){for(Qe=0,$e=ve(ue);$e>Qe;Qe++)if(Ye=Ct(ue[Qe]),Ye&&xe(le,Ye))return Ye;return new re(!1)}Be=fe(ue,ze)}for(at=Be.next;!(ut=Pe(at,Be)).done;){try{Ye=Ct(ut.value)}catch(et){ee(Be,"throw",et)}if(typeof Ye=="object"&&Ye&&xe(le,Ye))return Ye}return new re(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(ie,_e,Ie){var ge=ie("../internals/function-call"),ce=ie("../internals/an-object"),Pe=ie("../internals/get-method");_e.exports=function(Ee,ye,Me){var ve,xe;ce(Ee);try{if(ve=Pe(Ee,"return"),!ve){if(ye==="throw")throw Me;return Me}ve=ge(ve,Ee)}catch(fe){xe=!0,ve=fe}if(ye==="throw")throw Me;if(xe)throw ve;return ce(ve),Me}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/fails"),ce=ie("../internals/is-callable"),Pe=ie("../internals/object-create"),Ee=ie("../internals/object-get-prototype-of"),ye=ie("../internals/redefine"),Me=ie("../internals/well-known-symbol"),ve=ie("../internals/is-pure"),xe=Me("iterator"),fe=!1,z,ee,ae;[].keys&&(ae=[].keys(),"next"in ae?(ee=Ee(Ee(ae)),ee!==Object.prototype&&(z=ee)):fe=!0);var re=z==null||ge(function(){var le={};return z[xe].call(le)!==le});re?z={}:ve&&(z=Pe(z)),ce(z[xe])||ye(z,xe,function(){return this}),_e.exports={IteratorPrototype:z,BUGGY_SAFARI_ITERATORS:fe}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(ie,_e,Ie){arguments[4][165][0].apply(Ie,arguments)},{dup:165}],188:[function(ie,_e,Ie){var ge=ie("../internals/to-length");_e.exports=function(ce){return ge(ce.length)}},{"../internals/to-length":249}],189:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/function-bind-context"),Pe=ie("../internals/object-get-own-property-descriptor").f,Ee=ie("../internals/task").set,ye=ie("../internals/engine-is-ios"),Me=ie("../internals/engine-is-ios-pebble"),ve=ie("../internals/engine-is-webos-webkit"),xe=ie("../internals/engine-is-node"),fe=ge.MutationObserver||ge.WebKitMutationObserver,z=ge.document,ee=ge.process,ae=ge.Promise,re=Pe(ge,"queueMicrotask"),le=re&&re.value,ue,pe,Te,Ce,Fe,Ae,je,Ne;le||(ue=function(){var Be,ze;for(xe&&(Be=ee.domain)&&Be.exit();pe;){ze=pe.fn,pe=pe.next;try{ze()}catch(Qe){throw pe?Ce():Te=void 0,Qe}}Te=void 0,Be&&Be.enter()},!ye&&!xe&&!ve&&fe&&z?(Fe=!0,Ae=z.createTextNode(""),new fe(ue).observe(Ae,{characterData:!0}),Ce=function(){Ae.data=Fe=!Fe}):!Me&&ae&&ae.resolve?(je=ae.resolve(void 0),je.constructor=ae,Ne=ce(je.then,je),Ce=function(){Ne(ue)}):xe?Ce=function(){ee.nextTick(ue)}:(Ee=ce(Ee,ge),Ce=function(){Ee(ue)})),_e.exports=le||function(Be){var ze={fn:Be,next:void 0};Te&&(Te.next=ze),pe||(pe=ze,Ce()),Te=ze}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(ie,_e,Ie){var ge=ie("../internals/native-symbol");_e.exports=ge&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(ie,_e,Ie){var ge=ie("../internals/engine-v8-version"),ce=ie("../internals/fails");_e.exports=!!Object.getOwnPropertySymbols&&!ce(function(){var Pe=Symbol();return!String(Pe)||!(Object(Pe)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/is-callable"),Pe=ie("../internals/inspect-source"),Ee=ge.WeakMap;_e.exports=ce(Ee)&&/native code/.test(Pe(Ee))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/a-callable"),ce=function(Pe){var Ee,ye;this.promise=new Pe(function(Me,ve){if(Ee!==void 0||ye!==void 0)throw TypeError("Bad Promise constructor");Ee=Me,ye=ve}),this.resolve=ge(Ee),this.reject=ge(ye)};_e.exports.f=function(Pe){return new ce(Pe)}},{"../internals/a-callable":95}],194:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/is-regexp"),Pe=ge.TypeError;_e.exports=function(Ee){if(ce(Ee))throw Pe("The method doesn't accept regular expressions");return Ee}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/descriptors"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/function-call"),Ee=ie("../internals/fails"),ye=ie("../internals/object-keys"),Me=ie("../internals/object-get-own-property-symbols"),ve=ie("../internals/object-property-is-enumerable"),xe=ie("../internals/to-object"),fe=ie("../internals/indexed-object"),z=Object.assign,ee=Object.defineProperty,ae=ce([].concat);_e.exports=!z||Ee(function(){if(ge&&z({b:1},z(ee({},"a",{enumerable:!0,get:function(){ee(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var re={},le={},ue=Symbol(),pe="abcdefghijklmnopqrst";return re[ue]=7,pe.split("").forEach(function(Te){le[Te]=Te}),z({},re)[ue]!=7||ye(z({},le)).join("")!=pe})?function(le,ue){for(var pe=xe(le),Te=arguments.length,Ce=1,Fe=Me.f,Ae=ve.f;Te>Ce;)for(var je=fe(arguments[Ce++]),Ne=Fe?ae(ye(je),Fe(je)):ye(je),Be=Ne.length,ze=0,Qe;Be>ze;)Qe=Ne[ze++],(!ge||Pe(Ae,je,Qe))&&(pe[Qe]=je[Qe]);return pe}:z},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(ie,_e,Ie){var ge=ie("../internals/an-object"),ce=ie("../internals/object-define-properties"),Pe=ie("../internals/enum-bug-keys"),Ee=ie("../internals/hidden-keys"),ye=ie("../internals/html"),Me=ie("../internals/document-create-element"),ve=ie("../internals/shared-key"),xe=">",fe="<",z="prototype",ee="script",ae=ve("IE_PROTO"),re=function(){},le=function(Fe){return fe+ee+xe+Fe+fe+"/"+ee+xe},ue=function(Fe){Fe.write(le("")),Fe.close();var Ae=Fe.parentWindow.Object;return Fe=null,Ae},pe=function(){var Fe=Me("iframe"),Ae="java"+ee+":",je;return Fe.style.display="none",ye.appendChild(Fe),Fe.src=String(Ae),je=Fe.contentWindow.document,je.open(),je.write(le("document.F=Object")),je.close(),je.F},Te,Ce=function(){try{Te=new ActiveXObject("htmlfile")}catch(Ae){}Ce=typeof document!="undefined"?document.domain&&Te?ue(Te):pe():ue(Te);for(var Fe=Pe.length;Fe--;)delete Ce[z][Pe[Fe]];return Ce()};Ee[ae]=!0,_e.exports=Object.create||function(Ae,je){var Ne;return Ae!==null?(re[z]=ge(Ae),Ne=new re,re[z]=null,Ne[ae]=Ae):Ne=Ce(),je===void 0?Ne:ce.f(Ne,je)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(ie,_e,Ie){var ge=ie("../internals/descriptors"),ce=ie("../internals/v8-prototype-define-bug"),Pe=ie("../internals/object-define-property"),Ee=ie("../internals/an-object"),ye=ie("../internals/to-indexed-object"),Me=ie("../internals/object-keys");Ie.f=ge&&!ce?Object.defineProperties:function(xe,fe){Ee(xe);for(var z=ye(fe),ee=Me(fe),ae=ee.length,re=0,le;ae>re;)Pe.f(xe,le=ee[re++],z[le]);return xe}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/descriptors"),Pe=ie("../internals/ie8-dom-define"),Ee=ie("../internals/v8-prototype-define-bug"),ye=ie("../internals/an-object"),Me=ie("../internals/to-property-key"),ve=ge.TypeError,xe=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,z="enumerable",ee="configurable",ae="writable";Ie.f=ce?Ee?function(le,ue,pe){if(ye(le),ue=Me(ue),ye(pe),typeof le=="function"&&ue==="prototype"&&"value"in pe&&ae in pe&&!pe[ae]){var Te=fe(le,ue);Te&&Te[ae]&&(le[ue]=pe.value,pe={configurable:ee in pe?pe[ee]:Te[ee],enumerable:z in pe?pe[z]:Te[z],writable:!1})}return xe(le,ue,pe)}:xe:function(le,ue,pe){if(ye(le),ue=Me(ue),ye(pe),Pe)try{return xe(le,ue,pe)}catch(Te){}if("get"in pe||"set"in pe)throw ve("Accessors not supported");return"value"in pe&&(le[ue]=pe.value),le}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(ie,_e,Ie){var ge=ie("../internals/descriptors"),ce=ie("../internals/function-call"),Pe=ie("../internals/object-property-is-enumerable"),Ee=ie("../internals/create-property-descriptor"),ye=ie("../internals/to-indexed-object"),Me=ie("../internals/to-property-key"),ve=ie("../internals/has-own-property"),xe=ie("../internals/ie8-dom-define"),fe=Object.getOwnPropertyDescriptor;Ie.f=ge?fe:function(ee,ae){if(ee=ye(ee),ae=Me(ae),xe)try{return fe(ee,ae)}catch(re){}if(ve(ee,ae))return Ee(!ce(Pe.f,ee,ae),ee[ae])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(ie,_e,Ie){var ge=ie("../internals/classof-raw"),ce=ie("../internals/to-indexed-object"),Pe=ie("../internals/object-get-own-property-names").f,Ee=ie("../internals/array-slice-simple"),ye=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Me=function(ve){try{return Pe(ve)}catch(xe){return Ee(ye)}};_e.exports.f=function(xe){return ye&&ge(xe)=="Window"?Me(xe):Pe(ce(xe))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(ie,_e,Ie){var ge=ie("../internals/object-keys-internal"),ce=ie("../internals/enum-bug-keys"),Pe=ce.concat("length","prototype");Ie.f=Object.getOwnPropertyNames||function(ye){return ge(ye,Pe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(ie,_e,Ie){Ie.f=Object.getOwnPropertySymbols},{}],203:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/has-own-property"),Pe=ie("../internals/is-callable"),Ee=ie("../internals/to-object"),ye=ie("../internals/shared-key"),Me=ie("../internals/correct-prototype-getter"),ve=ye("IE_PROTO"),xe=ge.Object,fe=xe.prototype;_e.exports=Me?xe.getPrototypeOf:function(z){var ee=Ee(z);if(ce(ee,ve))return ee[ve];var ae=ee.constructor;return Pe(ae)&&ee instanceof ae?ae.prototype:ee instanceof xe?fe:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this");_e.exports=ge({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this"),ce=ie("../internals/has-own-property"),Pe=ie("../internals/to-indexed-object"),Ee=ie("../internals/array-includes").indexOf,ye=ie("../internals/hidden-keys"),Me=ge([].push);_e.exports=function(ve,xe){var fe=Pe(ve),z=0,ee=[],ae;for(ae in fe)!ce(ye,ae)&&ce(fe,ae)&&Me(ee,ae);for(;xe.length>z;)ce(fe,ae=xe[z++])&&(~Ee(ee,ae)||Me(ee,ae));return ee}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(ie,_e,Ie){var ge=ie("../internals/object-keys-internal"),ce=ie("../internals/enum-bug-keys");_e.exports=Object.keys||function(Ee){return ge(Ee,ce)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(ie,_e,Ie){"use strict";var ge={}.propertyIsEnumerable,ce=Object.getOwnPropertyDescriptor,Pe=ce&&!ge.call({1:2},1);Ie.f=Pe?function(ye){var Me=ce(this,ye);return!!Me&&Me.enumerable}:ge},{}],208:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this"),ce=ie("../internals/an-object"),Pe=ie("../internals/a-possible-prototype");_e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Ee=!1,ye={},Me;try{Me=ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),Me(ye,[]),Ee=ye instanceof Array}catch(ve){}return function(xe,fe){return ce(xe),Pe(fe),Ee?Me(xe,fe):xe.__proto__=fe,xe}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(ie,_e,Ie){var ge=ie("../internals/descriptors"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/object-keys"),Ee=ie("../internals/to-indexed-object"),ye=ie("../internals/object-property-is-enumerable").f,Me=ce(ye),ve=ce([].push),xe=function(fe){return function(z){for(var ee=Ee(z),ae=Pe(ee),re=ae.length,le=0,ue=[],pe;re>le;)pe=ae[le++],(!ge||Me(ee,pe))&&ve(ue,fe?[pe,ee[pe]]:ee[pe]);return ue}};_e.exports={entries:xe(!0),values:xe(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/to-string-tag-support"),ce=ie("../internals/classof");_e.exports=ge?{}.toString:function(){return"[object "+ce(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/function-call"),Pe=ie("../internals/is-callable"),Ee=ie("../internals/is-object"),ye=ge.TypeError;_e.exports=function(Me,ve){var xe,fe;if(ve==="string"&&Pe(xe=Me.toString)&&!Ee(fe=ce(xe,Me))||Pe(xe=Me.valueOf)&&!Ee(fe=ce(xe,Me))||ve!=="string"&&Pe(xe=Me.toString)&&!Ee(fe=ce(xe,Me)))return fe;throw ye("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(ie,_e,Ie){var ge=ie("../internals/get-built-in"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/object-get-own-property-names"),Ee=ie("../internals/object-get-own-property-symbols"),ye=ie("../internals/an-object"),Me=ce([].concat);_e.exports=ge("Reflect","ownKeys")||function(xe){var fe=Pe.f(ye(xe)),z=Ee.f;return z?Me(fe,z(xe)):fe}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(ie,_e,Ie){var ge=ie("../internals/global");_e.exports=ge},{"../internals/global":163}],214:[function(ie,_e,Ie){_e.exports=function(ge){try{return{error:!1,value:ge()}}catch(ce){return{error:!0,value:ce}}}},{}],215:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/promise-native-constructor"),Pe=ie("../internals/is-callable"),Ee=ie("../internals/is-forced"),ye=ie("../internals/inspect-source"),Me=ie("../internals/well-known-symbol"),ve=ie("../internals/engine-is-browser"),xe=ie("../internals/is-pure"),fe=ie("../internals/engine-v8-version"),z=ce&&ce.prototype,ee=Me("species"),ae=!1,re=Pe(ge.PromiseRejectionEvent),le=Ee("Promise",function(){var ue=ye(ce),pe=ue!==String(ce);if(!pe&&fe===66||xe&&!(z.catch&&z.finally))return!0;if(fe>=51&&/native code/.test(ue))return!1;var Te=new ce(function(Ae){Ae(1)}),Ce=function(Ae){Ae(function(){},function(){})},Fe=Te.constructor={};return Fe[ee]=Ce,ae=Te.then(function(){})instanceof Ce,ae?!pe&&ve&&!re:!0});_e.exports={CONSTRUCTOR:le,REJECTION_EVENT:re,SUBCLASSING:ae}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(ie,_e,Ie){var ge=ie("../internals/global");_e.exports=ge.Promise},{"../internals/global":163}],217:[function(ie,_e,Ie){var ge=ie("../internals/an-object"),ce=ie("../internals/is-object"),Pe=ie("../internals/new-promise-capability");_e.exports=function(Ee,ye){if(ge(Ee),ce(ye)&&ye.constructor===Ee)return ye;var Me=Pe.f(Ee),ve=Me.resolve;return ve(ye),Me.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(ie,_e,Ie){var ge=ie("../internals/promise-native-constructor"),ce=ie("../internals/check-correctness-of-iteration"),Pe=ie("../internals/promise-constructor-detection").CONSTRUCTOR;_e.exports=Pe||!ce(function(Ee){ge.all(Ee).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(ie,_e,Ie){var ge=ie("../internals/object-define-property").f;_e.exports=function(ce,Pe,Ee){Ee in ce||ge(ce,Ee,{configurable:!0,get:function(){return Pe[Ee]},set:function(ye){Pe[Ee]=ye}})}},{"../internals/object-define-property":198}],220:[function(ie,_e,Ie){var ge=function(){this.head=null,this.tail=null};ge.prototype={add:function(ce){var Pe={item:ce,next:null};this.head?this.tail.next=Pe:this.head=Pe,this.tail=Pe},get:function(){var ce=this.head;if(ce)return this.head=ce.next,this.tail===ce&&(this.tail=null),ce.item}},_e.exports=ge},{}],221:[function(ie,_e,Ie){var ge=ie("../internals/redefine");_e.exports=function(ce,Pe,Ee){for(var ye in Pe)ge(ce,ye,Pe[ye],Ee);return ce}},{"../internals/redefine":222}],222:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/is-callable"),Pe=ie("../internals/has-own-property"),Ee=ie("../internals/create-non-enumerable-property"),ye=ie("../internals/set-global"),Me=ie("../internals/inspect-source"),ve=ie("../internals/internal-state"),xe=ie("../internals/function-name").CONFIGURABLE,fe=ve.get,z=ve.enforce,ee=String(String).split("String");(_e.exports=function(ae,re,le,ue){var pe=ue?!!ue.unsafe:!1,Te=ue?!!ue.enumerable:!1,Ce=ue?!!ue.noTargetGet:!1,Fe=ue&&ue.name!==void 0?ue.name:re,Ae;if(ce(le)&&(String(Fe).slice(0,7)==="Symbol("&&(Fe="["+String(Fe).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Pe(le,"name")||xe&&le.name!==Fe)&&Ee(le,"name",Fe),Ae=z(le),Ae.source||(Ae.source=ee.join(typeof Fe=="string"?Fe:""))),ae===ge){Te?ae[re]=le:ye(re,le);return}else pe?!Ce&&ae[re]&&(Te=!0):delete ae[re];Te?ae[re]=le:Ee(ae,re,le)})(Function.prototype,"toString",function(){return ce(this)&&fe(this).source||Me(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/function-call"),Pe=ie("../internals/an-object"),Ee=ie("../internals/is-callable"),ye=ie("../internals/classof-raw"),Me=ie("../internals/regexp-exec"),ve=ge.TypeError;_e.exports=function(xe,fe){var z=xe.exec;if(Ee(z)){var ee=ce(z,xe,fe);return ee!==null&&Pe(ee),ee}if(ye(xe)==="RegExp")return ce(Me,xe,fe);throw ve("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/function-call"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/to-string"),Ee=ie("../internals/regexp-flags"),ye=ie("../internals/regexp-sticky-helpers"),Me=ie("../internals/shared"),ve=ie("../internals/object-create"),xe=ie("../internals/internal-state").get,fe=ie("../internals/regexp-unsupported-dot-all"),z=ie("../internals/regexp-unsupported-ncg"),ee=Me("native-string-replace",String.prototype.replace),ae=RegExp.prototype.exec,re=ae,le=ce("".charAt),ue=ce("".indexOf),pe=ce("".replace),Te=ce("".slice),Ce=function(){var Ne=/a/,Be=/b*/g;return ge(ae,Ne,"a"),ge(ae,Be,"a"),Ne.lastIndex!==0||Be.lastIndex!==0}(),Fe=ye.BROKEN_CARET,Ae=/()??/.exec("")[1]!==void 0,je=Ce||Ae||Fe||fe||z;je&&(re=function(Be){var ze=this,Qe=xe(ze),$e=Pe(Be),Ye=Qe.raw,at,ut,ht,Ct,et,it,St;if(Ye)return Ye.lastIndex=ze.lastIndex,at=ge(re,Ye,$e),ze.lastIndex=Ye.lastIndex,at;var bt=Qe.groups,Pt=Fe&&ze.sticky,gt=ge(Ee,ze),dt=ze.source,mt=0,kt=$e;if(Pt&&(gt=pe(gt,"y",""),ue(gt,"g")===-1&&(gt+="g"),kt=Te($e,ze.lastIndex),ze.lastIndex>0&&(!ze.multiline||ze.multiline&&le($e,ze.lastIndex-1)!==`
|
|
|
`)&&(dt="(?: "+dt+")",kt=" "+kt,mt++),ut=new RegExp("^(?:"+dt+")",gt)),Ae&&(ut=new RegExp("^"+dt+"$(?!\\s)",gt)),Ce&&(ht=ze.lastIndex),Ct=ge(ae,Pt?ut:ze,kt),Pt?Ct?(Ct.input=Te(Ct.input,mt),Ct[0]=Te(Ct[0],mt),Ct.index=ze.lastIndex,ze.lastIndex+=Ct[0].length):ze.lastIndex=0:Ce&&Ct&&(ze.lastIndex=ze.global?Ct.index+Ct[0].length:ht),Ae&&Ct&&Ct.length>1&&ge(ee,Ct[0],ut,function(){for(et=1;et<arguments.length-2;et++)arguments[et]===void 0&&(Ct[et]=void 0)}),Ct&&bt)for(Ct.groups=it=ve(null),et=0;et<bt.length;et++)St=bt[et],it[St[0]]=Ct[St[1]];return Ct}),_e.exports=re},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/an-object");_e.exports=function(){var ce=ge(this),Pe="";return ce.hasIndices&&(Pe+="d"),ce.global&&(Pe+="g"),ce.ignoreCase&&(Pe+="i"),ce.multiline&&(Pe+="m"),ce.dotAll&&(Pe+="s"),ce.unicode&&(Pe+="u"),ce.sticky&&(Pe+="y"),Pe}},{"../internals/an-object":101}],226:[function(ie,_e,Ie){var ge=ie("../internals/function-call"),ce=ie("../internals/has-own-property"),Pe=ie("../internals/object-is-prototype-of"),Ee=ie("../internals/regexp-flags"),ye=RegExp.prototype;_e.exports=function(Me){var ve=Me.flags;return ve===void 0&&!("flags"in ye)&&!ce(Me,"flags")&&Pe(ye,Me)?ge(Ee,Me):ve}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(ie,_e,Ie){var ge=ie("../internals/fails"),ce=ie("../internals/global"),Pe=ce.RegExp,Ee=ge(function(){var ve=Pe("a","y");return ve.lastIndex=2,ve.exec("abcd")!=null}),ye=Ee||ge(function(){return!Pe("a","y").sticky}),Me=Ee||ge(function(){var ve=Pe("^r","gy");return ve.lastIndex=2,ve.exec("str")!=null});_e.exports={BROKEN_CARET:Me,MISSED_STICKY:ye,UNSUPPORTED_Y:Ee}},{"../internals/fails":150,"../internals/global":163}],228:[function(ie,_e,Ie){var ge=ie("../internals/fails"),ce=ie("../internals/global"),Pe=ce.RegExp;_e.exports=ge(function(){var Ee=Pe(".","s");return!(Ee.dotAll&&Ee.exec(`
|
|
|
`)&&Ee.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(ie,_e,Ie){var ge=ie("../internals/fails"),ce=ie("../internals/global"),Pe=ce.RegExp;_e.exports=ge(function(){var Ee=Pe("(?<a>b)","g");return Ee.exec("b").groups.a!=="b"||"b".replace(Ee,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ge.TypeError;_e.exports=function(Pe){if(Pe==null)throw ce("Can't call method on "+Pe);return Pe}},{"../internals/global":163}],231:[function(ie,_e,Ie){_e.exports=Object.is||function(ce,Pe){return ce===Pe?ce!==0||1/ce===1/Pe:ce!=ce&&Pe!=Pe}},{}],232:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=Object.defineProperty;_e.exports=function(Pe,Ee){try{ce(ge,Pe,{value:Ee,configurable:!0,writable:!0})}catch(ye){ge[Pe]=Ee}return Ee}},{"../internals/global":163}],233:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/get-built-in"),ce=ie("../internals/object-define-property"),Pe=ie("../internals/well-known-symbol"),Ee=ie("../internals/descriptors"),ye=Pe("species");_e.exports=function(Me){var ve=ge(Me),xe=ce.f;Ee&&ve&&!ve[ye]&&xe(ve,ye,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(ie,_e,Ie){var ge=ie("../internals/object-define-property").f,ce=ie("../internals/has-own-property"),Pe=ie("../internals/well-known-symbol"),Ee=Pe("toStringTag");_e.exports=function(ye,Me,ve){ye&&!ve&&(ye=ye.prototype),ye&&!ce(ye,Ee)&&ge(ye,Ee,{configurable:!0,value:Me})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(ie,_e,Ie){var ge=ie("../internals/shared"),ce=ie("../internals/uid"),Pe=ge("keys");_e.exports=function(Ee){return Pe[Ee]||(Pe[Ee]=ce(Ee))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/set-global"),Pe="__core-js_shared__",Ee=ge[Pe]||ce(Pe,{});_e.exports=Ee},{"../internals/global":163,"../internals/set-global":232}],237:[function(ie,_e,Ie){var ge=ie("../internals/is-pure"),ce=ie("../internals/shared-store");(_e.exports=function(Pe,Ee){return ce[Pe]||(ce[Pe]=Ee!==void 0?Ee:{})})("versions",[]).push({version:"3.22.1",mode:ge?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(ie,_e,Ie){var ge=ie("../internals/an-object"),ce=ie("../internals/a-constructor"),Pe=ie("../internals/well-known-symbol"),Ee=Pe("species");_e.exports=function(ye,Me){var ve=ge(ye).constructor,xe;return ve===void 0||(xe=ge(ve)[Ee])==null?Me:ce(xe)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this"),ce=ie("../internals/to-integer-or-infinity"),Pe=ie("../internals/to-string"),Ee=ie("../internals/require-object-coercible"),ye=ge("".charAt),Me=ge("".charCodeAt),ve=ge("".slice),xe=function(fe){return function(z,ee){var ae=Pe(Ee(z)),re=ce(ee),le=ae.length,ue,pe;return re<0||re>=le?fe?"":void 0:(ue=Me(ae,re),ue<55296||ue>56319||re+1===le||(pe=Me(ae,re+1))<56320||pe>57343?fe?ye(ae,re):ue:fe?ve(ae,re,re+2):(ue-55296<<10)+(pe-56320)+65536)}};_e.exports={codeAt:xe(!1),charAt:xe(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(ie,_e,Ie){var ge=ie("../internals/function-name").PROPER,ce=ie("../internals/fails"),Pe=ie("../internals/whitespaces"),Ee="\u200B\x85\u180E";_e.exports=function(ye){return ce(function(){return!!Pe[ye]()||Ee[ye]()!==Ee||ge&&Pe[ye].name!==ye})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this"),ce=ie("../internals/require-object-coercible"),Pe=ie("../internals/to-string"),Ee=ie("../internals/whitespaces"),ye=ge("".replace),Me="["+Ee+"]",ve=RegExp("^"+Me+Me+"*"),xe=RegExp(Me+Me+"*$"),fe=function(z){return function(ee){var ae=Pe(ce(ee));return z&1&&(ae=ye(ae,ve,"")),z&2&&(ae=ye(ae,xe,"")),ae}};_e.exports={start:fe(1),end:fe(2),trim:fe(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(ie,_e,Ie){var ge=ie("../internals/function-call"),ce=ie("../internals/get-built-in"),Pe=ie("../internals/well-known-symbol"),Ee=ie("../internals/redefine");_e.exports=function(){var ye=ce("Symbol"),Me=ye&&ye.prototype,ve=Me&&Me.valueOf,xe=Pe("toPrimitive");Me&&!Me[xe]&&Ee(Me,xe,function(fe){return ge(ve,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/function-apply"),Pe=ie("../internals/function-bind-context"),Ee=ie("../internals/is-callable"),ye=ie("../internals/has-own-property"),Me=ie("../internals/fails"),ve=ie("../internals/html"),xe=ie("../internals/array-slice"),fe=ie("../internals/document-create-element"),z=ie("../internals/validate-arguments-length"),ee=ie("../internals/engine-is-ios"),ae=ie("../internals/engine-is-node"),re=ge.setImmediate,le=ge.clearImmediate,ue=ge.process,pe=ge.Dispatch,Te=ge.Function,Ce=ge.MessageChannel,Fe=ge.String,Ae=0,je={},Ne="onreadystatechange",Be,ze,Qe,$e;try{Be=ge.location}catch(Ct){}var Ye=function(Ct){if(ye(je,Ct)){var et=je[Ct];delete je[Ct],et()}},at=function(Ct){return function(){Ye(Ct)}},ut=function(Ct){Ye(Ct.data)},ht=function(Ct){ge.postMessage(Fe(Ct),Be.protocol+"//"+Be.host)};(!re||!le)&&(re=function(et){z(arguments.length,1);var it=Ee(et)?et:Te(et),St=xe(arguments,1);return je[++Ae]=function(){ce(it,void 0,St)},ze(Ae),Ae},le=function(et){delete je[et]},ae?ze=function(Ct){ue.nextTick(at(Ct))}:pe&&pe.now?ze=function(Ct){pe.now(at(Ct))}:Ce&&!ee?(Qe=new Ce,$e=Qe.port2,Qe.port1.onmessage=ut,ze=Pe($e.postMessage,$e)):ge.addEventListener&&Ee(ge.postMessage)&&!ge.importScripts&&Be&&Be.protocol!=="file:"&&!Me(ht)?(ze=ht,ge.addEventListener("message",ut,!1)):Ne in fe("script")?ze=function(Ct){ve.appendChild(fe("script"))[Ne]=function(){ve.removeChild(this),Ye(Ct)}}:ze=function(Ct){setTimeout(at(Ct),0)}),_e.exports={set:re,clear:le}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this");_e.exports=ge(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(ie,_e,Ie){var ge=ie("../internals/to-integer-or-infinity"),ce=Math.max,Pe=Math.min;_e.exports=function(Ee,ye){var Me=ge(Ee);return Me<0?ce(Me+ye,0):Pe(Me,ye)}},{"../internals/to-integer-or-infinity":248}],246:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/to-integer-or-infinity"),Pe=ie("../internals/to-length"),Ee=ge.RangeError;_e.exports=function(ye){if(ye===void 0)return 0;var Me=ce(ye),ve=Pe(Me);if(Me!==ve)throw Ee("Wrong length or index");return ve}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(ie,_e,Ie){var ge=ie("../internals/indexed-object"),ce=ie("../internals/require-object-coercible");_e.exports=function(Pe){return ge(ce(Pe))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(ie,_e,Ie){var ge=Math.ceil,ce=Math.floor;_e.exports=function(Pe){var Ee=+Pe;return Ee!==Ee||Ee===0?0:(Ee>0?ce:ge)(Ee)}},{}],249:[function(ie,_e,Ie){var ge=ie("../internals/to-integer-or-infinity"),ce=Math.min;_e.exports=function(Pe){return Pe>0?ce(ge(Pe),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/require-object-coercible"),Pe=ge.Object;_e.exports=function(Ee){return Pe(ce(Ee))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/to-positive-integer"),Pe=ge.RangeError;_e.exports=function(Ee,ye){var Me=ce(Ee);if(Me%ye)throw Pe("Wrong offset");return Me}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/to-integer-or-infinity"),Pe=ge.RangeError;_e.exports=function(Ee){var ye=ce(Ee);if(ye<0)throw Pe("The argument can't be less than 0");return ye}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/function-call"),Pe=ie("../internals/is-object"),Ee=ie("../internals/is-symbol"),ye=ie("../internals/get-method"),Me=ie("../internals/ordinary-to-primitive"),ve=ie("../internals/well-known-symbol"),xe=ge.TypeError,fe=ve("toPrimitive");_e.exports=function(z,ee){if(!Pe(z)||Ee(z))return z;var ae=ye(z,fe),re;if(ae){if(ee===void 0&&(ee="default"),re=ce(ae,z,ee),!Pe(re)||Ee(re))return re;throw xe("Can't convert object to primitive value")}return ee===void 0&&(ee="number"),Me(z,ee)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(ie,_e,Ie){var ge=ie("../internals/to-primitive"),ce=ie("../internals/is-symbol");_e.exports=function(Pe){var Ee=ge(Pe,"string");return ce(Ee)?Ee:Ee+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(ie,_e,Ie){var ge=ie("../internals/well-known-symbol"),ce=ge("toStringTag"),Pe={};Pe[ce]="z",_e.exports=String(Pe)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/classof"),Pe=ge.String;_e.exports=function(Ee){if(ce(Ee)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Pe(Ee)}},{"../internals/classof":124,"../internals/global":163}],257:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ge.String;_e.exports=function(Pe){try{return ce(Pe)}catch(Ee){return"Object"}}},{"../internals/global":163}],258:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/global"),Pe=ie("../internals/function-call"),Ee=ie("../internals/descriptors"),ye=ie("../internals/typed-array-constructors-require-wrappers"),Me=ie("../internals/array-buffer-view-core"),ve=ie("../internals/array-buffer"),xe=ie("../internals/an-instance"),fe=ie("../internals/create-property-descriptor"),z=ie("../internals/create-non-enumerable-property"),ee=ie("../internals/is-integral-number"),ae=ie("../internals/to-length"),re=ie("../internals/to-index"),le=ie("../internals/to-offset"),ue=ie("../internals/to-property-key"),pe=ie("../internals/has-own-property"),Te=ie("../internals/classof"),Ce=ie("../internals/is-object"),Fe=ie("../internals/is-symbol"),Ae=ie("../internals/object-create"),je=ie("../internals/object-is-prototype-of"),Ne=ie("../internals/object-set-prototype-of"),Be=ie("../internals/object-get-own-property-names").f,ze=ie("../internals/typed-array-from"),Qe=ie("../internals/array-iteration").forEach,$e=ie("../internals/set-species"),Ye=ie("../internals/object-define-property"),at=ie("../internals/object-get-own-property-descriptor"),ut=ie("../internals/internal-state"),ht=ie("../internals/inherit-if-required"),Ct=ut.get,et=ut.set,it=Ye.f,St=at.f,bt=Math.round,Pt=ce.RangeError,gt=ve.ArrayBuffer,dt=gt.prototype,mt=ve.DataView,kt=Me.NATIVE_ARRAY_BUFFER_VIEWS,Et=Me.TYPED_ARRAY_CONSTRUCTOR,Ut=Me.TYPED_ARRAY_TAG,wt=Me.TypedArray,pt=Me.TypedArrayPrototype,tt=Me.aTypedArrayConstructor,Ze=Me.isTypedArray,we="BYTES_PER_ELEMENT",be="Wrong length",Ke=function(Je,ct){tt(Je);for(var yt=0,ft=ct.length,Mt=new Je(ft);ft>yt;)Mt[yt]=ct[yt++];return Mt},Xe=function(Je,ct){it(Je,ct,{get:function(){return Ct(this)[ct]}})},Oe=function(Je){var ct;return je(dt,Je)||(ct=Te(Je))=="ArrayBuffer"||ct=="SharedArrayBuffer"},Ue=function(Je,ct){return Ze(Je)&&!Fe(ct)&&ct in Je&&ee(+ct)&&ct>=0},He=function(ct,yt){return yt=ue(yt),Ue(ct,yt)?fe(2,ct[yt]):St(ct,yt)},Ve=function(ct,yt,ft){return yt=ue(yt),Ue(ct,yt)&&Ce(ft)&&pe(ft,"value")&&!pe(ft,"get")&&!pe(ft,"set")&&!ft.configurable&&(!pe(ft,"writable")||ft.writable)&&(!pe(ft,"enumerable")||ft.enumerable)?(ct[yt]=ft.value,ct):it(ct,yt,ft)};Ee?(kt||(at.f=He,Ye.f=Ve,Xe(pt,"buffer"),Xe(pt,"byteOffset"),Xe(pt,"byteLength"),Xe(pt,"length")),ge({target:"Object",stat:!0,forced:!kt},{getOwnPropertyDescriptor:He,defineProperty:Ve}),_e.exports=function(Je,ct,yt){var ft=Je.match(/\d+$/)[0]/8,Mt=Je+(yt?"Clamped":"")+"Array",Jt="get"+Je,Vt="set"+Je,Kt=ce[Mt],Ht=Kt,tn=Ht&&Ht.prototype,It={},Dt=function(xn,Ln){var Zn=Ct(xn);return Zn.view[Jt](Ln*ft+Zn.byteOffset,!0)},qt=function(xn,Ln,Zn){var Xn=Ct(xn);yt&&(Zn=(Zn=bt(Zn))<0?0:Zn>255?255:Zn&255),Xn.view[Vt](Ln*ft+Xn.byteOffset,Zn,!0)},sn=function(xn,Ln){it(xn,Ln,{get:function(){return Dt(this,Ln)},set:function(Zn){return qt(this,Ln,Zn)},enumerable:!0})};kt?ye&&(Ht=ct(function(xn,Ln,Zn,Xn){return xe(xn,tn),ht(function(){return Ce(Ln)?Oe(Ln)?Xn!==void 0?new Kt(Ln,le(Zn,ft),Xn):Zn!==void 0?new Kt(Ln,le(Zn,ft)):new Kt(Ln):Ze(Ln)?Ke(Ht,Ln):Pe(ze,Ht,Ln):new Kt(re(Ln))}(),xn,Ht)}),Ne&&Ne(Ht,wt),Qe(Be(Kt),function(xn){xn in Ht||z(Ht,xn,Kt[xn])}),Ht.prototype=tn):(Ht=ct(function(xn,Ln,Zn,Xn){xe(xn,tn);var dr=0,fr=0,pr,Cr,Yr;if(!Ce(Ln))Yr=re(Ln),Cr=Yr*ft,pr=new gt(Cr);else if(Oe(Ln)){pr=Ln,fr=le(Zn,ft);var ii=Ln.byteLength;if(Xn===void 0){if(ii%ft||(Cr=ii-fr,Cr<0))throw Pt(be)}else if(Cr=ae(Xn)*ft,Cr+fr>ii)throw Pt(be);Yr=Cr/ft}else return Ze(Ln)?Ke(Ht,Ln):Pe(ze,Ht,Ln);for(et(xn,{buffer:pr,byteOffset:fr,byteLength:Cr,length:Yr,view:new mt(pr)});dr<Yr;)sn(xn,dr++)}),Ne&&Ne(Ht,wt),tn=Ht.prototype=Ae(pt)),tn.constructor!==Ht&&z(tn,"constructor",Ht),z(tn,Et,Ht),Ut&&z(tn,Ut,Mt),It[Mt]=Ht,ge({global:!0,forced:Ht!=Kt,sham:!kt},It),we in Ht||z(Ht,we,ft),we in tn||z(tn,we,ft),$e(Mt)}):_e.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/fails"),Pe=ie("../internals/check-correctness-of-iteration"),Ee=ie("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ye=ge.ArrayBuffer,Me=ge.Int8Array;_e.exports=!Ee||!ce(function(){Me(1)})||!ce(function(){new Me(-1)})||!Pe(function(ve){new Me,new Me(null),new Me(1.5),new Me(ve)},!0)||ce(function(){return new Me(new ye(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(ie,_e,Ie){var ge=ie("../internals/array-from-constructor-and-list"),ce=ie("../internals/typed-array-species-constructor");_e.exports=function(Pe,Ee){return ge(ce(Pe),Ee)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(ie,_e,Ie){var ge=ie("../internals/function-bind-context"),ce=ie("../internals/function-call"),Pe=ie("../internals/a-constructor"),Ee=ie("../internals/to-object"),ye=ie("../internals/length-of-array-like"),Me=ie("../internals/get-iterator"),ve=ie("../internals/get-iterator-method"),xe=ie("../internals/is-array-iterator-method"),fe=ie("../internals/array-buffer-view-core").aTypedArrayConstructor;_e.exports=function(ee){var ae=Pe(this),re=Ee(ee),le=arguments.length,ue=le>1?arguments[1]:void 0,pe=ue!==void 0,Te=ve(re),Ce,Fe,Ae,je,Ne,Be;if(Te&&!xe(Te))for(Ne=Me(re,Te),Be=Ne.next,re=[];!(je=ce(Be,Ne)).done;)re.push(je.value);for(pe&&le>2&&(ue=ge(ue,arguments[2])),Fe=ye(re),Ae=new(fe(ae))(Fe),Ce=0;Fe>Ce;Ce++)Ae[Ce]=pe?ue(re[Ce],Ce):re[Ce];return Ae}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(ie,_e,Ie){var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/species-constructor"),Pe=ge.TYPED_ARRAY_CONSTRUCTOR,Ee=ge.aTypedArrayConstructor;_e.exports=function(ye){return Ee(ce(ye,ye[Pe]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(ie,_e,Ie){var ge=ie("../internals/function-uncurry-this"),ce=0,Pe=Math.random(),Ee=ge(1 .toString);_e.exports=function(ye){return"Symbol("+(ye===void 0?"":ye)+")_"+Ee(++ce+Pe,36)}},{"../internals/function-uncurry-this":157}],264:[function(ie,_e,Ie){var ge=ie("../internals/native-symbol");_e.exports=ge&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(ie,_e,Ie){var ge=ie("../internals/descriptors"),ce=ie("../internals/fails");_e.exports=ge&&ce(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ge.TypeError;_e.exports=function(Pe,Ee){if(Pe<Ee)throw ce("Not enough arguments");return Pe}},{"../internals/global":163}],267:[function(ie,_e,Ie){var ge=ie("../internals/well-known-symbol");Ie.f=ge},{"../internals/well-known-symbol":268}],268:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/shared"),Pe=ie("../internals/has-own-property"),Ee=ie("../internals/uid"),ye=ie("../internals/native-symbol"),Me=ie("../internals/use-symbol-as-uid"),ve=ce("wks"),xe=ge.Symbol,fe=xe&&xe.for,z=Me?xe:xe&&xe.withoutSetter||Ee;_e.exports=function(ee){if(!Pe(ve,ee)||!(ye||typeof ve[ee]=="string")){var ae="Symbol."+ee;ye&&Pe(xe,ee)?ve[ee]=xe[ee]:Me&&fe?ve[ee]=fe(ae):ve[ee]=z(ae)}return ve[ee]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(ie,_e,Ie){_e.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/global"),Pe=ie("../internals/array-buffer"),Ee=ie("../internals/set-species"),ye="ArrayBuffer",Me=Pe[ye],ve=ce[ye];ge({global:!0,forced:ve!==Me},{ArrayBuffer:Me}),Ee(ye)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/fails"),Ee=ie("../internals/array-buffer"),ye=ie("../internals/an-object"),Me=ie("../internals/to-absolute-index"),ve=ie("../internals/to-length"),xe=ie("../internals/species-constructor"),fe=Ee.ArrayBuffer,z=Ee.DataView,ee=z.prototype,ae=ce(fe.prototype.slice),re=ce(ee.getUint8),le=ce(ee.setUint8),ue=Pe(function(){return!new fe(2).slice(1,void 0).byteLength});ge({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ue},{slice:function(Te,Ce){if(ae&&Ce===void 0)return ae(ye(this),Te);for(var Fe=ye(this).byteLength,Ae=Me(Te,Fe),je=Me(Ce===void 0?Fe:Ce,Fe),Ne=new(xe(this,fe))(ve(je-Ae)),Be=new z(this),ze=new z(Ne),Qe=0;Ae<je;)le(ze,Qe++,re(Be,Ae++));return Ne}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/global"),Pe=ie("../internals/fails"),Ee=ie("../internals/is-array"),ye=ie("../internals/is-object"),Me=ie("../internals/to-object"),ve=ie("../internals/length-of-array-like"),xe=ie("../internals/create-property"),fe=ie("../internals/array-species-create"),z=ie("../internals/array-method-has-species-support"),ee=ie("../internals/well-known-symbol"),ae=ie("../internals/engine-v8-version"),re=ee("isConcatSpreadable"),le=9007199254740991,ue="Maximum allowed index exceeded",pe=ce.TypeError,Te=ae>=51||!Pe(function(){var je=[];return je[re]=!1,je.concat()[0]!==je}),Ce=z("concat"),Fe=function(je){if(!ye(je))return!1;var Ne=je[re];return Ne!==void 0?!!Ne:Ee(je)},Ae=!Te||!Ce;ge({target:"Array",proto:!0,forced:Ae},{concat:function(Ne){var Be=Me(this),ze=fe(Be,0),Qe=0,$e,Ye,at,ut,ht;for($e=-1,at=arguments.length;$e<at;$e++)if(ht=$e===-1?Be:arguments[$e],Fe(ht)){if(ut=ve(ht),Qe+ut>le)throw pe(ue);for(Ye=0;Ye<ut;Ye++,Qe++)Ye in ht&&xe(ze,Qe,ht[Ye])}else{if(Qe>=le)throw pe(ue);xe(ze,Qe++,ht)}return ze.length=Qe,ze}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(ie,_e,Ie){var ge=ie("../internals/export"),ce=ie("../internals/array-fill"),Pe=ie("../internals/add-to-unscopables");ge({target:"Array",proto:!0},{fill:ce}),Pe("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/array-iteration").filter,Pe=ie("../internals/array-method-has-species-support"),Ee=Pe("filter");ge({target:"Array",proto:!0,forced:!Ee},{filter:function(Me){return ce(this,Me,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/array-iteration").find,Pe=ie("../internals/add-to-unscopables"),Ee="find",ye=!0;Ee in[]&&Array(1)[Ee](function(){ye=!1}),ge({target:"Array",proto:!0,forced:ye},{find:function(ve){return ce(this,ve,arguments.length>1?arguments[1]:void 0)}}),Pe(Ee)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(ie,_e,Ie){var ge=ie("../internals/export"),ce=ie("../internals/array-from"),Pe=ie("../internals/check-correctness-of-iteration"),Ee=!Pe(function(ye){Array.from(ye)});ge({target:"Array",stat:!0,forced:Ee},{from:ce})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/array-includes").includes,Pe=ie("../internals/add-to-unscopables");ge({target:"Array",proto:!0},{includes:function(ye){return ce(this,ye,arguments.length>1?arguments[1]:void 0)}}),Pe("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/to-indexed-object"),ce=ie("../internals/add-to-unscopables"),Pe=ie("../internals/iterators"),Ee=ie("../internals/internal-state"),ye=ie("../internals/object-define-property").f,Me=ie("../internals/define-iterator"),ve=ie("../internals/is-pure"),xe=ie("../internals/descriptors"),fe="Array Iterator",z=Ee.set,ee=Ee.getterFor(fe);_e.exports=Me(Array,"Array",function(re,le){z(this,{type:fe,target:ge(re),index:0,kind:le})},function(){var re=ee(this),le=re.target,ue=re.kind,pe=re.index++;return!le||pe>=le.length?(re.target=void 0,{value:void 0,done:!0}):ue=="keys"?{value:pe,done:!1}:ue=="values"?{value:le[pe],done:!1}:{value:[pe,le[pe]],done:!1}},"values");var ae=Pe.Arguments=Pe.Array;if(ce("keys"),ce("values"),ce("entries"),!ve&&xe&&ae.name!=="values")try{ye(ae,"name",{value:"values"})}catch(re){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/indexed-object"),Ee=ie("../internals/to-indexed-object"),ye=ie("../internals/array-method-is-strict"),Me=ce([].join),ve=Pe!=Object,xe=ye("join",",");ge({target:"Array",proto:!0,forced:ve||!xe},{join:function(z){return Me(Ee(this),z===void 0?",":z)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/array-iteration").map,Pe=ie("../internals/array-method-has-species-support"),Ee=Pe("map");ge({target:"Array",proto:!0,forced:!Ee},{map:function(Me){return ce(this,Me,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/global"),Pe=ie("../internals/is-array"),Ee=ie("../internals/is-constructor"),ye=ie("../internals/is-object"),Me=ie("../internals/to-absolute-index"),ve=ie("../internals/length-of-array-like"),xe=ie("../internals/to-indexed-object"),fe=ie("../internals/create-property"),z=ie("../internals/well-known-symbol"),ee=ie("../internals/array-method-has-species-support"),ae=ie("../internals/array-slice"),re=ee("slice"),le=z("species"),ue=ce.Array,pe=Math.max;ge({target:"Array",proto:!0,forced:!re},{slice:function(Ce,Fe){var Ae=xe(this),je=ve(Ae),Ne=Me(Ce,je),Be=Me(Fe===void 0?je:Fe,je),ze,Qe,$e;if(Pe(Ae)&&(ze=Ae.constructor,Ee(ze)&&(ze===ue||Pe(ze.prototype))?ze=void 0:ye(ze)&&(ze=ze[le],ze===null&&(ze=void 0)),ze===ue||ze===void 0))return ae(Ae,Ne,Be);for(Qe=new(ze===void 0?ue:ze)(pe(Be-Ne,0)),$e=0;Ne<Be;Ne++,$e++)Ne in Ae&&fe(Qe,$e,Ae[Ne]);return Qe.length=$e,Qe}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/a-callable"),Ee=ie("../internals/to-object"),ye=ie("../internals/length-of-array-like"),Me=ie("../internals/to-string"),ve=ie("../internals/fails"),xe=ie("../internals/array-sort"),fe=ie("../internals/array-method-is-strict"),z=ie("../internals/engine-ff-version"),ee=ie("../internals/engine-is-ie-or-edge"),ae=ie("../internals/engine-v8-version"),re=ie("../internals/engine-webkit-version"),le=[],ue=ce(le.sort),pe=ce(le.push),Te=ve(function(){le.sort(void 0)}),Ce=ve(function(){le.sort(null)}),Fe=fe("sort"),Ae=!ve(function(){if(ae)return ae<70;if(!(z&&z>3)){if(ee)return!0;if(re)return re<603;var Be="",ze,Qe,$e,Ye;for(ze=65;ze<76;ze++){switch(Qe=String.fromCharCode(ze),ze){case 66:case 69:case 70:case 72:$e=3;break;case 68:case 71:$e=4;break;default:$e=2}for(Ye=0;Ye<47;Ye++)le.push({k:Qe+Ye,v:$e})}for(le.sort(function(at,ut){return ut.v-at.v}),Ye=0;Ye<le.length;Ye++)Qe=le[Ye].k.charAt(0),Be.charAt(Be.length-1)!==Qe&&(Be+=Qe);return Be!=="DGBEFHACIJK"}}),je=Te||!Ce||!Fe||!Ae,Ne=function(Be){return function(ze,Qe){return Qe===void 0?-1:ze===void 0?1:Be!==void 0?+Be(ze,Qe)||0:Me(ze)>Me(Qe)?1:-1}};ge({target:"Array",proto:!0,forced:je},{sort:function(ze){ze!==void 0&&Pe(ze);var Qe=Ee(this);if(Ae)return ze===void 0?ue(Qe):ue(Qe,ze);var $e=[],Ye=ye(Qe),at,ut;for(ut=0;ut<Ye;ut++)ut in Qe&&pe($e,Qe[ut]);for(xe($e,Ne(ze)),at=$e.length,ut=0;ut<at;)Qe[ut]=$e[ut++];for(;ut<Ye;)delete Qe[ut++];return Qe}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/global"),Pe=ie("../internals/to-absolute-index"),Ee=ie("../internals/to-integer-or-infinity"),ye=ie("../internals/length-of-array-like"),Me=ie("../internals/to-object"),ve=ie("../internals/array-species-create"),xe=ie("../internals/create-property"),fe=ie("../internals/array-method-has-species-support"),z=fe("splice"),ee=ce.TypeError,ae=Math.max,re=Math.min,le=9007199254740991,ue="Maximum allowed length exceeded";ge({target:"Array",proto:!0,forced:!z},{splice:function(Te,Ce){var Fe=Me(this),Ae=ye(Fe),je=Pe(Te,Ae),Ne=arguments.length,Be,ze,Qe,$e,Ye,at;if(Ne===0?Be=ze=0:Ne===1?(Be=0,ze=Ae-je):(Be=Ne-2,ze=re(ae(Ee(Ce),0),Ae-je)),Ae+Be-ze>le)throw ee(ue);for(Qe=ve(Fe,ze),$e=0;$e<ze;$e++)Ye=je+$e,Ye in Fe&&xe(Qe,$e,Fe[Ye]);if(Qe.length=ze,Be<ze){for($e=je;$e<Ae-ze;$e++)Ye=$e+ze,at=$e+Be,Ye in Fe?Fe[at]=Fe[Ye]:delete Fe[at];for($e=Ae;$e>Ae-ze+Be;$e--)delete Fe[$e-1]}else if(Be>ze)for($e=Ae-ze;$e>je;$e--)Ye=$e+ze-1,at=$e+Be-1,Ye in Fe?Fe[at]=Fe[Ye]:delete Fe[at];for($e=0;$e<Be;$e++)Fe[$e+je]=arguments[$e+2];return Fe.length=Ae-ze+Be,Qe}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(ie,_e,Ie){var ge=ie("../internals/descriptors"),ce=ie("../internals/function-name").EXISTS,Pe=ie("../internals/function-uncurry-this"),Ee=ie("../internals/object-define-property").f,ye=Function.prototype,Me=Pe(ye.toString),ve=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,xe=Pe(ve.exec),fe="name";ge&&!ce&&Ee(ye,fe,{configurable:!0,get:function(){try{return xe(ve,Me(this))[1]}catch(z){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(ie,_e,Ie){var ge=ie("../internals/export"),ce=ie("../internals/get-built-in"),Pe=ie("../internals/function-apply"),Ee=ie("../internals/function-call"),ye=ie("../internals/function-uncurry-this"),Me=ie("../internals/fails"),ve=ie("../internals/is-array"),xe=ie("../internals/is-callable"),fe=ie("../internals/is-object"),z=ie("../internals/is-symbol"),ee=ie("../internals/array-slice"),ae=ie("../internals/native-symbol"),re=ce("JSON","stringify"),le=ye(/./.exec),ue=ye("".charAt),pe=ye("".charCodeAt),Te=ye("".replace),Ce=ye(1 .toString),Fe=/[\uD800-\uDFFF]/g,Ae=/^[\uD800-\uDBFF]$/,je=/^[\uDC00-\uDFFF]$/,Ne=!ae||Me(function(){var $e=ce("Symbol")();return re([$e])!="[null]"||re({a:$e})!="{}"||re(Object($e))!="{}"}),Be=Me(function(){return re("\uDF06\uD834")!=='"\\udf06\\ud834"'||re("\uDEAD")!=='"\\udead"'}),ze=function($e,Ye){var at=ee(arguments),ut=Ye;if(!(!fe(Ye)&&$e===void 0||z($e)))return ve(Ye)||(Ye=function(ht,Ct){if(xe(ut)&&(Ct=Ee(ut,this,ht,Ct)),!z(Ct))return Ct}),at[1]=Ye,Pe(re,null,at)},Qe=function($e,Ye,at){var ut=ue(at,Ye-1),ht=ue(at,Ye+1);return le(Ae,$e)&&!le(je,ht)||le(je,$e)&&!le(Ae,ut)?"\\u"+Ce(pe($e,0),16):$e};re&&ge({target:"JSON",stat:!0,forced:Ne||Be},{stringify:function(Ye,at,ut){var ht=ee(arguments),Ct=Pe(Ne?ze:re,null,ht);return Be&&typeof Ct=="string"?Te(Ct,Fe,Qe):Ct}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/descriptors"),ce=ie("../internals/global"),Pe=ie("../internals/function-uncurry-this"),Ee=ie("../internals/is-forced"),ye=ie("../internals/redefine"),Me=ie("../internals/has-own-property"),ve=ie("../internals/inherit-if-required"),xe=ie("../internals/object-is-prototype-of"),fe=ie("../internals/is-symbol"),z=ie("../internals/to-primitive"),ee=ie("../internals/fails"),ae=ie("../internals/object-get-own-property-names").f,re=ie("../internals/object-get-own-property-descriptor").f,le=ie("../internals/object-define-property").f,ue=ie("../internals/this-number-value"),pe=ie("../internals/string-trim").trim,Te="Number",Ce=ce[Te],Fe=Ce.prototype,Ae=ce.TypeError,je=Pe("".slice),Ne=Pe("".charCodeAt),Be=function(ut){var ht=z(ut,"number");return typeof ht=="bigint"?ht:ze(ht)},ze=function(ut){var ht=z(ut,"number"),Ct,et,it,St,bt,Pt,gt,dt;if(fe(ht))throw Ae("Cannot convert a Symbol value to a number");if(typeof ht=="string"&&ht.length>2){if(ht=pe(ht),Ct=Ne(ht,0),Ct===43||Ct===45){if(et=Ne(ht,2),et===88||et===120)return NaN}else if(Ct===48){switch(Ne(ht,1)){case 66:case 98:it=2,St=49;break;case 79:case 111:it=8,St=55;break;default:return+ht}for(bt=je(ht,2),Pt=bt.length,gt=0;gt<Pt;gt++)if(dt=Ne(bt,gt),dt<48||dt>St)return NaN;return parseInt(bt,it)}}return+ht};if(Ee(Te,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var Qe=function(ht){var Ct=arguments.length<1?0:Ce(Be(ht)),et=this;return xe(Fe,et)&&ee(function(){ue(et)})?ve(Object(Ct),et,Qe):Ct},$e=ge?ae(Ce):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ye=0,at;$e.length>Ye;Ye++)Me(Ce,at=$e[Ye])&&!Me(Qe,at)&&le(Qe,at,re(Ce,at));Qe.prototype=Fe,Fe.constructor=Qe,ye(ce,Te,Qe)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(ie,_e,Ie){var ge=ie("../internals/export"),ce=ie("../internals/object-assign");ge({target:"Object",stat:!0,forced:Object.assign!==ce},{assign:ce})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(ie,_e,Ie){var ge=ie("../internals/export"),ce=ie("../internals/object-to-array").entries;ge({target:"Object",stat:!0},{entries:function(Ee){return ce(Ee)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(ie,_e,Ie){var ge=ie("../internals/export"),ce=ie("../internals/native-symbol"),Pe=ie("../internals/fails"),Ee=ie("../internals/object-get-own-property-symbols"),ye=ie("../internals/to-object"),Me=!ce||Pe(function(){Ee.f(1)});ge({target:"Object",stat:!0,forced:Me},{getOwnPropertySymbols:function(xe){var fe=Ee.f;return fe?fe(ye(xe)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(ie,_e,Ie){var ge=ie("../internals/export"),ce=ie("../internals/to-object"),Pe=ie("../internals/object-keys"),Ee=ie("../internals/fails"),ye=Ee(function(){Pe(1)});ge({target:"Object",stat:!0,forced:ye},{keys:function(ve){return Pe(ce(ve))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(ie,_e,Ie){var ge=ie("../internals/to-string-tag-support"),ce=ie("../internals/redefine"),Pe=ie("../internals/object-to-string");ge||ce(Object.prototype,"toString",Pe,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/function-call"),Pe=ie("../internals/a-callable"),Ee=ie("../internals/new-promise-capability"),ye=ie("../internals/perform"),Me=ie("../internals/iterate"),ve=ie("../internals/promise-statics-incorrect-iteration");ge({target:"Promise",stat:!0,forced:ve},{all:function(fe){var z=this,ee=Ee.f(z),ae=ee.resolve,re=ee.reject,le=ye(function(){var ue=Pe(z.resolve),pe=[],Te=0,Ce=1;Me(fe,function(Fe){var Ae=Te++,je=!1;Ce++,ce(ue,z,Fe).then(function(Ne){je||(je=!0,pe[Ae]=Ne,--Ce||ae(pe))},re)}),--Ce||ae(pe)});return le.error&&re(le.value),ee.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/is-pure"),Pe=ie("../internals/promise-constructor-detection").CONSTRUCTOR,Ee=ie("../internals/promise-native-constructor"),ye=ie("../internals/get-built-in"),Me=ie("../internals/is-callable"),ve=ie("../internals/redefine"),xe=Ee&&Ee.prototype;if(ge({target:"Promise",proto:!0,forced:Pe,real:!0},{catch:function(z){return this.then(void 0,z)}}),!ce&&Me(Ee)){var fe=ye("Promise").prototype.catch;xe.catch!==fe&&ve(xe,"catch",fe,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/is-pure"),Pe=ie("../internals/engine-is-node"),Ee=ie("../internals/global"),ye=ie("../internals/function-call"),Me=ie("../internals/redefine"),ve=ie("../internals/redefine-all"),xe=ie("../internals/object-set-prototype-of"),fe=ie("../internals/set-to-string-tag"),z=ie("../internals/set-species"),ee=ie("../internals/a-callable"),ae=ie("../internals/is-callable"),re=ie("../internals/is-object"),le=ie("../internals/an-instance"),ue=ie("../internals/species-constructor"),pe=ie("../internals/task").set,Te=ie("../internals/microtask"),Ce=ie("../internals/host-report-errors"),Fe=ie("../internals/perform"),Ae=ie("../internals/queue"),je=ie("../internals/internal-state"),Ne=ie("../internals/promise-native-constructor"),Be=ie("../internals/promise-constructor-detection"),ze=ie("../internals/new-promise-capability"),Qe="Promise",$e=Be.CONSTRUCTOR,Ye=Be.REJECTION_EVENT,at=Be.SUBCLASSING,ut=je.getterFor(Qe),ht=je.set,Ct=Ne&&Ne.prototype,et=Ne,it=Ct,St=Ee.TypeError,bt=Ee.document,Pt=Ee.process,gt=ze.f,dt=gt,mt=!!(bt&&bt.createEvent&&Ee.dispatchEvent),kt="unhandledrejection",Et="rejectionhandled",Ut=0,wt=1,pt=2,tt=1,Ze=2,we,be,Ke,Xe,Oe=function(Vt){var Kt;return re(Vt)&&ae(Kt=Vt.then)?Kt:!1},Ue=function(Vt,Kt){var Ht=Kt.value,tn=Kt.state==wt,It=tn?Vt.ok:Vt.fail,Dt=Vt.resolve,qt=Vt.reject,sn=Vt.domain,xn,Ln,Zn;try{It?(tn||(Kt.rejection===Ze&&yt(Kt),Kt.rejection=tt),It===!0?xn=Ht:(sn&&sn.enter(),xn=It(Ht),sn&&(sn.exit(),Zn=!0)),xn===Vt.promise?qt(St("Promise-chain cycle")):(Ln=Oe(xn))?ye(Ln,xn,Dt,qt):Dt(xn)):qt(Ht)}catch(Xn){sn&&!Zn&&sn.exit(),qt(Xn)}},He=function(Vt,Kt){Vt.notified||(Vt.notified=!0,Te(function(){for(var Ht=Vt.reactions,tn;tn=Ht.get();)Ue(tn,Vt);Vt.notified=!1,Kt&&!Vt.rejection&&Je(Vt)}))},Ve=function(Vt,Kt,Ht){var tn,It;mt?(tn=bt.createEvent("Event"),tn.promise=Kt,tn.reason=Ht,tn.initEvent(Vt,!1,!0),Ee.dispatchEvent(tn)):tn={promise:Kt,reason:Ht},!Ye&&(It=Ee["on"+Vt])?It(tn):Vt===kt&&Ce("Unhandled promise rejection",Ht)},Je=function(Vt){ye(pe,Ee,function(){var Kt=Vt.facade,Ht=Vt.value,tn=ct(Vt),It;if(tn&&(It=Fe(function(){Pe?Pt.emit("unhandledRejection",Ht,Kt):Ve(kt,Kt,Ht)}),Vt.rejection=Pe||ct(Vt)?Ze:tt,It.error))throw It.value})},ct=function(Vt){return Vt.rejection!==tt&&!Vt.parent},yt=function(Vt){ye(pe,Ee,function(){var Kt=Vt.facade;Pe?Pt.emit("rejectionHandled",Kt):Ve(Et,Kt,Vt.value)})},ft=function(Vt,Kt,Ht){return function(tn){Vt(Kt,tn,Ht)}},Mt=function(Vt,Kt,Ht){Vt.done||(Vt.done=!0,Ht&&(Vt=Ht),Vt.value=Kt,Vt.state=pt,He(Vt,!0))},Jt=function(Vt,Kt,Ht){if(!Vt.done){Vt.done=!0,Ht&&(Vt=Ht);try{if(Vt.facade===Kt)throw St("Promise can't be resolved itself");var tn=Oe(Kt);tn?Te(function(){var It={done:!1};try{ye(tn,Kt,ft(Jt,It,Vt),ft(Mt,It,Vt))}catch(Dt){Mt(It,Dt,Vt)}}):(Vt.value=Kt,Vt.state=wt,He(Vt,!1))}catch(It){Mt({done:!1},It,Vt)}}};if($e&&(et=function(Kt){le(this,it),ee(Kt),ye(we,this);var Ht=ut(this);try{Kt(ft(Jt,Ht),ft(Mt,Ht))}catch(tn){Mt(Ht,tn)}},it=et.prototype,we=function(Kt){ht(this,{type:Qe,done:!1,notified:!1,parent:!1,reactions:new Ae,rejection:!1,state:Ut,value:void 0})},we.prototype=ve(it,{then:function(Kt,Ht){var tn=ut(this),It=gt(ue(this,et));return tn.parent=!0,It.ok=ae(Kt)?Kt:!0,It.fail=ae(Ht)&&Ht,It.domain=Pe?Pt.domain:void 0,tn.state==Ut?tn.reactions.add(It):Te(function(){Ue(It,tn)}),It.promise}}),be=function(){var Vt=new we,Kt=ut(Vt);this.promise=Vt,this.resolve=ft(Jt,Kt),this.reject=ft(Mt,Kt)},ze.f=gt=function(Vt){return Vt===et||Vt===Ke?new be(Vt):dt(Vt)},!ce&&ae(Ne)&&Ct!==Object.prototype)){Xe=Ct.then,at||Me(Ct,"then",function(Kt,Ht){var tn=this;return new et(function(It,Dt){ye(Xe,tn,It,Dt)}).then(Kt,Ht)},{unsafe:!0});try{delete Ct.constructor}catch(Vt){}xe&&xe(Ct,it)}ge({global:!0,wrap:!0,forced:$e},{Promise:et}),fe(et,Qe,!1,!0),z(Qe)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(ie,_e,Ie){ie("../modules/es.promise.constructor"),ie("../modules/es.promise.all"),ie("../modules/es.promise.catch"),ie("../modules/es.promise.race"),ie("../modules/es.promise.reject"),ie("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/function-call"),Pe=ie("../internals/a-callable"),Ee=ie("../internals/new-promise-capability"),ye=ie("../internals/perform"),Me=ie("../internals/iterate"),ve=ie("../internals/promise-statics-incorrect-iteration");ge({target:"Promise",stat:!0,forced:ve},{race:function(fe){var z=this,ee=Ee.f(z),ae=ee.reject,re=ye(function(){var le=Pe(z.resolve);Me(fe,function(ue){ce(le,z,ue).then(ee.resolve,ae)})});return re.error&&ae(re.value),ee.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/function-call"),Pe=ie("../internals/new-promise-capability"),Ee=ie("../internals/promise-constructor-detection").CONSTRUCTOR;ge({target:"Promise",stat:!0,forced:Ee},{reject:function(Me){var ve=Pe.f(this);return ce(ve.reject,void 0,Me),ve.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/get-built-in"),Pe=ie("../internals/is-pure"),Ee=ie("../internals/promise-native-constructor"),ye=ie("../internals/promise-constructor-detection").CONSTRUCTOR,Me=ie("../internals/promise-resolve"),ve=ce("Promise"),xe=Pe&&!ye;ge({target:"Promise",stat:!0,forced:Pe||ye},{resolve:function(z){return Me(xe&&this===ve?Ee:this,z)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(ie,_e,Ie){var ge=ie("../internals/descriptors"),ce=ie("../internals/global"),Pe=ie("../internals/function-uncurry-this"),Ee=ie("../internals/is-forced"),ye=ie("../internals/inherit-if-required"),Me=ie("../internals/create-non-enumerable-property"),ve=ie("../internals/object-get-own-property-names").f,xe=ie("../internals/object-is-prototype-of"),fe=ie("../internals/is-regexp"),z=ie("../internals/to-string"),ee=ie("../internals/regexp-get-flags"),ae=ie("../internals/regexp-sticky-helpers"),re=ie("../internals/proxy-accessor"),le=ie("../internals/redefine"),ue=ie("../internals/fails"),pe=ie("../internals/has-own-property"),Te=ie("../internals/internal-state").enforce,Ce=ie("../internals/set-species"),Fe=ie("../internals/well-known-symbol"),Ae=ie("../internals/regexp-unsupported-dot-all"),je=ie("../internals/regexp-unsupported-ncg"),Ne=Fe("match"),Be=ce.RegExp,ze=Be.prototype,Qe=ce.SyntaxError,$e=Pe(ze.exec),Ye=Pe("".charAt),at=Pe("".replace),ut=Pe("".indexOf),ht=Pe("".slice),Ct=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,et=/a/g,it=/a/g,St=new Be(et)!==et,bt=ae.MISSED_STICKY,Pt=ae.UNSUPPORTED_Y,gt=ge&&(!St||bt||Ae||je||ue(function(){return it[Ne]=!1,Be(et)!=et||Be(it)==it||Be(et,"i")!="/a/i"})),dt=function(wt){for(var pt=wt.length,tt=0,Ze="",we=!1,be;tt<=pt;tt++){if(be=Ye(wt,tt),be==="\\"){Ze+=be+Ye(wt,++tt);continue}!we&&be==="."?Ze+="[\\s\\S]":(be==="["?we=!0:be==="]"&&(we=!1),Ze+=be)}return Ze},mt=function(wt){for(var pt=wt.length,tt=0,Ze="",we=[],be={},Ke=!1,Xe=!1,Oe=0,Ue="",He;tt<=pt;tt++){if(He=Ye(wt,tt),He==="\\")He=He+Ye(wt,++tt);else if(He==="]")Ke=!1;else if(!Ke)switch(!0){case He==="[":Ke=!0;break;case He==="(":$e(Ct,ht(wt,tt+1))&&(tt+=2,Xe=!0),Ze+=He,Oe++;continue;case(He===">"&&Xe):if(Ue===""||pe(be,Ue))throw new Qe("Invalid capture group name");be[Ue]=!0,we[we.length]=[Ue,Oe],Xe=!1,Ue="";continue}Xe?Ue+=He:Ze+=He}return[Ze,we]};if(Ee("RegExp",gt)){for(var kt=function(pt,tt){var Ze=xe(ze,this),we=fe(pt),be=tt===void 0,Ke=[],Xe=pt,Oe,Ue,He,Ve,Je,ct;if(!Ze&&we&&be&&pt.constructor===kt)return pt;if((we||xe(ze,pt))&&(pt=pt.source,be&&(tt=ee(Xe))),pt=pt===void 0?"":z(pt),tt=tt===void 0?"":z(tt),Xe=pt,Ae&&"dotAll"in et&&(Ue=!!tt&&ut(tt,"s")>-1,Ue&&(tt=at(tt,/s/g,""))),Oe=tt,bt&&"sticky"in et&&(He=!!tt&&ut(tt,"y")>-1,He&&Pt&&(tt=at(tt,/y/g,""))),je&&(Ve=mt(pt),pt=Ve[0],Ke=Ve[1]),Je=ye(Be(pt,tt),Ze?this:ze,kt),(Ue||He||Ke.length)&&(ct=Te(Je),Ue&&(ct.dotAll=!0,ct.raw=kt(dt(pt),Oe)),He&&(ct.sticky=!0),Ke.length&&(ct.groups=Ke)),pt!==Xe)try{Me(Je,"source",Xe===""?"(?:)":Xe)}catch(yt){}return Je},Et=ve(Be),Ut=0;Et.length>Ut;)re(kt,Be,Et[Ut++]);ze.constructor=kt,kt.prototype=ze,le(ce,"RegExp",kt)}Ce("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/regexp-exec");ge({target:"RegExp",proto:!0,forced:/./.exec!==ce},{exec:ce})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/function-name").PROPER,ce=ie("../internals/redefine"),Pe=ie("../internals/an-object"),Ee=ie("../internals/to-string"),ye=ie("../internals/fails"),Me=ie("../internals/regexp-get-flags"),ve="toString",xe=RegExp.prototype,fe=xe[ve],z=ye(function(){return fe.call({source:"a",flags:"b"})!="/a/b"}),ee=ge&&fe.name!=ve;(z||ee)&&ce(RegExp.prototype,ve,function(){var re=Pe(this),le=Ee(re.source),ue=Ee(Me(re));return"/"+le+"/"+ue},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/not-a-regexp"),Ee=ie("../internals/require-object-coercible"),ye=ie("../internals/to-string"),Me=ie("../internals/correct-is-regexp-logic"),ve=ce("".indexOf);ge({target:"String",proto:!0,forced:!Me("includes")},{includes:function(fe){return!!~ve(ye(Ee(this)),ye(Pe(fe)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/string-multibyte").charAt,ce=ie("../internals/to-string"),Pe=ie("../internals/internal-state"),Ee=ie("../internals/define-iterator"),ye="String Iterator",Me=Pe.set,ve=Pe.getterFor(ye);Ee(String,"String",function(xe){Me(this,{type:ye,string:ce(xe),index:0})},function(){var fe=ve(this),z=fe.string,ee=fe.index,ae;return ee>=z.length?{value:void 0,done:!0}:(ae=ge(z,ee),fe.index+=ae.length,{value:ae,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/function-call"),ce=ie("../internals/fix-regexp-well-known-symbol-logic"),Pe=ie("../internals/an-object"),Ee=ie("../internals/to-length"),ye=ie("../internals/to-string"),Me=ie("../internals/require-object-coercible"),ve=ie("../internals/get-method"),xe=ie("../internals/advance-string-index"),fe=ie("../internals/regexp-exec-abstract");ce("match",function(z,ee,ae){return[function(le){var ue=Me(this),pe=le==null?void 0:ve(le,z);return pe?ge(pe,le,ue):new RegExp(le)[z](ye(ue))},function(re){var le=Pe(this),ue=ye(re),pe=ae(ee,le,ue);if(pe.done)return pe.value;if(!le.global)return fe(le,ue);var Te=le.unicode;le.lastIndex=0;for(var Ce=[],Fe=0,Ae;(Ae=fe(le,ue))!==null;){var je=ye(Ae[0]);Ce[Fe]=je,je===""&&(le.lastIndex=xe(ue,Ee(le.lastIndex),Te)),Fe++}return Fe===0?null:Ce}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/function-apply"),ce=ie("../internals/function-call"),Pe=ie("../internals/function-uncurry-this"),Ee=ie("../internals/fix-regexp-well-known-symbol-logic"),ye=ie("../internals/fails"),Me=ie("../internals/an-object"),ve=ie("../internals/is-callable"),xe=ie("../internals/to-integer-or-infinity"),fe=ie("../internals/to-length"),z=ie("../internals/to-string"),ee=ie("../internals/require-object-coercible"),ae=ie("../internals/advance-string-index"),re=ie("../internals/get-method"),le=ie("../internals/get-substitution"),ue=ie("../internals/regexp-exec-abstract"),pe=ie("../internals/well-known-symbol"),Te=pe("replace"),Ce=Math.max,Fe=Math.min,Ae=Pe([].concat),je=Pe([].push),Ne=Pe("".indexOf),Be=Pe("".slice),ze=function(at){return at===void 0?at:String(at)},Qe=function(){return"a".replace(/./,"$0")==="$0"}(),$e=function(){return/./[Te]?/./[Te]("a","$0")==="":!1}(),Ye=!ye(function(){var at=/./;return at.exec=function(){var ut=[];return ut.groups={a:"7"},ut},"".replace(at,"$<a>")!=="7"});Ee("replace",function(at,ut,ht){var Ct=$e?"$":"$0";return[function(it,St){var bt=ee(this),Pt=it==null?void 0:re(it,Te);return Pt?ce(Pt,it,bt,St):ce(ut,z(bt),it,St)},function(et,it){var St=Me(this),bt=z(et);if(typeof it=="string"&&Ne(it,Ct)===-1&&Ne(it,"$<")===-1){var Pt=ht(ut,St,bt,it);if(Pt.done)return Pt.value}var gt=ve(it);gt||(it=z(it));var dt=St.global;if(dt){var mt=St.unicode;St.lastIndex=0}for(var kt=[];;){var Et=ue(St,bt);if(Et===null||(je(kt,Et),!dt))break;var Ut=z(Et[0]);Ut===""&&(St.lastIndex=ae(bt,fe(St.lastIndex),mt))}for(var wt="",pt=0,tt=0;tt<kt.length;tt++){Et=kt[tt];for(var Ze=z(Et[0]),we=Ce(Fe(xe(Et.index),bt.length),0),be=[],Ke=1;Ke<Et.length;Ke++)je(be,ze(Et[Ke]));var Xe=Et.groups;if(gt){var Oe=Ae([Ze],be,we,bt);Xe!==void 0&&je(Oe,Xe);var Ue=z(ge(it,void 0,Oe))}else Ue=le(Ze,bt,we,be,Xe,it);we>=pt&&(wt+=Be(bt,pt,we)+Ue,pt=we+Ze.length)}return wt+Be(bt,pt)}]},!Ye||!Qe||$e)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/function-call"),ce=ie("../internals/fix-regexp-well-known-symbol-logic"),Pe=ie("../internals/an-object"),Ee=ie("../internals/require-object-coercible"),ye=ie("../internals/same-value"),Me=ie("../internals/to-string"),ve=ie("../internals/get-method"),xe=ie("../internals/regexp-exec-abstract");ce("search",function(fe,z,ee){return[function(re){var le=Ee(this),ue=re==null?void 0:ve(re,fe);return ue?ge(ue,re,le):new RegExp(re)[fe](Me(le))},function(ae){var re=Pe(this),le=Me(ae),ue=ee(z,re,le);if(ue.done)return ue.value;var pe=re.lastIndex;ye(pe,0)||(re.lastIndex=0);var Te=xe(re,le);return ye(re.lastIndex,pe)||(re.lastIndex=pe),Te===null?-1:Te.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/function-apply"),ce=ie("../internals/function-call"),Pe=ie("../internals/function-uncurry-this"),Ee=ie("../internals/fix-regexp-well-known-symbol-logic"),ye=ie("../internals/is-regexp"),Me=ie("../internals/an-object"),ve=ie("../internals/require-object-coercible"),xe=ie("../internals/species-constructor"),fe=ie("../internals/advance-string-index"),z=ie("../internals/to-length"),ee=ie("../internals/to-string"),ae=ie("../internals/get-method"),re=ie("../internals/array-slice-simple"),le=ie("../internals/regexp-exec-abstract"),ue=ie("../internals/regexp-exec"),pe=ie("../internals/regexp-sticky-helpers"),Te=ie("../internals/fails"),Ce=pe.UNSUPPORTED_Y,Fe=4294967295,Ae=Math.min,je=[].push,Ne=Pe(/./.exec),Be=Pe(je),ze=Pe("".slice),Qe=!Te(function(){var $e=/(?:)/,Ye=$e.exec;$e.exec=function(){return Ye.apply(this,arguments)};var at="ab".split($e);return at.length!==2||at[0]!=="a"||at[1]!=="b"});Ee("split",function($e,Ye,at){var ut;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ut=function(ht,Ct){var et=ee(ve(this)),it=Ct===void 0?Fe:Ct>>>0;if(it===0)return[];if(ht===void 0)return[et];if(!ye(ht))return ce(Ye,et,ht,it);for(var St=[],bt=(ht.ignoreCase?"i":"")+(ht.multiline?"m":"")+(ht.unicode?"u":"")+(ht.sticky?"y":""),Pt=0,gt=new RegExp(ht.source,bt+"g"),dt,mt,kt;(dt=ce(ue,gt,et))&&(mt=gt.lastIndex,!(mt>Pt&&(Be(St,ze(et,Pt,dt.index)),dt.length>1&&dt.index<et.length&&ge(je,St,re(dt,1)),kt=dt[0].length,Pt=mt,St.length>=it)));)gt.lastIndex===dt.index&>.lastIndex++;return Pt===et.length?(kt||!Ne(gt,""))&&Be(St,""):Be(St,ze(et,Pt)),St.length>it?re(St,0,it):St}:"0".split(void 0,0).length?ut=function(ht,Ct){return ht===void 0&&Ct===0?[]:ce(Ye,this,ht,Ct)}:ut=Ye,[function(Ct,et){var it=ve(this),St=Ct==null?void 0:ae(Ct,$e);return St?ce(St,Ct,it,et):ce(ut,ee(it),Ct,et)},function(ht,Ct){var et=Me(this),it=ee(ht),St=at(ut,et,it,Ct,ut!==Ye);if(St.done)return St.value;var bt=xe(et,RegExp),Pt=et.unicode,gt=(et.ignoreCase?"i":"")+(et.multiline?"m":"")+(et.unicode?"u":"")+(Ce?"g":"y"),dt=new bt(Ce?"^(?:"+et.source+")":et,gt),mt=Ct===void 0?Fe:Ct>>>0;if(mt===0)return[];if(it.length===0)return le(dt,it)===null?[it]:[];for(var kt=0,Et=0,Ut=[];Et<it.length;){dt.lastIndex=Ce?0:Et;var wt=le(dt,Ce?ze(it,Et):it),pt;if(wt===null||(pt=Ae(z(dt.lastIndex+(Ce?Et:0)),it.length))===kt)Et=fe(it,Et,Pt);else{if(Be(Ut,ze(it,kt,Et)),Ut.length===mt)return Ut;for(var tt=1;tt<=wt.length-1;tt++)if(Be(Ut,wt[tt]),Ut.length===mt)return Ut;Et=kt=pt}}return Be(Ut,ze(it,kt)),Ut}]},!Qe,Ce)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/string-trim").trim,Pe=ie("../internals/string-trim-forced");ge({target:"String",proto:!0,forced:Pe("trim")},{trim:function(){return ce(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/global"),Pe=ie("../internals/function-call"),Ee=ie("../internals/function-uncurry-this"),ye=ie("../internals/is-pure"),Me=ie("../internals/descriptors"),ve=ie("../internals/native-symbol"),xe=ie("../internals/fails"),fe=ie("../internals/has-own-property"),z=ie("../internals/object-is-prototype-of"),ee=ie("../internals/an-object"),ae=ie("../internals/to-indexed-object"),re=ie("../internals/to-property-key"),le=ie("../internals/to-string"),ue=ie("../internals/create-property-descriptor"),pe=ie("../internals/object-create"),Te=ie("../internals/object-keys"),Ce=ie("../internals/object-get-own-property-names"),Fe=ie("../internals/object-get-own-property-names-external"),Ae=ie("../internals/object-get-own-property-symbols"),je=ie("../internals/object-get-own-property-descriptor"),Ne=ie("../internals/object-define-property"),Be=ie("../internals/object-define-properties"),ze=ie("../internals/object-property-is-enumerable"),Qe=ie("../internals/redefine"),$e=ie("../internals/shared"),Ye=ie("../internals/shared-key"),at=ie("../internals/hidden-keys"),ut=ie("../internals/uid"),ht=ie("../internals/well-known-symbol"),Ct=ie("../internals/well-known-symbol-wrapped"),et=ie("../internals/define-well-known-symbol"),it=ie("../internals/symbol-define-to-primitive"),St=ie("../internals/set-to-string-tag"),bt=ie("../internals/internal-state"),Pt=ie("../internals/array-iteration").forEach,gt=Ye("hidden"),dt="Symbol",mt="prototype",kt=bt.set,Et=bt.getterFor(dt),Ut=Object[mt],wt=ce.Symbol,pt=wt&&wt[mt],tt=ce.TypeError,Ze=ce.QObject,we=je.f,be=Ne.f,Ke=Fe.f,Xe=ze.f,Oe=Ee([].push),Ue=$e("symbols"),He=$e("op-symbols"),Ve=$e("wks"),Je=!Ze||!Ze[mt]||!Ze[mt].findChild,ct=Me&&xe(function(){return pe(be({},"a",{get:function(){return be(this,"a",{value:7}).a}})).a!=7})?function(It,Dt,qt){var sn=we(Ut,Dt);sn&&delete Ut[Dt],be(It,Dt,qt),sn&&It!==Ut&&be(Ut,Dt,sn)}:be,yt=function(It,Dt){var qt=Ue[It]=pe(pt);return kt(qt,{type:dt,tag:It,description:Dt}),Me||(qt.description=Dt),qt},ft=function(Dt,qt,sn){Dt===Ut&&ft(He,qt,sn),ee(Dt);var xn=re(qt);return ee(sn),fe(Ue,xn)?(sn.enumerable?(fe(Dt,gt)&&Dt[gt][xn]&&(Dt[gt][xn]=!1),sn=pe(sn,{enumerable:ue(0,!1)})):(fe(Dt,gt)||be(Dt,gt,ue(1,{})),Dt[gt][xn]=!0),ct(Dt,xn,sn)):be(Dt,xn,sn)},Mt=function(Dt,qt){ee(Dt);var sn=ae(qt),xn=Te(sn).concat(tn(sn));return Pt(xn,function(Ln){(!Me||Pe(Vt,sn,Ln))&&ft(Dt,Ln,sn[Ln])}),Dt},Jt=function(Dt,qt){return qt===void 0?pe(Dt):Mt(pe(Dt),qt)},Vt=function(Dt){var qt=re(Dt),sn=Pe(Xe,this,qt);return this===Ut&&fe(Ue,qt)&&!fe(He,qt)?!1:sn||!fe(this,qt)||!fe(Ue,qt)||fe(this,gt)&&this[gt][qt]?sn:!0},Kt=function(Dt,qt){var sn=ae(Dt),xn=re(qt);if(!(sn===Ut&&fe(Ue,xn)&&!fe(He,xn))){var Ln=we(sn,xn);return Ln&&fe(Ue,xn)&&!(fe(sn,gt)&&sn[gt][xn])&&(Ln.enumerable=!0),Ln}},Ht=function(Dt){var qt=Ke(ae(Dt)),sn=[];return Pt(qt,function(xn){!fe(Ue,xn)&&!fe(at,xn)&&Oe(sn,xn)}),sn},tn=function(It){var Dt=It===Ut,qt=Ke(Dt?He:ae(It)),sn=[];return Pt(qt,function(xn){fe(Ue,xn)&&(!Dt||fe(Ut,xn))&&Oe(sn,Ue[xn])}),sn};ve||(wt=function(){if(z(pt,this))throw tt("Symbol is not a constructor");var Dt=!arguments.length||arguments[0]===void 0?void 0:le(arguments[0]),qt=ut(Dt),sn=function(xn){this===Ut&&Pe(sn,He,xn),fe(this,gt)&&fe(this[gt],qt)&&(this[gt][qt]=!1),ct(this,qt,ue(1,xn))};return Me&&Je&&ct(Ut,qt,{configurable:!0,set:sn}),yt(qt,Dt)},pt=wt[mt],Qe(pt,"toString",function(){return Et(this).tag}),Qe(wt,"withoutSetter",function(It){return yt(ut(It),It)}),ze.f=Vt,Ne.f=ft,Be.f=Mt,je.f=Kt,Ce.f=Fe.f=Ht,Ae.f=tn,Ct.f=function(It){return yt(ht(It),It)},Me&&(be(pt,"description",{configurable:!0,get:function(){return Et(this).description}}),ye||Qe(Ut,"propertyIsEnumerable",Vt,{unsafe:!0}))),ge({global:!0,wrap:!0,forced:!ve,sham:!ve},{Symbol:wt}),Pt(Te(Ve),function(It){et(It)}),ge({target:dt,stat:!0,forced:!ve},{useSetter:function(){Je=!0},useSimple:function(){Je=!1}}),ge({target:"Object",stat:!0,forced:!ve,sham:!Me},{create:Jt,defineProperty:ft,defineProperties:Mt,getOwnPropertyDescriptor:Kt}),ge({target:"Object",stat:!0,forced:!ve},{getOwnPropertyNames:Ht}),it(),St(wt,dt),at[gt]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/export"),ce=ie("../internals/descriptors"),Pe=ie("../internals/global"),Ee=ie("../internals/function-uncurry-this"),ye=ie("../internals/has-own-property"),Me=ie("../internals/is-callable"),ve=ie("../internals/object-is-prototype-of"),xe=ie("../internals/to-string"),fe=ie("../internals/object-define-property").f,z=ie("../internals/copy-constructor-properties"),ee=Pe.Symbol,ae=ee&&ee.prototype;if(ce&&Me(ee)&&(!("description"in ae)||ee().description!==void 0)){var re={},le=function(){var Ne=arguments.length<1||arguments[0]===void 0?void 0:xe(arguments[0]),Be=ve(ae,this)?new ee(Ne):Ne===void 0?ee():ee(Ne);return Ne===""&&(re[Be]=!0),Be};z(le,ee),le.prototype=ae,ae.constructor=le;var ue=String(ee("test"))=="Symbol(test)",pe=Ee(ae.toString),Te=Ee(ae.valueOf),Ce=/^Symbol\((.*)\)[^)]+$/,Fe=Ee("".replace),Ae=Ee("".slice);fe(ae,"description",{configurable:!0,get:function(){var Ne=Te(this),Be=pe(Ne);if(ye(re,Ne))return"";var ze=ue?Ae(Be,7,-1):Fe(Be,Ce,"$1");return ze===""?void 0:ze}}),ge({global:!0,forced:!0},{Symbol:le})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(ie,_e,Ie){var ge=ie("../internals/export"),ce=ie("../internals/get-built-in"),Pe=ie("../internals/has-own-property"),Ee=ie("../internals/to-string"),ye=ie("../internals/shared"),Me=ie("../internals/native-symbol-registry"),ve=ye("string-to-symbol-registry"),xe=ye("symbol-to-string-registry");ge({target:"Symbol",stat:!0,forced:!Me},{for:function(fe){var z=Ee(fe);if(Pe(ve,z))return ve[z];var ee=ce("Symbol")(z);return ve[z]=ee,xe[ee]=z,ee}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(ie,_e,Ie){var ge=ie("../internals/define-well-known-symbol");ge("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(ie,_e,Ie){ie("../modules/es.symbol.constructor"),ie("../modules/es.symbol.for"),ie("../modules/es.symbol.key-for"),ie("../modules/es.json.stringify"),ie("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(ie,_e,Ie){var ge=ie("../internals/export"),ce=ie("../internals/has-own-property"),Pe=ie("../internals/is-symbol"),Ee=ie("../internals/try-to-string"),ye=ie("../internals/shared"),Me=ie("../internals/native-symbol-registry"),ve=ye("symbol-to-string-registry");ge({target:"Symbol",stat:!0,forced:!Me},{keyFor:function(fe){if(!Pe(fe))throw TypeError(Ee(fe)+" is not a symbol");if(ce(ve,fe))return ve[fe]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/function-uncurry-this"),ce=ie("../internals/array-buffer-view-core"),Pe=ie("../internals/array-copy-within"),Ee=ge(Pe),ye=ce.aTypedArray,Me=ce.exportTypedArrayMethod;Me("copyWithin",function(xe,fe){return Ee(ye(this),xe,fe,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/array-iteration").every,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("every",function(Me){return ce(Pe(this),Me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/function-call"),Pe=ie("../internals/array-fill"),Ee=ge.aTypedArray,ye=ge.exportTypedArrayMethod;ye("fill",function(ve){var xe=arguments.length;return ce(Pe,Ee(this),ve,xe>1?arguments[1]:void 0,xe>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/array-iteration").filter,Pe=ie("../internals/typed-array-from-species-and-list"),Ee=ge.aTypedArray,ye=ge.exportTypedArrayMethod;ye("filter",function(ve){var xe=ce(Ee(this),ve,arguments.length>1?arguments[1]:void 0);return Pe(this,xe)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/array-iteration").findIndex,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("findIndex",function(Me){return ce(Pe(this),Me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/array-iteration").find,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("find",function(Me){return ce(Pe(this),Me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/array-iteration").forEach,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("forEach",function(Me){ce(Pe(this),Me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/array-includes").includes,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("includes",function(Me){return ce(Pe(this),Me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/array-includes").indexOf,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("indexOf",function(Me){return ce(Pe(this),Me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/global"),ce=ie("../internals/fails"),Pe=ie("../internals/function-uncurry-this"),Ee=ie("../internals/array-buffer-view-core"),ye=ie("../modules/es.array.iterator"),Me=ie("../internals/well-known-symbol"),ve=Me("iterator"),xe=ge.Uint8Array,fe=Pe(ye.values),z=Pe(ye.keys),ee=Pe(ye.entries),ae=Ee.aTypedArray,re=Ee.exportTypedArrayMethod,le=xe&&xe.prototype,ue=!ce(function(){le[ve].call([1])}),pe=!!le&&le.values&&le[ve]===le.values&&le.values.name==="values",Te=function(){return fe(ae(this))};re("entries",function(){return ee(ae(this))},ue),re("keys",function(){return z(ae(this))},ue),re("values",Te,ue||!pe,{name:"values"}),re(ve,Te,ue||!pe,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/function-uncurry-this"),Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod,ye=ce([].join);Ee("join",function(ve){return ye(Pe(this),ve)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/function-apply"),Pe=ie("../internals/array-last-index-of"),Ee=ge.aTypedArray,ye=ge.exportTypedArrayMethod;ye("lastIndexOf",function(ve){var xe=arguments.length;return ce(Pe,Ee(this),xe>1?[ve,arguments[1]]:[ve])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/array-iteration").map,Pe=ie("../internals/typed-array-species-constructor"),Ee=ge.aTypedArray,ye=ge.exportTypedArrayMethod;ye("map",function(ve){return ce(Ee(this),ve,arguments.length>1?arguments[1]:void 0,function(xe,fe){return new(Pe(xe))(fe)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/array-reduce").right,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("reduceRight",function(Me){var ve=arguments.length;return ce(Pe(this),Me,ve,ve>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/array-reduce").left,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("reduce",function(Me){var ve=arguments.length;return ce(Pe(this),Me,ve,ve>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ge.aTypedArray,Pe=ge.exportTypedArrayMethod,Ee=Math.floor;Pe("reverse",function(){for(var Me=this,ve=ce(Me).length,xe=Ee(ve/2),fe=0,z;fe<xe;)z=Me[fe],Me[fe++]=Me[--ve],Me[ve]=z;return Me})},{"../internals/array-buffer-view-core":103}],331:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/global"),ce=ie("../internals/function-call"),Pe=ie("../internals/array-buffer-view-core"),Ee=ie("../internals/length-of-array-like"),ye=ie("../internals/to-offset"),Me=ie("../internals/to-object"),ve=ie("../internals/fails"),xe=ge.RangeError,fe=ge.Int8Array,z=fe&&fe.prototype,ee=z&&z.set,ae=Pe.aTypedArray,re=Pe.exportTypedArrayMethod,le=!ve(function(){var pe=new Uint8ClampedArray(2);return ce(ee,pe,{length:1,0:3},1),pe[1]!==3}),ue=le&&Pe.NATIVE_ARRAY_BUFFER_VIEWS&&ve(function(){var pe=new fe(2);return pe.set(1),pe.set("2",1),pe[0]!==0||pe[1]!==2});re("set",function(Te){ae(this);var Ce=ye(arguments.length>1?arguments[1]:void 0,1),Fe=Me(Te);if(le)return ce(ee,this,Fe,Ce);var Ae=this.length,je=Ee(Fe),Ne=0;if(je+Ce>Ae)throw xe("Wrong length");for(;Ne<je;)this[Ce+Ne]=Fe[Ne++]},!le||ue)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/typed-array-species-constructor"),Pe=ie("../internals/fails"),Ee=ie("../internals/array-slice"),ye=ge.aTypedArray,Me=ge.exportTypedArrayMethod,ve=Pe(function(){new Int8Array(1).slice()});Me("slice",function(fe,z){for(var ee=Ee(ye(this),fe,z),ae=ce(this),re=0,le=ee.length,ue=new ae(le);le>re;)ue[re]=ee[re++];return ue},ve)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/array-iteration").some,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("some",function(Me){return ce(Pe(this),Me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/global"),ce=ie("../internals/function-uncurry-this"),Pe=ie("../internals/fails"),Ee=ie("../internals/a-callable"),ye=ie("../internals/array-sort"),Me=ie("../internals/array-buffer-view-core"),ve=ie("../internals/engine-ff-version"),xe=ie("../internals/engine-is-ie-or-edge"),fe=ie("../internals/engine-v8-version"),z=ie("../internals/engine-webkit-version"),ee=Me.aTypedArray,ae=Me.exportTypedArrayMethod,re=ge.Uint16Array,le=re&&ce(re.prototype.sort),ue=!!le&&!(Pe(function(){le(new re(2),null)})&&Pe(function(){le(new re(2),{})})),pe=!!le&&!Pe(function(){if(fe)return fe<74;if(ve)return ve<67;if(xe)return!0;if(z)return z<602;var Ce=new re(516),Fe=Array(516),Ae,je;for(Ae=0;Ae<516;Ae++)je=Ae%4,Ce[Ae]=515-Ae,Fe[Ae]=Ae-2*je+3;for(le(Ce,function(Ne,Be){return(Ne/4|0)-(Be/4|0)}),Ae=0;Ae<516;Ae++)if(Ce[Ae]!==Fe[Ae])return!0}),Te=function(Ce){return function(Fe,Ae){return Ce!==void 0?+Ce(Fe,Ae)||0:Ae!==Ae?-1:Fe!==Fe?1:Fe===0&&Ae===0?1/Fe>0&&1/Ae<0?1:-1:Fe>Ae}};ae("sort",function(Fe){return Fe!==void 0&&Ee(Fe),pe?le(this,Fe):ye(ee(this),Te(Fe))},!pe||ue)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core"),ce=ie("../internals/to-length"),Pe=ie("../internals/to-absolute-index"),Ee=ie("../internals/typed-array-species-constructor"),ye=ge.aTypedArray,Me=ge.exportTypedArrayMethod;Me("subarray",function(xe,fe){var z=ye(this),ee=z.length,ae=Pe(xe,ee),re=Ee(z);return new re(z.buffer,z.byteOffset+ae*z.BYTES_PER_ELEMENT,ce((fe===void 0?ee:Pe(fe,ee))-ae))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/global"),ce=ie("../internals/function-apply"),Pe=ie("../internals/array-buffer-view-core"),Ee=ie("../internals/fails"),ye=ie("../internals/array-slice"),Me=ge.Int8Array,ve=Pe.aTypedArray,xe=Pe.exportTypedArrayMethod,fe=[].toLocaleString,z=!!Me&&Ee(function(){fe.call(new Me(1))}),ee=Ee(function(){return[1,2].toLocaleString()!=new Me([1,2]).toLocaleString()})||!Ee(function(){Me.prototype.toLocaleString.call([1,2])});xe("toLocaleString",function(){return ce(fe,z?ye(ve(this)):ve(this),ye(arguments))},ee)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(ie,_e,Ie){"use strict";var ge=ie("../internals/array-buffer-view-core").exportTypedArrayMethod,ce=ie("../internals/fails"),Pe=ie("../internals/global"),Ee=ie("../internals/function-uncurry-this"),ye=Pe.Uint8Array,Me=ye&&ye.prototype||{},ve=[].toString,xe=Ee([].join);ce(function(){ve.call({})})&&(ve=function(){return xe(this)});var fe=Me.toString!=ve;ge("toString",ve,fe)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(ie,_e,Ie){var ge=ie("../internals/typed-array-constructor");ge("Uint8",function(ce){return function(Ee,ye,Me){return ce(this,Ee,ye,Me)}})},{"../internals/typed-array-constructor":258}],339:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/dom-iterables"),Pe=ie("../internals/dom-token-list-prototype"),Ee=ie("../internals/array-for-each"),ye=ie("../internals/create-non-enumerable-property"),Me=function(xe){if(xe&&xe.forEach!==Ee)try{ye(xe,"forEach",Ee)}catch(fe){xe.forEach=Ee}};for(var ve in ce)ce[ve]&&Me(ge[ve]&&ge[ve].prototype);Me(Pe)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(ie,_e,Ie){var ge=ie("../internals/global"),ce=ie("../internals/dom-iterables"),Pe=ie("../internals/dom-token-list-prototype"),Ee=ie("../modules/es.array.iterator"),ye=ie("../internals/create-non-enumerable-property"),Me=ie("../internals/well-known-symbol"),ve=Me("iterator"),xe=Me("toStringTag"),fe=Ee.values,z=function(ae,re){if(ae){if(ae[ve]!==fe)try{ye(ae,ve,fe)}catch(ue){ae[ve]=fe}if(ae[xe]||ye(ae,xe,re),ce[re]){for(var le in Ee)if(ae[le]!==Ee[le])try{ye(ae,le,Ee[le])}catch(ue){ae[le]=Ee[le]}}}};for(var ee in ce)z(ge[ee]&&ge[ee].prototype,ee);z(Pe,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(ie,_e,Ie){function ge(pe){return Array.isArray?Array.isArray(pe):ue(pe)==="[object Array]"}Ie.isArray=ge;function ce(pe){return typeof pe=="boolean"}Ie.isBoolean=ce;function Pe(pe){return pe===null}Ie.isNull=Pe;function Ee(pe){return pe==null}Ie.isNullOrUndefined=Ee;function ye(pe){return typeof pe=="number"}Ie.isNumber=ye;function Me(pe){return typeof pe=="string"}Ie.isString=Me;function ve(pe){return typeof pe=="symbol"}Ie.isSymbol=ve;function xe(pe){return pe===void 0}Ie.isUndefined=xe;function fe(pe){return ue(pe)==="[object RegExp]"}Ie.isRegExp=fe;function z(pe){return typeof pe=="object"&&pe!==null}Ie.isObject=z;function ee(pe){return ue(pe)==="[object Date]"}Ie.isDate=ee;function ae(pe){return ue(pe)==="[object Error]"||pe instanceof Error}Ie.isError=ae;function re(pe){return typeof pe=="function"}Ie.isFunction=re;function le(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}Ie.isPrimitive=le,Ie.isBuffer=ie("buffer").Buffer.isBuffer;function ue(pe){return Object.prototype.toString.call(pe)}},{buffer:90}],342:[function(ie,_e,Ie){(function(ge){"use strict";var ce=function(){var ve=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,xe=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,fe=/[^-+\dA-Z]/g;return function(z,ee,ae,re){if(arguments.length===1&&Me(z)==="string"&&!/\d/.test(z)&&(ee=z,z=void 0),z=z||new Date,z instanceof Date||(z=new Date(z)),isNaN(z))throw TypeError("Invalid date");ee=String(ce.masks[ee]||ee||ce.masks.default);var le=ee.slice(0,4);(le==="UTC:"||le==="GMT:")&&(ee=ee.slice(4),ae=!0,le==="GMT:"&&(re=!0));var ue=ae?"getUTC":"get",pe=z[ue+"Date"](),Te=z[ue+"Day"](),Ce=z[ue+"Month"](),Fe=z[ue+"FullYear"](),Ae=z[ue+"Hours"](),je=z[ue+"Minutes"](),Ne=z[ue+"Seconds"](),Be=z[ue+"Milliseconds"](),ze=ae?0:z.getTimezoneOffset(),Qe=Ee(z),$e=ye(z),Ye={d:pe,dd:Pe(pe),ddd:ce.i18n.dayNames[Te],dddd:ce.i18n.dayNames[Te+7],m:Ce+1,mm:Pe(Ce+1),mmm:ce.i18n.monthNames[Ce],mmmm:ce.i18n.monthNames[Ce+12],yy:String(Fe).slice(2),yyyy:Fe,h:Ae%12||12,hh:Pe(Ae%12||12),H:Ae,HH:Pe(Ae),M:je,MM:Pe(je),s:Ne,ss:Pe(Ne),l:Pe(Be,3),L:Pe(Math.round(Be/10)),t:Ae<12?"a":"p",tt:Ae<12?"am":"pm",T:Ae<12?"A":"P",TT:Ae<12?"AM":"PM",Z:re?"GMT":ae?"UTC":(String(z).match(xe)||[""]).pop().replace(fe,""),o:(ze>0?"-":"+")+Pe(Math.floor(Math.abs(ze)/60)*100+Math.abs(ze)%60,4),S:["th","st","nd","rd"][pe%10>3?0:(pe%100-pe%10!=10)*pe%10],W:Qe,N:$e};return ee.replace(ve,function(at){return at in Ye?Ye[at]:at.slice(1,at.length-1)})}}();ce.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},ce.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function Pe(ve,xe){for(ve=String(ve),xe=xe||2;ve.length<xe;)ve="0"+ve;return ve}function Ee(ve){var xe=new Date(ve.getFullYear(),ve.getMonth(),ve.getDate());xe.setDate(xe.getDate()-(xe.getDay()+6)%7+3);var fe=new Date(xe.getFullYear(),0,4);fe.setDate(fe.getDate()-(fe.getDay()+6)%7+3);var z=xe.getTimezoneOffset()-fe.getTimezoneOffset();xe.setHours(xe.getHours()-z);var ee=(xe-fe)/(864e5*7);return 1+Math.floor(ee)}function ye(ve){var xe=ve.getDay();return xe===0&&(xe=7),xe}function Me(ve){return ve===null?"null":ve===void 0?"undefined":typeof ve!="object"?typeof ve:Array.isArray(ve)?"array":{}.toString.call(ve).slice(8,-1).toLowerCase()}typeof Ge=="function"&&Ge.amd?Ge(function(){return ce}):typeof Ie=="object"?_e.exports=ce:ge.dateFormat=ce})(this)},{}],343:[function(ie,_e,Ie){"use strict";var ge=/["'&<>]/;_e.exports=ce;function ce(Pe){var Ee=""+Pe,ye=ge.exec(Ee);if(!ye)return Ee;var Me,ve="",xe=0,fe=0;for(xe=ye.index;xe<Ee.length;xe++){switch(Ee.charCodeAt(xe)){case 34:Me=""";break;case 38:Me="&";break;case 39:Me="'";break;case 60:Me="<";break;case 62:Me=">";break;default:continue}fe!==xe&&(ve+=Ee.substring(fe,xe)),fe=xe+1,ve+=Me}return fe!==xe?ve+Ee.substring(fe,xe):ve}},{}],344:[function(ie,_e,Ie){"use strict";var ge=typeof Reflect=="object"?Reflect:null,ce=ge&&typeof ge.apply=="function"?ge.apply:function(Ne,Be,ze){return Function.prototype.apply.call(Ne,Be,ze)},Pe;ge&&typeof ge.ownKeys=="function"?Pe=ge.ownKeys:Object.getOwnPropertySymbols?Pe=function(Ne){return Object.getOwnPropertyNames(Ne).concat(Object.getOwnPropertySymbols(Ne))}:Pe=function(Ne){return Object.getOwnPropertyNames(Ne)};function Ee(je){console&&console.warn&&console.warn(je)}var ye=Number.isNaN||function(Ne){return Ne!==Ne};function Me(){Me.init.call(this)}_e.exports=Me,_e.exports.once=Ce,Me.EventEmitter=Me,Me.prototype._events=void 0,Me.prototype._eventsCount=0,Me.prototype._maxListeners=void 0;var ve=10;function xe(je){if(typeof je!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof je)}Object.defineProperty(Me,"defaultMaxListeners",{enumerable:!0,get:function(){return ve},set:function(je){if(typeof je!="number"||je<0||ye(je))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+je+".");ve=je}}),Me.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},Me.prototype.setMaxListeners=function(Ne){if(typeof Ne!="number"||Ne<0||ye(Ne))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ne+".");return this._maxListeners=Ne,this};function fe(je){return je._maxListeners===void 0?Me.defaultMaxListeners:je._maxListeners}Me.prototype.getMaxListeners=function(){return fe(this)},Me.prototype.emit=function(Ne){for(var Be=[],ze=1;ze<arguments.length;ze++)Be.push(arguments[ze]);var Qe=Ne==="error",$e=this._events;if($e!==void 0)Qe=Qe&&$e.error===void 0;else if(!Qe)return!1;if(Qe){var Ye;if(Be.length>0&&(Ye=Be[0]),Ye instanceof Error)throw Ye;var at=new Error("Unhandled error."+(Ye?" ("+Ye.message+")":""));throw at.context=Ye,at}var ut=$e[Ne];if(ut===void 0)return!1;if(typeof ut=="function")ce(ut,this,Be);else for(var ht=ut.length,Ct=ue(ut,ht),ze=0;ze<ht;++ze)ce(Ct[ze],this,Be);return!0};function z(je,Ne,Be,ze){var Qe,$e,Ye;if(xe(Be),$e=je._events,$e===void 0?($e=je._events=Object.create(null),je._eventsCount=0):($e.newListener!==void 0&&(je.emit("newListener",Ne,Be.listener?Be.listener:Be),$e=je._events),Ye=$e[Ne]),Ye===void 0)Ye=$e[Ne]=Be,++je._eventsCount;else if(typeof Ye=="function"?Ye=$e[Ne]=ze?[Be,Ye]:[Ye,Be]:ze?Ye.unshift(Be):Ye.push(Be),Qe=fe(je),Qe>0&&Ye.length>Qe&&!Ye.warned){Ye.warned=!0;var at=new Error("Possible EventEmitter memory leak detected. "+Ye.length+" "+String(Ne)+" listeners added. Use emitter.setMaxListeners() to increase limit");at.name="MaxListenersExceededWarning",at.emitter=je,at.type=Ne,at.count=Ye.length,Ee(at)}return je}Me.prototype.addListener=function(Ne,Be){return z(this,Ne,Be,!1)},Me.prototype.on=Me.prototype.addListener,Me.prototype.prependListener=function(Ne,Be){return z(this,Ne,Be,!0)};function ee(){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 ae(je,Ne,Be){var ze={fired:!1,wrapFn:void 0,target:je,type:Ne,listener:Be},Qe=ee.bind(ze);return Qe.listener=Be,ze.wrapFn=Qe,Qe}Me.prototype.once=function(Ne,Be){return xe(Be),this.on(Ne,ae(this,Ne,Be)),this},Me.prototype.prependOnceListener=function(Ne,Be){return xe(Be),this.prependListener(Ne,ae(this,Ne,Be)),this},Me.prototype.removeListener=function(Ne,Be){var ze,Qe,$e,Ye,at;if(xe(Be),Qe=this._events,Qe===void 0)return this;if(ze=Qe[Ne],ze===void 0)return this;if(ze===Be||ze.listener===Be)--this._eventsCount===0?this._events=Object.create(null):(delete Qe[Ne],Qe.removeListener&&this.emit("removeListener",Ne,ze.listener||Be));else if(typeof ze!="function"){for($e=-1,Ye=ze.length-1;Ye>=0;Ye--)if(ze[Ye]===Be||ze[Ye].listener===Be){at=ze[Ye].listener,$e=Ye;break}if($e<0)return this;$e===0?ze.shift():pe(ze,$e),ze.length===1&&(Qe[Ne]=ze[0]),Qe.removeListener!==void 0&&this.emit("removeListener",Ne,at||Be)}return this},Me.prototype.off=Me.prototype.removeListener,Me.prototype.removeAllListeners=function(Ne){var Be,ze,Qe;if(ze=this._events,ze===void 0)return this;if(ze.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ze[Ne]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ze[Ne]),this;if(arguments.length===0){var $e=Object.keys(ze),Ye;for(Qe=0;Qe<$e.length;++Qe)Ye=$e[Qe],Ye!=="removeListener"&&this.removeAllListeners(Ye);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Be=ze[Ne],typeof Be=="function")this.removeListener(Ne,Be);else if(Be!==void 0)for(Qe=Be.length-1;Qe>=0;Qe--)this.removeListener(Ne,Be[Qe]);return this};function re(je,Ne,Be){var ze=je._events;if(ze===void 0)return[];var Qe=ze[Ne];return Qe===void 0?[]:typeof Qe=="function"?Be?[Qe.listener||Qe]:[Qe]:Be?Te(Qe):ue(Qe,Qe.length)}Me.prototype.listeners=function(Ne){return re(this,Ne,!0)},Me.prototype.rawListeners=function(Ne){return re(this,Ne,!1)},Me.listenerCount=function(je,Ne){return typeof je.listenerCount=="function"?je.listenerCount(Ne):le.call(je,Ne)},Me.prototype.listenerCount=le;function le(je){var Ne=this._events;if(Ne!==void 0){var Be=Ne[je];if(typeof Be=="function")return 1;if(Be!==void 0)return Be.length}return 0}Me.prototype.eventNames=function(){return this._eventsCount>0?Pe(this._events):[]};function ue(je,Ne){for(var Be=new Array(Ne),ze=0;ze<Ne;++ze)Be[ze]=je[ze];return Be}function pe(je,Ne){for(;Ne+1<je.length;Ne++)je[Ne]=je[Ne+1];je.pop()}function Te(je){for(var Ne=new Array(je.length),Be=0;Be<Ne.length;++Be)Ne[Be]=je[Be].listener||je[Be];return Ne}function Ce(je,Ne){return new Promise(function(Be,ze){function Qe(Ye){je.removeListener(Ne,$e),ze(Ye)}function $e(){typeof je.removeListener=="function"&&je.removeListener("error",Qe),Be([].slice.call(arguments))}Ae(je,Ne,$e,{once:!0}),Ne!=="error"&&Fe(je,Qe,{once:!0})})}function Fe(je,Ne,Be){typeof je.on=="function"&&Ae(je,"error",Ne,Be)}function Ae(je,Ne,Be,ze){if(typeof je.on=="function")ze.once?je.once(Ne,Be):je.on(Ne,Be);else if(typeof je.addEventListener=="function")je.addEventListener(Ne,function Qe($e){ze.once&&je.removeEventListener(Ne,Qe),Be($e)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof je)}},{}],345:[function(ie,_e,Ie){"use strict";var ge=ie("is-callable"),ce=Object.prototype.toString,Pe=Object.prototype.hasOwnProperty,Ee=function(fe,z,ee){for(var ae=0,re=fe.length;ae<re;ae++)Pe.call(fe,ae)&&(ee==null?z(fe[ae],ae,fe):z.call(ee,fe[ae],ae,fe))},ye=function(fe,z,ee){for(var ae=0,re=fe.length;ae<re;ae++)ee==null?z(fe.charAt(ae),ae,fe):z.call(ee,fe.charAt(ae),ae,fe)},Me=function(fe,z,ee){for(var ae in fe)Pe.call(fe,ae)&&(ee==null?z(fe[ae],ae,fe):z.call(ee,fe[ae],ae,fe))},ve=function(fe,z,ee){if(!ge(z))throw new TypeError("iterator must be a function");var ae;arguments.length>=3&&(ae=ee),ce.call(fe)==="[object Array]"?Ee(fe,z,ae):typeof fe=="string"?ye(fe,z,ae):Me(fe,z,ae)};_e.exports=ve},{"is-callable":367}],346:[function(ie,_e,Ie){"use strict";var ge="Function.prototype.bind called on incompatible ",ce=Array.prototype.slice,Pe=Object.prototype.toString,Ee="[object Function]";_e.exports=function(Me){var ve=this;if(typeof ve!="function"||Pe.call(ve)!==Ee)throw new TypeError(ge+ve);for(var xe=ce.call(arguments,1),fe,z=function(){if(this instanceof fe){var ue=ve.apply(this,xe.concat(ce.call(arguments)));return Object(ue)===ue?ue:this}else return ve.apply(Me,xe.concat(ce.call(arguments)))},ee=Math.max(0,ve.length-xe.length),ae=[],re=0;re<ee;re++)ae.push("$"+re);if(fe=Function("binder","return function ("+ae.join(",")+"){ return binder.apply(this,arguments); }")(z),ve.prototype){var le=function(){};le.prototype=ve.prototype,fe.prototype=new le,le.prototype=null}return fe}},{}],347:[function(ie,_e,Ie){"use strict";var ge=ie("./implementation");_e.exports=Function.prototype.bind||ge},{"./implementation":346}],348:[function(ie,_e,Ie){"use strict";var ge,ce=SyntaxError,Pe=Function,Ee=TypeError,ye=function(ut){try{return Pe('"use strict"; return ('+ut+").constructor;")()}catch(ht){}},Me=Object.getOwnPropertyDescriptor;if(Me)try{Me({},"")}catch(ut){Me=null}var ve=function(){throw new Ee},xe=Me?function(){try{return arguments.callee,ve}catch(ut){try{return Me(arguments,"callee").get}catch(ht){return ve}}}():ve,fe=ie("has-symbols")(),z=ie("has-proto")(),ee=Object.getPrototypeOf||(z?function(ut){return ut.__proto__}:null),ae={},re=typeof Uint8Array=="undefined"||!ee?ge:ee(Uint8Array),le={"%AggregateError%":typeof AggregateError=="undefined"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":fe&&ee?ee([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics=="undefined"?ge:Atomics,"%BigInt%":typeof BigInt=="undefined"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ge:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ge:FinalizationRegistry,"%Function%":Pe,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array=="undefined"?ge:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ge:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fe&&ee?ee(ee([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map=="undefined"?ge:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!fe||!ee?ge:ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ge:Promise,"%Proxy%":typeof Proxy=="undefined"?ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ge:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!fe||!ee?ge:ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fe&&ee?ee(""[Symbol.iterator]()):ge,"%Symbol%":fe?Symbol:ge,"%SyntaxError%":ce,"%ThrowTypeError%":xe,"%TypedArray%":re,"%TypeError%":Ee,"%Uint8Array%":typeof Uint8Array=="undefined"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ge:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ge:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ge:WeakSet};if(ee)try{null.error}catch(ut){var ue=ee(ee(ut));le["%Error.prototype%"]=ue}var pe=function ut(ht){var Ct;if(ht==="%AsyncFunction%")Ct=ye("async function () {}");else if(ht==="%GeneratorFunction%")Ct=ye("function* () {}");else if(ht==="%AsyncGeneratorFunction%")Ct=ye("async function* () {}");else if(ht==="%AsyncGenerator%"){var et=ut("%AsyncGeneratorFunction%");et&&(Ct=et.prototype)}else if(ht==="%AsyncIteratorPrototype%"){var it=ut("%AsyncGenerator%");it&&ee&&(Ct=ee(it.prototype))}return le[ht]=Ct,Ct},Te={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ce=ie("function-bind"),Fe=ie("has"),Ae=Ce.call(Function.call,Array.prototype.concat),je=Ce.call(Function.apply,Array.prototype.splice),Ne=Ce.call(Function.call,String.prototype.replace),Be=Ce.call(Function.call,String.prototype.slice),ze=Ce.call(Function.call,RegExp.prototype.exec),Qe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$e=/\\(\\)?/g,Ye=function(ht){var Ct=Be(ht,0,1),et=Be(ht,-1);if(Ct==="%"&&et!=="%")throw new ce("invalid intrinsic syntax, expected closing `%`");if(et==="%"&&Ct!=="%")throw new ce("invalid intrinsic syntax, expected opening `%`");var it=[];return Ne(ht,Qe,function(St,bt,Pt,gt){it[it.length]=Pt?Ne(gt,$e,"$1"):bt||St}),it},at=function(ht,Ct){var et=ht,it;if(Fe(Te,et)&&(it=Te[et],et="%"+it[0]+"%"),Fe(le,et)){var St=le[et];if(St===ae&&(St=pe(et)),typeof St=="undefined"&&!Ct)throw new Ee("intrinsic "+ht+" exists, but is not available. Please file an issue!");return{alias:it,name:et,value:St}}throw new ce("intrinsic "+ht+" does not exist!")};_e.exports=function(ht,Ct){if(typeof ht!="string"||ht.length===0)throw new Ee("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ct!="boolean")throw new Ee('"allowMissing" argument must be a boolean');if(ze(/^%?[^%]*%?$/,ht)===null)throw new ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var et=Ye(ht),it=et.length>0?et[0]:"",St=at("%"+it+"%",Ct),bt=St.name,Pt=St.value,gt=!1,dt=St.alias;dt&&(it=dt[0],je(et,Ae([0,1],dt)));for(var mt=1,kt=!0;mt<et.length;mt+=1){var Et=et[mt],Ut=Be(Et,0,1),wt=Be(Et,-1);if((Ut==='"'||Ut==="'"||Ut==="`"||wt==='"'||wt==="'"||wt==="`")&&Ut!==wt)throw new ce("property names with quotes must have matching quotes");if((Et==="constructor"||!kt)&&(gt=!0),it+="."+Et,bt="%"+it+"%",Fe(le,bt))Pt=le[bt];else if(Pt!=null){if(!(Et in Pt)){if(!Ct)throw new Ee("base intrinsic for "+ht+" exists, but the property is not available.");return}if(Me&&mt+1>=et.length){var pt=Me(Pt,Et);kt=!!pt,kt&&"get"in pt&&!("originalValue"in pt.get)?Pt=pt.get:Pt=Pt[Et]}else kt=Fe(Pt,Et),Pt=Pt[Et];kt&&!gt&&(le[bt]=Pt)}}return Pt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(ie,_e,Ie){"use strict";var ge=ie("get-intrinsic"),ce=ge("%Object.getOwnPropertyDescriptor%",!0);if(ce)try{ce([],"length")}catch(Pe){ce=null}_e.exports=ce},{"get-intrinsic":348}],350:[function(ie,_e,Ie){"use strict";var ge={foo:{}},ce=Object;_e.exports=function(){return{__proto__:ge}.foo===ge.foo&&!({__proto__:null}instanceof ce)}},{}],351:[function(ie,_e,Ie){"use strict";var ge=typeof Symbol!="undefined"&&Symbol,ce=ie("./shams");_e.exports=function(){return typeof ge!="function"||typeof Symbol!="function"||typeof ge("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ce()}},{"./shams":352}],352:[function(ie,_e,Ie){"use strict";_e.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var ce={},Pe=Symbol("test"),Ee=Object(Pe);if(typeof Pe=="string"||Object.prototype.toString.call(Pe)!=="[object Symbol]"||Object.prototype.toString.call(Ee)!=="[object Symbol]")return!1;var ye=42;ce[Pe]=ye;for(Pe in ce)return!1;if(typeof Object.keys=="function"&&Object.keys(ce).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(ce).length!==0)return!1;var Me=Object.getOwnPropertySymbols(ce);if(Me.length!==1||Me[0]!==Pe||!Object.prototype.propertyIsEnumerable.call(ce,Pe))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var ve=Object.getOwnPropertyDescriptor(ce,Pe);if(ve.value!==ye||ve.enumerable!==!0)return!1}return!0}},{}],353:[function(ie,_e,Ie){"use strict";var ge=ie("has-symbols/shams");_e.exports=function(){return ge()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(ie,_e,Ie){"use strict";var ge=ie("function-bind");_e.exports=ge.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(ie,_e,Ie){var ge=ie("http"),ce=ie("url"),Pe=_e.exports;for(var Ee in ge)ge.hasOwnProperty(Ee)&&(Pe[Ee]=ge[Ee]);Pe.request=function(Me,ve){return Me=ye(Me),ge.request.call(this,Me,ve)},Pe.get=function(Me,ve){return Me=ye(Me),ge.get.call(this,Me,ve)};function ye(Me){if(typeof Me=="string"&&(Me=ce.parse(Me)),Me.protocol||(Me.protocol="https:"),Me.protocol!=="https:")throw new Error('Protocol "'+Me.protocol+'" not supported. Expected "https:"');return Me}},{http:468,url:472}],356:[function(ie,_e,Ie){"use strict";var ge=ie("util"),ce=ie("ms");_e.exports=function(Pe){if(typeof Pe=="number")return Pe;var Ee=ce(Pe);if(Ee===void 0){var ye=new Error(ge.format("humanize-ms(%j) result undefined",Pe));console.warn(ye.stack)}return Ee}},{ms:376,util:419}],357:[function(ie,_e,Ie){Ie.read=function(ge,ce,Pe,Ee,ye){var Me,ve,xe=ye*8-Ee-1,fe=(1<<xe)-1,z=fe>>1,ee=-7,ae=Pe?ye-1:0,re=Pe?-1:1,le=ge[ce+ae];for(ae+=re,Me=le&(1<<-ee)-1,le>>=-ee,ee+=xe;ee>0;Me=Me*256+ge[ce+ae],ae+=re,ee-=8);for(ve=Me&(1<<-ee)-1,Me>>=-ee,ee+=Ee;ee>0;ve=ve*256+ge[ce+ae],ae+=re,ee-=8);if(Me===0)Me=1-z;else{if(Me===fe)return ve?NaN:(le?-1:1)*(1/0);ve=ve+Math.pow(2,Ee),Me=Me-z}return(le?-1:1)*ve*Math.pow(2,Me-Ee)},Ie.write=function(ge,ce,Pe,Ee,ye,Me){var ve,xe,fe,z=Me*8-ye-1,ee=(1<<z)-1,ae=ee>>1,re=ye===23?Math.pow(2,-24)-Math.pow(2,-77):0,le=Ee?0:Me-1,ue=Ee?1:-1,pe=ce<0||ce===0&&1/ce<0?1:0;for(ce=Math.abs(ce),isNaN(ce)||ce===1/0?(xe=isNaN(ce)?1:0,ve=ee):(ve=Math.floor(Math.log(ce)/Math.LN2),ce*(fe=Math.pow(2,-ve))<1&&(ve--,fe*=2),ve+ae>=1?ce+=re/fe:ce+=re*Math.pow(2,1-ae),ce*fe>=2&&(ve++,fe/=2),ve+ae>=ee?(xe=0,ve=ee):ve+ae>=1?(xe=(ce*fe-1)*Math.pow(2,ye),ve=ve+ae):(xe=ce*Math.pow(2,ae-1)*Math.pow(2,ye),ve=0));ye>=8;ge[Pe+le]=xe&255,le+=ue,xe/=256,ye-=8);for(ve=ve<<ye|xe,z+=ye;z>0;ge[Pe+le]=ve&255,le+=ue,ve/=256,z-=8);ge[Pe+le-ue]|=pe*128}},{}],358:[function(ie,_e,Ie){"use strict";var ge=[ie("./nextTick"),ie("./queueMicrotask"),ie("./mutation.js"),ie("./messageChannel"),ie("./stateChange"),ie("./timeout")],ce,Pe,Ee=-1,ye=[],Me=!1;function ve(){!ce||!Pe||(ce=!1,Pe.length?ye=Pe.concat(ye):Ee=-1,ye.length&&xe())}function xe(){if(!ce){Me=!1,ce=!0;for(var le=ye.length,ue=setTimeout(ve);le;){for(Pe=ye,ye=[];Pe&&++Ee<le;)Pe[Ee].run();Ee=-1,le=ye.length}Pe=null,Ee=-1,ce=!1,clearTimeout(ue)}}for(var fe,z=-1,ee=ge.length;++z<ee;)if(ge[z]&&ge[z].test&&ge[z].test()){fe=ge[z].install(xe);break}function ae(le,ue){this.fun=le,this.array=ue}ae.prototype.run=function(){var le=this.fun,ue=this.array;switch(ue.length){case 0:return le();case 1:return le(ue[0]);case 2:return le(ue[0],ue[1]);case 3:return le(ue[0],ue[1],ue[2]);default:return le.apply(null,ue)}},_e.exports=re;function re(le){var ue=new Array(arguments.length-1);if(arguments.length>1)for(var pe=1;pe<arguments.length;pe++)ue[pe-1]=arguments[pe];ye.push(new ae(le,ue)),!Me&&!ce&&(Me=!0,fe())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(ie,_e,Ie){(function(ge){(function(){"use strict";Ie.test=function(){return ge.setImmediate?!1:typeof ge.MessageChannel!="undefined"},Ie.install=function(ce){var Pe=new ge.MessageChannel;return Pe.port1.onmessage=ce,function(){Pe.port2.postMessage(0)}}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(ie,_e,Ie){(function(ge){(function(){"use strict";var ce=ge.MutationObserver||ge.WebKitMutationObserver;Ie.test=function(){return ce},Ie.install=function(Pe){var Ee=0,ye=new ce(Pe),Me=ge.document.createTextNode("");return ye.observe(Me,{characterData:!0}),function(){Me.data=Ee=++Ee%2}}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(ie,_e,Ie){(function(ge){(function(){"use strict";Ie.test=function(){return typeof ge.queueMicrotask=="function"},Ie.install=function(ce){return function(){ge.queueMicrotask(ce)}}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(ie,_e,Ie){(function(ge){(function(){"use strict";Ie.test=function(){return"document"in ge&&"onreadystatechange"in ge.document.createElement("script")},Ie.install=function(ce){return function(){var Pe=ge.document.createElement("script");return Pe.onreadystatechange=function(){ce(),Pe.onreadystatechange=null,Pe.parentNode.removeChild(Pe),Pe=null},ge.document.documentElement.appendChild(Pe),ce}}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(ie,_e,Ie){"use strict";Ie.test=function(){return!0},Ie.install=function(ge){return function(){setTimeout(ge,0)}}},{}],364:[function(ie,_e,Ie){typeof Object.create=="function"?_e.exports=function(ce,Pe){Pe&&(ce.super_=Pe,ce.prototype=Object.create(Pe.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}))}:_e.exports=function(ce,Pe){if(Pe){ce.super_=Pe;var Ee=function(){};Ee.prototype=Pe.prototype,ce.prototype=new Ee,ce.prototype.constructor=ce}}},{}],365:[function(ie,_e,Ie){"use strict";var ge=ie("has-tostringtag/shams")(),ce=ie("call-bind/callBound"),Pe=ce("Object.prototype.toString"),Ee=function(xe){return ge&&xe&&typeof xe=="object"&&Symbol.toStringTag in xe?!1:Pe(xe)==="[object Arguments]"},ye=function(xe){return Ee(xe)?!0:xe!==null&&typeof xe=="object"&&typeof xe.length=="number"&&xe.length>=0&&Pe(xe)!=="[object Array]"&&Pe(xe.callee)==="[object Function]"},Me=function(){return Ee(arguments)}();Ee.isLegacyArguments=ye,_e.exports=Me?Ee:ye},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(ie,_e,Ie){_e.exports=function(Pe){return Pe!=null&&(ge(Pe)||ce(Pe)||!!Pe._isBuffer)};function ge(Pe){return!!Pe.constructor&&typeof Pe.constructor.isBuffer=="function"&&Pe.constructor.isBuffer(Pe)}function ce(Pe){return typeof Pe.readFloatLE=="function"&&typeof Pe.slice=="function"&&ge(Pe.slice(0,0))}},{}],367:[function(ie,_e,Ie){"use strict";var ge=Function.prototype.toString,ce=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Pe,Ee;if(typeof ce=="function"&&typeof Object.defineProperty=="function")try{Pe=Object.defineProperty({},"length",{get:function(){throw Ee}}),Ee={},ce(function(){throw 42},null,Pe)}catch(Fe){Fe!==Ee&&(ce=null)}else ce=null;var ye=/^\s*class\b/,Me=function(Ae){try{var je=ge.call(Ae);return ye.test(je)}catch(Ne){return!1}},ve=function(Ae){try{return Me(Ae)?!1:(ge.call(Ae),!0)}catch(je){return!1}},xe=Object.prototype.toString,fe="[object Object]",z="[object Function]",ee="[object GeneratorFunction]",ae="[object HTMLAllCollection]",re="[object HTML document.all class]",le="[object HTMLCollection]",ue=typeof Symbol=="function"&&!!Symbol.toStringTag,pe=!(0 in[,]),Te=function(){return!1};if(typeof document=="object"){var Ce=document.all;xe.call(Ce)===xe.call(document.all)&&(Te=function(Ae){if((pe||!Ae)&&(typeof Ae=="undefined"||typeof Ae=="object"))try{var je=xe.call(Ae);return(je===ae||je===re||je===le||je===fe)&&Ae("")==null}catch(Ne){}return!1})}_e.exports=ce?function(Ae){if(Te(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;try{ce(Ae,null,Pe)}catch(je){if(je!==Ee)return!1}return!Me(Ae)&&ve(Ae)}:function(Ae){if(Te(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;if(ue)return ve(Ae);if(Me(Ae))return!1;var je=xe.call(Ae);return je!==z&&je!==ee&&!/^\[object HTML/.test(je)?!1:ve(Ae)}},{}],368:[function(ie,_e,Ie){"use strict";var ge=Object.prototype.toString,ce=Function.prototype.toString,Pe=/^\s*(?:function)?\*/,Ee=ie("has-tostringtag/shams")(),ye=Object.getPrototypeOf,Me=function(){if(!Ee)return!1;try{return Function("return function*() {}")()}catch(xe){}},ve;_e.exports=function(fe){if(typeof fe!="function")return!1;if(Pe.test(ce.call(fe)))return!0;if(!Ee){var z=ge.call(fe);return z==="[object GeneratorFunction]"}if(!ye)return!1;if(typeof ve=="undefined"){var ee=Me();ve=ee?ye(ee):!1}return ye(fe)===ve}},{"has-tostringtag/shams":353}],369:[function(ie,_e,Ie){"use strict";var ge=ie("which-typed-array");_e.exports=function(Pe){return!!ge(Pe)}},{"which-typed-array":420}],370:[function(ie,_e,Ie){var ge={}.toString;_e.exports=Array.isArray||function(ce){return ge.call(ce)=="[object Array]"}},{}],371:[function(ie,_e,Ie){(function(ge){(function(){(function(ce,Pe){typeof Ie=="object"&&typeof _e!="undefined"?_e.exports=Pe(ce):typeof Ge=="function"&&Ge.amd?Ge(Pe):Pe(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ge!="undefined"?ge:this,function(ce){"use strict";ce=ce||{};var Pe=ce.Base64,Ee="2.6.4",ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Me=function(ht){for(var Ct={},et=0,it=ht.length;et<it;et++)Ct[ht.charAt(et)]=et;return Ct}(ye),ve=String.fromCharCode,xe=function(ht){if(ht.length<2){var Ct=ht.charCodeAt(0);return Ct<128?ht:Ct<2048?ve(192|Ct>>>6)+ve(128|Ct&63):ve(224|Ct>>>12&15)+ve(128|Ct>>>6&63)+ve(128|Ct&63)}else{var Ct=65536+(ht.charCodeAt(0)-55296)*1024+(ht.charCodeAt(1)-56320);return ve(240|Ct>>>18&7)+ve(128|Ct>>>12&63)+ve(128|Ct>>>6&63)+ve(128|Ct&63)}},fe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=function(ht){return ht.replace(fe,xe)},ee=function(ht){var Ct=[0,2,1][ht.length%3],et=ht.charCodeAt(0)<<16|(ht.length>1?ht.charCodeAt(1):0)<<8|(ht.length>2?ht.charCodeAt(2):0),it=[ye.charAt(et>>>18),ye.charAt(et>>>12&63),Ct>=2?"=":ye.charAt(et>>>6&63),Ct>=1?"=":ye.charAt(et&63)];return it.join("")},ae=ce.btoa&&typeof ce.btoa=="function"?function(ht){return ce.btoa(ht)}:function(ht){if(ht.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ht.replace(/[\s\S]{1,3}/g,ee)},re=function(ht){return ae(z(String(ht)))},le=function(ht){return ht.replace(/[+\/]/g,function(Ct){return Ct=="+"?"-":"_"}).replace(/=/g,"")},ue=function(ht,Ct){return Ct?le(re(ht)):re(ht)},pe=function(ht){return ue(ht,!0)},Te;ce.Uint8Array&&(Te=function(ht,Ct){for(var et="",it=0,St=ht.length;it<St;it+=3){var bt=ht[it],Pt=ht[it+1],gt=ht[it+2],dt=bt<<16|Pt<<8|gt;et+=ye.charAt(dt>>>18)+ye.charAt(dt>>>12&63)+(typeof Pt!="undefined"?ye.charAt(dt>>>6&63):"=")+(typeof gt!="undefined"?ye.charAt(dt&63):"=")}return Ct?le(et):et});var Ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Fe=function(ht){switch(ht.length){case 4:var Ct=(7&ht.charCodeAt(0))<<18|(63&ht.charCodeAt(1))<<12|(63&ht.charCodeAt(2))<<6|63&ht.charCodeAt(3),et=Ct-65536;return ve((et>>>10)+55296)+ve((et&1023)+56320);case 3:return ve((15&ht.charCodeAt(0))<<12|(63&ht.charCodeAt(1))<<6|63&ht.charCodeAt(2));default:return ve((31&ht.charCodeAt(0))<<6|63&ht.charCodeAt(1))}},Ae=function(ht){return ht.replace(Ce,Fe)},je=function(ht){var Ct=ht.length,et=Ct%4,it=(Ct>0?Me[ht.charAt(0)]<<18:0)|(Ct>1?Me[ht.charAt(1)]<<12:0)|(Ct>2?Me[ht.charAt(2)]<<6:0)|(Ct>3?Me[ht.charAt(3)]:0),St=[ve(it>>>16),ve(it>>>8&255),ve(it&255)];return St.length-=[0,0,2,1][et],St.join("")},Ne=ce.atob&&typeof ce.atob=="function"?function(ht){return ce.atob(ht)}:function(ht){return ht.replace(/\S{1,4}/g,je)},Be=function(ht){return Ne(String(ht).replace(/[^A-Za-z0-9\+\/]/g,""))},ze=function(ht){return Ae(Ne(ht))},Qe=function(ht){return String(ht).replace(/[-_]/g,function(Ct){return Ct=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},$e=function(ht){return ze(Qe(ht))},Ye;ce.Uint8Array&&(Ye=function(ht){return Uint8Array.from(Be(Qe(ht)),function(Ct){return Ct.charCodeAt(0)})});var at=function(){var ht=ce.Base64;return ce.Base64=Pe,ht};if(ce.Base64={VERSION:Ee,atob:Be,btoa:ae,fromBase64:$e,toBase64:ue,utob:z,encode:ue,encodeURI:pe,btou:Ae,decode:$e,noConflict:at,fromUint8Array:Te,toUint8Array:Ye},typeof Object.defineProperty=="function"){var ut=function(ht){return{value:ht,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ut(function(){return $e(this)})),Object.defineProperty(String.prototype,"toBase64",ut(function(ht){return ue(this,ht)})),Object.defineProperty(String.prototype,"toBase64URI",ut(function(){return ue(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),typeof _e!="undefined"&&_e.exports?_e.exports.Base64=ce.Base64:typeof Ge=="function"&&Ge.amd&&Ge([],function(){return ce.Base64}),{Base64:ce.Base64}})}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(ie,_e,Ie){"use strict";_e.exports=ce;var ge=Object.prototype.hasOwnProperty;function ce(Pe,Ee,ye){if(!Pe)throw new TypeError("argument dest is required");if(!Ee)throw new TypeError("argument src is required");return ye===void 0&&(ye=!0),Object.getOwnPropertyNames(Ee).forEach(function(ve){if(!(!ye&&ge.call(Pe,ve))){var xe=Object.getOwnPropertyDescriptor(Ee,ve);Object.defineProperty(Pe,ve,xe)}}),Pe}},{}],373:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.array.map.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.replace.js"),ie("core-js/modules/es.regexp.constructor.js"),ie("core-js/modules/es.regexp.to-string.js");function ge(){this._types=Object.create(null),this._extensions=Object.create(null);for(var ce=0;ce<arguments.length;ce++)this.define(arguments[ce]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}ge.prototype.define=function(ce,Pe){for(var Ee in ce){var ye=ce[Ee].map(function(fe){return fe.toLowerCase()});Ee=Ee.toLowerCase();for(var Me=0;Me<ye.length;Me++){var ve=ye[Me];if(ve[0]!=="*"){if(!Pe&&ve in this._types)throw new Error('Attempt to change mapping for "'+ve+'" extension from "'+this._types[ve]+'" to "'+Ee+'". Pass `force=true` to allow this, otherwise remove "'+ve+'" from the list of extensions for "'+Ee+'".');this._types[ve]=Ee}}if(Pe||!this._extensions[Ee]){var xe=ye[0];this._extensions[Ee]=xe[0]!=="*"?xe:xe.substr(1)}}},ge.prototype.getType=function(ce){ce=String(ce);var Pe=ce.replace(/^.*[/\\]/,"").toLowerCase(),Ee=Pe.replace(/^.*\./,"").toLowerCase(),ye=Pe.length<ce.length,Me=Ee.length<Pe.length-1;return(Me||!ye)&&this._types[Ee]||null},ge.prototype.getExtension=function(ce){return ce=/^\s*([^;\s]*)/.test(ce)&&RegExp.$1,ce&&this._extensions[ce.toLowerCase()]||null},_e.exports=ge},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(ie,_e,Ie){"use strict";var ge=ie("./Mime");_e.exports=new ge(ie("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(ie,_e,Ie){"use strict";_e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(ie,_e,Ie){var ge=1e3,ce=ge*60,Pe=ce*60,Ee=Pe*24,ye=Ee*7,Me=Ee*365.25;_e.exports=function(ee,ae){ae=ae||{};var re=typeof ee;if(re==="string"&&ee.length>0)return ve(ee);if(re==="number"&&isFinite(ee))return ae.long?fe(ee):xe(ee);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ee))};function ve(ee){if(ee=String(ee),!(ee.length>100)){var ae=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ee);if(ae){var re=parseFloat(ae[1]),le=(ae[2]||"ms").toLowerCase();switch(le){case"years":case"year":case"yrs":case"yr":case"y":return re*Me;case"weeks":case"week":case"w":return re*ye;case"days":case"day":case"d":return re*Ee;case"hours":case"hour":case"hrs":case"hr":case"h":return re*Pe;case"minutes":case"minute":case"mins":case"min":case"m":return re*ce;case"seconds":case"second":case"secs":case"sec":case"s":return re*ge;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return re;default:return}}}}function xe(ee){var ae=Math.abs(ee);return ae>=Ee?Math.round(ee/Ee)+"d":ae>=Pe?Math.round(ee/Pe)+"h":ae>=ce?Math.round(ee/ce)+"m":ae>=ge?Math.round(ee/ge)+"s":ee+"ms"}function fe(ee){var ae=Math.abs(ee);return ae>=Ee?z(ee,ae,Ee,"day"):ae>=Pe?z(ee,ae,Pe,"hour"):ae>=ce?z(ee,ae,ce,"minute"):ae>=ge?z(ee,ae,ge,"second"):ee+" ms"}function z(ee,ae,re,le){var ue=ae>=re*1.5;return Math.round(ee/re)+" "+le+(ue?"s":"")}},{}],377:[function(ie,_e,Ie){"use strict";var ge=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;function Ee(Me){if(Me==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(Me)}function ye(){try{if(!Object.assign)return!1;var Me=new String("abc");if(Me[5]="de",Object.getOwnPropertyNames(Me)[0]==="5")return!1;for(var ve={},xe=0;xe<10;xe++)ve["_"+String.fromCharCode(xe)]=xe;var fe=Object.getOwnPropertyNames(ve).map(function(ee){return ve[ee]});if(fe.join("")!=="0123456789")return!1;var z={};return"abcdefghijklmnopqrst".split("").forEach(function(ee){z[ee]=ee}),Object.keys(Object.assign({},z)).join("")==="abcdefghijklmnopqrst"}catch(ee){return!1}}_e.exports=ye()?Object.assign:function(Me,ve){for(var xe,fe=Ee(Me),z,ee=1;ee<arguments.length;ee++){xe=Object(arguments[ee]);for(var ae in xe)ce.call(xe,ae)&&(fe[ae]=xe[ae]);if(ge){z=ge(xe);for(var re=0;re<z.length;re++)Pe.call(xe,z[re])&&(fe[z[re]]=xe[z[re]])}}return fe}},{}],378:[function(ie,_e,Ie){(function(ge){(function(){"use strict";function ce(Me){if(typeof Me!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(Me))}function Pe(Me,ve){for(var xe="",fe=0,z=-1,ee=0,ae,re=0;re<=Me.length;++re){if(re<Me.length)ae=Me.charCodeAt(re);else{if(ae===47)break;ae=47}if(ae===47){if(!(z===re-1||ee===1))if(z!==re-1&&ee===2){if(xe.length<2||fe!==2||xe.charCodeAt(xe.length-1)!==46||xe.charCodeAt(xe.length-2)!==46){if(xe.length>2){var le=xe.lastIndexOf("/");if(le!==xe.length-1){le===-1?(xe="",fe=0):(xe=xe.slice(0,le),fe=xe.length-1-xe.lastIndexOf("/")),z=re,ee=0;continue}}else if(xe.length===2||xe.length===1){xe="",fe=0,z=re,ee=0;continue}}ve&&(xe.length>0?xe+="/..":xe="..",fe=2)}else xe.length>0?xe+="/"+Me.slice(z+1,re):xe=Me.slice(z+1,re),fe=re-z-1;z=re,ee=0}else ae===46&&ee!==-1?++ee:ee=-1}return xe}function Ee(Me,ve){var xe=ve.dir||ve.root,fe=ve.base||(ve.name||"")+(ve.ext||"");return xe?xe===ve.root?xe+fe:xe+Me+fe:fe}var ye={resolve:function(){for(var ve="",xe=!1,fe,z=arguments.length-1;z>=-1&&!xe;z--){var ee;z>=0?ee=arguments[z]:(fe===void 0&&(fe=ge.cwd()),ee=fe),ce(ee),ee.length!==0&&(ve=ee+"/"+ve,xe=ee.charCodeAt(0)===47)}return ve=Pe(ve,!xe),xe?ve.length>0?"/"+ve:"/":ve.length>0?ve:"."},normalize:function(ve){if(ce(ve),ve.length===0)return".";var xe=ve.charCodeAt(0)===47,fe=ve.charCodeAt(ve.length-1)===47;return ve=Pe(ve,!xe),ve.length===0&&!xe&&(ve="."),ve.length>0&&fe&&(ve+="/"),xe?"/"+ve:ve},isAbsolute:function(ve){return ce(ve),ve.length>0&&ve.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ve,xe=0;xe<arguments.length;++xe){var fe=arguments[xe];ce(fe),fe.length>0&&(ve===void 0?ve=fe:ve+="/"+fe)}return ve===void 0?".":ye.normalize(ve)},relative:function(ve,xe){if(ce(ve),ce(xe),ve===xe||(ve=ye.resolve(ve),xe=ye.resolve(xe),ve===xe))return"";for(var fe=1;fe<ve.length&&ve.charCodeAt(fe)===47;++fe);for(var z=ve.length,ee=z-fe,ae=1;ae<xe.length&&xe.charCodeAt(ae)===47;++ae);for(var re=xe.length,le=re-ae,ue=ee<le?ee:le,pe=-1,Te=0;Te<=ue;++Te){if(Te===ue){if(le>ue){if(xe.charCodeAt(ae+Te)===47)return xe.slice(ae+Te+1);if(Te===0)return xe.slice(ae+Te)}else ee>ue&&(ve.charCodeAt(fe+Te)===47?pe=Te:Te===0&&(pe=0));break}var Ce=ve.charCodeAt(fe+Te),Fe=xe.charCodeAt(ae+Te);if(Ce!==Fe)break;Ce===47&&(pe=Te)}var Ae="";for(Te=fe+pe+1;Te<=z;++Te)(Te===z||ve.charCodeAt(Te)===47)&&(Ae.length===0?Ae+="..":Ae+="/..");return Ae.length>0?Ae+xe.slice(ae+pe):(ae+=pe,xe.charCodeAt(ae)===47&&++ae,xe.slice(ae))},_makeLong:function(ve){return ve},dirname:function(ve){if(ce(ve),ve.length===0)return".";for(var xe=ve.charCodeAt(0),fe=xe===47,z=-1,ee=!0,ae=ve.length-1;ae>=1;--ae)if(xe=ve.charCodeAt(ae),xe===47){if(!ee){z=ae;break}}else ee=!1;return z===-1?fe?"/":".":fe&&z===1?"//":ve.slice(0,z)},basename:function(ve,xe){if(xe!==void 0&&typeof xe!="string")throw new TypeError('"ext" argument must be a string');ce(ve);var fe=0,z=-1,ee=!0,ae;if(xe!==void 0&&xe.length>0&&xe.length<=ve.length){if(xe.length===ve.length&&xe===ve)return"";var re=xe.length-1,le=-1;for(ae=ve.length-1;ae>=0;--ae){var ue=ve.charCodeAt(ae);if(ue===47){if(!ee){fe=ae+1;break}}else le===-1&&(ee=!1,le=ae+1),re>=0&&(ue===xe.charCodeAt(re)?--re===-1&&(z=ae):(re=-1,z=le))}return fe===z?z=le:z===-1&&(z=ve.length),ve.slice(fe,z)}else{for(ae=ve.length-1;ae>=0;--ae)if(ve.charCodeAt(ae)===47){if(!ee){fe=ae+1;break}}else z===-1&&(ee=!1,z=ae+1);return z===-1?"":ve.slice(fe,z)}},extname:function(ve){ce(ve);for(var xe=-1,fe=0,z=-1,ee=!0,ae=0,re=ve.length-1;re>=0;--re){var le=ve.charCodeAt(re);if(le===47){if(!ee){fe=re+1;break}continue}z===-1&&(ee=!1,z=re+1),le===46?xe===-1?xe=re:ae!==1&&(ae=1):xe!==-1&&(ae=-1)}return xe===-1||z===-1||ae===0||ae===1&&xe===z-1&&xe===fe+1?"":ve.slice(xe,z)},format:function(ve){if(ve===null||typeof ve!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ve);return Ee("/",ve)},parse:function(ve){ce(ve);var xe={root:"",dir:"",base:"",ext:"",name:""};if(ve.length===0)return xe;var fe=ve.charCodeAt(0),z=fe===47,ee;z?(xe.root="/",ee=1):ee=0;for(var ae=-1,re=0,le=-1,ue=!0,pe=ve.length-1,Te=0;pe>=ee;--pe){if(fe=ve.charCodeAt(pe),fe===47){if(!ue){re=pe+1;break}continue}le===-1&&(ue=!1,le=pe+1),fe===46?ae===-1?ae=pe:Te!==1&&(Te=1):ae!==-1&&(Te=-1)}return ae===-1||le===-1||Te===0||Te===1&&ae===le-1&&ae===re+1?le!==-1&&(re===0&&z?xe.base=xe.name=ve.slice(1,le):xe.base=xe.name=ve.slice(re,le)):(re===0&&z?(xe.name=ve.slice(1,ae),xe.base=ve.slice(1,le)):(xe.name=ve.slice(re,ae),xe.base=ve.slice(re,le)),xe.ext=ve.slice(ae,le)),re>0?xe.dir=ve.slice(0,re-1):z&&(xe.dir="/"),xe},sep:"/",delimiter:":",win32:null,posix:null};ye.posix=ye,_e.exports=ye}).call(this)}).call(this,ie("_process"))},{_process:467}],379:[function(ie,_e,Ie){(function(ge){(function(){(function(){"use strict";var ce={function:!0,object:!0},Pe=ce[typeof window]&&window||this,Ee=Pe,ye=ce[typeof Ie]&&Ie,Me=ce[typeof _e]&&_e&&!_e.nodeType&&_e,ve=ye&&Me&&typeof ge=="object"&≥ve&&(ve.global===ve||ve.window===ve||ve.self===ve)&&(Pe=ve);var xe=Math.pow(2,53)-1,fe=/\bOpera/,z=this,ee=Object.prototype,ae=ee.hasOwnProperty,re=ee.toString;function le($e){return $e=String($e),$e.charAt(0).toUpperCase()+$e.slice(1)}function ue($e,Ye,at){var ut={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Ye&&at&&/^Win/i.test($e)&&!/^Windows Phone /i.test($e)&&(ut=ut[/[\d.]+$/.exec($e)])&&($e="Windows "+ut),$e=String($e),Ye&&at&&($e=$e.replace(RegExp(Ye,"i"),at)),$e=Te($e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),$e}function pe($e,Ye){var at=-1,ut=$e?$e.length:0;if(typeof ut=="number"&&ut>-1&&ut<=xe)for(;++at<ut;)Ye($e[at],at,$e);else Ce($e,Ye)}function Te($e){return $e=Be($e),/^(?:webOS|i(?:OS|P))/.test($e)?$e:le($e)}function Ce($e,Ye){for(var at in $e)ae.call($e,at)&&Ye($e[at],at,$e)}function Fe($e){return $e==null?le($e):re.call($e).slice(8,-1)}function Ae($e,Ye){var at=$e!=null?typeof $e[Ye]:"number";return!/^(?:boolean|number|string|undefined)$/.test(at)&&(at=="object"?!!$e[Ye]:!0)}function je($e){return String($e).replace(/([ -])(?!$)/g,"$1?")}function Ne($e,Ye){var at=null;return pe($e,function(ut,ht){at=Ye(at,ut,ht,$e)}),at}function Be($e){return String($e).replace(/^ +| +$/g,"")}function ze($e){var Ye=Pe,at=$e&&typeof $e=="object"&&Fe($e)!="String";at&&(Ye=$e,$e=null);var ut=Ye.navigator||{},ht=ut.userAgent||"";$e||($e=ht);var Ct=at||z==Ee,et=at?!!ut.likeChrome:/\bChrome\b/.test($e)&&!/internal|\n/i.test(re.toString()),it="Object",St=at?it:"ScriptBridgingProxyObject",bt=at?it:"Environment",Pt=at&&Ye.java?"JavaPackage":Fe(Ye.java),gt=at?it:"RuntimeObject",dt=/\bJava/.test(Pt)&&Ye.java,mt=dt&&Fe(Ye.environment)==bt,kt=dt?"a":"\u03B1",Et=dt?"b":"\u03B2",Ut=Ye.document||{},wt=Ye.operamini||Ye.opera,pt=fe.test(pt=at&&wt?wt["[[Class]]"]:Fe(wt))?pt:wt=null,tt,Ze=$e,we=[],be=null,Ke=$e==ht,Xe=Ke&&wt&&typeof wt.version=="function"&&wt.version(),Oe,Ue=yt([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),He=Mt(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Ve=Vt([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),Je=ft({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),ct=Jt(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function yt(It){return Ne(It,function(Dt,qt){return Dt||RegExp("\\b"+(qt.pattern||je(qt))+"\\b","i").exec($e)&&(qt.label||qt)})}function ft(It){return Ne(It,function(Dt,qt,sn){return Dt||(qt[Ve]||qt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ve)]||RegExp("\\b"+je(sn)+"(?:\\b|\\w*\\d)","i").exec($e))&&sn})}function Mt(It){return Ne(It,function(Dt,qt){return Dt||RegExp("\\b"+(qt.pattern||je(qt))+"\\b","i").exec($e)&&(qt.label||qt)})}function Jt(It){return Ne(It,function(Dt,qt){var sn=qt.pattern||je(qt);return!Dt&&(Dt=RegExp("\\b"+sn+"(?:/[\\d.]+|[ \\w.]*)","i").exec($e))&&(Dt=ue(Dt,sn,qt.label||qt)),Dt})}function Vt(It){return Ne(It,function(Dt,qt){var sn=qt.pattern||je(qt);return!Dt&&(Dt=RegExp("\\b"+sn+" *\\d+[.\\w_]*","i").exec($e)||RegExp("\\b"+sn+" *\\w+-[\\w]*","i").exec($e)||RegExp("\\b"+sn+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec($e))&&((Dt=String(qt.label&&!RegExp(sn,"i").test(qt.label)?qt.label:Dt).split("/"))[1]&&!/[\d.]+/.test(Dt[0])&&(Dt[0]+=" "+Dt[1]),qt=qt.label||qt,Dt=Te(Dt[0].replace(RegExp(sn,"i"),qt).replace(RegExp("; *(?:"+qt+"[_-])?","i")," ").replace(RegExp("("+qt+")[-_.]?(\\w)","i"),"$1 $2"))),Dt})}function Kt(It){return Ne(It,function(Dt,qt){return Dt||(RegExp(qt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec($e)||0)[1]||null})}function Ht(){return this.description||""}if(Ue&&(Ue=[Ue]),/\bAndroid\b/.test(ct)&&!Ve&&(tt=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec($e))&&(Ve=Be(tt[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Je&&!Ve?Ve=Vt([Je]):Je&&Ve&&(Ve=Ve.replace(RegExp("^("+je(Je)+")[-_.\\s]","i"),Je+" ").replace(RegExp("^("+je(Je)+")[-_.]?(\\w)","i"),Je+" $2")),(tt=/\bGoogle TV\b/.exec(Ve))&&(Ve=tt[0]),/\bSimulator\b/i.test($e)&&(Ve=(Ve?Ve+" ":"")+"Simulator"),He=="Opera Mini"&&/\bOPiOS\b/.test($e)&&we.push("running in Turbo/Uncompressed mode"),He=="IE"&&/\blike iPhone OS\b/.test($e)?(tt=ze($e.replace(/like iPhone OS/,"")),Je=tt.manufacturer,Ve=tt.product):/^iP/.test(Ve)?(He||(He="Safari"),ct="iOS"+((tt=/ OS ([\d_]+)/i.exec($e))?" "+tt[1].replace(/_/g,"."):"")):He=="Konqueror"&&/^Linux\b/i.test(ct)?ct="Kubuntu":Je&&Je!="Google"&&(/Chrome/.test(He)&&!/\bMobile Safari\b/i.test($e)||/\bVita\b/.test(Ve))||/\bAndroid\b/.test(ct)&&/^Chrome/.test(He)&&/\bVersion\//i.test($e)?(He="Android Browser",ct=/\bAndroid\b/.test(ct)?ct:"Android"):He=="Silk"?(/\bMobi/i.test($e)||(ct="Android",we.unshift("desktop mode")),/Accelerated *= *true/i.test($e)&&we.unshift("accelerated")):He=="UC Browser"&&/\bUCWEB\b/.test($e)?we.push("speed mode"):He=="PaleMoon"&&(tt=/\bFirefox\/([\d.]+)\b/.exec($e))?we.push("identifying as Firefox "+tt[1]):He=="Firefox"&&(tt=/\b(Mobile|Tablet|TV)\b/i.exec($e))?(ct||(ct="Firefox OS"),Ve||(Ve=tt[1])):!He||(tt=!/\bMinefield\b/i.test($e)&&/\b(?:Firefox|Safari)\b/.exec(He))?(He&&!Ve&&/[\/,]|^[^(]+?\)/.test($e.slice($e.indexOf(tt+"/")+8))&&(He=null),(tt=Ve||Je||ct)&&(Ve||Je||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(ct))&&(He=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(ct)?ct:tt)+" Browser")):He=="Electron"&&(tt=(/\bChrome\/([\d.]+)\b/.exec($e)||0)[1])&&we.push("Chromium "+tt),Xe||(Xe=Kt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",je(He),"(?:Firefox|Minefield|NetFront)"])),(tt=Ue=="iCab"&&parseFloat(Xe)>3&&"WebKit"||/\bOpera\b/.test(He)&&(/\bOPR\b/.test($e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test($e)&&!/^(?:Trident|EdgeHTML)$/.test(Ue)&&"WebKit"||!Ue&&/\bMSIE\b/i.test($e)&&(ct=="Mac OS"?"Tasman":"Trident")||Ue=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(He)&&"NetFront")&&(Ue=[tt]),He=="IE"&&(tt=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec($e)||0)[1])?(He+=" Mobile",ct="Windows Phone "+(/\+$/.test(tt)?tt:tt+".x"),we.unshift("desktop mode")):/\bWPDesktop\b/i.test($e)?(He="IE Mobile",ct="Windows Phone 8.x",we.unshift("desktop mode"),Xe||(Xe=(/\brv:([\d.]+)/.exec($e)||0)[1])):He!="IE"&&Ue=="Trident"&&(tt=/\brv:([\d.]+)/.exec($e))&&(He&&we.push("identifying as "+He+(Xe?" "+Xe:"")),He="IE",Xe=tt[1]),Ke){if(Ae(Ye,"global"))if(dt&&(tt=dt.lang.System,Ze=tt.getProperty("os.arch"),ct=ct||tt.getProperty("os.name")+" "+tt.getProperty("os.version")),mt){try{Xe=Ye.require("ringo/engine").version.join("."),He="RingoJS"}catch(It){(tt=Ye.system)&&tt.global.system==Ye.system&&(He="Narwhal",ct||(ct=tt[0].os||null))}He||(He="Rhino")}else typeof Ye.process=="object"&&!Ye.process.browser&&(tt=Ye.process)&&(typeof tt.versions=="object"&&(typeof tt.versions.electron=="string"?(we.push("Node "+tt.versions.node),He="Electron",Xe=tt.versions.electron):typeof tt.versions.nw=="string"&&(we.push("Chromium "+Xe,"Node "+tt.versions.node),He="NW.js",Xe=tt.versions.nw)),He||(He="Node.js",Ze=tt.arch,ct=tt.platform,Xe=/[\d.]+/.exec(tt.version),Xe=Xe?Xe[0]:null));else Fe(tt=Ye.runtime)==St?(He="Adobe AIR",ct=tt.flash.system.Capabilities.os):Fe(tt=Ye.phantom)==gt?(He="PhantomJS",Xe=(tt=tt.version||null)&&tt.major+"."+tt.minor+"."+tt.patch):typeof Ut.documentMode=="number"&&(tt=/\bTrident\/(\d+)/i.exec($e))?(Xe=[Xe,Ut.documentMode],(tt=+tt[1]+4)!=Xe[1]&&(we.push("IE "+Xe[1]+" mode"),Ue&&(Ue[1]=""),Xe[1]=tt),Xe=He=="IE"?String(Xe[1].toFixed(1)):Xe[0]):typeof Ut.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(He)&&(we.push("masking as "+He+" "+Xe),He="IE",Xe="11.0",Ue=["Trident"],ct="Windows");ct=ct&&Te(ct)}if(Xe&&(tt=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Xe)||/(?:alpha|beta)(?: ?\d)?/i.exec($e+";"+(Ke&&ut.appMinorVersion))||/\bMinefield\b/i.test($e)&&"a")&&(be=/b/i.test(tt)?"beta":"alpha",Xe=Xe.replace(RegExp(tt+"\\+?$"),"")+(be=="beta"?Et:kt)+(/\d+\+?/.exec(tt)||"")),He=="Fennec"||He=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(ct))He="Firefox Mobile";else if(He=="Maxthon"&&Xe)Xe=Xe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ve))Ve=="Xbox 360"&&(ct=null),Ve=="Xbox 360"&&/\bIEMobile\b/.test($e)&&we.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(He)||He&&!Ve&&!/Browser|Mobi/.test(He))&&(ct=="Windows CE"||/Mobi/i.test($e)))He+=" Mobile";else if(He=="IE"&&Ke)try{Ye.external===null&&we.unshift("platform preview")}catch(It){we.unshift("embedded")}else(/\bBlackBerry\b/.test(Ve)||/\bBB10\b/.test($e))&&(tt=(RegExp(Ve.replace(/ +/g," *")+"/([.\\d]+)","i").exec($e)||0)[1]||Xe)?(tt=[tt,/BB10/.test($e)],ct=(tt[1]?(Ve=null,Je="BlackBerry"):"Device Software")+" "+tt[0],Xe=null):this!=Ce&&Ve!="Wii"&&(Ke&&wt||/Opera/.test(He)&&/\b(?:MSIE|Firefox)\b/i.test($e)||He=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(ct)||He=="IE"&&(ct&&!/^Win/.test(ct)&&Xe>5.5||/\bWindows XP\b/.test(ct)&&Xe>8||Xe==8&&!/\bTrident\b/.test($e)))&&!fe.test(tt=ze.call(Ce,$e.replace(fe,"")+";"))&&tt.name&&(tt="ing as "+tt.name+((tt=tt.version)?" "+tt:""),fe.test(He)?(/\bIE\b/.test(tt)&&ct=="Mac OS"&&(ct=null),tt="identify"+tt):(tt="mask"+tt,pt?He=Te(pt.replace(/([a-z])([A-Z])/g,"$1 $2")):He="Opera",/\bIE\b/.test(tt)&&(ct=null),Ke||(Xe=null)),Ue=["Presto"],we.push(tt));(tt=(/\bAppleWebKit\/([\d.]+\+?)/i.exec($e)||0)[1])&&(tt=[parseFloat(tt.replace(/\.(\d)$/,".0$1")),tt],He=="Safari"&&tt[1].slice(-1)=="+"?(He="WebKit Nightly",be="alpha",Xe=tt[1].slice(0,-1)):(Xe==tt[1]||Xe==(tt[2]=(/\bSafari\/([\d.]+\+?)/i.exec($e)||0)[1]))&&(Xe=null),tt[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec($e)||0)[1],tt[0]==537.36&&tt[2]==537.36&&parseFloat(tt[1])>=28&&Ue=="WebKit"&&(Ue=["Blink"]),!Ke||!et&&!tt[1]?(Ue&&(Ue[1]="like Safari"),tt=(tt=tt[0],tt<400?1:tt<500?2:tt<526?3:tt<533?4:tt<534?"4+":tt<535?5:tt<537?6:tt<538?7:tt<601?8:tt<602?9:tt<604?10:tt<606?11:tt<608?12:"12")):(Ue&&(Ue[1]="like Chrome"),tt=tt[1]||(tt=tt[0],tt<530?1:tt<532?2:tt<532.05?3:tt<533?4:tt<534.03?5:tt<534.07?6:tt<534.1?7:tt<534.13?8:tt<534.16?9:tt<534.24?10:tt<534.3?11:tt<535.01?12:tt<535.02?"13+":tt<535.07?15:tt<535.11?16:tt<535.19?17:tt<536.05?18:tt<536.1?19:tt<537.01?20:tt<537.11?"21+":tt<537.13?23:tt<537.18?24:tt<537.24?25:tt<537.36?26:Ue!="Blink"?"27":"28")),Ue&&(Ue[1]+=" "+(tt+=typeof tt=="number"?".x":/[.+]/.test(tt)?"":"+")),He=="Safari"&&(!Xe||parseInt(Xe)>45)?Xe=tt:He=="Chrome"&&/\bHeadlessChrome/i.test($e)&&we.unshift("headless")),He=="Opera"&&(tt=/\bzbov|zvav$/.exec(ct))?(He+=" ",we.unshift("desktop mode"),tt=="zvav"?(He+="Mini",Xe=null):He+="Mobile",ct=ct.replace(RegExp(" *"+tt+"$"),"")):He=="Safari"&&/\bChrome\b/.exec(Ue&&Ue[1])?(we.unshift("desktop mode"),He="Chrome Mobile",Xe=null,/\bOS X\b/.test(ct)?(Je="Apple",ct="iOS 4.3+"):ct=null):/\bSRWare Iron\b/.test(He)&&!Xe&&(Xe=Kt("Chrome")),Xe&&Xe.indexOf(tt=/[\d.]+$/.exec(ct))==0&&$e.indexOf("/"+tt+"-")>-1&&(ct=Be(ct.replace(tt,""))),ct&&ct.indexOf(He)!=-1&&!RegExp(He+" OS").test(ct)&&(ct=ct.replace(RegExp(" *"+je(He)+" *"),"")),Ue&&!/\b(?:Avant|Nook)\b/.test(He)&&(/Browser|Lunascape|Maxthon/.test(He)||He!="Safari"&&/^iOS/.test(ct)&&/\bSafari\b/.test(Ue[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(He)&&Ue[1])&&(tt=Ue[Ue.length-1])&&we.push(tt),we.length&&(we=["("+we.join("; ")+")"]),Je&&Ve&&Ve.indexOf(Je)<0&&we.push("on "+Je),Ve&&we.push((/^on /.test(we[we.length-1])?"":"on ")+Ve),ct&&(tt=/ ([\d.+]+)$/.exec(ct),Oe=tt&&ct.charAt(ct.length-tt[0].length-1)=="/",ct={architecture:32,family:tt&&!Oe?ct.replace(tt[0],""):ct,version:tt?tt[1]:null,toString:function(){var It=this.version;return this.family+(It&&!Oe?" "+It:"")+(this.architecture==64?" 64-bit":"")}}),(tt=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ze))&&!/\bi686\b/i.test(Ze)?(ct&&(ct.architecture=64,ct.family=ct.family.replace(RegExp(" *"+tt),"")),He&&(/\bWOW64\b/i.test($e)||Ke&&/\w(?:86|32)$/.test(ut.cpuClass||ut.platform)&&!/\bWin64; x64\b/i.test($e))&&we.unshift("32-bit")):ct&&/^OS X/.test(ct.family)&&He=="Chrome"&&parseFloat(Xe)>=39&&(ct.architecture=64),$e||($e=null);var tn={};return tn.description=$e,tn.layout=Ue&&Ue[0],tn.manufacturer=Je,tn.name=He,tn.prerelease=be,tn.product=Ve,tn.ua=$e,tn.version=He&&Xe,tn.os=ct||{architecture:null,family:null,version:null,toString:function(){return"null"}},tn.parse=ze,tn.toString=Ht,tn.version&&we.unshift(Xe),tn.name&&we.unshift(He),ct&&He&&!(ct==String(ct).split(" ")[0]&&(ct==He.split(" ")[0]||Ve))&&we.push(Ve?"("+ct+")":"on "+ct),we.length&&(tn.description=we.join(" ")),tn}var Qe=ze();typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd?(Pe.platform=Qe,Ge(function(){return Qe})):ye&&Me?Ce(Qe,function($e,Ye){ye[Ye]=$e}):Pe.platform=Qe}).call(this)}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(ie,_e,Ie){(function(ge){(function(){"use strict";typeof ge=="undefined"||!ge.version||ge.version.indexOf("v0.")===0||ge.version.indexOf("v1.")===0&&ge.version.indexOf("v1.8.")!==0?_e.exports={nextTick:ce}:_e.exports=ge;function ce(Pe,Ee,ye,Me){if(typeof Pe!="function")throw new TypeError('"callback" argument must be a function');var ve=arguments.length,xe,fe;switch(ve){case 0:case 1:return ge.nextTick(Pe);case 2:return ge.nextTick(function(){Pe.call(null,Ee)});case 3:return ge.nextTick(function(){Pe.call(null,Ee,ye)});case 4:return ge.nextTick(function(){Pe.call(null,Ee,ye,Me)});default:for(xe=new Array(ve-1),fe=0;fe<xe.length;)xe[fe++]=arguments[fe];return ge.nextTick(function(){Pe.apply(null,xe)})}}}).call(this)}).call(this,ie("_process"))},{_process:467}],381:[function(ie,_e,Ie){var ge=_e.exports={},ce,Pe;function Ee(){throw new Error("setTimeout has not been defined")}function ye(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ce=setTimeout:ce=Ee}catch(pe){ce=Ee}try{typeof clearTimeout=="function"?Pe=clearTimeout:Pe=ye}catch(pe){Pe=ye}})();function Me(pe){if(ce===setTimeout)return setTimeout(pe,0);if((ce===Ee||!ce)&&setTimeout)return ce=setTimeout,setTimeout(pe,0);try{return ce(pe,0)}catch(Te){try{return ce.call(null,pe,0)}catch(Ce){return ce.call(this,pe,0)}}}function ve(pe){if(Pe===clearTimeout)return clearTimeout(pe);if((Pe===ye||!Pe)&&clearTimeout)return Pe=clearTimeout,clearTimeout(pe);try{return Pe(pe)}catch(Te){try{return Pe.call(null,pe)}catch(Ce){return Pe.call(this,pe)}}}var xe=[],fe=!1,z,ee=-1;function ae(){!fe||!z||(fe=!1,z.length?xe=z.concat(xe):ee=-1,xe.length&&re())}function re(){if(!fe){var pe=Me(ae);fe=!0;for(var Te=xe.length;Te;){for(z=xe,xe=[];++ee<Te;)z&&z[ee].run();ee=-1,Te=xe.length}z=null,fe=!1,ve(pe)}}ge.nextTick=function(pe){var Te=new Array(arguments.length-1);if(arguments.length>1)for(var Ce=1;Ce<arguments.length;Ce++)Te[Ce-1]=arguments[Ce];xe.push(new le(pe,Te)),xe.length===1&&!fe&&Me(re)};function le(pe,Te){this.fun=pe,this.array=Te}le.prototype.run=function(){this.fun.apply(null,this.array)},ge.title="browser",ge.browser=!0,ge.env={},ge.argv=[],ge.version="",ge.versions={};function ue(){}ge.on=ue,ge.addListener=ue,ge.once=ue,ge.off=ue,ge.removeListener=ue,ge.removeAllListeners=ue,ge.emit=ue,ge.prependListener=ue,ge.prependOnceListener=ue,ge.listeners=function(pe){return[]},ge.binding=function(pe){throw new Error("process.binding is not supported")},ge.cwd=function(){return"/"},ge.chdir=function(pe){throw new Error("process.chdir is not supported")},ge.umask=function(){return 0}},{}],382:[function(ie,_e,Ie){(function(ge){(function(){(function(ce){var Pe=typeof Ie=="object"&&Ie&&!Ie.nodeType&&Ie,Ee=typeof _e=="object"&&_e&&!_e.nodeType&&_e,ye=typeof ge=="object"&≥(ye.global===ye||ye.window===ye||ye.self===ye)&&(ce=ye);var Me,ve=2147483647,xe=36,fe=1,z=26,ee=38,ae=700,re=72,le=128,ue="-",pe=/^xn--/,Te=/[^\x20-\x7E]/,Ce=/[\x2E\u3002\uFF0E\uFF61]/g,Fe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ae=xe-fe,je=Math.floor,Ne=String.fromCharCode,Be;function ze(Pt){throw new RangeError(Fe[Pt])}function Qe(Pt,gt){for(var dt=Pt.length,mt=[];dt--;)mt[dt]=gt(Pt[dt]);return mt}function $e(Pt,gt){var dt=Pt.split("@"),mt="";dt.length>1&&(mt=dt[0]+"@",Pt=dt[1]),Pt=Pt.replace(Ce,".");var kt=Pt.split("."),Et=Qe(kt,gt).join(".");return mt+Et}function Ye(Pt){for(var gt=[],dt=0,mt=Pt.length,kt,Et;dt<mt;)kt=Pt.charCodeAt(dt++),kt>=55296&&kt<=56319&&dt<mt?(Et=Pt.charCodeAt(dt++),(Et&64512)==56320?gt.push(((kt&1023)<<10)+(Et&1023)+65536):(gt.push(kt),dt--)):gt.push(kt);return gt}function at(Pt){return Qe(Pt,function(gt){var dt="";return gt>65535&&(gt-=65536,dt+=Ne(gt>>>10&1023|55296),gt=56320|gt&1023),dt+=Ne(gt),dt}).join("")}function ut(Pt){return Pt-48<10?Pt-22:Pt-65<26?Pt-65:Pt-97<26?Pt-97:xe}function ht(Pt,gt){return Pt+22+75*(Pt<26)-((gt!=0)<<5)}function Ct(Pt,gt,dt){var mt=0;for(Pt=dt?je(Pt/ae):Pt>>1,Pt+=je(Pt/gt);Pt>Ae*z>>1;mt+=xe)Pt=je(Pt/Ae);return je(mt+(Ae+1)*Pt/(Pt+ee))}function et(Pt){var gt=[],dt=Pt.length,mt,kt=0,Et=le,Ut=re,wt,pt,tt,Ze,we,be,Ke,Xe,Oe;for(wt=Pt.lastIndexOf(ue),wt<0&&(wt=0),pt=0;pt<wt;++pt)Pt.charCodeAt(pt)>=128&&ze("not-basic"),gt.push(Pt.charCodeAt(pt));for(tt=wt>0?wt+1:0;tt<dt;){for(Ze=kt,we=1,be=xe;tt>=dt&&ze("invalid-input"),Ke=ut(Pt.charCodeAt(tt++)),(Ke>=xe||Ke>je((ve-kt)/we))&&ze("overflow"),kt+=Ke*we,Xe=be<=Ut?fe:be>=Ut+z?z:be-Ut,!(Ke<Xe);be+=xe)Oe=xe-Xe,we>je(ve/Oe)&&ze("overflow"),we*=Oe;mt=gt.length+1,Ut=Ct(kt-Ze,mt,Ze==0),je(kt/mt)>ve-Et&&ze("overflow"),Et+=je(kt/mt),kt%=mt,gt.splice(kt++,0,Et)}return at(gt)}function it(Pt){var gt,dt,mt,kt,Et,Ut,wt,pt,tt,Ze,we,be=[],Ke,Xe,Oe,Ue;for(Pt=Ye(Pt),Ke=Pt.length,gt=le,dt=0,Et=re,Ut=0;Ut<Ke;++Ut)we=Pt[Ut],we<128&&be.push(Ne(we));for(mt=kt=be.length,kt&&be.push(ue);mt<Ke;){for(wt=ve,Ut=0;Ut<Ke;++Ut)we=Pt[Ut],we>=gt&&we<wt&&(wt=we);for(Xe=mt+1,wt-gt>je((ve-dt)/Xe)&&ze("overflow"),dt+=(wt-gt)*Xe,gt=wt,Ut=0;Ut<Ke;++Ut)if(we=Pt[Ut],we<gt&&++dt>ve&&ze("overflow"),we==gt){for(pt=dt,tt=xe;Ze=tt<=Et?fe:tt>=Et+z?z:tt-Et,!(pt<Ze);tt+=xe)Ue=pt-Ze,Oe=xe-Ze,be.push(Ne(ht(Ze+Ue%Oe,0))),pt=je(Ue/Oe);be.push(Ne(ht(pt,0))),Et=Ct(dt,Xe,mt==kt),dt=0,++mt}++dt,++gt}return be.join("")}function St(Pt){return $e(Pt,function(gt){return pe.test(gt)?et(gt.slice(4).toLowerCase()):gt})}function bt(Pt){return $e(Pt,function(gt){return Te.test(gt)?"xn--"+it(gt):gt})}if(Me={version:"1.4.1",ucs2:{decode:Ye,encode:at},decode:et,encode:it,toASCII:bt,toUnicode:St},typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd)Ge("punycode",function(){return Me});else if(Pe&&Ee)if(_e.exports==Pe)Ee.exports=Me;else for(Be in Me)Me.hasOwnProperty(Be)&&(Pe[Be]=Me[Be]);else ce.punycode=Me})(this)}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(ie,_e,Ie){"use strict";function ge(Pe,Ee){return Object.prototype.hasOwnProperty.call(Pe,Ee)}_e.exports=function(Pe,Ee,ye,Me){Ee=Ee||"&",ye=ye||"=";var ve={};if(typeof Pe!="string"||Pe.length===0)return ve;var xe=/\+/g;Pe=Pe.split(Ee);var fe=1e3;Me&&typeof Me.maxKeys=="number"&&(fe=Me.maxKeys);var z=Pe.length;fe>0&&z>fe&&(z=fe);for(var ee=0;ee<z;++ee){var ae=Pe[ee].replace(xe,"%20"),re=ae.indexOf(ye),le,ue,pe,Te;re>=0?(le=ae.substr(0,re),ue=ae.substr(re+1)):(le=ae,ue=""),pe=decodeURIComponent(le),Te=decodeURIComponent(ue),ge(ve,pe)?ce(ve[pe])?ve[pe].push(Te):ve[pe]=[ve[pe],Te]:ve[pe]=Te}return ve};var ce=Array.isArray||function(Pe){return Object.prototype.toString.call(Pe)==="[object Array]"}},{}],384:[function(ie,_e,Ie){"use strict";var ge=function(ye){switch(typeof ye){case"string":return ye;case"boolean":return ye?"true":"false";case"number":return isFinite(ye)?ye:"";default:return""}};_e.exports=function(ye,Me,ve,xe){return Me=Me||"&",ve=ve||"=",ye===null&&(ye=void 0),typeof ye=="object"?Pe(Ee(ye),function(fe){var z=encodeURIComponent(ge(fe))+ve;return ce(ye[fe])?Pe(ye[fe],function(ee){return z+encodeURIComponent(ge(ee))}).join(Me):z+encodeURIComponent(ge(ye[fe]))}).join(Me):xe?encodeURIComponent(ge(xe))+ve+encodeURIComponent(ge(ye)):""};var ce=Array.isArray||function(ye){return Object.prototype.toString.call(ye)==="[object Array]"};function Pe(ye,Me){if(ye.map)return ye.map(Me);for(var ve=[],xe=0;xe<ye.length;xe++)ve.push(Me(ye[xe],xe));return ve}var Ee=Object.keys||function(ye){var Me=[];for(var ve in ye)Object.prototype.hasOwnProperty.call(ye,ve)&&Me.push(ve);return Me}},{}],385:[function(ie,_e,Ie){"use strict";Ie.decode=Ie.parse=ie("./decode"),Ie.encode=Ie.stringify=ie("./encode")},{"./decode":383,"./encode":384}],386:[function(ie,_e,Ie){"use strict";var ge=ie("process-nextick-args"),ce=Object.keys||function(ae){var re=[];for(var le in ae)re.push(le);return re};_e.exports=fe;var Pe=Object.create(ie("core-util-is"));Pe.inherits=ie("inherits");var Ee=ie("./_stream_readable"),ye=ie("./_stream_writable");Pe.inherits(fe,Ee);for(var Me=ce(ye.prototype),ve=0;ve<Me.length;ve++){var xe=Me[ve];fe.prototype[xe]||(fe.prototype[xe]=ye.prototype[xe])}function fe(ae){if(!(this instanceof fe))return new fe(ae);Ee.call(this,ae),ye.call(this,ae),ae&&ae.readable===!1&&(this.readable=!1),ae&&ae.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,ae&&ae.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",z)}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function z(){this.allowHalfOpen||this._writableState.ended||ge.nextTick(ee,this)}function ee(ae){ae.end()}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ae){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ae,this._writableState.destroyed=ae)}}),fe.prototype._destroy=function(ae,re){this.push(null),this.end(),ge.nextTick(re,ae)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(ie,_e,Ie){"use strict";_e.exports=Pe;var ge=ie("./_stream_transform"),ce=Object.create(ie("core-util-is"));ce.inherits=ie("inherits"),ce.inherits(Pe,ge);function Pe(Ee){if(!(this instanceof Pe))return new Pe(Ee);ge.call(this,Ee)}Pe.prototype._transform=function(Ee,ye,Me){Me(null,Ee)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(ie,_e,Ie){(function(ge,ce){(function(){"use strict";var Pe=ie("process-nextick-args");_e.exports=Ne;var Ee=ie("isarray"),ye;Ne.ReadableState=je;var Me=ie("events").EventEmitter,ve=function(we,be){return we.listeners(be).length},xe=ie("./internal/streams/stream"),fe=ie("safe-buffer").Buffer,z=ce.Uint8Array||function(){};function ee(we){return fe.from(we)}function ae(we){return fe.isBuffer(we)||we instanceof z}var re=Object.create(ie("core-util-is"));re.inherits=ie("inherits");var le=ie("util"),ue=void 0;le&&le.debuglog?ue=le.debuglog("stream"):ue=function(){};var pe=ie("./internal/streams/BufferList"),Te=ie("./internal/streams/destroy"),Ce;re.inherits(Ne,xe);var Fe=["error","close","destroy","pause","resume"];function Ae(we,be,Ke){if(typeof we.prependListener=="function")return we.prependListener(be,Ke);!we._events||!we._events[be]?we.on(be,Ke):Ee(we._events[be])?we._events[be].unshift(Ke):we._events[be]=[Ke,we._events[be]]}function je(we,be){ye=ye||ie("./_stream_duplex"),we=we||{};var Ke=be instanceof ye;this.objectMode=!!we.objectMode,Ke&&(this.objectMode=this.objectMode||!!we.readableObjectMode);var Xe=we.highWaterMark,Oe=we.readableHighWaterMark,Ue=this.objectMode?16:16*1024;Xe||Xe===0?this.highWaterMark=Xe:Ke&&(Oe||Oe===0)?this.highWaterMark=Oe:this.highWaterMark=Ue,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new pe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=we.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,we.encoding&&(Ce||(Ce=ie("string_decoder/").StringDecoder),this.decoder=new Ce(we.encoding),this.encoding=we.encoding)}function Ne(we){if(ye=ye||ie("./_stream_duplex"),!(this instanceof Ne))return new Ne(we);this._readableState=new je(we,this),this.readable=!0,we&&(typeof we.read=="function"&&(this._read=we.read),typeof we.destroy=="function"&&(this._destroy=we.destroy)),xe.call(this)}Object.defineProperty(Ne.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(we){this._readableState&&(this._readableState.destroyed=we)}}),Ne.prototype.destroy=Te.destroy,Ne.prototype._undestroy=Te.undestroy,Ne.prototype._destroy=function(we,be){this.push(null),be(we)},Ne.prototype.push=function(we,be){var Ke=this._readableState,Xe;return Ke.objectMode?Xe=!0:typeof we=="string"&&(be=be||Ke.defaultEncoding,be!==Ke.encoding&&(we=fe.from(we,be),be=""),Xe=!0),Be(this,we,be,!1,Xe)},Ne.prototype.unshift=function(we){return Be(this,we,null,!0,!1)};function Be(we,be,Ke,Xe,Oe){var Ue=we._readableState;if(be===null)Ue.reading=!1,ht(we,Ue);else{var He;Oe||(He=Qe(Ue,be)),He?we.emit("error",He):Ue.objectMode||be&&be.length>0?(typeof be!="string"&&!Ue.objectMode&&Object.getPrototypeOf(be)!==fe.prototype&&(be=ee(be)),Xe?Ue.endEmitted?we.emit("error",new Error("stream.unshift() after end event")):ze(we,Ue,be,!0):Ue.ended?we.emit("error",new Error("stream.push() after EOF")):(Ue.reading=!1,Ue.decoder&&!Ke?(be=Ue.decoder.write(be),Ue.objectMode||be.length!==0?ze(we,Ue,be,!1):it(we,Ue)):ze(we,Ue,be,!1))):Xe||(Ue.reading=!1)}return $e(Ue)}function ze(we,be,Ke,Xe){be.flowing&&be.length===0&&!be.sync?(we.emit("data",Ke),we.read(0)):(be.length+=be.objectMode?1:Ke.length,Xe?be.buffer.unshift(Ke):be.buffer.push(Ke),be.needReadable&&Ct(we)),it(we,be)}function Qe(we,be){var Ke;return!ae(be)&&typeof be!="string"&&be!==void 0&&!we.objectMode&&(Ke=new TypeError("Invalid non-string/buffer chunk")),Ke}function $e(we){return!we.ended&&(we.needReadable||we.length<we.highWaterMark||we.length===0)}Ne.prototype.isPaused=function(){return this._readableState.flowing===!1},Ne.prototype.setEncoding=function(we){return Ce||(Ce=ie("string_decoder/").StringDecoder),this._readableState.decoder=new Ce(we),this._readableState.encoding=we,this};var Ye=8388608;function at(we){return we>=Ye?we=Ye:(we--,we|=we>>>1,we|=we>>>2,we|=we>>>4,we|=we>>>8,we|=we>>>16,we++),we}function ut(we,be){return we<=0||be.length===0&&be.ended?0:be.objectMode?1:we!==we?be.flowing&&be.length?be.buffer.head.data.length:be.length:(we>be.highWaterMark&&(be.highWaterMark=at(we)),we<=be.length?we:be.ended?be.length:(be.needReadable=!0,0))}Ne.prototype.read=function(we){ue("read",we),we=parseInt(we,10);var be=this._readableState,Ke=we;if(we!==0&&(be.emittedReadable=!1),we===0&&be.needReadable&&(be.length>=be.highWaterMark||be.ended))return ue("read: emitReadable",be.length,be.ended),be.length===0&&be.ended?pt(this):Ct(this),null;if(we=ut(we,be),we===0&&be.ended)return be.length===0&&pt(this),null;var Xe=be.needReadable;ue("need readable",Xe),(be.length===0||be.length-we<be.highWaterMark)&&(Xe=!0,ue("length less than watermark",Xe)),be.ended||be.reading?(Xe=!1,ue("reading or ended",Xe)):Xe&&(ue("do read"),be.reading=!0,be.sync=!0,be.length===0&&(be.needReadable=!0),this._read(be.highWaterMark),be.sync=!1,be.reading||(we=ut(Ke,be)));var Oe;return we>0?Oe=kt(we,be):Oe=null,Oe===null?(be.needReadable=!0,we=0):be.length-=we,be.length===0&&(be.ended||(be.needReadable=!0),Ke!==we&&be.ended&&pt(this)),Oe!==null&&this.emit("data",Oe),Oe};function ht(we,be){if(!be.ended){if(be.decoder){var Ke=be.decoder.end();Ke&&Ke.length&&(be.buffer.push(Ke),be.length+=be.objectMode?1:Ke.length)}be.ended=!0,Ct(we)}}function Ct(we){var be=we._readableState;be.needReadable=!1,be.emittedReadable||(ue("emitReadable",be.flowing),be.emittedReadable=!0,be.sync?Pe.nextTick(et,we):et(we))}function et(we){ue("emit readable"),we.emit("readable"),mt(we)}function it(we,be){be.readingMore||(be.readingMore=!0,Pe.nextTick(St,we,be))}function St(we,be){for(var Ke=be.length;!be.reading&&!be.flowing&&!be.ended&&be.length<be.highWaterMark&&(ue("maybeReadMore read 0"),we.read(0),Ke!==be.length);)Ke=be.length;be.readingMore=!1}Ne.prototype._read=function(we){this.emit("error",new Error("_read() is not implemented"))},Ne.prototype.pipe=function(we,be){var Ke=this,Xe=this._readableState;switch(Xe.pipesCount){case 0:Xe.pipes=we;break;case 1:Xe.pipes=[Xe.pipes,we];break;default:Xe.pipes.push(we);break}Xe.pipesCount+=1,ue("pipe count=%d opts=%j",Xe.pipesCount,be);var Oe=(!be||be.end!==!1)&&we!==ge.stdout&&we!==ge.stderr,Ue=Oe?Ve:Ht;Xe.endEmitted?Pe.nextTick(Ue):Ke.once("end",Ue),we.on("unpipe",He);function He(tn,It){ue("onunpipe"),tn===Ke&&It&&It.hasUnpiped===!1&&(It.hasUnpiped=!0,yt())}function Ve(){ue("onend"),we.end()}var Je=bt(Ke);we.on("drain",Je);var ct=!1;function yt(){ue("cleanup"),we.removeListener("close",Vt),we.removeListener("finish",Kt),we.removeListener("drain",Je),we.removeListener("error",Jt),we.removeListener("unpipe",He),Ke.removeListener("end",Ve),Ke.removeListener("end",Ht),Ke.removeListener("data",Mt),ct=!0,Xe.awaitDrain&&(!we._writableState||we._writableState.needDrain)&&Je()}var ft=!1;Ke.on("data",Mt);function Mt(tn){ue("ondata"),ft=!1;var It=we.write(tn);It===!1&&!ft&&((Xe.pipesCount===1&&Xe.pipes===we||Xe.pipesCount>1&&Ze(Xe.pipes,we)!==-1)&&!ct&&(ue("false write response, pause",Ke._readableState.awaitDrain),Ke._readableState.awaitDrain++,ft=!0),Ke.pause())}function Jt(tn){ue("onerror",tn),Ht(),we.removeListener("error",Jt),ve(we,"error")===0&&we.emit("error",tn)}Ae(we,"error",Jt);function Vt(){we.removeListener("finish",Kt),Ht()}we.once("close",Vt);function Kt(){ue("onfinish"),we.removeListener("close",Vt),Ht()}we.once("finish",Kt);function Ht(){ue("unpipe"),Ke.unpipe(we)}return we.emit("pipe",Ke),Xe.flowing||(ue("pipe resume"),Ke.resume()),we};function bt(we){return function(){var be=we._readableState;ue("pipeOnDrain",be.awaitDrain),be.awaitDrain&&be.awaitDrain--,be.awaitDrain===0&&ve(we,"data")&&(be.flowing=!0,mt(we))}}Ne.prototype.unpipe=function(we){var be=this._readableState,Ke={hasUnpiped:!1};if(be.pipesCount===0)return this;if(be.pipesCount===1)return we&&we!==be.pipes?this:(we||(we=be.pipes),be.pipes=null,be.pipesCount=0,be.flowing=!1,we&&we.emit("unpipe",this,Ke),this);if(!we){var Xe=be.pipes,Oe=be.pipesCount;be.pipes=null,be.pipesCount=0,be.flowing=!1;for(var Ue=0;Ue<Oe;Ue++)Xe[Ue].emit("unpipe",this,Ke);return this}var He=Ze(be.pipes,we);return He===-1?this:(be.pipes.splice(He,1),be.pipesCount-=1,be.pipesCount===1&&(be.pipes=be.pipes[0]),we.emit("unpipe",this,Ke),this)},Ne.prototype.on=function(we,be){var Ke=xe.prototype.on.call(this,we,be);if(we==="data")this._readableState.flowing!==!1&&this.resume();else if(we==="readable"){var Xe=this._readableState;!Xe.endEmitted&&!Xe.readableListening&&(Xe.readableListening=Xe.needReadable=!0,Xe.emittedReadable=!1,Xe.reading?Xe.length&&Ct(this):Pe.nextTick(Pt,this))}return Ke},Ne.prototype.addListener=Ne.prototype.on;function Pt(we){ue("readable nexttick read 0"),we.read(0)}Ne.prototype.resume=function(){var we=this._readableState;return we.flowing||(ue("resume"),we.flowing=!0,gt(this,we)),this};function gt(we,be){be.resumeScheduled||(be.resumeScheduled=!0,Pe.nextTick(dt,we,be))}function dt(we,be){be.reading||(ue("resume read 0"),we.read(0)),be.resumeScheduled=!1,be.awaitDrain=0,we.emit("resume"),mt(we),be.flowing&&!be.reading&&we.read(0)}Ne.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function mt(we){var be=we._readableState;for(ue("flow",be.flowing);be.flowing&&we.read()!==null;);}Ne.prototype.wrap=function(we){var be=this,Ke=this._readableState,Xe=!1;we.on("end",function(){if(ue("wrapped end"),Ke.decoder&&!Ke.ended){var He=Ke.decoder.end();He&&He.length&&be.push(He)}be.push(null)}),we.on("data",function(He){if(ue("wrapped data"),Ke.decoder&&(He=Ke.decoder.write(He)),!(Ke.objectMode&&He==null)&&!(!Ke.objectMode&&(!He||!He.length))){var Ve=be.push(He);Ve||(Xe=!0,we.pause())}});for(var Oe in we)this[Oe]===void 0&&typeof we[Oe]=="function"&&(this[Oe]=function(He){return function(){return we[He].apply(we,arguments)}}(Oe));for(var Ue=0;Ue<Fe.length;Ue++)we.on(Fe[Ue],this.emit.bind(this,Fe[Ue]));return this._read=function(He){ue("wrapped _read",He),Xe&&(Xe=!1,we.resume())},this},Object.defineProperty(Ne.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ne._fromList=kt;function kt(we,be){if(be.length===0)return null;var Ke;return be.objectMode?Ke=be.buffer.shift():!we||we>=be.length?(be.decoder?Ke=be.buffer.join(""):be.buffer.length===1?Ke=be.buffer.head.data:Ke=be.buffer.concat(be.length),be.buffer.clear()):Ke=Et(we,be.buffer,be.decoder),Ke}function Et(we,be,Ke){var Xe;return we<be.head.data.length?(Xe=be.head.data.slice(0,we),be.head.data=be.head.data.slice(we)):we===be.head.data.length?Xe=be.shift():Xe=Ke?Ut(we,be):wt(we,be),Xe}function Ut(we,be){var Ke=be.head,Xe=1,Oe=Ke.data;for(we-=Oe.length;Ke=Ke.next;){var Ue=Ke.data,He=we>Ue.length?Ue.length:we;if(He===Ue.length?Oe+=Ue:Oe+=Ue.slice(0,we),we-=He,we===0){He===Ue.length?(++Xe,Ke.next?be.head=Ke.next:be.head=be.tail=null):(be.head=Ke,Ke.data=Ue.slice(He));break}++Xe}return be.length-=Xe,Oe}function wt(we,be){var Ke=fe.allocUnsafe(we),Xe=be.head,Oe=1;for(Xe.data.copy(Ke),we-=Xe.data.length;Xe=Xe.next;){var Ue=Xe.data,He=we>Ue.length?Ue.length:we;if(Ue.copy(Ke,Ke.length-we,0,He),we-=He,we===0){He===Ue.length?(++Oe,Xe.next?be.head=Xe.next:be.head=be.tail=null):(be.head=Xe,Xe.data=Ue.slice(He));break}++Oe}return be.length-=Oe,Ke}function pt(we){var be=we._readableState;if(be.length>0)throw new Error('"endReadable()" called on non-empty stream');be.endEmitted||(be.ended=!0,Pe.nextTick(tt,be,we))}function tt(we,be){!we.endEmitted&&we.length===0&&(we.endEmitted=!0,be.readable=!1,be.emit("end"))}function Ze(we,be){for(var Ke=0,Xe=we.length;Ke<Xe;Ke++)if(we[Ke]===be)return Ke;return-1}}).call(this)}).call(this,ie("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(ie,_e,Ie){"use strict";_e.exports=Ee;var ge=ie("./_stream_duplex"),ce=Object.create(ie("core-util-is"));ce.inherits=ie("inherits"),ce.inherits(Ee,ge);function Pe(ve,xe){var fe=this._transformState;fe.transforming=!1;var z=fe.writecb;if(!z)return this.emit("error",new Error("write callback called multiple times"));fe.writechunk=null,fe.writecb=null,xe!=null&&this.push(xe),z(ve);var ee=this._readableState;ee.reading=!1,(ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}function Ee(ve){if(!(this instanceof Ee))return new Ee(ve);ge.call(this,ve),this._transformState={afterTransform:Pe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ve&&(typeof ve.transform=="function"&&(this._transform=ve.transform),typeof ve.flush=="function"&&(this._flush=ve.flush)),this.on("prefinish",ye)}function ye(){var ve=this;typeof this._flush=="function"?this._flush(function(xe,fe){Me(ve,xe,fe)}):Me(this,null,null)}Ee.prototype.push=function(ve,xe){return this._transformState.needTransform=!1,ge.prototype.push.call(this,ve,xe)},Ee.prototype._transform=function(ve,xe,fe){throw new Error("_transform() is not implemented")},Ee.prototype._write=function(ve,xe,fe){var z=this._transformState;if(z.writecb=fe,z.writechunk=ve,z.writeencoding=xe,!z.transforming){var ee=this._readableState;(z.needTransform||ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}},Ee.prototype._read=function(ve){var xe=this._transformState;xe.writechunk!==null&&xe.writecb&&!xe.transforming?(xe.transforming=!0,this._transform(xe.writechunk,xe.writeencoding,xe.afterTransform)):xe.needTransform=!0},Ee.prototype._destroy=function(ve,xe){var fe=this;ge.prototype._destroy.call(this,ve,function(z){xe(z),fe.emit("close")})};function Me(ve,xe,fe){if(xe)return ve.emit("error",xe);if(fe!=null&&ve.push(fe),ve._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(ve._transformState.transforming)throw new Error("Calling transform done when still transforming");return ve.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(ie,_e,Ie){(function(ge,ce,Pe){(function(){"use strict";var Ee=ie("process-nextick-args");_e.exports=Ae;function ye(dt,mt,kt){this.chunk=dt,this.encoding=mt,this.callback=kt,this.next=null}function Me(dt){var mt=this;this.next=null,this.entry=null,this.finish=function(){gt(mt,dt)}}var ve=!ge.browser&&["v0.10","v0.9."].indexOf(ge.version.slice(0,5))>-1?Pe:Ee.nextTick,xe;Ae.WritableState=Ce;var fe=Object.create(ie("core-util-is"));fe.inherits=ie("inherits");var z={deprecate:ie("util-deprecate")},ee=ie("./internal/streams/stream"),ae=ie("safe-buffer").Buffer,re=ce.Uint8Array||function(){};function le(dt){return ae.from(dt)}function ue(dt){return ae.isBuffer(dt)||dt instanceof re}var pe=ie("./internal/streams/destroy");fe.inherits(Ae,ee);function Te(){}function Ce(dt,mt){xe=xe||ie("./_stream_duplex"),dt=dt||{};var kt=mt instanceof xe;this.objectMode=!!dt.objectMode,kt&&(this.objectMode=this.objectMode||!!dt.writableObjectMode);var Et=dt.highWaterMark,Ut=dt.writableHighWaterMark,wt=this.objectMode?16:16*1024;Et||Et===0?this.highWaterMark=Et:kt&&(Ut||Ut===0)?this.highWaterMark=Ut:this.highWaterMark=wt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var pt=dt.decodeStrings===!1;this.decodeStrings=!pt,this.defaultEncoding=dt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(tt){at(mt,tt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Me(this)}Ce.prototype.getBuffer=function(){for(var mt=this.bufferedRequest,kt=[];mt;)kt.push(mt),mt=mt.next;return kt},function(){try{Object.defineProperty(Ce.prototype,"buffer",{get:z.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(dt){}}();var Fe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Fe=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ae,Symbol.hasInstance,{value:function(dt){return Fe.call(this,dt)?!0:this!==Ae?!1:dt&&dt._writableState instanceof Ce}})):Fe=function(dt){return dt instanceof this};function Ae(dt){if(xe=xe||ie("./_stream_duplex"),!Fe.call(Ae,this)&&!(this instanceof xe))return new Ae(dt);this._writableState=new Ce(dt,this),this.writable=!0,dt&&(typeof dt.write=="function"&&(this._write=dt.write),typeof dt.writev=="function"&&(this._writev=dt.writev),typeof dt.destroy=="function"&&(this._destroy=dt.destroy),typeof dt.final=="function"&&(this._final=dt.final)),ee.call(this)}Ae.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function je(dt,mt){var kt=new Error("write after end");dt.emit("error",kt),Ee.nextTick(mt,kt)}function Ne(dt,mt,kt,Et){var Ut=!0,wt=!1;return kt===null?wt=new TypeError("May not write null values to stream"):typeof kt!="string"&&kt!==void 0&&!mt.objectMode&&(wt=new TypeError("Invalid non-string/buffer chunk")),wt&&(dt.emit("error",wt),Ee.nextTick(Et,wt),Ut=!1),Ut}Ae.prototype.write=function(dt,mt,kt){var Et=this._writableState,Ut=!1,wt=!Et.objectMode&&ue(dt);return wt&&!ae.isBuffer(dt)&&(dt=le(dt)),typeof mt=="function"&&(kt=mt,mt=null),wt?mt="buffer":mt||(mt=Et.defaultEncoding),typeof kt!="function"&&(kt=Te),Et.ended?je(this,kt):(wt||Ne(this,Et,dt,kt))&&(Et.pendingcb++,Ut=ze(this,Et,wt,dt,mt,kt)),Ut},Ae.prototype.cork=function(){var dt=this._writableState;dt.corked++},Ae.prototype.uncork=function(){var dt=this._writableState;dt.corked&&(dt.corked--,!dt.writing&&!dt.corked&&!dt.finished&&!dt.bufferProcessing&&dt.bufferedRequest&&Ct(this,dt))},Ae.prototype.setDefaultEncoding=function(mt){if(typeof mt=="string"&&(mt=mt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((mt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+mt);return this._writableState.defaultEncoding=mt,this};function Be(dt,mt,kt){return!dt.objectMode&&dt.decodeStrings!==!1&&typeof mt=="string"&&(mt=ae.from(mt,kt)),mt}Object.defineProperty(Ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ze(dt,mt,kt,Et,Ut,wt){if(!kt){var pt=Be(mt,Et,Ut);Et!==pt&&(kt=!0,Ut="buffer",Et=pt)}var tt=mt.objectMode?1:Et.length;mt.length+=tt;var Ze=mt.length<mt.highWaterMark;if(Ze||(mt.needDrain=!0),mt.writing||mt.corked){var we=mt.lastBufferedRequest;mt.lastBufferedRequest={chunk:Et,encoding:Ut,isBuf:kt,callback:wt,next:null},we?we.next=mt.lastBufferedRequest:mt.bufferedRequest=mt.lastBufferedRequest,mt.bufferedRequestCount+=1}else Qe(dt,mt,!1,tt,Et,Ut,wt);return Ze}function Qe(dt,mt,kt,Et,Ut,wt,pt){mt.writelen=Et,mt.writecb=pt,mt.writing=!0,mt.sync=!0,kt?dt._writev(Ut,mt.onwrite):dt._write(Ut,wt,mt.onwrite),mt.sync=!1}function $e(dt,mt,kt,Et,Ut){--mt.pendingcb,kt?(Ee.nextTick(Ut,Et),Ee.nextTick(bt,dt,mt),dt._writableState.errorEmitted=!0,dt.emit("error",Et)):(Ut(Et),dt._writableState.errorEmitted=!0,dt.emit("error",Et),bt(dt,mt))}function Ye(dt){dt.writing=!1,dt.writecb=null,dt.length-=dt.writelen,dt.writelen=0}function at(dt,mt){var kt=dt._writableState,Et=kt.sync,Ut=kt.writecb;if(Ye(kt),mt)$e(dt,kt,Et,mt,Ut);else{var wt=et(kt);!wt&&!kt.corked&&!kt.bufferProcessing&&kt.bufferedRequest&&Ct(dt,kt),Et?ve(ut,dt,kt,wt,Ut):ut(dt,kt,wt,Ut)}}function ut(dt,mt,kt,Et){kt||ht(dt,mt),mt.pendingcb--,Et(),bt(dt,mt)}function ht(dt,mt){mt.length===0&&mt.needDrain&&(mt.needDrain=!1,dt.emit("drain"))}function Ct(dt,mt){mt.bufferProcessing=!0;var kt=mt.bufferedRequest;if(dt._writev&&kt&&kt.next){var Et=mt.bufferedRequestCount,Ut=new Array(Et),wt=mt.corkedRequestsFree;wt.entry=kt;for(var pt=0,tt=!0;kt;)Ut[pt]=kt,kt.isBuf||(tt=!1),kt=kt.next,pt+=1;Ut.allBuffers=tt,Qe(dt,mt,!0,mt.length,Ut,"",wt.finish),mt.pendingcb++,mt.lastBufferedRequest=null,wt.next?(mt.corkedRequestsFree=wt.next,wt.next=null):mt.corkedRequestsFree=new Me(mt),mt.bufferedRequestCount=0}else{for(;kt;){var Ze=kt.chunk,we=kt.encoding,be=kt.callback,Ke=mt.objectMode?1:Ze.length;if(Qe(dt,mt,!1,Ke,Ze,we,be),kt=kt.next,mt.bufferedRequestCount--,mt.writing)break}kt===null&&(mt.lastBufferedRequest=null)}mt.bufferedRequest=kt,mt.bufferProcessing=!1}Ae.prototype._write=function(dt,mt,kt){kt(new Error("_write() is not implemented"))},Ae.prototype._writev=null,Ae.prototype.end=function(dt,mt,kt){var Et=this._writableState;typeof dt=="function"?(kt=dt,dt=null,mt=null):typeof mt=="function"&&(kt=mt,mt=null),dt!=null&&this.write(dt,mt),Et.corked&&(Et.corked=1,this.uncork()),!Et.ending&&!Et.finished&&Pt(this,Et,kt)};function et(dt){return dt.ending&&dt.length===0&&dt.bufferedRequest===null&&!dt.finished&&!dt.writing}function it(dt,mt){dt._final(function(kt){mt.pendingcb--,kt&&dt.emit("error",kt),mt.prefinished=!0,dt.emit("prefinish"),bt(dt,mt)})}function St(dt,mt){!mt.prefinished&&!mt.finalCalled&&(typeof dt._final=="function"?(mt.pendingcb++,mt.finalCalled=!0,Ee.nextTick(it,dt,mt)):(mt.prefinished=!0,dt.emit("prefinish")))}function bt(dt,mt){var kt=et(mt);return kt&&(St(dt,mt),mt.pendingcb===0&&(mt.finished=!0,dt.emit("finish"))),kt}function Pt(dt,mt,kt){mt.ending=!0,bt(dt,mt),kt&&(mt.finished?Ee.nextTick(kt):dt.once("finish",kt)),mt.ended=!0,dt.writable=!1}function gt(dt,mt,kt){var Et=dt.entry;for(dt.entry=null;Et;){var Ut=Et.callback;mt.pendingcb--,Ut(kt),Et=Et.next}mt.corkedRequestsFree?mt.corkedRequestsFree.next=dt:mt.corkedRequestsFree=dt}Object.defineProperty(Ae.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(dt){this._writableState&&(this._writableState.destroyed=dt)}}),Ae.prototype.destroy=pe.destroy,Ae.prototype._undestroy=pe.undestroy,Ae.prototype._destroy=function(dt,mt){this.end(),mt(dt)}}).call(this)}).call(this,ie("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{},ie("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(ie,_e,Ie){"use strict";function ge(ye,Me){if(!(ye instanceof Me))throw new TypeError("Cannot call a class as a function")}var ce=ie("safe-buffer").Buffer,Pe=ie("util");function Ee(ye,Me,ve){ye.copy(Me,ve)}_e.exports=function(){function ye(){ge(this,ye),this.head=null,this.tail=null,this.length=0}return ye.prototype.push=function(ve){var xe={data:ve,next:null};this.length>0?this.tail.next=xe:this.head=xe,this.tail=xe,++this.length},ye.prototype.unshift=function(ve){var xe={data:ve,next:this.head};this.length===0&&(this.tail=xe),this.head=xe,++this.length},ye.prototype.shift=function(){if(this.length!==0){var ve=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ve}},ye.prototype.clear=function(){this.head=this.tail=null,this.length=0},ye.prototype.join=function(ve){if(this.length===0)return"";for(var xe=this.head,fe=""+xe.data;xe=xe.next;)fe+=ve+xe.data;return fe},ye.prototype.concat=function(ve){if(this.length===0)return ce.alloc(0);if(this.length===1)return this.head.data;for(var xe=ce.allocUnsafe(ve>>>0),fe=this.head,z=0;fe;)Ee(fe.data,xe,z),z+=fe.data.length,fe=fe.next;return xe},ye}(),Pe&&Pe.inspect&&Pe.inspect.custom&&(_e.exports.prototype[Pe.inspect.custom]=function(){var ye=Pe.inspect({length:this.length});return this.constructor.name+" "+ye})},{"safe-buffer":396,util:89}],392:[function(ie,_e,Ie){"use strict";var ge=ie("process-nextick-args");function ce(ye,Me){var ve=this,xe=this._readableState&&this._readableState.destroyed,fe=this._writableState&&this._writableState.destroyed;return xe||fe?(Me?Me(ye):ye&&(!this._writableState||!this._writableState.errorEmitted)&&ge.nextTick(Ee,this,ye),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ye||null,function(z){!Me&&z?(ge.nextTick(Ee,ve,z),ve._writableState&&(ve._writableState.errorEmitted=!0)):Me&&Me(z)}),this)}function Pe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ee(ye,Me){ye.emit("error",Me)}_e.exports={destroy:ce,undestroy:Pe}},{"process-nextick-args":380}],393:[function(ie,_e,Ie){_e.exports=ie("events").EventEmitter},{events:344}],394:[function(ie,_e,Ie){Ie=_e.exports=ie("./lib/_stream_readable.js"),Ie.Stream=Ie,Ie.Readable=Ie,Ie.Writable=ie("./lib/_stream_writable.js"),Ie.Duplex=ie("./lib/_stream_duplex.js"),Ie.Transform=ie("./lib/_stream_transform.js"),Ie.PassThrough=ie("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(ie,_e,Ie){var ge=function(ce){"use strict";var Pe=Object.prototype,Ee=Pe.hasOwnProperty,ye,Me=typeof Symbol=="function"?Symbol:{},ve=Me.iterator||"@@iterator",xe=Me.asyncIterator||"@@asyncIterator",fe=Me.toStringTag||"@@toStringTag";function z(St,bt,Pt){return Object.defineProperty(St,bt,{value:Pt,enumerable:!0,configurable:!0,writable:!0}),St[bt]}try{z({},"")}catch(St){z=function(bt,Pt,gt){return bt[Pt]=gt}}function ee(St,bt,Pt,gt){var dt=bt&&bt.prototype instanceof Ce?bt:Ce,mt=Object.create(dt.prototype),kt=new Ct(gt||[]);return mt._invoke=Ye(St,Pt,kt),mt}ce.wrap=ee;function ae(St,bt,Pt){try{return{type:"normal",arg:St.call(bt,Pt)}}catch(gt){return{type:"throw",arg:gt}}}var re="suspendedStart",le="suspendedYield",ue="executing",pe="completed",Te={};function Ce(){}function Fe(){}function Ae(){}var je={};z(je,ve,function(){return this});var Ne=Object.getPrototypeOf,Be=Ne&&Ne(Ne(et([])));Be&&Be!==Pe&&Ee.call(Be,ve)&&(je=Be);var ze=Ae.prototype=Ce.prototype=Object.create(je);Fe.prototype=Ae,z(ze,"constructor",Ae),z(Ae,"constructor",Fe),Fe.displayName=z(Ae,fe,"GeneratorFunction");function Qe(St){["next","throw","return"].forEach(function(bt){z(St,bt,function(Pt){return this._invoke(bt,Pt)})})}ce.isGeneratorFunction=function(St){var bt=typeof St=="function"&&St.constructor;return bt?bt===Fe||(bt.displayName||bt.name)==="GeneratorFunction":!1},ce.mark=function(St){return Object.setPrototypeOf?Object.setPrototypeOf(St,Ae):(St.__proto__=Ae,z(St,fe,"GeneratorFunction")),St.prototype=Object.create(ze),St},ce.awrap=function(St){return{__await:St}};function $e(St,bt){function Pt(mt,kt,Et,Ut){var wt=ae(St[mt],St,kt);if(wt.type==="throw")Ut(wt.arg);else{var pt=wt.arg,tt=pt.value;return tt&&typeof tt=="object"&&Ee.call(tt,"__await")?bt.resolve(tt.__await).then(function(Ze){Pt("next",Ze,Et,Ut)},function(Ze){Pt("throw",Ze,Et,Ut)}):bt.resolve(tt).then(function(Ze){pt.value=Ze,Et(pt)},function(Ze){return Pt("throw",Ze,Et,Ut)})}}var gt;function dt(mt,kt){function Et(){return new bt(function(Ut,wt){Pt(mt,kt,Ut,wt)})}return gt=gt?gt.then(Et,Et):Et()}this._invoke=dt}Qe($e.prototype),z($e.prototype,xe,function(){return this}),ce.AsyncIterator=$e,ce.async=function(St,bt,Pt,gt,dt){dt===void 0&&(dt=Promise);var mt=new $e(ee(St,bt,Pt,gt),dt);return ce.isGeneratorFunction(bt)?mt:mt.next().then(function(kt){return kt.done?kt.value:mt.next()})};function Ye(St,bt,Pt){var gt=re;return function(mt,kt){if(gt===ue)throw new Error("Generator is already running");if(gt===pe){if(mt==="throw")throw kt;return it()}for(Pt.method=mt,Pt.arg=kt;;){var Et=Pt.delegate;if(Et){var Ut=at(Et,Pt);if(Ut){if(Ut===Te)continue;return Ut}}if(Pt.method==="next")Pt.sent=Pt._sent=Pt.arg;else if(Pt.method==="throw"){if(gt===re)throw gt=pe,Pt.arg;Pt.dispatchException(Pt.arg)}else Pt.method==="return"&&Pt.abrupt("return",Pt.arg);gt=ue;var wt=ae(St,bt,Pt);if(wt.type==="normal"){if(gt=Pt.done?pe:le,wt.arg===Te)continue;return{value:wt.arg,done:Pt.done}}else wt.type==="throw"&&(gt=pe,Pt.method="throw",Pt.arg=wt.arg)}}}function at(St,bt){var Pt=St.iterator[bt.method];if(Pt===ye){if(bt.delegate=null,bt.method==="throw"){if(St.iterator.return&&(bt.method="return",bt.arg=ye,at(St,bt),bt.method==="throw"))return Te;bt.method="throw",bt.arg=new TypeError("The iterator does not provide a 'throw' method")}return Te}var gt=ae(Pt,St.iterator,bt.arg);if(gt.type==="throw")return bt.method="throw",bt.arg=gt.arg,bt.delegate=null,Te;var dt=gt.arg;if(!dt)return bt.method="throw",bt.arg=new TypeError("iterator result is not an object"),bt.delegate=null,Te;if(dt.done)bt[St.resultName]=dt.value,bt.next=St.nextLoc,bt.method!=="return"&&(bt.method="next",bt.arg=ye);else return dt;return bt.delegate=null,Te}Qe(ze),z(ze,fe,"Generator"),z(ze,ve,function(){return this}),z(ze,"toString",function(){return"[object Generator]"});function ut(St){var bt={tryLoc:St[0]};1 in St&&(bt.catchLoc=St[1]),2 in St&&(bt.finallyLoc=St[2],bt.afterLoc=St[3]),this.tryEntries.push(bt)}function ht(St){var bt=St.completion||{};bt.type="normal",delete bt.arg,St.completion=bt}function Ct(St){this.tryEntries=[{tryLoc:"root"}],St.forEach(ut,this),this.reset(!0)}ce.keys=function(St){var bt=[];for(var Pt in St)bt.push(Pt);return bt.reverse(),function gt(){for(;bt.length;){var dt=bt.pop();if(dt in St)return gt.value=dt,gt.done=!1,gt}return gt.done=!0,gt}};function et(St){if(St){var bt=St[ve];if(bt)return bt.call(St);if(typeof St.next=="function")return St;if(!isNaN(St.length)){var Pt=-1,gt=function dt(){for(;++Pt<St.length;)if(Ee.call(St,Pt))return dt.value=St[Pt],dt.done=!1,dt;return dt.value=ye,dt.done=!0,dt};return gt.next=gt}}return{next:it}}ce.values=et;function it(){return{value:ye,done:!0}}return Ct.prototype={constructor:Ct,reset:function(St){if(this.prev=0,this.next=0,this.sent=this._sent=ye,this.done=!1,this.delegate=null,this.method="next",this.arg=ye,this.tryEntries.forEach(ht),!St)for(var bt in this)bt.charAt(0)==="t"&&Ee.call(this,bt)&&!isNaN(+bt.slice(1))&&(this[bt]=ye)},stop:function(){this.done=!0;var St=this.tryEntries[0],bt=St.completion;if(bt.type==="throw")throw bt.arg;return this.rval},dispatchException:function(St){if(this.done)throw St;var bt=this;function Pt(Ut,wt){return mt.type="throw",mt.arg=St,bt.next=Ut,wt&&(bt.method="next",bt.arg=ye),!!wt}for(var gt=this.tryEntries.length-1;gt>=0;--gt){var dt=this.tryEntries[gt],mt=dt.completion;if(dt.tryLoc==="root")return Pt("end");if(dt.tryLoc<=this.prev){var kt=Ee.call(dt,"catchLoc"),Et=Ee.call(dt,"finallyLoc");if(kt&&Et){if(this.prev<dt.catchLoc)return Pt(dt.catchLoc,!0);if(this.prev<dt.finallyLoc)return Pt(dt.finallyLoc)}else if(kt){if(this.prev<dt.catchLoc)return Pt(dt.catchLoc,!0)}else if(Et){if(this.prev<dt.finallyLoc)return Pt(dt.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(St,bt){for(var Pt=this.tryEntries.length-1;Pt>=0;--Pt){var gt=this.tryEntries[Pt];if(gt.tryLoc<=this.prev&&Ee.call(gt,"finallyLoc")&&this.prev<gt.finallyLoc){var dt=gt;break}}dt&&(St==="break"||St==="continue")&&dt.tryLoc<=bt&&bt<=dt.finallyLoc&&(dt=null);var mt=dt?dt.completion:{};return mt.type=St,mt.arg=bt,dt?(this.method="next",this.next=dt.finallyLoc,Te):this.complete(mt)},complete:function(St,bt){if(St.type==="throw")throw St.arg;return St.type==="break"||St.type==="continue"?this.next=St.arg:St.type==="return"?(this.rval=this.arg=St.arg,this.method="return",this.next="end"):St.type==="normal"&&bt&&(this.next=bt),Te},finish:function(St){for(var bt=this.tryEntries.length-1;bt>=0;--bt){var Pt=this.tryEntries[bt];if(Pt.finallyLoc===St)return this.complete(Pt.completion,Pt.afterLoc),ht(Pt),Te}},catch:function(St){for(var bt=this.tryEntries.length-1;bt>=0;--bt){var Pt=this.tryEntries[bt];if(Pt.tryLoc===St){var gt=Pt.completion;if(gt.type==="throw"){var dt=gt.arg;ht(Pt)}return dt}}throw new Error("illegal catch attempt")},delegateYield:function(St,bt,Pt){return this.delegate={iterator:et(St),resultName:bt,nextLoc:Pt},this.method==="next"&&(this.arg=ye),Te}},ce}(typeof _e=="object"?_e.exports:{});try{regeneratorRuntime=ge}catch(ce){typeof globalThis=="object"?globalThis.regeneratorRuntime=ge:Function("r","regeneratorRuntime = r")(ge)}},{}],396:[function(ie,_e,Ie){var ge=ie("buffer"),ce=ge.Buffer;function Pe(ye,Me){for(var ve in ye)Me[ve]=ye[ve]}ce.from&&ce.alloc&&ce.allocUnsafe&&ce.allocUnsafeSlow?_e.exports=ge:(Pe(ge,Ie),Ie.Buffer=Ee);function Ee(ye,Me,ve){return ce(ye,Me,ve)}Pe(ce,Ee),Ee.from=function(ye,Me,ve){if(typeof ye=="number")throw new TypeError("Argument must not be a number");return ce(ye,Me,ve)},Ee.alloc=function(ye,Me,ve){if(typeof ye!="number")throw new TypeError("Argument must be a number");var xe=ce(ye);return Me!==void 0?typeof ve=="string"?xe.fill(Me,ve):xe.fill(Me):xe.fill(0),xe},Ee.allocUnsafe=function(ye){if(typeof ye!="number")throw new TypeError("Argument must be a number");return ce(ye)},Ee.allocUnsafeSlow=function(ye){if(typeof ye!="number")throw new TypeError("Argument must be a number");return ge.SlowBuffer(ye)}},{buffer:90}],397:[function(ie,_e,Ie){(function(ge){(function(){(function(ce){ce.parser=function(pt,tt){return new Ee(pt,tt)},ce.SAXParser=Ee,ce.SAXStream=ee,ce.createStream=z,ce.MAX_BUFFER_LENGTH=64*1024;var Pe=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ce.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function Ee(pt,tt){if(!(this instanceof Ee))return new Ee(pt,tt);var Ze=this;Me(Ze),Ze.q=Ze.c="",Ze.bufferCheckPosition=ce.MAX_BUFFER_LENGTH,Ze.opt=tt||{},Ze.opt.lowercase=Ze.opt.lowercase||Ze.opt.lowercasetags,Ze.looseCase=Ze.opt.lowercase?"toLowerCase":"toUpperCase",Ze.tags=[],Ze.closed=Ze.closedRoot=Ze.sawRoot=!1,Ze.tag=Ze.error=null,Ze.strict=!!pt,Ze.noscript=!!(pt||Ze.opt.noscript),Ze.state=$e.BEGIN,Ze.strictEntities=Ze.opt.strictEntities,Ze.ENTITIES=Ze.strictEntities?Object.create(ce.XML_ENTITIES):Object.create(ce.ENTITIES),Ze.attribList=[],Ze.opt.xmlns&&(Ze.ns=Object.create(pe)),Ze.trackPosition=Ze.opt.position!==!1,Ze.trackPosition&&(Ze.position=Ze.line=Ze.column=0),at(Ze,"onready")}Object.create||(Object.create=function(pt){function tt(){}tt.prototype=pt;var Ze=new tt;return Ze}),Object.keys||(Object.keys=function(pt){var tt=[];for(var Ze in pt)pt.hasOwnProperty(Ze)&&tt.push(Ze);return tt});function ye(pt){for(var tt=Math.max(ce.MAX_BUFFER_LENGTH,10),Ze=0,we=0,be=Pe.length;we<be;we++){var Ke=pt[Pe[we]].length;if(Ke>tt)switch(Pe[we]){case"textNode":ht(pt);break;case"cdata":ut(pt,"oncdata",pt.cdata),pt.cdata="";break;case"script":ut(pt,"onscript",pt.script),pt.script="";break;default:et(pt,"Max buffer length exceeded: "+Pe[we])}Ze=Math.max(Ze,Ke)}var Xe=ce.MAX_BUFFER_LENGTH-Ze;pt.bufferCheckPosition=Xe+pt.position}function Me(pt){for(var tt=0,Ze=Pe.length;tt<Ze;tt++)pt[Pe[tt]]=""}function ve(pt){ht(pt),pt.cdata!==""&&(ut(pt,"oncdata",pt.cdata),pt.cdata=""),pt.script!==""&&(ut(pt,"onscript",pt.script),pt.script="")}Ee.prototype={end:function(){it(this)},write:wt,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){ve(this)}};var xe;try{xe=ie("stream").Stream}catch(pt){xe=function(){}}var fe=ce.EVENTS.filter(function(pt){return pt!=="error"&&pt!=="end"});function z(pt,tt){return new ee(pt,tt)}function ee(pt,tt){if(!(this instanceof ee))return new ee(pt,tt);xe.apply(this),this._parser=new Ee(pt,tt),this.writable=!0,this.readable=!0;var Ze=this;this._parser.onend=function(){Ze.emit("end")},this._parser.onerror=function(we){Ze.emit("error",we),Ze._parser.error=null},this._decoder=null,fe.forEach(function(we){Object.defineProperty(Ze,"on"+we,{get:function(){return Ze._parser["on"+we]},set:function(be){if(!be)return Ze.removeAllListeners(we),Ze._parser["on"+we]=be,be;Ze.on(we,be)},enumerable:!0,configurable:!1})})}ee.prototype=Object.create(xe.prototype,{constructor:{value:ee}}),ee.prototype.write=function(pt){if(typeof ge=="function"&&typeof ge.isBuffer=="function"&&ge.isBuffer(pt)){if(!this._decoder){var tt=ie("string_decoder").StringDecoder;this._decoder=new tt("utf8")}pt=this._decoder.write(pt)}return this._parser.write(pt.toString()),this.emit("data",pt),!0},ee.prototype.end=function(pt){return pt&&pt.length&&this.write(pt),this._parser.end(),!0},ee.prototype.on=function(pt,tt){var Ze=this;return!Ze._parser["on"+pt]&&fe.indexOf(pt)!==-1&&(Ze._parser["on"+pt]=function(){var we=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);we.splice(0,0,pt),Ze.emit.apply(Ze,we)}),xe.prototype.on.call(Ze,pt,tt)};var ae="[CDATA[",re="DOCTYPE",le="http://www.w3.org/XML/1998/namespace",ue="http://www.w3.org/2000/xmlns/",pe={xml:le,xmlns:ue},Te=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Ce=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Fe=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Ae=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function je(pt){return pt===" "||pt===`
|
|
|
`||pt==="\r"||pt===" "}function Ne(pt){return pt==='"'||pt==="'"}function Be(pt){return pt===">"||je(pt)}function ze(pt,tt){return pt.test(tt)}function Qe(pt,tt){return!ze(pt,tt)}var $e=0;ce.STATE={BEGIN:$e++,BEGIN_WHITESPACE:$e++,TEXT:$e++,TEXT_ENTITY:$e++,OPEN_WAKA:$e++,SGML_DECL:$e++,SGML_DECL_QUOTED:$e++,DOCTYPE:$e++,DOCTYPE_QUOTED:$e++,DOCTYPE_DTD:$e++,DOCTYPE_DTD_QUOTED:$e++,COMMENT_STARTING:$e++,COMMENT:$e++,COMMENT_ENDING:$e++,COMMENT_ENDED:$e++,CDATA:$e++,CDATA_ENDING:$e++,CDATA_ENDING_2:$e++,PROC_INST:$e++,PROC_INST_BODY:$e++,PROC_INST_ENDING:$e++,OPEN_TAG:$e++,OPEN_TAG_SLASH:$e++,ATTRIB:$e++,ATTRIB_NAME:$e++,ATTRIB_NAME_SAW_WHITE:$e++,ATTRIB_VALUE:$e++,ATTRIB_VALUE_QUOTED:$e++,ATTRIB_VALUE_CLOSED:$e++,ATTRIB_VALUE_UNQUOTED:$e++,ATTRIB_VALUE_ENTITY_Q:$e++,ATTRIB_VALUE_ENTITY_U:$e++,CLOSE_TAG:$e++,CLOSE_TAG_SAW_WHITE:$e++,SCRIPT:$e++,SCRIPT_ENDING:$e++},ce.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ce.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(ce.ENTITIES).forEach(function(pt){var tt=ce.ENTITIES[pt],Ze=typeof tt=="number"?String.fromCharCode(tt):tt;ce.ENTITIES[pt]=Ze});for(var Ye in ce.STATE)ce.STATE[ce.STATE[Ye]]=Ye;$e=ce.STATE;function at(pt,tt,Ze){pt[tt]&&pt[tt](Ze)}function ut(pt,tt,Ze){pt.textNode&&ht(pt),at(pt,tt,Ze)}function ht(pt){pt.textNode=Ct(pt.opt,pt.textNode),pt.textNode&&at(pt,"ontext",pt.textNode),pt.textNode=""}function Ct(pt,tt){return pt.trim&&(tt=tt.trim()),pt.normalize&&(tt=tt.replace(/\s+/g," ")),tt}function et(pt,tt){return ht(pt),pt.trackPosition&&(tt+=`
|
|
|
Line: `+pt.line+`
|
|
|
Column: `+pt.column+`
|
|
|
Char: `+pt.c),tt=new Error(tt),pt.error=tt,at(pt,"onerror",tt),pt}function it(pt){return pt.sawRoot&&!pt.closedRoot&&St(pt,"Unclosed root tag"),pt.state!==$e.BEGIN&&pt.state!==$e.BEGIN_WHITESPACE&&pt.state!==$e.TEXT&&et(pt,"Unexpected end"),ht(pt),pt.c="",pt.closed=!0,at(pt,"onend"),Ee.call(pt,pt.strict,pt.opt),pt}function St(pt,tt){if(typeof pt!="object"||!(pt instanceof Ee))throw new Error("bad call to strictFail");pt.strict&&et(pt,tt)}function bt(pt){pt.strict||(pt.tagName=pt.tagName[pt.looseCase]());var tt=pt.tags[pt.tags.length-1]||pt,Ze=pt.tag={name:pt.tagName,attributes:{}};pt.opt.xmlns&&(Ze.ns=tt.ns),pt.attribList.length=0,ut(pt,"onopentagstart",Ze)}function Pt(pt,tt){var Ze=pt.indexOf(":"),we=Ze<0?["",pt]:pt.split(":"),be=we[0],Ke=we[1];return tt&&pt==="xmlns"&&(be="xmlns",Ke=""),{prefix:be,local:Ke}}function gt(pt){if(pt.strict||(pt.attribName=pt.attribName[pt.looseCase]()),pt.attribList.indexOf(pt.attribName)!==-1||pt.tag.attributes.hasOwnProperty(pt.attribName)){pt.attribName=pt.attribValue="";return}if(pt.opt.xmlns){var tt=Pt(pt.attribName,!0),Ze=tt.prefix,we=tt.local;if(Ze==="xmlns")if(we==="xml"&&pt.attribValue!==le)St(pt,"xml: prefix must be bound to "+le+`
|
|
|
Actual: `+pt.attribValue);else if(we==="xmlns"&&pt.attribValue!==ue)St(pt,"xmlns: prefix must be bound to "+ue+`
|
|
|
Actual: `+pt.attribValue);else{var be=pt.tag,Ke=pt.tags[pt.tags.length-1]||pt;be.ns===Ke.ns&&(be.ns=Object.create(Ke.ns)),be.ns[we]=pt.attribValue}pt.attribList.push([pt.attribName,pt.attribValue])}else pt.tag.attributes[pt.attribName]=pt.attribValue,ut(pt,"onattribute",{name:pt.attribName,value:pt.attribValue});pt.attribName=pt.attribValue=""}function dt(pt,tt){if(pt.opt.xmlns){var Ze=pt.tag,we=Pt(pt.tagName);Ze.prefix=we.prefix,Ze.local=we.local,Ze.uri=Ze.ns[we.prefix]||"",Ze.prefix&&!Ze.uri&&(St(pt,"Unbound namespace prefix: "+JSON.stringify(pt.tagName)),Ze.uri=we.prefix);var be=pt.tags[pt.tags.length-1]||pt;Ze.ns&&be.ns!==Ze.ns&&Object.keys(Ze.ns).forEach(function(Mt){ut(pt,"onopennamespace",{prefix:Mt,uri:Ze.ns[Mt]})});for(var Ke=0,Xe=pt.attribList.length;Ke<Xe;Ke++){var Oe=pt.attribList[Ke],Ue=Oe[0],He=Oe[1],Ve=Pt(Ue,!0),Je=Ve.prefix,ct=Ve.local,yt=Je===""?"":Ze.ns[Je]||"",ft={name:Ue,value:He,prefix:Je,local:ct,uri:yt};Je&&Je!=="xmlns"&&!yt&&(St(pt,"Unbound namespace prefix: "+JSON.stringify(Je)),ft.uri=Je),pt.tag.attributes[Ue]=ft,ut(pt,"onattribute",ft)}pt.attribList.length=0}pt.tag.isSelfClosing=!!tt,pt.sawRoot=!0,pt.tags.push(pt.tag),ut(pt,"onopentag",pt.tag),tt||(!pt.noscript&&pt.tagName.toLowerCase()==="script"?pt.state=$e.SCRIPT:pt.state=$e.TEXT,pt.tag=null,pt.tagName=""),pt.attribName=pt.attribValue="",pt.attribList.length=0}function mt(pt){if(!pt.tagName){St(pt,"Weird empty close tag."),pt.textNode+="</>",pt.state=$e.TEXT;return}if(pt.script){if(pt.tagName!=="script"){pt.script+="</"+pt.tagName+">",pt.tagName="",pt.state=$e.SCRIPT;return}ut(pt,"onscript",pt.script),pt.script=""}var tt=pt.tags.length,Ze=pt.tagName;pt.strict||(Ze=Ze[pt.looseCase]());for(var we=Ze;tt--;){var be=pt.tags[tt];if(be.name!==we)St(pt,"Unexpected close tag");else break}if(tt<0){St(pt,"Unmatched closing tag: "+pt.tagName),pt.textNode+="</"+pt.tagName+">",pt.state=$e.TEXT;return}pt.tagName=Ze;for(var Ke=pt.tags.length;Ke-- >tt;){var Xe=pt.tag=pt.tags.pop();pt.tagName=pt.tag.name,ut(pt,"onclosetag",pt.tagName);var Oe={};for(var Ue in Xe.ns)Oe[Ue]=Xe.ns[Ue];var He=pt.tags[pt.tags.length-1]||pt;pt.opt.xmlns&&Xe.ns!==He.ns&&Object.keys(Xe.ns).forEach(function(Ve){var Je=Xe.ns[Ve];ut(pt,"onclosenamespace",{prefix:Ve,uri:Je})})}tt===0&&(pt.closedRoot=!0),pt.tagName=pt.attribValue=pt.attribName="",pt.attribList.length=0,pt.state=$e.TEXT}function kt(pt){var tt=pt.entity,Ze=tt.toLowerCase(),we,be="";return pt.ENTITIES[tt]?pt.ENTITIES[tt]:pt.ENTITIES[Ze]?pt.ENTITIES[Ze]:(tt=Ze,tt.charAt(0)==="#"&&(tt.charAt(1)==="x"?(tt=tt.slice(2),we=parseInt(tt,16),be=we.toString(16)):(tt=tt.slice(1),we=parseInt(tt,10),be=we.toString(10))),tt=tt.replace(/^0+/,""),isNaN(we)||be.toLowerCase()!==tt?(St(pt,"Invalid character entity"),"&"+pt.entity+";"):String.fromCodePoint(we))}function Et(pt,tt){tt==="<"?(pt.state=$e.OPEN_WAKA,pt.startTagPosition=pt.position):je(tt)||(St(pt,"Non-whitespace before first tag."),pt.textNode=tt,pt.state=$e.TEXT)}function Ut(pt,tt){var Ze="";return tt<pt.length&&(Ze=pt.charAt(tt)),Ze}function wt(pt){var tt=this;if(this.error)throw this.error;if(tt.closed)return et(tt,"Cannot write after close. Assign an onready handler.");if(pt===null)return it(tt);typeof pt=="object"&&(pt=pt.toString());for(var Ze=0,we="";we=Ut(pt,Ze++),tt.c=we,!!we;)switch(tt.trackPosition&&(tt.position++,we===`
|
|
|
`?(tt.line++,tt.column=0):tt.column++),tt.state){case $e.BEGIN:if(tt.state=$e.BEGIN_WHITESPACE,we==="\uFEFF")continue;Et(tt,we);continue;case $e.BEGIN_WHITESPACE:Et(tt,we);continue;case $e.TEXT:if(tt.sawRoot&&!tt.closedRoot){for(var be=Ze-1;we&&we!=="<"&&we!=="&";)we=Ut(pt,Ze++),we&&tt.trackPosition&&(tt.position++,we===`
|
|
|
`?(tt.line++,tt.column=0):tt.column++);tt.textNode+=pt.substring(be,Ze-1)}we==="<"&&!(tt.sawRoot&&tt.closedRoot&&!tt.strict)?(tt.state=$e.OPEN_WAKA,tt.startTagPosition=tt.position):(!je(we)&&(!tt.sawRoot||tt.closedRoot)&&St(tt,"Text data outside of root node."),we==="&"?tt.state=$e.TEXT_ENTITY:tt.textNode+=we);continue;case $e.SCRIPT:we==="<"?tt.state=$e.SCRIPT_ENDING:tt.script+=we;continue;case $e.SCRIPT_ENDING:we==="/"?tt.state=$e.CLOSE_TAG:(tt.script+="<"+we,tt.state=$e.SCRIPT);continue;case $e.OPEN_WAKA:if(we==="!")tt.state=$e.SGML_DECL,tt.sgmlDecl="";else if(!je(we))if(ze(Te,we))tt.state=$e.OPEN_TAG,tt.tagName=we;else if(we==="/")tt.state=$e.CLOSE_TAG,tt.tagName="";else if(we==="?")tt.state=$e.PROC_INST,tt.procInstName=tt.procInstBody="";else{if(St(tt,"Unencoded <"),tt.startTagPosition+1<tt.position){var Ke=tt.position-tt.startTagPosition;we=new Array(Ke).join(" ")+we}tt.textNode+="<"+we,tt.state=$e.TEXT}continue;case $e.SGML_DECL:(tt.sgmlDecl+we).toUpperCase()===ae?(ut(tt,"onopencdata"),tt.state=$e.CDATA,tt.sgmlDecl="",tt.cdata=""):tt.sgmlDecl+we==="--"?(tt.state=$e.COMMENT,tt.comment="",tt.sgmlDecl=""):(tt.sgmlDecl+we).toUpperCase()===re?(tt.state=$e.DOCTYPE,(tt.doctype||tt.sawRoot)&&St(tt,"Inappropriately located doctype declaration"),tt.doctype="",tt.sgmlDecl=""):we===">"?(ut(tt,"onsgmldeclaration",tt.sgmlDecl),tt.sgmlDecl="",tt.state=$e.TEXT):(Ne(we)&&(tt.state=$e.SGML_DECL_QUOTED),tt.sgmlDecl+=we);continue;case $e.SGML_DECL_QUOTED:we===tt.q&&(tt.state=$e.SGML_DECL,tt.q=""),tt.sgmlDecl+=we;continue;case $e.DOCTYPE:we===">"?(tt.state=$e.TEXT,ut(tt,"ondoctype",tt.doctype),tt.doctype=!0):(tt.doctype+=we,we==="["?tt.state=$e.DOCTYPE_DTD:Ne(we)&&(tt.state=$e.DOCTYPE_QUOTED,tt.q=we));continue;case $e.DOCTYPE_QUOTED:tt.doctype+=we,we===tt.q&&(tt.q="",tt.state=$e.DOCTYPE);continue;case $e.DOCTYPE_DTD:tt.doctype+=we,we==="]"?tt.state=$e.DOCTYPE:Ne(we)&&(tt.state=$e.DOCTYPE_DTD_QUOTED,tt.q=we);continue;case $e.DOCTYPE_DTD_QUOTED:tt.doctype+=we,we===tt.q&&(tt.state=$e.DOCTYPE_DTD,tt.q="");continue;case $e.COMMENT:we==="-"?tt.state=$e.COMMENT_ENDING:tt.comment+=we;continue;case $e.COMMENT_ENDING:we==="-"?(tt.state=$e.COMMENT_ENDED,tt.comment=Ct(tt.opt,tt.comment),tt.comment&&ut(tt,"oncomment",tt.comment),tt.comment=""):(tt.comment+="-"+we,tt.state=$e.COMMENT);continue;case $e.COMMENT_ENDED:we!==">"?(St(tt,"Malformed comment"),tt.comment+="--"+we,tt.state=$e.COMMENT):tt.state=$e.TEXT;continue;case $e.CDATA:we==="]"?tt.state=$e.CDATA_ENDING:tt.cdata+=we;continue;case $e.CDATA_ENDING:we==="]"?tt.state=$e.CDATA_ENDING_2:(tt.cdata+="]"+we,tt.state=$e.CDATA);continue;case $e.CDATA_ENDING_2:we===">"?(tt.cdata&&ut(tt,"oncdata",tt.cdata),ut(tt,"onclosecdata"),tt.cdata="",tt.state=$e.TEXT):we==="]"?tt.cdata+="]":(tt.cdata+="]]"+we,tt.state=$e.CDATA);continue;case $e.PROC_INST:we==="?"?tt.state=$e.PROC_INST_ENDING:je(we)?tt.state=$e.PROC_INST_BODY:tt.procInstName+=we;continue;case $e.PROC_INST_BODY:if(!tt.procInstBody&&je(we))continue;we==="?"?tt.state=$e.PROC_INST_ENDING:tt.procInstBody+=we;continue;case $e.PROC_INST_ENDING:we===">"?(ut(tt,"onprocessinginstruction",{name:tt.procInstName,body:tt.procInstBody}),tt.procInstName=tt.procInstBody="",tt.state=$e.TEXT):(tt.procInstBody+="?"+we,tt.state=$e.PROC_INST_BODY);continue;case $e.OPEN_TAG:ze(Ce,we)?tt.tagName+=we:(bt(tt),we===">"?dt(tt):we==="/"?tt.state=$e.OPEN_TAG_SLASH:(je(we)||St(tt,"Invalid character in tag name"),tt.state=$e.ATTRIB));continue;case $e.OPEN_TAG_SLASH:we===">"?(dt(tt,!0),mt(tt)):(St(tt,"Forward-slash in opening tag not followed by >"),tt.state=$e.ATTRIB);continue;case $e.ATTRIB:if(je(we))continue;we===">"?dt(tt):we==="/"?tt.state=$e.OPEN_TAG_SLASH:ze(Te,we)?(tt.attribName=we,tt.attribValue="",tt.state=$e.ATTRIB_NAME):St(tt,"Invalid attribute name");continue;case $e.ATTRIB_NAME:we==="="?tt.state=$e.ATTRIB_VALUE:we===">"?(St(tt,"Attribute without value"),tt.attribValue=tt.attribName,gt(tt),dt(tt)):je(we)?tt.state=$e.ATTRIB_NAME_SAW_WHITE:ze(Ce,we)?tt.attribName+=we:St(tt,"Invalid attribute name");continue;case $e.ATTRIB_NAME_SAW_WHITE:if(we==="=")tt.state=$e.ATTRIB_VALUE;else{if(je(we))continue;St(tt,"Attribute without value"),tt.tag.attributes[tt.attribName]="",tt.attribValue="",ut(tt,"onattribute",{name:tt.attribName,value:""}),tt.attribName="",we===">"?dt(tt):ze(Te,we)?(tt.attribName=we,tt.state=$e.ATTRIB_NAME):(St(tt,"Invalid attribute name"),tt.state=$e.ATTRIB)}continue;case $e.ATTRIB_VALUE:if(je(we))continue;Ne(we)?(tt.q=we,tt.state=$e.ATTRIB_VALUE_QUOTED):(St(tt,"Unquoted attribute value"),tt.state=$e.ATTRIB_VALUE_UNQUOTED,tt.attribValue=we);continue;case $e.ATTRIB_VALUE_QUOTED:if(we!==tt.q){we==="&"?tt.state=$e.ATTRIB_VALUE_ENTITY_Q:tt.attribValue+=we;continue}gt(tt),tt.q="",tt.state=$e.ATTRIB_VALUE_CLOSED;continue;case $e.ATTRIB_VALUE_CLOSED:je(we)?tt.state=$e.ATTRIB:we===">"?dt(tt):we==="/"?tt.state=$e.OPEN_TAG_SLASH:ze(Te,we)?(St(tt,"No whitespace between attributes"),tt.attribName=we,tt.attribValue="",tt.state=$e.ATTRIB_NAME):St(tt,"Invalid attribute name");continue;case $e.ATTRIB_VALUE_UNQUOTED:if(!Be(we)){we==="&"?tt.state=$e.ATTRIB_VALUE_ENTITY_U:tt.attribValue+=we;continue}gt(tt),we===">"?dt(tt):tt.state=$e.ATTRIB;continue;case $e.CLOSE_TAG:if(tt.tagName)we===">"?mt(tt):ze(Ce,we)?tt.tagName+=we:tt.script?(tt.script+="</"+tt.tagName,tt.tagName="",tt.state=$e.SCRIPT):(je(we)||St(tt,"Invalid tagname in closing tag"),tt.state=$e.CLOSE_TAG_SAW_WHITE);else{if(je(we))continue;Qe(Te,we)?tt.script?(tt.script+="</"+we,tt.state=$e.SCRIPT):St(tt,"Invalid tagname in closing tag."):tt.tagName=we}continue;case $e.CLOSE_TAG_SAW_WHITE:if(je(we))continue;we===">"?mt(tt):St(tt,"Invalid characters in closing tag");continue;case $e.TEXT_ENTITY:case $e.ATTRIB_VALUE_ENTITY_Q:case $e.ATTRIB_VALUE_ENTITY_U:var Xe,Oe;switch(tt.state){case $e.TEXT_ENTITY:Xe=$e.TEXT,Oe="textNode";break;case $e.ATTRIB_VALUE_ENTITY_Q:Xe=$e.ATTRIB_VALUE_QUOTED,Oe="attribValue";break;case $e.ATTRIB_VALUE_ENTITY_U:Xe=$e.ATTRIB_VALUE_UNQUOTED,Oe="attribValue";break}we===";"?(tt[Oe]+=kt(tt),tt.entity="",tt.state=Xe):ze(tt.entity.length?Ae:Fe,we)?tt.entity+=we:(St(tt,"Invalid character in entity name"),tt[Oe]+="&"+tt.entity+we,tt.entity="",tt.state=Xe);continue;default:throw new Error(tt,"Unknown state: "+tt.state)}return tt.position>=tt.bufferCheckPosition&&ye(tt),tt}String.fromCodePoint||function(){var pt=String.fromCharCode,tt=Math.floor,Ze=function(){var we=16384,be=[],Ke,Xe,Oe=-1,Ue=arguments.length;if(!Ue)return"";for(var He="";++Oe<Ue;){var Ve=Number(arguments[Oe]);if(!isFinite(Ve)||Ve<0||Ve>1114111||tt(Ve)!==Ve)throw RangeError("Invalid code point: "+Ve);Ve<=65535?be.push(Ve):(Ve-=65536,Ke=(Ve>>10)+55296,Xe=Ve%1024+56320,be.push(Ke,Xe)),(Oe+1===Ue||be.length>we)&&(He+=pt.apply(null,be),be.length=0)}return He};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ze,configurable:!0,writable:!0}):String.fromCodePoint=Ze}()})(typeof Ie=="undefined"?this.sax={}:Ie)}).call(this)}).call(this,ie("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(ie,_e,Ie){_e.exports=Pe;var ge=ie("events").EventEmitter,ce=ie("inherits");ce(Pe,ge),Pe.Readable=ie("readable-stream/lib/_stream_readable.js"),Pe.Writable=ie("readable-stream/lib/_stream_writable.js"),Pe.Duplex=ie("readable-stream/lib/_stream_duplex.js"),Pe.Transform=ie("readable-stream/lib/_stream_transform.js"),Pe.PassThrough=ie("readable-stream/lib/_stream_passthrough.js"),Pe.finished=ie("readable-stream/lib/internal/streams/end-of-stream.js"),Pe.pipeline=ie("readable-stream/lib/internal/streams/pipeline.js"),Pe.Stream=Pe;function Pe(){ge.call(this)}Pe.prototype.pipe=function(Ee,ye){var Me=this;function ve(le){Ee.writable&&Ee.write(le)===!1&&Me.pause&&Me.pause()}Me.on("data",ve);function xe(){Me.readable&&Me.resume&&Me.resume()}Ee.on("drain",xe),!Ee._isStdio&&(!ye||ye.end!==!1)&&(Me.on("end",z),Me.on("close",ee));var fe=!1;function z(){fe||(fe=!0,Ee.end())}function ee(){fe||(fe=!0,typeof Ee.destroy=="function"&&Ee.destroy())}function ae(le){if(re(),ge.listenerCount(this,"error")===0)throw le}Me.on("error",ae),Ee.on("error",ae);function re(){Me.removeListener("data",ve),Ee.removeListener("drain",xe),Me.removeListener("end",z),Me.removeListener("close",ee),Me.removeListener("error",ae),Ee.removeListener("error",ae),Me.removeListener("end",re),Me.removeListener("close",re),Ee.removeListener("close",re)}return Me.on("end",re),Me.on("close",re),Ee.on("close",re),Ee.emit("pipe",Me),Ee}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(ie,_e,Ie){"use strict";function ge(xe,fe){xe.prototype=Object.create(fe.prototype),xe.prototype.constructor=xe,xe.__proto__=fe}var ce={};function Pe(xe,fe,z){z||(z=Error);function ee(re,le,ue){return typeof fe=="string"?fe:fe(re,le,ue)}var ae=function(re){ge(le,re);function le(ue,pe,Te){return re.call(this,ee(ue,pe,Te))||this}return le}(z);ae.prototype.name=z.name,ae.prototype.code=xe,ce[xe]=ae}function Ee(xe,fe){if(Array.isArray(xe)){var z=xe.length;return xe=xe.map(function(ee){return String(ee)}),z>2?"one of ".concat(fe," ").concat(xe.slice(0,z-1).join(", "),", or ")+xe[z-1]:z===2?"one of ".concat(fe," ").concat(xe[0]," or ").concat(xe[1]):"of ".concat(fe," ").concat(xe[0])}else return"of ".concat(fe," ").concat(String(xe))}function ye(xe,fe,z){return xe.substr(!z||z<0?0:+z,fe.length)===fe}function Me(xe,fe,z){return(z===void 0||z>xe.length)&&(z=xe.length),xe.substring(z-fe.length,z)===fe}function ve(xe,fe,z){return typeof z!="number"&&(z=0),z+fe.length>xe.length?!1:xe.indexOf(fe,z)!==-1}Pe("ERR_INVALID_OPT_VALUE",function(xe,fe){return'The value "'+fe+'" is invalid for option "'+xe+'"'},TypeError),Pe("ERR_INVALID_ARG_TYPE",function(xe,fe,z){var ee;typeof fe=="string"&&ye(fe,"not ")?(ee="must not be",fe=fe.replace(/^not /,"")):ee="must be";var ae;if(Me(xe," argument"))ae="The ".concat(xe," ").concat(ee," ").concat(Ee(fe,"type"));else{var re=ve(xe,".")?"property":"argument";ae='The "'.concat(xe,'" ').concat(re," ").concat(ee," ").concat(Ee(fe,"type"))}return ae+=". Received type ".concat(typeof z),ae},TypeError),Pe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Pe("ERR_METHOD_NOT_IMPLEMENTED",function(xe){return"The "+xe+" method is not implemented"}),Pe("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Pe("ERR_STREAM_DESTROYED",function(xe){return"Cannot call "+xe+" after a stream was destroyed"}),Pe("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Pe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Pe("ERR_STREAM_WRITE_AFTER_END","write after end"),Pe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Pe("ERR_UNKNOWN_ENCODING",function(xe){return"Unknown encoding: "+xe},TypeError),Pe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),_e.exports.codes=ce},{}],400:[function(ie,_e,Ie){(function(ge){(function(){"use strict";var ce=Object.keys||function(ee){var ae=[];for(var re in ee)ae.push(re);return ae};_e.exports=xe;var Pe=ie("./_stream_readable"),Ee=ie("./_stream_writable");ie("inherits")(xe,Pe);for(var ye=ce(Ee.prototype),Me=0;Me<ye.length;Me++){var ve=ye[Me];xe.prototype[ve]||(xe.prototype[ve]=Ee.prototype[ve])}function xe(ee){if(!(this instanceof xe))return new xe(ee);Pe.call(this,ee),Ee.call(this,ee),this.allowHalfOpen=!0,ee&&(ee.readable===!1&&(this.readable=!1),ee.writable===!1&&(this.writable=!1),ee.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",fe)))}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function fe(){this._writableState.ended||ge.nextTick(z,this)}function z(ee){ee.end()}Object.defineProperty(xe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ae){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ae,this._writableState.destroyed=ae)}})}).call(this)}).call(this,ie("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(ie,_e,Ie){"use strict";_e.exports=ce;var ge=ie("./_stream_transform");ie("inherits")(ce,ge);function ce(Pe){if(!(this instanceof ce))return new ce(Pe);ge.call(this,Pe)}ce.prototype._transform=function(Pe,Ee,ye){ye(null,Pe)}},{"./_stream_transform":403,inherits:364}],402:[function(ie,_e,Ie){(function(ge,ce){(function(){"use strict";_e.exports=ut;var Pe;ut.ReadableState=at;var Ee=ie("events").EventEmitter,ye=function(Ue,He){return Ue.listeners(He).length},Me=ie("./internal/streams/stream"),ve=ie("buffer").Buffer,xe=(typeof ce!="undefined"?ce:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function fe(Oe){return ve.from(Oe)}function z(Oe){return ve.isBuffer(Oe)||Oe instanceof xe}var ee=ie("util"),ae;ee&&ee.debuglog?ae=ee.debuglog("stream"):ae=function(){};var re=ie("./internal/streams/buffer_list"),le=ie("./internal/streams/destroy"),ue=ie("./internal/streams/state"),pe=ue.getHighWaterMark,Te=ie("../errors").codes,Ce=Te.ERR_INVALID_ARG_TYPE,Fe=Te.ERR_STREAM_PUSH_AFTER_EOF,Ae=Te.ERR_METHOD_NOT_IMPLEMENTED,je=Te.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ne,Be,ze;ie("inherits")(ut,Me);var Qe=le.errorOrDestroy,$e=["error","close","destroy","pause","resume"];function Ye(Oe,Ue,He){if(typeof Oe.prependListener=="function")return Oe.prependListener(Ue,He);!Oe._events||!Oe._events[Ue]?Oe.on(Ue,He):Array.isArray(Oe._events[Ue])?Oe._events[Ue].unshift(He):Oe._events[Ue]=[He,Oe._events[Ue]]}function at(Oe,Ue,He){Pe=Pe||ie("./_stream_duplex"),Oe=Oe||{},typeof He!="boolean"&&(He=Ue instanceof Pe),this.objectMode=!!Oe.objectMode,He&&(this.objectMode=this.objectMode||!!Oe.readableObjectMode),this.highWaterMark=pe(this,Oe,"readableHighWaterMark",He),this.buffer=new re,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=Oe.emitClose!==!1,this.autoDestroy=!!Oe.autoDestroy,this.destroyed=!1,this.defaultEncoding=Oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Oe.encoding&&(Ne||(Ne=ie("string_decoder/").StringDecoder),this.decoder=new Ne(Oe.encoding),this.encoding=Oe.encoding)}function ut(Oe){if(Pe=Pe||ie("./_stream_duplex"),!(this instanceof ut))return new ut(Oe);var Ue=this instanceof Pe;this._readableState=new at(Oe,this,Ue),this.readable=!0,Oe&&(typeof Oe.read=="function"&&(this._read=Oe.read),typeof Oe.destroy=="function"&&(this._destroy=Oe.destroy)),Me.call(this)}Object.defineProperty(ut.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ue){this._readableState&&(this._readableState.destroyed=Ue)}}),ut.prototype.destroy=le.destroy,ut.prototype._undestroy=le.undestroy,ut.prototype._destroy=function(Oe,Ue){Ue(Oe)},ut.prototype.push=function(Oe,Ue){var He=this._readableState,Ve;return He.objectMode?Ve=!0:typeof Oe=="string"&&(Ue=Ue||He.defaultEncoding,Ue!==He.encoding&&(Oe=ve.from(Oe,Ue),Ue=""),Ve=!0),ht(this,Oe,Ue,!1,Ve)},ut.prototype.unshift=function(Oe){return ht(this,Oe,null,!0,!1)};function ht(Oe,Ue,He,Ve,Je){ae("readableAddChunk",Ue);var ct=Oe._readableState;if(Ue===null)ct.reading=!1,Pt(Oe,ct);else{var yt;if(Je||(yt=et(ct,Ue)),yt)Qe(Oe,yt);else if(ct.objectMode||Ue&&Ue.length>0)if(typeof Ue!="string"&&!ct.objectMode&&Object.getPrototypeOf(Ue)!==ve.prototype&&(Ue=fe(Ue)),Ve)ct.endEmitted?Qe(Oe,new je):Ct(Oe,ct,Ue,!0);else if(ct.ended)Qe(Oe,new Fe);else{if(ct.destroyed)return!1;ct.reading=!1,ct.decoder&&!He?(Ue=ct.decoder.write(Ue),ct.objectMode||Ue.length!==0?Ct(Oe,ct,Ue,!1):mt(Oe,ct)):Ct(Oe,ct,Ue,!1)}else Ve||(ct.reading=!1,mt(Oe,ct))}return!ct.ended&&(ct.length<ct.highWaterMark||ct.length===0)}function Ct(Oe,Ue,He,Ve){Ue.flowing&&Ue.length===0&&!Ue.sync?(Ue.awaitDrain=0,Oe.emit("data",He)):(Ue.length+=Ue.objectMode?1:He.length,Ve?Ue.buffer.unshift(He):Ue.buffer.push(He),Ue.needReadable&>(Oe)),mt(Oe,Ue)}function et(Oe,Ue){var He;return!z(Ue)&&typeof Ue!="string"&&Ue!==void 0&&!Oe.objectMode&&(He=new Ce("chunk",["string","Buffer","Uint8Array"],Ue)),He}ut.prototype.isPaused=function(){return this._readableState.flowing===!1},ut.prototype.setEncoding=function(Oe){Ne||(Ne=ie("string_decoder/").StringDecoder);var Ue=new Ne(Oe);this._readableState.decoder=Ue,this._readableState.encoding=this._readableState.decoder.encoding;for(var He=this._readableState.buffer.head,Ve="";He!==null;)Ve+=Ue.write(He.data),He=He.next;return this._readableState.buffer.clear(),Ve!==""&&this._readableState.buffer.push(Ve),this._readableState.length=Ve.length,this};var it=1073741824;function St(Oe){return Oe>=it?Oe=it:(Oe--,Oe|=Oe>>>1,Oe|=Oe>>>2,Oe|=Oe>>>4,Oe|=Oe>>>8,Oe|=Oe>>>16,Oe++),Oe}function bt(Oe,Ue){return Oe<=0||Ue.length===0&&Ue.ended?0:Ue.objectMode?1:Oe!==Oe?Ue.flowing&&Ue.length?Ue.buffer.head.data.length:Ue.length:(Oe>Ue.highWaterMark&&(Ue.highWaterMark=St(Oe)),Oe<=Ue.length?Oe:Ue.ended?Ue.length:(Ue.needReadable=!0,0))}ut.prototype.read=function(Oe){ae("read",Oe),Oe=parseInt(Oe,10);var Ue=this._readableState,He=Oe;if(Oe!==0&&(Ue.emittedReadable=!1),Oe===0&&Ue.needReadable&&((Ue.highWaterMark!==0?Ue.length>=Ue.highWaterMark:Ue.length>0)||Ue.ended))return ae("read: emitReadable",Ue.length,Ue.ended),Ue.length===0&&Ue.ended?be(this):gt(this),null;if(Oe=bt(Oe,Ue),Oe===0&&Ue.ended)return Ue.length===0&&be(this),null;var Ve=Ue.needReadable;ae("need readable",Ve),(Ue.length===0||Ue.length-Oe<Ue.highWaterMark)&&(Ve=!0,ae("length less than watermark",Ve)),Ue.ended||Ue.reading?(Ve=!1,ae("reading or ended",Ve)):Ve&&(ae("do read"),Ue.reading=!0,Ue.sync=!0,Ue.length===0&&(Ue.needReadable=!0),this._read(Ue.highWaterMark),Ue.sync=!1,Ue.reading||(Oe=bt(He,Ue)));var Je;return Oe>0?Je=we(Oe,Ue):Je=null,Je===null?(Ue.needReadable=Ue.length<=Ue.highWaterMark,Oe=0):(Ue.length-=Oe,Ue.awaitDrain=0),Ue.length===0&&(Ue.ended||(Ue.needReadable=!0),He!==Oe&&Ue.ended&&be(this)),Je!==null&&this.emit("data",Je),Je};function Pt(Oe,Ue){if(ae("onEofChunk"),!Ue.ended){if(Ue.decoder){var He=Ue.decoder.end();He&&He.length&&(Ue.buffer.push(He),Ue.length+=Ue.objectMode?1:He.length)}Ue.ended=!0,Ue.sync?gt(Oe):(Ue.needReadable=!1,Ue.emittedReadable||(Ue.emittedReadable=!0,dt(Oe)))}}function gt(Oe){var Ue=Oe._readableState;ae("emitReadable",Ue.needReadable,Ue.emittedReadable),Ue.needReadable=!1,Ue.emittedReadable||(ae("emitReadable",Ue.flowing),Ue.emittedReadable=!0,ge.nextTick(dt,Oe))}function dt(Oe){var Ue=Oe._readableState;ae("emitReadable_",Ue.destroyed,Ue.length,Ue.ended),!Ue.destroyed&&(Ue.length||Ue.ended)&&(Oe.emit("readable"),Ue.emittedReadable=!1),Ue.needReadable=!Ue.flowing&&!Ue.ended&&Ue.length<=Ue.highWaterMark,Ze(Oe)}function mt(Oe,Ue){Ue.readingMore||(Ue.readingMore=!0,ge.nextTick(kt,Oe,Ue))}function kt(Oe,Ue){for(;!Ue.reading&&!Ue.ended&&(Ue.length<Ue.highWaterMark||Ue.flowing&&Ue.length===0);){var He=Ue.length;if(ae("maybeReadMore read 0"),Oe.read(0),He===Ue.length)break}Ue.readingMore=!1}ut.prototype._read=function(Oe){Qe(this,new Ae("_read()"))},ut.prototype.pipe=function(Oe,Ue){var He=this,Ve=this._readableState;switch(Ve.pipesCount){case 0:Ve.pipes=Oe;break;case 1:Ve.pipes=[Ve.pipes,Oe];break;default:Ve.pipes.push(Oe);break}Ve.pipesCount+=1,ae("pipe count=%d opts=%j",Ve.pipesCount,Ue);var Je=(!Ue||Ue.end!==!1)&&Oe!==ge.stdout&&Oe!==ge.stderr,ct=Je?ft:Dt;Ve.endEmitted?ge.nextTick(ct):He.once("end",ct),Oe.on("unpipe",yt);function yt(qt,sn){ae("onunpipe"),qt===He&&sn&&sn.hasUnpiped===!1&&(sn.hasUnpiped=!0,Vt())}function ft(){ae("onend"),Oe.end()}var Mt=Et(He);Oe.on("drain",Mt);var Jt=!1;function Vt(){ae("cleanup"),Oe.removeListener("close",tn),Oe.removeListener("finish",It),Oe.removeListener("drain",Mt),Oe.removeListener("error",Ht),Oe.removeListener("unpipe",yt),He.removeListener("end",ft),He.removeListener("end",Dt),He.removeListener("data",Kt),Jt=!0,Ve.awaitDrain&&(!Oe._writableState||Oe._writableState.needDrain)&&Mt()}He.on("data",Kt);function Kt(qt){ae("ondata");var sn=Oe.write(qt);ae("dest.write",sn),sn===!1&&((Ve.pipesCount===1&&Ve.pipes===Oe||Ve.pipesCount>1&&Xe(Ve.pipes,Oe)!==-1)&&!Jt&&(ae("false write response, pause",Ve.awaitDrain),Ve.awaitDrain++),He.pause())}function Ht(qt){ae("onerror",qt),Dt(),Oe.removeListener("error",Ht),ye(Oe,"error")===0&&Qe(Oe,qt)}Ye(Oe,"error",Ht);function tn(){Oe.removeListener("finish",It),Dt()}Oe.once("close",tn);function It(){ae("onfinish"),Oe.removeListener("close",tn),Dt()}Oe.once("finish",It);function Dt(){ae("unpipe"),He.unpipe(Oe)}return Oe.emit("pipe",He),Ve.flowing||(ae("pipe resume"),He.resume()),Oe};function Et(Oe){return function(){var He=Oe._readableState;ae("pipeOnDrain",He.awaitDrain),He.awaitDrain&&He.awaitDrain--,He.awaitDrain===0&&ye(Oe,"data")&&(He.flowing=!0,Ze(Oe))}}ut.prototype.unpipe=function(Oe){var Ue=this._readableState,He={hasUnpiped:!1};if(Ue.pipesCount===0)return this;if(Ue.pipesCount===1)return Oe&&Oe!==Ue.pipes?this:(Oe||(Oe=Ue.pipes),Ue.pipes=null,Ue.pipesCount=0,Ue.flowing=!1,Oe&&Oe.emit("unpipe",this,He),this);if(!Oe){var Ve=Ue.pipes,Je=Ue.pipesCount;Ue.pipes=null,Ue.pipesCount=0,Ue.flowing=!1;for(var ct=0;ct<Je;ct++)Ve[ct].emit("unpipe",this,{hasUnpiped:!1});return this}var yt=Xe(Ue.pipes,Oe);return yt===-1?this:(Ue.pipes.splice(yt,1),Ue.pipesCount-=1,Ue.pipesCount===1&&(Ue.pipes=Ue.pipes[0]),Oe.emit("unpipe",this,He),this)},ut.prototype.on=function(Oe,Ue){var He=Me.prototype.on.call(this,Oe,Ue),Ve=this._readableState;return Oe==="data"?(Ve.readableListening=this.listenerCount("readable")>0,Ve.flowing!==!1&&this.resume()):Oe==="readable"&&!Ve.endEmitted&&!Ve.readableListening&&(Ve.readableListening=Ve.needReadable=!0,Ve.flowing=!1,Ve.emittedReadable=!1,ae("on readable",Ve.length,Ve.reading),Ve.length?gt(this):Ve.reading||ge.nextTick(wt,this)),He},ut.prototype.addListener=ut.prototype.on,ut.prototype.removeListener=function(Oe,Ue){var He=Me.prototype.removeListener.call(this,Oe,Ue);return Oe==="readable"&&ge.nextTick(Ut,this),He},ut.prototype.removeAllListeners=function(Oe){var Ue=Me.prototype.removeAllListeners.apply(this,arguments);return(Oe==="readable"||Oe===void 0)&&ge.nextTick(Ut,this),Ue};function Ut(Oe){var Ue=Oe._readableState;Ue.readableListening=Oe.listenerCount("readable")>0,Ue.resumeScheduled&&!Ue.paused?Ue.flowing=!0:Oe.listenerCount("data")>0&&Oe.resume()}function wt(Oe){ae("readable nexttick read 0"),Oe.read(0)}ut.prototype.resume=function(){var Oe=this._readableState;return Oe.flowing||(ae("resume"),Oe.flowing=!Oe.readableListening,pt(this,Oe)),Oe.paused=!1,this};function pt(Oe,Ue){Ue.resumeScheduled||(Ue.resumeScheduled=!0,ge.nextTick(tt,Oe,Ue))}function tt(Oe,Ue){ae("resume",Ue.reading),Ue.reading||Oe.read(0),Ue.resumeScheduled=!1,Oe.emit("resume"),Ze(Oe),Ue.flowing&&!Ue.reading&&Oe.read(0)}ut.prototype.pause=function(){return ae("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ae("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ze(Oe){var Ue=Oe._readableState;for(ae("flow",Ue.flowing);Ue.flowing&&Oe.read()!==null;);}ut.prototype.wrap=function(Oe){var Ue=this,He=this._readableState,Ve=!1;Oe.on("end",function(){if(ae("wrapped end"),He.decoder&&!He.ended){var yt=He.decoder.end();yt&&yt.length&&Ue.push(yt)}Ue.push(null)}),Oe.on("data",function(yt){if(ae("wrapped data"),He.decoder&&(yt=He.decoder.write(yt)),!(He.objectMode&&yt==null)&&!(!He.objectMode&&(!yt||!yt.length))){var ft=Ue.push(yt);ft||(Ve=!0,Oe.pause())}});for(var Je in Oe)this[Je]===void 0&&typeof Oe[Je]=="function"&&(this[Je]=function(ft){return function(){return Oe[ft].apply(Oe,arguments)}}(Je));for(var ct=0;ct<$e.length;ct++)Oe.on($e[ct],this.emit.bind(this,$e[ct]));return this._read=function(yt){ae("wrapped _read",yt),Ve&&(Ve=!1,Oe.resume())},this},typeof Symbol=="function"&&(ut.prototype[Symbol.asyncIterator]=function(){return Be===void 0&&(Be=ie("./internal/streams/async_iterator")),Be(this)}),Object.defineProperty(ut.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ut.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ut.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ue){this._readableState&&(this._readableState.flowing=Ue)}}),ut._fromList=we,Object.defineProperty(ut.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function we(Oe,Ue){if(Ue.length===0)return null;var He;return Ue.objectMode?He=Ue.buffer.shift():!Oe||Oe>=Ue.length?(Ue.decoder?He=Ue.buffer.join(""):Ue.buffer.length===1?He=Ue.buffer.first():He=Ue.buffer.concat(Ue.length),Ue.buffer.clear()):He=Ue.buffer.consume(Oe,Ue.decoder),He}function be(Oe){var Ue=Oe._readableState;ae("endReadable",Ue.endEmitted),Ue.endEmitted||(Ue.ended=!0,ge.nextTick(Ke,Ue,Oe))}function Ke(Oe,Ue){if(ae("endReadableNT",Oe.endEmitted,Oe.length),!Oe.endEmitted&&Oe.length===0&&(Oe.endEmitted=!0,Ue.readable=!1,Ue.emit("end"),Oe.autoDestroy)){var He=Ue._writableState;(!He||He.autoDestroy&&He.finished)&&Ue.destroy()}}typeof Symbol=="function"&&(ut.from=function(Oe,Ue){return ze===void 0&&(ze=ie("./internal/streams/from")),ze(ut,Oe,Ue)});function Xe(Oe,Ue){for(var He=0,Ve=Oe.length;He<Ve;He++)if(Oe[He]===Ue)return He;return-1}}).call(this)}).call(this,ie("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(ie,_e,Ie){"use strict";_e.exports=xe;var ge=ie("../errors").codes,ce=ge.ERR_METHOD_NOT_IMPLEMENTED,Pe=ge.ERR_MULTIPLE_CALLBACK,Ee=ge.ERR_TRANSFORM_ALREADY_TRANSFORMING,ye=ge.ERR_TRANSFORM_WITH_LENGTH_0,Me=ie("./_stream_duplex");ie("inherits")(xe,Me);function ve(ee,ae){var re=this._transformState;re.transforming=!1;var le=re.writecb;if(le===null)return this.emit("error",new Pe);re.writechunk=null,re.writecb=null,ae!=null&&this.push(ae),le(ee);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function xe(ee){if(!(this instanceof xe))return new xe(ee);Me.call(this,ee),this._transformState={afterTransform:ve.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ee&&(typeof ee.transform=="function"&&(this._transform=ee.transform),typeof ee.flush=="function"&&(this._flush=ee.flush)),this.on("prefinish",fe)}function fe(){var ee=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(ae,re){z(ee,ae,re)}):z(this,null,null)}xe.prototype.push=function(ee,ae){return this._transformState.needTransform=!1,Me.prototype.push.call(this,ee,ae)},xe.prototype._transform=function(ee,ae,re){re(new ce("_transform()"))},xe.prototype._write=function(ee,ae,re){var le=this._transformState;if(le.writecb=re,le.writechunk=ee,le.writeencoding=ae,!le.transforming){var ue=this._readableState;(le.needTransform||ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}},xe.prototype._read=function(ee){var ae=this._transformState;ae.writechunk!==null&&!ae.transforming?(ae.transforming=!0,this._transform(ae.writechunk,ae.writeencoding,ae.afterTransform)):ae.needTransform=!0},xe.prototype._destroy=function(ee,ae){Me.prototype._destroy.call(this,ee,function(re){ae(re)})};function z(ee,ae,re){if(ae)return ee.emit("error",ae);if(re!=null&&ee.push(re),ee._writableState.length)throw new ye;if(ee._transformState.transforming)throw new Ee;return ee.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(ie,_e,Ie){(function(ge,ce){(function(){"use strict";_e.exports=at;function Pe(Ze,we,be){this.chunk=Ze,this.encoding=we,this.callback=be,this.next=null}function Ee(Ze){var we=this;this.next=null,this.entry=null,this.finish=function(){tt(we,Ze)}}var ye;at.WritableState=$e;var Me={deprecate:ie("util-deprecate")},ve=ie("./internal/streams/stream"),xe=ie("buffer").Buffer,fe=(typeof ce!="undefined"?ce:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function z(Ze){return xe.from(Ze)}function ee(Ze){return xe.isBuffer(Ze)||Ze instanceof fe}var ae=ie("./internal/streams/destroy"),re=ie("./internal/streams/state"),le=re.getHighWaterMark,ue=ie("../errors").codes,pe=ue.ERR_INVALID_ARG_TYPE,Te=ue.ERR_METHOD_NOT_IMPLEMENTED,Ce=ue.ERR_MULTIPLE_CALLBACK,Fe=ue.ERR_STREAM_CANNOT_PIPE,Ae=ue.ERR_STREAM_DESTROYED,je=ue.ERR_STREAM_NULL_VALUES,Ne=ue.ERR_STREAM_WRITE_AFTER_END,Be=ue.ERR_UNKNOWN_ENCODING,ze=ae.errorOrDestroy;ie("inherits")(at,ve);function Qe(){}function $e(Ze,we,be){ye=ye||ie("./_stream_duplex"),Ze=Ze||{},typeof be!="boolean"&&(be=we instanceof ye),this.objectMode=!!Ze.objectMode,be&&(this.objectMode=this.objectMode||!!Ze.writableObjectMode),this.highWaterMark=le(this,Ze,"writableHighWaterMark",be),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ke=Ze.decodeStrings===!1;this.decodeStrings=!Ke,this.defaultEncoding=Ze.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Xe){Pt(we,Xe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ze.emitClose!==!1,this.autoDestroy=!!Ze.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ee(this)}$e.prototype.getBuffer=function(){for(var we=this.bufferedRequest,be=[];we;)be.push(we),we=we.next;return be},function(){try{Object.defineProperty($e.prototype,"buffer",{get:Me.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ze){}}();var Ye;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ye=Function.prototype[Symbol.hasInstance],Object.defineProperty(at,Symbol.hasInstance,{value:function(we){return Ye.call(this,we)?!0:this!==at?!1:we&&we._writableState instanceof $e}})):Ye=function(we){return we instanceof this};function at(Ze){ye=ye||ie("./_stream_duplex");var we=this instanceof ye;if(!we&&!Ye.call(at,this))return new at(Ze);this._writableState=new $e(Ze,this,we),this.writable=!0,Ze&&(typeof Ze.write=="function"&&(this._write=Ze.write),typeof Ze.writev=="function"&&(this._writev=Ze.writev),typeof Ze.destroy=="function"&&(this._destroy=Ze.destroy),typeof Ze.final=="function"&&(this._final=Ze.final)),ve.call(this)}at.prototype.pipe=function(){ze(this,new Fe)};function ut(Ze,we){var be=new Ne;ze(Ze,be),ge.nextTick(we,be)}function ht(Ze,we,be,Ke){var Xe;return be===null?Xe=new je:typeof be!="string"&&!we.objectMode&&(Xe=new pe("chunk",["string","Buffer"],be)),Xe?(ze(Ze,Xe),ge.nextTick(Ke,Xe),!1):!0}at.prototype.write=function(Ze,we,be){var Ke=this._writableState,Xe=!1,Oe=!Ke.objectMode&&ee(Ze);return Oe&&!xe.isBuffer(Ze)&&(Ze=z(Ze)),typeof we=="function"&&(be=we,we=null),Oe?we="buffer":we||(we=Ke.defaultEncoding),typeof be!="function"&&(be=Qe),Ke.ending?ut(this,be):(Oe||ht(this,Ke,Ze,be))&&(Ke.pendingcb++,Xe=et(this,Ke,Oe,Ze,we,be)),Xe},at.prototype.cork=function(){this._writableState.corked++},at.prototype.uncork=function(){var Ze=this._writableState;Ze.corked&&(Ze.corked--,!Ze.writing&&!Ze.corked&&!Ze.bufferProcessing&&Ze.bufferedRequest&&mt(this,Ze))},at.prototype.setDefaultEncoding=function(we){if(typeof we=="string"&&(we=we.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((we+"").toLowerCase())>-1))throw new Be(we);return this._writableState.defaultEncoding=we,this},Object.defineProperty(at.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ct(Ze,we,be){return!Ze.objectMode&&Ze.decodeStrings!==!1&&typeof we=="string"&&(we=xe.from(we,be)),we}Object.defineProperty(at.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function et(Ze,we,be,Ke,Xe,Oe){if(!be){var Ue=Ct(we,Ke,Xe);Ke!==Ue&&(be=!0,Xe="buffer",Ke=Ue)}var He=we.objectMode?1:Ke.length;we.length+=He;var Ve=we.length<we.highWaterMark;if(Ve||(we.needDrain=!0),we.writing||we.corked){var Je=we.lastBufferedRequest;we.lastBufferedRequest={chunk:Ke,encoding:Xe,isBuf:be,callback:Oe,next:null},Je?Je.next=we.lastBufferedRequest:we.bufferedRequest=we.lastBufferedRequest,we.bufferedRequestCount+=1}else it(Ze,we,!1,He,Ke,Xe,Oe);return Ve}function it(Ze,we,be,Ke,Xe,Oe,Ue){we.writelen=Ke,we.writecb=Ue,we.writing=!0,we.sync=!0,we.destroyed?we.onwrite(new Ae("write")):be?Ze._writev(Xe,we.onwrite):Ze._write(Xe,Oe,we.onwrite),we.sync=!1}function St(Ze,we,be,Ke,Xe){--we.pendingcb,be?(ge.nextTick(Xe,Ke),ge.nextTick(wt,Ze,we),Ze._writableState.errorEmitted=!0,ze(Ze,Ke)):(Xe(Ke),Ze._writableState.errorEmitted=!0,ze(Ze,Ke),wt(Ze,we))}function bt(Ze){Ze.writing=!1,Ze.writecb=null,Ze.length-=Ze.writelen,Ze.writelen=0}function Pt(Ze,we){var be=Ze._writableState,Ke=be.sync,Xe=be.writecb;if(typeof Xe!="function")throw new Ce;if(bt(be),we)St(Ze,be,Ke,we,Xe);else{var Oe=kt(be)||Ze.destroyed;!Oe&&!be.corked&&!be.bufferProcessing&&be.bufferedRequest&&mt(Ze,be),Ke?ge.nextTick(gt,Ze,be,Oe,Xe):gt(Ze,be,Oe,Xe)}}function gt(Ze,we,be,Ke){be||dt(Ze,we),we.pendingcb--,Ke(),wt(Ze,we)}function dt(Ze,we){we.length===0&&we.needDrain&&(we.needDrain=!1,Ze.emit("drain"))}function mt(Ze,we){we.bufferProcessing=!0;var be=we.bufferedRequest;if(Ze._writev&&be&&be.next){var Ke=we.bufferedRequestCount,Xe=new Array(Ke),Oe=we.corkedRequestsFree;Oe.entry=be;for(var Ue=0,He=!0;be;)Xe[Ue]=be,be.isBuf||(He=!1),be=be.next,Ue+=1;Xe.allBuffers=He,it(Ze,we,!0,we.length,Xe,"",Oe.finish),we.pendingcb++,we.lastBufferedRequest=null,Oe.next?(we.corkedRequestsFree=Oe.next,Oe.next=null):we.corkedRequestsFree=new Ee(we),we.bufferedRequestCount=0}else{for(;be;){var Ve=be.chunk,Je=be.encoding,ct=be.callback,yt=we.objectMode?1:Ve.length;if(it(Ze,we,!1,yt,Ve,Je,ct),be=be.next,we.bufferedRequestCount--,we.writing)break}be===null&&(we.lastBufferedRequest=null)}we.bufferedRequest=be,we.bufferProcessing=!1}at.prototype._write=function(Ze,we,be){be(new Te("_write()"))},at.prototype._writev=null,at.prototype.end=function(Ze,we,be){var Ke=this._writableState;return typeof Ze=="function"?(be=Ze,Ze=null,we=null):typeof we=="function"&&(be=we,we=null),Ze!=null&&this.write(Ze,we),Ke.corked&&(Ke.corked=1,this.uncork()),Ke.ending||pt(this,Ke,be),this},Object.defineProperty(at.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function kt(Ze){return Ze.ending&&Ze.length===0&&Ze.bufferedRequest===null&&!Ze.finished&&!Ze.writing}function Et(Ze,we){Ze._final(function(be){we.pendingcb--,be&&ze(Ze,be),we.prefinished=!0,Ze.emit("prefinish"),wt(Ze,we)})}function Ut(Ze,we){!we.prefinished&&!we.finalCalled&&(typeof Ze._final=="function"&&!we.destroyed?(we.pendingcb++,we.finalCalled=!0,ge.nextTick(Et,Ze,we)):(we.prefinished=!0,Ze.emit("prefinish")))}function wt(Ze,we){var be=kt(we);if(be&&(Ut(Ze,we),we.pendingcb===0&&(we.finished=!0,Ze.emit("finish"),we.autoDestroy))){var Ke=Ze._readableState;(!Ke||Ke.autoDestroy&&Ke.endEmitted)&&Ze.destroy()}return be}function pt(Ze,we,be){we.ending=!0,wt(Ze,we),be&&(we.finished?ge.nextTick(be):Ze.once("finish",be)),we.ended=!0,Ze.writable=!1}function tt(Ze,we,be){var Ke=Ze.entry;for(Ze.entry=null;Ke;){var Xe=Ke.callback;we.pendingcb--,Xe(be),Ke=Ke.next}we.corkedRequestsFree.next=Ze}Object.defineProperty(at.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(we){this._writableState&&(this._writableState.destroyed=we)}}),at.prototype.destroy=ae.destroy,at.prototype._undestroy=ae.undestroy,at.prototype._destroy=function(Ze,we){we(Ze)}}).call(this)}).call(this,ie("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(ie,_e,Ie){(function(ge){(function(){"use strict";var ce;function Pe(je,Ne,Be){return Ne=Ee(Ne),Ne in je?Object.defineProperty(je,Ne,{value:Be,enumerable:!0,configurable:!0,writable:!0}):je[Ne]=Be,je}function Ee(je){var Ne=ye(je,"string");return typeof Ne=="symbol"?Ne:String(Ne)}function ye(je,Ne){if(typeof je!="object"||je===null)return je;var Be=je[Symbol.toPrimitive];if(Be!==void 0){var ze=Be.call(je,Ne||"default");if(typeof ze!="object")return ze;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ne==="string"?String:Number)(je)}var Me=ie("./end-of-stream"),ve=Symbol("lastResolve"),xe=Symbol("lastReject"),fe=Symbol("error"),z=Symbol("ended"),ee=Symbol("lastPromise"),ae=Symbol("handlePromise"),re=Symbol("stream");function le(je,Ne){return{value:je,done:Ne}}function ue(je){var Ne=je[ve];if(Ne!==null){var Be=je[re].read();Be!==null&&(je[ee]=null,je[ve]=null,je[xe]=null,Ne(le(Be,!1)))}}function pe(je){ge.nextTick(ue,je)}function Te(je,Ne){return function(Be,ze){je.then(function(){if(Ne[z]){Be(le(void 0,!0));return}Ne[ae](Be,ze)},ze)}}var Ce=Object.getPrototypeOf(function(){}),Fe=Object.setPrototypeOf((ce={get stream(){return this[re]},next:function(){var Ne=this,Be=this[fe];if(Be!==null)return Promise.reject(Be);if(this[z])return Promise.resolve(le(void 0,!0));if(this[re].destroyed)return new Promise(function(Ye,at){ge.nextTick(function(){Ne[fe]?at(Ne[fe]):Ye(le(void 0,!0))})});var ze=this[ee],Qe;if(ze)Qe=new Promise(Te(ze,this));else{var $e=this[re].read();if($e!==null)return Promise.resolve(le($e,!1));Qe=new Promise(this[ae])}return this[ee]=Qe,Qe}},Pe(ce,Symbol.asyncIterator,function(){return this}),Pe(ce,"return",function(){var Ne=this;return new Promise(function(Be,ze){Ne[re].destroy(null,function(Qe){if(Qe){ze(Qe);return}Be(le(void 0,!0))})})}),ce),Ce),Ae=function(Ne){var Be,ze=Object.create(Fe,(Be={},Pe(Be,re,{value:Ne,writable:!0}),Pe(Be,ve,{value:null,writable:!0}),Pe(Be,xe,{value:null,writable:!0}),Pe(Be,fe,{value:null,writable:!0}),Pe(Be,z,{value:Ne._readableState.endEmitted,writable:!0}),Pe(Be,ae,{value:function($e,Ye){var at=ze[re].read();at?(ze[ee]=null,ze[ve]=null,ze[xe]=null,$e(le(at,!1))):(ze[ve]=$e,ze[xe]=Ye)},writable:!0}),Be));return ze[ee]=null,Me(Ne,function(Qe){if(Qe&&Qe.code!=="ERR_STREAM_PREMATURE_CLOSE"){var $e=ze[xe];$e!==null&&(ze[ee]=null,ze[ve]=null,ze[xe]=null,$e(Qe)),ze[fe]=Qe;return}var Ye=ze[ve];Ye!==null&&(ze[ee]=null,ze[ve]=null,ze[xe]=null,Ye(le(void 0,!0))),ze[z]=!0}),Ne.on("readable",pe.bind(null,ze)),ze};_e.exports=Ae}).call(this)}).call(this,ie("_process"))},{"./end-of-stream":408,_process:467}],406:[function(ie,_e,Ie){"use strict";function ge(ue,pe){var Te=Object.keys(ue);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(ue);pe&&(Ce=Ce.filter(function(Fe){return Object.getOwnPropertyDescriptor(ue,Fe).enumerable})),Te.push.apply(Te,Ce)}return Te}function ce(ue){for(var pe=1;pe<arguments.length;pe++){var Te=arguments[pe]!=null?arguments[pe]:{};pe%2?ge(Object(Te),!0).forEach(function(Ce){Pe(ue,Ce,Te[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Te)):ge(Object(Te)).forEach(function(Ce){Object.defineProperty(ue,Ce,Object.getOwnPropertyDescriptor(Te,Ce))})}return ue}function Pe(ue,pe,Te){return pe=ve(pe),pe in ue?Object.defineProperty(ue,pe,{value:Te,enumerable:!0,configurable:!0,writable:!0}):ue[pe]=Te,ue}function Ee(ue,pe){if(!(ue instanceof pe))throw new TypeError("Cannot call a class as a function")}function ye(ue,pe){for(var Te=0;Te<pe.length;Te++){var Ce=pe[Te];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(ue,ve(Ce.key),Ce)}}function Me(ue,pe,Te){return pe&&ye(ue.prototype,pe),Te&&ye(ue,Te),Object.defineProperty(ue,"prototype",{writable:!1}),ue}function ve(ue){var pe=xe(ue,"string");return typeof pe=="symbol"?pe:String(pe)}function xe(ue,pe){if(typeof ue!="object"||ue===null)return ue;var Te=ue[Symbol.toPrimitive];if(Te!==void 0){var Ce=Te.call(ue,pe||"default");if(typeof Ce!="object")return Ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return(pe==="string"?String:Number)(ue)}var fe=ie("buffer"),z=fe.Buffer,ee=ie("util"),ae=ee.inspect,re=ae&&ae.custom||"inspect";function le(ue,pe,Te){z.prototype.copy.call(ue,pe,Te)}_e.exports=function(){function ue(){Ee(this,ue),this.head=null,this.tail=null,this.length=0}return Me(ue,[{key:"push",value:function(Te){var Ce={data:Te,next:null};this.length>0?this.tail.next=Ce:this.head=Ce,this.tail=Ce,++this.length}},{key:"unshift",value:function(Te){var Ce={data:Te,next:this.head};this.length===0&&(this.tail=Ce),this.head=Ce,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Te=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Te}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Te){if(this.length===0)return"";for(var Ce=this.head,Fe=""+Ce.data;Ce=Ce.next;)Fe+=Te+Ce.data;return Fe}},{key:"concat",value:function(Te){if(this.length===0)return z.alloc(0);for(var Ce=z.allocUnsafe(Te>>>0),Fe=this.head,Ae=0;Fe;)le(Fe.data,Ce,Ae),Ae+=Fe.data.length,Fe=Fe.next;return Ce}},{key:"consume",value:function(Te,Ce){var Fe;return Te<this.head.data.length?(Fe=this.head.data.slice(0,Te),this.head.data=this.head.data.slice(Te)):Te===this.head.data.length?Fe=this.shift():Fe=Ce?this._getString(Te):this._getBuffer(Te),Fe}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Te){var Ce=this.head,Fe=1,Ae=Ce.data;for(Te-=Ae.length;Ce=Ce.next;){var je=Ce.data,Ne=Te>je.length?je.length:Te;if(Ne===je.length?Ae+=je:Ae+=je.slice(0,Te),Te-=Ne,Te===0){Ne===je.length?(++Fe,Ce.next?this.head=Ce.next:this.head=this.tail=null):(this.head=Ce,Ce.data=je.slice(Ne));break}++Fe}return this.length-=Fe,Ae}},{key:"_getBuffer",value:function(Te){var Ce=z.allocUnsafe(Te),Fe=this.head,Ae=1;for(Fe.data.copy(Ce),Te-=Fe.data.length;Fe=Fe.next;){var je=Fe.data,Ne=Te>je.length?je.length:Te;if(je.copy(Ce,Ce.length-Te,0,Ne),Te-=Ne,Te===0){Ne===je.length?(++Ae,Fe.next?this.head=Fe.next:this.head=this.tail=null):(this.head=Fe,Fe.data=je.slice(Ne));break}++Ae}return this.length-=Ae,Ce}},{key:re,value:function(Te,Ce){return ae(this,ce(ce({},Ce),{},{depth:0,customInspect:!1}))}}]),ue}()},{buffer:90,util:89}],407:[function(ie,_e,Ie){(function(ge){(function(){"use strict";function ce(xe,fe){var z=this,ee=this._readableState&&this._readableState.destroyed,ae=this._writableState&&this._writableState.destroyed;return ee||ae?(fe?fe(xe):xe&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ge.nextTick(Me,this,xe)):ge.nextTick(Me,this,xe)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(xe||null,function(re){!fe&&re?z._writableState?z._writableState.errorEmitted?ge.nextTick(Ee,z):(z._writableState.errorEmitted=!0,ge.nextTick(Pe,z,re)):ge.nextTick(Pe,z,re):fe?(ge.nextTick(Ee,z),fe(re)):ge.nextTick(Ee,z)}),this)}function Pe(xe,fe){Me(xe,fe),Ee(xe)}function Ee(xe){xe._writableState&&!xe._writableState.emitClose||xe._readableState&&!xe._readableState.emitClose||xe.emit("close")}function ye(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Me(xe,fe){xe.emit("error",fe)}function ve(xe,fe){var z=xe._readableState,ee=xe._writableState;z&&z.autoDestroy||ee&&ee.autoDestroy?xe.destroy(fe):xe.emit("error",fe)}_e.exports={destroy:ce,undestroy:ye,errorOrDestroy:ve}}).call(this)}).call(this,ie("_process"))},{_process:467}],408:[function(ie,_e,Ie){"use strict";var ge=ie("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function ce(Me){var ve=!1;return function(){if(!ve){ve=!0;for(var xe=arguments.length,fe=new Array(xe),z=0;z<xe;z++)fe[z]=arguments[z];Me.apply(this,fe)}}}function Pe(){}function Ee(Me){return Me.setHeader&&typeof Me.abort=="function"}function ye(Me,ve,xe){if(typeof ve=="function")return ye(Me,null,ve);ve||(ve={}),xe=ce(xe||Pe);var fe=ve.readable||ve.readable!==!1&&Me.readable,z=ve.writable||ve.writable!==!1&&Me.writable,ee=function(){Me.writable||re()},ae=Me._writableState&&Me._writableState.finished,re=function(){z=!1,ae=!0,fe||xe.call(Me)},le=Me._readableState&&Me._readableState.endEmitted,ue=function(){fe=!1,le=!0,z||xe.call(Me)},pe=function(Ae){xe.call(Me,Ae)},Te=function(){var Ae;if(fe&&!le)return(!Me._readableState||!Me._readableState.ended)&&(Ae=new ge),xe.call(Me,Ae);if(z&&!ae)return(!Me._writableState||!Me._writableState.ended)&&(Ae=new ge),xe.call(Me,Ae)},Ce=function(){Me.req.on("finish",re)};return Ee(Me)?(Me.on("complete",re),Me.on("abort",Te),Me.req?Ce():Me.on("request",Ce)):z&&!Me._writableState&&(Me.on("end",ee),Me.on("close",ee)),Me.on("end",ue),Me.on("finish",re),ve.error!==!1&&Me.on("error",pe),Me.on("close",Te),function(){Me.removeListener("complete",re),Me.removeListener("abort",Te),Me.removeListener("request",Ce),Me.req&&Me.req.removeListener("finish",re),Me.removeListener("end",ee),Me.removeListener("close",ee),Me.removeListener("finish",re),Me.removeListener("end",ue),Me.removeListener("error",pe),Me.removeListener("close",Te)}}_e.exports=ye},{"../../../errors":399}],409:[function(ie,_e,Ie){_e.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(ie,_e,Ie){"use strict";var ge;function ce(re){var le=!1;return function(){le||(le=!0,re.apply(void 0,arguments))}}var Pe=ie("../../../errors").codes,Ee=Pe.ERR_MISSING_ARGS,ye=Pe.ERR_STREAM_DESTROYED;function Me(re){if(re)throw re}function ve(re){return re.setHeader&&typeof re.abort=="function"}function xe(re,le,ue,pe){pe=ce(pe);var Te=!1;re.on("close",function(){Te=!0}),ge===void 0&&(ge=ie("./end-of-stream")),ge(re,{readable:le,writable:ue},function(Fe){if(Fe)return pe(Fe);Te=!0,pe()});var Ce=!1;return function(Fe){if(!Te&&!Ce){if(Ce=!0,ve(re))return re.abort();if(typeof re.destroy=="function")return re.destroy();pe(Fe||new ye("pipe"))}}}function fe(re){re()}function z(re,le){return re.pipe(le)}function ee(re){return!re.length||typeof re[re.length-1]!="function"?Me:re.pop()}function ae(){for(var re=arguments.length,le=new Array(re),ue=0;ue<re;ue++)le[ue]=arguments[ue];var pe=ee(le);if(Array.isArray(le[0])&&(le=le[0]),le.length<2)throw new Ee("streams");var Te,Ce=le.map(function(Fe,Ae){var je=Ae<le.length-1,Ne=Ae>0;return xe(Fe,je,Ne,function(Be){Te||(Te=Be),Be&&Ce.forEach(fe),!je&&(Ce.forEach(fe),pe(Te))})});return le.reduce(z)}_e.exports=ae},{"../../../errors":399,"./end-of-stream":408}],411:[function(ie,_e,Ie){"use strict";var ge=ie("../../../errors").codes.ERR_INVALID_OPT_VALUE;function ce(Ee,ye,Me){return Ee.highWaterMark!=null?Ee.highWaterMark:ye?Ee[Me]:null}function Pe(Ee,ye,Me,ve){var xe=ce(ye,ve,Me);if(xe!=null){if(!(isFinite(xe)&&Math.floor(xe)===xe)||xe<0){var fe=ve?Me:"highWaterMark";throw new ge(fe,xe)}return Math.floor(xe)}return Ee.objectMode?16:16*1024}_e.exports={getHighWaterMark:Pe}},{"../../../errors":399}],412:[function(ie,_e,Ie){arguments[4][393][0].apply(Ie,arguments)},{dup:393,events:344}],413:[function(ie,_e,Ie){"use strict";var ge=ie("safe-buffer").Buffer,ce=ge.isEncoding||function(Ce){switch(Ce=""+Ce,Ce&&Ce.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Pe(Ce){if(!Ce)return"utf8";for(var Fe;;)switch(Ce){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Ce;default:if(Fe)return;Ce=(""+Ce).toLowerCase(),Fe=!0}}function Ee(Ce){var Fe=Pe(Ce);if(typeof Fe!="string"&&(ge.isEncoding===ce||!ce(Ce)))throw new Error("Unknown encoding: "+Ce);return Fe||Ce}Ie.StringDecoder=ye;function ye(Ce){this.encoding=Ee(Ce);var Fe;switch(this.encoding){case"utf16le":this.text=ae,this.end=re,Fe=4;break;case"utf8":this.fillLast=fe,Fe=4;break;case"base64":this.text=le,this.end=ue,Fe=3;break;default:this.write=pe,this.end=Te;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ge.allocUnsafe(Fe)}ye.prototype.write=function(Ce){if(Ce.length===0)return"";var Fe,Ae;if(this.lastNeed){if(Fe=this.fillLast(Ce),Fe===void 0)return"";Ae=this.lastNeed,this.lastNeed=0}else Ae=0;return Ae<Ce.length?Fe?Fe+this.text(Ce,Ae):this.text(Ce,Ae):Fe||""},ye.prototype.end=ee,ye.prototype.text=z,ye.prototype.fillLast=function(Ce){if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Ce.length),this.lastNeed-=Ce.length};function Me(Ce){return Ce<=127?0:Ce>>5===6?2:Ce>>4===14?3:Ce>>3===30?4:Ce>>6===2?-1:-2}function ve(Ce,Fe,Ae){var je=Fe.length-1;if(je<Ae)return 0;var Ne=Me(Fe[je]);return Ne>=0?(Ne>0&&(Ce.lastNeed=Ne-1),Ne):--je<Ae||Ne===-2?0:(Ne=Me(Fe[je]),Ne>=0?(Ne>0&&(Ce.lastNeed=Ne-2),Ne):--je<Ae||Ne===-2?0:(Ne=Me(Fe[je]),Ne>=0?(Ne>0&&(Ne===2?Ne=0:Ce.lastNeed=Ne-3),Ne):0))}function xe(Ce,Fe,Ae){if((Fe[0]&192)!==128)return Ce.lastNeed=0,"\uFFFD";if(Ce.lastNeed>1&&Fe.length>1){if((Fe[1]&192)!==128)return Ce.lastNeed=1,"\uFFFD";if(Ce.lastNeed>2&&Fe.length>2&&(Fe[2]&192)!==128)return Ce.lastNeed=2,"\uFFFD"}}function fe(Ce){var Fe=this.lastTotal-this.lastNeed,Ae=xe(this,Ce,Fe);if(Ae!==void 0)return Ae;if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,Fe,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,Fe,0,Ce.length),this.lastNeed-=Ce.length}function z(Ce,Fe){var Ae=ve(this,Ce,Fe);if(!this.lastNeed)return Ce.toString("utf8",Fe);this.lastTotal=Ae;var je=Ce.length-(Ae-this.lastNeed);return Ce.copy(this.lastChar,0,je),Ce.toString("utf8",Fe,je)}function ee(Ce){var Fe=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?Fe+"\uFFFD":Fe}function ae(Ce,Fe){if((Ce.length-Fe)%2===0){var Ae=Ce.toString("utf16le",Fe);if(Ae){var je=Ae.charCodeAt(Ae.length-1);if(je>=55296&&je<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1],Ae.slice(0,-1)}return Ae}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Ce[Ce.length-1],Ce.toString("utf16le",Fe,Ce.length-1)}function re(Ce){var Fe=Ce&&Ce.length?this.write(Ce):"";if(this.lastNeed){var Ae=this.lastTotal-this.lastNeed;return Fe+this.lastChar.toString("utf16le",0,Ae)}return Fe}function le(Ce,Fe){var Ae=(Ce.length-Fe)%3;return Ae===0?Ce.toString("base64",Fe):(this.lastNeed=3-Ae,this.lastTotal=3,Ae===1?this.lastChar[0]=Ce[Ce.length-1]:(this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1]),Ce.toString("base64",Fe,Ce.length-Ae))}function ue(Ce){var Fe=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?Fe+this.lastChar.toString("base64",0,3-this.lastNeed):Fe}function pe(Ce){return Ce.toString(this.encoding)}function Te(Ce){return Ce&&Ce.length?this.write(Ce):""}},{"safe-buffer":396}],414:[function(ie,_e,Ie){(function(ge,ce){(function(){var Pe=ie("process/browser.js").nextTick,Ee=Function.prototype.apply,ye=Array.prototype.slice,Me={},ve=0;Ie.setTimeout=function(){return new xe(Ee.call(setTimeout,window,arguments),clearTimeout)},Ie.setInterval=function(){return new xe(Ee.call(setInterval,window,arguments),clearInterval)},Ie.clearTimeout=Ie.clearInterval=function(fe){fe.close()};function xe(fe,z){this._id=fe,this._clearFn=z}xe.prototype.unref=xe.prototype.ref=function(){},xe.prototype.close=function(){this._clearFn.call(window,this._id)},Ie.enroll=function(fe,z){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=z},Ie.unenroll=function(fe){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=-1},Ie._unrefActive=Ie.active=function(fe){clearTimeout(fe._idleTimeoutId);var z=fe._idleTimeout;z>=0&&(fe._idleTimeoutId=setTimeout(function(){fe._onTimeout&&fe._onTimeout()},z))},Ie.setImmediate=typeof ge=="function"?ge:function(fe){var z=ve++,ee=arguments.length<2?!1:ye.call(arguments,1);return Me[z]=!0,Pe(function(){Me[z]&&(ee?fe.apply(null,ee):fe.call(null),Ie.clearImmediate(z))}),z},Ie.clearImmediate=typeof ce=="function"?ce:function(fe){delete Me[fe]}}).call(this)}).call(this,ie("timers").setImmediate,ie("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(ie,_e,Ie){var ge=ie("buffer").Buffer;_e.exports=function(ce){if(ce instanceof Uint8Array){if(ce.byteOffset===0&&ce.byteLength===ce.buffer.byteLength)return ce.buffer;if(typeof ce.buffer.slice=="function")return ce.buffer.slice(ce.byteOffset,ce.byteOffset+ce.byteLength)}if(ge.isBuffer(ce)){for(var Pe=new Uint8Array(ce.length),Ee=ce.length,ye=0;ye<Ee;ye++)Pe[ye]=ce[ye];return Pe.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(ie,_e,Ie){(function(ge){(function(){_e.exports=ce;function ce(Ee,ye){if(Pe("noDeprecation"))return Ee;var Me=!1;function ve(){if(!Me){if(Pe("throwDeprecation"))throw new Error(ye);Pe("traceDeprecation")?console.trace(ye):console.warn(ye),Me=!0}return Ee.apply(this,arguments)}return ve}function Pe(Ee){try{if(!ge.localStorage)return!1}catch(Me){return!1}var ye=ge.localStorage[Ee];return ye==null?!1:String(ye).toLowerCase()==="true"}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(ie,_e,Ie){arguments[4][84][0].apply(Ie,arguments)},{dup:84}],418:[function(ie,_e,Ie){"use strict";var ge=ie("is-arguments"),ce=ie("is-generator-function"),Pe=ie("which-typed-array"),Ee=ie("is-typed-array");function ye(Je){return Je.call.bind(Je)}var Me=typeof BigInt!="undefined",ve=typeof Symbol!="undefined",xe=ye(Object.prototype.toString),fe=ye(Number.prototype.valueOf),z=ye(String.prototype.valueOf),ee=ye(Boolean.prototype.valueOf);if(Me)var ae=ye(BigInt.prototype.valueOf);if(ve)var re=ye(Symbol.prototype.valueOf);function le(Je,ct){if(typeof Je!="object")return!1;try{return ct(Je),!0}catch(yt){return!1}}Ie.isArgumentsObject=ge,Ie.isGeneratorFunction=ce,Ie.isTypedArray=Ee;function ue(Je){return typeof Promise!="undefined"&&Je instanceof Promise||Je!==null&&typeof Je=="object"&&typeof Je.then=="function"&&typeof Je.catch=="function"}Ie.isPromise=ue;function pe(Je){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Je):Ee(Je)||mt(Je)}Ie.isArrayBufferView=pe;function Te(Je){return Pe(Je)==="Uint8Array"}Ie.isUint8Array=Te;function Ce(Je){return Pe(Je)==="Uint8ClampedArray"}Ie.isUint8ClampedArray=Ce;function Fe(Je){return Pe(Je)==="Uint16Array"}Ie.isUint16Array=Fe;function Ae(Je){return Pe(Je)==="Uint32Array"}Ie.isUint32Array=Ae;function je(Je){return Pe(Je)==="Int8Array"}Ie.isInt8Array=je;function Ne(Je){return Pe(Je)==="Int16Array"}Ie.isInt16Array=Ne;function Be(Je){return Pe(Je)==="Int32Array"}Ie.isInt32Array=Be;function ze(Je){return Pe(Je)==="Float32Array"}Ie.isFloat32Array=ze;function Qe(Je){return Pe(Je)==="Float64Array"}Ie.isFloat64Array=Qe;function $e(Je){return Pe(Je)==="BigInt64Array"}Ie.isBigInt64Array=$e;function Ye(Je){return Pe(Je)==="BigUint64Array"}Ie.isBigUint64Array=Ye;function at(Je){return xe(Je)==="[object Map]"}at.working=typeof Map!="undefined"&&at(new Map);function ut(Je){return typeof Map=="undefined"?!1:at.working?at(Je):Je instanceof Map}Ie.isMap=ut;function ht(Je){return xe(Je)==="[object Set]"}ht.working=typeof Set!="undefined"&&ht(new Set);function Ct(Je){return typeof Set=="undefined"?!1:ht.working?ht(Je):Je instanceof Set}Ie.isSet=Ct;function et(Je){return xe(Je)==="[object WeakMap]"}et.working=typeof WeakMap!="undefined"&&et(new WeakMap);function it(Je){return typeof WeakMap=="undefined"?!1:et.working?et(Je):Je instanceof WeakMap}Ie.isWeakMap=it;function St(Je){return xe(Je)==="[object WeakSet]"}St.working=typeof WeakSet!="undefined"&&St(new WeakSet);function bt(Je){return St(Je)}Ie.isWeakSet=bt;function Pt(Je){return xe(Je)==="[object ArrayBuffer]"}Pt.working=typeof ArrayBuffer!="undefined"&&Pt(new ArrayBuffer);function gt(Je){return typeof ArrayBuffer=="undefined"?!1:Pt.working?Pt(Je):Je instanceof ArrayBuffer}Ie.isArrayBuffer=gt;function dt(Je){return xe(Je)==="[object DataView]"}dt.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&dt(new DataView(new ArrayBuffer(1),0,1));function mt(Je){return typeof DataView=="undefined"?!1:dt.working?dt(Je):Je instanceof DataView}Ie.isDataView=mt;var kt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Et(Je){return xe(Je)==="[object SharedArrayBuffer]"}function Ut(Je){return typeof kt=="undefined"?!1:(typeof Et.working=="undefined"&&(Et.working=Et(new kt)),Et.working?Et(Je):Je instanceof kt)}Ie.isSharedArrayBuffer=Ut;function wt(Je){return xe(Je)==="[object AsyncFunction]"}Ie.isAsyncFunction=wt;function pt(Je){return xe(Je)==="[object Map Iterator]"}Ie.isMapIterator=pt;function tt(Je){return xe(Je)==="[object Set Iterator]"}Ie.isSetIterator=tt;function Ze(Je){return xe(Je)==="[object Generator]"}Ie.isGeneratorObject=Ze;function we(Je){return xe(Je)==="[object WebAssembly.Module]"}Ie.isWebAssemblyCompiledModule=we;function be(Je){return le(Je,fe)}Ie.isNumberObject=be;function Ke(Je){return le(Je,z)}Ie.isStringObject=Ke;function Xe(Je){return le(Je,ee)}Ie.isBooleanObject=Xe;function Oe(Je){return Me&&le(Je,ae)}Ie.isBigIntObject=Oe;function Ue(Je){return ve&&le(Je,re)}Ie.isSymbolObject=Ue;function He(Je){return be(Je)||Ke(Je)||Xe(Je)||Oe(Je)||Ue(Je)}Ie.isBoxedPrimitive=He;function Ve(Je){return typeof Uint8Array!="undefined"&&(gt(Je)||Ut(Je))}Ie.isAnyArrayBuffer=Ve,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Je){Object.defineProperty(Ie,Je,{enumerable:!1,value:function(){throw new Error(Je+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(ie,_e,Ie){(function(ge){(function(){var ce=Object.getOwnPropertyDescriptors||function(kt){for(var Et=Object.keys(kt),Ut={},wt=0;wt<Et.length;wt++)Ut[Et[wt]]=Object.getOwnPropertyDescriptor(kt,Et[wt]);return Ut},Pe=/%[sdj%]/g;Ie.format=function(mt){if(!Ne(mt)){for(var kt=[],Et=0;Et<arguments.length;Et++)kt.push(ve(arguments[Et]));return kt.join(" ")}for(var Et=1,Ut=arguments,wt=Ut.length,pt=String(mt).replace(Pe,function(Ze){if(Ze==="%%")return"%";if(Et>=wt)return Ze;switch(Ze){case"%s":return String(Ut[Et++]);case"%d":return Number(Ut[Et++]);case"%j":try{return JSON.stringify(Ut[Et++])}catch(we){return"[Circular]"}default:return Ze}}),tt=Ut[Et];Et<wt;tt=Ut[++Et])Fe(tt)||!$e(tt)?pt+=" "+tt:pt+=" "+ve(tt);return pt},Ie.deprecate=function(mt,kt){if(typeof ge!="undefined"&&ge.noDeprecation===!0)return mt;if(typeof ge=="undefined")return function(){return Ie.deprecate(mt,kt).apply(this,arguments)};var Et=!1;function Ut(){if(!Et){if(ge.throwDeprecation)throw new Error(kt);ge.traceDeprecation?console.trace(kt):console.error(kt),Et=!0}return mt.apply(this,arguments)}return Ut};var Ee={},ye=/^$/;if(ge.env.NODE_DEBUG){var Me=ge.env.NODE_DEBUG;Me=Me.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ye=new RegExp("^"+Me+"$","i")}Ie.debuglog=function(mt){if(mt=mt.toUpperCase(),!Ee[mt])if(ye.test(mt)){var kt=ge.pid;Ee[mt]=function(){var Et=Ie.format.apply(Ie,arguments);console.error("%s %d: %s",mt,kt,Et)}}else Ee[mt]=function(){};return Ee[mt]};function ve(mt,kt){var Et={seen:[],stylize:fe};return arguments.length>=3&&(Et.depth=arguments[2]),arguments.length>=4&&(Et.colors=arguments[3]),Ce(kt)?Et.showHidden=kt:kt&&Ie._extend(Et,kt),ze(Et.showHidden)&&(Et.showHidden=!1),ze(Et.depth)&&(Et.depth=2),ze(Et.colors)&&(Et.colors=!1),ze(Et.customInspect)&&(Et.customInspect=!0),Et.colors&&(Et.stylize=xe),ee(Et,mt,Et.depth)}Ie.inspect=ve,ve.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ve.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function xe(mt,kt){var Et=ve.styles[kt];return Et?"\x1B["+ve.colors[Et][0]+"m"+mt+"\x1B["+ve.colors[Et][1]+"m":mt}function fe(mt,kt){return mt}function z(mt){var kt={};return mt.forEach(function(Et,Ut){kt[Et]=!0}),kt}function ee(mt,kt,Et){if(mt.customInspect&&kt&&ut(kt.inspect)&&kt.inspect!==Ie.inspect&&!(kt.constructor&&kt.constructor.prototype===kt)){var Ut=kt.inspect(Et,mt);return Ne(Ut)||(Ut=ee(mt,Ut,Et)),Ut}var wt=ae(mt,kt);if(wt)return wt;var pt=Object.keys(kt),tt=z(pt);if(mt.showHidden&&(pt=Object.getOwnPropertyNames(kt)),at(kt)&&(pt.indexOf("message")>=0||pt.indexOf("description")>=0))return re(kt);if(pt.length===0){if(ut(kt)){var Ze=kt.name?": "+kt.name:"";return mt.stylize("[Function"+Ze+"]","special")}if(Qe(kt))return mt.stylize(RegExp.prototype.toString.call(kt),"regexp");if(Ye(kt))return mt.stylize(Date.prototype.toString.call(kt),"date");if(at(kt))return re(kt)}var we="",be=!1,Ke=["{","}"];if(Te(kt)&&(be=!0,Ke=["[","]"]),ut(kt)){var Xe=kt.name?": "+kt.name:"";we=" [Function"+Xe+"]"}if(Qe(kt)&&(we=" "+RegExp.prototype.toString.call(kt)),Ye(kt)&&(we=" "+Date.prototype.toUTCString.call(kt)),at(kt)&&(we=" "+re(kt)),pt.length===0&&(!be||kt.length==0))return Ke[0]+we+Ke[1];if(Et<0)return Qe(kt)?mt.stylize(RegExp.prototype.toString.call(kt),"regexp"):mt.stylize("[Object]","special");mt.seen.push(kt);var Oe;return be?Oe=le(mt,kt,Et,tt,pt):Oe=pt.map(function(Ue){return ue(mt,kt,Et,tt,Ue,be)}),mt.seen.pop(),pe(Oe,we,Ke)}function ae(mt,kt){if(ze(kt))return mt.stylize("undefined","undefined");if(Ne(kt)){var Et="'"+JSON.stringify(kt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return mt.stylize(Et,"string")}if(je(kt))return mt.stylize(""+kt,"number");if(Ce(kt))return mt.stylize(""+kt,"boolean");if(Fe(kt))return mt.stylize("null","null")}function re(mt){return"["+Error.prototype.toString.call(mt)+"]"}function le(mt,kt,Et,Ut,wt){for(var pt=[],tt=0,Ze=kt.length;tt<Ze;++tt)bt(kt,String(tt))?pt.push(ue(mt,kt,Et,Ut,String(tt),!0)):pt.push("");return wt.forEach(function(we){we.match(/^\d+$/)||pt.push(ue(mt,kt,Et,Ut,we,!0))}),pt}function ue(mt,kt,Et,Ut,wt,pt){var tt,Ze,we;if(we=Object.getOwnPropertyDescriptor(kt,wt)||{value:kt[wt]},we.get?we.set?Ze=mt.stylize("[Getter/Setter]","special"):Ze=mt.stylize("[Getter]","special"):we.set&&(Ze=mt.stylize("[Setter]","special")),bt(Ut,wt)||(tt="["+wt+"]"),Ze||(mt.seen.indexOf(we.value)<0?(Fe(Et)?Ze=ee(mt,we.value,null):Ze=ee(mt,we.value,Et-1),Ze.indexOf(`
|
|
|
`)>-1&&(pt?Ze=Ze.split(`
|
|
|
`).map(function(be){return" "+be}).join(`
|
|
|
`).slice(2):Ze=`
|
|
|
`+Ze.split(`
|
|
|
`).map(function(be){return" "+be}).join(`
|
|
|
`))):Ze=mt.stylize("[Circular]","special")),ze(tt)){if(pt&&wt.match(/^\d+$/))return Ze;tt=JSON.stringify(""+wt),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=mt.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=mt.stylize(tt,"string"))}return tt+": "+Ze}function pe(mt,kt,Et){var Ut=0,wt=mt.reduce(function(pt,tt){return Ut++,tt.indexOf(`
|
|
|
`)>=0&&Ut++,pt+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return wt>60?Et[0]+(kt===""?"":kt+`
|
|
|
`)+" "+mt.join(`,
|
|
|
`)+" "+Et[1]:Et[0]+kt+" "+mt.join(", ")+" "+Et[1]}Ie.types=ie("./support/types");function Te(mt){return Array.isArray(mt)}Ie.isArray=Te;function Ce(mt){return typeof mt=="boolean"}Ie.isBoolean=Ce;function Fe(mt){return mt===null}Ie.isNull=Fe;function Ae(mt){return mt==null}Ie.isNullOrUndefined=Ae;function je(mt){return typeof mt=="number"}Ie.isNumber=je;function Ne(mt){return typeof mt=="string"}Ie.isString=Ne;function Be(mt){return typeof mt=="symbol"}Ie.isSymbol=Be;function ze(mt){return mt===void 0}Ie.isUndefined=ze;function Qe(mt){return $e(mt)&&Ct(mt)==="[object RegExp]"}Ie.isRegExp=Qe,Ie.types.isRegExp=Qe;function $e(mt){return typeof mt=="object"&&mt!==null}Ie.isObject=$e;function Ye(mt){return $e(mt)&&Ct(mt)==="[object Date]"}Ie.isDate=Ye,Ie.types.isDate=Ye;function at(mt){return $e(mt)&&(Ct(mt)==="[object Error]"||mt instanceof Error)}Ie.isError=at,Ie.types.isNativeError=at;function ut(mt){return typeof mt=="function"}Ie.isFunction=ut;function ht(mt){return mt===null||typeof mt=="boolean"||typeof mt=="number"||typeof mt=="string"||typeof mt=="symbol"||typeof mt=="undefined"}Ie.isPrimitive=ht,Ie.isBuffer=ie("./support/isBuffer");function Ct(mt){return Object.prototype.toString.call(mt)}function et(mt){return mt<10?"0"+mt.toString(10):mt.toString(10)}var it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function St(){var mt=new Date,kt=[et(mt.getHours()),et(mt.getMinutes()),et(mt.getSeconds())].join(":");return[mt.getDate(),it[mt.getMonth()],kt].join(" ")}Ie.log=function(){console.log("%s - %s",St(),Ie.format.apply(Ie,arguments))},Ie.inherits=ie("inherits"),Ie._extend=function(mt,kt){if(!kt||!$e(kt))return mt;for(var Et=Object.keys(kt),Ut=Et.length;Ut--;)mt[Et[Ut]]=kt[Et[Ut]];return mt};function bt(mt,kt){return Object.prototype.hasOwnProperty.call(mt,kt)}var Pt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Ie.promisify=function(kt){if(typeof kt!="function")throw new TypeError('The "original" argument must be of type Function');if(Pt&&kt[Pt]){var Et=kt[Pt];if(typeof Et!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Et,Pt,{value:Et,enumerable:!1,writable:!1,configurable:!0}),Et}function Et(){for(var Ut,wt,pt=new Promise(function(we,be){Ut=we,wt=be}),tt=[],Ze=0;Ze<arguments.length;Ze++)tt.push(arguments[Ze]);tt.push(function(we,be){we?wt(we):Ut(be)});try{kt.apply(this,tt)}catch(we){wt(we)}return pt}return Object.setPrototypeOf(Et,Object.getPrototypeOf(kt)),Pt&&Object.defineProperty(Et,Pt,{value:Et,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Et,ce(kt))},Ie.promisify.custom=Pt;function gt(mt,kt){if(!mt){var Et=new Error("Promise was rejected with a falsy value");Et.reason=mt,mt=Et}return kt(mt)}function dt(mt){if(typeof mt!="function")throw new TypeError('The "original" argument must be of type Function');function kt(){for(var Et=[],Ut=0;Ut<arguments.length;Ut++)Et.push(arguments[Ut]);var wt=Et.pop();if(typeof wt!="function")throw new TypeError("The last argument must be of type Function");var pt=this,tt=function(){return wt.apply(pt,arguments)};mt.apply(this,Et).then(function(Ze){ge.nextTick(tt.bind(null,null,Ze))},function(Ze){ge.nextTick(gt.bind(null,Ze,tt))})}return Object.setPrototypeOf(kt,Object.getPrototypeOf(mt)),Object.defineProperties(kt,ce(mt)),kt}Ie.callbackify=dt}).call(this)}).call(this,ie("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(ie,_e,Ie){(function(ge){(function(){"use strict";var ce=ie("for-each"),Pe=ie("available-typed-arrays"),Ee=ie("call-bind"),ye=ie("call-bind/callBound"),Me=ie("gopd"),ve=ye("Object.prototype.toString"),xe=ie("has-tostringtag/shams")(),fe=typeof globalThis=="undefined"?ge:globalThis,z=Pe(),ee=ye("String.prototype.slice"),ae=Object.getPrototypeOf,re=ye("Array.prototype.indexOf",!0)||function(Ce,Fe){for(var Ae=0;Ae<Ce.length;Ae+=1)if(Ce[Ae]===Fe)return Ae;return-1},le={__proto__:null};xe&&Me&&ae?ce(z,function(Te){var Ce=new fe[Te];if(Symbol.toStringTag in Ce){var Fe=ae(Ce),Ae=Me(Fe,Symbol.toStringTag);if(!Ae){var je=ae(Fe);Ae=Me(je,Symbol.toStringTag)}le["$"+Te]=Ee(Ae.get)}}):ce(z,function(Te){var Ce=new fe[Te];le["$"+Te]=Ee(Ce.slice)});var ue=function(Ce){var Fe=!1;return ce(le,function(Ae,je){if(!Fe)try{"$"+Ae(Ce)===je&&(Fe=ee(je,1))}catch(Ne){}}),Fe},pe=function(Ce){var Fe=!1;return ce(le,function(Ae,je){if(!Fe)try{Ae(Ce),Fe=ee(je,1)}catch(Ne){}}),Fe};_e.exports=function(Ce){if(!Ce||typeof Ce!="object")return!1;if(!xe){var Fe=ee(ve(Ce),8,-1);return re(z,Fe)>-1?Fe:Fe!=="Object"?!1:pe(Ce)}return Me?ue(Ce):null}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(ie,_e,Ie){(function(){"use strict";Ie.stripBOM=function(ge){return ge[0]==="\uFEFF"?ge.substring(1):ge}}).call(this)},{}],422:[function(ie,_e,Ie){(function(){"use strict";var ge,ce,Pe,Ee,ye,Me={}.hasOwnProperty;ge=ie("xmlbuilder"),ce=ie("./defaults").defaults,Ee=function(ve){return typeof ve=="string"&&(ve.indexOf("&")>=0||ve.indexOf(">")>=0||ve.indexOf("<")>=0)},ye=function(ve){return"<![CDATA["+Pe(ve)+"]]>"},Pe=function(ve){return ve.replace("]]>","]]]]><![CDATA[>")},Ie.Builder=function(){function ve(xe){var fe,z,ee;this.options={},z=ce["0.2"];for(fe in z)Me.call(z,fe)&&(ee=z[fe],this.options[fe]=ee);for(fe in xe)Me.call(xe,fe)&&(ee=xe[fe],this.options[fe]=ee)}return ve.prototype.buildObject=function(xe){var fe,z,ee,ae,re;return fe=this.options.attrkey,z=this.options.charkey,Object.keys(xe).length===1&&this.options.rootName===ce["0.2"].rootName?(re=Object.keys(xe)[0],xe=xe[re]):re=this.options.rootName,ee=function(le){return function(ue,pe){var Te,Ce,Fe,Ae,je,Ne;if(typeof pe!="object")le.options.cdata&&Ee(pe)?ue.raw(ye(pe)):ue.txt(pe);else if(Array.isArray(pe)){for(Ae in pe)if(Me.call(pe,Ae)){Ce=pe[Ae];for(je in Ce)Fe=Ce[je],ue=ee(ue.ele(je),Fe).up()}}else for(je in pe)if(Me.call(pe,je))if(Ce=pe[je],je===fe){if(typeof Ce=="object")for(Te in Ce)Ne=Ce[Te],ue=ue.att(Te,Ne)}else if(je===z)le.options.cdata&&Ee(Ce)?ue=ue.raw(ye(Ce)):ue=ue.txt(Ce);else if(Array.isArray(Ce))for(Ae in Ce)Me.call(Ce,Ae)&&(Fe=Ce[Ae],typeof Fe=="string"?le.options.cdata&&Ee(Fe)?ue=ue.ele(je).raw(ye(Fe)).up():ue=ue.ele(je,Fe).up():ue=ee(ue.ele(je),Fe).up());else typeof Ce=="object"?ue=ee(ue.ele(je),Ce).up():typeof Ce=="string"&&le.options.cdata&&Ee(Ce)?ue=ue.ele(je).raw(ye(Ce)).up():(Ce==null&&(Ce=""),ue=ue.ele(je,Ce.toString()).up());return ue}}(this),ae=ge.create(re,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ee(ae,xe).end(this.options.renderOpts)},ve}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(ie,_e,Ie){(function(){Ie.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(ie,_e,Ie){(function(){"use strict";var ge,ce,Pe,Ee,ye,Me,ve,xe,fe,z=function(re,le){return function(){return re.apply(le,arguments)}},ee=function(re,le){for(var ue in le)ae.call(le,ue)&&(re[ue]=le[ue]);function pe(){this.constructor=re}return pe.prototype=le.prototype,re.prototype=new pe,re.__super__=le.prototype,re},ae={}.hasOwnProperty;xe=ie("sax"),Ee=ie("events"),ge=ie("./bom"),ve=ie("./processors"),fe=ie("timers").setImmediate,ce=ie("./defaults").defaults,ye=function(re){return typeof re=="object"&&re!=null&&Object.keys(re).length===0},Me=function(re,le,ue){var pe,Te,Ce;for(pe=0,Te=re.length;pe<Te;pe++)Ce=re[pe],le=Ce(le,ue);return le},Pe=function(re,le,ue){var pe;return pe=Object.create(null),pe.value=ue,pe.writable=!0,pe.enumerable=!0,pe.configurable=!0,Object.defineProperty(re,le,pe)},Ie.Parser=function(re){ee(le,re);function le(ue){this.parseStringPromise=z(this.parseStringPromise,this),this.parseString=z(this.parseString,this),this.reset=z(this.reset,this),this.assignOrPush=z(this.assignOrPush,this),this.processAsync=z(this.processAsync,this);var pe,Te,Ce;if(!(this instanceof Ie.Parser))return new Ie.Parser(ue);this.options={},Te=ce["0.2"];for(pe in Te)ae.call(Te,pe)&&(Ce=Te[pe],this.options[pe]=Ce);for(pe in ue)ae.call(ue,pe)&&(Ce=ue[pe],this.options[pe]=Ce);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(ve.normalize)),this.reset()}return le.prototype.processAsync=function(){var ue,pe;try{return this.remaining.length<=this.options.chunkSize?(ue=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ue),this.saxParser.close()):(ue=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ue),fe(this.processAsync))}catch(Te){if(pe=Te,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(pe)}},le.prototype.assignOrPush=function(ue,pe,Te){return pe in ue?(ue[pe]instanceof Array||Pe(ue,pe,[ue[pe]]),ue[pe].push(Te)):this.options.explicitArray?Pe(ue,pe,[Te]):Pe(ue,pe,Te)},le.prototype.reset=function(){var ue,pe,Te,Ce;return this.removeAllListeners(),this.saxParser=xe.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Fe){return function(Ae){if(Fe.saxParser.resume(),!Fe.saxParser.errThrown)return Fe.saxParser.errThrown=!0,Fe.emit("error",Ae)}}(this),this.saxParser.onend=function(Fe){return function(){if(!Fe.saxParser.ended)return Fe.saxParser.ended=!0,Fe.emit("end",Fe.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Ce=[],ue=this.options.attrkey,pe=this.options.charkey,this.saxParser.onopentag=function(Fe){return function(Ae){var je,Ne,Be,ze,Qe;if(Be={},Be[pe]="",!Fe.options.ignoreAttrs){Qe=Ae.attributes;for(je in Qe)ae.call(Qe,je)&&(!(ue in Be)&&!Fe.options.mergeAttrs&&(Be[ue]={}),Ne=Fe.options.attrValueProcessors?Me(Fe.options.attrValueProcessors,Ae.attributes[je],je):Ae.attributes[je],ze=Fe.options.attrNameProcessors?Me(Fe.options.attrNameProcessors,je):je,Fe.options.mergeAttrs?Fe.assignOrPush(Be,ze,Ne):Pe(Be[ue],ze,Ne))}return Be["#name"]=Fe.options.tagNameProcessors?Me(Fe.options.tagNameProcessors,Ae.name):Ae.name,Fe.options.xmlns&&(Be[Fe.options.xmlnskey]={uri:Ae.uri,local:Ae.local}),Ce.push(Be)}}(this),this.saxParser.onclosetag=function(Fe){return function(){var Ae,je,Ne,Be,ze,Qe,$e,Ye,at,ut;if(Qe=Ce.pop(),ze=Qe["#name"],(!Fe.options.explicitChildren||!Fe.options.preserveChildrenOrder)&&delete Qe["#name"],Qe.cdata===!0&&(Ae=Qe.cdata,delete Qe.cdata),at=Ce[Ce.length-1],Qe[pe].match(/^\s*$/)&&!Ae?(je=Qe[pe],delete Qe[pe]):(Fe.options.trim&&(Qe[pe]=Qe[pe].trim()),Fe.options.normalize&&(Qe[pe]=Qe[pe].replace(/\s{2,}/g," ").trim()),Qe[pe]=Fe.options.valueProcessors?Me(Fe.options.valueProcessors,Qe[pe],ze):Qe[pe],Object.keys(Qe).length===1&&pe in Qe&&!Fe.EXPLICIT_CHARKEY&&(Qe=Qe[pe])),ye(Qe)&&(typeof Fe.options.emptyTag=="function"?Qe=Fe.options.emptyTag():Qe=Fe.options.emptyTag!==""?Fe.options.emptyTag:je),Fe.options.validator!=null&&(ut="/"+function(){var ht,Ct,et;for(et=[],ht=0,Ct=Ce.length;ht<Ct;ht++)Be=Ce[ht],et.push(Be["#name"]);return et}().concat(ze).join("/"),function(){var ht;try{return Qe=Fe.options.validator(ut,at&&at[ze],Qe)}catch(Ct){return ht=Ct,Fe.emit("error",ht)}}()),Fe.options.explicitChildren&&!Fe.options.mergeAttrs&&typeof Qe=="object"){if(!Fe.options.preserveChildrenOrder)Be={},Fe.options.attrkey in Qe&&(Be[Fe.options.attrkey]=Qe[Fe.options.attrkey],delete Qe[Fe.options.attrkey]),!Fe.options.charsAsChildren&&Fe.options.charkey in Qe&&(Be[Fe.options.charkey]=Qe[Fe.options.charkey],delete Qe[Fe.options.charkey]),Object.getOwnPropertyNames(Qe).length>0&&(Be[Fe.options.childkey]=Qe),Qe=Be;else if(at){at[Fe.options.childkey]=at[Fe.options.childkey]||[],$e={};for(Ne in Qe)ae.call(Qe,Ne)&&Pe($e,Ne,Qe[Ne]);at[Fe.options.childkey].push($e),delete Qe["#name"],Object.keys(Qe).length===1&&pe in Qe&&!Fe.EXPLICIT_CHARKEY&&(Qe=Qe[pe])}}return Ce.length>0?Fe.assignOrPush(at,ze,Qe):(Fe.options.explicitRoot&&(Ye=Qe,Qe={},Pe(Qe,ze,Ye)),Fe.resultObject=Qe,Fe.saxParser.ended=!0,Fe.emit("end",Fe.resultObject))}}(this),Te=function(Fe){return function(Ae){var je,Ne;if(Ne=Ce[Ce.length-1],Ne)return Ne[pe]+=Ae,Fe.options.explicitChildren&&Fe.options.preserveChildrenOrder&&Fe.options.charsAsChildren&&(Fe.options.includeWhiteChars||Ae.replace(/\\n/g,"").trim()!=="")&&(Ne[Fe.options.childkey]=Ne[Fe.options.childkey]||[],je={"#name":"__text__"},je[pe]=Ae,Fe.options.normalize&&(je[pe]=je[pe].replace(/\s{2,}/g," ").trim()),Ne[Fe.options.childkey].push(je)),Ne}}(this),this.saxParser.ontext=Te,this.saxParser.oncdata=function(Fe){return function(Ae){var je;if(je=Te(Ae),je)return je.cdata=!0}}(this)},le.prototype.parseString=function(ue,pe){var Te;pe!=null&&typeof pe=="function"&&(this.on("end",function(Ce){return this.reset(),pe(null,Ce)}),this.on("error",function(Ce){return this.reset(),pe(Ce)}));try{return ue=ue.toString(),ue.trim()===""?(this.emit("end",null),!0):(ue=ge.stripBOM(ue),this.options.async?(this.remaining=ue,fe(this.processAsync),this.saxParser):this.saxParser.write(ue).close())}catch(Ce){if(Te=Ce,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Te}else return this.emit("error",Te),this.saxParser.errThrown=!0}},le.prototype.parseStringPromise=function(ue){return new Promise(function(pe){return function(Te,Ce){return pe.parseString(ue,function(Fe,Ae){return Fe?Ce(Fe):Te(Ae)})}}(this))},le}(Ee),Ie.parseString=function(re,le,ue){var pe,Te,Ce;return ue!=null?(typeof ue=="function"&&(pe=ue),typeof le=="object"&&(Te=le)):(typeof le=="function"&&(pe=le),Te={}),Ce=new Ie.Parser(Te),Ce.parseString(re,pe)},Ie.parseStringPromise=function(re,le){var ue,pe;return typeof le=="object"&&(ue=le),pe=new Ie.Parser(ue),pe.parseStringPromise(re)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(ie,_e,Ie){(function(){"use strict";var ge;ge=new RegExp(/(?!xmlns)^.*:/),Ie.normalize=function(ce){return ce.toLowerCase()},Ie.firstCharLowerCase=function(ce){return ce.charAt(0).toLowerCase()+ce.slice(1)},Ie.stripPrefix=function(ce){return ce.replace(ge,"")},Ie.parseNumbers=function(ce){return isNaN(ce)||(ce=ce%1===0?parseInt(ce,10):parseFloat(ce)),ce},Ie.parseBooleans=function(ce){return/^(?:true|false)$/i.test(ce)&&(ce=ce.toLowerCase()==="true"),ce}}).call(this)},{}],426:[function(ie,_e,Ie){(function(){"use strict";var ge,ce,Pe,Ee,ye=function(ve,xe){for(var fe in xe)Me.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},Me={}.hasOwnProperty;ce=ie("./defaults"),ge=ie("./builder"),Pe=ie("./parser"),Ee=ie("./processors"),Ie.defaults=ce.defaults,Ie.processors=Ee,Ie.ValidationError=function(ve){ye(xe,ve);function xe(fe){this.message=fe}return xe}(Error),Ie.Builder=ge.Builder,Ie.Parser=Pe.Parser,Ie.parseString=Pe.parseString,Ie.parseStringPromise=Pe.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(ie,_e,Ie){(function(){_e.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(ie,_e,Ie){(function(){_e.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee,ye,Me,ve,xe=[].slice,fe={}.hasOwnProperty;ge=function(){var z,ee,ae,re,le,ue;if(ue=arguments[0],le=2<=arguments.length?xe.call(arguments,1):[],ye(Object.assign))Object.assign.apply(null,arguments);else for(z=0,ae=le.length;z<ae;z++)if(re=le[z],re!=null)for(ee in re)fe.call(re,ee)&&(ue[ee]=re[ee]);return ue},ye=function(z){return!!z&&Object.prototype.toString.call(z)==="[object Function]"},Me=function(z){var ee;return!!z&&((ee=typeof z)=="function"||ee==="object")},Pe=function(z){return ye(Array.isArray)?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"},Ee=function(z){var ee;if(Pe(z))return!z.length;for(ee in z)if(fe.call(z,ee))return!1;return!0},ve=function(z){var ee,ae;return Me(z)&&(ae=Object.getPrototypeOf(z))&&(ee=ae.constructor)&&typeof ee=="function"&&ee instanceof ee&&Function.prototype.toString.call(ee)===Function.prototype.toString.call(Object)},ce=function(z){return ye(z.valueOf)?z.valueOf():z},_e.exports.assign=ge,_e.exports.isFunction=ye,_e.exports.isObject=Me,_e.exports.isArray=Pe,_e.exports.isEmpty=Ee,_e.exports.isPlainObject=ve,_e.exports.getValue=ce}).call(this)},{}],430:[function(ie,_e,Ie){(function(){_e.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(ie,_e,Ie){(function(){var ge,ce,Pe;ge=ie("./NodeType"),Pe=ie("./XMLNode"),_e.exports=ce=function(){function Ee(ye,Me,ve){if(this.parent=ye,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),Me==null)throw new Error("Missing attribute name. "+this.debugInfo(Me));this.name=this.stringify.name(Me),this.value=this.stringify.attValue(ve),this.type=ge.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(Ee.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Ee.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(Ee.prototype,"textContent",{get:function(){return this.value},set:function(ye){return this.value=ye||""}}),Object.defineProperty(Ee.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(Ee.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(Ee.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(Ee.prototype,"specified",{get:function(){return!0}}),Ee.prototype.clone=function(){return Object.create(this)},Ee.prototype.toString=function(ye){return this.options.writer.attribute(this,this.options.writer.filterOptions(ye))},Ee.prototype.debugInfo=function(ye){return ye=ye||this.name,ye==null?"parent: <"+this.parent.name+">":"attribute: {"+ye+"}, parent: <"+this.parent.name+">"},Ee.prototype.isEqualNode=function(ye){return!(ye.namespaceURI!==this.namespaceURI||ye.prefix!==this.prefix||ye.localName!==this.localName||ye.value!==this.value)},Ee}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee=function(Me,ve){for(var xe in ve)ye.call(ve,xe)&&(Me[xe]=ve[xe]);function fe(){this.constructor=Me}return fe.prototype=ve.prototype,Me.prototype=new fe,Me.__super__=ve.prototype,Me},ye={}.hasOwnProperty;ge=ie("./NodeType"),Pe=ie("./XMLCharacterData"),_e.exports=ce=function(Me){Ee(ve,Me);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=ge.CData,this.value=this.stringify.cdata(fe)}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.cdata(this,this.options.writer.filterOptions(xe))},ve}(Pe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(ie,_e,Ie){(function(){var ge,ce,Pe=function(ye,Me){for(var ve in Me)Ee.call(Me,ve)&&(ye[ve]=Me[ve]);function xe(){this.constructor=ye}return xe.prototype=Me.prototype,ye.prototype=new xe,ye.__super__=Me.prototype,ye},Ee={}.hasOwnProperty;ce=ie("./XMLNode"),_e.exports=ge=function(ye){Pe(Me,ye);function Me(ve){Me.__super__.constructor.call(this,ve),this.value=""}return Object.defineProperty(Me.prototype,"data",{get:function(){return this.value},set:function(ve){return this.value=ve||""}}),Object.defineProperty(Me.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(Me.prototype,"textContent",{get:function(){return this.value},set:function(ve){return this.value=ve||""}}),Me.prototype.clone=function(){return Object.create(this)},Me.prototype.substringData=function(ve,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Me.prototype.appendData=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},Me.prototype.insertData=function(ve,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Me.prototype.deleteData=function(ve,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Me.prototype.replaceData=function(ve,xe,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Me.prototype.isEqualNode=function(ve){return!(!Me.__super__.isEqualNode.apply(this,arguments).isEqualNode(ve)||ve.data!==this.data)},Me}(ce)}).call(this)},{"./XMLNode":450}],434:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee=function(Me,ve){for(var xe in ve)ye.call(ve,xe)&&(Me[xe]=ve[xe]);function fe(){this.constructor=Me}return fe.prototype=ve.prototype,Me.prototype=new fe,Me.__super__=ve.prototype,Me},ye={}.hasOwnProperty;ge=ie("./NodeType"),ce=ie("./XMLCharacterData"),_e.exports=Pe=function(Me){Ee(ve,Me);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=ge.Comment,this.value=this.stringify.comment(fe)}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.comment(this,this.options.writer.filterOptions(xe))},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(ie,_e,Ie){(function(){var ge,ce,Pe;ce=ie("./XMLDOMErrorHandler"),Pe=ie("./XMLDOMStringList"),_e.exports=ge=function(){function Ee(){var ye;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new ce,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=ye=Object.create(this.defaultParams)}return Object.defineProperty(Ee.prototype,"parameterNames",{get:function(){return new Pe(Object.keys(this.defaultParams))}}),Ee.prototype.getParameter=function(ye){return this.params.hasOwnProperty(ye)?this.params[ye]:null},Ee.prototype.canSetParameter=function(ye,Me){return!0},Ee.prototype.setParameter=function(ye,Me){return Me!=null?this.params[ye]=Me:delete this.params[ye]},Ee}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(ie,_e,Ie){(function(){var ge;_e.exports=ge=function(){function ce(){}return ce.prototype.handleError=function(Pe){throw new Error(Pe)},ce}()}).call(this)},{}],437:[function(ie,_e,Ie){(function(){var ge;_e.exports=ge=function(){function ce(){}return ce.prototype.hasFeature=function(Pe,Ee){return!0},ce.prototype.createDocumentType=function(Pe,Ee,ye){throw new Error("This DOM method is not implemented.")},ce.prototype.createDocument=function(Pe,Ee,ye){throw new Error("This DOM method is not implemented.")},ce.prototype.createHTMLDocument=function(Pe){throw new Error("This DOM method is not implemented.")},ce.prototype.getFeature=function(Pe,Ee){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],438:[function(ie,_e,Ie){(function(){var ge;_e.exports=ge=function(){function ce(Pe){this.arr=Pe||[]}return Object.defineProperty(ce.prototype,"length",{get:function(){return this.arr.length}}),ce.prototype.item=function(Pe){return this.arr[Pe]||null},ce.prototype.contains=function(Pe){return this.arr.indexOf(Pe)!==-1},ce}()}).call(this)},{}],439:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee=function(Me,ve){for(var xe in ve)ye.call(ve,xe)&&(Me[xe]=ve[xe]);function fe(){this.constructor=Me}return fe.prototype=ve.prototype,Me.prototype=new fe,Me.__super__=ve.prototype,Me},ye={}.hasOwnProperty;Pe=ie("./XMLNode"),ge=ie("./NodeType"),_e.exports=ce=function(Me){Ee(ve,Me);function ve(xe,fe,z,ee,ae,re){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(z==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(fe));if(!ee)throw new Error("Missing DTD attribute type. "+this.debugInfo(fe));if(!ae)throw new Error("Missing DTD attribute default. "+this.debugInfo(fe));if(ae.indexOf("#")!==0&&(ae="#"+ae),!ae.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(fe));if(re&&!ae.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(fe));this.elementName=this.stringify.name(fe),this.type=ge.AttributeDeclaration,this.attributeName=this.stringify.name(z),this.attributeType=this.stringify.dtdAttType(ee),re&&(this.defaultValue=this.stringify.dtdAttDefault(re)),this.defaultValueType=ae}return ve.prototype.toString=function(xe){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(xe))},ve}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee=function(Me,ve){for(var xe in ve)ye.call(ve,xe)&&(Me[xe]=ve[xe]);function fe(){this.constructor=Me}return fe.prototype=ve.prototype,Me.prototype=new fe,Me.__super__=ve.prototype,Me},ye={}.hasOwnProperty;Pe=ie("./XMLNode"),ge=ie("./NodeType"),_e.exports=ce=function(Me){Ee(ve,Me);function ve(xe,fe,z){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing DTD element name. "+this.debugInfo());z||(z="(#PCDATA)"),Array.isArray(z)&&(z="("+z.join(",")+")"),this.name=this.stringify.name(fe),this.type=ge.ElementDeclaration,this.value=this.stringify.dtdElementValue(z)}return ve.prototype.toString=function(xe){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(xe))},ve}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee,ye=function(ve,xe){for(var fe in xe)Me.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},Me={}.hasOwnProperty;Ee=ie("./Utility").isObject,Pe=ie("./XMLNode"),ge=ie("./NodeType"),_e.exports=ce=function(ve){ye(xe,ve);function xe(fe,z,ee,ae){if(xe.__super__.constructor.call(this,fe),ee==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ee));if(ae==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ee));if(this.pe=!!z,this.name=this.stringify.name(ee),this.type=ge.EntityDeclaration,!Ee(ae))this.value=this.stringify.dtdEntityValue(ae),this.internal=!0;else{if(!ae.pubID&&!ae.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee));if(ae.pubID&&!ae.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee));if(this.internal=!1,ae.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ae.pubID)),ae.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ae.sysID)),ae.nData!=null&&(this.nData=this.stringify.dtdNData(ae.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}return Object.defineProperty(xe.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(xe.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(xe.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(xe.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(xe.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(xe.prototype,"xmlVersion",{get:function(){return null}}),xe.prototype.toString=function(fe){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(fe))},xe}(Pe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee=function(Me,ve){for(var xe in ve)ye.call(ve,xe)&&(Me[xe]=ve[xe]);function fe(){this.constructor=Me}return fe.prototype=ve.prototype,Me.prototype=new fe,Me.__super__=ve.prototype,Me},ye={}.hasOwnProperty;Pe=ie("./XMLNode"),ge=ie("./NodeType"),_e.exports=ce=function(Me){Ee(ve,Me);function ve(xe,fe,z){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing DTD notation name. "+this.debugInfo(fe));if(!z.pubID&&!z.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(fe));this.name=this.stringify.name(fe),this.type=ge.NotationDeclaration,z.pubID!=null&&(this.pubID=this.stringify.dtdPubID(z.pubID)),z.sysID!=null&&(this.sysID=this.stringify.dtdSysID(z.sysID))}return Object.defineProperty(ve.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ve.prototype,"systemId",{get:function(){return this.sysID}}),ve.prototype.toString=function(xe){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(xe))},ve}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee,ye=function(ve,xe){for(var fe in xe)Me.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},Me={}.hasOwnProperty;Ee=ie("./Utility").isObject,Pe=ie("./XMLNode"),ge=ie("./NodeType"),_e.exports=ce=function(ve){ye(xe,ve);function xe(fe,z,ee,ae){var re;xe.__super__.constructor.call(this,fe),Ee(z)&&(re=z,z=re.version,ee=re.encoding,ae=re.standalone),z||(z="1.0"),this.type=ge.Declaration,this.version=this.stringify.xmlVersion(z),ee!=null&&(this.encoding=this.stringify.xmlEncoding(ee)),ae!=null&&(this.standalone=this.stringify.xmlStandalone(ae))}return xe.prototype.toString=function(fe){return this.options.writer.declaration(this,this.options.writer.filterOptions(fe))},xe}(Pe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee,ye,Me,ve,xe,fe,z=function(ae,re){for(var le in re)ee.call(re,le)&&(ae[le]=re[le]);function ue(){this.constructor=ae}return ue.prototype=re.prototype,ae.prototype=new ue,ae.__super__=re.prototype,ae},ee={}.hasOwnProperty;fe=ie("./Utility").isObject,xe=ie("./XMLNode"),ge=ie("./NodeType"),ce=ie("./XMLDTDAttList"),Ee=ie("./XMLDTDEntity"),Pe=ie("./XMLDTDElement"),ye=ie("./XMLDTDNotation"),ve=ie("./XMLNamedNodeMap"),_e.exports=Me=function(ae){z(re,ae);function re(le,ue,pe){var Te,Ce,Fe,Ae,je,Ne;if(re.__super__.constructor.call(this,le),this.type=ge.DocType,le.children){for(Ae=le.children,Ce=0,Fe=Ae.length;Ce<Fe;Ce++)if(Te=Ae[Ce],Te.type===ge.Element){this.name=Te.name;break}}this.documentObject=le,fe(ue)&&(je=ue,ue=je.pubID,pe=je.sysID),pe==null&&(Ne=[ue,pe],pe=Ne[0],ue=Ne[1]),ue!=null&&(this.pubID=this.stringify.dtdPubID(ue)),pe!=null&&(this.sysID=this.stringify.dtdSysID(pe))}return Object.defineProperty(re.prototype,"entities",{get:function(){var le,ue,pe,Te,Ce;for(Te={},Ce=this.children,ue=0,pe=Ce.length;ue<pe;ue++)le=Ce[ue],le.type===ge.EntityDeclaration&&!le.pe&&(Te[le.name]=le);return new ve(Te)}}),Object.defineProperty(re.prototype,"notations",{get:function(){var le,ue,pe,Te,Ce;for(Te={},Ce=this.children,ue=0,pe=Ce.length;ue<pe;ue++)le=Ce[ue],le.type===ge.NotationDeclaration&&(Te[le.name]=le);return new ve(Te)}}),Object.defineProperty(re.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(re.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(re.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),re.prototype.element=function(le,ue){var pe;return pe=new Pe(this,le,ue),this.children.push(pe),this},re.prototype.attList=function(le,ue,pe,Te,Ce){var Fe;return Fe=new ce(this,le,ue,pe,Te,Ce),this.children.push(Fe),this},re.prototype.entity=function(le,ue){var pe;return pe=new Ee(this,!1,le,ue),this.children.push(pe),this},re.prototype.pEntity=function(le,ue){var pe;return pe=new Ee(this,!0,le,ue),this.children.push(pe),this},re.prototype.notation=function(le,ue){var pe;return pe=new ye(this,le,ue),this.children.push(pe),this},re.prototype.toString=function(le){return this.options.writer.docType(this,this.options.writer.filterOptions(le))},re.prototype.ele=function(le,ue){return this.element(le,ue)},re.prototype.att=function(le,ue,pe,Te,Ce){return this.attList(le,ue,pe,Te,Ce)},re.prototype.ent=function(le,ue){return this.entity(le,ue)},re.prototype.pent=function(le,ue){return this.pEntity(le,ue)},re.prototype.not=function(le,ue){return this.notation(le,ue)},re.prototype.up=function(){return this.root()||this.documentObject},re.prototype.isEqualNode=function(le){return!(!re.__super__.isEqualNode.apply(this,arguments).isEqualNode(le)||le.name!==this.name||le.publicId!==this.publicId||le.systemId!==this.systemId)},re}(xe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee,ye,Me,ve,xe,fe=function(ee,ae){for(var re in ae)z.call(ae,re)&&(ee[re]=ae[re]);function le(){this.constructor=ee}return le.prototype=ae.prototype,ee.prototype=new le,ee.__super__=ae.prototype,ee},z={}.hasOwnProperty;xe=ie("./Utility").isPlainObject,Pe=ie("./XMLDOMImplementation"),ce=ie("./XMLDOMConfiguration"),ye=ie("./XMLNode"),ge=ie("./NodeType"),ve=ie("./XMLStringifier"),Me=ie("./XMLStringWriter"),_e.exports=Ee=function(ee){fe(ae,ee);function ae(re){ae.__super__.constructor.call(this,null),this.name="#document",this.type=ge.Document,this.documentURI=null,this.domConfig=new ce,re||(re={}),re.writer||(re.writer=new Me),this.options=re,this.stringify=new ve(re)}return Object.defineProperty(ae.prototype,"implementation",{value:new Pe}),Object.defineProperty(ae.prototype,"doctype",{get:function(){var re,le,ue,pe;for(pe=this.children,le=0,ue=pe.length;le<ue;le++)if(re=pe[le],re.type===ge.DocType)return re;return null}}),Object.defineProperty(ae.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ae.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ae.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ae.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===ge.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ae.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===ge.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ae.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===ge.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ae.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ae.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ae.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ae.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ae.prototype,"contentType",{get:function(){return null}}),ae.prototype.end=function(re){var le;return le={},re?xe(re)&&(le=re,re=this.options.writer):re=this.options.writer,re.document(this,re.filterOptions(le))},ae.prototype.toString=function(re){return this.options.writer.document(this,this.options.writer.filterOptions(re))},ae.prototype.createElement=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createTextNode=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createComment=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createCDATASection=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createProcessingInstruction=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createAttribute=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createEntityReference=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByTagName=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.importNode=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createElementNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createAttributeNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByTagNameNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementById=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.adoptNode=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.renameNode=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByClassName=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createEvent=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createNodeIterator=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createTreeWalker=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae}(ye)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee,ye,Me,ve,xe,fe,z,ee,ae,re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne,Be,ze,Qe={}.hasOwnProperty;ze=ie("./Utility"),Ne=ze.isObject,je=ze.isFunction,Be=ze.isPlainObject,Ae=ze.getValue,ge=ie("./NodeType"),ae=ie("./XMLDocument"),le=ie("./XMLElement"),Ee=ie("./XMLCData"),ye=ie("./XMLComment"),pe=ie("./XMLRaw"),Fe=ie("./XMLText"),ue=ie("./XMLProcessingInstruction"),z=ie("./XMLDeclaration"),ee=ie("./XMLDocType"),Me=ie("./XMLDTDAttList"),xe=ie("./XMLDTDEntity"),ve=ie("./XMLDTDElement"),fe=ie("./XMLDTDNotation"),Pe=ie("./XMLAttribute"),Ce=ie("./XMLStringifier"),Te=ie("./XMLStringWriter"),ce=ie("./WriterState"),_e.exports=re=function(){function $e(Ye,at,ut){var ht;this.name="?xml",this.type=ge.Document,Ye||(Ye={}),ht={},Ye.writer?Be(Ye.writer)&&(ht=Ye.writer,Ye.writer=new Te):Ye.writer=new Te,this.options=Ye,this.writer=Ye.writer,this.writerOptions=this.writer.filterOptions(ht),this.stringify=new Ce(Ye),this.onDataCallback=at||function(){},this.onEndCallback=ut||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return $e.prototype.createChildNode=function(Ye){var at,ut,ht,Ct,et,it,St,bt;switch(Ye.type){case ge.CData:this.cdata(Ye.value);break;case ge.Comment:this.comment(Ye.value);break;case ge.Element:ht={},St=Ye.attribs;for(ut in St)Qe.call(St,ut)&&(at=St[ut],ht[ut]=at.value);this.node(Ye.name,ht);break;case ge.Dummy:this.dummy();break;case ge.Raw:this.raw(Ye.value);break;case ge.Text:this.text(Ye.value);break;case ge.ProcessingInstruction:this.instruction(Ye.target,Ye.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Ye.constructor.name)}for(bt=Ye.children,et=0,it=bt.length;et<it;et++)Ct=bt[et],this.createChildNode(Ct),Ct.type===ge.Element&&this.up();return this},$e.prototype.dummy=function(){return this},$e.prototype.node=function(Ye,at,ut){var ht;if(Ye==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(Ye));return this.openCurrent(),Ye=Ae(Ye),at==null&&(at={}),at=Ae(at),Ne(at)||(ht=[at,ut],ut=ht[0],at=ht[1]),this.currentNode=new le(this,Ye,at),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,ut!=null&&this.text(ut),this},$e.prototype.element=function(Ye,at,ut){var ht,Ct,et,it,St,bt;if(this.currentNode&&this.currentNode.type===ge.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Ye)||Ne(Ye)||je(Ye))for(it=this.options.noValidation,this.options.noValidation=!0,bt=new ae(this.options).element("TEMP_ROOT"),bt.element(Ye),this.options.noValidation=it,St=bt.children,Ct=0,et=St.length;Ct<et;Ct++)ht=St[Ct],this.createChildNode(ht),ht.type===ge.Element&&this.up();else this.node(Ye,at,ut);return this},$e.prototype.attribute=function(Ye,at){var ut,ht;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Ye));if(Ye!=null&&(Ye=Ae(Ye)),Ne(Ye))for(ut in Ye)Qe.call(Ye,ut)&&(ht=Ye[ut],this.attribute(ut,ht));else je(at)&&(at=at.apply()),this.options.keepNullAttributes&&at==null?this.currentNode.attribs[Ye]=new Pe(this,Ye,""):at!=null&&(this.currentNode.attribs[Ye]=new Pe(this,Ye,at));return this},$e.prototype.text=function(Ye){var at;return this.openCurrent(),at=new Fe(this,Ye),this.onData(this.writer.text(at,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},$e.prototype.cdata=function(Ye){var at;return this.openCurrent(),at=new Ee(this,Ye),this.onData(this.writer.cdata(at,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},$e.prototype.comment=function(Ye){var at;return this.openCurrent(),at=new ye(this,Ye),this.onData(this.writer.comment(at,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},$e.prototype.raw=function(Ye){var at;return this.openCurrent(),at=new pe(this,Ye),this.onData(this.writer.raw(at,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},$e.prototype.instruction=function(Ye,at){var ut,ht,Ct,et,it;if(this.openCurrent(),Ye!=null&&(Ye=Ae(Ye)),at!=null&&(at=Ae(at)),Array.isArray(Ye))for(ut=0,et=Ye.length;ut<et;ut++)ht=Ye[ut],this.instruction(ht);else if(Ne(Ye))for(ht in Ye)Qe.call(Ye,ht)&&(Ct=Ye[ht],this.instruction(ht,Ct));else je(at)&&(at=at.apply()),it=new ue(this,Ye,at),this.onData(this.writer.processingInstruction(it,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},$e.prototype.declaration=function(Ye,at,ut){var ht;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ht=new z(this,Ye,at,ut),this.onData(this.writer.declaration(ht,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},$e.prototype.doctype=function(Ye,at,ut){if(this.openCurrent(),Ye==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new ee(this,at,ut),this.currentNode.rootNodeName=Ye,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},$e.prototype.dtdElement=function(Ye,at){var ut;return this.openCurrent(),ut=new ve(this,Ye,at),this.onData(this.writer.dtdElement(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},$e.prototype.attList=function(Ye,at,ut,ht,Ct){var et;return this.openCurrent(),et=new Me(this,Ye,at,ut,ht,Ct),this.onData(this.writer.dtdAttList(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},$e.prototype.entity=function(Ye,at){var ut;return this.openCurrent(),ut=new xe(this,!1,Ye,at),this.onData(this.writer.dtdEntity(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},$e.prototype.pEntity=function(Ye,at){var ut;return this.openCurrent(),ut=new xe(this,!0,Ye,at),this.onData(this.writer.dtdEntity(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},$e.prototype.notation=function(Ye,at){var ut;return this.openCurrent(),ut=new fe(this,Ye,at),this.onData(this.writer.dtdNotation(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},$e.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},$e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},$e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},$e.prototype.openNode=function(Ye){var at,ut,ht,Ct;if(!Ye.isOpen){if(!this.root&&this.currentLevel===0&&Ye.type===ge.Element&&(this.root=Ye),ut="",Ye.type===ge.Element){this.writerOptions.state=ce.OpenTag,ut=this.writer.indent(Ye,this.writerOptions,this.currentLevel)+"<"+Ye.name,Ct=Ye.attribs;for(ht in Ct)Qe.call(Ct,ht)&&(at=Ct[ht],ut+=this.writer.attribute(at,this.writerOptions,this.currentLevel));ut+=(Ye.children?">":"/>")+this.writer.endline(Ye,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.InsideTag}else this.writerOptions.state=ce.OpenTag,ut=this.writer.indent(Ye,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Ye.rootNodeName,Ye.pubID&&Ye.sysID?ut+=' PUBLIC "'+Ye.pubID+'" "'+Ye.sysID+'"':Ye.sysID&&(ut+=' SYSTEM "'+Ye.sysID+'"'),Ye.children?(ut+=" [",this.writerOptions.state=ce.InsideTag):(this.writerOptions.state=ce.CloseTag,ut+=">"),ut+=this.writer.endline(Ye,this.writerOptions,this.currentLevel);return this.onData(ut,this.currentLevel),Ye.isOpen=!0}},$e.prototype.closeNode=function(Ye){var at;if(!Ye.isClosed)return at="",this.writerOptions.state=ce.CloseTag,Ye.type===ge.Element?at=this.writer.indent(Ye,this.writerOptions,this.currentLevel)+"</"+Ye.name+">"+this.writer.endline(Ye,this.writerOptions,this.currentLevel):at=this.writer.indent(Ye,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Ye,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.None,this.onData(at,this.currentLevel),Ye.isClosed=!0},$e.prototype.onData=function(Ye,at){return this.documentStarted=!0,this.onDataCallback(Ye,at+1)},$e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},$e.prototype.debugInfo=function(Ye){return Ye==null?"":"node: <"+Ye+">"},$e.prototype.ele=function(){return this.element.apply(this,arguments)},$e.prototype.nod=function(Ye,at,ut){return this.node(Ye,at,ut)},$e.prototype.txt=function(Ye){return this.text(Ye)},$e.prototype.dat=function(Ye){return this.cdata(Ye)},$e.prototype.com=function(Ye){return this.comment(Ye)},$e.prototype.ins=function(Ye,at){return this.instruction(Ye,at)},$e.prototype.dec=function(Ye,at,ut){return this.declaration(Ye,at,ut)},$e.prototype.dtd=function(Ye,at,ut){return this.doctype(Ye,at,ut)},$e.prototype.e=function(Ye,at,ut){return this.element(Ye,at,ut)},$e.prototype.n=function(Ye,at,ut){return this.node(Ye,at,ut)},$e.prototype.t=function(Ye){return this.text(Ye)},$e.prototype.d=function(Ye){return this.cdata(Ye)},$e.prototype.c=function(Ye){return this.comment(Ye)},$e.prototype.r=function(Ye){return this.raw(Ye)},$e.prototype.i=function(Ye,at){return this.instruction(Ye,at)},$e.prototype.att=function(){return this.currentNode&&this.currentNode.type===ge.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},$e.prototype.a=function(){return this.currentNode&&this.currentNode.type===ge.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},$e.prototype.ent=function(Ye,at){return this.entity(Ye,at)},$e.prototype.pent=function(Ye,at){return this.pEntity(Ye,at)},$e.prototype.not=function(Ye,at){return this.notation(Ye,at)},$e}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee=function(Me,ve){for(var xe in ve)ye.call(ve,xe)&&(Me[xe]=ve[xe]);function fe(){this.constructor=Me}return fe.prototype=ve.prototype,Me.prototype=new fe,Me.__super__=ve.prototype,Me},ye={}.hasOwnProperty;Pe=ie("./XMLNode"),ge=ie("./NodeType"),_e.exports=ce=function(Me){Ee(ve,Me);function ve(xe){ve.__super__.constructor.call(this,xe),this.type=ge.Dummy}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return""},ve}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee,ye,Me,ve,xe,fe,z=function(ae,re){for(var le in re)ee.call(re,le)&&(ae[le]=re[le]);function ue(){this.constructor=ae}return ue.prototype=re.prototype,ae.prototype=new ue,ae.__super__=re.prototype,ae},ee={}.hasOwnProperty;fe=ie("./Utility"),xe=fe.isObject,ve=fe.isFunction,Me=fe.getValue,ye=ie("./XMLNode"),ge=ie("./NodeType"),ce=ie("./XMLAttribute"),Ee=ie("./XMLNamedNodeMap"),_e.exports=Pe=function(ae){z(re,ae);function re(le,ue,pe){var Te,Ce,Fe,Ae;if(re.__super__.constructor.call(this,le),ue==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ue),this.type=ge.Element,this.attribs={},this.schemaTypeInfo=null,pe!=null&&this.attribute(pe),le.type===ge.Document&&(this.isRoot=!0,this.documentObject=le,le.rootObject=this,le.children)){for(Ae=le.children,Ce=0,Fe=Ae.length;Ce<Fe;Ce++)if(Te=Ae[Ce],Te.type===ge.DocType){Te.name=this.name;break}}}return Object.defineProperty(re.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(re.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(re.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(re.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(re.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new Ee(this.attribs)),this.attributeMap}}),re.prototype.clone=function(){var le,ue,pe,Te;pe=Object.create(this),pe.isRoot&&(pe.documentObject=null),pe.attribs={},Te=this.attribs;for(ue in Te)ee.call(Te,ue)&&(le=Te[ue],pe.attribs[ue]=le.clone());return pe.children=[],this.children.forEach(function(Ce){var Fe;return Fe=Ce.clone(),Fe.parent=pe,pe.children.push(Fe)}),pe},re.prototype.attribute=function(le,ue){var pe,Te;if(le!=null&&(le=Me(le)),xe(le))for(pe in le)ee.call(le,pe)&&(Te=le[pe],this.attribute(pe,Te));else ve(ue)&&(ue=ue.apply()),this.options.keepNullAttributes&&ue==null?this.attribs[le]=new ce(this,le,""):ue!=null&&(this.attribs[le]=new ce(this,le,ue));return this},re.prototype.removeAttribute=function(le){var ue,pe,Te;if(le==null)throw new Error("Missing attribute name. "+this.debugInfo());if(le=Me(le),Array.isArray(le))for(pe=0,Te=le.length;pe<Te;pe++)ue=le[pe],delete this.attribs[ue];else delete this.attribs[le];return this},re.prototype.toString=function(le){return this.options.writer.element(this,this.options.writer.filterOptions(le))},re.prototype.att=function(le,ue){return this.attribute(le,ue)},re.prototype.a=function(le,ue){return this.attribute(le,ue)},re.prototype.getAttribute=function(le){return this.attribs.hasOwnProperty(le)?this.attribs[le].value:null},re.prototype.setAttribute=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNode=function(le){return this.attribs.hasOwnProperty(le)?this.attribs[le]:null},re.prototype.setAttributeNode=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.removeAttributeNode=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setAttributeNS=function(le,ue,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.removeAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNodeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setAttributeNodeNS=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagNameNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.hasAttribute=function(le){return this.attribs.hasOwnProperty(le)},re.prototype.hasAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setIdAttribute=function(le,ue){return this.attribs.hasOwnProperty(le)?this.attribs[le].isId:ue},re.prototype.setIdAttributeNS=function(le,ue,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setIdAttributeNode=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagNameNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByClassName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.isEqualNode=function(le){var ue,pe,Te;if(!re.__super__.isEqualNode.apply(this,arguments).isEqualNode(le)||le.namespaceURI!==this.namespaceURI||le.prefix!==this.prefix||le.localName!==this.localName||le.attribs.length!==this.attribs.length)return!1;for(ue=pe=0,Te=this.attribs.length-1;0<=Te?pe<=Te:pe>=Te;ue=0<=Te?++pe:--pe)if(!this.attribs[ue].isEqualNode(le.attribs[ue]))return!1;return!0},re}(ye)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(ie,_e,Ie){(function(){var ge;_e.exports=ge=function(){function ce(Pe){this.nodes=Pe}return Object.defineProperty(ce.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),ce.prototype.clone=function(){return this.nodes=null},ce.prototype.getNamedItem=function(Pe){return this.nodes[Pe]},ce.prototype.setNamedItem=function(Pe){var Ee;return Ee=this.nodes[Pe.nodeName],this.nodes[Pe.nodeName]=Pe,Ee||null},ce.prototype.removeNamedItem=function(Pe){var Ee;return Ee=this.nodes[Pe],delete this.nodes[Pe],Ee||null},ce.prototype.item=function(Pe){return this.nodes[Object.keys(this.nodes)[Pe]]||null},ce.prototype.getNamedItemNS=function(Pe,Ee){throw new Error("This DOM method is not implemented.")},ce.prototype.setNamedItemNS=function(Pe){throw new Error("This DOM method is not implemented.")},ce.prototype.removeNamedItemNS=function(Pe,Ee){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],450:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee,ye,Me,ve,xe,fe,z,ee,ae,re,le,ue,pe,Te,Ce,Fe,Ae={}.hasOwnProperty;Fe=ie("./Utility"),Ce=Fe.isObject,Te=Fe.isFunction,pe=Fe.isEmpty,ue=Fe.getValue,xe=null,Pe=null,Ee=null,ye=null,Me=null,re=null,le=null,ae=null,ve=null,ce=null,ee=null,fe=null,ge=null,_e.exports=z=function(){function je(Ne){this.parent=Ne,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,xe||(xe=ie("./XMLElement"),Pe=ie("./XMLCData"),Ee=ie("./XMLComment"),ye=ie("./XMLDeclaration"),Me=ie("./XMLDocType"),re=ie("./XMLRaw"),le=ie("./XMLText"),ae=ie("./XMLProcessingInstruction"),ve=ie("./XMLDummy"),ce=ie("./NodeType"),ee=ie("./XMLNodeList"),fe=ie("./XMLNamedNodeMap"),ge=ie("./DocumentPosition"))}return Object.defineProperty(je.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(je.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(je.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(je.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(je.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ee(this.children)),this.childNodeList}}),Object.defineProperty(je.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(je.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(je.prototype,"previousSibling",{get:function(){var Ne;return Ne=this.parent.children.indexOf(this),this.parent.children[Ne-1]||null}}),Object.defineProperty(je.prototype,"nextSibling",{get:function(){var Ne;return Ne=this.parent.children.indexOf(this),this.parent.children[Ne+1]||null}}),Object.defineProperty(je.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(je.prototype,"textContent",{get:function(){var Ne,Be,ze,Qe,$e;if(this.nodeType===ce.Element||this.nodeType===ce.DocumentFragment){for($e="",Qe=this.children,Be=0,ze=Qe.length;Be<ze;Be++)Ne=Qe[Be],Ne.textContent&&($e+=Ne.textContent);return $e}else return null},set:function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),je.prototype.setParent=function(Ne){var Be,ze,Qe,$e,Ye;for(this.parent=Ne,Ne&&(this.options=Ne.options,this.stringify=Ne.stringify),$e=this.children,Ye=[],ze=0,Qe=$e.length;ze<Qe;ze++)Be=$e[ze],Ye.push(Be.setParent(this));return Ye},je.prototype.element=function(Ne,Be,ze){var Qe,$e,Ye,at,ut,ht,Ct,et,it,St,bt;if(ht=null,Be===null&&ze==null&&(it=[{},null],Be=it[0],ze=it[1]),Be==null&&(Be={}),Be=ue(Be),Ce(Be)||(St=[Be,ze],ze=St[0],Be=St[1]),Ne!=null&&(Ne=ue(Ne)),Array.isArray(Ne))for(Ye=0,Ct=Ne.length;Ye<Ct;Ye++)$e=Ne[Ye],ht=this.element($e);else if(Te(Ne))ht=this.element(Ne.apply());else if(Ce(Ne)){for(ut in Ne)if(Ae.call(Ne,ut))if(bt=Ne[ut],Te(bt)&&(bt=bt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ut.indexOf(this.stringify.convertAttKey)===0)ht=this.attribute(ut.substr(this.stringify.convertAttKey.length),bt);else if(!this.options.separateArrayItems&&Array.isArray(bt)&&pe(bt))ht=this.dummy();else if(Ce(bt)&&pe(bt))ht=this.element(ut);else if(!this.options.keepNullNodes&&bt==null)ht=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(bt))for(at=0,et=bt.length;at<et;at++)$e=bt[at],Qe={},Qe[ut]=$e,ht=this.element(Qe);else Ce(bt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ut.indexOf(this.stringify.convertTextKey)===0?ht=this.element(bt):(ht=this.element(ut),ht.element(bt)):ht=this.element(ut,bt)}else!this.options.keepNullNodes&&ze===null?ht=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ne.indexOf(this.stringify.convertTextKey)===0?ht=this.text(ze):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ne.indexOf(this.stringify.convertCDataKey)===0?ht=this.cdata(ze):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ne.indexOf(this.stringify.convertCommentKey)===0?ht=this.comment(ze):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ne.indexOf(this.stringify.convertRawKey)===0?ht=this.raw(ze):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ne.indexOf(this.stringify.convertPIKey)===0?ht=this.instruction(Ne.substr(this.stringify.convertPIKey.length),ze):ht=this.node(Ne,Be,ze);if(ht==null)throw new Error("Could not create any elements with: "+Ne+". "+this.debugInfo());return ht},je.prototype.insertBefore=function(Ne,Be,ze){var Qe,$e,Ye,at,ut;if(Ne!=null&&Ne.type)return Ye=Ne,at=Be,Ye.setParent(this),at?($e=children.indexOf(at),ut=children.splice($e),children.push(Ye),Array.prototype.push.apply(children,ut)):children.push(Ye),Ye;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ne));return $e=this.parent.children.indexOf(this),ut=this.parent.children.splice($e),Qe=this.parent.element(Ne,Be,ze),Array.prototype.push.apply(this.parent.children,ut),Qe},je.prototype.insertAfter=function(Ne,Be,ze){var Qe,$e,Ye;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ne));return $e=this.parent.children.indexOf(this),Ye=this.parent.children.splice($e+1),Qe=this.parent.element(Ne,Be,ze),Array.prototype.push.apply(this.parent.children,Ye),Qe},je.prototype.remove=function(){var Ne,Be;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Ne=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Ne,Ne-Ne+1].concat(Be=[])),this.parent},je.prototype.node=function(Ne,Be,ze){var Qe,$e;return Ne!=null&&(Ne=ue(Ne)),Be||(Be={}),Be=ue(Be),Ce(Be)||($e=[Be,ze],ze=$e[0],Be=$e[1]),Qe=new xe(this,Ne,Be),ze!=null&&Qe.text(ze),this.children.push(Qe),Qe},je.prototype.text=function(Ne){var Be;return Ce(Ne)&&this.element(Ne),Be=new le(this,Ne),this.children.push(Be),this},je.prototype.cdata=function(Ne){var Be;return Be=new Pe(this,Ne),this.children.push(Be),this},je.prototype.comment=function(Ne){var Be;return Be=new Ee(this,Ne),this.children.push(Be),this},je.prototype.commentBefore=function(Ne){var Be,ze,Qe;return ze=this.parent.children.indexOf(this),Qe=this.parent.children.splice(ze),Be=this.parent.comment(Ne),Array.prototype.push.apply(this.parent.children,Qe),this},je.prototype.commentAfter=function(Ne){var Be,ze,Qe;return ze=this.parent.children.indexOf(this),Qe=this.parent.children.splice(ze+1),Be=this.parent.comment(Ne),Array.prototype.push.apply(this.parent.children,Qe),this},je.prototype.raw=function(Ne){var Be;return Be=new re(this,Ne),this.children.push(Be),this},je.prototype.dummy=function(){var Ne;return Ne=new ve(this),Ne},je.prototype.instruction=function(Ne,Be){var ze,Qe,$e,Ye,at;if(Ne!=null&&(Ne=ue(Ne)),Be!=null&&(Be=ue(Be)),Array.isArray(Ne))for(Ye=0,at=Ne.length;Ye<at;Ye++)ze=Ne[Ye],this.instruction(ze);else if(Ce(Ne))for(ze in Ne)Ae.call(Ne,ze)&&(Qe=Ne[ze],this.instruction(ze,Qe));else Te(Be)&&(Be=Be.apply()),$e=new ae(this,Ne,Be),this.children.push($e);return this},je.prototype.instructionBefore=function(Ne,Be){var ze,Qe,$e;return Qe=this.parent.children.indexOf(this),$e=this.parent.children.splice(Qe),ze=this.parent.instruction(Ne,Be),Array.prototype.push.apply(this.parent.children,$e),this},je.prototype.instructionAfter=function(Ne,Be){var ze,Qe,$e;return Qe=this.parent.children.indexOf(this),$e=this.parent.children.splice(Qe+1),ze=this.parent.instruction(Ne,Be),Array.prototype.push.apply(this.parent.children,$e),this},je.prototype.declaration=function(Ne,Be,ze){var Qe,$e;return Qe=this.document(),$e=new ye(Qe,Ne,Be,ze),Qe.children.length===0?Qe.children.unshift($e):Qe.children[0].type===ce.Declaration?Qe.children[0]=$e:Qe.children.unshift($e),Qe.root()||Qe},je.prototype.dtd=function(Ne,Be){var ze,Qe,$e,Ye,at,ut,ht,Ct,et,it;for(Qe=this.document(),$e=new Me(Qe,Ne,Be),et=Qe.children,Ye=at=0,ht=et.length;at<ht;Ye=++at)if(ze=et[Ye],ze.type===ce.DocType)return Qe.children[Ye]=$e,$e;for(it=Qe.children,Ye=ut=0,Ct=it.length;ut<Ct;Ye=++ut)if(ze=it[Ye],ze.isRoot)return Qe.children.splice(Ye,0,$e),$e;return Qe.children.push($e),$e},je.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},je.prototype.root=function(){var Ne;for(Ne=this;Ne;){if(Ne.type===ce.Document)return Ne.rootObject;if(Ne.isRoot)return Ne;Ne=Ne.parent}},je.prototype.document=function(){var Ne;for(Ne=this;Ne;){if(Ne.type===ce.Document)return Ne;Ne=Ne.parent}},je.prototype.end=function(Ne){return this.document().end(Ne)},je.prototype.prev=function(){var Ne;if(Ne=this.parent.children.indexOf(this),Ne<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Ne-1]},je.prototype.next=function(){var Ne;if(Ne=this.parent.children.indexOf(this),Ne===-1||Ne===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Ne+1]},je.prototype.importDocument=function(Ne){var Be;return Be=Ne.root().clone(),Be.parent=this,Be.isRoot=!1,this.children.push(Be),this},je.prototype.debugInfo=function(Ne){var Be,ze;return Ne=Ne||this.name,Ne==null&&!((Be=this.parent)!=null&&Be.name)?"":Ne==null?"parent: <"+this.parent.name+">":(ze=this.parent)!=null&&ze.name?"node: <"+Ne+">, parent: <"+this.parent.name+">":"node: <"+Ne+">"},je.prototype.ele=function(Ne,Be,ze){return this.element(Ne,Be,ze)},je.prototype.nod=function(Ne,Be,ze){return this.node(Ne,Be,ze)},je.prototype.txt=function(Ne){return this.text(Ne)},je.prototype.dat=function(Ne){return this.cdata(Ne)},je.prototype.com=function(Ne){return this.comment(Ne)},je.prototype.ins=function(Ne,Be){return this.instruction(Ne,Be)},je.prototype.doc=function(){return this.document()},je.prototype.dec=function(Ne,Be,ze){return this.declaration(Ne,Be,ze)},je.prototype.e=function(Ne,Be,ze){return this.element(Ne,Be,ze)},je.prototype.n=function(Ne,Be,ze){return this.node(Ne,Be,ze)},je.prototype.t=function(Ne){return this.text(Ne)},je.prototype.d=function(Ne){return this.cdata(Ne)},je.prototype.c=function(Ne){return this.comment(Ne)},je.prototype.r=function(Ne){return this.raw(Ne)},je.prototype.i=function(Ne,Be){return this.instruction(Ne,Be)},je.prototype.u=function(){return this.up()},je.prototype.importXMLBuilder=function(Ne){return this.importDocument(Ne)},je.prototype.replaceChild=function(Ne,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.removeChild=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.appendChild=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.hasChildNodes=function(){return this.children.length!==0},je.prototype.cloneNode=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.isSupported=function(Ne,Be){return!0},je.prototype.hasAttributes=function(){return this.attribs.length!==0},je.prototype.compareDocumentPosition=function(Ne){var Be,ze;return Be=this,Be===Ne?0:this.document()!==Ne.document()?(ze=ge.Disconnected|ge.ImplementationSpecific,Math.random()<.5?ze|=ge.Preceding:ze|=ge.Following,ze):Be.isAncestor(Ne)?ge.Contains|ge.Preceding:Be.isDescendant(Ne)?ge.Contains|ge.Following:Be.isPreceding(Ne)?ge.Preceding:ge.Following},je.prototype.isSameNode=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.lookupPrefix=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.isDefaultNamespace=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.lookupNamespaceURI=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.isEqualNode=function(Ne){var Be,ze,Qe;if(Ne.nodeType!==this.nodeType||Ne.children.length!==this.children.length)return!1;for(Be=ze=0,Qe=this.children.length-1;0<=Qe?ze<=Qe:ze>=Qe;Be=0<=Qe?++ze:--ze)if(!this.children[Be].isEqualNode(Ne.children[Be]))return!1;return!0},je.prototype.getFeature=function(Ne,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.setUserData=function(Ne,Be,ze){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.getUserData=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.contains=function(Ne){return Ne?Ne===this||this.isDescendant(Ne):!1},je.prototype.isDescendant=function(Ne){var Be,ze,Qe,$e,Ye;for(Ye=this.children,Qe=0,$e=Ye.length;Qe<$e;Qe++)if(Be=Ye[Qe],Ne===Be||(ze=Be.isDescendant(Ne),ze))return!0;return!1},je.prototype.isAncestor=function(Ne){return Ne.isDescendant(this)},je.prototype.isPreceding=function(Ne){var Be,ze;return Be=this.treePosition(Ne),ze=this.treePosition(this),Be===-1||ze===-1?!1:Be<ze},je.prototype.isFollowing=function(Ne){var Be,ze;return Be=this.treePosition(Ne),ze=this.treePosition(this),Be===-1||ze===-1?!1:Be>ze},je.prototype.treePosition=function(Ne){var Be,ze;return ze=0,Be=!1,this.foreachTreeNode(this.document(),function(Qe){if(ze++,!Be&&Qe===Ne)return Be=!0}),Be?ze:-1},je.prototype.foreachTreeNode=function(Ne,Be){var ze,Qe,$e,Ye,at;for(Ne||(Ne=this.document()),Ye=Ne.children,Qe=0,$e=Ye.length;Qe<$e;Qe++){if(ze=Ye[Qe],at=Be(ze))return at;if(at=this.foreachTreeNode(ze,Be),at)return at}},je}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(ie,_e,Ie){(function(){var ge;_e.exports=ge=function(){function ce(Pe){this.nodes=Pe}return Object.defineProperty(ce.prototype,"length",{get:function(){return this.nodes.length||0}}),ce.prototype.clone=function(){return this.nodes=null},ce.prototype.item=function(Pe){return this.nodes[Pe]||null},ce}()}).call(this)},{}],452:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee=function(Me,ve){for(var xe in ve)ye.call(ve,xe)&&(Me[xe]=ve[xe]);function fe(){this.constructor=Me}return fe.prototype=ve.prototype,Me.prototype=new fe,Me.__super__=ve.prototype,Me},ye={}.hasOwnProperty;ge=ie("./NodeType"),ce=ie("./XMLCharacterData"),_e.exports=Pe=function(Me){Ee(ve,Me);function ve(xe,fe,z){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=ge.ProcessingInstruction,this.target=this.stringify.insTarget(fe),this.name=this.target,z&&(this.value=this.stringify.insValue(z))}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(xe))},ve.prototype.isEqualNode=function(xe){return!(!ve.__super__.isEqualNode.apply(this,arguments).isEqualNode(xe)||xe.target!==this.target)},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee=function(Me,ve){for(var xe in ve)ye.call(ve,xe)&&(Me[xe]=ve[xe]);function fe(){this.constructor=Me}return fe.prototype=ve.prototype,Me.prototype=new fe,Me.__super__=ve.prototype,Me},ye={}.hasOwnProperty;ge=ie("./NodeType"),ce=ie("./XMLNode"),_e.exports=Pe=function(Me){Ee(ve,Me);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=ge.Raw,this.value=this.stringify.raw(fe)}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.raw(this,this.options.writer.filterOptions(xe))},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee,ye=function(ve,xe){for(var fe in xe)Me.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},Me={}.hasOwnProperty;ge=ie("./NodeType"),Ee=ie("./XMLWriterBase"),ce=ie("./WriterState"),_e.exports=Pe=function(ve){ye(xe,ve);function xe(fe,z){this.stream=fe,xe.__super__.constructor.call(this,z)}return xe.prototype.endline=function(fe,z,ee){return fe.isLastRootNode&&z.state===ce.CloseTag?"":xe.__super__.endline.call(this,fe,z,ee)},xe.prototype.document=function(fe,z){var ee,ae,re,le,ue,pe,Te,Ce,Fe;for(Te=fe.children,ae=re=0,ue=Te.length;re<ue;ae=++re)ee=Te[ae],ee.isLastRootNode=ae===fe.children.length-1;for(z=this.filterOptions(z),Ce=fe.children,Fe=[],le=0,pe=Ce.length;le<pe;le++)ee=Ce[le],Fe.push(this.writeChildNode(ee,z,0));return Fe},xe.prototype.attribute=function(fe,z,ee){return this.stream.write(xe.__super__.attribute.call(this,fe,z,ee))},xe.prototype.cdata=function(fe,z,ee){return this.stream.write(xe.__super__.cdata.call(this,fe,z,ee))},xe.prototype.comment=function(fe,z,ee){return this.stream.write(xe.__super__.comment.call(this,fe,z,ee))},xe.prototype.declaration=function(fe,z,ee){return this.stream.write(xe.__super__.declaration.call(this,fe,z,ee))},xe.prototype.docType=function(fe,z,ee){var ae,re,le,ue;if(ee||(ee=0),this.openNode(fe,z,ee),z.state=ce.OpenTag,this.stream.write(this.indent(fe,z,ee)),this.stream.write("<!DOCTYPE "+fe.root().name),fe.pubID&&fe.sysID?this.stream.write(' PUBLIC "'+fe.pubID+'" "'+fe.sysID+'"'):fe.sysID&&this.stream.write(' SYSTEM "'+fe.sysID+'"'),fe.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(fe,z,ee)),z.state=ce.InsideTag,ue=fe.children,re=0,le=ue.length;re<le;re++)ae=ue[re],this.writeChildNode(ae,z,ee+1);z.state=ce.CloseTag,this.stream.write("]")}return z.state=ce.CloseTag,this.stream.write(z.spaceBeforeSlash+">"),this.stream.write(this.endline(fe,z,ee)),z.state=ce.None,this.closeNode(fe,z,ee)},xe.prototype.element=function(fe,z,ee){var ae,re,le,ue,pe,Te,Ce,Fe,Ae,je;ee||(ee=0),this.openNode(fe,z,ee),z.state=ce.OpenTag,this.stream.write(this.indent(fe,z,ee)+"<"+fe.name),Ae=fe.attribs;for(Ce in Ae)Me.call(Ae,Ce)&&(ae=Ae[Ce],this.attribute(ae,z,ee));if(le=fe.children.length,ue=le===0?null:fe.children[0],le===0||fe.children.every(function(Ne){return(Ne.type===ge.Text||Ne.type===ge.Raw)&&Ne.value===""}))z.allowEmpty?(this.stream.write(">"),z.state=ce.CloseTag,this.stream.write("</"+fe.name+">")):(z.state=ce.CloseTag,this.stream.write(z.spaceBeforeSlash+"/>"));else if(z.pretty&&le===1&&(ue.type===ge.Text||ue.type===ge.Raw)&&ue.value!=null)this.stream.write(">"),z.state=ce.InsideTag,z.suppressPrettyCount++,Fe=!0,this.writeChildNode(ue,z,ee+1),z.suppressPrettyCount--,Fe=!1,z.state=ce.CloseTag,this.stream.write("</"+fe.name+">");else{for(this.stream.write(">"+this.endline(fe,z,ee)),z.state=ce.InsideTag,je=fe.children,pe=0,Te=je.length;pe<Te;pe++)re=je[pe],this.writeChildNode(re,z,ee+1);z.state=ce.CloseTag,this.stream.write(this.indent(fe,z,ee)+"</"+fe.name+">")}return this.stream.write(this.endline(fe,z,ee)),z.state=ce.None,this.closeNode(fe,z,ee)},xe.prototype.processingInstruction=function(fe,z,ee){return this.stream.write(xe.__super__.processingInstruction.call(this,fe,z,ee))},xe.prototype.raw=function(fe,z,ee){return this.stream.write(xe.__super__.raw.call(this,fe,z,ee))},xe.prototype.text=function(fe,z,ee){return this.stream.write(xe.__super__.text.call(this,fe,z,ee))},xe.prototype.dtdAttList=function(fe,z,ee){return this.stream.write(xe.__super__.dtdAttList.call(this,fe,z,ee))},xe.prototype.dtdElement=function(fe,z,ee){return this.stream.write(xe.__super__.dtdElement.call(this,fe,z,ee))},xe.prototype.dtdEntity=function(fe,z,ee){return this.stream.write(xe.__super__.dtdEntity.call(this,fe,z,ee))},xe.prototype.dtdNotation=function(fe,z,ee){return this.stream.write(xe.__super__.dtdNotation.call(this,fe,z,ee))},xe}(Ee)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(ie,_e,Ie){(function(){var ge,ce,Pe=function(ye,Me){for(var ve in Me)Ee.call(Me,ve)&&(ye[ve]=Me[ve]);function xe(){this.constructor=ye}return xe.prototype=Me.prototype,ye.prototype=new xe,ye.__super__=Me.prototype,ye},Ee={}.hasOwnProperty;ce=ie("./XMLWriterBase"),_e.exports=ge=function(ye){Pe(Me,ye);function Me(ve){Me.__super__.constructor.call(this,ve)}return Me.prototype.document=function(ve,xe){var fe,z,ee,ae,re;for(xe=this.filterOptions(xe),ae="",re=ve.children,z=0,ee=re.length;z<ee;z++)fe=re[z],ae+=this.writeChildNode(fe,xe,0);return xe.pretty&&ae.slice(-xe.newline.length)===xe.newline&&(ae=ae.slice(0,-xe.newline.length)),ae},Me}(ce)}).call(this)},{"./XMLWriterBase":458}],456:[function(ie,_e,Ie){(function(){var ge,ce=function(Ee,ye){return function(){return Ee.apply(ye,arguments)}},Pe={}.hasOwnProperty;_e.exports=ge=function(){function Ee(ye){this.assertLegalName=ce(this.assertLegalName,this),this.assertLegalChar=ce(this.assertLegalChar,this);var Me,ve,xe;ye||(ye={}),this.options=ye,this.options.version||(this.options.version="1.0"),ve=ye.stringify||{};for(Me in ve)Pe.call(ve,Me)&&(xe=ve[Me],this[Me]=xe)}return Ee.prototype.name=function(ye){return this.options.noValidation?ye:this.assertLegalName(""+ye||"")},Ee.prototype.text=function(ye){return this.options.noValidation?ye:this.assertLegalChar(this.textEscape(""+ye||""))},Ee.prototype.cdata=function(ye){return this.options.noValidation?ye:(ye=""+ye||"",ye=ye.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ye))},Ee.prototype.comment=function(ye){if(this.options.noValidation)return ye;if(ye=""+ye||"",ye.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+ye);return this.assertLegalChar(ye)},Ee.prototype.raw=function(ye){return this.options.noValidation?ye:""+ye||""},Ee.prototype.attValue=function(ye){return this.options.noValidation?ye:this.assertLegalChar(this.attEscape(ye=""+ye||""))},Ee.prototype.insTarget=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ee.prototype.insValue=function(ye){if(this.options.noValidation)return ye;if(ye=""+ye||"",ye.match(/\?>/))throw new Error("Invalid processing instruction value: "+ye);return this.assertLegalChar(ye)},Ee.prototype.xmlVersion=function(ye){if(this.options.noValidation)return ye;if(ye=""+ye||"",!ye.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+ye);return ye},Ee.prototype.xmlEncoding=function(ye){if(this.options.noValidation)return ye;if(ye=""+ye||"",!ye.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+ye);return this.assertLegalChar(ye)},Ee.prototype.xmlStandalone=function(ye){return this.options.noValidation?ye:ye?"yes":"no"},Ee.prototype.dtdPubID=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ee.prototype.dtdSysID=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ee.prototype.dtdElementValue=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ee.prototype.dtdAttType=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ee.prototype.dtdAttDefault=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ee.prototype.dtdEntityValue=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ee.prototype.dtdNData=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ee.prototype.convertAttKey="@",Ee.prototype.convertPIKey="?",Ee.prototype.convertTextKey="#text",Ee.prototype.convertCDataKey="#cdata",Ee.prototype.convertCommentKey="#comment",Ee.prototype.convertRawKey="#raw",Ee.prototype.assertLegalChar=function(ye){var Me,ve;if(this.options.noValidation)return ye;if(Me="",this.options.version==="1.0"){if(Me=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ve=ye.match(Me))throw new Error("Invalid character in string: "+ye+" at index "+ve.index)}else if(this.options.version==="1.1"&&(Me=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ve=ye.match(Me)))throw new Error("Invalid character in string: "+ye+" at index "+ve.index);return ye},Ee.prototype.assertLegalName=function(ye){var Me;if(this.options.noValidation)return ye;if(this.assertLegalChar(ye),Me=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!ye.match(Me))throw new Error("Invalid character in name");return ye},Ee.prototype.textEscape=function(ye){var Me;return this.options.noValidation?ye:(Me=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ye.replace(Me,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},Ee.prototype.attEscape=function(ye){var Me;return this.options.noValidation?ye:(Me=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ye.replace(Me,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},Ee}()}).call(this)},{}],457:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee=function(Me,ve){for(var xe in ve)ye.call(ve,xe)&&(Me[xe]=ve[xe]);function fe(){this.constructor=Me}return fe.prototype=ve.prototype,Me.prototype=new fe,Me.__super__=ve.prototype,Me},ye={}.hasOwnProperty;ge=ie("./NodeType"),ce=ie("./XMLCharacterData"),_e.exports=Pe=function(Me){Ee(ve,Me);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=ge.Text,this.value=this.stringify.text(fe)}return Object.defineProperty(ve.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(ve.prototype,"wholeText",{get:function(){var xe,fe,z;for(z="",fe=this.previousSibling;fe;)z=fe.data+z,fe=fe.previousSibling;for(z+=this.data,xe=this.nextSibling;xe;)z=z+xe.data,xe=xe.nextSibling;return z}}),ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.text(this,this.options.writer.filterOptions(xe))},ve.prototype.splitText=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.replaceWholeText=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee,ye,Me,ve,xe,fe,z,ee,ae,re,le,ue,pe,Te,Ce={}.hasOwnProperty;Te=ie("./Utility").assign,ge=ie("./NodeType"),fe=ie("./XMLDeclaration"),z=ie("./XMLDocType"),Pe=ie("./XMLCData"),Ee=ie("./XMLComment"),ae=ie("./XMLElement"),le=ie("./XMLRaw"),ue=ie("./XMLText"),re=ie("./XMLProcessingInstruction"),ee=ie("./XMLDummy"),ye=ie("./XMLDTDAttList"),Me=ie("./XMLDTDElement"),ve=ie("./XMLDTDEntity"),xe=ie("./XMLDTDNotation"),ce=ie("./WriterState"),_e.exports=pe=function(){function Fe(Ae){var je,Ne,Be;Ae||(Ae={}),this.options=Ae,Ne=Ae.writer||{};for(je in Ne)Ce.call(Ne,je)&&(Be=Ne[je],this["_"+je]=this[je],this[je]=Be)}return Fe.prototype.filterOptions=function(Ae){var je,Ne,Be,ze,Qe,$e,Ye,at;return Ae||(Ae={}),Ae=Te({},this.options,Ae),je={writer:this},je.pretty=Ae.pretty||!1,je.allowEmpty=Ae.allowEmpty||!1,je.indent=(Ne=Ae.indent)!=null?Ne:" ",je.newline=(Be=Ae.newline)!=null?Be:`
|
|
|
`,je.offset=(ze=Ae.offset)!=null?ze:0,je.dontPrettyTextNodes=(Qe=($e=Ae.dontPrettyTextNodes)!=null?$e:Ae.dontprettytextnodes)!=null?Qe:0,je.spaceBeforeSlash=(Ye=(at=Ae.spaceBeforeSlash)!=null?at:Ae.spacebeforeslash)!=null?Ye:"",je.spaceBeforeSlash===!0&&(je.spaceBeforeSlash=" "),je.suppressPrettyCount=0,je.user={},je.state=ce.None,je},Fe.prototype.indent=function(Ae,je,Ne){var Be;return!je.pretty||je.suppressPrettyCount?"":je.pretty&&(Be=(Ne||0)+je.offset+1,Be>0)?new Array(Be).join(je.indent):""},Fe.prototype.endline=function(Ae,je,Ne){return!je.pretty||je.suppressPrettyCount?"":je.newline},Fe.prototype.attribute=function(Ae,je,Ne){var Be;return this.openAttribute(Ae,je,Ne),Be=" "+Ae.name+'="'+Ae.value+'"',this.closeAttribute(Ae,je,Ne),Be},Fe.prototype.cdata=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=ce.OpenTag,Be=this.indent(Ae,je,Ne)+"<![CDATA[",je.state=ce.InsideTag,Be+=Ae.value,je.state=ce.CloseTag,Be+="]]>"+this.endline(Ae,je,Ne),je.state=ce.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.comment=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=ce.OpenTag,Be=this.indent(Ae,je,Ne)+"<!-- ",je.state=ce.InsideTag,Be+=Ae.value,je.state=ce.CloseTag,Be+=" -->"+this.endline(Ae,je,Ne),je.state=ce.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.declaration=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=ce.OpenTag,Be=this.indent(Ae,je,Ne)+"<?xml",je.state=ce.InsideTag,Be+=' version="'+Ae.version+'"',Ae.encoding!=null&&(Be+=' encoding="'+Ae.encoding+'"'),Ae.standalone!=null&&(Be+=' standalone="'+Ae.standalone+'"'),je.state=ce.CloseTag,Be+=je.spaceBeforeSlash+"?>",Be+=this.endline(Ae,je,Ne),je.state=ce.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.docType=function(Ae,je,Ne){var Be,ze,Qe,$e,Ye;if(Ne||(Ne=0),this.openNode(Ae,je,Ne),je.state=ce.OpenTag,$e=this.indent(Ae,je,Ne),$e+="<!DOCTYPE "+Ae.root().name,Ae.pubID&&Ae.sysID?$e+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&($e+=' SYSTEM "'+Ae.sysID+'"'),Ae.children.length>0){for($e+=" [",$e+=this.endline(Ae,je,Ne),je.state=ce.InsideTag,Ye=Ae.children,ze=0,Qe=Ye.length;ze<Qe;ze++)Be=Ye[ze],$e+=this.writeChildNode(Be,je,Ne+1);je.state=ce.CloseTag,$e+="]"}return je.state=ce.CloseTag,$e+=je.spaceBeforeSlash+">",$e+=this.endline(Ae,je,Ne),je.state=ce.None,this.closeNode(Ae,je,Ne),$e},Fe.prototype.element=function(Ae,je,Ne){var Be,ze,Qe,$e,Ye,at,ut,ht,Ct,et,it,St,bt,Pt;Ne||(Ne=0),et=!1,it="",this.openNode(Ae,je,Ne),je.state=ce.OpenTag,it+=this.indent(Ae,je,Ne)+"<"+Ae.name,St=Ae.attribs;for(Ct in St)Ce.call(St,Ct)&&(Be=St[Ct],it+=this.attribute(Be,je,Ne));if(Qe=Ae.children.length,$e=Qe===0?null:Ae.children[0],Qe===0||Ae.children.every(function(gt){return(gt.type===ge.Text||gt.type===ge.Raw)&>.value===""}))je.allowEmpty?(it+=">",je.state=ce.CloseTag,it+="</"+Ae.name+">"+this.endline(Ae,je,Ne)):(je.state=ce.CloseTag,it+=je.spaceBeforeSlash+"/>"+this.endline(Ae,je,Ne));else if(je.pretty&&Qe===1&&($e.type===ge.Text||$e.type===ge.Raw)&&$e.value!=null)it+=">",je.state=ce.InsideTag,je.suppressPrettyCount++,et=!0,it+=this.writeChildNode($e,je,Ne+1),je.suppressPrettyCount--,et=!1,je.state=ce.CloseTag,it+="</"+Ae.name+">"+this.endline(Ae,je,Ne);else{if(je.dontPrettyTextNodes){for(bt=Ae.children,Ye=0,ut=bt.length;Ye<ut;Ye++)if(ze=bt[Ye],(ze.type===ge.Text||ze.type===ge.Raw)&&ze.value!=null){je.suppressPrettyCount++,et=!0;break}}for(it+=">"+this.endline(Ae,je,Ne),je.state=ce.InsideTag,Pt=Ae.children,at=0,ht=Pt.length;at<ht;at++)ze=Pt[at],it+=this.writeChildNode(ze,je,Ne+1);je.state=ce.CloseTag,it+=this.indent(Ae,je,Ne)+"</"+Ae.name+">",et&&je.suppressPrettyCount--,it+=this.endline(Ae,je,Ne),je.state=ce.None}return this.closeNode(Ae,je,Ne),it},Fe.prototype.writeChildNode=function(Ae,je,Ne){switch(Ae.type){case ge.CData:return this.cdata(Ae,je,Ne);case ge.Comment:return this.comment(Ae,je,Ne);case ge.Element:return this.element(Ae,je,Ne);case ge.Raw:return this.raw(Ae,je,Ne);case ge.Text:return this.text(Ae,je,Ne);case ge.ProcessingInstruction:return this.processingInstruction(Ae,je,Ne);case ge.Dummy:return"";case ge.Declaration:return this.declaration(Ae,je,Ne);case ge.DocType:return this.docType(Ae,je,Ne);case ge.AttributeDeclaration:return this.dtdAttList(Ae,je,Ne);case ge.ElementDeclaration:return this.dtdElement(Ae,je,Ne);case ge.EntityDeclaration:return this.dtdEntity(Ae,je,Ne);case ge.NotationDeclaration:return this.dtdNotation(Ae,je,Ne);default:throw new Error("Unknown XML node type: "+Ae.constructor.name)}},Fe.prototype.processingInstruction=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=ce.OpenTag,Be=this.indent(Ae,je,Ne)+"<?",je.state=ce.InsideTag,Be+=Ae.target,Ae.value&&(Be+=" "+Ae.value),je.state=ce.CloseTag,Be+=je.spaceBeforeSlash+"?>",Be+=this.endline(Ae,je,Ne),je.state=ce.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.raw=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=ce.OpenTag,Be=this.indent(Ae,je,Ne),je.state=ce.InsideTag,Be+=Ae.value,je.state=ce.CloseTag,Be+=this.endline(Ae,je,Ne),je.state=ce.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.text=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=ce.OpenTag,Be=this.indent(Ae,je,Ne),je.state=ce.InsideTag,Be+=Ae.value,je.state=ce.CloseTag,Be+=this.endline(Ae,je,Ne),je.state=ce.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.dtdAttList=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=ce.OpenTag,Be=this.indent(Ae,je,Ne)+"<!ATTLIST",je.state=ce.InsideTag,Be+=" "+Ae.elementName+" "+Ae.attributeName+" "+Ae.attributeType,Ae.defaultValueType!=="#DEFAULT"&&(Be+=" "+Ae.defaultValueType),Ae.defaultValue&&(Be+=' "'+Ae.defaultValue+'"'),je.state=ce.CloseTag,Be+=je.spaceBeforeSlash+">"+this.endline(Ae,je,Ne),je.state=ce.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.dtdElement=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=ce.OpenTag,Be=this.indent(Ae,je,Ne)+"<!ELEMENT",je.state=ce.InsideTag,Be+=" "+Ae.name+" "+Ae.value,je.state=ce.CloseTag,Be+=je.spaceBeforeSlash+">"+this.endline(Ae,je,Ne),je.state=ce.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.dtdEntity=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=ce.OpenTag,Be=this.indent(Ae,je,Ne)+"<!ENTITY",je.state=ce.InsideTag,Ae.pe&&(Be+=" %"),Be+=" "+Ae.name,Ae.value?Be+=' "'+Ae.value+'"':(Ae.pubID&&Ae.sysID?Be+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(Be+=' SYSTEM "'+Ae.sysID+'"'),Ae.nData&&(Be+=" NDATA "+Ae.nData)),je.state=ce.CloseTag,Be+=je.spaceBeforeSlash+">"+this.endline(Ae,je,Ne),je.state=ce.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.dtdNotation=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=ce.OpenTag,Be=this.indent(Ae,je,Ne)+"<!NOTATION",je.state=ce.InsideTag,Be+=" "+Ae.name,Ae.pubID&&Ae.sysID?Be+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.pubID?Be+=' PUBLIC "'+Ae.pubID+'"':Ae.sysID&&(Be+=' SYSTEM "'+Ae.sysID+'"'),je.state=ce.CloseTag,Be+=je.spaceBeforeSlash+">"+this.endline(Ae,je,Ne),je.state=ce.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.openNode=function(Ae,je,Ne){},Fe.prototype.closeNode=function(Ae,je,Ne){},Fe.prototype.openAttribute=function(Ae,je,Ne){},Fe.prototype.closeAttribute=function(Ae,je,Ne){},Fe}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(ie,_e,Ie){(function(){var ge,ce,Pe,Ee,ye,Me,ve,xe,fe,z;z=ie("./Utility"),xe=z.assign,fe=z.isFunction,Pe=ie("./XMLDOMImplementation"),Ee=ie("./XMLDocument"),ye=ie("./XMLDocumentCB"),ve=ie("./XMLStringWriter"),Me=ie("./XMLStreamWriter"),ge=ie("./NodeType"),ce=ie("./WriterState"),_e.exports.create=function(ee,ae,re,le){var ue,pe;if(ee==null)throw new Error("Root element needs a name.");return le=xe({},ae,re,le),ue=new Ee(le),pe=ue.element(ee),le.headless||(ue.declaration(le),(le.pubID!=null||le.sysID!=null)&&ue.dtd(le)),pe},_e.exports.begin=function(ee,ae,re){var le;return fe(ee)&&(le=[ee,ae],ae=le[0],re=le[1],ee={}),ae?new ye(ee,ae,re):new Ee(ee)},_e.exports.stringWriter=function(ee){return new ve(ee)},_e.exports.streamWriter=function(ee,ae){return new Me(ee,ae)},_e.exports.implementation=new Pe,_e.exports.nodeType=ge,_e.exports.writerState=ce}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(ie,_e,Ie){_e.exports=ce;var ge=Object.prototype.hasOwnProperty;function ce(){for(var Pe={},Ee=0;Ee<arguments.length;Ee++){var ye=arguments[Ee];for(var Me in ye)ge.call(ye,Me)&&(Pe[Me]=ye[Me])}return Pe}},{}],461:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.array.fill.js"),ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.regexp.to-string.js"),ie("core-js/modules/es.array.join.js"),ie("core-js/modules/es.array.slice.js");var ge=ie("buffer").Buffer,ce=ie("./sha"),Pe=ie("./md5"),Ee={sha1:ce,md5:Pe},ye=64,Me=ge.alloc(ye);Me.fill(0);function ve(z,ee,ae){ge.isBuffer(ee)||(ee=ge.from(ee)),ge.isBuffer(ae)||(ae=ge.from(ae)),ee.length>ye?ee=z(ee):ee.length<ye&&(ee=ge.concat([ee,Me],ye));for(var re=ge.alloc(ye),le=ge.alloc(ye),ue=0;ue<ye;ue++)re[ue]=ee[ue]^54,le[ue]=ee[ue]^92;var pe=z(ge.concat([re,ae]));return z(ge.concat([le,pe]))}function xe(z,ee){z=z||"sha1";var ae=Ee[z],re=[],le=0;return ae||fe("algorithm:",z,"is not yet supported"),{update:function(pe){return ge.isBuffer(pe)||(pe=ge.from(pe)),re.push(pe),le+=pe.length,this},digest:function(pe){var Te=ge.concat(re),Ce=ee?ve(ae,ee,Te):ae(Te);return re=null,pe?Ce.toString(pe):Ce}}}function fe(){var z=[].slice.call(arguments).join(" ");throw new Error([z,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}Ie.createHash=function(z){return xe(z)},Ie.createHmac=function(z,ee){return xe(z,ee)},Ie.createCredentials=function(){fe("sorry,createCredentials is not implemented yet")},Ie.createCipher=function(){fe("sorry,createCipher is not implemented yet")},Ie.createCipheriv=function(){fe("sorry,createCipheriv is not implemented yet")},Ie.createDecipher=function(){fe("sorry,createDecipher is not implemented yet")},Ie.createDecipheriv=function(){fe("sorry,createDecipheriv is not implemented yet")},Ie.createSign=function(){fe("sorry,createSign is not implemented yet")},Ie.createVerify=function(){fe("sorry,createVerify is not implemented yet")},Ie.createDiffieHellman=function(){fe("sorry,createDiffieHellman is not implemented yet")},Ie.pbkdf2=function(){fe("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.array.fill.js"),ie("core-js/modules/es.array.concat.js");var ge=ie("buffer").Buffer,ce=4,Pe=ge.alloc(ce);Pe.fill(0);var Ee=8;function ye(xe,fe){if(xe.length%ce!==0){var z=xe.length+(ce-xe.length%ce);xe=ge.concat([xe,Pe],z)}for(var ee=[],ae=fe?xe.readInt32BE:xe.readInt32LE,re=0;re<xe.length;re+=ce)ee.push(ae.call(xe,re));return ee}function Me(xe,fe,z){for(var ee=ge.alloc(fe),ae=z?ee.writeInt32BE:ee.writeInt32LE,re=0;re<xe.length;re++)ae.call(ee,xe[re],re*4,!0);return ee}function ve(xe,fe,z,ee){ge.isBuffer(xe)||(xe=ge.from(xe));var ae=fe(ye(xe,ee),xe.length*Ee);return Me(ae,z,ee)}_e.exports={hash:ve}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(ie,_e,Ie){"use strict";var ge=ie("./helpers");function ce(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function Pe(ee,ae){ee[ae>>5]|=128<<ae%32,ee[(ae+64>>>9<<4)+14]=ae;for(var re=1732584193,le=-271733879,ue=-1732584194,pe=271733878,Te=0;Te<ee.length;Te+=16){var Ce=re,Fe=le,Ae=ue,je=pe;re=ye(re,le,ue,pe,ee[Te+0],7,-680876936),pe=ye(pe,re,le,ue,ee[Te+1],12,-389564586),ue=ye(ue,pe,re,le,ee[Te+2],17,606105819),le=ye(le,ue,pe,re,ee[Te+3],22,-1044525330),re=ye(re,le,ue,pe,ee[Te+4],7,-176418897),pe=ye(pe,re,le,ue,ee[Te+5],12,1200080426),ue=ye(ue,pe,re,le,ee[Te+6],17,-1473231341),le=ye(le,ue,pe,re,ee[Te+7],22,-45705983),re=ye(re,le,ue,pe,ee[Te+8],7,1770035416),pe=ye(pe,re,le,ue,ee[Te+9],12,-1958414417),ue=ye(ue,pe,re,le,ee[Te+10],17,-42063),le=ye(le,ue,pe,re,ee[Te+11],22,-1990404162),re=ye(re,le,ue,pe,ee[Te+12],7,1804603682),pe=ye(pe,re,le,ue,ee[Te+13],12,-40341101),ue=ye(ue,pe,re,le,ee[Te+14],17,-1502002290),le=ye(le,ue,pe,re,ee[Te+15],22,1236535329),re=Me(re,le,ue,pe,ee[Te+1],5,-165796510),pe=Me(pe,re,le,ue,ee[Te+6],9,-1069501632),ue=Me(ue,pe,re,le,ee[Te+11],14,643717713),le=Me(le,ue,pe,re,ee[Te+0],20,-373897302),re=Me(re,le,ue,pe,ee[Te+5],5,-701558691),pe=Me(pe,re,le,ue,ee[Te+10],9,38016083),ue=Me(ue,pe,re,le,ee[Te+15],14,-660478335),le=Me(le,ue,pe,re,ee[Te+4],20,-405537848),re=Me(re,le,ue,pe,ee[Te+9],5,568446438),pe=Me(pe,re,le,ue,ee[Te+14],9,-1019803690),ue=Me(ue,pe,re,le,ee[Te+3],14,-187363961),le=Me(le,ue,pe,re,ee[Te+8],20,1163531501),re=Me(re,le,ue,pe,ee[Te+13],5,-1444681467),pe=Me(pe,re,le,ue,ee[Te+2],9,-51403784),ue=Me(ue,pe,re,le,ee[Te+7],14,1735328473),le=Me(le,ue,pe,re,ee[Te+12],20,-1926607734),re=ve(re,le,ue,pe,ee[Te+5],4,-378558),pe=ve(pe,re,le,ue,ee[Te+8],11,-2022574463),ue=ve(ue,pe,re,le,ee[Te+11],16,1839030562),le=ve(le,ue,pe,re,ee[Te+14],23,-35309556),re=ve(re,le,ue,pe,ee[Te+1],4,-1530992060),pe=ve(pe,re,le,ue,ee[Te+4],11,1272893353),ue=ve(ue,pe,re,le,ee[Te+7],16,-155497632),le=ve(le,ue,pe,re,ee[Te+10],23,-1094730640),re=ve(re,le,ue,pe,ee[Te+13],4,681279174),pe=ve(pe,re,le,ue,ee[Te+0],11,-358537222),ue=ve(ue,pe,re,le,ee[Te+3],16,-722521979),le=ve(le,ue,pe,re,ee[Te+6],23,76029189),re=ve(re,le,ue,pe,ee[Te+9],4,-640364487),pe=ve(pe,re,le,ue,ee[Te+12],11,-421815835),ue=ve(ue,pe,re,le,ee[Te+15],16,530742520),le=ve(le,ue,pe,re,ee[Te+2],23,-995338651),re=xe(re,le,ue,pe,ee[Te+0],6,-198630844),pe=xe(pe,re,le,ue,ee[Te+7],10,1126891415),ue=xe(ue,pe,re,le,ee[Te+14],15,-1416354905),le=xe(le,ue,pe,re,ee[Te+5],21,-57434055),re=xe(re,le,ue,pe,ee[Te+12],6,1700485571),pe=xe(pe,re,le,ue,ee[Te+3],10,-1894986606),ue=xe(ue,pe,re,le,ee[Te+10],15,-1051523),le=xe(le,ue,pe,re,ee[Te+1],21,-2054922799),re=xe(re,le,ue,pe,ee[Te+8],6,1873313359),pe=xe(pe,re,le,ue,ee[Te+15],10,-30611744),ue=xe(ue,pe,re,le,ee[Te+6],15,-1560198380),le=xe(le,ue,pe,re,ee[Te+13],21,1309151649),re=xe(re,le,ue,pe,ee[Te+4],6,-145523070),pe=xe(pe,re,le,ue,ee[Te+11],10,-1120210379),ue=xe(ue,pe,re,le,ee[Te+2],15,718787259),le=xe(le,ue,pe,re,ee[Te+9],21,-343485551),re=fe(re,Ce),le=fe(le,Fe),ue=fe(ue,Ae),pe=fe(pe,je)}return Array(re,le,ue,pe)}function Ee(ee,ae,re,le,ue,pe){return fe(z(fe(fe(ae,ee),fe(le,pe)),ue),re)}function ye(ee,ae,re,le,ue,pe,Te){return Ee(ae&re|~ae&le,ee,ae,ue,pe,Te)}function Me(ee,ae,re,le,ue,pe,Te){return Ee(ae&le|re&~le,ee,ae,ue,pe,Te)}function ve(ee,ae,re,le,ue,pe,Te){return Ee(ae^re^le,ee,ae,ue,pe,Te)}function xe(ee,ae,re,le,ue,pe,Te){return Ee(re^(ae|~le),ee,ae,ue,pe,Te)}function fe(ee,ae){var re=(ee&65535)+(ae&65535),le=(ee>>16)+(ae>>16)+(re>>16);return le<<16|re&65535}function z(ee,ae){return ee<<ae|ee>>>32-ae}_e.exports=function(ae){return ge.hash(ae,Pe,16)}},{"./helpers":462}],464:[function(ie,_e,Ie){"use strict";var ge=ie("./helpers");function ce(ve,xe){ve[xe>>5]|=128<<24-xe%32,ve[(xe+64>>9<<4)+15]=xe;for(var fe=Array(80),z=1732584193,ee=-271733879,ae=-1732584194,re=271733878,le=-1009589776,ue=0;ue<ve.length;ue+=16){for(var pe=z,Te=ee,Ce=ae,Fe=re,Ae=le,je=0;je<80;je++){je<16?fe[je]=ve[ue+je]:fe[je]=Me(fe[je-3]^fe[je-8]^fe[je-14]^fe[je-16],1);var Ne=ye(ye(Me(z,5),Pe(je,ee,ae,re)),ye(ye(le,fe[je]),Ee(je)));le=re,re=ae,ae=Me(ee,30),ee=z,z=Ne}z=ye(z,pe),ee=ye(ee,Te),ae=ye(ae,Ce),re=ye(re,Fe),le=ye(le,Ae)}return Array(z,ee,ae,re,le)}function Pe(ve,xe,fe,z){return ve<20?xe&fe|~xe&z:ve<40?xe^fe^z:ve<60?xe&fe|xe&z|fe&z:xe^fe^z}function Ee(ve){return ve<20?1518500249:ve<40?1859775393:ve<60?-1894007588:-899497514}function ye(ve,xe){var fe=(ve&65535)+(xe&65535),z=(ve>>16)+(xe>>16)+(fe>>16);return z<<16|fe&65535}function Me(ve,xe){return ve<<xe|ve>>>32-xe}_e.exports=function(xe){return ge.hash(xe,ce,20,!0)}},{"./helpers":462}],465:[function(ie,_e,Ie){"use strict";_e.exports=function(){return function(){}}},{}],466:[function(ie,_e,Ie){(function(ge){(function(){"use strict";var ce=ie("@babel/runtime/helpers/interopRequireDefault"),Pe=ce(ie("@babel/runtime/helpers/typeof")),Ee=ie("stream"),ye=Ee.Stream,Me=ie("../lib/common/utils/isArray"),ve=Me.isArray;_e.exports.string=function(z){return typeof z=="string"},_e.exports.array=ve,_e.exports.buffer=ge.isBuffer;function xe(fe){return fe instanceof ye}_e.exports.writableStream=function(z){return xe(z)&&typeof z._write=="function"&&(0,Pe.default)(z._writableState)==="object"}}).call(this)}).call(this,{isBuffer:ie("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(ie,_e,Ie){"use strict";var ge=ie("immediate"),ce=_e.exports={};ce.nextTick=ge,ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={};function Pe(){}ce.on=Pe,ce.addListener=Pe,ce.once=Pe,ce.off=Pe,ce.removeListener=Pe,ce.removeAllListeners=Pe,ce.emit=Pe,ce.prependListener=Pe,ce.prependOnceListener=Pe,ce.listeners=function(Ee){return[]},ce.binding=function(Ee){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(Ee){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0}},{immediate:358}],468:[function(ie,_e,Ie){(function(ge){(function(){"use strict";ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.search.js");var ce=ie("./lib/request"),Pe=ie("./lib/response"),Ee=ie("xtend"),ye=ie("builtin-status-codes"),Me=ie("url"),ve=Ie;ve.request=function(xe,fe){typeof xe=="string"?xe=Me.parse(xe):xe=Ee(xe);var z=ge.location.protocol.search(/^https?:$/)===-1?"http:":"",ee=xe.protocol||z,ae=xe.hostname||xe.host,re=xe.port,le=xe.path||"/";ae&&ae.indexOf(":")!==-1&&(ae="["+ae+"]"),xe.url=(ae?ee+"//"+ae:"")+(re?":"+re:"")+le,xe.method=(xe.method||"GET").toUpperCase(),xe.headers=xe.headers||{};var ue=new ce(xe);return fe&&ue.on("response",fe),ue},ve.get=function(fe,z){var ee=ve.request(fe,z);return ee.end(),ee},ve.ClientRequest=ce,ve.IncomingMessage=Pe.IncomingMessage,ve.Agent=function(){},ve.Agent.defaultMaxSockets=4,ve.globalAgent=new ve.Agent,ve.STATUS_CODES=ye,ve.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(ie,_e,Ie){(function(ge){(function(){"use strict";ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.promise.js"),ie("core-js/modules/es.array-buffer.constructor.js"),ie("core-js/modules/es.array-buffer.slice.js"),ie("core-js/modules/es.array.slice.js"),Ie.fetch=ve(ge.fetch)&&ve(ge.ReadableStream),Ie.writableStream=ve(ge.WritableStream),Ie.abortController=ve(ge.AbortController),Ie.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Ie.blobConstructor=!0}catch(xe){}var ce;function Pe(){if(ce!==void 0)return ce;if(ge.XMLHttpRequest){ce=new ge.XMLHttpRequest;try{ce.open("GET",ge.XDomainRequest?"/":"https://example.com")}catch(xe){ce=null}}else ce=null;return ce}function Ee(xe){var fe=Pe();if(!fe)return!1;try{return fe.responseType=xe,fe.responseType===xe}catch(z){}return!1}var ye=typeof ge.ArrayBuffer!="undefined",Me=ye&&ve(ge.ArrayBuffer.prototype.slice);Ie.arraybuffer=Ie.fetch||ye&&Ee("arraybuffer"),Ie.msstream=!Ie.fetch&&Me&&Ee("ms-stream"),Ie.mozchunkedarraybuffer=!Ie.fetch&&ye&&Ee("moz-chunked-arraybuffer"),Ie.overrideMimeType=Ie.fetch||(Pe()?ve(Pe().overrideMimeType):!1),Ie.vbArray=ve(ge.VBArray);function ve(xe){return typeof xe=="function"}ce=null}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(ie,_e,Ie){(function(ge,ce,Pe){(function(){"use strict";ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.regexp.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.object.keys.js"),ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.array.map.js"),ie("core-js/modules/es.function.name.js"),ie("core-js/modules/es.promise.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.split.js");var Ee=ie("./capability"),ye=ie("inherits"),Me=ie("./response"),ve=ie("readable-stream"),xe=ie("to-arraybuffer"),fe=Me.IncomingMessage,z=Me.readyStates;function ee(ue,pe){return Ee.fetch&&pe?"fetch":Ee.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Ee.msstream?"ms-stream":Ee.arraybuffer&&ue?"arraybuffer":Ee.vbArray&&ue?"text:vbarray":"text"}var ae=_e.exports=function(ue){var pe=this;ve.Writable.call(pe),pe._opts=ue,pe._body=[],pe._headers={},ue.auth&&pe.setHeader("Authorization","Basic "+new Pe(ue.auth).toString("base64")),Object.keys(ue.headers).forEach(function(Fe){pe.setHeader(Fe,ue.headers[Fe])});var Te,Ce=!0;if(ue.mode==="disable-fetch"||"requestTimeout"in ue&&!Ee.abortController)Ce=!1,Te=!0;else if(ue.mode==="prefer-streaming")Te=!1;else if(ue.mode==="allow-wrong-content-type")Te=!Ee.overrideMimeType;else if(!ue.mode||ue.mode==="default"||ue.mode==="prefer-fast")Te=!0;else throw new Error("Invalid value for opts.mode");pe._mode=ee(Te,Ce),pe._fetchTimer=null,pe.on("finish",function(){pe._onFinish()})};ye(ae,ve.Writable),ae.prototype.setHeader=function(ue,pe){var Te=this,Ce=ue.toLowerCase();le.indexOf(Ce)===-1&&(Te._headers[Ce]={name:ue,value:pe})},ae.prototype.getHeader=function(ue){var pe=this._headers[ue.toLowerCase()];return pe?pe.value:null},ae.prototype.removeHeader=function(ue){var pe=this;delete pe._headers[ue.toLowerCase()]},ae.prototype._onFinish=function(){var ue=this;if(!ue._destroyed){var pe=ue._opts,Te=ue._headers,Ce=null;pe.method!=="GET"&&pe.method!=="HEAD"&&(Ee.arraybuffer?Ce=xe(Pe.concat(ue._body)):Ee.blobConstructor?Ce=new ce.Blob(ue._body.map(function(ze){return xe(ze)}),{type:(Te["content-type"]||{}).value||""}):Ce=Pe.concat(ue._body).toString());var Fe=[];if(Object.keys(Te).forEach(function(ze){var Qe=Te[ze].name,$e=Te[ze].value;Array.isArray($e)?$e.forEach(function(Ye){Fe.push([Qe,Ye])}):Fe.push([Qe,$e])}),ue._mode==="fetch"){var Ae=null,je=null;if(Ee.abortController){var Ne=new AbortController;Ae=Ne.signal,ue._fetchAbortController=Ne,"requestTimeout"in pe&&pe.requestTimeout!==0&&(ue._fetchTimer=ce.setTimeout(function(){ue.emit("requestTimeout"),ue._fetchAbortController&&ue._fetchAbortController.abort()},pe.requestTimeout))}ce.fetch(ue._opts.url,{method:ue._opts.method,headers:Fe,body:Ce||void 0,mode:"cors",credentials:pe.withCredentials?"include":"same-origin",signal:Ae}).then(function(ze){ue._fetchResponse=ze,ue._connect()},function(ze){ce.clearTimeout(ue._fetchTimer),ue._destroyed||ue.emit("error",ze)})}else{var Be=ue._xhr=new ce.XMLHttpRequest;try{Be.open(ue._opts.method,ue._opts.url,!0)}catch(ze){ge.nextTick(function(){ue.emit("error",ze)});return}"responseType"in Be&&(Be.responseType=ue._mode.split(":")[0]),"withCredentials"in Be&&(Be.withCredentials=!!pe.withCredentials),ue._mode==="text"&&"overrideMimeType"in Be&&Be.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in pe&&(Be.timeout=pe.requestTimeout,Be.ontimeout=function(){ue.emit("requestTimeout")}),Fe.forEach(function(ze){Be.setRequestHeader(ze[0],ze[1])}),ue._response=null,Be.onreadystatechange=function(){switch(Be.readyState){case z.LOADING:case z.DONE:ue._onXHRProgress();break}},ue._mode==="moz-chunked-arraybuffer"&&(Be.onprogress=function(){ue._onXHRProgress()}),Be.onerror=function(){ue._destroyed||ue.emit("error",new Error("XHR error"))};try{Be.send(Ce)}catch(ze){ge.nextTick(function(){ue.emit("error",ze)});return}}}};function re(ue){try{var pe=ue.status;return pe!==null&&pe!==0}catch(Te){return!1}}ae.prototype._onXHRProgress=function(){var ue=this;!re(ue._xhr)||ue._destroyed||(ue._response||ue._connect(),ue._response._onXHRProgress())},ae.prototype._connect=function(){var ue=this;ue._destroyed||(ue._response=new fe(ue._xhr,ue._fetchResponse,ue._mode,ue._fetchTimer),ue._response.on("error",function(pe){ue.emit("error",pe)}),ue.emit("response",ue._response))},ae.prototype._write=function(ue,pe,Te){var Ce=this;Ce._body.push(ue),Te()},ae.prototype.abort=ae.prototype.destroy=function(){var ue=this;ue._destroyed=!0,ce.clearTimeout(ue._fetchTimer),ue._response&&(ue._response._destroyed=!0),ue._xhr?ue._xhr.abort():ue._fetchAbortController&&ue._fetchAbortController.abort()},ae.prototype.end=function(ue,pe,Te){var Ce=this;typeof ue=="function"&&(Te=ue,ue=void 0),ve.Writable.prototype.end.call(Ce,ue,pe,Te)},ae.prototype.flushHeaders=function(){},ae.prototype.setTimeout=function(){},ae.prototype.setNoDelay=function(){},ae.prototype.setSocketKeepAlive=function(){};var le=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,ie("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{},ie("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(ie,_e,Ie){(function(ge,ce,Pe){(function(){"use strict";ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/web.dom-collections.for-each.js"),ie("core-js/modules/es.promise.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.split.js"),ie("core-js/modules/es.string.match.js"),ie("core-js/modules/es.array.iterator.js"),ie("core-js/modules/es.array-buffer.slice.js"),ie("core-js/modules/es.typed-array.uint8-array.js"),ie("core-js/modules/es.typed-array.copy-within.js"),ie("core-js/modules/es.typed-array.every.js"),ie("core-js/modules/es.typed-array.fill.js"),ie("core-js/modules/es.typed-array.filter.js"),ie("core-js/modules/es.typed-array.find.js"),ie("core-js/modules/es.typed-array.find-index.js"),ie("core-js/modules/es.typed-array.for-each.js"),ie("core-js/modules/es.typed-array.includes.js"),ie("core-js/modules/es.typed-array.index-of.js"),ie("core-js/modules/es.typed-array.iterator.js"),ie("core-js/modules/es.typed-array.join.js"),ie("core-js/modules/es.typed-array.last-index-of.js"),ie("core-js/modules/es.typed-array.map.js"),ie("core-js/modules/es.typed-array.reduce.js"),ie("core-js/modules/es.typed-array.reduce-right.js"),ie("core-js/modules/es.typed-array.reverse.js"),ie("core-js/modules/es.typed-array.set.js"),ie("core-js/modules/es.typed-array.slice.js"),ie("core-js/modules/es.typed-array.some.js"),ie("core-js/modules/es.typed-array.sort.js"),ie("core-js/modules/es.typed-array.subarray.js"),ie("core-js/modules/es.typed-array.to-locale-string.js"),ie("core-js/modules/es.typed-array.to-string.js"),ie("core-js/modules/es.array.slice.js");var Ee=ie("./capability"),ye=ie("inherits"),Me=ie("readable-stream"),ve=Ie.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},xe=Ie.IncomingMessage=function(fe,z,ee,ae){var re=this;if(Me.Readable.call(re),re._mode=ee,re.headers={},re.rawHeaders=[],re.trailers={},re.rawTrailers=[],re.on("end",function(){ge.nextTick(function(){re.emit("close")})}),ee==="fetch"){var le=function Ae(){pe.read().then(function(je){if(!re._destroyed){if(je.done){ce.clearTimeout(ae),re.push(null);return}re.push(new Pe(je.value)),Ae()}}).catch(function(je){ce.clearTimeout(ae),re._destroyed||re.emit("error",je)})};if(re._fetchResponse=z,re.url=z.url,re.statusCode=z.status,re.statusMessage=z.statusText,z.headers.forEach(function(Ae,je){re.headers[je.toLowerCase()]=Ae,re.rawHeaders.push(je,Ae)}),Ee.writableStream){var ue=new WritableStream({write:function(je){return new Promise(function(Ne,Be){re._destroyed?Be():re.push(new Pe(je))?Ne():re._resumeFetch=Ne})},close:function(){ce.clearTimeout(ae),re._destroyed||re.push(null)},abort:function(je){re._destroyed||re.emit("error",je)}});try{z.body.pipeTo(ue).catch(function(Ae){ce.clearTimeout(ae),re._destroyed||re.emit("error",Ae)});return}catch(Ae){}}var pe=z.body.getReader();le()}else{re._xhr=fe,re._pos=0,re.url=fe.responseURL,re.statusCode=fe.status,re.statusMessage=fe.statusText;var Te=fe.getAllResponseHeaders().split(/\r?\n/);if(Te.forEach(function(Ae){var je=Ae.match(/^([^:]+):\s*(.*)/);if(je){var Ne=je[1].toLowerCase();Ne==="set-cookie"?(re.headers[Ne]===void 0&&(re.headers[Ne]=[]),re.headers[Ne].push(je[2])):re.headers[Ne]!==void 0?re.headers[Ne]+=", "+je[2]:re.headers[Ne]=je[2],re.rawHeaders.push(je[1],je[2])}}),re._charset="x-user-defined",!Ee.overrideMimeType){var Ce=re.rawHeaders["mime-type"];if(Ce){var Fe=Ce.match(/;\s*charset=([^;])(;|$)/);Fe&&(re._charset=Fe[1].toLowerCase())}re._charset||(re._charset="utf-8")}}};ye(xe,Me.Readable),xe.prototype._read=function(){var fe=this,z=fe._resumeFetch;z&&(fe._resumeFetch=null,z())},xe.prototype._onXHRProgress=function(){var fe=this,z=fe._xhr,ee=null;switch(fe._mode){case"text:vbarray":if(z.readyState!==ve.DONE)break;try{ee=new ce.VBArray(z.responseBody).toArray()}catch(pe){}if(ee!==null){fe.push(new Pe(ee));break}case"text":try{ee=z.responseText}catch(pe){fe._mode="text:vbarray";break}if(ee.length>fe._pos){var ae=ee.substr(fe._pos);if(fe._charset==="x-user-defined"){for(var re=new Pe(ae.length),le=0;le<ae.length;le++)re[le]=ae.charCodeAt(le)&255;fe.push(re)}else fe.push(ae,fe._charset);fe._pos=ee.length}break;case"arraybuffer":if(z.readyState!==ve.DONE||!z.response)break;ee=z.response,fe.push(new Pe(new Uint8Array(ee)));break;case"moz-chunked-arraybuffer":if(ee=z.response,z.readyState!==ve.LOADING||!ee)break;fe.push(new Pe(new Uint8Array(ee)));break;case"ms-stream":if(ee=z.response,z.readyState!==ve.LOADING)break;var ue=new ce.MSStreamReader;ue.onprogress=function(){ue.result.byteLength>fe._pos&&(fe.push(new Pe(new Uint8Array(ue.result.slice(fe._pos)))),fe._pos=ue.result.byteLength)},ue.onload=function(){fe.push(null)},ue.readAsArrayBuffer(ee);break}fe._xhr.readyState===ve.DONE&&fe._mode!=="ms-stream"&&fe.push(null)}}).call(this)}).call(this,ie("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{},ie("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/helpers/typeof"));ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.search.js"),ie("core-js/modules/es.array.concat.js"),ie("core-js/modules/es.string.split.js"),ie("core-js/modules/es.string.replace.js"),ie("core-js/modules/es.array.join.js"),ie("core-js/modules/es.string.trim.js"),ie("core-js/modules/es.string.match.js"),ie("core-js/modules/es.array.slice.js"),ie("core-js/modules/es.object.keys.js"),ie("core-js/modules/es.array.splice.js");var Pe=ie("punycode"),Ee=ie("./util");Ie.parse=je,Ie.resolve=Be,Ie.resolveObject=ze,Ie.format=Ne,Ie.Url=ye;function ye(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Me=/^([a-z0-9.+-]+:)/i,ve=/:[0-9]*$/,xe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,fe=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],z=["{","}","|","\\","^","`"].concat(fe),ee=["'"].concat(z),ae=["%","/","?",";","#"].concat(ee),re=["/","?","#"],le=255,ue=/^[+a-z0-9A-Z_-]{0,63}$/,pe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Te={javascript:!0,"javascript:":!0},Ce={javascript:!0,"javascript:":!0},Fe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ae=ie("querystring");function je(Qe,$e,Ye){if(Qe&&Ee.isObject(Qe)&&Qe instanceof ye)return Qe;var at=new ye;return at.parse(Qe,$e,Ye),at}ye.prototype.parse=function(Qe,$e,Ye){if(!Ee.isString(Qe))throw new TypeError("Parameter 'url' must be a string, not "+(0,ce.default)(Qe));var at=Qe.indexOf("?"),ut=at!==-1&&at<Qe.indexOf("#")?"?":"#",ht=Qe.split(ut),Ct=/\\/g;ht[0]=ht[0].replace(Ct,"/"),Qe=ht.join(ut);var et=Qe;if(et=et.trim(),!Ye&&Qe.split("#").length===1){var it=xe.exec(et);if(it)return this.path=et,this.href=et,this.pathname=it[1],it[2]?(this.search=it[2],$e?this.query=Ae.parse(this.search.substr(1)):this.query=this.search.substr(1)):$e&&(this.search="",this.query={}),this}var St=Me.exec(et);if(St){St=St[0];var bt=St.toLowerCase();this.protocol=bt,et=et.substr(St.length)}if(Ye||St||et.match(/^\/\/[^@\/]+@[^@\/]+/)){var Pt=et.substr(0,2)==="//";Pt&&!(St&&Ce[St])&&(et=et.substr(2),this.slashes=!0)}if(!Ce[St]&&(Pt||St&&!Fe[St])){for(var gt=-1,dt=0;dt<re.length;dt++){var mt=et.indexOf(re[dt]);mt!==-1&&(gt===-1||mt<gt)&&(gt=mt)}var kt,Et;gt===-1?Et=et.lastIndexOf("@"):Et=et.lastIndexOf("@",gt),Et!==-1&&(kt=et.slice(0,Et),et=et.slice(Et+1),this.auth=decodeURIComponent(kt)),gt=-1;for(var dt=0;dt<ae.length;dt++){var mt=et.indexOf(ae[dt]);mt!==-1&&(gt===-1||mt<gt)&&(gt=mt)}gt===-1&&(gt=et.length),this.host=et.slice(0,gt),et=et.slice(gt),this.parseHost(),this.hostname=this.hostname||"";var Ut=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ut)for(var wt=this.hostname.split("."),dt=0,pt=wt.length;dt<pt;dt++){var tt=wt[dt];if(tt&&!tt.match(ue)){for(var Ze="",we=0,be=tt.length;we<be;we++)tt.charCodeAt(we)>127?Ze+="x":Ze+=tt[we];if(!Ze.match(ue)){var Ke=wt.slice(0,dt),Xe=wt.slice(dt+1),Oe=tt.match(pe);Oe&&(Ke.push(Oe[1]),Xe.unshift(Oe[2])),Xe.length&&(et="/"+Xe.join(".")+et),this.hostname=Ke.join(".");break}}}this.hostname.length>le?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ut||(this.hostname=Pe.toASCII(this.hostname));var Ue=this.port?":"+this.port:"",He=this.hostname||"";this.host=He+Ue,this.href+=this.host,Ut&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),et[0]!=="/"&&(et="/"+et))}if(!Te[bt])for(var dt=0,pt=ee.length;dt<pt;dt++){var Ve=ee[dt];if(et.indexOf(Ve)!==-1){var Je=encodeURIComponent(Ve);Je===Ve&&(Je=escape(Ve)),et=et.split(Ve).join(Je)}}var ct=et.indexOf("#");ct!==-1&&(this.hash=et.substr(ct),et=et.slice(0,ct));var yt=et.indexOf("?");if(yt!==-1?(this.search=et.substr(yt),this.query=et.substr(yt+1),$e&&(this.query=Ae.parse(this.query)),et=et.slice(0,yt)):$e&&(this.search="",this.query={}),et&&(this.pathname=et),Fe[bt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ue=this.pathname||"",ft=this.search||"";this.path=Ue+ft}return this.href=this.format(),this};function Ne(Qe){return Ee.isString(Qe)&&(Qe=je(Qe)),Qe instanceof ye?Qe.format():ye.prototype.format.call(Qe)}ye.prototype.format=function(){var Qe=this.auth||"";Qe&&(Qe=encodeURIComponent(Qe),Qe=Qe.replace(/%3A/i,":"),Qe+="@");var $e=this.protocol||"",Ye=this.pathname||"",at=this.hash||"",ut=!1,ht="";this.host?ut=Qe+this.host:this.hostname&&(ut=Qe+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ut+=":"+this.port)),this.query&&Ee.isObject(this.query)&&Object.keys(this.query).length&&(ht=Ae.stringify(this.query));var Ct=this.search||ht&&"?"+ht||"";return $e&&$e.substr(-1)!==":"&&($e+=":"),this.slashes||(!$e||Fe[$e])&&ut!==!1?(ut="//"+(ut||""),Ye&&Ye.charAt(0)!=="/"&&(Ye="/"+Ye)):ut||(ut=""),at&&at.charAt(0)!=="#"&&(at="#"+at),Ct&&Ct.charAt(0)!=="?"&&(Ct="?"+Ct),Ye=Ye.replace(/[?#]/g,function(et){return encodeURIComponent(et)}),Ct=Ct.replace("#","%23"),$e+ut+Ye+Ct+at};function Be(Qe,$e){return je(Qe,!1,!0).resolve($e)}ye.prototype.resolve=function(Qe){return this.resolveObject(je(Qe,!1,!0)).format()};function ze(Qe,$e){return Qe?je(Qe,!1,!0).resolveObject($e):$e}ye.prototype.resolveObject=function(Qe){if(Ee.isString(Qe)){var $e=new ye;$e.parse(Qe,!1,!0),Qe=$e}for(var Ye=new ye,at=Object.keys(this),ut=0;ut<at.length;ut++){var ht=at[ut];Ye[ht]=this[ht]}if(Ye.hash=Qe.hash,Qe.href==="")return Ye.href=Ye.format(),Ye;if(Qe.slashes&&!Qe.protocol){for(var Ct=Object.keys(Qe),et=0;et<Ct.length;et++){var it=Ct[et];it!=="protocol"&&(Ye[it]=Qe[it])}return Fe[Ye.protocol]&&Ye.hostname&&!Ye.pathname&&(Ye.path=Ye.pathname="/"),Ye.href=Ye.format(),Ye}if(Qe.protocol&&Qe.protocol!==Ye.protocol){if(!Fe[Qe.protocol]){for(var St=Object.keys(Qe),bt=0;bt<St.length;bt++){var Pt=St[bt];Ye[Pt]=Qe[Pt]}return Ye.href=Ye.format(),Ye}if(Ye.protocol=Qe.protocol,!Qe.host&&!Ce[Qe.protocol]){for(var pt=(Qe.pathname||"").split("/");pt.length&&!(Qe.host=pt.shift()););Qe.host||(Qe.host=""),Qe.hostname||(Qe.hostname=""),pt[0]!==""&&pt.unshift(""),pt.length<2&&pt.unshift(""),Ye.pathname=pt.join("/")}else Ye.pathname=Qe.pathname;if(Ye.search=Qe.search,Ye.query=Qe.query,Ye.host=Qe.host||"",Ye.auth=Qe.auth,Ye.hostname=Qe.hostname||Qe.host,Ye.port=Qe.port,Ye.pathname||Ye.search){var gt=Ye.pathname||"",dt=Ye.search||"";Ye.path=gt+dt}return Ye.slashes=Ye.slashes||Qe.slashes,Ye.href=Ye.format(),Ye}var mt=Ye.pathname&&Ye.pathname.charAt(0)==="/",kt=Qe.host||Qe.pathname&&Qe.pathname.charAt(0)==="/",Et=kt||mt||Ye.host&&Qe.pathname,Ut=Et,wt=Ye.pathname&&Ye.pathname.split("/")||[],pt=Qe.pathname&&Qe.pathname.split("/")||[],tt=Ye.protocol&&!Fe[Ye.protocol];if(tt&&(Ye.hostname="",Ye.port=null,Ye.host&&(wt[0]===""?wt[0]=Ye.host:wt.unshift(Ye.host)),Ye.host="",Qe.protocol&&(Qe.hostname=null,Qe.port=null,Qe.host&&(pt[0]===""?pt[0]=Qe.host:pt.unshift(Qe.host)),Qe.host=null),Et=Et&&(pt[0]===""||wt[0]==="")),kt)Ye.host=Qe.host||Qe.host===""?Qe.host:Ye.host,Ye.hostname=Qe.hostname||Qe.hostname===""?Qe.hostname:Ye.hostname,Ye.search=Qe.search,Ye.query=Qe.query,wt=pt;else if(pt.length)wt||(wt=[]),wt.pop(),wt=wt.concat(pt),Ye.search=Qe.search,Ye.query=Qe.query;else if(!Ee.isNullOrUndefined(Qe.search)){if(tt){Ye.hostname=Ye.host=wt.shift();var Ze=Ye.host&&Ye.host.indexOf("@")>0?Ye.host.split("@"):!1;Ze&&(Ye.auth=Ze.shift(),Ye.host=Ye.hostname=Ze.shift())}return Ye.search=Qe.search,Ye.query=Qe.query,(!Ee.isNull(Ye.pathname)||!Ee.isNull(Ye.search))&&(Ye.path=(Ye.pathname?Ye.pathname:"")+(Ye.search?Ye.search:"")),Ye.href=Ye.format(),Ye}if(!wt.length)return Ye.pathname=null,Ye.search?Ye.path="/"+Ye.search:Ye.path=null,Ye.href=Ye.format(),Ye;for(var we=wt.slice(-1)[0],be=(Ye.host||Qe.host||wt.length>1)&&(we==="."||we==="..")||we==="",Ke=0,Xe=wt.length;Xe>=0;Xe--)we=wt[Xe],we==="."?wt.splice(Xe,1):we===".."?(wt.splice(Xe,1),Ke++):Ke&&(wt.splice(Xe,1),Ke--);if(!Et&&!Ut)for(;Ke--;Ke)wt.unshift("..");Et&&wt[0]!==""&&(!wt[0]||wt[0].charAt(0)!=="/")&&wt.unshift(""),be&&wt.join("/").substr(-1)!=="/"&&wt.push("");var Oe=wt[0]===""||wt[0]&&wt[0].charAt(0)==="/";if(tt){Ye.hostname=Ye.host=Oe?"":wt.length?wt.shift():"";var Ze=Ye.host&&Ye.host.indexOf("@")>0?Ye.host.split("@"):!1;Ze&&(Ye.auth=Ze.shift(),Ye.host=Ye.hostname=Ze.shift())}return Et=Et||Ye.host&&wt.length,Et&&!Oe&&wt.unshift(""),wt.length?Ye.pathname=wt.join("/"):(Ye.pathname=null,Ye.path=null),(!Ee.isNull(Ye.pathname)||!Ee.isNull(Ye.search))&&(Ye.path=(Ye.pathname?Ye.pathname:"")+(Ye.search?Ye.search:"")),Ye.auth=Qe.auth||Ye.auth,Ye.slashes=Ye.slashes||Qe.slashes,Ye.href=Ye.format(),Ye},ye.prototype.parseHost=function(){var Qe=this.host,$e=ve.exec(Qe);$e&&($e=$e[0],$e!==":"&&(this.port=$e.substr(1)),Qe=Qe.substr(0,Qe.length-$e.length)),Qe&&(this.hostname=Qe)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(ie,_e,Ie){"use strict";var ge=ie("@babel/runtime/helpers/interopRequireDefault"),ce=ge(ie("@babel/runtime/helpers/typeof"));_e.exports={isString:function(Ee){return typeof Ee=="string"},isObject:function(Ee){return(0,ce.default)(Ee)==="object"&&Ee!==null},isNull:function(Ee){return Ee===null},isNullOrUndefined:function(Ee){return Ee==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(ie,_e,Ie){"use strict";ie("core-js/modules/es.number.constructor.js"),Ie.encodeURIComponent=function(ge){try{return encodeURIComponent(ge)}catch(ce){return ge}},Ie.escape=ie("escape-html"),Ie.timestamp=function(ce){if(ce){var Pe=ce;return typeof Pe=="string"&&(Pe=Number(Pe)),String(ce).length===10&&(Pe*=1e3),new Date(Pe)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(ie,_e,Ie){(function(ge,ce){(function(){"use strict";var Pe=ie("@babel/runtime/helpers/interopRequireDefault"),Ee=Pe(ie("@babel/runtime/helpers/typeof"));ie("core-js/modules/es.string.trim.js"),ie("core-js/modules/es.regexp.exec.js"),ie("core-js/modules/es.string.split.js"),ie("core-js/modules/es.object.to-string.js"),ie("core-js/modules/es.promise.js"),ie("core-js/modules/es.function.name.js"),ie("core-js/modules/es.array.concat.js");var ye=ie("util"),Me=ie("url"),ve=ie("http"),xe=ie("https"),fe=ie("debug")("urllib"),z=ie("humanize-ms"),ee=0,ae=Math.pow(2,31)-10,re=/^https?:\/\//i;function le(Ce,Fe){return Ce===void 0?Fe:Ce}function ue(Ce){return Ce?Ce.split(";")[0].trim().toLowerCase():""}function pe(Ce,Fe){return function(Ae,je,Ne){if(Ae)return Fe(Ae);Ce({data:je,status:Ne.statusCode,headers:Ne.headers,res:Ne})}}Ie.TIMEOUTS=[z("300s"),z("300s")];var Te=["json","text"];Ie.request=function(Fe,Ae,je){return arguments.length===2&&typeof Ae=="function"&&(je=Ae,Ae=null),typeof je=="function"?Ie.requestWithCallback(Fe,Ae,je):new Promise(function(Ne,Be){Ie.requestWithCallback(Fe,Ae,pe(Ne,Be))})},Ie.requestWithCallback=function(Fe,Ae,je){if(!Fe||typeof Fe!="string"&&(0,Ee.default)(Fe)!=="object"){var Ne=ye.format("expect request url to be a string or a http request options, but got %j",Fe);throw new Error(Ne)}arguments.length===2&&typeof Ae=="function"&&(je=Ae,Ae=null),Ae=Ae||{},ee>=ae&&(ee=0);var Be=++ee;Ae.requestUrls=Ae.requestUrls||[];var ze={requestId:Be,url:Fe,args:Ae,ctx:Ae.ctx};Ae.emitter&&Ae.emitter.emit("request",ze),Ae.timeout=Ae.timeout||Ie.TIMEOUTS,Ae.maxRedirects=Ae.maxRedirects||10,Ae.streaming=Ae.streaming||Ae.customResponse;var Qe=Date.now(),$e;typeof Fe=="string"?(re.test(Fe)||(Fe="https://"+Fe),$e=Me.parse(Fe)):$e=Fe;var Ye=(Ae.type||Ae.method||$e.method||"GET").toUpperCase(),at=$e.port||80,ut=ve,ht=le(Ae.agent,Ie.agent),Ct=Ae.fixJSONCtlChars;$e.protocol==="https:"&&(ut=xe,ht=le(Ae.httpsAgent,Ie.httpsAgent),$e.port||(at=443));var et={host:$e.hostname||$e.host||"localhost",path:$e.path||"/",method:Ye,port:at,agent:ht,headers:Ae.headers||{},lookup:Ae.lookup};Array.isArray(Ae.timeout)?et.requestTimeout=Ae.timeout[Ae.timeout.length-1]:typeof Ae.timeout!="undefined"&&(et.requestTimeout=Ae.timeout);var it=Ae.auth||$e.auth;it&&(et.auth=it);var St=Ae.content||Ae.data,bt=Ye==="GET"||Ye==="HEAD"||Ae.dataAsQueryString;if(!Ae.content&&St&&!(typeof St=="string"||ce.isBuffer(St)))if(bt)St=Ae.nestedQuerystring?qs.stringify(St):querystring.stringify(St);else{var Pt=et.headers["Content-Type"]||et.headers["content-type"];Pt||(Ae.contentType==="json"?Pt="application/json":Pt="application/x-www-form-urlencoded",et.headers["Content-Type"]=Pt),ue(Pt)==="application/json"?St=JSON.stringify(St):St=Ae.nestedQuerystring?qs.stringify(St):querystring.stringify(St)}bt&&St&&(et.path+=($e.query?"&":"?")+St,St=null);var gt=0;if(St){var dt=St.length;ce.isBuffer(St)||(dt=ce.byteLength(St)),gt=et.headers["Content-Length"]=dt}Ae.dataType==="json"&&(et.headers.Accept="application/json"),typeof Ae.beforeRequest=="function"&&Ae.beforeRequest(et);var mt=null,kt=null,Et=null,Ut=!1,wt=!1,pt=0,tt=-1,Ze=!1,we="",be="",Ke=null;Ae.timing&&(Ke={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Xe(){mt&&(clearTimeout(mt),mt=null)}function Oe(){kt&&(clearTimeout(kt),kt=null)}function Ue(Ht,tn,It){if(Oe(),!je){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Be,ge.pid,et.method,Fe),Ht&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Be,ge.pid,Ht.name,Ht.message,Ht.stack);return}var Dt=je;je=null;var qt={};It&&(tt=It.statusCode,qt=It.headers);var sn=Date.now()-Qe;Ke&&(Ke.contentDownload=sn),fe("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",sn,pt,tt,et.method,et.host,et.path,wt,Ke);var xn={status:tt,statusCode:tt,headers:qt,size:pt,aborted:Ze,rt:sn,keepAliveSocket:wt,data:tn,requestUrls:Ae.requestUrls,timing:Ke,remoteAddress:we,remotePort:be};if(Ht){var Ln="";ht&&typeof ht.getCurrentStatus=="function"&&(Ln=", agent status: "+JSON.stringify(ht.getCurrentStatus())),Ht.message+=", "+et.method+" "+Fe+" "+tt+" (connected: "+Ut+", keepalive socket: "+wt+Ln+`)
|
|
|
headers: `+JSON.stringify(qt),Ht.data=tn,Ht.path=et.path,Ht.status=tt,Ht.headers=qt,Ht.res=xn}Dt(Ht,tn,Ae.streaming?It:xn),Ae.emitter&&(ze.url=Fe,ze.socket=Vt&&Vt.connection,ze.options=et,ze.size=gt,Ae.emitter.emit("response",{requestId:Be,error:Ht,ctx:Ae.ctx,req:ze,res:xn}))}function He(Ht){var tn=null;if(Ae.followRedirect&&statuses.redirect[Ht.statusCode]){Ae._followRedirectCount=(Ae._followRedirectCount||0)+1;var It=Ht.headers.location;if(!It)tn=new Error("Got statusCode "+Ht.statusCode+" but cannot resolve next location from headers"),tn.name="FollowRedirectError";else if(Ae._followRedirectCount>Ae.maxRedirects)tn=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Fe),tn.name="MaxRedirectError";else{var Dt=Ae.formatRedirectUrl?Ae.formatRedirectUrl(Fe,It):Me.resolve(Fe,It);fe("Request#%d %s: `redirected` from %s to %s",Be,et.path,Fe,Dt),Oe(),Ae.headers&&Ae.headers.Host&&re.test(It)&&(Ae.headers.Host=null);var qt=je;return je=null,Ie.requestWithCallback(Dt,Ae,qt),{redirect:!0,error:null}}}return{redirect:!1,error:tn}}Ae.gzip&&!et.headers["Accept-Encoding"]&&!et.headers["accept-encoding"]&&(et.headers["Accept-Encoding"]="gzip");function Ve(Ht,tn,It){var Dt=Ht.headers["content-encoding"];return It(null,tn,Dt)}var Je=Ae.writeStream;fe("Request#%d %s %s with headers %j, options.path: %s",Be,Ye,Fe,et.headers,et.path),Ae.requestUrls.push(Fe);function ct(Ht){if(Ke&&(Ke.waiting=Date.now()-Qe),fe("Request#%d %s `req response` event emit: status %d, headers: %j",Be,Fe,Ht.statusCode,Ht.headers),Ae.streaming){var tn=He(Ht);if(tn.redirect){Ht.resume();return}return tn.error?(Ht.resume(),Ue(tn.error,null,Ht)):Ue(null,null,Ht)}if(Ht.on("close",function(){fe("Request#%d %s: `res close` event emit, total size %d",Be,Fe,pt)}),Ht.on("error",function(){fe("Request#%d %s: `res error` event emit, total size %d",Be,Fe,pt)}),Ht.on("aborted",function(){Ze=!0,fe("Request#%d %s: `res aborted` event emit, total size %d",Be,Fe,pt)}),Je){var It=He(Ht);if(It.redirect){Ht.resume();return}return It.error?(Ht.resume(),Je.end(),Ue(It.error,null,Ht)):(Ae.consumeWriteStream===!1?Ht.on("end",Ue.bind(null,null,null,Ht)):Je.on("close",function(){fe("Request#%d %s: writeStream close event emitted",Be,Fe),Ue(Et||null,null,Ht)}),Ht.pipe(Je))}var Dt=[];Ht.on("data",function(qt){fe("Request#%d %s: `res data` event emit, size %d",Be,Fe,qt.length),pt+=qt.length,Dt.push(qt)}),Ht.on("end",function(){var qt=ce.concat(Dt,pt);if(fe("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Be,Fe,pt,Ht._dumped),Et)return Ue(Et,qt,Ht);var sn=He(Ht);if(sn.error)return Ue(sn.error,qt,Ht);sn.redirect||Ve(Ht,qt,function(xn,Ln,Zn){if(xn)return Ue(xn,qt,Ht);if(!Zn&&Te.indexOf(Ae.dataType)>=0){try{Ln=decodeBodyByCharset(Ln,Ht)}catch(dr){return fe("decodeBodyByCharset error: %s",dr),Ue(null,Ln,Ht)}if(Ae.dataType==="json")if(pt===0)Ln=null;else{var Xn=parseJSON(Ln,Ct);Xn.error?xn=Xn.error:Ln=Xn.data}}Ze&&fe("Request#%d %s: Remote socket was terminated before `response.end()` was called",Be,Fe),Ue(xn,Ln,Ht)})})}var yt,ft;Array.isArray(Ae.timeout)?(yt=z(Ae.timeout[0]),ft=z(Ae.timeout[1])):yt=ft=z(Ae.timeout),fe("ConnectTimeout: %d, ResponseTimeout: %d",yt,ft);function Mt(){fe("Connect timer ticking, timeout: %d",yt),mt=setTimeout(function(){mt=null,tt===-1&&(tt=-2);var Ht="Connect timeout for "+yt+"ms",tn="ConnectionTimeoutError";Vt.socket||(tn="SocketAssignTimeoutError",Ht+=", working sockets is full"),Et=new Error(Ht),Et.name=tn,Et.requestId=Be,fe("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Be,Fe,Et.name,Ht,Ut),Kt()},yt)}function Jt(){fe("Response timer ticking, timeout: %d",ft),kt=setTimeout(function(){kt=null;var Ht="Response timeout for "+ft+"ms",tn="ResponseTimeoutError";Et=new Error(Ht),Et.name=tn,Et.requestId=Be,fe("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Be,Fe,Et.name,Ht,Ut),Kt()},ft)}var Vt;et.mode=Ae.mode?Ae.mode:"";try{Vt=ut.request(et,ct)}catch(Ht){return Ue(Ht)}typeof window=="undefined"?Mt():Vt.on("requestTimeout",function(){tt===-1&&(tt=-2);var Ht="Connect timeout for "+yt+"ms",tn="ConnectionTimeoutError";Et=new Error(Ht),Et.name=tn,Et.requestId=Be,Kt()});function Kt(){fe("Request#%d %s abort, connected: %s",Be,Fe,Ut),Vt.socket||(Et.noSocket=!0,Ue(Et)),Vt.abort()}return Ke&&Vt.on("finish",function(){Ke.requestSent=Date.now()-Qe}),Vt.once("socket",function(Ht){Ke&&(Ke.queuing=Date.now()-Qe);var tn=Ht.readyState;if(tn==="opening"){Ht.once("lookup",function(It,Dt,qt){fe("Request#%d %s lookup: %s, %s, %s",Be,Fe,It,Dt,qt),Ke&&(Ke.dnslookup=Date.now()-Qe),Dt&&(we=Dt)}),Ht.once("connect",function(){Ke&&(Ke.connected=Date.now()-Qe),Xe(),Jt(),fe("Request#%d %s new socket connected",Be,Fe),Ut=!0,we||(we=Ht.remoteAddress),be=Ht.remotePort});return}fe("Request#%d %s reuse socket connected, readyState: %s",Be,Fe,tn),Ut=!0,wt=!0,we||(we=Ht.remoteAddress),be=Ht.remotePort,Xe(),Jt()}),Vt.on("error",function(Ht){(Ht.name==="Error"||Ht.name==="TypeError")&&(Ht.name=Ut?"ResponseError":"RequestError"),Ht.message+=' (req "error")',fe("Request#%d %s `req error` event emit, %s: %s",Be,Fe,Ht.name,Ht.message),Ue(Et||Ht)}),Je&&Je.once("error",function(Ht){Ht.message+=' (writeStream "error")',Et=Ht,fe("Request#%d %s `writeStream error` event emit, %s: %s",Be,Fe,Ht.name,Ht.message),Kt()}),Ae.stream?(Ae.stream.pipe(Vt),Ae.stream.once("error",function(Ht){Ht.message+=' (stream "error")',Et=Ht,fe("Request#%d %s `readStream error` event emit, %s: %s",Be,Fe,Ht.name,Ht.message),Kt()})):Vt.end(St),Vt.requestId=Be,Vt}}).call(this)}).call(this,ie("_process"),ie("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},50371:function(bn,an){"use strict";function Ge(){const rt=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let vt=1;vt<arguments.length;vt++){const ie=vt<0||arguments.length<=vt?void 0:arguments[vt];ie&&Object.keys(ie).forEach(_e=>{const Ie=ie[_e];Ie!==void 0&&(rt[_e]=Ie)})}return rt}an.Z=Ge},77578:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return rt}});const rt=vt=>vt?typeof vt=="function"?vt():vt:null},13845:function(bn,an,Ge){"use strict";Ge.d(an,{F:function(){return rt},Z:function(){return vt}});function rt(ie){return ie!=null&&ie===ie.window}function vt(ie,_e){var Ie,ge;if(typeof window=="undefined")return 0;const ce=_e?"scrollTop":"scrollLeft";let Pe=0;return rt(ie)?Pe=ie[_e?"pageYOffset":"pageXOffset"]:ie instanceof Document?Pe=ie.documentElement[ce]:(ie instanceof HTMLElement||ie)&&(Pe=ie[ce]),ie&&!rt(ie)&&typeof Pe!="number"&&(Pe=(ge=((Ie=ie.ownerDocument)!==null&&Ie!==void 0?Ie:ie).documentElement)===null||ge===void 0?void 0:ge[ce]),Pe}},56762:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return vt}});var rt=Ge(59301);function vt(){const[,ie]=rt.useReducer(_e=>_e+1,0);return ie}},68031:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return _e}});var rt=Ge(16089);function vt(Ie,ge,ce,Pe){const Ee=ce-ge;return Ie/=Pe/2,Ie<1?Ee/2*Ie*Ie*Ie+ge:Ee/2*((Ie-=2)*Ie*Ie+2)+ge}var ie=Ge(13845);function _e(Ie){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ce=()=>window,callback:Pe,duration:Ee=450}=ge,ye=ce(),Me=(0,ie.Z)(ye,!0),ve=Date.now(),xe=()=>{const z=Date.now()-ve,ee=vt(z>Ee?Ee:z,Me,Ie,Ee);(0,ie.F)(ye)?ye.scrollTo(window.pageXOffset,ee):ye instanceof Document||ye.constructor.name==="HTMLDocument"?ye.documentElement.scrollTop=ee:ye.scrollTop=ee,z<Ee?(0,rt.Z)(xe):typeof Pe=="function"&&Pe()};(0,rt.Z)(xe)}},24905:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return Fe}});var rt=Ge(92310),vt=Ge.n(rt),ie=Ge(5630),_e=Ge(59301),Ie=Ge(36355),ge=Ge(1684),ce=Ge(32441),Ee=_e.createContext(null),ye=Ge(98447),Me=Ge(14088),ve=Ge(4572),xe=function(Ae,je){var Ne={};for(var Be in Ae)Object.prototype.hasOwnProperty.call(Ae,Be)&&je.indexOf(Be)<0&&(Ne[Be]=Ae[Be]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Be=Object.getOwnPropertySymbols(Ae);ze<Be.length;ze++)je.indexOf(Be[ze])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Be[ze])&&(Ne[Be[ze]]=Ae[Be[ze]]);return Ne};const fe=(Ae,je)=>{var Ne;const{prefixCls:Be,className:ze,rootClassName:Qe,children:$e,indeterminate:Ye=!1,style:at,onMouseEnter:ut,onMouseLeave:ht,skipGroup:Ct=!1,disabled:et}=Ae,it=xe(Ae,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:St,direction:bt,checkbox:Pt}=_e.useContext(Ie.E_),gt=_e.useContext(Ee),{isFormItemInput:dt}=_e.useContext(ce.aM),mt=_e.useContext(ge.Z),kt=(Ne=(gt==null?void 0:gt.disabled)||et)!==null&&Ne!==void 0?Ne:mt,Et=_e.useRef(it.value);_e.useEffect(()=>{gt==null||gt.registerValue(it.value)},[]),_e.useEffect(()=>{if(!Ct)return it.value!==Et.current&&(gt==null||gt.cancelValue(Et.current),gt==null||gt.registerValue(it.value),Et.current=it.value),()=>gt==null?void 0:gt.cancelValue(it.value)},[it.value]);const Ut=St("checkbox",Be),[wt,pt]=(0,ye.ZP)(Ut),tt=Object.assign({},it);gt&&!Ct&&(tt.onChange=function(){it.onChange&&it.onChange.apply(it,arguments),gt.toggleOption&>.toggleOption({label:$e,value:it.value})},tt.name=gt.name,tt.checked=gt.value.includes(it.value));const Ze=vt()(`${Ut}-wrapper`,{[`${Ut}-rtl`]:bt==="rtl",[`${Ut}-wrapper-checked`]:tt.checked,[`${Ut}-wrapper-disabled`]:kt,[`${Ut}-wrapper-in-form-item`]:dt},Pt==null?void 0:Pt.className,ze,Qe,pt),we=vt()({[`${Ut}-indeterminate`]:Ye},ve.A,pt),be=Ye?"mixed":void 0;return wt(_e.createElement(Me.Z,{component:"Checkbox",disabled:kt},_e.createElement("label",{className:Ze,style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),at),onMouseEnter:ut,onMouseLeave:ht},_e.createElement(ie.Z,Object.assign({"aria-checked":be},tt,{prefixCls:Ut,className:we,disabled:kt,ref:je})),$e!==void 0&&_e.createElement("span",null,$e))))};var ee=_e.forwardRef(fe),ae=Ge(19127),re=Ge(2738),le=function(Ae,je){var Ne={};for(var Be in Ae)Object.prototype.hasOwnProperty.call(Ae,Be)&&je.indexOf(Be)<0&&(Ne[Be]=Ae[Be]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Be=Object.getOwnPropertySymbols(Ae);ze<Be.length;ze++)je.indexOf(Be[ze])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Be[ze])&&(Ne[Be[ze]]=Ae[Be[ze]]);return Ne};const ue=(Ae,je)=>{const{defaultValue:Ne,children:Be,options:ze=[],prefixCls:Qe,className:$e,rootClassName:Ye,style:at,onChange:ut}=Ae,ht=le(Ae,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ct,direction:et}=_e.useContext(Ie.E_),[it,St]=_e.useState(ht.value||Ne||[]),[bt,Pt]=_e.useState([]);_e.useEffect(()=>{"value"in ht&&St(ht.value||[])},[ht.value]);const gt=_e.useMemo(()=>ze.map(Ke=>typeof Ke=="string"||typeof Ke=="number"?{label:Ke,value:Ke}:Ke),[ze]),dt=Ke=>{Pt(Xe=>Xe.filter(Oe=>Oe!==Ke))},mt=Ke=>{Pt(Xe=>[].concat((0,ae.Z)(Xe),[Ke]))},kt=Ke=>{const Xe=it.indexOf(Ke.value),Oe=(0,ae.Z)(it);Xe===-1?Oe.push(Ke.value):Oe.splice(Xe,1),"value"in ht||St(Oe),ut==null||ut(Oe.filter(Ue=>bt.includes(Ue)).sort((Ue,He)=>{const Ve=gt.findIndex(ct=>ct.value===Ue),Je=gt.findIndex(ct=>ct.value===He);return Ve-Je}))},Et=Ct("checkbox",Qe),Ut=`${Et}-group`,[wt,pt]=(0,ye.ZP)(Et),tt=(0,re.Z)(ht,["value","disabled"]),Ze=ze.length?gt.map(Ke=>_e.createElement(ee,{prefixCls:Et,key:Ke.value.toString(),disabled:"disabled"in Ke?Ke.disabled:ht.disabled,value:Ke.value,checked:it.includes(Ke.value),onChange:Ke.onChange,className:`${Ut}-item`,style:Ke.style,title:Ke.title},Ke.label)):Be,we={toggleOption:kt,value:it,disabled:ht.disabled,name:ht.name,registerValue:mt,cancelValue:dt},be=vt()(Ut,{[`${Ut}-rtl`]:et==="rtl"},$e,Ye,pt);return wt(_e.createElement("div",Object.assign({className:be,style:at},tt,{ref:je}),_e.createElement(Ee.Provider,{value:we},Ze)))},pe=_e.forwardRef(ue);var Te=_e.memo(pe);const Ce=ee;Ce.Group=Te,Ce.__ANT_CHECKBOX=!0;var Fe=Ce},98447:function(bn,an,Ge){"use strict";Ge.d(an,{C2:function(){return Ie}});var rt=Ge(17313),vt=Ge(37613),ie=Ge(83116);const _e=ge=>{const{checkboxCls:ce}=ge,Pe=`${ce}-wrapper`;return[{[`${ce}-group`]:Object.assign(Object.assign({},(0,rt.Wf)(ge)),{display:"inline-flex",flexWrap:"wrap",columnGap:ge.marginXS,[`> ${ge.antCls}-row`]:{flex:1}}),[Pe]:Object.assign(Object.assign({},(0,rt.Wf)(ge)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Pe}`]:{marginInlineStart:0},[`&${Pe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ce]:Object.assign(Object.assign({},(0,rt.Wf)(ge)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ge.borderRadiusSM,alignSelf:"center",[`${ce}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ce}-inner`]:Object.assign({},(0,rt.oN)(ge))},[`${ce}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ge.checkboxSize,height:ge.checkboxSize,direction:"ltr",backgroundColor:ge.colorBgContainer,border:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`,borderRadius:ge.borderRadiusSM,borderCollapse:"separate",transition:`all ${ge.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ge.checkboxSize/14*5,height:ge.checkboxSize/14*8,border:`${ge.lineWidthBold}px solid ${ge.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ge.motionDurationFast} ${ge.motionEaseInBack}, opacity ${ge.motionDurationFast}`}},"& + span":{paddingInlineStart:ge.paddingXS,paddingInlineEnd:ge.paddingXS}})},{[`
|
|
|
${Pe}:not(${Pe}-disabled),
|
|
|
${ce}:not(${ce}-disabled)
|
|
|
`]:{[`&:hover ${ce}-inner`]:{borderColor:ge.colorPrimary}},[`${Pe}:not(${Pe}-disabled)`]:{[`&:hover ${ce}-checked:not(${ce}-disabled) ${ce}-inner`]:{backgroundColor:ge.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ce}-checked:not(${ce}-disabled):after`]:{borderColor:ge.colorPrimaryHover}}},{[`${ce}-checked`]:{[`${ce}-inner`]:{backgroundColor:ge.colorPrimary,borderColor:ge.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ge.motionDurationMid} ${ge.motionEaseOutBack} ${ge.motionDurationFast}`}}},[`
|
|
|
${Pe}-checked:not(${Pe}-disabled),
|
|
|
${ce}-checked:not(${ce}-disabled)
|
|
|
`]:{[`&:hover ${ce}-inner`]:{backgroundColor:ge.colorPrimaryHover,borderColor:"transparent"}}},{[ce]:{"&-indeterminate":{[`${ce}-inner`]:{backgroundColor:ge.colorBgContainer,borderColor:ge.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ge.fontSizeLG/2,height:ge.fontSizeLG/2,backgroundColor:ge.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Pe}-disabled`]:{cursor:"not-allowed"},[`${ce}-disabled`]:{[`&, ${ce}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ce}-inner`]:{background:ge.colorBgContainerDisabled,borderColor:ge.colorBorder,"&:after":{borderColor:ge.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ge.colorTextDisabled},[`&${ce}-indeterminate ${ce}-inner::after`]:{background:ge.colorTextDisabled}}}]};function Ie(ge,ce){const Pe=(0,vt.TS)(ce,{checkboxCls:`.${ge}`,checkboxSize:ce.controlInteractiveSize});return[_e(Pe)]}an.ZP=(0,ie.Z)("Checkbox",(ge,ce)=>{let{prefixCls:Pe}=ce;return[Ie(Pe,ge)]})},36381:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return tt}});var rt=Ge(38819),vt=Ge(92310),ie=Ge.n(vt),_e=Ge(96663),Ie=Ge(19127),ge=Ge(72071),ce=Ge(20135),Pe=Ge(18929),Ee=Ge(48736),ye=Ge(59301),Me=Ge(6620),ve=Ge(11592),xe=Ge(90493),fe=Ge(77900),z=Ge(10228),ee=ye.forwardRef(function(Ze,we){var be=Ze.prefixCls,Ke=Ze.forceRender,Xe=Ze.className,Oe=Ze.style,Ue=Ze.children,He=Ze.isActive,Ve=Ze.role,Je=ye.useState(He||Ke),ct=(0,ge.Z)(Je,2),yt=ct[0],ft=ct[1];return ye.useEffect(function(){(Ke||He)&&ft(!0)},[Ke,He]),yt?ye.createElement("div",{ref:we,className:ie()("".concat(be,"-content"),(0,xe.Z)((0,xe.Z)({},"".concat(be,"-content-active"),He),"".concat(be,"-content-inactive"),!He),Xe),style:Oe,role:Ve},ye.createElement("div",{className:"".concat(be,"-content-box")},Ue)):null});ee.displayName="PanelContent";var ae=ee,re=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],le=ye.forwardRef(function(Ze,we){var be=Ze.showArrow,Ke=be===void 0?!0:be,Xe=Ze.headerClass,Oe=Ze.isActive,Ue=Ze.onItemClick,He=Ze.forceRender,Ve=Ze.className,Je=Ze.prefixCls,ct=Ze.collapsible,yt=Ze.accordion,ft=Ze.panelKey,Mt=Ze.extra,Jt=Ze.header,Vt=Ze.expandIcon,Kt=Ze.openMotion,Ht=Ze.destroyInactivePanel,tn=Ze.children,It=(0,Me.Z)(Ze,re),Dt=ct==="disabled",qt=ct==="header",sn=ct==="icon",xn=Mt!=null&&typeof Mt!="boolean",Ln=function(){Ue==null||Ue(ft)},Zn=function(Yr){(Yr.key==="Enter"||Yr.keyCode===z.Z.ENTER||Yr.which===z.Z.ENTER)&&Ln()},Xn=typeof Vt=="function"?Vt(Ze):ye.createElement("i",{className:"arrow"});Xn&&(Xn=ye.createElement("div",{className:"".concat(Je,"-expand-icon"),onClick:["header","icon"].includes(ct)?Ln:void 0},Xn));var dr=ie()((0,xe.Z)((0,xe.Z)((0,xe.Z)({},"".concat(Je,"-item"),!0),"".concat(Je,"-item-active"),Oe),"".concat(Je,"-item-disabled"),Dt),Ve),fr=ie()(Xe,(0,xe.Z)((0,xe.Z)((0,xe.Z)({},"".concat(Je,"-header"),!0),"".concat(Je,"-header-collapsible-only"),qt),"".concat(Je,"-icon-collapsible-only"),sn)),pr={className:fr,"aria-expanded":Oe,"aria-disabled":Dt,onKeyDown:Zn};return!qt&&!sn&&(pr.onClick=Ln,pr.role=yt?"tab":"button",pr.tabIndex=Dt?-1:0),ye.createElement("div",(0,_e.Z)({},It,{ref:we,className:dr}),ye.createElement("div",pr,Ke&&Xn,ye.createElement("span",{className:"".concat(Je,"-header-text"),onClick:ct==="header"?Ln:void 0},Jt),xn&&ye.createElement("div",{className:"".concat(Je,"-extra")},Mt)),ye.createElement(fe.default,(0,_e.Z)({visible:Oe,leavedClassName:"".concat(Je,"-content-hidden")},Kt,{forceRender:He,removeOnLeave:Ht}),function(Cr,Yr){var ii=Cr.className,jr=Cr.style;return ye.createElement(ae,{ref:Yr,prefixCls:Je,className:ii,style:jr,isActive:Oe,forceRender:He,role:yt?"tabpanel":void 0},tn)}))}),ue=le,pe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Te=function(we,be){var Ke=be.prefixCls,Xe=be.accordion,Oe=be.collapsible,Ue=be.destroyInactivePanel,He=be.onItemClick,Ve=be.activeKey,Je=be.openMotion,ct=be.expandIcon;return we.map(function(yt,ft){var Mt=yt.children,Jt=yt.label,Vt=yt.key,Kt=yt.collapsible,Ht=yt.onItemClick,tn=yt.destroyInactivePanel,It=(0,Me.Z)(yt,pe),Dt=String(Vt!=null?Vt:ft),qt=Kt!=null?Kt:Oe,sn=tn!=null?tn:Ue,xn=function(Xn){qt!=="disabled"&&(He(Xn),Ht==null||Ht(Xn))},Ln=!1;return Xe?Ln=Ve[0]===Dt:Ln=Ve.indexOf(Dt)>-1,ye.createElement(ue,(0,_e.Z)({},It,{prefixCls:Ke,key:Dt,panelKey:Dt,isActive:Ln,accordion:Xe,openMotion:Je,expandIcon:ct,header:Jt,collapsible:qt,onItemClick:xn,destroyInactivePanel:sn}),Mt)})},Ce=function(we,be,Ke){if(!we)return null;var Xe=Ke.prefixCls,Oe=Ke.accordion,Ue=Ke.collapsible,He=Ke.destroyInactivePanel,Ve=Ke.onItemClick,Je=Ke.activeKey,ct=Ke.openMotion,yt=Ke.expandIcon,ft=we.key||String(be),Mt=we.props,Jt=Mt.header,Vt=Mt.headerClass,Kt=Mt.destroyInactivePanel,Ht=Mt.collapsible,tn=Mt.onItemClick,It=!1;Oe?It=Je[0]===ft:It=Je.indexOf(ft)>-1;var Dt=Ht!=null?Ht:Ue,qt=function(Ln){Dt!=="disabled"&&(Ve(Ln),tn==null||tn(Ln))},sn={key:ft,panelKey:ft,header:Jt,headerClass:Vt,isActive:It,prefixCls:Xe,destroyInactivePanel:Kt!=null?Kt:He,openMotion:ct,accordion:Oe,children:we.props.children,onItemClick:qt,expandIcon:yt,collapsible:Dt};return typeof we.type=="string"?we:(Object.keys(sn).forEach(function(xn){typeof sn[xn]=="undefined"&&delete sn[xn]}),ye.cloneElement(we,sn))};function Fe(Ze,we,be){return Array.isArray(Ze)?Te(Ze,be):(0,ve.Z)(we).map(function(Ke,Xe){return Ce(Ke,Xe,be)})}var Ae=Fe,je=Ge(26112);function Ne(Ze){var we=Ze;if(!Array.isArray(we)){var be=(0,ce.Z)(we);we=be==="number"||be==="string"?[we]:[]}return we.map(function(Ke){return String(Ke)})}var Be=ye.forwardRef(function(Ze,we){var be=Ze.prefixCls,Ke=be===void 0?"rc-collapse":be,Xe=Ze.destroyInactivePanel,Oe=Xe===void 0?!1:Xe,Ue=Ze.style,He=Ze.accordion,Ve=Ze.className,Je=Ze.children,ct=Ze.collapsible,yt=Ze.openMotion,ft=Ze.expandIcon,Mt=Ze.activeKey,Jt=Ze.defaultActiveKey,Vt=Ze.onChange,Kt=Ze.items,Ht=ie()(Ke,Ve),tn=(0,Pe.Z)([],{value:Mt,onChange:function(Zn){return Vt==null?void 0:Vt(Zn)},defaultValue:Jt,postState:Ne}),It=(0,ge.Z)(tn,2),Dt=It[0],qt=It[1],sn=function(Zn){return qt(function(){if(He)return Dt[0]===Zn?[]:[Zn];var Xn=Dt.indexOf(Zn),dr=Xn>-1;return dr?Dt.filter(function(fr){return fr!==Zn}):[].concat((0,Ie.Z)(Dt),[Zn])})};(0,Ee.ZP)(!Je,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var xn=Ae(Kt,Je,{prefixCls:Ke,accordion:He,openMotion:yt,expandIcon:ft,collapsible:ct,destroyInactivePanel:Oe,onItemClick:sn,activeKey:Dt});return ye.createElement("div",(0,_e.Z)({ref:we,className:Ht,style:Ue,role:He?"tablist":void 0},(0,je.Z)(Ze,{aria:!0,data:!0})),xn)}),ze=Object.assign(Be,{Panel:ue}),Qe=ze,$e=ze.Panel,Ye=Ge(2738),at=Ge(62892),ut=Ge(92343),ht=Ge(36355),Ct=Ge(19716),it=ye.forwardRef((Ze,we)=>{const{getPrefixCls:be}=ye.useContext(ht.E_),{prefixCls:Ke,className:Xe,showArrow:Oe=!0}=Ze,Ue=be("collapse",Ke),He=ie()({[`${Ue}-no-arrow`]:!Oe},Xe);return ye.createElement(Qe.Panel,Object.assign({ref:we},Ze,{prefixCls:Ue,className:He}))}),St=Ge(17313),bt=Ge(8378),Pt=Ge(83116),gt=Ge(37613);const dt=Ze=>{const{componentCls:we,contentBg:be,padding:Ke,headerBg:Xe,headerPadding:Oe,collapseHeaderPaddingSM:Ue,collapseHeaderPaddingLG:He,collapsePanelBorderRadius:Ve,lineWidth:Je,lineType:ct,colorBorder:yt,colorText:ft,colorTextHeading:Mt,colorTextDisabled:Jt,fontSize:Vt,fontSizeLG:Kt,lineHeight:Ht,marginSM:tn,paddingSM:It,paddingLG:Dt,paddingXS:qt,motionDurationSlow:sn,fontSizeIcon:xn,contentPadding:Ln}=Ze,Zn=`${Je}px ${ct} ${yt}`;return{[we]:Object.assign(Object.assign({},(0,St.Wf)(Ze)),{backgroundColor:Xe,border:Zn,borderBottom:0,borderRadius:`${Ve}px`,"&-rtl":{direction:"rtl"},[`& > ${we}-item`]:{borderBottom:Zn,"&:last-child":{[`
|
|
|
&,
|
|
|
& > ${we}-header`]:{borderRadius:`0 0 ${Ve}px ${Ve}px`}},[`> ${we}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Oe,color:Mt,lineHeight:Ht,cursor:"pointer",transition:`all ${sn}, visibility 0s`,[`> ${we}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${we}-expand-icon`]:{height:Vt*Ht,display:"flex",alignItems:"center",paddingInlineEnd:tn},[`${we}-arrow`]:Object.assign(Object.assign({},(0,St.Ro)()),{fontSize:xn,svg:{transition:`transform ${sn}`}}),[`${we}-header-text`]:{marginInlineEnd:"auto"}},[`${we}-header-collapsible-only`]:{cursor:"default",[`${we}-header-text`]:{flex:"none",cursor:"pointer"}},[`${we}-icon-collapsible-only`]:{cursor:"default",[`${we}-expand-icon`]:{cursor:"pointer"}}},[`${we}-content`]:{color:ft,backgroundColor:be,borderTop:Zn,[`& > ${we}-content-box`]:{padding:Ln},"&-hidden":{display:"none"}},"&-small":{[`> ${we}-item`]:{[`> ${we}-header`]:{padding:Ue,paddingInlineStart:qt,[`> ${we}-expand-icon`]:{marginInlineStart:It-qt}},[`> ${we}-content > ${we}-content-box`]:{padding:It}}},"&-large":{[`> ${we}-item`]:{fontSize:Kt,[`> ${we}-header`]:{padding:He,paddingInlineStart:Ke,[`> ${we}-expand-icon`]:{height:Kt*Ht,marginInlineStart:Dt-Ke}},[`> ${we}-content > ${we}-content-box`]:{padding:Dt}}},[`${we}-item:last-child`]:{[`> ${we}-content`]:{borderRadius:`0 0 ${Ve}px ${Ve}px`}},[`& ${we}-item-disabled > ${we}-header`]:{"\n &,\n & > .arrow\n ":{color:Jt,cursor:"not-allowed"}},[`&${we}-icon-position-end`]:{[`& > ${we}-item`]:{[`> ${we}-header`]:{[`${we}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:tn}}}}})}},mt=Ze=>{const{componentCls:we}=Ze,be=`> ${we}-item > ${we}-header ${we}-arrow svg`;return{[`${we}-rtl`]:{[be]:{transform:"rotate(180deg)"}}}},kt=Ze=>{const{componentCls:we,headerBg:be,paddingXXS:Ke,colorBorder:Xe}=Ze;return{[`${we}-borderless`]:{backgroundColor:be,border:0,[`> ${we}-item`]:{borderBottom:`1px solid ${Xe}`},[`
|
|
|
> ${we}-item:last-child,
|
|
|
> ${we}-item:last-child ${we}-header
|
|
|
`]:{borderRadius:0},[`> ${we}-item:last-child`]:{borderBottom:0},[`> ${we}-item > ${we}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${we}-item > ${we}-content > ${we}-content-box`]:{paddingTop:Ke}}}},Et=Ze=>{const{componentCls:we,paddingSM:be}=Ze;return{[`${we}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${we}-item`]:{borderBottom:0,[`> ${we}-content`]:{backgroundColor:"transparent",border:0,[`> ${we}-content-box`]:{paddingBlock:be}}}}}};var Ut=(0,Pt.Z)("Collapse",Ze=>{const we=(0,gt.TS)(Ze,{collapseHeaderPaddingSM:`${Ze.paddingXS}px ${Ze.paddingSM}px`,collapseHeaderPaddingLG:`${Ze.padding}px ${Ze.paddingLG}px`,collapsePanelBorderRadius:Ze.borderRadiusLG});return[dt(we),kt(we),Et(we),mt(we),(0,bt.Z)(we)]},Ze=>({headerPadding:`${Ze.paddingSM}px ${Ze.padding}px`,headerBg:Ze.colorFillAlter,contentPadding:`${Ze.padding}px 16px`,contentBg:Ze.colorBgContainer})),pt=Object.assign(ye.forwardRef((Ze,we)=>{const{getPrefixCls:be,direction:Ke,collapse:Xe}=ye.useContext(ht.E_),{prefixCls:Oe,className:Ue,rootClassName:He,style:Ve,bordered:Je=!0,ghost:ct,size:yt,expandIconPosition:ft="start",children:Mt,expandIcon:Jt}=Ze,Vt=(0,Ct.Z)(Zn=>{var Xn;return(Xn=yt!=null?yt:Zn)!==null&&Xn!==void 0?Xn:"middle"}),Kt=be("collapse",Oe),Ht=be(),[tn,It]=Ut(Kt),Dt=ye.useMemo(()=>ft==="left"?"start":ft==="right"?"end":ft,[ft]),qt=function(){let Zn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Xn=Jt?Jt(Zn):ye.createElement(rt.Z,{rotate:Zn.isActive?90:void 0});return(0,ut.Tm)(Xn,()=>({className:ie()(Xn.props.className,`${Kt}-arrow`)}))},sn=ie()(`${Kt}-icon-position-${Dt}`,{[`${Kt}-borderless`]:!Je,[`${Kt}-rtl`]:Ke==="rtl",[`${Kt}-ghost`]:!!ct,[`${Kt}-${Vt}`]:Vt!=="middle"},Xe==null?void 0:Xe.className,Ue,He,It),xn=Object.assign(Object.assign({},(0,at.Z)(Ht)),{motionAppear:!1,leavedClassName:`${Kt}-content-hidden`}),Ln=ye.useMemo(()=>Mt?(0,ve.Z)(Mt).map((Zn,Xn)=>{var dr,fr;if(!((dr=Zn.props)===null||dr===void 0)&&dr.disabled){const pr=(fr=Zn.key)!==null&&fr!==void 0?fr:String(Xn),{disabled:Cr,collapsible:Yr}=Zn.props,ii=Object.assign(Object.assign({},(0,Ye.Z)(Zn.props,["disabled"])),{key:pr,collapsible:Yr!=null?Yr:Cr?"disabled":void 0});return(0,ut.Tm)(Zn,ii)}return Zn}):null,[Mt]);return tn(ye.createElement(Qe,Object.assign({ref:we,openMotion:xn},(0,Ye.Z)(Ze,["rootClassName"]),{expandIcon:qt,prefixCls:Kt,className:sn,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),Ve)}),Ln))}),{Panel:it}),tt=pt},93891:function(bn,an,Ge){"use strict";var rt=Ge(59301),vt=Ge(36355),ie=Ge(64165);const _e=Ie=>{const{componentName:ge}=Ie,{getPrefixCls:ce}=(0,rt.useContext)(vt.E_),Pe=ce("empty");switch(ge){case"Table":case"List":return rt.createElement(ie.Z,{image:ie.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return rt.createElement(ie.Z,{image:ie.Z.PRESENTED_IMAGE_SIMPLE,className:`${Pe}-small`});default:return rt.createElement(ie.Z,null)}};an.Z=_e},43428:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return wt}});var rt=Ge(92310),vt=Ge.n(rt),ie=Ge(44127),_e=Ge(72071),Ie=Ge(43403),ge=Ge(34280),ce=Ge(59301),Pe=ce.createContext(null),Ee=ce.createContext({}),ye=Pe,Me=Ge(90493),ve=Ge(96663),xe=Ge(77900),fe=Ge(10228),z=Ge(26112),ee=Ge(70425),ae=function(tt){var Ze=tt.prefixCls,we=tt.className,be=tt.style,Ke=tt.children,Xe=tt.containerRef,Oe=tt.id,Ue=tt.onMouseEnter,He=tt.onMouseOver,Ve=tt.onMouseLeave,Je=tt.onClick,ct=tt.onKeyDown,yt=tt.onKeyUp,ft={onMouseEnter:Ue,onMouseOver:He,onMouseLeave:Ve,onClick:Je,onKeyDown:ct,onKeyUp:yt},Mt=ce.useContext(Ee),Jt=Mt.panel,Vt=(0,ee.useComposeRef)(Jt,Xe);return ce.createElement(ce.Fragment,null,ce.createElement("div",(0,ve.Z)({id:Oe,className:vt()("".concat(Ze,"-content"),we),style:(0,ie.Z)({},be),"aria-modal":"true",role:"dialog",ref:Vt},ft),Ke))},re=ae,le=Ge(48736);function ue(pt){return typeof pt=="string"&&String(Number(pt))===pt?((0,le.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(pt)):pt}function pe(pt){warning(!("wrapperClassName"in pt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!pt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Te={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ce(pt,tt){var Ze,we,be,Ke,Xe=pt.prefixCls,Oe=pt.open,Ue=pt.placement,He=pt.inline,Ve=pt.push,Je=pt.forceRender,ct=pt.autoFocus,yt=pt.keyboard,ft=pt.rootClassName,Mt=pt.rootStyle,Jt=pt.zIndex,Vt=pt.className,Kt=pt.id,Ht=pt.style,tn=pt.motion,It=pt.width,Dt=pt.height,qt=pt.children,sn=pt.contentWrapperStyle,xn=pt.mask,Ln=pt.maskClosable,Zn=pt.maskMotion,Xn=pt.maskClassName,dr=pt.maskStyle,fr=pt.afterOpenChange,pr=pt.onClose,Cr=pt.onMouseEnter,Yr=pt.onMouseOver,ii=pt.onMouseLeave,jr=pt.onClick,fi=pt.onKeyDown,Lr=pt.onKeyUp,ot=ce.useRef(),oi=ce.useRef(),yi=ce.useRef();ce.useImperativeHandle(tt,function(){return ot.current});var Pi=function(Yn){var $t=Yn.keyCode,jn=Yn.shiftKey;switch($t){case fe.Z.TAB:{if($t===fe.Z.TAB){if(!jn&&document.activeElement===yi.current){var Wn;(Wn=oi.current)===null||Wn===void 0||Wn.focus({preventScroll:!0})}else if(jn&&document.activeElement===oi.current){var or;(or=yi.current)===null||or===void 0||or.focus({preventScroll:!0})}}break}case fe.Z.ESC:{pr&&yt&&(Yn.stopPropagation(),pr(Yn));break}}};ce.useEffect(function(){if(Oe&&ct){var qn;(qn=ot.current)===null||qn===void 0||qn.focus({preventScroll:!0})}},[Oe]);var sr=ce.useState(!1),Ar=(0,_e.Z)(sr,2),Fr=Ar[0],Si=Ar[1],Nr=ce.useContext(ye),hn;Ve===!1?hn={distance:0}:Ve===!0?hn={}:hn=Ve||{};var cn=(Ze=(we=(be=hn)===null||be===void 0?void 0:be.distance)!==null&&we!==void 0?we:Nr==null?void 0:Nr.pushDistance)!==null&&Ze!==void 0?Ze:180,Ot=ce.useMemo(function(){return{pushDistance:cn,push:function(){Si(!0)},pull:function(){Si(!1)}}},[cn]);ce.useEffect(function(){if(Oe){var qn;Nr==null||(qn=Nr.push)===null||qn===void 0||qn.call(Nr)}else{var Yn;Nr==null||(Yn=Nr.pull)===null||Yn===void 0||Yn.call(Nr)}},[Oe]),ce.useEffect(function(){return function(){var qn;Nr==null||(qn=Nr.pull)===null||qn===void 0||qn.call(Nr)}},[]);var gn=xn&&ce.createElement(xe.default,(0,ve.Z)({key:"mask"},Zn,{visible:Oe}),function(qn,Yn){var $t=qn.className,jn=qn.style;return ce.createElement("div",{className:vt()("".concat(Xe,"-mask"),$t,Xn),style:(0,ie.Z)((0,ie.Z)({},jn),dr),onClick:Ln&&Oe?pr:void 0,ref:Yn})}),Nn=typeof tn=="function"?tn(Ue):tn,Xt={};if(Fr&&cn)switch(Ue){case"top":Xt.transform="translateY(".concat(cn,"px)");break;case"bottom":Xt.transform="translateY(".concat(-cn,"px)");break;case"left":Xt.transform="translateX(".concat(cn,"px)");break;default:Xt.transform="translateX(".concat(-cn,"px)");break}Ue==="left"||Ue==="right"?Xt.width=ue(It):Xt.height=ue(Dt);var zt={onMouseEnter:Cr,onMouseOver:Yr,onMouseLeave:ii,onClick:jr,onKeyDown:fi,onKeyUp:Lr},Pn=ce.createElement(xe.default,(0,ve.Z)({key:"panel"},Nn,{visible:Oe,forceRender:Je,onVisibleChanged:function(Yn){fr==null||fr(Yn)},removeOnLeave:!1,leavedClassName:"".concat(Xe,"-content-wrapper-hidden")}),function(qn,Yn){var $t=qn.className,jn=qn.style;return ce.createElement("div",(0,ve.Z)({className:vt()("".concat(Xe,"-content-wrapper"),$t),style:(0,ie.Z)((0,ie.Z)((0,ie.Z)({},Xt),jn),sn)},(0,z.Z)(pt,{data:!0})),ce.createElement(re,(0,ve.Z)({id:Kt,containerRef:Yn,prefixCls:Xe,className:Vt,style:Ht},zt),qt))}),_n=(0,ie.Z)({},Mt);return Jt&&(_n.zIndex=Jt),ce.createElement(ye.Provider,{value:Ot},ce.createElement("div",{className:vt()(Xe,"".concat(Xe,"-").concat(Ue),ft,(Ke={},(0,Me.Z)(Ke,"".concat(Xe,"-open"),Oe),(0,Me.Z)(Ke,"".concat(Xe,"-inline"),He),Ke)),style:_n,tabIndex:-1,ref:ot,onKeyDown:Pi},gn,ce.createElement("div",{tabIndex:0,ref:oi,style:Te,"aria-hidden":"true","data-sentinel":"start"}),Pn,ce.createElement("div",{tabIndex:0,ref:yi,style:Te,"aria-hidden":"true","data-sentinel":"end"})))}var Fe=ce.forwardRef(Ce),Ae=Fe,je=function(tt){var Ze=tt.open,we=Ze===void 0?!1:Ze,be=tt.prefixCls,Ke=be===void 0?"rc-drawer":be,Xe=tt.placement,Oe=Xe===void 0?"right":Xe,Ue=tt.autoFocus,He=Ue===void 0?!0:Ue,Ve=tt.keyboard,Je=Ve===void 0?!0:Ve,ct=tt.width,yt=ct===void 0?378:ct,ft=tt.mask,Mt=ft===void 0?!0:ft,Jt=tt.maskClosable,Vt=Jt===void 0?!0:Jt,Kt=tt.getContainer,Ht=tt.forceRender,tn=tt.afterOpenChange,It=tt.destroyOnClose,Dt=tt.onMouseEnter,qt=tt.onMouseOver,sn=tt.onMouseLeave,xn=tt.onClick,Ln=tt.onKeyDown,Zn=tt.onKeyUp,Xn=tt.panelRef,dr=ce.useState(!1),fr=(0,_e.Z)(dr,2),pr=fr[0],Cr=fr[1],Yr=ce.useState(!1),ii=(0,_e.Z)(Yr,2),jr=ii[0],fi=ii[1];(0,ge.Z)(function(){fi(!0)},[]);var Lr=jr?we:!1,ot=ce.useRef(),oi=ce.useRef();(0,ge.Z)(function(){Lr&&(oi.current=document.activeElement)},[Lr]);var yi=function(Si){var Nr;if(Cr(Si),tn==null||tn(Si),!Si&&oi.current&&!((Nr=ot.current)!==null&&Nr!==void 0&&Nr.contains(oi.current))){var hn;(hn=oi.current)===null||hn===void 0||hn.focus({preventScroll:!0})}},Pi=ce.useMemo(function(){return{panel:Xn}},[Xn]);if(!Ht&&!pr&&!Lr&&It)return null;var sr={onMouseEnter:Dt,onMouseOver:qt,onMouseLeave:sn,onClick:xn,onKeyDown:Ln,onKeyUp:Zn},Ar=(0,ie.Z)((0,ie.Z)({},tt),{},{open:Lr,prefixCls:Ke,placement:Oe,autoFocus:He,keyboard:Je,width:yt,mask:Mt,maskClosable:Vt,inline:Kt===!1,afterOpenChange:yi,ref:ot},sr);return ce.createElement(Ee.Provider,{value:Pi},ce.createElement(Ie.Z,{open:Lr||Ht||pr,autoDestroy:!1,getContainer:Kt,autoLock:Mt&&(Lr||pr)},ce.createElement(Ae,Ar)))},Ne=je,Be=Ne,ze=Ge(62892),Qe=Ge(36355),$e=Ge(32441),Ye=Ge(47729),ut=pt=>{const{prefixCls:tt,title:Ze,footer:we,extra:be,closeIcon:Ke,closable:Xe,onClose:Oe,headerStyle:Ue,drawerStyle:He,bodyStyle:Ve,footerStyle:Je,children:ct}=pt,yt=ce.useCallback(Kt=>ce.createElement("button",{type:"button",onClick:Oe,"aria-label":"Close",className:`${tt}-close`},Kt),[Oe]),[ft,Mt]=(0,Ye.Z)(Xe,Ke,yt,void 0,!0),Jt=ce.useMemo(()=>!Ze&&!ft?null:ce.createElement("div",{style:Ue,className:vt()(`${tt}-header`,{[`${tt}-header-close-only`]:ft&&!Ze&&!be})},ce.createElement("div",{className:`${tt}-header-title`},Mt,Ze&&ce.createElement("div",{className:`${tt}-title`},Ze)),be&&ce.createElement("div",{className:`${tt}-extra`},be)),[ft,Mt,be,Ue,tt,Ze]),Vt=ce.useMemo(()=>{if(!we)return null;const Kt=`${tt}-footer`;return ce.createElement("div",{className:Kt,style:Je},we)},[we,Je,tt]);return ce.createElement("div",{className:`${tt}-wrapper-body`,style:He},Jt,ce.createElement("div",{className:`${tt}-body`,style:Ve},ct),Vt)},ht=Ge(33234),Ct=Ge(83116),et=Ge(37613),St=pt=>{const{componentCls:tt,motionDurationSlow:Ze}=pt,we={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ze}`}}};return{[tt]:{[`${tt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Ze}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${tt}-panel-motion`]:{"&-left":[we,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[we,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[we,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[we,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const bt=pt=>{const{componentCls:tt,zIndexPopup:Ze,colorBgMask:we,colorBgElevated:be,motionDurationSlow:Ke,motionDurationMid:Xe,padding:Oe,paddingLG:Ue,fontSizeLG:He,lineHeightLG:Ve,lineWidth:Je,lineType:ct,colorSplit:yt,marginSM:ft,colorIcon:Mt,colorIconHover:Jt,colorText:Vt,fontWeightStrong:Kt,footerPaddingBlock:Ht,footerPaddingInline:tn}=pt,It=`${tt}-content-wrapper`;return{[tt]:{position:"fixed",inset:0,zIndex:Ze,pointerEvents:"none","&-pure":{position:"relative",background:be,[`&${tt}-left`]:{boxShadow:pt.boxShadowDrawerLeft},[`&${tt}-right`]:{boxShadow:pt.boxShadowDrawerRight},[`&${tt}-top`]:{boxShadow:pt.boxShadowDrawerUp},[`&${tt}-bottom`]:{boxShadow:pt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${tt}-mask`]:{position:"absolute",inset:0,zIndex:Ze,background:we,pointerEvents:"auto"},[It]:{position:"absolute",zIndex:Ze,maxWidth:"100vw",transition:`all ${Ke}`,"&-hidden":{display:"none"}},[`&-left > ${It}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:pt.boxShadowDrawerLeft},[`&-right > ${It}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:pt.boxShadowDrawerRight},[`&-top > ${It}`]:{top:0,insetInline:0,boxShadow:pt.boxShadowDrawerUp},[`&-bottom > ${It}`]:{bottom:0,insetInline:0,boxShadow:pt.boxShadowDrawerDown},[`${tt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:be,pointerEvents:"auto"},[`${tt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${tt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Oe}px ${Ue}px`,fontSize:He,lineHeight:Ve,borderBottom:`${Je}px ${ct} ${yt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${tt}-extra`]:{flex:"none"},[`${tt}-close`]:{display:"inline-block",marginInlineEnd:ft,color:Mt,fontWeight:Kt,fontSize:He,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Xe}`,textRendering:"auto","&:focus, &:hover":{color:Jt,textDecoration:"none"}},[`${tt}-title`]:{flex:1,margin:0,color:Vt,fontWeight:pt.fontWeightStrong,fontSize:He,lineHeight:Ve},[`${tt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ue,overflow:"auto"},[`${tt}-footer`]:{flexShrink:0,padding:`${Ht}px ${tn}px`,borderTop:`${Je}px ${ct} ${yt}`},"&-rtl":{direction:"rtl"}}}};var Pt=(0,Ct.Z)("Drawer",pt=>{const tt=(0,et.TS)(pt,{});return[bt(tt),St(tt)]},pt=>({zIndexPopup:pt.zIndexPopupBase,footerPaddingBlock:pt.paddingXS,footerPaddingInline:pt.padding})),gt=Ge(11575),dt=function(pt,tt){var Ze={};for(var we in pt)Object.prototype.hasOwnProperty.call(pt,we)&&tt.indexOf(we)<0&&(Ze[we]=pt[we]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,we=Object.getOwnPropertySymbols(pt);be<we.length;be++)tt.indexOf(we[be])<0&&Object.prototype.propertyIsEnumerable.call(pt,we[be])&&(Ze[we[be]]=pt[we[be]]);return Ze};const mt=null,kt={distance:180},Et=pt=>{var tt;const{rootClassName:Ze,width:we,height:be,size:Ke="default",mask:Xe=!0,push:Oe=kt,open:Ue,afterOpenChange:He,onClose:Ve,prefixCls:Je,getContainer:ct,style:yt,className:ft,visible:Mt,afterVisibleChange:Jt}=pt,Vt=dt(pt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Kt,getPrefixCls:Ht,direction:tn,drawer:It}=ce.useContext(Qe.E_),Dt=Ht("drawer",Je),[qt,sn]=Pt(Dt),xn=ct===void 0&&Kt?()=>Kt(document.body):ct,Ln=vt()({"no-mask":!Xe,[`${Dt}-rtl`]:tn==="rtl"},Ze,sn),Zn=ce.useMemo(()=>we!=null?we:Ke==="large"?736:378,[we,Ke]),Xn=ce.useMemo(()=>be!=null?be:Ke==="large"?736:378,[be,Ke]),dr={motionName:(0,ze.m)(Dt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},fr=Cr=>({motionName:(0,ze.m)(Dt,`panel-motion-${Cr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),pr=(0,gt.H)();return qt(ce.createElement(ht.BR,null,ce.createElement($e.Ux,{status:!0,override:!0},ce.createElement(Be,Object.assign({prefixCls:Dt,onClose:Ve,maskMotion:dr,motion:fr},Vt,{open:Ue!=null?Ue:Mt,mask:Xe,push:Oe,width:Zn,height:Xn,style:Object.assign(Object.assign({},It==null?void 0:It.style),yt),className:vt()(It==null?void 0:It.className,ft),rootClassName:Ln,getContainer:xn,afterOpenChange:He!=null?He:Jt,panelRef:pr}),ce.createElement(ut,Object.assign({prefixCls:Dt},Vt,{onClose:Ve}))))))},Ut=pt=>{const{prefixCls:tt,style:Ze,className:we,placement:be="right"}=pt,Ke=dt(pt,["prefixCls","style","className","placement"]),{getPrefixCls:Xe}=ce.useContext(Qe.E_),Oe=Xe("drawer",tt),[Ue,He]=Pt(Oe),Ve=vt()(Oe,`${Oe}-pure`,`${Oe}-${be}`,He,we);return Ue(ce.createElement("div",{className:Ve,style:Ze},ce.createElement(ut,Object.assign({prefixCls:Oe},Ke))))};Et._InternalPanelDoNotUseOrYouWillBeFired=Ut;var wt=Et},91857:function(bn,an,Ge){"use strict";var rt=Ge(59301),vt=Ge(38819),ie=Ge(92310),_e=Ge.n(ie),Ie=Ge(31561),ge=Ge(70425),ce=Ge(18929),Pe=Ge(2738),Ee=Ge(79676),ye=Ge(53487),Me=Ge(92343),ve=Ge(36355),xe=Ge(20834),fe=Ge(40875),z=Ge(88088),ee=Ge(47211);const ae=null,re=Te=>{const{menu:Ce,arrow:Fe,prefixCls:Ae,children:je,trigger:Ne,disabled:Be,dropdownRender:ze,getPopupContainer:Qe,overlayClassName:$e,rootClassName:Ye,open:at,onOpenChange:ut,visible:ht,onVisibleChange:Ct,mouseEnterDelay:et=.15,mouseLeaveDelay:it=.1,autoAdjustOverflow:St=!0,placement:bt="",overlay:Pt,transitionName:gt}=Te,{getPopupContainer:dt,getPrefixCls:mt,direction:kt}=rt.useContext(ve.E_),Et=rt.useMemo(()=>{const ft=mt();return gt!==void 0?gt:bt.includes("top")?`${ft}-slide-down`:`${ft}-slide-up`},[mt,bt,gt]),Ut=rt.useMemo(()=>bt?bt.includes("Center")?bt.slice(0,bt.indexOf("Center")):bt:kt==="rtl"?"bottomRight":"bottomLeft",[bt,kt]),wt=mt("dropdown",Ae),[pt,tt]=(0,ee.Z)(wt),[,Ze]=(0,z.Z)(),we=rt.Children.only(je),be=(0,Me.Tm)(we,{className:_e()(`${wt}-trigger`,{[`${wt}-rtl`]:kt==="rtl"},we.props.className),disabled:Be}),Ke=Be?[]:Ne;let Xe;Ke&&Ke.includes("contextMenu")&&(Xe=!0);const[Oe,Ue]=(0,ce.Z)(!1,{value:at!=null?at:ht}),He=(0,ge.useEvent)(ft=>{ut==null||ut(ft),Ct==null||Ct(ft),Ue(ft)}),Ve=_e()($e,Ye,tt,{[`${wt}-rtl`]:kt==="rtl"}),Je=(0,Ee.Z)({arrowPointAtCenter:typeof Fe=="object"&&Fe.pointAtCenter,autoAdjustOverflow:St,offset:Ze.marginXXS,arrowWidth:Fe?Ze.sizePopupArrow:0,borderRadius:Ze.borderRadius}),ct=rt.useCallback(()=>{Ue(!1)},[]),yt=()=>{let ft;return Ce!=null&&Ce.items?ft=rt.createElement(xe.default,Object.assign({},Ce)):typeof Pt=="function"?ft=Pt():ft=Pt,ze&&(ft=ze(ft)),ft=rt.Children.only(typeof ft=="string"?rt.createElement("span",null,ft):ft),rt.createElement(fe.J,{prefixCls:`${wt}-menu`,expandIcon:rt.createElement("span",{className:`${wt}-menu-submenu-arrow`},rt.createElement(vt.Z,{className:`${wt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ct,validator:Mt=>{let{mode:Jt}=Mt}},ft)};return pt(rt.createElement(Ie.Z,Object.assign({alignPoint:Xe},(0,Pe.Z)(Te,["rootClassName"]),{mouseEnterDelay:et,mouseLeaveDelay:it,visible:Oe,builtinPlacements:Je,arrow:!!Fe,overlayClassName:Ve,prefixCls:wt,getPopupContainer:Qe||dt,transitionName:Et,trigger:Ke,overlay:yt,placement:Ut,onVisibleChange:He}),be))};function le(Te){return Object.assign(Object.assign({},Te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ue=(0,ye.Z)(re,"dropdown",Te=>Te,le),pe=Te=>rt.createElement(ue,Object.assign({},Te),rt.createElement("span",null));re._InternalPanelDoNotUseOrYouWillBeFired=pe,an.Z=re},38854:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return z}});var rt=Ge(91857),vt=Ge(92310),ie=Ge.n(vt),_e=Ge(59301),Ie=Ge(18785),ge=Ge(3113),ce=Ge(36355),Pe=Ge(81327),Ee=Ge(33234),ye=Ge(47211),Me=function(ee,ae){var re={};for(var le in ee)Object.prototype.hasOwnProperty.call(ee,le)&&ae.indexOf(le)<0&&(re[le]=ee[le]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,le=Object.getOwnPropertySymbols(ee);ue<le.length;ue++)ae.indexOf(le[ue])<0&&Object.prototype.propertyIsEnumerable.call(ee,le[ue])&&(re[le[ue]]=ee[le[ue]]);return re};const ve=ee=>{const{getPopupContainer:ae,getPrefixCls:re,direction:le}=_e.useContext(ce.E_),{prefixCls:ue,type:pe="default",danger:Te,disabled:Ce,loading:Fe,onClick:Ae,htmlType:je,children:Ne,className:Be,menu:ze,arrow:Qe,autoFocus:$e,overlay:Ye,trigger:at,align:ut,open:ht,onOpenChange:Ct,placement:et,getPopupContainer:it,href:St,icon:bt=_e.createElement(Ie.Z,null),title:Pt,buttonsRender:gt=yt=>yt,mouseEnterDelay:dt,mouseLeaveDelay:mt,overlayClassName:kt,overlayStyle:Et,destroyPopupOnHide:Ut,dropdownRender:wt}=ee,pt=Me(ee,["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"]),tt=re("dropdown",ue),Ze=`${tt}-button`,[we,be]=(0,ye.Z)(tt),Ke={menu:ze,arrow:Qe,autoFocus:$e,align:ut,disabled:Ce,trigger:Ce?[]:at,onOpenChange:Ct,getPopupContainer:it||ae,mouseEnterDelay:dt,mouseLeaveDelay:mt,overlayClassName:kt,overlayStyle:Et,destroyPopupOnHide:Ut,dropdownRender:wt},{compactSize:Xe,compactItemClassnames:Oe}=(0,Ee.ri)(tt,le),Ue=ie()(Ze,Oe,Be,be);"overlay"in ee&&(Ke.overlay=Ye),"open"in ee&&(Ke.open=ht),"placement"in ee?Ke.placement=et:Ke.placement=le==="rtl"?"bottomLeft":"bottomRight";const He=_e.createElement(ge.ZP,{type:pe,danger:Te,disabled:Ce,loading:Fe,onClick:Ae,htmlType:je,href:St,title:Pt},Ne),Ve=_e.createElement(ge.ZP,{type:pe,danger:Te,icon:bt}),[Je,ct]=gt([He,Ve]);return we(_e.createElement(Pe.Z.Compact,Object.assign({className:Ue,size:Xe,block:!0},pt),Je,_e.createElement(rt.Z,Object.assign({},Ke),ct)))};ve.__ANT_BUTTON=!0;var xe=ve;const fe=rt.Z;fe.Button=xe;var z=fe},47211:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Me}});var rt=Ge(17313),vt=Ge(13826),ie=Ge(92899),_e=Ge(29878),Ie=Ge(19447),ge=Ge(83116),ce=Ge(37613),Ee=ve=>{const{componentCls:xe,menuCls:fe,colorError:z,colorTextLightSolid:ee}=ve,ae=`${fe}-item`;return{[`${xe}, ${xe}-menu-submenu`]:{[`${fe} ${ae}`]:{[`&${ae}-danger:not(${ae}-disabled)`]:{color:z,"&:hover":{color:ee,backgroundColor:z}}}}}};const ye=ve=>{const{componentCls:xe,menuCls:fe,zIndexPopup:z,dropdownArrowDistance:ee,sizePopupArrow:ae,antCls:re,iconCls:le,motionDurationMid:ue,dropdownPaddingVertical:pe,fontSize:Te,dropdownEdgeChildPadding:Ce,colorTextDisabled:Fe,fontSizeIcon:Ae,controlPaddingHorizontal:je,colorBgElevated:Ne}=ve;return[{[xe]:Object.assign(Object.assign({},(0,rt.Wf)(ve)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:z,display:"block","&::before":{position:"absolute",insetBlock:-ee+ae/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${re}-btn`]:{[`& > ${le}-down, & > ${re}-btn-icon > ${le}-down`]:{fontSize:Ae}},[`${xe}-wrap`]:{position:"relative",[`${re}-btn > ${le}-down`]:{fontSize:Ae},[`${le}-down::before`]:{transition:`transform ${ue}`}},[`${xe}-wrap-open`]:{[`${le}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${re}-slide-down-enter${re}-slide-down-enter-active${xe}-placement-bottomLeft,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${xe}-placement-bottomLeft,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${xe}-placement-bottom,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${xe}-placement-bottom,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${xe}-placement-bottomRight,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${xe}-placement-bottomRight`]:{animationName:vt.fJ},[`&${re}-slide-up-enter${re}-slide-up-enter-active${xe}-placement-topLeft,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${xe}-placement-topLeft,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${xe}-placement-top,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${xe}-placement-top,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${xe}-placement-topRight,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${xe}-placement-topRight`]:{animationName:vt.Qt},[`&${re}-slide-down-leave${re}-slide-down-leave-active${xe}-placement-bottomLeft,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${xe}-placement-bottom,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${xe}-placement-bottomRight`]:{animationName:vt.Uw},[`&${re}-slide-up-leave${re}-slide-up-leave-active${xe}-placement-topLeft,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${xe}-placement-top,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${xe}-placement-topRight`]:{animationName:vt.ly}})},(0,Ie.ZP)(ve,{colorBg:Ne,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${xe} ${fe}`]:{position:"relative",margin:0},[`${fe}-submenu-popup`]:{position:"absolute",zIndex:z,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${xe}, ${xe}-menu-submenu`]:{[fe]:Object.assign(Object.assign({padding:Ce,listStyleType:"none",backgroundColor:Ne,backgroundClip:"padding-box",borderRadius:ve.borderRadiusLG,outline:"none",boxShadow:ve.boxShadowSecondary},(0,rt.Qy)(ve)),{[`${fe}-item-group-title`]:{padding:`${pe}px ${je}px`,color:ve.colorTextDescription,transition:`all ${ue}`},[`${fe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${fe}-item-icon`]:{minWidth:Te,marginInlineEnd:ve.marginXS,fontSize:ve.fontSizeSM},[`${fe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ue}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${fe}-item, ${fe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${pe}px ${je}px`,color:ve.colorText,fontWeight:"normal",fontSize:Te,lineHeight:ve.lineHeight,cursor:"pointer",transition:`all ${ue}`,borderRadius:ve.borderRadiusSM,"&:hover, &-active":{backgroundColor:ve.controlItemBgHover}},(0,rt.Qy)(ve)),{"&-selected":{color:ve.colorPrimary,backgroundColor:ve.controlItemBgActive,"&:hover, &-active":{backgroundColor:ve.controlItemBgActiveHover}},"&-disabled":{color:Fe,cursor:"not-allowed","&:hover":{color:Fe,backgroundColor:Ne,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ve.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ve.colorSplit},[`${xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ve.paddingXS,[`${xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ve.colorTextDescription,fontSize:Ae,fontStyle:"normal"}}}),[`${fe}-item-group-list`]:{margin:`0 ${ve.marginXS}px`,padding:0,listStyle:"none"},[`${fe}-submenu-title`]:{paddingInlineEnd:je+ve.fontSizeSM},[`${fe}-submenu-vertical`]:{position:"relative"},[`${fe}-submenu${fe}-submenu-disabled ${xe}-menu-submenu-title`]:{[`&, ${xe}-menu-submenu-arrow-icon`]:{color:Fe,backgroundColor:Ne,cursor:"not-allowed"}},[`${fe}-submenu-selected ${xe}-menu-submenu-title`]:{color:ve.colorPrimary}})}},[(0,vt.oN)(ve,"slide-up"),(0,vt.oN)(ve,"slide-down"),(0,ie.Fm)(ve,"move-up"),(0,ie.Fm)(ve,"move-down"),(0,_e._y)(ve,"zoom-big")]]};var Me=(0,ge.Z)("Dropdown",(ve,xe)=>{let{rootPrefixCls:fe}=xe;const{marginXXS:z,sizePopupArrow:ee,controlHeight:ae,fontSize:re,lineHeight:le,paddingXXS:ue,componentCls:pe,borderRadiusLG:Te}=ve,Ce=(ae-re*le)/2,{dropdownArrowOffset:Fe}=(0,Ie.fS)({contentRadius:Te}),Ae=(0,ce.TS)(ve,{menuCls:`${pe}-menu`,rootPrefixCls:fe,dropdownArrowDistance:ee/2+z,dropdownArrowOffset:Fe,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:ue});return[ye(Ae),Ee(Ae)]},ve=>({zIndexPopup:ve.zIndexPopupBase+50}))},64165:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ue}});var rt=Ge(92310),vt=Ge.n(rt),ie=Ge(59301),_e=Ge(36355),Ie=Ge(9763),ge=Ge(64993),ce=Ge(88088),Ee=()=>{const[,pe]=(0,ce.Z)(),Ce=new ge.C(pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ie.createElement("svg",{style:Ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("g",{fill:"none",fillRule:"evenodd"},ie.createElement("g",{transform:"translate(24 31.67)"},ie.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ie.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"}),ie.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)"}),ie.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"}),ie.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"})),ie.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"}),ie.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ie.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ie.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Me=()=>{const[,pe]=(0,ce.Z)(),{colorFill:Te,colorFillTertiary:Ce,colorFillQuaternary:Fe,colorBgContainer:Ae}=pe,{borderColor:je,shadowColor:Ne,contentColor:Be}=(0,ie.useMemo)(()=>({borderColor:new ge.C(Te).onBackground(Ae).toHexShortString(),shadowColor:new ge.C(Ce).onBackground(Ae).toHexShortString(),contentColor:new ge.C(Fe).onBackground(Ae).toHexShortString()}),[Te,Ce,Fe,Ae]);return ie.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ie.createElement("ellipse",{fill:Ne,cx:"32",cy:"33",rx:"32",ry:"7"}),ie.createElement("g",{fillRule:"nonzero",stroke:je},ie.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"}),ie.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:Be}))))},ve=Ge(83116),xe=Ge(37613);const fe=pe=>{const{componentCls:Te,margin:Ce,marginXS:Fe,marginXL:Ae,fontSize:je,lineHeight:Ne}=pe;return{[Te]:{marginInline:Fe,fontSize:je,lineHeight:Ne,textAlign:"center",[`${Te}-image`]:{height:pe.emptyImgHeight,marginBottom:Fe,opacity:pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Te}-description`]:{color:pe.colorText},[`${Te}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:Ae,color:pe.colorTextDisabled,[`${Te}-description`]:{color:pe.colorTextDisabled},[`${Te}-image`]:{height:pe.emptyImgHeightMD}},"&-small":{marginBlock:Fe,color:pe.colorTextDisabled,[`${Te}-image`]:{height:pe.emptyImgHeightSM}}}}};var z=(0,ve.Z)("Empty",pe=>{const{componentCls:Te,controlHeightLG:Ce}=pe,Fe=(0,xe.TS)(pe,{emptyImgCls:`${Te}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[fe(Fe)]}),ee=function(pe,Te){var Ce={};for(var Fe in pe)Object.prototype.hasOwnProperty.call(pe,Fe)&&Te.indexOf(Fe)<0&&(Ce[Fe]=pe[Fe]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Fe=Object.getOwnPropertySymbols(pe);Ae<Fe.length;Ae++)Te.indexOf(Fe[Ae])<0&&Object.prototype.propertyIsEnumerable.call(pe,Fe[Ae])&&(Ce[Fe[Ae]]=pe[Fe[Ae]]);return Ce};const ae=ie.createElement(Ee,null),re=ie.createElement(Me,null),le=pe=>{var{className:Te,rootClassName:Ce,prefixCls:Fe,image:Ae=ae,description:je,children:Ne,imageStyle:Be,style:ze}=pe,Qe=ee(pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:$e,direction:Ye,empty:at}=ie.useContext(_e.E_),ut=$e("empty",Fe),[ht,Ct]=z(ut),[et]=(0,Ie.Z)("Empty"),it=typeof je!="undefined"?je:et==null?void 0:et.description,St=typeof it=="string"?it:"empty";let bt=null;return typeof Ae=="string"?bt=ie.createElement("img",{alt:St,src:Ae}):bt=Ae,ht(ie.createElement("div",Object.assign({className:vt()(Ct,ut,at==null?void 0:at.className,{[`${ut}-normal`]:Ae===re,[`${ut}-rtl`]:Ye==="rtl"},Te,Ce),style:Object.assign(Object.assign({},at==null?void 0:at.style),ze)},Qe),ie.createElement("div",{className:`${ut}-image`,style:Be},bt),it&&ie.createElement("div",{className:`${ut}-description`},it),Ne&&ie.createElement("div",{className:`${ut}-footer`},Ne)))};le.PRESENTED_IMAGE_DEFAULT=ae,le.PRESENTED_IMAGE_SIMPLE=re;var ue=le},78241:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return cn}});var rt=Ge(19127),vt=Ge(92310),ie=Ge.n(vt),_e=Ge(77900),Ie=Ge(59301),ge=Ge(62892),ce=Ge(32441);function Pe(Ot){const[gn,Nn]=Ie.useState(Ot);return Ie.useEffect(()=>{const Xt=setTimeout(()=>{Nn(Ot)},Ot.length?0:10);return()=>{clearTimeout(Xt)}},[Ot]),gn}var Ee=Ge(17313),ye=Ge(29878),Me=Ge(8378),ve=Ge(37613),xe=Ge(83116),z=Ot=>{const{componentCls:gn}=Ot,Nn=`${gn}-show-help`,Xt=`${gn}-show-help-item`;return{[Nn]:{transition:`opacity ${Ot.motionDurationSlow} ${Ot.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Xt]:{overflow:"hidden",transition:`height ${Ot.motionDurationSlow} ${Ot.motionEaseInOut},
|
|
|
opacity ${Ot.motionDurationSlow} ${Ot.motionEaseInOut},
|
|
|
transform ${Ot.motionDurationSlow} ${Ot.motionEaseInOut} !important`,[`&${Xt}-appear, &${Xt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Xt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ee=Ot=>({legend:{display:"block",width:"100%",marginBottom:Ot.marginLG,padding:0,color:Ot.colorTextDescription,fontSize:Ot.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ot.lineWidth}px ${Ot.lineType} ${Ot.colorBorder}`},label:{fontSize:Ot.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ot.controlOutlineWidth}px ${Ot.controlOutline}`},output:{display:"block",paddingTop:15,color:Ot.colorText,fontSize:Ot.fontSize,lineHeight:Ot.lineHeight}}),ae=(Ot,gn)=>{const{formItemCls:Nn}=Ot;return{[Nn]:{[`${Nn}-label > label`]:{height:gn},[`${Nn}-control-input`]:{minHeight:gn}}}},re=Ot=>{const{componentCls:gn}=Ot;return{[Ot.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ee.Wf)(Ot)),ee(Ot)),{[`${gn}-text`]:{display:"inline-block",paddingInlineEnd:Ot.paddingSM},"&-small":Object.assign({},ae(Ot,Ot.controlHeightSM)),"&-large":Object.assign({},ae(Ot,Ot.controlHeightLG))})}},le=Ot=>{const{formItemCls:gn,iconCls:Nn,componentCls:Xt,rootPrefixCls:zt,labelRequiredMarkColor:Pn,labelColor:_n,labelFontSize:qn,labelHeight:Yn,labelColonMarginInlineStart:$t,labelColonMarginInlineEnd:jn,itemMarginBottom:Wn}=Ot;return{[gn]:Object.assign(Object.assign({},(0,Ee.Wf)(Ot)),{marginBottom:Wn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${zt}-row`]:{display:"none"},"&-has-warning":{[`${gn}-split`]:{color:Ot.colorError}},"&-has-error":{[`${gn}-split`]:{color:Ot.colorWarning}},[`${gn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ot.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Yn,color:_n,fontSize:qn,[`> ${Nn}`]:{fontSize:Ot.fontSize,verticalAlign:"top"},[`&${gn}-required:not(${gn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ot.marginXXS,color:Pn,fontSize:Ot.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Xt}-hide-required-mark &`]:{display:"none"}},[`${gn}-optional`]:{display:"inline-block",marginInlineStart:Ot.marginXXS,color:Ot.colorTextDescription,[`${Xt}-hide-required-mark &`]:{display:"none"}},[`${gn}-tooltip`]:{color:Ot.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ot.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:$t,marginInlineEnd:jn},[`&${gn}-no-colon::after`]:{content:'"\\a0"'}}},[`${gn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${zt}-col-'"]):not([class*="' ${zt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ot.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[gn]:{"&-explain, &-extra":{clear:"both",color:Ot.colorTextDescription,fontSize:Ot.fontSize,lineHeight:Ot.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ot.controlHeightSM,transition:`color ${Ot.motionDurationMid} ${Ot.motionEaseOut}`},"&-explain":{"&-error":{color:Ot.colorError},"&-warning":{color:Ot.colorWarning}}},[`&-with-help ${gn}-explain`]:{height:"auto",opacity:1},[`${gn}-feedback-icon`]:{fontSize:Ot.fontSize,textAlign:"center",visibility:"visible",animationName:ye.kr,animationDuration:Ot.motionDurationMid,animationTimingFunction:Ot.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ot.colorSuccess},"&-error":{color:Ot.colorError},"&-warning":{color:Ot.colorWarning},"&-validating":{color:Ot.colorPrimary}}})}},ue=Ot=>{const{componentCls:gn,formItemCls:Nn}=Ot;return{[`${gn}-horizontal`]:{[`${Nn}-label`]:{flexGrow:0},[`${Nn}-control`]:{flex:"1 1 0",minWidth:0},[`${Nn}-label[class$='-24'], ${Nn}-label[class*='-24 ']`]:{[`& + ${Nn}-control`]:{minWidth:"unset"}}}}},pe=Ot=>{const{componentCls:gn,formItemCls:Nn}=Ot;return{[`${gn}-inline`]:{display:"flex",flexWrap:"wrap",[Nn]:{flex:"none",marginInlineEnd:Ot.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Nn}-label,
|
|
|
> ${Nn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Nn}-label`]:{flex:"none"},[`${gn}-text`]:{display:"inline-block"},[`${Nn}-has-feedback`]:{display:"inline-block"}}}}},Te=Ot=>({padding:Ot.verticalLabelPadding,margin:Ot.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=Ot=>{const{componentCls:gn,formItemCls:Nn,rootPrefixCls:Xt}=Ot;return{[`${Nn} ${Nn}-label`]:Te(Ot),[gn]:{[Nn]:{flexWrap:"wrap",[`${Nn}-label, ${Nn}-control`]:{[`&:not([class*=" ${Xt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Fe=Ot=>{const{componentCls:gn,formItemCls:Nn,rootPrefixCls:Xt}=Ot;return{[`${gn}-vertical`]:{[Nn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${gn}-item-control`]:{width:"100%"}}},[`${gn}-vertical ${Nn}-label,
|
|
|
.${Xt}-col-24${Nn}-label,
|
|
|
.${Xt}-col-xl-24${Nn}-label`]:Te(Ot),[`@media (max-width: ${Ot.screenXSMax}px)`]:[Ce(Ot),{[gn]:{[`.${Xt}-col-xs-24${Nn}-label`]:Te(Ot)}}],[`@media (max-width: ${Ot.screenSMMax}px)`]:{[gn]:{[`.${Xt}-col-sm-24${Nn}-label`]:Te(Ot)}},[`@media (max-width: ${Ot.screenMDMax}px)`]:{[gn]:{[`.${Xt}-col-md-24${Nn}-label`]:Te(Ot)}},[`@media (max-width: ${Ot.screenLGMax}px)`]:{[gn]:{[`.${Xt}-col-lg-24${Nn}-label`]:Te(Ot)}}}},Ae=(Ot,gn)=>(0,ve.TS)(Ot,{formItemCls:`${Ot.componentCls}-item`,rootPrefixCls:gn});var je=(0,xe.Z)("Form",(Ot,gn)=>{let{rootPrefixCls:Nn}=gn;const Xt=Ae(Ot,Nn);return[re(Xt),le(Xt),z(Xt),ue(Xt),pe(Xt),Fe(Xt),(0,Me.Z)(Xt),ye.kr]},Ot=>({labelRequiredMarkColor:Ot.colorError,labelColor:Ot.colorTextHeading,labelFontSize:Ot.fontSize,labelHeight:Ot.controlHeight,labelColonMarginInlineStart:Ot.marginXXS/2,labelColonMarginInlineEnd:Ot.marginXS,itemMarginBottom:Ot.marginLG,verticalLabelPadding:`0 0 ${Ot.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ne=[];function Be(Ot,gn,Nn){let Xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ot=="string"?Ot:`${gn}-${Xt}`,error:Ot,errorStatus:Nn}}var Qe=Ot=>{let{help:gn,helpStatus:Nn,errors:Xt=Ne,warnings:zt=Ne,className:Pn,fieldId:_n,onVisibleChanged:qn}=Ot;const{prefixCls:Yn}=Ie.useContext(ce.Rk),$t=`${Yn}-item-explain`,[,jn]=je(Yn),Wn=(0,Ie.useMemo)(()=>(0,ge.Z)(Yn),[Yn]),or=Pe(Xt),nn=Pe(zt),Cn=Ie.useMemo(()=>gn!=null?[Be(gn,"help",Nn)]:[].concat((0,rt.Z)(or.map((mn,En)=>Be(mn,"error","error",En))),(0,rt.Z)(nn.map((mn,En)=>Be(mn,"warning","warning",En)))),[gn,Nn,or,nn]),rn={};return _n&&(rn.id=`${_n}_help`),Ie.createElement(_e.default,{motionDeadline:Wn.motionDeadline,motionName:`${Yn}-show-help`,visible:!!Cn.length,onVisibleChanged:qn},mn=>{const{className:En,style:pn}=mn;return Ie.createElement("div",Object.assign({},rn,{className:ie()($t,En,Pn,jn),style:pn,role:"alert"}),Ie.createElement(_e.CSSMotionList,Object.assign({keys:Cn},(0,ge.Z)(Yn),{motionName:`${Yn}-show-help-item`,component:!1}),kn=>{const{key:Mn,error:zn,errorStatus:Dn,className:ar,style:dn}=kn;return Ie.createElement("div",{key:Mn,className:ie()(ar,{[`${$t}-${Dn}`]:Dn}),style:dn},zn)}))})},$e=Ge(95013),Ye=Ge(36355),at=Ge(1684),ut=Ge(52946),ht=Ge(19716),Ct=Ge(16722);const et=["parentNode"],it="form_item";function St(Ot){return Ot===void 0||Ot===!1?[]:Array.isArray(Ot)?Ot:[Ot]}function bt(Ot,gn){if(!Ot.length)return;const Nn=Ot.join("_");return gn?`${gn}_${Nn}`:et.includes(Nn)?`${it}_${Nn}`:Nn}function Pt(Ot,gn,Nn,Xt,zt,Pn){let _n=Xt;return Pn!==void 0?_n=Pn:Nn.validating?_n="validating":Ot.length?_n="error":gn.length?_n="warning":(Nn.touched||zt&&Nn.validated)&&(_n="success"),_n}function gt(Ot){return St(Ot).join("_")}function dt(Ot){const[gn]=(0,$e.useForm)(),Nn=Ie.useRef({}),Xt=Ie.useMemo(()=>Ot!=null?Ot:Object.assign(Object.assign({},gn),{__INTERNAL__:{itemRef:zt=>Pn=>{const _n=gt(zt);Pn?Nn.current[_n]=Pn:delete Nn.current[_n]}},scrollToField:function(zt){let Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const _n=St(zt),qn=bt(_n,Xt.__INTERNAL__.name),Yn=qn?document.getElementById(qn):null;Yn&&(0,Ct.Z)(Yn,Object.assign({scrollMode:"if-needed",block:"nearest"},Pn))},getFieldInstance:zt=>{const Pn=gt(zt);return Nn.current[Pn]}}),[Ot,gn]);return[Xt]}var mt=Ge(28726),kt=function(Ot,gn){var Nn={};for(var Xt in Ot)Object.prototype.hasOwnProperty.call(Ot,Xt)&&gn.indexOf(Xt)<0&&(Nn[Xt]=Ot[Xt]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Xt=Object.getOwnPropertySymbols(Ot);zt<Xt.length;zt++)gn.indexOf(Xt[zt])<0&&Object.prototype.propertyIsEnumerable.call(Ot,Xt[zt])&&(Nn[Xt[zt]]=Ot[Xt[zt]]);return Nn};const Et=(Ot,gn)=>{const Nn=Ie.useContext(at.Z),{getPrefixCls:Xt,direction:zt,form:Pn}=Ie.useContext(Ye.E_),{prefixCls:_n,className:qn,rootClassName:Yn,size:$t,disabled:jn=Nn,form:Wn,colon:or,labelAlign:nn,labelWrap:Cn,labelCol:rn,wrapperCol:mn,hideRequiredMark:En,layout:pn="horizontal",scrollToFirstError:kn,requiredMark:Mn,onFinishFailed:zn,name:Dn,style:ar,feedbackIcons:dn}=Ot,Or=kt(Ot,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Jr=(0,ht.Z)($t),Rr=Ie.useContext(mt.Z),vn=(0,Ie.useMemo)(()=>Mn!==void 0?Mn:Pn&&Pn.requiredMark!==void 0?Pn.requiredMark:!En,[En,Mn,Pn]),Jn=or!=null?or:Pn==null?void 0:Pn.colon,lr=Xt("form",_n),[vr,Sr]=je(lr),Kr=ie()(lr,`${lr}-${pn}`,{[`${lr}-hide-required-mark`]:vn===!1,[`${lr}-rtl`]:zt==="rtl",[`${lr}-${Jr}`]:Jr},Sr,Pn==null?void 0:Pn.className,qn,Yn),[ai]=dt(Wn),{__INTERNAL__:Br}=ai;Br.name=Dn;const br=(0,Ie.useMemo)(()=>({name:Dn,labelAlign:nn,labelCol:rn,labelWrap:Cn,wrapperCol:mn,vertical:pn==="vertical",colon:Jn,requiredMark:vn,itemRef:Br.itemRef,form:ai,feedbackIcons:dn}),[Dn,nn,rn,mn,pn,Jn,vn,ai,dn]);Ie.useImperativeHandle(gn,()=>ai);const si=(Ri,On)=>{if(Ri){let pi={block:"nearest"};typeof Ri=="object"&&(pi=Ri),ai.scrollToField(On,pi)}},Tn=Ri=>{if(zn==null||zn(Ri),Ri.errorFields.length){const On=Ri.errorFields[0].name;if(kn!==void 0){si(kn,On);return}Pn&&Pn.scrollToFirstError!==void 0&&si(Pn.scrollToFirstError,On)}};return vr(Ie.createElement(at.n,{disabled:jn},Ie.createElement(ut.q,{size:Jr},Ie.createElement(ce.RV,Object.assign({},{validateMessages:Rr}),Ie.createElement(ce.q3.Provider,{value:br},Ie.createElement($e.default,Object.assign({id:Dn},Or,{name:Dn,onFinishFailed:Tn,form:ai,style:Object.assign(Object.assign({},Pn==null?void 0:Pn.style),ar),className:Kr})))))))};var wt=Ie.forwardRef(Et),pt=Ge(41799),tt=Ge(8654),Ze=Ge(92343),we=Ge(11592);function be(Ot){if(typeof Ot=="function")return Ot;const gn=(0,we.Z)(Ot);return gn.length<=1?gn[0]:gn}const Ke=()=>{const{status:Ot,errors:gn=[],warnings:Nn=[]}=(0,Ie.useContext)(ce.aM);return{status:Ot,errors:gn,warnings:Nn}};Ke.Context=ce.aM;var Xe=Ke,Oe=Ge(16089);function Ue(Ot){const[gn,Nn]=Ie.useState(Ot),Xt=(0,Ie.useRef)(null),zt=(0,Ie.useRef)([]),Pn=(0,Ie.useRef)(!1);Ie.useEffect(()=>(Pn.current=!1,()=>{Pn.current=!0,Oe.Z.cancel(Xt.current),Xt.current=null}),[]);function _n(qn){Pn.current||(Xt.current===null&&(zt.current=[],Xt.current=(0,Oe.Z)(()=>{Xt.current=null,Nn(Yn=>{let $t=Yn;return zt.current.forEach(jn=>{$t=jn($t)}),$t})})),zt.current.push(qn))}return[gn,_n]}function He(){const{itemRef:Ot}=Ie.useContext(ce.q3),gn=Ie.useRef({});function Nn(Xt,zt){const Pn=zt&&typeof zt=="object"&&zt.ref,_n=Xt.join("_");return(gn.current.name!==_n||gn.current.originRef!==Pn)&&(gn.current.name=_n,gn.current.originRef=Pn,gn.current.ref=(0,tt.sQ)(Ot(Xt),Pn)),gn.current.ref}return Nn}var Ve=Ge(29194),Je=Ge(34280),ct=Ge(2738),yt=Ge(27382),ft=Ge(37028);const Mt=Ot=>{const{formItemCls:gn}=Ot;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${gn}-control`]:{display:"flex"}}}};var Jt=(0,xe.b)(["Form","item-item"],(Ot,gn)=>{let{rootPrefixCls:Nn}=gn;const Xt=Ae(Ot,Nn);return[Mt(Xt)]}),Kt=Ot=>{const{prefixCls:gn,status:Nn,wrapperCol:Xt,children:zt,errors:Pn,warnings:_n,_internalItemRender:qn,extra:Yn,help:$t,fieldId:jn,marginBottom:Wn,onErrorVisibleChanged:or}=Ot,nn=`${gn}-item`,Cn=Ie.useContext(ce.q3),rn=Xt||Cn.wrapperCol||{},mn=ie()(`${nn}-control`,rn.className),En=Ie.useMemo(()=>Object.assign({},Cn),[Cn]);delete En.labelCol,delete En.wrapperCol;const pn=Ie.createElement("div",{className:`${nn}-control-input`},Ie.createElement("div",{className:`${nn}-control-input-content`},zt)),kn=Ie.useMemo(()=>({prefixCls:gn,status:Nn}),[gn,Nn]),Mn=Wn!==null||Pn.length||_n.length?Ie.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Ie.createElement(ce.Rk.Provider,{value:kn},Ie.createElement(Qe,{fieldId:jn,errors:Pn,warnings:_n,help:$t,helpStatus:Nn,className:`${nn}-explain-connected`,onVisibleChanged:or})),!!Wn&&Ie.createElement("div",{style:{width:0,height:Wn}})):null,zn={};jn&&(zn.id=`${jn}_extra`);const Dn=Yn?Ie.createElement("div",Object.assign({},zn,{className:`${nn}-extra`}),Yn):null,ar=qn&&qn.mark==="pro_table_render"&&qn.render?qn.render(Ot,{input:pn,errorList:Mn,extra:Dn}):Ie.createElement(Ie.Fragment,null,pn,Mn,Dn);return Ie.createElement(ce.q3.Provider,{value:En},Ie.createElement(ft.Z,Object.assign({},rn,{className:mn}),ar),Ie.createElement(Jt,{prefixCls:gn}))},Ht=Ge(61485),tn=Ge(31724),It=Ge(9763),Dt=Ge(6848),qt=function(Ot,gn){var Nn={};for(var Xt in Ot)Object.prototype.hasOwnProperty.call(Ot,Xt)&&gn.indexOf(Xt)<0&&(Nn[Xt]=Ot[Xt]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Xt=Object.getOwnPropertySymbols(Ot);zt<Xt.length;zt++)gn.indexOf(Xt[zt])<0&&Object.prototype.propertyIsEnumerable.call(Ot,Xt[zt])&&(Nn[Xt[zt]]=Ot[Xt[zt]]);return Nn};function sn(Ot){return Ot?typeof Ot=="object"&&!Ie.isValidElement(Ot)?Ot:{title:Ot}:null}var Ln=Ot=>{let{prefixCls:gn,label:Nn,htmlFor:Xt,labelCol:zt,labelAlign:Pn,colon:_n,required:qn,requiredMark:Yn,tooltip:$t}=Ot;var jn;const[Wn]=(0,It.Z)("Form"),{vertical:or,labelAlign:nn,labelCol:Cn,labelWrap:rn,colon:mn}=Ie.useContext(ce.q3);if(!Nn)return null;const En=zt||Cn||{},pn=Pn||nn,kn=`${gn}-item-label`,Mn=ie()(kn,pn==="left"&&`${kn}-left`,En.className,{[`${kn}-wrap`]:!!rn});let zn=Nn;const Dn=_n===!0||mn!==!1&&_n!==!1;Dn&&!or&&typeof Nn=="string"&&Nn.trim()!==""&&(zn=Nn.replace(/[:|:]\s*$/,""));const dn=sn($t);if(dn){const{icon:vn=Ie.createElement(Ht.Z,null)}=dn,Jn=qt(dn,["icon"]),lr=Ie.createElement(Dt.Z,Object.assign({},Jn),Ie.cloneElement(vn,{className:`${gn}-item-tooltip`,title:""}));zn=Ie.createElement(Ie.Fragment,null,zn,lr)}const Or=Yn==="optional",Jr=typeof Yn=="function";Jr?zn=Yn(zn,{required:!!qn}):Or&&!qn&&(zn=Ie.createElement(Ie.Fragment,null,zn,Ie.createElement("span",{className:`${gn}-item-optional`,title:""},(Wn==null?void 0:Wn.optional)||((jn=tn.Z.Form)===null||jn===void 0?void 0:jn.optional))));const Rr=ie()({[`${gn}-item-required`]:qn,[`${gn}-item-required-mark-optional`]:Or||Jr,[`${gn}-item-no-colon`]:!Dn});return Ie.createElement(ft.Z,Object.assign({},En,{className:Mn}),Ie.createElement("label",{htmlFor:Xt,className:Rr,title:typeof Nn=="string"?Nn:""},zn))},Zn=Ge(29679),Xn=Ge(19248),dr=Ge(96512),fr=Ge(58617);const pr={success:Zn.Z,warning:dr.Z,error:Xn.Z,validating:fr.Z};function Cr(Ot){let{children:gn,errors:Nn,warnings:Xt,hasFeedback:zt,validateStatus:Pn,prefixCls:_n,meta:qn,noStyle:Yn}=Ot;const $t=`${_n}-item`,{feedbackIcons:jn}=Ie.useContext(ce.q3),Wn=Pt(Nn,Xt,qn,null,!!zt,Pn),{isFormItemInput:or,status:nn}=Ie.useContext(ce.aM),Cn=Ie.useMemo(()=>{var rn;let mn;if(zt){const kn=zt!==!0&&zt.icons||jn,Mn=Wn&&((rn=kn==null?void 0:kn({status:Wn,errors:Nn,warnings:Xt}))===null||rn===void 0?void 0:rn[Wn]),zn=Wn&&pr[Wn];mn=Mn!==!1&&zn?Ie.createElement("span",{className:ie()(`${$t}-feedback-icon`,`${$t}-feedback-icon-${Wn}`)},Mn||Ie.createElement(zn,null)):null}let En=!0,pn=Wn||"";return Yn&&(En=or,pn=(Wn!=null?Wn:nn)||""),{status:pn,errors:Nn,warnings:Xt,hasFeedback:!!zt,feedbackIcon:mn,isFormItemInput:En}},[Wn,zt,Yn,or,nn]);return Ie.createElement(ce.aM.Provider,{value:Cn},gn)}var Yr=function(Ot,gn){var Nn={};for(var Xt in Ot)Object.prototype.hasOwnProperty.call(Ot,Xt)&&gn.indexOf(Xt)<0&&(Nn[Xt]=Ot[Xt]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Xt=Object.getOwnPropertySymbols(Ot);zt<Xt.length;zt++)gn.indexOf(Xt[zt])<0&&Object.prototype.propertyIsEnumerable.call(Ot,Xt[zt])&&(Nn[Xt[zt]]=Ot[Xt[zt]]);return Nn};function ii(Ot){const{prefixCls:gn,className:Nn,rootClassName:Xt,style:zt,help:Pn,errors:_n,warnings:qn,validateStatus:Yn,meta:$t,hasFeedback:jn,hidden:Wn,children:or,fieldId:nn,required:Cn,isRequired:rn,onSubItemMetaChange:mn}=Ot,En=Yr(Ot,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),pn=`${gn}-item`,{requiredMark:kn}=Ie.useContext(ce.q3),Mn=Ie.useRef(null),zn=Pe(_n),Dn=Pe(qn),ar=Pn!=null,dn=!!(ar||_n.length||qn.length),Or=!!Mn.current&&(0,Ve.Z)(Mn.current),[Jr,Rr]=Ie.useState(null);(0,Je.Z)(()=>{if(dn&&Mn.current){const Sr=getComputedStyle(Mn.current);Rr(parseInt(Sr.marginBottom,10))}},[dn,Or]);const vn=Sr=>{Sr||Rr(null)},lr=function(){let Sr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Kr=Sr?zn:$t.errors,ai=Sr?Dn:$t.warnings;return Pt(Kr,ai,$t,"",!!jn,Yn)}(),vr=ie()(pn,Nn,Xt,{[`${pn}-with-help`]:ar||zn.length||Dn.length,[`${pn}-has-feedback`]:lr&&jn,[`${pn}-has-success`]:lr==="success",[`${pn}-has-warning`]:lr==="warning",[`${pn}-has-error`]:lr==="error",[`${pn}-is-validating`]:lr==="validating",[`${pn}-hidden`]:Wn});return Ie.createElement("div",{className:vr,style:zt,ref:Mn},Ie.createElement(yt.Z,Object.assign({className:`${pn}-row`},(0,ct.Z)(En,["_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"])),Ie.createElement(Ln,Object.assign({htmlFor:nn},Ot,{requiredMark:kn,required:Cn!=null?Cn:rn,prefixCls:gn})),Ie.createElement(Kt,Object.assign({},Ot,$t,{errors:zn,warnings:Dn,prefixCls:gn,status:lr,help:Pn,marginBottom:Jr,onErrorVisibleChanged:vn}),Ie.createElement(ce.qI.Provider,{value:mn},Ie.createElement(Cr,{prefixCls:gn,meta:$t,errors:$t.errors,warnings:$t.warnings,hasFeedback:jn,validateStatus:lr},or)))),!!Jr&&Ie.createElement("div",{className:`${pn}-margin-offset`,style:{marginBottom:-Jr}}))}const jr="__SPLIT__",fi=null,Lr=Ie.memo(Ot=>{let{children:gn}=Ot;return gn},(Ot,gn)=>Ot.value===gn.value&&Ot.update===gn.update&&Ot.childProps.length===gn.childProps.length&&Ot.childProps.every((Nn,Xt)=>Nn===gn.childProps[Xt]));function ot(Ot){return Ot!=null}function oi(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function yi(Ot){const{name:gn,noStyle:Nn,className:Xt,dependencies:zt,prefixCls:Pn,shouldUpdate:_n,rules:qn,children:Yn,required:$t,label:jn,messageVariables:Wn,trigger:or="onChange",validateTrigger:nn,hidden:Cn,help:rn}=Ot,{getPrefixCls:mn}=Ie.useContext(Ye.E_),{name:En}=Ie.useContext(ce.q3),pn=be(Yn),kn=typeof pn=="function",Mn=Ie.useContext(ce.qI),{validateTrigger:zn}=Ie.useContext($e.FieldContext),Dn=nn!==void 0?nn:zn,ar=ot(gn),dn=mn("form",Pn),[Or,Jr]=je(dn),Rr=Ie.useContext($e.ListContext),vn=Ie.useRef(),[Jn,lr]=Ue({}),[vr,Sr]=(0,pt.Z)(()=>oi()),Kr=On=>{const pi=Rr==null?void 0:Rr.getKey(On.name);if(Sr(On.destroy?oi():On,!0),Nn&&rn!==!1&&Mn){let xo=On.name;if(On.destroy)xo=vn.current||xo;else if(pi!==void 0){const[zi,Lo]=pi;xo=[zi].concat((0,rt.Z)(Lo)),vn.current=xo}Mn(On,xo)}},ai=(On,pi)=>{lr(xo=>{const zi=Object.assign({},xo),yo=[].concat((0,rt.Z)(On.name.slice(0,-1)),(0,rt.Z)(pi)).join(jr);return On.destroy?delete zi[yo]:zi[yo]=On,zi})},[Br,br]=Ie.useMemo(()=>{const On=(0,rt.Z)(vr.errors),pi=(0,rt.Z)(vr.warnings);return Object.values(Jn).forEach(xo=>{On.push.apply(On,(0,rt.Z)(xo.errors||[])),pi.push.apply(pi,(0,rt.Z)(xo.warnings||[]))}),[On,pi]},[Jn,vr.errors,vr.warnings]),si=He();function Tn(On,pi,xo){return Nn&&!Cn?Ie.createElement(Cr,{prefixCls:dn,hasFeedback:Ot.hasFeedback,validateStatus:Ot.validateStatus,meta:vr,errors:Br,warnings:br,noStyle:!0},On):Ie.createElement(ii,Object.assign({key:"row"},Ot,{className:ie()(Xt,Jr),prefixCls:dn,fieldId:pi,isRequired:xo,errors:Br,warnings:br,meta:vr,onSubItemMetaChange:ai}),On)}if(!ar&&!kn&&!zt)return Or(Tn(pn));let Ri={};return typeof jn=="string"?Ri.label=jn:gn&&(Ri.label=String(gn)),Wn&&(Ri=Object.assign(Object.assign({},Ri),Wn)),Or(Ie.createElement($e.Field,Object.assign({},Ot,{messageVariables:Ri,trigger:or,validateTrigger:Dn,onMetaChange:Kr}),(On,pi,xo)=>{const zi=St(gn).length&&pi?pi.name:[],Lo=bt(zi,En),yo=$t!==void 0?$t:!!(qn&&qn.some(Mi=>{if(Mi&&typeof Mi=="object"&&Mi.required&&!Mi.warningOnly)return!0;if(typeof Mi=="function"){const Hi=Mi(xo);return Hi&&Hi.required&&!Hi.warningOnly}return!1})),Ur=Object.assign({},On);let Gr=null;if(Array.isArray(pn)&&ar)Gr=pn;else if(!(kn&&(!(_n||zt)||ar))){if(!(zt&&!kn&&!ar))if((0,Ze.l$)(pn)){const Mi=Object.assign(Object.assign({},pn.props),Ur);if(Mi.id||(Mi.id=Lo),rn||Br.length>0||br.length>0||Ot.extra){const Lt=[];(rn||Br.length>0)&&Lt.push(`${Lo}_help`),Ot.extra&&Lt.push(`${Lo}_extra`),Mi["aria-describedby"]=Lt.join(" ")}Br.length>0&&(Mi["aria-invalid"]="true"),yo&&(Mi["aria-required"]="true"),(0,tt.Yr)(pn)&&(Mi.ref=si(zi,pn)),new Set([].concat((0,rt.Z)(St(or)),(0,rt.Z)(St(Dn)))).forEach(Lt=>{Mi[Lt]=function(){for(var Ii,_r,Ir,_i,Ji,zr=arguments.length,Vr=new Array(zr),Ci=0;Ci<zr;Ci++)Vr[Ci]=arguments[Ci];(Ir=Ur[Lt])===null||Ir===void 0||(Ii=Ir).call.apply(Ii,[Ur].concat(Vr)),(Ji=(_i=pn.props)[Lt])===null||Ji===void 0||(_r=Ji).call.apply(_r,[_i].concat(Vr))}});const cr=[Mi["aria-required"],Mi["aria-invalid"],Mi["aria-describedby"]];Gr=Ie.createElement(Lr,{value:Ur[Ot.valuePropName||"value"],update:pn,childProps:cr},(0,Ze.Tm)(pn,Mi))}else kn&&(_n||zt)&&!ar?Gr=pn(xo):Gr=pn}return Tn(Gr,Lo,yo)}))}const Pi=yi;Pi.useStatus=Xe;var sr=Pi,Ar=function(Ot,gn){var Nn={};for(var Xt in Ot)Object.prototype.hasOwnProperty.call(Ot,Xt)&&gn.indexOf(Xt)<0&&(Nn[Xt]=Ot[Xt]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Xt=Object.getOwnPropertySymbols(Ot);zt<Xt.length;zt++)gn.indexOf(Xt[zt])<0&&Object.prototype.propertyIsEnumerable.call(Ot,Xt[zt])&&(Nn[Xt[zt]]=Ot[Xt[zt]]);return Nn},Si=Ot=>{var{prefixCls:gn,children:Nn}=Ot,Xt=Ar(Ot,["prefixCls","children"]);const{getPrefixCls:zt}=Ie.useContext(Ye.E_),Pn=zt("form",gn),_n=Ie.useMemo(()=>({prefixCls:Pn,status:"error"}),[Pn]);return Ie.createElement($e.List,Object.assign({},Xt),(qn,Yn,$t)=>Ie.createElement(ce.Rk.Provider,{value:_n},Nn(qn.map(jn=>Object.assign(Object.assign({},jn),{fieldKey:jn.key})),Yn,{errors:$t.errors,warnings:$t.warnings})))};function Nr(){const{form:Ot}=(0,Ie.useContext)(ce.q3);return Ot}const hn=wt;hn.Item=sr,hn.List=Si,hn.ErrorList=Qe,hn.useForm=dt,hn.useFormInstance=Nr,hn.useWatch=$e.useWatch,hn.Provider=ce.RV,hn.create=()=>{};var cn=hn},8628:function(bn,an,Ge){"use strict";var rt=Ge(59301),vt=Ge(34280),ie=Ge(56762),_e=Ge(69507);function Ie(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ce=(0,rt.useRef)({}),Pe=(0,ie.Z)(),Ee=(0,_e.ZP)();return(0,vt.Z)(()=>{const ye=Ee.subscribe(Me=>{ce.current=Me,ge&&Pe()});return()=>Ee.unsubscribe(ye)},[]),ce.current}an.Z=Ie},9432:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return le},n:function(){return ae}});var rt=Ge(19248),vt=Ge(92310),ie=Ge.n(vt),_e=Ge(93681),Ie=Ge(8654),ge=Ge(59301),ce=Ge(19080),Pe=Ge(36355),Ee=Ge(1684),ye=Ge(19716),Me=Ge(32441),ve=Ge(33234),xe=Ge(59412),fe=Ge(9937);function z(ue){return!!(ue.prefix||ue.suffix||ue.allowClear)}var ee=function(ue,pe){var Te={};for(var Ce in ue)Object.prototype.hasOwnProperty.call(ue,Ce)&&pe.indexOf(Ce)<0&&(Te[Ce]=ue[Ce]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ce=Object.getOwnPropertySymbols(ue);Fe<Ce.length;Fe++)pe.indexOf(Ce[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ce[Fe])&&(Te[Ce[Fe]]=ue[Ce[Fe]]);return Te};function ae(ue,pe){if(!ue)return;ue.focus(pe);const{cursor:Te}=pe||{};if(Te){const Ce=ue.value.length;switch(Te){case"start":ue.setSelectionRange(0,0);break;case"end":ue.setSelectionRange(Ce,Ce);break;default:ue.setSelectionRange(0,Ce);break}}}var le=(0,ge.forwardRef)((ue,pe)=>{var Te;const{prefixCls:Ce,bordered:Fe=!0,status:Ae,size:je,disabled:Ne,onBlur:Be,onFocus:ze,suffix:Qe,allowClear:$e,addonAfter:Ye,addonBefore:at,className:ut,style:ht,styles:Ct,rootClassName:et,onChange:it,classNames:St}=ue,bt=ee(ue,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Pt,direction:gt,input:dt}=ge.useContext(Pe.E_),mt=Pt("input",Ce),kt=(0,ge.useRef)(null),[Et,Ut]=(0,fe.ZP)(mt),{compactSize:wt,compactItemClassnames:pt}=(0,ve.ri)(mt,gt),tt=(0,ye.Z)(Jt=>{var Vt;return(Vt=je!=null?je:wt)!==null&&Vt!==void 0?Vt:Jt}),Ze=ge.useContext(Ee.Z),we=Ne!=null?Ne:Ze,{status:be,hasFeedback:Ke,feedbackIcon:Xe}=(0,ge.useContext)(Me.aM),Oe=(0,ce.F)(be,Ae),Ue=z(ue)||!!Ke,He=(0,ge.useRef)(Ue);(0,ge.useEffect)(()=>{var Jt;Ue&&He.current,He.current=Ue},[Ue]);const Ve=(0,xe.Z)(kt,!0),Je=Jt=>{Ve(),Be==null||Be(Jt)},ct=Jt=>{Ve(),ze==null||ze(Jt)},yt=Jt=>{Ve(),it==null||it(Jt)},ft=(Ke||Qe)&&ge.createElement(ge.Fragment,null,Qe,Ke&&Xe);let Mt;return typeof $e=="object"&&($e!=null&&$e.clearIcon)?Mt=$e:$e&&(Mt={clearIcon:ge.createElement(rt.Z,null)}),Et(ge.createElement(_e.default,Object.assign({ref:(0,Ie.sQ)(pe,kt),prefixCls:mt,autoComplete:dt==null?void 0:dt.autoComplete},bt,{disabled:we,onBlur:Je,onFocus:ct,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),ht),styles:Object.assign(Object.assign({},dt==null?void 0:dt.styles),Ct),suffix:ft,allowClear:Mt,className:ie()(ut,et,pt,dt==null?void 0:dt.className),onChange:yt,addonAfter:Ye&&ge.createElement(ve.BR,null,ge.createElement(Me.Ux,{override:!0,status:!0},Ye)),addonBefore:at&&ge.createElement(ve.BR,null,ge.createElement(Me.Ux,{override:!0,status:!0},at)),classNames:Object.assign(Object.assign(Object.assign({},St),dt==null?void 0:dt.classNames),{input:ie()({[`${mt}-sm`]:tt==="small",[`${mt}-lg`]:tt==="large",[`${mt}-rtl`]:gt==="rtl",[`${mt}-borderless`]:!Fe},!Ue&&(0,ce.Z)(mt,Oe),St==null?void 0:St.input,(Te=dt==null?void 0:dt.classNames)===null||Te===void 0?void 0:Te.input,Ut)}),classes:{affixWrapper:ie()({[`${mt}-affix-wrapper-sm`]:tt==="small",[`${mt}-affix-wrapper-lg`]:tt==="large",[`${mt}-affix-wrapper-rtl`]:gt==="rtl",[`${mt}-affix-wrapper-borderless`]:!Fe},(0,ce.Z)(`${mt}-affix-wrapper`,Oe,Ke),Ut),wrapper:ie()({[`${mt}-group-rtl`]:gt==="rtl"},Ut),group:ie()({[`${mt}-group-wrapper-sm`]:tt==="small",[`${mt}-group-wrapper-lg`]:tt==="large",[`${mt}-group-wrapper-rtl`]:gt==="rtl",[`${mt}-group-wrapper-disabled`]:we},(0,ce.Z)(`${mt}-group-wrapper`,Oe,Ke),Ut)}})))})},1643:function(bn,an,Ge){"use strict";var rt=Ge(19248),vt=Ge(92310),ie=Ge.n(vt),_e=Ge(9296),Ie=Ge(59301),ge=Ge(19080),ce=Ge(36355),Pe=Ge(1684),Ee=Ge(19716),ye=Ge(32441),Me=Ge(9432),ve=Ge(9937),xe=function(z,ee){var ae={};for(var re in z)Object.prototype.hasOwnProperty.call(z,re)&&ee.indexOf(re)<0&&(ae[re]=z[re]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,re=Object.getOwnPropertySymbols(z);le<re.length;le++)ee.indexOf(re[le])<0&&Object.prototype.propertyIsEnumerable.call(z,re[le])&&(ae[re[le]]=z[re[le]]);return ae};const fe=(0,Ie.forwardRef)((z,ee)=>{const{prefixCls:ae,bordered:re=!0,size:le,disabled:ue,status:pe,allowClear:Te,showCount:Ce,classNames:Fe,rootClassName:Ae,className:je}=z,Ne=xe(z,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Be,direction:ze}=Ie.useContext(ce.E_),Qe=(0,Ee.Z)(le),$e=Ie.useContext(Pe.Z),Ye=ue!=null?ue:$e,{status:at,hasFeedback:ut,feedbackIcon:ht}=Ie.useContext(ye.aM),Ct=(0,ge.F)(at,pe),et=Ie.useRef(null);Ie.useImperativeHandle(ee,()=>{var gt;return{resizableTextArea:(gt=et.current)===null||gt===void 0?void 0:gt.resizableTextArea,focus:dt=>{var mt,kt;(0,Me.n)((kt=(mt=et.current)===null||mt===void 0?void 0:mt.resizableTextArea)===null||kt===void 0?void 0:kt.textArea,dt)},blur:()=>{var dt;return(dt=et.current)===null||dt===void 0?void 0:dt.blur()}}});const it=Be("input",ae);let St;typeof Te=="object"&&(Te!=null&&Te.clearIcon)?St=Te:Te&&(St={clearIcon:Ie.createElement(rt.Z,null)});const[bt,Pt]=(0,ve.ZP)(it);return bt(Ie.createElement(_e.default,Object.assign({},Ne,{disabled:Ye,allowClear:St,className:ie()(je,Ae),classes:{affixWrapper:ie()(`${it}-textarea-affix-wrapper`,{[`${it}-affix-wrapper-rtl`]:ze==="rtl",[`${it}-affix-wrapper-borderless`]:!re,[`${it}-affix-wrapper-sm`]:Qe==="small",[`${it}-affix-wrapper-lg`]:Qe==="large",[`${it}-textarea-show-count`]:Ce},(0,ge.Z)(`${it}-affix-wrapper`,Ct),Pt)},classNames:Object.assign(Object.assign({},Fe),{textarea:ie()({[`${it}-borderless`]:!re,[`${it}-sm`]:Qe==="small",[`${it}-lg`]:Qe==="large"},(0,ge.Z)(it,Ct),Pt,Fe==null?void 0:Fe.textarea)}),prefixCls:it,suffix:ut&&Ie.createElement("span",{className:`${it}-textarea-suffix`},ht),showCount:Ce,ref:et})))});an.Z=fe},59412:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return vt}});var rt=Ge(59301);function vt(ie,_e){const Ie=(0,rt.useRef)([]),ge=()=>{Ie.current.push(setTimeout(()=>{var ce,Pe,Ee,ye;!((ce=ie.current)===null||ce===void 0)&&ce.input&&((Pe=ie.current)===null||Pe===void 0?void 0:Pe.input.getAttribute("type"))==="password"&&(!((Ee=ie.current)===null||Ee===void 0)&&Ee.input.hasAttribute("value"))&&((ye=ie.current)===null||ye===void 0||ye.input.removeAttribute("value"))}))};return(0,rt.useEffect)(()=>(_e&&ge(),()=>Ie.current.forEach(ce=>{ce&&clearTimeout(ce)})),[]),ge}},92832:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return Qe}});var rt=Ge(92310),vt=Ge.n(rt),ie=Ge(59301),_e=Ge(36355),Ie=Ge(32441),ge=Ge(9937),Pe=$e=>{const{getPrefixCls:Ye,direction:at}=(0,ie.useContext)(_e.E_),{prefixCls:ut,className:ht}=$e,Ct=Ye("input-group",ut),et=Ye("input"),[it,St]=(0,ge.ZP)(et),bt=vt()(Ct,{[`${Ct}-lg`]:$e.size==="large",[`${Ct}-sm`]:$e.size==="small",[`${Ct}-compact`]:$e.compact,[`${Ct}-rtl`]:at==="rtl"},St,ht),Pt=(0,ie.useContext)(Ie.aM),gt=(0,ie.useMemo)(()=>Object.assign(Object.assign({},Pt),{isFormItemInput:!1}),[Pt]);return it(ie.createElement("span",{className:bt,style:$e.style,onMouseEnter:$e.onMouseEnter,onMouseLeave:$e.onMouseLeave,onFocus:$e.onFocus,onBlur:$e.onBlur},ie.createElement(Ie.aM.Provider,{value:gt},$e.children)))},Ee=Ge(9432),ye=Ge(73331),Me=Ge(15277),ve=Ge(2738),xe=Ge(8654),fe=Ge(59412),z=function($e,Ye){var at={};for(var ut in $e)Object.prototype.hasOwnProperty.call($e,ut)&&Ye.indexOf(ut)<0&&(at[ut]=$e[ut]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ut=Object.getOwnPropertySymbols($e);ht<ut.length;ht++)Ye.indexOf(ut[ht])<0&&Object.prototype.propertyIsEnumerable.call($e,ut[ht])&&(at[ut[ht]]=$e[ut[ht]]);return at};const ee=$e=>$e?ie.createElement(Me.Z,null):ie.createElement(ye.Z,null),ae={click:"onClick",hover:"onMouseOver"};var le=ie.forwardRef(($e,Ye)=>{const{visibilityToggle:at=!0}=$e,ut=typeof at=="object"&&at.visible!==void 0,[ht,Ct]=(0,ie.useState)(()=>ut?at.visible:!1),et=(0,ie.useRef)(null);ie.useEffect(()=>{ut&&Ct(at.visible)},[ut,at]);const it=(0,fe.Z)(et),St=()=>{const{disabled:we}=$e;we||(ht&&it(),Ct(be=>{var Ke;const Xe=!be;return typeof at=="object"&&((Ke=at.onVisibleChange)===null||Ke===void 0||Ke.call(at,Xe)),Xe}))},bt=we=>{const{action:be="click",iconRender:Ke=ee}=$e,Xe=ae[be]||"",Oe=Ke(ht),Ue={[Xe]:St,className:`${we}-icon`,key:"passwordIcon",onMouseDown:He=>{He.preventDefault()},onMouseUp:He=>{He.preventDefault()}};return ie.cloneElement(ie.isValidElement(Oe)?Oe:ie.createElement("span",null,Oe),Ue)},{className:Pt,prefixCls:gt,inputPrefixCls:dt,size:mt}=$e,kt=z($e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Et}=ie.useContext(_e.E_),Ut=Et("input",dt),wt=Et("input-password",gt),pt=at&&bt(wt),tt=vt()(wt,Pt,{[`${wt}-${mt}`]:!!mt}),Ze=Object.assign(Object.assign({},(0,ve.Z)(kt,["suffix","iconRender","visibilityToggle"])),{type:ht?"text":"password",className:tt,prefixCls:Ut,suffix:pt});return mt&&(Ze.size=mt),ie.createElement(Ee.Z,Object.assign({ref:(0,xe.sQ)(Ye,et)},Ze))}),ue=Ge(47472),pe=Ge(92343),Te=Ge(3113),Ce=Ge(19716),Fe=Ge(33234),Ae=function($e,Ye){var at={};for(var ut in $e)Object.prototype.hasOwnProperty.call($e,ut)&&Ye.indexOf(ut)<0&&(at[ut]=$e[ut]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ut=Object.getOwnPropertySymbols($e);ht<ut.length;ht++)Ye.indexOf(ut[ht])<0&&Object.prototype.propertyIsEnumerable.call($e,ut[ht])&&(at[ut[ht]]=$e[ut[ht]]);return at},Ne=ie.forwardRef(($e,Ye)=>{const{prefixCls:at,inputPrefixCls:ut,className:ht,size:Ct,suffix:et,enterButton:it=!1,addonAfter:St,loading:bt,disabled:Pt,onSearch:gt,onChange:dt,onCompositionStart:mt,onCompositionEnd:kt}=$e,Et=Ae($e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ut,direction:wt}=ie.useContext(_e.E_),pt=ie.useRef(!1),tt=Ut("input-search",at),Ze=Ut("input",ut),{compactSize:we}=(0,Fe.ri)(tt,wt),be=(0,Ce.Z)(Kt=>{var Ht;return(Ht=Ct!=null?Ct:we)!==null&&Ht!==void 0?Ht:Kt}),Ke=ie.useRef(null),Xe=Kt=>{Kt&&Kt.target&&Kt.type==="click"&>&>(Kt.target.value,Kt,{source:"clear"}),dt&&dt(Kt)},Oe=Kt=>{var Ht;document.activeElement===((Ht=Ke.current)===null||Ht===void 0?void 0:Ht.input)&&Kt.preventDefault()},Ue=Kt=>{var Ht,tn;gt&>((tn=(Ht=Ke.current)===null||Ht===void 0?void 0:Ht.input)===null||tn===void 0?void 0:tn.value,Kt,{source:"input"})},He=Kt=>{pt.current||bt||Ue(Kt)},Ve=typeof it=="boolean"?ie.createElement(ue.Z,null):null,Je=`${tt}-button`;let ct;const yt=it||{},ft=yt.type&&yt.type.__ANT_BUTTON===!0;ft||yt.type==="button"?ct=(0,pe.Tm)(yt,Object.assign({onMouseDown:Oe,onClick:Kt=>{var Ht,tn;(tn=(Ht=yt==null?void 0:yt.props)===null||Ht===void 0?void 0:Ht.onClick)===null||tn===void 0||tn.call(Ht,Kt),Ue(Kt)},key:"enterButton"},ft?{className:Je,size:be}:{})):ct=ie.createElement(Te.ZP,{className:Je,type:it?"primary":void 0,size:be,disabled:Pt,key:"enterButton",onMouseDown:Oe,onClick:Ue,loading:bt,icon:Ve},it),St&&(ct=[ct,(0,pe.Tm)(St,{key:"addonAfter"})]);const Mt=vt()(tt,{[`${tt}-rtl`]:wt==="rtl",[`${tt}-${be}`]:!!be,[`${tt}-with-button`]:!!it},ht),Jt=Kt=>{pt.current=!0,mt==null||mt(Kt)},Vt=Kt=>{pt.current=!1,kt==null||kt(Kt)};return ie.createElement(Ee.Z,Object.assign({ref:(0,xe.sQ)(Ke,Ye),onPressEnter:He},Et,{size:be,onCompositionStart:Jt,onCompositionEnd:Vt,prefixCls:Ze,addonAfter:ct,suffix:et,onChange:Xe,className:Mt,disabled:Pt}))}),Be=Ge(1643);const ze=Ee.Z;ze.Group=Pe,ze.Search=Ne,ze.TextArea=Be.Z,ze.Password=le;var Qe=ze},45818:function(bn,an,Ge){"use strict";Ge.d(an,{D:function(){return ue},Z:function(){return Ce}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(Ae,je){return vt.createElement(Ie.Z,(0,rt.Z)({},Ae,{ref:je,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce,Ee=Ge(33853),ye=Ge(38819),Me=Ge(92310),ve=Ge.n(Me),xe=Ge(2738),z=Fe=>!isNaN(parseFloat(Fe))&&isFinite(Fe),ee=Ge(36355),ae=Ge(84966),re=function(Fe,Ae){var je={};for(var Ne in Fe)Object.prototype.hasOwnProperty.call(Fe,Ne)&&Ae.indexOf(Ne)<0&&(je[Ne]=Fe[Ne]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ne=Object.getOwnPropertySymbols(Fe);Be<Ne.length;Be++)Ae.indexOf(Ne[Be])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ne[Be])&&(je[Ne[Be]]=Fe[Ne[Be]]);return je};const le={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ue=vt.createContext({}),pe=(()=>{let Fe=0;return function(){let Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Fe+=1,`${Ae}${Fe}`}})();var Ce=vt.forwardRef((Fe,Ae)=>{const{prefixCls:je,className:Ne,trigger:Be,children:ze,defaultCollapsed:Qe=!1,theme:$e="dark",style:Ye={},collapsible:at=!1,reverseArrow:ut=!1,width:ht=200,collapsedWidth:Ct=80,zeroWidthTriggerStyle:et,breakpoint:it,onCollapse:St,onBreakpoint:bt}=Fe,Pt=re(Fe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:gt}=(0,vt.useContext)(ae.Gs),[dt,mt]=(0,vt.useState)("collapsed"in Fe?Fe.collapsed:Qe),[kt,Et]=(0,vt.useState)(!1);(0,vt.useEffect)(()=>{"collapsed"in Fe&&mt(Fe.collapsed)},[Fe.collapsed]);const Ut=(be,Ke)=>{"collapsed"in Fe||mt(be),St==null||St(be,Ke)},wt=(0,vt.useRef)();wt.current=be=>{Et(be.matches),bt==null||bt(be.matches),dt!==be.matches&&Ut(be.matches,"responsive")},(0,vt.useEffect)(()=>{function be(Xe){return wt.current(Xe)}let Ke;if(typeof window!="undefined"){const{matchMedia:Xe}=window;if(Xe&&it&&it in le){Ke=Xe(`(max-width: ${le[it]})`);try{Ke.addEventListener("change",be)}catch(Oe){Ke.addListener(be)}be(Ke)}}return()=>{try{Ke==null||Ke.removeEventListener("change",be)}catch(Xe){Ke==null||Ke.removeListener(be)}}},[it]),(0,vt.useEffect)(()=>{const be=pe("ant-sider-");return gt.addSider(be),()=>gt.removeSider(be)},[]);const pt=()=>{Ut(!dt,"clickTrigger")},{getPrefixCls:tt}=(0,vt.useContext)(ee.E_),Ze=()=>{const be=tt("layout-sider",je),Ke=(0,xe.Z)(Pt,["collapsed"]),Xe=dt?Ct:ht,Oe=z(Xe)?`${Xe}px`:String(Xe),Ue=parseFloat(String(Ct||0))===0?vt.createElement("span",{onClick:pt,className:ve()(`${be}-zero-width-trigger`,`${be}-zero-width-trigger-${ut?"right":"left"}`),style:et},Be||vt.createElement(Pe,null)):null,Je={expanded:ut?vt.createElement(ye.Z,null):vt.createElement(Ee.Z,null),collapsed:ut?vt.createElement(Ee.Z,null):vt.createElement(ye.Z,null)}[dt?"collapsed":"expanded"],ct=Be!==null?Ue||vt.createElement("div",{className:`${be}-trigger`,onClick:pt,style:{width:Oe}},Be||Je):null,yt=Object.assign(Object.assign({},Ye),{flex:`0 0 ${Oe}`,maxWidth:Oe,minWidth:Oe,width:Oe}),ft=ve()(be,`${be}-${$e}`,{[`${be}-collapsed`]:!!dt,[`${be}-has-trigger`]:at&&Be!==null&&!Ue,[`${be}-below`]:!!kt,[`${be}-zero-width`]:parseFloat(Oe)===0},Ne);return vt.createElement("aside",Object.assign({className:ft},Ke,{style:yt,ref:Ae}),vt.createElement("div",{className:`${be}-children`},ze),at||kt&&Ue?ct:null)},we=vt.useMemo(()=>({siderCollapsed:dt}),[dt]);return vt.createElement(ue.Provider,{value:we},Ze())})},84966:function(bn,an,Ge){"use strict";Ge.d(an,{VY:function(){return ue},$_:function(){return le},h4:function(){return re},Gs:function(){return xe},ZP:function(){return pe}});var rt=Ge(19127),vt=Ge(92310),ie=Ge.n(vt),_e=Ge(2738),Ie=Ge(59301),ge=Ge(36355),ce=Ge(83116),Ee=Te=>{const{componentCls:Ce,bodyBg:Fe,lightSiderBg:Ae,lightTriggerBg:je,lightTriggerColor:Ne}=Te;return{[`${Ce}-sider-light`]:{background:Ae,[`${Ce}-sider-trigger`]:{color:Ne,background:je},[`${Ce}-sider-zero-width-trigger`]:{color:Ne,background:je,border:`1px solid ${Fe}`,borderInlineStart:0}}}};const ye=Te=>{const{antCls:Ce,componentCls:Fe,colorText:Ae,triggerColor:je,footerBg:Ne,triggerBg:Be,headerHeight:ze,headerPadding:Qe,headerColor:$e,footerPadding:Ye,triggerHeight:at,zeroTriggerHeight:ut,zeroTriggerWidth:ht,motionDurationMid:Ct,motionDurationSlow:et,fontSize:it,borderRadius:St,bodyBg:bt,headerBg:Pt,siderBg:gt}=Te;return{[Fe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:bt,"&, *":{boxSizing:"border-box"},[`&${Fe}-has-sider`]:{flexDirection:"row",[`> ${Fe}, > ${Fe}-content`]:{width:0}},[`${Fe}-header, &${Fe}-footer`]:{flex:"0 0 auto"},[`${Fe}-sider`]:{position:"relative",minWidth:0,background:gt,transition:`all ${Ct}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ce}-menu${Ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:at},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:at,color:je,lineHeight:`${at}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${Ct}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ze,insetInlineEnd:-ht,zIndex:1,width:ht,height:ut,color:je,fontSize:Te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:gt,borderStartStartRadius:0,borderStartEndRadius:St,borderEndEndRadius:St,borderEndStartRadius:0,cursor:"pointer",transition:`background ${et} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${et}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ht,borderStartStartRadius:St,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:St}}}}},Ee(Te)),{"&-rtl":{direction:"rtl"}}),[`${Fe}-header`]:{height:ze,padding:Qe,color:$e,lineHeight:`${ze}px`,background:Pt,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${Fe}-footer`]:{padding:Ye,color:Ae,fontSize:it,background:Ne},[`${Fe}-content`]:{flex:"auto",minHeight:0}}};var Me=(0,ce.Z)("Layout",Te=>[ye(Te)],Te=>{const{colorBgLayout:Ce,controlHeight:Fe,controlHeightLG:Ae,colorText:je,controlHeightSM:Ne,marginXXS:Be,colorTextLightSolid:ze,colorBgContainer:Qe}=Te,$e=Ae*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:Fe*2,headerPadding:`0 ${$e}px`,headerColor:je,footerPadding:`${Ne}px ${$e}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:Ae+Be*2,triggerBg:"#002140",triggerColor:ze,zeroTriggerWidth:Ae,zeroTriggerHeight:Ae,lightSiderBg:Qe,lightTriggerBg:Qe,lightTriggerColor:je}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ve=function(Te,Ce){var Fe={};for(var Ae in Te)Object.prototype.hasOwnProperty.call(Te,Ae)&&Ce.indexOf(Ae)<0&&(Fe[Ae]=Te[Ae]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ae=Object.getOwnPropertySymbols(Te);je<Ae.length;je++)Ce.indexOf(Ae[je])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ae[je])&&(Fe[Ae[je]]=Te[Ae[je]]);return Fe};const xe=Ie.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function fe(Te){let{suffixCls:Ce,tagName:Fe,displayName:Ae}=Te;return je=>Ie.forwardRef((Be,ze)=>Ie.createElement(je,Object.assign({ref:ze,suffixCls:Ce,tagName:Fe},Be)))}const z=Ie.forwardRef((Te,Ce)=>{const{prefixCls:Fe,suffixCls:Ae,className:je,tagName:Ne}=Te,Be=ve(Te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ze}=Ie.useContext(ge.E_),Qe=ze("layout",Fe),[$e,Ye]=Me(Qe),at=Ae?`${Qe}-${Ae}`:Qe;return $e(Ie.createElement(Ne,Object.assign({className:ie()(Fe||at,je,Ye),ref:Ce},Be)))}),ee=Ie.forwardRef((Te,Ce)=>{const{direction:Fe}=Ie.useContext(ge.E_),[Ae,je]=Ie.useState([]),{prefixCls:Ne,className:Be,rootClassName:ze,children:Qe,hasSider:$e,tagName:Ye,style:at}=Te,ut=ve(Te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ht=(0,_e.Z)(ut,["suffixCls"]),{getPrefixCls:Ct,layout:et}=Ie.useContext(ge.E_),it=Ct("layout",Ne),[St,bt]=Me(it),Pt=ie()(it,{[`${it}-has-sider`]:typeof $e=="boolean"?$e:Ae.length>0,[`${it}-rtl`]:Fe==="rtl"},et==null?void 0:et.className,Be,ze,bt),gt=Ie.useMemo(()=>({siderHook:{addSider:dt=>{je(mt=>[].concat((0,rt.Z)(mt),[dt]))},removeSider:dt=>{je(mt=>mt.filter(kt=>kt!==dt))}}}),[]);return St(Ie.createElement(xe.Provider,{value:gt},Ie.createElement(Ye,Object.assign({ref:Ce,className:Pt,style:Object.assign(Object.assign({},et==null?void 0:et.style),at)},ht),Qe)))}),ae=fe({tagName:"div",displayName:"Layout"})(ee),re=fe({suffixCls:"header",tagName:"header",displayName:"Header"})(z),le=fe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(z),ue=fe({suffixCls:"content",tagName:"main",displayName:"Content"})(z);var pe=ae},40875:function(bn,an,Ge){"use strict";Ge.d(an,{J:function(){return ge}});var rt=Ge(59301),vt=Ge(33234),ie=Ge(70425),_e=function(ce,Pe){var Ee={};for(var ye in ce)Object.prototype.hasOwnProperty.call(ce,ye)&&Pe.indexOf(ye)<0&&(Ee[ye]=ce[ye]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,ye=Object.getOwnPropertySymbols(ce);Me<ye.length;Me++)Pe.indexOf(ye[Me])<0&&Object.prototype.propertyIsEnumerable.call(ce,ye[Me])&&(Ee[ye[Me]]=ce[ye[Me]]);return Ee};const Ie=rt.createContext(null),ge=rt.forwardRef((ce,Pe)=>{const{children:Ee}=ce,ye=_e(ce,["children"]),Me=rt.useContext(Ie),ve=rt.useMemo(()=>Object.assign(Object.assign({},Me),ye),[Me,ye.prefixCls,ye.mode,ye.selectable]);return rt.createElement(Ie.Provider,{value:ve},rt.createElement(vt.BR,null,(0,ie.supportNodeRef)(Ee)?rt.cloneElement(Ee,{ref:Pe}):Ee))});an.Z=Ie},20834:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return we}});var rt=Ge(15285),vt=Ge(59301),ie=Ge(45818),_e=Ge(92310),Ie=Ge.n(_e),ge=Ge(36355),ce=function(be,Ke){var Xe={};for(var Oe in be)Object.prototype.hasOwnProperty.call(be,Oe)&&Ke.indexOf(Oe)<0&&(Xe[Oe]=be[Oe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Oe=Object.getOwnPropertySymbols(be);Ue<Oe.length;Ue++)Ke.indexOf(Oe[Ue])<0&&Object.prototype.propertyIsEnumerable.call(be,Oe[Ue])&&(Xe[Oe[Ue]]=be[Oe[Ue]]);return Xe},Ee=be=>{const{prefixCls:Ke,className:Xe,dashed:Oe}=be,Ue=ce(be,["prefixCls","className","dashed"]),{getPrefixCls:He}=vt.useContext(ge.E_),Ve=He("menu",Ke),Je=Ie()({[`${Ve}-item-divider-dashed`]:!!Oe},Xe);return vt.createElement(rt.iz,Object.assign({className:Je},Ue))},ye=Ge(11592),Me=Ge(2738),ve=Ge(6848),xe=Ge(92343),z=(0,vt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=be=>{var Ke;const{className:Xe,children:Oe,icon:Ue,title:He,danger:Ve}=be,{prefixCls:Je,firstLevel:ct,direction:yt,disableMenuItemTitleTooltip:ft,inlineCollapsed:Mt}=vt.useContext(z),Jt=Dt=>{const qt=vt.createElement("span",{className:`${Je}-title-content`},Oe);return(!Ue||(0,xe.l$)(Oe)&&Oe.type==="span")&&Oe&&Dt&&ct&&typeof Oe=="string"?vt.createElement("div",{className:`${Je}-inline-collapsed-noicon`},Oe.charAt(0)):qt},{siderCollapsed:Vt}=vt.useContext(ie.D);let Kt=He;typeof He=="undefined"?Kt=ct?Oe:"":He===!1&&(Kt="");const Ht={title:Kt};!Vt&&!Mt&&(Ht.title=null,Ht.open=!1);const tn=(0,ye.Z)(Oe).length;let It=vt.createElement(rt.ck,Object.assign({},(0,Me.Z)(be,["title","icon","danger"]),{className:Ie()({[`${Je}-item-danger`]:Ve,[`${Je}-item-only-child`]:(Ue?tn+1:tn)===1},Xe),title:typeof He=="string"?He:void 0}),(0,xe.Tm)(Ue,{className:Ie()((0,xe.l$)(Ue)?(Ke=Ue.props)===null||Ke===void 0?void 0:Ke.className:"",`${Je}-item-icon`)}),Jt(Mt));return ft||(It=vt.createElement(ve.Z,Object.assign({},Ht,{placement:yt==="rtl"?"left":"right",overlayClassName:`${Je}-inline-collapsed-tooltip`}),It)),It},le=be=>{var Ke;const{popupClassName:Xe,icon:Oe,title:Ue,theme:He}=be,Ve=vt.useContext(z),{prefixCls:Je,inlineCollapsed:ct,theme:yt}=Ve,ft=(0,rt.Xl)();let Mt;if(!Oe)Mt=ct&&!ft.length&&Ue&&typeof Ue=="string"?vt.createElement("div",{className:`${Je}-inline-collapsed-noicon`},Ue.charAt(0)):vt.createElement("span",{className:`${Je}-title-content`},Ue);else{const Vt=(0,xe.l$)(Ue)&&Ue.type==="span";Mt=vt.createElement(vt.Fragment,null,(0,xe.Tm)(Oe,{className:Ie()((0,xe.l$)(Oe)?(Ke=Oe.props)===null||Ke===void 0?void 0:Ke.className:"",`${Je}-item-icon`)}),Vt?Ue:vt.createElement("span",{className:`${Je}-title-content`},Ue))}const Jt=vt.useMemo(()=>Object.assign(Object.assign({},Ve),{firstLevel:!1}),[Ve]);return vt.createElement(z.Provider,{value:Jt},vt.createElement(rt.Wd,Object.assign({},(0,Me.Z)(be,["icon"]),{title:Mt,popupClassName:Ie()(Je,Xe,`${Je}-${He||yt}`)})))},ue=Ge(18785),pe=Ge(70425),Te=Ge(62892),Ce=Ge(40875),Fe=function(be,Ke){var Xe={};for(var Oe in be)Object.prototype.hasOwnProperty.call(be,Oe)&&Ke.indexOf(Oe)<0&&(Xe[Oe]=be[Oe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Oe=Object.getOwnPropertySymbols(be);Ue<Oe.length;Ue++)Ke.indexOf(Oe[Ue])<0&&Object.prototype.propertyIsEnumerable.call(be,Oe[Ue])&&(Xe[Oe[Ue]]=be[Oe[Ue]]);return Xe};function Ae(be){return(be||[]).map((Ke,Xe)=>{if(Ke&&typeof Ke=="object"){const Oe=Ke,{label:Ue,children:He,key:Ve,type:Je}=Oe,ct=Fe(Oe,["label","children","key","type"]),yt=Ve!=null?Ve:`tmp-${Xe}`;return He||Je==="group"?Je==="group"?vt.createElement(rt.BW,Object.assign({key:yt},ct,{title:Ue}),Ae(He)):vt.createElement(le,Object.assign({key:yt},ct,{title:Ue}),Ae(He)):Je==="divider"?vt.createElement(Ee,Object.assign({key:yt},ct)):vt.createElement(ae,Object.assign({key:yt},ct),Ue)}return null}).filter(Ke=>Ke)}function je(be){return vt.useMemo(()=>be&&Ae(be),[be])}var Ne=Ge(64993),Be=Ge(17313),ze=Ge(8378),Qe=Ge(13826),$e=Ge(29878),Ye=Ge(83116),at=Ge(37613),ht=be=>{const{componentCls:Ke,motionDurationSlow:Xe,horizontalLineHeight:Oe,colorSplit:Ue,lineWidth:He,lineType:Ve,itemPaddingInline:Je}=be;return{[`${Ke}-horizontal`]:{lineHeight:Oe,border:0,borderBottom:`${He}px ${Ve} ${Ue}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ke}-item, ${Ke}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Je},[`> ${Ke}-item:hover,
|
|
|
> ${Ke}-item-active,
|
|
|
> ${Ke}-submenu ${Ke}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ke}-item, ${Ke}-submenu-title`]:{transition:[`border-color ${Xe}`,`background ${Xe}`].join(",")},[`${Ke}-submenu-arrow`]:{display:"none"}}}},et=be=>{let{componentCls:Ke,menuArrowOffset:Xe}=be;return{[`${Ke}-rtl`]:{direction:"rtl"},[`${Ke}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ke}-rtl${Ke}-vertical,
|
|
|
${Ke}-submenu-rtl ${Ke}-vertical`]:{[`${Ke}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Xe})`},"&::after":{transform:`rotate(45deg) translateY(${Xe})`}}}}};const it=be=>Object.assign({},(0,Be.oN)(be));var bt=(be,Ke)=>{const{componentCls:Xe,itemColor:Oe,itemSelectedColor:Ue,groupTitleColor:He,itemBg:Ve,subMenuItemBg:Je,itemSelectedBg:ct,activeBarHeight:yt,activeBarWidth:ft,activeBarBorderWidth:Mt,motionDurationSlow:Jt,motionEaseInOut:Vt,motionEaseOut:Kt,itemPaddingInline:Ht,motionDurationMid:tn,itemHoverColor:It,lineType:Dt,colorSplit:qt,itemDisabledColor:sn,dangerItemColor:xn,dangerItemHoverColor:Ln,dangerItemSelectedColor:Zn,dangerItemActiveBg:Xn,dangerItemSelectedBg:dr,itemHoverBg:fr,itemActiveBg:pr,menuSubMenuBg:Cr,horizontalItemSelectedColor:Yr,horizontalItemSelectedBg:ii,horizontalItemBorderRadius:jr,horizontalItemHoverBg:fi,popupBg:Lr}=be;return{[`${Xe}-${Ke}, ${Xe}-${Ke} > ${Xe}`]:{color:Oe,background:Ve,[`&${Xe}-root:focus-visible`]:Object.assign({},it(be)),[`${Xe}-item-group-title`]:{color:He},[`${Xe}-submenu-selected`]:{[`> ${Xe}-submenu-title`]:{color:Ue}},[`${Xe}-item-disabled, ${Xe}-submenu-disabled`]:{color:`${sn} !important`},[`${Xe}-item:not(${Xe}-item-selected):not(${Xe}-submenu-selected)`]:{[`&:hover, > ${Xe}-submenu-title:hover`]:{color:It}},[`&:not(${Xe}-horizontal)`]:{[`${Xe}-item:not(${Xe}-item-selected)`]:{"&:hover":{backgroundColor:fr},"&:active":{backgroundColor:pr}},[`${Xe}-submenu-title`]:{"&:hover":{backgroundColor:fr},"&:active":{backgroundColor:pr}}},[`${Xe}-item-danger`]:{color:xn,[`&${Xe}-item:hover`]:{[`&:not(${Xe}-item-selected):not(${Xe}-submenu-selected)`]:{color:Ln}},[`&${Xe}-item:active`]:{background:Xn}},[`${Xe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Xe}-item-selected`]:{color:Ue,[`&${Xe}-item-danger`]:{color:Zn},"a, a:hover":{color:"inherit"}},[`& ${Xe}-item-selected`]:{backgroundColor:ct,[`&${Xe}-item-danger`]:{backgroundColor:dr}},[`${Xe}-item, ${Xe}-submenu-title`]:{[`&:not(${Xe}-item-disabled):focus-visible`]:Object.assign({},it(be))},[`&${Xe}-submenu > ${Xe}`]:{backgroundColor:Cr},[`&${Xe}-popup > ${Xe}`]:{backgroundColor:Lr},[`&${Xe}-horizontal`]:Object.assign(Object.assign({},Ke==="dark"?{borderBottom:0}:{}),{[`> ${Xe}-item, > ${Xe}-submenu`]:{top:Mt,marginTop:-Mt,marginBottom:0,borderRadius:jr,"&::after":{position:"absolute",insetInline:Ht,bottom:0,borderBottom:`${yt}px solid transparent`,transition:`border-color ${Jt} ${Vt}`,content:'""'},"&:hover, &-active, &-open":{background:fi,"&::after":{borderBottomWidth:yt,borderBottomColor:Yr}},"&-selected":{color:Yr,backgroundColor:ii,"&:hover":{backgroundColor:ii},"&::after":{borderBottomWidth:yt,borderBottomColor:Yr}}}}),[`&${Xe}-root`]:{[`&${Xe}-inline, &${Xe}-vertical`]:{borderInlineEnd:`${Mt}px ${Dt} ${qt}`}},[`&${Xe}-inline`]:{[`${Xe}-sub${Xe}-inline`]:{background:Je},[`${Xe}-item, ${Xe}-submenu-title`]:Mt&&ft?{width:`calc(100% + ${Mt}px)`}:{},[`${Xe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ft}px solid ${Ue}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${tn} ${Kt}`,`opacity ${tn} ${Kt}`].join(","),content:'""'},[`&${Xe}-item-danger`]:{"&::after":{borderInlineEndColor:Zn}}},[`${Xe}-selected, ${Xe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${tn} ${Vt}`,`opacity ${tn} ${Vt}`].join(",")}}}}}};const Pt=be=>{const{componentCls:Ke,itemHeight:Xe,itemMarginInline:Oe,padding:Ue,menuArrowSize:He,marginXS:Ve,itemMarginBlock:Je}=be,ct=Ue+He+Ve;return{[`${Ke}-item`]:{position:"relative",overflow:"hidden"},[`${Ke}-item, ${Ke}-submenu-title`]:{height:Xe,lineHeight:`${Xe}px`,paddingInline:Ue,overflow:"hidden",textOverflow:"ellipsis",marginInline:Oe,marginBlock:Je,width:`calc(100% - ${Oe*2}px)`},[`> ${Ke}-item,
|
|
|
> ${Ke}-submenu > ${Ke}-submenu-title`]:{height:Xe,lineHeight:`${Xe}px`},[`${Ke}-item-group-list ${Ke}-submenu-title,
|
|
|
${Ke}-submenu-title`]:{paddingInlineEnd:ct}}};var dt=be=>{const{componentCls:Ke,iconCls:Xe,itemHeight:Oe,colorTextLightSolid:Ue,dropdownWidth:He,controlHeightLG:Ve,motionDurationMid:Je,motionEaseOut:ct,paddingXL:yt,itemMarginInline:ft,fontSizeLG:Mt,motionDurationSlow:Jt,paddingXS:Vt,boxShadowSecondary:Kt,collapsedWidth:Ht,collapsedIconSize:tn}=be,It={height:Oe,lineHeight:`${Oe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ke]:{"&-inline, &-vertical":Object.assign({[`&${Ke}-root`]:{boxShadow:"none"}},Pt(be))},[`${Ke}-submenu-popup`]:{[`${Ke}-vertical`]:Object.assign(Object.assign({},Pt(be)),{boxShadow:Kt})}},{[`${Ke}-submenu-popup ${Ke}-vertical${Ke}-sub`]:{minWidth:He,maxHeight:`calc(100vh - ${Ve*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ke}-inline`]:{width:"100%",[`&${Ke}-root`]:{[`${Ke}-item, ${Ke}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Jt}`,`background ${Jt}`,`padding ${Je} ${ct}`].join(","),[`> ${Ke}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ke}-sub${Ke}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ke}-submenu > ${Ke}-submenu-title`]:It,[`& ${Ke}-item-group-title`]:{paddingInlineStart:yt}},[`${Ke}-item`]:It}},{[`${Ke}-inline-collapsed`]:{width:Ht,[`&${Ke}-root`]:{[`${Ke}-item, ${Ke}-submenu ${Ke}-submenu-title`]:{[`> ${Ke}-inline-collapsed-noicon`]:{fontSize:Mt,textAlign:"center"}}},[`> ${Ke}-item,
|
|
|
> ${Ke}-item-group > ${Ke}-item-group-list > ${Ke}-item,
|
|
|
> ${Ke}-item-group > ${Ke}-item-group-list > ${Ke}-submenu > ${Ke}-submenu-title,
|
|
|
> ${Ke}-submenu > ${Ke}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Mt/2}px - ${ft}px)`,textOverflow:"clip",[`
|
|
|
${Ke}-submenu-arrow,
|
|
|
${Ke}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Ke}-item-icon, ${Xe}`]:{margin:0,fontSize:tn,lineHeight:`${Oe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ke}-item-icon, ${Xe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ke}-item-icon, ${Xe}`]:{display:"none"},"a, a:hover":{color:Ue}},[`${Ke}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:Vt})}}]};const mt=be=>{const{componentCls:Ke,motionDurationSlow:Xe,motionDurationMid:Oe,motionEaseInOut:Ue,motionEaseOut:He,iconCls:Ve,iconSize:Je,iconMarginInlineEnd:ct}=be;return{[`${Ke}-item, ${Ke}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Xe}`,`background ${Xe}`,`padding ${Xe} ${Ue}`].join(","),[`${Ke}-item-icon, ${Ve}`]:{minWidth:Je,fontSize:Je,transition:[`font-size ${Oe} ${He}`,`margin ${Xe} ${Ue}`,`color ${Xe}`].join(","),"+ span":{marginInlineStart:ct,opacity:1,transition:[`opacity ${Xe} ${Ue}`,`margin ${Xe}`,`color ${Xe}`].join(",")}},[`${Ke}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${Ke}-item-only-child`]:{[`> ${Ve}, > ${Ke}-item-icon`]:{marginInlineEnd:0}}},[`${Ke}-item-disabled, ${Ke}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ke}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},kt=be=>{const{componentCls:Ke,motionDurationSlow:Xe,motionEaseInOut:Oe,borderRadius:Ue,menuArrowSize:He,menuArrowOffset:Ve}=be;return{[`${Ke}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:be.margin,width:He,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Xe} ${Oe}, opacity ${Xe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:He*.6,height:He*.15,backgroundColor:"currentcolor",borderRadius:Ue,transition:[`background ${Xe} ${Oe}`,`transform ${Xe} ${Oe}`,`top ${Xe} ${Oe}`,`color ${Xe} ${Oe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ve})`},"&::after":{transform:`rotate(-45deg) translateY(${Ve})`}}}}},Et=be=>{const{antCls:Ke,componentCls:Xe,fontSize:Oe,motionDurationSlow:Ue,motionDurationMid:He,motionEaseInOut:Ve,paddingXS:Je,padding:ct,colorSplit:yt,lineWidth:ft,zIndexPopup:Mt,borderRadiusLG:Jt,subMenuItemBorderRadius:Vt,menuArrowSize:Kt,menuArrowOffset:Ht,lineType:tn,menuPanelMaskInset:It,groupTitleLineHeight:Dt,groupTitleFontSize:qt}=be;return[{"":{[`${Xe}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${Xe}-submenu-hidden`]:{display:"none"}},{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(be)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Oe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ue} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Xe}-item`]:{flex:"none"}},[`${Xe}-item, ${Xe}-submenu, ${Xe}-submenu-title`]:{borderRadius:be.itemBorderRadius},[`${Xe}-item-group-title`]:{padding:`${Je}px ${ct}px`,fontSize:qt,lineHeight:Dt,transition:`all ${Ue}`},[`&-horizontal ${Xe}-submenu`]:{transition:[`border-color ${Ue} ${Ve}`,`background ${Ue} ${Ve}`].join(",")},[`${Xe}-submenu, ${Xe}-submenu-inline`]:{transition:[`border-color ${Ue} ${Ve}`,`background ${Ue} ${Ve}`,`padding ${He} ${Ve}`].join(",")},[`${Xe}-submenu ${Xe}-sub`]:{cursor:"initial",transition:[`background ${Ue} ${Ve}`,`padding ${Ue} ${Ve}`].join(",")},[`${Xe}-title-content`]:{transition:`color ${Ue}`},[`${Xe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Xe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:yt,borderStyle:tn,borderWidth:0,borderTopWidth:ft,marginBlock:ft,padding:0,"&-dashed":{borderStyle:"dashed"}}}),mt(be)),{[`${Xe}-item-group`]:{[`${Xe}-item-group-list`]:{margin:0,padding:0,[`${Xe}-item, ${Xe}-submenu-title`]:{paddingInline:`${Oe*2}px ${ct}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Mt,borderRadius:Jt,boxShadow:"none",transformOrigin:"0 0",[`&${Xe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${It}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:It},"\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:be.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:be.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:be.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:be.paddingXS},[`> ${Xe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Jt},mt(be)),kt(be)),{[`${Xe}-item, ${Xe}-submenu > ${Xe}-submenu-title`]:{borderRadius:Vt},[`${Xe}-submenu-title::after`]:{transition:`transform ${Ue} ${Ve}`}})}}),kt(be)),{[`&-inline-collapsed ${Xe}-submenu-arrow,
|
|
|
&-inline ${Xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ht})`},"&::after":{transform:`rotate(45deg) translateX(-${Ht})`}},[`${Xe}-submenu-open${Xe}-submenu-inline > ${Xe}-submenu-title > ${Xe}-submenu-arrow`]:{transform:`translateY(-${Kt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ht})`},"&::before":{transform:`rotate(45deg) translateX(${Ht})`}}})},{[`${Ke}-layout-header`]:{[Xe]:{lineHeight:"inherit"}}}]};var Ut=(be,Ke)=>(0,Ye.Z)("Menu",Oe=>{if(Ke===!1)return[];const{colorBgElevated:Ue,colorPrimary:He,colorTextLightSolid:Ve,controlHeightLG:Je,fontSize:ct,darkItemColor:yt,darkDangerItemColor:ft,darkItemBg:Mt,darkSubMenuItemBg:Jt,darkItemSelectedColor:Vt,darkItemSelectedBg:Kt,darkDangerItemSelectedBg:Ht,darkItemHoverBg:tn,darkGroupTitleColor:It,darkItemHoverColor:Dt,darkItemDisabledColor:qt,darkDangerItemHoverColor:sn,darkDangerItemSelectedColor:xn,darkDangerItemActiveBg:Ln}=Oe,Zn=ct/7*5,Xn=(0,at.TS)(Oe,{menuArrowSize:Zn,menuHorizontalHeight:Je*1.15,menuArrowOffset:`${Zn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ue}),dr=(0,at.TS)(Xn,{itemColor:yt,itemHoverColor:Dt,groupTitleColor:It,itemSelectedColor:Vt,itemBg:Mt,popupBg:Mt,subMenuItemBg:Jt,itemActiveBg:"transparent",itemSelectedBg:Kt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:tn,itemDisabledColor:qt,dangerItemColor:ft,dangerItemHoverColor:sn,dangerItemSelectedColor:xn,dangerItemActiveBg:Ln,dangerItemSelectedBg:Ht,menuSubMenuBg:Jt,horizontalItemSelectedColor:Ve,horizontalItemSelectedBg:He});return[Et(Xn),ht(Xn),dt(Xn),bt(Xn,"light"),bt(dr,"dark"),et(Xn),(0,ze.Z)(Xn),(0,Qe.oN)(Xn,"slide-up"),(0,Qe.oN)(Xn,"slide-down"),(0,$e._y)(Xn,"zoom-big")]},Oe=>{const{colorPrimary:Ue,colorError:He,colorTextDisabled:Ve,colorErrorBg:Je,colorText:ct,colorTextDescription:yt,colorBgContainer:ft,colorFillAlter:Mt,colorFillContent:Jt,lineWidth:Vt,lineWidthBold:Kt,controlItemBgActive:Ht,colorBgTextHover:tn,controlHeightLG:It,lineHeight:Dt,colorBgElevated:qt,marginXXS:sn,padding:xn,fontSize:Ln,controlHeightSM:Zn,fontSizeLG:Xn,colorTextLightSolid:dr,colorErrorHover:fr}=Oe,pr=new Ne.C(dr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Oe.zIndexPopupBase+50,radiusItem:Oe.borderRadiusLG,itemBorderRadius:Oe.borderRadiusLG,radiusSubMenuItem:Oe.borderRadiusSM,subMenuItemBorderRadius:Oe.borderRadiusSM,colorItemText:ct,itemColor:ct,colorItemTextHover:ct,itemHoverColor:ct,colorItemTextHoverHorizontal:Ue,horizontalItemHoverColor:Ue,colorGroupTitle:yt,groupTitleColor:yt,colorItemTextSelected:Ue,itemSelectedColor:Ue,colorItemTextSelectedHorizontal:Ue,horizontalItemSelectedColor:Ue,colorItemBg:ft,itemBg:ft,colorItemBgHover:tn,itemHoverBg:tn,colorItemBgActive:Jt,itemActiveBg:Ht,colorSubItemBg:Mt,subMenuItemBg:Mt,colorItemBgSelected:Ht,itemSelectedBg:Ht,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Kt,activeBarHeight:Kt,colorActiveBarBorderSize:Vt,activeBarBorderWidth:Vt,colorItemTextDisabled:Ve,itemDisabledColor:Ve,colorDangerItemText:He,dangerItemColor:He,colorDangerItemTextHover:He,dangerItemHoverColor:He,colorDangerItemTextSelected:He,dangerItemSelectedColor:He,colorDangerItemBgActive:Je,dangerItemActiveBg:Je,colorDangerItemBgSelected:Je,dangerItemSelectedBg:Je,itemMarginInline:Oe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:It,groupTitleLineHeight:Dt,collapsedWidth:It*2,popupBg:qt,itemMarginBlock:sn,itemPaddingInline:xn,horizontalLineHeight:`${It*1.15}px`,iconSize:Ln,iconMarginInlineEnd:Zn-Ln,collapsedIconSize:Xn,groupTitleFontSize:Ln,darkItemDisabledColor:new Ne.C(dr).setAlpha(.25).toRgbString(),darkItemColor:pr,darkDangerItemColor:He,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:dr,darkItemSelectedBg:Ue,darkDangerItemSelectedBg:He,darkItemHoverBg:"transparent",darkGroupTitleColor:pr,darkItemHoverColor:dr,darkDangerItemHoverColor:fr,darkDangerItemSelectedColor:dr,darkDangerItemActiveBg:He}},{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"]]})(be),wt=function(be,Ke){var Xe={};for(var Oe in be)Object.prototype.hasOwnProperty.call(be,Oe)&&Ke.indexOf(Oe)<0&&(Xe[Oe]=be[Oe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Oe=Object.getOwnPropertySymbols(be);Ue<Oe.length;Ue++)Ke.indexOf(Oe[Ue])<0&&Object.prototype.propertyIsEnumerable.call(be,Oe[Ue])&&(Xe[Oe[Ue]]=be[Oe[Ue]]);return Xe},tt=(0,vt.forwardRef)((be,Ke)=>{var Xe,Oe;const Ue=vt.useContext(Ce.Z),He=Ue||{},{getPrefixCls:Ve,getPopupContainer:Je,direction:ct,menu:yt}=vt.useContext(ge.E_),ft=Ve(),{prefixCls:Mt,className:Jt,style:Vt,theme:Kt="light",expandIcon:Ht,_internalDisableMenuItemTitleTooltip:tn,inlineCollapsed:It,siderCollapsed:Dt,items:qt,children:sn,rootClassName:xn,mode:Ln,selectable:Zn,onClick:Xn,overflowedIndicatorPopupClassName:dr}=be,fr=wt(be,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),pr=(0,Me.Z)(fr,["collapsedWidth"]),Cr=je(qt)||sn;(Xe=He.validator)===null||Xe===void 0||Xe.call(He,{mode:Ln});const Yr=(0,pe.useEvent)(function(){var Fr;Xn==null||Xn.apply(void 0,arguments),(Fr=He.onClick)===null||Fr===void 0||Fr.call(He)}),ii=He.mode||Ln,jr=Zn!=null?Zn:He.selectable,fi=vt.useMemo(()=>Dt!==void 0?Dt:It,[It,Dt]),Lr={horizontal:{motionName:`${ft}-slide-up`},inline:(0,Te.Z)(ft),other:{motionName:`${ft}-zoom-big`}},ot=Ve("menu",Mt||He.prefixCls),[oi,yi]=Ut(ot,!Ue),Pi=Ie()(`${ot}-${Kt}`,yt==null?void 0:yt.className,Jt);let sr;if(typeof Ht=="function")sr=Ht;else if(Ht===null||Ht===!1)sr=null;else if(He.expandIcon===null||He.expandIcon===!1)sr=null;else{const Fr=Ht!=null?Ht:He.expandIcon;sr=(0,xe.Tm)(Fr,{className:Ie()(`${ot}-submenu-expand-icon`,(0,xe.l$)(Fr)?(Oe=Fr.props)===null||Oe===void 0?void 0:Oe.className:"")})}const Ar=vt.useMemo(()=>({prefixCls:ot,inlineCollapsed:fi||!1,direction:ct,firstLevel:!0,theme:Kt,mode:ii,disableMenuItemTitleTooltip:tn}),[ot,fi,ct,tn,Kt]);return oi(vt.createElement(Ce.Z.Provider,{value:null},vt.createElement(z.Provider,{value:Ar},vt.createElement(rt.ZP,Object.assign({getPopupContainer:Je,overflowedIndicator:vt.createElement(ue.Z,null),overflowedIndicatorPopupClassName:Ie()(ot,`${ot}-${Kt}`,dr),mode:ii,selectable:jr,onClick:Yr},pr,{inlineCollapsed:fi,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),Vt),className:Pi,prefixCls:ot,direction:ct,defaultMotions:Lr,expandIcon:sr,ref:Ke,rootClassName:Ie()(xn,yi)}),Cr))))});const Ze=(0,vt.forwardRef)((be,Ke)=>{const Xe=(0,vt.useRef)(null),Oe=vt.useContext(ie.D);return(0,vt.useImperativeHandle)(Ke,()=>({menu:Xe.current,focus:Ue=>{var He;(He=Xe.current)===null||He===void 0||He.focus(Ue)}})),vt.createElement(tt,Object.assign({ref:Xe},be,Oe))});Ze.Item=ae,Ze.SubMenu=le,Ze.Divider=Ee,Ze.ItemGroup=rt.BW;var we=Ze},58421:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return He}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(Je,ct){return vt.createElement(Ie.Z,(0,rt.Z)({},Je,{ref:ct,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce,Ee=Ge(49198),ye=Ge(33853),Me=Ge(38819),ve=Ge(92310),xe=Ge.n(ve),fe=Ge(90493),z=Ge(44127),ee=Ge(52884),ae=Ge(95727),re=Ge(65711),le=Ge(85745),ue=Ge(26112),pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Te=pe,Ce=Ge(91735),Fe=function(Ve){(0,re.Z)(ct,Ve);var Je=(0,le.Z)(ct);function ct(){var yt;(0,ee.Z)(this,ct);for(var ft=arguments.length,Mt=new Array(ft),Jt=0;Jt<ft;Jt++)Mt[Jt]=arguments[Jt];return yt=Je.call.apply(Je,[this].concat(Mt)),yt.state={goInputText:""},yt.getValidValue=function(){var Vt=yt.state.goInputText;return!Vt||Number.isNaN(Vt)?void 0:Number(Vt)},yt.buildOptionText=function(Vt){return"".concat(Vt," ").concat(yt.props.locale.items_per_page)},yt.changeSize=function(Vt){yt.props.changeSize(Number(Vt))},yt.handleChange=function(Vt){yt.setState({goInputText:Vt.target.value})},yt.handleBlur=function(Vt){var Kt=yt.props,Ht=Kt.goButton,tn=Kt.quickGo,It=Kt.rootPrefixCls,Dt=yt.state.goInputText;Ht||Dt===""||(yt.setState({goInputText:""}),!(Vt.relatedTarget&&(Vt.relatedTarget.className.indexOf("".concat(It,"-item-link"))>=0||Vt.relatedTarget.className.indexOf("".concat(It,"-item"))>=0))&&tn(yt.getValidValue()))},yt.go=function(Vt){var Kt=yt.state.goInputText;Kt!==""&&(Vt.keyCode===Te.ENTER||Vt.type==="click")&&(yt.setState({goInputText:""}),yt.props.quickGo(yt.getValidValue()))},yt}return(0,ae.Z)(ct,[{key:"getPageSizeOptions",value:function(){var ft=this.props,Mt=ft.pageSize,Jt=ft.pageSizeOptions;return Jt.some(function(Vt){return Vt.toString()===Mt.toString()})?Jt:Jt.concat([Mt.toString()]).sort(function(Vt,Kt){var Ht=Number.isNaN(Number(Vt))?0:Number(Vt),tn=Number.isNaN(Number(Kt))?0:Number(Kt);return Ht-tn})}},{key:"render",value:function(){var ft=this,Mt=this.props,Jt=Mt.pageSize,Vt=Mt.locale,Kt=Mt.rootPrefixCls,Ht=Mt.changeSize,tn=Mt.quickGo,It=Mt.goButton,Dt=Mt.selectComponentClass,qt=Mt.buildOptionText,sn=Mt.selectPrefixCls,xn=Mt.disabled,Ln=this.state.goInputText,Zn="".concat(Kt,"-options"),Xn=Dt,dr=null,fr=null,pr=null;if(!Ht&&!tn)return null;var Cr=this.getPageSizeOptions();if(Ht&&Xn){var Yr=Cr.map(function(ii,jr){return vt.createElement(Xn.Option,{key:jr,value:ii.toString()},(qt||ft.buildOptionText)(ii))});dr=vt.createElement(Xn,{disabled:xn,prefixCls:sn,showSearch:!1,className:"".concat(Zn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Jt||Cr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(jr){return jr.parentNode},"aria-label":Vt.page_size,defaultOpen:!1},Yr)}return tn&&(It&&(pr=typeof It=="boolean"?vt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:xn,className:"".concat(Zn,"-quick-jumper-button")},Vt.jump_to_confirm):vt.createElement("span",{onClick:this.go,onKeyUp:this.go},It)),fr=vt.createElement("div",{className:"".concat(Zn,"-quick-jumper")},Vt.jump_to,vt.createElement("input",{disabled:xn,type:"text",value:Ln,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Vt.page}),Vt.page,pr)),vt.createElement("li",{className:"".concat(Zn)},dr,fr)}}]),ct}(vt.Component);Fe.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ae=Fe,je=function(Je){var ct,yt=Je.rootPrefixCls,ft=Je.page,Mt=Je.active,Jt=Je.className,Vt=Je.showTitle,Kt=Je.onClick,Ht=Je.onKeyPress,tn=Je.itemRender,It="".concat(yt,"-item"),Dt=xe()(It,"".concat(It,"-").concat(ft),(ct={},(0,fe.Z)(ct,"".concat(It,"-active"),Mt),(0,fe.Z)(ct,"".concat(It,"-disabled"),!ft),(0,fe.Z)(ct,Je.className,Jt),ct)),qt=function(){Kt(ft)},sn=function(Zn){Ht(Zn,Kt,ft)},xn=tn(ft,"page",vt.createElement("a",{rel:"nofollow"},ft));return xn?vt.createElement("li",{title:Vt?ft.toString():null,className:Dt,onClick:qt,onKeyPress:sn,tabIndex:0},xn):null},Ne=je;function Be(){}function ze(Ve){var Je=Number(Ve);return typeof Je=="number"&&!Number.isNaN(Je)&&isFinite(Je)&&Math.floor(Je)===Je}var Qe=function(Je,ct,yt){return yt};function $e(Ve,Je,ct){var yt=typeof Ve=="undefined"?Je.pageSize:Ve;return Math.floor((ct.total-1)/yt)+1}var Ye=function(Ve){(0,re.Z)(ct,Ve);var Je=(0,le.Z)(ct);function ct(yt){var ft;(0,ee.Z)(this,ct),ft=Je.call(this,yt),ft.paginationNode=vt.createRef(),ft.getJumpPrevPage=function(){return Math.max(1,ft.state.current-(ft.props.showLessItems?3:5))},ft.getJumpNextPage=function(){return Math.min($e(void 0,ft.state,ft.props),ft.state.current+(ft.props.showLessItems?3:5))},ft.getItemIcon=function(Ht,tn){var It=ft.props.prefixCls,Dt=Ht||vt.createElement("button",{type:"button","aria-label":tn,className:"".concat(It,"-item-link")});return typeof Ht=="function"&&(Dt=vt.createElement(Ht,(0,z.Z)({},ft.props))),Dt},ft.isValid=function(Ht){var tn=ft.props.total;return ze(Ht)&&Ht!==ft.state.current&&ze(tn)&&tn>0},ft.shouldDisplayQuickJumper=function(){var Ht=ft.props,tn=Ht.showQuickJumper,It=Ht.total,Dt=ft.state.pageSize;return It<=Dt?!1:tn},ft.handleKeyDown=function(Ht){(Ht.keyCode===Te.ARROW_UP||Ht.keyCode===Te.ARROW_DOWN)&&Ht.preventDefault()},ft.handleKeyUp=function(Ht){var tn=ft.getValidValue(Ht),It=ft.state.currentInputValue;tn!==It&&ft.setState({currentInputValue:tn}),Ht.keyCode===Te.ENTER?ft.handleChange(tn):Ht.keyCode===Te.ARROW_UP?ft.handleChange(tn-1):Ht.keyCode===Te.ARROW_DOWN&&ft.handleChange(tn+1)},ft.handleBlur=function(Ht){var tn=ft.getValidValue(Ht);ft.handleChange(tn)},ft.changePageSize=function(Ht){var tn=ft.state.current,It=$e(Ht,ft.state,ft.props);tn=tn>It?It:tn,It===0&&(tn=ft.state.current),typeof Ht=="number"&&("pageSize"in ft.props||ft.setState({pageSize:Ht}),"current"in ft.props||ft.setState({current:tn,currentInputValue:tn})),ft.props.onShowSizeChange(tn,Ht),"onChange"in ft.props&&ft.props.onChange&&ft.props.onChange(tn,Ht)},ft.handleChange=function(Ht){var tn=ft.props,It=tn.disabled,Dt=tn.onChange,qt=ft.state,sn=qt.pageSize,xn=qt.current,Ln=qt.currentInputValue;if(ft.isValid(Ht)&&!It){var Zn=$e(void 0,ft.state,ft.props),Xn=Ht;return Ht>Zn?Xn=Zn:Ht<1&&(Xn=1),"current"in ft.props||ft.setState({current:Xn}),Xn!==Ln&&ft.setState({currentInputValue:Xn}),Dt(Xn,sn),Xn}return xn},ft.prev=function(){ft.hasPrev()&&ft.handleChange(ft.state.current-1)},ft.next=function(){ft.hasNext()&&ft.handleChange(ft.state.current+1)},ft.jumpPrev=function(){ft.handleChange(ft.getJumpPrevPage())},ft.jumpNext=function(){ft.handleChange(ft.getJumpNextPage())},ft.hasPrev=function(){return ft.state.current>1},ft.hasNext=function(){return ft.state.current<$e(void 0,ft.state,ft.props)},ft.runIfEnter=function(Ht,tn){if(Ht.key==="Enter"||Ht.charCode===13){for(var It=arguments.length,Dt=new Array(It>2?It-2:0),qt=2;qt<It;qt++)Dt[qt-2]=arguments[qt];tn.apply(void 0,Dt)}},ft.runIfEnterPrev=function(Ht){ft.runIfEnter(Ht,ft.prev)},ft.runIfEnterNext=function(Ht){ft.runIfEnter(Ht,ft.next)},ft.runIfEnterJumpPrev=function(Ht){ft.runIfEnter(Ht,ft.jumpPrev)},ft.runIfEnterJumpNext=function(Ht){ft.runIfEnter(Ht,ft.jumpNext)},ft.handleGoTO=function(Ht){(Ht.keyCode===Te.ENTER||Ht.type==="click")&&ft.handleChange(ft.state.currentInputValue)},ft.renderPrev=function(Ht){var tn=ft.props,It=tn.prevIcon,Dt=tn.itemRender,qt=Dt(Ht,"prev",ft.getItemIcon(It,"prev page")),sn=!ft.hasPrev();return(0,vt.isValidElement)(qt)?(0,vt.cloneElement)(qt,{disabled:sn}):qt},ft.renderNext=function(Ht){var tn=ft.props,It=tn.nextIcon,Dt=tn.itemRender,qt=Dt(Ht,"next",ft.getItemIcon(It,"next page")),sn=!ft.hasNext();return(0,vt.isValidElement)(qt)?(0,vt.cloneElement)(qt,{disabled:sn}):qt};var Mt=yt.onChange!==Be,Jt="current"in yt;Jt&&!Mt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Vt=yt.defaultCurrent;"current"in yt&&(Vt=yt.current);var Kt=yt.defaultPageSize;return"pageSize"in yt&&(Kt=yt.pageSize),Vt=Math.min(Vt,$e(Kt,void 0,yt)),ft.state={current:Vt,currentInputValue:Vt,pageSize:Kt},ft}return(0,ae.Z)(ct,[{key:"componentDidUpdate",value:function(ft,Mt){var Jt=this.props.prefixCls;if(Mt.current!==this.state.current&&this.paginationNode.current){var Vt=this.paginationNode.current.querySelector(".".concat(Jt,"-item-").concat(Mt.current));if(Vt&&document.activeElement===Vt){var Kt;Vt==null||(Kt=Vt.blur)===null||Kt===void 0||Kt.call(Vt)}}}},{key:"getValidValue",value:function(ft){var Mt=ft.target.value,Jt=$e(void 0,this.state,this.props),Vt=this.state.currentInputValue,Kt;return Mt===""?Kt=Mt:Number.isNaN(Number(Mt))?Kt=Vt:Mt>=Jt?Kt=Jt:Kt=Number(Mt),Kt}},{key:"getShowSizeChanger",value:function(){var ft=this.props,Mt=ft.showSizeChanger,Jt=ft.total,Vt=ft.totalBoundaryShowSizeChanger;return typeof Mt!="undefined"?Mt:Jt>Vt}},{key:"render",value:function(){var ft=this.props,Mt=ft.prefixCls,Jt=ft.className,Vt=ft.style,Kt=ft.disabled,Ht=ft.hideOnSinglePage,tn=ft.total,It=ft.locale,Dt=ft.showQuickJumper,qt=ft.showLessItems,sn=ft.showTitle,xn=ft.showTotal,Ln=ft.simple,Zn=ft.itemRender,Xn=ft.showPrevNextJumpers,dr=ft.jumpPrevIcon,fr=ft.jumpNextIcon,pr=ft.selectComponentClass,Cr=ft.selectPrefixCls,Yr=ft.pageSizeOptions,ii=this.state,jr=ii.current,fi=ii.pageSize,Lr=ii.currentInputValue;if(Ht===!0&&tn<=fi)return null;var ot=$e(void 0,this.state,this.props),oi=[],yi=null,Pi=null,sr=null,Ar=null,Fr=null,Si=Dt&&Dt.goButton,Nr=qt?1:2,hn=jr-1>0?jr-1:0,cn=jr+1<ot?jr+1:ot,Ot=(0,ue.Z)(this.props,{aria:!0,data:!0}),gn=xn&&vt.createElement("li",{className:"".concat(Mt,"-total-text")},xn(tn,[tn===0?0:(jr-1)*fi+1,jr*fi>tn?tn:jr*fi]));if(Ln){Si&&(typeof Si=="boolean"?Fr=vt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},It.jump_to_confirm):Fr=vt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Si),Fr=vt.createElement("li",{title:sn?"".concat(It.jump_to).concat(jr,"/").concat(ot):null,className:"".concat(Mt,"-simple-pager")},Fr));var Nn=this.renderPrev(hn);return vt.createElement("ul",(0,rt.Z)({className:xe()(Mt,"".concat(Mt,"-simple"),(0,fe.Z)({},"".concat(Mt,"-disabled"),Kt),Jt),style:Vt,ref:this.paginationNode},Ot),gn,Nn?vt.createElement("li",{title:sn?It.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(Mt,"-prev"),(0,fe.Z)({},"".concat(Mt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Nn):null,vt.createElement("li",{title:sn?"".concat(jr,"/").concat(ot):null,className:"".concat(Mt,"-simple-pager")},vt.createElement("input",{type:"text",value:Lr,disabled:Kt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),vt.createElement("span",{className:"".concat(Mt,"-slash")},"/"),ot),vt.createElement("li",{title:sn?It.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:xe()("".concat(Mt,"-next"),(0,fe.Z)({},"".concat(Mt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(cn)),Fr)}if(ot<=3+Nr*2){var Xt={locale:It,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:sn,itemRender:Zn};ot||oi.push(vt.createElement(Ne,(0,rt.Z)({},Xt,{key:"noPager",page:1,className:"".concat(Mt,"-item-disabled")})));for(var zt=1;zt<=ot;zt+=1){var Pn=jr===zt;oi.push(vt.createElement(Ne,(0,rt.Z)({},Xt,{key:zt,page:zt,active:Pn})))}}else{var _n=qt?It.prev_3:It.prev_5,qn=qt?It.next_3:It.next_5,Yn=Zn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(dr,"prev page")),$t=Zn(this.getJumpNextPage(),"jump-next",this.getItemIcon(fr,"next page"));Xn&&(yi=Yn?vt.createElement("li",{title:sn?_n:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:xe()("".concat(Mt,"-jump-prev"),(0,fe.Z)({},"".concat(Mt,"-jump-prev-custom-icon"),!!dr))},Yn):null,Pi=$t?vt.createElement("li",{title:sn?qn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:xe()("".concat(Mt,"-jump-next"),(0,fe.Z)({},"".concat(Mt,"-jump-next-custom-icon"),!!fr))},$t):null),Ar=vt.createElement(Ne,{locale:It,last:!0,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ot,page:ot,active:!1,showTitle:sn,itemRender:Zn}),sr=vt.createElement(Ne,{locale:It,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:sn,itemRender:Zn});var jn=Math.max(1,jr-Nr),Wn=Math.min(jr+Nr,ot);jr-1<=Nr&&(Wn=1+Nr*2),ot-jr<=Nr&&(jn=ot-Nr*2);for(var or=jn;or<=Wn;or+=1){var nn=jr===or;oi.push(vt.createElement(Ne,{locale:It,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:or,page:or,active:nn,showTitle:sn,itemRender:Zn}))}jr-1>=Nr*2&&jr!==3&&(oi[0]=(0,vt.cloneElement)(oi[0],{className:"".concat(Mt,"-item-after-jump-prev")}),oi.unshift(yi)),ot-jr>=Nr*2&&jr!==ot-2&&(oi[oi.length-1]=(0,vt.cloneElement)(oi[oi.length-1],{className:"".concat(Mt,"-item-before-jump-next")}),oi.push(Pi)),jn!==1&&oi.unshift(sr),Wn!==ot&&oi.push(Ar)}var Cn=!this.hasPrev()||!ot,rn=!this.hasNext()||!ot,mn=this.renderPrev(hn),En=this.renderNext(cn);return vt.createElement("ul",(0,rt.Z)({className:xe()(Mt,Jt,(0,fe.Z)({},"".concat(Mt,"-disabled"),Kt)),style:Vt,ref:this.paginationNode},Ot),gn,mn?vt.createElement("li",{title:sn?It.prev_page:null,onClick:this.prev,tabIndex:Cn?null:0,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(Mt,"-prev"),(0,fe.Z)({},"".concat(Mt,"-disabled"),Cn)),"aria-disabled":Cn},mn):null,oi,En?vt.createElement("li",{title:sn?It.next_page:null,onClick:this.next,tabIndex:rn?null:0,onKeyPress:this.runIfEnterNext,className:xe()("".concat(Mt,"-next"),(0,fe.Z)({},"".concat(Mt,"-disabled"),rn)),"aria-disabled":rn},En):null,vt.createElement(Ae,{disabled:Kt,locale:It,rootPrefixCls:Mt,selectComponentClass:pr,selectPrefixCls:Cr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:jr,pageSize:fi,pageSizeOptions:Yr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Si}))}}],[{key:"getDerivedStateFromProps",value:function(ft,Mt){var Jt={};if("current"in ft&&(Jt.current=ft.current,ft.current!==Mt.current&&(Jt.currentInputValue=Jt.current)),"pageSize"in ft&&ft.pageSize!==Mt.pageSize){var Vt=Mt.current,Kt=$e(ft.pageSize,Mt,ft);Vt=Vt>Kt?Kt:Vt,"current"in ft||(Jt.current=Vt,Jt.currentInputValue=Vt),Jt.pageSize=ft.pageSize}return Jt}}]),ct}(vt.Component);Ye.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Be,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Be,locale:Ce.Z,style:{},itemRender:Qe,totalBoundaryShowSizeChanger:50};var at=Ye,ut=Ge(22075),ht=Ge(36355),Ct=Ge(19716),et=Ge(8628),it=Ge(9763),St=Ge(57809);const bt=Ve=>vt.createElement(St.default,Object.assign({},Ve,{showSearch:!0,size:"small"})),Pt=Ve=>vt.createElement(St.default,Object.assign({},Ve,{showSearch:!0,size:"middle"}));bt.Option=St.default.Option,Pt.Option=St.default.Option;var gt=Ge(9937),dt=Ge(17313),mt=Ge(83116),kt=Ge(37613);const Et=Ve=>{const{componentCls:Je}=Ve;return{[`${Je}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Je}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Je}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed"}}},[`&${Je}-disabled`]:{cursor:"not-allowed",[`${Je}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ve.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ve.colorBorder,backgroundColor:Ve.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ve.itemActiveBgDisabled},a:{color:Ve.itemActiveColorDisabled}}},[`${Je}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Je}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Je}-simple-pager`]:{color:Ve.colorTextDisabled},[`${Je}-jump-prev, ${Je}-jump-next`]:{[`${Je}-item-link-icon`]:{opacity:0},[`${Je}-item-ellipsis`]:{opacity:1}}},[`&${Je}-simple`]:{[`${Je}-prev, ${Je}-next`]:{[`&${Je}-disabled ${Je}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Ut=Ve=>{const{componentCls:Je}=Ve;return{[`&${Je}-mini ${Je}-total-text, &${Je}-mini ${Je}-simple-pager`]:{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`},[`&${Je}-mini ${Je}-item`]:{minWidth:Ve.itemSizeSM,height:Ve.itemSizeSM,margin:0,lineHeight:`${Ve.itemSizeSM-2}px`},[`&${Je}-mini:not(${Je}-disabled) ${Je}-item:not(${Je}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ve.colorBgTextHover},"&:active":{backgroundColor:Ve.colorBgTextActive}},[`&${Je}-mini ${Je}-prev, &${Je}-mini ${Je}-next`]:{minWidth:Ve.itemSizeSM,height:Ve.itemSizeSM,margin:0,lineHeight:`${Ve.itemSizeSM}px`},[`&${Je}-mini:not(${Je}-disabled)`]:{[`${Je}-prev, ${Je}-next`]:{[`&:hover ${Je}-item-link`]:{backgroundColor:Ve.colorBgTextHover},[`&:active ${Je}-item-link`]:{backgroundColor:Ve.colorBgTextActive},[`&${Je}-disabled:hover ${Je}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Je}-mini ${Je}-prev ${Je}-item-link,
|
|
|
&${Je}-mini ${Je}-next ${Je}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`}},[`&${Je}-mini ${Je}-jump-prev, &${Je}-mini ${Je}-jump-next`]:{height:Ve.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ve.itemSizeSM}px`},[`&${Je}-mini ${Je}-options`]:{marginInlineStart:Ve.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ve.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,gt.x0)(Ve)),{width:Ve.paginationMiniQuickJumperInputWidth,height:Ve.controlHeightSM})}}}},wt=Ve=>{const{componentCls:Je}=Ve;return{[`
|
|
|
&${Je}-simple ${Je}-prev,
|
|
|
&${Je}-simple ${Je}-next
|
|
|
`]:{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`,verticalAlign:"top",[`${Je}-item-link`]:{height:Ve.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ve.colorBgTextHover},"&:active":{backgroundColor:Ve.colorBgTextActive},"&::after":{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`}}},[`&${Je}-simple ${Je}-simple-pager`]:{display:"inline-block",height:Ve.itemSizeSM,marginInlineEnd:Ve.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ve.marginXS,padding:`0 ${Ve.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ve.itemInputBg,border:`${Ve.lineWidth}px ${Ve.lineType} ${Ve.colorBorder}`,borderRadius:Ve.borderRadius,outline:"none",transition:`border-color ${Ve.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ve.colorPrimary},"&:focus":{borderColor:Ve.colorPrimaryHover,boxShadow:`${Ve.inputOutlineOffset}px 0 ${Ve.controlOutlineWidth}px ${Ve.controlOutline}`},"&[disabled]":{color:Ve.colorTextDisabled,backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,cursor:"not-allowed"}}}}},pt=Ve=>{const{componentCls:Je}=Ve;return{[`${Je}-jump-prev, ${Je}-jump-next`]:{outline:0,[`${Je}-item-container`]:{position:"relative",[`${Je}-item-link-icon`]:{color:Ve.colorPrimary,fontSize:Ve.fontSizeSM,opacity:0,transition:`all ${Ve.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Je}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ve.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ve.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ve.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ve.motionDurationMid}`}},"&:hover":{[`${Je}-item-link-icon`]:{opacity:1},[`${Je}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Je}-prev,
|
|
|
${Je}-jump-prev,
|
|
|
${Je}-jump-next
|
|
|
`]:{marginInlineEnd:Ve.marginXS},[`
|
|
|
${Je}-prev,
|
|
|
${Je}-next,
|
|
|
${Je}-jump-prev,
|
|
|
${Je}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ve.itemSize,height:Ve.itemSize,color:Ve.colorText,fontFamily:Ve.fontFamily,lineHeight:`${Ve.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ve.borderRadius,cursor:"pointer",transition:`all ${Ve.motionDurationMid}`},[`${Je}-prev, ${Je}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ve.colorText,cursor:"pointer",userSelect:"none"},[`${Je}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ve.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ve.lineWidth}px ${Ve.lineType} transparent`,borderRadius:Ve.borderRadius,outline:"none",transition:`all ${Ve.motionDurationMid}`},[`&:hover ${Je}-item-link`]:{backgroundColor:Ve.colorBgTextHover},[`&:active ${Je}-item-link`]:{backgroundColor:Ve.colorBgTextActive},[`&${Je}-disabled:hover`]:{[`${Je}-item-link`]:{backgroundColor:"transparent"}}},[`${Je}-slash`]:{marginInlineEnd:Ve.paginationSlashMarginInlineEnd,marginInlineStart:Ve.paginationSlashMarginInlineStart},[`${Je}-options`]:{display:"inline-block",marginInlineStart:Ve.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ve.controlHeight,marginInlineStart:Ve.marginXS,lineHeight:`${Ve.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,gt.ik)(Ve)),{width:Ve.controlHeightLG*1.25,height:Ve.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ve.marginXS,marginInlineEnd:Ve.marginXS})}}}},tt=Ve=>{const{componentCls:Je}=Ve;return{[`${Je}-item`]:{display:"inline-block",minWidth:Ve.itemSize,height:Ve.itemSize,marginInlineEnd:Ve.marginXS,fontFamily:Ve.fontFamily,lineHeight:`${Ve.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ve.lineWidth}px ${Ve.lineType} transparent`,borderRadius:Ve.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ve.paginationItemPaddingInline}px`,color:Ve.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Je}-item-active)`]:{"&:hover":{transition:`all ${Ve.motionDurationMid}`,backgroundColor:Ve.colorBgTextHover},"&:active":{backgroundColor:Ve.colorBgTextActive}},"&-active":{fontWeight:Ve.fontWeightStrong,backgroundColor:Ve.itemActiveBg,borderColor:Ve.colorPrimary,a:{color:Ve.colorPrimary},"&:hover":{borderColor:Ve.colorPrimaryHover},"&:hover a":{color:Ve.colorPrimaryHover}}}}},Ze=Ve=>{const{componentCls:Je}=Ve;return{[Je]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,dt.Wf)(Ve)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Je}-total-text`]:{display:"inline-block",height:Ve.itemSize,marginInlineEnd:Ve.marginXS,lineHeight:`${Ve.itemSize-2}px`,verticalAlign:"middle"}}),tt(Ve)),pt(Ve)),wt(Ve)),Ut(Ve)),Et(Ve)),{[`@media only screen and (max-width: ${Ve.screenLG}px)`]:{[`${Je}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ve.screenSM}px)`]:{[`${Je}-options`]:{display:"none"}}}),[`&${Ve.componentCls}-rtl`]:{direction:"rtl"}}},we=Ve=>{const{componentCls:Je}=Ve;return{[`${Je}${Je}-disabled:not(${Je}-mini)`]:{"&, &:hover":{[`${Je}-item-link`]:{borderColor:Ve.colorBorder}},"&:focus-visible":{[`${Je}-item-link`]:{borderColor:Ve.colorBorder}},[`${Je}-item, ${Je}-item-link`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,[`&:hover:not(${Je}-item-active)`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,a:{color:Ve.colorTextDisabled}},[`&${Je}-item-active`]:{backgroundColor:Ve.itemActiveBgDisabled}},[`${Je}-prev, ${Je}-next`]:{"&:hover button":{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,color:Ve.colorTextDisabled},[`${Je}-item-link`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder}}},[`${Je}:not(${Je}-mini)`]:{[`${Je}-prev, ${Je}-next`]:{"&:hover button":{borderColor:Ve.colorPrimaryHover,backgroundColor:Ve.itemBg},[`${Je}-item-link`]:{backgroundColor:Ve.itemLinkBg,borderColor:Ve.colorBorder},[`&:hover ${Je}-item-link`]:{borderColor:Ve.colorPrimary,backgroundColor:Ve.itemBg,color:Ve.colorPrimary},[`&${Je}-disabled`]:{[`${Je}-item-link`]:{borderColor:Ve.colorBorder,color:Ve.colorTextDisabled}}},[`${Je}-item`]:{backgroundColor:Ve.itemBg,border:`${Ve.lineWidth}px ${Ve.lineType} ${Ve.colorBorder}`,[`&:hover:not(${Je}-item-active)`]:{borderColor:Ve.colorPrimary,backgroundColor:Ve.itemBg,a:{color:Ve.colorPrimary}},"&-active":{borderColor:Ve.colorPrimary}}}}},be=Ve=>{const{componentCls:Je}=Ve;return{[`${Je}:not(${Je}-disabled)`]:{[`${Je}-item`]:Object.assign({},(0,dt.Qy)(Ve)),[`${Je}-jump-prev, ${Je}-jump-next`]:{"&:focus-visible":Object.assign({[`${Je}-item-link-icon`]:{opacity:1},[`${Je}-item-ellipsis`]:{opacity:0}},(0,dt.oN)(Ve))},[`${Je}-prev, ${Je}-next`]:{[`&:focus-visible ${Je}-item-link`]:Object.assign({},(0,dt.oN)(Ve))}}}};var Ke=(0,mt.Z)("Pagination",Ve=>{const Je=(0,kt.TS)(Ve,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ve.marginXXS/2,paginationMiniQuickJumperInputWidth:Ve.controlHeightLG*1.1,paginationItemPaddingInline:Ve.marginXXS*1.5,paginationEllipsisLetterSpacing:Ve.marginXXS/2,paginationSlashMarginInlineStart:Ve.marginXXS,paginationSlashMarginInlineEnd:Ve.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,gt.e5)(Ve),(0,gt.TM)(Ve));return[Ze(Je),be(Je),Ve.wireframe&&we(Je)]},Ve=>({itemBg:Ve.colorBgContainer,itemSize:Ve.controlHeight,itemSizeSM:Ve.controlHeightSM,itemActiveBg:Ve.colorBgContainer,itemLinkBg:Ve.colorBgContainer,itemActiveColorDisabled:Ve.colorTextDisabled,itemActiveBgDisabled:Ve.controlItemBgActiveDisabled,itemInputBg:Ve.colorBgContainer,miniOptionsSizeChangerTop:0})),Xe=function(Ve,Je){var ct={};for(var yt in Ve)Object.prototype.hasOwnProperty.call(Ve,yt)&&Je.indexOf(yt)<0&&(ct[yt]=Ve[yt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,yt=Object.getOwnPropertySymbols(Ve);ft<yt.length;ft++)Je.indexOf(yt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ve,yt[ft])&&(ct[yt[ft]]=Ve[yt[ft]]);return ct},Ue=Ve=>{const{prefixCls:Je,selectPrefixCls:ct,className:yt,rootClassName:ft,style:Mt,size:Jt,locale:Vt,selectComponentClass:Kt,responsive:Ht,showSizeChanger:tn}=Ve,It=Xe(Ve,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Dt}=(0,et.Z)(Ht),{getPrefixCls:qt,direction:sn,pagination:xn={}}=vt.useContext(ht.E_),Ln=qt("pagination",Je),[Zn,Xn]=Ke(Ln),dr=tn!=null?tn:xn.showSizeChanger,fr=vt.useMemo(()=>{const ot=vt.createElement("span",{className:`${Ln}-item-ellipsis`},"\u2022\u2022\u2022"),oi=vt.createElement("button",{className:`${Ln}-item-link`,type:"button",tabIndex:-1},sn==="rtl"?vt.createElement(Me.Z,null):vt.createElement(ye.Z,null)),yi=vt.createElement("button",{className:`${Ln}-item-link`,type:"button",tabIndex:-1},sn==="rtl"?vt.createElement(ye.Z,null):vt.createElement(Me.Z,null)),Pi=vt.createElement("a",{className:`${Ln}-item-link`},vt.createElement("div",{className:`${Ln}-item-container`},sn==="rtl"?vt.createElement(Ee.Z,{className:`${Ln}-item-link-icon`}):vt.createElement(Pe,{className:`${Ln}-item-link-icon`}),ot)),sr=vt.createElement("a",{className:`${Ln}-item-link`},vt.createElement("div",{className:`${Ln}-item-container`},sn==="rtl"?vt.createElement(Pe,{className:`${Ln}-item-link-icon`}):vt.createElement(Ee.Z,{className:`${Ln}-item-link-icon`}),ot));return{prevIcon:oi,nextIcon:yi,jumpPrevIcon:Pi,jumpNextIcon:sr}},[sn,Ln]),[pr]=(0,it.Z)("Pagination",ut.Z),Cr=Object.assign(Object.assign({},pr),Vt),Yr=(0,Ct.Z)(Jt),ii=Yr==="small"||!!(Dt&&!Yr&&Ht),jr=qt("select",ct),fi=xe()({[`${Ln}-mini`]:ii,[`${Ln}-rtl`]:sn==="rtl"},xn==null?void 0:xn.className,yt,ft,Xn),Lr=Object.assign(Object.assign({},xn==null?void 0:xn.style),Mt);return Zn(vt.createElement(at,Object.assign({},fr,It,{style:Lr,prefixCls:Ln,selectPrefixCls:jr,className:fi,selectComponentClass:Kt||(ii?bt:Pt),locale:Cr,showSizeChanger:dr})))},He=Ue},14478:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Ne}});var rt=Ge(96512),vt=Ge(92310),ie=Ge.n(vt),_e=Ge(10228),Ie=Ge(18929),ge=Ge(2738),ce=Ge(59301),Pe=Ge(92343),Ee=Ge(36355),ye=Ge(60324),Me=Ge(92806),ve=Ge(77578),xe=Ge(3113),fe=Ge(67797),z=Ge(9763),ee=Ge(31724),ae=Ge(39722),re=Ge(83116);const le=Be=>{const{componentCls:ze,iconCls:Qe,antCls:$e,zIndexPopup:Ye,colorText:at,colorWarning:ut,marginXXS:ht,marginXS:Ct,fontSize:et,fontWeightStrong:it,colorTextHeading:St}=Be;return{[ze]:{zIndex:Ye,[`&${$e}-popover`]:{fontSize:et},[`${ze}-message`]:{marginBottom:Ct,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ze}-message-icon ${Qe}`]:{color:ut,fontSize:et,lineHeight:1,marginInlineEnd:Ct},[`${ze}-title`]:{fontWeight:it,color:St,"&:only-child":{fontWeight:"normal"}},[`${ze}-description`]:{marginTop:ht,color:at}},[`${ze}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Ct}}}}};var ue=(0,re.Z)("Popconfirm",Be=>le(Be),Be=>{const{zIndexPopupBase:ze}=Be;return{zIndexPopup:ze+60}},{resetStyle:!1}),pe=function(Be,ze){var Qe={};for(var $e in Be)Object.prototype.hasOwnProperty.call(Be,$e)&&ze.indexOf($e)<0&&(Qe[$e]=Be[$e]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,$e=Object.getOwnPropertySymbols(Be);Ye<$e.length;Ye++)ze.indexOf($e[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Be,$e[Ye])&&(Qe[$e[Ye]]=Be[$e[Ye]]);return Qe};const Te=Be=>{const{prefixCls:ze,okButtonProps:Qe,cancelButtonProps:$e,title:Ye,description:at,cancelText:ut,okText:ht,okType:Ct="primary",icon:et=ce.createElement(rt.Z,null),showCancel:it=!0,close:St,onConfirm:bt,onCancel:Pt,onPopupClick:gt}=Be,{getPrefixCls:dt}=ce.useContext(Ee.E_),[mt]=(0,z.Z)("Popconfirm",ee.Z.Popconfirm),kt=(0,ve.Z)(Ye),Et=(0,ve.Z)(at);return ce.createElement("div",{className:`${ze}-inner-content`,onClick:gt},ce.createElement("div",{className:`${ze}-message`},et&&ce.createElement("span",{className:`${ze}-message-icon`},et),ce.createElement("div",{className:`${ze}-message-text`},kt&&ce.createElement("div",{className:ie()(`${ze}-title`)},kt),Et&&ce.createElement("div",{className:`${ze}-description`},Et))),ce.createElement("div",{className:`${ze}-buttons`},it&&ce.createElement(xe.ZP,Object.assign({onClick:Pt,size:"small"},$e),ut!=null?ut:mt==null?void 0:mt.cancelText),ce.createElement(Me.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,fe.n)(Ct)),Qe),actionFn:bt,close:St,prefixCls:dt("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},ht!=null?ht:mt==null?void 0:mt.okText)))};var Fe=Be=>{const{prefixCls:ze,placement:Qe,className:$e,style:Ye}=Be,at=pe(Be,["prefixCls","placement","className","style"]),{getPrefixCls:ut}=ce.useContext(Ee.E_),ht=ut("popconfirm",ze),[Ct]=ue(ht);return Ct(ce.createElement(ae.ZP,{placement:Qe,className:ie()(ht,$e),style:Ye,content:ce.createElement(Te,Object.assign({prefixCls:ht},at))}))},Ae=function(Be,ze){var Qe={};for(var $e in Be)Object.prototype.hasOwnProperty.call(Be,$e)&&ze.indexOf($e)<0&&(Qe[$e]=Be[$e]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,$e=Object.getOwnPropertySymbols(Be);Ye<$e.length;Ye++)ze.indexOf($e[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Be,$e[Ye])&&(Qe[$e[Ye]]=Be[$e[Ye]]);return Qe};const je=ce.forwardRef((Be,ze)=>{const{prefixCls:Qe,placement:$e="top",trigger:Ye="click",okType:at="primary",icon:ut=ce.createElement(rt.Z,null),children:ht,overlayClassName:Ct,onOpenChange:et,onVisibleChange:it}=Be,St=Ae(Be,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:bt}=ce.useContext(Ee.E_),[Pt,gt]=(0,Ie.Z)(!1,{value:Be.open,defaultValue:Be.defaultOpen}),dt=(we,be)=>{gt(we,!0),it==null||it(we),et==null||et(we,be)},mt=we=>{dt(!1,we)},kt=we=>{var be;return(be=Be.onConfirm)===null||be===void 0?void 0:be.call(void 0,we)},Et=we=>{var be;dt(!1,we),(be=Be.onCancel)===null||be===void 0||be.call(void 0,we)},Ut=we=>{we.keyCode===_e.Z.ESC&&Pt&&dt(!1,we)},wt=we=>{const{disabled:be=!1}=Be;be||dt(we)},pt=bt("popconfirm",Qe),tt=ie()(pt,Ct),[Ze]=ue(pt);return Ze(ce.createElement(ye.Z,Object.assign({},(0,ge.Z)(St,["title"]),{trigger:Ye,placement:$e,onOpenChange:wt,open:Pt,ref:ze,overlayClassName:tt,content:ce.createElement(Te,Object.assign({okType:at,icon:ut},Be,{prefixCls:pt,close:mt,onConfirm:kt,onCancel:Et})),"data-popover-inject":!0}),(0,Pe.Tm)(ht,{onKeyDown:we=>{var be,Ke;ce.isValidElement(ht)&&((Ke=ht==null?void 0:(be=ht.props).onKeyDown)===null||Ke===void 0||Ke.call(be,we)),Ut(we)}})))});je._InternalPanelDoNotUseOrYouWillBeFired=Fe;var Ne=je},39722:function(bn,an,Ge){"use strict";Ge.d(an,{t5:function(){return ye}});var rt=Ge(92310),vt=Ge.n(rt),ie=Ge(55477),_e=Ge(59301),Ie=Ge(36355),ge=Ge(77578),ce=Ge(17356),Pe=function(ve,xe){var fe={};for(var z in ve)Object.prototype.hasOwnProperty.call(ve,z)&&xe.indexOf(z)<0&&(fe[z]=ve[z]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,z=Object.getOwnPropertySymbols(ve);ee<z.length;ee++)xe.indexOf(z[ee])<0&&Object.prototype.propertyIsEnumerable.call(ve,z[ee])&&(fe[z[ee]]=ve[z[ee]]);return fe};const Ee=(ve,xe,fe)=>{if(!(!xe&&!fe))return _e.createElement(_e.Fragment,null,xe&&_e.createElement("div",{className:`${ve}-title`},(0,ge.Z)(xe)),_e.createElement("div",{className:`${ve}-inner-content`},(0,ge.Z)(fe)))},ye=ve=>{const{hashId:xe,prefixCls:fe,className:z,style:ee,placement:ae="top",title:re,content:le,children:ue}=ve;return _e.createElement("div",{className:vt()(xe,fe,`${fe}-pure`,`${fe}-placement-${ae}`,z),style:ee},_e.createElement("div",{className:`${fe}-arrow`}),_e.createElement(ie.G,Object.assign({},ve,{className:xe,prefixCls:fe}),ue||Ee(fe,re,le)))},Me=ve=>{const{prefixCls:xe}=ve,fe=Pe(ve,["prefixCls"]),{getPrefixCls:z}=_e.useContext(Ie.E_),ee=z("popover",xe),[ae,re]=(0,ce.Z)(ee);return ae(_e.createElement(ye,Object.assign({},fe,{prefixCls:ee,hashId:re})))};an.ZP=Me},60324:function(bn,an,Ge){"use strict";var rt=Ge(92310),vt=Ge.n(rt),ie=Ge(59301),_e=Ge(77578),Ie=Ge(62892),ge=Ge(36355),ce=Ge(6848),Pe=Ge(39722),Ee=Ge(17356),ye=function(xe,fe){var z={};for(var ee in xe)Object.prototype.hasOwnProperty.call(xe,ee)&&fe.indexOf(ee)<0&&(z[ee]=xe[ee]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,ee=Object.getOwnPropertySymbols(xe);ae<ee.length;ae++)fe.indexOf(ee[ae])<0&&Object.prototype.propertyIsEnumerable.call(xe,ee[ae])&&(z[ee[ae]]=xe[ee[ae]]);return z};const Me=xe=>{let{title:fe,content:z,prefixCls:ee}=xe;return ie.createElement(ie.Fragment,null,fe&&ie.createElement("div",{className:`${ee}-title`},(0,_e.Z)(fe)),ie.createElement("div",{className:`${ee}-inner-content`},(0,_e.Z)(z)))},ve=ie.forwardRef((xe,fe)=>{const{prefixCls:z,title:ee,content:ae,overlayClassName:re,placement:le="top",trigger:ue="hover",mouseEnterDelay:pe=.1,mouseLeaveDelay:Te=.1,overlayStyle:Ce={}}=xe,Fe=ye(xe,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Ae}=ie.useContext(ge.E_),je=Ae("popover",z),[Ne,Be]=(0,Ee.Z)(je),ze=Ae(),Qe=vt()(re,Be);return Ne(ie.createElement(ce.Z,Object.assign({placement:le,trigger:ue,mouseEnterDelay:pe,mouseLeaveDelay:Te,overlayStyle:Ce},Fe,{prefixCls:je,overlayClassName:Qe,ref:fe,overlay:ee||ae?ie.createElement(Me,{prefixCls:je,title:ee,content:ae}):null,transitionName:(0,Ie.m)(ze,"zoom-big",Fe.transitionName),"data-popover-inject":!0})))});ve._InternalPanelDoNotUseOrYouWillBeFired=Pe.ZP,an.Z=ve},17356:function(bn,an,Ge){"use strict";var rt=Ge(17313),vt=Ge(29878),ie=Ge(19447),_e=Ge(33166),Ie=Ge(83116),ge=Ge(37613);const ce=ye=>{const{componentCls:Me,popoverColor:ve,minWidth:xe,fontWeightStrong:fe,popoverPadding:z,boxShadowSecondary:ee,colorTextHeading:ae,borderRadiusLG:re,zIndexPopup:le,marginXS:ue,colorBgElevated:pe,popoverBg:Te}=ye;return[{[Me]:Object.assign(Object.assign({},(0,rt.Wf)(ye)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:le,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":pe,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Me}-content`]:{position:"relative"},[`${Me}-inner`]:{backgroundColor:Te,backgroundClip:"padding-box",borderRadius:re,boxShadow:ee,padding:z},[`${Me}-title`]:{minWidth:xe,marginBottom:ue,color:ae,fontWeight:fe},[`${Me}-inner-content`]:{color:ve}})},(0,ie.ZP)(ye,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Me}-pure`]:{position:"relative",maxWidth:"none",margin:ye.sizePopupArrow,display:"inline-block",[`${Me}-content`]:{display:"inline-block"}}}]},Pe=ye=>{const{componentCls:Me}=ye;return{[Me]:_e.i.map(ve=>{const xe=ye[`${ve}6`];return{[`&${Me}-${ve}`]:{"--antd-arrow-background-color":xe,[`${Me}-inner`]:{backgroundColor:xe},[`${Me}-arrow`]:{background:"transparent"}}}})}},Ee=ye=>{const{componentCls:Me,lineWidth:ve,lineType:xe,colorSplit:fe,paddingSM:z,controlHeight:ee,fontSize:ae,lineHeight:re,padding:le}=ye,ue=ee-Math.round(ae*re),pe=ue/2,Te=ue/2-ve,Ce=le;return{[Me]:{[`${Me}-inner`]:{padding:0},[`${Me}-title`]:{margin:0,padding:`${pe}px ${Ce}px ${Te}px`,borderBottom:`${ve}px ${xe} ${fe}`},[`${Me}-inner-content`]:{padding:`${z}px ${Ce}px`}}}};an.Z=(0,Ie.Z)("Popover",ye=>{const{colorBgElevated:Me,colorText:ve,wireframe:xe}=ye,fe=(0,ge.TS)(ye,{popoverPadding:12,popoverBg:Me,popoverColor:ve});return[ce(fe),Pe(fe),xe&&Ee(fe),(0,vt._y)(fe,"zoom-big")]},ye=>({width:177,minWidth:177,zIndexPopup:ye.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return tn}});var rt=Ge(59301),vt=Ge(29679),ie=Ge(40001),_e=Ge(19248),Ie=Ge(99267),ge=Ge(92310),ce=Ge.n(ge),Pe=Ge(2738),Ee=Ge(36355),ye=Ge(96663),Me=Ge(44127),ve=Ge(6620),xe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},fe=function(){var Dt=(0,rt.useRef)([]),qt=(0,rt.useRef)(null);return(0,rt.useEffect)(function(){var sn=Date.now(),xn=!1;Dt.current.forEach(function(Ln){if(Ln){xn=!0;var Zn=Ln.style;Zn.transitionDuration=".3s, .3s, .3s, .06s",qt.current&&sn-qt.current<100&&(Zn.transitionDuration="0s, 0s")}}),xn&&(qt.current=Date.now())}),Dt.current},z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Dt){var qt=(0,Me.Z)((0,Me.Z)({},xe),Dt),sn=qt.className,xn=qt.percent,Ln=qt.prefixCls,Zn=qt.strokeColor,Xn=qt.strokeLinecap,dr=qt.strokeWidth,fr=qt.style,pr=qt.trailColor,Cr=qt.trailWidth,Yr=qt.transition,ii=(0,ve.Z)(qt,z);delete ii.gapPosition;var jr=Array.isArray(xn)?xn:[xn],fi=Array.isArray(Zn)?Zn:[Zn],Lr=fe(),ot=dr/2,oi=100-dr/2,yi="M ".concat(Xn==="round"?ot:0,",").concat(ot,`
|
|
|
L `).concat(Xn==="round"?oi:100,",").concat(ot),Pi="0 0 100 ".concat(dr),sr=0;return rt.createElement("svg",(0,ye.Z)({className:ce()("".concat(Ln,"-line"),sn),viewBox:Pi,preserveAspectRatio:"none",style:fr},ii),rt.createElement("path",{className:"".concat(Ln,"-line-trail"),d:yi,strokeLinecap:Xn,stroke:pr,strokeWidth:Cr||dr,fillOpacity:"0"}),jr.map(function(Ar,Fr){var Si=1;switch(Xn){case"round":Si=1-dr/100;break;case"square":Si=1-dr/2/100;break;default:Si=1;break}var Nr={strokeDasharray:"".concat(Ar*Si,"px, 100px"),strokeDashoffset:"-".concat(sr,"px"),transition:Yr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},hn=fi[Fr]||fi[fi.length-1];return sr+=Ar,rt.createElement("path",{key:Fr,className:"".concat(Ln,"-line-path"),d:yi,strokeLinecap:Xn,stroke:hn,strokeWidth:dr,fillOpacity:"0",ref:function(Ot){Lr[Fr]=Ot},style:Nr})}))},ae=ee,re=Ge(20135),le=Ge(72071),ue=Ge(47273),pe=0,Te=(0,ue.Z)();function Ce(){var It;return Te?(It=pe,pe+=1):It="TEST_OR_SSR",It}var Fe=function(It){var Dt=rt.useState(),qt=(0,le.Z)(Dt,2),sn=qt[0],xn=qt[1];return rt.useEffect(function(){xn("rc_progress_".concat(Ce()))},[]),It||sn},Ae=function(Dt){var qt=Dt.bg,sn=Dt.children;return rt.createElement("div",{style:{width:"100%",height:"100%",background:qt}},sn)};function je(It,Dt){return Object.keys(It).map(function(qt){var sn=parseFloat(qt),xn="".concat(Math.floor(sn*Dt),"%");return"".concat(It[qt]," ").concat(xn)})}var Ne=rt.forwardRef(function(It,Dt){var qt=It.prefixCls,sn=It.color,xn=It.gradientId,Ln=It.radius,Zn=It.style,Xn=It.ptg,dr=It.strokeLinecap,fr=It.strokeWidth,pr=It.size,Cr=It.gapDegree,Yr=sn&&(0,re.Z)(sn)==="object",ii=Yr?"#FFF":void 0,jr=pr/2,fi=rt.createElement("circle",{className:"".concat(qt,"-circle-path"),r:Ln,cx:jr,cy:jr,stroke:ii,strokeLinecap:dr,strokeWidth:fr,opacity:Xn===0?0:1,style:Zn,ref:Dt});if(!Yr)return fi;var Lr="".concat(xn,"-conic"),ot=Cr?"".concat(180+Cr/2,"deg"):"0deg",oi=je(sn,(360-Cr)/360),yi=je(sn,1),Pi="conic-gradient(from ".concat(ot,", ").concat(oi.join(", "),")"),sr="linear-gradient(to ".concat(Cr?"bottom":"top",", ").concat(yi.join(", "),")");return rt.createElement(rt.Fragment,null,rt.createElement("mask",{id:Lr},fi),rt.createElement("foreignObject",{x:0,y:0,width:pr,height:pr,mask:"url(#".concat(Lr,")")},rt.createElement(Ae,{bg:sr},rt.createElement(Ae,{bg:Pi}))))}),Be=Ne,ze=100,Qe=function(Dt,qt,sn,xn,Ln,Zn,Xn,dr,fr,pr){var Cr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Yr=sn/100*360*((360-Zn)/360),ii=Zn===0?0:{bottom:0,top:180,left:90,right:-90}[Xn],jr=(100-xn)/100*qt;fr==="round"&&xn!==100&&(jr+=pr/2,jr>=qt&&(jr=qt-.01));var fi=ze/2;return{stroke:typeof dr=="string"?dr:void 0,strokeDasharray:"".concat(qt,"px ").concat(Dt),strokeDashoffset:jr+Cr,transform:"rotate(".concat(Ln+Yr+ii,"deg)"),transformOrigin:"".concat(fi,"px ").concat(fi,"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}},$e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ye(It){var Dt=It!=null?It:[];return Array.isArray(Dt)?Dt:[Dt]}var at=function(Dt){var qt=(0,Me.Z)((0,Me.Z)({},xe),Dt),sn=qt.id,xn=qt.prefixCls,Ln=qt.steps,Zn=qt.strokeWidth,Xn=qt.trailWidth,dr=qt.gapDegree,fr=dr===void 0?0:dr,pr=qt.gapPosition,Cr=qt.trailColor,Yr=qt.strokeLinecap,ii=qt.style,jr=qt.className,fi=qt.strokeColor,Lr=qt.percent,ot=(0,ve.Z)(qt,$e),oi=ze/2,yi=Fe(sn),Pi="".concat(yi,"-gradient"),sr=oi-Zn/2,Ar=Math.PI*2*sr,Fr=fr>0?90+fr/2:-90,Si=Ar*((360-fr)/360),Nr=(0,re.Z)(Ln)==="object"?Ln:{count:Ln,space:2},hn=Nr.count,cn=Nr.space,Ot=Ye(Lr),gn=Ye(fi),Nn=gn.find(function($t){return $t&&(0,re.Z)($t)==="object"}),Xt=Nn&&(0,re.Z)(Nn)==="object",zt=Xt?"butt":Yr,Pn=Qe(Ar,Si,0,100,Fr,fr,pr,Cr,zt,Zn),_n=fe(),qn=function(){var jn=0;return Ot.map(function(Wn,or){var nn=gn[or]||gn[gn.length-1],Cn=Qe(Ar,Si,jn,Wn,Fr,fr,pr,nn,zt,Zn);return jn+=Wn,rt.createElement(Be,{key:or,color:nn,ptg:Wn,radius:sr,prefixCls:xn,gradientId:Pi,style:Cn,strokeLinecap:zt,strokeWidth:Zn,gapDegree:fr,ref:function(mn){_n[or]=mn},size:ze})}).reverse()},Yn=function(){var jn=Math.round(hn*(Ot[0]/100)),Wn=100/hn,or=0;return new Array(hn).fill(null).map(function(nn,Cn){var rn=Cn<=jn-1?gn[0]:Cr,mn=rn&&(0,re.Z)(rn)==="object"?"url(#".concat(Pi,")"):void 0,En=Qe(Ar,Si,or,Wn,Fr,fr,pr,rn,"butt",Zn,cn);return or+=(Si-En.strokeDashoffset+cn)*100/Si,rt.createElement("circle",{key:Cn,className:"".concat(xn,"-circle-path"),r:sr,cx:oi,cy:oi,stroke:mn,strokeWidth:Zn,opacity:1,style:En,ref:function(kn){_n[Cn]=kn}})})};return rt.createElement("svg",(0,ye.Z)({className:ce()("".concat(xn,"-circle"),jr),viewBox:"0 0 ".concat(ze," ").concat(ze),style:ii,id:sn,role:"presentation"},ot),!hn&&rt.createElement("circle",{className:"".concat(xn,"-circle-trail"),r:sr,cx:oi,cy:oi,stroke:Cr,strokeLinecap:zt,strokeWidth:Xn||Zn,style:Pn}),hn?Yn():qn())},ut=at,ht={Line:ae,Circle:ut},Ct=Ge(6848),et=Ge(93398);function it(It){return!It||It<0?0:It>100?100:It}function St(It){let{success:Dt,successPercent:qt}=It,sn=qt;return Dt&&"progress"in Dt&&(sn=Dt.progress),Dt&&"percent"in Dt&&(sn=Dt.percent),sn}const bt=It=>{let{percent:Dt,success:qt,successPercent:sn}=It;const xn=it(St({success:qt,successPercent:sn}));return[xn,it(it(Dt)-xn)]},Pt=It=>{let{success:Dt={},strokeColor:qt}=It;const{strokeColor:sn}=Dt;return[sn||et.presetPrimaryColors.green,qt||null]},gt=(It,Dt,qt)=>{var sn,xn,Ln,Zn;let Xn=-1,dr=-1;if(Dt==="step"){const fr=qt.steps,pr=qt.strokeWidth;typeof It=="string"||typeof It=="undefined"?(Xn=It==="small"?2:14,dr=pr!=null?pr:8):typeof It=="number"?[Xn,dr]=[It,It]:[Xn=14,dr=8]=It,Xn*=fr}else if(Dt==="line"){const fr=qt==null?void 0:qt.strokeWidth;typeof It=="string"||typeof It=="undefined"?dr=fr||(It==="small"?6:8):typeof It=="number"?[Xn,dr]=[It,It]:[Xn=-1,dr=8]=It}else(Dt==="circle"||Dt==="dashboard")&&(typeof It=="string"||typeof It=="undefined"?[Xn,dr]=It==="small"?[60,60]:[120,120]:typeof It=="number"?[Xn,dr]=[It,It]:(Xn=(xn=(sn=It[0])!==null&&sn!==void 0?sn:It[1])!==null&&xn!==void 0?xn:120,dr=(Zn=(Ln=It[0])!==null&&Ln!==void 0?Ln:It[1])!==null&&Zn!==void 0?Zn:120));return[Xn,dr]},dt=3,mt=It=>dt/It*100;var Et=It=>{const{prefixCls:Dt,trailColor:qt=null,strokeLinecap:sn="round",gapPosition:xn,gapDegree:Ln,width:Zn=120,type:Xn,children:dr,success:fr,size:pr=Zn}=It,[Cr,Yr]=gt(pr,"circle");let{strokeWidth:ii}=It;ii===void 0&&(ii=Math.max(mt(Cr),6));const jr={width:Cr,height:Yr,fontSize:Cr*.15+6},fi=rt.useMemo(()=>{if(Ln||Ln===0)return Ln;if(Xn==="dashboard")return 75},[Ln,Xn]),Lr=xn||Xn==="dashboard"&&"bottom"||void 0,ot=Object.prototype.toString.call(It.strokeColor)==="[object Object]",oi=Pt({success:fr,strokeColor:It.strokeColor}),yi=ce()(`${Dt}-inner`,{[`${Dt}-circle-gradient`]:ot}),Pi=rt.createElement(ut,{percent:bt(It),strokeWidth:ii,trailWidth:ii,strokeColor:oi,strokeLinecap:sn,trailColor:qt,prefixCls:Dt,gapDegree:fi,gapPosition:Lr});return rt.createElement("div",{className:yi,style:jr},Cr<=20?rt.createElement(Ct.Z,{title:dr},rt.createElement("span",null,Pi)):rt.createElement(rt.Fragment,null,Pi,dr))},Ut=function(It,Dt){var qt={};for(var sn in It)Object.prototype.hasOwnProperty.call(It,sn)&&Dt.indexOf(sn)<0&&(qt[sn]=It[sn]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,sn=Object.getOwnPropertySymbols(It);xn<sn.length;xn++)Dt.indexOf(sn[xn])<0&&Object.prototype.propertyIsEnumerable.call(It,sn[xn])&&(qt[sn[xn]]=It[sn[xn]]);return qt};const wt=It=>{let Dt=[];return Object.keys(It).forEach(qt=>{const sn=parseFloat(qt.replace(/%/g,""));isNaN(sn)||Dt.push({key:sn,value:It[qt]})}),Dt=Dt.sort((qt,sn)=>qt.key-sn.key),Dt.map(qt=>{let{key:sn,value:xn}=qt;return`${xn} ${sn}%`}).join(", ")},pt=(It,Dt)=>{const{from:qt=et.presetPrimaryColors.blue,to:sn=et.presetPrimaryColors.blue,direction:xn=Dt==="rtl"?"to left":"to right"}=It,Ln=Ut(It,["from","to","direction"]);if(Object.keys(Ln).length!==0){const Zn=wt(Ln);return{backgroundImage:`linear-gradient(${xn}, ${Zn})`}}return{backgroundImage:`linear-gradient(${xn}, ${qt}, ${sn})`}};var Ze=It=>{const{prefixCls:Dt,direction:qt,percent:sn,size:xn,strokeWidth:Ln,strokeColor:Zn,strokeLinecap:Xn="round",children:dr,trailColor:fr=null,success:pr}=It,Cr=Zn&&typeof Zn!="string"?pt(Zn,qt):{backgroundColor:Zn},Yr=Xn==="square"||Xn==="butt"?0:void 0,ii={backgroundColor:fr||void 0,borderRadius:Yr},jr=xn!=null?xn:[-1,Ln||(xn==="small"?6:8)],[fi,Lr]=gt(jr,"line",{strokeWidth:Ln}),ot=Object.assign({width:`${it(sn)}%`,height:Lr,borderRadius:Yr},Cr),oi=St(It),yi={width:`${it(oi)}%`,height:Lr,borderRadius:Yr,backgroundColor:pr==null?void 0:pr.strokeColor},Pi={width:fi<0?"100%":fi,height:Lr};return rt.createElement(rt.Fragment,null,rt.createElement("div",{className:`${Dt}-outer`,style:Pi},rt.createElement("div",{className:`${Dt}-inner`,style:ii},rt.createElement("div",{className:`${Dt}-bg`,style:ot}),oi!==void 0?rt.createElement("div",{className:`${Dt}-success-bg`,style:yi}):null)),dr)},be=It=>{const{size:Dt,steps:qt,percent:sn=0,strokeWidth:xn=8,strokeColor:Ln,trailColor:Zn=null,prefixCls:Xn,children:dr}=It,fr=Math.round(qt*(sn/100)),pr=Dt==="small"?2:14,Cr=Dt!=null?Dt:[pr,xn],[Yr,ii]=gt(Cr,"step",{steps:qt,strokeWidth:xn}),jr=Yr/qt,fi=new Array(qt);for(let Lr=0;Lr<qt;Lr++){const ot=Array.isArray(Ln)?Ln[Lr]:Ln;fi[Lr]=rt.createElement("div",{key:Lr,className:ce()(`${Xn}-steps-item`,{[`${Xn}-steps-item-active`]:Lr<=fr-1}),style:{backgroundColor:Lr<=fr-1?ot:Zn,width:jr,height:ii}})}return rt.createElement("div",{className:`${Xn}-steps-outer`},fi,dr)},Ke=Ge(93083),Xe=Ge(17313),Oe=Ge(83116),Ue=Ge(37613);const He=It=>{const Dt=It?"100%":"-100%";return new Ke.Keyframes(`antProgress${It?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Dt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Dt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ve=It=>{const{componentCls:Dt,iconCls:qt}=It;return{[Dt]:Object.assign(Object.assign({},(0,Xe.Wf)(It)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:It.fontSize,marginInlineEnd:It.marginXS,marginBottom:It.marginXS},[`${Dt}-outer`]:{display:"inline-block",width:"100%"},[`&${Dt}-show-info`]:{[`${Dt}-outer`]:{marginInlineEnd:`calc(-2em - ${It.marginXS}px)`,paddingInlineEnd:`calc(2em + ${It.paddingXS}px)`}},[`${Dt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:It.remainingColor,borderRadius:It.lineBorderRadius},[`${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:It.defaultColor}},[`${Dt}-success-bg, ${Dt}-bg`]:{position:"relative",backgroundColor:It.defaultColor,borderRadius:It.lineBorderRadius,transition:`all ${It.motionDurationSlow} ${It.motionEaseInOutCirc}`},[`${Dt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:It.colorSuccess},[`${Dt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:It.marginXS,color:It.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[qt]:{fontSize:It.fontSize}},[`&${Dt}-status-active`]:{[`${Dt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:It.colorBgContainer,borderRadius:It.lineBorderRadius,opacity:0,animationName:He(),animationDuration:It.progressActiveMotionDuration,animationTimingFunction:It.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Dt}-rtl${Dt}-status-active`]:{[`${Dt}-bg::before`]:{animationName:He(!0)}},[`&${Dt}-status-exception`]:{[`${Dt}-bg`]:{backgroundColor:It.colorError},[`${Dt}-text`]:{color:It.colorError}},[`&${Dt}-status-exception ${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:It.colorError}},[`&${Dt}-status-success`]:{[`${Dt}-bg`]:{backgroundColor:It.colorSuccess},[`${Dt}-text`]:{color:It.colorSuccess}},[`&${Dt}-status-success ${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:It.colorSuccess}}})}},Je=It=>{const{componentCls:Dt,iconCls:qt}=It;return{[Dt]:{[`${Dt}-circle-trail`]:{stroke:It.remainingColor},[`&${Dt}-circle ${Dt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Dt}-circle ${Dt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:It.circleTextColor,fontSize:It.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[qt]:{fontSize:`${It.fontSize/It.fontSizeSM}em`}},[`${Dt}-circle&-status-exception`]:{[`${Dt}-text`]:{color:It.colorError}},[`${Dt}-circle&-status-success`]:{[`${Dt}-text`]:{color:It.colorSuccess}}},[`${Dt}-inline-circle`]:{lineHeight:1,[`${Dt}-inner`]:{verticalAlign:"bottom"}}}},ct=It=>{const{componentCls:Dt}=It;return{[Dt]:{[`${Dt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:It.progressStepMinWidth,marginInlineEnd:It.progressStepMarginInlineEnd,backgroundColor:It.remainingColor,transition:`all ${It.motionDurationSlow}`,"&-active":{backgroundColor:It.defaultColor}}}}}},yt=It=>{const{componentCls:Dt,iconCls:qt}=It;return{[Dt]:{[`${Dt}-small&-line, ${Dt}-small&-line ${Dt}-text ${qt}`]:{fontSize:It.fontSizeSM}}}};var ft=(0,Oe.Z)("Progress",It=>{const Dt=It.marginXXS/2,qt=(0,Ue.TS)(It,{progressStepMarginInlineEnd:Dt,progressStepMinWidth:Dt,progressActiveMotionDuration:"2.4s"});return[Ve(qt),Je(qt),ct(qt),yt(qt)]},It=>({circleTextColor:It.colorText,defaultColor:It.colorInfo,remainingColor:It.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Mt=function(It,Dt){var qt={};for(var sn in It)Object.prototype.hasOwnProperty.call(It,sn)&&Dt.indexOf(sn)<0&&(qt[sn]=It[sn]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,sn=Object.getOwnPropertySymbols(It);xn<sn.length;xn++)Dt.indexOf(sn[xn])<0&&Object.prototype.propertyIsEnumerable.call(It,sn[xn])&&(qt[sn[xn]]=It[sn[xn]]);return qt};const Jt=null,Vt=["normal","exception","active","success"];var Ht=rt.forwardRef((It,Dt)=>{const{prefixCls:qt,className:sn,rootClassName:xn,steps:Ln,strokeColor:Zn,percent:Xn=0,size:dr="default",showInfo:fr=!0,type:pr="line",status:Cr,format:Yr,style:ii}=It,jr=Mt(It,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),fi=rt.useMemo(()=>{var Ot,gn;const Nn=St(It);return parseInt(Nn!==void 0?(Ot=Nn!=null?Nn:0)===null||Ot===void 0?void 0:Ot.toString():(gn=Xn!=null?Xn:0)===null||gn===void 0?void 0:gn.toString(),10)},[Xn,It.success,It.successPercent]),Lr=rt.useMemo(()=>!Vt.includes(Cr)&&fi>=100?"success":Cr||"normal",[Cr,fi]),{getPrefixCls:ot,direction:oi,progress:yi}=rt.useContext(Ee.E_),Pi=ot("progress",qt),[sr,Ar]=ft(Pi),Fr=rt.useMemo(()=>{if(!fr)return null;const Ot=St(It);let gn;const Nn=Yr||(zt=>`${zt}%`),Xt=pr==="line";return Yr||Lr!=="exception"&&Lr!=="success"?gn=Nn(it(Xn),it(Ot)):Lr==="exception"?gn=Xt?rt.createElement(_e.Z,null):rt.createElement(Ie.Z,null):Lr==="success"&&(gn=Xt?rt.createElement(vt.Z,null):rt.createElement(ie.Z,null)),rt.createElement("span",{className:`${Pi}-text`,title:typeof gn=="string"?gn:void 0},gn)},[fr,Xn,fi,Lr,pr,Pi,Yr]),Si=Array.isArray(Zn)?Zn[0]:Zn,Nr=typeof Zn=="string"||Array.isArray(Zn)?Zn:void 0;let hn;pr==="line"?hn=Ln?rt.createElement(be,Object.assign({},It,{strokeColor:Nr,prefixCls:Pi,steps:Ln}),Fr):rt.createElement(Ze,Object.assign({},It,{strokeColor:Si,prefixCls:Pi,direction:oi}),Fr):(pr==="circle"||pr==="dashboard")&&(hn=rt.createElement(Et,Object.assign({},It,{strokeColor:Si,prefixCls:Pi,progressStatus:Lr}),Fr));const cn=ce()(Pi,`${Pi}-status-${Lr}`,`${Pi}-${pr==="dashboard"&&"circle"||Ln&&"steps"||pr}`,{[`${Pi}-inline-circle`]:pr==="circle"&>(dr,"circle")[0]<=20,[`${Pi}-show-info`]:fr,[`${Pi}-${dr}`]:typeof dr=="string",[`${Pi}-rtl`]:oi==="rtl"},yi==null?void 0:yi.className,sn,xn,Ar);return sr(rt.createElement("div",Object.assign({ref:Dt,style:Object.assign(Object.assign({},yi==null?void 0:yi.style),ii),className:cn,role:"progressbar","aria-valuenow":fi},(0,Pe.Z)(jr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),hn))}),tn=Ht},57809:function(bn,an,Ge){"use strict";var rt=Ge(92310),vt=Ge.n(rt),ie=Ge(77861),_e=Ge(2738),Ie=Ge(59301),ge=Ge(53487),ce=Ge(62892),Pe=Ge(19080),Ee=Ge(36355),ye=Ge(1684),Me=Ge(93891),ve=Ge(19716),xe=Ge(32441),fe=Ge(33234),z=Ge(14154),ee=Ge(58582),ae=Ge(84443),re=Ge(66339),le=function(Fe,Ae){var je={};for(var Ne in Fe)Object.prototype.hasOwnProperty.call(Fe,Ne)&&Ae.indexOf(Ne)<0&&(je[Ne]=Fe[Ne]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ne=Object.getOwnPropertySymbols(Fe);Be<Ne.length;Be++)Ae.indexOf(Ne[Be])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ne[Be])&&(je[Ne[Be]]=Fe[Ne[Be]]);return je};const ue="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(Fe,Ae)=>{var je,{prefixCls:Ne,bordered:Be=!0,className:ze,rootClassName:Qe,getPopupContainer:$e,popupClassName:Ye,dropdownClassName:at,listHeight:ut=256,placement:ht,listItemHeight:Ct=24,size:et,disabled:it,notFoundContent:St,status:bt,builtinPlacements:Pt,dropdownMatchSelectWidth:gt,popupMatchSelectWidth:dt,direction:mt,style:kt,allowClear:Et}=Fe,Ut=le(Fe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:wt,getPrefixCls:pt,renderEmpty:tt,direction:Ze,virtual:we,popupMatchSelectWidth:be,popupOverflow:Ke,select:Xe}=Ie.useContext(Ee.E_),Oe=pt("select",Ne),Ue=pt(),He=mt!=null?mt:Ze,{compactSize:Ve,compactItemClassnames:Je}=(0,fe.ri)(Oe,He),[ct,yt]=(0,z.Z)(Oe),ft=Ie.useMemo(()=>{const{mode:Lr}=Ut;if(Lr!=="combobox")return Lr===ue?"combobox":Lr},[Ut.mode]),Mt=ft==="multiple"||ft==="tags",Jt=(0,ae.Z)(Ut.suffixIcon,Ut.showArrow),Vt=(je=dt!=null?dt:gt)!==null&&je!==void 0?je:be,{status:Kt,hasFeedback:Ht,isFormItemInput:tn,feedbackIcon:It}=Ie.useContext(xe.aM),Dt=(0,Pe.F)(Kt,bt);let qt;St!==void 0?qt=St:ft==="combobox"?qt=null:qt=(tt==null?void 0:tt("Select"))||Ie.createElement(Me.Z,{componentName:"Select"});const{suffixIcon:sn,itemIcon:xn,removeIcon:Ln,clearIcon:Zn}=(0,re.Z)(Object.assign(Object.assign({},Ut),{multiple:Mt,hasFeedback:Ht,feedbackIcon:It,showSuffixIcon:Jt,prefixCls:Oe,showArrow:Ut.showArrow,componentName:"Select"})),Xn=Et===!0?{clearIcon:Zn}:Et,dr=(0,_e.Z)(Ut,["suffixIcon","itemIcon"]),fr=vt()(Ye||at,{[`${Oe}-dropdown-${He}`]:He==="rtl"},Qe,yt),pr=(0,ve.Z)(Lr=>{var ot;return(ot=et!=null?et:Ve)!==null&&ot!==void 0?ot:Lr}),Cr=Ie.useContext(ye.Z),Yr=it!=null?it:Cr,ii=vt()({[`${Oe}-lg`]:pr==="large",[`${Oe}-sm`]:pr==="small",[`${Oe}-rtl`]:He==="rtl",[`${Oe}-borderless`]:!Be,[`${Oe}-in-form-item`]:tn},(0,Pe.Z)(Oe,Dt,Ht),Je,Xe==null?void 0:Xe.className,ze,Qe,yt),jr=Ie.useMemo(()=>ht!==void 0?ht:He==="rtl"?"bottomRight":"bottomLeft",[ht,He]),fi=(0,ee.Z)(Pt,Ke);return ct(Ie.createElement(ie.ZP,Object.assign({ref:Ae,virtual:we,showSearch:Xe==null?void 0:Xe.showSearch},dr,{style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),kt),dropdownMatchSelectWidth:Vt,builtinPlacements:fi,transitionName:(0,ce.m)(Ue,"slide-up",Ut.transitionName),listHeight:ut,listItemHeight:Ct,mode:ft,prefixCls:Oe,placement:jr,direction:He,suffixIcon:sn,menuItemSelectedIcon:xn,removeIcon:Ln,allowClear:Xn,notFoundContent:qt,className:ii,getPopupContainer:$e||wt,dropdownClassName:fr,disabled:Yr})))},Te=Ie.forwardRef(pe),Ce=(0,ge.Z)(Te);Te.SECRET_COMBOBOX_MODE_DO_NOT_USE=ue,Te.Option=ie.Wx,Te.OptGroup=ie.Xo,Te._InternalPanelDoNotUseOrYouWillBeFired=Ce,an.default=Te},14154:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Te}});var rt=Ge(17313),vt=Ge(74207),ie=Ge(37613),_e=Ge(83116),Ie=Ge(13826),ge=Ge(92899);const ce=Ce=>{const{optionHeight:Fe,optionFontSize:Ae,optionLineHeight:je,optionPadding:Ne}=Ce;return{position:"relative",display:"block",minHeight:Fe,padding:Ne,color:Ce.colorText,fontWeight:"normal",fontSize:Ae,lineHeight:je,boxSizing:"border-box"}};var Ee=Ce=>{const{antCls:Fe,componentCls:Ae}=Ce,je=`${Ae}-item`,Ne=`&${Fe}-slide-up-enter${Fe}-slide-up-enter-active`,Be=`&${Fe}-slide-up-appear${Fe}-slide-up-appear-active`,ze=`&${Fe}-slide-up-leave${Fe}-slide-up-leave-active`,Qe=`${Ae}-dropdown-placement-`;return[{[`${Ae}-dropdown`]:Object.assign(Object.assign({},(0,rt.Wf)(Ce)),{position:"absolute",top:-9999,zIndex:Ce.zIndexPopup,boxSizing:"border-box",padding:Ce.paddingXXS,overflow:"hidden",fontSize:Ce.fontSize,fontVariant:"initial",backgroundColor:Ce.colorBgElevated,borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary,[`
|
|
|
${Ne}${Qe}bottomLeft,
|
|
|
${Be}${Qe}bottomLeft
|
|
|
`]:{animationName:Ie.fJ},[`
|
|
|
${Ne}${Qe}topLeft,
|
|
|
${Be}${Qe}topLeft,
|
|
|
${Ne}${Qe}topRight,
|
|
|
${Be}${Qe}topRight
|
|
|
`]:{animationName:Ie.Qt},[`${ze}${Qe}bottomLeft`]:{animationName:Ie.Uw},[`
|
|
|
${ze}${Qe}topLeft,
|
|
|
${ze}${Qe}topRight
|
|
|
`]:{animationName:Ie.ly},"&-hidden":{display:"none"},[`${je}`]:Object.assign(Object.assign({},ce(Ce)),{cursor:"pointer",transition:`background ${Ce.motionDurationSlow} ease`,borderRadius:Ce.borderRadiusSM,"&-group":{color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},rt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${je}-option-disabled)`]:{backgroundColor:Ce.optionActiveBg},[`&-selected:not(${je}-option-disabled)`]:{color:Ce.optionSelectedColor,fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg,[`${je}-option-state`]:{color:Ce.colorPrimary}},"&-disabled":{[`&${je}-option-selected`]:{backgroundColor:Ce.colorBgContainerDisabled},color:Ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ce.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Ie.oN)(Ce,"slide-up"),(0,Ie.oN)(Ce,"slide-down"),(0,ge.Fm)(Ce,"move-up"),(0,ge.Fm)(Ce,"move-down")]};const ye=2,Me=Ce=>{let{controlHeightSM:Fe,controlHeight:Ae,lineWidth:je}=Ce;const Ne=(Ae-Fe)/2-je,Be=Math.ceil(Ne/2);return[Ne,Be]};function ve(Ce,Fe){const{componentCls:Ae,iconCls:je}=Ce,Ne=`${Ae}-selection-overflow`,Be=Ce.multipleSelectItemHeight,[ze]=Me(Ce),Qe=Fe?`${Ae}-${Fe}`:"";return{[`${Ae}-multiple${Qe}`]:{fontSize:Ce.fontSize,[Ne]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ae}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ze-ye}px ${ye*2}px`,borderRadius:Ce.borderRadius,[`${Ae}-show-search&`]:{cursor:"text"},[`${Ae}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ye}px 0`,lineHeight:`${Be}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Ae}-show-arrow ${Ae}-selector,
|
|
|
&${Ae}-allow-clear ${Ae}-selector
|
|
|
`]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${Ae}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Be,marginTop:ye,marginBottom:ye,lineHeight:`${Be-Ce.lineWidth*2}px`,background:Ce.multipleItemBg,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.multipleItemBorderColor}`,borderRadius:Ce.borderRadiusSM,cursor:"default",transition:`font-size ${Ce.motionDurationSlow}, line-height ${Ce.motionDurationSlow}, height ${Ce.motionDurationSlow}`,userSelect:"none",marginInlineEnd:ye*2,paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS/2,[`${Ae}-disabled&`]:{color:Ce.multipleItemColorDisabled,borderColor:Ce.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ce.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,rt.Ro)()),{display:"inline-flex",alignItems:"center",color:Ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${je}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ce.colorIconHover}})},[`${Ne}-item + ${Ne}-item`]:{[`${Ae}-selection-search`]:{marginInlineStart:0}},[`${Ae}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-ze,"\n &-input,\n &-mirror\n ":{height:Be,fontFamily:Ce.fontFamily,lineHeight:`${Be}px`,transition:`all ${Ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ae}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var fe=Ce=>{const{componentCls:Fe}=Ce,Ae=(0,ie.TS)(Ce,{controlHeight:Ce.controlHeightSM,multipleSelectItemHeight:Ce.controlHeightXS,borderRadius:Ce.borderRadiusSM,borderRadiusSM:Ce.borderRadiusXS}),je=(0,ie.TS)(Ce,{fontSize:Ce.fontSizeLG,controlHeight:Ce.controlHeightLG,multipleSelectItemHeight:Ce.multipleItemHeightLG,borderRadius:Ce.borderRadiusLG,borderRadiusSM:Ce.borderRadius}),[,Ne]=Me(Ce);return[ve(Ce),ve(Ae,"sm"),{[`${Fe}-multiple${Fe}-sm`]:{[`${Fe}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${Fe}-selection-search`]:{marginInlineStart:Ne}}},ve(je,"lg")]};function z(Ce,Fe){const{componentCls:Ae,inputPaddingHorizontalBase:je,borderRadius:Ne}=Ce,Be=Ce.controlHeight-Ce.lineWidth*2,ze=Math.ceil(Ce.fontSize*1.25),Qe=Fe?`${Ae}-${Fe}`:"";return{[`${Ae}-single${Qe}`]:{fontSize:Ce.fontSize,[`${Ae}-selector`]:Object.assign(Object.assign({},(0,rt.Wf)(Ce)),{display:"flex",borderRadius:Ne,[`${Ae}-selection-search`]:{position:"absolute",top:0,insetInlineStart:je,insetInlineEnd:je,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Ae}-selection-item,
|
|
|
${Ae}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Be}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Be}px`}},[`${Ae}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ae}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ae}-selection-item:after`,`${Ae}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ae}-show-arrow ${Ae}-selection-item,
|
|
|
&${Ae}-show-arrow ${Ae}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ze},[`&${Ae}-open ${Ae}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${Ae}-customize-input)`]:{[`${Ae}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${je}px`,[`${Ae}-selection-search-input`]:{height:Be},"&:after":{lineHeight:`${Be}px`}}},[`&${Ae}-customize-input`]:{[`${Ae}-selector`]:{"&:after":{display:"none"},[`${Ae}-selection-search`]:{position:"static",width:"100%"},[`${Ae}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${je}px`,"&:after":{display:"none"}}}}}}}function ee(Ce){const{componentCls:Fe}=Ce,Ae=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[z(Ce),z((0,ie.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${Fe}-single${Fe}-sm`]:{[`&:not(${Fe}-customize-input)`]:{[`${Fe}-selection-search`]:{insetInlineStart:Ae,insetInlineEnd:Ae},[`${Fe}-selector`]:{padding:`0 ${Ae}px`},[`&${Fe}-show-arrow ${Fe}-selection-search`]:{insetInlineEnd:Ae+Ce.fontSize*1.5},[`
|
|
|
&${Fe}-show-arrow ${Fe}-selection-item,
|
|
|
&${Fe}-show-arrow ${Fe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ce.fontSize*1.5}}}},z((0,ie.TS)(Ce,{controlHeight:Ce.singleItemHeightLG,fontSize:Ce.fontSizeLG,borderRadius:Ce.borderRadiusLG}),"lg")]}const ae=Ce=>{const{componentCls:Fe,selectorBg:Ae}=Ce;return{position:"relative",backgroundColor:Ae,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${Fe}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Fe}-disabled&`]:{color:Ce.colorTextDisabled,background:Ce.colorBgContainerDisabled,cursor:"not-allowed",[`${Fe}-multiple&`]:{background:Ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},re=function(Ce,Fe){let Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:je,borderHoverColor:Ne,outlineColor:Be,antCls:ze}=Fe,Qe=Ae?{[`${je}-selector`]:{borderColor:Ne}}:{};return{[Ce]:{[`&:not(${je}-disabled):not(${je}-customize-input):not(${ze}-pagination-size-changer)`]:Object.assign(Object.assign({},Qe),{[`${je}-focused& ${je}-selector`]:{borderColor:Ne,boxShadow:`0 0 0 ${Fe.controlOutlineWidth}px ${Be}`,outline:0},[`&:hover ${je}-selector`]:{borderColor:Ne}})}}},le=Ce=>{const{componentCls:Fe}=Ce;return{[`${Fe}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ue=Ce=>{const{componentCls:Fe,inputPaddingHorizontalBase:Ae,iconCls:je}=Ce;return{[Fe]:Object.assign(Object.assign({},(0,rt.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Fe}-customize-input) ${Fe}-selector`]:Object.assign(Object.assign({},ae(Ce)),le(Ce)),[`${Fe}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},rt.vS),[`${Fe}-selection-placeholder`]:Object.assign(Object.assign({},rt.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${Fe}-arrow`]:Object.assign(Object.assign({},(0,rt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[je]:{verticalAlign:"top",transition:`transform ${Ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Fe}-suffix)`]:{pointerEvents:"auto"}},[`${Fe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Fe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,zIndex:1,display:"inline-block",width:Ce.fontSizeIcon,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ce.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ce.motionDurationMid} ease, opacity ${Ce.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ce.colorTextTertiary}},"&:hover":{[`${Fe}-clear`]:{opacity:1}}}),[`${Fe}-has-feedback`]:{[`${Fe}-clear`]:{insetInlineEnd:Ae+Ce.fontSize+Ce.paddingXS}}}},pe=Ce=>{const{componentCls:Fe}=Ce;return[{[Fe]:{[`&-borderless ${Fe}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Fe}-in-form-item`]:{width:"100%"}}},ue(Ce),ee(Ce),fe(Ce),Ee(Ce),{[`${Fe}-rtl`]:{direction:"rtl"}},re(Fe,(0,ie.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),re(`${Fe}-status-error`,(0,ie.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),re(`${Fe}-status-warning`,(0,ie.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,vt.c)(Ce,{borderElCls:`${Fe}-selector`,focusElCls:`${Fe}-focused`})]};var Te=(0,_e.Z)("Select",(Ce,Fe)=>{let{rootPrefixCls:Ae}=Fe;const je=(0,ie.TS)(Ce,{rootPrefixCls:Ae,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[pe(je)]},Ce=>{const{fontSize:Fe,lineHeight:Ae,controlHeight:je,controlPaddingHorizontal:Ne,zIndexPopupBase:Be,colorText:ze,fontWeightStrong:Qe,controlItemBgActive:$e,controlItemBgHover:Ye,colorBgContainer:at,colorFillSecondary:ut,controlHeightLG:ht,controlHeightSM:Ct,colorBgContainerDisabled:et,colorTextDisabled:it}=Ce;return{zIndexPopup:Be+50,optionSelectedColor:ze,optionSelectedFontWeight:Qe,optionSelectedBg:$e,optionActiveBg:Ye,optionPadding:`${(je-Fe*Ae)/2}px ${Ne}px`,optionFontSize:Fe,optionLineHeight:Ae,optionHeight:je,selectorBg:at,clearBg:at,singleItemHeightLG:ht,multipleItemBg:ut,multipleItemBorderColor:"transparent",multipleItemHeight:Ct,multipleItemHeightLG:je,multipleSelectorBgDisabled:et,multipleItemColorDisabled:it,multipleItemBorderColorDisabled:"transparent"}})},58582:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return vt}});const rt=ie=>{const Ie={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ie==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Ie),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ie),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ie),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ie),{points:["br","tr"],offset:[0,-4]})}};function vt(ie,_e){return ie||rt(_e)}},84443:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return rt}});function rt(vt,ie){return ie!==void 0?ie:vt!==null}},66339:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(40001),vt=Ge(19248),ie=Ge(99267),_e=Ge(84105),Ie=Ge(58617),ge=Ge(47472),ce=Ge(59301);function Pe(Ee){let{suffixIcon:ye,clearIcon:Me,menuItemSelectedIcon:ve,removeIcon:xe,loading:fe,multiple:z,hasFeedback:ee,prefixCls:ae,showSuffixIcon:re,feedbackIcon:le,showArrow:ue,componentName:pe}=Ee;const Te=Me!=null?Me:ce.createElement(vt.Z,null),Ce=Ne=>ye===null&&!ee&&!ue?null:ce.createElement(ce.Fragment,null,re!==!1&&Ne,ee&&le);let Fe=null;if(ye!==void 0)Fe=Ce(ye);else if(fe)Fe=Ce(ce.createElement(Ie.Z,{spin:!0}));else{const Ne=`${ae}-suffix`;Fe=Be=>{let{open:ze,showSearch:Qe}=Be;return Ce(ze&&Qe?ce.createElement(ge.Z,{className:Ne}):ce.createElement(_e.Z,{className:Ne}))}}let Ae=null;ve!==void 0?Ae=ve:z?Ae=ce.createElement(rt.Z,null):Ae=null;let je=null;return xe!==void 0?je=xe:je=ce.createElement(ie.Z,null),{clearIcon:Te,suffixIcon:Fe,itemIcon:Ae,removeIcon:je}}},81327:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ae}});var rt=Ge(59301),vt=Ge(92310),ie=Ge.n(vt),_e=Ge(11592),Ie=Ge(36355),ge=Ge(33234);const ce=rt.createContext({latestIndex:0}),Pe=ce.Provider;var ye=re=>{let{className:le,index:ue,children:pe,split:Te,style:Ce}=re;const{latestIndex:Fe}=rt.useContext(ce);return pe==null?null:rt.createElement(rt.Fragment,null,rt.createElement("div",{className:le,style:Ce},pe),ue<Fe&&Te&&rt.createElement("span",{className:`${le}-split`},Te))},Me=Ge(2856);function ve(re){return["small","middle","large"].includes(re)}function xe(re){return re?typeof re=="number"&&!Number.isNaN(re):!1}var fe=function(re,le){var ue={};for(var pe in re)Object.prototype.hasOwnProperty.call(re,pe)&&le.indexOf(pe)<0&&(ue[pe]=re[pe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,pe=Object.getOwnPropertySymbols(re);Te<pe.length;Te++)le.indexOf(pe[Te])<0&&Object.prototype.propertyIsEnumerable.call(re,pe[Te])&&(ue[pe[Te]]=re[pe[Te]]);return ue};const ee=rt.forwardRef((re,le)=>{var ue,pe;const{getPrefixCls:Te,space:Ce,direction:Fe}=rt.useContext(Ie.E_),{size:Ae=(Ce==null?void 0:Ce.size)||"small",align:je,className:Ne,rootClassName:Be,children:ze,direction:Qe="horizontal",prefixCls:$e,split:Ye,style:at,wrap:ut=!1,classNames:ht,styles:Ct}=re,et=fe(re,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[it,St]=Array.isArray(Ae)?Ae:[Ae,Ae],bt=ve(St),Pt=ve(it),gt=xe(St),dt=xe(it),mt=(0,_e.Z)(ze,{keepEmpty:!0}),kt=je===void 0&&Qe==="horizontal"?"center":je,Et=Te("space",$e),[Ut,wt]=(0,Me.Z)(Et),pt=ie()(Et,Ce==null?void 0:Ce.className,wt,`${Et}-${Qe}`,{[`${Et}-rtl`]:Fe==="rtl",[`${Et}-align-${kt}`]:kt,[`${Et}-gap-row-${St}`]:bt,[`${Et}-gap-col-${it}`]:Pt},Ne,Be),tt=ie()(`${Et}-item`,(ue=ht==null?void 0:ht.item)!==null&&ue!==void 0?ue:(pe=Ce==null?void 0:Ce.classNames)===null||pe===void 0?void 0:pe.item);let Ze=0;const we=mt.map((Xe,Oe)=>{var Ue,He;Xe!=null&&(Ze=Oe);const Ve=Xe&&Xe.key||`${tt}-${Oe}`;return rt.createElement(ye,{className:tt,key:Ve,index:Oe,split:Ye,style:(Ue=Ct==null?void 0:Ct.item)!==null&&Ue!==void 0?Ue:(He=Ce==null?void 0:Ce.styles)===null||He===void 0?void 0:He.item},Xe)}),be=rt.useMemo(()=>({latestIndex:Ze}),[Ze]);if(mt.length===0)return null;const Ke={};return ut&&(Ke.flexWrap="wrap"),!Pt&&dt&&(Ke.columnGap=it),!bt&>&&(Ke.rowGap=St),Ut(rt.createElement("div",Object.assign({ref:le,className:pt,style:Object.assign(Object.assign(Object.assign({},Ke),Ce==null?void 0:Ce.style),at)},et),rt.createElement(Pe,{value:be},we)))});ee.Compact=ge.ZP;var ae=ee},15969:function(bn,an,Ge){"use strict";Ge.d(an,{N:function(){return rt}});const rt=vt=>({color:vt.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${vt.motionDurationSlow}`,"&:focus, &:hover":{color:vt.colorLinkHover},"&:active":{color:vt.colorLinkActive}})},78673:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Qe}});var rt=Ge(58617),vt=Ge(92310),ie=Ge.n(vt),_e=Ge(96663),Ie=Ge(90493),ge=Ge(72071),ce=Ge(6620),Pe=Ge(59301),Ee=Ge(18929),ye=Ge(10228),Me=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ve=Pe.forwardRef(function($e,Ye){var at,ut=$e.prefixCls,ht=ut===void 0?"rc-switch":ut,Ct=$e.className,et=$e.checked,it=$e.defaultChecked,St=$e.disabled,bt=$e.loadingIcon,Pt=$e.checkedChildren,gt=$e.unCheckedChildren,dt=$e.onClick,mt=$e.onChange,kt=$e.onKeyDown,Et=(0,ce.Z)($e,Me),Ut=(0,Ee.Z)(!1,{value:et,defaultValue:it}),wt=(0,ge.Z)(Ut,2),pt=wt[0],tt=wt[1];function Ze(Xe,Oe){var Ue=pt;return St||(Ue=Xe,tt(Ue),mt==null||mt(Ue,Oe)),Ue}function we(Xe){Xe.which===ye.Z.LEFT?Ze(!1,Xe):Xe.which===ye.Z.RIGHT&&Ze(!0,Xe),kt==null||kt(Xe)}function be(Xe){var Oe=Ze(!pt,Xe);dt==null||dt(Oe,Xe)}var Ke=ie()(ht,Ct,(at={},(0,Ie.Z)(at,"".concat(ht,"-checked"),pt),(0,Ie.Z)(at,"".concat(ht,"-disabled"),St),at));return Pe.createElement("button",(0,_e.Z)({},Et,{type:"button",role:"switch","aria-checked":pt,disabled:St,className:Ke,ref:Ye,onKeyDown:we,onClick:be}),bt,Pe.createElement("span",{className:"".concat(ht,"-inner")},Pe.createElement("span",{className:"".concat(ht,"-inner-checked")},Pt),Pe.createElement("span",{className:"".concat(ht,"-inner-unchecked")},gt)))});ve.displayName="Switch";var xe=ve,fe=Ge(14088),z=Ge(36355),ee=Ge(1684),ae=Ge(19716),re=Ge(64993),le=Ge(17313),ue=Ge(83116),pe=Ge(37613);const Te=$e=>{const{componentCls:Ye,trackHeightSM:at,trackPadding:ut,trackMinWidthSM:ht,innerMinMarginSM:Ct,innerMaxMarginSM:et,handleSizeSM:it}=$e,St=`${Ye}-inner`;return{[Ye]:{[`&${Ye}-small`]:{minWidth:ht,height:at,lineHeight:`${at}px`,[`${Ye}-inner`]:{paddingInlineStart:et,paddingInlineEnd:Ct,[`${St}-checked`]:{marginInlineStart:`calc(-100% + ${it+ut*2}px - ${et*2}px)`,marginInlineEnd:`calc(100% - ${it+ut*2}px + ${et*2}px)`},[`${St}-unchecked`]:{marginTop:-at,marginInlineStart:0,marginInlineEnd:0}},[`${Ye}-handle`]:{width:it,height:it},[`${Ye}-loading-icon`]:{top:(it-$e.switchLoadingIconSize)/2,fontSize:$e.switchLoadingIconSize},[`&${Ye}-checked`]:{[`${Ye}-inner`]:{paddingInlineStart:Ct,paddingInlineEnd:et,[`${St}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${St}-unchecked`]:{marginInlineStart:`calc(100% - ${it+ut*2}px + ${et*2}px)`,marginInlineEnd:`calc(-100% + ${it+ut*2}px - ${et*2}px)`}},[`${Ye}-handle`]:{insetInlineStart:`calc(100% - ${it+ut}px)`}},[`&:not(${Ye}-disabled):active`]:{[`&:not(${Ye}-checked) ${St}`]:{[`${St}-unchecked`]:{marginInlineStart:$e.marginXXS/2,marginInlineEnd:-$e.marginXXS/2}},[`&${Ye}-checked ${St}`]:{[`${St}-checked`]:{marginInlineStart:-$e.marginXXS/2,marginInlineEnd:$e.marginXXS/2}}}}}}},Ce=$e=>{const{componentCls:Ye,handleSize:at}=$e;return{[Ye]:{[`${Ye}-loading-icon${$e.iconCls}`]:{position:"relative",top:(at-$e.fontSize)/2,color:$e.switchLoadingIconColor,verticalAlign:"top"},[`&${Ye}-checked ${Ye}-loading-icon`]:{color:$e.switchColor}}}},Fe=$e=>{const{componentCls:Ye,motion:at,trackPadding:ut,handleBg:ht,handleShadow:Ct,handleSize:et}=$e,it=`${Ye}-handle`;return{[Ye]:{[it]:{position:"absolute",top:ut,insetInlineStart:ut,width:et,height:et,transition:`all ${$e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ht,borderRadius:et/2,boxShadow:Ct,transition:`all ${$e.switchDuration} ease-in-out`,content:'""'}},[`&${Ye}-checked ${it}`]:{insetInlineStart:`calc(100% - ${et+ut}px)`},[`&:not(${Ye}-disabled):active`]:at?{[`${it}::before`]:{insetInlineEnd:$e.switchHandleActiveInset,insetInlineStart:0},[`&${Ye}-checked ${it}::before`]:{insetInlineEnd:0,insetInlineStart:$e.switchHandleActiveInset}}:{}}}},Ae=$e=>{const{componentCls:Ye,trackHeight:at,trackPadding:ut,innerMinMargin:ht,innerMaxMargin:Ct,handleSize:et}=$e,it=`${Ye}-inner`;return{[Ye]:{[it]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ct,paddingInlineEnd:ht,transition:`padding-inline-start ${$e.switchDuration} ease-in-out, padding-inline-end ${$e.switchDuration} ease-in-out`,[`${it}-checked, ${it}-unchecked`]:{display:"block",color:$e.colorTextLightSolid,fontSize:$e.fontSizeSM,transition:`margin-inline-start ${$e.switchDuration} ease-in-out, margin-inline-end ${$e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${it}-checked`]:{marginInlineStart:`calc(-100% + ${et+ut*2}px - ${Ct*2}px)`,marginInlineEnd:`calc(100% - ${et+ut*2}px + ${Ct*2}px)`},[`${it}-unchecked`]:{marginTop:-at,marginInlineStart:0,marginInlineEnd:0}},[`&${Ye}-checked ${it}`]:{paddingInlineStart:ht,paddingInlineEnd:Ct,[`${it}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${it}-unchecked`]:{marginInlineStart:`calc(100% - ${et+ut*2}px + ${Ct*2}px)`,marginInlineEnd:`calc(-100% + ${et+ut*2}px - ${Ct*2}px)`}},[`&:not(${Ye}-disabled):active`]:{[`&:not(${Ye}-checked) ${it}`]:{[`${it}-unchecked`]:{marginInlineStart:ut*2,marginInlineEnd:-ut*2}},[`&${Ye}-checked ${it}`]:{[`${it}-checked`]:{marginInlineStart:-ut*2,marginInlineEnd:ut*2}}}}}},je=$e=>{const{componentCls:Ye,trackHeight:at,trackMinWidth:ut}=$e;return{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)($e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ut,height:at,lineHeight:`${at}px`,verticalAlign:"middle",background:$e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${$e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ye}-disabled)`]:{background:$e.colorTextTertiary}}),(0,le.Qy)($e)),{[`&${Ye}-checked`]:{background:$e.switchColor,[`&:hover:not(${Ye}-disabled)`]:{background:$e.colorPrimaryHover}},[`&${Ye}-loading, &${Ye}-disabled`]:{cursor:"not-allowed",opacity:$e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ye}-rtl`]:{direction:"rtl"}})}};var Ne=(0,ue.Z)("Switch",$e=>{const Ye=(0,pe.TS)($e,{switchDuration:$e.motionDurationMid,switchColor:$e.colorPrimary,switchDisabledOpacity:$e.opacityLoading,switchLoadingIconSize:$e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${$e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[je(Ye),Ae(Ye),Fe(Ye),Ce(Ye),Te(Ye)]},$e=>{const{fontSize:Ye,lineHeight:at,controlHeight:ut,colorWhite:ht}=$e,Ct=Ye*at,et=ut/2,it=2,St=Ct-it*2,bt=et-it*2;return{trackHeight:Ct,trackHeightSM:et,trackMinWidth:St*2+it*4,trackMinWidthSM:bt*2+it*2,trackPadding:it,handleBg:ht,handleSize:St,handleSizeSM:bt,handleShadow:`0 2px 4px 0 ${new re.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:St/2,innerMaxMargin:St+it+it*2,innerMinMarginSM:bt/2,innerMaxMarginSM:bt+it+it*2}}),Be=function($e,Ye){var at={};for(var ut in $e)Object.prototype.hasOwnProperty.call($e,ut)&&Ye.indexOf(ut)<0&&(at[ut]=$e[ut]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ut=Object.getOwnPropertySymbols($e);ht<ut.length;ht++)Ye.indexOf(ut[ht])<0&&Object.prototype.propertyIsEnumerable.call($e,ut[ht])&&(at[ut[ht]]=$e[ut[ht]]);return at};const ze=Pe.forwardRef(($e,Ye)=>{const{prefixCls:at,size:ut,disabled:ht,loading:Ct,className:et,rootClassName:it,style:St}=$e,bt=Be($e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Pt,direction:gt,switch:dt}=Pe.useContext(z.E_),mt=Pe.useContext(ee.Z),kt=(ht!=null?ht:mt)||Ct,Et=Pt("switch",at),Ut=Pe.createElement("div",{className:`${Et}-handle`},Ct&&Pe.createElement(rt.Z,{className:`${Et}-loading-icon`})),[wt,pt]=Ne(Et),tt=(0,ae.Z)(ut),Ze=ie()(dt==null?void 0:dt.className,{[`${Et}-small`]:tt==="small",[`${Et}-loading`]:Ct,[`${Et}-rtl`]:gt==="rtl"},et,it,pt),we=Object.assign(Object.assign({},dt==null?void 0:dt.style),St);return wt(Pe.createElement(fe.Z,{component:"Switch"},Pe.createElement(xe,Object.assign({},bt,{prefixCls:Et,className:Ze,style:we,disabled:kt,ref:Ye,loadingIcon:Ut}))))});ze.__ANT_SWITCH=!0;var Qe=ze},1710:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return Wp}});var rt={},vt="rc-table-internal-hook",ie=Ge(72071),_e=Ge(6089),Ie=Ge(34280),ge=Ge(13697),ce=Ge(59301),Pe=Ge(4676);function Ee(Ft){var Rt=ce.createContext(void 0),en=function(Sn){var fn=Sn.value,Bn=Sn.children,Rn=ce.useRef(fn);Rn.current=fn;var In=ce.useState(function(){return{getValue:function(){return Rn.current},listeners:new Set}}),Qn=(0,ie.Z)(In,1),rr=Qn[0];return(0,Ie.Z)(function(){(0,Pe.unstable_batchedUpdates)(function(){rr.listeners.forEach(function(tr){tr(fn)})})},[fn]),ce.createElement(Rt.Provider,{value:rr},Bn)};return{Context:Rt,Provider:en,defaultValue:Ft}}function ye(Ft,Rt){var en=(0,_e.Z)(typeof Rt=="function"?Rt:function(tr){if(Rt===void 0)return tr;if(!Array.isArray(Rt))return tr[Rt];var kr={};return Rt.forEach(function(Pr){kr[Pr]=tr[Pr]}),kr}),on=ce.useContext(Ft==null?void 0:Ft.Context),Sn=on||{},fn=Sn.listeners,Bn=Sn.getValue,Rn=ce.useRef();Rn.current=en(on?Bn():Ft==null?void 0:Ft.defaultValue);var In=ce.useState({}),Qn=(0,ie.Z)(In,2),rr=Qn[1];return(0,Ie.Z)(function(){if(!on)return;function tr(kr){var Pr=en(kr);(0,ge.Z)(Rn.current,Pr,!0)||rr({})}return fn.add(tr),function(){fn.delete(tr)}},[on]),Rn.current}var Me=Ge(96663),ve=Ge(8654);function xe(){var Ft=ce.createContext(null);function Rt(){return ce.useContext(Ft)}function en(Sn,fn){var Bn=(0,ve.Yr)(Sn),Rn=function(Qn,rr){var tr=Bn?{ref:rr}:{},kr=ce.useRef(0),Pr=ce.useRef(Qn),gr=Rt();return gr!==null?ce.createElement(Sn,(0,Me.Z)({},Qn,tr)):((!fn||fn(Pr.current,Qn))&&(kr.current+=1),Pr.current=Qn,ce.createElement(Ft.Provider,{value:kr.current},ce.createElement(Sn,(0,Me.Z)({},Qn,tr))))};return Bn?ce.forwardRef(Rn):Rn}function on(Sn,fn){var Bn=(0,ve.Yr)(Sn),Rn=function(Qn,rr){var tr=Bn?{ref:rr}:{};return Rt(),ce.createElement(Sn,(0,Me.Z)({},Qn,tr))};return Bn?ce.memo(ce.forwardRef(Rn),fn):ce.memo(Rn,fn)}return{makeImmutable:en,responseImmutable:on,useImmutableMark:Rt}}var fe=xe(),z=fe.makeImmutable,ee=fe.responseImmutable,ae=fe.useImmutableMark,re=xe(),le=re.makeImmutable,ue=re.responseImmutable,pe=re.useImmutableMark,Te=Ee(),Ce=Te;function Fe(Ft,Rt){var en=ce.useRef(0);en.current+=1;var on=ce.useRef(Ft),Sn=[];Object.keys(Ft||{}).map(function(Bn){var Rn;(Ft==null?void 0:Ft[Bn])!==((Rn=on.current)===null||Rn===void 0?void 0:Rn[Bn])&&Sn.push(Bn)}),on.current=Ft;var fn=ce.useRef([]);return Sn.length&&(fn.current=Sn),ce.useDebugValue(en.current),ce.useDebugValue(fn.current.join(", ")),Rt&&console.log("".concat(Rt,":"),en.current,fn.current),en.current}var Ae=null,je=ce.memo(function(){var Ft=Fe();return ce.createElement("h1",null,"Render Times: ",Ft)});je.displayName="RenderBlock";var Ne=Ge(20135),Be=Ge(44127),ze=Ge(90493),Qe=Ge(92310),$e=Ge.n(Qe),Ye=Ge(80547),at=Ge(97938),ut=Ge(48736),ht=ce.createContext({renderWithProps:!1}),Ct=ht,et="RC_TABLE_KEY";function it(Ft){return Ft==null?[]:Array.isArray(Ft)?Ft:[Ft]}function St(Ft){var Rt=[],en={};return Ft.forEach(function(on){for(var Sn=on||{},fn=Sn.key,Bn=Sn.dataIndex,Rn=fn||it(Bn).join("-")||et;en[Rn];)Rn="".concat(Rn,"_next");en[Rn]=!0,Rt.push(Rn)}),Rt}function bt(Ft){return Ft!=null}function Pt(Ft){return Ft&&(0,Ne.Z)(Ft)==="object"&&!Array.isArray(Ft)&&!ce.isValidElement(Ft)}function gt(Ft,Rt,en,on,Sn,fn){var Bn=ce.useContext(Ct),Rn=pe(),In=(0,Ye.Z)(function(){if(bt(on))return[on];var Qn=Rt==null||Rt===""?[]:Array.isArray(Rt)?Rt:[Rt],rr=(0,at.Z)(Ft,Qn),tr=rr,kr=void 0;if(Sn){var Pr=Sn(rr,Ft,en);Pt(Pr)?(tr=Pr.children,kr=Pr.props,Bn.renderWithProps=!0):tr=Pr}return[tr,kr]},[Rn,Ft,on,Rt,Sn,en],function(Qn,rr){if(fn){var tr=(0,ie.Z)(Qn,2),kr=tr[1],Pr=(0,ie.Z)(rr,2),gr=Pr[1];return fn(gr,kr)}return Bn.renderWithProps?!0:!(0,ge.Z)(Qn,rr,!0)});return In}function dt(Ft,Rt,en,on){var Sn=Ft+Rt-1;return Ft<=on&&Sn>=en}function mt(Ft,Rt){return ye(Ce,function(en){var on=dt(Ft,Rt||1,en.hoverStartRow,en.hoverEndRow);return[on,en.onHover]})}var kt=function(Rt){var en=Rt.ellipsis,on=Rt.rowType,Sn=Rt.children,fn,Bn=en===!0?{showTitle:!0}:en;return Bn&&(Bn.showTitle||on==="header")&&(typeof Sn=="string"||typeof Sn=="number"?fn=Sn.toString():ce.isValidElement(Sn)&&typeof Sn.props.children=="string"&&(fn=Sn.props.children)),fn};function Et(Ft){var Rt,en,on,Sn,fn,Bn,Rn,In,Qn=Ft.component,rr=Ft.children,tr=Ft.ellipsis,kr=Ft.scope,Pr=Ft.prefixCls,gr=Ft.className,qr=Ft.align,xr=Ft.record,Xr=Ft.render,Zr=Ft.dataIndex,hi=Ft.renderIndex,Oi=Ft.shouldCellUpdate,Wi=Ft.index,ti=Ft.rowType,ki=Ft.colSpan,ho=Ft.rowSpan,ci=Ft.fixLeft,Ei=Ft.fixRight,ui=Ft.firstFixLeft,$r=Ft.lastFixLeft,xi=Ft.firstFixRight,Fi=Ft.lastFixRight,Yi=Ft.appendNode,eo=Ft.additionalProps,ni=eo===void 0?{}:eo,po=Ft.isSticky,wo="".concat(Pr,"-cell"),Qo=ye(Ce,["supportSticky","allColumnsFixedLeft"]),Ao=Qo.supportSticky,Na=Qo.allColumnsFixedLeft,Ta=gt(xr,Zr,hi,rr,Xr,Oi),vo=(0,ie.Z)(Ta,2),Gi=vo[0],Wo=vo[1],Aa={},Sa=typeof ci=="number"&&Ao,is=typeof Ei=="number"&&Ao;Sa&&(Aa.position="sticky",Aa.left=ci),is&&(Aa.position="sticky",Aa.right=Ei);var to=(Rt=(en=(on=Wo==null?void 0:Wo.colSpan)!==null&&on!==void 0?on:ni.colSpan)!==null&&en!==void 0?en:ki)!==null&&Rt!==void 0?Rt:1,Zi=(Sn=(fn=(Bn=Wo==null?void 0:Wo.rowSpan)!==null&&Bn!==void 0?Bn:ni.rowSpan)!==null&&fn!==void 0?fn:ho)!==null&&Sn!==void 0?Sn:1,no=mt(Wi,Zi),Ni=(0,ie.Z)(no,2),Zo=Ni[0],Ai=Ni[1],fo=function(ts){var ps;xr&&Ai(Wi,Wi+Zi-1),ni==null||(ps=ni.onMouseEnter)===null||ps===void 0||ps.call(ni,ts)},Bo=function(ts){var ps;xr&&Ai(-1,-1),ni==null||(ps=ni.onMouseLeave)===null||ps===void 0||ps.call(ni,ts)};if(to===0||Zi===0)return null;var Ro=(Rn=ni.title)!==null&&Rn!==void 0?Rn:kt({rowType:ti,ellipsis:tr,children:Gi}),bs=$e()(wo,gr,(In={},(0,ze.Z)(In,"".concat(wo,"-fix-left"),Sa&&Ao),(0,ze.Z)(In,"".concat(wo,"-fix-left-first"),ui&&Ao),(0,ze.Z)(In,"".concat(wo,"-fix-left-last"),$r&&Ao),(0,ze.Z)(In,"".concat(wo,"-fix-left-all"),$r&&Na&&Ao),(0,ze.Z)(In,"".concat(wo,"-fix-right"),is&&Ao),(0,ze.Z)(In,"".concat(wo,"-fix-right-first"),xi&&Ao),(0,ze.Z)(In,"".concat(wo,"-fix-right-last"),Fi&&Ao),(0,ze.Z)(In,"".concat(wo,"-ellipsis"),tr),(0,ze.Z)(In,"".concat(wo,"-with-append"),Yi),(0,ze.Z)(In,"".concat(wo,"-fix-sticky"),(Sa||is)&&po&&Ao),(0,ze.Z)(In,"".concat(wo,"-row-hover"),!Wo&&Zo),In),ni.className,Wo==null?void 0:Wo.className),ls={};qr&&(ls.textAlign=qr);var $s=(0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)({},Aa),ni.style),ls),Wo==null?void 0:Wo.style),qo=Gi;return(0,Ne.Z)(qo)==="object"&&!Array.isArray(qo)&&!ce.isValidElement(qo)&&(qo=null),tr&&($r||xi)&&(qo=ce.createElement("span",{className:"".concat(wo,"-content")},qo)),ce.createElement(Qn,(0,Me.Z)({},Wo,ni,{className:bs,style:$s,title:Ro,scope:kr,onMouseEnter:fo,onMouseLeave:Bo,colSpan:to!==1?to:null,rowSpan:Zi!==1?Zi:null}),Yi,qo)}var Ut=ce.memo(Et);function wt(Ft,Rt,en,on,Sn,fn){var Bn=en[Ft]||{},Rn=en[Rt]||{},In,Qn;Bn.fixed==="left"?In=on.left[Sn==="rtl"?Rt:Ft]:Rn.fixed==="right"&&(Qn=on.right[Sn==="rtl"?Ft:Rt]);var rr=!1,tr=!1,kr=!1,Pr=!1,gr=en[Rt+1],qr=en[Ft-1],xr=!(fn!=null&&fn.children);if(Sn==="rtl"){if(In!==void 0){var Xr=qr&&qr.fixed==="left";Pr=!Xr&&xr}else if(Qn!==void 0){var Zr=gr&&gr.fixed==="right";kr=!Zr&&xr}}else if(In!==void 0){var hi=gr&&gr.fixed==="left";rr=!hi&&xr}else if(Qn!==void 0){var Oi=qr&&qr.fixed==="right";tr=!Oi&&xr}return{fixLeft:In,fixRight:Qn,lastFixLeft:rr,firstFixRight:tr,lastFixRight:kr,firstFixLeft:Pr,isSticky:on.isSticky}}var pt=ce.createContext({}),tt=pt;function Ze(Ft){var Rt=Ft.className,en=Ft.index,on=Ft.children,Sn=Ft.colSpan,fn=Sn===void 0?1:Sn,Bn=Ft.rowSpan,Rn=Ft.align,In=ye(Ce,["prefixCls","direction"]),Qn=In.prefixCls,rr=In.direction,tr=ce.useContext(tt),kr=tr.scrollColumnIndex,Pr=tr.stickyOffsets,gr=tr.flattenColumns,qr=tr.columns,xr=en+fn-1,Xr=xr+1===kr?fn+1:fn,Zr=wt(en,en+Xr-1,gr,Pr,rr,qr==null?void 0:qr[en]);return ce.createElement(Ut,(0,Me.Z)({className:Rt,index:en,component:"td",prefixCls:Qn,record:null,dataIndex:null,align:Rn,colSpan:Xr,rowSpan:Bn,render:function(){return on}},Zr))}var we=Ge(6620),be=["children"];function Ke(Ft){var Rt=Ft.children,en=(0,we.Z)(Ft,be);return ce.createElement("tr",en,Rt)}function Xe(Ft){var Rt=Ft.children;return Rt}Xe.Row=Ke,Xe.Cell=Ze;var Oe=Xe;function Ue(Ft){var Rt=Ft.children,en=Ft.stickyOffsets,on=Ft.flattenColumns,Sn=Ft.columns,fn=ye(Ce,"prefixCls"),Bn=on.length-1,Rn=on[Bn],In=ce.useMemo(function(){return{stickyOffsets:en,flattenColumns:on,scrollColumnIndex:Rn!=null&&Rn.scrollbar?Bn:null,columns:Sn}},[Rn,on,Bn,en,Sn]);return ce.createElement(tt.Provider,{value:In},ce.createElement("tfoot",{className:"".concat(fn,"-summary")},Rt))}var He=ue(Ue),Ve=Oe,Je=Ge(70425),ct=Ge(29301),yt=Ge(29194),ft=Ge(24514),Mt=Ge(75152),Jt=Ge(26112);function Vt(Ft,Rt,en,on,Sn,fn,Bn){Ft.push({record:Rt,indent:en,index:Bn});var Rn=fn(Rt),In=Sn==null?void 0:Sn.has(Rn);if(Rt&&Array.isArray(Rt[on])&&In)for(var Qn=0;Qn<Rt[on].length;Qn+=1)Vt(Ft,Rt[on][Qn],en+1,on,Sn,fn,Qn)}function Kt(Ft,Rt,en,on){var Sn=ce.useMemo(function(){if(en!=null&&en.size){for(var fn=[],Bn=0;Bn<(Ft==null?void 0:Ft.length);Bn+=1){var Rn=Ft[Bn];Vt(fn,Rn,0,Rt,en,on,Bn)}return fn}return Ft==null?void 0:Ft.map(function(In,Qn){return{record:In,indent:0,index:Qn}})},[Ft,Rt,en,on]);return Sn}function Ht(Ft){var Rt=Ft.prefixCls,en=Ft.children,on=Ft.component,Sn=Ft.cellComponent,fn=Ft.className,Bn=Ft.expanded,Rn=Ft.colSpan,In=Ft.isEmpty,Qn=ye(Ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),rr=Qn.scrollbarSize,tr=Qn.fixHeader,kr=Qn.fixColumn,Pr=Qn.componentWidth,gr=Qn.horizonScroll,qr=en;return(In?gr&&Pr:kr)&&(qr=ce.createElement("div",{style:{width:Pr-(tr?rr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Rt,"-expanded-row-fixed")},qr)),ce.createElement(on,{className:fn,style:{display:Bn?null:"none"}},ce.createElement(Ut,{component:Sn,prefixCls:Rt,colSpan:Rn},qr))}var tn=Ht;function It(Ft,Rt,en,on){var Sn=ye(Ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),fn=Sn.flattenColumns,Bn=Sn.expandableType,Rn=Sn.expandedKeys,In=Sn.childrenColumnName,Qn=Sn.onTriggerExpand,rr=Sn.rowExpandable,tr=Sn.onRow,kr=Sn.expandRowByClick,Pr=Sn.rowClassName,gr=Bn==="nest",qr=Bn==="row"&&(!rr||rr(Ft)),xr=qr||gr,Xr=Rn&&Rn.has(Rt),Zr=In&&Ft&&Ft[In],hi=(0,Je.useEvent)(Qn),Oi=tr==null?void 0:tr(Ft,en),Wi=Oi==null?void 0:Oi.onClick,ti=function(Ei){kr&&xr&&Qn(Ft,Ei);for(var ui=arguments.length,$r=new Array(ui>1?ui-1:0),xi=1;xi<ui;xi++)$r[xi-1]=arguments[xi];Wi==null||Wi.apply(void 0,[Ei].concat($r))},ki;typeof Pr=="string"?ki=Pr:typeof Pr=="function"&&(ki=Pr(Ft,en,on));var ho=St(fn);return(0,Be.Z)((0,Be.Z)({},Sn),{},{columnsKey:ho,nestExpandable:gr,expanded:Xr,hasNestChildren:Zr,record:Ft,onTriggerExpand:hi,rowSupportExpand:qr,expandable:xr,rowProps:(0,Be.Z)((0,Be.Z)({},Oi),{},{className:$e()(ki,Oi==null?void 0:Oi.className),onClick:ti})})}function Dt(Ft,Rt,en,on,Sn){var fn=Ft.record,Bn=Ft.prefixCls,Rn=Ft.columnsKey,In=Ft.fixedInfoList,Qn=Ft.expandIconColumnIndex,rr=Ft.nestExpandable,tr=Ft.indentSize,kr=Ft.expandIcon,Pr=Ft.expanded,gr=Ft.hasNestChildren,qr=Ft.onTriggerExpand,xr=Rn[en],Xr=In[en],Zr;en===(Qn||0)&&rr&&(Zr=ce.createElement(ce.Fragment,null,ce.createElement("span",{style:{paddingLeft:"".concat(tr*on,"px")},className:"".concat(Bn,"-row-indent indent-level-").concat(on)}),kr({prefixCls:Bn,expanded:Pr,expandable:gr,record:fn,onExpand:qr})));var hi;return Rt.onCell&&(hi=Rt.onCell(fn,Sn)),{key:xr,fixedInfo:Xr,appendCellNode:Zr,additionalCellProps:hi||{}}}function qt(Ft){var Rt=Ft.className,en=Ft.style,on=Ft.record,Sn=Ft.index,fn=Ft.renderIndex,Bn=Ft.rowKey,Rn=Ft.indent,In=Rn===void 0?0:Rn,Qn=Ft.rowComponent,rr=Ft.cellComponent,tr=Ft.scopeCellComponent,kr=It(on,Bn,Sn,In),Pr=kr.prefixCls,gr=kr.flattenColumns,qr=kr.expandedRowClassName,xr=kr.expandedRowRender,Xr=kr.rowProps,Zr=kr.expanded,hi=kr.rowSupportExpand,Oi=ce.useState(!1),Wi=(0,ie.Z)(Oi,2),ti=Wi[0],ki=Wi[1];ce.useEffect(function(){Zr&&ki(!0)},[Zr]);var ho=ce.createElement(Qn,(0,Me.Z)({},Xr,{"data-row-key":Bn,className:$e()(Rt,"".concat(Pr,"-row"),"".concat(Pr,"-row-level-").concat(In),Xr==null?void 0:Xr.className),style:(0,Be.Z)((0,Be.Z)({},en),Xr==null?void 0:Xr.style)}),gr.map(function($r,xi){var Fi=$r.render,Yi=$r.dataIndex,eo=$r.className,ni=Dt(kr,$r,xi,In,Sn),po=ni.key,wo=ni.fixedInfo,Qo=ni.appendCellNode,Ao=ni.additionalCellProps;return ce.createElement(Ut,(0,Me.Z)({className:eo,ellipsis:$r.ellipsis,align:$r.align,scope:$r.rowScope,component:$r.rowScope?tr:rr,prefixCls:Pr,key:po,record:on,index:Sn,renderIndex:fn,dataIndex:Yi,render:Fi,shouldCellUpdate:$r.shouldCellUpdate},wo,{appendNode:Qo,additionalProps:Ao}))})),ci;if(hi&&(ti||Zr)){var Ei=xr(on,Sn,In+1,Zr),ui=qr&&qr(on,Sn,In);ci=ce.createElement(tn,{expanded:Zr,className:$e()("".concat(Pr,"-expanded-row"),"".concat(Pr,"-expanded-row-level-").concat(In+1),ui),prefixCls:Pr,component:Qn,cellComponent:rr,colSpan:gr.length,isEmpty:!1},Ei)}return ce.createElement(ce.Fragment,null,ho,ci)}qt.displayName="BodyRow";var sn=ue(qt);function xn(Ft){var Rt=Ft.columnKey,en=Ft.onColumnResize,on=ce.useRef();return ce.useEffect(function(){on.current&&en(Rt,on.current.offsetWidth)},[]),ce.createElement(ct.Z,{data:Rt},ce.createElement("td",{ref:on,style:{padding:0,border:0,height:0}},ce.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Ln(Ft){var Rt=Ft.prefixCls,en=Ft.columnsKey,on=Ft.onColumnResize;return ce.createElement("tr",{"aria-hidden":"true",className:"".concat(Rt,"-measure-row"),style:{height:0,fontSize:0}},ce.createElement(ct.Z.Collection,{onBatchResize:function(fn){fn.forEach(function(Bn){var Rn=Bn.data,In=Bn.size;on(Rn,In.offsetWidth)})}},en.map(function(Sn){return ce.createElement(xn,{key:Sn,columnKey:Sn,onColumnResize:on})})))}function Zn(Ft){var Rt=Ft.data,en=Ft.measureColumnWidth,on=ye(Ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Sn=on.prefixCls,fn=on.getComponent,Bn=on.onColumnResize,Rn=on.flattenColumns,In=on.getRowKey,Qn=on.expandedKeys,rr=on.childrenColumnName,tr=on.emptyNode,kr=Kt(Rt,rr,Qn,In),Pr=ce.useRef({renderWithProps:!1}),gr=fn(["body","wrapper"],"tbody"),qr=fn(["body","row"],"tr"),xr=fn(["body","cell"],"td"),Xr=fn(["body","cell"],"th"),Zr;Rt.length?Zr=kr.map(function(Oi,Wi){var ti=Oi.record,ki=Oi.indent,ho=Oi.index,ci=In(ti,Wi);return ce.createElement(sn,{key:ci,rowKey:ci,record:ti,index:Wi,renderIndex:ho,rowComponent:qr,cellComponent:xr,scopeCellComponent:Xr,getRowKey:In,indent:ki})}):Zr=ce.createElement(tn,{expanded:!0,className:"".concat(Sn,"-placeholder"),prefixCls:Sn,component:qr,cellComponent:xr,colSpan:Rn.length,isEmpty:!0},tr);var hi=St(Rn);return ce.createElement(Ct.Provider,{value:Pr.current},ce.createElement(gr,{className:"".concat(Sn,"-tbody")},en&&ce.createElement(Ln,{prefixCls:Sn,columnsKey:hi,onColumnResize:Bn}),Zr))}Zn.displayName="Body";var Xn=ue(Zn),dr=["expandable"],fr="RC_TABLE_INTERNAL_COL_DEFINE";function pr(Ft){var Rt=Ft.expandable,en=(0,we.Z)(Ft,dr),on;return"expandable"in Ft?on=(0,Be.Z)((0,Be.Z)({},en),Rt):on=en,on.showExpandColumn===!1&&(on.expandIconColumnIndex=-1),on}var Cr=["columnType"];function Yr(Ft){for(var Rt=Ft.colWidths,en=Ft.columns,on=Ft.columCount,Sn=[],fn=on||en.length,Bn=!1,Rn=fn-1;Rn>=0;Rn-=1){var In=Rt[Rn],Qn=en&&en[Rn],rr=Qn&&Qn[fr];if(In||rr||Bn){var tr=rr||{},kr=tr.columnType,Pr=(0,we.Z)(tr,Cr);Sn.unshift(ce.createElement("col",(0,Me.Z)({key:Rn,style:{width:In}},Pr))),Bn=!0}}return ce.createElement("colgroup",null,Sn)}var ii=Yr,jr=Ge(19127),fi=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Lr(Ft,Rt){return(0,ce.useMemo)(function(){for(var en=[],on=0;on<Rt;on+=1){var Sn=Ft[on];if(Sn!==void 0)en[on]=Sn;else return null}return en},[Ft.join("_"),Rt])}var ot=ce.forwardRef(function(Ft,Rt){var en=Ft.className,on=Ft.noData,Sn=Ft.columns,fn=Ft.flattenColumns,Bn=Ft.colWidths,Rn=Ft.columCount,In=Ft.stickyOffsets,Qn=Ft.direction,rr=Ft.fixHeader,tr=Ft.stickyTopOffset,kr=Ft.stickyBottomOffset,Pr=Ft.stickyClassName,gr=Ft.onScroll,qr=Ft.maxContentScroll,xr=Ft.children,Xr=(0,we.Z)(Ft,fi),Zr=ye(Ce,["prefixCls","scrollbarSize","isSticky"]),hi=Zr.prefixCls,Oi=Zr.scrollbarSize,Wi=Zr.isSticky,ti=Wi&&!rr?0:Oi,ki=ce.useRef(null),ho=ce.useCallback(function(eo){(0,ve.mH)(Rt,eo),(0,ve.mH)(ki,eo)},[]);ce.useEffect(function(){var eo;function ni(po){var wo=po,Qo=wo.currentTarget,Ao=wo.deltaX;Ao&&(gr({currentTarget:Qo,scrollLeft:Qo.scrollLeft+Ao}),po.preventDefault())}return(eo=ki.current)===null||eo===void 0||eo.addEventListener("wheel",ni),function(){var po;(po=ki.current)===null||po===void 0||po.removeEventListener("wheel",ni)}},[]);var ci=ce.useMemo(function(){return fn.every(function(eo){return eo.width})},[fn]),Ei=fn[fn.length-1],ui={fixed:Ei?Ei.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(hi,"-cell-scrollbar")}}},$r=(0,ce.useMemo)(function(){return ti?[].concat((0,jr.Z)(Sn),[ui]):Sn},[ti,Sn]),xi=(0,ce.useMemo)(function(){return ti?[].concat((0,jr.Z)(fn),[ui]):fn},[ti,fn]),Fi=(0,ce.useMemo)(function(){var eo=In.right,ni=In.left;return(0,Be.Z)((0,Be.Z)({},In),{},{left:Qn==="rtl"?[].concat((0,jr.Z)(ni.map(function(po){return po+ti})),[0]):ni,right:Qn==="rtl"?eo:[].concat((0,jr.Z)(eo.map(function(po){return po+ti})),[0]),isSticky:Wi})},[ti,In,Wi]),Yi=Lr(Bn,Rn);return ce.createElement("div",{style:(0,Be.Z)({overflow:"hidden"},Wi?{top:tr,bottom:kr}:{}),ref:ho,className:$e()(en,(0,ze.Z)({},Pr,!!Pr))},ce.createElement("table",{style:{tableLayout:"fixed",visibility:on||Yi?null:"hidden"}},(!on||!qr||ci)&&ce.createElement(ii,{colWidths:Yi?[].concat((0,jr.Z)(Yi),[ti]):[],columCount:Rn+1,columns:xi}),xr((0,Be.Z)((0,Be.Z)({},Xr),{},{stickyOffsets:Fi,columns:$r,flattenColumns:xi}))))});ot.displayName="FixedHolder";var oi=ce.memo(ot);function yi(Ft){var Rt=Ft.cells,en=Ft.stickyOffsets,on=Ft.flattenColumns,Sn=Ft.rowComponent,fn=Ft.cellComponent,Bn=Ft.tdCellComponent,Rn=Ft.onHeaderRow,In=Ft.index,Qn=ye(Ce,["prefixCls","direction"]),rr=Qn.prefixCls,tr=Qn.direction,kr;Rn&&(kr=Rn(Rt.map(function(gr){return gr.column}),In));var Pr=St(Rt.map(function(gr){return gr.column}));return ce.createElement(Sn,kr,Rt.map(function(gr,qr){var xr=gr.column,Xr=wt(gr.colStart,gr.colEnd,on,en,tr,xr),Zr;return xr&&xr.onHeaderCell&&(Zr=gr.column.onHeaderCell(xr)),ce.createElement(Ut,(0,Me.Z)({},gr,{scope:xr.title?gr.colSpan>1?"colgroup":"col":null,ellipsis:xr.ellipsis,align:xr.align,component:xr.title?fn:Bn,prefixCls:rr,key:Pr[qr]},Xr,{additionalProps:Zr,rowType:"header"}))}))}yi.displayName="HeaderRow";var Pi=yi;function sr(Ft){var Rt=[];function en(Bn,Rn){var In=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Rt[In]=Rt[In]||[];var Qn=Rn,rr=Bn.filter(Boolean).map(function(tr){var kr={key:tr.key,className:tr.className||"",children:tr.title,column:tr,colStart:Qn},Pr=1,gr=tr.children;return gr&&gr.length>0&&(Pr=en(gr,Qn,In+1).reduce(function(qr,xr){return qr+xr},0),kr.hasSubColumns=!0),"colSpan"in tr&&(Pr=tr.colSpan),"rowSpan"in tr&&(kr.rowSpan=tr.rowSpan),kr.colSpan=Pr,kr.colEnd=kr.colStart+Pr-1,Rt[In].push(kr),Qn+=Pr,Pr});return rr}en(Ft,0);for(var on=Rt.length,Sn=function(Rn){Rt[Rn].forEach(function(In){!("rowSpan"in In)&&!In.hasSubColumns&&(In.rowSpan=on-Rn)})},fn=0;fn<on;fn+=1)Sn(fn);return Rt}function Ar(Ft){var Rt=Ft.stickyOffsets,en=Ft.columns,on=Ft.flattenColumns,Sn=Ft.onHeaderRow,fn=ye(Ce,["prefixCls","getComponent"]),Bn=fn.prefixCls,Rn=fn.getComponent,In=ce.useMemo(function(){return sr(en)},[en]),Qn=Rn(["header","wrapper"],"thead"),rr=Rn(["header","row"],"tr"),tr=Rn(["header","cell"],"th"),kr=Rn(["header","cell"],"td");return ce.createElement(Qn,{className:"".concat(Bn,"-thead")},In.map(function(Pr,gr){var qr=ce.createElement(Pi,{key:gr,flattenColumns:on,cells:Pr,stickyOffsets:Rt,rowComponent:rr,cellComponent:tr,tdCellComponent:kr,onHeaderRow:Sn,index:gr});return qr}))}var Fr=ue(Ar),Si=Ge(11592);function Nr(Ft){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Rt=="number"?Rt:Rt.endsWith("%")?Ft*parseFloat(Rt)/100:null}function hn(Ft,Rt){return ce.useMemo(function(){if(Rt&&Rt>0){var en=0,on=0;Ft.forEach(function(Qn){var rr=Nr(Rt,Qn.width);rr?en+=rr:on+=1});var Sn=Rt-en,fn=on,Bn=Sn/on,Rn=0,In=Ft.map(function(Qn){var rr=(0,Be.Z)({},Qn),tr=Nr(Rt,rr.width);if(tr)rr.width=tr;else{var kr=Math.floor(Bn);rr.width=fn===1?Sn:kr,Sn-=kr,fn-=1}return Rn+=rr.width,rr});return[In,Rn]}return[Ft,Rt]},[Ft,Rt])}var cn=["children"],Ot=["fixed"];function gn(Ft){return(0,Si.Z)(Ft).filter(function(Rt){return ce.isValidElement(Rt)}).map(function(Rt){var en=Rt.key,on=Rt.props,Sn=on.children,fn=(0,we.Z)(on,cn),Bn=(0,Be.Z)({key:en},fn);return Sn&&(Bn.children=gn(Sn)),Bn})}function Nn(Ft){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ft.filter(function(en){return en&&(0,Ne.Z)(en)==="object"}).reduce(function(en,on,Sn){var fn=on.fixed,Bn=fn===!0?"left":fn,Rn="".concat(Rt,"-").concat(Sn),In=on.children;return In&&In.length>0?[].concat((0,jr.Z)(en),(0,jr.Z)(Nn(In,Rn).map(function(Qn){return(0,Be.Z)({fixed:Bn},Qn)}))):[].concat((0,jr.Z)(en),[(0,Be.Z)((0,Be.Z)({key:Rn},on),{},{fixed:Bn})])},[])}function Xt(Ft){for(var Rt=!0,en=0;en<Ft.length;en+=1){var on=Ft[en];if(Rt&&on.fixed!=="left")Rt=!1;else if(!Rt&&on.fixed==="left"){warning(!1,"Index ".concat(en-1," of `columns` missing `fixed='left'` prop."));break}}for(var Sn=!0,fn=Ft.length-1;fn>=0;fn-=1){var Bn=Ft[fn];if(Sn&&Bn.fixed!=="right")Sn=!1;else if(!Sn&&Bn.fixed==="right"){warning(!1,"Index ".concat(fn+1," of `columns` missing `fixed='right'` prop."));break}}}function zt(Ft){return Ft.map(function(Rt){var en=Rt.fixed,on=(0,we.Z)(Rt,Ot),Sn=en;return en==="left"?Sn="right":en==="right"&&(Sn="left"),(0,Be.Z)({fixed:Sn},on)})}function Pn(Ft,Rt){var en=Ft.prefixCls,on=Ft.columns,Sn=Ft.children,fn=Ft.expandable,Bn=Ft.expandedKeys,Rn=Ft.columnTitle,In=Ft.getRowKey,Qn=Ft.onTriggerExpand,rr=Ft.expandIcon,tr=Ft.rowExpandable,kr=Ft.expandIconColumnIndex,Pr=Ft.direction,gr=Ft.expandRowByClick,qr=Ft.columnWidth,xr=Ft.fixed,Xr=Ft.scrollWidth,Zr=ce.useMemo(function(){return on||gn(Sn)},[on,Sn]),hi=ce.useMemo(function(){if(fn){var Ei,ui=Zr.slice();if(!ui.includes(rt)){var $r=kr||0;$r>=0&&ui.splice($r,0,rt)}var xi=ui.indexOf(rt);ui=ui.filter(function(ni,po){return ni!==rt||po===xi});var Fi=Zr[xi],Yi;(xr==="left"||xr)&&!kr?Yi="left":(xr==="right"||xr)&&kr===Zr.length?Yi="right":Yi=Fi?Fi.fixed:null;var eo=(Ei={},(0,ze.Z)(Ei,fr,{className:"".concat(en,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ze.Z)(Ei,"title",Rn),(0,ze.Z)(Ei,"fixed",Yi),(0,ze.Z)(Ei,"className","".concat(en,"-row-expand-icon-cell")),(0,ze.Z)(Ei,"width",qr),(0,ze.Z)(Ei,"render",function(po,wo,Qo){var Ao=In(wo,Qo),Na=Bn.has(Ao),Ta=tr?tr(wo):!0,vo=rr({prefixCls:en,expanded:Na,expandable:Ta,record:wo,onExpand:Qn});return gr?ce.createElement("span",{onClick:function(Wo){return Wo.stopPropagation()}},vo):vo}),Ei);return ui.map(function(ni){return ni===rt?eo:ni})}return Zr.filter(function(ni){return ni!==rt})},[fn,Zr,In,Bn,rr,Pr]),Oi=ce.useMemo(function(){var Ei=hi;return Rt&&(Ei=Rt(Ei)),Ei.length||(Ei=[{render:function(){return null}}]),Ei},[Rt,hi,Pr]),Wi=ce.useMemo(function(){return Pr==="rtl"?zt(Nn(Oi)):Nn(Oi)},[Oi,Pr,Xr]),ti=hn(Wi,Xr),ki=(0,ie.Z)(ti,2),ho=ki[0],ci=ki[1];return[Oi,ho,ci]}var _n=Pn;function qn(Ft){var Rt,en=Ft.prefixCls,on=Ft.record,Sn=Ft.onExpand,fn=Ft.expanded,Bn=Ft.expandable,Rn="".concat(en,"-row-expand-icon");if(!Bn)return ce.createElement("span",{className:$e()(Rn,"".concat(en,"-row-spaced"))});var In=function(rr){Sn(on,rr),rr.stopPropagation()};return ce.createElement("span",{className:$e()(Rn,(Rt={},(0,ze.Z)(Rt,"".concat(en,"-row-expanded"),fn),(0,ze.Z)(Rt,"".concat(en,"-row-collapsed"),!fn),Rt)),onClick:In})}function Yn(Ft,Rt,en){var on=[];function Sn(fn){(fn||[]).forEach(function(Bn,Rn){on.push(Rt(Bn,Rn)),Sn(Bn[en])})}return Sn(Ft),on}function $t(Ft,Rt,en){var on=pr(Ft),Sn=on.expandIcon,fn=on.expandedRowKeys,Bn=on.defaultExpandedRowKeys,Rn=on.defaultExpandAllRows,In=on.expandedRowRender,Qn=on.onExpand,rr=on.onExpandedRowsChange,tr=on.childrenColumnName,kr=Sn||qn,Pr=tr||"children",gr=ce.useMemo(function(){return In?"row":Ft.expandable&&Ft.internalHooks===vt&&Ft.expandable.__PARENT_RENDER_ICON__||Rt.some(function(Wi){return Wi&&(0,Ne.Z)(Wi)==="object"&&Wi[Pr]})?"nest":!1},[!!In,Rt]),qr=ce.useState(function(){return Bn||(Rn?Yn(Rt,en,Pr):[])}),xr=(0,ie.Z)(qr,2),Xr=xr[0],Zr=xr[1],hi=ce.useMemo(function(){return new Set(fn||Xr||[])},[fn,Xr]),Oi=ce.useCallback(function(Wi){var ti=en(Wi,Rt.indexOf(Wi)),ki,ho=hi.has(ti);ho?(hi.delete(ti),ki=(0,jr.Z)(hi)):ki=[].concat((0,jr.Z)(hi),[ti]),Zr(ki),Qn&&Qn(!ho,Wi),rr&&rr(ki)},[en,hi,Rt,Qn,rr]);return[on,gr,hi,kr,Pr,Oi]}function jn(Ft,Rt,en,on){var Sn=Ft.map(function(fn,Bn){return wt(Bn,Bn,Ft,Rt,en,on==null?void 0:on[Bn])});return(0,Ye.Z)(function(){return Sn},[Sn],function(fn,Bn){return!(0,ge.Z)(fn,Bn)})}function Wn(Ft){var Rt=(0,ce.useRef)(Ft),en=(0,ce.useState)({}),on=(0,ie.Z)(en,2),Sn=on[1],fn=(0,ce.useRef)(null),Bn=(0,ce.useRef)([]);function Rn(In){Bn.current.push(In);var Qn=Promise.resolve();fn.current=Qn,Qn.then(function(){if(fn.current===Qn){var rr=Bn.current,tr=Rt.current;Bn.current=[],rr.forEach(function(kr){Rt.current=kr(Rt.current)}),fn.current=null,tr!==Rt.current&&Sn({})}})}return(0,ce.useEffect)(function(){return function(){fn.current=null}},[]),[Rt.current,Rn]}function or(Ft){var Rt=(0,ce.useRef)(Ft||null),en=(0,ce.useRef)();function on(){window.clearTimeout(en.current)}function Sn(Bn){Rt.current=Bn,on(),en.current=window.setTimeout(function(){Rt.current=null,en.current=void 0},100)}function fn(){return Rt.current}return(0,ce.useEffect)(function(){return on},[]),[Sn,fn]}function nn(){var Ft=ce.useState(-1),Rt=(0,ie.Z)(Ft,2),en=Rt[0],on=Rt[1],Sn=ce.useState(-1),fn=(0,ie.Z)(Sn,2),Bn=fn[0],Rn=fn[1],In=ce.useCallback(function(Qn,rr){on(Qn),Rn(rr)},[]);return[en,Bn,In]}var Cn=Ge(47273),rn=(0,Cn.Z)()?window:null;function mn(Ft,Rt){var en=(0,Ne.Z)(Ft)==="object"?Ft:{},on=en.offsetHeader,Sn=on===void 0?0:on,fn=en.offsetSummary,Bn=fn===void 0?0:fn,Rn=en.offsetScroll,In=Rn===void 0?0:Rn,Qn=en.getContainer,rr=Qn===void 0?function(){return rn}:Qn,tr=rr()||rn;return ce.useMemo(function(){var kr=!!Ft;return{isSticky:kr,stickyClassName:kr?"".concat(Rt,"-sticky-holder"):"",offsetHeader:Sn,offsetSummary:Bn,offsetScroll:In,container:tr}},[In,Sn,Bn,Rt,tr])}function En(Ft,Rt,en){var on=(0,ce.useMemo)(function(){for(var Sn=[],fn=[],Bn=0,Rn=0,In=0;In<Rt;In+=1)if(en==="rtl"){fn[In]=Rn,Rn+=Ft[In]||0;var Qn=Rt-In-1;Sn[Qn]=Bn,Bn+=Ft[Qn]||0}else{Sn[In]=Bn,Bn+=Ft[In]||0;var rr=Rt-In-1;fn[rr]=Rn,Rn+=Ft[rr]||0}return{left:Sn,right:fn}},[Ft,Rt,en]);return on}var pn=En;function kn(Ft){var Rt=Ft.className,en=Ft.children;return ce.createElement("div",{className:Rt},en)}var Mn=kn,zn=Ge(8224),Dn=Ge(55468),ar=function(Rt,en){var on,Sn,fn=Rt.scrollBodyRef,Bn=Rt.onScroll,Rn=Rt.offsetScroll,In=Rt.container,Qn=ye(Ce,"prefixCls"),rr=((on=fn.current)===null||on===void 0?void 0:on.scrollWidth)||0,tr=((Sn=fn.current)===null||Sn===void 0?void 0:Sn.clientWidth)||0,kr=rr&&tr*(tr/rr),Pr=ce.useRef(),gr=Wn({scrollLeft:0,isHiddenScrollBar:!1}),qr=(0,ie.Z)(gr,2),xr=qr[0],Xr=qr[1],Zr=ce.useRef({delta:0,x:0}),hi=ce.useState(!1),Oi=(0,ie.Z)(hi,2),Wi=Oi[0],ti=Oi[1],ki=function(){ti(!1)},ho=function(xi){xi.persist(),Zr.current.delta=xi.pageX-xr.scrollLeft,Zr.current.x=0,ti(!0),xi.preventDefault()},ci=function(xi){var Fi,Yi=xi||((Fi=window)===null||Fi===void 0?void 0:Fi.event),eo=Yi.buttons;if(!Wi||eo===0){Wi&&ti(!1);return}var ni=Zr.current.x+xi.pageX-Zr.current.x-Zr.current.delta;ni<=0&&(ni=0),ni+kr>=tr&&(ni=tr-kr),Bn({scrollLeft:ni/tr*(rr+2)}),Zr.current.x=xi.pageX},Ei=function(){if(fn.current){var xi=(0,Dn.os)(fn.current).top,Fi=xi+fn.current.offsetHeight,Yi=In===window?document.documentElement.scrollTop+window.innerHeight:(0,Dn.os)(In).top+In.clientHeight;Fi-(0,Mt.Z)()<=Yi||xi>=Yi-Rn?Xr(function(eo){return(0,Be.Z)((0,Be.Z)({},eo),{},{isHiddenScrollBar:!0})}):Xr(function(eo){return(0,Be.Z)((0,Be.Z)({},eo),{},{isHiddenScrollBar:!1})})}},ui=function(xi){Xr(function(Fi){return(0,Be.Z)((0,Be.Z)({},Fi),{},{scrollLeft:xi/rr*tr||0})})};return ce.useImperativeHandle(en,function(){return{setScrollLeft:ui}}),ce.useEffect(function(){var $r=(0,zn.Z)(document.body,"mouseup",ki,!1),xi=(0,zn.Z)(document.body,"mousemove",ci,!1);return Ei(),function(){$r.remove(),xi.remove()}},[kr,Wi]),ce.useEffect(function(){var $r=(0,zn.Z)(In,"scroll",Ei,!1),xi=(0,zn.Z)(window,"resize",Ei,!1);return function(){$r.remove(),xi.remove()}},[In]),ce.useEffect(function(){xr.isHiddenScrollBar||Xr(function($r){var xi=fn.current;return xi?(0,Be.Z)((0,Be.Z)({},$r),{},{scrollLeft:xi.scrollLeft/xi.scrollWidth*xi.clientWidth}):$r})},[xr.isHiddenScrollBar]),rr<=tr||!kr||xr.isHiddenScrollBar?null:ce.createElement("div",{style:{height:(0,Mt.Z)(),width:tr,bottom:Rn},className:"".concat(Qn,"-sticky-scroll")},ce.createElement("div",{onMouseDown:ho,ref:Pr,className:$e()("".concat(Qn,"-sticky-scroll-bar"),(0,ze.Z)({},"".concat(Qn,"-sticky-scroll-bar-active"),Wi)),style:{width:"".concat(kr,"px"),transform:"translate3d(".concat(xr.scrollLeft,"px, 0, 0)")}}))},dn=ce.forwardRef(ar);function Or(Ft){return null}var Jr=Or;function Rr(Ft){return null}var vn=Rr,Jn="rc-table",lr=[],vr={};function Sr(){return"No Data"}function Kr(Ft){var Rt,en=(0,Be.Z)({rowKey:"key",prefixCls:Jn,emptyText:Sr},Ft),on=en.prefixCls,Sn=en.className,fn=en.rowClassName,Bn=en.style,Rn=en.data,In=en.rowKey,Qn=en.scroll,rr=en.tableLayout,tr=en.direction,kr=en.title,Pr=en.footer,gr=en.summary,qr=en.caption,xr=en.id,Xr=en.showHeader,Zr=en.components,hi=en.emptyText,Oi=en.onRow,Wi=en.onHeaderRow,ti=en.internalHooks,ki=en.transformColumns,ho=en.internalRefs,ci=en.tailor,Ei=en.sticky,ui=Rn||lr,$r=!!ui.length,xi=ti===vt,Fi=ce.useCallback(function(ta,Ma){return(0,at.Z)(Zr,ta)||Ma},[Zr]),Yi=ce.useMemo(function(){return typeof In=="function"?In:function(ta){var Ma=ta&&ta[In];return Ma}},[In]),eo=Fi(["body"]),ni=nn(),po=(0,ie.Z)(ni,3),wo=po[0],Qo=po[1],Ao=po[2],Na=$t(en,ui,Yi),Ta=(0,ie.Z)(Na,6),vo=Ta[0],Gi=Ta[1],Wo=Ta[2],Aa=Ta[3],Sa=Ta[4],is=Ta[5],to=Qn==null?void 0:Qn.x,Zi=ce.useState(0),no=(0,ie.Z)(Zi,2),Ni=no[0],Zo=no[1],Ai=_n((0,Be.Z)((0,Be.Z)((0,Be.Z)({},en),vo),{},{expandable:!!vo.expandedRowRender,columnTitle:vo.columnTitle,expandedKeys:Wo,getRowKey:Yi,onTriggerExpand:is,expandIcon:Aa,expandIconColumnIndex:vo.expandIconColumnIndex,direction:tr,scrollWidth:xi&&ci&&typeof to=="number"?to:null}),xi?ki:null),fo=(0,ie.Z)(Ai,3),Bo=fo[0],Ro=fo[1],bs=fo[2],ls=bs!=null?bs:to,$s=ce.useMemo(function(){return{columns:Bo,flattenColumns:Ro}},[Bo,Ro]),qo=ce.useRef(),Ps=ce.useRef(),ts=ce.useRef(),ps=ce.useRef(),Wu=ce.useRef(),ea=ce.useState(!1),ia=(0,ie.Z)(ea,2),ua=ia[0],Za=ia[1],gs=ce.useState(!1),ko=(0,ie.Z)(gs,2),fa=ko[0],ms=ko[1],pl=Wn(new Map),zl=(0,ie.Z)(pl,2),El=zl[0],eu=zl[1],tu=St(Ro),$l=tu.map(function(ta){return El.get(ta)}),na=ce.useMemo(function(){return $l},[$l.join("_")]),Ts=pn(na,Ro.length,tr),Ga=Qn&&bt(Qn.y),pa=Qn&&bt(ls)||!!vo.fixed,Gl=pa&&Ro.some(function(ta){var Ma=ta.fixed;return Ma}),oc=ce.useRef(),nu=mn(Ei,on),Mu=nu.isSticky,Ku=nu.offsetHeader,Tl=nu.offsetSummary,Xo=nu.offsetScroll,xa=nu.stickyClassName,us=nu.container,wa=ce.useMemo(function(){return gr==null?void 0:gr(ui)},[gr,ui]),Ho=(Ga||Mu)&&ce.isValidElement(wa)&&wa.type===Oe&&wa.props.fixed,vs,gl,gu;Ga&&(gl={overflowY:"scroll",maxHeight:Qn.y}),pa&&(vs={overflowX:"auto"},Ga||(gl={overflowY:"hidden"}),gu={width:ls===!0?"auto":ls,minWidth:"100%"});var cf=ce.useCallback(function(ta,Ma){(0,yt.Z)(qo.current)&&eu(function(js){if(js.get(ta)!==Ma){var ru=new Map(js);return ru.set(ta,Ma),ru}return js})},[]),ln=or(null),Pc=(0,ie.Z)(ln,2),Vu=Pc[0],hf=Pc[1];function gh(ta,Ma){Ma&&(typeof Ma=="function"?Ma(ta):Ma.scrollLeft!==ta&&(Ma.scrollLeft=ta,Ma.scrollLeft!==ta&&setTimeout(function(){Ma.scrollLeft=ta},0)))}var Yc=(0,_e.Z)(function(ta){var Ma=ta.currentTarget,js=ta.scrollLeft,ru=tr==="rtl",iu=typeof js=="number"?js:Ma.scrollLeft,Dd=Ma||vr;if(!hf()||hf()===Dd){var Tc;Vu(Dd),gh(iu,Ps.current),gh(iu,ts.current),gh(iu,Wu.current),gh(iu,(Tc=oc.current)===null||Tc===void 0?void 0:Tc.setScrollLeft)}var Zh=Ma||Ps.current;if(Zh){var mu=Zh.scrollWidth,ac=Zh.clientWidth;if(mu===ac){Za(!1),ms(!1);return}ru?(Za(-iu<mu-ac),ms(-iu>0)):(Za(iu>0),ms(iu<mu-ac))}}),Md=function(){pa&&ts.current?Yc({currentTarget:ts.current}):(Za(!1),ms(!1))},Kp=function(Ma){var js=Ma.width;js!==Ni&&(Md(),Zo(qo.current?qo.current.offsetWidth:js))},Ms=ce.useRef(!1);ce.useEffect(function(){Ms.current&&Md()},[pa,Rn,Bo.length]),ce.useEffect(function(){Ms.current=!0},[]);var Kh=ce.useState(0),Ld=(0,ie.Z)(Kh,2),Vh=Ld[0],df=Ld[1],Zf=ce.useState(!0),ff=(0,ie.Z)(Zf,2),kd=ff[0],Hl=ff[1];ce.useEffect(function(){(!ci||!xi)&&(ts.current instanceof Element?df((0,Mt.o)(ts.current).width):df((0,Mt.o)(ps.current).width)),Hl((0,ft.G)("position","sticky"))},[]),ce.useEffect(function(){xi&&ho&&(ho.body.current=ts.current)});var mh=ce.useCallback(function(ta){return ce.createElement(ce.Fragment,null,ce.createElement(Fr,ta),Ho==="top"&&ce.createElement(He,ta,wa))},[Ho,wa]),pf=ce.useCallback(function(ta){return ce.createElement(He,ta,wa)},[wa]),Lu=Fi(["table"],"table"),Cc=ce.useMemo(function(){return rr||(Gl?ls==="max-content"?"auto":"fixed":Ga||Mu||Ro.some(function(ta){var Ma=ta.ellipsis;return Ma})?"fixed":"auto")},[Ga,Gl,Ro,rr,Mu]),vh,Jc={colWidths:na,columCount:Ro.length,stickyOffsets:Ts,onHeaderRow:Wi,fixHeader:Ga,scroll:Qn},ml=ce.useMemo(function(){return $r?null:typeof hi=="function"?hi():hi},[$r,hi]),Od=ce.createElement(Xn,{data:ui,measureColumnWidth:Ga||pa||Mu}),Nd=ce.createElement(ii,{colWidths:Ro.map(function(ta){var Ma=ta.width;return Ma}),columns:Ro}),Ul=qr!=null?ce.createElement("caption",{className:"".concat(on,"-caption")},qr):void 0,yh=(0,Jt.Z)(en,{data:!0}),Ad=(0,Jt.Z)(en,{aria:!0});if(Ga||Mu){var jd;typeof eo=="function"?(jd=eo(ui,{scrollbarSize:Vh,ref:ts,onScroll:Yc}),Jc.colWidths=Ro.map(function(ta,Ma){var js=ta.width,ru=Ma===Ro.length-1?js-Vh:js;return typeof ru=="number"&&!Number.isNaN(ru)?ru:0})):jd=ce.createElement("div",{style:(0,Be.Z)((0,Be.Z)({},vs),gl),onScroll:Yc,ref:ts,className:$e()("".concat(on,"-body"))},ce.createElement(Lu,(0,Me.Z)({style:(0,Be.Z)((0,Be.Z)({},gu),{},{tableLayout:Cc})},Ad),Ul,Nd,Od,!Ho&&wa&&ce.createElement(He,{stickyOffsets:Ts,flattenColumns:Ro,columns:Bo},wa)));var Ec=(0,Be.Z)((0,Be.Z)((0,Be.Z)({noData:!ui.length,maxContentScroll:pa&&ls==="max-content"},Jc),$s),{},{direction:tr,stickyClassName:xa,onScroll:Yc});vh=ce.createElement(ce.Fragment,null,Xr!==!1&&ce.createElement(oi,(0,Me.Z)({},Ec,{stickyTopOffset:Ku,className:"".concat(on,"-header"),ref:Ps}),mh),jd,Ho&&Ho!=="top"&&ce.createElement(oi,(0,Me.Z)({},Ec,{stickyBottomOffset:Tl,className:"".concat(on,"-summary"),ref:Wu}),pf),Mu&&ce.createElement(dn,{ref:oc,offsetScroll:Xo,scrollBodyRef:ts,onScroll:Yc,container:us}))}else vh=ce.createElement("div",{style:(0,Be.Z)((0,Be.Z)({},vs),gl),className:$e()("".concat(on,"-content")),onScroll:Yc,ref:ts},ce.createElement(Lu,(0,Me.Z)({style:(0,Be.Z)((0,Be.Z)({},gu),{},{tableLayout:Cc})},Ad),Ul,Nd,Xr!==!1&&ce.createElement(Fr,(0,Me.Z)({},Jc,$s)),Od,wa&&ce.createElement(He,{stickyOffsets:Ts,flattenColumns:Ro,columns:Bo},wa)));var ol=ce.createElement("div",(0,Me.Z)({className:$e()(on,Sn,(Rt={},(0,ze.Z)(Rt,"".concat(on,"-rtl"),tr==="rtl"),(0,ze.Z)(Rt,"".concat(on,"-ping-left"),ua),(0,ze.Z)(Rt,"".concat(on,"-ping-right"),fa),(0,ze.Z)(Rt,"".concat(on,"-layout-fixed"),rr==="fixed"),(0,ze.Z)(Rt,"".concat(on,"-fixed-header"),Ga),(0,ze.Z)(Rt,"".concat(on,"-fixed-column"),Gl),(0,ze.Z)(Rt,"".concat(on,"-scroll-horizontal"),pa),(0,ze.Z)(Rt,"".concat(on,"-has-fix-left"),Ro[0]&&Ro[0].fixed),(0,ze.Z)(Rt,"".concat(on,"-has-fix-right"),Ro[Ro.length-1]&&Ro[Ro.length-1].fixed==="right"),Rt)),style:Bn,id:xr,ref:qo},yh),kr&&ce.createElement(Mn,{className:"".concat(on,"-title")},kr(ui)),ce.createElement("div",{ref:ps,className:"".concat(on,"-container")},vh),Pr&&ce.createElement(Mn,{className:"".concat(on,"-footer")},Pr(ui)));pa&&(ol=ce.createElement(ct.Z,{onResize:Kp},ol));var Id=jn(Ro,Ts,tr,Bo),cs=ce.useMemo(function(){return{scrollX:ls,prefixCls:on,getComponent:Fi,scrollbarSize:Vh,direction:tr,fixedInfoList:Id,isSticky:Mu,supportSticky:kd,componentWidth:Ni,fixHeader:Ga,fixColumn:Gl,horizonScroll:pa,tableLayout:Cc,rowClassName:fn,expandedRowClassName:vo.expandedRowClassName,expandIcon:Aa,expandableType:Gi,expandRowByClick:vo.expandRowByClick,expandedRowRender:vo.expandedRowRender,onTriggerExpand:is,expandIconColumnIndex:vo.expandIconColumnIndex,indentSize:vo.indentSize,allColumnsFixedLeft:Ro.every(function(ta){return ta.fixed==="left"}),emptyNode:ml,columns:Bo,flattenColumns:Ro,onColumnResize:cf,hoverStartRow:wo,hoverEndRow:Qo,onHover:Ao,rowExpandable:vo.rowExpandable,onRow:Oi,getRowKey:Yi,expandedKeys:Wo,childrenColumnName:Sa}},[ls,on,Fi,Vh,tr,Id,Mu,kd,Ni,Ga,Gl,pa,Cc,fn,vo.expandedRowClassName,Aa,Gi,vo.expandRowByClick,vo.expandedRowRender,is,vo.expandIconColumnIndex,vo.indentSize,ml,Bo,Ro,cf,wo,Qo,Ao,vo.rowExpandable,Oi,Yi,Wo,Sa]);return ce.createElement(Ce.Provider,{value:cs},ol)}function ai(Ft){return le(Kr,Ft)}var Br=ai();Br.EXPAND_COLUMN=rt,Br.INTERNAL_HOOKS=vt,Br.Column=Jr,Br.ColumnGroup=vn,Br.Summary=Ve;var br=Br,si=Ge(24916),Tn=Ee(null),Ri=Ee(null);function On(Ft,Rt,en){var on=Rt||1;return en[Ft+on]-(en[Ft]||0)}function pi(Ft){var Rt=Ft.rowInfo,en=Ft.column,on=Ft.colIndex,Sn=Ft.indent,fn=Ft.index,Bn=Ft.renderIndex,Rn=Ft.record,In=Ft.style,Qn=Ft.className,rr=Ft.inverse,tr=Ft.getHeight,kr=en.render,Pr=en.dataIndex,gr=en.className,qr=en.width,xr=ye(Ri,["columnsOffset"]),Xr=xr.columnsOffset,Zr=Dt(Rt,en,on,Sn,fn),hi=Zr.key,Oi=Zr.fixedInfo,Wi=Zr.appendCellNode,ti=Zr.additionalCellProps,ki=ti.style,ho=ti.colSpan,ci=ho===void 0?1:ho,Ei=ti.rowSpan,ui=Ei===void 0?1:Ei,$r=on-1,xi=On($r,ci,Xr),Fi=ci>1?qr-xi:0,Yi=(0,Be.Z)((0,Be.Z)((0,Be.Z)({},ki),In),{},{flex:"0 0 ".concat(xi,"px"),width:"".concat(xi,"px"),marginRight:Fi,pointerEvents:"auto"}),eo=ce.useMemo(function(){return rr?ui<=1:ci===0||ui===0||ui>1},[ui,ci,rr]);eo?Yi.visibility="hidden":rr&&(Yi.height=tr==null?void 0:tr(ui));var ni=eo?function(){return null}:kr,po={};return(ui===0||ci===0)&&(po.rowSpan=1,po.colSpan=1),ce.createElement(Ut,(0,Me.Z)({className:$e()(gr,Qn),ellipsis:en.ellipsis,align:en.align,scope:en.rowScope,component:"div",prefixCls:Rt.prefixCls,key:hi,record:Rn,index:fn,renderIndex:Bn,dataIndex:Pr,render:ni,shouldCellUpdate:en.shouldCellUpdate},Oi,{appendNode:Wi,additionalProps:(0,Be.Z)((0,Be.Z)({},ti),{},{style:Yi},po)}))}var xo=pi,zi=["data","index","className","rowKey","style","extra","getHeight"],Lo=ce.forwardRef(function(Ft,Rt){var en=Ft.data,on=Ft.index,Sn=Ft.className,fn=Ft.rowKey,Bn=Ft.style,Rn=Ft.extra,In=Ft.getHeight,Qn=(0,we.Z)(Ft,zi),rr=en.record,tr=en.indent,kr=en.index,Pr=ye(Ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),gr=Pr.scrollX,qr=Pr.flattenColumns,xr=Pr.prefixCls,Xr=Pr.fixColumn,Zr=Pr.componentWidth,hi=It(rr,fn,on,tr),Oi=hi.rowSupportExpand,Wi=hi.expanded,ti=hi.rowProps,ki=hi.expandedRowRender,ho=hi.expandedRowClassName,ci;if(Oi&&Wi){var Ei=ki(rr,on,tr+1,Wi),ui=ho==null?void 0:ho(rr,on,tr),$r={};Xr&&($r={style:(0,ze.Z)({},"--virtual-width","".concat(Zr,"px"))});var xi="".concat(xr,"-expanded-row-cell");ci=ce.createElement("div",{className:$e()("".concat(xr,"-expanded-row"),"".concat(xr,"-expanded-row-level-").concat(tr+1),ui)},ce.createElement(Ut,{component:"div",prefixCls:xr,className:$e()(xi,(0,ze.Z)({},"".concat(xi,"-fixed"),Xr)),additionalProps:$r},Ei))}var Fi=(0,Be.Z)((0,Be.Z)({},Bn),{},{width:gr});Rn&&(Fi.position="absolute",Fi.pointerEvents="none");var Yi=ce.createElement("div",(0,Me.Z)({},ti,Qn,{ref:Oi?null:Rt,className:$e()(Sn,"".concat(xr,"-row"),ti==null?void 0:ti.className,(0,ze.Z)({},"".concat(xr,"-row-extra"),Rn)),style:(0,Be.Z)((0,Be.Z)({},Fi),ti==null?void 0:ti.style)}),qr.map(function(eo,ni){return ce.createElement(xo,{key:ni,rowInfo:hi,column:eo,colIndex:ni,indent:tr,index:on,renderIndex:kr,record:rr,inverse:Rn,getHeight:In})}));return Oi?ce.createElement("div",{ref:Rt},Yi,ci):Yi}),yo=ue(Lo),Ur=yo,Gr=ce.forwardRef(function(Ft,Rt){var en=Ft.data,on=Ft.onScroll,Sn=ye(Ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),fn=Sn.flattenColumns,Bn=Sn.onColumnResize,Rn=Sn.getRowKey,In=Sn.expandedKeys,Qn=Sn.prefixCls,rr=Sn.childrenColumnName,tr=Sn.emptyNode,kr=Sn.scrollX,Pr=ye(Tn),gr=Pr.scrollY,qr=Pr.listItemHeight,xr=ce.useRef(),Xr=Kt(en,rr,In,Rn),Zr=ce.useMemo(function(){var ci=0;return fn.map(function(Ei){var ui=Ei.width,$r=Ei.key;return ci+=ui,[$r,ui,ci]})},[fn]),hi=ce.useMemo(function(){return Zr.map(function(ci){return ci[2]})},[Zr]);ce.useEffect(function(){Zr.forEach(function(ci){var Ei=(0,ie.Z)(ci,2),ui=Ei[0],$r=Ei[1];Bn(ui,$r)})},[Zr]),ce.useImperativeHandle(Rt,function(){var ci={};return Object.defineProperty(ci,"scrollLeft",{get:function(){var ui;return((ui=xr.current)===null||ui===void 0?void 0:ui.getScrollInfo().x)||0},set:function(ui){var $r;($r=xr.current)===null||$r===void 0||$r.scrollTo({left:ui})}}),ci});var Oi=function(Ei,ui){var $r,xi=($r=Xr[ui])===null||$r===void 0?void 0:$r.record,Fi=Ei.onCell;if(Fi){var Yi,eo=Fi(xi,ui);return(Yi=eo==null?void 0:eo.rowSpan)!==null&&Yi!==void 0?Yi:1}return 1},Wi=function(Ei){var ui=Ei.start,$r=Ei.end,xi=Ei.getSize,Fi=Ei.offsetY;if($r<0)return null;for(var Yi=fn.filter(function(to){return Oi(to,ui)===0}),eo=ui,ni=function(Zi){if(Yi=Yi.filter(function(no){return Oi(no,Zi)===0}),!Yi.length)return eo=Zi,"break"},po=ui;po>=0;po-=1){var wo=ni(po);if(wo==="break")break}for(var Qo=fn.filter(function(to){return Oi(to,$r)!==1}),Ao=$r,Na=function(Zi){if(Qo=Qo.filter(function(no){return Oi(no,Zi)!==1}),!Qo.length)return Ao=Math.max(Zi-1,$r),"break"},Ta=$r;Ta<Xr.length;Ta+=1){var vo=Na(Ta);if(vo==="break")break}for(var Gi=[],Wo=function(Zi){var no=Xr[Zi];if(!no)return"continue";fn.some(function(Ni){return Oi(Ni,Zi)>1})&&Gi.push(Zi)},Aa=eo;Aa<=Ao;Aa+=1)var Sa=Wo(Aa);var is=Gi.map(function(to){var Zi=Xr[to],no=Rn(Zi.record,to),Ni=function(fo){var Bo=to+fo-1,Ro=Rn(Xr[Bo].record,Bo),bs=xi(no,Ro);return bs.bottom-bs.top},Zo=xi(no);return ce.createElement(Ur,{key:to,data:Zi,rowKey:no,index:to,style:{top:-Fi+Zo.top},extra:!0,getHeight:Ni})});return is},ti=ce.useMemo(function(){return{columnsOffset:hi}},[hi]),ki="".concat(Qn,"-tbody"),ho;return Xr.length?ho=ce.createElement(si.Z,{fullHeight:!1,ref:xr,className:$e()(ki,"".concat(ki,"-virtual")),height:gr,itemHeight:qr||24,data:Xr,itemKey:function(Ei){return Rn(Ei.record)},scrollWidth:kr,onVirtualScroll:function(Ei){var ui=Ei.x;on({scrollLeft:ui})},extraRender:Wi},function(ci,Ei,ui){var $r=Rn(ci.record,Ei);return ce.createElement(Ur,(0,Me.Z)({data:ci,rowKey:$r,index:Ei},ui))}):ho=ce.createElement("div",{className:$e()("".concat(Qn,"-placeholder"))},ce.createElement(Ut,{component:"div",prefixCls:Qn},tr)),ce.createElement(Ri.Provider,{value:ti},ho)}),Mi=ue(Gr),Hi=Mi,cr=function(Rt,en){var on=en.ref,Sn=en.onScroll;return ce.createElement(Hi,{ref:on,data:Rt,onScroll:Sn})},Lt=100;function Ii(Ft){var Rt=Ft.columns,en=Ft.scroll,on=Ft.prefixCls,Sn=on===void 0?Jn:on,fn=Ft.className,Bn=Ft.listItemHeight,Rn=en||{},In=Rn.x,Qn=Rn.y;typeof In!="number"&&(In=((Rt||[]).length+1)*Lt),typeof Qn!="number"&&(Qn=500);var rr=ce.useMemo(function(){return{scrollY:Qn,listItemHeight:Bn}},[Qn,Bn]);return ce.createElement(Tn.Provider,{value:rr},ce.createElement(br,(0,Me.Z)({},Ft,{className:$e()(fn,"".concat(Sn,"-virtual")),scroll:(0,Be.Z)((0,Be.Z)({},en),{},{x:In}),components:{body:cr},columns:Rt,internalHooks:vt,tailor:!0})))}function _r(Ft){return le(Ii,Ft)}var Ir=_r(),_i=null;function Ji(Ft){return null}var zr=Ji;function Vr(Ft){return null}var Ci=Vr,mi=Ge(2738),Vi=Ge(68031),io=Ge(36355),Hr=Ge(93891),Er=Ge(19716),Kn=Ge(8628),li=Ge(31724),Qi=Ge(58421),zo=Ge(71418),Mo=Ge(88088);function Uo(Ft){return function(en){let{prefixCls:on,onExpand:Sn,record:fn,expanded:Bn,expandable:Rn}=en;const In=`${on}-row-expand-icon`;return ce.createElement("button",{type:"button",onClick:Qn=>{Sn(fn,Qn),Qn.stopPropagation()},className:$e()(In,{[`${In}-spaced`]:!Rn,[`${In}-expanded`]:Rn&&Bn,[`${In}-collapsed`]:Rn&&!Bn}),"aria-label":Bn?Ft.collapse:Ft.expand,"aria-expanded":Bn})}}var ca=Uo;function Jo(Ft,Rt){return"key"in Ft&&Ft.key!==void 0&&Ft.key!==null?Ft.key:Ft.dataIndex?Array.isArray(Ft.dataIndex)?Ft.dataIndex.join("."):Ft.dataIndex:Rt}function qa(Ft,Rt){return Rt?`${Rt}-${Ft}`:`${Ft}`}function La(Ft,Rt){return typeof Ft=="function"?Ft(Rt):Ft}function es(Ft,Rt){const en=La(Ft,Rt);return Object.prototype.toString.call(en)==="[object Object]"?"":en}var wn={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"},ma=wn,Ql=Ge(7657),el=function(Rt,en){return ce.createElement(Ql.Z,(0,Me.Z)({},Rt,{ref:en,icon:ma}))},So=ce.forwardRef(el),ro=So,va=Ge(56762);function Io(Ft){const Rt=ce.useRef(Ft),en=(0,va.Z)();return[()=>Rt.current,on=>{Rt.current=on,en()}]}var qi=Ge(3113),No=Ge(24905),xs=Ge(38854),bi=Ge(64165),lo=Ge(20834),ao=Ge(40875),Tr=Ge(5112),Ba=Ge(17574),Ra=Ge(47472),Cs=Ge(92832);function Il(Ft){let{value:Rt,onChange:en,filterSearch:on,tablePrefixCls:Sn,locale:fn}=Ft;return on?ce.createElement("div",{className:`${Sn}-filter-dropdown-search`},ce.createElement(Cs.default,{prefix:ce.createElement(Ra.Z,null),placeholder:fn.filterSearchPlaceholder,onChange:en,value:Rt,htmlSize:1,className:`${Sn}-filter-dropdown-search-input`})):null}var ql=Il,yr=Ge(10228);const aa=Ft=>{const{keyCode:Rt}=Ft;Rt===yr.Z.ENTER&&Ft.stopPropagation()};var Pl=ce.forwardRef((Ft,Rt)=>ce.createElement("div",{className:Ft.className,onClick:en=>en.stopPropagation(),onKeyDown:aa,ref:Rt},Ft.children));function Dl(Ft){let Rt=[];return(Ft||[]).forEach(en=>{let{value:on,children:Sn}=en;Rt.push(on),Sn&&(Rt=[].concat((0,jr.Z)(Rt),(0,jr.Z)(Dl(Sn))))}),Rt}function Fl(Ft){return Ft.some(Rt=>{let{children:en}=Rt;return en})}function Di(Ft,Rt){return typeof Rt=="string"||typeof Rt=="number"?Rt==null?void 0:Rt.toString().toLowerCase().includes(Ft.trim().toLowerCase()):!1}function mc(Ft){let{filters:Rt,prefixCls:en,filteredKeys:on,filterMultiple:Sn,searchValue:fn,filterSearch:Bn}=Ft;return Rt.map((Rn,In)=>{const Qn=String(Rn.value);if(Rn.children)return{key:Qn||In,label:Rn.text,popupClassName:`${en}-dropdown-submenu`,children:mc({filters:Rn.children,prefixCls:en,filteredKeys:on,filterMultiple:Sn,searchValue:fn,filterSearch:Bn})};const rr=Sn?No.default:Tr.ZP,tr={key:Rn.value!==void 0?Qn:In,label:ce.createElement(ce.Fragment,null,ce.createElement(rr,{checked:on.includes(Qn)}),ce.createElement("span",null,Rn.text))};return fn.trim()?typeof Bn=="function"?Bn(fn,Rn)?tr:null:Di(fn,Rn.text)?tr:null:tr})}function tl(Ft){var Rt,en;const{tablePrefixCls:on,prefixCls:Sn,column:fn,dropdownPrefixCls:Bn,columnKey:Rn,filterMultiple:In,filterMode:Qn="menu",filterSearch:rr=!1,filterState:tr,triggerFilter:kr,locale:Pr,children:gr,getPopupContainer:qr}=Ft,{filterDropdownOpen:xr,onFilterDropdownOpenChange:Xr,filterResetToDefaultFilteredValue:Zr,defaultFilteredValue:hi,filterDropdownVisible:Oi,onFilterDropdownVisibleChange:Wi}=fn,[ti,ki]=ce.useState(!1),ho=!!(tr&&(!((Rt=tr.filteredKeys)===null||Rt===void 0)&&Rt.length||tr.forceFiltered)),ci=Ai=>{ki(Ai),Xr==null||Xr(Ai),Wi==null||Wi(Ai)},Ei=(en=xr!=null?xr:Oi)!==null&&en!==void 0?en:ti,ui=tr==null?void 0:tr.filteredKeys,[$r,xi]=Io(ui||[]),Fi=Ai=>{let{selectedKeys:fo}=Ai;xi(fo)},Yi=(Ai,fo)=>{let{node:Bo,checked:Ro}=fo;Fi(In?{selectedKeys:Ai}:{selectedKeys:Ro&&Bo.key?[Bo.key]:[]})};ce.useEffect(()=>{ti&&Fi({selectedKeys:ui||[]})},[ui]);const[eo,ni]=ce.useState([]),po=Ai=>{ni(Ai)},[wo,Qo]=ce.useState(""),Ao=Ai=>{const{value:fo}=Ai.target;Qo(fo)};ce.useEffect(()=>{ti||Qo("")},[ti]);const Na=Ai=>{const fo=Ai&&Ai.length?Ai:null;if(fo===null&&(!tr||!tr.filteredKeys)||(0,ge.Z)(fo,tr==null?void 0:tr.filteredKeys,!0))return null;kr({column:fn,key:Rn,filteredKeys:fo})},Ta=()=>{ci(!1),Na($r())},vo=function(){let{confirm:Ai,closeDropdown:fo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ai&&Na([]),fo&&ci(!1),Qo(""),xi(Zr?(hi||[]).map(Bo=>String(Bo)):[])},Gi=function(){let{closeDropdown:Ai}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ai&&ci(!1),Na($r())},Wo=Ai=>{Ai&&ui!==void 0&&xi(ui||[]),ci(Ai),!Ai&&!fn.filterDropdown&&Ta()},Aa=$e()({[`${Bn}-menu-without-submenu`]:!Fl(fn.filters||[])}),Sa=Ai=>{if(Ai.target.checked){const fo=Dl(fn==null?void 0:fn.filters).map(Bo=>String(Bo));xi(fo)}else xi([])},is=Ai=>{let{filters:fo}=Ai;return(fo||[]).map((Bo,Ro)=>{const bs=String(Bo.value),ls={title:Bo.text,key:Bo.value!==void 0?bs:Ro};return Bo.children&&(ls.children=is({filters:Bo.children})),ls})},to=Ai=>{var fo;return Object.assign(Object.assign({},Ai),{text:Ai.title,value:Ai.key,children:((fo=Ai.children)===null||fo===void 0?void 0:fo.map(Bo=>to(Bo)))||[]})};let Zi;if(typeof fn.filterDropdown=="function")Zi=fn.filterDropdown({prefixCls:`${Bn}-custom`,setSelectedKeys:Ai=>Fi({selectedKeys:Ai}),selectedKeys:$r(),confirm:Gi,clearFilters:vo,filters:fn.filters,visible:Ei,close:()=>{ci(!1)}});else if(fn.filterDropdown)Zi=fn.filterDropdown;else{const Ai=$r()||[],fo=()=>(fn.filters||[]).length===0?ce.createElement(bi.Z,{image:bi.Z.PRESENTED_IMAGE_SIMPLE,description:Pr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Qn==="tree"?ce.createElement(ce.Fragment,null,ce.createElement(ql,{filterSearch:rr,value:wo,onChange:Ao,tablePrefixCls:on,locale:Pr}),ce.createElement("div",{className:`${on}-filter-dropdown-tree`},In?ce.createElement(No.default,{checked:Ai.length===Dl(fn.filters).length,indeterminate:Ai.length>0&&Ai.length<Dl(fn.filters).length,className:`${on}-filter-dropdown-checkall`,onChange:Sa},Pr.filterCheckall):null,ce.createElement(Ba.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:In,checkStrictly:!In,className:`${Bn}-menu`,onCheck:Yi,checkedKeys:Ai,selectedKeys:Ai,showIcon:!1,treeData:is({filters:fn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:wo.trim()?Ro=>typeof rr=="function"?rr(wo,to(Ro)):Di(wo,Ro.title):void 0}))):ce.createElement(ce.Fragment,null,ce.createElement(ql,{filterSearch:rr,value:wo,onChange:Ao,tablePrefixCls:on,locale:Pr}),ce.createElement(lo.default,{selectable:!0,multiple:In,prefixCls:`${Bn}-menu`,className:Aa,onSelect:Fi,onDeselect:Fi,selectedKeys:Ai,getPopupContainer:qr,openKeys:eo,onOpenChange:po,items:mc({filters:fn.filters||[],filterSearch:rr,prefixCls:Sn,filteredKeys:$r(),filterMultiple:In,searchValue:wo})})),Bo=()=>Zr?(0,ge.Z)((hi||[]).map(Ro=>String(Ro)),Ai,!0):Ai.length===0;Zi=ce.createElement(ce.Fragment,null,fo(),ce.createElement("div",{className:`${Sn}-dropdown-btns`},ce.createElement(qi.ZP,{type:"link",size:"small",disabled:Bo(),onClick:()=>vo()},Pr.filterReset),ce.createElement(qi.ZP,{type:"primary",size:"small",onClick:Ta},Pr.filterConfirm)))}fn.filterDropdown&&(Zi=ce.createElement(ao.J,{selectable:void 0},Zi));const no=()=>ce.createElement(Pl,{className:`${Sn}-dropdown`},Zi);let Ni;typeof fn.filterIcon=="function"?Ni=fn.filterIcon(ho):fn.filterIcon?Ni=fn.filterIcon:Ni=ce.createElement(ro,null);const{direction:Zo}=ce.useContext(io.E_);return ce.createElement("div",{className:`${Sn}-column`},ce.createElement("span",{className:`${on}-column-title`},gr),ce.createElement(xs.Z,{dropdownRender:no,trigger:["click"],open:Ei,onOpenChange:Wo,getPopupContainer:qr,placement:Zo==="rtl"?"bottomLeft":"bottomRight"},ce.createElement("span",{role:"button",tabIndex:-1,className:$e()(`${Sn}-trigger`,{active:ho}),onClick:Ai=>{Ai.stopPropagation()}},Ni)))}var nl=tl;function As(Ft,Rt,en){let on=[];return(Ft||[]).forEach((Sn,fn)=>{var Bn;const Rn=qa(fn,en);if(Sn.filters||"filterDropdown"in Sn||"onFilter"in Sn)if("filteredValue"in Sn){let In=Sn.filteredValue;"filterDropdown"in Sn||(In=(Bn=In==null?void 0:In.map(String))!==null&&Bn!==void 0?Bn:In),on.push({column:Sn,key:Jo(Sn,Rn),filteredKeys:In,forceFiltered:Sn.filtered})}else on.push({column:Sn,key:Jo(Sn,Rn),filteredKeys:Rt&&Sn.defaultFilteredValue?Sn.defaultFilteredValue:void 0,forceFiltered:Sn.filtered});"children"in Sn&&(on=[].concat((0,jr.Z)(on),(0,jr.Z)(As(Sn.children,Rt,Rn))))}),on}function Eu(Ft,Rt,en,on,Sn,fn,Bn,Rn){return en.map((In,Qn)=>{const rr=qa(Qn,Rn),{filterMultiple:tr=!0,filterMode:kr,filterSearch:Pr}=In;let gr=In;if(gr.filters||gr.filterDropdown){const qr=Jo(gr,rr),xr=on.find(Xr=>{let{key:Zr}=Xr;return qr===Zr});gr=Object.assign(Object.assign({},gr),{title:Xr=>ce.createElement(nl,{tablePrefixCls:Ft,prefixCls:`${Ft}-filter`,dropdownPrefixCls:Rt,column:gr,columnKey:qr,filterState:xr,filterMultiple:tr,filterMode:kr,filterSearch:Pr,triggerFilter:fn,locale:Sn,getPopupContainer:Bn},La(In.title,Xr))})}return"children"in gr&&(gr=Object.assign(Object.assign({},gr),{children:Eu(Ft,Rt,gr.children,on,Sn,fn,Bn,rr)})),gr})}function Ru(Ft){const Rt={};return Ft.forEach(en=>{let{key:on,filteredKeys:Sn,column:fn}=en;const{filters:Bn,filterDropdown:Rn}=fn;if(Rn)Rt[on]=Sn||null;else if(Array.isArray(Sn)){const In=Dl(Bn);Rt[on]=In.filter(Qn=>Sn.includes(String(Qn)))}else Rt[on]=null}),Rt}function _s(Ft,Rt){return Rt.reduce((en,on)=>{const{column:{onFilter:Sn,filters:fn},filteredKeys:Bn}=on;return Sn&&Bn&&Bn.length?en.filter(Rn=>Bn.some(In=>{const Qn=Dl(fn),rr=Qn.findIndex(kr=>String(kr)===String(In)),tr=rr!==-1?Qn[rr]:In;return Sn(tr,Rn)})):en},Ft)}const dl=Ft=>Ft.flatMap(Rt=>"children"in Rt?[Rt].concat((0,jr.Z)(dl(Rt.children||[]))):[Rt]);function $c(Ft){let{prefixCls:Rt,dropdownPrefixCls:en,mergedColumns:on,onFilterChange:Sn,getPopupContainer:fn,locale:Bn}=Ft;const Rn=ce.useMemo(()=>dl(on||[]),[on]),[In,Qn]=ce.useState(()=>As(Rn,!0)),rr=ce.useMemo(()=>{const gr=As(Rn,!1);if(gr.length===0)return gr;let qr=!0,xr=!0;if(gr.forEach(Xr=>{let{filteredKeys:Zr}=Xr;Zr!==void 0?qr=!1:xr=!1}),qr){const Xr=(Rn||[]).map((Zr,hi)=>Jo(Zr,qa(hi)));return In.filter(Zr=>{let{key:hi}=Zr;return Xr.includes(hi)}).map(Zr=>{const hi=Rn[Xr.findIndex(Oi=>Oi===Zr.key)];return Object.assign(Object.assign({},Zr),{column:Object.assign(Object.assign({},Zr.column),hi),forceFiltered:hi.filtered})})}return gr},[Rn,In]),tr=ce.useMemo(()=>Ru(rr),[rr]),kr=gr=>{const qr=rr.filter(xr=>{let{key:Xr}=xr;return Xr!==gr.key});qr.push(gr),Qn(qr),Sn(Ru(qr),qr)};return[gr=>Eu(Rt,en,gr,rr,Bn,kr,fn),rr,tr]}var hh=$c;function Gc(Ft,Rt,en){const on=ce.useRef({});function Sn(fn){if(!on.current||on.current.data!==Ft||on.current.childrenColumnName!==Rt||on.current.getRowKey!==en){let Rn=function(In){In.forEach((Qn,rr)=>{const tr=en(Qn,rr);Bn.set(tr,Qn),Qn&&typeof Qn=="object"&&Rt in Qn&&Rn(Qn[Rt]||[])})};const Bn=new Map;Rn(Ft),on.current={data:Ft,childrenColumnName:Rt,kvMap:Bn,getRowKey:en}}return on.current.kvMap.get(fn)}return[Sn]}var Hh=Ge(50371),Hc=function(Ft,Rt){var en={};for(var on in Ft)Object.prototype.hasOwnProperty.call(Ft,on)&&Rt.indexOf(on)<0&&(en[on]=Ft[on]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,on=Object.getOwnPropertySymbols(Ft);Sn<on.length;Sn++)Rt.indexOf(on[Sn])<0&&Object.prototype.propertyIsEnumerable.call(Ft,on[Sn])&&(en[on[Sn]]=Ft[on[Sn]]);return en};const vc=10;function _u(Ft,Rt){const en={current:Ft.current,pageSize:Ft.pageSize};return Object.keys(Rt&&typeof Rt=="object"?Rt:{}).forEach(Sn=>{const fn=Ft[Sn];typeof fn!="function"&&(en[Sn]=fn)}),en}function Bl(Ft,Rt,en){const on=en&&typeof en=="object"?en:{},{total:Sn=0}=on,fn=Hc(on,["total"]),[Bn,Rn]=(0,ce.useState)(()=>({current:"defaultCurrent"in fn?fn.defaultCurrent:1,pageSize:"defaultPageSize"in fn?fn.defaultPageSize:vc})),In=(0,Hh.Z)(Bn,fn,{total:Sn>0?Sn:Ft}),Qn=Math.ceil((Sn||Ft)/In.pageSize);In.current>Qn&&(In.current=Qn||1);const rr=(kr,Pr)=>{Rn({current:kr!=null?kr:1,pageSize:Pr||In.pageSize})},tr=(kr,Pr)=>{var gr;en&&((gr=en.onChange)===null||gr===void 0||gr.call(en,kr,Pr)),rr(kr,Pr),Rt(kr,Pr||(In==null?void 0:In.pageSize))};return en===!1?[{},()=>{}]:[Object.assign(Object.assign({},In),{onChange:tr}),rr]}var dh=Bl,Uc=Ge(84105),yc=Ge(35654),oo=Ge(90782),Do=Ge(71430),Es=Ge(18929);const Xa={},_a="SELECT_ALL",ha="SELECT_INVERT",Ea="SELECT_NONE",Ka=[],za=(Ft,Rt)=>{let en=[];return(Rt||[]).forEach(on=>{en.push(on),on&&typeof on=="object"&&Ft in on&&(en=[].concat((0,jr.Z)(en),(0,jr.Z)(za(Ft,on[Ft]))))}),en};var Rl=(Ft,Rt)=>{const{preserveSelectedRowKeys:en,selectedRowKeys:on,defaultSelectedRowKeys:Sn,getCheckboxProps:fn,onChange:Bn,onSelect:Rn,onSelectAll:In,onSelectInvert:Qn,onSelectNone:rr,onSelectMultiple:tr,columnWidth:kr,type:Pr,selections:gr,fixed:qr,renderCell:xr,hideSelectAll:Xr,checkStrictly:Zr=!0}=Rt||{},{prefixCls:hi,data:Oi,pageData:Wi,getRecordByKey:ti,getRowKey:ki,expandType:ho,childrenColumnName:ci,locale:Ei,getPopupContainer:ui}=Ft,[$r,xi]=(0,Es.Z)(on||Sn||Ka,{value:on}),Fi=ce.useRef(new Map),Yi=(0,ce.useCallback)(to=>{if(en){const Zi=new Map;to.forEach(no=>{let Ni=ti(no);!Ni&&Fi.current.has(no)&&(Ni=Fi.current.get(no)),Zi.set(no,Ni)}),Fi.current=Zi}},[ti,en]);ce.useEffect(()=>{Yi($r)},[$r]);const{keyEntities:eo}=(0,ce.useMemo)(()=>{if(Zr)return{keyEntities:null};let to=Oi;if(en){const Zi=new Set(Oi.map((Ni,Zo)=>ki(Ni,Zo))),no=Array.from(Fi.current).reduce((Ni,Zo)=>{let[Ai,fo]=Zo;return Zi.has(Ai)?Ni:Ni.concat(fo)},[]);to=[].concat((0,jr.Z)(to),(0,jr.Z)(no))}return(0,Do.I8)(to,{externalGetKey:ki,childrenPropName:ci})},[Oi,ki,Zr,ci,en]),ni=(0,ce.useMemo)(()=>za(ci,Wi),[ci,Wi]),po=(0,ce.useMemo)(()=>{const to=new Map;return ni.forEach((Zi,no)=>{const Ni=ki(Zi,no),Zo=(fn?fn(Zi):null)||{};to.set(Ni,Zo)}),to},[ni,ki,fn]),wo=(0,ce.useCallback)(to=>{var Zi;return!!(!((Zi=po.get(ki(to)))===null||Zi===void 0)&&Zi.disabled)},[po,ki]),[Qo,Ao]=(0,ce.useMemo)(()=>{if(Zr)return[$r||[],[]];const{checkedKeys:to,halfCheckedKeys:Zi}=(0,oo.S)($r,!0,eo,wo);return[to||[],Zi]},[$r,Zr,eo,wo]),Na=(0,ce.useMemo)(()=>{const to=Pr==="radio"?Qo.slice(0,1):Qo;return new Set(to)},[Qo,Pr]),Ta=(0,ce.useMemo)(()=>Pr==="radio"?new Set:new Set(Ao),[Ao,Pr]),[vo,Gi]=(0,ce.useState)(null);ce.useEffect(()=>{Rt||xi(Ka)},[!!Rt]);const Wo=(0,ce.useCallback)((to,Zi)=>{let no,Ni;Yi(to),en?(no=to,Ni=to.map(Zo=>Fi.current.get(Zo))):(no=[],Ni=[],to.forEach(Zo=>{const Ai=ti(Zo);Ai!==void 0&&(no.push(Zo),Ni.push(Ai))})),xi(no),Bn==null||Bn(no,Ni,{type:Zi})},[xi,ti,Bn,en]),Aa=(0,ce.useCallback)((to,Zi,no,Ni)=>{if(Rn){const Zo=no.map(Ai=>ti(Ai));Rn(ti(to),Zi,Zo,Ni)}Wo(no,"single")},[Rn,ti,Wo]),Sa=(0,ce.useMemo)(()=>!gr||Xr?null:(gr===!0?[_a,ha,Ea]:gr).map(Zi=>Zi===_a?{key:"all",text:Ei.selectionAll,onSelect(){Wo(Oi.map((no,Ni)=>ki(no,Ni)).filter(no=>{const Ni=po.get(no);return!(Ni!=null&&Ni.disabled)||Na.has(no)}),"all")}}:Zi===ha?{key:"invert",text:Ei.selectInvert,onSelect(){const no=new Set(Na);Wi.forEach((Zo,Ai)=>{const fo=ki(Zo,Ai),Bo=po.get(fo);Bo!=null&&Bo.disabled||(no.has(fo)?no.delete(fo):no.add(fo))});const Ni=Array.from(no);Qn&&Qn(Ni),Wo(Ni,"invert")}}:Zi===Ea?{key:"none",text:Ei.selectNone,onSelect(){rr==null||rr(),Wo(Array.from(Na).filter(no=>{const Ni=po.get(no);return Ni==null?void 0:Ni.disabled}),"none")}}:Zi).map(Zi=>Object.assign(Object.assign({},Zi),{onSelect:function(){for(var no,Ni,Zo=arguments.length,Ai=new Array(Zo),fo=0;fo<Zo;fo++)Ai[fo]=arguments[fo];(Ni=Zi.onSelect)===null||Ni===void 0||(no=Ni).call.apply(no,[Zi].concat(Ai)),Gi(null)}})),[gr,Na,Wi,ki,Qn,Wo]);return[(0,ce.useCallback)(to=>{var Zi;if(!Rt)return to.filter(ea=>ea!==Xa);let no=(0,jr.Z)(to);const Ni=new Set(Na),Zo=ni.map(ki).filter(ea=>!po.get(ea).disabled),Ai=Zo.every(ea=>Ni.has(ea)),fo=Zo.some(ea=>Ni.has(ea)),Bo=()=>{const ea=[];Ai?Zo.forEach(ua=>{Ni.delete(ua),ea.push(ua)}):Zo.forEach(ua=>{Ni.has(ua)||(Ni.add(ua),ea.push(ua))});const ia=Array.from(Ni);In==null||In(!Ai,ia.map(ua=>ti(ua)),ea.map(ua=>ti(ua))),Wo(ia,"all"),Gi(null)};let Ro;if(Pr!=="radio"){let ea;if(Sa){const ko={getPopupContainer:ui,items:Sa.map((fa,ms)=>{const{key:pl,text:zl,onSelect:El}=fa;return{key:pl!=null?pl:ms,onClick:()=>{El==null||El(Zo)},label:zl}})};ea=ce.createElement("div",{className:`${hi}-selection-extra`},ce.createElement(xs.Z,{menu:ko,getPopupContainer:ui},ce.createElement("span",null,ce.createElement(Uc.Z,null))))}const ia=ni.map((ko,fa)=>{const ms=ki(ko,fa),pl=po.get(ms)||{};return Object.assign({checked:Ni.has(ms)},pl)}).filter(ko=>{let{disabled:fa}=ko;return fa}),ua=!!ia.length&&ia.length===ni.length,Za=ua&&ia.every(ko=>{let{checked:fa}=ko;return fa}),gs=ua&&ia.some(ko=>{let{checked:fa}=ko;return fa});Ro=!Xr&&ce.createElement("div",{className:`${hi}-selection`},ce.createElement(No.default,{checked:ua?Za:!!ni.length&&Ai,indeterminate:ua?!Za&&gs:!Ai&&fo,onChange:Bo,disabled:ni.length===0||ua,"aria-label":ea?"Custom selection":"Select all",skipGroup:!0}),ea)}let bs;Pr==="radio"?bs=(ea,ia,ua)=>{const Za=ki(ia,ua),gs=Ni.has(Za);return{node:ce.createElement(Tr.ZP,Object.assign({},po.get(Za),{checked:gs,onClick:ko=>ko.stopPropagation(),onChange:ko=>{Ni.has(Za)||Aa(Za,!0,[Za],ko.nativeEvent)}})),checked:gs}}:bs=(ea,ia,ua)=>{var Za;const gs=ki(ia,ua),ko=Ni.has(gs),fa=Ta.has(gs),ms=po.get(gs);let pl;return ho==="nest"?pl=fa:pl=(Za=ms==null?void 0:ms.indeterminate)!==null&&Za!==void 0?Za:fa,{node:ce.createElement(No.default,Object.assign({},ms,{indeterminate:pl,checked:ko,skipGroup:!0,onClick:zl=>zl.stopPropagation(),onChange:zl=>{let{nativeEvent:El}=zl;const{shiftKey:eu}=El;let tu=-1,$l=-1;if(eu&&Zr){const na=new Set([vo,gs]);Zo.some((Ts,Ga)=>{if(na.has(Ts))if(tu===-1)tu=Ga;else return $l=Ga,!0;return!1})}if($l!==-1&&tu!==$l&&Zr){const na=Zo.slice(tu,$l+1),Ts=[];ko?na.forEach(pa=>{Ni.has(pa)&&(Ts.push(pa),Ni.delete(pa))}):na.forEach(pa=>{Ni.has(pa)||(Ts.push(pa),Ni.add(pa))});const Ga=Array.from(Ni);tr==null||tr(!ko,Ga.map(pa=>ti(pa)),Ts.map(pa=>ti(pa))),Wo(Ga,"multiple")}else{const na=Qo;if(Zr){const Ts=ko?(0,yc._5)(na,gs):(0,yc.L0)(na,gs);Aa(gs,!ko,Ts,El)}else{const Ts=(0,oo.S)([].concat((0,jr.Z)(na),[gs]),!0,eo,wo),{checkedKeys:Ga,halfCheckedKeys:pa}=Ts;let Gl=Ga;if(ko){const oc=new Set(Ga);oc.delete(gs),Gl=(0,oo.S)(Array.from(oc),{checked:!1,halfCheckedKeys:pa},eo,wo).checkedKeys}Aa(gs,!ko,Gl,El)}}Gi(ko?null:gs)}})),checked:ko}};const ls=(ea,ia,ua)=>{const{node:Za,checked:gs}=bs(ea,ia,ua);return xr?xr(gs,ia,ua,Za):Za};if(!no.includes(Xa))if(no.findIndex(ea=>{var ia;return((ia=ea[fr])===null||ia===void 0?void 0:ia.columnType)==="EXPAND_COLUMN"})===0){const[ea,...ia]=no;no=[ea,Xa].concat((0,jr.Z)(ia))}else no=[Xa].concat((0,jr.Z)(no));const $s=no.indexOf(Xa);no=no.filter((ea,ia)=>ea!==Xa||ia===$s);const qo=no[$s-1],Ps=no[$s+1];let ts=qr;ts===void 0&&((Ps==null?void 0:Ps.fixed)!==void 0?ts=Ps.fixed:(qo==null?void 0:qo.fixed)!==void 0&&(ts=qo.fixed)),ts&&qo&&((Zi=qo[fr])===null||Zi===void 0?void 0:Zi.columnType)==="EXPAND_COLUMN"&&qo.fixed===void 0&&(qo.fixed=ts);const ps=$e()(`${hi}-selection-col`,{[`${hi}-selection-col-with-dropdown`]:gr&&Pr==="checkbox"}),Wu={fixed:ts,width:kr,className:`${hi}-selection-column`,title:Rt.columnTitle||Ro,render:ls,onCell:Rt.onCell,[fr]:{className:ps}};return no.map(ea=>ea===Xa?Wu:ea)},[ki,ni,Rt,Qo,Na,Ta,kr,Sa,ho,vo,po,tr,Aa,wo]),Na]},ka=Ge(89489),wd=Ge(59477),bd=Ge(6848);const Wc="ascend",gi="descend";function fh(Ft){return typeof Ft.sorter=="object"&&typeof Ft.sorter.multiple=="number"?Ft.sorter.multiple:!1}function Qt(Ft){return typeof Ft=="function"?Ft:Ft&&typeof Ft=="object"&&Ft.compare?Ft.compare:!1}function Vn(Ft,Rt){return Rt?Ft[Ft.indexOf(Rt)+1]:Ft[0]}function Pd(Ft,Rt,en){let on=[];function Sn(fn,Bn){on.push({column:fn,key:Jo(fn,Bn),multiplePriority:fh(fn),sortOrder:fn.sortOrder})}return(Ft||[]).forEach((fn,Bn)=>{const Rn=qa(Bn,en);fn.children?("sortOrder"in fn&&Sn(fn,Rn),on=[].concat((0,jr.Z)(on),(0,jr.Z)(Pd(fn.children,Rt,Rn)))):fn.sorter&&("sortOrder"in fn?Sn(fn,Rn):Rt&&fn.defaultSortOrder&&on.push({column:fn,key:Jo(fn,Rn),multiplePriority:fh(fn),sortOrder:fn.defaultSortOrder}))}),on}function af(Ft,Rt,en,on,Sn,fn,Bn,Rn){return(Rt||[]).map((In,Qn)=>{const rr=qa(Qn,Rn);let tr=In;if(tr.sorter){const kr=tr.sortDirections||Sn,Pr=tr.showSorterTooltip===void 0?Bn:tr.showSorterTooltip,gr=Jo(tr,rr),qr=en.find(ho=>{let{key:ci}=ho;return ci===gr}),xr=qr?qr.sortOrder:null,Xr=Vn(kr,xr);let Zr;if(In.sortIcon)Zr=In.sortIcon({sortOrder:xr});else{const ho=kr.includes(Wc)&&ce.createElement(wd.Z,{className:$e()(`${Ft}-column-sorter-up`,{active:xr===Wc})}),ci=kr.includes(gi)&&ce.createElement(ka.Z,{className:$e()(`${Ft}-column-sorter-down`,{active:xr===gi})});Zr=ce.createElement("span",{className:$e()(`${Ft}-column-sorter`,{[`${Ft}-column-sorter-full`]:!!(ho&&ci)})},ce.createElement("span",{className:`${Ft}-column-sorter-inner`,"aria-hidden":"true"},ho,ci))}const{cancelSort:hi,triggerAsc:Oi,triggerDesc:Wi}=fn||{};let ti=hi;Xr===gi?ti=Wi:Xr===Wc&&(ti=Oi);const ki=typeof Pr=="object"?Pr:{title:ti};tr=Object.assign(Object.assign({},tr),{className:$e()(tr.className,{[`${Ft}-column-sort`]:xr}),title:ho=>{const ci=ce.createElement("div",{className:`${Ft}-column-sorters`},ce.createElement("span",{className:`${Ft}-column-title`},La(In.title,ho)),Zr);return Pr?ce.createElement(bd.Z,Object.assign({},ki),ci):ci},onHeaderCell:ho=>{const ci=In.onHeaderCell&&In.onHeaderCell(ho)||{},Ei=ci.onClick,ui=ci.onKeyDown;ci.onClick=Fi=>{on({column:In,key:gr,sortOrder:Xr,multiplePriority:fh(In)}),Ei==null||Ei(Fi)},ci.onKeyDown=Fi=>{Fi.keyCode===yr.Z.ENTER&&(on({column:In,key:gr,sortOrder:Xr,multiplePriority:fh(In)}),ui==null||ui(Fi))};const $r=es(In.title,{}),xi=$r==null?void 0:$r.toString();return xr?ci["aria-sort"]=xr==="ascend"?"ascending":"descending":ci["aria-label"]=xi||"",ci.className=$e()(ci.className,`${Ft}-column-has-sorters`),ci.tabIndex=0,In.ellipsis&&(ci.title=($r!=null?$r:"").toString()),ci}})}return"children"in tr&&(tr=Object.assign(Object.assign({},tr),{children:af(Ft,tr.children,en,on,Sn,fn,Bn,rr)})),tr})}function $u(Ft){const{column:Rt,sortOrder:en}=Ft;return{column:Rt,order:en,field:Rt.dataIndex,columnKey:Rt.key}}function Gu(Ft){const Rt=Ft.filter(en=>{let{sortOrder:on}=en;return on}).map($u);return Rt.length===0&&Ft.length?Object.assign(Object.assign({},$u(Ft[Ft.length-1])),{column:void 0}):Rt.length<=1?Rt[0]||{}:Rt}function ic(Ft,Rt,en){const on=Rt.slice().sort((Bn,Rn)=>Rn.multiplePriority-Bn.multiplePriority),Sn=Ft.slice(),fn=on.filter(Bn=>{let{column:{sorter:Rn},sortOrder:In}=Bn;return Qt(Rn)&&In});return fn.length?Sn.sort((Bn,Rn)=>{for(let In=0;In<fn.length;In+=1){const Qn=fn[In],{column:{sorter:rr},sortOrder:tr}=Qn,kr=Qt(rr);if(kr&&tr){const Pr=kr(Bn,Rn,tr);if(Pr!==0)return tr===Wc?Pr:-Pr}}return 0}).map(Bn=>{const Rn=Bn[en];return Rn?Object.assign(Object.assign({},Bn),{[en]:ic(Rn,Rt,en)}):Bn}):Sn}function Cd(Ft){let{prefixCls:Rt,mergedColumns:en,onSorterChange:on,sortDirections:Sn,tableLocale:fn,showSorterTooltip:Bn}=Ft;const[Rn,In]=ce.useState(Pd(en,!0)),Qn=ce.useMemo(()=>{let gr=!0;const qr=Pd(en,!1);if(!qr.length)return Rn;const xr=[];function Xr(hi){gr?xr.push(hi):xr.push(Object.assign(Object.assign({},hi),{sortOrder:null}))}let Zr=null;return qr.forEach(hi=>{Zr===null?(Xr(hi),hi.sortOrder&&(hi.multiplePriority===!1?gr=!1:Zr=!0)):(Zr&&hi.multiplePriority!==!1||(gr=!1),Xr(hi))}),xr},[en,Rn]),rr=ce.useMemo(()=>{const gr=Qn.map(qr=>{let{column:xr,sortOrder:Xr}=qr;return{column:xr,order:Xr}});return{sortColumns:gr,sortColumn:gr[0]&&gr[0].column,sortOrder:gr[0]&&gr[0].order}},[Qn]);function tr(gr){let qr;gr.multiplePriority===!1||!Qn.length||Qn[0].multiplePriority===!1?qr=[gr]:qr=[].concat((0,jr.Z)(Qn.filter(xr=>{let{key:Xr}=xr;return Xr!==gr.key})),[gr]),In(qr),on(Gu(qr),qr)}return[gr=>af(Rt,gr,Qn,tr,Sn,fn,Bn),Qn,rr,()=>Gu(Qn)]}function ph(Ft,Rt){return Ft.map(en=>{const on=Object.assign({},en);return on.title=La(en.title,Rt),"children"in on&&(on.children=ph(on.children,Rt)),on})}function $a(Ft){return[ce.useCallback(en=>ph(en,Ft),[Ft])]}var Ui=ai((Ft,Rt)=>{const{_renderTimes:en}=Ft,{_renderTimes:on}=Rt;return en!==on}),rl=_r((Ft,Rt)=>{const{_renderTimes:en}=Ft,{_renderTimes:on}=Rt;return en!==on}),zs=Ge(64993),ya=Ge(17313),Po=Ge(83116),ss=Ge(37613),da=Ft=>{const{componentCls:Rt}=Ft,en=`${Ft.lineWidth}px ${Ft.lineType} ${Ft.tableBorderColor}`,on=(Sn,fn,Bn)=>({[`&${Rt}-${Sn}`]:{[`> ${Rt}-container`]:{[`> ${Rt}-content, > ${Rt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Rt}-expanded-row-fixed`]:{margin:`-${fn}px -${Bn+Ft.lineWidth}px`}}}}}});return{[`${Rt}-wrapper`]:{[`${Rt}${Rt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Rt}-title`]:{border:en,borderBottom:0},[`> ${Rt}-container`]:{borderInlineStart:en,borderTop:en,[`
|
|
|
> ${Rt}-content,
|
|
|
> ${Rt}-header,
|
|
|
> ${Rt}-body,
|
|
|
> ${Rt}-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:en},"> thead":{"> tr:not(:last-child) > th":{borderBottom:en},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Rt}-cell-fix-right-first::after`]:{borderInlineEnd:en}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Rt}-expanded-row-fixed`]:{margin:`-${Ft.tablePaddingVertical}px -${Ft.tablePaddingHorizontal+Ft.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ft.lineWidth,bottom:0,borderInlineEnd:en,content:'""'}}}}}},[`&${Rt}-scroll-horizontal`]:{[`> ${Rt}-container > ${Rt}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Rt}-expanded-row,
|
|
|
> tr${Rt}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},on("middle",Ft.tablePaddingVerticalMiddle,Ft.tablePaddingHorizontalMiddle)),on("small",Ft.tablePaddingVerticalSmall,Ft.tablePaddingHorizontalSmall)),{[`> ${Rt}-footer`]:{border:en,borderTop:0}}),[`${Rt}-cell`]:{[`${Rt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ft.lineWidth}px 0 ${Ft.lineWidth}px ${Ft.tableHeaderBg}`}},[`${Rt}-bordered ${Rt}-cell-scrollbar`]:{borderInlineEnd:en}}}},ws=Ft=>{const{componentCls:Rt}=Ft;return{[`${Rt}-wrapper`]:{[`${Rt}-cell-ellipsis`]:Object.assign(Object.assign({},ya.vS),{wordBreak:"keep-all",[`
|
|
|
&${Rt}-cell-fix-left-last,
|
|
|
&${Rt}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Rt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Rt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},$o=Ft=>{const{componentCls:Rt}=Ft;return{[`${Rt}-wrapper`]:{[`${Rt}-tbody > tr${Rt}-placeholder`]:{textAlign:"center",color:Ft.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ft.colorBgContainer}}}}},il=Ge(15969),la=Ft=>{const{componentCls:Rt,antCls:en,controlInteractiveSize:on,motionDurationSlow:Sn,lineWidth:fn,paddingXS:Bn,lineType:Rn,tableBorderColor:In,tableExpandIconBg:Qn,tableExpandColumnWidth:rr,borderRadius:tr,fontSize:kr,fontSizeSM:Pr,lineHeight:gr,tablePaddingVertical:qr,tablePaddingHorizontal:xr,tableExpandedRowBg:Xr,paddingXXS:Zr}=Ft,hi=on/2-fn,Oi=hi*2+fn*3,Wi=`${fn}px ${Rn} ${In}`,ti=Zr-fn;return{[`${Rt}-wrapper`]:{[`${Rt}-expand-icon-col`]:{width:rr},[`${Rt}-row-expand-icon-cell`]:{textAlign:"center",[`${Rt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Rt}-row-indent`]:{height:1,float:"left"},[`${Rt}-row-expand-icon`]:Object.assign(Object.assign({},(0,il.N)(Ft)),{position:"relative",float:"left",boxSizing:"border-box",width:Oi,height:Oi,padding:0,color:"inherit",lineHeight:`${Oi}px`,background:Qn,border:Wi,borderRadius:tr,transform:`scale(${on/Oi})`,transition:`all ${Sn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Sn} ease-out`,content:'""'},"&::before":{top:hi,insetInlineEnd:ti,insetInlineStart:ti,height:fn},"&::after":{top:ti,bottom:ti,insetInlineStart:hi,width:fn,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Rt}-row-indent + ${Rt}-row-expand-icon`]:{marginTop:(kr*gr-fn*3)/2-Math.ceil((Pr*1.4-fn*3)/2),marginInlineEnd:Bn},[`tr${Rt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Xr}},[`${en}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Rt}-expanded-row-fixed`]:{position:"relative",margin:`-${qr}px -${xr}px`,padding:`${qr}px ${xr}px`}}}},Va=Ft=>{const{componentCls:Rt,antCls:en,iconCls:on,tableFilterDropdownWidth:Sn,tableFilterDropdownSearchWidth:fn,paddingXXS:Bn,paddingXS:Rn,colorText:In,lineWidth:Qn,lineType:rr,tableBorderColor:tr,tableHeaderIconColor:kr,fontSizeSM:Pr,tablePaddingHorizontal:gr,borderRadius:qr,motionDurationSlow:xr,colorTextDescription:Xr,colorPrimary:Zr,tableHeaderFilterActiveBg:hi,colorTextDisabled:Oi,tableFilterDropdownBg:Wi,tableFilterDropdownHeight:ti,controlItemBgHover:ki,controlItemBgActive:ho,boxShadowSecondary:ci,filterDropdownMenuBg:Ei}=Ft,ui=`${en}-dropdown`,$r=`${Rt}-filter-dropdown`,xi=`${en}-tree`,Fi=`${Qn}px ${rr} ${tr}`;return[{[`${Rt}-wrapper`]:{[`${Rt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Rt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Bn,marginInline:`${Bn}px ${-gr/2}px`,padding:`0 ${Bn}px`,color:kr,fontSize:Pr,borderRadius:qr,cursor:"pointer",transition:`all ${xr}`,"&:hover":{color:Xr,background:hi},"&.active":{color:Zr}}}},{[`${en}-dropdown`]:{[$r]:Object.assign(Object.assign({},(0,ya.Wf)(Ft)),{minWidth:Sn,backgroundColor:Wi,borderRadius:qr,boxShadow:ci,overflow:"hidden",[`${ui}-menu`]:{maxHeight:ti,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ei,"&:empty::after":{display:"block",padding:`${Rn}px 0`,color:Oi,fontSize:Pr,textAlign:"center",content:'"Not Found"'}},[`${$r}-tree`]:{paddingBlock:`${Rn}px 0`,paddingInline:Rn,[xi]:{padding:0},[`${xi}-treenode ${xi}-node-content-wrapper:hover`]:{backgroundColor:ki},[`${xi}-treenode-checkbox-checked ${xi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ho}}},[`${$r}-search`]:{padding:Rn,borderBottom:Fi,"&-input":{input:{minWidth:fn},[on]:{color:Oi}}},[`${$r}-checkall`]:{width:"100%",marginBottom:Bn,marginInlineStart:Bn},[`${$r}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Rn-Qn}px ${Rn}px`,overflow:"hidden",borderTop:Fi}})}},{[`${en}-dropdown ${$r}, ${$r}-submenu`]:{[`${en}-checkbox-wrapper + span`]:{paddingInlineStart:Rn,color:In},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Vc=Ft=>{const{componentCls:Rt,lineWidth:en,colorSplit:on,motionDurationSlow:Sn,zIndexTableFixed:fn,tableBg:Bn,zIndexTableSticky:Rn}=Ft,In=on;return{[`${Rt}-wrapper`]:{[`
|
|
|
${Rt}-cell-fix-left,
|
|
|
${Rt}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:fn,background:Bn},[`
|
|
|
${Rt}-cell-fix-left-first::after,
|
|
|
${Rt}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-en,width:30,transform:"translateX(100%)",transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},[`${Rt}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Rt}-cell-fix-right-first::after,
|
|
|
${Rt}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-en,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},[`${Rt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Rn+1,width:30,transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Rt}-ping-left`]:{[`&:not(${Rt}-has-fix-left) ${Rt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${In}`}},[`
|
|
|
${Rt}-cell-fix-left-first::after,
|
|
|
${Rt}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${In}`},[`${Rt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Rt}-ping-right`]:{[`&:not(${Rt}-has-fix-right) ${Rt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${In}`}},[`
|
|
|
${Rt}-cell-fix-right-first::after,
|
|
|
${Rt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${In}`}}}}},Hf=Ft=>{const{componentCls:Rt,antCls:en}=Ft;return{[`${Rt}-wrapper`]:{[`${Rt}-pagination${en}-pagination`]:{margin:`${Ft.margin}px 0`},[`${Rt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ft.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Uf=Ft=>{const{componentCls:Rt,tableRadius:en}=Ft;return{[`${Rt}-wrapper`]:{[Rt]:{[`${Rt}-title, ${Rt}-header`]:{borderRadius:`${en}px ${en}px 0 0`},[`${Rt}-title + ${Rt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Rt}-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:en,borderStartEndRadius:en,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:en},"> *:last-child":{borderStartEndRadius:en}}},"&-footer":{borderRadius:`0 0 ${en}px ${en}px`}}}}},Wh=Ft=>{const{componentCls:Rt}=Ft;return{[`${Rt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Rt}-pagination-left`]:{justifyContent:"flex-end"},[`${Rt}-pagination-right`]:{justifyContent:"flex-start"},[`${Rt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Rt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Rt}-row-indent`]:{float:"right"}}}}},Ed=Ft=>{const{componentCls:Rt,antCls:en,iconCls:on,fontSizeIcon:Sn,padding:fn,paddingXS:Bn,tableHeaderIconColor:Rn,tableHeaderIconColorHover:In,tableSelectionColumnWidth:Qn}=Ft;return{[`${Rt}-wrapper`]:{[`${Rt}-selection-col`]:{width:Qn,[`&${Rt}-selection-col-with-dropdown`]:{width:Qn+Sn+fn/4}},[`${Rt}-bordered ${Rt}-selection-col`]:{width:Qn+Bn*2,[`&${Rt}-selection-col-with-dropdown`]:{width:Qn+Sn+fn/4+Bn*2}},[`
|
|
|
table tr th${Rt}-selection-column,
|
|
|
table tr td${Rt}-selection-column
|
|
|
`]:{paddingInlineEnd:Ft.paddingXS,paddingInlineStart:Ft.paddingXS,textAlign:"center",[`${en}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Rt}-selection-column${Rt}-cell-fix-left`]:{zIndex:Ft.zIndexTableFixed+1},[`table tr th${Rt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Rt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Rt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ft.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ft.tablePaddingHorizontal/4}px`,[on]:{color:Rn,fontSize:Sn,verticalAlign:"baseline","&:hover":{color:In}}}}}},Zc=Ft=>{const{componentCls:Rt}=Ft,en=(on,Sn,fn,Bn)=>({[`${Rt}${Rt}-${on}`]:{fontSize:Bn,[`
|
|
|
${Rt}-title,
|
|
|
${Rt}-footer,
|
|
|
${Rt}-cell,
|
|
|
${Rt}-thead > tr > th,
|
|
|
${Rt}-tbody > tr > th,
|
|
|
${Rt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Sn}px ${fn}px`},[`${Rt}-filter-trigger`]:{marginInlineEnd:`-${fn/2}px`},[`${Rt}-expanded-row-fixed`]:{margin:`-${Sn}px -${fn}px`},[`${Rt}-tbody`]:{[`${Rt}-wrapper:only-child ${Rt}`]:{marginBlock:`-${Sn}px`,marginInline:`${Ft.tableExpandColumnWidth-fn}px -${fn}px`}},[`${Rt}-selection-column`]:{paddingInlineStart:`${fn/4}px`}}});return{[`${Rt}-wrapper`]:Object.assign(Object.assign({},en("middle",Ft.tablePaddingVerticalMiddle,Ft.tablePaddingHorizontalMiddle,Ft.tableFontSizeMiddle)),en("small",Ft.tablePaddingVerticalSmall,Ft.tablePaddingHorizontalSmall,Ft.tableFontSizeSmall))}},Hu=Ft=>{const{componentCls:Rt,marginXXS:en,fontSizeIcon:on,tableHeaderIconColor:Sn,tableHeaderIconColorHover:fn}=Ft;return{[`${Rt}-wrapper`]:{[`${Rt}-thead th${Rt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ft.motionDurationSlow}`,"&:hover":{background:Ft.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ft.colorPrimary},[`
|
|
|
&${Rt}-cell-fix-left:hover,
|
|
|
&${Rt}-cell-fix-right:hover
|
|
|
`]:{background:Ft.tableFixedHeaderSortActiveBg}},[`${Rt}-thead th${Rt}-column-sort`]:{background:Ft.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Rt}-column-sort`]:{background:Ft.tableBodySortBg},[`${Rt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Rt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Rt}-column-sorter`]:{marginInlineStart:en,color:Sn,fontSize:0,transition:`color ${Ft.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:on,"&.active":{color:Ft.colorPrimary}},[`${Rt}-column-sorter-up + ${Rt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Rt}-column-sorters:hover ${Rt}-column-sorter`]:{color:fn}}}},Xc=Ft=>{const{componentCls:Rt,opacityLoading:en,tableScrollThumbBg:on,tableScrollThumbBgHover:Sn,tableScrollThumbSize:fn,tableScrollBg:Bn,zIndexTableSticky:Rn,stickyScrollBarBorderRadius:In}=Ft,Qn=`${Ft.lineWidth}px ${Ft.lineType} ${Ft.tableBorderColor}`;return{[`${Rt}-wrapper`]:{[`${Rt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Rn,background:Ft.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${fn}px !important`,zIndex:Rn,display:"flex",alignItems:"center",background:Bn,borderTop:Qn,opacity:en,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:fn,backgroundColor:on,borderRadius:In,transition:`all ${Ft.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Sn}}}}}}},Uu=Ft=>{const{componentCls:Rt,lineWidth:en,tableBorderColor:on}=Ft,Sn=`${en}px ${Ft.lineType} ${on}`;return{[`${Rt}-wrapper`]:{[`${Rt}-summary`]:{position:"relative",zIndex:Ft.zIndexTableFixed,background:Ft.tableBg,"> tr":{"> th, > td":{borderBottom:Sn}}},[`div${Rt}-summary`]:{boxShadow:`0 -${en}px 0 ${on}`}}}},xc=Ft=>{const{componentCls:Rt}=Ft,en=`${Ft.lineWidth}px ${Ft.lineType} ${Ft.tableBorderColor}`,on=`${Rt}-expanded-row-cell`;return{[`${Rt}-wrapper`]:{[`${Rt}-tbody-virtual`]:{[`${Rt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Rt}-cell`]:{borderBottom:en},[`${Rt}-expanded-row`]:{[`${on}${on}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ft.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Rt}-bordered`]:{[`${Rt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:en,position:"absolute"},[`${Rt}-cell`]:{borderInlineEnd:en,[`&${Rt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ft.lineWidth,borderInlineStart:en}}}}}}};const Tu=Ft=>{const{componentCls:Rt,fontWeightStrong:en,tablePaddingVertical:on,tablePaddingHorizontal:Sn,lineWidth:fn,lineType:Bn,tableBorderColor:Rn,tableFontSize:In,tableBg:Qn,tableRadius:rr,tableHeaderTextColor:tr,motionDurationMid:kr,tableHeaderBg:Pr,tableHeaderCellSplitColor:gr,tableRowHoverBg:qr,tableSelectedRowBg:xr,tableSelectedRowHoverBg:Xr,tableFooterTextColor:Zr,tableFooterBg:hi,paddingContentVerticalLG:Oi}=Ft,Wi=`${fn}px ${Bn} ${Rn}`;return{[`${Rt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ya.dF)()),{[Rt]:Object.assign(Object.assign({},(0,ya.Wf)(Ft)),{fontSize:In,background:Qn,borderRadius:`${rr}px ${rr}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${rr}px ${rr}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Rt}-cell,
|
|
|
${Rt}-thead > tr > th,
|
|
|
${Rt}-tbody > tr > th,
|
|
|
${Rt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Oi}px ${Sn}px`,overflowWrap:"break-word"},[`${Rt}-title`]:{padding:`${on}px ${Sn}px`},[`${Rt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:tr,fontWeight:en,textAlign:"start",background:Pr,borderBottom:Wi,transition:`background ${kr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Rt}-selection-column):not(${Rt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:gr,transform:"translateY(-50%)",transition:`background-color ${kr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Rt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${kr}, border-color ${kr}`,borderBottom:Wi,[`
|
|
|
> ${Rt}-wrapper:only-child,
|
|
|
> ${Rt}-expanded-row-fixed > ${Rt}-wrapper:only-child
|
|
|
`]:{[Rt]:{marginBlock:`-${on}px`,marginInline:`${Ft.tableExpandColumnWidth-Sn}px -${Sn}px`,[`${Rt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:tr,fontWeight:en,textAlign:"start",background:Pr,borderBottom:Wi,transition:`background ${kr} ease`},[`
|
|
|
&${Rt}-row:hover > th,
|
|
|
&${Rt}-row:hover > td,
|
|
|
> th${Rt}-cell-row-hover,
|
|
|
> td${Rt}-cell-row-hover
|
|
|
`]:{background:qr},[`&${Rt}-row-selected`]:{"> th, > td":{background:xr},"&:hover > th, &:hover > td":{background:Xr}}}},[`${Rt}-footer`]:{padding:`${on}px ${Sn}px`,color:Zr,background:hi}})}};var wc=(0,Po.Z)("Table",Ft=>{const{colorTextHeading:Rt,colorSplit:en,colorIcon:on,colorIconHover:Sn,opacityLoading:fn,colorBgContainer:Bn,controlInteractiveSize:Rn,headerBg:In,headerColor:Qn,headerSortActiveBg:rr,headerSortHoverBg:tr,bodySortBg:kr,rowHoverBg:Pr,rowSelectedBg:gr,rowSelectedHoverBg:qr,rowExpandedBg:xr,cellPaddingBlock:Xr,cellPaddingInline:Zr,cellPaddingBlockMD:hi,cellPaddingInlineMD:Oi,cellPaddingBlockSM:Wi,cellPaddingInlineSM:ti,borderColor:ki,footerBg:ho,footerColor:ci,headerBorderRadius:Ei,cellFontSize:ui,cellFontSizeMD:$r,cellFontSizeSM:xi,headerSplitColor:Fi,fixedHeaderSortActiveBg:Yi,headerFilterHoverBg:eo,filterDropdownBg:ni,expandIconBg:po,selectionColumnWidth:wo,stickyScrollBarBg:Qo}=Ft,Ao=new zs.C(on),Na=new zs.C(Sn),Ta=2,vo=(0,ss.TS)(Ft,{tableFontSize:ui,tableBg:Bn,tableRadius:Ei,tablePaddingVertical:Xr,tablePaddingHorizontal:Zr,tablePaddingVerticalMiddle:hi,tablePaddingHorizontalMiddle:Oi,tablePaddingVerticalSmall:Wi,tablePaddingHorizontalSmall:ti,tableBorderColor:ki,tableHeaderTextColor:Qn,tableHeaderBg:In,tableFooterTextColor:ci,tableFooterBg:ho,tableHeaderCellSplitColor:Fi,tableHeaderSortBg:rr,tableHeaderSortHoverBg:tr,tableHeaderIconColor:Ao.clone().setAlpha(Ao.getAlpha()*fn).toRgbString(),tableHeaderIconColorHover:Na.clone().setAlpha(Na.getAlpha()*fn).toRgbString(),tableBodySortBg:kr,tableFixedHeaderSortActiveBg:Yi,tableHeaderFilterActiveBg:eo,tableFilterDropdownBg:ni,tableRowHoverBg:Pr,tableSelectedRowBg:gr,tableSelectedRowHoverBg:qr,zIndexTableFixed:Ta,zIndexTableSticky:Ta+1,tableFontSizeMiddle:$r,tableFontSizeSmall:xi,tableSelectionColumnWidth:wo,tableExpandIconBg:po,tableExpandColumnWidth:Rn+2*Ft.padding,tableExpandedRowBg:xr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Qo,tableScrollThumbBgHover:Rt,tableScrollBg:en});return[Tu(vo),Hf(vo),Uu(vo),Hu(vo),Va(vo),da(vo),Uf(vo),la(vo),Uu(vo),$o(vo),Ed(vo),Vc(vo),Xc(vo),ws(vo),Zc(vo),Wh(vo),xc(vo)]},Ft=>{const{colorFillAlter:Rt,colorBgContainer:en,colorTextHeading:on,colorFillSecondary:Sn,colorFillContent:fn,controlItemBgActive:Bn,controlItemBgActiveHover:Rn,padding:In,paddingSM:Qn,paddingXS:rr,colorBorderSecondary:tr,borderRadiusLG:kr,fontSize:Pr,controlHeight:gr,colorTextPlaceholder:qr}=Ft,xr=new zs.C(Sn).onBackground(en).toHexShortString(),Xr=new zs.C(fn).onBackground(en).toHexShortString(),Zr=new zs.C(Rt).onBackground(en).toHexShortString();return{headerBg:Zr,headerColor:on,headerSortActiveBg:xr,headerSortHoverBg:Xr,bodySortBg:Zr,rowHoverBg:Zr,rowSelectedBg:Bn,rowSelectedHoverBg:Rn,rowExpandedBg:Rt,cellPaddingBlock:In,cellPaddingInline:In,cellPaddingBlockMD:Qn,cellPaddingInlineMD:rr,cellPaddingBlockSM:rr,cellPaddingInlineSM:rr,borderColor:tr,headerBorderRadius:kr,footerBg:Zr,footerColor:on,cellFontSize:Pr,cellFontSizeMD:Pr,cellFontSizeSM:Pr,headerSplitColor:tr,fixedHeaderSortActiveBg:xr,headerFilterHoverBg:fn,filterDropdownMenuBg:en,filterDropdownBg:en,expandIconBg:en,selectionColumnWidth:gr,stickyScrollBarBg:qr,stickyScrollBarBorderRadius:100}});const Td=[],lf=(Ft,Rt)=>{const{prefixCls:en,className:on,rootClassName:Sn,style:fn,size:Bn,bordered:Rn,dropdownPrefixCls:In,dataSource:Qn,pagination:rr,rowSelection:tr,rowKey:kr="key",rowClassName:Pr,columns:gr,children:qr,childrenColumnName:xr,onChange:Xr,getPopupContainer:Zr,loading:hi,expandIcon:Oi,expandable:Wi,expandedRowRender:ti,expandIconColumnIndex:ki,indentSize:ho,scroll:ci,sortDirections:Ei,locale:ui,showSorterTooltip:$r=!0,virtual:xi}=Ft,Fi=ce.useMemo(()=>gr||gn(qr),[gr,qr]),Yi=ce.useMemo(()=>Fi.some(Xo=>Xo.responsive),[Fi]),eo=(0,Kn.Z)(Yi),ni=ce.useMemo(()=>{const Xo=new Set(Object.keys(eo).filter(xa=>eo[xa]));return Fi.filter(xa=>!xa.responsive||xa.responsive.some(us=>Xo.has(us)))},[Fi,eo]),po=(0,mi.Z)(Ft,["className","style","columns"]),{locale:wo=li.Z,direction:Qo,table:Ao,renderEmpty:Na,getPrefixCls:Ta,getPopupContainer:vo}=ce.useContext(io.E_),Gi=(0,Er.Z)(Bn),Wo=Object.assign(Object.assign({},wo.Table),ui),Aa=Qn||Td,Sa=Ta("table",en),is=Ta("dropdown",In),to=Object.assign({childrenColumnName:xr,expandIconColumnIndex:ki},Wi),{childrenColumnName:Zi="children"}=to,no=ce.useMemo(()=>Aa.some(Xo=>Xo==null?void 0:Xo[Zi])?"nest":ti||Wi&&Wi.expandedRowRender?"row":null,[Aa]),Ni={body:ce.useRef()},Zo=ce.useMemo(()=>typeof kr=="function"?kr:Xo=>Xo==null?void 0:Xo[kr],[kr]),[Ai]=Gc(Aa,Zi,Zo),fo={},Bo=function(Xo,xa){let us=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var wa,Ho,vs;const gl=Object.assign(Object.assign({},fo),Xo);us&&((wa=fo.resetPagination)===null||wa===void 0||wa.call(fo),!((Ho=gl.pagination)===null||Ho===void 0)&&Ho.current&&(gl.pagination.current=1),rr&&rr.onChange&&rr.onChange(1,(vs=gl.pagination)===null||vs===void 0?void 0:vs.pageSize)),ci&&ci.scrollToFirstRowOnChange!==!1&&Ni.body.current&&(0,Vi.Z)(0,{getContainer:()=>Ni.body.current}),Xr==null||Xr(gl.pagination,gl.filters,gl.sorter,{currentDataSource:_s(ic(Aa,gl.sorterStates,Zi),gl.filterStates),action:xa})},Ro=(Xo,xa)=>{Bo({sorter:Xo,sorterStates:xa},"sort",!1)},[bs,ls,$s,qo]=Cd({prefixCls:Sa,mergedColumns:ni,onSorterChange:Ro,sortDirections:Ei||["ascend","descend"],tableLocale:Wo,showSorterTooltip:$r}),Ps=ce.useMemo(()=>ic(Aa,ls,Zi),[Aa,ls]);fo.sorter=qo(),fo.sorterStates=ls;const ts=(Xo,xa)=>{Bo({filters:Xo,filterStates:xa},"filter",!0)},[ps,Wu,ea]=hh({prefixCls:Sa,locale:Wo,dropdownPrefixCls:is,mergedColumns:ni,onFilterChange:ts,getPopupContainer:Zr||vo}),ia=_s(Ps,Wu);fo.filters=ea,fo.filterStates=Wu;const ua=ce.useMemo(()=>{const Xo={};return Object.keys(ea).forEach(xa=>{ea[xa]!==null&&(Xo[xa]=ea[xa])}),Object.assign(Object.assign({},$s),{filters:Xo})},[$s,ea]),[Za]=$a(ua),gs=(Xo,xa)=>{Bo({pagination:Object.assign(Object.assign({},fo.pagination),{current:Xo,pageSize:xa})},"paginate")},[ko,fa]=dh(ia.length,gs,rr);fo.pagination=rr===!1?{}:_u(ko,rr),fo.resetPagination=fa;const ms=ce.useMemo(()=>{if(rr===!1||!ko.pageSize)return ia;const{current:Xo=1,total:xa,pageSize:us=vc}=ko;return ia.length<xa?ia.length>us?ia.slice((Xo-1)*us,Xo*us):ia:ia.slice((Xo-1)*us,Xo*us)},[!!rr,ia,ko&&ko.current,ko&&ko.pageSize,ko&&ko.total]),[pl,zl]=Rl({prefixCls:Sa,data:ia,pageData:ms,getRowKey:Zo,getRecordByKey:Ai,expandType:no,childrenColumnName:Zi,locale:Wo,getPopupContainer:Zr||vo},tr),El=(Xo,xa,us)=>{let wa;return typeof Pr=="function"?wa=$e()(Pr(Xo,xa,us)):wa=$e()(Pr),$e()({[`${Sa}-row-selected`]:zl.has(Zo(Xo,xa))},wa)};to.__PARENT_RENDER_ICON__=to.expandIcon,to.expandIcon=to.expandIcon||Oi||ca(Wo),no==="nest"&&to.expandIconColumnIndex===void 0?to.expandIconColumnIndex=tr?1:0:to.expandIconColumnIndex>0&&tr&&(to.expandIconColumnIndex-=1),typeof to.indentSize!="number"&&(to.indentSize=typeof ho=="number"?ho:15);const eu=ce.useCallback(Xo=>Za(pl(ps(bs(Xo)))),[bs,ps,pl]);let tu,$l;if(rr!==!1&&(ko!=null&&ko.total)){let Xo;ko.size?Xo=ko.size:Xo=Gi==="small"||Gi==="middle"?"small":void 0;const xa=Ho=>ce.createElement(Qi.Z,Object.assign({},ko,{className:$e()(`${Sa}-pagination ${Sa}-pagination-${Ho}`,ko.className),size:Xo})),us=Qo==="rtl"?"left":"right",{position:wa}=ko;if(wa!==null&&Array.isArray(wa)){const Ho=wa.find(gu=>gu.includes("top")),vs=wa.find(gu=>gu.includes("bottom")),gl=wa.every(gu=>`${gu}`=="none");!Ho&&!vs&&!gl&&($l=xa(us)),Ho&&(tu=xa(Ho.toLowerCase().replace("top",""))),vs&&($l=xa(vs.toLowerCase().replace("bottom","")))}else $l=xa(us)}let na;typeof hi=="boolean"?na={spinning:hi}:typeof hi=="object"&&(na=Object.assign({spinning:!0},hi));const[Ts,Ga]=wc(Sa),[,pa]=(0,Mo.Z)(),Gl=$e()(`${Sa}-wrapper`,Ao==null?void 0:Ao.className,{[`${Sa}-wrapper-rtl`]:Qo==="rtl"},on,Sn,Ga),oc=Object.assign(Object.assign({},Ao==null?void 0:Ao.style),fn),nu=ui&&ui.emptyText||(Na==null?void 0:Na("Table"))||ce.createElement(Hr.Z,{componentName:"Table"}),Mu=xi?rl:Ui,Ku={},Tl=ce.useMemo(()=>{const{fontSize:Xo,lineHeight:xa,padding:us,paddingXS:wa,paddingSM:Ho}=pa,vs=Math.floor(Xo*xa);switch(Gi){case"large":return us*2+vs;case"small":return wa*2+vs;default:return Ho*2+vs}},[pa,Gi]);return xi&&(Ku.listItemHeight=Tl),Ts(ce.createElement("div",{ref:Rt,className:Gl,style:oc},ce.createElement(zo.Z,Object.assign({spinning:!1},na),tu,ce.createElement(Mu,Object.assign({},Ku,po,{columns:ni,direction:Qo,expandable:to,prefixCls:Sa,className:$e()({[`${Sa}-middle`]:Gi==="middle",[`${Sa}-small`]:Gi==="small",[`${Sa}-bordered`]:Rn,[`${Sa}-empty`]:Aa.length===0}),data:ms,rowKey:Zo,rowClassName:El,emptyText:nu,internalHooks:vt,internalRefs:Ni,transformColumns:eu})),$l)))};var uf=ce.forwardRef(lf);const Vf=(Ft,Rt)=>{const en=ce.useRef(0);return en.current+=1,ce.createElement(uf,Object.assign({},Ft,{ref:Rt,_renderTimes:en.current}))},fl=ce.forwardRef(Vf);fl.SELECTION_COLUMN=Xa,fl.EXPAND_COLUMN=rt,fl.SELECTION_ALL=_a,fl.SELECTION_INVERT=ha,fl.SELECTION_NONE=Ea,fl.Column=zr,fl.ColumnGroup=Ci,fl.Summary=Ve;var bc=fl,Wp=bc},17574:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return et}});var rt=Ge(43858),vt=Ge(19127),ie=Ge(52671),_e=Ge(8657),Ie=Ge(96663),ge=Ge(59301),ce={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"},Pe=ce,Ee=Ge(7657),ye=function(St,bt){return ge.createElement(Ee.Z,(0,Ie.Z)({},St,{ref:bt,icon:Pe}))},Me=ge.forwardRef(ye),ve=Me,xe=Ge(92310),fe=Ge.n(xe),z=Ge(35654),ee=Ge(71430),ae=Ge(36355),re=Ge(56082),le=Ge(62892),ue=Ge(20648);const pe=4;function Te(it){const{dropPosition:St,dropLevelOffset:bt,prefixCls:Pt,indent:gt,direction:dt="ltr"}=it,mt=dt==="ltr"?"left":"right",kt=dt==="ltr"?"right":"left",Et={[mt]:-bt*gt+pe,[kt]:0};switch(St){case-1:Et.top=-3;break;case 1:Et.bottom=-3;break;default:Et.bottom=-3,Et[mt]=gt+pe;break}return ge.createElement("div",{style:Et,className:`${Pt}-drop-indicator`})}var Ce=Ge(71997),Ae=ge.forwardRef((it,St)=>{const{getPrefixCls:bt,direction:Pt,virtual:gt,tree:dt}=ge.useContext(ae.E_),{prefixCls:mt,className:kt,showIcon:Et=!1,showLine:Ut,switcherIcon:wt,blockNode:pt=!1,children:tt,checkable:Ze=!1,selectable:we=!0,draggable:be,motion:Ke,style:Xe}=it,Oe=bt("tree",mt),Ue=bt(),He=Ke!=null?Ke:Object.assign(Object.assign({},(0,le.Z)(Ue)),{motionAppear:!1}),Ve=Object.assign(Object.assign({},it),{checkable:Ze,selectable:we,showIcon:Et,motion:He,blockNode:pt,showLine:!!Ut,dropIndicatorRender:Te}),[Je,ct]=(0,ue.ZP)(Oe),yt=ge.useMemo(()=>{if(!be)return!1;let Mt={};switch(typeof be){case"function":Mt.nodeDraggable=be;break;case"object":Mt=Object.assign({},be);break;default:break}return Mt.icon!==!1&&(Mt.icon=Mt.icon||ge.createElement(re.Z,null)),Mt},[be]),ft=Mt=>ge.createElement(Ce.Z,{prefixCls:Oe,switcherIcon:wt,treeNodeProps:Mt,showLine:Ut});return Je(ge.createElement(rt.Z,Object.assign({itemHeight:20,ref:St,virtual:gt},Ve,{style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Xe),prefixCls:Oe,className:fe()({[`${Oe}-icon-hide`]:!Et,[`${Oe}-block-node`]:pt,[`${Oe}-unselectable`]:!we,[`${Oe}-rtl`]:Pt==="rtl"},dt==null?void 0:dt.className,kt,ct),direction:Pt,checkable:Ze&&ge.createElement("span",{className:`${Oe}-checkbox-inner`}),selectable:we,switcherIcon:ft,draggable:yt}),tt))}),je;(function(it){it[it.None=0]="None",it[it.Start=1]="Start",it[it.End=2]="End"})(je||(je={}));function Ne(it,St){function bt(Pt){const{key:gt,children:dt}=Pt;St(gt,Pt)!==!1&&Ne(dt||[],St)}it.forEach(bt)}function Be(it){let{treeData:St,expandedKeys:bt,startKey:Pt,endKey:gt}=it;const dt=[];let mt=je.None;if(Pt&&Pt===gt)return[Pt];if(!Pt||!gt)return[];function kt(Et){return Et===Pt||Et===gt}return Ne(St,Et=>{if(mt===je.End)return!1;if(kt(Et)){if(dt.push(Et),mt===je.None)mt=je.Start;else if(mt===je.Start)return mt=je.End,!1}else mt===je.Start&&dt.push(Et);return bt.includes(Et)}),dt}function ze(it,St){const bt=(0,vt.Z)(St),Pt=[];return Ne(it,(gt,dt)=>{const mt=bt.indexOf(gt);return mt!==-1&&(Pt.push(dt),bt.splice(mt,1)),!!bt.length}),Pt}var Qe=function(it,St){var bt={};for(var Pt in it)Object.prototype.hasOwnProperty.call(it,Pt)&&St.indexOf(Pt)<0&&(bt[Pt]=it[Pt]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Pt=Object.getOwnPropertySymbols(it);gt<Pt.length;gt++)St.indexOf(Pt[gt])<0&&Object.prototype.propertyIsEnumerable.call(it,Pt[gt])&&(bt[Pt[gt]]=it[Pt[gt]]);return bt};function $e(it){const{isLeaf:St,expanded:bt}=it;return St?ge.createElement(ie.Z,null):bt?ge.createElement(_e.Z,null):ge.createElement(ve,null)}function Ye(it){let{treeData:St,children:bt}=it;return St||(0,ee.zn)(bt)}const at=(it,St)=>{var{defaultExpandAll:bt,defaultExpandParent:Pt,defaultExpandedKeys:gt}=it,dt=Qe(it,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const mt=ge.useRef(),kt=ge.useRef(),Et=()=>{const{keyEntities:yt}=(0,ee.I8)(Ye(dt));let ft;return bt?ft=Object.keys(yt):Pt?ft=(0,z.r7)(dt.expandedKeys||gt||[],yt):ft=dt.expandedKeys||gt,ft},[Ut,wt]=ge.useState(dt.selectedKeys||dt.defaultSelectedKeys||[]),[pt,tt]=ge.useState(()=>Et());ge.useEffect(()=>{"selectedKeys"in dt&&wt(dt.selectedKeys)},[dt.selectedKeys]),ge.useEffect(()=>{"expandedKeys"in dt&&tt(dt.expandedKeys)},[dt.expandedKeys]);const Ze=(yt,ft)=>{var Mt;return"expandedKeys"in dt||tt(yt),(Mt=dt.onExpand)===null||Mt===void 0?void 0:Mt.call(dt,yt,ft)},we=(yt,ft)=>{var Mt;const{multiple:Jt}=dt,{node:Vt,nativeEvent:Kt}=ft,{key:Ht=""}=Vt,tn=Ye(dt),It=Object.assign(Object.assign({},ft),{selected:!0}),Dt=(Kt==null?void 0:Kt.ctrlKey)||(Kt==null?void 0:Kt.metaKey),qt=Kt==null?void 0:Kt.shiftKey;let sn;Jt&&Dt?(sn=yt,mt.current=Ht,kt.current=sn,It.selectedNodes=ze(tn,sn)):Jt&&qt?(sn=Array.from(new Set([].concat((0,vt.Z)(kt.current||[]),(0,vt.Z)(Be({treeData:tn,expandedKeys:pt,startKey:Ht,endKey:mt.current}))))),It.selectedNodes=ze(tn,sn)):(sn=[Ht],mt.current=Ht,kt.current=sn,It.selectedNodes=ze(tn,sn)),(Mt=dt.onSelect)===null||Mt===void 0||Mt.call(dt,sn,It),"selectedKeys"in dt||wt(sn)},{getPrefixCls:be,direction:Ke}=ge.useContext(ae.E_),{prefixCls:Xe,className:Oe,showIcon:Ue=!0,expandAction:He="click"}=dt,Ve=Qe(dt,["prefixCls","className","showIcon","expandAction"]),Je=be("tree",Xe),ct=fe()(`${Je}-directory`,{[`${Je}-directory-rtl`]:Ke==="rtl"},Oe);return ge.createElement(Ae,Object.assign({icon:$e,ref:St,blockNode:!0},Ve,{showIcon:Ue,expandAction:He,prefixCls:Je,className:ct,expandedKeys:pt,selectedKeys:Ut,onSelect:we,onExpand:Ze}))};var ht=ge.forwardRef(at);const Ct=Ae;Ct.DirectoryTree=ht,Ct.TreeNode=rt.O;var et=Ct},20648:function(bn,an,Ge){"use strict";Ge.d(an,{TM:function(){return xe},Yk:function(){return ve}});var rt=Ge(93083),vt=Ge(98447),ie=Ge(17313),_e=Ge(8378),Ie=Ge(37613),ge=Ge(83116);const ce=new rt.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Pe=(fe,z)=>({[`.${fe}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${z.motionDurationSlow}`}}}),Ee=(fe,z)=>({[`.${fe}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:z.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${z.lineWidthBold}px solid ${z.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ye=(fe,z)=>{const{treeCls:ee,treeNodeCls:ae,treeNodePadding:re,titleHeight:le,nodeSelectedBg:ue,nodeHoverBg:pe}=z,Te=z.paddingXS;return{[ee]:Object.assign(Object.assign({},(0,ie.Wf)(z)),{background:z.colorBgContainer,borderRadius:z.borderRadius,transition:`background-color ${z.motionDurationSlow}`,[`&${ee}-rtl`]:{[`${ee}-switcher`]:{"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ee}-active-focused)`]:Object.assign({},(0,ie.oN)(z)),[`${ee}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ee}-block-node`]:{[`${ee}-list-holder-inner`]:{alignItems:"stretch",[`${ee}-node-content-wrapper`]:{flex:"auto"},[`${ae}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:re,insetInlineStart:0,border:`1px solid ${z.colorPrimary}`,opacity:0,animationName:ce,animationDuration:z.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ae}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${re}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ee}-node-content-wrapper`]:{color:z.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ee}-node-content-wrapper`]:Object.assign({},(0,ie.oN)(z)),[`&:not(${ae}-disabled).filter-node ${ee}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ee}-draggable-icon`]:{flexShrink:0,width:le,lineHeight:`${le}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${z.motionDurationSlow}`,[`${ae}:hover &`]:{opacity:.45}},[`&${ae}-disabled`]:{[`${ee}-draggable-icon`]:{visibility:"hidden"}}}},[`${ee}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:le}},[`${ee}-draggable-icon`]:{visibility:"hidden"},[`${ee}-switcher`]:Object.assign(Object.assign({},Pe(fe,z)),{position:"relative",flex:"none",alignSelf:"stretch",width:le,margin:0,lineHeight:`${le}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:z.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:le/2,bottom:-re,marginInlineStart:-1,borderInlineEnd:`1px solid ${z.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:le/2*.8,height:le/2,borderBottom:`1px solid ${z.colorBorder}`,content:'""'}}}),[`${ee}-checkbox`]:{top:"initial",marginInlineEnd:Te},[`${ee}-node-content-wrapper, ${ee}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:le,margin:0,padding:`0 ${z.paddingXS/2}px`,color:"inherit",lineHeight:`${le}px`,background:"transparent",borderRadius:z.borderRadius,cursor:"pointer",transition:`all ${z.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:pe},[`&${ee}-node-selected`]:{backgroundColor:ue},[`${ee}-iconEle`]:{display:"inline-block",width:le,height:le,lineHeight:`${le}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ee}-unselectable ${ee}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ee}-node-content-wrapper`]:Object.assign({lineHeight:`${le}px`,userSelect:"none"},Ee(fe,z)),[`${ae}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${z.colorPrimary}`}},"&-show-line":{[`${ee}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:le/2,bottom:-re,borderInlineEnd:`1px solid ${z.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ee}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ae}-leaf-last`]:{[`${ee}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${le/2}px !important`}}}}})}},Me=fe=>{const{treeCls:z,treeNodeCls:ee,treeNodePadding:ae,directoryNodeSelectedBg:re,directoryNodeSelectedColor:le}=fe;return{[`${z}${z}-directory`]:{[ee]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ae,insetInlineStart:0,transition:`background-color ${fe.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:fe.controlItemBgHover}},"> *":{zIndex:1},[`${z}-switcher`]:{transition:`color ${fe.motionDurationMid}`},[`${z}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${z}-node-selected`]:{color:le,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:re},[`${z}-switcher`]:{color:le},[`${z}-node-content-wrapper`]:{color:le,background:"transparent"}}}}}},ve=(fe,z)=>{const ee=`.${fe}`,ae=`${ee}-treenode`,re=z.paddingXS/2,le=(0,Ie.TS)(z,{treeCls:ee,treeNodeCls:ae,treeNodePadding:re});return[ye(fe,le),Me(le)]},xe=fe=>{const{controlHeightSM:z}=fe;return{titleHeight:z,nodeHoverBg:fe.controlItemBgHover,nodeSelectedBg:fe.controlItemBgActive}};an.ZP=(0,ge.Z)("Tree",(fe,z)=>{let{prefixCls:ee}=z;return[{[fe.componentCls]:(0,vt.C2)(`${ee}-checkbox`,fe)},ve(ee,fe),(0,_e.Z)(fe)]},fe=>{const{colorTextLightSolid:z,colorPrimary:ee}=fe;return Object.assign(Object.assign({},xe(fe)),{directoryNodeSelectedColor:z,directoryNodeSelectedBg:ee})})},71997:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ae}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(le,ue){return vt.createElement(Ie.Z,(0,rt.Z)({},le,{ref:ue,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce,Ee=Ge(52671),ye=Ge(58617),Me=Ge(15075),ve=Ge(43531),xe=Ge(92310),fe=Ge.n(xe),z=Ge(92343),ae=re=>{const{prefixCls:le,switcherIcon:ue,treeNodeProps:pe,showLine:Te}=re,{isLeaf:Ce,expanded:Fe,loading:Ae}=pe;if(Ae)return vt.createElement(ye.Z,{className:`${le}-switcher-loading-icon`});let je;if(Te&&typeof Te=="object"&&(je=Te.showLeafIcon),Ce){if(!Te)return null;if(typeof je!="boolean"&&je){const ze=typeof je=="function"?je(pe):je,Qe=`${le}-switcher-line-custom-icon`;return(0,z.l$)(ze)?(0,z.Tm)(ze,{className:fe()(ze.props.className||"",Qe)}):ze}return je?vt.createElement(Ee.Z,{className:`${le}-switcher-line-icon`}):vt.createElement("span",{className:`${le}-switcher-leaf-line`})}const Ne=`${le}-switcher-icon`,Be=typeof ue=="function"?ue(pe):ue;return(0,z.l$)(Be)?(0,z.Tm)(Be,{className:fe()(Be.props.className||"",Ne)}):Be!==void 0?Be:Te?Fe?vt.createElement(Me.Z,{className:`${le}-switcher-line-icon`}):vt.createElement(ve.Z,{className:`${le}-switcher-line-icon`}):vt.createElement(Pe,{className:Ne})}},54580:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return Cn}});var rt=Ge(59301),vt=Ge(19127),ie=Ge(92310),_e=Ge.n(ie),Ie=Ge(96663),ge=Ge(52884),ce=Ge(95727),Pe=Ge(65711),Ee=Ge(85745),ye=Ge(90493),Me=Ge(6620),ve=Ge(49581),xe=Ge(20135),fe=Ge(73324),z=Ge(26112);function ee(rn,mn){var En="cannot ".concat(rn.method," ").concat(rn.action," ").concat(mn.status,"'"),pn=new Error(En);return pn.status=mn.status,pn.method=rn.method,pn.url=rn.action,pn}function ae(rn){var mn=rn.responseText||rn.response;if(!mn)return mn;try{return JSON.parse(mn)}catch(En){return mn}}function re(rn){var mn=new XMLHttpRequest;rn.onProgress&&mn.upload&&(mn.upload.onprogress=function(Mn){Mn.total>0&&(Mn.percent=Mn.loaded/Mn.total*100),rn.onProgress(Mn)});var En=new FormData;rn.data&&Object.keys(rn.data).forEach(function(kn){var Mn=rn.data[kn];if(Array.isArray(Mn)){Mn.forEach(function(zn){En.append("".concat(kn,"[]"),zn)});return}En.append(kn,Mn)}),rn.file instanceof Blob?En.append(rn.filename,rn.file,rn.file.name):En.append(rn.filename,rn.file),mn.onerror=function(Mn){rn.onError(Mn)},mn.onload=function(){return mn.status<200||mn.status>=300?rn.onError(ee(rn,mn),ae(mn)):rn.onSuccess(ae(mn),mn)},mn.open(rn.method,rn.action,!0),rn.withCredentials&&"withCredentials"in mn&&(mn.withCredentials=!0);var pn=rn.headers||{};return pn["X-Requested-With"]!==null&&mn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(pn).forEach(function(kn){pn[kn]!==null&&mn.setRequestHeader(kn,pn[kn])}),mn.send(En),{abort:function(){mn.abort()}}}var le=+new Date,ue=0;function pe(){return"rc-upload-".concat(le,"-").concat(++ue)}var Te=Ge(48736),Ce=function(rn,mn){if(rn&&mn){var En=Array.isArray(mn)?mn:mn.split(","),pn=rn.name||"",kn=rn.type||"",Mn=kn.replace(/\/.*$/,"");return En.some(function(zn){var Dn=zn.trim();if(/^\*(\/\*)?$/.test(zn))return!0;if(Dn.charAt(0)==="."){var ar=pn.toLowerCase(),dn=Dn.toLowerCase(),Or=[dn];return(dn===".jpg"||dn===".jpeg")&&(Or=[".jpg",".jpeg"]),Or.some(function(Jr){return ar.endsWith(Jr)})}return/\/\*$/.test(Dn)?Mn===Dn.replace(/\/.*$/,""):kn===Dn?!0:/^\w+$/.test(Dn)?((0,Te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Dn,"'.Skip for check.")),!0):!1})}return!0};function Fe(rn,mn){var En=rn.createReader(),pn=[];function kn(){En.readEntries(function(Mn){var zn=Array.prototype.slice.apply(Mn);pn=pn.concat(zn);var Dn=!zn.length;Dn?mn(pn):kn()})}kn()}var Ae=function(mn,En,pn){var kn=function Mn(zn,Dn){zn&&(zn.path=Dn||"",zn.isFile?zn.file(function(ar){pn(ar)&&(zn.fullPath&&!ar.webkitRelativePath&&(Object.defineProperties(ar,{webkitRelativePath:{writable:!0}}),ar.webkitRelativePath=zn.fullPath.replace(/^\//,""),Object.defineProperties(ar,{webkitRelativePath:{writable:!1}})),En([ar]))}):zn.isDirectory&&Fe(zn,function(ar){ar.forEach(function(dn){Mn(dn,"".concat(Dn).concat(zn.name,"/"))})}))};mn.forEach(function(Mn){kn(Mn.webkitGetAsEntry())})},je=Ae,Ne=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(rn){(0,Pe.Z)(En,rn);var mn=(0,Ee.Z)(En);function En(){var pn;(0,ge.Z)(this,En);for(var kn=arguments.length,Mn=new Array(kn),zn=0;zn<kn;zn++)Mn[zn]=arguments[zn];return pn=mn.call.apply(mn,[this].concat(Mn)),pn.state={uid:pe()},pn.reqs={},pn.fileInput=void 0,pn._isMounted=void 0,pn.onChange=function(Dn){var ar=pn.props,dn=ar.accept,Or=ar.directory,Jr=Dn.target.files,Rr=(0,vt.Z)(Jr).filter(function(vn){return!Or||Ce(vn,dn)});pn.uploadFiles(Rr),pn.reset()},pn.onClick=function(Dn){var ar=pn.fileInput;if(ar){var dn=Dn.target,Or=pn.props.onClick;if(dn&&dn.tagName==="BUTTON"){var Jr=ar.parentNode;Jr.focus(),dn.blur()}ar.click(),Or&&Or(Dn)}},pn.onKeyDown=function(Dn){Dn.key==="Enter"&&pn.onClick(Dn)},pn.onFileDrop=function(Dn){var ar=pn.props.multiple;if(Dn.preventDefault(),Dn.type!=="dragover")if(pn.props.directory)je(Array.prototype.slice.call(Dn.dataTransfer.items),pn.uploadFiles,function(Or){return Ce(Or,pn.props.accept)});else{var dn=(0,vt.Z)(Dn.dataTransfer.files).filter(function(Or){return Ce(Or,pn.props.accept)});ar===!1&&(dn=dn.slice(0,1)),pn.uploadFiles(dn)}},pn.uploadFiles=function(Dn){var ar=(0,vt.Z)(Dn),dn=ar.map(function(Or){return Or.uid=pe(),pn.processFile(Or,ar)});Promise.all(dn).then(function(Or){var Jr=pn.props.onBatchStart;Jr==null||Jr(Or.map(function(Rr){var vn=Rr.origin,Jn=Rr.parsedFile;return{file:vn,parsedFile:Jn}})),Or.filter(function(Rr){return Rr.parsedFile!==null}).forEach(function(Rr){pn.post(Rr)})})},pn.processFile=function(){var Dn=(0,fe.Z)((0,ve.Z)().mark(function ar(dn,Or){var Jr,Rr,vn,Jn,lr,vr,Sr,Kr,ai;return(0,ve.Z)().wrap(function(br){for(;;)switch(br.prev=br.next){case 0:if(Jr=pn.props.beforeUpload,Rr=dn,!Jr){br.next=14;break}return br.prev=3,br.next=6,Jr(dn,Or);case 6:Rr=br.sent,br.next=12;break;case 9:br.prev=9,br.t0=br.catch(3),Rr=!1;case 12:if(Rr!==!1){br.next=14;break}return br.abrupt("return",{origin:dn,parsedFile:null,action:null,data:null});case 14:if(vn=pn.props.action,typeof vn!="function"){br.next=21;break}return br.next=18,vn(dn);case 18:Jn=br.sent,br.next=22;break;case 21:Jn=vn;case 22:if(lr=pn.props.data,typeof lr!="function"){br.next=29;break}return br.next=26,lr(dn);case 26:vr=br.sent,br.next=30;break;case 29:vr=lr;case 30:return Sr=((0,xe.Z)(Rr)==="object"||typeof Rr=="string")&&Rr?Rr:dn,Sr instanceof File?Kr=Sr:Kr=new File([Sr],dn.name,{type:dn.type}),ai=Kr,ai.uid=dn.uid,br.abrupt("return",{origin:dn,data:vr,parsedFile:ai,action:Jn});case 35:case"end":return br.stop()}},ar,null,[[3,9]])}));return function(ar,dn){return Dn.apply(this,arguments)}}(),pn.saveFileInput=function(Dn){pn.fileInput=Dn},pn}return(0,ce.Z)(En,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(kn){var Mn=this,zn=kn.data,Dn=kn.origin,ar=kn.action,dn=kn.parsedFile;if(this._isMounted){var Or=this.props,Jr=Or.onStart,Rr=Or.customRequest,vn=Or.name,Jn=Or.headers,lr=Or.withCredentials,vr=Or.method,Sr=Dn.uid,Kr=Rr||re,ai={action:ar,filename:vn,data:zn,file:dn,headers:Jn,withCredentials:lr,method:vr||"post",onProgress:function(br){var si=Mn.props.onProgress;si==null||si(br,dn)},onSuccess:function(br,si){var Tn=Mn.props.onSuccess;Tn==null||Tn(br,dn,si),delete Mn.reqs[Sr]},onError:function(br,si){var Tn=Mn.props.onError;Tn==null||Tn(br,si,dn),delete Mn.reqs[Sr]}};Jr(Dn),this.reqs[Sr]=Kr(ai)}}},{key:"reset",value:function(){this.setState({uid:pe()})}},{key:"abort",value:function(kn){var Mn=this.reqs;if(kn){var zn=kn.uid?kn.uid:kn;Mn[zn]&&Mn[zn].abort&&Mn[zn].abort(),delete Mn[zn]}else Object.keys(Mn).forEach(function(Dn){Mn[Dn]&&Mn[Dn].abort&&Mn[Dn].abort(),delete Mn[Dn]})}},{key:"render",value:function(){var kn=this.props,Mn=kn.component,zn=kn.prefixCls,Dn=kn.className,ar=kn.disabled,dn=kn.id,Or=kn.style,Jr=kn.multiple,Rr=kn.accept,vn=kn.capture,Jn=kn.children,lr=kn.directory,vr=kn.openFileDialogOnClick,Sr=kn.onMouseEnter,Kr=kn.onMouseLeave,ai=(0,Me.Z)(kn,Ne),Br=_e()((0,ye.Z)((0,ye.Z)((0,ye.Z)({},zn,!0),"".concat(zn,"-disabled"),ar),Dn,Dn)),br=lr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},si=ar?{}:{onClick:vr?this.onClick:function(){},onKeyDown:vr?this.onKeyDown:function(){},onMouseEnter:Sr,onMouseLeave:Kr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return rt.createElement(Mn,(0,Ie.Z)({},si,{className:Br,role:"button",style:Or}),rt.createElement("input",(0,Ie.Z)({},(0,z.Z)(ai,{aria:!0,data:!0}),{id:dn,disabled:ar,type:"file",ref:this.saveFileInput,onClick:function(Ri){return Ri.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Rr},br,{multiple:Jr,onChange:this.onChange},vn!=null?{capture:vn}:{})),Jn)}}]),En}(rt.Component),ze=Be;function Qe(){}var $e=function(rn){(0,Pe.Z)(En,rn);var mn=(0,Ee.Z)(En);function En(){var pn;(0,ge.Z)(this,En);for(var kn=arguments.length,Mn=new Array(kn),zn=0;zn<kn;zn++)Mn[zn]=arguments[zn];return pn=mn.call.apply(mn,[this].concat(Mn)),pn.uploader=void 0,pn.saveUploader=function(Dn){pn.uploader=Dn},pn}return(0,ce.Z)(En,[{key:"abort",value:function(kn){this.uploader.abort(kn)}},{key:"render",value:function(){return rt.createElement(ze,(0,Ie.Z)({},this.props,{ref:this.saveUploader}))}}]),En}(rt.Component);$e.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Qe,onError:Qe,onSuccess:Qe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ye=$e,at=Ye,ut=Ge(18929),ht=Ge(4676),Ct=Ge(36355),et=Ge(1684),it=Ge(9763),St=Ge(31724),bt={icon:function(mn,En){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:En}},{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:mn}}]}},name:"file",theme:"twotone"},Pt=bt,gt=Ge(7657),dt=function(mn,En){return rt.createElement(gt.Z,(0,Ie.Z)({},mn,{ref:En,icon:Pt}))},mt=rt.forwardRef(dt),kt=mt,Et=Ge(58617),Ut={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"},wt=Ut,pt=function(mn,En){return rt.createElement(gt.Z,(0,Ie.Z)({},mn,{ref:En,icon:wt}))},tt=rt.forwardRef(pt),Ze=tt,we={icon:function(mn,En){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:mn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:En}},{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:En}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:En}},{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:mn}}]}},name:"picture",theme:"twotone"},be=we,Ke=function(mn,En){return rt.createElement(gt.Z,(0,Ie.Z)({},mn,{ref:En,icon:be}))},Xe=rt.forwardRef(Ke),Oe=Xe,Ue=Ge(77900),He=Ge(56762),Ve=Ge(62892),Je=Ge(92343),ct=Ge(3113);function yt(rn){return Object.assign(Object.assign({},rn),{lastModified:rn.lastModified,lastModifiedDate:rn.lastModifiedDate,name:rn.name,size:rn.size,type:rn.type,uid:rn.uid,percent:0,originFileObj:rn})}function ft(rn,mn){const En=(0,vt.Z)(mn),pn=En.findIndex(kn=>{let{uid:Mn}=kn;return Mn===rn.uid});return pn===-1?En.push(rn):En[pn]=rn,En}function Mt(rn,mn){const En=rn.uid!==void 0?"uid":"name";return mn.filter(pn=>pn[En]===rn[En])[0]}function Jt(rn,mn){const En=rn.uid!==void 0?"uid":"name",pn=mn.filter(kn=>kn[En]!==rn[En]);return pn.length===mn.length?null:pn}const Vt=function(){const mn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),pn=mn[mn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(pn)||[""])[0]},Kt=rn=>rn.indexOf("image/")===0,Ht=rn=>{if(rn.type&&!rn.thumbUrl)return Kt(rn.type);const mn=rn.thumbUrl||rn.url||"",En=Vt(mn);return/^data:image\//.test(mn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(En)?!0:!(/^data:/.test(mn)||En)},tn=200;function It(rn){return new Promise(mn=>{if(!rn.type||!Kt(rn.type)){mn("");return}const En=document.createElement("canvas");En.width=tn,En.height=tn,En.style.cssText=`position: fixed; left: 0; top: 0; width: ${tn}px; height: ${tn}px; z-index: 9999; display: none;`,document.body.appendChild(En);const pn=En.getContext("2d"),kn=new Image;if(kn.onload=()=>{const{width:Mn,height:zn}=kn;let Dn=tn,ar=tn,dn=0,Or=0;Mn>zn?(ar=zn*(tn/Mn),Or=-(ar-Dn)/2):(Dn=Mn*(tn/zn),dn=-(Dn-ar)/2),pn.drawImage(kn,dn,Or,Dn,ar);const Jr=En.toDataURL();document.body.removeChild(En),window.URL.revokeObjectURL(kn.src),mn(Jr)},kn.crossOrigin="anonymous",rn.type.startsWith("image/svg+xml")){const Mn=new FileReader;Mn.onload=()=>{Mn.result&&(kn.src=Mn.result)},Mn.readAsDataURL(rn)}else if(rn.type.startsWith("image/gif")){const Mn=new FileReader;Mn.onload=()=>{Mn.result&&mn(Mn.result)},Mn.readAsDataURL(rn)}else kn.src=window.URL.createObjectURL(rn)})}var Dt=Ge(26227),qt=Ge(41464),sn=Ge(15277),xn=Ge(93948),Ln=Ge(6848),Xn=rt.forwardRef((rn,mn)=>{let{prefixCls:En,className:pn,style:kn,locale:Mn,listType:zn,file:Dn,items:ar,progress:dn,iconRender:Or,actionIconRender:Jr,itemRender:Rr,isImgUrl:vn,showPreviewIcon:Jn,showRemoveIcon:lr,showDownloadIcon:vr,previewIcon:Sr,removeIcon:Kr,downloadIcon:ai,onPreview:Br,onDownload:br,onClose:si}=rn;var Tn,Ri;const{status:On}=Dn,[pi,xo]=rt.useState(On);rt.useEffect(()=>{On!=="removed"&&xo(On)},[On]);const[zi,Lo]=rt.useState(!1);rt.useEffect(()=>{const io=setTimeout(()=>{Lo(!0)},300);return()=>{clearTimeout(io)}},[]);const yo=Or(Dn);let Ur=rt.createElement("div",{className:`${En}-icon`},yo);if(zn==="picture"||zn==="picture-card"||zn==="picture-circle")if(pi==="uploading"||!Dn.thumbUrl&&!Dn.url){const io=_e()(`${En}-list-item-thumbnail`,{[`${En}-list-item-file`]:pi!=="uploading"});Ur=rt.createElement("div",{className:io},yo)}else{const io=vn!=null&&vn(Dn)?rt.createElement("img",{src:Dn.thumbUrl||Dn.url,alt:Dn.name,className:`${En}-list-item-image`,crossOrigin:Dn.crossOrigin}):yo,Hr=_e()(`${En}-list-item-thumbnail`,{[`${En}-list-item-file`]:vn&&!vn(Dn)});Ur=rt.createElement("a",{className:Hr,onClick:Er=>Br(Dn,Er),href:Dn.url||Dn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},io)}const Gr=_e()(`${En}-list-item`,`${En}-list-item-${pi}`),Mi=typeof Dn.linkProps=="string"?JSON.parse(Dn.linkProps):Dn.linkProps,Hi=lr?Jr((typeof Kr=="function"?Kr(Dn):Kr)||rt.createElement(Dt.Z,null),()=>si(Dn),En,Mn.removeFile):null,cr=vr&&pi==="done"?Jr((typeof ai=="function"?ai(Dn):ai)||rt.createElement(qt.Z,null),()=>br(Dn),En,Mn.downloadFile):null,Lt=zn!=="picture-card"&&zn!=="picture-circle"&&rt.createElement("span",{key:"download-delete",className:_e()(`${En}-list-item-actions`,{picture:zn==="picture"})},cr,Hi),Ii=_e()(`${En}-list-item-name`),_r=Dn.url?[rt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ii,title:Dn.name},Mi,{href:Dn.url,onClick:io=>Br(Dn,io)}),Dn.name),Lt]:[rt.createElement("span",{key:"view",className:Ii,onClick:io=>Br(Dn,io),title:Dn.name},Dn.name),Lt],Ir={pointerEvents:"none",opacity:.5},_i=Jn?rt.createElement("a",{href:Dn.url||Dn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Dn.url||Dn.thumbUrl?void 0:Ir,onClick:io=>Br(Dn,io),title:Mn.previewFile},typeof Sr=="function"?Sr(Dn):Sr||rt.createElement(sn.Z,null)):null,Ji=(zn==="picture-card"||zn==="picture-circle")&&pi!=="uploading"&&rt.createElement("span",{className:`${En}-list-item-actions`},_i,pi==="done"&&cr,Hi),{getPrefixCls:zr}=rt.useContext(Ct.E_),Vr=zr(),Ci=rt.createElement("div",{className:Gr},Ur,_r,Ji,zi&&rt.createElement(Ue.default,{motionName:`${Vr}-fade`,visible:pi==="uploading",motionDeadline:2e3},io=>{let{className:Hr}=io;const Er="percent"in Dn?rt.createElement(xn.Z,Object.assign({},dn,{type:"line",percent:Dn.percent,"aria-label":Dn["aria-label"],"aria-labelledby":Dn["aria-labelledby"]})):null;return rt.createElement("div",{className:_e()(`${En}-list-item-progress`,Hr)},Er)})),mi=Dn.response&&typeof Dn.response=="string"?Dn.response:((Tn=Dn.error)===null||Tn===void 0?void 0:Tn.statusText)||((Ri=Dn.error)===null||Ri===void 0?void 0:Ri.message)||Mn.uploadError,Vi=pi==="error"?rt.createElement(Ln.Z,{title:mi,getPopupContainer:io=>io.parentNode},Ci):Ci;return rt.createElement("div",{className:_e()(`${En}-list-item-container`,pn),style:kn,ref:mn},Rr?Rr(Vi,Dn,ar,{download:br.bind(null,Dn),preview:Br.bind(null,Dn),remove:si.bind(null,Dn)}):Vi)});const dr=(rn,mn)=>{const{listType:En="text",previewFile:pn=It,onPreview:kn,onDownload:Mn,onRemove:zn,locale:Dn,iconRender:ar,isImageUrl:dn=Ht,prefixCls:Or,items:Jr=[],showPreviewIcon:Rr=!0,showRemoveIcon:vn=!0,showDownloadIcon:Jn=!1,removeIcon:lr,previewIcon:vr,downloadIcon:Sr,progress:Kr={size:[-1,2],showInfo:!1},appendAction:ai,appendActionVisible:Br=!0,itemRender:br,disabled:si}=rn,Tn=(0,He.Z)(),[Ri,On]=rt.useState(!1);rt.useEffect(()=>{En!=="picture"&&En!=="picture-card"&&En!=="picture-circle"||(Jr||[]).forEach(Ir=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ir.originFileObj instanceof File||Ir.originFileObj instanceof Blob)||Ir.thumbUrl!==void 0||(Ir.thumbUrl="",pn&&pn(Ir.originFileObj).then(_i=>{Ir.thumbUrl=_i||"",Tn()}))})},[En,Jr,pn]),rt.useEffect(()=>{On(!0)},[]);const pi=(Ir,_i)=>{if(kn)return _i==null||_i.preventDefault(),kn(Ir)},xo=Ir=>{typeof Mn=="function"?Mn(Ir):Ir.url&&window.open(Ir.url)},zi=Ir=>{zn==null||zn(Ir)},Lo=Ir=>{if(ar)return ar(Ir,En);const _i=Ir.status==="uploading",Ji=dn&&dn(Ir)?rt.createElement(Oe,null):rt.createElement(kt,null);let zr=_i?rt.createElement(Et.Z,null):rt.createElement(Ze,null);return En==="picture"?zr=_i?rt.createElement(Et.Z,null):Ji:(En==="picture-card"||En==="picture-circle")&&(zr=_i?Dn.uploading:Ji),zr},yo=(Ir,_i,Ji,zr)=>{const Vr={type:"text",size:"small",title:zr,onClick:Ci=>{_i(),(0,Je.l$)(Ir)&&Ir.props.onClick&&Ir.props.onClick(Ci)},className:`${Ji}-list-item-action`,disabled:si};if((0,Je.l$)(Ir)){const Ci=(0,Je.Tm)(Ir,Object.assign(Object.assign({},Ir.props),{onClick:()=>{}}));return rt.createElement(ct.ZP,Object.assign({},Vr,{icon:Ci}))}return rt.createElement(ct.ZP,Object.assign({},Vr),rt.createElement("span",null,Ir))};rt.useImperativeHandle(mn,()=>({handlePreview:pi,handleDownload:xo}));const{getPrefixCls:Ur}=rt.useContext(Ct.E_),Gr=Ur("upload",Or),Mi=Ur(),Hi=_e()(`${Gr}-list`,`${Gr}-list-${En}`),cr=(0,vt.Z)(Jr.map(Ir=>({key:Ir.uid,file:Ir})));let Ii={motionDeadline:2e3,motionName:`${Gr}-${En==="picture-card"||En==="picture-circle"?"animate-inline":"animate"}`,keys:cr,motionAppear:Ri};const _r=rt.useMemo(()=>{const Ir=Object.assign({},(0,Ve.Z)(Mi));return delete Ir.onAppearEnd,delete Ir.onEnterEnd,delete Ir.onLeaveEnd,Ir},[Mi]);return En!=="picture-card"&&En!=="picture-circle"&&(Ii=Object.assign(Object.assign({},_r),Ii)),rt.createElement("div",{className:Hi},rt.createElement(Ue.CSSMotionList,Object.assign({},Ii,{component:!1}),Ir=>{let{key:_i,file:Ji,className:zr,style:Vr}=Ir;return rt.createElement(Xn,{key:_i,locale:Dn,prefixCls:Gr,className:zr,style:Vr,file:Ji,items:Jr,progress:Kr,listType:En,isImgUrl:dn,showPreviewIcon:Rr,showRemoveIcon:vn,showDownloadIcon:Jn,removeIcon:lr,previewIcon:vr,downloadIcon:Sr,iconRender:Lo,actionIconRender:yo,itemRender:br,onPreview:pi,onDownload:xo,onClose:zi})}),ai&&rt.createElement(Ue.default,Object.assign({},Ii,{visible:Br,forceRender:!0}),Ir=>{let{className:_i,style:Ji}=Ir;return(0,Je.Tm)(ai,zr=>({className:_e()(zr.className,_i),style:Object.assign(Object.assign(Object.assign({},Ji),{pointerEvents:_i?"none":void 0}),zr.style)}))}))};var pr=rt.forwardRef(dr),Cr=Ge(17313),Yr=Ge(8378),ii=Ge(83116),jr=Ge(37613),Lr=rn=>{const{componentCls:mn,iconCls:En}=rn;return{[`${mn}-wrapper`]:{[`${mn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:rn.colorFillAlter,border:`${rn.lineWidth}px dashed ${rn.colorBorder}`,borderRadius:rn.borderRadiusLG,cursor:"pointer",transition:`border-color ${rn.motionDurationSlow}`,[mn]:{padding:`${rn.padding}px 0`},[`${mn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${mn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${mn}-disabled):hover`]:{borderColor:rn.colorPrimaryHover},[`p${mn}-drag-icon`]:{marginBottom:rn.margin,[En]:{color:rn.colorPrimary,fontSize:rn.uploadThumbnailSize}},[`p${mn}-text`]:{margin:`0 0 ${rn.marginXXS}px`,color:rn.colorTextHeading,fontSize:rn.fontSizeLG},[`p${mn}-hint`]:{color:rn.colorTextDescription,fontSize:rn.fontSize},[`&${mn}-disabled`]:{cursor:"not-allowed",[`p${mn}-drag-icon ${En},
|
|
|
p${mn}-text,
|
|
|
p${mn}-hint
|
|
|
`]:{color:rn.colorTextDisabled}}}}}},oi=rn=>{const{componentCls:mn,antCls:En,iconCls:pn,fontSize:kn,lineHeight:Mn}=rn,zn=`${mn}-list-item`,Dn=`${zn}-actions`,ar=`${zn}-action`,dn=Math.round(kn*Mn);return{[`${mn}-wrapper`]:{[`${mn}-list`]:Object.assign(Object.assign({},(0,Cr.dF)()),{lineHeight:rn.lineHeight,[zn]:{position:"relative",height:rn.lineHeight*kn,marginTop:rn.marginXS,fontSize:kn,display:"flex",alignItems:"center",transition:`background-color ${rn.motionDurationSlow}`,"&:hover":{backgroundColor:rn.controlItemBgHover},[`${zn}-name`]:Object.assign(Object.assign({},Cr.vS),{padding:`0 ${rn.paddingXS}px`,lineHeight:Mn,flex:"auto",transition:`all ${rn.motionDurationSlow}`}),[Dn]:{[ar]:{opacity:0},[`${ar}${En}-btn-sm`]:{height:dn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${ar}:focus-visible,
|
|
|
&.picture ${ar}
|
|
|
`]:{opacity:1},[pn]:{color:rn.actionsColor,transition:`all ${rn.motionDurationSlow}`},[`&:hover ${pn}`]:{color:rn.colorText}},[`${mn}-icon ${pn}`]:{color:rn.colorTextDescription,fontSize:kn},[`${zn}-progress`]:{position:"absolute",bottom:-rn.uploadProgressOffset,width:"100%",paddingInlineStart:kn+rn.paddingXS,fontSize:kn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${zn}:hover ${ar}`]:{opacity:1,color:rn.colorText},[`${zn}-error`]:{color:rn.colorError,[`${zn}-name, ${mn}-icon ${pn}`]:{color:rn.colorError},[Dn]:{[`${pn}, ${pn}:hover`]:{color:rn.colorError},[ar]:{opacity:1}}},[`${mn}-list-item-container`]:{transition:`opacity ${rn.motionDurationSlow}, height ${rn.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},yi=Ge(93083),Pi=Ge(1950);const sr=new yi.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Ar=new yi.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Si=rn=>{const{componentCls:mn}=rn,En=`${mn}-animate-inline`;return[{[`${mn}-wrapper`]:{[`${En}-appear, ${En}-enter, ${En}-leave`]:{animationDuration:rn.motionDurationSlow,animationTimingFunction:rn.motionEaseInOutCirc,animationFillMode:"forwards"},[`${En}-appear, ${En}-enter`]:{animationName:sr},[`${En}-leave`]:{animationName:Ar}}},{[`${mn}-wrapper`]:(0,Pi.J$)(rn)},sr,Ar]},Nr=Ge(93398),hn=Ge(64993);const cn=rn=>{const{componentCls:mn,iconCls:En,uploadThumbnailSize:pn,uploadProgressOffset:kn}=rn,Mn=`${mn}-list`,zn=`${Mn}-item`;return{[`${mn}-wrapper`]:{[`
|
|
|
${Mn}${Mn}-picture,
|
|
|
${Mn}${Mn}-picture-card,
|
|
|
${Mn}${Mn}-picture-circle
|
|
|
`]:{[zn]:{position:"relative",height:pn+rn.lineWidth*2+rn.paddingXS*2,padding:rn.paddingXS,border:`${rn.lineWidth}px ${rn.lineType} ${rn.colorBorder}`,borderRadius:rn.borderRadiusLG,"&:hover":{background:"transparent"},[`${zn}-thumbnail`]:Object.assign(Object.assign({},Cr.vS),{width:pn,height:pn,lineHeight:`${pn+rn.paddingSM}px`,textAlign:"center",flex:"none",[En]:{fontSize:rn.fontSizeHeading2,color:rn.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${zn}-progress`]:{bottom:kn,width:`calc(100% - ${rn.paddingSM*2}px)`,marginTop:0,paddingInlineStart:pn+rn.paddingXS}},[`${zn}-error`]:{borderColor:rn.colorError,[`${zn}-thumbnail ${En}`]:{[`svg path[fill='${Nr.blue[0]}']`]:{fill:rn.colorErrorBg},[`svg path[fill='${Nr.blue.primary}']`]:{fill:rn.colorError}}},[`${zn}-uploading`]:{borderStyle:"dashed",[`${zn}-name`]:{marginBottom:kn}}},[`${Mn}${Mn}-picture-circle ${zn}`]:{[`&, &::before, ${zn}-thumbnail`]:{borderRadius:"50%"}}}}},Ot=rn=>{const{componentCls:mn,iconCls:En,fontSizeLG:pn,colorTextLightSolid:kn}=rn,Mn=`${mn}-list`,zn=`${Mn}-item`,Dn=rn.uploadPicCardSize;return{[`
|
|
|
${mn}-wrapper${mn}-picture-card-wrapper,
|
|
|
${mn}-wrapper${mn}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Cr.dF)()),{display:"inline-block",width:"100%",[`${mn}${mn}-select`]:{width:Dn,height:Dn,marginInlineEnd:rn.marginXS,marginBottom:rn.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:rn.colorFillAlter,border:`${rn.lineWidth}px dashed ${rn.colorBorder}`,borderRadius:rn.borderRadiusLG,cursor:"pointer",transition:`border-color ${rn.motionDurationSlow}`,[`> ${mn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${mn}-disabled):hover`]:{borderColor:rn.colorPrimary}},[`${Mn}${Mn}-picture-card, ${Mn}${Mn}-picture-circle`]:{[`${Mn}-item-container`]:{display:"inline-block",width:Dn,height:Dn,marginBlock:`0 ${rn.marginXS}px`,marginInline:`0 ${rn.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[zn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${rn.paddingXS*2}px)`,height:`calc(100% - ${rn.paddingXS*2}px)`,backgroundColor:rn.colorBgMask,opacity:0,transition:`all ${rn.motionDurationSlow}`,content:'" "'}},[`${zn}:hover`]:{[`&::before, ${zn}-actions`]:{opacity:1}},[`${zn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${rn.motionDurationSlow}`,[`${En}-eye, ${En}-download, ${En}-delete`]:{zIndex:10,width:pn,margin:`0 ${rn.marginXXS}px`,fontSize:pn,cursor:"pointer",transition:`all ${rn.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${zn}-actions, ${zn}-actions:hover`]:{[`${En}-eye, ${En}-download, ${En}-delete`]:{color:new hn.C(kn).setAlpha(.65).toRgbString(),"&:hover":{color:kn}}},[`${zn}-thumbnail, ${zn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${zn}-name`]:{display:"none",textAlign:"center"},[`${zn}-file + ${zn}-name`]:{position:"absolute",bottom:rn.margin,display:"block",width:`calc(100% - ${rn.paddingXS*2}px)`},[`${zn}-uploading`]:{[`&${zn}`]:{backgroundColor:rn.colorFillAlter},[`&::before, ${En}-eye, ${En}-download, ${En}-delete`]:{display:"none"}},[`${zn}-progress`]:{bottom:rn.marginXL,width:`calc(100% - ${rn.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${mn}-wrapper${mn}-picture-circle-wrapper`]:{[`${mn}${mn}-select`]:{borderRadius:"50%"}}}};var Nn=rn=>{const{componentCls:mn}=rn;return{[`${mn}-rtl`]:{direction:"rtl"}}};const Xt=rn=>{const{componentCls:mn,colorTextDisabled:En}=rn;return{[`${mn}-wrapper`]:Object.assign(Object.assign({},(0,Cr.Wf)(rn)),{[mn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${mn}-select`]:{display:"inline-block"},[`${mn}-disabled`]:{color:En,cursor:"not-allowed"}})}};var zt=(0,ii.Z)("Upload",rn=>{const{fontSizeHeading3:mn,fontSize:En,lineHeight:pn,lineWidth:kn,controlHeightLG:Mn}=rn,zn=Math.round(En*pn),Dn=(0,jr.TS)(rn,{uploadThumbnailSize:mn*2,uploadProgressOffset:zn/2+kn,uploadPicCardSize:Mn*2.55});return[Xt(Dn),Lr(Dn),cn(Dn),Ot(Dn),oi(Dn),Si(Dn),Nn(Dn),(0,Yr.Z)(Dn)]},rn=>({actionsColor:rn.colorTextDescription})),Pn=function(rn,mn,En,pn){function kn(Mn){return Mn instanceof En?Mn:new En(function(zn){zn(Mn)})}return new(En||(En=Promise))(function(Mn,zn){function Dn(Or){try{dn(pn.next(Or))}catch(Jr){zn(Jr)}}function ar(Or){try{dn(pn.throw(Or))}catch(Jr){zn(Jr)}}function dn(Or){Or.done?Mn(Or.value):kn(Or.value).then(Dn,ar)}dn((pn=pn.apply(rn,mn||[])).next())})};const _n=`__LIST_IGNORE_${Date.now()}__`,qn=(rn,mn)=>{const{fileList:En,defaultFileList:pn,onRemove:kn,showUploadList:Mn=!0,listType:zn="text",onPreview:Dn,onDownload:ar,onChange:dn,onDrop:Or,previewFile:Jr,disabled:Rr,locale:vn,iconRender:Jn,isImageUrl:lr,progress:vr,prefixCls:Sr,className:Kr,type:ai="select",children:Br,style:br,itemRender:si,maxCount:Tn,data:Ri={},multiple:On=!1,action:pi="",accept:xo="",supportServerRender:zi=!0,rootClassName:Lo}=rn,yo=rt.useContext(et.Z),Ur=Rr!=null?Rr:yo,[Gr,Mi]=(0,ut.Z)(pn||[],{value:En,postState:So=>So!=null?So:[]}),[Hi,cr]=rt.useState("drop"),Lt=rt.useRef(null);rt.useMemo(()=>{const So=Date.now();(En||[]).forEach((ro,va)=>{!ro.uid&&!Object.isFrozen(ro)&&(ro.uid=`__AUTO__${So}_${va}__`)})},[En]);const Ii=(So,ro,va)=>{let Io=(0,vt.Z)(ro),qi=!1;Tn===1?Io=Io.slice(-1):Tn&&(qi=Io.length>Tn,Io=Io.slice(0,Tn)),(0,ht.flushSync)(()=>{Mi(Io)});const No={file:So,fileList:Io};va&&(No.event=va),(!qi||Io.some(xs=>xs.uid===So.uid))&&(0,ht.flushSync)(()=>{dn==null||dn(No)})},_r=(So,ro)=>Pn(void 0,void 0,void 0,function*(){const{beforeUpload:va,transformFile:Io}=rn;let qi=So;if(va){const No=yield va(So,ro);if(No===!1)return!1;if(delete So[_n],No===_n)return Object.defineProperty(So,_n,{value:!0,configurable:!0}),!1;typeof No=="object"&&No&&(qi=No)}return Io&&(qi=yield Io(qi)),qi}),Ir=So=>{const ro=So.filter(qi=>!qi.file[_n]);if(!ro.length)return;const va=ro.map(qi=>yt(qi.file));let Io=(0,vt.Z)(Gr);va.forEach(qi=>{Io=ft(qi,Io)}),va.forEach((qi,No)=>{let xs=qi;if(ro[No].parsedFile)qi.status="uploading";else{const{originFileObj:bi}=qi;let lo;try{lo=new File([bi],bi.name,{type:bi.type})}catch(ao){lo=new Blob([bi],{type:bi.type}),lo.name=bi.name,lo.lastModifiedDate=new Date,lo.lastModified=new Date().getTime()}lo.uid=qi.uid,xs=lo}Ii(xs,Io)})},_i=(So,ro,va)=>{try{typeof So=="string"&&(So=JSON.parse(So))}catch(No){}if(!Mt(ro,Gr))return;const Io=yt(ro);Io.status="done",Io.percent=100,Io.response=So,Io.xhr=va;const qi=ft(Io,Gr);Ii(Io,qi)},Ji=(So,ro)=>{if(!Mt(ro,Gr))return;const va=yt(ro);va.status="uploading",va.percent=So.percent;const Io=ft(va,Gr);Ii(va,Io,So)},zr=(So,ro,va)=>{if(!Mt(va,Gr))return;const Io=yt(va);Io.error=So,Io.response=ro,Io.status="error";const qi=ft(Io,Gr);Ii(Io,qi)},Vr=So=>{let ro;Promise.resolve(typeof kn=="function"?kn(So):kn).then(va=>{var Io;if(va===!1)return;const qi=Jt(So,Gr);qi&&(ro=Object.assign(Object.assign({},So),{status:"removed"}),Gr==null||Gr.forEach(No=>{const xs=ro.uid!==void 0?"uid":"name";No[xs]===ro[xs]&&!Object.isFrozen(No)&&(No.status="removed")}),(Io=Lt.current)===null||Io===void 0||Io.abort(ro),Ii(ro,qi))})},Ci=So=>{cr(So.type),So.type==="drop"&&(Or==null||Or(So))};rt.useImperativeHandle(mn,()=>({onBatchStart:Ir,onSuccess:_i,onProgress:Ji,onError:zr,fileList:Gr,upload:Lt.current}));const{getPrefixCls:mi,direction:Vi,upload:io}=rt.useContext(Ct.E_),Hr=mi("upload",Sr),Er=Object.assign(Object.assign({onBatchStart:Ir,onError:zr,onProgress:Ji,onSuccess:_i},rn),{data:Ri,multiple:On,action:pi,accept:xo,supportServerRender:zi,prefixCls:Hr,disabled:Ur,beforeUpload:_r,onChange:void 0});delete Er.className,delete Er.style,(!Br||Ur)&&delete Er.id;const[Kn,li]=zt(Hr),[Qi]=(0,it.Z)("Upload",St.Z.Upload),{showRemoveIcon:zo,showPreviewIcon:Mo,showDownloadIcon:Uo,removeIcon:ca,previewIcon:Jo,downloadIcon:qa}=typeof Mn=="boolean"?{}:Mn,La=(So,ro)=>Mn?rt.createElement(pr,{prefixCls:Hr,listType:zn,items:Gr,previewFile:Jr,onPreview:Dn,onDownload:ar,onRemove:Vr,showRemoveIcon:!Ur&&zo,showPreviewIcon:Mo,showDownloadIcon:Uo,removeIcon:ca,previewIcon:Jo,downloadIcon:qa,iconRender:Jn,locale:Object.assign(Object.assign({},Qi),vn),isImageUrl:lr,progress:vr,appendAction:So,appendActionVisible:ro,itemRender:si,disabled:Ur}):So,es=_e()(`${Hr}-wrapper`,Kr,Lo,li,io==null?void 0:io.className,{[`${Hr}-rtl`]:Vi==="rtl",[`${Hr}-picture-card-wrapper`]:zn==="picture-card",[`${Hr}-picture-circle-wrapper`]:zn==="picture-circle"}),wn=Object.assign(Object.assign({},io==null?void 0:io.style),br);if(ai==="drag"){const So=_e()(li,Hr,`${Hr}-drag`,{[`${Hr}-drag-uploading`]:Gr.some(ro=>ro.status==="uploading"),[`${Hr}-drag-hover`]:Hi==="dragover",[`${Hr}-disabled`]:Ur,[`${Hr}-rtl`]:Vi==="rtl"});return Kn(rt.createElement("span",{className:es},rt.createElement("div",{className:So,style:wn,onDrop:Ci,onDragOver:Ci,onDragLeave:Ci},rt.createElement(at,Object.assign({},Er,{ref:Lt,className:`${Hr}-btn`}),rt.createElement("div",{className:`${Hr}-drag-container`},Br))),La()))}const ma=_e()(Hr,`${Hr}-select`,{[`${Hr}-disabled`]:Ur}),el=(So=>rt.createElement("div",{className:ma,style:So},rt.createElement(at,Object.assign({},Er,{ref:Lt}))))(Br?void 0:{display:"none"});return Kn(zn==="picture-card"||zn==="picture-circle"?rt.createElement("span",{className:es},La(el,!!Br)):rt.createElement("span",{className:es},el,La()))};var $t=rt.forwardRef(qn),jn=function(rn,mn){var En={};for(var pn in rn)Object.prototype.hasOwnProperty.call(rn,pn)&&mn.indexOf(pn)<0&&(En[pn]=rn[pn]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,pn=Object.getOwnPropertySymbols(rn);kn<pn.length;kn++)mn.indexOf(pn[kn])<0&&Object.prototype.propertyIsEnumerable.call(rn,pn[kn])&&(En[pn[kn]]=rn[pn[kn]]);return En},or=rt.forwardRef((rn,mn)=>{var{style:En,height:pn}=rn,kn=jn(rn,["style","height"]);return rt.createElement($t,Object.assign({ref:mn},kn,{type:"drag",style:Object.assign(Object.assign({},En),{height:pn})}))});const nn=$t;nn.Dragger=or,nn.LIST_IGNORE=_n;var Cn=nn},99498:function(bn,an,Ge){(function(rt){rt(Ge(89780))})(function(rt){rt.defineOption("placeholder","",function(Pe,Ee,ye){var Me=ye&&ye!=rt.Init;if(Ee&&!Me)Pe.on("blur",Ie),Pe.on("change",ge),Pe.on("swapDoc",ge),rt.on(Pe.getInputField(),"compositionupdate",Pe.state.placeholderCompose=function(){_e(Pe)}),ge(Pe);else if(!Ee&&Me){Pe.off("blur",Ie),Pe.off("change",ge),Pe.off("swapDoc",ge),rt.off(Pe.getInputField(),"compositionupdate",Pe.state.placeholderCompose),vt(Pe);var ve=Pe.getWrapperElement();ve.className=ve.className.replace(" CodeMirror-empty","")}Ee&&!Pe.hasFocus()&&Ie(Pe)});function vt(Pe){Pe.state.placeholder&&(Pe.state.placeholder.parentNode.removeChild(Pe.state.placeholder),Pe.state.placeholder=null)}function ie(Pe){vt(Pe);var Ee=Pe.state.placeholder=document.createElement("pre");Ee.style.cssText="height: 0; overflow: visible",Ee.style.direction=Pe.getOption("direction"),Ee.className="CodeMirror-placeholder CodeMirror-line-like";var ye=Pe.getOption("placeholder");typeof ye=="string"&&(ye=document.createTextNode(ye)),Ee.appendChild(ye),Pe.display.lineSpace.insertBefore(Ee,Pe.display.lineSpace.firstChild)}function _e(Pe){setTimeout(function(){var Ee=!1,ye=Pe.getInputField();ye.nodeName=="TEXTAREA"?Ee=!ye.value:Pe.lineCount()==1&&(Ee=!/[^\u200b]/.test(ye.querySelector(".CodeMirror-line").textContent)),Ee?ie(Pe):vt(Pe)},20)}function Ie(Pe){ce(Pe)&&ie(Pe)}function ge(Pe){var Ee=Pe.getWrapperElement(),ye=ce(Pe);Ee.className=Ee.className.replace(" CodeMirror-empty","")+(ye?" CodeMirror-empty":""),ye?ie(Pe):vt(Pe)}function ce(Pe){return Pe.lineCount()===1&&Pe.getLine(0)===""}})},25717:function(bn,an,Ge){(function(rt){rt(Ge(89780))})(function(rt){var vt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ie=rt.Pos;rt.defineOption("autoCloseBrackets",!1,function(z,ee,ae){ae&&ae!=rt.Init&&(z.removeKeyMap(Ie),z.state.closeBrackets=null),ee&&(ge(_e(ee,"pairs")),z.state.closeBrackets=ee,z.addKeyMap(Ie))});function _e(z,ee){return ee=="pairs"&&typeof z=="string"?z:typeof z=="object"&&z[ee]!=null?z[ee]:vt[ee]}var Ie={Backspace:Ee,Enter:ye};function ge(z){for(var ee=0;ee<z.length;ee++){var ae=z.charAt(ee),re="'"+ae+"'";Ie[re]||(Ie[re]=ce(ae))}}ge(vt.pairs+"`");function ce(z){return function(ee){return ve(ee,z)}}function Pe(z){var ee=z.state.closeBrackets;if(!ee||ee.override)return ee;var ae=z.getModeAt(z.getCursor());return ae.closeBrackets||ee}function Ee(z){var ee=Pe(z);if(!ee||z.getOption("disableInput"))return rt.Pass;for(var ae=_e(ee,"pairs"),re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return rt.Pass;var ue=xe(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return rt.Pass}for(var le=re.length-1;le>=0;le--){var pe=re[le].head;z.replaceRange("",ie(pe.line,pe.ch-1),ie(pe.line,pe.ch+1),"+delete")}}function ye(z){var ee=Pe(z),ae=ee&&_e(ee,"explode");if(!ae||z.getOption("disableInput"))return rt.Pass;for(var re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return rt.Pass;var ue=xe(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return rt.Pass}z.operation(function(){var pe=z.lineSeparator()||`
|
|
|
`;z.replaceSelection(pe+pe,null),z.execCommand("goCharLeft"),re=z.listSelections();for(var Te=0;Te<re.length;Te++){var Ce=re[Te].head.line;z.indentLine(Ce,null,!0),z.indentLine(Ce+1,null,!0)}})}function Me(z){var ee=rt.cmpPos(z.anchor,z.head)>0;return{anchor:new ie(z.anchor.line,z.anchor.ch+(ee?-1:1)),head:new ie(z.head.line,z.head.ch+(ee?1:-1))}}function ve(z,ee){var ae=Pe(z);if(!ae||z.getOption("disableInput"))return rt.Pass;var re=_e(ae,"pairs"),le=re.indexOf(ee);if(le==-1)return rt.Pass;for(var ue=_e(ae,"closeBefore"),pe=_e(ae,"triples"),Te=re.charAt(le+1)==ee,Ce=z.listSelections(),Fe=le%2==0,Ae,je=0;je<Ce.length;je++){var Ne=Ce[je],Be=Ne.head,ze,Qe=z.getRange(Be,ie(Be.line,Be.ch+1));if(Fe&&!Ne.empty())ze="surround";else if((Te||!Fe)&&Qe==ee)Te&&fe(z,Be)?ze="both":pe.indexOf(ee)>=0&&z.getRange(Be,ie(Be.line,Be.ch+3))==ee+ee+ee?ze="skipThree":ze="skip";else if(Te&&Be.ch>1&&pe.indexOf(ee)>=0&&z.getRange(ie(Be.line,Be.ch-2),Be)==ee+ee){if(Be.ch>2&&/\bstring/.test(z.getTokenTypeAt(ie(Be.line,Be.ch-2))))return rt.Pass;ze="addFour"}else if(Te){var $e=Be.ch==0?" ":z.getRange(ie(Be.line,Be.ch-1),Be);if(!rt.isWordChar(Qe)&&$e!=ee&&!rt.isWordChar($e))ze="both";else return rt.Pass}else if(Fe&&(Qe.length===0||/\s/.test(Qe)||ue.indexOf(Qe)>-1))ze="both";else return rt.Pass;if(!Ae)Ae=ze;else if(Ae!=ze)return rt.Pass}var Ye=le%2?re.charAt(le-1):ee,at=le%2?ee:re.charAt(le+1);z.operation(function(){if(Ae=="skip")z.execCommand("goCharRight");else if(Ae=="skipThree")for(var ut=0;ut<3;ut++)z.execCommand("goCharRight");else if(Ae=="surround"){for(var ht=z.getSelections(),ut=0;ut<ht.length;ut++)ht[ut]=Ye+ht[ut]+at;z.replaceSelections(ht,"around"),ht=z.listSelections().slice();for(var ut=0;ut<ht.length;ut++)ht[ut]=Me(ht[ut]);z.setSelections(ht)}else Ae=="both"?(z.replaceSelection(Ye+at,null),z.triggerElectric(Ye+at),z.execCommand("goCharLeft")):Ae=="addFour"&&(z.replaceSelection(Ye+Ye+Ye+Ye,"before"),z.execCommand("goCharRight"))})}function xe(z,ee){var ae=z.getRange(ie(ee.line,ee.ch-1),ie(ee.line,ee.ch+1));return ae.length==2?ae:null}function fe(z,ee){var ae=z.getTokenAt(ie(ee.line,ee.ch+1));return/\bstring/.test(ae.type)&&ae.start==ee.ch&&(ee.ch==0||!/\bstring/.test(z.getTokenTypeAt(ee)))}})},6313:function(bn,an,Ge){(function(rt){rt(Ge(89780),Ge(32855))})(function(rt){rt.defineOption("autoCloseTags",!1,function(Ee,ye,Me){if(Me!=rt.Init&&Me&&Ee.removeKeyMap("autoCloseTags"),!!ye){var ve={name:"autoCloseTags"};(typeof ye!="object"||ye.whenClosing!==!1)&&(ve["'/'"]=function(xe){return ge(xe)}),(typeof ye!="object"||ye.whenOpening!==!1)&&(ve["'>'"]=function(xe){return _e(xe)}),Ee.addKeyMap(ve)}});var vt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ie=["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 _e(Ee){if(Ee.getOption("disableInput"))return rt.Pass;for(var ye=Ee.listSelections(),Me=[],ve=Ee.getOption("autoCloseTags"),xe=0;xe<ye.length;xe++){if(!ye[xe].empty())return rt.Pass;var fe=ye[xe].head,z=Ee.getTokenAt(fe),ee=rt.innerMode(Ee.getMode(),z.state),ae=ee.state,re=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(ae),le=re&&re.name;if(!le)return rt.Pass;var ue=ee.mode.configuration=="html",pe=typeof ve=="object"&&ve.dontCloseTags||ue&&vt,Te=typeof ve=="object"&&ve.indentTags||ue&&ie;z.end>fe.ch&&(le=le.slice(0,le.length-z.end+fe.ch));var Ce=le.toLowerCase();if(!le||z.type=="string"&&(z.end!=fe.ch||!/[\"\']/.test(z.string.charAt(z.string.length-1))||z.string.length==1)||z.type=="tag"&&re.close||z.string.indexOf("/")==fe.ch-z.start-1||pe&&ce(pe,Ce)>-1||Pe(Ee,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(ae)||[],le,fe,!0))return rt.Pass;var Fe=typeof ve=="object"&&ve.emptyTags;if(Fe&&ce(Fe,le)>-1){Me[xe]={text:"/>",newPos:rt.Pos(fe.line,fe.ch+2)};continue}var Ae=Te&&ce(Te,Ce)>-1;Me[xe]={indent:Ae,text:">"+(Ae?`
|
|
|
|
|
|
`:"")+"</"+le+">",newPos:Ae?rt.Pos(fe.line+1,0):rt.Pos(fe.line,fe.ch+1)}}for(var je=typeof ve=="object"&&ve.dontIndentOnAutoClose,xe=ye.length-1;xe>=0;xe--){var Ne=Me[xe];Ee.replaceRange(Ne.text,ye[xe].head,ye[xe].anchor,"+insert");var Be=Ee.listSelections().slice(0);Be[xe]={head:Ne.newPos,anchor:Ne.newPos},Ee.setSelections(Be),!je&&Ne.indent&&(Ee.indentLine(Ne.newPos.line,null,!0),Ee.indentLine(Ne.newPos.line+1,null,!0))}}function Ie(Ee,ye){for(var Me=Ee.listSelections(),ve=[],xe=ye?"/":"</",fe=Ee.getOption("autoCloseTags"),z=typeof fe=="object"&&fe.dontIndentOnSlash,ee=0;ee<Me.length;ee++){if(!Me[ee].empty())return rt.Pass;var ae=Me[ee].head,re=Ee.getTokenAt(ae),le=rt.innerMode(Ee.getMode(),re.state),ue=le.state;if(ye&&(re.type=="string"||re.string.charAt(0)!="<"||re.start!=ae.ch-1))return rt.Pass;var pe,Te=le.mode.name!="xml"&&Ee.getMode().name=="htmlmixed";if(Te&&le.mode.name=="javascript")pe=xe+"script";else if(Te&&le.mode.name=="css")pe=xe+"style";else{var Ce=le.mode.xmlCurrentContext&&le.mode.xmlCurrentContext(ue);if(!Ce||Ce.length&&Pe(Ee,Ce,Ce[Ce.length-1],ae))return rt.Pass;pe=xe+Ce[Ce.length-1]}Ee.getLine(ae.line).charAt(re.end)!=">"&&(pe+=">"),ve[ee]=pe}if(Ee.replaceSelections(ve),Me=Ee.listSelections(),!z)for(var ee=0;ee<Me.length;ee++)(ee==Me.length-1||Me[ee].head.line<Me[ee+1].head.line)&&Ee.indentLine(Me[ee].head.line)}function ge(Ee){return Ee.getOption("disableInput")?rt.Pass:Ie(Ee,!0)}rt.commands.closeTag=function(Ee){return Ie(Ee)};function ce(Ee,ye){if(Ee.indexOf)return Ee.indexOf(ye);for(var Me=0,ve=Ee.length;Me<ve;++Me)if(Ee[Me]==ye)return Me;return-1}function Pe(Ee,ye,Me,ve,xe){if(!rt.scanForClosingTag)return!1;var fe=Math.min(Ee.lastLine()+1,ve.line+500),z=rt.scanForClosingTag(Ee,ve,null,fe);if(!z||z.tag!=Me)return!1;for(var ee=xe?1:0,ae=ye.length-1;ae>=0&&ye[ae]==Me;ae--)++ee;ve=z.to;for(var ae=1;ae<ee;ae++){var re=rt.scanForClosingTag(Ee,ve,null,fe);if(!re||re.tag!=Me)return!1;ve=re.to}return!0}})},32855:function(bn,an,Ge){(function(rt){rt(Ge(89780))})(function(rt){"use strict";var vt=rt.Pos;function ie(ae,re){return ae.line-re.line||ae.ch-re.ch}var _e="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",Ie=_e+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("<(/?)(["+_e+"]["+Ie+"]*)","g");function ce(ae,re,le,ue){this.line=re,this.ch=le,this.cm=ae,this.text=ae.getLine(re),this.min=ue?Math.max(ue.from,ae.firstLine()):ae.firstLine(),this.max=ue?Math.min(ue.to-1,ae.lastLine()):ae.lastLine()}function Pe(ae,re){var le=ae.cm.getTokenTypeAt(vt(ae.line,re));return le&&/\btag\b/.test(le)}function Ee(ae){if(!(ae.line>=ae.max))return ae.ch=0,ae.text=ae.cm.getLine(++ae.line),!0}function ye(ae){if(!(ae.line<=ae.min))return ae.text=ae.cm.getLine(--ae.line),ae.ch=ae.text.length,!0}function Me(ae){for(;;){var re=ae.text.indexOf(">",ae.ch);if(re==-1){if(Ee(ae))continue;return}if(!Pe(ae,re+1)){ae.ch=re+1;continue}var le=ae.text.lastIndexOf("/",re),ue=le>-1&&!/\S/.test(ae.text.slice(le+1,re));return ae.ch=re+1,ue?"selfClose":"regular"}}function ve(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf("<",ae.ch-1):-1;if(re==-1){if(ye(ae))continue;return}if(!Pe(ae,re+1)){ae.ch=re;continue}ge.lastIndex=re,ae.ch=re;var le=ge.exec(ae.text);if(le&&le.index==re)return le}}function xe(ae){for(;;){ge.lastIndex=ae.ch;var re=ge.exec(ae.text);if(!re){if(Ee(ae))continue;return}if(!Pe(ae,re.index+1)){ae.ch=re.index+1;continue}return ae.ch=re.index+re[0].length,re}}function fe(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf(">",ae.ch-1):-1;if(re==-1){if(ye(ae))continue;return}if(!Pe(ae,re+1)){ae.ch=re;continue}var le=ae.text.lastIndexOf("/",re),ue=le>-1&&!/\S/.test(ae.text.slice(le+1,re));return ae.ch=re+1,ue?"selfClose":"regular"}}function z(ae,re){for(var le=[];;){var ue=xe(ae),pe,Te=ae.line,Ce=ae.ch-(ue?ue[0].length:0);if(!ue||!(pe=Me(ae)))return;if(pe!="selfClose")if(ue[1]){for(var Fe=le.length-1;Fe>=0;--Fe)if(le[Fe]==ue[2]){le.length=Fe;break}if(Fe<0&&(!re||re==ue[2]))return{tag:ue[2],from:vt(Te,Ce),to:vt(ae.line,ae.ch)}}else le.push(ue[2])}}function ee(ae,re){for(var le=[];;){var ue=fe(ae);if(!ue)return;if(ue=="selfClose"){ve(ae);continue}var pe=ae.line,Te=ae.ch,Ce=ve(ae);if(!Ce)return;if(Ce[1])le.push(Ce[2]);else{for(var Fe=le.length-1;Fe>=0;--Fe)if(le[Fe]==Ce[2]){le.length=Fe;break}if(Fe<0&&(!re||re==Ce[2]))return{tag:Ce[2],from:vt(ae.line,ae.ch),to:vt(pe,Te)}}}}rt.registerHelper("fold","xml",function(ae,re){for(var le=new ce(ae,re.line,0);;){var ue=xe(le);if(!ue||le.line!=re.line)return;var pe=Me(le);if(!pe)return;if(!ue[1]&&pe!="selfClose"){var Te=vt(le.line,le.ch),Ce=z(le,ue[2]);return Ce&&ie(Ce.from,Te)>0?{from:Te,to:Ce.from}:null}}}),rt.findMatchingTag=function(ae,re,le){var ue=new ce(ae,re.line,re.ch,le);if(!(ue.text.indexOf(">")==-1&&ue.text.indexOf("<")==-1)){var pe=Me(ue),Te=pe&&vt(ue.line,ue.ch),Ce=pe&&ve(ue);if(!(!pe||!Ce||ie(ue,re)>0)){var Fe={from:vt(ue.line,ue.ch),to:Te,tag:Ce[2]};return pe=="selfClose"?{open:Fe,close:null,at:"open"}:Ce[1]?{open:ee(ue,Ce[2]),close:Fe,at:"close"}:(ue=new ce(ae,Te.line,Te.ch,le),{open:Fe,close:z(ue,Ce[2]),at:"open"})}}},rt.findEnclosingTag=function(ae,re,le,ue){for(var pe=new ce(ae,re.line,re.ch,le);;){var Te=ee(pe,ue);if(!Te)break;var Ce=new ce(ae,re.line,re.ch,le),Fe=z(Ce,Te.tag);if(Fe)return{open:Te,close:Fe}}},rt.scanForClosingTag=function(ae,re,le,ue){var pe=new ce(ae,re.line,re.ch,ue?{from:0,to:ue}:null);return z(pe,le)}})},89780:function(bn){(function(an,Ge){bn.exports=Ge()})(this,function(){"use strict";var an=navigator.userAgent,Ge=navigator.platform,rt=/gecko\/\d/i.test(an),vt=/MSIE \d/.test(an),ie=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(an),_e=/Edge\/(\d+)/.exec(an),Ie=vt||ie||_e,ge=Ie&&(vt?document.documentMode||6:+(_e||ie)[1]),ce=!_e&&/WebKit\//.test(an),Pe=ce&&/Qt\/\d+\.\d+/.test(an),Ee=!_e&&/Chrome\//.test(an),ye=/Opera\//.test(an),Me=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(an),xe=/PhantomJS/.test(an),fe=!_e&&/AppleWebKit/.test(an)&&/Mobile\/\w+/.test(an),z=/Android/.test(an),ee=fe||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(an),ae=fe||/Mac/.test(Ge),re=/\bCrOS\b/.test(an),le=/win/i.test(Ge),ue=ye&&an.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(ye=!1,ce=!0);var pe=ae&&(Pe||ye&&(ue==null||ue<12.11)),Te=rt||Ie&&ge>=9;function Ce(oe){return new RegExp("(^|\\s)"+oe+"(?:$|\\s)\\s*")}var Fe=function(oe,de){var ke=oe.className,Le=Ce(de).exec(ke);if(Le){var Re=ke.slice(Le.index+Le[0].length);oe.className=ke.slice(0,Le.index)+(Re?Le[1]+Re:"")}};function Ae(oe){for(var de=oe.childNodes.length;de>0;--de)oe.removeChild(oe.firstChild);return oe}function je(oe,de){return Ae(oe).appendChild(de)}function Ne(oe,de,ke,Le){var Re=document.createElement(oe);if(ke&&(Re.className=ke),Le&&(Re.style.cssText=Le),typeof de=="string")Re.appendChild(document.createTextNode(de));else if(de)for(var st=0;st<de.length;++st)Re.appendChild(de[st]);return Re}function Be(oe,de,ke,Le){var Re=Ne(oe,de,ke,Le);return Re.setAttribute("role","presentation"),Re}var ze;document.createRange?ze=function(oe,de,ke,Le){var Re=document.createRange();return Re.setEnd(Le||oe,ke),Re.setStart(oe,de),Re}:ze=function(oe,de,ke){var Le=document.body.createTextRange();try{Le.moveToElementText(oe.parentNode)}catch(Re){return Le}return Le.collapse(!0),Le.moveEnd("character",ke),Le.moveStart("character",de),Le};function Qe(oe,de){if(de.nodeType==3&&(de=de.parentNode),oe.contains)return oe.contains(de);do if(de.nodeType==11&&(de=de.host),de==oe)return!0;while(de=de.parentNode)}function $e(){var oe;try{oe=document.activeElement}catch(de){oe=document.body||null}for(;oe&&oe.shadowRoot&&oe.shadowRoot.activeElement;)oe=oe.shadowRoot.activeElement;return oe}function Ye(oe,de){var ke=oe.className;Ce(de).test(ke)||(oe.className+=(ke?" ":"")+de)}function at(oe,de){for(var ke=oe.split(" "),Le=0;Le<ke.length;Le++)ke[Le]&&!Ce(ke[Le]).test(de)&&(de+=" "+ke[Le]);return de}var ut=function(oe){oe.select()};fe?ut=function(oe){oe.selectionStart=0,oe.selectionEnd=oe.value.length}:Ie&&(ut=function(oe){try{oe.select()}catch(de){}});function ht(oe){var de=Array.prototype.slice.call(arguments,1);return function(){return oe.apply(null,de)}}function Ct(oe,de,ke){de||(de={});for(var Le in oe)oe.hasOwnProperty(Le)&&(ke!==!1||!de.hasOwnProperty(Le))&&(de[Le]=oe[Le]);return de}function et(oe,de,ke,Le,Re){de==null&&(de=oe.search(/[^\s\u00a0]/),de==-1&&(de=oe.length));for(var st=Le||0,xt=Re||0;;){var jt=oe.indexOf(" ",st);if(jt<0||jt>=de)return xt+(de-st);xt+=jt-st,xt+=ke-xt%ke,st=jt+1}}var it=function(){this.id=null,this.f=null,this.time=0,this.handler=ht(this.onTimeout,this)};it.prototype.onTimeout=function(oe){oe.id=0,oe.time<=+new Date?oe.f():setTimeout(oe.handler,oe.time-+new Date)},it.prototype.set=function(oe,de){this.f=de;var ke=+new Date+oe;(!this.id||ke<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,oe),this.time=ke)};function St(oe,de){for(var ke=0;ke<oe.length;++ke)if(oe[ke]==de)return ke;return-1}var bt=50,Pt={toString:function(){return"CodeMirror.Pass"}},gt={scroll:!1},dt={origin:"*mouse"},mt={origin:"+move"};function kt(oe,de,ke){for(var Le=0,Re=0;;){var st=oe.indexOf(" ",Le);st==-1&&(st=oe.length);var xt=st-Le;if(st==oe.length||Re+xt>=de)return Le+Math.min(xt,de-Re);if(Re+=st-Le,Re+=ke-Re%ke,Le=st+1,Re>=de)return Le}}var Et=[""];function Ut(oe){for(;Et.length<=oe;)Et.push(wt(Et)+" ");return Et[oe]}function wt(oe){return oe[oe.length-1]}function pt(oe,de){for(var ke=[],Le=0;Le<oe.length;Le++)ke[Le]=de(oe[Le],Le);return ke}function tt(oe,de,ke){for(var Le=0,Re=ke(de);Le<oe.length&&ke(oe[Le])<=Re;)Le++;oe.splice(Le,0,de)}function Ze(){}function we(oe,de){var ke;return Object.create?ke=Object.create(oe):(Ze.prototype=oe,ke=new Ze),de&&Ct(de,ke),ke}var be=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ke(oe){return/\w/.test(oe)||oe>"\x80"&&(oe.toUpperCase()!=oe.toLowerCase()||be.test(oe))}function Xe(oe,de){return de?de.source.indexOf("\\w")>-1&&Ke(oe)?!0:de.test(oe):Ke(oe)}function Oe(oe){for(var de in oe)if(oe.hasOwnProperty(de)&&oe[de])return!1;return!0}var Ue=/[\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 He(oe){return oe.charCodeAt(0)>=768&&Ue.test(oe)}function Ve(oe,de,ke){for(;(ke<0?de>0:de<oe.length)&&He(oe.charAt(de));)de+=ke;return de}function Je(oe,de,ke){for(var Le=de>ke?-1:1;;){if(de==ke)return de;var Re=(de+ke)/2,st=Le<0?Math.ceil(Re):Math.floor(Re);if(st==de)return oe(st)?de:ke;oe(st)?ke=st:de=st+Le}}function ct(oe,de,ke,Le){if(!oe)return Le(de,ke,"ltr",0);for(var Re=!1,st=0;st<oe.length;++st){var xt=oe[st];(xt.from<ke&&xt.to>de||de==ke&&xt.to==de)&&(Le(Math.max(xt.from,de),Math.min(xt.to,ke),xt.level==1?"rtl":"ltr",st),Re=!0)}Re||Le(de,ke,"ltr")}var yt=null;function ft(oe,de,ke){var Le;yt=null;for(var Re=0;Re<oe.length;++Re){var st=oe[Re];if(st.from<de&&st.to>de)return Re;st.to==de&&(st.from!=st.to&&ke=="before"?Le=Re:yt=Re),st.from==de&&(st.from!=st.to&&ke!="before"?Le=Re:yt=Re)}return Le!=null?Le:yt}var Mt=function(){var oe="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",de="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ke(Wt){return Wt<=247?oe.charAt(Wt):1424<=Wt&&Wt<=1524?"R":1536<=Wt&&Wt<=1785?de.charAt(Wt-1536):1774<=Wt&&Wt<=2220?"r":8192<=Wt&&Wt<=8203?"w":Wt==8204?"b":"L"}var Le=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Re=/[stwN]/,st=/[LRr]/,xt=/[Lb1n]/,jt=/[1n]/;function Nt(Wt,yn,Yt){this.level=Wt,this.from=yn,this.to=Yt}return function(Wt,yn){var Yt=yn=="ltr"?"L":"R";if(Wt.length==0||yn=="ltr"&&!Le.test(Wt))return!1;for(var $n=Wt.length,Fn=[],hr=0;hr<$n;++hr)Fn.push(ke(Wt.charCodeAt(hr)));for(var wr=0,Dr=Yt;wr<$n;++wr){var ri=Fn[wr];ri=="m"?Fn[wr]=Dr:Dr=ri}for(var Li=0,wi=Yt;Li<$n;++Li){var Bi=Fn[Li];Bi=="1"&&wi=="r"?Fn[Li]="n":st.test(Bi)&&(wi=Bi,Bi=="r"&&(Fn[Li]="R"))}for(var mo=1,vi=Fn[0];mo<$n-1;++mo){var Oo=Fn[mo];Oo=="+"&&vi=="1"&&Fn[mo+1]=="1"?Fn[mo]="1":Oo==","&&vi==Fn[mo+1]&&(vi=="1"||vi=="n")&&(Fn[mo]=vi),vi=Oo}for(var Ya=0;Ya<$n;++Ya){var Ds=Fn[Ya];if(Ds==",")Fn[Ya]="N";else if(Ds=="%"){var os=void 0;for(os=Ya+1;os<$n&&Fn[os]=="%";++os);for(var Kl=Ya&&Fn[Ya-1]=="!"||os<$n&&Fn[os]=="1"?"1":"N",vl=Ya;vl<os;++vl)Fn[vl]=Kl;Ya=os-1}}for(var ks=0,ou=Yt;ks<$n;++ks){var al=Fn[ks];ou=="L"&&al=="1"?Fn[ks]="L":st.test(al)&&(ou=al)}for(var Os=0;Os<$n;++Os)if(Re.test(Fn[Os])){var oa=void 0;for(oa=Os+1;oa<$n&&Re.test(Fn[oa]);++oa);for(var hs=(Os?Fn[Os-1]:Yt)=="L",Gs=(oa<$n?Fn[oa]:Yt)=="L",sl=hs==Gs?hs?"L":"R":Yt,Zu=Os;Zu<oa;++Zu)Fn[Zu]=sl;Os=oa-1}for(var as=[],ku,ys=0;ys<$n;)if(xt.test(Fn[ys])){var xf=ys;for(++ys;ys<$n&&xt.test(Fn[ys]);++ys);as.push(new Nt(0,xf,ys))}else{var vu=ys,au=as.length,Vl=yn=="rtl"?1:0;for(++ys;ys<$n&&Fn[ys]!="L";++ys);for(var Ia=vu;Ia<ys;)if(jt.test(Fn[Ia])){vu<Ia&&(as.splice(au,0,new Nt(1,vu,Ia)),au+=Vl);var Hs=Ia;for(++Ia;Ia<ys&&jt.test(Fn[Ia]);++Ia);as.splice(au,0,new Nt(2,Hs,Ia)),au+=Vl,vu=Ia}else++Ia;vu<ys&&as.splice(au,0,new Nt(1,vu,ys))}return yn=="ltr"&&(as[0].level==1&&(ku=Wt.match(/^\s+/))&&(as[0].from=ku[0].length,as.unshift(new Nt(0,0,ku[0].length))),wt(as).level==1&&(ku=Wt.match(/\s+$/))&&(wt(as).to-=ku[0].length,as.push(new Nt(0,$n-ku[0].length,$n)))),yn=="rtl"?as.reverse():as}}();function Jt(oe,de){var ke=oe.order;return ke==null&&(ke=oe.order=Mt(oe.text,de)),ke}var Vt=[],Kt=function(oe,de,ke){if(oe.addEventListener)oe.addEventListener(de,ke,!1);else if(oe.attachEvent)oe.attachEvent("on"+de,ke);else{var Le=oe._handlers||(oe._handlers={});Le[de]=(Le[de]||Vt).concat(ke)}};function Ht(oe,de){return oe._handlers&&oe._handlers[de]||Vt}function tn(oe,de,ke){if(oe.removeEventListener)oe.removeEventListener(de,ke,!1);else if(oe.detachEvent)oe.detachEvent("on"+de,ke);else{var Le=oe._handlers,Re=Le&&Le[de];if(Re){var st=St(Re,ke);st>-1&&(Le[de]=Re.slice(0,st).concat(Re.slice(st+1)))}}}function It(oe,de){var ke=Ht(oe,de);if(ke.length)for(var Le=Array.prototype.slice.call(arguments,2),Re=0;Re<ke.length;++Re)ke[Re].apply(null,Le)}function Dt(oe,de,ke){return typeof de=="string"&&(de={type:de,preventDefault:function(){this.defaultPrevented=!0}}),It(oe,ke||de.type,oe,de),Xn(de)||de.codemirrorIgnore}function qt(oe){var de=oe._handlers&&oe._handlers.cursorActivity;if(de)for(var ke=oe.curOp.cursorActivityHandlers||(oe.curOp.cursorActivityHandlers=[]),Le=0;Le<de.length;++Le)St(ke,de[Le])==-1&&ke.push(de[Le])}function sn(oe,de){return Ht(oe,de).length>0}function xn(oe){oe.prototype.on=function(de,ke){Kt(this,de,ke)},oe.prototype.off=function(de,ke){tn(this,de,ke)}}function Ln(oe){oe.preventDefault?oe.preventDefault():oe.returnValue=!1}function Zn(oe){oe.stopPropagation?oe.stopPropagation():oe.cancelBubble=!0}function Xn(oe){return oe.defaultPrevented!=null?oe.defaultPrevented:oe.returnValue==!1}function dr(oe){Ln(oe),Zn(oe)}function fr(oe){return oe.target||oe.srcElement}function pr(oe){var de=oe.which;return de==null&&(oe.button&1?de=1:oe.button&2?de=3:oe.button&4&&(de=2)),ae&&oe.ctrlKey&&de==1&&(de=3),de}var Cr=function(){if(Ie&&ge<9)return!1;var oe=Ne("div");return"draggable"in oe||"dragDrop"in oe}(),Yr;function ii(oe){if(Yr==null){var de=Ne("span","\u200B");je(oe,Ne("span",[de,document.createTextNode("x")])),oe.firstChild.offsetHeight!=0&&(Yr=de.offsetWidth<=1&&de.offsetHeight>2&&!(Ie&&ge<8))}var ke=Yr?Ne("span","\u200B"):Ne("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ke.setAttribute("cm-text",""),ke}var jr;function fi(oe){if(jr!=null)return jr;var de=je(oe,document.createTextNode("A\u062EA")),ke=ze(de,0,1).getBoundingClientRect(),Le=ze(de,1,2).getBoundingClientRect();return Ae(oe),!ke||ke.left==ke.right?!1:jr=Le.right-ke.right<3}var Lr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(oe){for(var de=0,ke=[],Le=oe.length;de<=Le;){var Re=oe.indexOf(`
|
|
|
`,de);Re==-1&&(Re=oe.length);var st=oe.slice(de,oe.charAt(Re-1)=="\r"?Re-1:Re),xt=st.indexOf("\r");xt!=-1?(ke.push(st.slice(0,xt)),de+=xt+1):(ke.push(st),de=Re+1)}return ke}:function(oe){return oe.split(/\r\n?|\n/)},ot=window.getSelection?function(oe){try{return oe.selectionStart!=oe.selectionEnd}catch(de){return!1}}:function(oe){var de;try{de=oe.ownerDocument.selection.createRange()}catch(ke){}return!de||de.parentElement()!=oe?!1:de.compareEndPoints("StartToEnd",de)!=0},oi=function(){var oe=Ne("div");return"oncopy"in oe?!0:(oe.setAttribute("oncopy","return;"),typeof oe.oncopy=="function")}(),yi=null;function Pi(oe){if(yi!=null)return yi;var de=je(oe,Ne("span","x")),ke=de.getBoundingClientRect(),Le=ze(de,0,1).getBoundingClientRect();return yi=Math.abs(ke.left-Le.left)>1}var sr={},Ar={};function Fr(oe,de){arguments.length>2&&(de.dependencies=Array.prototype.slice.call(arguments,2)),sr[oe]=de}function Si(oe,de){Ar[oe]=de}function Nr(oe){if(typeof oe=="string"&&Ar.hasOwnProperty(oe))oe=Ar[oe];else if(oe&&typeof oe.name=="string"&&Ar.hasOwnProperty(oe.name)){var de=Ar[oe.name];typeof de=="string"&&(de={name:de}),oe=we(de,oe),oe.name=de.name}else{if(typeof oe=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(oe))return Nr("application/xml");if(typeof oe=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(oe))return Nr("application/json")}return typeof oe=="string"?{name:oe}:oe||{name:"null"}}function hn(oe,de){de=Nr(de);var ke=sr[de.name];if(!ke)return hn(oe,"text/plain");var Le=ke(oe,de);if(cn.hasOwnProperty(de.name)){var Re=cn[de.name];for(var st in Re)Re.hasOwnProperty(st)&&(Le.hasOwnProperty(st)&&(Le["_"+st]=Le[st]),Le[st]=Re[st])}if(Le.name=de.name,de.helperType&&(Le.helperType=de.helperType),de.modeProps)for(var xt in de.modeProps)Le[xt]=de.modeProps[xt];return Le}var cn={};function Ot(oe,de){var ke=cn.hasOwnProperty(oe)?cn[oe]:cn[oe]={};Ct(de,ke)}function gn(oe,de){if(de===!0)return de;if(oe.copyState)return oe.copyState(de);var ke={};for(var Le in de){var Re=de[Le];Re instanceof Array&&(Re=Re.concat([])),ke[Le]=Re}return ke}function Nn(oe,de){for(var ke;oe.innerMode&&(ke=oe.innerMode(de),!(!ke||ke.mode==oe));)de=ke.state,oe=ke.mode;return ke||{mode:oe,state:de}}function Xt(oe,de,ke){return oe.startState?oe.startState(de,ke):!0}var zt=function(oe,de,ke){this.pos=this.start=0,this.string=oe,this.tabSize=de||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ke};zt.prototype.eol=function(){return this.pos>=this.string.length},zt.prototype.sol=function(){return this.pos==this.lineStart},zt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},zt.prototype.eat=function(oe){var de=this.string.charAt(this.pos),ke;if(typeof oe=="string"?ke=de==oe:ke=de&&(oe.test?oe.test(de):oe(de)),ke)return++this.pos,de},zt.prototype.eatWhile=function(oe){for(var de=this.pos;this.eat(oe););return this.pos>de},zt.prototype.eatSpace=function(){for(var oe=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>oe},zt.prototype.skipToEnd=function(){this.pos=this.string.length},zt.prototype.skipTo=function(oe){var de=this.string.indexOf(oe,this.pos);if(de>-1)return this.pos=de,!0},zt.prototype.backUp=function(oe){this.pos-=oe},zt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=et(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?et(this.string,this.lineStart,this.tabSize):0)},zt.prototype.indentation=function(){return et(this.string,null,this.tabSize)-(this.lineStart?et(this.string,this.lineStart,this.tabSize):0)},zt.prototype.match=function(oe,de,ke){if(typeof oe=="string"){var Le=function(xt){return ke?xt.toLowerCase():xt},Re=this.string.substr(this.pos,oe.length);if(Le(Re)==Le(oe))return de!==!1&&(this.pos+=oe.length),!0}else{var st=this.string.slice(this.pos).match(oe);return st&&st.index>0?null:(st&&de!==!1&&(this.pos+=st[0].length),st)}},zt.prototype.current=function(){return this.string.slice(this.start,this.pos)},zt.prototype.hideFirstChars=function(oe,de){this.lineStart+=oe;try{return de()}finally{this.lineStart-=oe}},zt.prototype.lookAhead=function(oe){var de=this.lineOracle;return de&&de.lookAhead(oe)},zt.prototype.baseToken=function(){var oe=this.lineOracle;return oe&&oe.baseToken(this.pos)};function Pn(oe,de){if(de-=oe.first,de<0||de>=oe.size)throw new Error("There is no line "+(de+oe.first)+" in the document.");for(var ke=oe;!ke.lines;)for(var Le=0;;++Le){var Re=ke.children[Le],st=Re.chunkSize();if(de<st){ke=Re;break}de-=st}return ke.lines[de]}function _n(oe,de,ke){var Le=[],Re=de.line;return oe.iter(de.line,ke.line+1,function(st){var xt=st.text;Re==ke.line&&(xt=xt.slice(0,ke.ch)),Re==de.line&&(xt=xt.slice(de.ch)),Le.push(xt),++Re}),Le}function qn(oe,de,ke){var Le=[];return oe.iter(de,ke,function(Re){Le.push(Re.text)}),Le}function Yn(oe,de){var ke=de-oe.height;if(ke)for(var Le=oe;Le;Le=Le.parent)Le.height+=ke}function $t(oe){if(oe.parent==null)return null;for(var de=oe.parent,ke=St(de.lines,oe),Le=de.parent;Le;de=Le,Le=Le.parent)for(var Re=0;Le.children[Re]!=de;++Re)ke+=Le.children[Re].chunkSize();return ke+de.first}function jn(oe,de){var ke=oe.first;e:do{for(var Le=0;Le<oe.children.length;++Le){var Re=oe.children[Le],st=Re.height;if(de<st){oe=Re;continue e}de-=st,ke+=Re.chunkSize()}return ke}while(!oe.lines);for(var xt=0;xt<oe.lines.length;++xt){var jt=oe.lines[xt],Nt=jt.height;if(de<Nt)break;de-=Nt}return ke+xt}function Wn(oe,de){return de>=oe.first&&de<oe.first+oe.size}function or(oe,de){return String(oe.lineNumberFormatter(de+oe.firstLineNumber))}function nn(oe,de,ke){if(ke===void 0&&(ke=null),!(this instanceof nn))return new nn(oe,de,ke);this.line=oe,this.ch=de,this.sticky=ke}function Cn(oe,de){return oe.line-de.line||oe.ch-de.ch}function rn(oe,de){return oe.sticky==de.sticky&&Cn(oe,de)==0}function mn(oe){return nn(oe.line,oe.ch)}function En(oe,de){return Cn(oe,de)<0?de:oe}function pn(oe,de){return Cn(oe,de)<0?oe:de}function kn(oe,de){return Math.max(oe.first,Math.min(de,oe.first+oe.size-1))}function Mn(oe,de){if(de.line<oe.first)return nn(oe.first,0);var ke=oe.first+oe.size-1;return de.line>ke?nn(ke,Pn(oe,ke).text.length):zn(de,Pn(oe,de.line).text.length)}function zn(oe,de){var ke=oe.ch;return ke==null||ke>de?nn(oe.line,de):ke<0?nn(oe.line,0):oe}function Dn(oe,de){for(var ke=[],Le=0;Le<de.length;Le++)ke[Le]=Mn(oe,de[Le]);return ke}var ar=function(oe,de){this.state=oe,this.lookAhead=de},dn=function(oe,de,ke,Le){this.state=de,this.doc=oe,this.line=ke,this.maxLookAhead=Le||0,this.baseTokens=null,this.baseTokenPos=1};dn.prototype.lookAhead=function(oe){var de=this.doc.getLine(this.line+oe);return de!=null&&oe>this.maxLookAhead&&(this.maxLookAhead=oe),de},dn.prototype.baseToken=function(oe){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=oe;)this.baseTokenPos+=2;var de=this.baseTokens[this.baseTokenPos+1];return{type:de&&de.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-oe}},dn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},dn.fromSaved=function(oe,de,ke){return de instanceof ar?new dn(oe,gn(oe.mode,de.state),ke,de.lookAhead):new dn(oe,gn(oe.mode,de),ke)},dn.prototype.save=function(oe){var de=oe!==!1?gn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ar(de,this.maxLookAhead):de};function Or(oe,de,ke,Le){var Re=[oe.state.modeGen],st={};ai(oe,de.text,oe.doc.mode,ke,function(Wt,yn){return Re.push(Wt,yn)},st,Le);for(var xt=ke.state,jt=function(Wt){ke.baseTokens=Re;var yn=oe.state.overlays[Wt],Yt=1,$n=0;ke.state=!0,ai(oe,de.text,yn.mode,ke,function(Fn,hr){for(var wr=Yt;$n<Fn;){var Dr=Re[Yt];Dr>Fn&&Re.splice(Yt,1,Fn,Re[Yt+1],Dr),Yt+=2,$n=Math.min(Fn,Dr)}if(hr)if(yn.opaque)Re.splice(wr,Yt-wr,Fn,"overlay "+hr),Yt=wr+2;else for(;wr<Yt;wr+=2){var ri=Re[wr+1];Re[wr+1]=(ri?ri+" ":"")+"overlay "+hr}},st),ke.state=xt,ke.baseTokens=null,ke.baseTokenPos=1},Nt=0;Nt<oe.state.overlays.length;++Nt)jt(Nt);return{styles:Re,classes:st.bgClass||st.textClass?st:null}}function Jr(oe,de,ke){if(!de.styles||de.styles[0]!=oe.state.modeGen){var Le=Rr(oe,$t(de)),Re=de.text.length>oe.options.maxHighlightLength&&gn(oe.doc.mode,Le.state),st=Or(oe,de,Le);Re&&(Le.state=Re),de.stateAfter=Le.save(!Re),de.styles=st.styles,st.classes?de.styleClasses=st.classes:de.styleClasses&&(de.styleClasses=null),ke===oe.doc.highlightFrontier&&(oe.doc.modeFrontier=Math.max(oe.doc.modeFrontier,++oe.doc.highlightFrontier))}return de.styles}function Rr(oe,de,ke){var Le=oe.doc,Re=oe.display;if(!Le.mode.startState)return new dn(Le,!0,de);var st=Br(oe,de,ke),xt=st>Le.first&&Pn(Le,st-1).stateAfter,jt=xt?dn.fromSaved(Le,xt,st):new dn(Le,Xt(Le.mode),st);return Le.iter(st,de,function(Nt){vn(oe,Nt.text,jt);var Wt=jt.line;Nt.stateAfter=Wt==de-1||Wt%5==0||Wt>=Re.viewFrom&&Wt<Re.viewTo?jt.save():null,jt.nextLine()}),ke&&(Le.modeFrontier=jt.line),jt}function vn(oe,de,ke,Le){var Re=oe.doc.mode,st=new zt(de,oe.options.tabSize,ke);for(st.start=st.pos=Le||0,de==""&&Jn(Re,ke.state);!st.eol();)lr(Re,st,ke.state),st.start=st.pos}function Jn(oe,de){if(oe.blankLine)return oe.blankLine(de);if(oe.innerMode){var ke=Nn(oe,de);if(ke.mode.blankLine)return ke.mode.blankLine(ke.state)}}function lr(oe,de,ke,Le){for(var Re=0;Re<10;Re++){Le&&(Le[0]=Nn(oe,ke).mode);var st=oe.token(de,ke);if(de.pos>de.start)return st}throw new Error("Mode "+oe.name+" failed to advance stream.")}var vr=function(oe,de,ke){this.start=oe.start,this.end=oe.pos,this.string=oe.current(),this.type=de||null,this.state=ke};function Sr(oe,de,ke,Le){var Re=oe.doc,st=Re.mode,xt;de=Mn(Re,de);var jt=Pn(Re,de.line),Nt=Rr(oe,de.line,ke),Wt=new zt(jt.text,oe.options.tabSize,Nt),yn;for(Le&&(yn=[]);(Le||Wt.pos<de.ch)&&!Wt.eol();)Wt.start=Wt.pos,xt=lr(st,Wt,Nt.state),Le&&yn.push(new vr(Wt,xt,gn(Re.mode,Nt.state)));return Le?yn:new vr(Wt,xt,Nt.state)}function Kr(oe,de){if(oe)for(;;){var ke=oe.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ke)break;oe=oe.slice(0,ke.index)+oe.slice(ke.index+ke[0].length);var Le=ke[1]?"bgClass":"textClass";de[Le]==null?de[Le]=ke[2]:new RegExp("(?:^|\\s)"+ke[2]+"(?:$|\\s)").test(de[Le])||(de[Le]+=" "+ke[2])}return oe}function ai(oe,de,ke,Le,Re,st,xt){var jt=ke.flattenSpans;jt==null&&(jt=oe.options.flattenSpans);var Nt=0,Wt=null,yn=new zt(de,oe.options.tabSize,Le),Yt,$n=oe.options.addModeClass&&[null];for(de==""&&Kr(Jn(ke,Le.state),st);!yn.eol();){if(yn.pos>oe.options.maxHighlightLength?(jt=!1,xt&&vn(oe,de,Le,yn.pos),yn.pos=de.length,Yt=null):Yt=Kr(lr(ke,yn,Le.state,$n),st),$n){var Fn=$n[0].name;Fn&&(Yt="m-"+(Yt?Fn+" "+Yt:Fn))}if(!jt||Wt!=Yt){for(;Nt<yn.start;)Nt=Math.min(yn.start,Nt+5e3),Re(Nt,Wt);Wt=Yt}yn.start=yn.pos}for(;Nt<yn.pos;){var hr=Math.min(yn.pos,Nt+5e3);Re(hr,Wt),Nt=hr}}function Br(oe,de,ke){for(var Le,Re,st=oe.doc,xt=ke?-1:de-(oe.doc.mode.innerMode?1e3:100),jt=de;jt>xt;--jt){if(jt<=st.first)return st.first;var Nt=Pn(st,jt-1),Wt=Nt.stateAfter;if(Wt&&(!ke||jt+(Wt instanceof ar?Wt.lookAhead:0)<=st.modeFrontier))return jt;var yn=et(Nt.text,null,oe.options.tabSize);(Re==null||Le>yn)&&(Re=jt-1,Le=yn)}return Re}function br(oe,de){if(oe.modeFrontier=Math.min(oe.modeFrontier,de),!(oe.highlightFrontier<de-10)){for(var ke=oe.first,Le=de-1;Le>ke;Le--){var Re=Pn(oe,Le).stateAfter;if(Re&&(!(Re instanceof ar)||Le+Re.lookAhead<de)){ke=Le+1;break}}oe.highlightFrontier=Math.min(oe.highlightFrontier,ke)}}var si=!1,Tn=!1;function Ri(){si=!0}function On(){Tn=!0}function pi(oe,de,ke){this.marker=oe,this.from=de,this.to=ke}function xo(oe,de){if(oe)for(var ke=0;ke<oe.length;++ke){var Le=oe[ke];if(Le.marker==de)return Le}}function zi(oe,de){for(var ke,Le=0;Le<oe.length;++Le)oe[Le]!=de&&(ke||(ke=[])).push(oe[Le]);return ke}function Lo(oe,de){oe.markedSpans=oe.markedSpans?oe.markedSpans.concat([de]):[de],de.marker.attachLine(oe)}function yo(oe,de,ke){var Le;if(oe)for(var Re=0;Re<oe.length;++Re){var st=oe[Re],xt=st.marker,jt=st.from==null||(xt.inclusiveLeft?st.from<=de:st.from<de);if(jt||st.from==de&&xt.type=="bookmark"&&(!ke||!st.marker.insertLeft)){var Nt=st.to==null||(xt.inclusiveRight?st.to>=de:st.to>de);(Le||(Le=[])).push(new pi(xt,st.from,Nt?null:st.to))}}return Le}function Ur(oe,de,ke){var Le;if(oe)for(var Re=0;Re<oe.length;++Re){var st=oe[Re],xt=st.marker,jt=st.to==null||(xt.inclusiveRight?st.to>=de:st.to>de);if(jt||st.from==de&&xt.type=="bookmark"&&(!ke||st.marker.insertLeft)){var Nt=st.from==null||(xt.inclusiveLeft?st.from<=de:st.from<de);(Le||(Le=[])).push(new pi(xt,Nt?null:st.from-de,st.to==null?null:st.to-de))}}return Le}function Gr(oe,de){if(de.full)return null;var ke=Wn(oe,de.from.line)&&Pn(oe,de.from.line).markedSpans,Le=Wn(oe,de.to.line)&&Pn(oe,de.to.line).markedSpans;if(!ke&&!Le)return null;var Re=de.from.ch,st=de.to.ch,xt=Cn(de.from,de.to)==0,jt=yo(ke,Re,xt),Nt=Ur(Le,st,xt),Wt=de.text.length==1,yn=wt(de.text).length+(Wt?Re:0);if(jt)for(var Yt=0;Yt<jt.length;++Yt){var $n=jt[Yt];if($n.to==null){var Fn=xo(Nt,$n.marker);Fn?Wt&&($n.to=Fn.to==null?null:Fn.to+yn):$n.to=Re}}if(Nt)for(var hr=0;hr<Nt.length;++hr){var wr=Nt[hr];if(wr.to!=null&&(wr.to+=yn),wr.from==null){var Dr=xo(jt,wr.marker);Dr||(wr.from=yn,Wt&&(jt||(jt=[])).push(wr))}else wr.from+=yn,Wt&&(jt||(jt=[])).push(wr)}jt&&(jt=Mi(jt)),Nt&&Nt!=jt&&(Nt=Mi(Nt));var ri=[jt];if(!Wt){var Li=de.text.length-2,wi;if(Li>0&&jt)for(var Bi=0;Bi<jt.length;++Bi)jt[Bi].to==null&&(wi||(wi=[])).push(new pi(jt[Bi].marker,null,null));for(var mo=0;mo<Li;++mo)ri.push(wi);ri.push(Nt)}return ri}function Mi(oe){for(var de=0;de<oe.length;++de){var ke=oe[de];ke.from!=null&&ke.from==ke.to&&ke.marker.clearWhenEmpty!==!1&&oe.splice(de--,1)}return oe.length?oe:null}function Hi(oe,de,ke){var Le=null;if(oe.iter(de.line,ke.line+1,function(Fn){if(Fn.markedSpans)for(var hr=0;hr<Fn.markedSpans.length;++hr){var wr=Fn.markedSpans[hr].marker;wr.readOnly&&(!Le||St(Le,wr)==-1)&&(Le||(Le=[])).push(wr)}}),!Le)return null;for(var Re=[{from:de,to:ke}],st=0;st<Le.length;++st)for(var xt=Le[st],jt=xt.find(0),Nt=0;Nt<Re.length;++Nt){var Wt=Re[Nt];if(!(Cn(Wt.to,jt.from)<0||Cn(Wt.from,jt.to)>0)){var yn=[Nt,1],Yt=Cn(Wt.from,jt.from),$n=Cn(Wt.to,jt.to);(Yt<0||!xt.inclusiveLeft&&!Yt)&&yn.push({from:Wt.from,to:jt.from}),($n>0||!xt.inclusiveRight&&!$n)&&yn.push({from:jt.to,to:Wt.to}),Re.splice.apply(Re,yn),Nt+=yn.length-3}}return Re}function cr(oe){var de=oe.markedSpans;if(de){for(var ke=0;ke<de.length;++ke)de[ke].marker.detachLine(oe);oe.markedSpans=null}}function Lt(oe,de){if(de){for(var ke=0;ke<de.length;++ke)de[ke].marker.attachLine(oe);oe.markedSpans=de}}function Ii(oe){return oe.inclusiveLeft?-1:0}function _r(oe){return oe.inclusiveRight?1:0}function Ir(oe,de){var ke=oe.lines.length-de.lines.length;if(ke!=0)return ke;var Le=oe.find(),Re=de.find(),st=Cn(Le.from,Re.from)||Ii(oe)-Ii(de);if(st)return-st;var xt=Cn(Le.to,Re.to)||_r(oe)-_r(de);return xt||de.id-oe.id}function _i(oe,de){var ke=Tn&&oe.markedSpans,Le;if(ke)for(var Re=void 0,st=0;st<ke.length;++st)Re=ke[st],Re.marker.collapsed&&(de?Re.from:Re.to)==null&&(!Le||Ir(Le,Re.marker)<0)&&(Le=Re.marker);return Le}function Ji(oe){return _i(oe,!0)}function zr(oe){return _i(oe,!1)}function Vr(oe,de){var ke=Tn&&oe.markedSpans,Le;if(ke)for(var Re=0;Re<ke.length;++Re){var st=ke[Re];st.marker.collapsed&&(st.from==null||st.from<de)&&(st.to==null||st.to>de)&&(!Le||Ir(Le,st.marker)<0)&&(Le=st.marker)}return Le}function Ci(oe,de,ke,Le,Re){var st=Pn(oe,de),xt=Tn&&st.markedSpans;if(xt)for(var jt=0;jt<xt.length;++jt){var Nt=xt[jt];if(Nt.marker.collapsed){var Wt=Nt.marker.find(0),yn=Cn(Wt.from,ke)||Ii(Nt.marker)-Ii(Re),Yt=Cn(Wt.to,Le)||_r(Nt.marker)-_r(Re);if(!(yn>=0&&Yt<=0||yn<=0&&Yt>=0)&&(yn<=0&&(Nt.marker.inclusiveRight&&Re.inclusiveLeft?Cn(Wt.to,ke)>=0:Cn(Wt.to,ke)>0)||yn>=0&&(Nt.marker.inclusiveRight&&Re.inclusiveLeft?Cn(Wt.from,Le)<=0:Cn(Wt.from,Le)<0)))return!0}}}function mi(oe){for(var de;de=Ji(oe);)oe=de.find(-1,!0).line;return oe}function Vi(oe){for(var de;de=zr(oe);)oe=de.find(1,!0).line;return oe}function io(oe){for(var de,ke;de=zr(oe);)oe=de.find(1,!0).line,(ke||(ke=[])).push(oe);return ke}function Hr(oe,de){var ke=Pn(oe,de),Le=mi(ke);return ke==Le?de:$t(Le)}function Er(oe,de){if(de>oe.lastLine())return de;var ke=Pn(oe,de),Le;if(!Kn(oe,ke))return de;for(;Le=zr(ke);)ke=Le.find(1,!0).line;return $t(ke)+1}function Kn(oe,de){var ke=Tn&&de.markedSpans;if(ke){for(var Le=void 0,Re=0;Re<ke.length;++Re)if(Le=ke[Re],!!Le.marker.collapsed){if(Le.from==null)return!0;if(!Le.marker.widgetNode&&Le.from==0&&Le.marker.inclusiveLeft&&li(oe,de,Le))return!0}}}function li(oe,de,ke){if(ke.to==null){var Le=ke.marker.find(1,!0);return li(oe,Le.line,xo(Le.line.markedSpans,ke.marker))}if(ke.marker.inclusiveRight&&ke.to==de.text.length)return!0;for(var Re=void 0,st=0;st<de.markedSpans.length;++st)if(Re=de.markedSpans[st],Re.marker.collapsed&&!Re.marker.widgetNode&&Re.from==ke.to&&(Re.to==null||Re.to!=ke.from)&&(Re.marker.inclusiveLeft||ke.marker.inclusiveRight)&&li(oe,de,Re))return!0}function Qi(oe){oe=mi(oe);for(var de=0,ke=oe.parent,Le=0;Le<ke.lines.length;++Le){var Re=ke.lines[Le];if(Re==oe)break;de+=Re.height}for(var st=ke.parent;st;ke=st,st=ke.parent)for(var xt=0;xt<st.children.length;++xt){var jt=st.children[xt];if(jt==ke)break;de+=jt.height}return de}function zo(oe){if(oe.height==0)return 0;for(var de=oe.text.length,ke,Le=oe;ke=Ji(Le);){var Re=ke.find(0,!0);Le=Re.from.line,de+=Re.from.ch-Re.to.ch}for(Le=oe;ke=zr(Le);){var st=ke.find(0,!0);de-=Le.text.length-st.from.ch,Le=st.to.line,de+=Le.text.length-st.to.ch}return de}function Mo(oe){var de=oe.display,ke=oe.doc;de.maxLine=Pn(ke,ke.first),de.maxLineLength=zo(de.maxLine),de.maxLineChanged=!0,ke.iter(function(Le){var Re=zo(Le);Re>de.maxLineLength&&(de.maxLineLength=Re,de.maxLine=Le)})}var Uo=function(oe,de,ke){this.text=oe,Lt(this,de),this.height=ke?ke(this):1};Uo.prototype.lineNo=function(){return $t(this)},xn(Uo);function ca(oe,de,ke,Le){oe.text=de,oe.stateAfter&&(oe.stateAfter=null),oe.styles&&(oe.styles=null),oe.order!=null&&(oe.order=null),cr(oe),Lt(oe,ke);var Re=Le?Le(oe):1;Re!=oe.height&&Yn(oe,Re)}function Jo(oe){oe.parent=null,cr(oe)}var qa={},La={};function es(oe,de){if(!oe||/^\s*$/.test(oe))return null;var ke=de.addModeClass?La:qa;return ke[oe]||(ke[oe]=oe.replace(/\S+/g,"cm-$&"))}function wn(oe,de){var ke=Be("span",null,null,ce?"padding-right: .1px":null),Le={pre:Be("pre",[ke],"CodeMirror-line"),content:ke,col:0,pos:0,cm:oe,trailingSpace:!1,splitSpaces:oe.getOption("lineWrapping")};de.measure={};for(var Re=0;Re<=(de.rest?de.rest.length:0);Re++){var st=Re?de.rest[Re-1]:de.line,xt=void 0;Le.pos=0,Le.addToken=Ql,fi(oe.display.measure)&&(xt=Jt(st,oe.doc.direction))&&(Le.addToken=So(Le.addToken,xt)),Le.map=[];var jt=de!=oe.display.externalMeasured&&$t(st);va(st,Le,Jr(oe,st,jt)),st.styleClasses&&(st.styleClasses.bgClass&&(Le.bgClass=at(st.styleClasses.bgClass,Le.bgClass||"")),st.styleClasses.textClass&&(Le.textClass=at(st.styleClasses.textClass,Le.textClass||""))),Le.map.length==0&&Le.map.push(0,0,Le.content.appendChild(ii(oe.display.measure))),Re==0?(de.measure.map=Le.map,de.measure.cache={}):((de.measure.maps||(de.measure.maps=[])).push(Le.map),(de.measure.caches||(de.measure.caches=[])).push({}))}if(ce){var Nt=Le.content.lastChild;(/\bcm-tab\b/.test(Nt.className)||Nt.querySelector&&Nt.querySelector(".cm-tab"))&&(Le.content.className="cm-tab-wrap-hack")}return It(oe,"renderLine",oe,de.line,Le.pre),Le.pre.className&&(Le.textClass=at(Le.pre.className,Le.textClass||"")),Le}function ma(oe){var de=Ne("span","\u2022","cm-invalidchar");return de.title="\\u"+oe.charCodeAt(0).toString(16),de.setAttribute("aria-label",de.title),de}function Ql(oe,de,ke,Le,Re,st,xt){if(de){var jt=oe.splitSpaces?el(de,oe.trailingSpace):de,Nt=oe.cm.state.specialChars,Wt=!1,yn;if(!Nt.test(de))oe.col+=de.length,yn=document.createTextNode(jt),oe.map.push(oe.pos,oe.pos+de.length,yn),Ie&&ge<9&&(Wt=!0),oe.pos+=de.length;else{yn=document.createDocumentFragment();for(var Yt=0;;){Nt.lastIndex=Yt;var $n=Nt.exec(de),Fn=$n?$n.index-Yt:de.length-Yt;if(Fn){var hr=document.createTextNode(jt.slice(Yt,Yt+Fn));Ie&&ge<9?yn.appendChild(Ne("span",[hr])):yn.appendChild(hr),oe.map.push(oe.pos,oe.pos+Fn,hr),oe.col+=Fn,oe.pos+=Fn}if(!$n)break;Yt+=Fn+1;var wr=void 0;if($n[0]==" "){var Dr=oe.cm.options.tabSize,ri=Dr-oe.col%Dr;wr=yn.appendChild(Ne("span",Ut(ri),"cm-tab")),wr.setAttribute("role","presentation"),wr.setAttribute("cm-text"," "),oe.col+=ri}else $n[0]=="\r"||$n[0]==`
|
|
|
`?(wr=yn.appendChild(Ne("span",$n[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),wr.setAttribute("cm-text",$n[0]),oe.col+=1):(wr=oe.cm.options.specialCharPlaceholder($n[0]),wr.setAttribute("cm-text",$n[0]),Ie&&ge<9?yn.appendChild(Ne("span",[wr])):yn.appendChild(wr),oe.col+=1);oe.map.push(oe.pos,oe.pos+1,wr),oe.pos++}}if(oe.trailingSpace=jt.charCodeAt(de.length-1)==32,ke||Le||Re||Wt||st||xt){var Li=ke||"";Le&&(Li+=Le),Re&&(Li+=Re);var wi=Ne("span",[yn],Li,st);if(xt)for(var Bi in xt)xt.hasOwnProperty(Bi)&&Bi!="style"&&Bi!="class"&&wi.setAttribute(Bi,xt[Bi]);return oe.content.appendChild(wi)}oe.content.appendChild(yn)}}function el(oe,de){if(oe.length>1&&!/ /.test(oe))return oe;for(var ke=de,Le="",Re=0;Re<oe.length;Re++){var st=oe.charAt(Re);st==" "&&ke&&(Re==oe.length-1||oe.charCodeAt(Re+1)==32)&&(st="\xA0"),Le+=st,ke=st==" "}return Le}function So(oe,de){return function(ke,Le,Re,st,xt,jt,Nt){Re=Re?Re+" cm-force-border":"cm-force-border";for(var Wt=ke.pos,yn=Wt+Le.length;;){for(var Yt=void 0,$n=0;$n<de.length&&(Yt=de[$n],!(Yt.to>Wt&&Yt.from<=Wt));$n++);if(Yt.to>=yn)return oe(ke,Le,Re,st,xt,jt,Nt);oe(ke,Le.slice(0,Yt.to-Wt),Re,st,null,jt,Nt),st=null,Le=Le.slice(Yt.to-Wt),Wt=Yt.to}}}function ro(oe,de,ke,Le){var Re=!Le&&ke.widgetNode;Re&&oe.map.push(oe.pos,oe.pos+de,Re),!Le&&oe.cm.display.input.needsContentAttribute&&(Re||(Re=oe.content.appendChild(document.createElement("span"))),Re.setAttribute("cm-marker",ke.id)),Re&&(oe.cm.display.input.setUneditable(Re),oe.content.appendChild(Re)),oe.pos+=de,oe.trailingSpace=!1}function va(oe,de,ke){var Le=oe.markedSpans,Re=oe.text,st=0;if(!Le){for(var xt=1;xt<ke.length;xt+=2)de.addToken(de,Re.slice(st,st=ke[xt]),es(ke[xt+1],de.cm.options));return}for(var jt=Re.length,Nt=0,Wt=1,yn="",Yt,$n,Fn=0,hr,wr,Dr,ri,Li;;){if(Fn==Nt){hr=wr=Dr=$n="",Li=null,ri=null,Fn=1/0;for(var wi=[],Bi=void 0,mo=0;mo<Le.length;++mo){var vi=Le[mo],Oo=vi.marker;if(Oo.type=="bookmark"&&vi.from==Nt&&Oo.widgetNode)wi.push(Oo);else if(vi.from<=Nt&&(vi.to==null||vi.to>Nt||Oo.collapsed&&vi.to==Nt&&vi.from==Nt)){if(vi.to!=null&&vi.to!=Nt&&Fn>vi.to&&(Fn=vi.to,wr=""),Oo.className&&(hr+=" "+Oo.className),Oo.css&&($n=($n?$n+";":"")+Oo.css),Oo.startStyle&&vi.from==Nt&&(Dr+=" "+Oo.startStyle),Oo.endStyle&&vi.to==Fn&&(Bi||(Bi=[])).push(Oo.endStyle,vi.to),Oo.title&&((Li||(Li={})).title=Oo.title),Oo.attributes)for(var Ya in Oo.attributes)(Li||(Li={}))[Ya]=Oo.attributes[Ya];Oo.collapsed&&(!ri||Ir(ri.marker,Oo)<0)&&(ri=vi)}else vi.from>Nt&&Fn>vi.from&&(Fn=vi.from)}if(Bi)for(var Ds=0;Ds<Bi.length;Ds+=2)Bi[Ds+1]==Fn&&(wr+=" "+Bi[Ds]);if(!ri||ri.from==Nt)for(var os=0;os<wi.length;++os)ro(de,0,wi[os]);if(ri&&(ri.from||0)==Nt){if(ro(de,(ri.to==null?jt+1:ri.to)-Nt,ri.marker,ri.from==null),ri.to==null)return;ri.to==Nt&&(ri=!1)}}if(Nt>=jt)break;for(var Kl=Math.min(jt,Fn);;){if(yn){var vl=Nt+yn.length;if(!ri){var ks=vl>Kl?yn.slice(0,Kl-Nt):yn;de.addToken(de,ks,Yt?Yt+hr:hr,Dr,Nt+ks.length==Fn?wr:"",$n,Li)}if(vl>=Kl){yn=yn.slice(Kl-Nt),Nt=Kl;break}Nt=vl,Dr=""}yn=Re.slice(st,st=ke[Wt++]),Yt=es(ke[Wt++],de.cm.options)}}}function Io(oe,de,ke){this.line=de,this.rest=io(de),this.size=this.rest?$t(wt(this.rest))-ke+1:1,this.node=this.text=null,this.hidden=Kn(oe,de)}function qi(oe,de,ke){for(var Le=[],Re,st=de;st<ke;st=Re){var xt=new Io(oe.doc,Pn(oe.doc,st),st);Re=st+xt.size,Le.push(xt)}return Le}var No=null;function xs(oe){No?No.ops.push(oe):oe.ownsGroup=No={ops:[oe],delayedCallbacks:[]}}function bi(oe){var de=oe.delayedCallbacks,ke=0;do{for(;ke<de.length;ke++)de[ke].call(null);for(var Le=0;Le<oe.ops.length;Le++){var Re=oe.ops[Le];if(Re.cursorActivityHandlers)for(;Re.cursorActivityCalled<Re.cursorActivityHandlers.length;)Re.cursorActivityHandlers[Re.cursorActivityCalled++].call(null,Re.cm)}}while(ke<de.length)}function lo(oe,de){var ke=oe.ownsGroup;if(ke)try{bi(ke)}finally{No=null,de(ke)}}var ao=null;function Tr(oe,de){var ke=Ht(oe,de);if(ke.length){var Le=Array.prototype.slice.call(arguments,2),Re;No?Re=No.delayedCallbacks:ao?Re=ao:(Re=ao=[],setTimeout(Ba,0));for(var st=function(jt){Re.push(function(){return ke[jt].apply(null,Le)})},xt=0;xt<ke.length;++xt)st(xt)}}function Ba(){var oe=ao;ao=null;for(var de=0;de<oe.length;++de)oe[de]()}function Ra(oe,de,ke,Le){for(var Re=0;Re<de.changes.length;Re++){var st=de.changes[Re];st=="text"?yr(oe,de):st=="gutter"?Wa(oe,de,ke,Le):st=="class"?aa(oe,de):st=="widget"&&Pl(oe,de,Le)}de.changes=null}function Cs(oe){return oe.node==oe.text&&(oe.node=Ne("div",null,null,"position: relative"),oe.text.parentNode&&oe.text.parentNode.replaceChild(oe.node,oe.text),oe.node.appendChild(oe.text),Ie&&ge<8&&(oe.node.style.zIndex=2)),oe.node}function Il(oe,de){var ke=de.bgClass?de.bgClass+" "+(de.line.bgClass||""):de.line.bgClass;if(ke&&(ke+=" CodeMirror-linebackground"),de.background)ke?de.background.className=ke:(de.background.parentNode.removeChild(de.background),de.background=null);else if(ke){var Le=Cs(de);de.background=Le.insertBefore(Ne("div",null,ke),Le.firstChild),oe.display.input.setUneditable(de.background)}}function ql(oe,de){var ke=oe.display.externalMeasured;return ke&&ke.line==de.line?(oe.display.externalMeasured=null,de.measure=ke.measure,ke.built):wn(oe,de)}function yr(oe,de){var ke=de.text.className,Le=ql(oe,de);de.text==de.node&&(de.node=Le.pre),de.text.parentNode.replaceChild(Le.pre,de.text),de.text=Le.pre,Le.bgClass!=de.bgClass||Le.textClass!=de.textClass?(de.bgClass=Le.bgClass,de.textClass=Le.textClass,aa(oe,de)):ke&&(de.text.className=ke)}function aa(oe,de){Il(oe,de),de.line.wrapClass?Cs(de).className=de.line.wrapClass:de.node!=de.text&&(de.node.className="");var ke=de.textClass?de.textClass+" "+(de.line.textClass||""):de.line.textClass;de.text.className=ke||""}function Wa(oe,de,ke,Le){if(de.gutter&&(de.node.removeChild(de.gutter),de.gutter=null),de.gutterBackground&&(de.node.removeChild(de.gutterBackground),de.gutterBackground=null),de.line.gutterClass){var Re=Cs(de);de.gutterBackground=Ne("div",null,"CodeMirror-gutter-background "+de.line.gutterClass,"left: "+(oe.options.fixedGutter?Le.fixedPos:-Le.gutterTotalWidth)+"px; width: "+Le.gutterTotalWidth+"px"),oe.display.input.setUneditable(de.gutterBackground),Re.insertBefore(de.gutterBackground,de.text)}var st=de.line.gutterMarkers;if(oe.options.lineNumbers||st){var xt=Cs(de),jt=de.gutter=Ne("div",null,"CodeMirror-gutter-wrapper","left: "+(oe.options.fixedGutter?Le.fixedPos:-Le.gutterTotalWidth)+"px");if(oe.display.input.setUneditable(jt),xt.insertBefore(jt,de.text),de.line.gutterClass&&(jt.className+=" "+de.line.gutterClass),oe.options.lineNumbers&&(!st||!st["CodeMirror-linenumbers"])&&(de.lineNumber=jt.appendChild(Ne("div",or(oe.options,ke),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+Le.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+oe.display.lineNumInnerWidth+"px"))),st)for(var Nt=0;Nt<oe.display.gutterSpecs.length;++Nt){var Wt=oe.display.gutterSpecs[Nt].className,yn=st.hasOwnProperty(Wt)&&st[Wt];yn&&jt.appendChild(Ne("div",[yn],"CodeMirror-gutter-elt","left: "+Le.gutterLeft[Wt]+"px; width: "+Le.gutterWidth[Wt]+"px"))}}}function Pl(oe,de,ke){de.alignable&&(de.alignable=null);for(var Le=Ce("CodeMirror-linewidget"),Re=de.node.firstChild,st=void 0;Re;Re=st)st=Re.nextSibling,Le.test(Re.className)&&de.node.removeChild(Re);Fl(oe,de,ke)}function Dl(oe,de,ke,Le){var Re=ql(oe,de);return de.text=de.node=Re.pre,Re.bgClass&&(de.bgClass=Re.bgClass),Re.textClass&&(de.textClass=Re.textClass),aa(oe,de),Wa(oe,de,ke,Le),Fl(oe,de,Le),de.node}function Fl(oe,de,ke){if(Di(oe,de.line,de,ke,!0),de.rest)for(var Le=0;Le<de.rest.length;Le++)Di(oe,de.rest[Le],de,ke,!1)}function Di(oe,de,ke,Le,Re){if(de.widgets)for(var st=Cs(ke),xt=0,jt=de.widgets;xt<jt.length;++xt){var Nt=jt[xt],Wt=Ne("div",[Nt.node],"CodeMirror-linewidget"+(Nt.className?" "+Nt.className:""));Nt.handleMouseEvents||Wt.setAttribute("cm-ignore-events","true"),mc(Nt,Wt,ke,Le),oe.display.input.setUneditable(Wt),Re&&Nt.above?st.insertBefore(Wt,ke.gutter||ke.text):st.appendChild(Wt),Tr(Nt,"redraw")}}function mc(oe,de,ke,Le){if(oe.noHScroll){(ke.alignable||(ke.alignable=[])).push(de);var Re=Le.wrapperWidth;de.style.left=Le.fixedPos+"px",oe.coverGutter||(Re-=Le.gutterTotalWidth,de.style.paddingLeft=Le.gutterTotalWidth+"px"),de.style.width=Re+"px"}oe.coverGutter&&(de.style.zIndex=5,de.style.position="relative",oe.noHScroll||(de.style.marginLeft=-Le.gutterTotalWidth+"px"))}function tl(oe){if(oe.height!=null)return oe.height;var de=oe.doc.cm;if(!de)return 0;if(!Qe(document.body,oe.node)){var ke="position: relative;";oe.coverGutter&&(ke+="margin-left: -"+de.display.gutters.offsetWidth+"px;"),oe.noHScroll&&(ke+="width: "+de.display.wrapper.clientWidth+"px;"),je(de.display.measure,Ne("div",[oe.node],null,ke))}return oe.height=oe.node.parentNode.offsetHeight}function nl(oe,de){for(var ke=fr(de);ke!=oe.wrapper;ke=ke.parentNode)if(!ke||ke.nodeType==1&&ke.getAttribute("cm-ignore-events")=="true"||ke.parentNode==oe.sizer&&ke!=oe.mover)return!0}function As(oe){return oe.lineSpace.offsetTop}function Eu(oe){return oe.mover.offsetHeight-oe.lineSpace.offsetHeight}function Ru(oe){if(oe.cachedPaddingH)return oe.cachedPaddingH;var de=je(oe.measure,Ne("pre","x","CodeMirror-line-like")),ke=window.getComputedStyle?window.getComputedStyle(de):de.currentStyle,Le={left:parseInt(ke.paddingLeft),right:parseInt(ke.paddingRight)};return!isNaN(Le.left)&&!isNaN(Le.right)&&(oe.cachedPaddingH=Le),Le}function _s(oe){return bt-oe.display.nativeBarWidth}function dl(oe){return oe.display.scroller.clientWidth-_s(oe)-oe.display.barWidth}function $c(oe){return oe.display.scroller.clientHeight-_s(oe)-oe.display.barHeight}function hh(oe,de,ke){var Le=oe.options.lineWrapping,Re=Le&&dl(oe);if(!de.measure.heights||Le&&de.measure.width!=Re){var st=de.measure.heights=[];if(Le){de.measure.width=Re;for(var xt=de.text.firstChild.getClientRects(),jt=0;jt<xt.length-1;jt++){var Nt=xt[jt],Wt=xt[jt+1];Math.abs(Nt.bottom-Wt.bottom)>2&&st.push((Nt.bottom+Wt.top)/2-ke.top)}}st.push(ke.bottom-ke.top)}}function Gc(oe,de,ke){if(oe.line==de)return{map:oe.measure.map,cache:oe.measure.cache};for(var Le=0;Le<oe.rest.length;Le++)if(oe.rest[Le]==de)return{map:oe.measure.maps[Le],cache:oe.measure.caches[Le]};for(var Re=0;Re<oe.rest.length;Re++)if($t(oe.rest[Re])>ke)return{map:oe.measure.maps[Re],cache:oe.measure.caches[Re],before:!0}}function Hh(oe,de){de=mi(de);var ke=$t(de),Le=oe.display.externalMeasured=new Io(oe.doc,de,ke);Le.lineN=ke;var Re=Le.built=wn(oe,Le);return Le.text=Re.pre,je(oe.display.lineMeasure,Re.pre),Le}function Hc(oe,de,ke,Le){return Bl(oe,_u(oe,de),ke,Le)}function vc(oe,de){if(de>=oe.display.viewFrom&&de<oe.display.viewTo)return oe.display.view[zs(oe,de)];var ke=oe.display.externalMeasured;if(ke&&de>=ke.lineN&&de<ke.lineN+ke.size)return ke}function _u(oe,de){var ke=$t(de),Le=vc(oe,ke);Le&&!Le.text?Le=null:Le&&Le.changes&&(Ra(oe,Le,ke,Cd(oe)),oe.curOp.forceUpdate=!0),Le||(Le=Hh(oe,de));var Re=Gc(Le,de,ke);return{line:de,view:Le,rect:null,map:Re.map,cache:Re.cache,before:Re.before,hasHeights:!1}}function Bl(oe,de,ke,Le,Re){de.before&&(ke=-1);var st=ke+(Le||""),xt;return de.cache.hasOwnProperty(st)?xt=de.cache[st]:(de.rect||(de.rect=de.view.text.getBoundingClientRect()),de.hasHeights||(hh(oe,de.view,de.rect),de.hasHeights=!0),xt=oo(oe,de,ke,Le),xt.bogus||(de.cache[st]=xt)),{left:xt.left,right:xt.right,top:Re?xt.rtop:xt.top,bottom:Re?xt.rbottom:xt.bottom}}var dh={left:0,right:0,top:0,bottom:0};function Uc(oe,de,ke){for(var Le,Re,st,xt,jt,Nt,Wt=0;Wt<oe.length;Wt+=3)if(jt=oe[Wt],Nt=oe[Wt+1],de<jt?(Re=0,st=1,xt="left"):de<Nt?(Re=de-jt,st=Re+1):(Wt==oe.length-3||de==Nt&&oe[Wt+3]>de)&&(st=Nt-jt,Re=st-1,de>=Nt&&(xt="right")),Re!=null){if(Le=oe[Wt+2],jt==Nt&&ke==(Le.insertLeft?"left":"right")&&(xt=ke),ke=="left"&&Re==0)for(;Wt&&oe[Wt-2]==oe[Wt-3]&&oe[Wt-1].insertLeft;)Le=oe[(Wt-=3)+2],xt="left";if(ke=="right"&&Re==Nt-jt)for(;Wt<oe.length-3&&oe[Wt+3]==oe[Wt+4]&&!oe[Wt+5].insertLeft;)Le=oe[(Wt+=3)+2],xt="right";break}return{node:Le,start:Re,end:st,collapse:xt,coverStart:jt,coverEnd:Nt}}function yc(oe,de){var ke=dh;if(de=="left")for(var Le=0;Le<oe.length&&(ke=oe[Le]).left==ke.right;Le++);else for(var Re=oe.length-1;Re>=0&&(ke=oe[Re]).left==ke.right;Re--);return ke}function oo(oe,de,ke,Le){var Re=Uc(de.map,ke,Le),st=Re.node,xt=Re.start,jt=Re.end,Nt=Re.collapse,Wt;if(st.nodeType==3){for(var yn=0;yn<4;yn++){for(;xt&&He(de.line.text.charAt(Re.coverStart+xt));)--xt;for(;Re.coverStart+jt<Re.coverEnd&&He(de.line.text.charAt(Re.coverStart+jt));)++jt;if(Ie&&ge<9&&xt==0&&jt==Re.coverEnd-Re.coverStart?Wt=st.parentNode.getBoundingClientRect():Wt=yc(ze(st,xt,jt).getClientRects(),Le),Wt.left||Wt.right||xt==0)break;jt=xt,xt=xt-1,Nt="right"}Ie&&ge<11&&(Wt=Do(oe.display.measure,Wt))}else{xt>0&&(Nt=Le="right");var Yt;oe.options.lineWrapping&&(Yt=st.getClientRects()).length>1?Wt=Yt[Le=="right"?Yt.length-1:0]:Wt=st.getBoundingClientRect()}if(Ie&&ge<9&&!xt&&(!Wt||!Wt.left&&!Wt.right)){var $n=st.parentNode.getClientRects()[0];$n?Wt={left:$n.left,right:$n.left+ic(oe.display),top:$n.top,bottom:$n.bottom}:Wt=dh}for(var Fn=Wt.top-de.rect.top,hr=Wt.bottom-de.rect.top,wr=(Fn+hr)/2,Dr=de.view.measure.heights,ri=0;ri<Dr.length-1&&!(wr<Dr[ri]);ri++);var Li=ri?Dr[ri-1]:0,wi=Dr[ri],Bi={left:(Nt=="right"?Wt.right:Wt.left)-de.rect.left,right:(Nt=="left"?Wt.left:Wt.right)-de.rect.left,top:Li,bottom:wi};return!Wt.left&&!Wt.right&&(Bi.bogus=!0),oe.options.singleCursorHeightPerLine||(Bi.rtop=Fn,Bi.rbottom=hr),Bi}function Do(oe,de){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Pi(oe))return de;var ke=screen.logicalXDPI/screen.deviceXDPI,Le=screen.logicalYDPI/screen.deviceYDPI;return{left:de.left*ke,right:de.right*ke,top:de.top*Le,bottom:de.bottom*Le}}function Es(oe){if(oe.measure&&(oe.measure.cache={},oe.measure.heights=null,oe.rest))for(var de=0;de<oe.rest.length;de++)oe.measure.caches[de]={}}function Xa(oe){oe.display.externalMeasure=null,Ae(oe.display.lineMeasure);for(var de=0;de<oe.display.view.length;de++)Es(oe.display.view[de])}function _a(oe){Xa(oe),oe.display.cachedCharWidth=oe.display.cachedTextHeight=oe.display.cachedPaddingH=null,oe.options.lineWrapping||(oe.display.maxLineChanged=!0),oe.display.lineNumChars=null}function ha(){return Ee&&z?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ea(){return Ee&&z?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ka(oe){var de=0;if(oe.widgets)for(var ke=0;ke<oe.widgets.length;++ke)oe.widgets[ke].above&&(de+=tl(oe.widgets[ke]));return de}function za(oe,de,ke,Le,Re){if(!Re){var st=Ka(de);ke.top+=st,ke.bottom+=st}if(Le=="line")return ke;Le||(Le="local");var xt=Qi(de);if(Le=="local"?xt+=As(oe.display):xt-=oe.display.viewOffset,Le=="page"||Le=="window"){var jt=oe.display.lineSpace.getBoundingClientRect();xt+=jt.top+(Le=="window"?0:Ea());var Nt=jt.left+(Le=="window"?0:ha());ke.left+=Nt,ke.right+=Nt}return ke.top+=xt,ke.bottom+=xt,ke}function zu(oe,de,ke){if(ke=="div")return de;var Le=de.left,Re=de.top;if(ke=="page")Le-=ha(),Re-=Ea();else if(ke=="local"||!ke){var st=oe.display.sizer.getBoundingClientRect();Le+=st.left,Re+=st.top}var xt=oe.display.lineSpace.getBoundingClientRect();return{left:Le-xt.left,top:Re-xt.top}}function Rl(oe,de,ke,Le,Re){return Le||(Le=Pn(oe.doc,de.line)),za(oe,Le,Hc(oe,Le,de.ch,Re),ke)}function ka(oe,de,ke,Le,Re,st){Le=Le||Pn(oe.doc,de.line),Re||(Re=_u(oe,Le));function xt(hr,wr){var Dr=Bl(oe,Re,hr,wr?"right":"left",st);return wr?Dr.left=Dr.right:Dr.right=Dr.left,za(oe,Le,Dr,ke)}var jt=Jt(Le,oe.doc.direction),Nt=de.ch,Wt=de.sticky;if(Nt>=Le.text.length?(Nt=Le.text.length,Wt="before"):Nt<=0&&(Nt=0,Wt="after"),!jt)return xt(Wt=="before"?Nt-1:Nt,Wt=="before");function yn(hr,wr,Dr){var ri=jt[wr],Li=ri.level==1;return xt(Dr?hr-1:hr,Li!=Dr)}var Yt=ft(jt,Nt,Wt),$n=yt,Fn=yn(Nt,Yt,Wt=="before");return $n!=null&&(Fn.other=yn(Nt,$n,Wt!="before")),Fn}function wd(oe,de){var ke=0;de=Mn(oe.doc,de),oe.options.lineWrapping||(ke=ic(oe.display)*de.ch);var Le=Pn(oe.doc,de.line),Re=Qi(Le)+As(oe.display);return{left:ke,right:ke,top:Re,bottom:Re+Le.height}}function bd(oe,de,ke,Le,Re){var st=nn(oe,de,ke);return st.xRel=Re,Le&&(st.outside=Le),st}function Wc(oe,de,ke){var Le=oe.doc;if(ke+=oe.display.viewOffset,ke<0)return bd(Le.first,0,null,-1,-1);var Re=jn(Le,ke),st=Le.first+Le.size-1;if(Re>st)return bd(Le.first+Le.size-1,Pn(Le,st).text.length,null,1,1);de<0&&(de=0);for(var xt=Pn(Le,Re);;){var jt=Vn(oe,xt,Re,de,ke),Nt=Vr(xt,jt.ch+(jt.xRel>0||jt.outside>0?1:0));if(!Nt)return jt;var Wt=Nt.find(1);if(Wt.line==Re)return Wt;xt=Pn(Le,Re=Wt.line)}}function gi(oe,de,ke,Le){Le-=Ka(de);var Re=de.text.length,st=Je(function(xt){return Bl(oe,ke,xt-1).bottom<=Le},Re,0);return Re=Je(function(xt){return Bl(oe,ke,xt).top>Le},st,Re),{begin:st,end:Re}}function fh(oe,de,ke,Le){ke||(ke=_u(oe,de));var Re=za(oe,de,Bl(oe,ke,Le),"line").top;return gi(oe,de,ke,Re)}function Qt(oe,de,ke,Le){return oe.bottom<=ke?!1:oe.top>ke?!0:(Le?oe.left:oe.right)>de}function Vn(oe,de,ke,Le,Re){Re-=Qi(de);var st=_u(oe,de),xt=Ka(de),jt=0,Nt=de.text.length,Wt=!0,yn=Jt(de,oe.doc.direction);if(yn){var Yt=(oe.options.lineWrapping?af:Pd)(oe,de,ke,st,yn,Le,Re);Wt=Yt.level!=1,jt=Wt?Yt.from:Yt.to-1,Nt=Wt?Yt.to:Yt.from-1}var $n=null,Fn=null,hr=Je(function(mo){var vi=Bl(oe,st,mo);return vi.top+=xt,vi.bottom+=xt,Qt(vi,Le,Re,!1)?(vi.top<=Re&&vi.left<=Le&&($n=mo,Fn=vi),!0):!1},jt,Nt),wr,Dr,ri=!1;if(Fn){var Li=Le-Fn.left<Fn.right-Le,wi=Li==Wt;hr=$n+(wi?0:1),Dr=wi?"after":"before",wr=Li?Fn.left:Fn.right}else{!Wt&&(hr==Nt||hr==jt)&&hr++,Dr=hr==0?"after":hr==de.text.length?"before":Bl(oe,st,hr-(Wt?1:0)).bottom+xt<=Re==Wt?"after":"before";var Bi=ka(oe,nn(ke,hr,Dr),"line",de,st);wr=Bi.left,ri=Re<Bi.top?-1:Re>=Bi.bottom?1:0}return hr=Ve(de.text,hr,1),bd(ke,hr,Dr,ri,Le-wr)}function Pd(oe,de,ke,Le,Re,st,xt){var jt=Je(function(Yt){var $n=Re[Yt],Fn=$n.level!=1;return Qt(ka(oe,nn(ke,Fn?$n.to:$n.from,Fn?"before":"after"),"line",de,Le),st,xt,!0)},0,Re.length-1),Nt=Re[jt];if(jt>0){var Wt=Nt.level!=1,yn=ka(oe,nn(ke,Wt?Nt.from:Nt.to,Wt?"after":"before"),"line",de,Le);Qt(yn,st,xt,!0)&&yn.top>xt&&(Nt=Re[jt-1])}return Nt}function af(oe,de,ke,Le,Re,st,xt){var jt=gi(oe,de,Le,xt),Nt=jt.begin,Wt=jt.end;/\s/.test(de.text.charAt(Wt-1))&&Wt--;for(var yn=null,Yt=null,$n=0;$n<Re.length;$n++){var Fn=Re[$n];if(!(Fn.from>=Wt||Fn.to<=Nt)){var hr=Fn.level!=1,wr=Bl(oe,Le,hr?Math.min(Wt,Fn.to)-1:Math.max(Nt,Fn.from)).right,Dr=wr<st?st-wr+1e9:wr-st;(!yn||Yt>Dr)&&(yn=Fn,Yt=Dr)}}return yn||(yn=Re[Re.length-1]),yn.from<Nt&&(yn={from:Nt,to:yn.to,level:yn.level}),yn.to>Wt&&(yn={from:yn.from,to:Wt,level:yn.level}),yn}var $u;function Gu(oe){if(oe.cachedTextHeight!=null)return oe.cachedTextHeight;if($u==null){$u=Ne("pre",null,"CodeMirror-line-like");for(var de=0;de<49;++de)$u.appendChild(document.createTextNode("x")),$u.appendChild(Ne("br"));$u.appendChild(document.createTextNode("x"))}je(oe.measure,$u);var ke=$u.offsetHeight/50;return ke>3&&(oe.cachedTextHeight=ke),Ae(oe.measure),ke||1}function ic(oe){if(oe.cachedCharWidth!=null)return oe.cachedCharWidth;var de=Ne("span","xxxxxxxxxx"),ke=Ne("pre",[de],"CodeMirror-line-like");je(oe.measure,ke);var Le=de.getBoundingClientRect(),Re=(Le.right-Le.left)/10;return Re>2&&(oe.cachedCharWidth=Re),Re||10}function Cd(oe){for(var de=oe.display,ke={},Le={},Re=de.gutters.clientLeft,st=de.gutters.firstChild,xt=0;st;st=st.nextSibling,++xt){var jt=oe.display.gutterSpecs[xt].className;ke[jt]=st.offsetLeft+st.clientLeft+Re,Le[jt]=st.clientWidth}return{fixedPos:ph(de),gutterTotalWidth:de.gutters.offsetWidth,gutterLeft:ke,gutterWidth:Le,wrapperWidth:de.wrapper.clientWidth}}function ph(oe){return oe.scroller.getBoundingClientRect().left-oe.sizer.getBoundingClientRect().left}function $a(oe){var de=Gu(oe.display),ke=oe.options.lineWrapping,Le=ke&&Math.max(5,oe.display.scroller.clientWidth/ic(oe.display)-3);return function(Re){if(Kn(oe.doc,Re))return 0;var st=0;if(Re.widgets)for(var xt=0;xt<Re.widgets.length;xt++)Re.widgets[xt].height&&(st+=Re.widgets[xt].height);return ke?st+(Math.ceil(Re.text.length/Le)||1)*de:st+de}}function Ui(oe){var de=oe.doc,ke=$a(oe);de.iter(function(Le){var Re=ke(Le);Re!=Le.height&&Yn(Le,Re)})}function rl(oe,de,ke,Le){var Re=oe.display;if(!ke&&fr(de).getAttribute("cm-not-content")=="true")return null;var st,xt,jt=Re.lineSpace.getBoundingClientRect();try{st=de.clientX-jt.left,xt=de.clientY-jt.top}catch(Yt){return null}var Nt=Wc(oe,st,xt),Wt;if(Le&&Nt.xRel>0&&(Wt=Pn(oe.doc,Nt.line).text).length==Nt.ch){var yn=et(Wt,Wt.length,oe.options.tabSize)-Wt.length;Nt=nn(Nt.line,Math.max(0,Math.round((st-Ru(oe.display).left)/ic(oe.display))-yn))}return Nt}function zs(oe,de){if(de>=oe.display.viewTo||(de-=oe.display.viewFrom,de<0))return null;for(var ke=oe.display.view,Le=0;Le<ke.length;Le++)if(de-=ke[Le].size,de<0)return Le}function ya(oe,de,ke,Le){de==null&&(de=oe.doc.first),ke==null&&(ke=oe.doc.first+oe.doc.size),Le||(Le=0);var Re=oe.display;if(Le&&ke<Re.viewTo&&(Re.updateLineNumbers==null||Re.updateLineNumbers>de)&&(Re.updateLineNumbers=de),oe.curOp.viewChanged=!0,de>=Re.viewTo)Tn&&Hr(oe.doc,de)<Re.viewTo&&ss(oe);else if(ke<=Re.viewFrom)Tn&&Er(oe.doc,ke+Le)>Re.viewFrom?ss(oe):(Re.viewFrom+=Le,Re.viewTo+=Le);else if(de<=Re.viewFrom&&ke>=Re.viewTo)ss(oe);else if(de<=Re.viewFrom){var st=Cl(oe,ke,ke+Le,1);st?(Re.view=Re.view.slice(st.index),Re.viewFrom=st.lineN,Re.viewTo+=Le):ss(oe)}else if(ke>=Re.viewTo){var xt=Cl(oe,de,de,-1);xt?(Re.view=Re.view.slice(0,xt.index),Re.viewTo=xt.lineN):ss(oe)}else{var jt=Cl(oe,de,de,-1),Nt=Cl(oe,ke,ke+Le,1);jt&&Nt?(Re.view=Re.view.slice(0,jt.index).concat(qi(oe,jt.lineN,Nt.lineN)).concat(Re.view.slice(Nt.index)),Re.viewTo+=Le):ss(oe)}var Wt=Re.externalMeasured;Wt&&(ke<Wt.lineN?Wt.lineN+=Le:de<Wt.lineN+Wt.size&&(Re.externalMeasured=null))}function Po(oe,de,ke){oe.curOp.viewChanged=!0;var Le=oe.display,Re=oe.display.externalMeasured;if(Re&&de>=Re.lineN&&de<Re.lineN+Re.size&&(Le.externalMeasured=null),!(de<Le.viewFrom||de>=Le.viewTo)){var st=Le.view[zs(oe,de)];if(st.node!=null){var xt=st.changes||(st.changes=[]);St(xt,ke)==-1&&xt.push(ke)}}}function ss(oe){oe.display.viewFrom=oe.display.viewTo=oe.doc.first,oe.display.view=[],oe.display.viewOffset=0}function Cl(oe,de,ke,Le){var Re=zs(oe,de),st,xt=oe.display.view;if(!Tn||ke==oe.doc.first+oe.doc.size)return{index:Re,lineN:ke};for(var jt=oe.display.viewFrom,Nt=0;Nt<Re;Nt++)jt+=xt[Nt].size;if(jt!=de){if(Le>0){if(Re==xt.length-1)return null;st=jt+xt[Re].size-de,Re++}else st=jt-de;de+=st,ke+=st}for(;Hr(oe.doc,ke)!=ke;){if(Re==(Le<0?0:xt.length-1))return null;ke+=Le*xt[Re-(Le<0?1:0)].size,Re+=Le}return{index:Re,lineN:ke}}function da(oe,de,ke){var Le=oe.display,Re=Le.view;Re.length==0||de>=Le.viewTo||ke<=Le.viewFrom?(Le.view=qi(oe,de,ke),Le.viewFrom=de):(Le.viewFrom>de?Le.view=qi(oe,de,Le.viewFrom).concat(Le.view):Le.viewFrom<de&&(Le.view=Le.view.slice(zs(oe,de))),Le.viewFrom=de,Le.viewTo<ke?Le.view=Le.view.concat(qi(oe,Le.viewTo,ke)):Le.viewTo>ke&&(Le.view=Le.view.slice(0,zs(oe,ke)))),Le.viewTo=ke}function _l(oe){for(var de=oe.display.view,ke=0,Le=0;Le<de.length;Le++){var Re=de[Le];!Re.hidden&&(!Re.node||Re.changes)&&++ke}return ke}function ws(oe){oe.display.input.showSelection(oe.display.input.prepareSelection())}function Kc(oe,de){de===void 0&&(de=!0);for(var ke=oe.doc,Le={},Re=Le.cursors=document.createDocumentFragment(),st=Le.selection=document.createDocumentFragment(),xt=0;xt<ke.sel.ranges.length;xt++)if(!(!de&&xt==ke.sel.primIndex)){var jt=ke.sel.ranges[xt];if(!(jt.from().line>=oe.display.viewTo||jt.to().line<oe.display.viewFrom)){var Nt=jt.empty();(Nt||oe.options.showCursorWhenSelecting)&&$o(oe,jt.head,Re),Nt||Go(oe,jt,st)}}return Le}function $o(oe,de,ke){var Le=ka(oe,de,"div",null,null,!oe.options.singleCursorHeightPerLine),Re=ke.appendChild(Ne("div","\xA0","CodeMirror-cursor"));if(Re.style.left=Le.left+"px",Re.style.top=Le.top+"px",Re.style.height=Math.max(0,Le.bottom-Le.top)*oe.options.cursorHeight+"px",Le.other){var st=ke.appendChild(Ne("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));st.style.display="",st.style.left=Le.other.left+"px",st.style.top=Le.other.top+"px",st.style.height=(Le.other.bottom-Le.other.top)*.85+"px"}}function il(oe,de){return oe.top-de.top||oe.left-de.left}function Go(oe,de,ke){var Le=oe.display,Re=oe.doc,st=document.createDocumentFragment(),xt=Ru(oe.display),jt=xt.left,Nt=Math.max(Le.sizerWidth,dl(oe)-Le.sizer.offsetLeft)-xt.right,Wt=Re.direction=="ltr";function yn(wi,Bi,mo,vi){Bi<0&&(Bi=0),Bi=Math.round(Bi),vi=Math.round(vi),st.appendChild(Ne("div",null,"CodeMirror-selected","position: absolute; left: "+wi+`px;
|
|
|
top: `+Bi+"px; width: "+(mo==null?Nt-wi:mo)+`px;
|
|
|
height: `+(vi-Bi)+"px"))}function Yt(wi,Bi,mo){var vi=Pn(Re,wi),Oo=vi.text.length,Ya,Ds;function os(ks,ou){return Rl(oe,nn(wi,ks),"div",vi,ou)}function Kl(ks,ou,al){var Os=fh(oe,vi,null,ks),oa=ou=="ltr"==(al=="after")?"left":"right",hs=al=="after"?Os.begin:Os.end-(/\s/.test(vi.text.charAt(Os.end-1))?2:1);return os(hs,oa)[oa]}var vl=Jt(vi,Re.direction);return ct(vl,Bi||0,mo==null?Oo:mo,function(ks,ou,al,Os){var oa=al=="ltr",hs=os(ks,oa?"left":"right"),Gs=os(ou-1,oa?"right":"left"),sl=Bi==null&&ks==0,Zu=mo==null&&ou==Oo,as=Os==0,ku=!vl||Os==vl.length-1;if(Gs.top-hs.top<=3){var ys=(Wt?sl:Zu)&&as,xf=(Wt?Zu:sl)&&ku,vu=ys?jt:(oa?hs:Gs).left,au=xf?Nt:(oa?Gs:hs).right;yn(vu,hs.top,au-vu,hs.bottom)}else{var Vl,Ia,Hs,Mc;oa?(Vl=Wt&&sl&&as?jt:hs.left,Ia=Wt?Nt:Kl(ks,al,"before"),Hs=Wt?jt:Kl(ou,al,"after"),Mc=Wt&&Zu&&ku?Nt:Gs.right):(Vl=Wt?Kl(ks,al,"before"):jt,Ia=!Wt&&sl&&as?Nt:hs.right,Hs=!Wt&&Zu&&ku?jt:Gs.left,Mc=Wt?Kl(ou,al,"after"):Nt),yn(Vl,hs.top,Ia-Vl,hs.bottom),hs.bottom<Gs.top&&yn(jt,hs.bottom,null,Gs.top),yn(Hs,Gs.top,Mc-Hs,Gs.bottom)}(!Ya||il(hs,Ya)<0)&&(Ya=hs),il(Gs,Ya)<0&&(Ya=Gs),(!Ds||il(hs,Ds)<0)&&(Ds=hs),il(Gs,Ds)<0&&(Ds=Gs)}),{start:Ya,end:Ds}}var $n=de.from(),Fn=de.to();if($n.line==Fn.line)Yt($n.line,$n.ch,Fn.ch);else{var hr=Pn(Re,$n.line),wr=Pn(Re,Fn.line),Dr=mi(hr)==mi(wr),ri=Yt($n.line,$n.ch,Dr?hr.text.length+1:null).end,Li=Yt(Fn.line,Dr?0:null,Fn.ch).start;Dr&&(ri.top<Li.top-2?(yn(ri.right,ri.top,null,ri.bottom),yn(jt,Li.top,Li.left,Li.bottom)):yn(ri.right,ri.top,Li.left-ri.right,ri.bottom)),ri.bottom<Li.top&&yn(jt,ri.bottom,null,Li.top)}ke.appendChild(st)}function la(oe){if(oe.state.focused){var de=oe.display;clearInterval(de.blinker);var ke=!0;de.cursorDiv.style.visibility="",oe.options.cursorBlinkRate>0?de.blinker=setInterval(function(){oe.hasFocus()||Vc(oe),de.cursorDiv.style.visibility=(ke=!ke)?"":"hidden"},oe.options.cursorBlinkRate):oe.options.cursorBlinkRate<0&&(de.cursorDiv.style.visibility="hidden")}}function Oa(oe){oe.state.focused||(oe.display.input.focus(),Ko(oe))}function Va(oe){oe.state.delayingBlurEvent=!0,setTimeout(function(){oe.state.delayingBlurEvent&&(oe.state.delayingBlurEvent=!1,Vc(oe))},100)}function Ko(oe,de){oe.state.delayingBlurEvent&&(oe.state.delayingBlurEvent=!1),oe.options.readOnly!="nocursor"&&(oe.state.focused||(It(oe,"focus",oe,de),oe.state.focused=!0,Ye(oe.display.wrapper,"CodeMirror-focused"),!oe.curOp&&oe.display.selForContextMenu!=oe.doc.sel&&(oe.display.input.reset(),ce&&setTimeout(function(){return oe.display.input.reset(!0)},20)),oe.display.input.receivedFocus()),la(oe))}function Vc(oe,de){oe.state.delayingBlurEvent||(oe.state.focused&&(It(oe,"blur",oe,de),oe.state.focused=!1,Fe(oe.display.wrapper,"CodeMirror-focused")),clearInterval(oe.display.blinker),setTimeout(function(){oe.state.focused||(oe.display.shift=!1)},150))}function $i(oe){for(var de=oe.display,ke=de.lineDiv.offsetTop,Le=0;Le<de.view.length;Le++){var Re=de.view[Le],st=oe.options.lineWrapping,xt=void 0,jt=0;if(!Re.hidden){if(Ie&&ge<8){var Nt=Re.node.offsetTop+Re.node.offsetHeight;xt=Nt-ke,ke=Nt}else{var Wt=Re.node.getBoundingClientRect();xt=Wt.bottom-Wt.top,!st&&Re.text.firstChild&&(jt=Re.text.firstChild.getBoundingClientRect().right-Wt.left-1)}var yn=Re.line.height-xt;if((yn>.005||yn<-.005)&&(Yn(Re.line,xt),Hf(Re.line),Re.rest))for(var Yt=0;Yt<Re.rest.length;Yt++)Hf(Re.rest[Yt]);if(jt>oe.display.sizerWidth){var $n=Math.ceil(jt/ic(oe.display));$n>oe.display.maxLineLength&&(oe.display.maxLineLength=$n,oe.display.maxLine=Re.line,oe.display.maxLineChanged=!0)}}}}function Hf(oe){if(oe.widgets)for(var de=0;de<oe.widgets.length;++de){var ke=oe.widgets[de],Le=ke.node.parentNode;Le&&(ke.height=Le.offsetHeight)}}function Fo(oe,de,ke){var Le=ke&&ke.top!=null?Math.max(0,ke.top):oe.scroller.scrollTop;Le=Math.floor(Le-As(oe));var Re=ke&&ke.bottom!=null?ke.bottom:Le+oe.wrapper.clientHeight,st=jn(de,Le),xt=jn(de,Re);if(ke&&ke.ensure){var jt=ke.ensure.from.line,Nt=ke.ensure.to.line;jt<st?(st=jt,xt=jn(de,Qi(Pn(de,jt))+oe.wrapper.clientHeight)):Math.min(Nt,de.lastLine())>=xt&&(st=jn(de,Qi(Pn(de,Nt))-oe.wrapper.clientHeight),xt=Nt)}return{from:st,to:Math.max(xt,st+1)}}function Uf(oe,de){if(!Dt(oe,"scrollCursorIntoView")){var ke=oe.display,Le=ke.sizer.getBoundingClientRect(),Re=null;if(de.top+Le.top<0?Re=!0:de.bottom+Le.top>(window.innerHeight||document.documentElement.clientHeight)&&(Re=!1),Re!=null&&!xe){var st=Ne("div","\u200B",null,`position: absolute;
|
|
|
top: `+(de.top-ke.viewOffset-As(oe.display))+`px;
|
|
|
height: `+(de.bottom-de.top+_s(oe)+ke.barHeight)+`px;
|
|
|
left: `+de.left+"px; width: "+Math.max(2,de.right-de.left)+"px;");oe.display.lineSpace.appendChild(st),st.scrollIntoView(Re),oe.display.lineSpace.removeChild(st)}}}function Uh(oe,de,ke,Le){Le==null&&(Le=0);var Re;!oe.options.lineWrapping&&de==ke&&(de=de.ch?nn(de.line,de.sticky=="before"?de.ch-1:de.ch,"after"):de,ke=de.sticky=="before"?nn(de.line,de.ch+1,"before"):de);for(var st=0;st<5;st++){var xt=!1,jt=ka(oe,de),Nt=!ke||ke==de?jt:ka(oe,ke);Re={left:Math.min(jt.left,Nt.left),top:Math.min(jt.top,Nt.top)-Le,right:Math.max(jt.left,Nt.left),bottom:Math.max(jt.bottom,Nt.bottom)+Le};var Wt=Wf(oe,Re),yn=oe.doc.scrollTop,Yt=oe.doc.scrollLeft;if(Wt.scrollTop!=null&&(Xc(oe,Wt.scrollTop),Math.abs(oe.doc.scrollTop-yn)>1&&(xt=!0)),Wt.scrollLeft!=null&&(Uu(oe,Wt.scrollLeft),Math.abs(oe.doc.scrollLeft-Yt)>1&&(xt=!0)),!xt)break}return Re}function Wh(oe,de){var ke=Wf(oe,de);ke.scrollTop!=null&&Xc(oe,ke.scrollTop),ke.scrollLeft!=null&&Uu(oe,ke.scrollLeft)}function Wf(oe,de){var ke=oe.display,Le=Gu(oe.display);de.top<0&&(de.top=0);var Re=oe.curOp&&oe.curOp.scrollTop!=null?oe.curOp.scrollTop:ke.scroller.scrollTop,st=$c(oe),xt={};de.bottom-de.top>st&&(de.bottom=de.top+st);var jt=oe.doc.height+Eu(ke),Nt=de.top<Le,Wt=de.bottom>jt-Le;if(de.top<Re)xt.scrollTop=Nt?0:de.top;else if(de.bottom>Re+st){var yn=Math.min(de.top,(Wt?jt:de.bottom)-st);yn!=Re&&(xt.scrollTop=yn)}var Yt=oe.options.fixedGutter?0:ke.gutters.offsetWidth,$n=oe.curOp&&oe.curOp.scrollLeft!=null?oe.curOp.scrollLeft:ke.scroller.scrollLeft-Yt,Fn=dl(oe)-ke.gutters.offsetWidth,hr=de.right-de.left>Fn;return hr&&(de.right=de.left+Fn),de.left<10?xt.scrollLeft=0:de.left<$n?xt.scrollLeft=Math.max(0,de.left+Yt-(hr?0:10)):de.right>Fn+$n-3&&(xt.scrollLeft=de.right+(hr?0:10)-Fn),xt}function Ed(oe,de){de!=null&&(Hu(oe),oe.curOp.scrollTop=(oe.curOp.scrollTop==null?oe.doc.scrollTop:oe.curOp.scrollTop)+de)}function Sc(oe){Hu(oe);var de=oe.getCursor();oe.curOp.scrollToPos={from:de,to:de,margin:oe.options.cursorScrollMargin}}function Zc(oe,de,ke){(de!=null||ke!=null)&&Hu(oe),de!=null&&(oe.curOp.scrollLeft=de),ke!=null&&(oe.curOp.scrollTop=ke)}function Vo(oe,de){Hu(oe),oe.curOp.scrollToPos=de}function Hu(oe){var de=oe.curOp.scrollToPos;if(de){oe.curOp.scrollToPos=null;var ke=wd(oe,de.from),Le=wd(oe,de.to);sf(oe,ke,Le,de.margin)}}function sf(oe,de,ke,Le){var Re=Wf(oe,{left:Math.min(de.left,ke.left),top:Math.min(de.top,ke.top)-Le,right:Math.max(de.right,ke.right),bottom:Math.max(de.bottom,ke.bottom)+Le});Zc(oe,Re.scrollLeft,Re.scrollTop)}function Xc(oe,de){Math.abs(oe.doc.scrollTop-de)<2||(rt||Xr(oe,{top:de}),Kf(oe,de,!0),rt&&Xr(oe),Qn(oe,100))}function Kf(oe,de,ke){de=Math.max(0,Math.min(oe.display.scroller.scrollHeight-oe.display.scroller.clientHeight,de)),!(oe.display.scroller.scrollTop==de&&!ke)&&(oe.doc.scrollTop=de,oe.display.scrollbars.setScrollTop(de),oe.display.scroller.scrollTop!=de&&(oe.display.scroller.scrollTop=de))}function Uu(oe,de,ke,Le){de=Math.max(0,Math.min(de,oe.display.scroller.scrollWidth-oe.display.scroller.clientWidth)),!((ke?de==oe.doc.scrollLeft:Math.abs(oe.doc.scrollLeft-de)<2)&&!Le)&&(oe.doc.scrollLeft=de,Wi(oe),oe.display.scroller.scrollLeft!=de&&(oe.display.scroller.scrollLeft=de),oe.display.scrollbars.setScrollLeft(de))}function pu(oe){var de=oe.display,ke=de.gutters.offsetWidth,Le=Math.round(oe.doc.height+Eu(oe.display));return{clientHeight:de.scroller.clientHeight,viewHeight:de.wrapper.clientHeight,scrollWidth:de.scroller.scrollWidth,clientWidth:de.scroller.clientWidth,viewWidth:de.wrapper.clientWidth,barLeft:oe.options.fixedGutter?ke:0,docHeight:Le,scrollHeight:Le+_s(oe)+de.barHeight,nativeBarWidth:de.nativeBarWidth,gutterWidth:ke}}var xc=function(oe,de,ke){this.cm=ke;var Le=this.vert=Ne("div",[Ne("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Re=this.horiz=Ne("div",[Ne("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Le.tabIndex=Re.tabIndex=-1,oe(Le),oe(Re),Kt(Le,"scroll",function(){Le.clientHeight&&de(Le.scrollTop,"vertical")}),Kt(Re,"scroll",function(){Re.clientWidth&&de(Re.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ie&&ge<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xc.prototype.update=function(oe){var de=oe.scrollWidth>oe.clientWidth+1,ke=oe.scrollHeight>oe.clientHeight+1,Le=oe.nativeBarWidth;if(ke){this.vert.style.display="block",this.vert.style.bottom=de?Le+"px":"0";var Re=oe.viewHeight-(de?Le:0);this.vert.firstChild.style.height=Math.max(0,oe.scrollHeight-oe.clientHeight+Re)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(de){this.horiz.style.display="block",this.horiz.style.right=ke?Le+"px":"0",this.horiz.style.left=oe.barLeft+"px";var st=oe.viewWidth-oe.barLeft-(ke?Le:0);this.horiz.firstChild.style.width=Math.max(0,oe.scrollWidth-oe.clientWidth+st)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&oe.clientHeight>0&&(Le==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ke?Le:0,bottom:de?Le:0}},xc.prototype.setScrollLeft=function(oe){this.horiz.scrollLeft!=oe&&(this.horiz.scrollLeft=oe),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xc.prototype.setScrollTop=function(oe){this.vert.scrollTop!=oe&&(this.vert.scrollTop=oe),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xc.prototype.zeroWidthHack=function(){var oe=ae&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=oe,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new it,this.disableVert=new it},xc.prototype.enableZeroWidthBar=function(oe,de,ke){oe.style.pointerEvents="auto";function Le(){var Re=oe.getBoundingClientRect(),st=ke=="vert"?document.elementFromPoint(Re.right-1,(Re.top+Re.bottom)/2):document.elementFromPoint((Re.right+Re.left)/2,Re.bottom-1);st!=oe?oe.style.pointerEvents="none":de.set(1e3,Le)}de.set(1e3,Le)},xc.prototype.clear=function(){var oe=this.horiz.parentNode;oe.removeChild(this.horiz),oe.removeChild(this.vert)};var Tu=function(){};Tu.prototype.update=function(){return{bottom:0,right:0}},Tu.prototype.setScrollLeft=function(){},Tu.prototype.setScrollTop=function(){},Tu.prototype.clear=function(){};function wc(oe,de){de||(de=pu(oe));var ke=oe.display.barWidth,Le=oe.display.barHeight;Td(oe,de);for(var Re=0;Re<4&&ke!=oe.display.barWidth||Le!=oe.display.barHeight;Re++)ke!=oe.display.barWidth&&oe.options.lineWrapping&&$i(oe),Td(oe,pu(oe)),ke=oe.display.barWidth,Le=oe.display.barHeight}function Td(oe,de){var ke=oe.display,Le=ke.scrollbars.update(de);ke.sizer.style.paddingRight=(ke.barWidth=Le.right)+"px",ke.sizer.style.paddingBottom=(ke.barHeight=Le.bottom)+"px",ke.heightForcer.style.borderBottom=Le.bottom+"px solid transparent",Le.right&&Le.bottom?(ke.scrollbarFiller.style.display="block",ke.scrollbarFiller.style.height=Le.bottom+"px",ke.scrollbarFiller.style.width=Le.right+"px"):ke.scrollbarFiller.style.display="",Le.bottom&&oe.options.coverGutterNextToScrollbar&&oe.options.fixedGutter?(ke.gutterFiller.style.display="block",ke.gutterFiller.style.height=Le.bottom+"px",ke.gutterFiller.style.width=de.gutterWidth+"px"):ke.gutterFiller.style.display=""}var lf={native:xc,null:Tu};function uf(oe){oe.display.scrollbars&&(oe.display.scrollbars.clear(),oe.display.scrollbars.addClass&&Fe(oe.display.wrapper,oe.display.scrollbars.addClass)),oe.display.scrollbars=new lf[oe.options.scrollbarStyle](function(de){oe.display.wrapper.insertBefore(de,oe.display.scrollbarFiller),Kt(de,"mousedown",function(){oe.state.focused&&setTimeout(function(){return oe.display.input.focus()},0)}),de.setAttribute("cm-not-content","true")},function(de,ke){ke=="horizontal"?Uu(oe,de):Xc(oe,de)},oe),oe.display.scrollbars.addClass&&Ye(oe.display.wrapper,oe.display.scrollbars.addClass)}var Vf=0;function fl(oe){oe.curOp={cm:oe,viewChanged:!1,startHeight:oe.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:++Vf},xs(oe.curOp)}function bc(oe){var de=oe.curOp;de&&lo(de,function(ke){for(var Le=0;Le<ke.ops.length;Le++)ke.ops[Le].cm.curOp=null;Wp(ke)})}function Wp(oe){for(var de=oe.ops,ke=0;ke<de.length;ke++)Ft(de[ke]);for(var Le=0;Le<de.length;Le++)Rt(de[Le]);for(var Re=0;Re<de.length;Re++)en(de[Re]);for(var st=0;st<de.length;st++)on(de[st]);for(var xt=0;xt<de.length;xt++)Sn(de[xt])}function Ft(oe){var de=oe.cm,ke=de.display;kr(de),oe.updateMaxLine&&Mo(de),oe.mustUpdate=oe.viewChanged||oe.forceUpdate||oe.scrollTop!=null||oe.scrollToPos&&(oe.scrollToPos.from.line<ke.viewFrom||oe.scrollToPos.to.line>=ke.viewTo)||ke.maxLineChanged&&de.options.lineWrapping,oe.update=oe.mustUpdate&&new tr(de,oe.mustUpdate&&{top:oe.scrollTop,ensure:oe.scrollToPos},oe.forceUpdate)}function Rt(oe){oe.updatedDisplay=oe.mustUpdate&&qr(oe.cm,oe.update)}function en(oe){var de=oe.cm,ke=de.display;oe.updatedDisplay&&$i(de),oe.barMeasure=pu(de),ke.maxLineChanged&&!de.options.lineWrapping&&(oe.adjustWidthTo=Hc(de,ke.maxLine,ke.maxLine.text.length).left+3,de.display.sizerWidth=oe.adjustWidthTo,oe.barMeasure.scrollWidth=Math.max(ke.scroller.clientWidth,ke.sizer.offsetLeft+oe.adjustWidthTo+_s(de)+de.display.barWidth),oe.maxScrollLeft=Math.max(0,ke.sizer.offsetLeft+oe.adjustWidthTo-dl(de))),(oe.updatedDisplay||oe.selectionChanged)&&(oe.preparedSelection=ke.input.prepareSelection())}function on(oe){var de=oe.cm;oe.adjustWidthTo!=null&&(de.display.sizer.style.minWidth=oe.adjustWidthTo+"px",oe.maxScrollLeft<de.doc.scrollLeft&&Uu(de,Math.min(de.display.scroller.scrollLeft,oe.maxScrollLeft),!0),de.display.maxLineChanged=!1);var ke=oe.focus&&oe.focus==$e();oe.preparedSelection&&de.display.input.showSelection(oe.preparedSelection,ke),(oe.updatedDisplay||oe.startHeight!=de.doc.height)&&wc(de,oe.barMeasure),oe.updatedDisplay&&Oi(de,oe.barMeasure),oe.selectionChanged&&la(de),de.state.focused&&oe.updateInput&&de.display.input.reset(oe.typing),ke&&Oa(oe.cm)}function Sn(oe){var de=oe.cm,ke=de.display,Le=de.doc;if(oe.updatedDisplay&&xr(de,oe.update),ke.wheelStartX!=null&&(oe.scrollTop!=null||oe.scrollLeft!=null||oe.scrollToPos)&&(ke.wheelStartX=ke.wheelStartY=null),oe.scrollTop!=null&&Kf(de,oe.scrollTop,oe.forceScroll),oe.scrollLeft!=null&&Uu(de,oe.scrollLeft,!0,!0),oe.scrollToPos){var Re=Uh(de,Mn(Le,oe.scrollToPos.from),Mn(Le,oe.scrollToPos.to),oe.scrollToPos.margin);Uf(de,Re)}var st=oe.maybeHiddenMarkers,xt=oe.maybeUnhiddenMarkers;if(st)for(var jt=0;jt<st.length;++jt)st[jt].lines.length||It(st[jt],"hide");if(xt)for(var Nt=0;Nt<xt.length;++Nt)xt[Nt].lines.length&&It(xt[Nt],"unhide");ke.wrapper.offsetHeight&&(Le.scrollTop=de.display.scroller.scrollTop),oe.changeObjs&&It(de,"changes",de,oe.changeObjs),oe.update&&oe.update.finish()}function fn(oe,de){if(oe.curOp)return de();fl(oe);try{return de()}finally{bc(oe)}}function Bn(oe,de){return function(){if(oe.curOp)return de.apply(oe,arguments);fl(oe);try{return de.apply(oe,arguments)}finally{bc(oe)}}}function Rn(oe){return function(){if(this.curOp)return oe.apply(this,arguments);fl(this);try{return oe.apply(this,arguments)}finally{bc(this)}}}function In(oe){return function(){var de=this.cm;if(!de||de.curOp)return oe.apply(this,arguments);fl(de);try{return oe.apply(this,arguments)}finally{bc(de)}}}function Qn(oe,de){oe.doc.highlightFrontier<oe.display.viewTo&&oe.state.highlight.set(de,ht(rr,oe))}function rr(oe){var de=oe.doc;if(!(de.highlightFrontier>=oe.display.viewTo)){var ke=+new Date+oe.options.workTime,Le=Rr(oe,de.highlightFrontier),Re=[];de.iter(Le.line,Math.min(de.first+de.size,oe.display.viewTo+500),function(st){if(Le.line>=oe.display.viewFrom){var xt=st.styles,jt=st.text.length>oe.options.maxHighlightLength?gn(de.mode,Le.state):null,Nt=Or(oe,st,Le,!0);jt&&(Le.state=jt),st.styles=Nt.styles;var Wt=st.styleClasses,yn=Nt.classes;yn?st.styleClasses=yn:Wt&&(st.styleClasses=null);for(var Yt=!xt||xt.length!=st.styles.length||Wt!=yn&&(!Wt||!yn||Wt.bgClass!=yn.bgClass||Wt.textClass!=yn.textClass),$n=0;!Yt&&$n<xt.length;++$n)Yt=xt[$n]!=st.styles[$n];Yt&&Re.push(Le.line),st.stateAfter=Le.save(),Le.nextLine()}else st.text.length<=oe.options.maxHighlightLength&&vn(oe,st.text,Le),st.stateAfter=Le.line%5==0?Le.save():null,Le.nextLine();if(+new Date>ke)return Qn(oe,oe.options.workDelay),!0}),de.highlightFrontier=Le.line,de.modeFrontier=Math.max(de.modeFrontier,Le.line),Re.length&&fn(oe,function(){for(var st=0;st<Re.length;st++)Po(oe,Re[st],"text")})}}var tr=function(oe,de,ke){var Le=oe.display;this.viewport=de,this.visible=Fo(Le,oe.doc,de),this.editorIsHidden=!Le.wrapper.offsetWidth,this.wrapperHeight=Le.wrapper.clientHeight,this.wrapperWidth=Le.wrapper.clientWidth,this.oldDisplayWidth=dl(oe),this.force=ke,this.dims=Cd(oe),this.events=[]};tr.prototype.signal=function(oe,de){sn(oe,de)&&this.events.push(arguments)},tr.prototype.finish=function(){for(var oe=0;oe<this.events.length;oe++)It.apply(null,this.events[oe])};function kr(oe){var de=oe.display;!de.scrollbarsClipped&&de.scroller.offsetWidth&&(de.nativeBarWidth=de.scroller.offsetWidth-de.scroller.clientWidth,de.heightForcer.style.height=_s(oe)+"px",de.sizer.style.marginBottom=-de.nativeBarWidth+"px",de.sizer.style.borderRightWidth=_s(oe)+"px",de.scrollbarsClipped=!0)}function Pr(oe){if(oe.hasFocus())return null;var de=$e();if(!de||!Qe(oe.display.lineDiv,de))return null;var ke={activeElt:de};if(window.getSelection){var Le=window.getSelection();Le.anchorNode&&Le.extend&&Qe(oe.display.lineDiv,Le.anchorNode)&&(ke.anchorNode=Le.anchorNode,ke.anchorOffset=Le.anchorOffset,ke.focusNode=Le.focusNode,ke.focusOffset=Le.focusOffset)}return ke}function gr(oe){if(!(!oe||!oe.activeElt||oe.activeElt==$e())&&(oe.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(oe.activeElt.nodeName)&&oe.anchorNode&&Qe(document.body,oe.anchorNode)&&Qe(document.body,oe.focusNode))){var de=window.getSelection(),ke=document.createRange();ke.setEnd(oe.anchorNode,oe.anchorOffset),ke.collapse(!1),de.removeAllRanges(),de.addRange(ke),de.extend(oe.focusNode,oe.focusOffset)}}function qr(oe,de){var ke=oe.display,Le=oe.doc;if(de.editorIsHidden)return ss(oe),!1;if(!de.force&&de.visible.from>=ke.viewFrom&&de.visible.to<=ke.viewTo&&(ke.updateLineNumbers==null||ke.updateLineNumbers>=ke.viewTo)&&ke.renderedView==ke.view&&_l(oe)==0)return!1;ti(oe)&&(ss(oe),de.dims=Cd(oe));var Re=Le.first+Le.size,st=Math.max(de.visible.from-oe.options.viewportMargin,Le.first),xt=Math.min(Re,de.visible.to+oe.options.viewportMargin);ke.viewFrom<st&&st-ke.viewFrom<20&&(st=Math.max(Le.first,ke.viewFrom)),ke.viewTo>xt&&ke.viewTo-xt<20&&(xt=Math.min(Re,ke.viewTo)),Tn&&(st=Hr(oe.doc,st),xt=Er(oe.doc,xt));var jt=st!=ke.viewFrom||xt!=ke.viewTo||ke.lastWrapHeight!=de.wrapperHeight||ke.lastWrapWidth!=de.wrapperWidth;da(oe,st,xt),ke.viewOffset=Qi(Pn(oe.doc,ke.viewFrom)),oe.display.mover.style.top=ke.viewOffset+"px";var Nt=_l(oe);if(!jt&&Nt==0&&!de.force&&ke.renderedView==ke.view&&(ke.updateLineNumbers==null||ke.updateLineNumbers>=ke.viewTo))return!1;var Wt=Pr(oe);return Nt>4&&(ke.lineDiv.style.display="none"),Zr(oe,ke.updateLineNumbers,de.dims),Nt>4&&(ke.lineDiv.style.display=""),ke.renderedView=ke.view,gr(Wt),Ae(ke.cursorDiv),Ae(ke.selectionDiv),ke.gutters.style.height=ke.sizer.style.minHeight=0,jt&&(ke.lastWrapHeight=de.wrapperHeight,ke.lastWrapWidth=de.wrapperWidth,Qn(oe,400)),ke.updateLineNumbers=null,!0}function xr(oe,de){for(var ke=de.viewport,Le=!0;;Le=!1){if(!Le||!oe.options.lineWrapping||de.oldDisplayWidth==dl(oe)){if(ke&&ke.top!=null&&(ke={top:Math.min(oe.doc.height+Eu(oe.display)-$c(oe),ke.top)}),de.visible=Fo(oe.display,oe.doc,ke),de.visible.from>=oe.display.viewFrom&&de.visible.to<=oe.display.viewTo)break}else Le&&(de.visible=Fo(oe.display,oe.doc,ke));if(!qr(oe,de))break;$i(oe);var Re=pu(oe);ws(oe),wc(oe,Re),Oi(oe,Re),de.force=!1}de.signal(oe,"update",oe),(oe.display.viewFrom!=oe.display.reportedViewFrom||oe.display.viewTo!=oe.display.reportedViewTo)&&(de.signal(oe,"viewportChange",oe,oe.display.viewFrom,oe.display.viewTo),oe.display.reportedViewFrom=oe.display.viewFrom,oe.display.reportedViewTo=oe.display.viewTo)}function Xr(oe,de){var ke=new tr(oe,de);if(qr(oe,ke)){$i(oe),xr(oe,ke);var Le=pu(oe);ws(oe),wc(oe,Le),Oi(oe,Le),ke.finish()}}function Zr(oe,de,ke){var Le=oe.display,Re=oe.options.lineNumbers,st=Le.lineDiv,xt=st.firstChild;function jt(hr){var wr=hr.nextSibling;return ce&&ae&&oe.display.currentWheelTarget==hr?hr.style.display="none":hr.parentNode.removeChild(hr),wr}for(var Nt=Le.view,Wt=Le.viewFrom,yn=0;yn<Nt.length;yn++){var Yt=Nt[yn];if(!Yt.hidden)if(!Yt.node||Yt.node.parentNode!=st){var $n=Dl(oe,Yt,Wt,ke);st.insertBefore($n,xt)}else{for(;xt!=Yt.node;)xt=jt(xt);var Fn=Re&&de!=null&&de<=Wt&&Yt.lineNumber;Yt.changes&&(St(Yt.changes,"gutter")>-1&&(Fn=!1),Ra(oe,Yt,Wt,ke)),Fn&&(Ae(Yt.lineNumber),Yt.lineNumber.appendChild(document.createTextNode(or(oe.options,Wt)))),xt=Yt.node.nextSibling}Wt+=Yt.size}for(;xt;)xt=jt(xt)}function hi(oe){var de=oe.gutters.offsetWidth;oe.sizer.style.marginLeft=de+"px"}function Oi(oe,de){oe.display.sizer.style.minHeight=de.docHeight+"px",oe.display.heightForcer.style.top=de.docHeight+"px",oe.display.gutters.style.height=de.docHeight+oe.display.barHeight+_s(oe)+"px"}function Wi(oe){var de=oe.display,ke=de.view;if(!(!de.alignWidgets&&(!de.gutters.firstChild||!oe.options.fixedGutter))){for(var Le=ph(de)-de.scroller.scrollLeft+oe.doc.scrollLeft,Re=de.gutters.offsetWidth,st=Le+"px",xt=0;xt<ke.length;xt++)if(!ke[xt].hidden){oe.options.fixedGutter&&(ke[xt].gutter&&(ke[xt].gutter.style.left=st),ke[xt].gutterBackground&&(ke[xt].gutterBackground.style.left=st));var jt=ke[xt].alignable;if(jt)for(var Nt=0;Nt<jt.length;Nt++)jt[Nt].style.left=st}oe.options.fixedGutter&&(de.gutters.style.left=Le+Re+"px")}}function ti(oe){if(!oe.options.lineNumbers)return!1;var de=oe.doc,ke=or(oe.options,de.first+de.size-1),Le=oe.display;if(ke.length!=Le.lineNumChars){var Re=Le.measure.appendChild(Ne("div",[Ne("div",ke)],"CodeMirror-linenumber CodeMirror-gutter-elt")),st=Re.firstChild.offsetWidth,xt=Re.offsetWidth-st;return Le.lineGutter.style.width="",Le.lineNumInnerWidth=Math.max(st,Le.lineGutter.offsetWidth-xt)+1,Le.lineNumWidth=Le.lineNumInnerWidth+xt,Le.lineNumChars=Le.lineNumInnerWidth?ke.length:-1,Le.lineGutter.style.width=Le.lineNumWidth+"px",hi(oe.display),!0}return!1}function ki(oe,de){for(var ke=[],Le=!1,Re=0;Re<oe.length;Re++){var st=oe[Re],xt=null;if(typeof st!="string"&&(xt=st.style,st=st.className),st=="CodeMirror-linenumbers")if(de)Le=!0;else continue;ke.push({className:st,style:xt})}return de&&!Le&&ke.push({className:"CodeMirror-linenumbers",style:null}),ke}function ho(oe){var de=oe.gutters,ke=oe.gutterSpecs;Ae(de),oe.lineGutter=null;for(var Le=0;Le<ke.length;++Le){var Re=ke[Le],st=Re.className,xt=Re.style,jt=de.appendChild(Ne("div",null,"CodeMirror-gutter "+st));xt&&(jt.style.cssText=xt),st=="CodeMirror-linenumbers"&&(oe.lineGutter=jt,jt.style.width=(oe.lineNumWidth||1)+"px")}de.style.display=ke.length?"":"none",hi(oe)}function ci(oe){ho(oe.display),ya(oe),Wi(oe)}function Ei(oe,de,ke,Le){var Re=this;this.input=ke,Re.scrollbarFiller=Ne("div",null,"CodeMirror-scrollbar-filler"),Re.scrollbarFiller.setAttribute("cm-not-content","true"),Re.gutterFiller=Ne("div",null,"CodeMirror-gutter-filler"),Re.gutterFiller.setAttribute("cm-not-content","true"),Re.lineDiv=Be("div",null,"CodeMirror-code"),Re.selectionDiv=Ne("div",null,null,"position: relative; z-index: 1"),Re.cursorDiv=Ne("div",null,"CodeMirror-cursors"),Re.measure=Ne("div",null,"CodeMirror-measure"),Re.lineMeasure=Ne("div",null,"CodeMirror-measure"),Re.lineSpace=Be("div",[Re.measure,Re.lineMeasure,Re.selectionDiv,Re.cursorDiv,Re.lineDiv],null,"position: relative; outline: none");var st=Be("div",[Re.lineSpace],"CodeMirror-lines");Re.mover=Ne("div",[st],null,"position: relative"),Re.sizer=Ne("div",[Re.mover],"CodeMirror-sizer"),Re.sizerWidth=null,Re.heightForcer=Ne("div",null,null,"position: absolute; height: "+bt+"px; width: 1px;"),Re.gutters=Ne("div",null,"CodeMirror-gutters"),Re.lineGutter=null,Re.scroller=Ne("div",[Re.sizer,Re.heightForcer,Re.gutters],"CodeMirror-scroll"),Re.scroller.setAttribute("tabIndex","-1"),Re.wrapper=Ne("div",[Re.scrollbarFiller,Re.gutterFiller,Re.scroller],"CodeMirror"),Ie&&ge<8&&(Re.gutters.style.zIndex=-1,Re.scroller.style.paddingRight=0),!ce&&!(rt&&ee)&&(Re.scroller.draggable=!0),oe&&(oe.appendChild?oe.appendChild(Re.wrapper):oe(Re.wrapper)),Re.viewFrom=Re.viewTo=de.first,Re.reportedViewFrom=Re.reportedViewTo=de.first,Re.view=[],Re.renderedView=null,Re.externalMeasured=null,Re.viewOffset=0,Re.lastWrapHeight=Re.lastWrapWidth=0,Re.updateLineNumbers=null,Re.nativeBarWidth=Re.barHeight=Re.barWidth=0,Re.scrollbarsClipped=!1,Re.lineNumWidth=Re.lineNumInnerWidth=Re.lineNumChars=null,Re.alignWidgets=!1,Re.cachedCharWidth=Re.cachedTextHeight=Re.cachedPaddingH=null,Re.maxLine=null,Re.maxLineLength=0,Re.maxLineChanged=!1,Re.wheelDX=Re.wheelDY=Re.wheelStartX=Re.wheelStartY=null,Re.shift=!1,Re.selForContextMenu=null,Re.activeTouch=null,Re.gutterSpecs=ki(Le.gutters,Le.lineNumbers),ho(Re),ke.init(Re)}var ui=0,$r=null;Ie?$r=-.53:rt?$r=15:Ee?$r=-.7:Me&&($r=-1/3);function xi(oe){var de=oe.wheelDeltaX,ke=oe.wheelDeltaY;return de==null&&oe.detail&&oe.axis==oe.HORIZONTAL_AXIS&&(de=oe.detail),ke==null&&oe.detail&&oe.axis==oe.VERTICAL_AXIS?ke=oe.detail:ke==null&&(ke=oe.wheelDelta),{x:de,y:ke}}function Fi(oe){var de=xi(oe);return de.x*=$r,de.y*=$r,de}function Yi(oe,de){var ke=xi(de),Le=ke.x,Re=ke.y,st=oe.display,xt=st.scroller,jt=xt.scrollWidth>xt.clientWidth,Nt=xt.scrollHeight>xt.clientHeight;if(Le&&jt||Re&&Nt){if(Re&&ae&&ce){e:for(var Wt=de.target,yn=st.view;Wt!=xt;Wt=Wt.parentNode)for(var Yt=0;Yt<yn.length;Yt++)if(yn[Yt].node==Wt){oe.display.currentWheelTarget=Wt;break e}}if(Le&&!rt&&!ye&&$r!=null){Re&&Nt&&Xc(oe,Math.max(0,xt.scrollTop+Re*$r)),Uu(oe,Math.max(0,xt.scrollLeft+Le*$r)),(!Re||Re&&Nt)&&Ln(de),st.wheelStartX=null;return}if(Re&&$r!=null){var $n=Re*$r,Fn=oe.doc.scrollTop,hr=Fn+st.wrapper.clientHeight;$n<0?Fn=Math.max(0,Fn+$n-50):hr=Math.min(oe.doc.height,hr+$n+50),Xr(oe,{top:Fn,bottom:hr})}ui<20&&(st.wheelStartX==null?(st.wheelStartX=xt.scrollLeft,st.wheelStartY=xt.scrollTop,st.wheelDX=Le,st.wheelDY=Re,setTimeout(function(){if(st.wheelStartX!=null){var wr=xt.scrollLeft-st.wheelStartX,Dr=xt.scrollTop-st.wheelStartY,ri=Dr&&st.wheelDY&&Dr/st.wheelDY||wr&&st.wheelDX&&wr/st.wheelDX;st.wheelStartX=st.wheelStartY=null,ri&&($r=($r*ui+ri)/(ui+1),++ui)}},200)):(st.wheelDX+=Le,st.wheelDY+=Re))}}var eo=function(oe,de){this.ranges=oe,this.primIndex=de};eo.prototype.primary=function(){return this.ranges[this.primIndex]},eo.prototype.equals=function(oe){if(oe==this)return!0;if(oe.primIndex!=this.primIndex||oe.ranges.length!=this.ranges.length)return!1;for(var de=0;de<this.ranges.length;de++){var ke=this.ranges[de],Le=oe.ranges[de];if(!rn(ke.anchor,Le.anchor)||!rn(ke.head,Le.head))return!1}return!0},eo.prototype.deepCopy=function(){for(var oe=[],de=0;de<this.ranges.length;de++)oe[de]=new ni(mn(this.ranges[de].anchor),mn(this.ranges[de].head));return new eo(oe,this.primIndex)},eo.prototype.somethingSelected=function(){for(var oe=0;oe<this.ranges.length;oe++)if(!this.ranges[oe].empty())return!0;return!1},eo.prototype.contains=function(oe,de){de||(de=oe);for(var ke=0;ke<this.ranges.length;ke++){var Le=this.ranges[ke];if(Cn(de,Le.from())>=0&&Cn(oe,Le.to())<=0)return ke}return-1};var ni=function(oe,de){this.anchor=oe,this.head=de};ni.prototype.from=function(){return pn(this.anchor,this.head)},ni.prototype.to=function(){return En(this.anchor,this.head)},ni.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function po(oe,de,ke){var Le=oe&&oe.options.selectionsMayTouch,Re=de[ke];de.sort(function($n,Fn){return Cn($n.from(),Fn.from())}),ke=St(de,Re);for(var st=1;st<de.length;st++){var xt=de[st],jt=de[st-1],Nt=Cn(jt.to(),xt.from());if(Le&&!xt.empty()?Nt>0:Nt>=0){var Wt=pn(jt.from(),xt.from()),yn=En(jt.to(),xt.to()),Yt=jt.empty()?xt.from()==xt.head:jt.from()==jt.head;st<=ke&&--ke,de.splice(--st,2,new ni(Yt?yn:Wt,Yt?Wt:yn))}}return new eo(de,ke)}function wo(oe,de){return new eo([new ni(oe,de||oe)],0)}function Qo(oe){return oe.text?nn(oe.from.line+oe.text.length-1,wt(oe.text).length+(oe.text.length==1?oe.from.ch:0)):oe.to}function Ao(oe,de){if(Cn(oe,de.from)<0)return oe;if(Cn(oe,de.to)<=0)return Qo(de);var ke=oe.line+de.text.length-(de.to.line-de.from.line)-1,Le=oe.ch;return oe.line==de.to.line&&(Le+=Qo(de).ch-de.to.ch),nn(ke,Le)}function Na(oe,de){for(var ke=[],Le=0;Le<oe.sel.ranges.length;Le++){var Re=oe.sel.ranges[Le];ke.push(new ni(Ao(Re.anchor,de),Ao(Re.head,de)))}return po(oe.cm,ke,oe.sel.primIndex)}function Ta(oe,de,ke){return oe.line==de.line?nn(ke.line,oe.ch-de.ch+ke.ch):nn(ke.line+(oe.line-de.line),oe.ch)}function vo(oe,de,ke){for(var Le=[],Re=nn(oe.first,0),st=Re,xt=0;xt<de.length;xt++){var jt=de[xt],Nt=Ta(jt.from,Re,st),Wt=Ta(Qo(jt),Re,st);if(Re=jt.to,st=Wt,ke=="around"){var yn=oe.sel.ranges[xt],Yt=Cn(yn.head,yn.anchor)<0;Le[xt]=new ni(Yt?Wt:Nt,Yt?Nt:Wt)}else Le[xt]=new ni(Nt,Nt)}return new eo(Le,oe.sel.primIndex)}function Gi(oe){oe.doc.mode=hn(oe.options,oe.doc.modeOption),Wo(oe)}function Wo(oe){oe.doc.iter(function(de){de.stateAfter&&(de.stateAfter=null),de.styles&&(de.styles=null)}),oe.doc.modeFrontier=oe.doc.highlightFrontier=oe.doc.first,Qn(oe,100),oe.state.modeGen++,oe.curOp&&ya(oe)}function Aa(oe,de){return de.from.ch==0&&de.to.ch==0&&wt(de.text)==""&&(!oe.cm||oe.cm.options.wholeLineUpdateBefore)}function Sa(oe,de,ke,Le){function Re(Li){return ke?ke[Li]:null}function st(Li,wi,Bi){ca(Li,wi,Bi,Le),Tr(Li,"change",Li,de)}function xt(Li,wi){for(var Bi=[],mo=Li;mo<wi;++mo)Bi.push(new Uo(Wt[mo],Re(mo),Le));return Bi}var jt=de.from,Nt=de.to,Wt=de.text,yn=Pn(oe,jt.line),Yt=Pn(oe,Nt.line),$n=wt(Wt),Fn=Re(Wt.length-1),hr=Nt.line-jt.line;if(de.full)oe.insert(0,xt(0,Wt.length)),oe.remove(Wt.length,oe.size-Wt.length);else if(Aa(oe,de)){var wr=xt(0,Wt.length-1);st(Yt,Yt.text,Fn),hr&&oe.remove(jt.line,hr),wr.length&&oe.insert(jt.line,wr)}else if(yn==Yt)if(Wt.length==1)st(yn,yn.text.slice(0,jt.ch)+$n+yn.text.slice(Nt.ch),Fn);else{var Dr=xt(1,Wt.length-1);Dr.push(new Uo($n+yn.text.slice(Nt.ch),Fn,Le)),st(yn,yn.text.slice(0,jt.ch)+Wt[0],Re(0)),oe.insert(jt.line+1,Dr)}else if(Wt.length==1)st(yn,yn.text.slice(0,jt.ch)+Wt[0]+Yt.text.slice(Nt.ch),Re(0)),oe.remove(jt.line+1,hr);else{st(yn,yn.text.slice(0,jt.ch)+Wt[0],Re(0)),st(Yt,$n+Yt.text.slice(Nt.ch),Fn);var ri=xt(1,Wt.length-1);hr>1&&oe.remove(jt.line+1,hr-1),oe.insert(jt.line+1,ri)}Tr(oe,"change",oe,de)}function is(oe,de,ke){function Le(Re,st,xt){if(Re.linked)for(var jt=0;jt<Re.linked.length;++jt){var Nt=Re.linked[jt];if(Nt.doc!=st){var Wt=xt&&Nt.sharedHist;ke&&!Wt||(de(Nt.doc,Wt),Le(Nt.doc,Re,Wt))}}}Le(oe,null,!0)}function to(oe,de){if(de.cm)throw new Error("This document is already in use.");oe.doc=de,de.cm=oe,Ui(oe),Gi(oe),Zi(oe),oe.options.lineWrapping||Mo(oe),oe.options.mode=de.modeOption,ya(oe)}function Zi(oe){(oe.doc.direction=="rtl"?Ye:Fe)(oe.display.lineDiv,"CodeMirror-rtl")}function no(oe){fn(oe,function(){Zi(oe),ya(oe)})}function Ni(oe){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=oe||1}function Zo(oe,de){var ke={from:mn(de.from),to:Qo(de),text:_n(oe,de.from,de.to)};return $s(oe,ke,de.from.line,de.to.line+1),is(oe,function(Le){return $s(Le,ke,de.from.line,de.to.line+1)},!0),ke}function Ai(oe){for(;oe.length;){var de=wt(oe);if(de.ranges)oe.pop();else break}}function fo(oe,de){if(de)return Ai(oe.done),wt(oe.done);if(oe.done.length&&!wt(oe.done).ranges)return wt(oe.done);if(oe.done.length>1&&!oe.done[oe.done.length-2].ranges)return oe.done.pop(),wt(oe.done)}function Bo(oe,de,ke,Le){var Re=oe.history;Re.undone.length=0;var st=+new Date,xt,jt;if((Re.lastOp==Le||Re.lastOrigin==de.origin&&de.origin&&(de.origin.charAt(0)=="+"&&Re.lastModTime>st-(oe.cm?oe.cm.options.historyEventDelay:500)||de.origin.charAt(0)=="*"))&&(xt=fo(Re,Re.lastOp==Le)))jt=wt(xt.changes),Cn(de.from,de.to)==0&&Cn(de.from,jt.to)==0?jt.to=Qo(de):xt.changes.push(Zo(oe,de));else{var Nt=wt(Re.done);for((!Nt||!Nt.ranges)&&ls(oe.sel,Re.done),xt={changes:[Zo(oe,de)],generation:Re.generation},Re.done.push(xt);Re.done.length>Re.undoDepth;)Re.done.shift(),Re.done[0].ranges||Re.done.shift()}Re.done.push(ke),Re.generation=++Re.maxGeneration,Re.lastModTime=Re.lastSelTime=st,Re.lastOp=Re.lastSelOp=Le,Re.lastOrigin=Re.lastSelOrigin=de.origin,jt||It(oe,"historyAdded")}function Ro(oe,de,ke,Le){var Re=de.charAt(0);return Re=="*"||Re=="+"&&ke.ranges.length==Le.ranges.length&&ke.somethingSelected()==Le.somethingSelected()&&new Date-oe.history.lastSelTime<=(oe.cm?oe.cm.options.historyEventDelay:500)}function bs(oe,de,ke,Le){var Re=oe.history,st=Le&&Le.origin;ke==Re.lastSelOp||st&&Re.lastSelOrigin==st&&(Re.lastModTime==Re.lastSelTime&&Re.lastOrigin==st||Ro(oe,st,wt(Re.done),de))?Re.done[Re.done.length-1]=de:ls(de,Re.done),Re.lastSelTime=+new Date,Re.lastSelOrigin=st,Re.lastSelOp=ke,Le&&Le.clearRedo!==!1&&Ai(Re.undone)}function ls(oe,de){var ke=wt(de);ke&&ke.ranges&&ke.equals(oe)||de.push(oe)}function $s(oe,de,ke,Le){var Re=de["spans_"+oe.id],st=0;oe.iter(Math.max(oe.first,ke),Math.min(oe.first+oe.size,Le),function(xt){xt.markedSpans&&((Re||(Re=de["spans_"+oe.id]={}))[st]=xt.markedSpans),++st})}function qo(oe){if(!oe)return null;for(var de,ke=0;ke<oe.length;++ke)oe[ke].marker.explicitlyCleared?de||(de=oe.slice(0,ke)):de&&de.push(oe[ke]);return de?de.length?de:null:oe}function Ps(oe,de){var ke=de["spans_"+oe.id];if(!ke)return null;for(var Le=[],Re=0;Re<de.text.length;++Re)Le.push(qo(ke[Re]));return Le}function ts(oe,de){var ke=Ps(oe,de),Le=Gr(oe,de);if(!ke)return Le;if(!Le)return ke;for(var Re=0;Re<ke.length;++Re){var st=ke[Re],xt=Le[Re];if(st&&xt)e:for(var jt=0;jt<xt.length;++jt){for(var Nt=xt[jt],Wt=0;Wt<st.length;++Wt)if(st[Wt].marker==Nt.marker)continue e;st.push(Nt)}else xt&&(ke[Re]=xt)}return ke}function ps(oe,de,ke){for(var Le=[],Re=0;Re<oe.length;++Re){var st=oe[Re];if(st.ranges){Le.push(ke?eo.prototype.deepCopy.call(st):st);continue}var xt=st.changes,jt=[];Le.push({changes:jt});for(var Nt=0;Nt<xt.length;++Nt){var Wt=xt[Nt],yn=void 0;if(jt.push({from:Wt.from,to:Wt.to,text:Wt.text}),de)for(var Yt in Wt)(yn=Yt.match(/^spans_(\d+)$/))&&St(de,Number(yn[1]))>-1&&(wt(jt)[Yt]=Wt[Yt],delete Wt[Yt])}}return Le}function Wu(oe,de,ke,Le){if(Le){var Re=oe.anchor;if(ke){var st=Cn(de,Re)<0;st!=Cn(ke,Re)<0?(Re=de,de=ke):st!=Cn(de,ke)<0&&(de=ke)}return new ni(Re,de)}else return new ni(ke||de,de)}function ea(oe,de,ke,Le,Re){Re==null&&(Re=oe.cm&&(oe.cm.display.shift||oe.extend)),fa(oe,new eo([Wu(oe.sel.primary(),de,ke,Re)],0),Le)}function ia(oe,de,ke){for(var Le=[],Re=oe.cm&&(oe.cm.display.shift||oe.extend),st=0;st<oe.sel.ranges.length;st++)Le[st]=Wu(oe.sel.ranges[st],de[st],null,Re);var xt=po(oe.cm,Le,oe.sel.primIndex);fa(oe,xt,ke)}function ua(oe,de,ke,Le){var Re=oe.sel.ranges.slice(0);Re[de]=ke,fa(oe,po(oe.cm,Re,oe.sel.primIndex),Le)}function Za(oe,de,ke,Le){fa(oe,wo(de,ke),Le)}function gs(oe,de,ke){var Le={ranges:de.ranges,update:function(Re){this.ranges=[];for(var st=0;st<Re.length;st++)this.ranges[st]=new ni(Mn(oe,Re[st].anchor),Mn(oe,Re[st].head))},origin:ke&&ke.origin};return It(oe,"beforeSelectionChange",oe,Le),oe.cm&&It(oe.cm,"beforeSelectionChange",oe.cm,Le),Le.ranges!=de.ranges?po(oe.cm,Le.ranges,Le.ranges.length-1):de}function ko(oe,de,ke){var Le=oe.history.done,Re=wt(Le);Re&&Re.ranges?(Le[Le.length-1]=de,ms(oe,de,ke)):fa(oe,de,ke)}function fa(oe,de,ke){ms(oe,de,ke),bs(oe,oe.sel,oe.cm?oe.cm.curOp.id:NaN,ke)}function ms(oe,de,ke){(sn(oe,"beforeSelectionChange")||oe.cm&&sn(oe.cm,"beforeSelectionChange"))&&(de=gs(oe,de,ke));var Le=ke&&ke.bias||(Cn(de.primary().head,oe.sel.primary().head)<0?-1:1);pl(oe,El(oe,de,Le,!0)),!(ke&&ke.scroll===!1)&&oe.cm&&Sc(oe.cm)}function pl(oe,de){de.equals(oe.sel)||(oe.sel=de,oe.cm&&(oe.cm.curOp.updateInput=1,oe.cm.curOp.selectionChanged=!0,qt(oe.cm)),Tr(oe,"cursorActivity",oe))}function zl(oe){pl(oe,El(oe,oe.sel,null,!1))}function El(oe,de,ke,Le){for(var Re,st=0;st<de.ranges.length;st++){var xt=de.ranges[st],jt=de.ranges.length==oe.sel.ranges.length&&oe.sel.ranges[st],Nt=tu(oe,xt.anchor,jt&&jt.anchor,ke,Le),Wt=tu(oe,xt.head,jt&&jt.head,ke,Le);(Re||Nt!=xt.anchor||Wt!=xt.head)&&(Re||(Re=de.ranges.slice(0,st)),Re[st]=new ni(Nt,Wt))}return Re?po(oe.cm,Re,de.primIndex):de}function eu(oe,de,ke,Le,Re){var st=Pn(oe,de.line);if(st.markedSpans)for(var xt=0;xt<st.markedSpans.length;++xt){var jt=st.markedSpans[xt],Nt=jt.marker,Wt="selectLeft"in Nt?!Nt.selectLeft:Nt.inclusiveLeft,yn="selectRight"in Nt?!Nt.selectRight:Nt.inclusiveRight;if((jt.from==null||(Wt?jt.from<=de.ch:jt.from<de.ch))&&(jt.to==null||(yn?jt.to>=de.ch:jt.to>de.ch))){if(Re&&(It(Nt,"beforeCursorEnter"),Nt.explicitlyCleared))if(st.markedSpans){--xt;continue}else break;if(!Nt.atomic)continue;if(ke){var Yt=Nt.find(Le<0?1:-1),$n=void 0;if((Le<0?yn:Wt)&&(Yt=$l(oe,Yt,-Le,Yt&&Yt.line==de.line?st:null)),Yt&&Yt.line==de.line&&($n=Cn(Yt,ke))&&(Le<0?$n<0:$n>0))return eu(oe,Yt,de,Le,Re)}var Fn=Nt.find(Le<0?-1:1);return(Le<0?Wt:yn)&&(Fn=$l(oe,Fn,Le,Fn.line==de.line?st:null)),Fn?eu(oe,Fn,de,Le,Re):null}}return de}function tu(oe,de,ke,Le,Re){var st=Le||1,xt=eu(oe,de,ke,st,Re)||!Re&&eu(oe,de,ke,st,!0)||eu(oe,de,ke,-st,Re)||!Re&&eu(oe,de,ke,-st,!0);return xt||(oe.cantEdit=!0,nn(oe.first,0))}function $l(oe,de,ke,Le){return ke<0&&de.ch==0?de.line>oe.first?Mn(oe,nn(de.line-1)):null:ke>0&&de.ch==(Le||Pn(oe,de.line)).text.length?de.line<oe.first+oe.size-1?nn(de.line+1,0):null:new nn(de.line,de.ch+ke)}function na(oe){oe.setSelection(nn(oe.firstLine(),0),nn(oe.lastLine()),gt)}function Ts(oe,de,ke){var Le={canceled:!1,from:de.from,to:de.to,text:de.text,origin:de.origin,cancel:function(){return Le.canceled=!0}};return ke&&(Le.update=function(Re,st,xt,jt){Re&&(Le.from=Mn(oe,Re)),st&&(Le.to=Mn(oe,st)),xt&&(Le.text=xt),jt!==void 0&&(Le.origin=jt)}),It(oe,"beforeChange",oe,Le),oe.cm&&It(oe.cm,"beforeChange",oe.cm,Le),Le.canceled?(oe.cm&&(oe.cm.curOp.updateInput=2),null):{from:Le.from,to:Le.to,text:Le.text,origin:Le.origin}}function Ga(oe,de,ke){if(oe.cm){if(!oe.cm.curOp)return Bn(oe.cm,Ga)(oe,de,ke);if(oe.cm.state.suppressEdits)return}if(!((sn(oe,"beforeChange")||oe.cm&&sn(oe.cm,"beforeChange"))&&(de=Ts(oe,de,!0),!de))){var Le=si&&!ke&&Hi(oe,de.from,de.to);if(Le)for(var Re=Le.length-1;Re>=0;--Re)pa(oe,{from:Le[Re].from,to:Le[Re].to,text:Re?[""]:de.text,origin:de.origin});else pa(oe,de)}}function pa(oe,de){if(!(de.text.length==1&&de.text[0]==""&&Cn(de.from,de.to)==0)){var ke=Na(oe,de);Bo(oe,de,ke,oe.cm?oe.cm.curOp.id:NaN),nu(oe,de,ke,Gr(oe,de));var Le=[];is(oe,function(Re,st){!st&&St(Le,Re.history)==-1&&(xa(Re.history,de),Le.push(Re.history)),nu(Re,de,null,Gr(Re,de))})}}function Gl(oe,de,ke){var Le=oe.cm&&oe.cm.state.suppressEdits;if(!(Le&&!ke)){for(var Re=oe.history,st,xt=oe.sel,jt=de=="undo"?Re.done:Re.undone,Nt=de=="undo"?Re.undone:Re.done,Wt=0;Wt<jt.length&&(st=jt[Wt],!(ke?st.ranges&&!st.equals(oe.sel):!st.ranges));Wt++);if(Wt!=jt.length){for(Re.lastOrigin=Re.lastSelOrigin=null;;)if(st=jt.pop(),st.ranges){if(ls(st,Nt),ke&&!st.equals(oe.sel)){fa(oe,st,{clearRedo:!1});return}xt=st}else if(Le){jt.push(st);return}else break;var yn=[];ls(xt,Nt),Nt.push({changes:yn,generation:Re.generation}),Re.generation=st.generation||++Re.maxGeneration;for(var Yt=sn(oe,"beforeChange")||oe.cm&&sn(oe.cm,"beforeChange"),$n=function(wr){var Dr=st.changes[wr];if(Dr.origin=de,Yt&&!Ts(oe,Dr,!1))return jt.length=0,{};yn.push(Zo(oe,Dr));var ri=wr?Na(oe,Dr):wt(jt);nu(oe,Dr,ri,ts(oe,Dr)),!wr&&oe.cm&&oe.cm.scrollIntoView({from:Dr.from,to:Qo(Dr)});var Li=[];is(oe,function(wi,Bi){!Bi&&St(Li,wi.history)==-1&&(xa(wi.history,Dr),Li.push(wi.history)),nu(wi,Dr,null,ts(wi,Dr))})},Fn=st.changes.length-1;Fn>=0;--Fn){var hr=$n(Fn);if(hr)return hr.v}}}}function oc(oe,de){if(de!=0&&(oe.first+=de,oe.sel=new eo(pt(oe.sel.ranges,function(Re){return new ni(nn(Re.anchor.line+de,Re.anchor.ch),nn(Re.head.line+de,Re.head.ch))}),oe.sel.primIndex),oe.cm)){ya(oe.cm,oe.first,oe.first-de,de);for(var ke=oe.cm.display,Le=ke.viewFrom;Le<ke.viewTo;Le++)Po(oe.cm,Le,"gutter")}}function nu(oe,de,ke,Le){if(oe.cm&&!oe.cm.curOp)return Bn(oe.cm,nu)(oe,de,ke,Le);if(de.to.line<oe.first){oc(oe,de.text.length-1-(de.to.line-de.from.line));return}if(!(de.from.line>oe.lastLine())){if(de.from.line<oe.first){var Re=de.text.length-1-(oe.first-de.from.line);oc(oe,Re),de={from:nn(oe.first,0),to:nn(de.to.line+Re,de.to.ch),text:[wt(de.text)],origin:de.origin}}var st=oe.lastLine();de.to.line>st&&(de={from:de.from,to:nn(st,Pn(oe,st).text.length),text:[de.text[0]],origin:de.origin}),de.removed=_n(oe,de.from,de.to),ke||(ke=Na(oe,de)),oe.cm?Mu(oe.cm,de,Le):Sa(oe,de,Le),ms(oe,ke,gt),oe.cantEdit&&tu(oe,nn(oe.firstLine(),0))&&(oe.cantEdit=!1)}}function Mu(oe,de,ke){var Le=oe.doc,Re=oe.display,st=de.from,xt=de.to,jt=!1,Nt=st.line;oe.options.lineWrapping||(Nt=$t(mi(Pn(Le,st.line))),Le.iter(Nt,xt.line+1,function(Fn){if(Fn==Re.maxLine)return jt=!0,!0})),Le.sel.contains(de.from,de.to)>-1&&qt(oe),Sa(Le,de,ke,$a(oe)),oe.options.lineWrapping||(Le.iter(Nt,st.line+de.text.length,function(Fn){var hr=zo(Fn);hr>Re.maxLineLength&&(Re.maxLine=Fn,Re.maxLineLength=hr,Re.maxLineChanged=!0,jt=!1)}),jt&&(oe.curOp.updateMaxLine=!0)),br(Le,st.line),Qn(oe,400);var Wt=de.text.length-(xt.line-st.line)-1;de.full?ya(oe):st.line==xt.line&&de.text.length==1&&!Aa(oe.doc,de)?Po(oe,st.line,"text"):ya(oe,st.line,xt.line+1,Wt);var yn=sn(oe,"changes"),Yt=sn(oe,"change");if(Yt||yn){var $n={from:st,to:xt,text:de.text,removed:de.removed,origin:de.origin};Yt&&Tr(oe,"change",oe,$n),yn&&(oe.curOp.changeObjs||(oe.curOp.changeObjs=[])).push($n)}oe.display.selForContextMenu=null}function Ku(oe,de,ke,Le,Re){var st;Le||(Le=ke),Cn(Le,ke)<0&&(st=[Le,ke],ke=st[0],Le=st[1]),typeof de=="string"&&(de=oe.splitLines(de)),Ga(oe,{from:ke,to:Le,text:de,origin:Re})}function Tl(oe,de,ke,Le){ke<oe.line?oe.line+=Le:de<oe.line&&(oe.line=de,oe.ch=0)}function Xo(oe,de,ke,Le){for(var Re=0;Re<oe.length;++Re){var st=oe[Re],xt=!0;if(st.ranges){st.copied||(st=oe[Re]=st.deepCopy(),st.copied=!0);for(var jt=0;jt<st.ranges.length;jt++)Tl(st.ranges[jt].anchor,de,ke,Le),Tl(st.ranges[jt].head,de,ke,Le);continue}for(var Nt=0;Nt<st.changes.length;++Nt){var Wt=st.changes[Nt];if(ke<Wt.from.line)Wt.from=nn(Wt.from.line+Le,Wt.from.ch),Wt.to=nn(Wt.to.line+Le,Wt.to.ch);else if(de<=Wt.to.line){xt=!1;break}}xt||(oe.splice(0,Re+1),Re=0)}}function xa(oe,de){var ke=de.from.line,Le=de.to.line,Re=de.text.length-(Le-ke)-1;Xo(oe.done,ke,Le,Re),Xo(oe.undone,ke,Le,Re)}function us(oe,de,ke,Le){var Re=de,st=de;return typeof de=="number"?st=Pn(oe,kn(oe,de)):Re=$t(de),Re==null?null:(Le(st,Re)&&oe.cm&&Po(oe.cm,Re,ke),st)}function wa(oe){this.lines=oe,this.parent=null;for(var de=0,ke=0;ke<oe.length;++ke)oe[ke].parent=this,de+=oe[ke].height;this.height=de}wa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(oe,de){for(var ke=oe,Le=oe+de;ke<Le;++ke){var Re=this.lines[ke];this.height-=Re.height,Jo(Re),Tr(Re,"delete")}this.lines.splice(oe,de)},collapse:function(oe){oe.push.apply(oe,this.lines)},insertInner:function(oe,de,ke){this.height+=ke,this.lines=this.lines.slice(0,oe).concat(de).concat(this.lines.slice(oe));for(var Le=0;Le<de.length;++Le)de[Le].parent=this},iterN:function(oe,de,ke){for(var Le=oe+de;oe<Le;++oe)if(ke(this.lines[oe]))return!0}};function Ho(oe){this.children=oe;for(var de=0,ke=0,Le=0;Le<oe.length;++Le){var Re=oe[Le];de+=Re.chunkSize(),ke+=Re.height,Re.parent=this}this.size=de,this.height=ke,this.parent=null}Ho.prototype={chunkSize:function(){return this.size},removeInner:function(oe,de){this.size-=de;for(var ke=0;ke<this.children.length;++ke){var Le=this.children[ke],Re=Le.chunkSize();if(oe<Re){var st=Math.min(de,Re-oe),xt=Le.height;if(Le.removeInner(oe,st),this.height-=xt-Le.height,Re==st&&(this.children.splice(ke--,1),Le.parent=null),(de-=st)==0)break;oe=0}else oe-=Re}if(this.size-de<25&&(this.children.length>1||!(this.children[0]instanceof wa))){var jt=[];this.collapse(jt),this.children=[new wa(jt)],this.children[0].parent=this}},collapse:function(oe){for(var de=0;de<this.children.length;++de)this.children[de].collapse(oe)},insertInner:function(oe,de,ke){this.size+=de.length,this.height+=ke;for(var Le=0;Le<this.children.length;++Le){var Re=this.children[Le],st=Re.chunkSize();if(oe<=st){if(Re.insertInner(oe,de,ke),Re.lines&&Re.lines.length>50){for(var xt=Re.lines.length%25+25,jt=xt;jt<Re.lines.length;){var Nt=new wa(Re.lines.slice(jt,jt+=25));Re.height-=Nt.height,this.children.splice(++Le,0,Nt),Nt.parent=this}Re.lines=Re.lines.slice(0,xt),this.maybeSpill()}break}oe-=st}},maybeSpill:function(){if(!(this.children.length<=10)){var oe=this;do{var de=oe.children.splice(oe.children.length-5,5),ke=new Ho(de);if(oe.parent){oe.size-=ke.size,oe.height-=ke.height;var Re=St(oe.parent.children,oe);oe.parent.children.splice(Re+1,0,ke)}else{var Le=new Ho(oe.children);Le.parent=oe,oe.children=[Le,ke],oe=Le}ke.parent=oe.parent}while(oe.children.length>10);oe.parent.maybeSpill()}},iterN:function(oe,de,ke){for(var Le=0;Le<this.children.length;++Le){var Re=this.children[Le],st=Re.chunkSize();if(oe<st){var xt=Math.min(de,st-oe);if(Re.iterN(oe,xt,ke))return!0;if((de-=xt)==0)break;oe=0}else oe-=st}}};var vs=function(oe,de,ke){if(ke)for(var Le in ke)ke.hasOwnProperty(Le)&&(this[Le]=ke[Le]);this.doc=oe,this.node=de};vs.prototype.clear=function(){var oe=this.doc.cm,de=this.line.widgets,ke=this.line,Le=$t(ke);if(!(Le==null||!de)){for(var Re=0;Re<de.length;++Re)de[Re]==this&&de.splice(Re--,1);de.length||(ke.widgets=null);var st=tl(this);Yn(ke,Math.max(0,ke.height-st)),oe&&(fn(oe,function(){gl(oe,ke,-st),Po(oe,Le,"widget")}),Tr(oe,"lineWidgetCleared",oe,this,Le))}},vs.prototype.changed=function(){var oe=this,de=this.height,ke=this.doc.cm,Le=this.line;this.height=null;var Re=tl(this)-de;Re&&(Kn(this.doc,Le)||Yn(Le,Le.height+Re),ke&&fn(ke,function(){ke.curOp.forceUpdate=!0,gl(ke,Le,Re),Tr(ke,"lineWidgetChanged",ke,oe,$t(Le))}))},xn(vs);function gl(oe,de,ke){Qi(de)<(oe.curOp&&oe.curOp.scrollTop||oe.doc.scrollTop)&&Ed(oe,ke)}function gu(oe,de,ke,Le){var Re=new vs(oe,ke,Le),st=oe.cm;return st&&Re.noHScroll&&(st.display.alignWidgets=!0),us(oe,de,"widget",function(xt){var jt=xt.widgets||(xt.widgets=[]);if(Re.insertAt==null?jt.push(Re):jt.splice(Math.min(jt.length-1,Math.max(0,Re.insertAt)),0,Re),Re.line=xt,st&&!Kn(oe,xt)){var Nt=Qi(xt)<oe.scrollTop;Yn(xt,xt.height+tl(Re)),Nt&&Ed(st,Re.height),st.curOp.forceUpdate=!0}return!0}),st&&Tr(st,"lineWidgetAdded",st,Re,typeof de=="number"?de:$t(de)),Re}var cf=0,ln=function(oe,de){this.lines=[],this.type=de,this.doc=oe,this.id=++cf};ln.prototype.clear=function(){if(!this.explicitlyCleared){var oe=this.doc.cm,de=oe&&!oe.curOp;if(de&&fl(oe),sn(this,"clear")){var ke=this.find();ke&&Tr(this,"clear",ke.from,ke.to)}for(var Le=null,Re=null,st=0;st<this.lines.length;++st){var xt=this.lines[st],jt=xo(xt.markedSpans,this);oe&&!this.collapsed?Po(oe,$t(xt),"text"):oe&&(jt.to!=null&&(Re=$t(xt)),jt.from!=null&&(Le=$t(xt))),xt.markedSpans=zi(xt.markedSpans,jt),jt.from==null&&this.collapsed&&!Kn(this.doc,xt)&&oe&&Yn(xt,Gu(oe.display))}if(oe&&this.collapsed&&!oe.options.lineWrapping)for(var Nt=0;Nt<this.lines.length;++Nt){var Wt=mi(this.lines[Nt]),yn=zo(Wt);yn>oe.display.maxLineLength&&(oe.display.maxLine=Wt,oe.display.maxLineLength=yn,oe.display.maxLineChanged=!0)}Le!=null&&oe&&this.collapsed&&ya(oe,Le,Re+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,oe&&zl(oe.doc)),oe&&Tr(oe,"markerCleared",oe,this,Le,Re),de&&bc(oe),this.parent&&this.parent.clear()}},ln.prototype.find=function(oe,de){oe==null&&this.type=="bookmark"&&(oe=1);for(var ke,Le,Re=0;Re<this.lines.length;++Re){var st=this.lines[Re],xt=xo(st.markedSpans,this);if(xt.from!=null&&(ke=nn(de?st:$t(st),xt.from),oe==-1))return ke;if(xt.to!=null&&(Le=nn(de?st:$t(st),xt.to),oe==1))return Le}return ke&&{from:ke,to:Le}},ln.prototype.changed=function(){var oe=this,de=this.find(-1,!0),ke=this,Le=this.doc.cm;!de||!Le||fn(Le,function(){var Re=de.line,st=$t(de.line),xt=vc(Le,st);if(xt&&(Es(xt),Le.curOp.selectionChanged=Le.curOp.forceUpdate=!0),Le.curOp.updateMaxLine=!0,!Kn(ke.doc,Re)&&ke.height!=null){var jt=ke.height;ke.height=null;var Nt=tl(ke)-jt;Nt&&Yn(Re,Re.height+Nt)}Tr(Le,"markerChanged",Le,oe)})},ln.prototype.attachLine=function(oe){if(!this.lines.length&&this.doc.cm){var de=this.doc.cm.curOp;(!de.maybeHiddenMarkers||St(de.maybeHiddenMarkers,this)==-1)&&(de.maybeUnhiddenMarkers||(de.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(oe)},ln.prototype.detachLine=function(oe){if(this.lines.splice(St(this.lines,oe),1),!this.lines.length&&this.doc.cm){var de=this.doc.cm.curOp;(de.maybeHiddenMarkers||(de.maybeHiddenMarkers=[])).push(this)}},xn(ln);function Pc(oe,de,ke,Le,Re){if(Le&&Le.shared)return hf(oe,de,ke,Le,Re);if(oe.cm&&!oe.cm.curOp)return Bn(oe.cm,Pc)(oe,de,ke,Le,Re);var st=new ln(oe,Re),xt=Cn(de,ke);if(Le&&Ct(Le,st,!1),xt>0||xt==0&&st.clearWhenEmpty!==!1)return st;if(st.replacedWith&&(st.collapsed=!0,st.widgetNode=Be("span",[st.replacedWith],"CodeMirror-widget"),Le.handleMouseEvents||st.widgetNode.setAttribute("cm-ignore-events","true"),Le.insertLeft&&(st.widgetNode.insertLeft=!0)),st.collapsed){if(Ci(oe,de.line,de,ke,st)||de.line!=ke.line&&Ci(oe,ke.line,de,ke,st))throw new Error("Inserting collapsed marker partially overlapping an existing one");On()}st.addToHistory&&Bo(oe,{from:de,to:ke,origin:"markText"},oe.sel,NaN);var jt=de.line,Nt=oe.cm,Wt;if(oe.iter(jt,ke.line+1,function(Yt){Nt&&st.collapsed&&!Nt.options.lineWrapping&&mi(Yt)==Nt.display.maxLine&&(Wt=!0),st.collapsed&&jt!=de.line&&Yn(Yt,0),Lo(Yt,new pi(st,jt==de.line?de.ch:null,jt==ke.line?ke.ch:null)),++jt}),st.collapsed&&oe.iter(de.line,ke.line+1,function(Yt){Kn(oe,Yt)&&Yn(Yt,0)}),st.clearOnEnter&&Kt(st,"beforeCursorEnter",function(){return st.clear()}),st.readOnly&&(Ri(),(oe.history.done.length||oe.history.undone.length)&&oe.clearHistory()),st.collapsed&&(st.id=++cf,st.atomic=!0),Nt){if(Wt&&(Nt.curOp.updateMaxLine=!0),st.collapsed)ya(Nt,de.line,ke.line+1);else if(st.className||st.startStyle||st.endStyle||st.css||st.attributes||st.title)for(var yn=de.line;yn<=ke.line;yn++)Po(Nt,yn,"text");st.atomic&&zl(Nt.doc),Tr(Nt,"markerAdded",Nt,st)}return st}var Vu=function(oe,de){this.markers=oe,this.primary=de;for(var ke=0;ke<oe.length;++ke)oe[ke].parent=this};Vu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var oe=0;oe<this.markers.length;++oe)this.markers[oe].clear();Tr(this,"clear")}},Vu.prototype.find=function(oe,de){return this.primary.find(oe,de)},xn(Vu);function hf(oe,de,ke,Le,Re){Le=Ct(Le),Le.shared=!1;var st=[Pc(oe,de,ke,Le,Re)],xt=st[0],jt=Le.widgetNode;return is(oe,function(Nt){jt&&(Le.widgetNode=jt.cloneNode(!0)),st.push(Pc(Nt,Mn(Nt,de),Mn(Nt,ke),Le,Re));for(var Wt=0;Wt<Nt.linked.length;++Wt)if(Nt.linked[Wt].isParent)return;xt=wt(st)}),new Vu(st,xt)}function gh(oe){return oe.findMarks(nn(oe.first,0),oe.clipPos(nn(oe.lastLine())),function(de){return de.parent})}function Yc(oe,de){for(var ke=0;ke<de.length;ke++){var Le=de[ke],Re=Le.find(),st=oe.clipPos(Re.from),xt=oe.clipPos(Re.to);if(Cn(st,xt)){var jt=Pc(oe,st,xt,Le.primary,Le.primary.type);Le.markers.push(jt),jt.parent=Le}}}function Md(oe){for(var de=function(Le){var Re=oe[Le],st=[Re.primary.doc];is(Re.primary.doc,function(Nt){return st.push(Nt)});for(var xt=0;xt<Re.markers.length;xt++){var jt=Re.markers[xt];St(st,jt.doc)==-1&&(jt.parent=null,Re.markers.splice(xt--,1))}},ke=0;ke<oe.length;ke++)de(ke)}var Kp=0,Ms=function(oe,de,ke,Le,Re){if(!(this instanceof Ms))return new Ms(oe,de,ke,Le,Re);ke==null&&(ke=0),Ho.call(this,[new wa([new Uo("",null)])]),this.first=ke,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ke;var st=nn(ke,0);this.sel=wo(st),this.history=new Ni(null),this.id=++Kp,this.modeOption=de,this.lineSep=Le,this.direction=Re=="rtl"?"rtl":"ltr",this.extend=!1,typeof oe=="string"&&(oe=this.splitLines(oe)),Sa(this,{from:st,to:st,text:oe}),fa(this,wo(st),gt)};Ms.prototype=we(Ho.prototype,{constructor:Ms,iter:function(oe,de,ke){ke?this.iterN(oe-this.first,de-oe,ke):this.iterN(this.first,this.first+this.size,oe)},insert:function(oe,de){for(var ke=0,Le=0;Le<de.length;++Le)ke+=de[Le].height;this.insertInner(oe-this.first,de,ke)},remove:function(oe,de){this.removeInner(oe-this.first,de)},getValue:function(oe){var de=qn(this,this.first,this.first+this.size);return oe===!1?de:de.join(oe||this.lineSeparator())},setValue:In(function(oe){var de=nn(this.first,0),ke=this.first+this.size-1;Ga(this,{from:de,to:nn(ke,Pn(this,ke).text.length),text:this.splitLines(oe),origin:"setValue",full:!0},!0),this.cm&&Zc(this.cm,0,0),fa(this,wo(de),gt)}),replaceRange:function(oe,de,ke,Le){de=Mn(this,de),ke=ke?Mn(this,ke):de,Ku(this,oe,de,ke,Le)},getRange:function(oe,de,ke){var Le=_n(this,Mn(this,oe),Mn(this,de));return ke===!1?Le:Le.join(ke||this.lineSeparator())},getLine:function(oe){var de=this.getLineHandle(oe);return de&&de.text},getLineHandle:function(oe){if(Wn(this,oe))return Pn(this,oe)},getLineNumber:function(oe){return $t(oe)},getLineHandleVisualStart:function(oe){return typeof oe=="number"&&(oe=Pn(this,oe)),mi(oe)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(oe){return Mn(this,oe)},getCursor:function(oe){var de=this.sel.primary(),ke;return oe==null||oe=="head"?ke=de.head:oe=="anchor"?ke=de.anchor:oe=="end"||oe=="to"||oe===!1?ke=de.to():ke=de.from(),ke},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:In(function(oe,de,ke){Za(this,Mn(this,typeof oe=="number"?nn(oe,de||0):oe),null,ke)}),setSelection:In(function(oe,de,ke){Za(this,Mn(this,oe),Mn(this,de||oe),ke)}),extendSelection:In(function(oe,de,ke){ea(this,Mn(this,oe),de&&Mn(this,de),ke)}),extendSelections:In(function(oe,de){ia(this,Dn(this,oe),de)}),extendSelectionsBy:In(function(oe,de){var ke=pt(this.sel.ranges,oe);ia(this,Dn(this,ke),de)}),setSelections:In(function(oe,de,ke){if(oe.length){for(var Le=[],Re=0;Re<oe.length;Re++)Le[Re]=new ni(Mn(this,oe[Re].anchor),Mn(this,oe[Re].head));de==null&&(de=Math.min(oe.length-1,this.sel.primIndex)),fa(this,po(this.cm,Le,de),ke)}}),addSelection:In(function(oe,de,ke){var Le=this.sel.ranges.slice(0);Le.push(new ni(Mn(this,oe),Mn(this,de||oe))),fa(this,po(this.cm,Le,Le.length-1),ke)}),getSelection:function(oe){for(var de=this.sel.ranges,ke,Le=0;Le<de.length;Le++){var Re=_n(this,de[Le].from(),de[Le].to());ke=ke?ke.concat(Re):Re}return oe===!1?ke:ke.join(oe||this.lineSeparator())},getSelections:function(oe){for(var de=[],ke=this.sel.ranges,Le=0;Le<ke.length;Le++){var Re=_n(this,ke[Le].from(),ke[Le].to());oe!==!1&&(Re=Re.join(oe||this.lineSeparator())),de[Le]=Re}return de},replaceSelection:function(oe,de,ke){for(var Le=[],Re=0;Re<this.sel.ranges.length;Re++)Le[Re]=oe;this.replaceSelections(Le,de,ke||"+input")},replaceSelections:In(function(oe,de,ke){for(var Le=[],Re=this.sel,st=0;st<Re.ranges.length;st++){var xt=Re.ranges[st];Le[st]={from:xt.from(),to:xt.to(),text:this.splitLines(oe[st]),origin:ke}}for(var jt=de&&de!="end"&&vo(this,Le,de),Nt=Le.length-1;Nt>=0;Nt--)Ga(this,Le[Nt]);jt?ko(this,jt):this.cm&&Sc(this.cm)}),undo:In(function(){Gl(this,"undo")}),redo:In(function(){Gl(this,"redo")}),undoSelection:In(function(){Gl(this,"undo",!0)}),redoSelection:In(function(){Gl(this,"redo",!0)}),setExtending:function(oe){this.extend=oe},getExtending:function(){return this.extend},historySize:function(){for(var oe=this.history,de=0,ke=0,Le=0;Le<oe.done.length;Le++)oe.done[Le].ranges||++de;for(var Re=0;Re<oe.undone.length;Re++)oe.undone[Re].ranges||++ke;return{undo:de,redo:ke}},clearHistory:function(){var oe=this;this.history=new Ni(this.history.maxGeneration),is(this,function(de){return de.history=oe.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(oe){return oe&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(oe){return this.history.generation==(oe||this.cleanGeneration)},getHistory:function(){return{done:ps(this.history.done),undone:ps(this.history.undone)}},setHistory:function(oe){var de=this.history=new Ni(this.history.maxGeneration);de.done=ps(oe.done.slice(0),null,!0),de.undone=ps(oe.undone.slice(0),null,!0)},setGutterMarker:In(function(oe,de,ke){return us(this,oe,"gutter",function(Le){var Re=Le.gutterMarkers||(Le.gutterMarkers={});return Re[de]=ke,!ke&&Oe(Re)&&(Le.gutterMarkers=null),!0})}),clearGutter:In(function(oe){var de=this;this.iter(function(ke){ke.gutterMarkers&&ke.gutterMarkers[oe]&&us(de,ke,"gutter",function(){return ke.gutterMarkers[oe]=null,Oe(ke.gutterMarkers)&&(ke.gutterMarkers=null),!0})})}),lineInfo:function(oe){var de;if(typeof oe=="number"){if(!Wn(this,oe)||(de=oe,oe=Pn(this,oe),!oe))return null}else if(de=$t(oe),de==null)return null;return{line:de,handle:oe,text:oe.text,gutterMarkers:oe.gutterMarkers,textClass:oe.textClass,bgClass:oe.bgClass,wrapClass:oe.wrapClass,widgets:oe.widgets}},addLineClass:In(function(oe,de,ke){return us(this,oe,de=="gutter"?"gutter":"class",function(Le){var Re=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass";if(!Le[Re])Le[Re]=ke;else{if(Ce(ke).test(Le[Re]))return!1;Le[Re]+=" "+ke}return!0})}),removeLineClass:In(function(oe,de,ke){return us(this,oe,de=="gutter"?"gutter":"class",function(Le){var Re=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass",st=Le[Re];if(st)if(ke==null)Le[Re]=null;else{var xt=st.match(Ce(ke));if(!xt)return!1;var jt=xt.index+xt[0].length;Le[Re]=st.slice(0,xt.index)+(!xt.index||jt==st.length?"":" ")+st.slice(jt)||null}else return!1;return!0})}),addLineWidget:In(function(oe,de,ke){return gu(this,oe,de,ke)}),removeLineWidget:function(oe){oe.clear()},markText:function(oe,de,ke){return Pc(this,Mn(this,oe),Mn(this,de),ke,ke&&ke.type||"range")},setBookmark:function(oe,de){var ke={replacedWith:de&&(de.nodeType==null?de.widget:de),insertLeft:de&&de.insertLeft,clearWhenEmpty:!1,shared:de&&de.shared,handleMouseEvents:de&&de.handleMouseEvents};return oe=Mn(this,oe),Pc(this,oe,oe,ke,"bookmark")},findMarksAt:function(oe){oe=Mn(this,oe);var de=[],ke=Pn(this,oe.line).markedSpans;if(ke)for(var Le=0;Le<ke.length;++Le){var Re=ke[Le];(Re.from==null||Re.from<=oe.ch)&&(Re.to==null||Re.to>=oe.ch)&&de.push(Re.marker.parent||Re.marker)}return de},findMarks:function(oe,de,ke){oe=Mn(this,oe),de=Mn(this,de);var Le=[],Re=oe.line;return this.iter(oe.line,de.line+1,function(st){var xt=st.markedSpans;if(xt)for(var jt=0;jt<xt.length;jt++){var Nt=xt[jt];!(Nt.to!=null&&Re==oe.line&&oe.ch>=Nt.to||Nt.from==null&&Re!=oe.line||Nt.from!=null&&Re==de.line&&Nt.from>=de.ch)&&(!ke||ke(Nt.marker))&&Le.push(Nt.marker.parent||Nt.marker)}++Re}),Le},getAllMarks:function(){var oe=[];return this.iter(function(de){var ke=de.markedSpans;if(ke)for(var Le=0;Le<ke.length;++Le)ke[Le].from!=null&&oe.push(ke[Le].marker)}),oe},posFromIndex:function(oe){var de,ke=this.first,Le=this.lineSeparator().length;return this.iter(function(Re){var st=Re.text.length+Le;if(st>oe)return de=oe,!0;oe-=st,++ke}),Mn(this,nn(ke,de))},indexFromPos:function(oe){oe=Mn(this,oe);var de=oe.ch;if(oe.line<this.first||oe.ch<0)return 0;var ke=this.lineSeparator().length;return this.iter(this.first,oe.line,function(Le){de+=Le.text.length+ke}),de},copy:function(oe){var de=new Ms(qn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return de.scrollTop=this.scrollTop,de.scrollLeft=this.scrollLeft,de.sel=this.sel,de.extend=!1,oe&&(de.history.undoDepth=this.history.undoDepth,de.setHistory(this.getHistory())),de},linkedDoc:function(oe){oe||(oe={});var de=this.first,ke=this.first+this.size;oe.from!=null&&oe.from>de&&(de=oe.from),oe.to!=null&&oe.to<ke&&(ke=oe.to);var Le=new Ms(qn(this,de,ke),oe.mode||this.modeOption,de,this.lineSep,this.direction);return oe.sharedHist&&(Le.history=this.history),(this.linked||(this.linked=[])).push({doc:Le,sharedHist:oe.sharedHist}),Le.linked=[{doc:this,isParent:!0,sharedHist:oe.sharedHist}],Yc(Le,gh(this)),Le},unlinkDoc:function(oe){if(oe instanceof ra&&(oe=oe.doc),this.linked)for(var de=0;de<this.linked.length;++de){var ke=this.linked[de];if(ke.doc==oe){this.linked.splice(de,1),oe.unlinkDoc(this),Md(gh(this));break}}if(oe.history==this.history){var Le=[oe.id];is(oe,function(Re){return Le.push(Re.id)},!0),oe.history=new Ni(null),oe.history.done=ps(this.history.done,Le),oe.history.undone=ps(this.history.undone,Le)}},iterLinkedDocs:function(oe){is(this,oe)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(oe){return this.lineSep?oe.split(this.lineSep):Lr(oe)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:In(function(oe){oe!="rtl"&&(oe="ltr"),oe!=this.direction&&(this.direction=oe,this.iter(function(de){return de.order=null}),this.cm&&no(this.cm))})}),Ms.prototype.eachLine=Ms.prototype.iter;var Kh=0;function Ld(oe){var de=this;if(Zf(de),!(Dt(de,oe)||nl(de.display,oe))){Ln(oe),Ie&&(Kh=+new Date);var ke=rl(de,oe,!0),Le=oe.dataTransfer.files;if(!(!ke||de.isReadOnly()))if(Le&&Le.length&&window.FileReader&&window.File)for(var Re=Le.length,st=Array(Re),xt=0,jt=function(){++xt==Re&&Bn(de,function(){ke=Mn(de.doc,ke);var Fn={from:ke,to:ke,text:de.doc.splitLines(st.filter(function(hr){return hr!=null}).join(de.doc.lineSeparator())),origin:"paste"};Ga(de.doc,Fn),ko(de.doc,wo(Mn(de.doc,ke),Mn(de.doc,Qo(Fn))))})()},Nt=function(Fn,hr){if(de.options.allowDropFileTypes&&St(de.options.allowDropFileTypes,Fn.type)==-1){jt();return}var wr=new FileReader;wr.onerror=function(){return jt()},wr.onload=function(){var Dr=wr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Dr)){jt();return}st[hr]=Dr,jt()},wr.readAsText(Fn)},Wt=0;Wt<Le.length;Wt++)Nt(Le[Wt],Wt);else{if(de.state.draggingText&&de.doc.sel.contains(ke)>-1){de.state.draggingText(oe),setTimeout(function(){return de.display.input.focus()},20);return}try{var yn=oe.dataTransfer.getData("Text");if(yn){var Yt;if(de.state.draggingText&&!de.state.draggingText.copy&&(Yt=de.listSelections()),ms(de.doc,wo(ke,ke)),Yt)for(var $n=0;$n<Yt.length;++$n)Ku(de.doc,"",Yt[$n].anchor,Yt[$n].head,"drag");de.replaceSelection(yn,"around","paste"),de.display.input.focus()}}catch(Fn){}}}}function Vh(oe,de){if(Ie&&(!oe.state.draggingText||+new Date-Kh<100)){dr(de);return}if(!(Dt(oe,de)||nl(oe.display,de))&&(de.dataTransfer.setData("Text",oe.getSelection()),de.dataTransfer.effectAllowed="copyMove",de.dataTransfer.setDragImage&&!Me)){var ke=Ne("img",null,null,"position: fixed; left: 0; top: 0;");ke.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ye&&(ke.width=ke.height=1,oe.display.wrapper.appendChild(ke),ke._top=ke.offsetTop),de.dataTransfer.setDragImage(ke,0,0),ye&&ke.parentNode.removeChild(ke)}}function df(oe,de){var ke=rl(oe,de);if(ke){var Le=document.createDocumentFragment();$o(oe,ke,Le),oe.display.dragCursor||(oe.display.dragCursor=Ne("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),oe.display.lineSpace.insertBefore(oe.display.dragCursor,oe.display.cursorDiv)),je(oe.display.dragCursor,Le)}}function Zf(oe){oe.display.dragCursor&&(oe.display.lineSpace.removeChild(oe.display.dragCursor),oe.display.dragCursor=null)}function ff(oe){if(document.getElementsByClassName){for(var de=document.getElementsByClassName("CodeMirror"),ke=[],Le=0;Le<de.length;Le++){var Re=de[Le].CodeMirror;Re&&ke.push(Re)}ke.length&&ke[0].operation(function(){for(var st=0;st<ke.length;st++)oe(ke[st])})}}var kd=!1;function Hl(){kd||(mh(),kd=!0)}function mh(){var oe;Kt(window,"resize",function(){oe==null&&(oe=setTimeout(function(){oe=null,ff(pf)},100))}),Kt(window,"blur",function(){return ff(Vc)})}function pf(oe){var de=oe.display;de.cachedCharWidth=de.cachedTextHeight=de.cachedPaddingH=null,de.scrollbarsClipped=!1,oe.setSize()}for(var Lu={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"},Cc=0;Cc<10;Cc++)Lu[Cc+48]=Lu[Cc+96]=String(Cc);for(var vh=65;vh<=90;vh++)Lu[vh]=String.fromCharCode(vh);for(var Jc=1;Jc<=12;Jc++)Lu[Jc+111]=Lu[Jc+63235]="F"+Jc;var ml={};ml.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"},ml.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"},ml.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"},ml.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"]},ml.default=ae?ml.macDefault:ml.pcDefault;function Od(oe){var de=oe.split(/-(?!$)/);oe=de[de.length-1];for(var ke,Le,Re,st,xt=0;xt<de.length-1;xt++){var jt=de[xt];if(/^(cmd|meta|m)$/i.test(jt))st=!0;else if(/^a(lt)?$/i.test(jt))ke=!0;else if(/^(c|ctrl|control)$/i.test(jt))Le=!0;else if(/^s(hift)?$/i.test(jt))Re=!0;else throw new Error("Unrecognized modifier name: "+jt)}return ke&&(oe="Alt-"+oe),Le&&(oe="Ctrl-"+oe),st&&(oe="Cmd-"+oe),Re&&(oe="Shift-"+oe),oe}function Nd(oe){var de={};for(var ke in oe)if(oe.hasOwnProperty(ke)){var Le=oe[ke];if(/^(name|fallthrough|(de|at)tach)$/.test(ke))continue;if(Le=="..."){delete oe[ke];continue}for(var Re=pt(ke.split(" "),Od),st=0;st<Re.length;st++){var xt=void 0,jt=void 0;st==Re.length-1?(jt=Re.join(" "),xt=Le):(jt=Re.slice(0,st+1).join(" "),xt="...");var Nt=de[jt];if(!Nt)de[jt]=xt;else if(Nt!=xt)throw new Error("Inconsistent bindings for "+jt)}delete oe[ke]}for(var Wt in de)oe[Wt]=de[Wt];return oe}function Ul(oe,de,ke,Le){de=Ec(de);var Re=de.call?de.call(oe,Le):de[oe];if(Re===!1)return"nothing";if(Re==="...")return"multi";if(Re!=null&&ke(Re))return"handled";if(de.fallthrough){if(Object.prototype.toString.call(de.fallthrough)!="[object Array]")return Ul(oe,de.fallthrough,ke,Le);for(var st=0;st<de.fallthrough.length;st++){var xt=Ul(oe,de.fallthrough[st],ke,Le);if(xt)return xt}}}function yh(oe){var de=typeof oe=="string"?oe:Lu[oe.keyCode];return de=="Ctrl"||de=="Alt"||de=="Shift"||de=="Mod"}function Ad(oe,de,ke){var Le=oe;return de.altKey&&Le!="Alt"&&(oe="Alt-"+oe),(pe?de.metaKey:de.ctrlKey)&&Le!="Ctrl"&&(oe="Ctrl-"+oe),(pe?de.ctrlKey:de.metaKey)&&Le!="Mod"&&(oe="Cmd-"+oe),!ke&&de.shiftKey&&Le!="Shift"&&(oe="Shift-"+oe),oe}function jd(oe,de){if(ye&&oe.keyCode==34&&oe.char)return!1;var ke=Lu[oe.keyCode];return ke==null||oe.altGraphKey?!1:(oe.keyCode==3&&oe.code&&(ke=oe.code),Ad(ke,oe,de))}function Ec(oe){return typeof oe=="string"?ml[oe]:oe}function ol(oe,de){for(var ke=oe.doc.sel.ranges,Le=[],Re=0;Re<ke.length;Re++){for(var st=de(ke[Re]);Le.length&&Cn(st.from,wt(Le).to)<=0;){var xt=Le.pop();if(Cn(xt.from,st.from)<0){st.from=xt.from;break}}Le.push(st)}fn(oe,function(){for(var jt=Le.length-1;jt>=0;jt--)Ku(oe.doc,"",Le[jt].from,Le[jt].to,"+delete");Sc(oe)})}function Id(oe,de,ke){var Le=Ve(oe.text,de+ke,ke);return Le<0||Le>oe.text.length?null:Le}function cs(oe,de,ke){var Le=Id(oe,de.ch,ke);return Le==null?null:new nn(de.line,Le,ke<0?"after":"before")}function ta(oe,de,ke,Le,Re){if(oe){de.doc.direction=="rtl"&&(Re=-Re);var st=Jt(ke,de.doc.direction);if(st){var xt=Re<0?wt(st):st[0],jt=Re<0==(xt.level==1),Nt=jt?"after":"before",Wt;if(xt.level>0||de.doc.direction=="rtl"){var yn=_u(de,ke);Wt=Re<0?ke.text.length-1:0;var Yt=Bl(de,yn,Wt).top;Wt=Je(function($n){return Bl(de,yn,$n).top==Yt},Re<0==(xt.level==1)?xt.from:xt.to-1,Wt),Nt=="before"&&(Wt=Id(ke,Wt,1))}else Wt=Re<0?xt.to:xt.from;return new nn(Le,Wt,Nt)}}return new nn(Le,Re<0?ke.text.length:0,Re<0?"before":"after")}function Ma(oe,de,ke,Le){var Re=Jt(de,oe.doc.direction);if(!Re)return cs(de,ke,Le);ke.ch>=de.text.length?(ke.ch=de.text.length,ke.sticky="before"):ke.ch<=0&&(ke.ch=0,ke.sticky="after");var st=ft(Re,ke.ch,ke.sticky),xt=Re[st];if(oe.doc.direction=="ltr"&&xt.level%2==0&&(Le>0?xt.to>ke.ch:xt.from<ke.ch))return cs(de,ke,Le);var jt=function(ri,Li){return Id(de,ri instanceof nn?ri.ch:ri,Li)},Nt,Wt=function(ri){return oe.options.lineWrapping?(Nt=Nt||_u(oe,de),fh(oe,de,Nt,ri)):{begin:0,end:de.text.length}},yn=Wt(ke.sticky=="before"?jt(ke,-1):ke.ch);if(oe.doc.direction=="rtl"||xt.level==1){var Yt=xt.level==1==Le<0,$n=jt(ke,Yt?1:-1);if($n!=null&&(Yt?$n<=xt.to&&$n<=yn.end:$n>=xt.from&&$n>=yn.begin)){var Fn=Yt?"before":"after";return new nn(ke.line,$n,Fn)}}var hr=function(ri,Li,wi){for(var Bi=function(Ya,Ds){return Ds?new nn(ke.line,jt(Ya,1),"before"):new nn(ke.line,Ya,"after")};ri>=0&&ri<Re.length;ri+=Li){var mo=Re[ri],vi=Li>0==(mo.level!=1),Oo=vi?wi.begin:jt(wi.end,-1);if(mo.from<=Oo&&Oo<mo.to||(Oo=vi?mo.from:jt(mo.to,-1),wi.begin<=Oo&&Oo<wi.end))return Bi(Oo,vi)}},wr=hr(st+Le,Le,yn);if(wr)return wr;var Dr=Le>0?yn.end:jt(yn.begin,-1);return Dr!=null&&!(Le>0&&Dr==de.text.length)&&(wr=hr(Le>0?0:Re.length-1,Le,Wt(Dr)),wr)?wr:null}var js={selectAll:na,singleSelection:function(oe){return oe.setSelection(oe.getCursor("anchor"),oe.getCursor("head"),gt)},killLine:function(oe){return ol(oe,function(de){if(de.empty()){var ke=Pn(oe.doc,de.head.line).text.length;return de.head.ch==ke&&de.head.line<oe.lastLine()?{from:de.head,to:nn(de.head.line+1,0)}:{from:de.head,to:nn(de.head.line,ke)}}else return{from:de.from(),to:de.to()}})},deleteLine:function(oe){return ol(oe,function(de){return{from:nn(de.from().line,0),to:Mn(oe.doc,nn(de.to().line+1,0))}})},delLineLeft:function(oe){return ol(oe,function(de){return{from:nn(de.from().line,0),to:de.from()}})},delWrappedLineLeft:function(oe){return ol(oe,function(de){var ke=oe.charCoords(de.head,"div").top+5,Le=oe.coordsChar({left:0,top:ke},"div");return{from:Le,to:de.from()}})},delWrappedLineRight:function(oe){return ol(oe,function(de){var ke=oe.charCoords(de.head,"div").top+5,Le=oe.coordsChar({left:oe.display.lineDiv.offsetWidth+100,top:ke},"div");return{from:de.from(),to:Le}})},undo:function(oe){return oe.undo()},redo:function(oe){return oe.redo()},undoSelection:function(oe){return oe.undoSelection()},redoSelection:function(oe){return oe.redoSelection()},goDocStart:function(oe){return oe.extendSelection(nn(oe.firstLine(),0))},goDocEnd:function(oe){return oe.extendSelection(nn(oe.lastLine()))},goLineStart:function(oe){return oe.extendSelectionsBy(function(de){return ru(oe,de.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(oe){return oe.extendSelectionsBy(function(de){return Dd(oe,de.head)},{origin:"+move",bias:1})},goLineEnd:function(oe){return oe.extendSelectionsBy(function(de){return iu(oe,de.head.line)},{origin:"+move",bias:-1})},goLineRight:function(oe){return oe.extendSelectionsBy(function(de){var ke=oe.cursorCoords(de.head,"div").top+5;return oe.coordsChar({left:oe.display.lineDiv.offsetWidth+100,top:ke},"div")},mt)},goLineLeft:function(oe){return oe.extendSelectionsBy(function(de){var ke=oe.cursorCoords(de.head,"div").top+5;return oe.coordsChar({left:0,top:ke},"div")},mt)},goLineLeftSmart:function(oe){return oe.extendSelectionsBy(function(de){var ke=oe.cursorCoords(de.head,"div").top+5,Le=oe.coordsChar({left:0,top:ke},"div");return Le.ch<oe.getLine(Le.line).search(/\S/)?Dd(oe,de.head):Le},mt)},goLineUp:function(oe){return oe.moveV(-1,"line")},goLineDown:function(oe){return oe.moveV(1,"line")},goPageUp:function(oe){return oe.moveV(-1,"page")},goPageDown:function(oe){return oe.moveV(1,"page")},goCharLeft:function(oe){return oe.moveH(-1,"char")},goCharRight:function(oe){return oe.moveH(1,"char")},goColumnLeft:function(oe){return oe.moveH(-1,"column")},goColumnRight:function(oe){return oe.moveH(1,"column")},goWordLeft:function(oe){return oe.moveH(-1,"word")},goGroupRight:function(oe){return oe.moveH(1,"group")},goGroupLeft:function(oe){return oe.moveH(-1,"group")},goWordRight:function(oe){return oe.moveH(1,"word")},delCharBefore:function(oe){return oe.deleteH(-1,"codepoint")},delCharAfter:function(oe){return oe.deleteH(1,"char")},delWordBefore:function(oe){return oe.deleteH(-1,"word")},delWordAfter:function(oe){return oe.deleteH(1,"word")},delGroupBefore:function(oe){return oe.deleteH(-1,"group")},delGroupAfter:function(oe){return oe.deleteH(1,"group")},indentAuto:function(oe){return oe.indentSelection("smart")},indentMore:function(oe){return oe.indentSelection("add")},indentLess:function(oe){return oe.indentSelection("subtract")},insertTab:function(oe){return oe.replaceSelection(" ")},insertSoftTab:function(oe){for(var de=[],ke=oe.listSelections(),Le=oe.options.tabSize,Re=0;Re<ke.length;Re++){var st=ke[Re].from(),xt=et(oe.getLine(st.line),st.ch,Le);de.push(Ut(Le-xt%Le))}oe.replaceSelections(de)},defaultTab:function(oe){oe.somethingSelected()?oe.indentSelection("add"):oe.execCommand("insertTab")},transposeChars:function(oe){return fn(oe,function(){for(var de=oe.listSelections(),ke=[],Le=0;Le<de.length;Le++)if(de[Le].empty()){var Re=de[Le].head,st=Pn(oe.doc,Re.line).text;if(st){if(Re.ch==st.length&&(Re=new nn(Re.line,Re.ch-1)),Re.ch>0)Re=new nn(Re.line,Re.ch+1),oe.replaceRange(st.charAt(Re.ch-1)+st.charAt(Re.ch-2),nn(Re.line,Re.ch-2),Re,"+transpose");else if(Re.line>oe.doc.first){var xt=Pn(oe.doc,Re.line-1).text;xt&&(Re=new nn(Re.line,1),oe.replaceRange(st.charAt(0)+oe.doc.lineSeparator()+xt.charAt(xt.length-1),nn(Re.line-1,xt.length-1),Re,"+transpose"))}}ke.push(new ni(Re,Re))}oe.setSelections(ke)})},newlineAndIndent:function(oe){return fn(oe,function(){for(var de=oe.listSelections(),ke=de.length-1;ke>=0;ke--)oe.replaceRange(oe.doc.lineSeparator(),de[ke].anchor,de[ke].head,"+input");de=oe.listSelections();for(var Le=0;Le<de.length;Le++)oe.indentLine(de[Le].from().line,null,!0);Sc(oe)})},openLine:function(oe){return oe.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(oe){return oe.toggleOverwrite()}};function ru(oe,de){var ke=Pn(oe.doc,de),Le=mi(ke);return Le!=ke&&(de=$t(Le)),ta(!0,oe,Le,de,1)}function iu(oe,de){var ke=Pn(oe.doc,de),Le=Vi(ke);return Le!=ke&&(de=$t(Le)),ta(!0,oe,ke,de,-1)}function Dd(oe,de){var ke=ru(oe,de.line),Le=Pn(oe.doc,ke.line),Re=Jt(Le,oe.doc.direction);if(!Re||Re[0].level==0){var st=Math.max(ke.ch,Le.text.search(/\S/)),xt=de.line==ke.line&&de.ch<=st&&de.ch;return nn(ke.line,xt?0:st,ke.sticky)}return ke}function Tc(oe,de,ke){if(typeof de=="string"&&(de=js[de],!de))return!1;oe.display.input.ensurePolled();var Le=oe.display.shift,Re=!1;try{oe.isReadOnly()&&(oe.state.suppressEdits=!0),ke&&(oe.display.shift=!1),Re=de(oe)!=Pt}finally{oe.display.shift=Le,oe.state.suppressEdits=!1}return Re}function Zh(oe,de,ke){for(var Le=0;Le<oe.state.keyMaps.length;Le++){var Re=Ul(de,oe.state.keyMaps[Le],ke,oe);if(Re)return Re}return oe.options.extraKeys&&Ul(de,oe.options.extraKeys,ke,oe)||Ul(de,oe.options.keyMap,ke,oe)}var mu=new it;function ac(oe,de,ke,Le){var Re=oe.state.keySeq;if(Re){if(yh(de))return"handled";if(/\'$/.test(de)?oe.state.keySeq=null:mu.set(50,function(){oe.state.keySeq==Re&&(oe.state.keySeq=null,oe.display.input.reset())}),Xf(oe,Re+" "+de,ke,Le))return!0}return Xf(oe,de,ke,Le)}function Xf(oe,de,ke,Le){var Re=Zh(oe,de,Le);return Re=="multi"&&(oe.state.keySeq=de),Re=="handled"&&Tr(oe,"keyHandled",oe,de,ke),(Re=="handled"||Re=="multi")&&(Ln(ke),la(oe)),!!Re}function Yf(oe,de){var ke=jd(de,!0);return ke?de.shiftKey&&!oe.state.keySeq?ac(oe,"Shift-"+ke,de,function(Le){return Tc(oe,Le,!0)})||ac(oe,ke,de,function(Le){if(typeof Le=="string"?/^go[A-Z]/.test(Le):Le.motion)return Tc(oe,Le)}):ac(oe,ke,de,function(Le){return Tc(oe,Le)}):!1}function Jf(oe,de,ke){return ac(oe,"'"+ke+"'",de,function(Le){return Tc(oe,Le,!0)})}var Xh=null;function Vp(oe){var de=this;if(!(oe.target&&oe.target!=de.display.input.getField())&&(de.curOp.focus=$e(),!Dt(de,oe))){Ie&&ge<11&&oe.keyCode==27&&(oe.returnValue=!1);var ke=oe.keyCode;de.display.shift=ke==16||oe.shiftKey;var Le=Yf(de,oe);ye&&(Xh=Le?ke:null,!Le&&ke==88&&!oi&&(ae?oe.metaKey:oe.ctrlKey)&&de.replaceSelection("",null,"cut")),rt&&!ae&&!Le&&ke==46&&oe.shiftKey&&!oe.ctrlKey&&document.execCommand&&document.execCommand("cut"),ke==18&&!/\bCodeMirror-crosshair\b/.test(de.display.lineDiv.className)&&Zp(de)}}function Zp(oe){var de=oe.display.lineDiv;Ye(de,"CodeMirror-crosshair");function ke(Le){(Le.keyCode==18||!Le.altKey)&&(Fe(de,"CodeMirror-crosshair"),tn(document,"keyup",ke),tn(document,"mouseover",ke))}Kt(document,"keyup",ke),Kt(document,"mouseover",ke)}function Xp(oe){oe.keyCode==16&&(this.doc.sel.shift=!1),Dt(this,oe)}function sc(oe){var de=this;if(!(oe.target&&oe.target!=de.display.input.getField())&&!(nl(de.display,oe)||Dt(de,oe)||oe.ctrlKey&&!oe.altKey||ae&&oe.metaKey)){var ke=oe.keyCode,Le=oe.charCode;if(ye&&ke==Xh){Xh=null,Ln(oe);return}if(!(ye&&(!oe.which||oe.which<10)&&Yf(de,oe))){var Re=String.fromCharCode(Le==null?ke:Le);Re!="\b"&&(Jf(de,oe,Re)||de.display.input.onKeyPress(oe))}}}var om=400,Yp=function(oe,de,ke){this.time=oe,this.pos=de,this.button=ke};Yp.prototype.compare=function(oe,de,ke){return this.time+om>oe&&Cn(de,this.pos)==0&&ke==this.button};var Fd,Yh;function Jp(oe,de){var ke=+new Date;return Yh&&Yh.compare(ke,oe,de)?(Fd=Yh=null,"triple"):Fd&&Fd.compare(ke,oe,de)?(Yh=new Yp(ke,oe,de),Fd=null,"double"):(Fd=new Yp(ke,oe,de),Yh=null,"single")}function lc(oe){var de=this,ke=de.display;if(!(Dt(de,oe)||ke.activeTouch&&ke.input.supportsTouch())){if(ke.input.ensurePolled(),ke.shift=oe.shiftKey,nl(ke,oe)){ce||(ke.scroller.draggable=!1,setTimeout(function(){return ke.scroller.draggable=!0},100));return}if(!ep(de,oe)){var Le=rl(de,oe),Re=pr(oe),st=Le?Jp(Le,Re):"single";window.focus(),Re==1&&de.state.selectingText&&de.state.selectingText(oe),!(Le&&Qp(de,Re,Le,st,oe))&&(Re==1?Le?am(de,Le,st,oe):fr(oe)==ke.scroller&&Ln(oe):Re==2?(Le&&ea(de.doc,Le),setTimeout(function(){return ke.input.focus()},20)):Re==3&&(Te?de.display.input.onContextMenu(oe):Va(de)))}}}function Qp(oe,de,ke,Le,Re){var st="Click";return Le=="double"?st="Double"+st:Le=="triple"&&(st="Triple"+st),st=(de==1?"Left":de==2?"Middle":"Right")+st,ac(oe,Ad(st,Re),Re,function(xt){if(typeof xt=="string"&&(xt=js[xt]),!xt)return!1;var jt=!1;try{oe.isReadOnly()&&(oe.state.suppressEdits=!0),jt=xt(oe,ke)!=Pt}finally{oe.state.suppressEdits=!1}return jt})}function Qf(oe,de,ke){var Le=oe.getOption("configureMouse"),Re=Le?Le(oe,de,ke):{};if(Re.unit==null){var st=re?ke.shiftKey&&ke.metaKey:ke.altKey;Re.unit=st?"rectangle":de=="single"?"char":de=="double"?"word":"line"}return(Re.extend==null||oe.doc.extend)&&(Re.extend=oe.doc.extend||ke.shiftKey),Re.addNew==null&&(Re.addNew=ae?ke.metaKey:ke.ctrlKey),Re.moveOnDrag==null&&(Re.moveOnDrag=!(ae?ke.altKey:ke.ctrlKey)),Re}function am(oe,de,ke,Le){Ie?setTimeout(ht(Oa,oe),0):oe.curOp.focus=$e();var Re=Qf(oe,ke,Le),st=oe.doc.sel,xt;oe.options.dragDrop&&Cr&&!oe.isReadOnly()&&ke=="single"&&(xt=st.contains(de))>-1&&(Cn((xt=st.ranges[xt]).from(),de)<0||de.xRel>0)&&(Cn(xt.to(),de)>0||de.xRel<0)?qp(oe,Le,de,Re):nv(oe,Le,de,Re)}function qp(oe,de,ke,Le){var Re=oe.display,st=!1,xt=Bn(oe,function(Wt){ce&&(Re.scroller.draggable=!1),oe.state.draggingText=!1,tn(Re.wrapper.ownerDocument,"mouseup",xt),tn(Re.wrapper.ownerDocument,"mousemove",jt),tn(Re.scroller,"dragstart",Nt),tn(Re.scroller,"drop",xt),st||(Ln(Wt),Le.addNew||ea(oe.doc,ke,null,null,Le.extend),ce&&!Me||Ie&&ge==9?setTimeout(function(){Re.wrapper.ownerDocument.body.focus({preventScroll:!0}),Re.input.focus()},20):Re.input.focus())}),jt=function(Wt){st=st||Math.abs(de.clientX-Wt.clientX)+Math.abs(de.clientY-Wt.clientY)>=10},Nt=function(){return st=!0};ce&&(Re.scroller.draggable=!0),oe.state.draggingText=xt,xt.copy=!Le.moveOnDrag,Re.scroller.dragDrop&&Re.scroller.dragDrop(),Kt(Re.wrapper.ownerDocument,"mouseup",xt),Kt(Re.wrapper.ownerDocument,"mousemove",jt),Kt(Re.scroller,"dragstart",Nt),Kt(Re.scroller,"drop",xt),Va(oe),setTimeout(function(){return Re.input.focus()},20)}function eg(oe,de,ke){if(ke=="char")return new ni(de,de);if(ke=="word")return oe.findWordAt(de);if(ke=="line")return new ni(nn(de.line,0),Mn(oe.doc,nn(de.line+1,0)));var Le=ke(oe,de);return new ni(Le.from,Le.to)}function nv(oe,de,ke,Le){var Re=oe.display,st=oe.doc;Ln(de);var xt,jt,Nt=st.sel,Wt=Nt.ranges;if(Le.addNew&&!Le.extend?(jt=st.sel.contains(ke),jt>-1?xt=Wt[jt]:xt=new ni(ke,ke)):(xt=st.sel.primary(),jt=st.sel.primIndex),Le.unit=="rectangle")Le.addNew||(xt=new ni(ke,ke)),ke=rl(oe,de,!0,!0),jt=-1;else{var yn=eg(oe,ke,Le.unit);Le.extend?xt=Wu(xt,yn.anchor,yn.head,Le.extend):xt=yn}Le.addNew?jt==-1?(jt=Wt.length,fa(st,po(oe,Wt.concat([xt]),jt),{scroll:!1,origin:"*mouse"})):Wt.length>1&&Wt[jt].empty()&&Le.unit=="char"&&!Le.extend?(fa(st,po(oe,Wt.slice(0,jt).concat(Wt.slice(jt+1)),0),{scroll:!1,origin:"*mouse"}),Nt=st.sel):ua(st,jt,xt,dt):(jt=0,fa(st,new eo([xt],0),dt),Nt=st.sel);var Yt=ke;function $n(wi){if(Cn(Yt,wi)!=0)if(Yt=wi,Le.unit=="rectangle"){for(var Bi=[],mo=oe.options.tabSize,vi=et(Pn(st,ke.line).text,ke.ch,mo),Oo=et(Pn(st,wi.line).text,wi.ch,mo),Ya=Math.min(vi,Oo),Ds=Math.max(vi,Oo),os=Math.min(ke.line,wi.line),Kl=Math.min(oe.lastLine(),Math.max(ke.line,wi.line));os<=Kl;os++){var vl=Pn(st,os).text,ks=kt(vl,Ya,mo);Ya==Ds?Bi.push(new ni(nn(os,ks),nn(os,ks))):vl.length>ks&&Bi.push(new ni(nn(os,ks),nn(os,kt(vl,Ds,mo))))}Bi.length||Bi.push(new ni(ke,ke)),fa(st,po(oe,Nt.ranges.slice(0,jt).concat(Bi),jt),{origin:"*mouse",scroll:!1}),oe.scrollIntoView(wi)}else{var ou=xt,al=eg(oe,wi,Le.unit),Os=ou.anchor,oa;Cn(al.anchor,Os)>0?(oa=al.head,Os=pn(ou.from(),al.anchor)):(oa=al.anchor,Os=En(ou.to(),al.head));var hs=Nt.ranges.slice(0);hs[jt]=sm(oe,new ni(Mn(st,Os),oa)),fa(st,po(oe,hs,jt),dt)}}var Fn=Re.wrapper.getBoundingClientRect(),hr=0;function wr(wi){var Bi=++hr,mo=rl(oe,wi,!0,Le.unit=="rectangle");if(mo)if(Cn(mo,Yt)!=0){oe.curOp.focus=$e(),$n(mo);var vi=Fo(Re,st);(mo.line>=vi.to||mo.line<vi.from)&&setTimeout(Bn(oe,function(){hr==Bi&&wr(wi)}),150)}else{var Oo=wi.clientY<Fn.top?-20:wi.clientY>Fn.bottom?20:0;Oo&&setTimeout(Bn(oe,function(){hr==Bi&&(Re.scroller.scrollTop+=Oo,wr(wi))}),50)}}function Dr(wi){oe.state.selectingText=!1,hr=1/0,wi&&(Ln(wi),Re.input.focus()),tn(Re.wrapper.ownerDocument,"mousemove",ri),tn(Re.wrapper.ownerDocument,"mouseup",Li),st.history.lastSelOrigin=null}var ri=Bn(oe,function(wi){wi.buttons===0||!pr(wi)?Dr(wi):wr(wi)}),Li=Bn(oe,Dr);oe.state.selectingText=Li,Kt(Re.wrapper.ownerDocument,"mousemove",ri),Kt(Re.wrapper.ownerDocument,"mouseup",Li)}function sm(oe,de){var ke=de.anchor,Le=de.head,Re=Pn(oe.doc,ke.line);if(Cn(ke,Le)==0&&ke.sticky==Le.sticky)return de;var st=Jt(Re);if(!st)return de;var xt=ft(st,ke.ch,ke.sticky),jt=st[xt];if(jt.from!=ke.ch&&jt.to!=ke.ch)return de;var Nt=xt+(jt.from==ke.ch==(jt.level!=1)?0:1);if(Nt==0||Nt==st.length)return de;var Wt;if(Le.line!=ke.line)Wt=(Le.line-ke.line)*(oe.doc.direction=="ltr"?1:-1)>0;else{var yn=ft(st,Le.ch,Le.sticky),Yt=yn-xt||(Le.ch-ke.ch)*(jt.level==1?-1:1);yn==Nt-1||yn==Nt?Wt=Yt<0:Wt=Yt>0}var $n=st[Nt+(Wt?-1:0)],Fn=Wt==($n.level==1),hr=Fn?$n.from:$n.to,wr=Fn?"after":"before";return ke.ch==hr&&ke.sticky==wr?de:new ni(new nn(ke.line,hr,wr),Le)}function qf(oe,de,ke,Le){var Re,st;if(de.touches)Re=de.touches[0].clientX,st=de.touches[0].clientY;else try{Re=de.clientX,st=de.clientY}catch($n){return!1}if(Re>=Math.floor(oe.display.gutters.getBoundingClientRect().right))return!1;Le&&Ln(de);var xt=oe.display,jt=xt.lineDiv.getBoundingClientRect();if(st>jt.bottom||!sn(oe,ke))return Xn(de);st-=jt.top-xt.viewOffset;for(var Nt=0;Nt<oe.display.gutterSpecs.length;++Nt){var Wt=xt.gutters.childNodes[Nt];if(Wt&&Wt.getBoundingClientRect().right>=Re){var yn=jn(oe.doc,st),Yt=oe.display.gutterSpecs[Nt];return It(oe,ke,oe,yn,Yt.className,de),Xn(de)}}}function ep(oe,de){return qf(oe,de,"gutterClick",!0)}function tp(oe,de){nl(oe.display,de)||lm(oe,de)||Dt(oe,de,"contextmenu")||Te||oe.display.input.onContextMenu(de)}function lm(oe,de){return sn(oe,"gutterContextMenu")?qf(oe,de,"gutterContextMenu",!1):!1}function np(oe){oe.display.wrapper.className=oe.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+oe.options.theme.replace(/(^|\s)\s*/g," cm-s-"),_a(oe)}var Sh={toString:function(){return"CodeMirror.Init"}},tg={},gf={};function um(oe){var de=oe.optionHandlers;function ke(Le,Re,st,xt){oe.defaults[Le]=Re,st&&(de[Le]=xt?function(jt,Nt,Wt){Wt!=Sh&&st(jt,Nt,Wt)}:st)}oe.defineOption=ke,oe.Init=Sh,ke("value","",function(Le,Re){return Le.setValue(Re)},!0),ke("mode",null,function(Le,Re){Le.doc.modeOption=Re,Gi(Le)},!0),ke("indentUnit",2,Gi,!0),ke("indentWithTabs",!1),ke("smartIndent",!0),ke("tabSize",4,function(Le){Wo(Le),_a(Le),ya(Le)},!0),ke("lineSeparator",null,function(Le,Re){if(Le.doc.lineSep=Re,!!Re){var st=[],xt=Le.doc.first;Le.doc.iter(function(Nt){for(var Wt=0;;){var yn=Nt.text.indexOf(Re,Wt);if(yn==-1)break;Wt=yn+Re.length,st.push(nn(xt,yn))}xt++});for(var jt=st.length-1;jt>=0;jt--)Ku(Le.doc,Re,st[jt],nn(st[jt].line,st[jt].ch+Re.length))}}),ke("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(Le,Re,st){Le.state.specialChars=new RegExp(Re.source+(Re.test(" ")?"":"| "),"g"),st!=Sh&&Le.refresh()}),ke("specialCharPlaceholder",ma,function(Le){return Le.refresh()},!0),ke("electricChars",!0),ke("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ke("spellcheck",!1,function(Le,Re){return Le.getInputField().spellcheck=Re},!0),ke("autocorrect",!1,function(Le,Re){return Le.getInputField().autocorrect=Re},!0),ke("autocapitalize",!1,function(Le,Re){return Le.getInputField().autocapitalize=Re},!0),ke("rtlMoveVisually",!le),ke("wholeLineUpdateBefore",!0),ke("theme","default",function(Le){np(Le),ci(Le)},!0),ke("keyMap","default",function(Le,Re,st){var xt=Ec(Re),jt=st!=Sh&&Ec(st);jt&&jt.detach&&jt.detach(Le,xt),xt.attach&&xt.attach(Le,jt||null)}),ke("extraKeys",null),ke("configureMouse",null),ke("lineWrapping",!1,cm,!0),ke("gutters",[],function(Le,Re){Le.display.gutterSpecs=ki(Re,Le.options.lineNumbers),ci(Le)},!0),ke("fixedGutter",!0,function(Le,Re){Le.display.gutters.style.left=Re?ph(Le.display)+"px":"0",Le.refresh()},!0),ke("coverGutterNextToScrollbar",!1,function(Le){return wc(Le)},!0),ke("scrollbarStyle","native",function(Le){uf(Le),wc(Le),Le.display.scrollbars.setScrollTop(Le.doc.scrollTop),Le.display.scrollbars.setScrollLeft(Le.doc.scrollLeft)},!0),ke("lineNumbers",!1,function(Le,Re){Le.display.gutterSpecs=ki(Le.options.gutters,Re),ci(Le)},!0),ke("firstLineNumber",1,ci,!0),ke("lineNumberFormatter",function(Le){return Le},ci,!0),ke("showCursorWhenSelecting",!1,ws,!0),ke("resetSelectionOnContextMenu",!0),ke("lineWiseCopyCut",!0),ke("pasteLinesPerSelection",!0),ke("selectionsMayTouch",!1),ke("readOnly",!1,function(Le,Re){Re=="nocursor"&&(Vc(Le),Le.display.input.blur()),Le.display.input.readOnlyChanged(Re)}),ke("screenReaderLabel",null,function(Le,Re){Re=Re===""?null:Re,Le.display.input.screenReaderLabelChanged(Re)}),ke("disableInput",!1,function(Le,Re){Re||Le.display.input.reset()},!0),ke("dragDrop",!0,rp),ke("allowDropFileTypes",null),ke("cursorBlinkRate",530),ke("cursorScrollMargin",0),ke("cursorHeight",1,ws,!0),ke("singleCursorHeightPerLine",!0,ws,!0),ke("workTime",100),ke("workDelay",100),ke("flattenSpans",!0,Wo,!0),ke("addModeClass",!1,Wo,!0),ke("pollInterval",100),ke("undoDepth",200,function(Le,Re){return Le.doc.history.undoDepth=Re}),ke("historyEventDelay",1250),ke("viewportMargin",10,function(Le){return Le.refresh()},!0),ke("maxHighlightLength",1e4,Wo,!0),ke("moveInputWithCursor",!0,function(Le,Re){Re||Le.display.input.resetPosition()}),ke("tabindex",null,function(Le,Re){return Le.display.input.getField().tabIndex=Re||""}),ke("autofocus",null),ke("direction","ltr",function(Le,Re){return Le.doc.setDirection(Re)},!0),ke("phrases",null)}function rp(oe,de,ke){var Le=ke&&ke!=Sh;if(!de!=!Le){var Re=oe.display.dragFunctions,st=de?Kt:tn;st(oe.display.scroller,"dragstart",Re.start),st(oe.display.scroller,"dragenter",Re.enter),st(oe.display.scroller,"dragover",Re.over),st(oe.display.scroller,"dragleave",Re.leave),st(oe.display.scroller,"drop",Re.drop)}}function cm(oe){oe.options.lineWrapping?(Ye(oe.display.wrapper,"CodeMirror-wrap"),oe.display.sizer.style.minWidth="",oe.display.sizerWidth=null):(Fe(oe.display.wrapper,"CodeMirror-wrap"),Mo(oe)),Ui(oe),ya(oe),_a(oe),setTimeout(function(){return wc(oe)},100)}function ra(oe,de){var ke=this;if(!(this instanceof ra))return new ra(oe,de);this.options=de=de?Ct(de):{},Ct(tg,de,!1);var Le=de.value;typeof Le=="string"?Le=new Ms(Le,de.mode,null,de.lineSeparator,de.direction):de.mode&&(Le.modeOption=de.mode),this.doc=Le;var Re=new ra.inputStyles[de.inputStyle](this),st=this.display=new Ei(oe,Le,Re,de);st.wrapper.CodeMirror=this,np(this),de.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),uf(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 it,keySeq:null,specialChars:null},de.autofocus&&!ee&&st.input.focus(),Ie&&ge<11&&setTimeout(function(){return ke.display.input.reset(!0)},20),Bd(this),Hl(),fl(this),this.curOp.forceUpdate=!0,to(this,Le),de.autofocus&&!ee||this.hasFocus()?setTimeout(function(){ke.hasFocus()&&!ke.state.focused&&Ko(ke)},20):Vc(this);for(var xt in gf)gf.hasOwnProperty(xt)&&gf[xt](this,de[xt],Sh);ti(this),de.finishInit&&de.finishInit(this);for(var jt=0;jt<Jh.length;++jt)Jh[jt](this);bc(this),ce&&de.lineWrapping&&getComputedStyle(st.lineDiv).textRendering=="optimizelegibility"&&(st.lineDiv.style.textRendering="auto")}ra.defaults=tg,ra.optionHandlers=gf;function Bd(oe){var de=oe.display;Kt(de.scroller,"mousedown",Bn(oe,lc)),Ie&&ge<11?Kt(de.scroller,"dblclick",Bn(oe,function(Nt){if(!Dt(oe,Nt)){var Wt=rl(oe,Nt);if(!(!Wt||ep(oe,Nt)||nl(oe.display,Nt))){Ln(Nt);var yn=oe.findWordAt(Wt);ea(oe.doc,yn.anchor,yn.head)}}})):Kt(de.scroller,"dblclick",function(Nt){return Dt(oe,Nt)||Ln(Nt)}),Kt(de.scroller,"contextmenu",function(Nt){return tp(oe,Nt)}),Kt(de.input.getField(),"contextmenu",function(Nt){de.scroller.contains(Nt.target)||tp(oe,Nt)});var ke,Le={end:0};function Re(){de.activeTouch&&(ke=setTimeout(function(){return de.activeTouch=null},1e3),Le=de.activeTouch,Le.end=+new Date)}function st(Nt){if(Nt.touches.length!=1)return!1;var Wt=Nt.touches[0];return Wt.radiusX<=1&&Wt.radiusY<=1}function xt(Nt,Wt){if(Wt.left==null)return!0;var yn=Wt.left-Nt.left,Yt=Wt.top-Nt.top;return yn*yn+Yt*Yt>20*20}Kt(de.scroller,"touchstart",function(Nt){if(!Dt(oe,Nt)&&!st(Nt)&&!ep(oe,Nt)){de.input.ensurePolled(),clearTimeout(ke);var Wt=+new Date;de.activeTouch={start:Wt,moved:!1,prev:Wt-Le.end<=300?Le:null},Nt.touches.length==1&&(de.activeTouch.left=Nt.touches[0].pageX,de.activeTouch.top=Nt.touches[0].pageY)}}),Kt(de.scroller,"touchmove",function(){de.activeTouch&&(de.activeTouch.moved=!0)}),Kt(de.scroller,"touchend",function(Nt){var Wt=de.activeTouch;if(Wt&&!nl(de,Nt)&&Wt.left!=null&&!Wt.moved&&new Date-Wt.start<300){var yn=oe.coordsChar(de.activeTouch,"page"),Yt;!Wt.prev||xt(Wt,Wt.prev)?Yt=new ni(yn,yn):!Wt.prev.prev||xt(Wt,Wt.prev.prev)?Yt=oe.findWordAt(yn):Yt=new ni(nn(yn.line,0),Mn(oe.doc,nn(yn.line+1,0))),oe.setSelection(Yt.anchor,Yt.head),oe.focus(),Ln(Nt)}Re()}),Kt(de.scroller,"touchcancel",Re),Kt(de.scroller,"scroll",function(){de.scroller.clientHeight&&(Xc(oe,de.scroller.scrollTop),Uu(oe,de.scroller.scrollLeft,!0),It(oe,"scroll",oe))}),Kt(de.scroller,"mousewheel",function(Nt){return Yi(oe,Nt)}),Kt(de.scroller,"DOMMouseScroll",function(Nt){return Yi(oe,Nt)}),Kt(de.wrapper,"scroll",function(){return de.wrapper.scrollTop=de.wrapper.scrollLeft=0}),de.dragFunctions={enter:function(Nt){Dt(oe,Nt)||dr(Nt)},over:function(Nt){Dt(oe,Nt)||(df(oe,Nt),dr(Nt))},start:function(Nt){return Vh(oe,Nt)},drop:Bn(oe,Ld),leave:function(Nt){Dt(oe,Nt)||Zf(oe)}};var jt=de.input.getField();Kt(jt,"keyup",function(Nt){return Xp.call(oe,Nt)}),Kt(jt,"keydown",Bn(oe,Vp)),Kt(jt,"keypress",Bn(oe,sc)),Kt(jt,"focus",function(Nt){return Ko(oe,Nt)}),Kt(jt,"blur",function(Nt){return Vc(oe,Nt)})}var Jh=[];ra.defineInitHook=function(oe){return Jh.push(oe)};function Is(oe,de,ke,Le){var Re=oe.doc,st;ke==null&&(ke="add"),ke=="smart"&&(Re.mode.indent?st=Rr(oe,de).state:ke="prev");var xt=oe.options.tabSize,jt=Pn(Re,de),Nt=et(jt.text,null,xt);jt.stateAfter&&(jt.stateAfter=null);var Wt=jt.text.match(/^\s*/)[0],yn;if(!Le&&!/\S/.test(jt.text))yn=0,ke="not";else if(ke=="smart"&&(yn=Re.mode.indent(st,jt.text.slice(Wt.length),jt.text),yn==Pt||yn>150)){if(!Le)return;ke="prev"}ke=="prev"?de>Re.first?yn=et(Pn(Re,de-1).text,null,xt):yn=0:ke=="add"?yn=Nt+oe.options.indentUnit:ke=="subtract"?yn=Nt-oe.options.indentUnit:typeof ke=="number"&&(yn=Nt+ke),yn=Math.max(0,yn);var Yt="",$n=0;if(oe.options.indentWithTabs)for(var Fn=Math.floor(yn/xt);Fn;--Fn)$n+=xt,Yt+=" ";if($n<yn&&(Yt+=Ut(yn-$n)),Yt!=Wt)return Ku(Re,Yt,nn(de,0),nn(de,Wt.length),"+input"),jt.stateAfter=null,!0;for(var hr=0;hr<Re.sel.ranges.length;hr++){var wr=Re.sel.ranges[hr];if(wr.head.line==de&&wr.head.ch<Wt.length){var Dr=nn(de,Wt.length);ua(Re,hr,new ni(Dr,Dr));break}}}var Wl=null;function Qh(oe){Wl=oe}function mf(oe,de,ke,Le,Re){var st=oe.doc;oe.display.shift=!1,Le||(Le=st.sel);var xt=+new Date-200,jt=Re=="paste"||oe.state.pasteIncoming>xt,Nt=Lr(de),Wt=null;if(jt&&Le.ranges.length>1)if(Wl&&Wl.text.join(`
|
|
|
`)==de){if(Le.ranges.length%Wl.text.length==0){Wt=[];for(var yn=0;yn<Wl.text.length;yn++)Wt.push(st.splitLines(Wl.text[yn]))}}else Nt.length==Le.ranges.length&&oe.options.pasteLinesPerSelection&&(Wt=pt(Nt,function(ri){return[ri]}));for(var Yt=oe.curOp.updateInput,$n=Le.ranges.length-1;$n>=0;$n--){var Fn=Le.ranges[$n],hr=Fn.from(),wr=Fn.to();Fn.empty()&&(ke&&ke>0?hr=nn(hr.line,hr.ch-ke):oe.state.overwrite&&!jt?wr=nn(wr.line,Math.min(Pn(st,wr.line).text.length,wr.ch+wt(Nt).length)):jt&&Wl&&Wl.lineWise&&Wl.text.join(`
|
|
|
`)==Nt.join(`
|
|
|
`)&&(hr=wr=nn(hr.line,0)));var Dr={from:hr,to:wr,text:Wt?Wt[$n%Wt.length]:Nt,origin:Re||(jt?"paste":oe.state.cutIncoming>xt?"cut":"+input")};Ga(oe.doc,Dr),Tr(oe,"inputRead",oe,Dr)}de&&!jt&&rg(oe,de),Sc(oe),oe.curOp.updateInput<2&&(oe.curOp.updateInput=Yt),oe.curOp.typing=!0,oe.state.pasteIncoming=oe.state.cutIncoming=-1}function ng(oe,de){var ke=oe.clipboardData&&oe.clipboardData.getData("Text");if(ke)return oe.preventDefault(),!de.isReadOnly()&&!de.options.disableInput&&fn(de,function(){return mf(de,ke,0,null,"paste")}),!0}function rg(oe,de){if(!(!oe.options.electricChars||!oe.options.smartIndent))for(var ke=oe.doc.sel,Le=ke.ranges.length-1;Le>=0;Le--){var Re=ke.ranges[Le];if(!(Re.head.ch>100||Le&&ke.ranges[Le-1].head.line==Re.head.line)){var st=oe.getModeAt(Re.head),xt=!1;if(st.electricChars){for(var jt=0;jt<st.electricChars.length;jt++)if(de.indexOf(st.electricChars.charAt(jt))>-1){xt=Is(oe,Re.head.line,"smart");break}}else st.electricInput&&st.electricInput.test(Pn(oe.doc,Re.head.line).text.slice(0,Re.head.ch))&&(xt=Is(oe,Re.head.line,"smart"));xt&&Tr(oe,"electricInput",oe,Re.head.line)}}}function ig(oe){for(var de=[],ke=[],Le=0;Le<oe.doc.sel.ranges.length;Le++){var Re=oe.doc.sel.ranges[Le].head.line,st={anchor:nn(Re,0),head:nn(Re+1,0)};ke.push(st),de.push(oe.getRange(st.anchor,st.head))}return{text:de,ranges:ke}}function og(oe,de,ke,Le){oe.setAttribute("autocorrect",ke?"":"off"),oe.setAttribute("autocapitalize",Le?"":"off"),oe.setAttribute("spellcheck",!!de)}function ag(){var oe=Ne("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),de=Ne("div",[oe],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ce?oe.style.width="1000px":oe.setAttribute("wrap","off"),fe&&(oe.style.border="1px solid black"),og(oe),de}function xh(oe){var de=oe.optionHandlers,ke=oe.helpers={};oe.prototype={constructor:oe,focus:function(){window.focus(),this.display.input.focus()},setOption:function(Le,Re){var st=this.options,xt=st[Le];st[Le]==Re&&Le!="mode"||(st[Le]=Re,de.hasOwnProperty(Le)&&Bn(this,de[Le])(this,Re,xt),It(this,"optionChange",this,Le))},getOption:function(Le){return this.options[Le]},getDoc:function(){return this.doc},addKeyMap:function(Le,Re){this.state.keyMaps[Re?"push":"unshift"](Ec(Le))},removeKeyMap:function(Le){for(var Re=this.state.keyMaps,st=0;st<Re.length;++st)if(Re[st]==Le||Re[st].name==Le)return Re.splice(st,1),!0},addOverlay:Rn(function(Le,Re){var st=Le.token?Le:oe.getMode(this.options,Le);if(st.startState)throw new Error("Overlays may not be stateful.");tt(this.state.overlays,{mode:st,modeSpec:Le,opaque:Re&&Re.opaque,priority:Re&&Re.priority||0},function(xt){return xt.priority}),this.state.modeGen++,ya(this)}),removeOverlay:Rn(function(Le){for(var Re=this.state.overlays,st=0;st<Re.length;++st){var xt=Re[st].modeSpec;if(xt==Le||typeof Le=="string"&&xt.name==Le){Re.splice(st,1),this.state.modeGen++,ya(this);return}}}),indentLine:Rn(function(Le,Re,st){typeof Re!="string"&&typeof Re!="number"&&(Re==null?Re=this.options.smartIndent?"smart":"prev":Re=Re?"add":"subtract"),Wn(this.doc,Le)&&Is(this,Le,Re,st)}),indentSelection:Rn(function(Le){for(var Re=this.doc.sel.ranges,st=-1,xt=0;xt<Re.length;xt++){var jt=Re[xt];if(jt.empty())jt.head.line>st&&(Is(this,jt.head.line,Le,!0),st=jt.head.line,xt==this.doc.sel.primIndex&&Sc(this));else{var Nt=jt.from(),Wt=jt.to(),yn=Math.max(st,Nt.line);st=Math.min(this.lastLine(),Wt.line-(Wt.ch?0:1))+1;for(var Yt=yn;Yt<st;++Yt)Is(this,Yt,Le);var $n=this.doc.sel.ranges;Nt.ch==0&&Re.length==$n.length&&$n[xt].from().ch>0&&ua(this.doc,xt,new ni(Nt,$n[xt].to()),gt)}}}),getTokenAt:function(Le,Re){return Sr(this,Le,Re)},getLineTokens:function(Le,Re){return Sr(this,nn(Le),Re,!0)},getTokenTypeAt:function(Le){Le=Mn(this.doc,Le);var Re=Jr(this,Pn(this.doc,Le.line)),st=0,xt=(Re.length-1)/2,jt=Le.ch,Nt;if(jt==0)Nt=Re[2];else for(;;){var Wt=st+xt>>1;if((Wt?Re[Wt*2-1]:0)>=jt)xt=Wt;else if(Re[Wt*2+1]<jt)st=Wt+1;else{Nt=Re[Wt*2+2];break}}var yn=Nt?Nt.indexOf("overlay "):-1;return yn<0?Nt:yn==0?null:Nt.slice(0,yn-1)},getModeAt:function(Le){var Re=this.doc.mode;return Re.innerMode?oe.innerMode(Re,this.getTokenAt(Le).state).mode:Re},getHelper:function(Le,Re){return this.getHelpers(Le,Re)[0]},getHelpers:function(Le,Re){var st=[];if(!ke.hasOwnProperty(Re))return st;var xt=ke[Re],jt=this.getModeAt(Le);if(typeof jt[Re]=="string")xt[jt[Re]]&&st.push(xt[jt[Re]]);else if(jt[Re])for(var Nt=0;Nt<jt[Re].length;Nt++){var Wt=xt[jt[Re][Nt]];Wt&&st.push(Wt)}else jt.helperType&&xt[jt.helperType]?st.push(xt[jt.helperType]):xt[jt.name]&&st.push(xt[jt.name]);for(var yn=0;yn<xt._global.length;yn++){var Yt=xt._global[yn];Yt.pred(jt,this)&&St(st,Yt.val)==-1&&st.push(Yt.val)}return st},getStateAfter:function(Le,Re){var st=this.doc;return Le=kn(st,Le==null?st.first+st.size-1:Le),Rr(this,Le+1,Re).state},cursorCoords:function(Le,Re){var st,xt=this.doc.sel.primary();return Le==null?st=xt.head:typeof Le=="object"?st=Mn(this.doc,Le):st=Le?xt.from():xt.to(),ka(this,st,Re||"page")},charCoords:function(Le,Re){return Rl(this,Mn(this.doc,Le),Re||"page")},coordsChar:function(Le,Re){return Le=zu(this,Le,Re||"page"),Wc(this,Le.left,Le.top)},lineAtHeight:function(Le,Re){return Le=zu(this,{top:Le,left:0},Re||"page").top,jn(this.doc,Le+this.display.viewOffset)},heightAtLine:function(Le,Re,st){var xt=!1,jt;if(typeof Le=="number"){var Nt=this.doc.first+this.doc.size-1;Le<this.doc.first?Le=this.doc.first:Le>Nt&&(Le=Nt,xt=!0),jt=Pn(this.doc,Le)}else jt=Le;return za(this,jt,{top:0,left:0},Re||"page",st||xt).top+(xt?this.doc.height-Qi(jt):0)},defaultTextHeight:function(){return Gu(this.display)},defaultCharWidth:function(){return ic(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(Le,Re,st,xt,jt){var Nt=this.display;Le=ka(this,Mn(this.doc,Le));var Wt=Le.bottom,yn=Le.left;if(Re.style.position="absolute",Re.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Re),Nt.sizer.appendChild(Re),xt=="over")Wt=Le.top;else if(xt=="above"||xt=="near"){var Yt=Math.max(Nt.wrapper.clientHeight,this.doc.height),$n=Math.max(Nt.sizer.clientWidth,Nt.lineSpace.clientWidth);(xt=="above"||Le.bottom+Re.offsetHeight>Yt)&&Le.top>Re.offsetHeight?Wt=Le.top-Re.offsetHeight:Le.bottom+Re.offsetHeight<=Yt&&(Wt=Le.bottom),yn+Re.offsetWidth>$n&&(yn=$n-Re.offsetWidth)}Re.style.top=Wt+"px",Re.style.left=Re.style.right="",jt=="right"?(yn=Nt.sizer.clientWidth-Re.offsetWidth,Re.style.right="0px"):(jt=="left"?yn=0:jt=="middle"&&(yn=(Nt.sizer.clientWidth-Re.offsetWidth)/2),Re.style.left=yn+"px"),st&&Wh(this,{left:yn,top:Wt,right:yn+Re.offsetWidth,bottom:Wt+Re.offsetHeight})},triggerOnKeyDown:Rn(Vp),triggerOnKeyPress:Rn(sc),triggerOnKeyUp:Xp,triggerOnMouseDown:Rn(lc),execCommand:function(Le){if(js.hasOwnProperty(Le))return js[Le].call(null,this)},triggerElectric:Rn(function(Le){rg(this,Le)}),findPosH:function(Le,Re,st,xt){var jt=1;Re<0&&(jt=-1,Re=-Re);for(var Nt=Mn(this.doc,Le),Wt=0;Wt<Re&&(Nt=vf(this.doc,Nt,jt,st,xt),!Nt.hitSide);++Wt);return Nt},moveH:Rn(function(Le,Re){var st=this;this.extendSelectionsBy(function(xt){return st.display.shift||st.doc.extend||xt.empty()?vf(st.doc,xt.head,Le,Re,st.options.rtlMoveVisually):Le<0?xt.from():xt.to()},mt)}),deleteH:Rn(function(Le,Re){var st=this.doc.sel,xt=this.doc;st.somethingSelected()?xt.replaceSelection("",null,"+delete"):ol(this,function(jt){var Nt=vf(xt,jt.head,Le,Re,!1);return Le<0?{from:Nt,to:jt.head}:{from:jt.head,to:Nt}})}),findPosV:function(Le,Re,st,xt){var jt=1,Nt=xt;Re<0&&(jt=-1,Re=-Re);for(var Wt=Mn(this.doc,Le),yn=0;yn<Re;++yn){var Yt=ka(this,Wt,"div");if(Nt==null?Nt=Yt.left:Yt.left=Nt,Wt=wh(this,Yt,jt,st),Wt.hitSide)break}return Wt},moveV:Rn(function(Le,Re){var st=this,xt=this.doc,jt=[],Nt=!this.display.shift&&!xt.extend&&xt.sel.somethingSelected();if(xt.extendSelectionsBy(function(yn){if(Nt)return Le<0?yn.from():yn.to();var Yt=ka(st,yn.head,"div");yn.goalColumn!=null&&(Yt.left=yn.goalColumn),jt.push(Yt.left);var $n=wh(st,Yt,Le,Re);return Re=="page"&&yn==xt.sel.primary()&&Ed(st,Rl(st,$n,"div").top-Yt.top),$n},mt),jt.length)for(var Wt=0;Wt<xt.sel.ranges.length;Wt++)xt.sel.ranges[Wt].goalColumn=jt[Wt]}),findWordAt:function(Le){var Re=this.doc,st=Pn(Re,Le.line).text,xt=Le.ch,jt=Le.ch;if(st){var Nt=this.getHelper(Le,"wordChars");(Le.sticky=="before"||jt==st.length)&&xt?--xt:++jt;for(var Wt=st.charAt(xt),yn=Xe(Wt,Nt)?function(Yt){return Xe(Yt,Nt)}:/\s/.test(Wt)?function(Yt){return/\s/.test(Yt)}:function(Yt){return!/\s/.test(Yt)&&!Xe(Yt)};xt>0&&yn(st.charAt(xt-1));)--xt;for(;jt<st.length&&yn(st.charAt(jt));)++jt}return new ni(nn(Le.line,xt),nn(Le.line,jt))},toggleOverwrite:function(Le){Le!=null&&Le==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ye(this.display.cursorDiv,"CodeMirror-overwrite"):Fe(this.display.cursorDiv,"CodeMirror-overwrite"),It(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==$e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Rn(function(Le,Re){Zc(this,Le,Re)}),getScrollInfo:function(){var Le=this.display.scroller;return{left:Le.scrollLeft,top:Le.scrollTop,height:Le.scrollHeight-_s(this)-this.display.barHeight,width:Le.scrollWidth-_s(this)-this.display.barWidth,clientHeight:$c(this),clientWidth:dl(this)}},scrollIntoView:Rn(function(Le,Re){Le==null?(Le={from:this.doc.sel.primary().head,to:null},Re==null&&(Re=this.options.cursorScrollMargin)):typeof Le=="number"?Le={from:nn(Le,0),to:null}:Le.from==null&&(Le={from:Le,to:null}),Le.to||(Le.to=Le.from),Le.margin=Re||0,Le.from.line!=null?Vo(this,Le):sf(this,Le.from,Le.to,Le.margin)}),setSize:Rn(function(Le,Re){var st=this,xt=function(Nt){return typeof Nt=="number"||/^\d+$/.test(String(Nt))?Nt+"px":Nt};Le!=null&&(this.display.wrapper.style.width=xt(Le)),Re!=null&&(this.display.wrapper.style.height=xt(Re)),this.options.lineWrapping&&Xa(this);var jt=this.display.viewFrom;this.doc.iter(jt,this.display.viewTo,function(Nt){if(Nt.widgets){for(var Wt=0;Wt<Nt.widgets.length;Wt++)if(Nt.widgets[Wt].noHScroll){Po(st,jt,"widget");break}}++jt}),this.curOp.forceUpdate=!0,It(this,"refresh",this)}),operation:function(Le){return fn(this,Le)},startOperation:function(){return fl(this)},endOperation:function(){return bc(this)},refresh:Rn(function(){var Le=this.display.cachedTextHeight;ya(this),this.curOp.forceUpdate=!0,_a(this),Zc(this,this.doc.scrollLeft,this.doc.scrollTop),hi(this.display),(Le==null||Math.abs(Le-Gu(this.display))>.5||this.options.lineWrapping)&&Ui(this),It(this,"refresh",this)}),swapDoc:Rn(function(Le){var Re=this.doc;return Re.cm=null,this.state.selectingText&&this.state.selectingText(),to(this,Le),_a(this),this.display.input.reset(),Zc(this,Le.scrollLeft,Le.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,Re),Re}),phrase:function(Le){var Re=this.options.phrases;return Re&&Object.prototype.hasOwnProperty.call(Re,Le)?Re[Le]:Le},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}},xn(oe),oe.registerHelper=function(Le,Re,st){ke.hasOwnProperty(Le)||(ke[Le]=oe[Le]={_global:[]}),ke[Le][Re]=st},oe.registerGlobalHelper=function(Le,Re,st,xt){oe.registerHelper(Le,Re,xt),ke[Le]._global.push({pred:st,val:xt})}}function vf(oe,de,ke,Le,Re){var st=de,xt=ke,jt=Pn(oe,de.line),Nt=Re&&oe.direction=="rtl"?-ke:ke;function Wt(){var Li=de.line+Nt;return Li<oe.first||Li>=oe.first+oe.size?!1:(de=new nn(Li,de.ch,de.sticky),jt=Pn(oe,Li))}function yn(Li){var wi;if(Le=="codepoint"){var Bi=jt.text.charCodeAt(de.ch+(Le>0?0:-1));isNaN(Bi)?wi=null:wi=new nn(de.line,Math.max(0,Math.min(jt.text.length,de.ch+ke*(Bi>=55296&&Bi<56320?2:1))),-ke)}else Re?wi=Ma(oe.cm,jt,de,ke):wi=cs(jt,de,ke);if(wi==null)if(!Li&&Wt())de=ta(Re,oe.cm,jt,de.line,Nt);else return!1;else de=wi;return!0}if(Le=="char"||Le=="codepoint")yn();else if(Le=="column")yn(!0);else if(Le=="word"||Le=="group")for(var Yt=null,$n=Le=="group",Fn=oe.cm&&oe.cm.getHelper(de,"wordChars"),hr=!0;!(ke<0&&!yn(!hr));hr=!1){var wr=jt.text.charAt(de.ch)||`
|
|
|
`,Dr=Xe(wr,Fn)?"w":$n&&wr==`
|
|
|
`?"n":!$n||/\s/.test(wr)?null:"p";if($n&&!hr&&!Dr&&(Dr="s"),Yt&&Yt!=Dr){ke<0&&(ke=1,yn(),de.sticky="after");break}if(Dr&&(Yt=Dr),ke>0&&!yn(!hr))break}var ri=tu(oe,de,st,xt,!0);return rn(st,ri)&&(ri.hitSide=!0),ri}function wh(oe,de,ke,Le){var Re=oe.doc,st=de.left,xt;if(Le=="page"){var jt=Math.min(oe.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Nt=Math.max(jt-.5*Gu(oe.display),3);xt=(ke>0?de.bottom:de.top)+ke*Nt}else Le=="line"&&(xt=ke>0?de.bottom+3:de.top-3);for(var Wt;Wt=Wc(oe,st,xt),!!Wt.outside;){if(ke<0?xt<=0:xt>=Re.height){Wt.hitSide=!0;break}xt+=ke*5}return Wt}var ja=function(oe){this.cm=oe,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new it,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ja.prototype.init=function(oe){var de=this,ke=this,Le=ke.cm,Re=ke.div=oe.lineDiv;og(Re,Le.options.spellcheck,Le.options.autocorrect,Le.options.autocapitalize);function st(jt){for(var Nt=jt.target;Nt;Nt=Nt.parentNode){if(Nt==Re)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Nt.className))break}return!1}Kt(Re,"paste",function(jt){!st(jt)||Dt(Le,jt)||ng(jt,Le)||ge<=11&&setTimeout(Bn(Le,function(){return de.updateFromDOM()}),20)}),Kt(Re,"compositionstart",function(jt){de.composing={data:jt.data,done:!1}}),Kt(Re,"compositionupdate",function(jt){de.composing||(de.composing={data:jt.data,done:!1})}),Kt(Re,"compositionend",function(jt){de.composing&&(jt.data!=de.composing.data&&de.readFromDOMSoon(),de.composing.done=!0)}),Kt(Re,"touchstart",function(){return ke.forceCompositionEnd()}),Kt(Re,"input",function(){de.composing||de.readFromDOMSoon()});function xt(jt){if(!(!st(jt)||Dt(Le,jt))){if(Le.somethingSelected())Qh({lineWise:!1,text:Le.getSelections()}),jt.type=="cut"&&Le.replaceSelection("",null,"cut");else if(Le.options.lineWiseCopyCut){var Nt=ig(Le);Qh({lineWise:!0,text:Nt.text}),jt.type=="cut"&&Le.operation(function(){Le.setSelections(Nt.ranges,0,gt),Le.replaceSelection("",null,"cut")})}else return;if(jt.clipboardData){jt.clipboardData.clearData();var Wt=Wl.text.join(`
|
|
|
`);if(jt.clipboardData.setData("Text",Wt),jt.clipboardData.getData("Text")==Wt){jt.preventDefault();return}}var yn=ag(),Yt=yn.firstChild;Le.display.lineSpace.insertBefore(yn,Le.display.lineSpace.firstChild),Yt.value=Wl.text.join(`
|
|
|
`);var $n=document.activeElement;ut(Yt),setTimeout(function(){Le.display.lineSpace.removeChild(yn),$n.focus(),$n==Re&&ke.showPrimarySelection()},50)}}Kt(Re,"copy",xt),Kt(Re,"cut",xt)},ja.prototype.screenReaderLabelChanged=function(oe){oe?this.div.setAttribute("aria-label",oe):this.div.removeAttribute("aria-label")},ja.prototype.prepareSelection=function(){var oe=Kc(this.cm,!1);return oe.focus=document.activeElement==this.div,oe},ja.prototype.showSelection=function(oe,de){!oe||!this.cm.display.view.length||((oe.focus||de)&&this.showPrimarySelection(),this.showMultipleSelections(oe))},ja.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ja.prototype.showPrimarySelection=function(){var oe=this.getSelection(),de=this.cm,ke=de.doc.sel.primary(),Le=ke.from(),Re=ke.to();if(de.display.viewTo==de.display.viewFrom||Le.line>=de.display.viewTo||Re.line<de.display.viewFrom){oe.removeAllRanges();return}var st=yf(de,oe.anchorNode,oe.anchorOffset),xt=yf(de,oe.focusNode,oe.focusOffset);if(!(st&&!st.bad&&xt&&!xt.bad&&Cn(pn(st,xt),Le)==0&&Cn(En(st,xt),Re)==0)){var jt=de.display.view,Nt=Le.line>=de.display.viewFrom&&ip(de,Le)||{node:jt[0].measure.map[2],offset:0},Wt=Re.line<de.display.viewTo&&ip(de,Re);if(!Wt){var yn=jt[jt.length-1].measure,Yt=yn.maps?yn.maps[yn.maps.length-1]:yn.map;Wt={node:Yt[Yt.length-1],offset:Yt[Yt.length-2]-Yt[Yt.length-3]}}if(!Nt||!Wt){oe.removeAllRanges();return}var $n=oe.rangeCount&&oe.getRangeAt(0),Fn;try{Fn=ze(Nt.node,Nt.offset,Wt.offset,Wt.node)}catch(hr){}Fn&&(!rt&&de.state.focused?(oe.collapse(Nt.node,Nt.offset),Fn.collapsed||(oe.removeAllRanges(),oe.addRange(Fn))):(oe.removeAllRanges(),oe.addRange(Fn)),$n&&oe.anchorNode==null?oe.addRange($n):rt&&this.startGracePeriod()),this.rememberSelection()}},ja.prototype.startGracePeriod=function(){var oe=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){oe.gracePeriod=!1,oe.selectionChanged()&&oe.cm.operation(function(){return oe.cm.curOp.selectionChanged=!0})},20)},ja.prototype.showMultipleSelections=function(oe){je(this.cm.display.cursorDiv,oe.cursors),je(this.cm.display.selectionDiv,oe.selection)},ja.prototype.rememberSelection=function(){var oe=this.getSelection();this.lastAnchorNode=oe.anchorNode,this.lastAnchorOffset=oe.anchorOffset,this.lastFocusNode=oe.focusNode,this.lastFocusOffset=oe.focusOffset},ja.prototype.selectionInEditor=function(){var oe=this.getSelection();if(!oe.rangeCount)return!1;var de=oe.getRangeAt(0).commonAncestorContainer;return Qe(this.div,de)},ja.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ja.prototype.blur=function(){this.div.blur()},ja.prototype.getField=function(){return this.div},ja.prototype.supportsTouch=function(){return!0},ja.prototype.receivedFocus=function(){var oe=this;this.selectionInEditor()?this.pollSelection():fn(this.cm,function(){return oe.cm.curOp.selectionChanged=!0});function de(){oe.cm.state.focused&&(oe.pollSelection(),oe.polling.set(oe.cm.options.pollInterval,de))}this.polling.set(this.cm.options.pollInterval,de)},ja.prototype.selectionChanged=function(){var oe=this.getSelection();return oe.anchorNode!=this.lastAnchorNode||oe.anchorOffset!=this.lastAnchorOffset||oe.focusNode!=this.lastFocusNode||oe.focusOffset!=this.lastFocusOffset},ja.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var oe=this.getSelection(),de=this.cm;if(z&&Ee&&this.cm.display.gutterSpecs.length&&sg(oe.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ke=yf(de,oe.anchorNode,oe.anchorOffset),Le=yf(de,oe.focusNode,oe.focusOffset);ke&&Le&&fn(de,function(){fa(de.doc,wo(ke,Le),gt),(ke.bad||Le.bad)&&(de.curOp.selectionChanged=!0)})}}},ja.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var oe=this.cm,de=oe.display,ke=oe.doc.sel.primary(),Le=ke.from(),Re=ke.to();if(Le.ch==0&&Le.line>oe.firstLine()&&(Le=nn(Le.line-1,Pn(oe.doc,Le.line-1).length)),Re.ch==Pn(oe.doc,Re.line).text.length&&Re.line<oe.lastLine()&&(Re=nn(Re.line+1,0)),Le.line<de.viewFrom||Re.line>de.viewTo-1)return!1;var st,xt,jt;Le.line==de.viewFrom||(st=zs(oe,Le.line))==0?(xt=$t(de.view[0].line),jt=de.view[0].node):(xt=$t(de.view[st].line),jt=de.view[st-1].node.nextSibling);var Nt=zs(oe,Re.line),Wt,yn;if(Nt==de.view.length-1?(Wt=de.viewTo-1,yn=de.lineDiv.lastChild):(Wt=$t(de.view[Nt+1].line)-1,yn=de.view[Nt+1].node.previousSibling),!jt)return!1;for(var Yt=oe.doc.splitLines(_d(oe,jt,yn,xt,Wt)),$n=_n(oe.doc,nn(xt,0),nn(Wt,Pn(oe.doc,Wt).text.length));Yt.length>1&&$n.length>1;)if(wt(Yt)==wt($n))Yt.pop(),$n.pop(),Wt--;else if(Yt[0]==$n[0])Yt.shift(),$n.shift(),xt++;else break;for(var Fn=0,hr=0,wr=Yt[0],Dr=$n[0],ri=Math.min(wr.length,Dr.length);Fn<ri&&wr.charCodeAt(Fn)==Dr.charCodeAt(Fn);)++Fn;for(var Li=wt(Yt),wi=wt($n),Bi=Math.min(Li.length-(Yt.length==1?Fn:0),wi.length-($n.length==1?Fn:0));hr<Bi&&Li.charCodeAt(Li.length-hr-1)==wi.charCodeAt(wi.length-hr-1);)++hr;if(Yt.length==1&&$n.length==1&&xt==Le.line)for(;Fn&&Fn>Le.ch&&Li.charCodeAt(Li.length-hr-1)==wi.charCodeAt(wi.length-hr-1);)Fn--,hr++;Yt[Yt.length-1]=Li.slice(0,Li.length-hr).replace(/^\u200b+/,""),Yt[0]=Yt[0].slice(Fn).replace(/\u200b+$/,"");var mo=nn(xt,Fn),vi=nn(Wt,$n.length?wt($n).length-hr:0);if(Yt.length>1||Yt[0]||Cn(mo,vi))return Ku(oe.doc,Yt,mo,vi,"+input"),!0},ja.prototype.ensurePolled=function(){this.forceCompositionEnd()},ja.prototype.reset=function(){this.forceCompositionEnd()},ja.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ja.prototype.readFromDOMSoon=function(){var oe=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(oe.readDOMTimeout=null,oe.composing)if(oe.composing.done)oe.composing=null;else return;oe.updateFromDOM()},80))},ja.prototype.updateFromDOM=function(){var oe=this;(this.cm.isReadOnly()||!this.pollContent())&&fn(this.cm,function(){return ya(oe.cm)})},ja.prototype.setUneditable=function(oe){oe.contentEditable="false"},ja.prototype.onKeyPress=function(oe){oe.charCode==0||this.composing||(oe.preventDefault(),this.cm.isReadOnly()||Bn(this.cm,mf)(this.cm,String.fromCharCode(oe.charCode==null?oe.keyCode:oe.charCode),0))},ja.prototype.readOnlyChanged=function(oe){this.div.contentEditable=String(oe!="nocursor")},ja.prototype.onContextMenu=function(){},ja.prototype.resetPosition=function(){},ja.prototype.needsContentAttribute=!0;function ip(oe,de){var ke=vc(oe,de.line);if(!ke||ke.hidden)return null;var Le=Pn(oe.doc,de.line),Re=Gc(ke,Le,de.line),st=Jt(Le,oe.doc.direction),xt="left";if(st){var jt=ft(st,de.ch);xt=jt%2?"right":"left"}var Nt=Uc(Re.map,de.ch,xt);return Nt.offset=Nt.collapse=="right"?Nt.end:Nt.start,Nt}function sg(oe){for(var de=oe;de;de=de.parentNode)if(/CodeMirror-gutter-wrapper/.test(de.className))return!0;return!1}function Rd(oe,de){return de&&(oe.bad=!0),oe}function _d(oe,de,ke,Le,Re){var st="",xt=!1,jt=oe.doc.lineSeparator(),Nt=!1;function Wt(Fn){return function(hr){return hr.id==Fn}}function yn(){xt&&(st+=jt,Nt&&(st+=jt),xt=Nt=!1)}function Yt(Fn){Fn&&(yn(),st+=Fn)}function $n(Fn){if(Fn.nodeType==1){var hr=Fn.getAttribute("cm-text");if(hr){Yt(hr);return}var wr=Fn.getAttribute("cm-marker"),Dr;if(wr){var ri=oe.findMarks(nn(Le,0),nn(Re+1,0),Wt(+wr));ri.length&&(Dr=ri[0].find(0))&&Yt(_n(oe.doc,Dr.from,Dr.to).join(jt));return}if(Fn.getAttribute("contenteditable")=="false")return;var Li=/^(pre|div|p|li|table|br)$/i.test(Fn.nodeName);if(!/^br$/i.test(Fn.nodeName)&&Fn.textContent.length==0)return;Li&&yn();for(var wi=0;wi<Fn.childNodes.length;wi++)$n(Fn.childNodes[wi]);/^(pre|p)$/i.test(Fn.nodeName)&&(Nt=!0),Li&&(xt=!0)}else Fn.nodeType==3&&Yt(Fn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;$n(de),de!=ke;)de=de.nextSibling,Nt=!1;return st}function yf(oe,de,ke){var Le;if(de==oe.display.lineDiv){if(Le=oe.display.lineDiv.childNodes[ke],!Le)return Rd(oe.clipPos(nn(oe.display.viewTo-1)),!0);de=null,ke=0}else for(Le=de;;Le=Le.parentNode){if(!Le||Le==oe.display.lineDiv)return null;if(Le.parentNode&&Le.parentNode==oe.display.lineDiv)break}for(var Re=0;Re<oe.display.view.length;Re++){var st=oe.display.view[Re];if(st.node==Le)return hm(st,de,ke)}}function hm(oe,de,ke){var Le=oe.text.firstChild,Re=!1;if(!de||!Qe(Le,de))return Rd(nn($t(oe.line),0),!0);if(de==Le&&(Re=!0,de=Le.childNodes[ke],ke=0,!de)){var st=oe.rest?wt(oe.rest):oe.line;return Rd(nn($t(st),st.text.length),Re)}var xt=de.nodeType==3?de:null,jt=de;for(!xt&&de.childNodes.length==1&&de.firstChild.nodeType==3&&(xt=de.firstChild,ke&&(ke=xt.nodeValue.length));jt.parentNode!=Le;)jt=jt.parentNode;var Nt=oe.measure,Wt=Nt.maps;function yn(Dr,ri,Li){for(var wi=-1;wi<(Wt?Wt.length:0);wi++)for(var Bi=wi<0?Nt.map:Wt[wi],mo=0;mo<Bi.length;mo+=3){var vi=Bi[mo+2];if(vi==Dr||vi==ri){var Oo=$t(wi<0?oe.line:oe.rest[wi]),Ya=Bi[mo]+Li;return(Li<0||vi!=Dr)&&(Ya=Bi[mo+(Li?1:0)]),nn(Oo,Ya)}}}var Yt=yn(xt,jt,ke);if(Yt)return Rd(Yt,Re);for(var $n=jt.nextSibling,Fn=xt?xt.nodeValue.length-ke:0;$n;$n=$n.nextSibling){if(Yt=yn($n,$n.firstChild,0),Yt)return Rd(nn(Yt.line,Yt.ch-Fn),Re);Fn+=$n.textContent.length}for(var hr=jt.previousSibling,wr=ke;hr;hr=hr.previousSibling){if(Yt=yn(hr,hr.firstChild,-1),Yt)return Rd(nn(Yt.line,Yt.ch+wr),Re);wr+=hr.textContent.length}}var Ls=function(oe){this.cm=oe,this.prevInput="",this.pollingFast=!1,this.polling=new it,this.hasSelection=!1,this.composing=null};Ls.prototype.init=function(oe){var de=this,ke=this,Le=this.cm;this.createField(oe);var Re=this.textarea;oe.wrapper.insertBefore(this.wrapper,oe.wrapper.firstChild),fe&&(Re.style.width="0px"),Kt(Re,"input",function(){Ie&&ge>=9&&de.hasSelection&&(de.hasSelection=null),ke.poll()}),Kt(Re,"paste",function(xt){Dt(Le,xt)||ng(xt,Le)||(Le.state.pasteIncoming=+new Date,ke.fastPoll())});function st(xt){if(!Dt(Le,xt)){if(Le.somethingSelected())Qh({lineWise:!1,text:Le.getSelections()});else if(Le.options.lineWiseCopyCut){var jt=ig(Le);Qh({lineWise:!0,text:jt.text}),xt.type=="cut"?Le.setSelections(jt.ranges,null,gt):(ke.prevInput="",Re.value=jt.text.join(`
|
|
|
`),ut(Re))}else return;xt.type=="cut"&&(Le.state.cutIncoming=+new Date)}}Kt(Re,"cut",st),Kt(Re,"copy",st),Kt(oe.scroller,"paste",function(xt){if(!(nl(oe,xt)||Dt(Le,xt))){if(!Re.dispatchEvent){Le.state.pasteIncoming=+new Date,ke.focus();return}var jt=new Event("paste");jt.clipboardData=xt.clipboardData,Re.dispatchEvent(jt)}}),Kt(oe.lineSpace,"selectstart",function(xt){nl(oe,xt)||Ln(xt)}),Kt(Re,"compositionstart",function(){var xt=Le.getCursor("from");ke.composing&&ke.composing.range.clear(),ke.composing={start:xt,range:Le.markText(xt,Le.getCursor("to"),{className:"CodeMirror-composing"})}}),Kt(Re,"compositionend",function(){ke.composing&&(ke.poll(),ke.composing.range.clear(),ke.composing=null)})},Ls.prototype.createField=function(oe){this.wrapper=ag(),this.textarea=this.wrapper.firstChild},Ls.prototype.screenReaderLabelChanged=function(oe){oe?this.textarea.setAttribute("aria-label",oe):this.textarea.removeAttribute("aria-label")},Ls.prototype.prepareSelection=function(){var oe=this.cm,de=oe.display,ke=oe.doc,Le=Kc(oe);if(oe.options.moveInputWithCursor){var Re=ka(oe,ke.sel.primary().head,"div"),st=de.wrapper.getBoundingClientRect(),xt=de.lineDiv.getBoundingClientRect();Le.teTop=Math.max(0,Math.min(de.wrapper.clientHeight-10,Re.top+xt.top-st.top)),Le.teLeft=Math.max(0,Math.min(de.wrapper.clientWidth-10,Re.left+xt.left-st.left))}return Le},Ls.prototype.showSelection=function(oe){var de=this.cm,ke=de.display;je(ke.cursorDiv,oe.cursors),je(ke.selectionDiv,oe.selection),oe.teTop!=null&&(this.wrapper.style.top=oe.teTop+"px",this.wrapper.style.left=oe.teLeft+"px")},Ls.prototype.reset=function(oe){if(!(this.contextMenuPending||this.composing)){var de=this.cm;if(de.somethingSelected()){this.prevInput="";var ke=de.getSelection();this.textarea.value=ke,de.state.focused&&ut(this.textarea),Ie&&ge>=9&&(this.hasSelection=ke)}else oe||(this.prevInput=this.textarea.value="",Ie&&ge>=9&&(this.hasSelection=null))}},Ls.prototype.getField=function(){return this.textarea},Ls.prototype.supportsTouch=function(){return!1},Ls.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||$e()!=this.textarea))try{this.textarea.focus()}catch(oe){}},Ls.prototype.blur=function(){this.textarea.blur()},Ls.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ls.prototype.receivedFocus=function(){this.slowPoll()},Ls.prototype.slowPoll=function(){var oe=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){oe.poll(),oe.cm.state.focused&&oe.slowPoll()})},Ls.prototype.fastPoll=function(){var oe=!1,de=this;de.pollingFast=!0;function ke(){var Le=de.poll();!Le&&!oe?(oe=!0,de.polling.set(60,ke)):(de.pollingFast=!1,de.slowPoll())}de.polling.set(20,ke)},Ls.prototype.poll=function(){var oe=this,de=this.cm,ke=this.textarea,Le=this.prevInput;if(this.contextMenuPending||!de.state.focused||ot(ke)&&!Le&&!this.composing||de.isReadOnly()||de.options.disableInput||de.state.keySeq)return!1;var Re=ke.value;if(Re==Le&&!de.somethingSelected())return!1;if(Ie&&ge>=9&&this.hasSelection===Re||ae&&/[\uf700-\uf7ff]/.test(Re))return de.display.input.reset(),!1;if(de.doc.sel==de.display.selForContextMenu){var st=Re.charCodeAt(0);if(st==8203&&!Le&&(Le="\u200B"),st==8666)return this.reset(),this.cm.execCommand("undo")}for(var xt=0,jt=Math.min(Le.length,Re.length);xt<jt&&Le.charCodeAt(xt)==Re.charCodeAt(xt);)++xt;return fn(de,function(){mf(de,Re.slice(xt),Le.length-xt,null,oe.composing?"*compose":null),Re.length>1e3||Re.indexOf(`
|
|
|
`)>-1?ke.value=oe.prevInput="":oe.prevInput=Re,oe.composing&&(oe.composing.range.clear(),oe.composing.range=de.markText(oe.composing.start,de.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ls.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ls.prototype.onKeyPress=function(){Ie&&ge>=9&&(this.hasSelection=null),this.fastPoll()},Ls.prototype.onContextMenu=function(oe){var de=this,ke=de.cm,Le=ke.display,Re=de.textarea;de.contextMenuPending&&de.contextMenuPending();var st=rl(ke,oe),xt=Le.scroller.scrollTop;if(!st||ye)return;var jt=ke.options.resetSelectionOnContextMenu;jt&&ke.doc.sel.contains(st)==-1&&Bn(ke,fa)(ke.doc,wo(st),gt);var Nt=Re.style.cssText,Wt=de.wrapper.style.cssText,yn=de.wrapper.offsetParent.getBoundingClientRect();de.wrapper.style.cssText="position: static",Re.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(oe.clientY-yn.top-5)+"px; left: "+(oe.clientX-yn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Ie?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Yt;ce&&(Yt=window.scrollY),Le.input.focus(),ce&&window.scrollTo(null,Yt),Le.input.reset(),ke.somethingSelected()||(Re.value=de.prevInput=" "),de.contextMenuPending=Fn,Le.selForContextMenu=ke.doc.sel,clearTimeout(Le.detectingSelectAll);function $n(){if(Re.selectionStart!=null){var wr=ke.somethingSelected(),Dr="\u200B"+(wr?Re.value:"");Re.value="\u21DA",Re.value=Dr,de.prevInput=wr?"":"\u200B",Re.selectionStart=1,Re.selectionEnd=Dr.length,Le.selForContextMenu=ke.doc.sel}}function Fn(){if(de.contextMenuPending==Fn&&(de.contextMenuPending=!1,de.wrapper.style.cssText=Wt,Re.style.cssText=Nt,Ie&&ge<9&&Le.scrollbars.setScrollTop(Le.scroller.scrollTop=xt),Re.selectionStart!=null)){(!Ie||Ie&&ge<9)&&$n();var wr=0,Dr=function(){Le.selForContextMenu==ke.doc.sel&&Re.selectionStart==0&&Re.selectionEnd>0&&de.prevInput=="\u200B"?Bn(ke,na)(ke):wr++<10?Le.detectingSelectAll=setTimeout(Dr,500):(Le.selForContextMenu=null,Le.input.reset())};Le.detectingSelectAll=setTimeout(Dr,200)}}if(Ie&&ge>=9&&$n(),Te){dr(oe);var hr=function(){tn(window,"mouseup",hr),setTimeout(Fn,20)};Kt(window,"mouseup",hr)}else setTimeout(Fn,50)},Ls.prototype.readOnlyChanged=function(oe){oe||this.reset(),this.textarea.disabled=oe=="nocursor",this.textarea.readOnly=!!oe},Ls.prototype.setUneditable=function(){},Ls.prototype.needsContentAttribute=!1;function dm(oe,de){if(de=de?Ct(de):{},de.value=oe.value,!de.tabindex&&oe.tabIndex&&(de.tabindex=oe.tabIndex),!de.placeholder&&oe.placeholder&&(de.placeholder=oe.placeholder),de.autofocus==null){var ke=$e();de.autofocus=ke==oe||oe.getAttribute("autofocus")!=null&&ke==document.body}function Le(){oe.value=jt.getValue()}var Re;if(oe.form&&(Kt(oe.form,"submit",Le),!de.leaveSubmitMethodAlone)){var st=oe.form;Re=st.submit;try{var xt=st.submit=function(){Le(),st.submit=Re,st.submit(),st.submit=xt}}catch(Nt){}}de.finishInit=function(Nt){Nt.save=Le,Nt.getTextArea=function(){return oe},Nt.toTextArea=function(){Nt.toTextArea=isNaN,Le(),oe.parentNode.removeChild(Nt.getWrapperElement()),oe.style.display="",oe.form&&(tn(oe.form,"submit",Le),!de.leaveSubmitMethodAlone&&typeof oe.form.submit=="function"&&(oe.form.submit=Re))}},oe.style.display="none";var jt=ra(function(Nt){return oe.parentNode.insertBefore(Nt,oe.nextSibling)},de);return jt}function zd(oe){oe.off=tn,oe.on=Kt,oe.wheelEventPixels=Fi,oe.Doc=Ms,oe.splitLines=Lr,oe.countColumn=et,oe.findColumn=kt,oe.isWordChar=Ke,oe.Pass=Pt,oe.signal=It,oe.Line=Uo,oe.changeEnd=Qo,oe.scrollbarModel=lf,oe.Pos=nn,oe.cmpPos=Cn,oe.modes=sr,oe.mimeModes=Ar,oe.resolveMode=Nr,oe.getMode=hn,oe.modeExtensions=cn,oe.extendMode=Ot,oe.copyState=gn,oe.startState=Xt,oe.innerMode=Nn,oe.commands=js,oe.keyMap=ml,oe.keyName=jd,oe.isModifierKey=yh,oe.lookupKey=Ul,oe.normalizeKeyMap=Nd,oe.StringStream=zt,oe.SharedTextMarker=Vu,oe.TextMarker=ln,oe.LineWidget=vs,oe.e_preventDefault=Ln,oe.e_stopPropagation=Zn,oe.e_stop=dr,oe.addClass=Ye,oe.contains=Qe,oe.rmClass=Fe,oe.keyNames=Lu}um(ra),xh(ra);var Qc="iter insert remove copy getEditor constructor".split(" ");for(var Sf in Ms.prototype)Ms.prototype.hasOwnProperty(Sf)&&St(Qc,Sf)<0&&(ra.prototype[Sf]=function(oe){return function(){return oe.apply(this.doc,arguments)}}(Ms.prototype[Sf]));return xn(Ms),ra.inputStyles={textarea:Ls,contenteditable:ja},ra.defineMode=function(oe){!ra.defaults.mode&&oe!="null"&&(ra.defaults.mode=oe),Fr.apply(this,arguments)},ra.defineMIME=Si,ra.defineMode("null",function(){return{token:function(oe){return oe.skipToEnd()}}}),ra.defineMIME("text/plain","null"),ra.defineExtension=function(oe,de){ra.prototype[oe]=de},ra.defineDocExtension=function(oe,de){Ms.prototype[oe]=de},ra.fromTextArea=dm,zd(ra),ra.version="5.58.2",ra})},25419:function(bn,an,Ge){(function(rt){rt(Ge(89780),Ge(15525),Ge(98101))})(function(rt){"use strict";rt.defineMode("markdown",function(vt,ie){var _e=rt.getMode(vt,"text/html"),Ie=_e.name=="null";function ge(et){if(rt.findModeByName){var it=rt.findModeByName(et);it&&(et=it.mime||it.mimes[0])}var St=rt.getMode(vt,et);return St.name=="null"?null:St}ie.highlightFormatting===void 0&&(ie.highlightFormatting=!1),ie.maxBlockquoteDepth===void 0&&(ie.maxBlockquoteDepth=0),ie.taskLists===void 0&&(ie.taskLists=!1),ie.strikethrough===void 0&&(ie.strikethrough=!1),ie.emoji===void 0&&(ie.emoji=!1),ie.fencedCodeBlockHighlighting===void 0&&(ie.fencedCodeBlockHighlighting=!0),ie.fencedCodeBlockDefaultMode===void 0&&(ie.fencedCodeBlockDefaultMode="text/plain"),ie.xml===void 0&&(ie.xml=!0),ie.tokenTypeOverrides===void 0&&(ie.tokenTypeOverrides={});var ce={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 Pe in ce)ce.hasOwnProperty(Pe)&&ie.tokenTypeOverrides[Pe]&&(ce[Pe]=ie.tokenTypeOverrides[Pe]);var Ee=/^([*\-_])(?:\s*\1){2,}\s*$/,ye=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Me=/^\[(x| )\](?=\s)/i,ve=ie.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,xe=/^ {0,3}(?:\={1,}|-{2,})\s*$/,fe=/^[^#!\[\]*_\\<>` "'(~:]+/,z=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ee=/^\s*\[[^\]]+?\]:.*$/,ae=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,re=" ";function le(et,it,St){return it.f=it.inline=St,St(et,it)}function ue(et,it,St){return it.f=it.block=St,St(et,it)}function pe(et){return!et||!/\S/.test(et.string)}function Te(et){if(et.linkTitle=!1,et.linkHref=!1,et.linkText=!1,et.em=!1,et.strong=!1,et.strikethrough=!1,et.quote=0,et.indentedCode=!1,et.f==Fe){var it=Ie;if(!it){var St=rt.innerMode(_e,et.htmlState);it=St.mode.name=="xml"&&St.state.tagStart===null&&!St.state.context&&St.state.tokenize.isInText}it&&(et.f=Be,et.block=Ce,et.htmlState=null)}return et.trailingSpace=0,et.trailingSpaceNewLine=!1,et.prevLine=et.thisLine,et.thisLine={stream:null},null}function Ce(et,it){var St=et.column()===it.indentation,bt=pe(it.prevLine.stream),Pt=it.indentedCode,gt=it.prevLine.hr,dt=it.list!==!1,mt=(it.listStack[it.listStack.length-1]||0)+3;it.indentedCode=!1;var kt=it.indentation;if(it.indentationDiff===null&&(it.indentationDiff=it.indentation,dt)){for(it.list=null;kt<it.listStack[it.listStack.length-1];)it.listStack.pop(),it.listStack.length?it.indentation=it.listStack[it.listStack.length-1]:it.list=!1;it.list!==!1&&(it.indentationDiff=kt-it.listStack[it.listStack.length-1])}var Et=!bt&&!gt&&!it.prevLine.header&&(!dt||!Pt)&&!it.prevLine.fencedCodeEnd,Ut=(it.list===!1||gt||bt)&&it.indentation<=mt&&et.match(Ee),wt=null;if(it.indentationDiff>=4&&(Pt||it.prevLine.fencedCodeEnd||it.prevLine.header||bt))return et.skipToEnd(),it.indentedCode=!0,ce.code;if(et.eatSpace())return null;if(St&&it.indentation<=mt&&(wt=et.match(ve))&&wt[1].length<=6)return it.quote=0,it.header=wt[1].length,it.thisLine.header=!0,ie.highlightFormatting&&(it.formatting="header"),it.f=it.inline,je(it);if(it.indentation<=mt&&et.eat(">"))return it.quote=St?1:it.quote+1,ie.highlightFormatting&&(it.formatting="quote"),et.eatSpace(),je(it);if(!Ut&&!it.setext&&St&&it.indentation<=mt&&(wt=et.match(ye))){var pt=wt[1]?"ol":"ul";return it.indentation=kt+et.current().length,it.list=!0,it.quote=0,it.listStack.push(it.indentation),it.em=!1,it.strong=!1,it.code=!1,it.strikethrough=!1,ie.taskLists&&et.match(Me,!1)&&(it.taskList=!0),it.f=it.inline,ie.highlightFormatting&&(it.formatting=["list","list-"+pt]),je(it)}else{if(St&&it.indentation<=mt&&(wt=et.match(z,!0)))return it.quote=0,it.fencedEndRE=new RegExp(wt[1]+"+ *$"),it.localMode=ie.fencedCodeBlockHighlighting&&ge(wt[2]||ie.fencedCodeBlockDefaultMode),it.localMode&&(it.localState=rt.startState(it.localMode)),it.f=it.block=Ae,ie.highlightFormatting&&(it.formatting="code-block"),it.code=-1,je(it);if(it.setext||(!Et||!dt)&&!it.quote&&it.list===!1&&!it.code&&!Ut&&!ee.test(et.string)&&(wt=et.lookAhead(1))&&(wt=wt.match(xe)))return it.setext?(it.header=it.setext,it.setext=0,et.skipToEnd(),ie.highlightFormatting&&(it.formatting="header")):(it.header=wt[0].charAt(0)=="="?1:2,it.setext=it.header),it.thisLine.header=!0,it.f=it.inline,je(it);if(Ut)return et.skipToEnd(),it.hr=!0,it.thisLine.hr=!0,ce.hr;if(et.peek()==="[")return le(et,it,at)}return le(et,it,it.inline)}function Fe(et,it){var St=_e.token(et,it.htmlState);if(!Ie){var bt=rt.innerMode(_e,it.htmlState);(bt.mode.name=="xml"&&bt.state.tagStart===null&&!bt.state.context&&bt.state.tokenize.isInText||it.md_inside&&et.current().indexOf(">")>-1)&&(it.f=Be,it.block=Ce,it.htmlState=null)}return St}function Ae(et,it){var St=it.listStack[it.listStack.length-1]||0,bt=it.indentation<St,Pt=St+3;if(it.fencedEndRE&&it.indentation<=Pt&&(bt||et.match(it.fencedEndRE))){ie.highlightFormatting&&(it.formatting="code-block");var gt;return bt||(gt=je(it)),it.localMode=it.localState=null,it.block=Ce,it.f=Be,it.fencedEndRE=null,it.code=0,it.thisLine.fencedCodeEnd=!0,bt?ue(et,it,it.block):gt}else return it.localMode?it.localMode.token(et,it.localState):(et.skipToEnd(),ce.code)}function je(et){var it=[];if(et.formatting){it.push(ce.formatting),typeof et.formatting=="string"&&(et.formatting=[et.formatting]);for(var St=0;St<et.formatting.length;St++)it.push(ce.formatting+"-"+et.formatting[St]),et.formatting[St]==="header"&&it.push(ce.formatting+"-"+et.formatting[St]+"-"+et.header),et.formatting[St]==="quote"&&(!ie.maxBlockquoteDepth||ie.maxBlockquoteDepth>=et.quote?it.push(ce.formatting+"-"+et.formatting[St]+"-"+et.quote):it.push("error"))}if(et.taskOpen)return it.push("meta"),it.length?it.join(" "):null;if(et.taskClosed)return it.push("property"),it.length?it.join(" "):null;if(et.linkHref?it.push(ce.linkHref,"url"):(et.strong&&it.push(ce.strong),et.em&&it.push(ce.em),et.strikethrough&&it.push(ce.strikethrough),et.emoji&&it.push(ce.emoji),et.linkText&&it.push(ce.linkText),et.code&&it.push(ce.code),et.image&&it.push(ce.image),et.imageAltText&&it.push(ce.imageAltText,"link"),et.imageMarker&&it.push(ce.imageMarker)),et.header&&it.push(ce.header,ce.header+"-"+et.header),et.quote&&(it.push(ce.quote),!ie.maxBlockquoteDepth||ie.maxBlockquoteDepth>=et.quote?it.push(ce.quote+"-"+et.quote):it.push(ce.quote+"-"+ie.maxBlockquoteDepth)),et.list!==!1){var bt=(et.listStack.length-1)%3;bt?bt===1?it.push(ce.list2):it.push(ce.list3):it.push(ce.list1)}return et.trailingSpaceNewLine?it.push("trailing-space-new-line"):et.trailingSpace&&it.push("trailing-space-"+(et.trailingSpace%2?"a":"b")),it.length?it.join(" "):null}function Ne(et,it){if(et.match(fe,!0))return je(it)}function Be(et,it){var St=it.text(et,it);if(typeof St!="undefined")return St;if(it.list)return it.list=null,je(it);if(it.taskList){var bt=et.match(Me,!0)[1]===" ";return bt?it.taskOpen=!0:it.taskClosed=!0,ie.highlightFormatting&&(it.formatting="task"),it.taskList=!1,je(it)}if(it.taskOpen=!1,it.taskClosed=!1,it.header&&et.match(/^#+$/,!0))return ie.highlightFormatting&&(it.formatting="header"),je(it);var Pt=et.next();if(it.linkTitle){it.linkTitle=!1;var gt=Pt;Pt==="("&&(gt=")"),gt=(gt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var dt="^\\s*(?:[^"+gt+"\\\\]+|\\\\\\\\|\\\\.)"+gt;if(et.match(new RegExp(dt),!0))return ce.linkHref}if(Pt==="`"){var mt=it.formatting;ie.highlightFormatting&&(it.formatting="code"),et.eatWhile("`");var kt=et.current().length;if(it.code==0&&(!it.quote||kt==1))return it.code=kt,je(it);if(kt==it.code){var Et=je(it);return it.code=0,Et}else return it.formatting=mt,je(it)}else if(it.code)return je(it);if(Pt==="\\"&&(et.next(),ie.highlightFormatting)){var Ut=je(it),wt=ce.formatting+"-escape";return Ut?Ut+" "+wt:wt}if(Pt==="!"&&et.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return it.imageMarker=!0,it.image=!0,ie.highlightFormatting&&(it.formatting="image"),je(it);if(Pt==="["&&it.imageMarker&&et.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return it.imageMarker=!1,it.imageAltText=!0,ie.highlightFormatting&&(it.formatting="image"),je(it);if(Pt==="]"&&it.imageAltText){ie.highlightFormatting&&(it.formatting="image");var Ut=je(it);return it.imageAltText=!1,it.image=!1,it.inline=it.f=Qe,Ut}if(Pt==="["&&!it.image)return it.linkText&&et.match(/^.*?\]/)||(it.linkText=!0,ie.highlightFormatting&&(it.formatting="link")),je(it);if(Pt==="]"&&it.linkText){ie.highlightFormatting&&(it.formatting="link");var Ut=je(it);return it.linkText=!1,it.inline=it.f=et.match(/\(.*?\)| ?\[.*?\]/,!1)?Qe:Be,Ut}if(Pt==="<"&&et.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){it.f=it.inline=ze,ie.highlightFormatting&&(it.formatting="link");var Ut=je(it);return Ut?Ut+=" ":Ut="",Ut+ce.linkInline}if(Pt==="<"&&et.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){it.f=it.inline=ze,ie.highlightFormatting&&(it.formatting="link");var Ut=je(it);return Ut?Ut+=" ":Ut="",Ut+ce.linkEmail}if(ie.xml&&Pt==="<"&&et.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var pt=et.string.indexOf(">",et.pos);if(pt!=-1){var tt=et.string.substring(et.start,pt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(tt)&&(it.md_inside=!0)}return et.backUp(1),it.htmlState=rt.startState(_e),ue(et,it,Fe)}if(ie.xml&&Pt==="<"&&et.match(/^\/\w*?>/))return it.md_inside=!1,"tag";if(Pt==="*"||Pt==="_"){for(var Ze=1,we=et.pos==1?" ":et.string.charAt(et.pos-2);Ze<3&&et.eat(Pt);)Ze++;var be=et.peek()||" ",Ke=!/\s/.test(be)&&(!ae.test(be)||/\s/.test(we)||ae.test(we)),Xe=!/\s/.test(we)&&(!ae.test(we)||/\s/.test(be)||ae.test(be)),Oe=null,Ue=null;if(Ze%2&&(!it.em&&Ke&&(Pt==="*"||!Xe||ae.test(we))?Oe=!0:it.em==Pt&&Xe&&(Pt==="*"||!Ke||ae.test(be))&&(Oe=!1)),Ze>1&&(!it.strong&&Ke&&(Pt==="*"||!Xe||ae.test(we))?Ue=!0:it.strong==Pt&&Xe&&(Pt==="*"||!Ke||ae.test(be))&&(Ue=!1)),Ue!=null||Oe!=null){ie.highlightFormatting&&(it.formatting=Oe==null?"strong":Ue==null?"em":"strong em"),Oe===!0&&(it.em=Pt),Ue===!0&&(it.strong=Pt);var Et=je(it);return Oe===!1&&(it.em=!1),Ue===!1&&(it.strong=!1),Et}}else if(Pt===" "&&(et.eat("*")||et.eat("_"))){if(et.peek()===" ")return je(it);et.backUp(1)}if(ie.strikethrough){if(Pt==="~"&&et.eatWhile(Pt)){if(it.strikethrough){ie.highlightFormatting&&(it.formatting="strikethrough");var Et=je(it);return it.strikethrough=!1,Et}else if(et.match(/^[^\s]/,!1))return it.strikethrough=!0,ie.highlightFormatting&&(it.formatting="strikethrough"),je(it)}else if(Pt===" "&&et.match(/^~~/,!0)){if(et.peek()===" ")return je(it);et.backUp(2)}}if(ie.emoji&&Pt===":"&&et.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){it.emoji=!0,ie.highlightFormatting&&(it.formatting="emoji");var He=je(it);return it.emoji=!1,He}return Pt===" "&&(et.match(/^ +$/,!1)?it.trailingSpace++:it.trailingSpace&&(it.trailingSpaceNewLine=!0)),je(it)}function ze(et,it){var St=et.next();if(St===">"){it.f=it.inline=Be,ie.highlightFormatting&&(it.formatting="link");var bt=je(it);return bt?bt+=" ":bt="",bt+ce.linkInline}return et.match(/^[^>]+/,!0),ce.linkInline}function Qe(et,it){if(et.eatSpace())return null;var St=et.next();return St==="("||St==="["?(it.f=it.inline=Ye(St==="("?")":"]"),ie.highlightFormatting&&(it.formatting="link-string"),it.linkHref=!0,je(it)):"error"}var $e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ye(et){return function(it,St){var bt=it.next();if(bt===et){St.f=St.inline=Be,ie.highlightFormatting&&(St.formatting="link-string");var Pt=je(St);return St.linkHref=!1,Pt}return it.match($e[et]),St.linkHref=!0,je(St)}}function at(et,it){return et.match(/^([^\]\\]|\\.)*\]:/,!1)?(it.f=ut,et.next(),ie.highlightFormatting&&(it.formatting="link"),it.linkText=!0,je(it)):le(et,it,Be)}function ut(et,it){if(et.match(/^\]:/,!0)){it.f=it.inline=ht,ie.highlightFormatting&&(it.formatting="link");var St=je(it);return it.linkText=!1,St}return et.match(/^([^\]\\]|\\.)+/,!0),ce.linkText}function ht(et,it){return et.eatSpace()?null:(et.match(/^[^\s]+/,!0),et.peek()===void 0?it.linkTitle=!0:et.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),it.f=it.inline=Be,ce.linkHref+" url")}var Ct={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:Be,text:Ne,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(et){return{f:et.f,prevLine:et.prevLine,thisLine:et.thisLine,block:et.block,htmlState:et.htmlState&&rt.copyState(_e,et.htmlState),indentation:et.indentation,localMode:et.localMode,localState:et.localMode?rt.copyState(et.localMode,et.localState):null,inline:et.inline,text:et.text,formatting:!1,linkText:et.linkText,linkTitle:et.linkTitle,linkHref:et.linkHref,code:et.code,em:et.em,strong:et.strong,strikethrough:et.strikethrough,emoji:et.emoji,header:et.header,setext:et.setext,hr:et.hr,taskList:et.taskList,list:et.list,listStack:et.listStack.slice(0),quote:et.quote,indentedCode:et.indentedCode,trailingSpace:et.trailingSpace,trailingSpaceNewLine:et.trailingSpaceNewLine,md_inside:et.md_inside,fencedEndRE:et.fencedEndRE}},token:function(et,it){if(it.formatting=!1,et!=it.thisLine.stream){if(it.header=0,it.hr=!1,et.match(/^\s*$/,!0))return Te(it),null;if(it.prevLine=it.thisLine,it.thisLine={stream:et},it.taskList=!1,it.trailingSpace=0,it.trailingSpaceNewLine=!1,!it.localState&&(it.f=it.block,it.f!=Fe)){var St=et.match(/^\s*/,!0)[0].replace(/\t/g,re).length;if(it.indentation=St,it.indentationDiff=null,St>0)return null}}return it.f(et,it)},innerMode:function(et){return et.block==Fe?{state:et.htmlState,mode:_e}:et.localState?{state:et.localState,mode:et.localMode}:{state:et,mode:Ct}},indent:function(et,it,St){return et.block==Fe&&_e.indent?_e.indent(et.htmlState,it,St):et.localState&&et.localMode.indent?et.localMode.indent(et.localState,it,St):rt.Pass},blankLine:Te,getType:je,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ct},"xml"),rt.defineMIME("text/markdown","markdown"),rt.defineMIME("text/x-markdown","markdown")})},98101:function(bn,an,Ge){(function(rt){rt(Ge(89780))})(function(rt){"use strict";rt.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 vt=0;vt<rt.modeInfo.length;vt++){var ie=rt.modeInfo[vt];ie.mimes&&(ie.mime=ie.mimes[0])}rt.findModeByMIME=function(_e){_e=_e.toLowerCase();for(var Ie=0;Ie<rt.modeInfo.length;Ie++){var ge=rt.modeInfo[Ie];if(ge.mime==_e)return ge;if(ge.mimes){for(var ce=0;ce<ge.mimes.length;ce++)if(ge.mimes[ce]==_e)return ge}}if(/\+xml$/.test(_e))return rt.findModeByMIME("application/xml");if(/\+json$/.test(_e))return rt.findModeByMIME("application/json")},rt.findModeByExtension=function(_e){_e=_e.toLowerCase();for(var Ie=0;Ie<rt.modeInfo.length;Ie++){var ge=rt.modeInfo[Ie];if(ge.ext){for(var ce=0;ce<ge.ext.length;ce++)if(ge.ext[ce]==_e)return ge}}},rt.findModeByFileName=function(_e){for(var Ie=0;Ie<rt.modeInfo.length;Ie++){var ge=rt.modeInfo[Ie];if(ge.file&&ge.file.test(_e))return ge}var ce=_e.lastIndexOf("."),Pe=ce>-1&&_e.substring(ce+1,_e.length);if(Pe)return rt.findModeByExtension(Pe)},rt.findModeByName=function(_e){_e=_e.toLowerCase();for(var Ie=0;Ie<rt.modeInfo.length;Ie++){var ge=rt.modeInfo[Ie];if(ge.name.toLowerCase()==_e)return ge;if(ge.alias){for(var ce=0;ce<ge.alias.length;ce++)if(ge.alias[ce].toLowerCase()==_e)return ge}}}})},67549:function(bn,an,Ge){(function(rt){rt(Ge(89780))})(function(rt){"use strict";rt.defineMode("stex",function(vt,ie){"use strict";function _e(fe,z){fe.cmdState.push(z)}function Ie(fe){return fe.cmdState.length>0?fe.cmdState[fe.cmdState.length-1]:null}function ge(fe){var z=fe.cmdState.pop();z&&z.closeBracket()}function ce(fe){for(var z=fe.cmdState,ee=z.length-1;ee>=0;ee--){var ae=z[ee];if(ae.name!="DEFAULT")return ae}return{styleIdentifier:function(){return null}}}function Pe(fe,z,ee){return function(){this.name=fe,this.bracketNo=0,this.style=z,this.styles=ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ee={};Ee.importmodule=Pe("importmodule","tag",["string","builtin"]),Ee.documentclass=Pe("documentclass","tag",["","atom"]),Ee.usepackage=Pe("usepackage","tag",["atom"]),Ee.begin=Pe("begin","tag",["atom"]),Ee.end=Pe("end","tag",["atom"]),Ee.label=Pe("label","tag",["atom"]),Ee.ref=Pe("ref","tag",["atom"]),Ee.eqref=Pe("eqref","tag",["atom"]),Ee.cite=Pe("cite","tag",["atom"]),Ee.bibitem=Pe("bibitem","tag",["atom"]),Ee.Bibitem=Pe("Bibitem","tag",["atom"]),Ee.RBibitem=Pe("RBibitem","tag",["atom"]),Ee.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ye(fe,z){fe.f=z}function Me(fe,z){var ee;if(fe.match(/^\\[a-zA-Z@]+/)){var ae=fe.current().slice(1);return ee=Ee.hasOwnProperty(ae)?Ee[ae]:Ee.DEFAULT,ee=new ee,_e(z,ee),ye(z,xe),ee.style}if(fe.match(/^\\[$&%#{}_]/)||fe.match(/^\\[,;!\/\\]/))return"tag";if(fe.match("\\["))return ye(z,function(le,ue){return ve(le,ue,"\\]")}),"keyword";if(fe.match("\\("))return ye(z,function(le,ue){return ve(le,ue,"\\)")}),"keyword";if(fe.match("$$"))return ye(z,function(le,ue){return ve(le,ue,"$$")}),"keyword";if(fe.match("$"))return ye(z,function(le,ue){return ve(le,ue,"$")}),"keyword";var re=fe.next();if(re=="%")return fe.skipToEnd(),"comment";if(re=="}"||re=="]"){if(ee=Ie(z),ee)ee.closeBracket(re),ye(z,xe);else return"error";return"bracket"}else return re=="{"||re=="["?(ee=Ee.DEFAULT,ee=new ee,_e(z,ee),"bracket"):/\d/.test(re)?(fe.eatWhile(/[\w.%]/),"atom"):(fe.eatWhile(/[\w\-_]/),ee=ce(z),ee.name=="begin"&&(ee.argument=fe.current()),ee.styleIdentifier())}function ve(fe,z,ee){if(fe.eatSpace())return null;if(ee&&fe.match(ee))return ye(z,Me),"keyword";if(fe.match(/^\\[a-zA-Z@]+/))return"tag";if(fe.match(/^[a-zA-Z]+/))return"variable-2";if(fe.match(/^\\[$&%#{}_]/)||fe.match(/^\\[,;!\/]/)||fe.match(/^[\^_&]/))return"tag";if(fe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(fe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ae=fe.next();return ae=="{"||ae=="}"||ae=="["||ae=="]"||ae=="("||ae==")"?"bracket":ae=="%"?(fe.skipToEnd(),"comment"):"error"}function xe(fe,z){var ee=fe.peek(),ae;return ee=="{"||ee=="["?(ae=Ie(z),ae.openBracket(ee),fe.eat(ee),ye(z,Me),"bracket"):/[ \t\r]/.test(ee)?(fe.eat(ee),null):(ye(z,Me),ge(z),Me(fe,z))}return{startState:function(){var fe=ie.inMathMode?function(z,ee){return ve(z,ee)}:Me;return{cmdState:[],f:fe}},copyState:function(fe){return{cmdState:fe.cmdState.slice(),f:fe.f}},token:function(fe,z){return z.f(fe,z)},blankLine:function(fe){fe.f=Me,fe.cmdState.length=0},lineComment:"%"}}),rt.defineMIME("text/x-stex","stex"),rt.defineMIME("text/x-latex","stex")})},15525:function(bn,an,Ge){(function(rt){rt(Ge(89780))})(function(rt){"use strict";var vt={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},ie={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};rt.defineMode("xml",function(_e,Ie){var ge=_e.indentUnit,ce={},Pe=Ie.htmlMode?vt:ie;for(var Ee in Pe)ce[Ee]=Pe[Ee];for(var Ee in Ie)ce[Ee]=Ie[Ee];var ye,Me;function ve(ze,Qe){function $e(ut){return Qe.tokenize=ut,ut(ze,Qe)}var Ye=ze.next();if(Ye=="<")return ze.eat("!")?ze.eat("[")?ze.match("CDATA[")?$e(z("atom","]]>")):null:ze.match("--")?$e(z("comment","-->")):ze.match("DOCTYPE",!0,!0)?(ze.eatWhile(/[\w\._\-]/),$e(ee(1))):null:ze.eat("?")?(ze.eatWhile(/[\w\._\-]/),Qe.tokenize=z("meta","?>"),"meta"):(ye=ze.eat("/")?"closeTag":"openTag",Qe.tokenize=xe,"tag bracket");if(Ye=="&"){var at;return ze.eat("#")?ze.eat("x")?at=ze.eatWhile(/[a-fA-F\d]/)&&ze.eat(";"):at=ze.eatWhile(/[\d]/)&&ze.eat(";"):at=ze.eatWhile(/[\w\.\-:]/)&&ze.eat(";"),at?"atom":"error"}else return ze.eatWhile(/[^&<]/),null}ve.isInText=!0;function xe(ze,Qe){var $e=ze.next();if($e==">"||$e=="/"&&ze.eat(">"))return Qe.tokenize=ve,ye=$e==">"?"endTag":"selfcloseTag","tag bracket";if($e=="=")return ye="equals",null;if($e=="<"){Qe.tokenize=ve,Qe.state=ue,Qe.tagName=Qe.tagStart=null;var Ye=Qe.tokenize(ze,Qe);return Ye?Ye+" tag error":"tag error"}else return/[\'\"]/.test($e)?(Qe.tokenize=fe($e),Qe.stringStartCol=ze.column(),Qe.tokenize(ze,Qe)):(ze.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function fe(ze){var Qe=function($e,Ye){for(;!$e.eol();)if($e.next()==ze){Ye.tokenize=xe;break}return"string"};return Qe.isInAttribute=!0,Qe}function z(ze,Qe){return function($e,Ye){for(;!$e.eol();){if($e.match(Qe)){Ye.tokenize=ve;break}$e.next()}return ze}}function ee(ze){return function(Qe,$e){for(var Ye;(Ye=Qe.next())!=null;){if(Ye=="<")return $e.tokenize=ee(ze+1),$e.tokenize(Qe,$e);if(Ye==">")if(ze==1){$e.tokenize=ve;break}else return $e.tokenize=ee(ze-1),$e.tokenize(Qe,$e)}return"meta"}}function ae(ze,Qe,$e){this.prev=ze.context,this.tagName=Qe,this.indent=ze.indented,this.startOfLine=$e,(ce.doNotIndent.hasOwnProperty(Qe)||ze.context&&ze.context.noIndent)&&(this.noIndent=!0)}function re(ze){ze.context&&(ze.context=ze.context.prev)}function le(ze,Qe){for(var $e;;){if(!ze.context||($e=ze.context.tagName,!ce.contextGrabbers.hasOwnProperty($e)||!ce.contextGrabbers[$e].hasOwnProperty(Qe)))return;re(ze)}}function ue(ze,Qe,$e){return ze=="openTag"?($e.tagStart=Qe.column(),pe):ze=="closeTag"?Te:ue}function pe(ze,Qe,$e){return ze=="word"?($e.tagName=Qe.current(),Me="tag",Ae):ce.allowMissingTagName&&ze=="endTag"?(Me="tag bracket",Ae(ze,Qe,$e)):(Me="error",pe)}function Te(ze,Qe,$e){if(ze=="word"){var Ye=Qe.current();return $e.context&&$e.context.tagName!=Ye&&ce.implicitlyClosed.hasOwnProperty($e.context.tagName)&&re($e),$e.context&&$e.context.tagName==Ye||ce.matchClosing===!1?(Me="tag",Ce):(Me="tag error",Fe)}else return ce.allowMissingTagName&&ze=="endTag"?(Me="tag bracket",Ce(ze,Qe,$e)):(Me="error",Fe)}function Ce(ze,Qe,$e){return ze!="endTag"?(Me="error",Ce):(re($e),ue)}function Fe(ze,Qe,$e){return Me="error",Ce(ze,Qe,$e)}function Ae(ze,Qe,$e){if(ze=="word")return Me="attribute",je;if(ze=="endTag"||ze=="selfcloseTag"){var Ye=$e.tagName,at=$e.tagStart;return $e.tagName=$e.tagStart=null,ze=="selfcloseTag"||ce.autoSelfClosers.hasOwnProperty(Ye)?le($e,Ye):(le($e,Ye),$e.context=new ae($e,Ye,at==$e.indented)),ue}return Me="error",Ae}function je(ze,Qe,$e){return ze=="equals"?Ne:(ce.allowMissing||(Me="error"),Ae(ze,Qe,$e))}function Ne(ze,Qe,$e){return ze=="string"?Be:ze=="word"&&ce.allowUnquoted?(Me="string",Ae):(Me="error",Ae(ze,Qe,$e))}function Be(ze,Qe,$e){return ze=="string"?Be:Ae(ze,Qe,$e)}return{startState:function(ze){var Qe={tokenize:ve,state:ue,indented:ze||0,tagName:null,tagStart:null,context:null};return ze!=null&&(Qe.baseIndent=ze),Qe},token:function(ze,Qe){if(!Qe.tagName&&ze.sol()&&(Qe.indented=ze.indentation()),ze.eatSpace())return null;ye=null;var $e=Qe.tokenize(ze,Qe);return($e||ye)&&$e!="comment"&&(Me=null,Qe.state=Qe.state(ye||$e,ze,Qe),Me&&($e=Me=="error"?$e+" error":Me)),$e},indent:function(ze,Qe,$e){var Ye=ze.context;if(ze.tokenize.isInAttribute)return ze.tagStart==ze.indented?ze.stringStartCol+1:ze.indented+ge;if(Ye&&Ye.noIndent)return rt.Pass;if(ze.tokenize!=xe&&ze.tokenize!=ve)return $e?$e.match(/^(\s*)/)[0].length:0;if(ze.tagName)return ce.multilineTagIndentPastTag!==!1?ze.tagStart+ze.tagName.length+2:ze.tagStart+ge*(ce.multilineTagIndentFactor||1);if(ce.alignCDATA&&/<!\[CDATA\[/.test(Qe))return 0;var at=Qe&&/^<(\/)?([\w_:\.-]*)/.exec(Qe);if(at&&at[1])for(;Ye;)if(Ye.tagName==at[2]){Ye=Ye.prev;break}else if(ce.implicitlyClosed.hasOwnProperty(Ye.tagName))Ye=Ye.prev;else break;else if(at)for(;Ye;){var ut=ce.contextGrabbers[Ye.tagName];if(ut&&ut.hasOwnProperty(at[2]))Ye=Ye.prev;else break}for(;Ye&&Ye.prev&&!Ye.startOfLine;)Ye=Ye.prev;return Ye?Ye.indent+ge:ze.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ce.htmlMode?"html":"xml",helperType:ce.htmlMode?"html":"xml",skipAttribute:function(ze){ze.state==Ne&&(ze.state=Ae)},xmlCurrentTag:function(ze){return ze.tagName?{name:ze.tagName,close:ze.type=="closeTag"}:null},xmlCurrentContext:function(ze){for(var Qe=[],$e=ze.context;$e;$e=$e.prev)$e.tagName&&Qe.push($e.tagName);return Qe.reverse()}}}),rt.defineMIME("text/xml","xml"),rt.defineMIME("application/xml","xml"),rt.mimeModes.hasOwnProperty("text/html")||rt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(bn,an,Ge){"use strict";Ge.d(an,{$u:function(){return Ee},BD:function(){return Ze},E9:function(){return Pe},FF:function(){return Yr},FJ:function(){return ue},Hn:function(){return le},KX:function(){return Te},NB:function(){return ct},S0:function(){return wt},UL:function(){return ye},Vk:function(){return re},Vm:function(){return ft},YI:function(){return pt},ZA:function(){return ie},Zt:function(){return Me},al:function(){return Oe},bn:function(){return Xe},bx:function(){return we},g2:function(){return tt},h1:function(){return Ne},hD:function(){return xn},l4:function(){return ge},rU:function(){return yt},s_:function(){return be},uz:function(){return Je},z6:function(){return ve}}),bn=Ge.hmd(bn),function(){var ot;function oi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function yi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:oi(a)}}function Pi(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var sr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Ar;if(typeof Object.setPrototypeOf=="function")Ar=Object.setPrototypeOf;else{var Fr;e:{var Si={a:!0},Nr={};try{Nr.__proto__=Si,Fr=Nr.a;break e}catch(a){}Fr=!1}Ar=Fr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var hn=Ar;function cn(a,y){if(a.prototype=sr(y.prototype),a.prototype.constructor=a,hn)hn(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var Ot=typeof Ge.g!="undefined"&&Ge.g!=null?Ge.g:self,gn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},Nn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Xt(a,y){if(y){var x=Ot;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&Nn(x,a,{writable:!0,value:y})}}Xt("Object.assign",function(a){return a||gn}),Xt("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var zt=typeof globalThis=="object"&&globalThis||typeof Ge.g=="object"&&Ge.g.global===Ge.g&&Ge.g||typeof self=="object"&&self.self===self&&self||{};zt.requestAnimationFrame===void 0&&(zt.setImmediate===void 0?zt.requestAnimationFrame=function(a){zt.setTimeout(a,0)}:zt.requestAnimationFrame=zt.setImmediate);function Pn(){}function _n(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&zt.clearTimeout(x),x=qn(function(){x=-1,a.apply(b,E)},y)}}function qn(a,y){return zt.setTimeout(a,y)}function Yn(a){return zt.document.createElement(a)}function $t(a){throw Error(a)}function jn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),$t(a)}function Wn(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),$t(x+" is not in the range "+y+": "+a)}function or(a){zt.console&&zt.console.log(a)}function nn(a){return typeof a=="object"&&a!==null}function Cn(a){return Array.isArray(a)||zt.NodeList&&a instanceof zt.NodeList||zt.HTMLCollection&&a instanceof zt.HTMLCollection}function rn(a){return Array.prototype.slice.call(a)}function mn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):$t("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function En(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):$t("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function pn(){var a=Rr.pop();return a===void 0?[]:a}function kn(a){a.length=0,Rr.push(a)}function Mn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(nn(a)&&a.constructor)return Mn(a.constructor);return typeof a}function zn(a){var y=a;return nn(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Dn(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function ar(a,y,x){Object.defineProperty(Fo.prototype,a,{get:y,set:x})}function dn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var te="",ne=0;ne<a.length;ne++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,te+=String.fromCharCode(a.charCodeAt(ne)^y[(y[x]+y[b])%256]);return te.indexOf("GoJS 2.1 evaluation")>-1||te.indexOf("\xA9 1998-2021 Northwoods Software")>-1||te.indexOf("Not for distribution or production use")>-1||te.indexOf("gojs.net")>-1?"":te}var Or=zt.navigator!==void 0&&0<zt.navigator.userAgent.indexOf("Trident/7"),Jr=zt.navigator!==void 0&&zt.navigator.platform!==void 0&&zt.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Rr=[];Object.freeze([]),Pn.className="Util",Pn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Pn.adym="gojs.net",Pn.vfo="28e645fdb266",Pn.className="Util";function vn(a,y,x){pi(this),this.j=a,this.xa=y,this.o=x}vn.prototype.toString=function(){return"EnumValue."+this.xa};function Jn(a,y){return y==null||y===""?null:a[y]}Ot.Object.defineProperties(vn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),vn.className="EnumValue";function lr(){this.ew=[]}lr.prototype.toString=function(){return this.ew.join("")},lr.prototype.add=function(a){a!==""&&this.ew.push(a)},lr.className="StringBuilder";function vr(){}vr.className="PropertyCollection";var Sr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){zt.console&&zt.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var te=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);te.get!==void 0&&te.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(ne,se){return function(){throw Error("Property "+ne.Zl[se.Tj]+" of "+ne.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function Kr(){}Kr.prototype.reset=function(){},Kr.prototype.next=function(){return!1},Kr.prototype.Ad=function(){return!1},Kr.prototype.first=function(){return null},Kr.prototype.any=function(){return!1},Kr.prototype.all=function(){return!0},Kr.prototype.each=function(){return this},Kr.prototype.map=function(){return this},Kr.prototype.filter=function(){return this},Kr.prototype.de=function(){},Kr.prototype.toString=function(){return"EmptyIterator"},Ot.Object.defineProperties(Kr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Kr.prototype.first=Kr.prototype.first,Kr.prototype.hasNext=Kr.prototype.Ad,Kr.prototype.next=Kr.prototype.next,Kr.prototype.reset=Kr.prototype.reset;var ai=null;Kr.className="EmptyIterator",ai=new Kr;function Br(a){this.key=-1,this.value=a}Br.prototype.reset=function(){this.key=-1},Br.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Br.prototype.Ad=function(){return this.next()},Br.prototype.first=function(){return this.key=0,this.value},Br.prototype.any=function(a){return this.key=-1,a(this.value)},Br.prototype.all=function(a){return this.key=-1,a(this.value)},Br.prototype.each=function(a){return this.key=-1,a(this.value),this},Br.prototype.map=function(a){return new Br(a(this.value))},Br.prototype.filter=function(a){return a(this.value)?new Br(this.value):ai},Br.prototype.de=function(){this.value=null},Br.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Ot.Object.defineProperties(Br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Br.prototype.first=Br.prototype.first,Br.prototype.hasNext=Br.prototype.Ad,Br.prototype.next=Br.prototype.next,Br.prototype.reset=Br.prototype.reset,Br.className="SingletonIterator";function br(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}br.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},br.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},br.prototype.Ad=function(){return this.next()},br.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},br.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];if((b===null||b(te))&&a(te))return!0}return!1},br.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];if((b===null||b(te))&&!a(te))return!1}return!0},br.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];(b===null||b(te))&&a(te)}return this},br.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,te=0;te<b;te++){var ne=y[te];(E===null||E(ne))&&x.push(a(ne))}return a=new Tn,a.s=x,a.xb(),a.iterator},br.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,te=0;te<b;te++){var ne=y[te];(E===null||E(ne))&&a(ne)&&x.push(ne)}return a=new Tn,a.s=x,a.xb(),a.iterator},br.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},br.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Ot.Object.defineProperties(br.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),br.prototype.first=br.prototype.first,br.prototype.hasNext=br.prototype.Ad,br.prototype.next=br.prototype.next,br.prototype.reset=br.prototype.reset,br.className="ListIterator";function si(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}si.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},si.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},si.prototype.Ad=function(){return this.next()},si.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},si.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},si.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},si.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},si.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new Tn,a.s=x,a.xb(),a.iterator},si.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new Tn,a.s=x,a.xb(),a.iterator},si.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},si.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Ot.Object.defineProperties(si.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),si.prototype.first=si.prototype.first,si.prototype.hasNext=si.prototype.Ad,si.prototype.next=si.prototype.next,si.prototype.reset=si.prototype.reset,si.className="ListIteratorBackwards";function Tn(a){pi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&$t("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ot=Tn.prototype,ot.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return this._isFrozen=!1,this},ot.toString=function(){return"List()#"+zi(this)},ot.add=function(a){return a===null?this:(this._isFrozen&&jn(this,a),this.s.push(a),this.xb(),this)},ot.push=function(a){this.add(a)},ot.addAll=function(a){if(a===null)return this;this._isFrozen&&jn(this);var y=this.s;if(Cn(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},ot.clear=function(){this._isFrozen&&jn(this),this.s.length=0,this.xb()},ot.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},ot.has=function(a){return this.contains(a)},ot.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},ot.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Wn(a,"0 <= i < length",Tn,"elt:i"),y[a]},ot.get=function(a){return this.M(a)},ot.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Wn(a,"0 <= i < length",Tn,"setElt:i"),this._isFrozen&&jn(this,a),x[a]=y},ot.set=function(a,y){this.cd(a,y)},ot.first=function(){var a=this.s;return a.length===0?null:a[0]},ot.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},ot.pop=function(){this._isFrozen&&jn(this);var a=this.s;return 0<a.length?a.pop():null},Tn.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},Tn.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},Tn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Tn.prototype.map=function(a){for(var y=new Tn,x=[],b=this.s,E=b.length,te=0;te<E;te++)x.push(a(b[te]));return y.s=x,y.xb(),y},Tn.prototype.filter=function(a){for(var y=new Tn,x=[],b=this.s,E=b.length,te=0;te<E;te++){var ne=b[te];a(ne)&&x.push(ne)}return y.s=x,y.xb(),y},ot=Tn.prototype,ot.Gb=function(a,y){0>a&&Wn(a,">= 0",Tn,"insertAt:i"),this._isFrozen&&jn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},ot.remove=function(a){if(a===null)return!1;this._isFrozen&&jn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},ot.delete=function(a){return this.remove(a)},ot.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Wn(a,"0 <= i < length",Tn,"removeAt:i"),this._isFrozen&&jn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},ot.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&jn(this);for(var E=a,te=y+1;te<b;)x[E++]=x[te++];return x.length=b-(y-a+1),this.xb(),this},Tn.prototype.copy=function(){var a=new Tn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},ot=Tn.prototype,ot.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},ot.Iv=function(){for(var a=new On,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},ot.sort=function(a){return this._isFrozen&&jn(this),this.s.sort(a),this.xb(),this},ot.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&jn(this);var te=x-y;if(1>=te)return this;if((0>y||y>=E-1)&&Wn(y,"0 <= from < length",Tn,"sortRange:from"),te===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},ot.reverse=function(){return this._isFrozen&&jn(this),this.s.reverse(),this.xb(),this},Ot.Object.defineProperties(Tn.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return ai;var a=this.Sa;return a!==null?(a.reset(),a):new br(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return ai;var a=this.Hg;return a!==null?(a.reset(),a):new si(this)}}}),Tn.prototype.reverse=Tn.prototype.reverse,Tn.prototype.sortRange=Tn.prototype.zi,Tn.prototype.sort=Tn.prototype.sort,Tn.prototype.toSet=Tn.prototype.Iv,Tn.prototype.toArray=Tn.prototype.Fa,Tn.prototype.removeRange=Tn.prototype.removeRange,Tn.prototype.removeAt=Tn.prototype.mb,Tn.prototype.delete=Tn.prototype.delete,Tn.prototype.remove=Tn.prototype.remove,Tn.prototype.insertAt=Tn.prototype.Gb,Tn.prototype.pop=Tn.prototype.pop,Tn.prototype.last=Tn.prototype.jc,Tn.prototype.first=Tn.prototype.first,Tn.prototype.set=Tn.prototype.set,Tn.prototype.setElt=Tn.prototype.cd,Tn.prototype.get=Tn.prototype.get,Tn.prototype.elt=Tn.prototype.M,Tn.prototype.indexOf=Tn.prototype.indexOf,Tn.prototype.has=Tn.prototype.has,Tn.prototype.contains=Tn.prototype.contains,Tn.prototype.clear=Tn.prototype.clear,Tn.prototype.addAll=Tn.prototype.addAll,Tn.prototype.push=Tn.prototype.push,Tn.prototype.add=Tn.prototype.add,Tn.prototype.thaw=Tn.prototype.ka,Tn.prototype.freeze=Tn.prototype.freeze,Tn.className="List";function Ri(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ri.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Ri.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Ri.prototype.Ad=function(){return this.next()},Ri.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Ri.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ri.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ri.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Ri.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Ri.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Ri.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Ri.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Ot.Object.defineProperties(Ri.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Ri.prototype.first=Ri.prototype.first,Ri.prototype.hasNext=Ri.prototype.Ad,Ri.prototype.next=Ri.prototype.next,Ri.prototype.reset=Ri.prototype.reset,Ri.className="SetIterator";function On(a){pi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&$t("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ot=On.prototype,ot.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return this._isFrozen=!1,this},ot.toString=function(){return"Set()#"+zi(this)},ot.add=function(a){if(a===null)return this;this._isFrozen&&jn(this,a);var y=a;return nn(a)&&(y=xo(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Mi(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},ot.addAll=function(a){if(a===null)return this;if(this._isFrozen&&jn(this),Cn(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},ot.contains=function(a){if(a===null)return!1;var y=a;return nn(a)&&(y=zi(a),y===void 0)?!1:this.Tb[y]!==void 0},ot.has=function(a){return this.contains(a)},ot.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},ot.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},ot.first=function(){var a=this.ea;return a===null?null:a.value},On.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},On.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},On.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},On.prototype.map=function(a){for(var y=new On,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},On.prototype.filter=function(a){for(var y=new On,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},ot=On.prototype,ot.remove=function(a){if(a===null)return!1;this._isFrozen&&jn(this,a);var y=a;if(nn(a)&&(y=zi(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},ot.delete=function(a){return this.remove(a)},ot.hp=function(a){if(a===null)return this;if(this._isFrozen&&jn(this),Cn(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},ot.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&jn(this);var y=new On;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},ot.clear=function(){this._isFrozen&&jn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},On.prototype.copy=function(){var a=new On,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},On.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},On.prototype.Hv=function(){var a=new Tn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function pi(a){a.__gohashid=Lo++}function xo(a){var y=a.__gohashid;return y===void 0&&(y=Lo++,a.__gohashid=y),y}function zi(a){return a.__gohashid}Ot.Object.defineProperties(On.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return ai;var a=this.Sa;return a!==null?(a.reset(),a):new Ri(this)}}}),On.prototype.toList=On.prototype.Hv,On.prototype.toArray=On.prototype.Fa,On.prototype.clear=On.prototype.clear,On.prototype.retainAll=On.prototype.pA,On.prototype.removeAll=On.prototype.hp,On.prototype.delete=On.prototype.delete,On.prototype.remove=On.prototype.remove,On.prototype.first=On.prototype.first,On.prototype.containsAny=On.prototype.Ty,On.prototype.containsAll=On.prototype.Sy,On.prototype.has=On.prototype.has,On.prototype.contains=On.prototype.contains,On.prototype.addAll=On.prototype.addAll,On.prototype.add=On.prototype.add,On.prototype.thaw=On.prototype.ka,On.prototype.freeze=On.prototype.freeze;var Lo=1;On.className="Set",On.uniqueHash=pi,On.hashIdUnique=xo,On.hashId=zi;function yo(a){this.ma=a,this.qa=a.Ja,this.sa=null}yo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},yo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},yo.prototype.Ad=function(){return this.next()},yo.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},yo.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},yo.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},yo.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},yo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},yo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Tn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},yo.prototype.de=function(){this.value=this.key=null,this.qa=-1},yo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Ot.Object.defineProperties(yo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),yo.prototype.first=yo.prototype.first,yo.prototype.hasNext=yo.prototype.Ad,yo.prototype.next=yo.prototype.next,yo.prototype.reset=yo.prototype.reset,yo.className="MapKeySetIterator";function Ur(a){On.call(this),pi(this),this._isFrozen=!0,this.ma=a}cn(Ur,On),ot=Ur.prototype,ot.freeze=function(){return this},ot.ka=function(){return this},ot.toString=function(){return"MapKeySet("+this.ma.toString()+")"},ot.add=function(){$t("This Set is read-only: "+this.toString())},ot.contains=function(a){return this.ma.contains(a)},ot.has=function(a){return this.contains(a)},ot.remove=function(){$t("This Set is read-only: "+this.toString())},ot.delete=function(a){return this.remove(a)},ot.clear=function(){$t("This Set is read-only: "+this.toString())},ot.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ur.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ur.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ur.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ur.prototype.map=function(a){for(var y=new On,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ur.prototype.filter=function(a){for(var y=new On,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Ur.prototype.copy=function(){return new Ur(this.ma)},Ur.prototype.Iv=function(){var a=new On,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ur.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},Ur.prototype.Hv=function(){var a=new Tn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ot.Object.defineProperties(Ur.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?ai:new yo(this.ma)}}}),Ur.prototype.toList=Ur.prototype.Hv,Ur.prototype.toArray=Ur.prototype.Fa,Ur.prototype.toSet=Ur.prototype.Iv,Ur.prototype.first=Ur.prototype.first,Ur.prototype.clear=Ur.prototype.clear,Ur.prototype.delete=Ur.prototype.delete,Ur.prototype.remove=Ur.prototype.remove,Ur.prototype.has=Ur.prototype.has,Ur.prototype.contains=Ur.prototype.contains,Ur.prototype.add=Ur.prototype.add,Ur.prototype.thaw=Ur.prototype.ka,Ur.prototype.freeze=Ur.prototype.freeze,Ur.className="MapKeySet";function Gr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Gr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Gr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Gr.prototype.Ad=function(){return this.next()},Gr.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Gr.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Gr.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Gr.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Gr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Gr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Tn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Gr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Gr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Ot.Object.defineProperties(Gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Gr.prototype.first=Gr.prototype.first,Gr.prototype.hasNext=Gr.prototype.Ad,Gr.prototype.next=Gr.prototype.next,Gr.prototype.reset=Gr.prototype.reset,Gr.className="MapValueSetIterator";function Mi(a,y){this.key=a,this.value=y,this.ll=this.va=null}Mi.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Mi.className="KeyValuePair";function Hi(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Hi.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Hi.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},Hi.prototype.Ad=function(){return this.next()},Hi.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},Hi.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Hi.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Hi.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},Hi.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Hi.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Hi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Hi.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Ot.Object.defineProperties(Hi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Hi.prototype.first=Hi.prototype.first,Hi.prototype.hasNext=Hi.prototype.Ad,Hi.prototype.next=Hi.prototype.next,Hi.prototype.reset=Hi.prototype.reset,Hi.className="MapIterator";function cr(a){pi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&$t("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ot=cr.prototype,ot.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return this._isFrozen=!1,this},ot.toString=function(){return"Map()#"+zi(this)},ot.add=function(a,y){this._isFrozen&&jn(this,a);var x=a;nn(a)&&(x=xo(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Mi(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):b.value=y,this},ot.set=function(a,y){return this.add(a,y)},ot.addAll=function(a){if(a===null)return this;if(Cn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof cr)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},ot.first=function(){return this.ea},cr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},cr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},cr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},cr.prototype.map=function(a){for(var y=new cr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},cr.prototype.filter=function(a){for(var y=new cr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},ot=cr.prototype,ot.contains=function(a){var y=a;return nn(a)&&(y=zi(a),y===void 0)?!1:this.Tb[y]!==void 0},ot.has=function(a){return this.contains(a)},ot.I=function(a){var y=a;return nn(a)&&(y=zi(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},ot.get=function(a){return this.I(a)},ot.remove=function(a){if(a===null)return!1;this._isFrozen&&jn(this,a);var y=a;if(nn(a)&&(y=zi(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},ot.delete=function(a){return this.remove(a)},ot.clear=function(){this._isFrozen&&jn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},cr.prototype.copy=function(){var a=new cr,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},cr.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new Mi(E.key,E.value),x++}return y},cr.prototype.Lf=function(){return new Ur(this)},Ot.Object.defineProperties(cr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return ai;var a=this.Sa;return a!==null?(a.reset(),a):new Hi(this)}},iteratorKeys:{get:function(){return 0>=this.count?ai:new yo(this)}},iteratorValues:{get:function(){if(0>=this.count)return ai;var a=this.jf;return a!==null?(a.reset(),a):new Gr(this)}}}),cr.prototype.toKeySet=cr.prototype.Lf,cr.prototype.toArray=cr.prototype.Fa,cr.prototype.clear=cr.prototype.clear,cr.prototype.delete=cr.prototype.delete,cr.prototype.remove=cr.prototype.remove,cr.prototype.get=cr.prototype.get,cr.prototype.getValue=cr.prototype.I,cr.prototype.has=cr.prototype.has,cr.prototype.contains=cr.prototype.contains,cr.prototype.first=cr.prototype.first,cr.prototype.addAll=cr.prototype.addAll,cr.prototype.set=cr.prototype.set,cr.prototype.add=cr.prototype.add,cr.prototype.thaw=cr.prototype.ka,cr.prototype.freeze=cr.prototype.freeze,cr.className="Map";function Lt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):$t("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Ii,_r,Ir,_i,Ji;Lt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Lt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Lt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Lt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Lt.prototype.copy=function(){var a=new Lt;return a.x=this.x,a.y=this.y,a},ot=Lt.prototype,ot.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ot.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return Object.isFrozen(this)&&$t("cannot thaw constant: "+this),this._isFrozen=!1,this};function zr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Lt(x,E)}return new Lt}function Vr(a){return a.x.toString()+" "+a.y.toString()}ot.toString=function(){return"Point("+this.x+","+this.y+")"},ot.D=function(a){return a instanceof Lt?this.x===a.x&&this.y===a.y:!1},ot.hi=function(a,y){return this.x===a&&this.y===y},ot.Xa=function(a){return Qt.B(this.x,a.x)&&Qt.B(this.y,a.y)},ot.add=function(a){return this.x+=a.x,this.y+=a.y,this},ot.re=function(a){return this.x-=a.x,this.y-=a.y,this},ot.offset=function(a,y){return this.x+=a,this.y+=y,this},Lt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},ot=Lt.prototype,ot.scale=function(a,y){return this.x*=a,this.y*=y,this},ot.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},ot.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},ot.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},ot.ab=function(a){return Ci(a.x-this.x,a.y-this.y)},ot.direction=function(a,y){return Ci(a-this.x,y-this.y)};function Ci(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}ot.Ry=function(a,y){return Qt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},ot.fA=function(a,y,x,b){return Qt.qh(a,y,x,b,this.x,this.y,this),this},ot.gA=function(a,y){return Qt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},ot.uA=function(a,y,x,b){return Qt.No(this.x,this.y,a,y,x,b,this),this},ot.vA=function(a,y){return Qt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},ot.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},ot.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},ot.transform=function(a){return a.Ga(this),this};function mi(a,y){return y.Cd(a),a}function Vi(a,y,x,b,E,te){var ne=E-x,se=te-b,he=ne*ne+se*se;x-=a,b-=y;var me=-x*ne-b*se;return 0>=me||me>=he?(ne=E-a,se=te-y,Math.min(x*x+b*b,ne*ne+se*se)):(a=ne*b-se*x,a*a/he)}function io(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Hr(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}ot.w=function(){return isFinite(this.x)&&isFinite(this.y)},Lt.alloc=function(){var a=Er.pop();return a===void 0?new Lt:a},Lt.allocAt=function(a,y){var x=Er.pop();return x===void 0?new Lt(a,y):(x.x=a,x.y=y,x)},Lt.free=function(a){Er.push(a)},Lt.prototype.isReal=Lt.prototype.w,Lt.prototype.setSpot=Lt.prototype.yi,Lt.prototype.setRectSpot=Lt.prototype.xi,Lt.prototype.snapToGridPoint=Lt.prototype.vA,Lt.prototype.snapToGrid=Lt.prototype.uA,Lt.prototype.projectOntoLineSegmentPoint=Lt.prototype.gA,Lt.prototype.projectOntoLineSegment=Lt.prototype.fA,Lt.intersectingLineSegments=function(a,y,x,b,E,te,ne,se){return Qt.Rl(a,y,x,b,E,te,ne,se)},Lt.prototype.compareWithLineSegmentPoint=Lt.prototype.Ry,Lt.compareWithLineSegment=function(a,y,x,b,E,te){return Qt.Fl(a,y,x,b,E,te)},Lt.prototype.direction=Lt.prototype.direction,Lt.prototype.directionPoint=Lt.prototype.ab,Lt.prototype.normalize=Lt.prototype.normalize,Lt.prototype.distanceSquared=Lt.prototype.zd,Lt.prototype.distanceSquaredPoint=Lt.prototype.Bf,Lt.prototype.scale=Lt.prototype.scale,Lt.prototype.rotate=Lt.prototype.rotate,Lt.prototype.offset=Lt.prototype.offset,Lt.prototype.subtract=Lt.prototype.re,Lt.prototype.add=Lt.prototype.add,Lt.prototype.equalsApprox=Lt.prototype.Xa,Lt.prototype.equalTo=Lt.prototype.hi,Lt.prototype.equals=Lt.prototype.D,Lt.prototype.set=Lt.prototype.set,Lt.prototype.setTo=Lt.prototype.sg;var Er=[];Lt.className="Point",Lt.parse=zr,Lt.stringify=Vr,Lt.distanceLineSegmentSquared=Vi,Lt.distanceSquared=io,Lt.direction=Hr,Lt.Origin=Ii=new Lt(0,0).ja(),Lt.InfiniteTopLeft=_r=new Lt(-1/0,-1/0).ja(),Lt.InfiniteBottomRight=Ir=new Lt(1/0,1/0).ja(),Lt.SixPoint=_i=new Lt(6,6).ja(),Lt.NoPoint=Ji=new Lt(NaN,NaN).ja(),Lt.parse=zr,Lt.stringify=Vr,Lt.distanceLineSegmentSquared=Vi,Lt.distanceSquared=io,Lt.direction=Hr;function Kn(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):$t("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var li,Qi,zo,Mo,Uo,ca,Jo;Kn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Kn.prototype.h=function(a,y){return this.width=a,this.height=y,this},Kn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Kn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Kn.prototype.copy=function(){var a=new Kn;return a.width=this.width,a.height=this.height,a},ot=Kn.prototype,ot.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ot.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return Object.isFrozen(this)&&$t("cannot thaw constant: "+this),this._isFrozen=!1,this};function qa(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Kn(x,E)}return new Kn}function La(a){return a.width.toString()+" "+a.height.toString()}ot.toString=function(){return"Size("+this.width+","+this.height+")"},ot.D=function(a){return a instanceof Kn?this.width===a.width&&this.height===a.height:!1},ot.hi=function(a,y){return this.width===a&&this.height===y},ot.Xa=function(a){return Qt.B(this.width,a.width)&&Qt.B(this.height,a.height)},ot.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},ot.w=function(){return isFinite(this.width)&&isFinite(this.height)},Kn.alloc=function(){var a=es.pop();return a===void 0?new Kn:a},Kn.free=function(a){es.push(a)},Kn.prototype.isReal=Kn.prototype.w,Kn.prototype.inflate=Kn.prototype.Bc,Kn.prototype.equalsApprox=Kn.prototype.Xa,Kn.prototype.equalTo=Kn.prototype.hi,Kn.prototype.equals=Kn.prototype.D,Kn.prototype.set=Kn.prototype.set,Kn.prototype.setTo=Kn.prototype.sg;var es=[];Kn.className="Size",Kn.parse=qa,Kn.stringify=La,Kn.ZeroSize=li=new Kn(0,0).ja(),Kn.OneSize=Qi=new Kn(1,1).ja(),Kn.SixSize=zo=new Kn(6,6).ja(),Kn.EightSize=Mo=new Kn(8,8).ja(),Kn.TenSize=Uo=new Kn(10,10).ja(),Kn.InfiniteSize=ca=new Kn(1/0,1/0).ja(),Kn.NoSize=Jo=new Kn(NaN,NaN).ja(),Kn.parse=qa,Kn.stringify=La;function wn(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof Lt?(x=a.x,a=a.y,y instanceof Lt?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof Kn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):$t("Incorrect second argument supplied to Rect constructor "+y)):$t("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}ot=wn.prototype,ot.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ot.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function ma(a,y,x){a.width=y,a.height=x}ot.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},ot.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ot.dd=function(a){return this.x=a.x,this.y=a.y,this},ot.tA=function(a){return this.width=a.width,this.height=a.height,this},wn.prototype.copy=function(){var a=new wn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},ot=wn.prototype,ot.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ot.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return Object.isFrozen(this)&&$t("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ql(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var te=0;a[y]==="";)y++;(b=a[y++])&&(te=parseFloat(b));for(var ne=0;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),new wn(x,E,te,ne)}return new wn}function el(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}ot.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},ot.D=function(a){return a instanceof wn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},ot.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},ot.Xa=function(a){return Qt.B(this.x,a.x)&&Qt.B(this.y,a.y)&&Qt.B(this.width,a.width)&&Qt.B(this.height,a.height)};function So(a,y){return Qt.$(a.x,y.x)&&Qt.$(a.y,y.y)&&Qt.$(a.width,y.width)&&Qt.$(a.height,y.height)}ot.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},ot.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},ot.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},ot.offset=function(a,y){return this.x+=a,this.y+=y,this},ot.Bc=function(a,y){return ro(this,y,a,y,a)},ot.Co=function(a){return ro(this,a.top,a.right,a.bottom,a.left)},ot.Fv=function(a){return ro(this,-a.top,-a.right,-a.bottom,-a.left)},ot.Hz=function(a,y,x,b){return ro(this,a,y,x,b)};function ro(a,y,x,b,E){var te=a.width;return x+E<=-te?(a.x+=te/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}ot.Ex=function(a){return va(this,a.x,a.y,a.width,a.height)},ot.Uu=function(a,y,x,b){return va(this,a,y,x,b)};function va(a,y,x,b,E){var te=Math.max(a.x,y),ne=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=te,a.y=ne,a.width=Math.max(0,y-te),a.height=Math.max(0,x-ne),a}ot.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},ot.Vu=function(a,y,x,b){var E=this.width,te=this.x;return E!==1/0&&x!==1/0&&(E+=te,x+=a,isNaN(x)||isNaN(E)||te>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function Io(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}ot.Ye=function(a){return qi(this,a.x,a.y,0,0)},ot.ed=function(a){return qi(this,a.x,a.y,a.width,a.height)},ot.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),qi(this,a,y,x,b)};function qi(a,y,x,b,E){var te=Math.min(a.x,y),ne=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=te,a.y=ne,a.width=y-te,a.height=x-ne,a}ot.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function No(a,y,x,b,E,te,ne,se){return ne===void 0&&(ne=0),se===void 0&&(se=0),a<=E&&E+ne<=a+x&&y<=te&&te+se<=y+b}function xs(a,y,x,b,E,te,ne,se){return a>ne+E||E>x+a?!1:!(y>se+te||te>b+y)}ot.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},ot.Mz=function(){return this.width===0&&this.height===0},wn.alloc=function(){var a=ao.pop();return a===void 0?new wn:a},wn.allocAt=function(a,y,x,b){var E=ao.pop();return E===void 0?new wn(a,y,x,b):E.h(a,y,x,b)},wn.free=function(a){ao.push(a)},Ot.Object.defineProperties(wn.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Lt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Kn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Lt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),wn.prototype.isEmpty=wn.prototype.Mz,wn.prototype.isReal=wn.prototype.w,wn.intersectsLineSegment=function(a,y,x,b,E,te,ne,se){return Qt.Fx(a,y,x,b,E,te,ne,se)},wn.prototype.setSpot=wn.prototype.yi,wn.prototype.union=wn.prototype.Kv,wn.prototype.unionRect=wn.prototype.ed,wn.prototype.unionPoint=wn.prototype.Ye,wn.prototype.intersects=wn.prototype.Vu,wn.prototype.intersectsRect=wn.prototype.Yc,wn.prototype.intersect=wn.prototype.Uu,wn.prototype.intersectRect=wn.prototype.Ex,wn.prototype.grow=wn.prototype.Hz,wn.prototype.subtractMargin=wn.prototype.Fv,wn.prototype.addMargin=wn.prototype.Co,wn.prototype.inflate=wn.prototype.Bc,wn.prototype.offset=wn.prototype.offset,wn.prototype.contains=wn.prototype.contains,wn.prototype.containsRect=wn.prototype.Re,wn.prototype.containsPoint=wn.prototype.ca,wn.prototype.equalsApprox=wn.prototype.Xa,wn.prototype.equalTo=wn.prototype.hi,wn.prototype.equals=wn.prototype.D,wn.prototype.setSize=wn.prototype.tA,wn.prototype.setPoint=wn.prototype.dd,wn.prototype.set=wn.prototype.set,wn.prototype.setTo=wn.prototype.sg;var bi=null,lo=null,ao=[];wn.className="Rect",wn.parse=Ql,wn.stringify=el,wn.contains=No,wn.intersects=xs,wn.ZeroRect=bi=new wn(0,0,0,0).ja(),wn.NoRect=lo=new wn(NaN,NaN,NaN,NaN).ja(),wn.parse=Ql,wn.stringify=el,wn.contains=No,wn.intersects=xs;function Tr(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):$t("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Tr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Tr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Tr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Tr.prototype.copy=function(){var a=new Tr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},ot=Tr.prototype,ot.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ot.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return Object.isFrozen(this)&&$t("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ba(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new Tr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Tr(x);for(var te=NaN;a[y]==="";)y++;if((b=a[y++])&&(te=parseFloat(b)),isNaN(te))return new Tr(x,E);for(var ne=NaN;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),isNaN(ne)?new Tr(x,E):new Tr(x,E,te,ne)}return new Tr}function Ra(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}ot.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},ot.D=function(a){return a instanceof Tr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},ot.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},ot.Xa=function(a){return Qt.B(this.top,a.top)&&Qt.B(this.right,a.right)&&Qt.B(this.bottom,a.bottom)&&Qt.B(this.left,a.left)},ot.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Tr.alloc=function(){var a=ql.pop();return a===void 0?new Tr:a},Tr.free=function(a){ql.push(a)},Tr.prototype.isReal=Tr.prototype.w,Tr.prototype.equalsApprox=Tr.prototype.Xa,Tr.prototype.equalTo=Tr.prototype.hi,Tr.prototype.equals=Tr.prototype.D,Tr.prototype.set=Tr.prototype.set,Tr.prototype.setTo=Tr.prototype.sg;var Cs=null,Il=null,ql=[];Tr.className="Margin",Tr.parse=Ba,Tr.stringify=Ra,Tr.ZeroMargin=Cs=new Tr(0,0,0,0).ja(),Tr.TwoMargin=Il=new Tr(2,2,2,2).ja(),Tr.parse=Ba,Tr.stringify=Ra;function yr(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var aa,Wa,Pl,Dl,Fl,Di,mc,tl,nl,As,Eu,Ru,_s,dl,$c,hh,Gc,Hh,Hc,vc,_u,Bl,dh,Uc,yc,oo,Do,Es,Xa,_a,ha,Ea,Ka,za,zu,Rl;yr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},yr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},yr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},yr.prototype.copy=function(){var a=new yr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},ot=yr.prototype,ot.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ot.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return Object.isFrozen(this)&&$t("cannot thaw constant: "+this),this._isFrozen=!1,this};function ka(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function wd(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return aa;if(a==="TopLeft")return Wa;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Pl;if(a==="TopRight")return Dl;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Fl;if(a==="Center")return Di;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return mc;if(a==="BottomLeft")return tl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return nl;if(a==="BottomRight")return As;if(a==="TopSide")return Eu;if(a==="LeftSide")return Ru;if(a==="RightSide")return _s;if(a==="BottomSide")return dl;if(a==="TopBottomSides")return $c;if(a==="LeftRightSides")return hh;if(a==="TopLeftSides")return Gc;if(a==="TopRightSides")return Hh;if(a==="BottomLeftSides")return Hc;if(a==="BottomRightSides")return vc;if(a==="NotTopSide")return _u;if(a==="NotLeftSide")return Bl;if(a==="NotRightSide")return dh;if(a==="NotBottomSide")return Uc;if(a==="AllSides")return yc;if(a==="Default")return oo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var te=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(te=parseFloat(b));for(var ne=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ne=parseFloat(b)),new yr(x,E,te,ne)}return new yr}function bd(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}ot.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(aa)?"None":this.D(Wa)?"TopLeft":this.D(Pl)?"Top":this.D(Dl)?"TopRight":this.D(Fl)?"Left":this.D(Di)?"Center":this.D(mc)?"Right":this.D(tl)?"BottomLeft":this.D(nl)?"Bottom":this.D(As)?"BottomRight":this.D(Eu)?"TopSide":this.D(Ru)?"LeftSide":this.D(_s)?"RightSide":this.D(dl)?"BottomSide":this.D($c)?"TopBottomSides":this.D(hh)?"LeftRightSides":this.D(Gc)?"TopLeftSides":this.D(Hh)?"TopRightSides":this.D(Hc)?"BottomLeftSides":this.D(vc)?"BottomRightSides":this.D(_u)?"NotTopSide":this.D(Bl)?"NotLeftSide":this.D(dh)?"NotRightSide":this.D(Uc)?"NotBottomSide":this.D(yc)?"AllSides":this.D(oo)?"Default":"None"},ot.D=function(a){return a instanceof yr?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},ot.gv=function(){return new yr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},ot.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Do))a=Ru;else if(a.D(Es))a=_s;else if(a.D(Xa))a=Eu;else if(a.D(_a))a=dl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},ot.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},ot.Mc=function(){return isNaN(this.x)||isNaN(this.y)},ot.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},ot.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},ot.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},yr.alloc=function(){var a=Wc.pop();return a===void 0?new yr:a},yr.free=function(a){Wc.push(a)},yr.prototype.isDefault=yr.prototype.Xb,yr.prototype.isNone=yr.prototype.ys,yr.prototype.isSide=yr.prototype.$c,yr.prototype.isNoSpot=yr.prototype.Mc,yr.prototype.isSpot=yr.prototype.sb,yr.prototype.includesSide=yr.prototype.Hf,yr.prototype.opposite=yr.prototype.gv,yr.prototype.equals=yr.prototype.D,yr.prototype.set=yr.prototype.set,yr.prototype.setTo=yr.prototype.sg;var Wc=[];yr.className="Spot",yr.parse=wd,yr.stringify=bd,yr.None=aa=ka(new yr(0,0,0,0),0).ja(),yr.Default=oo=ka(new yr(0,0,-1,0),-1).ja(),yr.TopLeft=Wa=new yr(0,0,0,0).ja(),yr.TopCenter=Pl=new yr(.5,0,0,0).ja(),yr.TopRight=Dl=new yr(1,0,0,0).ja(),yr.LeftCenter=Fl=new yr(0,.5,0,0).ja(),yr.Center=Di=new yr(.5,.5,0,0).ja(),yr.RightCenter=mc=new yr(1,.5,0,0).ja(),yr.BottomLeft=tl=new yr(0,1,0,0).ja(),yr.BottomCenter=nl=new yr(.5,1,0,0).ja(),yr.BottomRight=As=new yr(1,1,0,0).ja(),yr.MiddleTop=ha=Pl,yr.MiddleLeft=Ea=Fl,yr.MiddleRight=Ka=mc,yr.MiddleBottom=za=nl,yr.Top=Xa=Pl,yr.Left=Do=Fl,yr.Right=Es=mc,yr.Bottom=_a=nl,yr.TopSide=Eu=ka(new yr(0,0,1,1),1).ja(),yr.LeftSide=Ru=ka(new yr(0,0,1,2),1).ja(),yr.RightSide=_s=ka(new yr(0,0,1,4),1).ja(),yr.BottomSide=dl=ka(new yr(0,0,1,8),1).ja(),yr.TopBottomSides=$c=ka(new yr(0,0,1,9),1).ja(),yr.LeftRightSides=hh=ka(new yr(0,0,1,6),1).ja(),yr.TopLeftSides=Gc=ka(new yr(0,0,1,3),1).ja(),yr.TopRightSides=Hh=ka(new yr(0,0,1,5),1).ja(),yr.BottomLeftSides=Hc=ka(new yr(0,0,1,10),1).ja(),yr.BottomRightSides=vc=ka(new yr(0,0,1,12),1).ja(),yr.NotTopSide=_u=ka(new yr(0,0,1,14),1).ja(),yr.NotLeftSide=Bl=ka(new yr(0,0,1,13),1).ja(),yr.NotRightSide=dh=ka(new yr(0,0,1,11),1).ja(),yr.NotBottomSide=Uc=ka(new yr(0,0,1,7),1).ja(),yr.AllSides=yc=ka(new yr(0,0,1,15),1).ja(),zu=new yr(.156,.156).ja(),Rl=new yr(.844,.844).ja(),yr.parse=wd,yr.stringify=bd;function gi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}gi.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},gi.prototype.setTransform=function(a,y,x,b,E,te){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=te,this},gi.prototype.copy=function(){var a=new gi;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},gi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},gi.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},gi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},gi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},gi.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},gi.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,te=a.m11*y,ne=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*te,E=this.m12*E+this.m22*te,this.dx=this.m11*ne+this.m21*a+this.dx,this.dy=this.m12*ne+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},gi.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),te=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=te,this},gi.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,te=this.m11*-b+this.m21*a,ne=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=te,this.m22=ne,this.translate(-y,-x),this},ot=gi.prototype,ot.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},ot.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},ot.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},ot.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},ot.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},ot.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,te=this.m11,ne=this.m12,se=this.m21,he=this.m22,me=this.dx,Se=this.dy,De=y*te+x*se+me,We=y*ne+x*he+Se,qe=b*te+x*se+me,nt=b*ne+x*he+Se;return x=y*te+E*se+me,y=y*ne+E*he+Se,te=b*te+E*se+me,b=b*ne+E*he+Se,E=Math.min(De,qe),De=Math.max(De,qe),qe=Math.min(We,nt),We=Math.max(We,nt),E=Math.min(E,x),De=Math.max(De,x),qe=Math.min(qe,y),We=Math.max(We,y),E=Math.min(E,te),De=Math.max(De,te),qe=Math.min(qe,b),We=Math.max(We,b),a.h(E,qe,De-E,We-qe),a},gi.alloc=function(){var a=fh.pop();return a===void 0?new gi:a},gi.free=function(a){fh.push(a)},gi.prototype.transformRect=gi.prototype.pp,gi.prototype.transformPoint=gi.prototype.Ga,gi.prototype.scale=gi.prototype.scale,gi.prototype.translate=gi.prototype.translate,gi.prototype.rotate=gi.prototype.rotate,gi.prototype.invert=gi.prototype.Vj,gi.prototype.multiplyInverted=gi.prototype.bv,gi.prototype.multiply=gi.prototype.multiply,gi.prototype.reset=gi.prototype.reset,gi.prototype.isIdentity=gi.prototype.ws,gi.prototype.equals=gi.prototype.D,gi.prototype.setTransform=gi.prototype.setTransform,gi.prototype.set=gi.prototype.set;var fh=[];gi.className="Transform",gi.xF="54a702f3e53909c447824c6706603faf4c";var Qt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Qt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Qt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,te,ne){if(0>=E&&(E=1e-6),a<x)var se=a,he=x;else se=x,he=a;if(y<b)var me=y,Se=b;else me=b,Se=y;if(a===x)return me<=ne&&ne<=Se&&a-E<=te&&te<=a+E;if(y===b)return se<=te&&te<=he&&y-E<=ne&&ne<=y+E;if(he+=E,se-=E,se<=te&&te<=he&&(Se+=E,me-=E,me<=ne&&ne<=Se))if(he-se>Se-me)if(a-x>E||x-a>E){if(te=(b-y)/(x-a)*(te-a)+y,te-E<=ne&&ne<=te+E)return!0}else return!0;else if(y-b>E||b-y>E){if(ne=(x-a)/(b-y)*(ne-y)+a,ne-E<=te&&te<=ne+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,te,ne,se,he,me,Se,De){if(Qt.Yb(a,y,ne,se,De,x,b)&&Qt.Yb(a,y,ne,se,De,E,te))return Qt.Yb(a,y,ne,se,De,me,Se);var We=(a+x)/2,qe=(y+b)/2,nt=(x+E)/2,lt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(We+nt)/2,x=(qe+lt)/2,nt=(nt+E)/2,lt=(lt+te)/2;var At=(b+nt)/2,Tt=(x+lt)/2;return Qt.cs(a,y,We,qe,b,x,At,Tt,he,me,Se,De)||Qt.cs(At,Tt,nt,lt,E,te,ne,se,he,me,Se,De)},ax:function(a,y,x,b,E,te,ne,se,he){var me=(x+E)/2,Se=(b+te)/2;return he.h((((a+x)/2+me)/2+(me+(E+ne)/2)/2)/2,(((y+b)/2+Se)/2+(Se+(te+se)/2)/2)/2),he},My:function(a,y,x,b,E,te,ne,se){var he=(x+E)/2,me=(b+te)/2;return Hr(((a+x)/2+he)/2,((y+b)/2+me)/2,(he+(E+ne)/2)/2,(me+(te+se)/2)/2)},Dl:function(a,y,x,b,E,te,ne,se,he,me){if(Qt.Yb(a,y,ne,se,he,x,b)&&Qt.Yb(a,y,ne,se,he,E,te))qi(me,a,y,0,0),qi(me,ne,se,0,0);else{var Se=(a+x)/2,De=(y+b)/2,We=(x+E)/2,qe=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Se+We)/2,x=(De+qe)/2,We=(We+E)/2,qe=(qe+te)/2;var nt=(b+We)/2,lt=(x+qe)/2;Qt.Dl(a,y,Se,De,b,x,nt,lt,he,me),Qt.Dl(nt,lt,We,qe,E,te,ne,se,he,me)}return me},Qe:function(a,y,x,b,E,te,ne,se,he,me){if(Qt.Yb(a,y,ne,se,he,x,b)&&Qt.Yb(a,y,ne,se,he,E,te))me.length===0&&(me.push(a),me.push(y)),me.push(ne),me.push(se);else{var Se=(a+x)/2,De=(y+b)/2,We=(x+E)/2,qe=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Se+We)/2,x=(De+qe)/2,We=(We+E)/2,qe=(qe+te)/2;var nt=(b+We)/2,lt=(x+qe)/2;Qt.Qe(a,y,Se,De,b,x,nt,lt,he,me),Qt.Qe(nt,lt,We,qe,E,te,ne,se,he,me)}return me},jv:function(a,y,x,b,E,te,ne,se,he,me){if(Qt.Yb(a,y,E,te,me,x,b))return Qt.Yb(a,y,E,te,me,se,he);var Se=(a+x)/2,De=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var We=(Se+x)/2,qe=(De+b)/2;return Qt.jv(a,y,Se,De,We,qe,ne,se,he,me)||Qt.jv(We,qe,x,b,E,te,ne,se,he,me)},OA:function(a,y,x,b,E,te,ne){return ne.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+te)/2)/2),ne},iv:function(a,y,x,b,E,te,ne,se){if(Qt.Yb(a,y,E,te,ne,x,b))qi(se,a,y,0,0),qi(se,E,te,0,0);else{var he=(a+x)/2,me=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Se=(he+x)/2,De=(me+b)/2;Qt.iv(a,y,he,me,Se,De,ne,se),Qt.iv(Se,De,x,b,E,te,ne,se)}return se},ep:function(a,y,x,b,E,te,ne,se){if(Qt.Yb(a,y,E,te,ne,x,b))se.length===0&&(se.push(a),se.push(y)),se.push(E),se.push(te);else{var he=(a+x)/2,me=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Se=(he+x)/2,De=(me+b)/2;Qt.ep(a,y,he,me,Se,De,ne,se),Qt.ep(Se,De,x,b,E,te,ne,se)}return se},Eo:function(a,y,x,b,E,te,ne,se,he,me,Se,De,We,qe){if(Qt.Yb(a,y,ne,se,We,x,b)&&Qt.Yb(a,y,ne,se,We,E,te))return!Qt.Rl(a,y,ne,se,he,me,Se,De)||(We=(a-ne)*(me-De)-(y-se)*(he-Se),We===0)?!1:(qe.h(((a*se-y*ne)*(he-Se)-(a-ne)*(he*De-me*Se))/We,((a*se-y*ne)*(me-De)-(y-se)*(he*De-me*Se))/We),!0);var nt=(a+x)/2,lt=(y+b)/2,At=(x+E)/2,Tt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(nt+At)/2,x=(lt+Tt)/2,At=(At+E)/2,Tt=(Tt+te)/2;var Bt=(b+At)/2,_t=(x+Tt)/2,Gt=1/0,Zt=!1,un=0,er=0;return Qt.Eo(a,y,nt,lt,b,x,Bt,_t,he,me,Se,De,We,qe)&&(a=(qe.x-he)*(qe.x-he)+(qe.y-me)*(qe.y-me),a<Gt&&(Gt=a,Zt=!0,un=qe.x,er=qe.y)),Qt.Eo(Bt,_t,At,Tt,E,te,ne,se,he,me,Se,De,We,qe)&&(qe.x-he)*(qe.x-he)+(qe.y-me)*(qe.y-me)<Gt&&(Zt=!0,un=qe.x,er=qe.y),Zt&&(qe.x=un,qe.y=er),Zt},Fo:function(a,y,x,b,E,te,ne,se,he,me,Se,De,We){var qe=0;if(Qt.Yb(a,y,ne,se,We,x,b)&&Qt.Yb(a,y,ne,se,We,E,te)){if(We=(a-ne)*(me-De)-(y-se)*(he-Se),We===0)return qe;var nt=((a*se-y*ne)*(he-Se)-(a-ne)*(he*De-me*Se))/We,lt=((a*se-y*ne)*(me-De)-(y-se)*(he*De-me*Se))/We;if(nt>=Se)return qe;if((he>Se?he-Se:Se-he)<(me>De?me-De:De-me)){if(y<se?(he=y,a=se):(he=se,a=y),lt<he||lt>a)return qe}else if(a<ne?(he=a,a=ne):he=ne,nt<he||nt>a)return qe;0<We?qe++:0>We&&qe--}else{nt=(a+x)/2,lt=(y+b)/2;var At=(x+E)/2,Tt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(nt+At)/2,x=(lt+Tt)/2,At=(At+E)/2,Tt=(Tt+te)/2;var Bt=(b+At)/2,_t=(x+Tt)/2;qe+=Qt.Fo(a,y,nt,lt,b,x,Bt,_t,he,me,Se,De,We),qe+=Qt.Fo(Bt,_t,At,Tt,E,te,ne,se,he,me,Se,De,We)}return qe},qh:function(a,y,x,b,E,te,ne){return Qt.$(a,x)?(y<b?(x=y,y=b):x=b,te<x?(ne.h(a,x),!1):te>y?(ne.h(a,y),!1):(ne.h(a,te),!0)):Qt.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(ne.h(b,y),!1):E>a?(ne.h(a,y),!1):(ne.h(E,y),!0)):(E=((a-E)*(a-x)+(y-te)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(ne.h(a,y),!1):1.000005<E?(ne.h(x,b),!1):(ne.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,te,ne,se,he){return Qt.B(a,x)&&Qt.B(y,b)?(he.h(a,y),!1):Qt.$(E,ne)?Qt.$(a,x)?(Qt.qh(a,y,x,b,E,te,he),!1):Qt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,he):(se=(se-te)/(ne-E),Qt.$(a,x)?(x=se*(a-E)+te,y<b?(E=y,y=b):E=b,x<E?(he.h(a,E),!1):x>y?(he.h(a,y),!1):(he.h(a,x),!0)):(ne=(b-y)/(x-a),Qt.$(se,ne)?(Qt.qh(a,y,x,b,E,te,he),!1):(E=(ne*a-se*E+te-y)/(ne-se),Qt.$(ne,0)?(a<x?(b=a,a=x):b=x,E<b?(he.h(b,y),!1):E>a?(he.h(a,y),!1):(he.h(E,y),!0)):Qt.qh(a,y,x,b,E,ne*(E-a)+y,he))))},MA:function(a,y,x,b,E){return Qt.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,te,ne,se,he,me){function Se(At,Tt){var Bt=(At-a)*(At-a)+(Tt-y)*(Tt-y);Bt<De&&(De=Bt,he.h(At,Tt))}var De=1/0;Se(he.x,he.y);var We=0,qe=0,nt=0,lt=0;if(E<ne?(We=E,qe=ne):(We=ne,qe=E),te<se?(nt=E,lt=ne):(nt=ne,lt=E),We=(qe-We)/2+me,me=(lt-nt)/2+me,E=(E+ne)/2,te=(te+se)/2,We===0||me===0)return he;if(.5>(x>a?x-a:a-x)){if(We=1-(x-E)*(x-E)/(We*We),0>We)return he;We=Math.sqrt(We),b=-me*We+te,Se(x,me*We+te),Se(x,b)}else{if(x=(b-y)/(x-a),b=1/(We*We)+x*x/(me*me),se=2*x*(y-x*a)/(me*me)-2*x*te/(me*me)-2*E/(We*We),We=se*se-4*b*(2*x*a*te/(me*me)-2*y*te/(me*me)+te*te/(me*me)+E*E/(We*We)-1+(y-x*a)*(y-x*a)/(me*me)),0>We)return he;We=Math.sqrt(We),me=(-se+We)/(2*b),Se(me,x*me-x*a+y),We=(-se-We)/(2*b),Se(We,x*We-x*a+y)}return he},Ff:function(a,y,x,b,E,te,ne,se,he){var me=1e21,Se=a,De=y;if(Qt.Ve(a,y,a,b,E,te,ne,se,he)){var We=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te);We<me&&(me=We,Se=he.x,De=he.y)}return Qt.Ve(x,y,x,b,E,te,ne,se,he)&&(We=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),We<me&&(me=We,Se=he.x,De=he.y)),Qt.Ve(a,y,x,y,E,te,ne,se,he)&&(y=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),y<me&&(me=y,Se=he.x,De=he.y)),Qt.Ve(a,b,x,b,E,te,ne,se,he)&&(a=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),a<me&&(me=a,Se=he.x,De=he.y)),he.h(Se,De),1e21>me},us:function(a,y,x){return Qt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,te,ne,se){var he=a+x,me=y+b;return E===ne?(te<se?(ne=te,te=se):ne=se,a<=E&&E<=he&&ne<=me&&te>=y):te===se?(E<ne?(se=E,E=ne):se=ne,y<=te&&te<=me&&se<=he&&E>=a):!!(No(a,y,x,b,E,te)||No(a,y,x,b,ne,se)||Qt.Rl(a,y,he,y,E,te,ne,se)||Qt.Rl(he,y,he,me,E,te,ne,se)||Qt.Rl(he,me,a,me,E,te,ne,se)||Qt.Rl(a,me,a,y,E,te,ne,se))},Rl:function(a,y,x,b,E,te,ne,se){return a===x&&y===b&&E===ne&&te===se?a===E&&y===te:0>=Qt.Fl(a,y,x,b,E,te)*Qt.Fl(a,y,x,b,ne,se)&&0>=Qt.Fl(E,te,ne,se,a,y)*Qt.Fl(E,te,ne,se,x,b)},Fl:function(a,y,x,b,E,te){return x-=a,b-=y,a=E-a,y=te-y,te=a*b-y*x,te===0&&(te=a*x+y*b,0<te&&(te=(a-x)*x+(y-b)*b,0>te&&(te=0))),te},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,te){var ne=Math.PI;te||(b*=ne/180,E*=ne/180);var se=b>E?-1:1;te=[];var he=ne/2,me=b;if(b=Math.min(2*ne,Math.abs(E-b)),1e-5>b)return he=me+se*Math.min(b,he),se=a+x*Math.cos(me),me=y+x*Math.sin(me),a+=x*Math.cos(he),y+=x*Math.sin(he),x=(se+a)/2,he=(me+y)/2,te.push([se,me,x,he,x,he,a,y]),te;for(;1e-5<b;)E=me+se*Math.min(b,he),te.push(Qt.Vy(x,me,E,a,y)),b-=Math.abs(E-me),me=E;return te},Vy:function(a,y,x,b,E){var te=(x-y)/2,ne=a*Math.cos(te),se=a*Math.sin(te),he=-se,me=ne*ne+he*he,Se=me+ne*ne+he*se;return me=4/3*(Math.sqrt(2*me*Se)-Se)/(ne*se-he*ne),se=ne-me*he,ne=he+me*ne,he=-ne,me=te+y,te=Math.cos(me),me=Math.sin(me),[b+a*Math.cos(y),E+a*Math.sin(y),b+se*te-ne*me,E+se*me+ne*te,b+se*te-he*me,E+se*me+he*te,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,te,ne){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/te)*te+b;var se=x;return x+E-a<E/2&&(se=x+E),a=b,b+te-y<te/2&&(a=b+te),ne.h(se,a),ne},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,te=0>b;if(a<y)var ne=1,se=0;else ne=0,se=1;var he=ne===0?a:y,me=ne===0?x:b;return(ne===0?E:te)&&(me=-me),ne=se,x=ne===0?x:b,(ne===0?E:te)&&(x=-x),Qt.az(he,ne===0?a:y,me,x,0,0)},az:function(a,y,x,b,E,te){if(0<b)if(0<x){E=a*a,te=y*y,a*=x;var ne=y*b,se=-te+ne,he=-te+Math.sqrt(a*a+ne*ne);y=se;for(var me=0;9999999999>me&&(y=.5*(se+he),!(y===se||y===he));++me){var Se=a/(y+E),De=ne/(y+te);if(Se=Se*Se+De*De-1,0<Se)se=y;else if(0>Se)he=y;else break}x=E*x/(y+E)-x,b=te*b/(y+te)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,te=a*x,te<b?(b=te/b,te=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+te*te)):x=Math.abs(x-a);return x},Ze:new vr,um:new vr,Mf:new vr,Nf:0,vm:100};Qt.za=Qt.AA;function Vn(a){pi(this),this.l=2,a===void 0&&(a=Vn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Vn.o?this.ee=new Tn:(Vn.V===null&&(Vn.V=new Tn().freeze()),this.ee=Vn.V),this.aq=this.ee.Ja,this.Ip=new wn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Wa,this.gg=As,this.Rk=this.Sk=NaN,this.Uf=$n}Vn.prototype.copy=function(){var a=new Vn;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===Vn.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Vn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Vn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Vn.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},Vn.prototype.ka=function(){if(Object.isFrozen(this)&&$t("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Vn.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Vn.prototype.Xa=function(a){if(!(a instanceof Vn))return!1;if(this.type!==a.type)return this.type===Vn.j&&a.type===Vn.o?Pd(this,a):a.type===Vn.j&&this.type===Vn.o?Pd(a,this):!1;if(this.type===Vn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Qt.B(this.startX,a.startX)&&Qt.B(this.startY,a.startY)&&Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)};function Pd(a,y){return a.type!==Vn.j||y.type!==Vn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Qt.B(a.startX,y.startX)&&Qt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Po&&Qt.B(a.endX,y.endX)&&Qt.B(a.endY,y.endY))))}Vn.ia=function(a){return a.toString()},Vn.prototype.qb=function(a){a.classType===Vn&&(this.type=a)},Vn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Vn.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Vn.u:var y=new wn(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Vn.F:if(y=new wn(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case Vn.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var te=x[E];0<E&&(y+=" x "),te.isFilled&&(y+="F "),y+=te.toString(a)}return y;default:return this.type.toString()}},Vn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},Vn.parse=function(a,y){function x(){return lt>=Gt-1?!0:me[lt+1].match(Zt)!==null}function b(){return lt++,me[lt]}function E(Qr){var Wr=parseFloat(b()),Xi=parseFloat(b());At===At.toLowerCase()&&(Wr=_t.x+Wr,Xi=_t.y+Xi),Qr.h(Wr,Xi)}function te(){return E(_t),_t}function ne(){return E(Bt),Bt}function se(){var Qr=Tt.toLowerCase();return Qr!=="c"&&Qr!=="s"&&Qr!=="q"&&Qr!=="t"?_t:new Lt(2*_t.x-Bt.x,2*_t.y-Bt.y)}y===void 0&&(y=!1);var he=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(he,"$1 $2"),a=a.replace(he,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var me=a.split(" ");for(a=0;a<me.length;a++){var Se=me[a];if(Se.match(/(\.[0-9]*)(\.)/gm)!==null){he=pn();for(var De="",We=!1,qe=0;qe<Se.length;qe++){var nt=Se[qe];nt!=="."||We?nt==="."?(he.push(De),De="."):De+=nt:(We=!0,De+=nt)}for(he.push(De),me.splice(a,1),Se=0;Se<he.length;Se++)me.splice(a+Se,0,he[Se]);a+=he.length-1,kn(he)}}var lt=-1,At="",Tt="";he=new Lt(0,0);var Bt=new Lt(0,0),_t=new Lt(0,0),Gt=me.length;a=N1(null),We=De=Se=!1,qe=!0,nt=null;for(var Zt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(lt>=Gt-1);)if(Tt=At,At=b(),At!=="")switch(At.toUpperCase()){case"X":qe=!0,De=Se=!1;break;case"M":for(nt=te(),a.mc===null||qe===!0?(yp(a,nt.x,nt.y,Se,!De,We),qe=!1):a.moveTo(nt.x,nt.y),he.assign(_t);!x();)nt=te(),a.lineTo(nt.x,nt.y);break;case"L":for(;!x();)nt=te(),a.lineTo(nt.x,nt.y);break;case"H":for(;!x();)_t=new Lt((At===At.toLowerCase()?_t.x:0)+parseFloat(b()),_t.y),a.lineTo(_t.x,_t.y);break;case"V":for(;!x();)_t=new Lt(_t.x,(At===At.toLowerCase()?_t.y:0)+parseFloat(b())),a.lineTo(_t.x,_t.y);break;case"C":for(;!x();){nt=new Lt,E(nt);var un=ne(),er=te();Eh(a,nt.x,nt.y,un.x,un.y,er.x,er.y)}break;case"S":for(;!x();)nt=se(),un=ne(),er=te(),Eh(a,nt.x,nt.y,un.x,un.y,er.x,er.y);break;case"Q":for(;!x();)nt=ne(),un=te(),Gm(a,nt.x,nt.y,un.x,un.y);break;case"T":for(;!x();)Bt=nt=se(),un=te(),Gm(a,nt.x,nt.y,un.x,un.y);break;case"B":for(;!x();){nt=parseFloat(b()),un=parseFloat(b()),er=parseFloat(b());var ur=parseFloat(b()),ir=parseFloat(b()),Hn=ir,An=!1;x()||(Hn=parseFloat(b()),x()||(An=parseFloat(b())!==0)),At===At.toLowerCase()&&(er+=_t.x,ur+=_t.y),a.arcTo(nt,un,er,ur,ir,Hn,An)}break;case"A":for(;!x();)nt=Math.abs(parseFloat(b())),un=Math.abs(parseFloat(b())),er=parseFloat(b()),ir=ur=!1,An=Hn=0,Hn=b(),Hn.length===1?(ur=!!parseFloat(Hn),ir=!!parseFloat(b()),Hn=parseFloat(b())):Hn.length===2?(ur=!!parseFloat(Hn[0]),ir=!!parseFloat(Hn[1]),Hn=parseFloat(b())):(ur=!!parseFloat(Hn[0]),ir=!!parseFloat(Hn[1]),Hn=parseFloat(Hn.slice(2))),An=parseFloat(b()),At===At.toLowerCase()&&(Hn=_t.x+Hn,An=_t.y+An),_t.h(Hn,An),Px(a,nt,un,er,ur,ir,Hn,An);break;case"Z":bx(a),_t.assign(he);break;case"F":for(nt="",un=1;me[lt+un];)if(me[lt+un]==="0")We=!0,un++;else if(me[lt+un].match(/[Uu]/)!==null)un++;else if(me[lt+un].match(Zt)===null)un++;else{nt=me[lt+un];break}nt.match(/[Mm]/)?Se=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(nt="",un=1;me[lt+un];)if(me[lt+un].match(/[Ff]/)!==null)un++;else if(me[lt+un].match(Zt)===null)un++;else{nt=me[lt+un];break}nt.match(/[Mm]/)?De=!0:a.mc.isShadowed=!1}if(he=a.os,Hm=a,y)for(y=he.figures.iterator;y.next();)y.value.isFilled=!0;return he},Vn.Ha=function(a,y){for(var x=a.length,b=Lt.alloc(),E=0;E<x;E++){var te=a[E];b.x=te[0],b.y=te[1],y.Ga(b),te[0]=b.x,te[1]=b.y,b.x=te[2],b.y=te[3],y.Ga(b),te[2]=b.x,te[3]=b.y,b.x=te[4],b.y=te[5],y.Ga(b),te[4]=b.x,te[5]=b.y,b.x=te[6],b.y=te[7],y.Ga(b),te[6]=b.x,te[7]=b.y}Lt.free(b)},Vn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Vn.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},Vn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Vn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var te=0;te<E;te++){var ne=b[te];ne._isInvalidBounds=!1,ne.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),af(this,a,!1),qi(a,0,0,0,0),a.freeze()},Vn.prototype.ix=function(){var a=new wn;return af(this,a,!0),a};function af(a,y,x){switch(a.type){case Vn.j:case Vn.u:case Vn.F:x?y.h(a.od,a.pd,0,0):qi(y,a.od,a.pd,0,0),qi(y,a.Dc,a.Ec,0,0);break;case Vn.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var te=a[E];x&&E===0?y.h(te.startX,te.startY,0,0):qi(y,te.startX,te.startY,0,0);for(var ne=te.segments.s,se=ne.length,he=te.startX,me=te.startY,Se=0;Se<se;Se++){var De=ne[Se];switch(De.type){case Po:case ya:he=De.endX,me=De.endY,qi(y,he,me,0,0);break;case ss:Qt.Dl(he,me,De.point1X,De.point1Y,De.point2X,De.point2Y,De.endX,De.endY,.5,y),he=De.endX,me=De.endY;break;case Cl:Qt.iv(he,me,De.point1X,De.point1Y,De.endX,De.endY,.5,y),he=De.endX,me=De.endY;break;case da:case _l:var We=De.type===da?rl(De,te):zs(De,te,he,me),qe=We.length;if(qe===0){he=De.type===da?De.centerX:De.endX,me=De.type===da?De.centerY:De.endY,qi(y,he,me,0,0);break}De=null;for(var nt=0;nt<qe;nt++)De=We[nt],Qt.Dl(De[0],De[1],De[2],De[3],De[4],De[5],De[6],De[7],.5,y);De!==null&&(he=De[6],me=De[7]);break;default:$t("Unknown Segment type: "+De.type)}}}break;default:$t("Unknown Geometry type: "+a.type)}}Vn.prototype.normalize=function(){this._isFrozen&&jn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Lt(-a.x,-a.y)},Vn.prototype.offset=function(a,y){return this._isFrozen&&jn(this),this.transform(1,0,0,1,a,y),this},Vn.prototype.scale=function(a,y){return this._isFrozen&&jn(this),this.transform(a,0,0,y,0,0),this},Vn.prototype.rotate=function(a,y,x){this._isFrozen&&jn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=gi.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),gi.free(b),this},ot=Vn.prototype,ot.transform=function(a,y,x,b,E,te){switch(this.type){case Vn.j:case Vn.u:case Vn.F:var ne=this.od,se=this.pd;this.od=ne*a+se*x+E,this.pd=ne*y+se*b+te,ne=this.Dc,se=this.Ec,this.Dc=ne*a+se*x+E,this.Ec=ne*y+se*b+te;break;case Vn.o:for(var he=this.figures.s,me=he.length,Se=0;Se<me;Se++){var De=he[Se];ne=De.startX,se=De.startY,De.startX=ne*a+se*x+E,De.startY=ne*y+se*b+te,De=De.segments.s;for(var We=De.length,qe=0;qe<We;qe++){var nt=De[qe];switch(nt.type){case Po:case ya:ne=nt.endX,se=nt.endY,nt.endX=ne*a+se*x+E,nt.endY=ne*y+se*b+te;break;case ss:ne=nt.point1X,se=nt.point1Y,nt.point1X=ne*a+se*x+E,nt.point1Y=ne*y+se*b+te,ne=nt.point2X,se=nt.point2Y,nt.point2X=ne*a+se*x+E,nt.point2Y=ne*y+se*b+te,ne=nt.endX,se=nt.endY,nt.endX=ne*a+se*x+E,nt.endY=ne*y+se*b+te;break;case Cl:ne=nt.point1X,se=nt.point1Y,nt.point1X=ne*a+se*x+E,nt.point1Y=ne*y+se*b+te,ne=nt.endX,se=nt.endY,nt.endX=ne*a+se*x+E,nt.endY=ne*y+se*b+te;break;case da:ne=nt.centerX,se=nt.centerY,nt.centerX=ne*a+se*x+E,nt.centerY=ne*y+se*b+te,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),nt.startAngle+=ne),0>a&&(nt.startAngle=180-nt.startAngle,nt.sweepAngle=-nt.sweepAngle),0>b&&(nt.startAngle=-nt.startAngle,nt.sweepAngle=-nt.sweepAngle),nt.radiusX*=Math.sqrt(a*a+x*x),nt.radiusY!==void 0&&(nt.radiusY*=Math.sqrt(y*y+b*b));break;case _l:if(ne=nt.endX,se=nt.endY,nt.endX=ne*a+se*x+E,nt.endY=ne*y+se*b+te,nt.radiusX===0||nt.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),nt.xAxisRotation+=ne),0>a&&(nt.xAxisRotation=180-nt.xAxisRotation,nt.isClockwiseArc=!nt.isClockwiseArc),0>b&&(nt.xAxisRotation=-nt.xAxisRotation,nt.isClockwiseArc=!nt.isClockwiseArc),nt.radiusX*=Math.sqrt(a*a+x*x),nt.radiusY*=Math.sqrt(y*y+b*b);break;default:$t("Unknown Segment type: "+nt.type)}}}}return this._isInvalidBounds=!0,this},ot.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,te=this.Ec;switch(this.type){case Vn.j:return Qt.Yb(x,b,E,te,y,a.x,a.y);case Vn.u:var ne=wn.allocAt(Math.min(x,E)-y,Math.min(b,te)-y,Math.abs(E-x)+2*y,Math.abs(te-b)+2*y);return a=ne.ca(a),wn.free(ne),a;case Vn.F:ne=Math.min(x,E)-y;var se=Math.min(b,te)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(te-b)+2*y)/2,0>=x||0>=y?!1:(ne=a.x-(ne+x),se=a.y-(se+y),1>=ne*ne/(x*x)+se*se/(y*y));case Vn.o:return $u(this,a,y,!0,!1);default:return!1}};function $u(a,y,x,b,E){var te=y.x;y=y.y;for(var ne=a.bounds.x-20,se=0,he,me,Se,De,We=a.figures.s,qe=We.length,nt=0;nt<qe;nt++){var lt=We[nt],At=!lt.isEvenOdd;if(lt.isFilled){if(b&<.ca(te,y,x))return!0;var Tt=lt.segments;he=lt.startX,me=lt.startY;for(var Bt=he,_t=me,Gt=Tt.s,Zt=0;Zt<=Tt.length;Zt++){var un=void 0;if(Zt!==Tt.length){un=Gt[Zt];var er=un.type;a=un.endX,De=un.endY}else er=Po,a=Bt,De=_t;switch(er){case ya:if(Bt=Gu(te,y,ne,y,he,me,Bt,_t),isNaN(Bt))return!0;se+=Bt,Bt=a,_t=De;break;case Po:if(he=Gu(te,y,ne,y,he,me,a,De),isNaN(he))return!0;se+=he;break;case ss:Se=Qt.Fo(he,me,un.point1X,un.point1Y,un.point2X,un.point2Y,a,De,ne,y,te,y,.5),se+=Se;break;case Cl:Se=Qt.Fo(he,me,(he+2*un.point1X)/3,(me+2*un.point1Y)/3,(2*un.point1X+a)/3,(2*un.point1Y+De)/3,a,De,ne,y,te,y,.5),se+=Se;break;case da:case _l:er=un.type===da?rl(un,lt):zs(un,lt,he,me);var ur=er.length;if(ur===0){if(he=Gu(te,y,ne,y,he,me,un.type===da?un.centerX:un.endX,un.type===da?un.centerY:un.endY),isNaN(he))return!0;se+=he;break}un=null;for(var ir=0;ir<ur;ir++){if(un=er[ir],ir===0){if(Se=Gu(te,y,ne,y,he,me,un[0],un[1]),isNaN(Se))return!0;se+=Se}Se=Qt.Fo(un[0],un[1],un[2],un[3],un[4],un[5],un[6],un[7],ne,y,te,y,.5),se+=Se}un!==null&&(a=un[6],De=un[7]);break;default:$t("Unknown Segment type: "+un.type)}he=a,me=De}if(At){if(se!==0)return!0}else if(se%2!==0)return!0;se=0}else if(lt.ca(te,y,E?x:x+2))return!0}return!1}function Gu(a,y,x,b,E,te,ne,se){if(Qt.Yb(E,te,ne,se,.05,a,y))return NaN;var he=(a-x)*(te-se);if(he===0)return 0;var me=((a*b-y*x)*(E-ne)-(a-x)*(E*se-te*ne))/he;if(y=(a*b-y*x)*(te-se)/he,me>=a)return 0;if((E>ne?E-ne:ne-E)<(te>se?te-se:se-te)){if(te<se){if(y<te||y>se)return 0}else if(y<se||y>te)return 0}else if(E<ne){if(me<E||me>ne)return 0}else if(me<ne||me>E)return 0;return 0<he?1:-1}function ic(a,y,x,b){a=a.figures.s;for(var E=a.length,te=0;te<E;te++)if(a[te].ca(y,x,b))return!0;return!1}ot.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Lt),this.type===Vn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,te=this.flattenedTotalLength*a,ne=0,se=0;se<E;se++){var he=b[se],me=he.length;for(a=0;a<me;a++){var Se=he[a];if(ne+Se>=te)return b=te-ne,b=Se===0?0:b/Se,x=x[se],se=x[2*a],E=x[2*a+1],y.h(se+(x[2*a+2]-se)*b,E+(x[2*a+3]-E)*b),y;ne+=Se}}return y},ot.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Vn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,te=0,ne=0;ne<b;ne++){var se=x[ne],he=se.length;for(a=0;a<he;a++){var me=se[a];if(te+me>=E)return E=y[ne],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;te+=me}}return NaN},ot.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Vn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,te=this.flattenedTotalLength*a,ne=0,se=0;se<E;se++){var he=b[se],me=he.length;for(a=0;a<me;a++){var Se=he[a];if(ne+Se>=te)return b=te-ne,b=Se===0?0:b/Se,Se=x[se],x=Se[2*a],se=Se[2*a+1],E=Se[2*a+2],a=Se[2*a+3],y[0]=x+(E-x)*b,y[1]=se+(a-se)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-se)?0:1>Math.abs(E-x)?0<=a-se?90:270:1>Math.abs(a-se)?0<=E-x?0:180:180*Math.atan2(a-se,E-x)/Math.PI,y;ne+=Se}}return y},ot.xx=function(a){if(this.type===Vn.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var te=a.x;if(a=a.y,y===b){if(x<E){var ne=x;b=E}else ne=E,b=x;return a<=ne?ne===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-ne)}if(x===E)return y<b?ne=y:(ne=b,b=y),te<=ne?ne===y?0:1:te>=b?b===y?0:1:Math.abs(te-y)/(b-ne);ne=(b-y)*(b-y)+(E-x)*(E-x);var se=Lt.alloc();return Qt.qh(y,x,b,E,te,a,se),a=se.x,te=se.y,Lt.free(se),Math.sqrt(((a-y)*(a-y)+(te-x)*(te-x))/ne)}}else if(this.type===Vn.u){ne=this.startX,se=this.startY;var he=this.endX;if(E=this.endY,ne!==he||se!==E){y=he-ne,x=E-se,te=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,ne),he),a=Math.min(Math.max(a,se),E),ne=Math.abs(b-ne),he=Math.abs(b-he),se=Math.abs(a-se),E=Math.abs(a-E);var me=Math.min(ne,he,se,E);if(me===se)return b/te;if(me===he)return(y+a)/te;if(me===E)return(2*y+x-b)/te;if(me===ne)return(2*y+2*x-a)/te}}else{y=this.flattenedSegments,x=this.flattenedLengths,te=this.flattenedTotalLength,b=Lt.alloc(),E=1/0,se=ne=0,he=y.length;for(var Se=me=0,De=0;De<he;De++)for(var We=y[De],qe=x[De],nt=We.length,lt=0;lt<nt;lt+=2){var At=We[lt],Tt=We[lt+1];if(lt!==0){Qt.qh(me,Se,At,Tt,a.x,a.y,b);var Bt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Bt<E&&(E=Bt,ne=se,ne+=Math.sqrt((b.x-me)*(b.x-me)+(b.y-Se)*(b.y-Se))),se+=qe[(lt-2)/2]}me=At,Se=Tt}return Lt.free(b),a=ne/te,0>a?0:1<a?1:a}return 0};function Cd(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Vn.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===Vn.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===Vn.F){var te=new $a;te.startX=a.endX,te.startY=(a.startY+a.endY)/2;var ne=new Ui(da);if(ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(a.startX+a.endX)/2,ne.centerY=(a.startY+a.endY)/2,ne.radiusX=Math.abs(a.startX-a.endX)/2,ne.radiusY=Math.abs(a.startY-a.endY)/2,te.add(ne),a=rl(ne,te),E=a.length,E===0)b.push(ne.centerX),b.push(ne.centerY);else{ne=te.startX,te=te.startY;for(var se=0;se<E;se++){var he=a[se];Qt.Qe(ne,te,he[2],he[3],he[4],he[5],he[6],he[7],.5,b),ne=he[6],te=he[7]}}y.push(b),x.push(ph(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),ne=E.startX,te=E.startY,se=ne,he=te;for(var me=E.segments.s,Se=me.length,De=0;De<Se;De++){var We=me[De];switch(We.type){case ya:4<=b.length&&(y.push(b),x.push(ph(b))),b=[],b.push(We.endX),b.push(We.endY),ne=We.endX,te=We.endY,se=ne,he=te;break;case Po:b.push(We.endX),b.push(We.endY),ne=We.endX,te=We.endY;break;case ss:Qt.Qe(ne,te,We.point1X,We.point1Y,We.point2X,We.point2Y,We.endX,We.endY,.5,b),ne=We.endX,te=We.endY;break;case Cl:Qt.ep(ne,te,We.point1X,We.point1Y,We.endX,We.endY,.5,b),ne=We.endX,te=We.endY;break;case da:var qe=rl(We,E),nt=qe.length;if(nt===0){b.push(We.centerX),b.push(We.centerY),ne=We.centerX,te=We.centerY;break}for(var lt=0;lt<nt;lt++){var At=qe[lt];Qt.Qe(ne,te,At[2],At[3],At[4],At[5],At[6],At[7],.5,b),ne=At[6],te=At[7]}break;case _l:if(qe=zs(We,E,ne,te),nt=qe.length,lt=We.endX,At=We.endY,nt===0){b.push(lt),b.push(At),ne=lt,te=At;break}for(lt=0;lt<nt;lt++)At=qe[lt],Qt.Qe(ne,te,At[2],At[3],At[4],At[5],At[6],At[7],.5,b),ne=At[6],te=At[7];break;default:$t("Segment not of valid type: "+We.type)}We.isClosed&&(b.push(se),b.push(he))}4<=b.length&&(y.push(b),x.push(ph(b)))}}}function ph(a){for(var y=[],x=0,b=0,E=a.length,te=0;te<E;te+=2){var ne=a[te],se=a[te+1];te!==0&&y.push(Math.sqrt(io(x,b,ne,se))),x=ne,b=se}return y}ot.add=function(a){return this.ee.add(a),this},ot.pm=function(a,y,x,b,E,te,ne,se){return this._isFrozen&&jn(this),this.fg=new yr(a,y,E,te).freeze(),this.gg=new yr(x,b,ne,se).freeze(),this},Ot.Object.defineProperties(Vn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Cd(this),this.tk}},flattenedLengths:{get:function(){return Cd(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Vn.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===Vn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],te=E.length,ne=0;ne<te;ne++)a+=E[ne]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&jn(this,a),this.na=a,a===Vn.o?this.ee=new Tn:(Vn.V===null&&(Vn.V=new Tn().freeze()),this.ee=Vn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&jn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&jn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&jn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&jn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&jn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&jn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&jn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&jn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Vn.prototype.setSpots=Vn.prototype.pm,Vn.prototype.add=Vn.prototype.add,Vn.prototype.getFractionForPoint=Vn.prototype.xx,Vn.prototype.getPointAndAngleAlongPath=Vn.prototype.Qu,Vn.prototype.getAngleAlongPath=Vn.prototype.wx,Vn.prototype.getPointAlongPath=Vn.prototype.Pu,Vn.prototype.containsPoint=Vn.prototype.ca,Vn.prototype.transform=Vn.prototype.transform,Vn.prototype.rotate=Vn.prototype.rotate,Vn.prototype.scale=Vn.prototype.scale,Vn.prototype.offset=Vn.prototype.offset,Vn.prototype.normalize=Vn.prototype.normalize,Vn.prototype.computeBoundsWithoutOrigin=Vn.prototype.ix,Vn.prototype.equalsApprox=Vn.prototype.Xa,Vn.className="Geometry",Vn.j=new vn(Vn,"Line",0),Vn.u=new vn(Vn,"Rectangle",1),Vn.F=new vn(Vn,"Ellipse",2),Vn.o=new vn(Vn,"Path",3),Vn.V=null,Vn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Vn.className="Geometry",Vn.stringify=Vn.ia,Vn.fillPath=Vn.nb,Vn.parse=Vn.parse,Vn.Line=Vn.j,Vn.Rectangle=Vn.u,Vn.Ellipse=Vn.F,Vn.Path=Vn.o;function $a(a,y,x,b,E){pi(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Tn,this.sr=this.pl.Ja,this.fw=null}$a.prototype.copy=function(){var a=new $a;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var te=y[E].copy();b.add(te)}return a.sr=this.sr,a.fw=this.fw,a},ot=$a.prototype,ot.Xa=function(a){if(!(a instanceof $a&&Qt.B(this.startX,a.startX)&&Qt.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},ot.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},ot.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},ot.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},ot.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},ot.add=function(a){return this.pl.add(a),this},ot.ca=function(a,y,x){for(var b=this.startX,E=this.startY,te=b,ne=E,se=this.segments.s,he=se.length,me=0;me<he;me++){var Se=se[me];switch(Se.type){case ya:te=Se.endX,ne=Se.endY,b=Se.endX,E=Se.endY;break;case Po:if(Qt.Yb(b,E,Se.endX,Se.endY,x,a,y))return!0;b=Se.endX,E=Se.endY;break;case ss:if(Qt.cs(b,E,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.5,a,y,x))return!0;b=Se.endX,E=Se.endY;break;case Cl:if(Qt.jv(b,E,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,a,y,x))return!0;b=Se.endX,E=Se.endY;break;case da:case _l:var De=Se.type===da?rl(Se,this):zs(Se,this,b,E),We=De.length,qe=Se.type===da?Se.centerX:Se.endX,nt=Se.type===da?Se.centerY:Se.endY;if(We===0){if(Qt.Yb(b,E,qe,nt,x,a,y))return!0;b=qe,E=nt;break}for(qe=null,nt=0;nt<We;nt++)if(qe=De[nt],nt===0&&Qt.Yb(b,E,qe[0],qe[1],x,a,y)||Qt.cs(qe[0],qe[1],qe[2],qe[3],qe[4],qe[5],qe[6],qe[7],.5,a,y,x))return!0;qe!==null&&(b=qe[6],E=qe[7]);break;default:$t("Unknown Segment type: "+Se.type)}if(Se.isClosed&&(b!==te||E!==ne)&&Qt.Yb(b,E,te,ne,x,a,y))return!0}return!1},Ot.Object.defineProperties($a.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&jn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&jn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&jn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&jn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&jn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&jn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),$a.prototype.add=$a.prototype.add,$a.prototype.equalsApprox=$a.prototype.Xa,$a.className="PathFigure";function Ui(a,y,x,b,E,te,ne,se){pi(this),a===void 0&&(a=Po),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),te===void 0&&(te=0),ne===void 0&&(ne=0),a===_l?(a=te%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof ne=="boolean"?ne&&(this.isLargeArc=!0):typeof ne=="number"&&ne&&(this.isLargeArc=!0),se&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===da&&(te=Math.max(te,0)),this.Wh=te,typeof ne=="number"?(a===da&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}Ui.prototype.copy=function(){var a=new Ui;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},ot=Ui.prototype,ot.Xa=function(a){if(!(a instanceof Ui)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ya:case Po:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY);case ss:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.point1X,a.point1X)&&Qt.B(this.point1Y,a.point1Y)&&Qt.B(this.point2X,a.point2X)&&Qt.B(this.point2Y,a.point2Y);case Cl:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.point1X,a.point1X)&&Qt.B(this.point1Y,a.point1Y);case da:return Qt.B(this.startAngle,a.startAngle)&&Qt.B(this.sweepAngle,a.sweepAngle)&&Qt.B(this.centerX,a.centerX)&&Qt.B(this.centerY,a.centerY)&&Qt.B(this.radiusX,a.radiusX)&&Qt.B(this.radiusY,a.radiusY);case _l:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Qt.B(this.xAxisRotation,a.xAxisRotation)&&Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.radiusX,a.radiusX)&&Qt.B(this.radiusY,a.radiusY);default:return!1}},ot.qb=function(a){a.classType===Ui&&(this.type=a)},ot.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ya:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Po:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ss:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Cl:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case da:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case _l:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return this._isFrozen=!1,this},ot.close=function(){return this.isClosed=!0,this};function rl(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,te=Qt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ne=gi.alloc();ne.reset(),x<b?ne.scale(1,b/x):ne.scale(x/b,1),Vn.Ha(te,ne),gi.free(ne)}for(x=te.length,b=0;b<x;b++)ne=te[b],ne[0]+=y,ne[1]+=E,ne[2]+=y,ne[3]+=E,ne[4]+=y,ne[5]+=E,ne[6]+=y,ne[7]+=E;return a.ae=te,a.ae}function zs(a,y,x,b){function E(lt,At,Tt,Bt){return(lt*Bt<At*Tt?-1:1)*Math.acos((lt*Tt+At*Bt)/(Math.sqrt(lt*lt+At*At)*Math.sqrt(Tt*Tt+Bt*Bt)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var te=a.Pg;y===0&&(y=1e-4),te===0&&(te=1e-4);var ne=Math.PI/180*a.Ne,se=a.isLargeArc,he=a.isClockwiseArc,me=a.Dc,Se=a.Ec,De=Math.cos(ne),We=Math.sin(ne),qe=De*(x-me)/2+We*(b-Se)/2;ne=-We*(x-me)/2+De*(b-Se)/2;var nt=qe*qe/(y*y)+ne*ne/(te*te);return 1<nt&&(y*=Math.sqrt(nt),te*=Math.sqrt(nt)),nt=(se===he?-1:1)*Math.sqrt((y*y*te*te-y*y*ne*ne-te*te*qe*qe)/(y*y*ne*ne+te*te*qe*qe)),isNaN(nt)&&(nt=0),se=nt*y*ne/te,nt=nt*-te*qe/y,isNaN(se)&&(se=0),isNaN(nt)&&(nt=0),x=(x+me)/2+De*se-We*nt,b=(b+Se)/2+We*se+De*nt,Se=E(1,0,(qe-se)/y,(ne-nt)/te),De=(qe-se)/y,me=(ne-nt)/te,qe=(-qe-se)/y,se=(-ne-nt)/te,ne=E(De,me,qe,se),qe=(De*qe+me*se)/(Math.sqrt(De*De+me*me)*Math.sqrt(qe*qe+se*se)),-1>=qe?ne=Math.PI:1<=qe&&(ne=0),!he&&0<ne&&(ne-=2*Math.PI),he&&0>ne&&(ne+=2*Math.PI),he=y>te?1:y/te,qe=y>te?te/y:1,y=Qt.jx(0,0,y>te?y:te,Se,Se+ne,!0),te=gi.alloc(),te.reset(),te.translate(x,b),te.rotate(a.Ne,0,0),te.scale(he,qe),Vn.Ha(y,te),gi.free(te),a.ae=y,a.ae}Ot.Object.defineProperties(Ui.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&jn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&jn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&jn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&jn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&jn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&jn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&jn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&jn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&jn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Wn(a,">= zero",Ui,"radiusX"),this._isFrozen&&jn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Wn(a,">= zero",Ui,"radiusY"),this._isFrozen&&jn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&jn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&jn(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&jn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&jn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&jn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Ui.prototype.equalsApprox=Ui.prototype.Xa;var ya=new vn(Ui,"Move",0),Po=new vn(Ui,"Line",1),ss=new vn(Ui,"Bezier",2),Cl=new vn(Ui,"QuadraticBezier",3),da=new vn(Ui,"Arc",4),_l=new vn(Ui,"SvgArc",4);Ui.className="PathSegment",Ui.Move=ya,Ui.Line=Po,Ui.Bezier=ss,Ui.QuadraticBezier=Cl,Ui.Arc=da,Ui.SvgArc=_l;function ws(){this.H=null,this.xu=new Lt(0,0).freeze(),this.mt=new Lt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}ws.prototype.copy=function(){var a=new ws;return this.clone(a)},ws.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},ws.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},ws.prototype.So=function(a,y){var x=this.diagram;return x===null||Ad(x,a,y),y},ws.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Ad(x,a,y),y.assign(x.Ps(y))),y},Ot.Object.defineProperties(ws.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),ws.prototype.getMultiTouchDocumentPoint=ws.prototype.Bz,ws.prototype.getMultiTouchViewPoint=ws.prototype.So,ws.className="InputEvent";function Kc(){this.H=null,this.xa="",this.ar=this.Lr=null}Kc.prototype.copy=function(){var a=new Kc;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Kc.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Ot.Object.defineProperties(Kc.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Kc.className="DiagramEvent";function $o(){this.Fm=Go,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}$o.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},$o.prototype.copy=function(){var a=new $o;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=nn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=nn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=nn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=nn(y)&&typeof y.J=="function"?y.J():y,a},$o.prototype.qb=function(a){a.classType===$o&&(this.change=a)},$o.prototype.toString=function(){var a="";return a=this.change===il?a+"* ":this.change===Go?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===il?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=zn(this.object)),this.oldValue!==null&&(a+=" old: "+zn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+zn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},$o.prototype.I=function(a){return a?this.oldValue:this.newValue},$o.prototype.Dz=function(a){return a?this.oldParam:this.newParam},$o.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},$o.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},$o.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},$o.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Ot.Object.defineProperties($o.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===il&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),$o.prototype.redo=$o.prototype.redo,$o.prototype.canRedo=$o.prototype.canRedo,$o.prototype.undo=$o.prototype.undo,$o.prototype.canUndo=$o.prototype.canUndo,$o.prototype.getParam=$o.prototype.Dz,$o.prototype.getValue=$o.prototype.I,$o.prototype.clear=$o.prototype.clear;var il=new vn($o,"Transaction",-1),Go=new vn($o,"Property",0),la=new vn($o,"Insert",1),Oa=new vn($o,"Remove",2);$o.className="ChangedEvent",$o.Transaction=il,$o.Property=Go,$o.Insert=la,$o.Remove=Oa;function Va(){this.o=new Tn().freeze(),this.xa="",this.j=!1}Va.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
|
|
|
`+b.toString())}}return y},Va.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},Va.prototype.canUndo=function(){return this.isComplete},Va.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},Va.prototype.canRedo=function(){return this.isComplete},Va.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},Va.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new cr,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Go&&b.object){var E=y.get(b.object);E||(E=new cr,y.set(b.object,E));var te=E.get(b.propertyName);te===null?E.set(b.propertyName,-1):(0<te&&a.cd(te,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},Ot.Object.defineProperties(Va.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),Va.prototype.optimize=Va.prototype.ak,Va.prototype.redo=Va.prototype.redo,Va.prototype.canRedo=Va.prototype.canRedo,Va.prototype.undo=Va.prototype.undo,Va.prototype.canUndo=Va.prototype.canUndo,Va.prototype.clear=Va.prototype.clear,Va.className="Transaction";function Ko(){this.Pt=new On,this.Jd=!1,this.u=new Tn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Tn().freeze(),this.hl=new Tn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Ko.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
|
|
|
`+this.history.M(b).toString(a-1);return y},Ko.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},Ko.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},ot=Ko.prototype,ot.Xw=function(a){this.Pt.add(a)},ot.Rx=function(a){this.Pt.remove(a)},ot.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},ot.eb=function(a){return a===void 0&&(a=""),Vc(this,!0,a)},ot.Kf=function(){return Vc(this,!1,"")};function Vc(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&or("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var te=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ne=a.Ie.count;0<ne&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ne-1),a.Ie.freeze()),ne=a.hl.count,0<ne&&(te=a.hl.M(ne-1),a.hl.mb(ne-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(te=y.M(0),te!==null&&te.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=te,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}ot.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},Ko.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Ko.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){or("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Ko.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Ko.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){or("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Ko.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new $o;for(b.change=il,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Ko.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Va);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||or("Change not within a transaction: "+x.toString()))}},Ko.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Ot.Object.defineProperties(Ko.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),Ko.prototype.handleChanged=Ko.prototype.Tu,Ko.prototype.redo=Ko.prototype.redo,Ko.prototype.undo=Ko.prototype.undo,Ko.prototype.canUndo=Ko.prototype.canUndo,Ko.prototype.discardHistoryAfterIndex=Ko.prototype.lx,Ko.prototype.rollbackTransaction=Ko.prototype.Kf,Ko.prototype.commitTransaction=Ko.prototype.eb,Ko.prototype.startTransaction=Ko.prototype.Ea,Ko.prototype.removeModel=Ko.prototype.Rx,Ko.prototype.addModel=Ko.prototype.Xw,Ko.prototype.clear=Ko.prototype.clear,Ko.className="UndoManager";function $i(){pi(this),this.H=Vu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ws,this.Zr=-1}$i.prototype.toString=function(){return this.name!==""?this.name+" Tool":Mn(this.constructor)},$i.prototype.updateAdornments=function(){},$i.prototype.canStart=function(){return this.isEnabled},$i.prototype.doStart=function(){},$i.prototype.doActivate=function(){this.isActive=!0},$i.prototype.doDeactivate=function(){this.isActive=!1},$i.prototype.doStop=function(){},$i.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},$i.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},$i.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},$i.prototype.doMouseMove=function(){},$i.prototype.doMouseUp=function(){this.stopTool()},$i.prototype.doMouseWheel=function(){},$i.prototype.canStartMultiTouch=function(){return!0},$i.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Lt.allocAt(NaN,NaN)),b=y.So(1,Lt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,te=b.y-x.y;a.Jw=Math.sqrt(E*E+te*te),y.bubbles=!1}Lt.free(x),Lt.free(b)},$i.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Lt.allocAt(NaN,NaN)),b=y.So(1,Lt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,te=b.y-x.y;te=Math.sqrt(E*E+te*te)/a.Jw,E=new Lt((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),te*=a.Bw;var ne=a.commandHandler;if(te!==a.scale&&ne.canResetZoom(te)){var se=a.zoomPoint;a.zoomPoint=E,ne.resetZoom(te),a.zoomPoint=se}y.bubbles=!1}Lt.free(x),Lt.free(b)},$i.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},$i.prototype.doKeyUp=function(){},$i.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},$i.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},$i.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Jr?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(Jr?y.meta:y.control)||y.shift||a.clearSelection()}},$i.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Hf(a,b,x),b.handled};function Hf(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}$i.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var te=a.Ck,ne=te;for(a.Ck=b,this.doCurrentObjectChanged(te,b),y.handled=!1;te!==null;){var se=te.mouseLeave;if(se!==null&&(b===te||b!==null&&b.rg(te)||(se(y,te,b),E=!0,y.handled)))break;te=te.panel}for(te=ne,y.handled=!1;b!==null&&(ne=b.mouseEnter,!(ne!==null&&(te===b||te!==null&&te.rg(b)||(ne(y,b,te),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(te=b,ne="";te!==null&&(ne=te.cursor,ne==="");)te=te.panel;for(a.currentCursor=ne,y.handled=!1,te=b;te!==null&&(b=te.mouseOver,!(b!==null&&(b(y,te),E=!0,y.handled)));)te=te.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},$i.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},$i.prototype.doCurrentObjectChanged=function(){},$i.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===Wh&&!y.shift||E===Uh&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===Wh&&y.shift||E===Uh&&!y.control){b=a.position.copy();var te=y.event;E=te.deltaMode;var ne=te.deltaX;te=te.deltaY;var se="pixel";if(ne===0&&te===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(se,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(se,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:se="pixel";break;case 1:se="line";break;case 2:se="page"}ne!==0&&a.allowHorizontalScroll&&(ne*=a.scrollHorizontalLineChange/16,a.scroll(se,0<ne?"right":"left",Math.abs(ne))),te!==0&&a.allowVerticalScroll&&(te*=a.scrollVerticalLineChange/16,a.scroll(se,0<te?"down":"up",Math.abs(te)))}this.doWheelChange(a,b,y)}}},$i.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},$i.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=qn(function(){x.doWaitAfter(b)},a)},$i.prototype.cancelWaitAfter=function(){this.Zr!==-1&&zt.clearTimeout(this.Zr),this.Zr=-1},$i.prototype.doWaitAfter=function(){},$i.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ki);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},$i.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},Ot.Object.defineProperties($i.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof ln&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),$i.prototype.startTransaction=$i.prototype.Ea,$i.className="Tool";function Fo(){$i.call(this),this.name="ToolManager",this.hb=new Tn,this.ob=new Tn,this.Hb=new Tn,this.F=this.V=850,this.o=new Kn(2,2).ja(),this.Ha=5e3,this.ia=Uh,this.u=Ed,this.Mp=this.j=null,this.zj=-1}cn(Fo,$i),Fo.prototype.initializeStandardTools=function(){},Fo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ki&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Fo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Sc&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Zc){y.bubbles=!0;return}if(this.gestureBehavior===Sc)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Uh?this.mouseWheelBehavior=Wh:this.mouseWheelBehavior===Wh&&(this.mouseWheelBehavior=Uh)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Fo.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Zc){y.bubbles=!0;return}if(this.gestureBehavior===Sc)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}Uf(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Uf(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Fo.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Ki&&(y===a||y.rg(a))||this.hideToolTip()},Fo.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},Fo.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},Fo.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof Ki)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},Fo.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ki){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof xi&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(zt.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=qn(function(){E.hideToolTip()},a)}},Fo.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},Fo.prototype.hideToolTip=function(){this.zj!==-1&&(zt.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ki?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof xi&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Fo.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Fo.prototype.doMouseWheel=function(){this.standardMouseWheel()},Fo.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Fo.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Fo.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},Fo.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},Fo.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},Ot.Object.defineProperties(Fo.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof Ki?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),Fo.prototype.replaceStandardTool=Fo.prototype.gb;var Uh=new vn(Fo,"WheelScroll",0),Wh=new vn(Fo,"WheelZoom",1),Wf=new vn(Fo,"WheelNone",2),Ed=new vn(Fo,"GestureZoom",3),Sc=new vn(Fo,"GestureCancel",4),Zc=new vn(Fo,"GestureNone",5);Fo.className="ToolManager",Fo.WheelScroll=Uh,Fo.WheelZoom=Wh,Fo.WheelNone=Wf,Fo.GestureZoom=Ed,Fo.GestureCancel=Sc,Fo.GestureNone=Zc;function Vo(){$i.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Lt(NaN,NaN),this.Fr=new Lt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new On().freeze(),this.ia=new de,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Hu;cn(Vo,$i),Vo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Vo.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},Vo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(Jr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Vo.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),on=null,this.isActive=!0,this.tl.set(a.position),sf(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Ms(a),Jf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,on=this,Sn=this.diagram,this.doSimulatedDragOut()))};function sf(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Un?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new gr,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Vo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Vo.prototype.Pd=function(a){return a===void 0?new Qc(Ii):this.isGridSnapEnabled?new Qc(new Lt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Qc(a.copy())},Vo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Xc(this),Xh(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Hu.count){for(var y=Hu,x=y.length,b=0;b<x;b++){var E=y.M(b);xc(E),pu(E),Xc(E),E.diagram.ug()}y.clear()}xc(this),this.tl.h(NaN,NaN),Sn!==null&&(Sn.currentCursor=""),on=Sn=null,pu(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Kh(a,!0)},Vo.prototype.stopTransaction=function(){var a=this.diagram,y=$i.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Xc(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,lf(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Kf(){var a=on;pu(a),wc(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Vo.prototype.doCancel=function(){pu(this),wc(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Vo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Vo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Uu(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):wc(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new cr,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var te=y.I(E);te!==null&&(te.location=E.location,te.Va(),x.add(te,a.Pd(te.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Un&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,sf(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Lh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function pu(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof Un&&(x.value.point=new Lt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function xc(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function Tu(a,y,x){var b=a.diagram,E=a.startPoint,te=Lt.alloc();te.assign(b.lastInput.documentPoint),a.moveParts(y,te.re(E),x),Lt.free(te),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Ms(b),b.hk())}Vo.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&ac(b,a,y,this.dragOptions,x)};function wc(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof Un&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Lh(b,-E.x,-E.y)}y.bd()}}function Td(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),fl(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var te=x.skipsUndoManager,ne=!1;try{if(x.skipsUndoManager=!0,ne=lf(a,E,b),!a.isActive&&on===null)return;var se=b!==null?b.part:null;if(se===null||x.handlesDragDropForTopLevelParts&&se.isTopLevel&&!(se instanceof ei)){var he=x.mouseDragOver;he!==null&&(he(E),ne=!0)}if(!a.isActive&&on===null||(a.doDragOver(y,b),!a.isActive&&on===null))return}finally{x.skipsUndoManager=te,ne&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Vo.prototype.findDragOverObject=function(a){var y=this;return Lu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Ki||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Vo.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function lf(a,y,x){var b=!1,E=a.Cg.length,te=0<E?a.Cg[0]:null;if(x===te)return!1;y.handled=!1;for(var ne=0;ne<E;ne++){var se=a.Cg[ne],he=se.mouseDragLeave;if(he!==null&&(he(y,se,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&on===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=uf(E);for(E=a.Cg.length,x=0;x<E&&(ne=a.Cg[x],se=ne.mouseDragEnter,se===null||(se(y,ne,te),b=!0,!y.handled));x++);return b}function uf(a){var y=a.panel;return y!==null?y:a instanceof Mr&&!(a instanceof ei)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Vf(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(me){return b.findValidLinkablePort(me,x)});a=Lt.alloc();var te=1/0,ne=null;for(E=E.iterator;E.next();){var se=E.value;if(se.part!==null){var he=se.ga(Di,a);he=y.Bf(he),he<te&&(ne=se,te=he)}}return Lt.free(a),ne}function fl(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var te=null,ne=null;x.fromNode===null&&(te=Vf(a,x.i(0),!1),te!==null&&(ne=te.part));var se=null,he=null;x.toNode===null&&(se=Vf(a,x.i(x.pointsCount-1),!0),se!==null&&(he=se.part)),E.isValidLink(ne,te,he,se)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ne,te!==null&&(x.fromPortId=te.portId),x.toNode=he,se!==null&&(x.toPortId=se.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):qr(E,ne,te,he,se):qr(E,null,null,null,null)}}}}Vo.prototype.doDragOver=function(){};function bc(a,y){var x=a.diagram;a.dragsLink&&fl(a,!0),Xc(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var te=b;te!==null;){var ne=te.mouseDrop;if(ne!==null&&(ne(E,te),E.handled))break;Wp(a,E,te),te=uf(te)}}else te=x.mouseDrop,te!==null&&te(E);if(a.isActive||on!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)te=E.key,te instanceof nr&&te.linksConnected.each(function(se){se.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||on!==null){for(a=wn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof nr&&Ft(x,b,a);wn.free(a)}}}function Wp(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof ei||(x=a.mouseDrop,x!==null&&x(y))}function Ft(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof Un},!0,function(E){return E instanceof Un},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Vo.prototype.doDropOnto=function(){},Vo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(Uu(this,!1),Jf(a,this.copiedParts),Tu(this,this.copiedParts,!1),Xh(a,this.copiedParts)):this.mayMove()?(pu(this),Tu(this,this.draggedParts,!0)):this.mayDragOut()?(Uu(this,!1),Tu(this,this.copiedParts,!1)):pu(this),Td(this,a.lastInput.documentPoint))}},Vo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(pu(this),Uu(this,!0),Jf(a,this.copiedParts),Tu(this,this.copiedParts,!1),Xh(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,pu(this),this.mayMove()&&(Tu(this,this.draggedParts,!0),Td(this,a.lastInput.documentPoint))),this.Ym=!0,bc(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Rt(this),a.Ya(),Xh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Vo.prototype.simulatedMouseMove=function(a,y,x){if(on===null)return!1;var b=on.diagram;x instanceof ln||(x=null);var E=Sn;return x!==E&&(E!==null&&E!==b&&(E.ug(),on.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Sn=x,x!==null&&x!==b&&(Kf(),E=x.toolManager.findTool("Dragging"),E!==null&&(Hu.contains(E)||Hu.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},Vo.prototype.simulatedMouseUp=function(a,y,x){if(on===null)return!1;var b=Sn,E=on.diagram;if(x===null)return on.doCancel(),!0;if(x!==b){var te=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&te!==null)return b.ug(),on.isDragOutStarted=!1,te.doSimulatedDragLeave(),!1;Sn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Kf(),Hu.contains(b)||Hu.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Lt),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=on,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Rt(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof nr&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Vo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Jr?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Vo.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Vo.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Vo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Vo.prototype.Az=function(){return on},Vo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=on;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Vo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),ol(a),a.animationManager.Cc(),a=on,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Vo.prototype.doSimulatedDragLeave=function(){var a=on;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Vo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=on;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;en(this,y.draggedParts.Lf(),!1,a.firstInput),Tu(this,this.copiedParts,!1),Td(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Vo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=on;if(y!==null){var x=y.diagram;if(y.Ym=!0,pu(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),en(this,y.draggedParts.Lf(),!0,a.lastInput),Tu(this,this.copiedParts,!1);var b=new On;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),bc(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function en(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var te=wn.alloc();E=b=1/0;for(var ne=-1/0,se=-1/0,he=y.iterator;he.next();){var me=he.value;if(me.isVisible()){var Se=me.location;me=Se.x,Se=Se.y,isNaN(me)||isNaN(Se)||(me<b&&(b=me),Se<E&&(E=Se),me>ne&&(ne=me),Se>se&&(se=Se))}}for(b===1/0?te.h(0,0,0,0):te.h(b,E,ne-b,se-E),b=te.x+te.width/2,E=te.y+te.height/2,wn.free(te),te=a.Fr,ne=new cr,se=Lt.alloc(),he=y.iterator;he.next();)me=he.value,me instanceof Un&&me.canCopy()&&(Se=x.I(me),Se!==null&&(Se.points=me.points,Lh(Se,te.x-b,te.y-E),Se.suspendsRouting=!0,ne.add(Se,a.Pd())));for(y=y.iterator;y.next();)me=y.value,me.Zc()&&me.canCopy()&&(he=x.I(me),he!==null&&(me=me.location,se.h(te.x-(b-me.x),te.y-(E-me.y)),he.location=se,he.Va(),ne.add(he,a.Pd(se))));Lt.free(se),a.copiedParts=ne,sf(a,ne.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Lh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Vo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Vo.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Lt},Ot.Object.defineProperties(Vo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Vo.prototype.getDraggingSource=Vo.prototype.Az;var on=null,Sn=null;Vo.className="DraggingTool",Hu=new Tn,ar("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Fo.prototype.doCancel=function(){on!==null&&on.doCancel(),$i.prototype.doCancel.call(this)};function fn(){$i.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Un,y=new di;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new di,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new nr,y=new di,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Qi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new nr,y=new di,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Qi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new cr,this.Of=this.gj=this.Pf=null}cn(fn,$i),fn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},fn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var te=y.Df(),ne=Kn.alloc();ne.width=y.naturalBounds.width*te,ne.height=y.naturalBounds.height*te,b.desiredSize=ne,Kn.free(ne),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Di,te=Lt.alloc(),x.location=y.ga(Di,te),Lt.free(te),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},fn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Qi,y.fromSpot=aa,y.toSpot=aa),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},fn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},fn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof nr){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},fn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof nr))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof nr)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},fn.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,te=y.og(x,b,function(De){return E.findValidLinkablePort(De,a)},null,!0);for(b=1/0,y=null,te=te.iterator;te.next();){var ne=te.value,se=ne.part;if(se instanceof nr){var he=ne.ga(Di,Lt.alloc()),me=x.x-he.x,Se=x.y-he.y;Lt.free(he),he=me*me+Se*Se,he<b&&(me=this.validPortsCache.I(ne),me!==null?me&&(y=ne,b=he):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,se,ne)||!a&&this.isValidLink(se,ne,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ne,!0),y=ne,b=he):this.validPortsCache.add(ne,!1))}}return y!==null&&(x=y.part,x instanceof nr&&(x.layer===null||x.layer.allowLink))?y:null},fn.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},fn.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},fn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},fn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof nr))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof nr))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},fn.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},fn.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new On;return b.add(a),Bn(this,x,y,b)};function Bn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Bn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Bn(a,y.labeledLink,x,b))))}fn.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==mf){if(b===og){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!Rn(this,a,y,x,!0)}if(b===ag){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!Rn(this,a,y,x,!0)}if(b===ng)return a===y?a=!0:(b=new On,b.add(y),a=In(this,b,a,y,x)),!a;if(b===rg)return!Rn(this,a,y,x,!1);if(b===ig)return a===y?a=!0:(b=new On,b.add(y),a=Qn(this,b,a,y,x)),!a}return!0};function Rn(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var te=y.linksConnected;te.next();){var ne=te.value;if(ne!==b&&(!E||ne.isTreeLink)&&ne.toNode===y&&(ne=ne.fromNode,ne!==y&&Rn(a,ne,x,b,E)))return!0}return!1}function In(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var te=x.linksConnected;te.next();){var ne=te.value;if(ne!==E&&ne.toNode===x&&(ne=ne.fromNode,ne!==x&&In(a,y,ne,b,E)))return!0}return!1}function Qn(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var te=x.linksConnected;te.next();){var ne=te.value;if(ne!==E){var se=ne.fromNode;if(ne=ne.toNode,se=se===x?ne:se,se!==x&&Qn(a,y,se,b,E))return!0}}return!1}Ot.Object.defineProperties(fn.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),fn.className="LinkingBaseTool";function rr(){fn.call(this),this.name="Linking",this.V={},this.F=null,this.K=tr,this.Xd=null}cn(rr,fn),rr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},rr.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof nr)))return null;var x=this.direction;if(x===tr||x===kr){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===tr||x===Pr)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},rr.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof nr&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof nr&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},rr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},rr.prototype.doStop=function(){fn.prototype.doStop.call(this),this.startObject=null},rr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,te=null;try{var ne=this.targetPort=this.findTargetPort(this.isForwards);if(ne!==null){var se=ne.part;se instanceof nr&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=se,E=ne):(y=se,x=ne,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(te=this.insertLink(y,x,b,E),te!==null?(ne===null&&(this.isForwards?te.defaultToPoint=a.lastInput.documentPoint:te.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),te.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",te)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),te&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},rr.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Un)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},rr.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},rr.prototype.doNoLink=function(){},Ot.Object.defineProperties(rr.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var tr=new vn(rr,"Either",0),kr=new vn(rr,"ForwardsOnly",0),Pr=new vn(rr,"BackwardsOnly",0);rr.className="LinkingTool",rr.Either=tr,rr.ForwardsOnly=kr,rr.BackwardsOnly=Pr;function gr(){fn.call(this),this.name="Relinking";var a=new di;a.figure="Diamond",a.desiredSize=Mo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new di,a.figure="Diamond",a.desiredSize=Mo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new wn}cn(gr,fn),gr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Un){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},gr.prototype.makeAdornment=function(a,y){var x=new Ki;return x.type=Gn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},gr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},gr.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Ki&&x.adornedPart instanceof Un))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=li),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=li),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},gr.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===wp||x===kh)&&(x=Ks),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},gr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},gr.prototype.doStop=function(){fn.prototype.doStop.call(this),this.handle=null},gr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,te=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ne=this.targetPort.part;ne instanceof nr&&(this.isForwards?(b=ne,E=this.targetPort):(y=ne,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:te=null;te!==null?(this.reconnectLink(te,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?te.defaultToPoint=a.lastInput.documentPoint:te.defaultFromPoint=a.lastInput.documentPoint,te.bb()),this.transactionResult=this.name,a.R("LinkRelinked",te,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},gr.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},gr.prototype.doNoRelink=function(){};function qr(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Ot.Object.defineProperties(gr.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof Ki))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),gr.className="RelinkingTool",ar("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),ar("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function xr(){$i.call(this),this.name="LinkReshaping";var a=new di;a.figure="Rectangle",a.desiredSize=zo,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new di,a.figure="Diamond",a.desiredSize=Mo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Lt,this.Yq=new Tn}cn(xr,$i),xr.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Zr},xr.prototype.om=function(a,y){a.reshapingBehavior=y},xr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Un){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},xr.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Ki,E.type=Gn.Link,x=y.firstPickIndex;var te=y.lastPickIndex,ne=b?1:0;if(y.resegmentable&&y.computeCurve()!==Xl)for(var se=x+ne;se<te-ne;se++){var he=this.makeResegmentHandle(a,se);he!==null&&(he.segmentIndex=se,he.segmentFraction=.5,he.fromMaxLinks=999,E.add(he))}for(ne=x+1;ne<te;ne++)if(se=this.makeHandle(a,ne),se!==null){if(se.segmentIndex=ne,ne!==x)if(ne===x+1&&b){he=y.i(x);var me=y.i(x+1);Qt.B(he.x,me.x)&&Qt.B(he.y,me.y)&&(me=y.i(x-1)),Qt.B(he.x,me.x)?(this.om(se,Oi),se.cursor="n-resize"):Qt.B(he.y,me.y)&&(this.om(se,hi),se.cursor="w-resize")}else ne===te-1&&b?(he=y.i(te-1),me=y.i(te),Qt.B(he.x,me.x)&&Qt.B(he.y,me.y)&&(he=y.i(te+1)),Qt.B(he.x,me.x)?(this.om(se,Oi),se.cursor="n-resize"):Qt.B(he.y,me.y)&&(this.om(se,hi),se.cursor="w-resize")):ne!==te&&(this.om(se,Wi),se.cursor="move");E.add(se)}E.adornedObject=a}return E},xr.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},xr.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},xr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},xr.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof Un){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},xr.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},xr.prototype.stopTransaction=function(){var a=this.diagram,y=$i.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},xr.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},xr.prototype.getResegmentingPoint=function(){return this.handle.ga(Di)},xr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},xr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),te=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ne=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Xr(this,ne,b,E,te,!0)||Xr(this,ne,b,E,te,!1))){var se=y.points.copy();Xr(this,ne,b,E,te,!0)?(se.cd(x-2,new Lt(ne.x,(te.y+ne.y)/2)),se.cd(x+1,new Lt(te.x,(te.y+ne.y)/2))):(se.cd(x-2,new Lt((te.x+ne.x)/2,ne.y)),se.cd(x+1,new Lt((te.x+ne.x)/2,te.y))),se.mb(x),se.mb(x-1),y.points=se,y.Wb()}else ne=y.i(x+2),Math.abs(E.x-te.x)<this.resegmentingDistance&&Math.abs(E.y-te.y)<this.resegmentingDistance&&(Xr(this,b,E,te,ne,!0)||Xr(this,b,E,te,ne,!1))&&(se=y.points.copy(),Xr(this,b,E,te,ne,!0)?(se.cd(x-1,new Lt(b.x,(b.y+ne.y)/2)),se.cd(x+2,new Lt(ne.x,(b.y+ne.y)/2))):(se.cd(x-1,new Lt((b.x+ne.x)/2,b.y)),se.cd(x+2,new Lt((b.x+ne.x)/2,ne.y))),se.mb(x+1),se.mb(x),y.points=se,y.Wb())}}else ne=Lt.alloc(),Qt.qh(b.x,b.y,te.x,te.y,E.x,E.y,ne)&&ne.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Lt.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Xr(a,y,x,b,E,te){return te?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}xr.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===Oi?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===hi&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,b===Oi?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===hi&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),te=y.i(b-1),ne=y.i(b+1);Qt.B(te.x,E.x)&&Qt.B(E.y,ne.y)?(Qt.B(te.x,y.i(b-2).x)&&!Qt.B(te.y,y.i(b-2).y)?(y.m(b,a.x,te.y),x++,b++):y.L(b-1,a.x,te.y),Qt.B(ne.y,y.i(b+2).y)&&!Qt.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)):Qt.B(te.y,E.y)&&Qt.B(E.x,ne.x)?(Qt.B(te.y,y.i(b-2).y)&&!Qt.B(te.x,y.i(b-2).x)?(y.m(b,te.x,a.y),x++,b++):y.L(b-1,te.x,a.y),Qt.B(ne.x,y.i(b+2).x)&&!Qt.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):Qt.B(te.x,E.x)&&Qt.B(E.x,ne.x)?(Qt.B(te.x,y.i(b-2).x)&&!Qt.B(te.y,y.i(b-2).y)?(y.m(b,a.x,te.y),x++,b++):y.L(b-1,a.x,te.y),Qt.B(ne.x,y.i(b+2).x)&&!Qt.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):Qt.B(te.y,E.y)&&Qt.B(E.y,ne.y)&&(Qt.B(te.y,y.i(b-2).y)&&!Qt.B(te.x,y.i(b-2).x)?(y.m(b,te.x,a.y),x++,b++):y.L(b-1,te.x,a.y),Qt.B(ne.y,y.i(b+2).y)&&!Qt.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(te=b.findVisibleNode(),te!==null&&te!==b&&(b=te,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(te=E.ga(Di,Lt.alloc()),b=y.getLinkPointFromPoint(b,E,te,a,!0,Lt.alloc()),y.L(0,b.x,b.y),Lt.free(te),Lt.free(b)),b=y.toNode,E=y.toPort,b!==null&&(te=b.findVisibleNode(),te!==null&&te!==b&&(b=te,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(Di,Lt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Lt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Lt.free(x),Lt.free(a));y.zf()},xr.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Wi:return a;case Oi:return new Lt(y.i(x).x,a.y);case hi:return new Lt(a.x,y.i(x).y);default:case Zr:return y.i(x)}},Ot.Object.defineProperties(xr.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ki))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),xr.prototype.setReshapingBehavior=xr.prototype.om,xr.prototype.getReshapingBehavior=xr.prototype.Ru;var Zr=new vn(xr,"None",0),hi=new vn(xr,"Horizontal",1),Oi=new vn(xr,"Vertical",2),Wi=new vn(xr,"All",3);xr.className="LinkReshapingTool",xr.None=Zr,xr.Horizontal=hi,xr.Vertical=Oi,xr.All=Wi,ar("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ti(){$i.call(this),this.name="Resizing",this.o=new Kn(1,1).freeze(),this.j=new Kn(9999,9999).freeze(),this.yg=new Kn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new di;a.alignmentFocus=Di,a.figure="Rectangle",a.desiredSize=zo,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Lt,this.Dw=new Kn,this.Tn=new Lt,this.rt=new Kn(0,0),this.qt=new Kn(1/0,1/0),this.pt=new Kn(1,1)}cn(ti,$i),ti.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Un)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),td(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ti.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ki,y.type=Gn.Spot,y.locationSpot=Di;var x=new Ws;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Wa)),y.add(this.makeHandle(a,Dl)),y.add(this.makeHandle(a,As)),y.add(this.makeHandle(a,tl)),y.add(this.makeHandle(a,ha)),y.add(this.makeHandle(a,Ka)),y.add(this.makeHandle(a,za)),y.add(this.makeHandle(a,Ea))}else if(Su(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ti.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ti.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=Di),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Gn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ti.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ti.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},ti.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ti.prototype.stopTransaction=function(){var a=this.diagram,y=$i.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ti.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ti.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Lt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),a.bd(),Lt.free(E)}},ti.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Lt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),Lt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ti.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof ei){var b=new Tn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new de;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},ti.prototype.computeResize=function(a,y,x,b,E,te){y.Mc()&&(y=Di);var ne=this.adornedObject.naturalBounds,se=ne.x,he=ne.y,me=ne.x+ne.width,Se=ne.y+ne.height,De=1;if(!te){De=ne.width;var We=ne.height;0>=De&&(De=1),0>=We&&(We=1),De=We/De}return We=Lt.alloc(),Qt.No(a.x,a.y,se,he,E.width,E.height,We),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(We.x,me-b.width),a.x=Math.min(a.x,me-x.width),a.width=Math.max(me-a.x,x.width),a.y=Math.max(We.y,Se-b.height),a.y=Math.min(a.y,Se-x.height),a.height=Math.max(Se-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De):(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width),a.x=me-a.width,a.y=Se-a.height)):1<=y.y?(a.x=Math.max(We.x,me-b.width),a.x=Math.min(a.x,me-x.width),a.width=Math.max(me-a.x,x.width),a.height=Math.max(Math.min(We.y-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De):(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width),a.x=me-a.width)):(a.x=Math.max(We.x,me-b.width),a.x=Math.min(a.x,me-x.width),a.width=me-a.x,te||(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De,a.y=he+.5*(Se-he-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(We.x-se,b.width),x.width),a.y=Math.max(We.y,Se-b.height),a.y=Math.min(a.y,Se-x.height),a.height=Math.max(Se-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De):(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width),a.y=Se-a.height)):1<=y.y?(a.width=Math.max(Math.min(We.x-se,b.width),x.width),a.height=Math.max(Math.min(We.y-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De):(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width))):(a.width=Math.max(Math.min(We.x-se,b.width),x.width),te||(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De,a.y=he+.5*(Se-he-a.height))):0>=y.y?(a.y=Math.max(We.y,Se-b.height),a.y=Math.min(a.y,Se-x.height),a.height=Se-a.y,te||(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width,a.x=se+.5*(me-se-a.width))):1<=y.y&&(a.height=Math.max(Math.min(We.y-he,b.height),x.height),te||(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width,a.x=se+.5*(me-se-a.width))),Lt.free(We),a},ti.prototype.computeReshape=function(){var a=Fn;return this.adornedObject instanceof di&&(a=Ev(this.adornedObject)),!(a===hr||this.diagram.lastInput.shift)},ti.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},ti.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},ti.prototype.computeCellSize=function(){var a=new Kn(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},Ot.Object.defineProperties(ti.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Ki))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ki)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),ti.className="ResizingTool",ar("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function ki(){$i.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Lt,this.ue=null;var a=new di;a.figure="Ellipse",a.desiredSize=Mo,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Lt(NaN,NaN),this.u=0,this.F=50}cn(ki,$i),ki.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},ki.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ki,y.type=Gn.Position,y.locationSpot=Di;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Su(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ki.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ki.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},ki.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(Di)},ki.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},ki.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Lt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},ki.prototype.stopTransaction=function(){var a=this.diagram,y=$i.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ki.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},ki.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},ki.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},ki.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},ki.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},Ot.Object.defineProperties(ki.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ki))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ki)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),ki.className="RotatingTool",ar("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function ho(){$i.call(this),this.name="ClickSelecting"}cn(ho,$i),ho.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},ho.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},ho.className="ClickSelectingTool";function ci(){$i.call(this),this.name="Action",this.pk=null}cn(ci,$i),ci.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},ci.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},ci.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},ci.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},ci.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},ci.prototype.doStop=function(){this.pk=null},ci.className="ActionTool";function Ei(){$i.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Lt(0,0)}cn(Ei,$i),Ei.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Ei.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Ei.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Mr)x.Zc()&&(Su(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);nn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var te=Lt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Yf(this.diagram,b,a,te),b.location=te,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Lt.free(te)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Ot.Object.defineProperties(Ei.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Ei.className="ClickCreatingTool";function ui(){$i.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Mr;a.layerName="Tool",a.selectable=!1;var y=new di;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}cn(ui,$i),ui.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},ui.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},ui.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},ui.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=Kn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Kn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},ui.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},ui.prototype.computeBoxBounds=function(){var a=this.diagram;return new wn(a.firstInput.documentPoint,a.lastInput.documentPoint)},ui.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Jr?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new Tn,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Ot.Object.defineProperties(ui.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),ui.className="DragSelectingTool";function $r(){$i.call(this),this.name="Panning",this.Xt=new Lt,this.xy=new Lt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(zt.document,"scroll",a.Kw,!1),a.stopTool()}}cn($r,$i),$r.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},$r.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(zt.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},$r.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},$r.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},$r.prototype.doMouseMove=function(){this.move()},$r.prototype.doMouseUp=function(){this.move(),this.stopTool()},$r.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},Ot.Object.defineProperties($r.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),$r.className="PanningTool",ar("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),ar("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),ar("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),ar("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),ar("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function xi(){this.F=this.u=this.j=this.o=null}Ot.Object.defineProperties(xi.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),xi.className="HTMLInfo";function Fi(a,y,x){this.text=a,this.hx=y,this.visible=x}Fi.className="ContextMenuButtonInfo";function Yi(){$i.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Lt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}cn(Yi,$i);function eo(a){var y=new xi;y.show=function(E,te,ne){ne.showDefaultContextMenu()},y.hide=function(E,te){te.hideDefaultContextMenu()},Ao=y,a.tu=function(){a.stopTool()},y=Yn("div");var x=Yn("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=Yn("style");zt.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",ni,!1),b.addEventListener(y,"selectstart",ni,!1),b.addEventListener(x,"contextmenu",ni,!1)),y.className="goCXforeground",x.className="goCXbackground",zt.document.body&&(zt.document.body.appendChild(y),zt.document.body.appendChild(x)),vo=y,Ta=x,Na=!0}function ni(a){return a.preventDefault(),!1}Yi.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},Yi.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Yi.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Yi.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof ln||(a instanceof Yt?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},Yi.prototype.doActivate=function(){},Yi.prototype.doMouseDown=function(){if($i.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ki){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&po(this)},Yi.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ki){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}po(this)};function po(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof xi||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(wo(a,!0),a.isActive||a.stopTool())}Yi.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function wo(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Ao,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Yt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ki&&!a.currentContextMenu.visible&&a.stopTool()}}Yi.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Yi.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ki){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof xi&&a.show(y,x,this);this.currentContextMenu=a},Yi.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},Yi.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ki?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof xi&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Qo(a){var y=new Tn;return y.add(new Fi("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Fi("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Fi("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Fi("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Fi("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Fi("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Fi("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Fi("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Fi("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Fi("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Fi("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Fi("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Fi("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Yi.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Qo(this)),vo.innerHTML="",Ta.addEventListener("pointerdown",this.tu,!1);var y=this,x=Yn("ul");x.className="goCXul",vo.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,te=E.visible;if(typeof E.hx=="function"&&(typeof te!="function"||te(a))){te=Yn("li"),te.className="goCXli";var ne=Yn("a");ne.className="goCXa",ne.href="#",ne.ky=E.hx,ne.addEventListener("pointerdown",function(se){return this.ky(a),y.stopTool(),se.preventDefault(),!1},!1),ne.textContent=E.text,te.appendChild(ne),x.appendChild(te)}}vo.style.display="block",Ta.style.display="block"},Yi.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Ao){vo.style.display="none",Ta.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Ta,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Ot.Object.defineProperties(Yi.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ki?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Na===!1&&Ao===null&&ra&&eo(this),Ao},set:function(a){a===null&&(Na=!0),Ao=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Ao=null,Na=!1,Ta=null,vo=null;Yi.className="ContextMenuTool",ar("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Gi(){$i.call(this),this.name="TextEditing",this.Zh=new Co,this.ia=null,this.V=Ni,this.vj=null,this.qa=Ai,this.u=1,this.F=!0,this.o=null,this.j=new xi,this.kt=null,Wo(this,this.j)}cn(Gi,$i);function Wo(a,y){if(ra){var x=Yn("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(Zi)):E==="Tab"?(a.acceptText(to),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ai){var b=a.kt;a.qa===fo&&(a.qa=Bo),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ai){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,te){if(b instanceof Co&&te instanceof Gi)if(te.state===bs)x.style.border="3px solid red",x.focus();else{var ne=b.ga(Di),se=E.position,he=E.scale,me=b.Df()*he;me<te.minimumEditorScale&&(me=te.minimumEditorScale);var Se=b.naturalBounds.width*me+6,De=b.naturalBounds.height*me+2,We=(ne.x-se.x)*he;ne=(ne.y-se.y)*he,se=b.verticalAlignment,he=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*me,De=se.y*De-se.y*he+se.offsetY-(.5*De-.5*he)-he/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*me+"%",x.style.lineHeight="normal",x.style.width=Se+"px",x.style.left=(We-Se/2|0)-1+"px",x.style.top=(ne+De|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=me,x.className="goTXarea",E.div.appendChild(x),x.focus(),te.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}Gi.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||$s&&$s!==this&&($s.acceptText(is),$s&&$s!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Co&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Ni&&!y.isSelected||this.starting===Zo&&2>a.lastInput.clickCount)):!1},Gi.prototype.doStart=function(){$s=this,this.textBlock!==null&&this.doActivate()},Gi.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Co&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=fo;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new wn(this.textBlock.ga(Wa),this.textBlock.ga(As));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Gi.prototype.doCancel=function(){this.stopTool()},Gi.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Gi.prototype.doMouseDown=function(){this.isActive&&this.acceptText(is)},Gi.prototype.acceptText=function(a){switch(a){case is:this.qa===ls?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===fo||this.qa===bs||this.qa===Bo)&&(this.qa=Ro,Aa(this));break;case Sa:case Zi:case to:(Zi!==a||this.textBlock.isMultiline!==!0)&&(this.qa===fo||this.qa===bs||this.qa===Bo)&&(this.qa=Ro,Aa(this))}};function Aa(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,te="";b.valueFunction!==null&&(te=b.valueFunction()),a.isValidText(y,E,te)?(a.Ea(a.name),a.qa=ls,a.transactionResult=a.name,y.text=te,a.doSuccess(E,te),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=bs,a.doError(E,te))}}Gi.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Gi.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Gi.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ai,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Gi.prototype.doStop=function(){$s=null},Gi.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},Gi.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Ot.Object.defineProperties(Gi.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Gi.prototype.measureTemporaryTextBlock=Gi.prototype.Lx;var Sa=new vn(Gi,"LostFocus",0),is=new vn(Gi,"MouseDown",1),to=new vn(Gi,"Tab",2),Zi=new vn(Gi,"Enter",3),no=new vn(Gi,"SingleClick",0),Ni=new vn(Gi,"SingleClickSelected",1),Zo=new vn(Gi,"DoubleClick",2),Ai=new vn(Gi,"StateNone",0),fo=new vn(Gi,"StateActive",1),Bo=new vn(Gi,"StateEditing",2),Ro=new vn(Gi,"StateValidating",3),bs=new vn(Gi,"StateInvalid",4),ls=new vn(Gi,"StateValidated",5),$s=null;Gi.className="TextEditingTool",Gi.LostFocus=Sa,Gi.MouseDown=is,Gi.Tab=to,Gi.Enter=Zi,Gi.SingleClick=no,Gi.SingleClickSelected=Ni,Gi.DoubleClick=Zo,Gi.StateNone=Ai,Gi.StateActive=fo,Gi.StateEditing=Bo,Gi.StateValidating=Ro,Gi.StateInvalid=bs,Gi.StateValidated=ls,ar("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function qo(a){El||(pl(),El=!0),this.H=Vu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=eu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new On,this.ce=new na,this.ce.Yd=this,this.Ei=new On,this.pu=new On,this.Sr=new On,this.pr=new On,a&&Object.assign(this,a)}qo.prototype.Xe=function(a){this.H=a},qo.prototype.canStart=function(){return!0};function Ps(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),cs(a.H),a.zb=!0)}function ts(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===eu?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===$l&&y.vc.clear(),a.Qw=!!(a.Pk===tu&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Ts(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Is&&b!==null&&(delete b.start.scale,delete b.end.scale),zt.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ms(x),Ld(x),a.zb=!1,y.start(),y.bc&&(ua(a),x.Ya(),oc(y,0),ol(x,!0),Za(a),x.R("AnimationStarting",a)))}))}}function ps(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Wu(a,y,x,b){a.isTicking||ps(a)||y instanceof Un&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}ot=qo.prototype,ot.fv=function(a){return this.ce.fv(a)},ot.Xu=function(a){return this.ce.Xu(a)};function ea(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var te=E.pu.iterator;te.next();){var ne=te.value;if(ne.bc!==!1){e:if(0<ne.yl.count)var se=!0;else{for(se=ne.vc.iterator;se.next();){var he=se.key;if(he instanceof Yt&&he.diagram!==null||he instanceof ln){se=!0;break e}}se=!1}se?Gl(ne,!1):ne.Xk=!0}}E.pu.clear(),E.bc!==!1&&(ua(E),ol(E.H),Za(E)),zt.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),zt.requestAnimationFrame(function(){x()}))}function ia(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function ua(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Za(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}ot.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),Ts(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Ts(y,this.H)},ot.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},ot.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),fa(this,a))},ot.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Ga(this.ce,y,"position",y.position,y.position),fa(this,a))};function gs(a,y,x){!a.zb||y.D(x)||ps(a)||(a.H.pi||(y=x.copy()),Ga(a.ce,a.H,"position",y,x))}function ko(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function fa(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function ms(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var te=a[0],ne=a[1],se=a[2];a=a[3];var he=y[0],me=y[1],Se=y[2];return y=y[3],se===0||se===100?(te=he,ne=me):(Se===0||Se===100)&&(he=te,me=ne),180<Math.abs(he-te)&&(he>te?te+=360:he+=360),te=E(x,te,he-te,b)%360,ne=E(x,ne,me-ne,b),se=E(x,se,Se-se,b),x=E(x,a,y-a,b),"hsla("+te+", "+ne+"%, "+se+"%, "+x+")"}function pl(){function a(x,b,E,te,ne,se){x.position=new Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}var y=new cr;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!1):x.position=new Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("location",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!0):x.location=new Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("position:placeholder",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!1):x.position=new Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("position:nodeCollapse",function(x,b,E,te,ne,se){var he=x.actualBounds,me=E.actualBounds;E=me.x+me.width/2-he.width/2,he=me.y+me.height/2-he.height/2,ne<se?x.mm(te(ne,b.x,E-b.x,se),te(ne,b.y,he-b.y,se),!1):x.position=new Lt(te(ne,b.x,E-b.x,se),te(ne,b.y,he-b.y,se))}),y.add("desiredSize",function(x,b,E,te,ne,se){x.desiredSize=new wn(te(ne,b.width,E.width-b.width,se),te(ne,b.height,E.height-b.height,se))}),y.add("width",function(x,b,E,te,ne,se){x.width=te(ne,b,E-b,se)}),y.add("height",function(x,b,E,te,ne,se){x.height=te(ne,b,E-b,se)}),y.add("fill",function(x,b,E,te,ne,se){x.fill=ms(b,E,ne,se,te)}),y.add("stroke",function(x,b,E,te,ne,se){x.stroke=ms(b,E,ne,se,te)}),y.add("strokeWidth",function(x,b,E,te,ne,se){x.strokeWidth=te(ne,b,E-b,se)}),y.add("strokeDashOffset",function(x,b,E,te,ne,se){x.strokeDashOffset=te(ne,b,E-b,se)}),y.add("background",function(x,b,E,te,ne,se){x.background=ms(b,E,ne,se,te)}),y.add("areaBackground",function(x,b,E,te,ne,se){x.areaBackground=ms(b,E,ne,se,te)}),y.add("opacity",function(x,b,E,te,ne,se){x.opacity=te(ne,b,E-b,se)}),y.add("scale",function(x,b,E,te,ne,se){x.scale=te(ne,b,E-b,se)}),y.add("angle",function(x,b,E,te,ne,se){x.angle=te(ne,b,E-b,se)}),zl=y}Ot.Object.defineProperties(qo.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&Wn(a,">= 1",qo,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),qo.prototype.stopAnimation=qo.prototype.Cc;var zl=null,El=!1,eu=new vn(qo,"Default",1),tu=new vn(qo,"AnimateLocations",2),$l=new vn(qo,"None",3);qo.className="AnimationManager",qo.defineAnimationEffect=function(a,y){El||(pl(),El=!0),zl.add(a,y)},qo.Default=eu,qo.AnimateLocations=tu,qo.None=$l;function na(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=nu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Ii,this.vc=new cr,this.Tt=new cr,this.yl=new On,this.Ut=new On,this.dw=xh,a&&Object.assign(this,a)}na.prototype.suspend=function(){this.Xk=!0},na.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Gl(this,!0),ua(this.Yd),ol(this.H),Za(this.Yd),this.H.redraw()};function Ts(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}ot=na.prototype,ot.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof ln?a=x:x instanceof Yt&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===eu&&this===y.defaultAnimation&&(this.Lp=Mu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=vf),ua(y),this.yl.each(function(b){b.data=null,a.add(b)}),Za(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ea(y,this),this)},ot.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},ot.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof ln?this.H=a:a instanceof Yt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Mr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Ga(this,a,y,x,b,E),this};function Ga(a,y,x,b,E,te){var ne=a.vc;if(y instanceof ln&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(eh(b),sv(),b=[Zl.j,Zl.u,Zl.o,Zl.F],eh(E),sv(),E=[Zl.j,Zl.u,Zl.o,Zl.F]),ne.contains(y)){var se=ne.I(y),he=se.start,me=se.end;he[x]===void 0&&(he[x]=pa(b)),me[x]=pa(E)}else he={},me={},he[x]=pa(b),me[x]=pa(E),se=he.position,y instanceof Yt&&se instanceof Lt&&!se.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&se.assign(me.position),se=new Ku(he,me,te),ne.add(y,se);ne=he[x],ne instanceof Lt&&!ne.w()&&ne.assign(a.o),te&&x.indexOf("position:")===0&&y instanceof Mr?se.Ku.location=pa(y.location):te&&(se.Ku[x]=pa(b))}function pa(a){return a instanceof Lt||a instanceof Kn?a.copy():a}ot.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},ot.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Gl(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),ua(x),oc(a,E),ol(a.H,!0),Za(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function oc(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var te=b.key;if(!(te instanceof Yt&&te.diagram===null)){var ne=b.value,se=E?ne.end:ne.start;ne=E?ne.start:ne.end;var he=zl,me;for(me in ne)me==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||he.get(me)===null||he.get(me)(te,se[me],ne[me],a.Lp,y,x,a)}}}ot.stop=function(){return this.bc?(this.Ml(!0),this):this},ot.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,ua(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var te=zl;b.next();){var ne=b.key,se=b.value,he=E?se.end:se.start,me=E?se.start:se.end,Se=se.Ku,De;for(De in me)if(te.get(De)!==null){var We=De;!se.Hu||We!=="position:nodeCollapse"&&We!=="position:placeholder"||(We="position"),te.get(We)(ne,he[De],Se[De]!==void 0?Se[De]:se.Hu?he[De]:me[De],this.Lp,this.Gd,this.Gd,this)}se.Hu&&Se.location!==void 0&&ne instanceof Mr&&(ne.location=Se.location),se.nv&&ne instanceof Mr&&ne.Zb(!1)}if(y.As.clear(),Kh(y,!1),y.Ya(),y.N(),ol(y,!0),x.defaultAnimation===this){for(De=x.pr.iterator;De.next();)E=De.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}ol(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Za(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ts(this,null),x.Ml(this),y.$b())}},ot.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof ei&&(b=y.placeholder),b!==null?(x=b.ga(Wa),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Lt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof ei)for(a=a.memberParts;a.next();)b=a.value,b instanceof nr&&this.Cj(b,y)},ot.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof ei&&(x=y.placeholder),x!==null){var b=x.ga(Wa);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof ei)for(a=a.memberParts;a.next();)b=a.value,b instanceof nr&&this.Aj(b,y)}},ot.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Ot.Object.defineProperties(na.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Wn(a,">= 1",na,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:$t("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),na.prototype.getTemporaryState=na.prototype.Ez,na.prototype.stop=na.prototype.stop,na.prototype.add=na.prototype.add,na.prototype.addTemporaryPart=na.prototype.Iy;function nu(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Mu(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}na.className="Animation",na.EaseLinear=function(a,y,x,b){return x*a/b+y},na.EaseInOutQuad=nu,na.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},na.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},na.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},na.EaseOutExpo=Mu;function Ku(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Ku.className="AnimationState";function Tl(a,y,x){this.xd=null,this.rf=a,this.so=x||xa,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=us))}Tl.prototype.copy=function(){var a=new Tl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Xo(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Ot.Object.defineProperties(Tl.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var xa=new vn(Tl,"Default",1),us=new vn(Tl,"Immediate",2),wa=new vn(Tl,"Bundled",3);Tl.className="AnimationTrigger",Tl.Default=xa,Tl.Immediate=us,Tl.Bundled=wa;function Ho(a){pi(this),this.H=null,this.Pa=new Tn,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}ot=Ho.prototype,ot.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Os(x)}a.clear(),this.Zq.length=0},ot.Xe=function(a){this.H=a},ot.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,te=0,ne=0,se=this.Pa.iterator;se.next();){var he=se.value;he instanceof ei?E++:he instanceof nr?b++:he instanceof Un?te++:he instanceof Ki?ne++:x++}if(se="",0<x&&(se+=x+" Parts "),0<b&&(se+=b+" Nodes "),0<E&&(se+=E+" Groups "),0<te&&(se+=te+" Links "),0<ne&&(se+=ne+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,se+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&zi(b)&&(se+=" #"+zi(b)),x instanceof nr?se+=" "+zn(b):x instanceof Un&&(se+=" "+zn(x.fromNode)+" "+zn(x.toNode));return y+" "+this.Pa.count+": "+se},ot.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=Lt.alloc(),te=this.Pa.s,ne=te.length;ne--;){var se=te[ne];if((b!==!0||td(se)!==!1)&&se.isVisible()&&(E.assign(a),mi(E,se.oe),se=se.ic(E,y,x),se!==null&&(y!==null&&(se=y(se)),se!==null&&(x===null||x(se)))))return Lt.free(E),se}return Lt.free(E),null},ot.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Tn||b instanceof On||(b=new On),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var te=Lt.alloc(),ne=this.Pa.s,se=ne.length;se--;){var he=ne[se];if((E!==!0||td(he)!==!1)&&he.isVisible()){te.assign(a),mi(te,he.oe);var me=he;he.ji(te,y,x,b)&&(y!==null&&(me=y(me)),me===null||x!==null&&!x(me)||b.add(me))}}return Lt.free(te),b},ot.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Tn||E instanceof On||(E=new On),this.Uh===!1)return E;var te=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(te=!0);for(var ne=this.Pa.s,se=ne.length;se--;){var he=ne[se];if((te!==!0||td(he)!==!1)&&he.isVisible()){var me=he;he.Cf(a,y,x,b,E)&&(y!==null&&(me=y(me)),me===null||x!==null&&!x(me)||E.add(me))}}return E},ot.Nu=function(a,y,x,b,E,te,ne){if(this.Uh===!1)return E;for(var se=this.Pa.s,he=se.length;he--;){var me=se[he];if((ne!==!0||td(me)!==!1)&&te(me)&&me.isVisible()){var Se=me;me.Cf(a,y,x,b,E)&&(y!==null&&(Se=y(Se)),Se===null||x!==null&&!x(Se)||E.add(Se))}}return E},ot.og=function(a,y,x,b,E,te){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Tn||E instanceof On)&&(te=E),E=!0),te instanceof Tn||te instanceof On||(te=new On),this.Uh===!1)return te;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var se=Lt.alloc(),he=Lt.alloc(),me=this.Pa.s,Se=me.length;Se--;){var De=me[Se];if((ne!==!0||td(De)!==!1)&&De.isVisible()){se.assign(a),mi(se,De.oe),he.h(a.x+y,a.y),mi(he,De.oe);var We=De;De.og(se,he,x,b,E,te)&&(x!==null&&(We=x(We)),We===null||b!==null&&!b(We)||te.add(We))}}return Lt.free(se),Lt.free(he),te},ot.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=pn();for(var E=pn(),te=0;te<b;te++){var ne=x[te];if(ne.vw=te,ne instanceof Un){if(ne.fd===!1)continue}else if(ne instanceof Ki&&ne.adornedPart!==null)continue;var se=ne.actualBounds;ne.isVisible()&&Io(se,y)?(ne.Fd(!0),a.push(ne)):(ne.Fd(!1),ne.adornments!==null&&0<ne.adornments.count&&E.push(ne))}for(y=0;y<a.length;y++)for(x=a[y],Fv(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)Fv(E[y]);kn(a),kn(E)}}};function vs(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}ot.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=vs(this,a);var te=this.Zq;te.length=0;for(var ne=y.scale,se=wn.alloc(),he=0;he<b;he++)this.Oj(a,x[he],y,te,ne,se,!0);if(wn.free(se),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function gl(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var te=E.length;if(te!==0){var ne=vs(a,y),se=a.Zq;se.length=0;for(var he=x.scale,me=wn.alloc(),Se=0;Se<te;Se++){var De=E[Se];b.contains(De)&&a.Oj(y,De,x,se,he,me,!1)}wn.free(me),y.globalAlpha=ne}}}ot.Oj=function(a,y,x,b,E,te,ne){if(ne&&!td(y))a.Hs(y);else{if(b!==null&&y instanceof Un&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(ne=!1,b=y.containingGroup;b!==null;)ne?b.tb!==null&&te.Ex(b.tb):b.tb!==null&&(ne=!0,te.assign(b.tb)),b=b.containingGroup;var se=y.actualBounds;if(b=!1,ne&&y.isVisible()){if(!te.Yc(se)){a.Hs(y);return}b=!te.Re(se)}b&&(a.save(),a instanceof Ml?a.bk=te.copy():(a.beginPath(),a.rect(te.x,te.y,te.width,te.height),a.clip())),se.width*E>x.Oq||se.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,te=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(oa(y,a,y.areaBackground,!0,!0,te,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(oa(y,a,"rgba(0,0,0,0.3)",!0,!1,te,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),oa(y,a,y.background,!0,!1,te,E),a.fillRect(0,0,te.width/2,te.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},ot.g=function(a,y,x,b,E){var te=this.diagram;te!==null&&te.cb(Go,a,this,y,x,b,E)},ot.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Os(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),gu(this,a,y),a},ot.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,Os(y),a};function gu(a,y,x){if(y=cf(a,y,x),x instanceof ei&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];if(se===x&&(y=ne,0<=b)||0>b&&se.containingGroup===x&&(b=ne,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&gu(a,-1,y)}x.svg!==null&&x.svg.remove()}function cf(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var te=y-1,ne=NaN;0<=te&&(ne=a.M(te).zOrder,!!isNaN(ne));)te--;for(var se=y+1,he=NaN;se<E&&(he=a.M(se).zOrder,!!isNaN(he));)se++;if(!isNaN(ne)&&ne>b)for(;;){if(te===-1||ne<=b){if(te++,te===y)break;return a.mb(y),a.Gb(te,x),te}for(ne=NaN;0<=--te&&(ne=a.M(te).zOrder,isNaN(ne)););}else if(!isNaN(he)&&he<b)for(;;){if(se===E||he>=b){if(se--,se===y)break;return a.mb(y),a.Gb(se,x),se}for(he=NaN;++se<E&&(he=a.M(se).zOrder,isNaN(he)););}return y}Ot.Object.defineProperties(Ho.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&$t("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&$t("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Wn(a,"0 <= value <= 1",Ho,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),Ho.prototype.findObjectsNear=Ho.prototype.og,Ho.prototype.findObjectsIn=Ho.prototype.Cf,Ho.prototype.findObjectsAt=Ho.prototype.ji,Ho.prototype.findObjectAt=Ho.prototype.ic,Ho.className="Layer";function ln(a,y){if(hm||(Ls(),hm=!0),pi(this),Vu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ra){var x=this,b=function(){x.removeEventListener(zt.document,"DOMContentLoaded",b,!1),x.setRTL()};zt.document.body!==null?this.setRTL():x.addEventListener(zt.document,"DOMContentLoaded",b,!1)}this.ol=null,rp.add("Model",uo);var E=this;return this.Hb=function(te){var ne=E.partManager;if(te.model===ne.diagram.model&&ne.diagram.aa){ne.diagram.aa=!1;try{var se=te.change;te.modelChange===""&&se===Go&&ne.updateDataBindings(te.object,te.propertyName)}finally{ne.diagram.aa=!0}}},this.Oc=function(te){E.partManager.doModelChanged(te)},this.hu=this.ku=null,hf(this),this.model=hy(),this.Wg=!0,Vh(this),this.layout=new _o,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new dm,a!==void 0&&(typeof a=="string"||zt.Element&&a instanceof Element?Md(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Pc,Vu;function hf(a){a.Yd=new qo,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Tn,a.pj=new cr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Lt(NaN,NaN).freeze(),a.du=new Lt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Lt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new gi,a.zu=new Lt(NaN,NaN).freeze(),a.ut=new wn(NaN,NaN,NaN,NaN).freeze(),a.rj=new Tr(0,0,0,0).freeze(),a.sj=xh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Is,a.zk=oo,a.Fg=Is,a.pq=oo,a.yt=Wa,a.Bt=Wa,a.Fc=!0,a.pn=!1,a.De=new On,a.Eh=new cr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Tr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new ws,a.bq.diagram=a,a.Qg=new ws,a.Qg.diagram=a,a.cj=new ws,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,nv(a),a.ai=new On,a.Ht=!0,a.uu=wh,a.pw=!1,a.wu=mf,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new cr,a.Xn=new Tn,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new Tr(5).freeze(),a.Hw=new On().freeze(),a.Nt=999999999,a.nw=new On().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new On,a.ow=new On,a.Xh=null,a.aw=new Kn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Lt,bounds:new wn,Py:new Kn,bA:new Kn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new wn(NaN,NaN,NaN,NaN).freeze(),a.wo=new Kn(NaN,NaN).freeze(),a.Sp=new wn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new cr;var y=new nr,x=new Co;x.bind(new ba("text","",zn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new nr,x=new Co,x.stroke="brown",x.bind(new ba("text","",zn)),y.add(x),a.Lg.add("Comment",y),y=new nr,y.selectable=!1,y.avoidable=!1,x=new di,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Kn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new cr,y=new ei,y.selectionObjectName="GROUPPANEL",y.type=Gn.Vertical,x=new Co,x.font="bold 12pt sans-serif",x.bind(new ba("text","",zn)),y.add(x),x=new Gn(Gn.Auto),x.name="GROUPPANEL";var b=new di;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Ws,b.padding=new Tr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new cr,y=new Un,x=new di,x.isPanelMain=!0,y.add(x),x=new di,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Un,x=new di,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ki,y.type=Gn.Auto,x=new di,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Ws,x.margin=new Tr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ki,y.type=Gn.Link,x=new di,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new uo,a.toolManager=new Fo,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new de,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Yc(),a.eq=null,a.fq=Ji,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new Lt,a.zy=500,a.wp=new Lt,a.wq=!1}ln.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Bd=null,Jh="",gh(this,!1),this.Xn.clear(),mp(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function gh(a,y){a.animationManager.Cc(!0),a.Hw=new On().freeze(),a.nw=new On().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var te=[],ne=a.Wa.length;if(y){for(y=0;y<ne;y++)for(var se=a.Wa.s[y].parts;se.next();){var he=se.value;he!==E&&he.data===null&&te.push(he)}for(y=0;y<te.length;y++)a.remove(te[y])}for(y=0;y<ne;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),mp(),a.Og.clear(),Rr=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),te}function Yc(){return null}ln.prototype.reset=function(){this.clear(),this.vb=!0,hf(this),lc(this),this.Wg=!0,Vh(this),this.layout=new _o,this.Wg=!1,this.model=hy(),this.model.undoManager=new Ko,this.vb=this.rn=!1,this.N()},ln.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=zt.document.body);var y=Yn("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},ln.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=zt.document.body);var y=0;if(ra){var x=cm;y=Pc,x===null&&(x=cm=Yn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Pc=Yn("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||Jr||(y=11)}this.Db=y,this.Gw=!0},ln.prototype.qb=function(a){a.classType===ln&&(this.autoScale=a)},ln.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);return y};function Md(a,y){if(ra){if(y!=null||$t("Diagram setup requires an argument DIV."),a.Ka!==null&&$t("Diagram has already completed setup."),typeof y=="string"?a.Ka=zt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:$t("No DIV or DIV id supplied: "+y),a.Ka===null&&$t("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&$t("Invalid div id; div already has a Diagram associated with it."),!a.ol&&zt.ResizeObserver){var x=_n(function(){a.$b()},250);a.ol=new zt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}zt.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=zt.go;var E=new yu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",zt.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Dd(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new yu(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,ra){E=Yn("div");var te=Yn("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",te.style.position="absolute",te.style.width="1px",te.style.height="1px",a.Ka.appendChild(E),E.appendChild(te),E.onscroll=Zf,E.addEventListener("pointerdown",ff),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=te}a.hk=_n(function(){a.Yh=null,a.N()},300),a.Ov=_n(function(){Ld(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var se=ml(a,ne,!0);se.bubbles=!0;var he=0,me=0;se.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(he=0<ne.deltaX?1:-1),ne.deltaY!==0&&(me=0<ne.deltaY?1:-1),se.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-he:-me):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(he=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(me=0<ne.wheelDeltaY?-1:1),se.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-he:-me):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(se.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),Ul(se,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,ml(a,ne,!0),ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())},a.ui=function(ne){if(a.isEnabled){a.Vk=!0;var se=a.Yt;se[ne.pointerId]===void 0&&(se[ne.pointerId]=ne),se=a.oj;var he=!1;if(se[0]===null||se[0].pointerId!==ne.pointerId&&se[0].pointerType===ne.pointerType)if(se[1]!==null&&se[1].pointerId===ne.pointerId)se[1]=ne,he=!0;else if(se[0]===null)se[0]=ne;else if(se[1]===null)se[1]=ne,he=!0;else{ne.preventDefault();return}else se[0]=ne;(se=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var me=he;he=Nd(a,ne,!0,!1,!0,me),yh(a,ne,he),he.targetDiagram=Od(ne,ne.target),he.targetObject=null,me||he.clone(a.bq),me=a.uw,se=se?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(me.x-ne.screenX)>se||Math.abs(me.y-ne.screenY)>se)?a.yq++:a.yq=1,he.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():Ul(he,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var se=a.oj;if(se[0]===null||se[0].pointerId!==ne.pointerId&&se[0].pointerType===ne.pointerType){if(se[1]!==null&&se[1].pointerId===ne.pointerId){se[1]=ne;return}if(se[0]===null)se[0]=ne;else return}else se[0]=ne;if(se[0].pointerId===ne.pointerId){se=Nd(a,ne,!1,!1,!1,se[1]!==null);var he=zt.document.elementFromPoint(ne.clientX,ne.clientY)||null;he!==null&&he.shadowRoot!==void 0&&he.shadowRoot!==null&&(he=he.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var me=a,Se=ne;he&&he.H&&(Se=ne,me=he.H),se.targetDiagram=me,yh(a,Se,se),se.targetObject=null,a.doMouseMove(),Ul(se,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var se=ne.pointerType==="touch"||ne.pointerType==="pen",he=a.Yt;if(se&&a.qu)delete he[ne.pointerId],ne.preventDefault();else if(he=a.oj,he[0]===null||he[0].pointerId!==ne.pointerId&&he[0].pointerType===ne.pointerType)he[1]!==null&&he[1].pointerId===ne.pointerId&&(he[1]=null);else{he[0]=null,he=Nd(a,ne,!1,!0,!0,!1);var me=zt.document.elementFromPoint(ne.clientX,ne.clientY)||null;me!==null&&me.shadowRoot!==void 0&&me.shadowRoot!==null&&(me=me.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),me!==null&&me.H instanceof ln&&me.H!==a&&yh(me.H,ne,he),me===null&&(me=ne.target),yh(a,ne,he),he.clickCount=a.yq,he.targetDiagram=Od(ne,me),he.targetObject=null,a.doMouseUp(),Ul(he,ne),se&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var se=a.Yt;se[ne.pointerId]&&delete se[ne.pointerId],se=a.oj,se[0]!==null&&se[0].pointerId===ne.pointerId&&(se[0]=null),se[1]!==null&&se[1].pointerId===ne.pointerId&&(se[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var se=a.oj;se[0]!==null&&se[0].pointerId===ne.pointerId?(se[0]=null,a.wq=!1):se[1]!==null&&se[1].pointerId===ne.pointerId&&(se[1]=null)},a.Vp=b.Z["d"+Sf[1]+Sf[2]+"wI"+_d.slice(1,5)]["b"+jx.slice(1,y)](b.Z,yf,y,y),b.Vc(!0),Kp(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}ln.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},ln.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function Kp(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(zt,"resize",a.Ov,!1)}function Ms(a){30<a.Sq&&(a.Yh=1)}function Kh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Sr&&Sr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}ln.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:zt.devicePixelRatio||1},ln.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},ln.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},ln.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},ln.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},ln.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},ln.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},ln.prototype.doFocus=function(){this.focus()},ln.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=zt.scrollX||zt.pageXOffset,y=zt.scrollY||zt.pageYOffset;this.ta.focus(),zt.scrollTo(a,y)}},ln.prototype.Oy=function(){this.H.R("GainedFocus")},ln.prototype.Ny=function(){this.H.R("LostFocus")};function Ld(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Is&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Vh(a){var y=new Ho;y.name="Background",a.Al(y),y=new Ho,y.name="",a.Al(y),y=new Ho,y.name="Foreground",a.Al(y),y=new Ho,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Ho,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Ho,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function df(a){var y=new Gn(Gn.Grid);y.name="GRID";var x=new di;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new di,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new di,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new di,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new di,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new di,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Mr,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function Zf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Tc(this.H)}function ff(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Tc(this.H)}ln.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,te=this.rj,ne=b.x-te.left,se=b.y-te.top,he=b.width+te.left+te.right,me=b.height+te.top+te.bottom,Se=b.right+te.right;te=b.bottom+te.bottom;var De=E.x;b=E.y;var We=E.width,qe=E.height,nt=E.right,lt=E.bottom;E=this.scale;var At=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":At=At+a.scrollWidth-a.clientWidth;break;case"reverse":At=a.scrollWidth-At-a.clientWidth}var Tt=At;We<he||qe<me?(At=Lt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Tt&&(At.x=Tt/E+ne,this.ju=Tt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(At.y=a.scrollTop/E+se,this.lu=a.scrollTop),this.position=At,Lt.free(At),this.Ee=this.qr=!1):(At=Lt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<De&&(this.position=At.h(Tt+ne,this.position.y)),Se>nt&&(this.position=At.h(-(y.scrollWidth-this.Aa)+Tt-this.Aa/E+Se,this.position.y))),a.vy&&this.allowVerticalScroll&&(se<b&&(this.position=At.h(this.position.x,a.scrollTop+se)),te>lt&&(this.position=At.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+te))),Lt.free(At),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,Se=b.right,nt=E.right,te=b.bottom,lt=E.bottom,ne=b.x,De=E.x,se=b.y,b=E.y,We>=he&&ne>=De&&Se<=nt&&(x.style.width="1px"),qe>=me&&se>=b&&te<=lt&&(x.style.height="1px"))}},ln.prototype.computeBounds=function(a){return a===void 0&&(a=new wn),cs(this),kd(this,a)};function kd(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,te=0;te<E;te++){var ne=b[te];if(ne.visible&&ne.isInDocumentBounds){ne=ne.Pa.s;for(var se=ne.length,he=0;he<se;he++){var me=ne[he];me.isInDocumentBounds&&me.isVisible()&&(me=me.actualBounds,me.w()&&(x?(x=!1,y.assign(me)):y.ed(me)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}ln.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Cn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Un||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof Un||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new wn(NaN,NaN,0,0):x};function Hl(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Lt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=wn.allocAt(0,0,b.width,b.height);var E=Lt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,wn.free(b),Lt.free(E),Lt.free(x)}x=a.yh,y&&a.Fg!==Is&&(x=a.Fg);var te=x!==Is?mh(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/te;var ne=a.ya/te,se=a.zk,he=a.pq;y&&!se.sb()&&(he.sb()||he.Xb())&&(se=he.Xb()?Di:he),pf(a,a.documentBounds,E,ne,se,y),y=a.scale,a.scale=te,a.vb=!1,te=a.viewportBounds,Qt.B(te.x,x)&&Qt.B(te.y,b)&&Qt.B(te.width,E)&&Qt.B(te.height,ne)||a.onViewportBoundsChanged(new wn(x,b,E,ne),te,y,!1)}}function mh(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var te=a.Aa+(a.gf?a.Db:0),ne=a.ya+(a.Be?a.Db:0),se=te/E,he=ne/b;return y===Wl?(y=Math.min(he,se),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Qh?(y=he>se?(ne-a.Db)/b:(te-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}ln.prototype.zoomToFit=function(){var a=this.sj;this.sj=xh,this.scale=mh(this,Wl),a!==xh&&(Hl(this,!1),pf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},ot=ln.prototype,ot.BA=function(a,y){y===void 0&&(y=Wl);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Wl||y===Qh)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var te=this.ya;E=y===Qh?te/b>E/x?(te-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(te/b,E/x)}this.scale=E,this.position=new Lt(a.x,a.y)}},ot.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Lt(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},ot.zz=function(a){if(a instanceof Yt){this.eq=a;var y=Lt.alloc();this.fq=this.op(a.ga(Wa,y)),Lt.free(y)}else this.eq=null,this.fq=Ji};function pf(a,y,x,b,E,te){var ne=Lt.allocAt(a.pa.x,a.pa.y),se=ne.x,he=ne.y;if(a.eq!==null){var me=Lt.alloc();me=a.eq.ga(Wa,me),se=me.x-a.fq.x/a.scale,he=me.y-a.fq.y/a.scale,E=aa,Lt.free(me)}(te||a.scrollMode===xh)&&(E.sb()&&(x>y.width&&(se=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(he=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,te=x-y.width,x<y.width+E.left+E.right?(se=Math.min(se+x/2,y.right+Math.max(te,E.right)-x/2),se=Math.max(se,y.left-Math.max(te,E.left)+x/2),se-=x/2):se>y.left?se=y.left:se<y.right-x&&(se=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(he=Math.min(he+b/2,y.bottom+Math.max(x,E.bottom)-b/2),he=Math.max(he,y.top-Math.max(x,E.top)+b/2),he-=b/2):he>y.top?he=y.top:he<y.bottom-b&&(he=y.bottom-b)),ne.x=isFinite(se)?se:-a.yb.left,ne.y=isFinite(he)?he:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),gs(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),lc(a),Lt.free(ne)}ot.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Lu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Mr)return a}else if(a=Lu(this,a,function(x){return x.part}),a instanceof Mr)return a;return null},ot.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),cs(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Lu(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),cs(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}ot.lz=function(a,y,x){return y===void 0&&(y=!0),Cc(this,a,function(b){return b.part},y?function(b){return b instanceof Mr&&b.canSelect()}:null,x)};function Cc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Tn||E instanceof On||(E=new On),cs(a),a=a.Wa.iteratorBackwards;a.next();){var te=a.value;te.visible&&!te.isTemporary&&te.ji(y,x,b,E)}return E}ot.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Tn||b instanceof On||(b=new On),cs(this);for(var E=this.Wa.iteratorBackwards;E.next();){var te=E.value;te.visible&&te.ji(a,y,x,b)}return b},ot.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),vh(this,a,function(E){return E instanceof Mr&&(!x||E.canSelect())},y,b)},ot.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Tn||E instanceof On||(E=new On),cs(this);for(var te=this.Wa.iteratorBackwards;te.next();){var ne=te.value;ne.visible&&ne.Cf(a,y,x,b,E)}return E},ot.Nu=function(a,y,x,b,E,te){var ne=new On;cs(this);for(var se=this.Wa.iteratorBackwards;se.next();){var he=se.value;he.visible&&he.Nu(a,y,x,b,ne,E,te)}return ne};function vh(a,y,x,b,E){var te=null;for(te===void 0&&(te=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Tn||E instanceof On||(E=new On),cs(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,te,x,b,E)}return E}ot.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),Jc(this,a,y,function(te){return te instanceof Mr&&(!b||te.canSelect())},x,E)},ot.og=function(a,y,x,b,E,te){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Tn||E instanceof On)&&(te=E),E=!0),te instanceof Tn||te instanceof On||(te=new On),cs(this);for(var ne=this.Wa.iteratorBackwards;ne.next();){var se=ne.value;se.visible&&se.og(a,y,x,b,E,te)}return te};function Jc(a,y,x,b,E,te){var ne=null;for(ne===void 0&&(ne=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Tn||E instanceof On)&&(te=E),E=!0),te instanceof Tn||te instanceof On||(te=new On),cs(a),a=a.Wa.iteratorBackwards;a.next();){var se=a.value;se.visible&&!se.isTemporary&&se.og(y,x,ne,b,E,te)}return te}ln.prototype.acceptEvent=function(a){return ml(this,a,a instanceof MouseEvent)};function ml(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?yh(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),Jr&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=Od(y,y.target),b.targetObject=null,b}function Od(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Nd(a,y,x,b,E,te){var ne=a.Qg;return a.Qg=a.cj,a.cj=ne,ne.diagram=a,ne.clickCount=1,a=ne.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ne.modifiers=a,ne.event=y,ne.timestamp=y.timeStamp,ne.button=y.button,ne.buttons=y.buttons,Jr&&y.button===0&&y.ctrlKey&&(ne.button=2),ne.down=x,ne.up=b,ne.handled=!1,ne.bubbles=E,ne.isMultiTouch=te,ne}function Ul(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}ln.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=ml(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),Ul(x,a)},ln.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ml(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),Ul(x,a)},ln.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ml(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Ul(x,a)},ln.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ml(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Ul(x,a)},ln.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Lt(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?mi(new Lt(y,a),this.Ab):new Lt(y,a)};function yh(a,y,x){var b=a.ta,E=a.Aa,te=a.ya,ne=0,se=0;b!==null&&(b=b.getBoundingClientRect(),ne=y.clientX-E/b.width*b.left,se=y.clientY-te/b.height*b.top),x.viewPoint.h(ne,se),a.Ab!==null?(y=Lt.allocAt(ne,se),a.Ab.Cd(y),x.documentPoint.assign(y),Lt.free(y)):x.documentPoint.h(ne,se)}function Ad(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}ln.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function jd(a){a.ld||cs(a),a.Va()}ln.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},ot=ln.prototype,ot.Pz=function(){return this.kg},ot.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,ol(this),this.hf=!1,this.du=new Lt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&qn(function(){b.ld=!1,Ps(y,"Model"),a(b)},1)},ot.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;zt.requestAnimationFrame(function(){y.kg&&y.bd()})}},ot.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ol(this))};function Ec(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Tc(a)||(y&&cs(a),x&&Hl(a,!1))}function ol(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];Ia(se,!1),se.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(he){he.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Ld(a),Ec(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(sc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),cs(a),te=!1,(!a.hf||a.xh)&&(a.hf?qp(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),qp(a,!1)),te=!0),a.Jk=!1,cs(a),a.ou||jd(a),Ec(a,!0,!1),ne=!1,te?(x=wn.alloc(),x.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Id(a)),a.R("LayoutCompleted"),Ec(a,!0,!1),wn.free(x)):x.Ok&&x.Qw&&(a.Fg!==Is?a.scale=mh(a,a.Fg):a.yh!==Is?a.scale=mh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Hl(a,!0)),te&&ne&&a.eb("Initial Layout"),cs(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Id(a){if(a.Fg!==Is)a.scale=mh(a,a.Fg);else if(a.yh!==Is)a.scale=mh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Hl(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),sc(a)}function cs(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new On,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof ei&&b.U&65536&&(b.U=b.U^65536)})}}ot.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof ei||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof ei&&x.isVisible()&&ta(this,x);for(a.reset();a.next();)x=a.value,x instanceof Un&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Ki&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function ta(a,y){for(var x=pn(),b=pn(),E=y.memberParts;E.next();){var te=E.value;te.isVisible()&&(te instanceof ei?(Vl(te)||Hs(te)||ed(te))&&ta(a,te):te instanceof Un?te.fromNode===y||te.toNode===y?b.push(te):x.push(te):(te.measure(1/0,1/0),te.arrange()))}for(a=x.length,E=0;E<a;E++)te=x[E],te.measure(1/0,1/0),te.arrange();for(kn(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();kn(b)}ot.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},ot.gc=function(a){if(this.Ka!==null){if(this.ta===null&&$t("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){iu(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,te=Math.round(y.x*E)/E,ne=Math.round(y.y*E)/E,se=this.Ab;for(se.reset(),E!==1&&se.scale(E),y.x===0&&y.y===0||se.translate(-te,-ne),a.ti=null,Xy(a,se.m11,se.m12,se.m21,se.m22,se.dx,se.dy),this.pb!==1&&(a.globalAlpha=this.pb),js(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?zd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(gi.prototype.Cd=gi.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(te=this.animationManager,!te.zb&&(!te.isAnimating||te.isTicking)&&(x=new Date,iu(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!te.isAnimating)break e;te=this.Ab,te.reset(),ne=this.Mb,se=this.pa;var he=this.Ca,me=Math.round(se.x*he)/he,Se=Math.round(se.y*he)/he;for(he!==1&&te.scale(he),se.x===0&&se.y===0||te.translate(-me,-Se),a.setTransform(ne,0,0,ne,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),js(this,a),se=0;se<E;se++)a.setTransform(ne,0,0,ne,0,0),a.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),a.yc(),y[se].gc(a,this);if(y=!1,this.Yf?zd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(gi.prototype.Cd=gi.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Sr&&Sr.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function Ma(a,y,x,b,E,te,ne,se,he,me){if(a.Ka!==null){a.ta===null&&$t("No canvas specified"),ne===void 0&&(ne=null),se===void 0&&(se=null),he===void 0&&(he=!1),me===void 0&&(me=!1),iu(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var Se=a.Ca;a.Ca=E;var De=a.Wa.s,We=De.length;try{var qe=new wn(te.x,te.y,b.width/E,b.height/E),nt=qe.copy();nt.Co(x),sc(a,nt),cs(a),a.Fd(De,We,a,qe),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),se!==null&&se!==""&&(y.fillStyle=se,y.ox(0,0,b.width,b.height));var lt=a.Mb;y.scale(lt,lt);var At=gi.alloc();At.reset(),At.translate(x.left,x.top),At.scale(E),te.x===0&&te.y===0||At.translate(-te.x,-te.y),y.setTransform(At.m11,At.m12,At.m21,At.m22,At.dx,At.dy),y.yc(),y instanceof Ml&&Xy(y,At.m11,At.m12,At.m21,At.m22,At.dx,At.dy),gi.free(At),js(a,y),y.globalAlpha=a.pb;var Tt=a.Qj("Grid");if(ne){var Bt=new On,_t=ne.iterator;for(_t.reset();_t.next();){var Gt=_t.value;Gt instanceof Mr&&(me||Gt.layer!==Tt)&&(Gt.Gj(),Bt.add(Gt))}for(me=0;me<We;me++)gl(De[me],y,a,Bt,he);Bt.each(function(un){return un.Gj()})}else for(Bt=0;Bt<We;Bt++){var Zt=De[Bt];Zt===Tt?me&&Zt.gc(y,a,!0):Zt.gc(y,a,he)}a.$i=!1,a.Yf&&zd(a.Yf,a)&&a.Vp()}finally{a.Ca=Se,a.ib.Vc(!0),a.vd=!0,a.Fd(De,We,a,a.viewportBounds),sc(a),a.ib instanceof Ml&&(a.ib.Nj.PA(),a.redraw())}}}ot.Gf=function(a){return this.Rg[a]},ot.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},ot.Tx=function(){this.Rg=new vr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Jr||Or),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function js(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}ot.Ql=function(a){return this.on[a]},ot.sA=function(a,y){this.on[a]=y},ot.Sx=function(){this.on=new vr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},ot.set=function(a){return Object.assign(this,a),this},ot.Du=function(a){return this.nm(a)},ot.nm=function(a){return ru(this,a),this};function ru(a,y){var x=a instanceof Gn,b=a instanceof ln,E;for(E in y){E===""&&$t("Setting properties requires non-empty property names");var te=a,ne=E;if(x||b){var se=E.indexOf(".");if(0<se){var he=E.substring(0,se);x?te=a.fb(he):(te=a[he],te==null&&(te=a.toolManager[he])),nn(te)?ne=E.substr(se+1):$t("Unable to find object named: "+he+" in "+a.toString()+" when trying to set property: "+E)}}if(ne[0]!=="_"&&!Dn(te,ne))if(b&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(b&&ne==="Changed"){a.Pe(y[ne]);continue}else if(b&&Dn(a.toolManager,ne))te=a.toolManager;else if(b&&sm(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof mr&&ne==="Changed"){a.Pe(y[ne]);continue}else $t('Trying to set undefined property "'+ne+'" on object: '+te.toString());te[ne]=y[E],ne[0]==="_"&&te instanceof Yt&&te.Vw(ne)}}ot.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new cr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},ot.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},ln.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==vf&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),te=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,te-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=wn.alloc(),Qp(this,this.computeBounds(b)),wn.free(b)),b=this.ta,b===null||b instanceof uc)))){var ne=this.Mb;E=this.Aa*ne;var se=this.ya*ne,he=this.scale*ne;te=Math.round(Math.round(y.x*he)-Math.round(a.x*he)),y=Math.round(Math.round(y.y*he)-Math.round(a.y*he)),he=this.jw,a=this.oy,he.width!==E&&(he.width=E),he.height!==se&&(he.height=se),a.clearRect(0,0,E,se),he=190*ne;var me=70*ne,Se=Math.max(te,0),De=Math.max(y,0),We=Math.floor(E-Se),qe=Math.floor(se-De);a.drawImage(b.Oa,Se,De,We,qe,0,0,We,qe),zd(this.Yf,this)&&a.clearRect(0,0,he,me),b=pn(),a=pn(),qe=Math.abs(te),We=Math.abs(y);var nt=Se===0?0:E-qe;Se=Lt.allocAt(nt,0),qe=Lt.allocAt(qe+nt,se),a.push(new wn(Math.min(Se.x,qe.x),Math.min(Se.y,qe.y),Math.abs(Se.x-qe.x),Math.abs(Se.y-qe.y)));var lt=this.Ab;if(lt.reset(),lt.scale(ne,ne),this.Ca!==1&<.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&<.translate(-ne.x,-ne.y),mi(Se,lt),mi(qe,lt),b.push(new wn(Math.min(Se.x,qe.x),Math.min(Se.y,qe.y),Math.abs(Se.x-qe.x),Math.abs(Se.y-qe.y))),nt=De===0?0:se-We,Se.h(0,nt),qe.h(E,We+nt),a.push(new wn(Math.min(Se.x,qe.x),Math.min(Se.y,qe.y),Math.abs(Se.x-qe.x),Math.abs(Se.y-qe.y))),mi(Se,lt),mi(qe,lt),b.push(new wn(Math.min(Se.x,qe.x),Math.min(Se.y,qe.y),Math.abs(Se.x-qe.x),Math.abs(Se.y-qe.y))),zd(this.Yf,this)&&(E=0<te?0:-te,se=0<y?0:-y,Se.h(E,se),qe.h(he+E,me+se),a.push(new wn(Math.min(Se.x,qe.x),Math.min(Se.y,qe.y),Math.abs(Se.x-qe.x),Math.abs(Se.y-qe.y))),mi(Se,lt),mi(qe,lt),b.push(new wn(Math.min(Se.x,qe.x),Math.min(Se.y,qe.y),Math.abs(Se.x-qe.x),Math.abs(Se.y-qe.y)))),Lt.free(Se),Lt.free(qe),Ec(this,!1,!0),this.Ka===null&&$t("No div specified"),this.ta===null&&$t("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(iu(this),se=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*se,this.ya*se),E.drawImage(this.jw.Oa,0<te?0:Math.round(-te),0<y?0:Math.round(-y)),te=this.pa,ne=this.Ca,he=Math.round(te.x*ne)/ne,me=Math.round(te.y*ne)/ne,y=this.Ab,y.reset(),ne!==1&&y.scale(ne),te.x===0&&te.y===0||y.translate(-he,-me),E.save(),E.beginPath(),te=a.length,ne=0;ne<te;ne++)he=a[ne],he.width!==0&&he.height!==0&&E.rect(Math.floor(he.x),Math.floor(he.y),Math.ceil(he.width),Math.ceil(he.height));for(E.clip(),E.setTransform(se,0,0,se,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,te=y.length,this.Fd(y,te,this,this.viewportBounds),js(this,E),E.globalAlpha=this.pb,se=0;se<te;se++)if(ne=y[se],he=b,ne.visible&&ne.pb!==0){me=vs(ne,E),De=ne.Zq,De.length=0,Se=this.scale,We=wn.alloc(),qe=ne.Pa.s,lt=qe.length,nt=he.length;for(var At=0;At<lt;At++){var Tt=qe[At],Bt=Vd(Tt,Tt.actualBounds);e:{for(var _t=2/Se,Gt=4/Se,Zt=0;Zt<nt;Zt++){var un=he[Zt];if(un.width!==0&&un.height!==0&&Bt.Vu(un.x-_t,un.y-_t,un.width+Gt,un.height+Gt)){Bt=!0;break e}}Bt=!1}Bt&&ne.Oj(E,Tt,this,De,Se,We,!0)}wn.free(We),E.globalAlpha=me}E.restore(),E.Vc(!0),this.Yf&&zd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}kn(b),kn(a),this.ld=!1}}else this.bd();x&&(Ms(this),this.bd(),Kh(this,!0))}else x?(Ms(this),this.bd(),Kh(this,!0)):this.bd()}};function iu(a){a.pn!==!1&&(a.pn=!1,Dd(a,a.Aa,a.ya))}function Dd(a,y,x){lc(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Tc(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,te=!1,ne=a.gf?a.Db:0,se=a.Be?a.Db:0,he=E.clientWidth||x+ne,me=E.clientHeight||b+se,Se=a.viewportBounds;E=Se.x;var De=Se.y,We=Se.width,qe=Se.height;if((he!==x+ne||me!==b+se)&&(a.gf=!1,a.Be=!1,se=ne=0,a.Aa=he,a.ya=me,te=a.pn=!0,lc(a)),!a.hf||!a.viewportBounds.w())return!0;var nt=a.ku,lt=a.hu;if(a.Ee=!1,!(te||a.gf||a.Be||a.mn||a.nn))return!0;var At=a.documentBounds,Tt=0,Bt=0,_t=0,Gt=0,Zt=Se.width,un=Se.height,er=a.rj;a.contentAlignment.sb()?(At.width>Zt&&(Tt=er.left,Bt=er.right),At.height>un&&(_t=er.top,Gt=er.bottom)):(Tt=er.left,Bt=er.right,_t=er.top,Gt=er.bottom);var ur=At.width+Tt+Bt,ir=At.height+_t+Gt;er=a.scale;var Hn=ur>he/er,An=ir>me/er;if(!(te||a.gf||a.Be||Hn||An))return!0;Tt=At.x-Tt,he=Se.x,Bt=At.right+Bt,me=Se.right+ne,_t=At.y-_t;var Qr=Se.y;At=At.bottom+Gt,Se=Se.bottom+se;var Wr="1px";if(Gt="1px",a.scrollMode===xh&&(Hn||An)&&(Hn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Hn=1,Tt+1<he&&(Hn=Math.max((he-Tt)*er+a.Aa,Hn)),Bt>me+1&&(Hn=Math.max((Bt-me)*er+a.Aa,Hn)),Zt+ne+1<ur&&(Hn=Math.max((ur-Zt)*er+a.Aa,Hn)),Wr=Hn.toString()+"px"),An&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Hn=1,_t+1<Qr&&(Hn=Math.max((Qr-_t)*er+a.ya,Hn)),At>Se+1&&(Hn=Math.max((At-Se)*er+a.ya,Hn)),un+se+1<ir&&(Hn=Math.max((ir-un)*er+a.ya,Hn)),Gt=Hn.toString()+"px")),Hn=Wr!=="1px",An=Gt!=="1px",Hn&&An||!Hn&&!An||(An&&(me-=a.Db),Hn&&(Se-=a.Db),ur<Zt+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,Tt+1<he&&(ne=Math.max((he-Tt)*er+a.Aa,ne)),Bt>me+1&&(ne=Math.max((Bt-me)*er+a.Aa,ne)),Zt+1<ur&&(ne=Math.max((ur-Zt)*er+a.Aa,ne)),Wr=ne.toString()+"px"),Hn=Wr!=="1px",ne=a.ya,Hn!==a.Be&&(ne=Hn?a.ya-a.Db:a.ya+a.Db),ir<un+se||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(se=1,_t+1<Qr&&(se=Math.max((Qr-_t)*er+ne,se)),At>Se+1&&(se=Math.max((At-Se)*er+ne,se)),un+1<ir&&(se=Math.max((ir-un)*er+ne,se)),Gt=se.toString()+"px"),An=Gt!=="1px"),a.qr&&Hn===a.Be&&An===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Hn!==a.Be&&(Wr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),te=!0),a.Be=Hn,lt.style.width=Wr,An!==a.gf&&(Gt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),te=!0,a.tn&&(se=Lt.alloc(),An?(y.style.left=a.Db+"px",a.position=se.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=se.h(a.pa.x-a.Db/a.scale,a.pa.y)),Lt.free(se))),te&&lc(a),a.gf=An,lt.style.height=Gt,a.gu=!0,te&&(a.pn=!0),y=nt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Zt+1<ur?y=(a.position.x-Tt)*er:Tt+1<he?y=nt.scrollWidth-nt.clientWidth:Bt>me+1&&(y=a.position.x*er)),a.tn)switch(a.bu){case"negative":y=-(nt.scrollWidth-y-nt.clientWidth);break;case"reverse":y=nt.scrollWidth-y-nt.clientWidth}return nt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(un+1<ir?nt.scrollTop=(a.position.y-_t)*er:_t+1<Qr?nt.scrollTop=nt.scrollHeight-nt.clientHeight:At>Se+1&&(nt.scrollTop=a.position.y*er)),he=a.Aa,me=a.ya,nt.style.width=he+(a.gf?a.Db:0)+"px",nt.style.height=me+(a.Be?a.Db:0)+"px",x!==he||b!==me||a.animationManager.zb?(x=wn.allocAt(E,De,We,qe),a.onViewportBoundsChanged(x,a.viewportBounds,er,te),wn.free(x),!1):!0}ot=ln.prototype,ot.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&$t("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&$t('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(la,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},ot.oi=function(a){this.partManager.oi(a);var y=this;Ud(a,function(x){Fd(y,x)}),(a instanceof Ki||a instanceof ei&&a.placeholder!==null)&&a.v(),a.data!==null&&Ud(a,function(x){ly(y.partManager,x)}),Hs(a)!==!0&&ed(a)!==!0||this.De.add(a),R1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(Vd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Vd(a,a.actualBounds)),this.$b()},ot.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ud(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(Vd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Vd(a,a.actualBounds)),this.$b()},ot.remove=function(a){Zh(this,a,!0)};function Zh(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(Oa,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}ot.Is=function(a,y){if(y===void 0&&(y=!1),Cn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new On,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},ot.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},ln.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Xf(this)),this.toolManager!==null){var E=new cr;if(a!==null)if(Cn(a))for(var te=0;te<a.length;te++)mu(this,E,a[te],x,b);else for(a=a.iterator;a.next();)mu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)mu(this,E,a.value,x,b);for(a=this.nodes;a.next();)mu(this,E,a.value,x,b);for(a=this.links;a.next();)mu(this,E,a.value,x,b)}ac(this,E,y,b,x)}};function mu(a,y,x,b,E,te){if(!y.contains(x)&&(te===void 0&&(te=!1),!b||te||x.canMove()||x.canCopy()))if(E===void 0&&(E=Xf(a)),x instanceof nr){if(y.add(x,a.Pd(E,x,x.location)),x instanceof ei&&(x.placeholder!==null||E.dragsMembers))for(te=x.memberParts;te.next();)mu(a,y,te.value,b,E,E.groupsAlwaysMove);for(te=x.linksConnected;te.next();){var ne=te.value;if(!y.contains(ne)){var se=ne.fromNode,he=ne.toNode;se!==null&&y.contains(se)&&he!==null&&y.contains(he)&&mu(a,y,ne,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)mu(a,y,x.value,b,E)}else if(x instanceof Un)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)mu(a,y,x.value,b,E);else x instanceof Ki||y.add(x,a.Pd(E,x,x.location))}function ac(a,y,x,b,E){if(y!==null&&y.count!==0){var te=Lt.alloc(),ne=Lt.alloc();ne.assign(x),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(x=a.Mr)||Jf(a,y);for(var se=pn(),he=pn(),me=y.iterator,Se=Lt.alloc();me.next();){var De=me.key,We=me.value;if(De.Zc()){var qe=Vp(a,De,y);qe!==null?se.push(new oe(De,We,qe)):(!E||De.canMove())&&(qe=We.point,te.assign(qe),a.computeMove(De,te.add(ne),b,Se),De.location=Se,We.shifted===void 0&&(We.shifted=new Lt),We.shifted.assign(Se.re(qe)))}else me.key instanceof Un&&he.push(me.sa)}for(Lt.free(Se),E=se.length,me=0;me<E;me++)De=se[me],te.assign(De.info.point),De.Su.shifted===void 0&&(De.Su.shifted=new Lt),De.node.location=te.add(De.Su.shifted);for(E=Lt.alloc(),me=Lt.alloc(),De=he.length,We=0;We<De;We++){var nt=he[We];if(qe=nt.key,qe instanceof Un)if(qe.suspendsRouting){qe.Tg=null,Se=qe.fromNode;var lt=qe.toNode;if(a.draggedLink!==null&&b.dragsLink)if(lt=nt.value.point,qe.dragComputation===null)y.add(qe,a.Pd(b,qe,ne)),Lh(qe,ne.x-lt.x,ne.y-lt.y);else{nt=Lt.allocAt(0,0),(Se=qe.i(0))&&Se.w()&&nt.assign(Se);var At=Se=Lt.alloc().assign(nt).add(ne);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(At=Lt.alloc(),Yf(a,qe,Se,At,b)),Se.assign(qe.dragComputation(qe,Se,At)).re(nt),y.add(qe,a.Pd(b,qe,Se)),Lh(qe,Se.x-lt.x,Se.y-lt.y),Lt.free(nt),Lt.free(Se),At!==Se&&Lt.free(At)}else Se!==null&&(E.assign(Se.location),At=y.I(Se),At!==null&&E.re(At.point)),lt!==null&&(me.assign(lt.location),At=y.I(lt),At!==null&&me.re(At.point)),Se!==null&<!==null?E.Xa(me)?(Se=nt.value.point,lt=te,lt.assign(E),lt.re(Se),y.add(qe,a.Pd(b,qe,E)),Lh(qe,lt.x,lt.y)):(qe.suspendsRouting=!1,qe.bb()):(nt=nt.value.point,Se=Se!==null?E:lt!==null?me:ne,y.add(qe,a.Pd(b,qe,Se)),Lh(qe,Se.x-nt.x,Se.y-nt.y))}else(qe.fromNode===null||qe.toNode===null)&&(Se=nt.value.point,y.add(qe,a.Pd(b,qe,ne)),Lh(qe,ne.x-Se.x,ne.y-Se.y))}Lt.free(te),Lt.free(ne),Lt.free(E),Lt.free(me),kn(se),kn(he),x||(cs(a),Xh(a,y))}}ln.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Lt),b.assign(y),a===null)return b;var E=y,te=x.isGridSnapEnabled;te&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Lt.alloc(),Yf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var ne=a.minLocation,se=ne.x;isNaN(se)&&(se=te?Math.round(1e3*a.location.x)/1e3:a.location.x),ne=ne.y,isNaN(ne)&&(ne=te?Math.round(1e3*a.location.y)/1e3:a.location.y);var he=a.maxLocation,me=he.x;return isNaN(me)&&(me=te?Math.round(1e3*a.location.x)/1e3:a.location.x),he=he.y,isNaN(he)&&(he=te?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(se,Math.min(x.x,me)),Math.max(ne,Math.min(x.y,he))),E!==y&&Lt.free(E),b};function Xf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Yf(a,y,x,b,E){if(E===void 0&&(E=Xf(a)),b.assign(x),y!==null){var te=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var ne=E.gridSnapOrigin,se=ne.x;if(ne=ne.y,E=E.gridSnapCellSpot,te!==null){var he=te.gridCellSize;isNaN(a)&&(a=he.width),isNaN(y)&&(y=he.height),te=te.gridOrigin,isNaN(se)&&(se=te.x),isNaN(ne)&&(ne=te.y)}te=Lt.allocAt(0,0),te.yi(0,0,a,y,E),Qt.No(x.x,x.y,se+te.x,ne+te.y,a,y,b),Lt.free(te)}}function Jf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Un&&(y.suspendsRouting=!0)}function Xh(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Un&&(x.suspendsRouting=!1,Zv(x)&&x.bb())}a.Mr=!1}}function Vp(a,y,x){return y=y.containingGroup,y!==null&&(a=Vp(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}ot=ln.prototype,ot.Pd=function(a,y,x){if(x===void 0)return new Qc(Ii);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Qc(new Lt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Qc(x.copy())};function Zp(a,y,x){if(y.diagram!==null&&y.diagram!==a&&$t("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&$t("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&$t("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&$t("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&$t("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}ot.Al=function(a){Zp(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(la,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},ot.Ww=function(a,y){Zp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Oa,"layers",this,a,null,b,null));var E=x.count,te;for(te=0;te<E;te++)if(x.M(te)===y){x.Gb(te,a);break}return this.cc!==null&&this.cb(la,"layers",this,null,a,null,te),this.N(),0>b&&this.Ya(),this},ot.Cy=function(a,y){Zp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Oa,"layers",this,a,null,b,null));var E=x.count,te;for(te=0;te<E;te++)if(x.M(te)===y){x.Gb(te+1,a);break}return this.cc!==null&&this.cb(la,"layers",this,null,a,null,te+1),this.N(),0>b&&this.Ya(),this},ot.kA=function(a){if(a.diagram!==this&&$t("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(Oa,"layers",this,a,null,x,null),this.N(),this.Ya()}}},ot.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},ot.Yw=function(a){return this.pf===null&&(this.pf=new Tn),this.pf.add(a),this.model.Pe(a),this},ot.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},ot.Pe=function(a){return this.zg===null&&(this.zg=new Tn),this.zg.add(a),this},ot.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},ot.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==il&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},ot.cb=function(a,y,x,b,E,te,ne){te===void 0&&(te=null),ne===void 0&&(ne=null);var se=new $o;se.diagram=this,se.change=a,se.propertyName=y,se.object=x,se.oldValue=b,se.oldParam=te,se.newValue=E,se.newParam=ne,this.ds(se)},ot.g=function(a,y,x,b,E){this.cb(Go,a,this,y,x,b,E)},ln.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Go){var E=a.object;if(jo(E,a.propertyName,a.I(y)),E instanceof Yt){var te=E.part;te!==null&&te.Wb()}this.isModified=!0}else if(b===la){var ne=a.object,se=a.newParam,he=a.newValue;if(ne instanceof Gn)if(typeof se=="number"&&he instanceof Yt){y?ne.pc(se):ne.Gb(se,he);var me=ne.part;me!==null&&me.Wb()}else typeof se=="number"&&he instanceof Da&&(he.isRow?h1(ne,se,y?void 0:he):d1(ne,se,y?void 0:he));else if(ne instanceof Ho){var Se=a.oldParam===!0;typeof se=="number"&&he instanceof Mr&&(y?(he.isSelected=!1,he.isHighlighted=!1,he.Wb(),ne.pc(Se?se:-1,he,Se)):ne.oi(se,he,Se))}else ne instanceof ln?typeof se=="number"&&he instanceof Ho&&(y?this.Wa.mb(se):(he.Xe(this),this.Wa.Gb(se,he))):$t("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Oa){var De=a.object,We=a.oldParam,qe=a.oldValue;if(De instanceof Gn)typeof We=="number"&&qe instanceof Yt?y?De.Gb(We,qe):De.pc(We):typeof We=="number"&&qe instanceof Da&&(qe.isRow?h1(De,We,y?qe:void 0):d1(De,We,y?qe:void 0));else if(De instanceof Ho){var nt=a.newParam===!0;typeof We=="number"&&qe instanceof Mr&&(y?0>De.Pa.indexOf(qe)&&De.oi(We,qe,nt):(qe.isSelected=!1,qe.isHighlighted=!1,qe.Wb(),De.pc(nt?We:-1,qe,nt)))}else De instanceof ln?typeof We=="number"&&qe instanceof Ho&&(y?(qe.Xe(this),this.Wa.Gb(We,qe)):this.Wa.mb(We)):$t("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==il&&$t("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},ln.prototype.Ea=function(a){return this.undoManager.Ea(a)},ln.prototype.eb=function(a){return this.undoManager.eb(a)},ln.prototype.Kf=function(){return this.undoManager.Kf()},ln.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},ln.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},ln.prototype.rp=function(){this.partManager.rp()};function Xp(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,lc(a),a.N(),a.Ee=!0,b.zb&&(ps(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,lc(a);else{a.vb=!0;var E=a.viewportBounds.copy(),te=a.Aa,ne=a.ya,se=a.zoomPoint.x,he=a.zoomPoint.y,me=a.contentAlignment;isNaN(se)&&(me.$c()?me.Hf(Ru)?se=0:me.Hf(_s)&&(se=te-1):se=me.sb()?me.x*(te-1):te/2),isNaN(he)&&(me.$c()?me.Hf(Eu)?he=0:me.Hf(dl)&&(he=ne-1):he=me.sb()?me.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),te=Lt.allocAt(a.pa.x+se/y-se/x,a.pa.y+he/y-he/x),a.position=te,Lt.free(te),a.Ca=x,lc(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Hl(a,!1),b.zb&&(ps(b)||b.ce.add(b.H,"scale",y,a.Ca))}}ln.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==Is||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Fo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Uf(E,this)),this.vb||this.invalidateViewport(a,y),sc(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(te){te.isAvoiding&&te.actualBounds.Yc(y)&&te.bb()})}};function sc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Kn.alloc(),E=1,te=1,ne=x.O.s,se=ne.length,he=0;he<se;he++){var me=ne[he],Se=Math.abs(me.interval);2>Se||(mv(me.figure)?te=te*Se/Qt.vx(te,Se):E=E*Se/Qt.vx(E,Se))}if(ne=x.gridCellSize,b.h(te*ne.width,E*ne.height),y!==void 0)E=y.width,te=y.height,a=y.x,ne=y.y;else{if(y=wn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){wn.free(y);return}E=y.width,te=y.height,a=y.x,ne=y.y,wn.free(y)}x.width=E+2*b.width,x.height=te+2*b.height,y=Lt.alloc(),Qt.No(a,ne,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Kn.free(b),x.part.location=y,Lt.free(y)}}ln.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},ln.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},ln.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Cn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Mr||$t("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Mr||$t("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},ln.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},ot=ln.prototype,ot.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},ot.Jz=function(a){a=new On().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof Mr||$t("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},ot.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,te=Lt.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=te.h(x.x,E.y):y==="left"?this.position=te.h(E.x,x.y):y==="down"?this.position=te.h(x.x,E.bottom-x.height):y==="right"&&(this.position=te.h(E.right-x.width,x.y)),Lt.free(te);return}$t("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=te.h(x.x,x.y-E):y==="down"?this.position=te.h(x.x,x.y+E):y==="left"?this.position=te.h(x.x-E,x.y):y==="right"?this.position=te.h(x.x+E,x.y):$t("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Lt.free(te)},ot.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},ot.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},ot.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},ot.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,te=b+a.height,ne=y.m11,se=y.m12,he=y.m21,me=y.m22,Se=y.dx,De=y.dy,We=x*ne+b*he+Se;y=x*se+b*me+De;var qe=E*ne+b*he+Se;return a=E*se+b*me+De,b=x*ne+te*he+Se,x=x*se+te*me+De,ne=E*ne+te*he+Se,E=E*se+te*me+De,te=Math.min(We,qe),We=Math.max(We,qe),qe=Math.min(y,a),y=Math.max(y,a),te=Math.min(te,b),We=Math.max(We,b),qe=Math.min(qe,x),y=Math.max(y,x),te=Math.min(te,ne),We=Math.max(We,ne),qe=Math.min(qe,E),y=Math.max(y,E),new wn(te,qe,We-te,y-qe)},ot.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),mi(a.copy(),this.Ab)};function om(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Yp(a){return a=rp.get(a),a!==null?new a:new uo}ln.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===il&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(he){return he.diagram=E}),a.mouseMoveTools.each(function(he){return he.diagram=E}),a.mouseUpTools.each(function(he){return he.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===il){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),cs(this));var te=this.animationManager;b==="RolledBackTransaction"&&te.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ts(te),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ne=a.isTransactionFinished;if(ne&&(om(this),this.As.clear(),ia(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var se=this;qn(function(){se.currentTool.standardMouseOver(),se.Rt=!1},10)}}}finally{this.aa=!0}}}};function Fd(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Yh(a,y[b])}function Yh(a,y){if(y instanceof ul){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof On&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function Jp(a,y){if(y instanceof ul){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var te=0;te<E.length;te++)if(E[te]===y){E.splice(te,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof On&&x.Bg.remove(a),mp(b));break}}}}}ln.prototype.Wd=function(){this.partManager.Wd()},ln.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},ln.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},ln.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},ln.prototype.Vb=function(a){return this.partManager.Vb(a)},ln.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},ot=ln.prototype,ot.Lc=function(a){return this.partManager.Lc(a)},ot.ii=function(a){return this.partManager.ii(a)},ot.Kc=function(a){return this.partManager.Kc(a)},ot.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:Pi(yi(y)))},ot.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:Pi(yi(y)))};function lc(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Qp(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Hl(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}ot.Va=function(){if(this.Zi){var a=wn.alloc();Qp(this,this.computeBounds(a)),wn.free(a)}},ot.rz=function(){for(var a=new On,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},ot.qz=function(){return this.ai.iterator},ot.Uz=function(a){cs(this),a&&Qf(this,!0),this.ld?qp(this,!1):(this.Jk=!0,ol(this))};function Qf(a,y){for(var x=a.ai.iterator;x.next();)am(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function am(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)am(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function qp(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,te=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!te.defaultAnimation.isAnimating&&!te.zb&&(y||Ps(te,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)eg(a,ne.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),cs(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||ts(te),a.aa=x}}}function eg(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)eg(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),ta(a,y),E.isValidLayout=!0):a.xh=!0)}}ot.yz=function(){for(var a=new Tn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function nv(a){function y(E){var te=E.toLowerCase(),ne=new Tn;x.add(E,ne),x.add(te,ne),b.add(E,E),b.add(te,E)}var x=new cr,b=new cr;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function sm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function qf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;$t("Unknown DiagramEvent name: "+y)}ot.Bj=function(a,y){return a=qf(this,a),a!==null&&a.add(y),this},ot.am=function(a,y){a=qf(this,a),a!==null&&a.remove(y)},ot.R=function(a,y,x){var b=qf(this,a),E=new Kc;if(E.diagram=this,a=sm(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function ep(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}ot.Yj=function(a,y){return tp(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},ln.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?kd(this,a):a.assign(this.documentBounds)};function tp(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new kg(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=lm(a,x)),x===null){y=wn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var te=a.nodes;te.next();){var ne=te.value,se=ne.layer;se!==null&&se.visible&&!se.isTemporary&&np(a,ne,b,y)}wn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=wn.alloc(),te=x.memberParts;te.next();)ne=te.value,ne instanceof nr&&np(a,ne,b,y);wn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&oS(E);return E}function lm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?lm(a,y.containingGroup):null}function np(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,te=y.y;if(bp(a,E,te))for(x=(te-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((te+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(te=a.ac[E],te.fill)te.fill(Oh,x,y+1);else for(var ne=x;ne<=y;ne++)te[ne]=Oh}else if(y instanceof ei)for(y=y.memberParts;y.next();)E=y.value,E instanceof nr&&np(a,E,x,b)}}function Sh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}ln.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():tg(this)};function tg(a){a.vk===-1&&(a.vk=qn(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=wn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Qp(a,y),wn.free(y),a.Fc=!0,a.bd(),tg(a))}},a.vp))}ln.prototype.ug=function(){this.vk!==-1&&(zt.clearTimeout(this.vk),this.vk=-1)},ln.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=wn.allocAt(0,0,b.width*E,b.height*E);var te=Lt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var ne=Math.max(this.scrollHorizontalLineChange,1);ne|=0,te.x-=ne,a.x<b.x+x.left/2&&(te.x-=ne),a.x<b.x+x.left/4&&(te.x-=4*ne)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,te.x+=ne,a.x>b.x+b.width-x.right/2&&(te.x+=ne),a.x>b.x+b.width-x.right/4&&(te.x+=4*ne));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,te.y-=ne,a.y<b.y+x.top/2&&(te.y-=ne),a.y<b.y+x.top/4&&(te.y-=4*ne)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,te.y+=ne,a.y>b.y+b.height-x.bottom/2&&(te.y+=ne),a.y>b.y+b.height-x.bottom/4&&(te.y+=4*ne)),te.Xa(Ii)||(y=new Lt(y.x+te.x/E,y.y+te.y/E)),wn.free(b),Lt.free(te),y},ot=ln.prototype,ot.Cs=function(){return null},ot.av=function(){return null},ot.bs=function(a,y){this.pj.add(a,y)},ot.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof ei&&(y.$p=null)})};function gf(a,y,x){function b(){var Se=+new Date;for(te=!0,ne.reset();ne.next();)if(!ne.value[0].al){te=!1;break}te||Se-me>he?y(x,E,se):zt.requestAnimationFrame(b)}for(var E=x.callback,te=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){te=!1;break}if(typeof E!="function"||te)return y(x,E,a);var se=a,he=x.callbackTimeout||300,me=+new Date;return zt.requestAnimationFrame(function(){b()}),null}ot.Wz=function(a){return ra?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},ot.Jx=function(a){return a===void 0&&(a={}),gf(this,this.Xz,a)},ot.Xz=function(a,y,x){var b=um(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case _d+"data":E=b.getImageData(0,0,x.width,x.height);break;case _d:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&$t('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function um(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&$t("properties argument must be an Object.");var E=y.size||null,te=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(te="NaN");var ne=y.maxSize;y.maxSize===void 0&&(ne=x==="SVG"?new Kn(1/0,1/0):new Kn(2e3,2e3));var se=y.position||null,he=y.parts||null,me=y.padding===void 0?1:y.padding,Se=y.background||null,De=y.omitTemporary;De===void 0&&(De=!0);var We=y.document||document,qe=y.elementFinished||null,nt=y.showTemporary;nt===void 0&&(nt=!De),y=y.showGrid,y===void 0&&(y=nt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof me=="number"?me=new Tr(me):me instanceof Tr||$t("MakeImage padding must be a Margin or a number."),me.left=Math.max(me.left,0),me.right=Math.max(me.right,0),me.top=Math.max(me.top,0),me.bottom=Math.max(me.bottom,0),a.ib.Vc(!0),De=new yu(null,We,void 0,!0);var lt=De.context;if(!(E||te||he||se))return De.width=a.Aa+Math.ceil(me.left+me.right),De.height=a.ya+Math.ceil(me.top+me.bottom),x==="SVG"?b===null?null:(b.resize(De.width,De.height,De.width,De.height),b.ownerDocument=We,b.hs=qe,Ma(a,b.context,me,new Kn(De.width,De.height),a.Ca,a.pa,he,Se,nt,y),b.context):(a.Xm=!1,Ma(a,lt,me,new Kn(De.width,De.height),a.Ca,a.pa,he,Se,nt,y),a.Xm=!0,De.context);var At=a.Pp,Tt=a.documentBounds.copy();if(Tt.Fv(a.yb),nt)for(var Bt=a.Wa.s,_t=Bt.length,Gt=0;Gt<_t;Gt++){var Zt=Bt[Gt];if(Zt.visible&&Zt.isTemporary){Zt=Zt.Pa.s;for(var un=Zt.length,er=0;er<un;er++){var ur=Zt[er];ur.isInDocumentBounds&&ur.isVisible()&&(ur=ur.actualBounds,ur.w()&&Tt.ed(ur))}}}if(Bt=new Lt(Tt.x,Tt.y),he!==null){for(_t=new wn(0,0,0,0),Gt=!0,Zt=he.iterator,Zt.reset();Zt.next();)un=Zt.value,un instanceof Mr&&(er=un.layer,er!==null&&!er.visible||er!==null&&!nt&&er.isTemporary||!un.isVisible()||(un=un.actualBounds,un.w()&&(Gt?(Gt=!1,_t.assign(un)):_t.ed(un))));Tt.width=_t.width,Tt.height=_t.height,Bt.x=_t.x,Bt.y=_t.y}return se!==null&&se.w()&&(Bt=se,te||(te=At)),_t=se=0,me!==null&&(se=me.left+me.right,_t=me.top+me.bottom),Gt=Zt=0,E!==null&&(Zt=E.width,Gt=E.height,isFinite(Zt)&&(Zt=Math.max(0,Zt-se)),isFinite(Gt)&&(Gt=Math.max(0,Gt-_t))),E!==null&&te!==null?(te==="NaN"&&(te=At),E.w()?(E=Zt,Tt=Gt):isNaN(Gt)?(E=Zt,Tt=Tt.height*te):(E=Tt.width*te,Tt=Gt)):E!==null?E.w()?(te=Math.min(Zt/Tt.width,Gt/Tt.height),E=Zt,Tt=Gt):isNaN(Gt)?(te=Zt/Tt.width,E=Zt,Tt=Tt.height*te):(te=Gt/Tt.height,E=Tt.width*te,Tt=Gt):te!==null?te==="NaN"&&ne.w()?(te=Math.min((ne.width-se)/Tt.width,(ne.height-_t)/Tt.height),te>At?(te=At,E=Tt.width,Tt=Tt.height):(E=ne.width,Tt=ne.height)):(E=Tt.width*te,Tt=Tt.height*te):(te=At,E=Tt.width,Tt=Tt.height),me!==null?(E+=se,Tt+=_t):me=new Tr(0),ne!==null&&(At=ne.width,ne=ne.height,isNaN(At)&&(At=2e3),isNaN(ne)&&(ne=2e3),isFinite(At)&&(E=Math.min(E,At)),isFinite(ne)&&(Tt=Math.min(Tt,ne))),De.width=Math.ceil(E),De.height=Math.ceil(Tt),x==="SVG"?b===null?null:(b.resize(De.width,De.height,De.width,De.height),b.ownerDocument=We,b.hs=qe,Ma(a,b.context,me,new Kn(Math.ceil(E),Math.ceil(Tt)),te,Bt,he,Se,nt,y),b.context):(a.Xm=!1,Ma(a,lt,me,new Kn(Math.ceil(E),Math.ceil(Tt)),te,Bt,he,Se,nt,y),a.Xm=!0,De.context)}Ot.Object.defineProperties(ln.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Re||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new uc(this,zt.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new uc(this,zt.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(zt,"resize",this.Ov,!1),this.removeEventListener(zt,"wheel",this.$j,!0),Vu===this&&(Vu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Md(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Wn(a,"0 <= value <= 1",ln,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),Hl(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),Hl(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),Hl(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),Hl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Wn(a,">= 0",ln,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Wn(a,">= 0",ln,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Wn(a,">= 0",ln,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||om(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&$t("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=gh(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Ps(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(te){return y.ik(te)}),y.ik(this.Oc)),this.cc=a,this.partManager=Yp(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(te){return a.Pe(te)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(zt,"pointermove",this.dk,!0),this.addEventListener(zt,"pointerdown",this.ui,!0),this.addEventListener(zt,"pointerup",this.fk,!0),this.addEventListener(zt,"pointerout",this.ek,!0),this.addEventListener(zt,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(zt,"wheel",this.$j,!0),this.addEventListener(zt,"selectstart",this.preventDefault,!1)):(this.removeEventListener(zt,"pointermove",this.dk,!0),this.removeEventListener(zt,"pointerdown",this.ui,!0),this.removeEventListener(zt,"pointerup",this.fk,!0),this.removeEventListener(zt,"pointerout",this.ek,!0),this.removeEventListener(zt,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(zt,"wheel",this.$j,!0),this.removeEventListener(zt,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=Lt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),gs(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?lc(this):(this.vb=!0,a=this.scale,pf(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Lt.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=df(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=df(this)),a.type!==Gn.Grid&&$t("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),sc(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),lc(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||$t("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new Tr(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===xh&&Hl(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,Hl(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,Xp(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&Xp(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==Is&&Hl(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||$t("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||$t("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):Wn(a,"> 0",ln,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):Wn(a,"> 0",ln,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Hl(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Tr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&$t("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Sg(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==wh&&a!==ja&&a!==ip&&$t("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Kn(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Tr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Ot.Object.defineProperties(ln,{licenseKey:{get:function(){return sg.jc()},set:function(a){sg.add(a.replace(/\s/g,""))}},version:{get:function(){return Rd}}}),ln.prototype.makeImageData=ln.prototype.Jx,ln.prototype.makeImage=ln.prototype.Wz,ln.prototype.cacheGroupExternalLinks=ln.prototype.Fu,ln.prototype.addRenderer=ln.prototype.bs,ln.prototype.makeSVG=ln.prototype.av,ln.prototype.makeSvg=ln.prototype.Cs,ln.prototype.stopAutoScroll=ln.prototype.ug,ln.prototype.doAutoScroll=ln.prototype.gs,ln.prototype.isUnoccupied=ln.prototype.Yj,ln.prototype.raiseDiagramEvent=ln.prototype.R,ln.prototype.removeDiagramListener=ln.prototype.am,ln.prototype.addDiagramListener=ln.prototype.Bj,ln.prototype.findTreeRoots=ln.prototype.yz,ln.prototype.layoutDiagram=ln.prototype.Uz,ln.prototype.findTopLevelGroups=ln.prototype.qz,ln.prototype.findTopLevelNodesAndLinks=ln.prototype.rz,ln.prototype.ensureBounds=ln.prototype.Va,ln.prototype.findLinksByExample=ln.prototype.ls,ln.prototype.findNodesByExample=ln.prototype.ms,ln.prototype.findLinkForData=ln.prototype.Kc,ln.prototype.findNodeForData=ln.prototype.ii,ln.prototype.findPartForData=ln.prototype.Lc,ln.prototype.findLinkForKey=ln.prototype.findLinkForKey,ln.prototype.findNodeForKey=ln.prototype.Vb,ln.prototype.findPartForKey=ln.prototype.findPartForKey,ln.prototype.rebuildParts=ln.prototype.Wd,ln.prototype.transformViewToDoc=ln.prototype.Ps,ln.prototype.transformRectDocToView=ln.prototype.zA,ln.prototype.transformDocToView=ln.prototype.op,ln.prototype.centerRect=ln.prototype.es,ln.prototype.scrollToRect=ln.prototype.tv,ln.prototype.scroll=ln.prototype.scroll,ln.prototype.highlightCollection=ln.prototype.Jz,ln.prototype.highlight=ln.prototype.Iz,ln.prototype.selectCollection=ln.prototype.rA,ln.prototype.select=ln.prototype.select,ln.prototype.updateAllRelationshipsFromData=ln.prototype.rp,ln.prototype.updateAllTargetBindings=ln.prototype.updateAllTargetBindings,ln.prototype.commit=ln.prototype.commit,ln.prototype.rollbackTransaction=ln.prototype.Kf,ln.prototype.commitTransaction=ln.prototype.eb,ln.prototype.startTransaction=ln.prototype.Ea,ln.prototype.raiseChanged=ln.prototype.g,ln.prototype.raiseChangedEvent=ln.prototype.cb,ln.prototype.removeChangedListener=ln.prototype.ik,ln.prototype.addChangedListener=ln.prototype.Pe,ln.prototype.removeModelChangedListener=ln.prototype.mA,ln.prototype.addModelChangedListener=ln.prototype.Yw,ln.prototype.findLayer=ln.prototype.Qj,ln.prototype.removeLayer=ln.prototype.kA,ln.prototype.addLayerAfter=ln.prototype.Cy,ln.prototype.addLayerBefore=ln.prototype.Ww,ln.prototype.addLayer=ln.prototype.Al,ln.prototype.moveParts=ln.prototype.moveParts,ln.prototype.copyParts=ln.prototype.Kj,ln.prototype.removeParts=ln.prototype.Is,ln.prototype.remove=ln.prototype.remove,ln.prototype.add=ln.prototype.add,ln.prototype.clearDelayedGeometries=ln.prototype.bx,ln.prototype.setProperties=ln.prototype.nm,ln.prototype.attach=ln.prototype.Du,ln.prototype.set=ln.prototype.set,ln.prototype.resetInputOptions=ln.prototype.Sx,ln.prototype.setInputOption=ln.prototype.sA,ln.prototype.getInputOption=ln.prototype.Ql,ln.prototype.resetRenderingHints=ln.prototype.Tx,ln.prototype.setRenderingHint=ln.prototype.Xx,ln.prototype.getRenderingHint=ln.prototype.Gf,ln.prototype.maybeUpdate=ln.prototype.bd,ln.prototype.requestUpdate=ln.prototype.$b,ln.prototype.delayInitialization=ln.prototype.Xy,ln.prototype.isUpdateRequested=ln.prototype.Pz,ln.prototype.invalidateDocumentBounds=ln.prototype.Ya,ln.prototype.findObjectsNear=ln.prototype.og,ln.prototype.findPartsNear=ln.prototype.mz,ln.prototype.findObjectsIn=ln.prototype.Cf,ln.prototype.findPartsIn=ln.prototype.ux,ln.prototype.findObjectsAt=ln.prototype.ji,ln.prototype.findPartsAt=ln.prototype.lz,ln.prototype.findObjectAt=ln.prototype.ic,ln.prototype.findPartAt=ln.prototype.Ol,ln.prototype.focusObject=ln.prototype.zz,ln.prototype.alignDocument=ln.prototype.Jy,ln.prototype.zoomToRect=ln.prototype.BA,ln.prototype.zoomToFit=ln.prototype.zoomToFit,ln.prototype.diagramScroll=ln.prototype.kx,ln.prototype.focus=ln.prototype.focus;var rp=new cr,cm=null,ra=zt.document!==void 0,Bd=null,Jh="",Is=new vn(ln,"None",0),Wl=new vn(ln,"Uniform",1),Qh=new vn(ln,"UniformToFill",2),mf=new vn(ln,"CycleAll",10),ng=new vn(ln,"CycleNotDirected",11),rg=new vn(ln,"CycleNotDirectedFast",12),ig=new vn(ln,"CycleNotUndirected",13),og=new vn(ln,"CycleDestinationTree",14),ag=new vn(ln,"CycleSourceTree",15),xh=new vn(ln,"DocumentScroll",1),vf=new vn(ln,"InfiniteScroll",2),wh=new vn(ln,"TreeParentCollapsed",21),ja=new vn(ln,"AllParentsCollapsed",22),ip=new vn(ln,"AnyParentsCollapsed",23),sg=new Tn,Rd="2.3.10",_d="image",yf=null,hm=!1;function Ls(){if(ra){var a=zt.document.createElement("canvas"),y=a.getContext("2d"),x=dn("7ca11abfd022028846");y[x]=dn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Pn.Dx+"4ae6247590da4bb21c324ba3a84e385776",gi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Qt.za],E=1;5>E;E++)y[dn("7ca11abfd7330390")](dn(b[E-1]),10,15*E);for(y[x]=dn("39f046ebb36e4b"),x=1;5>x;x++)y[dn("7ca11abfd7330390")](dn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(gi.prototype.Cd=gi.prototype.Eu),yf=a}}ln.className="Diagram",ln.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=zt.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof ln?y.H:null},ln.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
|
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},ln.useDOM=function(a){ra=a?zt.document!==void 0:!1},ln.isUsingDOM=function(){return ra},ln.None=Is,ln.Uniform=Wl,ln.UniformToFill=Qh,ln.CycleAll=mf,ln.CycleNotDirected=ng,ln.CycleNotDirectedFast=rg,ln.CycleNotUndirected=ig,ln.CycleDestinationTree=og,ln.CycleSourceTree=ag,ln.DocumentScroll=xh,ln.InfiniteScroll=vf,ln.TreeParentCollapsed=wh,ln.AllParentsCollapsed=ja,ln.AnyParentsCollapsed=ip;function dm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function zd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=zt[dn("76a715b2f73f148a")][dn("72ba13b5")]||"";if(a.Rc=!0,ra){var b=ln[dn("76a115b6ed251eaf4692")];if(b)for(var E=sg.iterator;E.next()&&(b=E.value,b=dn(b).split(dn("39e9")),!(6>b.length));){var te=dn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ne=dn(Pn[dn("6cae19")]).split(".");if(te[0]>ne[0]||te[0]===ne[0]&&te[1]>=ne[1]){var se=zt[dn("74a900bae4370f8b51")][dn("6fbb13a1c2311e8a57")].toLowerCase();if(ne=se[dn("73a612b6fb191d")](dn("3aad1ab6e022098b4dc4")),te=dn(b[2]),-1<ne&&(se=se[dn("73a612b6fb191d")](te.toLowerCase()+"/"),a.Rc=!(-1<se&&se<ne),!a.Rc))break;for(ne=x[dn("76ad18b4f73e")],se=x[dn("73a612b6fb191d")](dn("35e7"))+2;se<ne;se++)y+=x[se];if(ne=y[dn("73a612b6fb191d")](te),0>ne&&te!==dn("7da71ca0ad381e90")&&(ne=y[dn("73a612b6fb191d")](dn("76a715b2ef3e149757"))),0>ne&&(ne=y[dn("73a612b6fb191d")](dn("76a715b2ef3e149757"))),0>ne&&(ne=y[dn("73a612b6fb191d")](dn("2bfa41fdb3784bca12"))),0>ne&&(ne=x[dn("73a612b6fb191d")](dn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[dn("73a612b6fb191d")](dn("35"))||y[dn("73a612b6fb191d")](dn("35"))===-1),!a.Rc||x[dn("73a612b6fb191d")](dn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[dn("73a612b6fb191d")](te)),!a.Rc)||(ne=zt[dn("76a715b2f73f148a")][dn("69ad17a1e03e")],se=ne[dn("73a612b6fb191d")](dn("7fb002b6ed25128b4da25b2e")),-1<se&&(a.Rc=!(ne[dn("73a612b6fb191d")](te)>se),!a.Rc)))break;if(te[0]==="#"){ne=zt.document.createElement("div");for(var he=b[0].replace(/[A-Za-z]/g,"");4>he.length;)he+="9";if(se=he,he=he.substr(he.length-4),b="",b+=["gsh","gsf"][parseInt(he.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(he.substr(0,1),10)%4],ne[dn("79a417a0f0181a8946")]=b,zt.document[dn("78a712aa")]){zt.document[dn("78a712aa")][dn("7bb806b6ed32388c4a875b")](ne),he=zt.getComputedStyle(ne).getPropertyValue(dn("78a704b7e62456904c9b12701b6532a8"));var me=zt.getComputedStyle(ne).getPropertyValue(dn("75b817b0ea2202"));if(zt.document[dn("78a712aa")][dn("68ad1bbcf533388c4a875b")](ne),he){if(ne=zt[dn("77a902b0eb1b1e804a8a")],me==="0."+parseInt(se,10)%100||he.indexOf(parseInt(te[1]+te[2],16))!==-1&&he.indexOf(parseInt(te[3]+te[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne(dn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,te=0;te<document.styleSheets.length;te++){ne=document.styleSheets[te].rules||document.styleSheets[te].cssRules;for(var Se in ne)if(b===ne[Se].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(Se=x[dn("76ad18b4f73e")],E=x[dn("73a612b6fb191d")](dn("35e7"))+2;E<Se;E++)y+=x[E];x=y[dn("73a612b6fb191d")](dn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[dn("73a612b6fb191d")](dn("35")))}}}return 0<a.Rc&&a!==a.wy}dm.className="DiagramHelper";function Qc(a){this.j=a===void 0?new Lt:a,this.o=new Lt}Ot.Object.defineProperties(Qc.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var Sf="DraggingInfo";Qc.className="DraggingInfo";function oe(a,y,x){this.node=a,this.info=y,this.Su=x}oe.className="DraggingNodeInfoPair";function de(){this.reset()}de.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Kn(NaN,NaN).freeze(),this.gridSnapCellSpot=Wa,this.gridSnapOrigin=new Lt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},de.className="DraggingOptions";function ke(a,y){if(typeof a=="string"||zt.Element&&a instanceof Element)var x=ln.call(this,a)||this;else x=ln.call(this)||this,y=a;return Le(x),y&&x.nm(y),x}cn(ke,ln);function Le(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Pl,a.layout=new ds}ke.prototype.reset=function(){ln.prototype.reset.call(this),Le(this)},ke.className="Palette";function Re(a,y){if(typeof a=="string"||zt.Element&&a instanceof Element)var x=ln.call(this,a)||this;else x=ln.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new Mr;var E=new di;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Tr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new jt,x.toolManager.mouseMoveTools),x.click=function(){var te=b.observed;if(te!==null){var ne=te.viewportBounds,se=b.lastInput.documentPoint;te.position=new Lt(se.x-ne.width/2,se.y-ne.height/2)}},x.Pf=function(){b.Ya(),xt(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&xt(b)},x.autoScale=Wl,x.vb=!1,y&&Object.assign(x,y),x}cn(Re,ln),Re.prototype.computePixelRatio=function(){return 1},Re.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(iu(this),this.ql===null){var x=new yu(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),st(this)}finally{this.ta=a,this.ib=y}}}ln.prototype.redraw.call(this)},Re.prototype.gc=function(){if(this.Ka===null&&$t("No div specified"),this.ta===null&&$t("No canvas specified"),!(this.ta instanceof uc)&&(Fv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){iu(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?st(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function st(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=wn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),sc(y,E),wn.free(E),cs(y));var te=a.Ab;te.reset(),a.scale!==1&&te.scale(a.scale),a.position.x===0&&a.position.y===0||te.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),E.yc(),y=y.Wa.s,te=y.length;for(var ne=0;ne<te;ne++){var se=y[ne],he=a;if(se.visible&&se.opacity!==0){var me=se.diagram.grid.part;if(!x&&se.isTemporary)b&&me.layer===se&&(se=vs(se,E),me.gc(E,he),E.globalAlpha=se);else{for(var Se=vs(se,E),De=he.scale,We=wn.alloc(),qe=se.Pa.s,nt=qe.length,lt=0;lt<nt;lt++){var At=qe[lt];(b||At!==me)&&se.Oj(E,At,he,null,De,We,!1)}wn.free(We),E.globalAlpha=Se}}}}}function xt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=Kn.alloc();E.h(x.width,x.height),b.desiredSize=E,Kn.free(E),a=2/a.scale,b instanceof di&&(b.strokeWidth=a),y.location=new Lt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Re.prototype.computeBounds=function(){var a=this.observed;if(a===null)return bi;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Re.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Re.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),xt(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},Ot.Object.defineProperties(Re.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Re&&$t("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),xt(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),xt(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),Re.className="Overview";function jt(){Vo.call(this),this.j=null}cn(jt,Vo),jt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Lt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Lt(a.x-this.j.x,a.y-this.j.y)),!0)},jt.prototype.doActivate=function(){this.j=null,Vo.prototype.doActivate.call(this)},jt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},jt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new Lt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Lt(a.x-this.j.x,a.y-this.j.y)}}},jt.className="OverviewDraggingTool";function Nt(){pi(this),this.H=Vu,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=bi,this.hb=!0,this.cg=null,this.ob=200}Nt.prototype.toString=function(){return"CommandHandler"},Nt.prototype.Xe=function(a){this.H=a},Nt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Jr?y.meta:y.control,b=y.shift,E=y.alt,te=y.key;!x||te!=="C"&&te!=="Insert"?x&&te==="X"||b&&te==="Del"?this.canCutSelection()&&this.cutSelection():x&&te==="V"||b&&te==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&te==="Y"||E&&b&&te==="Backspace"?this.canRedo()&&this.redo():x&&te==="Z"||E&&te==="Backspace"?this.canUndo()&&this.undo():te==="Del"||te==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&te==="A"?this.canSelectAll()&&this.selectAll():te==="Esc"?this.canStopCommand()&&this.stopCommand():te==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):te==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):te==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):te==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):te==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):te==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):te==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):te==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):te===" "?this.canScrollToPart()&&this.scrollToPart():te==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():te==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&te==="0"?this.canResetZoom()&&this.resetZoom():b&&te==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&te==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&te==="G"?this.canUngroupSelection()&&this.ungroupSelection():te==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():te==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Nt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Nt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Fo&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Nt.prototype.canStopCommand=function(){return!0},Nt.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Nt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Nt.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new On,x=a.selection.iterator;x.next();)nd(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Nt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Nt.prototype.copySelection=function(){var a=this.diagram,y=new On;for(a=a.selection.iterator;a.next();)nd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Nt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Nt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Nt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Nt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Bd=null,Jh="";else{x=y.model;var b=!1,E=!1,te=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),te=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new Tn,x.addAll(te),Bd=x,Jh=y.model.dataFormat}}y.R("ClipboardChanged",x)},Nt.prototype.pasteFromClipboard=function(){var a=new On,y=Bd;if(y===null)return a;var x=this.diagram;if(Jh!==x.model.dataFormat)return a;var b=x.model,E=!1,te=!1,ne=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(te=b.Ij,b.Ij=this.copiesGroupKey),ne=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=te),y=ne.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},Nt.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var te=this.computeEffectiveCollection(y.selection,y.Wm);ac(y,te,new Lt(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Nt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Bd===null||Bd.count===0||Jh!==a.model.dataFormat)},Nt.prototype.undo=function(){this.diagram.undoManager.undo()},Nt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Nt.prototype.redo=function(){this.diagram.undoManager.redo()},Nt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Nt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Is&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Nt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Is?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Nt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Is&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Nt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Is?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Nt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Nt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Nt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Ps(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=bi):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ts(y)},Nt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Nt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(he){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;Ps(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Wt(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var te=function(){y.Ea();for(var he=E.pop();0<E.length&&he instanceof nr&&he.isTreeExpanded&&(!(he instanceof ei)||he.isSubGraphExpanded);)he=E.pop();0<E.length?(he instanceof Mr&&y.tv(he.actualBounds),he instanceof nr&&!he.isTreeExpanded&&(he.isTreeExpanded=!0),he instanceof ei&&!he.isSubGraphExpanded&&(he.isSubGraphExpanded=!0)):(he instanceof Mr&&y.es(he.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){qn(te,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",ne),te()}}else{var se=y.position.copy();y.es(a.actualBounds),se.Xa(y.position)&&x.Cc()}}};function Wt(a,y,x){if(y.isVisible())return x;if(y instanceof Ki)Wt(a,y.adornedPart,x);else if(y instanceof Un){var b=y.fromNode;b!==null&&Wt(a,b,x),y=y.toNode,y!==null&&Wt(a,y,x)}else y instanceof nr&&(b=y.labeledLink,b!==null&&Wt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Wt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Wt(a,y,x));return x}Nt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Mr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Nt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ps(y.animationManager,"Collapse Tree");var x=new Tn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof nr&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Nt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof nr&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof nr&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Nt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ps(y.animationManager,"Expand Tree");var x=new Tn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof nr&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Nt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof nr)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof nr&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Nt.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new Tn,te=a.selection.iterator;te.next();){var ne=te.value;ne.Zc()&&ne.canGroup()&&E.add(ne)}for(var se=new Tn,he=E.iterator;he.next();){var me=he.value;te=!1;for(var Se=E.iterator;Se.next();)if(me.Td(Se.value)){te=!0;break}te||se.add(me)}if(0<se.count){var De=se.first().containingGroup;if(De!==null)for(;De!==null;){E=!1;for(var We=se.iterator;We.next();)if(!We.value.Td(De)){E=!0;break}if(E)De=De.containingGroup;else break}if(x instanceof ei)Su(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var qe=y.copyNodeData(x);nn(qe)&&(y.xf(qe),b=a.ii(qe))}if(b!==null){De!==null&&this.isValidMember(De,b)&&(b.containingGroup=De);for(var nt=se.iterator;nt.next();){var lt=nt.value;this.isValidMember(b,lt)&&(lt.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Nt.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function yn(a){var y=pn();for(a=a.iterator;a.next();){var x=a.value;x instanceof Un||y.push(x)}a=new On,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],te=!0,ne=0;ne<x;ne++)if(E.Td(y[ne])){te=!1;break}te&&a.add(E)}return kn(y),a}Nt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Un)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},Nt.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new Tn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var te=E.value;te instanceof ei&&te.canUngroup()&&b.add(te)}var ne=new Tn;if(0<b.count){y.clearSelection(!0);for(var se=b.iterator;se.next();){var he=se.value;he.expandSubGraph();var me=he.containingGroup,Se=me!==null&&me.data!==null?x.wa(me.data):void 0;ne.addAll(he.memberParts);for(var De=ne.iterator;De.next();){var We=De.value;if(We.isSelected=!0,!(We instanceof Un)){var qe=We.data;qe!==null?x.mp(qe,Se):We.containingGroup=me}}y.remove(he)}}y.R("SelectionUngrouped",b,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Nt.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof ei))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ei&&y.canUngroup())return!0;return!1},Nt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=yn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Nt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ps(y.animationManager,"Collapse SubGraph");var x=new Tn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof ei&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Nt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof ei&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ei&&y.isSubGraphExpanded)return!0;return!1},Nt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ps(y.animationManager,"Expand SubGraph");var x=new Tn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof ei&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Nt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof ei&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ei&&!y.isSubGraphExpanded)return!0;return!1},Nt.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(te){return te instanceof Co&&te.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Nt.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof Co))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof Co&&x.editable}),a!==null))return!0;return!1},Nt.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof Yt?E=a.ga(Di):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Lt(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,wo(x,!1,a)}},Nt.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},Nt.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new cr,a===null)return b;for(var te=a.iterator;te.next();)mu(x,b,te.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(te=a.iterator;te.next();)a=te.value,a instanceof Un&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Ot.Object.defineProperties(Nt.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||$t("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),Nt.className="CommandHandler",Yc=function(){return new Nt};function Yt(){pi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Lt(NaN,NaN).freeze(),this.jd=Jo,this.Ab=new gi,this.wh=new gi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Cs,this.uc=new wn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new wn(NaN,NaN,NaN,NaN).freeze(),this.dc=new wn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=oo,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var $n,Fn,hr,wr,Dr,ri,Li,wi,Bi,mo;Yt.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=rn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Yt.prototype.Vw=function(a){var y=this.Dh;if(Cn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Yt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Yt.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},Yt.prototype.copy=function(){return this.clone()},ot=Yt.prototype,ot.qb=function(a){a.classType===Un?a.name.indexOf("Orient")===0?this.segmentOrientation=a:$t("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Yt&&(this.stretch=a)},ot.toString=function(){return Mn(this.constructor)+"#"+zi(this)},ot.th=function(){this.A!==null&&(this.A.nc=!0)};function vi(a){a.A===null?a.A=new wf:a.A.nc&&(a.A=a.A.copy())}ot.Xc=function(){if(this.ba===null){var a=new lg;a.Xi=aa,a.yj=aa,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},ot.cb=function(a,y,x,b,E,te,ne){var se=this.part;if(se!==null&&(se.gk(a,y,x,b,E,te,ne),x===this&&a===Go&&ys(this)&&Oo(this,se,y),te=this.diagram,this.animationTriggers===null||te===null||!te.pi||te.undoManager.isUndoingRedoing||te.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&te.animationManager.isEnabled&&!te.animationManager.isTicking&&(this.jo===null&&(this.jo=new cr),ne=te.undoManager.transactionLevel===0,a.startCondition===us?ne=!0:a.startCondition===wa&&(ne=!1),ne?(te=new na,Xo(a,te),ne=this.jo.get(a),ne!==null&&ne.stop(),this.jo.add(a,te),te.vu=this,te.Nw=a,te.add(this,y,b,E),te.start()):(Ps(te.animationManager,"Trigger"),te.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Gn&&x===se&&(se.l&16777216)!==0&&se.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)se=x[E],se instanceof Gn&&Ud(se,function(he){he.data!==null&&he.l&16777216&&he.La(y)})};function Oo(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var te=E.value,ne=null;if(te.sourceName!==null){if(ne=MS(te,b,a),ne===null)continue;te.sp(a,ne,x,null)}else if(te.isToModel){var se=y.diagram;se===null||se.skipsModelSourceBindings||te.sp(a,se.model.modelData,x,b)}else{if(se=b.data,se===null)continue;var he=y.diagram;he===null||he.skipsModelSourceBindings||te.sp(a,se,x,b)}ne===a&&(se=b.ks(te.Ai),se!==null&&te.Mv(se,ne,x))}}ot.ks=function(a){return this.bindingId===a?this:null},ot.g=function(a,y,x){this.cb(Go,a,this,y,x)},ot.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new gi);var te=this.Lb;te.reset(),this.no(te,a,y,x,b),te.pp(E)}};function Ya(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}ot.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Vi(a.x,a.y,0,0,0,b.height)<=y||Vi(a.x,a.y,0,b.height,b.width,b.height)<=y||Vi(a.x,a.y,b.width,b.height,b.width,0)<=y||Vi(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},ot.se=function(){return!0},ot.ca=function(a){var y=Lt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Lt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),te=b.Ql("extraTouchArea"),ne=te/2,se=this.naturalBounds;b=this.Df()*b.scale;var he=1/b;if(se.width*b<E&&se.height*b<E)return a=No(x.x-ne*he,x.y-ne*he,x.width+te*he,x.height+te*he,y.x,y.y),Lt.free(y),a}return E=!1,(this instanceof Ki||this instanceof di?No(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Lt.free(y),E},ot.gh=function(a){var y=this.naturalBounds;return No(0,0,y.width,y.height,a.x,a.y)},ot.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=wn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Lt.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),Lt.free(E),wn.free(y),b},ot.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Lt.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),Lt.free(E),b},ot.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Lt.allocAt(0,0),E=Lt.allocAt(0,x.height),te=Lt.allocAt(x.width,x.height),ne=Lt.allocAt(x.width,0),se=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(te))||a.ca(y.Ga(ne)))se=!0;else{x=wn.allocAt(0,0,x.width,x.height);var he=Lt.allocAt(a.x,a.y);x.ca(y.Cd(he))?se=!0:(he.h(a.x,a.bottom),x.ca(y.Cd(he))?se=!0:(he.h(a.right,a.bottom),x.ca(y.Cd(he))?se=!0:(he.h(a.right,a.y),x.ca(y.Cd(he))&&(se=!0)))),Lt.free(he),wn.free(x),!se&&(Qt.us(a,b,E)||Qt.us(a,E,te)||Qt.us(a,te,ne)||Qt.us(a,ne,b))&&(se=!0)}return Lt.free(b),Lt.free(E),Lt.free(te),Lt.free(ne),se},ot.ga=function(a,y){if(y===void 0&&(y=new Lt),a instanceof yr){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},ot.mi=function(a){a===void 0&&(a=new wn);var y=this.naturalBounds,x=this.oe,b=Lt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),qi(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),qi(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),qi(a,b.x,b.y,0,0),Lt.free(b),a},ot.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},ot.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},ot.qs=function(a,y){return y===void 0&&(y=new Lt),y.assign(a),this.oe.Cd(y),y},ot.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},ot.Sj=function(a,y,x,b,E){var te=this.transform,ne=1/(te.m11*te.m22-te.m12*te.m21),se=te.m22*ne,he=-te.m12*ne,me=-te.m21*ne,Se=te.m11*ne,De=ne*(te.m21*te.dy-te.m22*te.dx),We=ne*(te.m12*te.dx-te.m11*te.dy);return this.areaBackground!==null?(te=this.actualBounds,Qt.Ff(te.left,te.top,te.right,te.bottom,a,y,x,b,E)):(ne=a*se+y*me+De,a=a*he+y*Se+We,y=x*se+b*me+De,x=x*he+b*Se+We,E.h(0,0),b=this.naturalBounds,x=Qt.Ff(0,0,b.width,b.height,ne,a,y,x,E),E.transform(te),x)},Yt.prototype.measure=function(a,y,x,b){if(Vl(this)!==!1){var E=this.Kg,te=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-te,0),y=Math.max(y-E,0),x=Math.max((x||0)-te,0),b=Math.max((b||0)-E,0),te=this.angle,E=this.desiredSize;var ne=this.kq();te===90||te===270?(a=isFinite(E.height)?E.height+ne:a,y=isFinite(E.width)?E.width+ne:y):(a=isFinite(E.width)?E.width+ne:a,y=isFinite(E.height)?E.height+ne:y),E=x||0,ne=b||0;var se=this instanceof Gn;switch(sl(this,!0)){case Fn:ne=E=0,se&&(y=a=1/0);break;case $n:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ne=y);break;case wr:isFinite(a)&&a>x&&(E=a),ne=0,se&&(y=1/0);break;case Dr:isFinite(y)&&y>b&&(ne=y),E=0,se&&(a=1/0)}se=this.maxSize;var he=this.minSize;E>se.width&&he.width<se.width&&(E=se.width),ne>se.height&&he.height<se.height&&(ne=se.height),x=Math.max(E,he.width),b=Math.max(ne,he.height),se.width<x&&(x=Math.min(he.width,x)),se.height<b&&(b=Math.min(he.height,b)),a=Math.min(se.width,a),y=Math.min(se.height,y),a=Math.max(x,a),y=Math.max(b,y),(te===90||te===270)&&(te=a,a=y,y=te,te=x,x=b,b=te),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||$t("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ia(this,!1)}},Yt.prototype.Wl=function(){},Yt.prototype.Dd=function(){return!1},Yt.prototype.arrange=function(a,y,x,b,E){this.Uk();var te=wn.alloc();te.assign(this.Ib),this.Ib.ka(),Hs(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&Ch(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof Co&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||$t("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(te,this.Ib),Mc(this,!1),wn.free(te)},ot=Yt.prototype,ot.eh=function(){};function Ds(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var te=a.uc;x=a.Kg,y=x.right+x.left;var ne=x.top+x.bottom;switch(x=te.width+y,te=te.height+ne,b+=y,E+=ne,y=sl(a,!0),x===b&&te===E&&(y=Fn),y){case Fn:(x>b||te>E)&&(Ia(a,!0),a.measure(x>b?b:x,te>E?E:te,0,0));break;case $n:Ia(a,!0),a.measure(b,E,0,0);break;case wr:Ia(a,!0),a.measure(b,te,0,0);break;case Dr:Ia(a,!0),a.measure(x,E,0,0)}}}ot.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||_v(x,!0),this.N(),So(a,y)||(x.oh(),this.Pn(x)))},ot.Pn=function(a){this.portId!==null&&(_v(a,!0),a instanceof nr&&U1(a,this))},ot.gc=function(a,y){if(!ou(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var te=this instanceof Gn&&Ch(this),ne=this.Ib;if(te){var se=this.Ib,he=this.dc,me=this.areaBackground,Se=this.Ma;me===null&&Se===null||a.yc(),me!==null&&(oa(this,a,me,!0,!0,he,se),me instanceof so&&me.type===lu?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(me)):a.fillRect(se.x,se.y,se.width,se.height)),Se!==null&&(oa(this,a,Se,!0,!1,he,se),Se instanceof so&&Se.type===lu?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(Se)):a.fillRect(se.x,se.y,se.width,se.height)),this.hh(a,y)}if(!te&&(te||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){te=this.transform,se=this.panel,this.l&4096&&hs(this),me=this.part,he=!1;var De=0;me&&y.Gf("drawShadows")&&(he=me.isShadowed)&&(Se=me.shadowOffset,De=Math.max(Se.y,Se.x)*y.scale*y.Mb),Se=this.Dd();var We;if(!(We=y.$i||!Se)){var qe=this.naturalBounds;We=this.wh;var nt=We.m11,lt=We.m21,At=We.dx,Tt=We.m12,Bt=We.m22,_t=We.dy,Gt,Zt=Gt=0;We=Gt*nt+Zt*lt+At;var un=Gt*Tt+Zt*Bt+_t;Gt=qe.width+De,Zt=0;var er=Gt*nt+Zt*lt+At;Gt=Gt*Tt+Zt*Bt+_t,Zt=Math.min(We,er);var ur=Math.min(un,Gt),ir=Math.max(We+0,er)-Zt,Hn=Math.max(un+0,Gt)-ur;We=Zt,un=ur,Gt=qe.width+De,Zt=qe.height+De,er=Gt*nt+Zt*lt+At,Gt=Gt*Tt+Zt*Bt+_t,Zt=Math.min(We,er),ur=Math.min(un,Gt),ir=Math.max(We+ir,er)-Zt,Hn=Math.max(un+Hn,Gt)-ur,We=Zt,un=ur,Gt=0,Zt=qe.height+De,er=Gt*nt+Zt*lt+At,Gt=Gt*Tt+Zt*Bt+_t,Zt=Math.min(We,er),ur=Math.min(un,Gt),ir=Math.max(We+ir,er)-Zt,Hn=Math.max(un+Hn,Gt)-ur,We=Zt,un=ur,De=y.viewportBounds,qe=De.x,nt=De.y,We=!(We>De.width+qe||qe>ir+We||un>De.height+nt||nt>Hn+un)}if(We){if(We=(this.l&256)!==0,a.clipInsteadOfFill&&(We=!1),this instanceof Co&&(a.font=this.font),We){if(un=se.se()?se.naturalBounds:se.actualBounds,ir=Math.max(ne.x,un.x),Hn=Math.max(ne.y,un.y),De=Math.min(ne.right,un.right)-ir,qe=Math.min(ne.bottom,un.bottom)-Hn,nt=this.tb,nt!==null&&(ir=nt.x,Hn=nt.y,De=nt.width,qe=nt.height),ir>ne.width+ne.x||ne.x>un.width+un.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(ir,Hn,De,qe),a.clip()}if(Se){if(!me.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}he&&(un=me.shadowOffset,a.Ev(un.x*y.scale*this.scale*y.Mb,un.y*y.scale*this.scale*y.Mb,me.shadowBlur),qc(a),a.shadowColor=me.shadowColor)}he&&this.shadowVisible===!0?qc(a):he&&this.shadowVisible===!1&&Lc(a),me=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Kl(this,a,me,ne)),a.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),he&&os(this,se)&&this.shadowVisible===null&&Lc(a),this.Ma!==null&&(a.yc(),vl(this,a,me,ne)),he&&(this.Ma!==null||this.areaBackground!==null||os(this,se))?(ku(this,!0),this.shadowVisible===null&&Lc(a)):ku(this,!1),this.hh(a,y),he&&this.l&512&&qc(a),Se&&he&&Lc(a),We&&(a.restore(),a.Vc(this instanceof Gn)),te.ws()||(y=1/(te.m11*te.m22-te.m12*te.m21),a.transform(te.m22*y,-te.m12*y,-te.m21*y,te.m11*y,y*(te.m21*te.dy-te.m22*te.dx),y*(te.m12*te.dx-te.m11*te.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function os(a,y){return y===null?!1:(Ch(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Gn.Auto||y.type===Gn.Spot)&&y.Pb()!==a)}ot.Dv=function(){};function Kl(a,y,x,b){oa(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof so&&a.areaBackground.type===lu?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function vl(a,y,x,b){var E=a.kq(),te=x.x,ne=x.y,se=x.width+E,he=x.height+E;oa(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof so&&a.Ma.type===lu?(y.beginPath(),y.rect(te-E/2,ne-E/2,se,he),y.ng(a.Ma)):y.fillRect(te-E/2,ne-E/2,se,he)}function ks(a,y,x){for(var b=y.O.s,E=b.length,te=-1,ne=0;ne<E;ne++)if(b[ne]===a){te=ne;break}if(a=te,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Gn.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function ou(a,y,x){if(!(y instanceof Ml))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&ks(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var te=a.shadowOffset;y.Ev(te.x*x.scale*a.scale*x.Mb,te.y*x.scale*a.scale*x.Mb,a.shadowBlur),qc(y),y.shadowColor=a.shadowColor}a instanceof Co&&(y.font=a.font),y.yd=null;var ne=a.transform;te=a instanceof Gn;var se=a instanceof Gn?Ch(a):!1;a.l&4096&&hs(a);var he=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,te&&se?(ug(y,1,0,0,1,0,0),a.svg=y.ad):te?(ug(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):ug(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var me=ne.copy().Vj();y.rb.ha=[me.m11,me.m12,me.m21,me.m22,me.dx,me.dy],Kl(a,y,E,he),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return te||(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),a.background!==null&&(te?(se&&(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),vl(a,y,E,he),se&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],vl(a,y,E,he)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ne=y.yd,E=a.part,se=!1,E&&x.Gf("drawShadows")&&(se=E.isShadowed),y.clipInsteadOfFill&&(se=!1),a.Dd()&&se&&qc(y),se&&a.shadowVisible===!0?qc(y):se&&a.shadowVisible===!1&&Lc(y),E=a.panel,se&&os(a,E)&&a.shadowVisible===null&&Lc(y),y.Il&&(me=x.computePixelRatio(),me="drop-shadow("+y.shadowOffsetX/me+"px "+y.shadowOffsetY/me+"px "+y.shadowBlur/me/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",me),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",me)),se&&(a.Ma!==null||a.areaBackground!==null||os(a,E))?(ku(a,!0),a.shadowVisible===null&&Lc(y)):ku(a,!1),E=se,a.hh(y,x),te&&y.nh.pop(),y.o&&y.nh.pop(),ne=y.Gv.hs,se=te?a.svg:y.yd,me=a.svg,!te&&me!==null&&se!==me&&me.parentNode===a.panel.svg?(a.svg.replaceWith(se),a.svg=se,se!==null&&a.$o(y,b,he,se),al(y,me),!0):(a.svg=se,ne!==null&&se===null&&(pm(y),y.nh.pop()),se===null||(a.$o(y,b,he,se),y.Il&&(x=x.computePixelRatio(),a.Dv(se,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&qc(y),a.Dd()&&Lc(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&se.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&se.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(se):y.Nj.prepend(se),y.ti=se):b!==null&&ks(a,b,se),ne!==null&&ne(a,se)),!0)}ot.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var te=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,te.x),E=Math.max(x.y,te.y);var ne=Math.min(x.right,te.right)-y;x=Math.min(x.bottom,te.bottom)-E,te=this.tb,te!==null&&(y=te.x,E=te.y,ne=te.width,x=te.height),te=b.getAttribute("clip-path");var se=null;te!==null&&(se=a.svg.getElementById(te.split("#")[1].slice(0,-1))),se===null?(te="CLIP"+Lo++,se=a.Ud("clipPath",{id:te}),y=a.Ud("rect",{x:y,y:E,width:ne,height:x}),this instanceof Gn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),se.appendChild(y),a.svg.appendChild(se),b.setAttributeNS(null,"clip-path","url(#"+te+")")):(a=se.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",ne.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),al(a,b)};function al(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Os(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=yi(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}ot.hh=function(){},ot.lv=function(){this.Uc=!0},ot.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof Gn?Ch(this):!1;if(!(this instanceof Gn&&E))if(this instanceof ul){var te=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],te!==null&&Yy(a,te[0],te[1],te[2],te[3],te[4],te[5],te[6],te[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Jy(a)):y.setAttributeNS(null,"transform",Jy(a))}else if(!x||this instanceof Gn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof di){te=y.getElementsByTagName("path");for(var ne=0;ne<te.length;ne++)te[ne].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return te=this.Dd()?this.opacity*a.globalAlpha:this.opacity,te===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",te.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(te=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ne=b.copy().Vj(),a.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],Kl(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ne=y.gd.getAttribute("filter"),ne!==null&&a.ad.setAttribute("filter",ne),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),te&&gm(a,te)),(this.background!==null||y.Ma!==void 0)&&(te=y.Ma,this.background===null?(gm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Gn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),vl(this,a,this.naturalBounds,this.actualBounds),y.Ma?(gm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),te&&gm(a,te)),this.$o(a,this.panel,this.actualBounds,y),!0},ot.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function oa(a,y,x,b,E,te,ne){if(x!==null){var se=1,he=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Ph)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var me=a.kq();if(se=te.width,he=te.height,E?(se=ne.width,he=ne.height):b||(se+=me,he+=me),(te=y instanceof Hd)&&x.xe&&(x.type===hp||x.yk===se&&x.ft===he))var Se=x.xe;else{var De=0,We=0,qe=0,nt=0,lt=0,At=0;if(At=lt=0,E?(lt=ne.x,At=ne.y):b||(lt-=me/2,At-=me/2),De=x.start.x*se+x.start.offsetX,We=x.start.y*he+x.start.offsetY,qe=x.end.x*se+x.end.offsetX,nt=x.end.y*he+x.end.offsetY,De+=lt,qe+=lt,We+=At,nt+=At,x.type===th)Se=y.createLinearGradient(De,We,qe,nt);else if(x.type===lu)At=isNaN(x.endRadius)?Math.max(se,he)/2:x.endRadius,isNaN(x.startRadius)?(lt=0,At=Math.max(se,he)/2):lt=x.startRadius,Se=y.createRadialGradient(De,We,lt,qe,nt,At);else if(x.type===hp)try{Se=y.createPattern(x.pattern,"repeat")}catch(Bt){Se=null}if(x.type!==hp&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)Se.addColorStop(E.key,E.value);if(te&&(x.xe=Se,Se!==null&&(x.yk=se,x.ft=he),Se===null&&x.type===hp&&x.yk!==-1)){x.yk=-1;var Tt=a.diagram;Tt!==null&&x.yk===-1&&qn(function(){Tt.redraw()},600)}}b?y.fillStyle=Se:y.strokeStyle=Se}}}ot.rg=function(a){if(a instanceof Gn)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},ot.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},ot.If=function(){for(var a=this instanceof Gn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function hs(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){vu(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}vu(a,!1),au(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,au(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,au(a,!1)))}ot.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=Lt.alloc();te.yi(y,x,b,E,Di),a.rotate(this.Kb,te.x,te.y),Lt.free(te)}},ot.v=function(a){if(!Vl(this)){a===void 0&&(a=!1),Ia(this,!0),Mc(this,!0);var y=this.panel;y===null||a||y.v()}},ot.Uj=function(){Vl(this)||(Ia(this,!0),Mc(this,!0))};function Gs(a){if(!Hs(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof nr&&a.Bd(),y.$b())),Mc(a,!0)}}ot.Uk=function(){!(this.l&2048)&&(vu(this,!0),au(this,!0))},ot.Wu=function(){au(this,!0)},ot.N=function(){var a=this.part;a!==null&&a.N()};function sl(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Gn.Table?Zu(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Gn.Auto&&b.Pb()===a?as(a,$n,y):x===ri?b!==null?b.type===Gn.Spot&&b.Pb()===a?as(a,$n,y):(x=b.defaultStretch,x===ri?as(a,Fn,y):as(a,x,y)):as(a,Fn,y):as(a,x,y)}function Zu(a,y,x,b){var E=a.stretch;if(E!==ri)return as(a,E,b);var te=E=null;switch(y.stretch){case Dr:te=!0;break;case $n:te=!0}switch(x.stretch){case wr:E=!0;break;case $n:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===wr||y===$n),te===null&&(te=y===Dr||y===$n),E===!0&&te===!0?as(a,$n,b):E===!0?as(a,wr,b):te===!0?as(a,Dr,b):as(a,Fn,b)}function as(a,y,x){if(x)return y;if(y===Fn||(x=a.desiredSize,x.w()))return Fn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===wr)return Fn;if(y===$n)return Dr}else{if(y===Dr)return Fn;if(y===$n)return wr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Dr)return Fn;if(y===$n)return wr}else{if(y===wr)return Fn;if(y===$n)return Dr}return y}function ku(a,y){a.l=y?a.l|512:a.l&-513}function ys(a){return(a.l&1024)!==0}function xf(a,y){a.l=y?a.l|1024:a.l&-1025}function vu(a,y){a.l=y?a.l|2048:a.l&-2049}function au(a,y){a.l=y?a.l|4096:a.l&-4097}function Vl(a){return(a.l&8192)!==0}function Ia(a,y){a.l=y?a.l|8192:a.l&-8193}function Hs(a){return(a.l&16384)!==0}function Mc(a,y){a.l=y?a.l|16384:a.l&-16385}ot.Gj=function(){this.svg=null},ot.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},ot.Av=function(){},ot.zv=function(a){return this.pa=a,Gs(this),!0},ot.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},ot.kq=function(){return 0};function $d(a){var y=a.part;if(y instanceof nr&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||U1(y,a)}}function Zy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Gn?a instanceof nr?a.Bd():a.qm(a,function(x){$d(x)}):$d(a))}ot.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ba(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&f1(a)&&$t("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Tn),this.localBindings.add(E),this},ot.set=function(a){return Object.assign(this,a),this},ot.Du=function(a){return rv(this,a),this},ot.apply=function(a){return a(this),this},ot.nm=function(a){return ru(this,a),this},ot.pz=function(){return this.ih()},ot.ih=function(){for(var a=this instanceof Gn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},ot.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new cr),this.animationTriggers.add(a.propertyName,a),this};function su(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var te=op.I(a);typeof te=="function"?(x=rn(arguments),b=te(x),nn(b)||$t('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=zt.go[a]}if(b===null&&(E!=null&&E.constructor||$t("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof ln&&1<x.length){te=b;var ne=x[1];(typeof ne=="string"||ne instanceof HTMLDivElement)&&(Md(te,ne),E++)}for(;E<x.length;E++)te=x[E],te===void 0?$t("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):rv(b,te);return b}function rv(a,y){if(typeof y=="string")if(a instanceof Co)a.text=y;else if(a instanceof di)a.figure=y;else if(a instanceof ul)a.source=y;else if(a instanceof Gn)y=Ou.I(y),y!==null&&(a.type=y);else if(a instanceof so){var x=Jn(so,y);x!==null?a.type=x:$t("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Vn?(y=Jn(Vn,y),y!==null&&(a.type=y)):a instanceof Ui&&(y=Jn(Ui,y),y!==null&&(a.type=y));else if(y instanceof Yt)a instanceof Gn||$t("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Da){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Da?Nm(b,y):$t("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof vn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ha)a.type=y;else if(y instanceof ba)a instanceof Yt||a instanceof Da?a.bind(y):$t("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Tl)a instanceof Yt?a.Jv(y):$t("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof $a)a instanceof Vn&&a.type===Vn.o?a.figures.add(y):$t("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Ui)a instanceof $a?a.segments.add(y):$t("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof _o)a instanceof ln||a instanceof ei?a.layout=y:$t("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)rv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof so){x=new vr;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);ru(a,x)}else if(a instanceof Da){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&$t("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&$t("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new vr;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);ru(a,E)}else ru(a,y);else $t('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function bh(a,y){op.add(a,y)}function fm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Ot.Object.defineProperties(Yt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new wf),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new wf),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new wf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(vi(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(vi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ks},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new qh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ks&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new qh),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new qh),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Ii},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new qh),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:ri},set:function(a){var y=this.stretch;y!==a&&(vi(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(vi(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Wn(a,"0 <= value <= 1",Yt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Vd(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Vd(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),Zy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&Pf(a,"GraphObject.areaBackground"),a instanceof so&&a.freeze(),vi(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Pf(a,"GraphObject.background"),a instanceof so&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof Mr)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new Lt(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&$t("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Zy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,te=b.height;(E===y||isNaN(E)&&isNaN(y))&&(te===x||isNaN(te)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof di&&this.qc(),this.g("desiredSize",b,a),ys(this)&&(a=this.part,a!==null&&(Oo(this,a,"width"),Oo(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Kn(a,this.jd.height).freeze(),this.v(),this instanceof di&&this.qc(),this.g("desiredSize",y,a),ys(this)&&(a=this.part,a!==null&&Oo(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Kn(this.jd.width,a).freeze(),this.v(),this instanceof di&&this.qc(),this.g("desiredSize",y,a),ys(this)&&(a=this.part,a!==null&&Oo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:li},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),vi(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:ca},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),vi(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Tr(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&hs(this),this.Ab}},oe:{get:function(){return this.l&4096&&hs(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(vi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Fn},set:function(a){this.reshapingBehavior!==a&&(vi(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&$t("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Gs(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Wn(a,">= 0",Yt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Wn(a,">= 1",Yt,"columnSpan"),vi(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Wn(a,">= 0",Yt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Wn(a,">= 1",Yt,"rowSpan"),vi(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(vi(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof nr||$t("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Hv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,V1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:aa},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),$d(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Wn(a,">= 0",Yt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),$d(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),$d(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Wn(a,">= 0",Yt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:aa},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),$d(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Wn(a,">= 0",Yt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),$d(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),$d(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Wn(a,">= 0",Yt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(vi(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(vi(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(vi(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(vi(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(vi(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(vi(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(vi(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(vi(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(vi(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(vi(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(vi(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(vi(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(vi(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(vi(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(vi(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(vi(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(vi(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(vi(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Yt.prototype.trigger=Yt.prototype.Jv,Yt.prototype.findBindingPanel=Yt.prototype.ih,Yt.prototype.findTemplateBinder=Yt.prototype.pz,Yt.prototype.setProperties=Yt.prototype.nm,Yt.prototype.apply=Yt.prototype.apply,Yt.prototype.attach=Yt.prototype.Du,Yt.prototype.set=Yt.prototype.set,Yt.prototype.isEnabledObject=Yt.prototype.If,Yt.prototype.isVisibleObject=Yt.prototype.Ed,Yt.prototype.isContainedBy=Yt.prototype.rg,Yt.prototype.getNearestIntersectionPoint=Yt.prototype.rs,Yt.prototype.getLocalPoint=Yt.prototype.qs,Yt.prototype.getDocumentScale=Yt.prototype.Df,Yt.prototype.getDocumentAngle=Yt.prototype.li,Yt.prototype.getDocumentBounds=Yt.prototype.mi,Yt.prototype.getDocumentPoint=Yt.prototype.ga,Yt.prototype.intersectsRect=Yt.prototype.Yc,Yt.prototype.containedInRect=Yt.prototype.fh,Yt.prototype.containsRect=Yt.prototype.Re,Yt.prototype.containsPoint=Yt.prototype.ca,Yt.prototype.raiseChanged=Yt.prototype.g,Yt.prototype.raiseChangedEvent=Yt.prototype.cb,Yt.prototype.addCopyProperty=Yt.prototype.Vw;var op=null;Yt.className="GraphObject",op=new cr,bh("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=su(Gn,Gn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Gn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},su(di,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new yr(0,0,2.76142374915397,2.761423749153969),spot2:new yr(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Gn&&(x=b.fb("ButtonBorder"),x instanceof di)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof Gn&&(x=b.fb("ButtonBorder"),x instanceof di&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof di){x=x.diagram;var te=x.skipsUndoManager;x.skipsUndoManager=!0;var ne=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=ne,ne=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=ne,x.skipsUndoManager=te}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof di){var te=x.diagram,ne=te.skipsUndoManager;te.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),te.skipsUndoManager=ne}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof di){var te=x.diagram,ne=te.skipsUndoManager;te.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),te.skipsUndoManager=ne}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof di))){var te=E.skipsUndoManager;E.skipsUndoManager=!0;var ne=b._buttonFillPressed;x.fill!==ne&&(x.fill=ne),ne=b._buttonStrokePressed,x.stroke!==ne&&(x.stroke=ne),E.skipsUndoManager=te}}},y}),bh("TreeExpanderButton",function(){var a=su("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},su(di,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Mo},new ba("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ba("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ki&&(x=x.adornedPart),x instanceof nr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),bh("SubGraphExpanderButton",function(){var a=su("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},su(di,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Mo},new ba("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Ki&&(x=x.adornedPart),x instanceof ei){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),bh("ToolTip",function(){return su(Ki,Gn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Lt(0,3),shadowBlur:5},su(di,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new yr(0,0,4,6),spot2:new yr(1,1,-4,-4)}))}),bh("ContextMenu",function(){return su(Ki,Gn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Lt(0,3),shadowBlur:5},new ba("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),bh("ContextMenuButton",function(){var a=su("Button");a.stretch=wr;var y=a.fb("ButtonBorder");return y instanceof di&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new yr(0,0,2,3),y.spot2=new yr(1,1,-2,-2)),a}),bh("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),x=su("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},su(di,{name:"ButtonIcon",strokeWidth:2},new ba("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof di&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var te=E.diagram;if(te!==null&&!te.isReadOnly){var ne=E.ih();ne===null&&(ne=E.part),ne!==null&&(E=ne.fb(y),E!==null&&(b.handled=!0,te.Ea("Collapse/Expand Panel"),E.visible=!E.visible,te.eb("Collapse/Expand Panel")))}},x}),bh("CheckBoxButton",function(a){var y=fm(a);return a=su("Button",{desiredSize:new Kn(14,14)},su(di,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:$n,geometryStretch:hr,visible:!1},y!==""?new ba("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Gn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var te=b.fb("ButtonIcon");E.Ea("checkbox"),te.visible=!te.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),bh("CheckBox",function(a){a=fm(a),a=su("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Tr(0,1,0,0)});var y=su(Gn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Tr(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Yt.None=Fn=new vn(Yt,"None",0),Yt.Default=ri=new vn(Yt,"Default",0),Yt.Vertical=Dr=new vn(Yt,"Vertical",4),Yt.Horizontal=wr=new vn(Yt,"Horizontal",5),Yt.Fill=$n=new vn(Yt,"Fill",3),Yt.Uniform=hr=new vn(Yt,"Uniform",1),Yt.UniformToFill=Li=new vn(Yt,"UniformToFill",2),Yt.FlipVertical=wi=new vn(Yt,"FlipVertical",1),Yt.FlipHorizontal=Bi=new vn(Yt,"FlipHorizontal",2),Yt.FlipBoth=mo=new vn(Yt,"FlipBoth",3),Yt.make=su,Yt.getBuilders=function(){var a=new cr,y;for(y in op)if(y!==y.toLowerCase()){var x=op.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Yt.defineBuilder=bh,Yt.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=op.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Yt))return y&&b.set(y),b;$t('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Yt.takeBuilderArgument=fm;function wf(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=li,this.o=ca,this.hg=ri,this.ob=this.Bi=1,this.Pf=Fn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}wf.prototype.copy=function(){var a=new wf;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function qh(){this.u=-1/0,this.o=0,this.F=Ii,this.rr=Ks,this.j=this.V="None"}qh.prototype.copy=function(){var a=new qh;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},qh.className="LinkElementSettings";function lg(){this.yj=this.Xi=oo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}lg.prototype.copy=function(){var a=new lg;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},lg.className="LinkSettings";function Gd(){this.ha=[1,0,0,1,0,0]}Gd.prototype.copy=function(){var a=new Gd;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},Gd.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},Gd.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Gd.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,te=this.ha[0]*-b+this.ha[2]*a,ne=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=te,this.ha[3]=ne,this.translate(-y,-x)}},Gd.className="STransform";function bf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}bf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},bf.className="SGradient";function uc(a,y,x){this.ownerDocument=a=y===void 0?zt.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Ml(this,x)}uc.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},uc.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),nn(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},uc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},uc.prototype.focus=function(){this.Oa.focus()},uc.prototype.mx=function(){this.ownerDocument=null},Ot.Object.defineProperties(uc.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),uc.className="SVGSurface";function Ml(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Gd,this.j=pm(this),this.Nj=pm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Lo++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Xy(a,y,x,b,E,te,ne){a.Nj===void 0?ug(a,y,x,b,E,te,ne):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+te+", "+ne+")")}ot=Ml.prototype,ot.arc=function(a,y,x,b,E,te,ne,se){var he=2*Math.PI,me=he-1e-6,Se=x*Math.cos(b),De=x*Math.sin(b),We=a+Se,qe=y+De,nt=te?0:1;b=te?b-E:E-b,(1e-6<Math.abs(ne-We)||1e-6<Math.abs(se-qe))&&this.path.push(["L",We,+qe]),0>b&&(b=b%he+he),b>me?(this.path.push(["A",x,x,0,1,nt,a-Se,y-De]),this.path.push(["A",x,x,0,1,nt,We,qe])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),nt,a+x*Math.cos(E),y+x*Math.sin(E)])},ot.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},ot.Se=function(a){this.addPath(this.path,this.rb,a||0)},ot.bezierCurveTo=function(a,y,x,b,E,te){this.path.push(["C",a,y,x,b,E,te])},ot.clearRect=function(){},ot.clip=function(){this.Yl.clipPath=!0},ot.closePath=function(){this.path.push(["z"])},ot.createLinearGradient=function(a,y,x,b){var E=new bf("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},ot.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+Lo++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(_d,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},ot.createRadialGradient=function(a,y,x,b,E,te){var ne=new bf("radial");return ne.x1=a,ne.y1=y,ne.r1=x,ne.x2=b,ne.y2=E,ne.r2=te,ne};function Yy(a,y,x,b,E,te,ne,se,he){b=se/b,E=he/E,te===0&&ne===0||a.rb.translate(te,ne),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}ot.drawImage=function(a,y,x,b,E,te,ne,se,he){var me="";a instanceof HTMLCanvasElement&&(me=a.toDataURL()),a instanceof HTMLImageElement&&(me=a.getAttribute("src"));var Se=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(te=y,ne=x,se=b=Se,he=E=a),b=b||0,E=E||0,se=se||0,he=he||0,Yy(this,y,x,b,E,te||0,ne||0,se,he),te={x:0,y:0,width:Se||b,height:a||E,href:me},Qt.$(b,se)&&Qt.$(E,he)?me.toLowerCase().indexOf(".svg")===-1&&me.toLowerCase().indexOf("data:image/svg")===-1&&(te.preserveAspectRatio="xMidYMid slice"):te.preserveAspectRatio="none",(y!==0||x!==0||b!==Se||E!==a)&&(b+=y,E+=x,te["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),ap(this,_d,te,this.rb),this.addElement(_d,te)},ot.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},ot.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},ot.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},ap(this,"fill",a,this.rb),this.addElement("rect",a)},ot.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},ap(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},ot.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},ap(this,"fill",y,this.rb),this.addElement("text",y,a[0])},ot.lineTo=function(a,y){this.path.push(["L",a,y])},ot.moveTo=function(a,y){this.path.push(["M",a,y])},ot.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},ot.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},ot.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},ot.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},ot.setTransform=function(a,y,x,b,E,te){a===1&&y===0&&x===0&&b===1&&E===0&&te===0||ug(this,a,y,x,b,E,te)};function Jy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}ot.scale=function(a,y){this.rb.scale(a,y)},ot.translate=function(a,y){this.rb.translate(a,y)},ot.transform=function(){},ot.yc=function(){},ot.stroke=function(){qy(this,this.Yl)},ot.jk=function(){this.clipInsteadOfFill||this.stroke()},ot.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},ot.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function ap(a,y,x,b){y==="fill"?iv(a,x):y==="stroke"&&qy(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function iv(a,y){a.fillStyle instanceof bf?y.fill=ov(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function Qy(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof bf?y.setAttributeNS(null,"fill",ov(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function qy(a,y){if(a.strokeStyle instanceof bf)y.stroke=ov(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function ov(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+Lo++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var te=[],ne=0;ne<y;ne++){var se=E[ne],he=se.color;se={offset:se.offset,"stop-color":he},/^rgba\(/.test(he)&&(he=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(he),se["stop-color"]="rgb("+he[1]+","+he[2]+","+he[3]+")",se["stop-opacity"]=he[4]),te.push(se)}for(te.sort(function(me,Se){return me.offset>Se.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",te[E]));return a.svg.appendChild(x),"url(#"+b+")"}ot.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var te=rn(a[E]),ne=[te.shift()];if(ne[0]==="A")ne.push(te.shift()+","+te.shift(),te.shift(),te.shift()+","+te.shift(),te.shift()+","+te.shift());else for(;te.length;)ne.push(te.shift()+","+te.shift());b.push(ne.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,ap(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var se in a)se!=="transform"&&y.setAttributeNS(null,se,a[se]);else{se=y.getElementsByTagName("path");for(var he in a)he!=="transform"&&se[x].setAttributeNS(null,he,a[he])}else this.addElement("path",a)};function ug(a,y,x,b,E,te,ne){var se=new Gd;se.ha=[y,x,b,E,te,ne],y={},ap(a,"g",y,se),se=a.addElement("g",y),a.nh.push(se)}function pm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}ot.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Lc(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function qc(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}ot.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},ot.fs=function(){this.Ct=!1},ot.Vc=function(){},ot.Wx=function(){},Ml.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Ml.prototype.getImageData=function(){return null},Ml.prototype.measureText=function(){return null};function gm(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}Ml.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Ml.className="SVGContext",ln.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new uc(this,zt.document));var y=new uc(this,zt.document,!0);a===void 0&&(a=new vr);var x=this;return gf(this,function(b,E){return b=um(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},ln.prototype.makeSvg=ln.prototype.Cs,ln.prototype.av=function(a){return this.Cs(a)},ln.prototype.makeSVG=ln.prototype.av;function yu(a,y,x,b){this.ownerDocument=y=y===void 0?zt.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Hd(y,x,b),y.H=a}yu.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},yu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},yu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},yu.prototype.focus=function(){this.Oa.focus()},yu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Ot.Object.defineProperties(yu.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),yu.className="CanvasSurface";function Hd(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&$t("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new gi,this.isTemporary=!!x}ot=Hd.prototype,ot.Wx=function(a){this.Z.imageSmoothingEnabled=a},ot.arc=function(a,y,x,b,E,te){this.Z.arc(a,y,x,b,E,te)},ot.beginPath=function(){this.Z.beginPath()},ot.Se=function(){},ot.bezierCurveTo=function(a,y,x,b,E,te){this.Z.bezierCurveTo(a,y,x,b,E,te)},ot.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},ot.clip=function(){this.Z.clip()},ot.closePath=function(){this.Z.closePath()},ot.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},ot.createPattern=function(a,y){return this.Z.createPattern(a,y)},ot.createRadialGradient=function(a,y,x,b,E,te){return this.Z.createRadialGradient(a,y,x,b,E,te)},ot.drawImage=function(a,y,x,b,E,te,ne,se,he){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,te,ne,se,he)},ot.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},ot.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},ot.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},ot.fillText=function(a,y,x){this.Z.fillText(a,y,x)},ot.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},ot.lineTo=function(a,y){this.Z.lineTo(a,y)},ot.measureText=function(a){return this.Z.measureText(a)},ot.moveTo=function(a,y){this.Z.moveTo(a,y)},ot.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},ot.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},ot.restore=function(){this.Z.restore()},ot.save=function(){this.yc(),this.Z.save()},Hd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},ot=Hd.prototype,ot.setTransform=function(a,y,x,b,E,te){this.El.setTransform(a,y,x,b,E,te)},ot.scale=function(a,y){this.El.scale(a,y)},ot.translate=function(a,y){this.El.translate(a,y)},ot.stroke=function(){this.Z.stroke()},ot.transform=function(a,y,x,b,E,te){if(a!==1||y!==0||x!==0||b!==1||E!==0||te!==0){var ne=this.El,se=ne.m11*a+ne.m21*y;a=ne.m12*a+ne.m22*y,y=ne.m11*x+ne.m21*b,x=ne.m12*x+ne.m22*b,ne.dx=ne.m11*E+ne.m21*te+ne.dx,ne.dy=ne.m12*E+ne.m22*te+ne.dy,ne.m11=se,ne.m12=a,ne.m21=y,ne.m22=x}},ot.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},ot.ng=function(a,y){if(a instanceof so&&a.type===lu){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},ot.jk=function(){this.Hm||this.stroke()},ot.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},ot.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},ot.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},ot.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},ot.Hs=function(){},Ot.Object.defineProperties(Hd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var vx=Object.freeze([]);Hd.className="CanvasSurfaceContext";function cg(){this.F=this.o=this.u=this.j=0}cg.className="ColorNumbers";function so(a,y){cp||(hv(),cp=!0),pi(this),this._isFrozen=!1,a===void 0?(this.na=Ph,this.xk="black"):typeof a=="string"?(this.na=Ph,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===th?(this.Qd=Pl,this.Lk=nl):this.Lk=a===lu?this.Qd=Di:this.Qd=aa,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}so.prototype.copy=function(){var a=new so;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},ot=so.prototype,ot.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},ot.ka=function(){return Object.isFrozen(this)&&$t("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},ot.qb=function(a){a.classType===so&&(this.type=a)},ot.toString=function(){var a="Brush(";if(this.type===Ph)a+=this.color;else if(a=this.type===th?a+"Linear ":this.type===lu?a+"Radial ":this.type===hp?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},ot.addColorStop=function(a,y){return this._isFrozen&&jn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Wn(a,"0 <= loc <= 1",so,"addColorStop:loc"),this.we===null&&(this.we=new cr),this.we.add(a,y),this.na===Ph&&(this.type=th),this.xe=null,this},ot.Vz=function(a,y){if(this._isFrozen&&jn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dp:y,this.type===Ph)eh(this.color),this.color=lp(a,y);else if((this.type===th||this.type===lu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)eh(x.value),this.addColorStop(x.key,lp(a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dp:x,eh(a),lp(y,x)}ot.Wy=function(a,y){if(this._isFrozen&&jn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dp:y,this.type===Ph)eh(this.color),this.color=lp(-a,y);else if((this.type===th||this.type===lu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)eh(x.value),this.addColorStop(x.key,lp(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dp:x,eh(a),lp(-y,x)}function av(a,y,x){eh(a),a=To.j;var b=To.u,E=To.o,te=To.F;return eh(y),x===void 0&&(x=.5),"rgba("+Math.round((To.j-a)*x+a)+", "+Math.round((To.u-b)*x+b)+", "+Math.round((To.o-E)*x+E)+", "+Math.round((To.F-te)*x+te)+")"}ot.Gx=function(){if(this.type===Ph)return sp(this.color);if((this.type===th||this.type===lu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===lu)return sp(a.first().value);if(a.get(.5)!==null)return sp(a.get(.5));if(a.count===2)return a=a.Fa(),sp(av(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,te=1;y.next();){var ne=y.key,se=Math.abs(.5-y.key);E>te&&se<E?(x=ne,E=se):te>=E&&se<te&&(b=ne,te=se)}return x>b&&(te=x,x=b,b=te,te=E),E=b-x,sp(av(a.get(x),a.get(b),1-te/E))}return!1};function sp(a){return a?a instanceof so?a.Gx():(eh(a),128>(299*To.j+587*To.u+114*To.o)/1e3):!1}function lp(a,y){switch(y){case dp:y=100*lv(To.j);var x=100*lv(To.u),b=100*lv(To.o);return Us.j=.4124564*y+.3575761*x+.1804375*b,Us.u=.2126729*y+.7151522*x+.072175*b,Us.o=.0193339*y+.119192*x+.9503041*b,Us.F=To.F,y=cv(Us.j/up[0]),x=cv(Us.u/up[1]),b=cv(Us.o/up[2]),kc.j=116*x-16,kc.u=500*(y-x),kc.o=200*(x-b),kc.F=Us.F,kc.j=Math.min(100,Math.max(0,kc.j+100*a)),a=(kc.j+16)/116,y=a-kc.o/200,Us.j=up[0]*n1(kc.u/500+a),Us.u=up[1]*(kc.j>mm*dv?Math.pow(a,3):kc.j/mm),Us.o=up[2]*n1(y),Us.F=kc.F,a=-.969266*Us.j+1.8760108*Us.u+.041556*Us.o,y=.0556434*Us.j+-.2040259*Us.u+1.0572252*Us.o,To.j=255*uv((3.2404542*Us.j+-1.5371385*Us.u+-.4985314*Us.o)/100),To.u=255*uv(a/100),To.o=255*uv(y/100),To.F=Us.F,To.j=Math.round(To.j),255<To.j?To.j=255:0>To.j&&(To.j=0),To.u=Math.round(To.u),255<To.u?To.u=255:0>To.u&&(To.u=0),To.o=Math.round(To.o),255<To.o?To.o=255:0>To.o&&(To.o=0),"rgba("+To.j+", "+To.u+", "+To.o+", "+To.F+")";case r1:return sv(),Zl.o=Math.min(100,Math.max(0,Zl.o+100*a)),"hsla("+Zl.j+", "+Zl.u+"%, "+Zl.o+"%, "+Zl.F+")";default:$t("Unknown color space: "+y)}}function eh(a){cp||(hv(),cp=!0);var y=fv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,To.j=a[0],To.u=a[1],To.o=a[2],To.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,To.j=0,To.u=0,To.o=0,To.F=1)}}function sv(){var a=To.j/255,y=To.u/255,x=To.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),te=b-E;if(E=(b+E)/2,te===0)var ne=a=0;else{switch(b){case a:ne=(y-x)/te%6;break;case y:ne=(x-a)/te+2;break;case x:ne=(a-y)/te+4}ne*=60,0>ne&&(ne+=360),a=te/(1-Math.abs(2*E-1))}Zl.j=Math.round(ne),Zl.u=Math.round(100*a),Zl.o=Math.round(100*E),Zl.F=To.F}function lv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function uv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function cv(a){return a>dv?Math.pow(a,1/3):(mm*a+16)/116}function n1(a){var y=a*a*a;return y>dv?y:(116*a-16)/mm}function Pf(a,y){typeof a!="string"&&(a instanceof so||$t("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){fv=ra?new yu(null,void 0,{willReadFrequently:!0}).context:null}Ot.Object.defineProperties(so.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&jn(this,a),this.na=a,this.start.Mc()&&(a===th?this.start=Pl:a===lu&&(this.start=Di)),this.end.Mc()&&(a===th?this.end=nl:a===lu&&(this.end=Di)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&jn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&jn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&jn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&jn(this,a),0>a&&Wn(a,">= zero",so,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&jn(this,a),0>a&&Wn(a,">= zero",so,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&jn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&jn(this,a),this.cr=a,this.xe=null}}}),so.prototype.isDark=so.prototype.Gx,so.prototype.darkenBy=so.prototype.Wy,so.prototype.lightenBy=so.prototype.Vz,so.prototype.addColorStop=so.prototype.addColorStop;var dv=216/24389,mm=24389/27,up=[95.047,100,108.883],fv=null,To=new cg,Zl=new cg,Us=new cg,kc=new cg,cp=!1;so.className="Brush";var Ph;so.Solid=Ph=new vn(so,"Solid",0);var th;so.Linear=th=new vn(so,"Linear",1);var lu;so.Radial=lu=new vn(so,"Radial",2);var hp;so.Pattern=hp=new vn(so,"Pattern",4);var dp;so.Lab=dp=new vn(so,"Lab",5);var r1;so.HSL=r1=new vn(so,"HSL",6),so.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},so.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;cp||(hv(),cp=!0);var y=fv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},so.lighten=function(a){return e1(a)},so.lightenBy=e1,so.darken=function(a){return t1(a)},so.darkenBy=t1,so.mix=av,so.isDark=sp;function Ha(){this.xa="Base"}Ha.prototype.measure=function(){},Ha.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Ha.prototype.arrange=function(){},Ha.prototype.Ly=function(a,y,x,b,E,te){a.arrange(y,x,b,E,te)},Ha.prototype.iA=function(a){a.Uj()},Ha.prototype.gc=function(){},Ot.Object.defineProperties(Ha.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Gn}}}),Ha.prototype.remeasureObject=Ha.prototype.iA,Ha.prototype.arrangeElement=Ha.prototype.Ly,Ha.prototype.measureElement=Ha.prototype.Yz,Ha.className="PanelLayout";function vm(){this.xa="Base"}cn(vm,Ha),vm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;a=nh(a);for(var he=0;he<se;he++){var me=b[he];if(me.visible||me===a){var Se=me.margin,De=Se.right+Se.left;Se=Se.top+Se.bottom,me.measure(y,x,te,ne);var We=me.measuredBounds;De=Math.max(We.width+De,0),Se=Math.max(We.height+Se,0),We=me.position.x;var qe=me.position.y;isFinite(We)||(We=0),isFinite(qe)||(qe=0),me instanceof di&&me.isGeometryPositioned&&(me=me.strokeWidth/2,We-=me,qe-=me),qi(E,We,qe,De,Se)}}},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var te=y[E],ne=te.measuredBounds,se=te.margin,he=te.position.x,me=te.position.y;if(he=isNaN(he)?-a:he-a,me=isNaN(me)?-x:me-x,te instanceof di&&te.isGeometryPositioned){var Se=te.strokeWidth/2;he-=Se,me-=Se}te.visible&&te.arrange(he+se.left,me+se.top,ne.width,ne.height)}};function ym(){this.xa="Base"}cn(ym,Ha),ym.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;y=pn(),te=nh(a);for(var he=0;he<se;he++){var me=b[he];if(me.visible||me===te){var Se=sl(me,!1);if(Se!==Fn&&Se!==wr)y.push(me);else{me.measure(1/0,x,0,ne),Se=me.margin,me=me.measuredBounds;var De=Math.max(me.height+Se.top+Se.bottom,0);E.width+=Math.max(me.width+Se.right+Se.left,0),E.height=Math.max(E.height,De)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)he=y[a],(he.visible||he===te)&&(Se=he.margin,se=Se.right+Se.left,Se=Se.top+Se.bottom,he.measure(1/0,x,0,ne),he=he.measuredBounds,Se=Math.max(he.height+Se,0),E.width+=Math.max(he.width+se,0),E.height=Math.max(E.height,Se));kn(y)},ym.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,te=E.top,ne=a.isOpposite,se=ne?x.width:E.left,he=0;he<b;he++){var me=te,Se=y[he];if(Se.visible){var De=Se.measuredBounds,We=Se.margin,qe=We.top+We.bottom,nt=te+E.bottom,lt=De.height,At=sl(Se,!1);(isNaN(Se.desiredSize.height)&&At===$n||At===Dr)&&(lt=Math.max(x.height-qe-nt,0)),qe=lt+qe+nt,nt=Se.alignment,nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=Di),ne&&(se-=De.width+We.left+We.right),Se.arrange(se+nt.offsetX+We.left,me+nt.offsetY+We.top+(x.height*nt.y-qe*nt.y),De.width,lt),ne||(se+=De.width+We.left+We.right)}}};function Sm(){this.xa="Base"}cn(Sm,Ha),Sm.prototype.measure=function(a,y,x,b,E,te){var ne=b.length;x=pn();for(var se=nh(a),he=0;he<ne;he++){var me=b[he];if(me.visible||me===se){var Se=sl(me,!1);if(Se!==Fn&&Se!==Dr)x.push(me);else{var De=me.margin;Se=De.right+De.left,De=De.top+De.bottom,me.measure(y,1/0,te,0),me=me.measuredBounds,ma(E,Math.max(E.width,Math.max(me.width+Se,0)),E.height+Math.max(me.height+De,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)he=x[a],(he.visible||he===se)&&(me=he.margin,ne=me.right+me.left,me=me.top+me.bottom,he.measure(y,1/0,te,0),he=he.measuredBounds,me=Math.max(he.height+me,0),E.width=Math.max(E.width,Math.max(he.width+ne,0)),E.height+=me);kn(x)}},Sm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,te=E.left,ne=a.isOpposite,se=ne?x.height:E.top,he=0;he<b;he++){var me=te,Se=y[he];if(Se.visible){var De=Se.measuredBounds,We=Se.margin,qe=We.left+We.right,nt=te+E.right,lt=De.width,At=sl(Se,!1);(isNaN(Se.desiredSize.width)&&At===$n||At===wr)&&(lt=Math.max(x.width-qe-nt,0)),qe=lt+qe+nt,nt=Se.alignment,nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=Di),ne&&(se-=De.height+We.bottom+We.top),Se.arrange(me+nt.offsetX+We.left+(x.width*nt.x-qe*nt.x),se+nt.offsetY+We.top,lt,De.height),ne||(se+=De.height+We.bottom+We.top)}}};function xm(){this.xa="Base"}cn(xm,Ha),xm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,he=a.Pb(),me=he.margin,Se=me.right+me.left,De=me.top+me.bottom;he.measure(y,x,te,ne);var We=he.measuredBounds;te=We.width,ne=We.height;var qe=Math.max(te+Se,0),nt=Math.max(ne+De,0),lt=a.isClipping,At=wn.allocAt(-me.left,-me.top,qe,nt),Tt=wn.allocAt(0,0,te,ne);pv(he,Tt,!0),te=Tt.width,ne=Tt.height;for(var Bt=!0,_t=nh(a),Gt=0;Gt<se;Gt++){var Zt=b[Gt];We=y;var un=x;if(Zt!==he&&(Zt.visible||Zt===_t)){me=Zt.margin;var er=me.left,ur=me.top;switch(qe=me.right+me.left,nt=me.top+me.bottom,me=sl(Zt,!1),me){case $n:We=te,un=ne,ur=er=nt=qe=0;break;case wr:We=te,er=qe=0;break;case Dr:un=ne,ur=nt=0}Zt.measure(We,un,0,0),We=Zt.measuredBounds,qe=Math.max(We.width+qe,0),nt=Math.max(We.height+nt,0),me=Zt.alignment,me.Xb()&&(me=a.defaultAlignment),me.sb()||(me=Di);var ir=Zt.alignmentFocus;if(ir.Xb()&&(ir=Di),un=null,Zt instanceof Gn&&Zt.$e!==""&&(un=Zt.fb(Zt.$e),un===Zt&&(un=null)),er=Tt.x-er,ur=Tt.y-ur,un!==null){for(Zt.arrange(0,0,We.width,We.height),We=un.actualBounds,We=Lt.allocAt(We.x+(ir.x*We.width-ir.offsetX),We.y+(ir.y*We.height-ir.offsetY)),un=un.panel;un!==Zt;)un.transform.Ga(We),un=un.panel;er+=me.x*te+me.offsetX-We.x,ur+=me.y*ne+me.offsetY-We.y,Lt.free(We)}else er+=me.x*te+me.offsetX-(ir.x*We.width+ir.offsetX),ur+=me.y*ne+me.offsetY-(ir.y*We.height+ir.offsetY);Bt?(Bt=!1,E.h(er,ur,qe,nt)):qi(E,er,ur,qe,nt)}}switch(Bt?E.assign(At):lt?E.Uu(Tt.x,Tt.y,Tt.width,Tt.height):qi(E,At.x,At.y,At.width,At.height),wn.free(At),wn.free(Tt),me=he.stretch,me===ri&&(me=sl(he,!1)),me){case Fn:return;case $n:if(!isFinite(y)&&!isFinite(x))return;break;case wr:if(!isFinite(y))return;break;case Dr:if(!isFinite(x))return}for(We=he.measuredBounds,te=We.width,ne=We.height,qe=Math.max(te+Se,0),nt=Math.max(ne+De,0),me=he.margin,Tt=wn.allocAt(-me.left,-me.top,qe,nt),pv(he,Tt,!0),te=Tt.width,ne=Tt.height,y=0;y<se;y++)x=b[y],x===he||!x.visible&&x!==_t||(me=x.margin,qe=me.right+me.left,nt=me.top+me.bottom,We=x.measuredBounds,qe=Math.max(We.width+qe,0),nt=Math.max(We.height+nt,0),Se=x.alignment,Se.Xb()&&(Se=a.defaultAlignment),Se.sb()||(Se=Di),x=x.alignmentFocus,x.Xb()&&(x=Di),Bt?(Bt=!1,E.h(Se.x*te+Se.offsetX-(x.x*We.width+x.offsetX)-me.left,Se.y*ne+Se.offsetY-(x.y*We.height+x.offsetY)-me.top,qe,nt)):qi(E,Se.x*te+Se.offsetX-(x.x*We.width+x.offsetX)-me.left,Se.y*ne+Se.offsetY-(x.y*We.height+x.offsetY)-me.top,qe,nt));Bt?E.assign(At):lt?E.Uu(Tt.x,Tt.y,Tt.width,Tt.height):qi(E,At.x,At.y,At.width,At.height),wn.free(Tt)},xm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),te=E.measuredBounds,ne=te.width,se=te.height,he=a.padding;te=he.left,he=he.top;var me=te-x.x,Se=he-x.y;for(E.arrange(me,Se,ne,se),ne=wn.allocAt(0,0,ne,se),pv(E,ne,!1),se=0;se<b;se++){var De=y[se];if(De!==E){me=De.measuredBounds;var We=me.width,qe=me.height;Se=De.alignment,Se.Xb()&&(Se=a.defaultAlignment),Se.sb()||(Se=Di);var nt=De.alignmentFocus;if(nt.Xb()&&(nt=Di),me=null,De instanceof Gn&&De.$e!==""&&(me=De.fb(De.$e),me===De&&(me=null)),me!==null){var lt=me.actualBounds;for(nt=Lt.allocAt(lt.x+(nt.x*lt.width-nt.offsetX),lt.y+(nt.y*lt.height-nt.offsetY)),me=me.panel;me!==De;)me.transform.Ga(nt),me=me.panel;me=Se.x*ne.width+Se.offsetX-nt.x,Se=Se.y*ne.height+Se.offsetY-nt.y,Lt.free(nt)}else me=Se.x*ne.width+Se.offsetX-(nt.x*We+nt.offsetX),Se=Se.y*ne.height+Se.offsetY-(nt.y*qe+nt.offsetY);me+=ne.x-x.x,Se+=ne.y-x.y,De.visible&&De.arrange(te+me,he+Se,We,qe)}}wn.free(ne)};function pv(a,y,x){var b=null;if(a instanceof Gn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function wm(){this.xa="Base"}cn(wm,Ha),wm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,he=a.Pb(),me=he.margin,Se=y,De=x,We=me.right+me.left,qe=me.top+me.bottom;he.measure(y,x,te,ne),me=he.measuredBounds;var nt=0,lt=null;he instanceof di&&(lt=he,nt=lt.strokeWidth*lt.scale);var At=Math.max(me.width+We,0);me=Math.max(me.height+qe,0);var Tt=yv(he),Bt=Tt.x*At+Tt.offsetX;Tt=Tt.y*me+Tt.offsetY;var _t=Sv(he),Gt=_t.x*At+_t.offsetX;for(_t=_t.y*me+_t.offsetY,isFinite(y)&&(Se=Math.max(Math.abs(Bt-Gt)-nt,0)),isFinite(x)&&(De=Math.max(Math.abs(Tt-_t)-nt,0)),nt=Kn.alloc(),nt.h(0,0),a=nh(a),_t=0;_t<se;_t++)Tt=b[_t],Tt===he||!Tt.visible&&Tt!==a||(me=Tt.margin,At=me.right+me.left,Bt=me.top+me.bottom,Tt.measure(Se,De,0,0),me=Tt.measuredBounds,At=Math.max(me.width+At,0),me=Math.max(me.height+Bt,0),nt.h(Math.max(At,nt.width),Math.max(me,nt.height)));if(se===1)E.width=At,E.height=me,Kn.free(nt);else{switch(Tt=yv(he),_t=Sv(he),se=b=0,_t.x!==Tt.x&&_t.y!==Tt.y&&(b=nt.width/Math.abs(_t.x-Tt.x),se=nt.height/Math.abs(_t.y-Tt.y)),Kn.free(nt),nt=0,lt!==null&&(nt=lt.strokeWidth*lt.scale,Ev(lt)===hr&&(b=se=Math.max(b,se))),b+=Math.abs(Tt.offsetX)+Math.abs(_t.offsetX)+nt,se+=Math.abs(Tt.offsetY)+Math.abs(_t.offsetY)+nt,lt=he.stretch,lt===ri&&(lt=sl(he,!1)),lt){case Fn:ne=te=0;break;case $n:isFinite(y)&&(b=y),isFinite(x)&&(se=x);break;case wr:isFinite(y)&&(b=y),ne=0;break;case Dr:te=0,isFinite(x)&&(se=x)}he.Uj(),he.measure(b,se,te,ne),E.width=he.measuredBounds.width+We,E.height=he.measuredBounds.height+qe}},wm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,te=wn.alloc();te.h(0,0,1,1);var ne=b.margin,se=ne.left;ne=ne.top;var he=a.padding,me=he.left;he=he.top,b.arrange(me+se,he+ne,E.width,E.height);var Se=yv(b),De=Sv(b),We=Se.y*E.height+Se.offsetY,qe=De.x*E.width+De.offsetX;for(De=De.y*E.height+De.offsetY,te.x=Se.x*E.width+Se.offsetX,te.y=We,qi(te,qe,De,0,0),te.x+=se+me,te.y+=ne+he,E=0;E<x;E++)se=y[E],se!==b&&(me=se.measuredBounds,ne=se.margin,he=Math.max(me.width+ne.right+ne.left,0),Se=Math.max(me.height+ne.top+ne.bottom,0),We=se.alignment,We.Xb()&&(We=a.defaultAlignment),We.sb()||(We=Di),he=te.width*We.x+We.offsetX-he*We.x+ne.left+te.x,ne=te.height*We.y+We.offsetY-Se*We.y+ne.top+te.y,se.visible&&(No(te.x,te.y,te.width,te.height,he,ne,me.width,me.height)?se.arrange(he,ne,me.width,me.height):se.arrange(he,ne,me.width,me.height,new wn(te.x,te.y,te.width,te.height))));wn.free(te)};function bm(){this.xa="Base",this.name="Table"}cn(bm,Ha),bm.prototype.measure=function(a,y,x,b,E){for(var te=b.length,ne=pn(),se=pn(),he=0;he<te;he++){var me=b[he],Se=me instanceof Gn?me:null;if(Se!==null&&Ch(Se)&&me.visible){se.push(Se);for(var De=Se.O.s,We=De.length,qe=0;qe<We;qe++){var nt=De[qe];Se.type===Gn.TableRow?nt.row=me.row:Se.type===Gn.TableColumn&&(nt.column=me.column),ne.push(nt)}}else ne.push(me)}te=ne.length,te===0&&(a.Fb(0),a.Eb(0));for(var lt=[],At=0;At<te;At++){var Tt=ne[At];Tt.visible&&(Ia(Tt,!0),Mc(Tt,!0),lt[Tt.row]||(lt[Tt.row]=[]),lt[Tt.row][Tt.column]||(lt[Tt.row][Tt.column]=[]),lt[Tt.row][Tt.column].push(Tt))}kn(ne);var Bt=pn(),_t=pn(),Gt=pn(),Zt={count:0},un={count:0},er=y,ur=x,ir=a.rowDefs,Hn=a.colDefs,An=null;te=ir.length;for(var Qr=0;Qr<te;Qr++)An=ir[Qr],An!==void 0&&(An.actual=0);te=Hn.length;for(var Wr=0;Wr<te;Wr++)An=Hn[Wr],An!==void 0&&(An.actual=0);for(var Xi=lt.length,bo=0,Ja=0;Ja<Xi;Ja++)lt[Ja]&&(bo=Math.max(bo,lt[Ja].length));var rs=Math.min(a.topIndex,Xi-1),Fs=Math.min(a.leftIndex,bo-1),Qa=0;Xi=lt.length;for(var Ih=nh(a),Pa=0;Pa<Xi;Pa++)if(lt[Pa]){bo=lt[Pa].length;var qu=a.Fb(Pa);qu.actual=0;for(var Bs=qu.oc=0;Bs<bo;Bs++)if(lt[Pa][Bs]){var Dh=a.Eb(Bs);Bt[Bs]===void 0&&(Dh.actual=0,Dh.oc=0,Bt[Bs]=!0);for(var Jl=lt[Pa][Bs],bu=Jl.length,Ol=0;Ol<bu;Ol++){var Sl=Jl[Ol];if(Sl.visible||Sl===Ih){var fd=1<Sl.rowSpan||1<Sl.columnSpan;fd&&(Pa<rs||Bs<Fs||_t.push(Sl));var ec=Sl.margin,Dp=ec.right+ec.left,Nl=ec.top+ec.bottom,Rs=Zu(Sl,qu,Dh,!1),Jg=Sl.desiredSize,Df=!isNaN(Jg.height),dc=!isNaN(Jg.width)&&Df;if(fd||Rs===Fn||dc||Pa<rs||Bs<Fs||(Zt[Bs]!==void 0||Rs!==$n&&Rs!==wr||(Zt[Bs]=-1,Zt.count++),un[Pa]!==void 0||Rs!==$n&&Rs!==Dr||(un[Pa]=-1,un.count++),Gt.push(Sl)),Sl.measure(1/0,1/0,0,0),!(Pa<rs||Bs<Fs)){var xl=Sl.measuredBounds,Qd=Math.max(xl.width+Dp,0),Al=Math.max(xl.height+Nl,0);if(Sl.rowSpan===1&&(Rs===Fn||Rs===wr)){An=a.Fb(Pa);var pd=An.Wc();Qa=Math.max(Al-An.actual,0),Qa+pd>ur&&(Qa=Math.max(ur-pd,0));var W0=An.oa===0;An.oc=An.oc+Qa,An.actual=An.oa+Qa,ur=Math.max(ur-(Qa+(W0?pd:0)),0)}if(Sl.columnSpan===1&&(Rs===Fn||Rs===Dr)){An=a.Eb(Bs);var Qg=An.Wc();Qa=Math.max(Qd-An.actual,0),Qa+Qg>er&&(Qa=Math.max(er-Qg,0));var $y=An.oa===0;An.oc=An.oc+Qa,An.actual=An.oa+Qa,er=Math.max(er-(Qa+($y?Qg:0)),0)}fd&&Sl.Uj()}}}}}kn(Bt);var Rc=0,oh=0;te=a.columnCount;for(var Ff=0;Ff<te;Ff++){var gd=Hn[Ff];gd!==void 0&&(Rc+=isNaN(gd.Hc)?gd.oc:gd.Hc,gd.oc!==0&&(Rc+=gd.Wc()))}te=a.rowCount;for(var Fp=0;Fp<te;Fp++){var md=ir[Fp];md!==void 0&&(oh+=isNaN(md.Hc)?md.oc:md.Hc,md.oc!==0&&(oh+=md.Wc()))}er=Math.max(y-Rc,0);var _c=ur=Math.max(x-oh,0),Fh=er;te=Gt.length;for(var wl=0;wl<te;wl++){var fc=Gt[wl],K0=a.Fb(fc.row),ah=a.Eb(fc.column),Bp=fc.measuredBounds,tc=fc.margin,qd=tc.right+tc.left,pc=tc.top+tc.bottom;Zt[fc.column]=ah.oc===0&&Zt[fc.column]!==void 0?Math.max(Bp.width+qd,Zt[fc.column]):null,un[fc.row]=K0.oc===0&&un[fc.row]!==void 0?Math.max(Bp.height+pc,un[fc.row]):null}var Bf=0,Rp=0,Fu;for(Fu in un)Fu!=="count"&&(Bf+=un[Fu]);for(Fu in Zt)Fu!=="count"&&(Rp+=Zt[Fu]);for(var fs=Kn.alloc(),qg=0;qg<te;qg++){var Js=Gt[qg];if(Js.visible||Js===Ih){var Ca=a.Fb(Js.row),Qs=a.Eb(Js.column),sh=0;isFinite(Qs.width)?sh=Qs.width:(isFinite(er)&&Zt[Js.column]!==null?Rp===0?sh=Qs.actual+er:sh=Zt[Js.column]/Rp*Fh:Zt[Js.column]!==null?sh=er:sh=Qs.actual||er,sh=Math.max(0,sh-Qs.Wc()));var Bh=0;switch(isFinite(Ca.height)?Bh=Ca.height:(isFinite(ur)&&un[Js.row]!==null?Bf===0?Bh=Ca.actual+ur:Bh=un[Js.row]/Bf*_c:un[Js.row]!==null?Bh=ur:Bh=Ca.actual||ur,Bh=Math.max(0,Bh-Ca.Wc())),fs.h(Math.max(Qs.minimum,Math.min(sh,Qs.maximum)),Math.max(Ca.minimum,Math.min(Bh,Ca.maximum))),Rs=Zu(Js,Ca,Qs,!1),Rs){case wr:fs.height=Math.max(fs.height,Ca.actual+ur);break;case Dr:fs.width=Math.max(fs.width,Qs.actual+er)}var ef=Js.margin,Gy=ef.right+ef.left,V0=ef.top+ef.bottom;Js.Uj(),Js.measure(fs.width,fs.height,Qs.minimum,Ca.minimum);var _p=Js.measuredBounds,tf=Math.max(_p.width+Gy,0),Rf=Math.max(_p.height+V0,0);isFinite(er)&&(tf=Math.min(tf,fs.width)),isFinite(ur)&&(Rf=Math.min(Rf,fs.height));var bl=0;bl=Ca.actual,Ca.actual=Math.max(Ca.actual,Rf),Ca.oc=Math.max(Ca.oc,Rf),Qa=Ca.actual-bl,ur=Math.max(ur-Qa,0),un[Js.row]===null&&(_c=Math.max(_c-Qa,0)),bl=Qs.actual,Qs.actual=Math.max(Qs.actual,tf),Qs.oc=Math.max(Qs.oc,tf),Qa=Qs.actual-bl,er=Math.max(er-Qa,0),Zt[Js.column]===null&&(Fh=Math.max(Fh-Qa,0))}}kn(Gt);var lh=Kn.alloc(),nc=pn(),fu=pn();if(te=_t.length,te!==0){for(var vd=0;vd<Xi;vd++)if(lt[vd]){bo=lt[vd].length;var zp=a.Fb(vd);nc[vd]=zp.actual;for(var yd=0;yd<bo;yd++)if(lt[vd][yd]){var Z0=a.Eb(yd);fu[yd]=Z0.actual}}}for(var $p=0;$p<te;$p++){var sa=_t[$p];if(sa.visible||sa===Ih){var Bu=a.Fb(sa.row),Pu=a.Eb(sa.column);switch(fs.h(Math.max(Pu.minimum,Math.min(y,Pu.maximum)),Math.max(Bu.minimum,Math.min(x,Bu.maximum))),Rs=Zu(sa,Bu,Pu,!1),Rs){case $n:fu[Pu.index]!==0&&(fs.width=Math.min(fs.width,fu[Pu.index])),nc[Bu.index]!==0&&(fs.height=Math.min(fs.height,nc[Bu.index]));break;case wr:fu[Pu.index]!==0&&(fs.width=Math.min(fs.width,fu[Pu.index]));break;case Dr:nc[Bu.index]!==0&&(fs.height=Math.min(fs.height,nc[Bu.index]))}isFinite(Pu.width)&&(fs.width=Pu.width),isFinite(Bu.height)&&(fs.height=Bu.height),lh.h(0,0);for(var X0=Pu.minimum,jl=Bu.minimum,Rh=1;Rh<sa.rowSpan&&!(sa.row+Rh>=a.rowCount);Rh++)An=a.Fb(sa.row+Rh),Qa=0,Qa=Rs===$n||Rs===Dr?Math.max(An.minimum,nc[sa.row+Rh]===0?An.maximum:Math.min(nc[sa.row+Rh],An.maximum)):Math.max(An.minimum,isNaN(An.Hc)?An.maximum:Math.min(An.Hc,An.maximum)),lh.height+=Qa,jl+=An.minimum;for(var Cu=1;Cu<sa.columnSpan&&!(sa.column+Cu>=a.columnCount);Cu++)An=a.Eb(sa.column+Cu),Qa=0,Qa=Rs===$n||Rs===wr?Math.max(An.minimum,fu[sa.column+Cu]===0?An.maximum:Math.min(fu[sa.column+Cu],An.maximum)):Math.max(An.minimum,isNaN(An.Hc)?An.maximum:Math.min(An.Hc,An.maximum)),lh.width+=Qa,X0+=An.minimum;fs.width+=lh.width,fs.height+=lh.height;var Gp=sa.margin,Sd=Gp.right+Gp.left,em=Gp.top+Gp.bottom;sa.measure(fs.width,fs.height,X0,jl);for(var Hp=sa.measuredBounds,gc=Math.max(Hp.width+Sd,0),nf=Math.max(Hp.height+em,0),xd=0,Up=0;Up<sa.rowSpan&&!(sa.row+Up>=a.rowCount);Up++)An=a.Fb(sa.row+Up),xd+=An.total||0;if(xd<nf){var _h=nf-xd,zc=nf-xd;if(sa.spanAllocation!==null)for(var zh=sa.spanAllocation,uh=0;uh<sa.rowSpan&&!(0>=_h)&&!(sa.row+uh>=a.rowCount);uh++){An=a.Fb(sa.row+uh);var $h=An.oa||0,rf=zh(sa,An,zc);An.actual=Math.min(An.maximum,$h+rf),An.oa!==$h&&(_h-=An.oa-$h)}for(;0<_h;){var rc=An.oa||0;if(isNaN(An.height)&&An.maximum>rc&&(An.actual=Math.min(An.maximum,rc+_h),An.oa!==rc&&(_h-=An.oa-rc)),An.index===0)break;An=a.Fb(An.index-1)}}for(var _f=0,Gh=0;Gh<sa.columnSpan&&!(sa.column+Gh>=a.columnCount);Gh++)An=a.Eb(sa.column+Gh),_f+=An.total||0;if(_f<gc){var zf=gc-_f,Hy=gc-_f;if(sa.spanAllocation!==null)for(var ch=sa.spanAllocation,of=0;of<sa.columnSpan&&!(0>=zf)&&!(sa.column+of>=a.columnCount);of++){An=a.Eb(sa.column+of);var tm=An.oa||0,Uy=ch(sa,An,Hy);An.actual=Math.min(An.maximum,tm+Uy),An.oa!==tm&&(zf-=An.oa-tm)}for(;0<zf;){var Y0=An.oa||0;if(isNaN(An.width)&&An.maximum>Y0&&(An.actual=Math.min(An.maximum,Y0+zf),An.oa!==Y0&&(zf-=An.oa-Y0)),An.index===0)break;An=a.Eb(An.index-1)}}}}kn(_t),Kn.free(lh),Kn.free(fs),nc!==void 0&&kn(nc),fu!==void 0&&kn(fu);var $f=0,Gf=0,J0=a.desiredSize,gx=a.maxSize;Rs=sl(a,!0);var nm=oh=Rc=0,rm=0;te=a.columnCount;for(var Q0=0;Q0<te;Q0++)Hn[Q0]!==void 0&&(An=a.Eb(Q0),isFinite(An.width)?(nm+=An.width,nm+=An.Wc()):Am(An)===pg?(nm+=An.oa,nm+=An.Wc()):An.oa!==0&&(Rc+=An.oa,Rc+=An.Wc()));isFinite(J0.width)?$f=Math.min(J0.width,gx.width):$f=Rs!==Fn&&isFinite(y)?y:Rc,$f=Math.max($f,a.minSize.width),$f=Math.max($f-nm,0);for(var Qx=Rc===0?1:Math.max($f/Rc,1),q0=0;q0<te;q0++)Hn[q0]!==void 0&&(An=a.Eb(q0),isFinite(An.width)||Am(An)===pg||(An.actual=An.oa*Qx),An.position=E.width,An.oa!==0&&(E.width+=An.oa,E.width+=An.Wc()));te=a.rowCount;for(var ev=0;ev<te;ev++)ir[ev]!==void 0&&(An=a.Fb(ev),isFinite(An.height)?(rm+=An.height,rm+=An.Wc()):Am(An)===pg?(rm+=An.oa,rm+=An.Wc()):An.oa!==0&&(oh+=An.oa,oh+=An.Wc()));isFinite(J0.height)?Gf=Math.min(J0.height,gx.height):Gf=Rs!==Fn&&isFinite(x)?x:oh,Gf=Math.max(Gf,a.minSize.height),Gf=Math.max(Gf-rm,0);for(var qx=oh===0?1:Math.max(Gf/oh,1),tv=0;tv<te;tv++)ir[tv]!==void 0&&(An=a.Fb(tv),isFinite(An.height)||Am(An)===pg||(An.actual=An.oa*qx),An.position=E.height,An.oa!==0&&(E.height+=An.oa,E.height+=An.Wc()));te=se.length;for(var Wy=0;Wy<te;Wy++){var im=se[Wy],Ky=0,Vy=0;im.type===Gn.TableRow?(Ky=E.width,An=a.Fb(im.row),Vy=An.actual):(An=a.Eb(im.column),Ky=An.actual,Vy=E.height),im.measuredBounds.h(0,0,Ky,Vy),Ia(im,!1)}kn(se),a.inRowsCols=lt},bm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,te=E.left;E=E.top;var ne=a.inRowsCols;if(ne!==null){for(var se,he,me=ne.length,Se=0,De=0;De<me;De++)ne[De]&&(Se=Math.max(Se,ne[De].length));he=a.rowDefs,se=a.colDefs;var We=De=0,qe=Math.min(a.topIndex,me-1);if(0<he.length){for(;qe!==me&&(he[qe]===void 0||he[qe].oa===0);)qe++;qe=Math.max(Math.min(qe,me-1),0),De=-he[qe].position}var nt=Math.min(a.leftIndex,Se-1);if(0<se.length){for(;nt!==Se&&(se[nt]===void 0||se[nt].oa===0);)nt++;nt=Math.max(Math.min(nt,Se-1),0),We=-se[nt].position}for(var lt=0,At=0;lt!==me&&he[lt]===void 0;)lt++;for(;At!==me&&se[At]===void 0;)At++;Se=a.part,a.Fb(lt),a.Eb(At);for(var Tt=0;Tt<y.length;Tt++){var Bt=y[Tt];if(Bt instanceof Gn&&Bt.visible&&Ch(Bt)){if(Bt.type===Gn.TableRow){se=a.Fb(Bt.row);var _t=a.Eb(At)}else se=a.Fb(lt),_t=a.Eb(Bt.column);he=se.position+De+E,se.oa!==0&&(he+=se.Io(Math.max(lt,qe))),se=_t.position+We+te,_t.oa!==0&&(se+=_t.Io(Math.max(At,nt))),_t=Bt.measuredBounds,Bt.Uk(),Bt.actualBounds.ka();var Gt=Bt.actualBounds,Zt=wn.allocAt(Gt.x,Gt.y,Gt.width,Gt.height);Gt.x=Bt.type===Gn.TableRow?te:se,Gt.y=Bt.type===Gn.TableColumn?E:he,Gt.width=_t.width,Gt.height=_t.height,Bt.actualBounds.freeze(),Mc(Bt,!1),So(Zt,Gt)||Se===null||(Se.oh(),Bt.Pn(Se)),wn.free(Zt)}}for(Tt=Kn.alloc(),Bt=0;Bt<me;Bt++)if(ne[Bt]){for(Se=ne[Bt].length,_t=a.Fb(Bt),he=_t.position+De+E,_t.oa!==0&&(he+=_t.Io(Math.max(lt,qe))),Gt=0;Gt<Se;Gt++)if(ne[Bt][Gt]){Zt=a.Eb(Gt),se=Zt.position+We+te,Zt.oa!==0&&(se+=Zt.Io(Math.max(At,nt)));for(var un=ne[Bt][Gt],er=un.length,ur=0;ur<er;ur++){var ir=un[ur],Hn=ir.measuredBounds;Tt.h(0,0);for(var An=1;An<ir.rowSpan&&!(Bt+An>=a.rowCount);An++){var Qr=a.Fb(Bt+An);Qr.oa!==0&&(Tt.height+=Qr.total)}for(An=1;An<ir.columnSpan&&!(Gt+An>=a.columnCount);An++)Qr=a.Eb(Gt+An),Qr.oa!==0&&(Tt.width+=Qr.total);var Wr=Zt.oa+Tt.width,Xi=_t.oa+Tt.height;An=se,Qr=he;var bo=Wr,Ja=Xi,rs=se,Fs=he,Qa=Wr,Ih=Xi;se+Wr>x.width&&(Qa=Math.max(x.width-se,0)),he+Xi>x.height&&(Ih=Math.max(x.height-he,0));var Pa=ir.alignment;if(Pa.Xb()){Pa=a.defaultAlignment,Pa.sb()||(Pa=Di);var qu=Pa.x,Bs=Pa.y,Dh=Pa.offsetX;Pa=Pa.offsetY;var Jl=Zt.alignment,bu=_t.alignment;Jl.sb()&&(qu=Jl.x,Dh=Jl.offsetX),bu.sb()&&(Bs=bu.y,Pa=bu.offsetY)}else qu=Pa.x,Bs=Pa.y,Dh=Pa.offsetX,Pa=Pa.offsetY;(isNaN(qu)||isNaN(Bs))&&(Bs=qu=.5,Pa=Dh=0),Jl=Hn.width,bu=Hn.height;var Ol=ir.margin,Sl=Ol.left+Ol.right,fd=Ol.top+Ol.bottom,ec=Zu(ir,_t,Zt,!1);!isNaN(ir.desiredSize.width)||ec!==$n&&ec!==wr||(Jl=Math.max(Wr-Sl,0)),!isNaN(ir.desiredSize.height)||ec!==$n&&ec!==Dr||(bu=Math.max(Xi-fd,0)),Wr=ir.maxSize,Xi=ir.minSize,Jl=Math.min(Wr.width,Jl),bu=Math.min(Wr.height,bu),Jl=Math.max(Xi.width,Jl),bu=Math.max(Xi.height,bu),Wr=bu+fd,An+=bo*qu-(Jl+Sl)*qu+Dh+Ol.left,Qr+=Ja*Bs-Wr*Bs+Pa+Ol.top,ir.visible&&(No(rs,Fs,Qa,Ih,An,Qr,Hn.width,Hn.height)?ir.arrange(An,Qr,Jl,bu):ir.arrange(An,Qr,Jl,bu,new wn(rs,Fs,Qa,Ih)))}}}for(Kn.free(Tt),a=0;a<b;a++)x=y[a],te=x instanceof Gn?x:null,te!==null&&Ch(te)&&(te=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,te.width,te.height),x.naturalBounds.freeze())}};function Pm(){this.xa="Base"}cn(Pm,Ha),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Cm(){this.xa="Base"}cn(Cm,Ha),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Em(){this.xa="Base"}cn(Em,Ha),Em.prototype.measure=function(a,y,x,b,E,te,ne){1<b.length&&$t("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,te,ne);var se=b.measuredBounds,he=b.margin,me=he.right+he.left;if(he=he.top+he.bottom,isFinite(y)||isFinite(x)){var Se=b.scale,De=se.width;se=se.height;var We=Math.max(y-me,0),qe=Math.max(x-he,0),nt=1;a.viewboxStretch===hr?De!==0&&se!==0&&(nt=Math.min(We/De,qe/se)):De!==0&&se!==0&&(nt=Math.max(We/De,qe/se)),nt===0&&(nt=1e-4),b.Ca*=nt,Se!==b.scale&&(Ia(b,!0),b.measure(1/0,1/0,te,ne))}se=b.measuredBounds,E.width=isFinite(y)?y:Math.max(se.width+me,0),E.height=isFinite(x)?x:Math.max(se.height+he,0)},Em.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,te=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var ne=y.alignment;ne.Xb()&&(ne=a.defaultAlignment),ne.sb()||(ne=Di),y.arrange(x.width*ne.x-te*ne.x+ne.offsetX,x.height*ne.y-E*ne.y+ne.offsetY,b.width,b.height)};function hg(){this.xa="Base"}cn(hg,Ha),hg.prototype.measure=function(){},hg.prototype.arrange=function(){},hg.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var te=a.naturalBounds,ne=a.actualBounds,se=te.width,he=te.height,me=Math.ceil(se/E),Se=Math.ceil(he/b),De=a.gridOrigin,We=De.x;De=De.y,y.save(),y.beginPath(),y.rect(0,0,se,he),y.clip(),y.Se();for(var qe=[],nt=a.O.s,lt=nt.length,At=0;At<lt;At++){var Tt=nt[At],Bt=[];if(qe.push(Bt),Tt.visible){var _t=Tt.interval;if(!(0>_t)){Tt=mv(Tt.figure);for(var Gt=0;Gt<lt;Gt++)if(Gt!==At){var Zt=nt[Gt];Zt.visible&&mv(Zt.figure)===Tt&&(Zt=Zt.interval,Zt>_t&&Bt.push(Zt))}}}}for(nt=a.O.s,lt=nt.length,At=0;At<lt;At++){var un=nt[At];if(un.visible&&(Bt=un.interval||1,Tt=Math.abs(Bt),!(2>E*Tt*x))){if(_t=un.segmentIndex,(!isFinite(_t)||isNaN(_t))&&(_t=0),0>_t&&(_t=Tt-Math.min(-_t,Tt)),_t=Math.round(_t%Tt),Tt=un.opacity,Gt=1,Tt!==1){if(Tt===0)continue;Gt=y.globalAlpha,y.globalAlpha=Gt*Tt}Zt=qe[At];var er=!1,ur=un.strokeDashArray;if(ur!==null&&(er=!0,y.js(ur,un.strokeDashOffset)),un.figure==="LineV"&&un.stroke!==null&&0<un.strokeWidth){for(y.lineWidth=un.strokeWidth,oa(a,y,un.stroke,!1,!1,te,ne),y.beginPath(),ur=un=Math.floor((We-E)/E);ur<=un+me;ur++){var ir=ur*E+We;0<=ir&&ir<=se&&Tm(ur,Bt,_t,Zt)&&(y.moveTo(ir,0),y.lineTo(ir,he))}y.stroke(),y.Se()}else if(un.figure==="LineH"&&un.stroke!==null&&0<un.strokeWidth){for(y.lineWidth=un.strokeWidth,oa(a,y,un.stroke,!1,!1,te,ne),y.beginPath(),ur=un=Math.floor((De-b)/b);ur<=un+Se;ur++)ir=ur*b+De,0<=ir&&ir<=he&&Tm(ur,Bt,_t,Zt)&&(y.moveTo(0,ir),y.lineTo(se,ir));y.stroke(),y.Se()}else if(un.figure==="BarV"&&un.fill!==null)for(oa(a,y,un.fill,!0,!1,te,ne),un=un.width,isNaN(un)&&(un=E),ir=ur=Math.floor((We-E)/E);ir<=ur+me;ir++){var Hn=ir*E+We;0<=Hn+un&&Hn<=se&&Tm(ir,Bt,_t,Zt)&&y.fillRect(Hn,0,un,he)}else if(un.figure==="BarH"&&un.fill!==null)for(oa(a,y,un.fill,!0,!1,te,ne),un=un.height,isNaN(un)&&(un=b),ir=ur=Math.floor((De-b)/b);ir<=ur+Se;ir++)Hn=ir*b+De,0<=Hn+un&&Hn<=he&&Tm(ir,Bt,_t,Zt)&&y.fillRect(0,Hn,se,un);er&&y.fs(),Tt!==1&&(y.globalAlpha=Gt)}}y.restore(),y.Vc(!1)};function Tm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Mm(){this.xa="Base"}cn(Mm,Ha),Mm.prototype.measure=function(a,y,x,b,E){var te=b.length;if(a instanceof Ki||a instanceof Un){var ne=null,se=null;if(a instanceof Un&&(ne=a),a instanceof Ki&&(se=a,ne=se.adornedPart,a.j===null&&(a.j=[])),ne instanceof Un){var he=ne;if(te===0)ma(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var me=a instanceof Ki?null:ne.path;y=ne.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var Se=he.points,De=ne.pointsCount;se!==null?se.Ul(!1):ne!==null&&ne.Ul(!1),se=y.width;var We=y.height,qe=a.j;if(qe.length=0,me!==null){i1(a,se,We,me);var nt=me.measuredBounds;x.ed(nt),qe.push(nt)}nt=gi.alloc();for(var lt=Lt.alloc(),At=Lt.alloc(),Tt=0;Tt<te;Tt++){var Bt=b[Tt];if(Bt!==me)if(Bt.isPanelMain&&Bt instanceof di){i1(a,se,We,Bt);var _t=Bt.measuredBounds;x.ed(_t),qe.push(_t)}else if(2>De)Bt.measure(1/0,1/0,0,0),_t=Bt.measuredBounds,x.ed(_t),qe.push(_t);else{var Gt=Bt.segmentIndex,Zt=Bt.segmentFraction,un=Bt.alignmentFocus;un.Mc()&&(un=Di);var er=Bt.segmentOrientation,ur=Bt.segmentOffset;if(isNaN(Gt)){var ir=he.ua;_t=pn(),ir.Qu(Zt,_t);var Hn=Lt.allocAt(_t[0],_t[1]);if(Hn.add(he.i(0)),ir.type===Vn.j?Hn.offset(-ir.startX,-ir.startY):(ir=ir.figures.first(),ir!==null&&Hn.offset(-ir.startX,-ir.startY)),ir=_t[2],er!==Ks){var An=he.computeAngle(Bt,er,ir);Bt.Kb=An}An=Hn.x-y.x;var Qr=Hn.y-y.y;Lt.free(Hn),kn(_t)}else if(Gt<-De||Gt>=De)_t=Lt.alloc(),he.vg(),he.computeMidPoint(_t),ir=he.midAngle,er!==Ks&&(An=he.computeAngle(Bt,er,ir),Bt.Kb=An),An=_t.x-y.x,Qr=_t.y-y.y,Lt.free(_t);else{if(An=0,0<=Gt?(Qr=Se.M(Gt),_t=Gt<De-1?Se.M(Gt+1):Qr):(An=De+Gt,Qr=Se.M(An),_t=0<An?Se.M(An-1):Qr),Qr.Xa(_t)){0<=Gt?(ir=0<Gt?Se.M(Gt-1):Qr,An=Gt<De-2?Se.M(Gt+2):_t):(ir=An<De-1?Se.M(An+1):Qr,An=1<An?Se.M(An-2):_t),Hn=ir.Bf(Qr);var Wr=_t.Bf(An);ir=Hn>Wr+10?0<=Gt?ir.ab(Qr):Qr.ab(ir):Wr>Hn+10?0<=Gt?_t.ab(An):An.ab(_t):0<=Gt?ir.ab(An):An.ab(ir)}else ir=0<=Gt?Qr.ab(_t):_t.ab(Qr);er!==Ks&&(An=he.computeAngle(Bt,er,ir),Bt.Kb=An),An=Qr.x+(_t.x-Qr.x)*Zt-y.x,Qr=Qr.y+(_t.y-Qr.y)*Zt-y.y}Bt.measure(1/0,1/0,0,0),_t=Bt.measuredBounds,Hn=Bt.naturalBounds;var Xi=0;Bt instanceof di&&(Xi=Bt.strokeWidth),Wr=Hn.width+Xi;var bo=Hn.height+Xi;nt.reset(),nt.translate(-_t.x,-_t.y),nt.scale(Bt.scale,Bt.scale),nt.rotate(er===Ks?Bt.angle:ir,Wr/2,bo/2),er!==Cg&&er!==Tg||nt.rotate(90,Wr/2,bo/2),er!==Eg&&er!==Mg||nt.rotate(-90,Wr/2,bo/2),er===r0&&(45<ir&&135>ir||225<ir&&315>ir)&&nt.rotate(-ir,Wr/2,bo/2),Hn=new wn(0,0,Wr,bo),lt.xi(Hn,un),nt.Ga(lt),un=-lt.x+Xi/2*Bt.scale,Bt=-lt.y+Xi/2*Bt.scale,At.assign(ur),Xi=isNaN(ur.x);var Ja=isNaN(ur.y);if(Xi||Ja){Wr=Wr/2+3,bo=bo/2+3;var rs=45<=ir&&135>=ir,Fs=225<=ir&&315>=ir;er===Ks&&(rs||Fs)?(At.x=Ja?Wr:ur.y,At.y=Xi?bo:ur.x,rs?0<=Gt||isNaN(Gt)&&.5>Zt||!Xi||(At.y=-bo):Fs&&((0<=Gt||isNaN(Gt)&&.5>Zt)&&Xi&&(At.y=-bo),Ja&&(At.x=-Wr))):(Xi&&(At.x=0<=Gt||isNaN(Gt)&&.5>Zt?Wr:-Wr),Ja&&(At.y=-bo),At.rotate(ir))}else At.rotate(ir);An+=At.x,Qr+=At.y,Hn.set(_t),Hn.h(An+un,Qr+Bt,_t.width,_t.height),qe.push(Hn),x.ed(Hn)}}if(ne!==null)for(b=ne.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),ma(E,x.width||0,x.height||0),gi.free(nt),Lt.free(lt),Lt.free(At)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ki||a instanceof Un){var b=a,E=null;a instanceof Ki&&(E=a,b=E.adornedPart);var te=a instanceof Ki?null:b.path,ne=a.j;if(ne.length!==0){var se=0;if(te!==null&&se<ne.length){var he=ne[se];se++,te.arrange(he.x-a.jg.x,he.y-a.jg.y,he.width,he.height)}for(he=0;he<x;he++){var me=y[he];if(me!==te&&se<ne.length){var Se=ne[se];se++,me.arrange(Se.x-a.jg.x,Se.y-a.jg.y,Se.width,Se.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Un)for(te=a.labelNodes;te.next();){var De=a;ne=te.value,se=ne.segmentIndex,he=ne.segmentFraction;var We=ne.alignmentFocus;if(me=ne.segmentOrientation,Se=ne.segmentOffset,isNaN(se)){var qe=De.ua,nt=pn();qe.Qu(he,nt);var lt=Lt.allocAt(nt[0],nt[1]);lt.add(De.i(0)),qe.type===Vn.j||(qe=qe.figures.first()),lt.offset(-qe.startX,-qe.startY),qe=nt[2],me!==Ks&&(De=De.computeAngle(ne,me,qe),ne.angle=De),De=lt.x;var At=lt.y;Lt.free(lt),kn(nt)}else if(se<-x||se>=x)nt=Lt.alloc(),qe=De,At=nt,qe.vg(),qe.computeMidPoint(At),qe=De.midAngle,me!==Ks&&(De=De.computeAngle(ne,me,qe),ne.angle=De),De=nt.x,At=nt.y,Lt.free(nt);else{if(lt=0,0<=se?(nt=y.s[se],At=se<x-1?y.s[se+1]:nt):(lt=x+se,nt=y.s[lt],At=0<lt?y.s[lt-1]:nt),nt.Xa(At)){0<=se?(qe=0<se?y.s[se-1]:nt,lt=se<x-2?y.s[se+2]:At):(qe=lt<x-1?y.s[lt+1]:nt,lt=1<lt?y.s[lt-2]:At);var Tt=qe.Bf(nt),Bt=At.Bf(lt);qe=Tt>Bt+10?0<=se?qe.ab(nt):nt.ab(qe):Bt>Tt+10?0<=se?At.ab(lt):lt.ab(At):0<=se?qe.ab(lt):lt.ab(qe)}else qe=0<=se?nt.ab(At):At.ab(nt);me!==Ks&&(De=De.computeAngle(ne,me,qe),ne.angle=De),De=nt.x+(At.x-nt.x)*he,At=nt.y+(At.y-nt.y)*he}if(We.ys())ne.location=new Lt(De,At);else{We.Mc()&&(We=Di),nt=gi.alloc(),nt.reset(),nt.scale(ne.scale,ne.scale),nt.rotate(ne.angle,0,0);var _t=ne.naturalBounds;lt=wn.allocAt(0,0,_t.width,_t.height),Tt=Lt.alloc(),Tt.xi(lt,We),nt.Ga(Tt),We=-Tt.x,Bt=-Tt.y;var Gt=_t.width,Zt=_t.height;_t=Lt.alloc(),_t.assign(Se);var un=isNaN(Se.x),er=isNaN(Se.y);if(un||er){Gt=Gt/2+3,Zt=Zt/2+3;var ur=45<=qe&&135>=qe,ir=225<=qe&&315>=qe;me===Ks&&(ur||ir)?(_t.x=er?Gt:Se.y,_t.y=un?Zt:Se.x,ur?0<=se||isNaN(se)&&.5>he||!un||(_t.y=-Zt):ir&&((0<=se||isNaN(se)&&.5>he)&&un&&(_t.y=-Zt),er&&(_t.x=-Gt))):(un&&(_t.x=0<=se||isNaN(se)&&.5>he?Gt:-Gt),er&&(_t.y=-Zt),_t.rotate(qe))}else _t.rotate(qe);De+=_t.x,At+=_t.y,nt.pp(lt),We+=lt.x,Bt+=lt.y,se=Lt.allocAt(De+We,At+Bt),ne.move(se),Lt.free(se),Lt.free(_t),Lt.free(Tt),wn.free(lt),gi.free(nt)}}E!==null?E.Ul(!1):b.Ul(!1),b=j1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Lt.free(b)}};function i1(a,y,x,b){if(Vl(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Ki&&a.type===Gn.Link&&a.adornedObject instanceof di&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Un&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof Ki&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Ia(b,!1)}}function dg(){this.xa="Base"}cn(dg,Ha),dg.prototype.measure=function(a,y,x,b,E,te,ne){var se=a.Pb();a.graduatedBounds=[];var he=se.margin,me=he.right+he.left,Se=he.top+he.bottom;se.measure(y,x,te,ne);var De=se.measuredBounds,We=new wn(-he.left,-he.top,Math.max(De.width+me,0),Math.max(De.height+Se,0));a.graduatedBounds.push(We),E.assign(We);for(var qe=se.geometry,nt=se.strokeWidth,lt=qe.flattenedSegments,At=qe.flattenedLengths,Tt=qe.flattenedTotalLength,Bt=lt.length,_t=0,Gt=0,Zt=pn(),un=0;un<Bt;un++){var er=lt[un],ur=[];Gt=_t=0;for(var ir=er.length,Hn=0;Hn<ir;Hn+=2){var An=er[Hn],Qr=er[Hn+1];if(Hn!==0){var Wr=180*Math.atan2(Qr-Gt,An-_t)/Math.PI;0>Wr&&(Wr+=360),ur.push(Wr)}_t=An,Gt=Qr}Zt.push(ur)}if(a.graduatedIntervals===null){for(var Xi=[],bo=a.O.s,Ja=bo.length,rs=0;rs<Ja;rs++){var Fs=bo[rs],Qa=[];if(Xi.push(Qa),Fs.visible){var Ih=Fs.interval;if(!(0>Ih)){for(var Pa=0;Pa<Ja;Pa++)if(Pa!==rs){var qu=bo[Pa];if(qu.visible&&Fs.constructor===qu.constructor){var Bs=qu.interval;Bs>Ih&&Qa.push(Bs)}}}}}a.graduatedIntervals=Xi}var Dh=a.graduatedIntervals,Jl=a.O.s,bu=Jl.length,Ol=0,Sl=0,fd=Tt;a.graduatedMarks=[];for(var ec,Dp=0;Dp<bu;Dp++){var Nl=Jl[Dp];if(ec=[],Nl.visible&&Nl!==se){var Rs=Math.abs(Nl.interval),Jg=a.graduatedTickUnit;if(!(2>Jg*Rs*Tt/a.graduatedRange&&Nl.graduatedSkip===null)){var Df=At[0][0],dc=0,xl=0;Sl=Tt*Nl.graduatedStart-1e-4,fd=Tt*Nl.graduatedEnd+1e-4;var Qd=Jg*Rs,Al=a.graduatedTickBase;if(Al<a.graduatedMin){var pd=(a.graduatedMin-Al)/Qd;pd=pd%1===0?pd:Math.floor(pd+1),Al+=pd*Qd}else Al>a.graduatedMin+Qd&&(Al-=Math.floor((Al-a.graduatedMin)/Qd)*Qd);for(var W0=Dh[Dp],Qg=Al,$y=1e-6*a.graduatedMax,Rc=1;Al<=a.graduatedMax+$y;Rc++){e:{for(var oh=W0.length,Ff=0;Ff<oh;Ff++){var gd=(Al-a.graduatedTickBase)%(W0[Ff]*a.graduatedTickUnit),Fp=1e-6*a.graduatedTickUnit;if(gd<Fp&&gd>-Fp){var md=!1;break e}}md=!0}if(md&&(Al>a.graduatedMax&&(Al=a.graduatedMax),Nl.graduatedSkip===null||Nl instanceof Co&&!Nl.graduatedSkip(Al,Nl)||Nl instanceof di&&!Nl.graduatedSkip(Al,Nl))&&(Ol=(Al-a.graduatedMin)*Tt/a.graduatedRange,Ol>Tt&&(Ol=Tt),Sl<=Ol&&Ol<=fd)){for(var _c=Zt[dc][xl],Fh=At[dc][xl];dc<At.length;){for(;Ol>Df&&xl<At[dc].length-1;)xl++,_c=Zt[dc][xl],Fh=At[dc][xl],Df+=Fh;if(Ol<=Df)break;dc++,xl=0,_c=Zt[dc][xl],Fh=At[dc][xl],Df+=Fh}var wl=lt[dc],fc=wl[2*xl],K0=wl[2*xl+1],ah=(Ol-(Df-Fh))/Fh,Bp=new Lt(fc+(wl[2*xl+2]-fc)*ah+nt/2-qe.bounds.x,K0+(wl[2*xl+3]-K0)*ah+nt/2-qe.bounds.y);Bp.scale(se.scale,se.scale);e:{var tc=_c,qd=Zt[dc];if(!(.5005>ah&&.4995<ah)){var pc=tc;if(.5>ah?0<xl?pc=qd[xl-1]:Qt.$(wl[0],wl[wl.length-2])&&Qt.$(wl[1],wl[wl.length-1])&&(pc=qd[qd.length-1]):.5<ah&&(xl+1<qd.length?pc=qd[xl+1]:Qt.$(wl[0],wl[wl.length-2])&&Qt.$(wl[1],wl[wl.length-1])&&(pc=qd[0])),tc!==pc){var Bf=Math.abs(tc-pc);if(180<Bf&&(tc<pc?tc+=360:pc+=360,Bf=Math.abs(tc-pc)),5e-4>ah||.9995<ah){_c=(tc+pc)/2%360;break e}if(10>Bf){var Rp=1-Math.abs(.5-ah);_c=(tc*Rp+pc*(1-Rp))%360;break e}}}_c=tc}if(Nl instanceof Co){var Fu="";Nl.graduatedFunction!==null?(Fu=Nl.graduatedFunction(Al,Nl),Fu=Fu!=null?Fu.toString():""):Fu=(+Al.toFixed(2)).toString(),Fu!==""&&ec.push({$l:Bp,angle:_c,text:Fu})}else ec.push({$l:Bp,angle:_c})}Al=Qg+Rc*Qd}}}a.graduatedMarks.push(ec)}kn(Zt);var fs=a.graduatedMarks;if(fs!==null)for(var qg=b.length,Js=0;Js<qg;Js++){var Ca=b[Js],Qs=fs[Js];if(Ca.visible&&Ca!==se&&Qs.length!==0){if(Ca instanceof di){var sh=a,Bh=E,ef=Ca.alignmentFocus;ef.Mc()&&(ef=Pl);var Gy=Ca.angle;Ca.Kb=0,Ca.measure(1/0,1/0,0,0),Ca.Kb=Gy;var V0=Ca.measuredBounds,_p=V0.width,tf=V0.height,Rf=wn.allocAt(0,0,_p,tf),bl=Lt.alloc();bl.xi(Rf,ef),wn.free(Rf);for(var lh=-bl.x,nc=-bl.y,fu=new wn,vd=Qs.length,zp=0;zp<vd;zp++)for(var yd=Qs[zp],Z0=yd.$l.x,$p=yd.$l.y,sa=yd.angle,Bu=0;4>Bu;Bu++){switch(Bu){case 0:bl.h(lh,nc);break;case 1:bl.h(lh+_p,nc);break;case 2:bl.h(lh,nc+tf);break;case 3:bl.h(lh+_p,nc+tf)}bl.rotate(sa+Ca.angle),bl.offset(Z0,$p),zp===0&&Bu===0?fu.h(bl.x,bl.y,0,0):fu.Ye(bl),bl.offset(-Z0,-$p),bl.rotate(-sa-Ca.angle)}Lt.free(bl),sh.graduatedBounds!==null&&sh.graduatedBounds.push(fu),qi(Bh,fu.x,fu.y,fu.width,fu.height)}else if(Ca instanceof Co){var Pu=a,X0=E;Pu.temporaryTextBlock===null&&(Pu.temporaryTextBlock=new Co);var jl=Pu.temporaryTextBlock;S1(jl,Ca);var Rh=Ca.alignmentFocus;Rh.Mc()&&(Rh=Pl);for(var Cu=Ca.segmentOrientation,Gp=Ca.segmentOffset,Sd=new wn,em=0,Hp=0,gc=0,nf=0,xd=0,Up=Qs.length,_h=0;_h<Up;_h++){var zc=Qs[_h];em=zc.$l.x,Hp=zc.$l.y,gc=zc.angle,xd=nf=Ca.angle,Cu!==Ks&&(xd=Cu===Pg||Cu===n0?gc+Ca.angle:gc,nf=Un.computeAngle(Cu,xd)),jl.Kb=nf,jl.text=zc.text||"",jl.measure(1/0,1/0,0,0);var zh=jl.measuredBounds,uh=jl.naturalBounds,$h=uh.width,rf=uh.height,rc=gi.alloc();rc.reset(),rc.translate(-zh.x,-zh.y),rc.scale(jl.scale,jl.scale),rc.rotate(xd,$h/2,rf/2),Cu!==Cg&&Cu!==Tg||rc.rotate(90,$h/2,rf/2),Cu!==Eg&&Cu!==Mg||rc.rotate(-90,$h/2,rf/2),Cu===r0&&(45<gc&&135>gc||225<gc&&315>gc)&&rc.rotate(-gc,$h/2,rf/2);var _f=wn.allocAt(0,0,$h,rf),Gh=Lt.alloc();Gh.xi(_f,Rh),rc.Ga(Gh);var zf=-Gh.x,Hy=-Gh.y,ch=Lt.alloc();ch.assign(Gp),isNaN(ch.x)&&(ch.x=$h/2+3),isNaN(ch.y)&&(ch.y=-(rf/2+3)),ch.rotate(gc),em+=ch.x+zf,Hp+=ch.y+Hy;var of=new wn(em,Hp,zh.width,zh.height),tm=new wn(zh.x,zh.y,zh.width,zh.height),Uy=new wn(uh.x,uh.y,uh.width,uh.height);zc.Sz=nf,zc.lineCount=jl.lineCount,zc.lines=[jl.Cb,jl.Ih,jl.df,jl.Le,jl.Qc,jl.Qb,jl.ze],zc.actualBounds=of,zc.measuredBounds=tm,zc.naturalBounds=Uy,_h===0?Sd.assign(of):Sd.ed(of),Lt.free(ch),Lt.free(Gh),wn.free(_f),gi.free(rc)}Pu.graduatedBounds!==null&&Pu.graduatedBounds.push(Sd),qi(X0,Sd.x,Sd.y,Sd.width,Sd.height)}Ia(Ca,!1)}}},dg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var te=a.graduatedBounds,ne=0,se=te[ne];ne++,b!==null&&b.arrange(se.x-x.x,se.y-x.y,se.width,se.height);for(var he=y.length,me=0;me<he;me++){var Se=y[me];se=E[me],Se.visible&&Se!==b&&se.length!==0&&(se=te[ne],ne++,Se.arrange(se.x-x.x,se.y-x.y,se.width,se.height))}a.graduatedBounds=null}}},dg.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,te=E.width,ne=E.height;E=y instanceof Ml,y.save(),y.beginPath(),y.rect(-1,-1,te+1,ne+1),y.clip(),y.Se(),te=a.Pb(),te.gc(y,x),ne=a.Df()*x.scale,0>=ne&&(ne=1);for(var se=te.actualBounds,he=a.O.s,me=a.graduatedMarks,Se=he.length,De=0;De<Se;De++){var We=he[De],qe=me[De],nt=qe.length;if(We.visible&&We!==te&&qe.length!==0){if(We instanceof di){if(!(2>a.graduatedTickUnit*We.interval*te.geometry.flattenedTotalLength/a.graduatedRange*ne&&We.graduatedSkip===null)){var lt=We.measuredBounds,At=We.strokeWidth*We.scale,Tt=We.alignmentFocus;Tt.Mc()&&(Tt=Pl);for(var Bt=0;Bt<nt;Bt++){var _t=qe[Bt].$l,Gt=qe[Bt].angle,Zt=Tt,un=We.Ab;un.reset(),un.translate(_t.x+se.x,_t.y+se.y),un.rotate(Gt+We.angle,0,0),un.translate(-lt.width*Zt.x+Zt.offsetX+At/2,-lt.height*Zt.y+Zt.offsetY+At/2),un.scale(We.scale,We.scale),vu(We,!1),We.wh.set(We.Ab),We.Kk=We.scale,au(We,!1),We.gc(y,x),E&&(a.svg.appendChild(We.svg),We.svg=null),We.Ab.reset()}}}else if(We instanceof Co)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Co),lt=a.temporaryTextBlock,S1(lt,We),At=0;At<nt;At++)Tt=qe[At],Tt.actualBounds&&Tt.measuredBounds&&Tt.naturalBounds&&(lt.ec=Tt.text||"",lt.Kb=Tt.Sz||0,lt.Gc=Tt.lineCount||0,Bt=Tt.lines,Bt!==void 0&&(lt.Cb=Bt[0],lt.Ih=Bt[1],lt.df=Bt[2],lt.Le=Bt[3],lt.Qc=Bt[4],lt.Qb=Bt[5],lt.ze=Bt[6]),Tt.naturalBounds&&(lt.dc=Tt.naturalBounds),Tt.actualBounds&&(Bt=Tt.actualBounds,lt.arrange(Bt.x,Bt.y,Bt.width,Bt.height)),Bt=Tt.actualBounds,lt.arrange(Bt.x,Bt.y,Bt.width,Bt.height),_t=Tt.measuredBounds,Tt=Tt.naturalBounds,Gt=lt.Ab,Gt.reset(),Gt.translate(Bt.x+se.x,Bt.y+se.y),Gt.translate(-_t.x,-_t.y),lt.no(Gt,Tt.x,Tt.y,Tt.width,Tt.height),vu(lt,!1),lt.wh.set(lt.Ab),lt.Kk=lt.scale,au(lt,!1),lt.Ng=We.part,lt.Me=We.panel,lt.gc(y,x),lt.Me=null,lt.Ng=null,E&&(a.svg.appendChild(lt.svg),lt.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Gn(a,y){if(Yt.call(this),this.na=null,a===void 0)this.na=Gn.Position;else if(typeof a=="string"){var x=Ou.I(a);x!==null&&(this.na=x)}else a instanceof Ha?this.na=a:a&&(this.na=Gn.Position,y=a);this.na===null&&$t("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Gn.Grid?1048576:0),this.O=new Tn,this.yb=Cs,this.Tm=oo,this.Uf=ri,this.$g=null,this.$e="",this.jg=new wn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=hr,this.jn=Uo,this.kn=Ii,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}cn(Gn,Yt),Gn.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},Gn.prototype.Af=function(a){Yt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},Gn.prototype.copy=function(){var a=Yt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var te=a.O,ne=te.count;if(te.Gb(ne,E),te=a.part,te!==null){te.Rh=null,E.portId!==null&&te instanceof nr&&(te.Te=!0);var se=a.diagram;se!==null&&se.undoManager.isUndoingRedoing||te.cb(la,"elements",a,null,E,null,ne)}}return a}return null},ot=Gn.prototype,ot.toString=function(){return"Panel("+this.type.name+")#"+zi(this)},ot.Pn=function(a){Yt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},ot.hh=function(a,y){if(this.na===Gn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Gn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Gn.Table)if(a.yc(),a instanceof Ml){var x=a.yd;a.yd=pm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===Gn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];x&&se===b&&(a.clipInsteadOfFill=!0),se.gc(a,y),x&&se===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function gv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Lm(a,y,!0,x,!0),b!==null&&Lm(a,y,!1,b,!0),x!==null&&o1(a,y,!0,x),b!==null&&o1(a,y,!1,b),x!==null&&Lm(a,y,!0,x,!1),b!==null&&Lm(a,y,!1,b,!1)}function o1(a,y,x,b){for(var E=b.length,te=a.actualBounds,ne=a.naturalBounds,se=!0,he=0;he<E;he++){var me=b[he];if(me!==void 0&&me.actual!==0)if(se)se=!1;else{if(x){if(me.position>ne.height)continue}else if(me.position>ne.width)continue;var Se=me.separatorStrokeWidth;isNaN(Se)&&(Se=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var De=me.separatorStroke;if(De===null&&(De=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),Se!==0&&De!==null){oa(a,y,De,!1,!1,ne,te),De=!1;var We=me.separatorDashArray;We===null&&(We=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),We!==null&&(De=!0,y.js(We,0)),y.beginPath(),We=me.position+Se,x?We>ne.height&&(Se-=We-ne.height):We>ne.width&&(Se-=We-ne.width),me=me.position+Se/2,y.lineWidth=Se,Se=a.yb,x?(me+=Se.top,We=ne.width-Se.right,y.moveTo(Se.left,me),y.lineTo(We,me)):(me+=Se.left,We=ne.height-Se.bottom,y.moveTo(me,Se.top),y.lineTo(me,We)),y.stroke(),y.Se(),De&&y.fs()}}}}function Lm(a,y,x,b,E){for(var te=b.length,ne=a.actualBounds,se=a.naturalBounds,he=a1(a,!0),me=a1(a,!1),Se=0;Se<te;Se++){var De=b[Se];if(De!==void 0&&De.background!==null&&De.coversSeparators!==E&&De.actual!==0){var We=x?ne.height:ne.width;if(!(De.position>We)){var qe=De.Wc(),nt=De.separatorStrokeWidth;isNaN(nt)&&(nt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var lt=De.separatorStroke;lt===null&&(lt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(lt===null||De.index===(x?he:me))&&(nt=0),qe-=nt,nt=De.position+nt,qe+=De.actual,nt+qe>We&&(qe=We-nt),0>=qe||(We=a.yb,oa(a,y,De.background,!0,!1,se,ne),x?y.fillRect(We.left,nt+We.top,ne.width-(We.left+We.right),qe):y.fillRect(nt+We.left,We.top,qe,ne.height-(We.top+We.bottom)))}}}}function a1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function mv(a){return a==="LineV"||a==="BarV"}ot.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},ot.kk=function(a,y,x){if(!Yt.prototype.kk.call(this,a,y,x))return!1;if(this.type===Gn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gv(this,a),a.yd=null;else if(this.na===Gn.Grid||this.na===Gn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},ot.nk=function(){return!0},ot.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,te=0,ne=0;ne<y.length;ne++)if(y[ne].Ed()){var se=y[ne].actualBounds;E=ne===0?se.x:Math.min(se.x,E),te=ne===0?se.y:Math.min(se.y,te)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-te)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Yt.prototype.$o.call(this,a,y,x,b)},ot.Sj=function(a,y,x,b,E){var te=this.se(),ne=this.transform,se=1/(ne.m11*ne.m22-ne.m12*ne.m21),he=ne.m22*se,me=-ne.m12*se,Se=-ne.m21*se,De=ne.m11*se,We=se*(ne.m21*ne.dy-ne.m22*ne.dx),qe=se*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,Qt.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,x,b,E);if(this.background!==null)return te=a*he+y*Se+We,se=a*me+y*De+qe,a=x*he+b*Se+We,he=x*me+b*De+qe,E.h(0,0),x=this.naturalBounds,te=Qt.Ff(0,0,x.width,x.height,te,se,a,he,E),E.transform(ne),te;te||(he=1,Se=me=0,De=1,qe=We=0),se=a*he+y*Se+We,a=a*me+y*De+qe,he=x*he+b*Se+We,x=x*me+b*De+qe,E.h(he,x),b=(he-se)*(he-se)+(x-a)*(x-a),me=!1,De=this.O.s,qe=De.length,Se=Lt.alloc(),We=null,y=1/0;var nt=null,lt=this.isClipping&&this.na===Gn.Spot;lt&&(nt=Lt.alloc(),We=this.Pb(),(me=We.Sj(se,a,he,x,nt))&&(y=(se-nt.x)*(se-nt.x)+(a-nt.y)*(a-nt.y)));for(var At=0;At<qe;At++){var Tt=De[At];Tt.visible&&Tt!==We&&Tt.Sj(se,a,he,x,Se)&&(me=!0,Tt=(se-Se.x)*(se-Se.x)+(a-Se.y)*(a-Se.y),Tt<b&&(b=Tt,E.set(Se)))}return lt&&(y>b&&E.set(nt),Lt.free(nt)),Lt.free(Se),te&&E.transform(ne),me},ot.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Yt.prototype.Gj.call(this)},ot.v=function(a){if(!Vl(this)){Yt.prototype.v.call(this,a),a=null,(this.na===Gn.Auto||this.na===Gn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var te=sl(E,!1);(E instanceof Ws||E instanceof Gn||E instanceof Co||te!==Fn)&&E.v(!0)}}}},ot.Uj=function(){if(!Vl(this)){Ia(this,!0),Mc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},ot.Uk=function(){if(!(this.l&2048)){vu(this,!0),au(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},ot.Wu=function(){au(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},ot.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var te=this.desiredSize,ne=this.minSize;x===void 0&&(x=ne.width,b=ne.height),x=Math.max(x,ne.width),b=Math.max(b,ne.height);var se=this.maxSize;isNaN(te.width)||(a=Math.min(te.width,se.width)),isNaN(te.height)||(y=Math.min(te.height,se.height)),a=Math.max(x,a),y=Math.max(b,y);var he=this.yb;a=Math.max(a-he.left-he.right,0),y=Math.max(y-he.top-he.bottom,0);var me=this.O.s;me.length!==0&&this.na.measure(this,a,y,me,E,x,b),a=E.width+he.left+he.right,he=E.height+he.top+he.bottom,isFinite(te.width)&&(a=te.width),isFinite(te.height)&&(he=te.height),a=Math.min(se.width,a),he=Math.min(se.height,he),a=Math.max(ne.width,a),he=Math.max(ne.height,he),a=Math.max(x,a),he=Math.max(b,he),ma(E,a,he),ma(this.naturalBounds,a,he),this.Ge(0,0,a,he)},ot.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function nh(a){return a.part!==null?a.part.locationObject:null}ot.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=sl(this,!0);var te=this.measuredBounds;y=te.width,te=te.height;var ne=this.Kg,se=ne.left+ne.right;switch(ne=ne.top+ne.bottom,y===x&&te===b&&(a=Fn),a){case Fn:(y>x||te>b)&&(this.v(),this.measure(y>x?x:y,te>b?b:te,0,0));break;case $n:this.v(!0),this.measure(x+se,b+ne,0,0);break;case wr:this.v(!0),this.measure(x+se,te+ne,0,0);break;case Dr:this.v(!0),this.measure(y+se,b+ne,0,0)}}this.na.arrange(this,E,this.jg)}},ot.gh=function(a){var y=this.naturalBounds,x=nh(this);if(No(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Lt.allocAt(0,0);b--;){var te=y[b];if((te.visible||te===x)&&(mi(E.set(a),te.transform),te.ca(E)))return Lt.free(E),!0}return Lt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},ot.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},ot.qm=function(a,y){if(y(this,a),a instanceof Gn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Ud(a,y){s1(a,a,y)}function s1(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var te=y[E];te instanceof Gn&&s1(a,te,x)}}function yx(a,y){l1(a,a,y)}function l1(a,y,x){if(x(y),y instanceof Gn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)l1(a,y[E],x)}}ot.Nl=function(a){return u1(this,this,a)};function u1(a,y,x){if(x(y))return y;if(y instanceof Gn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var te=u1(a,y[E],x);if(te!==null)return te}}return null}ot.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=fg(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Gn){var te=E.fb(a);if(te!==null)return te}if(E.name===a)return E}return null};function c1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Gn?x=Math.max(x,c1(E)):E instanceof di&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}ot.se=function(){return!(this.type===Gn.TableRow||this.type===Gn.TableColumn)};function Ch(a){return a.type===Gn.TableRow||a.type===Gn.TableColumn}ot.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Hs(this)))return null;var b=this.naturalBounds,E=1/this.Df(),te=this.se(),ne=te?a:mi(Lt.allocAt(a.x,a.y),this.transform),se=this.diagram,he=10,me=5;if(se!==null&&(he=se.Ql("extraTouchArea"),me=he/2),No(-(me*E),-(me*E),b.width+he*E,b.height+he*E,ne.x,ne.y)){if(!this.isAtomic){E=this.O.s;var Se=E.length;if(se=Lt.alloc(),me=(he=this.isClipping&&this.na===Gn.Spot)?this.Pb():null,he&&(me.se()?mi(se.set(a),me.transform):se.set(a),!me.ca(se)))return Lt.free(se),te||Lt.free(ne),null;for(var De=nh(this);Se--;){var We=E[Se];if((We.visible||We===De)&&(We.se()?mi(se.set(a),We.transform):se.set(a),!he||We!==me)){var qe=null;if(We instanceof Gn?qe=We.ic(se,y,x):We.pickable===!0&&We.ca(se)&&(qe=We),qe!==null&&(y!==null&&(qe=y(qe)),qe!==null&&(x===null||x(qe))))return Lt.free(se),te||Lt.free(ne),qe}}Lt.free(se)}return this.background===null&&this.areaBackground===null?(te||Lt.free(ne),null):(a=No(0,0,b.width,b.height,ne.x,ne.y)?this:null,te||Lt.free(ne),a)}return te||Lt.free(ne),null},ot.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,te=this.se(),ne=te?a:mi(Lt.allocAt(a.x,a.y),this.transform);if(E=No(0,0,E.width,E.height,ne.x,ne.y),Ch(this)||E){if(!this.isAtomic){for(var se=this.O.s,he=se.length,me=Lt.alloc(),Se=nh(this);he--;){var De=se[he];if(De.visible||De===Se){De.se()?mi(me.set(a),De.transform):me.set(a);var We=De;De=De instanceof Gn?De:null,(De!==null?De.ji(me,y,x,b):We.ca(me))&&We.pickable!==!1&&(y!==null&&(We=y(We)),We===null||x!==null&&!x(We)||b.add(We))}}Lt.free(me)}return te||Lt.free(ne),E&&(this.background!==null||this.areaBackground!==null)}return te||Lt.free(ne),!1},ot.Cf=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ne=te;if(te===void 0&&(ne=gi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return vv(this,y,x,E),te===void 0&&gi.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var se=nh(this),he=this.O.s,me=he.length;me--;){var Se=he[me];if(Se.visible||Se===se){var De=Se.actualBounds,We=this.naturalBounds;De.x>We.width||De.y>We.height||0>De.x+De.width||0>De.y+De.height||(De=Se,Se=Se instanceof Gn?Se:null,We=gi.alloc(),We.set(ne),(Se!==null?Se.Cf(a,y,x,b,E,We):Ya(De,a,b,We))&&(y!==null&&(De=y(De)),De===null||x!==null&&!x(De)||E.add(De)),gi.free(We))}}return te===void 0&&gi.free(ne),b}return te===void 0&&gi.free(ne),!1};function vv(a,y,x,b){for(var E=a.O.s,te=E.length;te--;){var ne=E[te];if(ne.visible){var se=ne.actualBounds,he=a.naturalBounds;se.x>he.width||se.y>he.height||0>se.x+se.width||0>se.y+se.height||(ne instanceof Gn&&vv(ne,y,x,b),y!==null&&(ne=y(ne)),ne===null||x!==null&&!x(ne)||b.add(ne))}}}ot.og=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var ne=this.naturalBounds,se=this.se(),he=se?a:mi(Lt.allocAt(a.x,a.y),this.transform),me=se?y:mi(Lt.allocAt(y.x,y.y),this.transform),Se=he.Bf(me),De=0<he.x&&he.x<ne.width&&0<he.y&&he.y<ne.height||Vi(he.x,he.y,0,0,0,ne.height)<=Se||Vi(he.x,he.y,0,ne.height,ne.width,ne.height)<=Se||Vi(he.x,he.y,ne.width,ne.height,ne.width,0)<=Se||Vi(he.x,he.y,ne.width,0,0,0)<=Se;if(ne=he.zd(0,0)<=Se&&he.zd(0,ne.height)<=Se&&he.zd(ne.width,0)<=Se&&he.zd(ne.width,ne.height)<=Se,se||(Lt.free(he),Lt.free(me)),De){if(!this.isAtomic){he=Lt.alloc(),me=Lt.alloc(),Se=nh(this);for(var We=this.O.s,qe=We.length;qe--;){var nt=We[qe];if(nt.visible||nt===Se){var lt=nt.actualBounds,At=this.naturalBounds;(!se||!(lt.x>At.width||lt.y>At.height||0>lt.x+lt.width||0>lt.y+lt.height))&&(nt.se()?(lt=nt.transform,mi(he.set(a),lt),mi(me.set(y),lt)):(he.set(a),me.set(y)),lt=nt,nt=nt instanceof Gn?nt:null,(nt!==null?nt.og(he,me,x,b,E,te):lt.tx(he,me,E))&&(x!==null&&(lt=x(lt)),lt===null||b!==null&&!b(lt)||te.add(lt)))}}Lt.free(he),Lt.free(me)}return E?De:ne}return!1};function yv(a){var y=null;return a instanceof di&&(y=a.spot1,y===oo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Wa),y}function Sv(a){var y=null;return a instanceof di&&(y=a.spot2,y===oo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=As),y}ot.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},ot.M=function(a){return this.O.M(a)},ot.Gb=function(a,y){y instanceof Mr&&$t("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&$t("Cannot make a Panel contain itself: "+this.toString()),$t("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&$t("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Gn.Grid||y instanceof di||$t("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Gn.Graduated||y instanceof di||y instanceof Co||$t("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new cr),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var te=-1,ne=this.O.s,se=ne.length,he=0;he<se;he++)if(ne[he]===y){te=he;break}if(te!==-1){if(te===a||te+1>=E.count&&a>=E.count)return;E.mb(te),b=te}else $t("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Vl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Gn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Om(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof nr&&(x.Te=!0),x.Te&&x instanceof nr&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Oa,"elements",this,y,null,b,null),x.cb(la,"elements",this,null,y,null,a)))};function xv(a,y){a.l=y?a.l|16777216:a.l&-16777217}ot.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},ot.mb=function(a){0<=a&&this.pc(a,!0)},ot.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),Ia(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var te=this.part;te!==null&&(te.Rh=null,te.ag=NaN,te.Wb(),te instanceof nr&&(b instanceof Gn?b.qm(b,function(ne,se){Hv(te,se,y)}):Hv(te,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||te.cb(Oa,"elements",this,b,null,a,null))},ot.Fb=function(a){0>a&&Wn(a,">= 0",Gn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Da;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(la,"rowdefs",this,null,x,null,a)}return y[a]},ot.oA=function(a){if(0>a&&Wn(a,">= 0",Gn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Oa,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Da?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ot.Eb=function(a){0>a&&Wn(a,">= 0",Gn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Da;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(la,"coldefs",this,null,x,null,a)}return y[a]},ot.jA=function(a){if(0>a&&Wn(a,">= 0",Gn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Oa,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Da?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ot.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Nm(y,a),this},ot.Hy=function(a,y){return(a=this.Fb(a))&&Nm(a,new Da(y)),this},ot.By=function(a,y){return(a=this.Eb(a))&&Nm(a,new Da(y)),this},ot.nz=function(a){if(0>a||this.type!==Gn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var te=x[E];if(te!==void 0&&(y+=te.total,a<y))break}return E},ot.fz=function(a){if(0>a||this.type!==Gn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var te=x[E];if(te!==void 0&&(y+=te.total,a<y))break}return E},ot.Fz=function(a,y){if(y===void 0&&(y=new Lt(NaN,NaN)),this.type!==Gn.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},ot.Gz=function(a){if(this.type!==Gn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function f1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Su(a){var y=a.allBindings;if(y===null)a.data!==null&&$t("Template cannot have .data be non-null: "+a),a.allBindings=y=new Tn;else if(y._isFrozen)return;var x=new Tn;xv(a,!1),a.qm(a,function(me,Se){Se.th();var De=Se.localBindings;if(De!==null)for(xf(Se,!1),De=De.iterator;De.next();){var We=De.value;We.mode===Dg&&xf(Se,!0);var qe=We.sourceName;qe!==null&&(qe==="/"&&xv(me,!0),qe=MS(We,me,Se),qe!==null&&(x.add(qe),qe.srcBindings===null&&(qe.srcBindings=new Tn),qe.srcBindings.add(We))),y.add(We)}if(Se instanceof Gn&&Se.type===Gn.Table){if(0<Se.rowCount){for(me=Se.rowDefs,De=me.length,We=0;We<De;We++)if(qe=me[We],qe!==void 0&&qe.be!==null)for(var nt=qe.be.iterator;nt.next();){var lt=nt.value;lt.xd=qe,lt.to=2,lt.wl=qe.index,y.add(lt)}}if(0<Se.columnCount){for(Se=Se.colDefs,me=Se.length,De=0;De<me;De++)if(We=Se[De],We!==void 0&&We.be!==null)for(qe=We.be.iterator;qe.next();)nt=qe.value,nt.xd=We,nt.to=1,nt.wl=We.index,y.add(nt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){xf(E,!0);for(var te=E.srcBindings.iterator;te.next();){var ne=te.value;E.localBindings===null&&(E.localBindings=new Tn),E.localBindings.add(ne)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,te=E.xd,te!==null){E.xd=null;var se=E.targetProperty,he=se.indexOf(".");0<he&&te instanceof Gn&&(ne=se.substring(0,he),se=se.substr(he+1),he=te.fb(ne),he!==null?(te=he,E.targetProperty=se):or('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+E.toString())),te instanceof Da?(ne=zi(te.panel),E.Ai=ne===void 0?-1:ne,te.panel.bindingId=E.Ai):te instanceof Yt?(ne=zi(te),E.Ai=ne===void 0?-1:ne,te.bindingId=E.Ai):$t("Unknown type of binding target: "+te)}y.freeze(),a instanceof Mr&&a.Zc()&&a.Va()}ot.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return yx(y,function(x){x instanceof Gn&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&Su(y),y},ot.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var te=this,ne=x.Ai;if(ne!==-1){if(te=this.ks(ne),te===null)continue}else x.xd!==null&&(te=x.xd);if(E==="/"?b=te.part:E==="."?b=te:E===".."&&(b=te.panel),E=x.to,E!==0){if(!(te instanceof Gn))continue;E===1?te=te.Eb(x.wl):E===2&&(te=te.Fb(x.wl))}te!==void 0&&x.Mv(te,b)}}},ot.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Sx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,te=null;E<x&&(te=a[E],!(te instanceof Gn&&te.data!==null));)E++,te=a[E];if(x-E!==b)return!0;if(te===null)return 0<b;for(var ne=0;E<x&&ne<b;){if(te=a[E],!(te instanceof Gn)||te.data!==y[ne])return!0;E++,ne++}return!1}function fg(a){if(a.type===Gn.Spot||a.type===Gn.Auto)return Math.min(a.O.length,1);if(a.type===Gn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof di&&b.isPanelMain))break}return x}return a.type===Gn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Gn&&Ch(a))?1:0}ot.mv=function(){for(var a=fg(this);this.O.length>a;)this.pc(this.O.length-1,!1);p1(this,this.itemArray)};function p1(a,y){var x=fg(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)km(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var te=y[E],ne=b<a.O.length?a.O.M(b):null;if(ne instanceof Gn){if(ne.data!==te){var se=bv(a,ne.data),he=bv(a,te),me=he!==se;me||(se=Pv(a,se),me=Pv(a,he)!==se),me?(a.pc(b,!1),km(a,te,E,!1)):ne.data=te}}else km(a,te,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,wv(a,x,0),Vl(a)||a.v(),a.graduatedIntervals=null,a.If()||Om(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof nr&&(y.Te=!0),y.Te&&y instanceof nr&&(y.wc=null))}}function km(a,y,x,b){if(!(y==null||0>x)){var E=bv(a,y);if(E=Pv(a,E),E!==null){if(Su(E),E=E.copy(),E.l&16777216){var te=a.ih();te!==null&&xv(te,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new cr),a.ge.add(y,E)),te=x+fg(a),a.Gb(te,E),b&&(E.ub=y,wv(a,te,x),E.ub=null),E.data=y}}}function wv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Gn){var E=y,te=x;b.type===Gn.TableRow?b.row=E:b.type===Gn.TableColumn&&(b.column=E),b.itemIndex=te}y++,x++}}function bv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=ga(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;$t("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Pv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(g1||(g1=!0,or('No item template Panel found for category "'+y+'" on '+a),or(" Using default item template."),a=new Gn,y=new Co,y.bind(new ba("text","",zn)),a.add(y),m1=a),b=m1)),b}function Om(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Gn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var te=y[E];x&&te instanceof Gn&&!te.isEnabled||Om(a,te,x)}}}function cc(a,y){y.name=a,Ou.add(a,y)}Ot.Object.defineProperties(Gn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Gn.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&Wn(a,">= 0",Gn,"padding"),a=new Tr(a)):(0>a.left&&Wn(a.left,">= 0",Gn,"padding:value.left"),0>a.right&&Wn(a.right,">= 0",Gn,"padding:value.right"),0>a.top&&Wn(a.top,">= 0",Gn,"padding:value.top"),0>a.bottom&&Wn(a.bottom,">= 0",Gn,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Cs},set:function(a){typeof a=="number"&&(a=new Tr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new uu),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof so)&&(a instanceof so&&a.freeze(),this.T===null&&(this.T=new uu),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new uu),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||$t("defaultRowSeparatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new uu),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof so)&&(a instanceof so&&a.freeze(),this.T===null&&(this.T=new uu),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new uu),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||$t("defaultColumnSeparatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new uu),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new uu),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||$t("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&sc(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||$t("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&sc(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new rh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),ys(this)&&(a=this.part,a!==null&&Oo(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new rh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),ys(this)&&(a=this.part,a!==null&&Oo(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new rh),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new rh),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new rh,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new rh,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new rh,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new rh,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new uu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new uu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:jm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new uu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:jm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new uu),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&$t("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new uu),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&$t("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new uu),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Mr&&!(this instanceof Ki);Su(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Un?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Mr&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new wf),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Sx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&uy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ly(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||p1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new cr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Mr||a.isPanelMain)&&$t("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););vi(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(vi(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof ei&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Om(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Ot.Object.defineProperties(Gn,{Position:{get:function(){return Ou.I("Position")}},Horizontal:{get:function(){return Ou.I("Horizontal")}},Vertical:{get:function(){return Ou.I("Vertical")}},Spot:{get:function(){return Ou.I("Spot")}},Auto:{get:function(){return Ou.I("Auto")}},Table:{get:function(){return Ou.I("Table")}},Viewbox:{get:function(){return Ou.I("Viewbox")}},TableRow:{get:function(){return Ou.I("TableRow")}},TableColumn:{get:function(){return Ou.I("TableColumn")}},Link:{get:function(){return Ou.I("Link")}},Grid:{get:function(){return Ou.I("Grid")}},Graduated:{get:function(){return Ou.I("Graduated")}}}),Gn.prototype.rebuildItemElements=Gn.prototype.mv,Gn.prototype.findItemPanelForData=Gn.prototype.sx,Gn.prototype.updateTargetBindings=Gn.prototype.La,Gn.prototype.copyTemplate=Gn.prototype.Uy,Gn.prototype.graduatedValueForPoint=Gn.prototype.Gz,Gn.prototype.graduatedPointForValue=Gn.prototype.Fz,Gn.prototype.findColumnForLocalX=Gn.prototype.fz,Gn.prototype.findRowForLocalY=Gn.prototype.nz,Gn.prototype.addColumnDefinition=Gn.prototype.By,Gn.prototype.addRowDefinition=Gn.prototype.Hy,Gn.prototype.addRowColumnDefinition=Gn.prototype.Gy,Gn.prototype.removeColumnDefinition=Gn.prototype.jA,Gn.prototype.getColumnDefinition=Gn.prototype.Eb,Gn.prototype.removeRowDefinition=Gn.prototype.oA,Gn.prototype.getRowDefinition=Gn.prototype.Fb,Gn.prototype.removeAt=Gn.prototype.mb,Gn.prototype.remove=Gn.prototype.remove,Gn.prototype.insertAt=Gn.prototype.Gb,Gn.prototype.elt=Gn.prototype.M,Gn.prototype.add=Gn.prototype.add,Gn.prototype.findObject=Gn.prototype.fb,Gn.prototype.findInVisualTree=Gn.prototype.Nl,Gn.prototype.walkVisualTreeFrom=Gn.prototype.qm,Gn.prototype.findMainElement=Gn.prototype.Pb;var g1=!1,m1=null,Ou=new cr;Gn.className="Panel",Gn.definePanelLayout=cc,cc("Position",new vm),cc("Vertical",new Sm),cc("Auto",new wm),cc("Link",new Mm);function rh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}rh.prototype.copy=function(){var a=new rh;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},rh.className="GradPanelSettings";function uu(){this.Pc=[],this.Oc=[],this.j=this.ob=jm,this.hb=this.Hb=0,this.Qp=Cs,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}uu.prototype.copy=function(a){for(var y=new uu,x=this.Pc,b=x.length,E=y.Pc,te=0;te<b;te++)if(x[te]!==void 0){var ne=x[te].copy();ne.wi(a),E[te]=ne}for(x=this.Oc,b=x.length,E=y.Oc,te=0;te<b;te++)x[te]!==void 0&&(ne=x[te].copy(),ne.wi(a),E[te]=ne);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},uu.className="TablePanelSettings";function Da(a){pi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=oo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=ri,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Da.prototype.copy=function(){var a=new Da;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=rn(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Nm(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=rn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}ot=Da.prototype,ot.qb=function(a){a.classType===Da&&(this.sizing=a)},ot.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+zi(this)},ot.wi=function(a){this.Me=a},ot.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},ot.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Gn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,te=0;te<E;te++){var ne=b?y.rowDefs[te]:y.colDefs[te];if(ne!==void 0&&ne.oa!==0){x=ne.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},ot.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Go,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Am(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}ot.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ba(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&f1(y)&&$t("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Tn),this.be.add(E),this},Ot.Object.defineProperties(Da.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Wn(a,">= 0",Da,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Wn(a,">= 0",Da,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Wn(a,">= 0",Da,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Wn(a,">= 0",Da,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Tr(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Pf(a,"RowColumnDefinition.separatorStroke"),a instanceof so&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||$t("separatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Pf(a,"RowColumnDefinition.background"),a instanceof so&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Da.prototype.computeEffectiveSpacing=Da.prototype.Wc,Da.prototype.computeEffectiveSpacingTop=Da.prototype.Io;var Cv=new vn(Da,"Default",0),pg=new vn(Da,"None",1),jm=new vn(Da,"ProportionalExtra",2);Da.className="RowColumnDefinition",Da.Default=Cv,Da.None=pg,Da.ProportionalExtra=jm;function di(a,y){Yt.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}cn(di,Yt),di.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=rn(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Wd(a){a.Na===null?a.Na=new Mv:a.Na.nc&&(a.Na=a.Na.copy())}ot=di.prototype,ot.th=function(){Yt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},ot.qb=function(a){a===Fn||a===hr||a===Li||a===ri?this.geometryStretch=a:Yt.prototype.qb.call(this,a)},ot.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+zi(this)};function fp(a,y,x,b){var E=x.length;if(!(4>E)){var te=b.measuredBounds,ne=Math.max(1,te.width);te=te.height;for(var se=x[0],he=x[1],me,Se,De,We,qe,nt,lt=0,At=pn(),Tt=2;Tt<E;Tt+=2)me=x[Tt],Se=x[Tt+1],De=me-se,se=Se-he,De===0&&(De=.001),We=se/De,qe=Math.atan2(se,De),nt=Math.sqrt(De*De+se*se),At.push([De,qe,We,nt]),lt+=nt,se=me,he=Se;se=x[0],he=x[1],De=b.measuredBounds.width,b instanceof di&&(De-=b.strokeWidth),1>De&&(De=1),E=x=De,me=ne/2,Se=me!==0,Tt=0,nt=At[Tt],De=nt[0],qe=nt[1],We=nt[2],nt=nt[3];for(var Bt=0;.1<=lt;){if(Bt===0&&(Se?(E=x,E-=me,lt-=me,Se=!1):E=x,E===0&&(E=1)),E>lt){kn(At);return}E>nt?(Bt=E-nt,E=nt):Bt=0;var _t=Math.sqrt(E*E/(1+We*We));if(0>De&&(_t=-_t),se+=_t,he+=We*_t,a.translate(se,he),a.rotate(qe),a.translate(-(ne/2),-(te/2)),Bt===0&&b.hh(a,y),a.translate(ne/2,te/2),a.rotate(-qe),a.translate(-se,-he),lt-=E,nt-=E,Bt!==0){if(Tt++,Tt===At.length){kn(At);return}nt=At[Tt],De=nt[0],qe=nt[1],We=nt[2],nt=nt[3],E=Bt}}kn(At)}}ot.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var te=this.actualBounds,ne=this.naturalBounds;b!==null&&oa(this,a,b,!0,!1,ne,te);var se=this.part,he=this.ig;if(x===null||he!==0||se===null||!this.isPanelMain&&se.Pb()!==this||(he=se.type===Gn.Link&&se instanceof Ki&&se.category==="Selection"&&se.adornedObject instanceof di&&se.adornedPart.Pb()===se.adornedObject?se.adornedObject.strokeWidth:0),he===0&&(x=null),x!==null&&he!==0&&(oa(this,a,x,!1,!1,ne,te),a.lineWidth=he,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),te=!1,se&&y.Gf("drawShadows")&&(te=se.isShadowed),a.Il===!1&&(te=!1),se=!0,x===null||b!==null&&b!=="transparent"||(se=!1),ne=!1,he=this.strokeDashArray,he!==null&&(ne=!0,a.js(he,this.strokeDashOffset)),E.type===Vn.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===Vn.u){var me=E.startX;he=E.startY;var Se=E.endX,De=E.endY;E=Math.min(me,Se);var We=Math.min(he,De);me=Math.abs(Se-me),he=Math.abs(De-he),a.beginPath(),a.rect(E,We,me,he),b!==null&&a.ng(b),x!==null&&(se&&te&&Lc(a),a.jk(),se&&te&&qc(a)),a.Se()}else if(E.type===Vn.F)me=E.startX,he=E.startY,Se=E.endX,De=E.endY,E=Math.abs(Se-me)/2,We=Math.abs(De-he)/2,me=Math.min(me,Se)+E,he=Math.min(he,De)+We,a.beginPath(),a.moveTo(me,he-We),a.bezierCurveTo(me+Qt.wg*E,he-We,me+E,he-Qt.wg*We,me+E,he),a.bezierCurveTo(me+E,he+Qt.wg*We,me+Qt.wg*E,he+We,me,he+We),a.bezierCurveTo(me-Qt.wg*E,he+We,me-E,he+Qt.wg*We,me-E,he),a.bezierCurveTo(me-E,he-Qt.wg*We,me-Qt.wg*E,he-We,me,he-We),a.closePath(),b!==null&&a.ng(b),x!==null&&(se&&te&&Lc(a),a.jk(),se&&te&&qc(a)),a.Se();else if(E.type===Vn.o)for(E=E.figures,he=E.length,We=0;We<he;We++){me=E.s[We],a.beginPath(),a.moveTo(me.startX,me.startY),Se=me.segments.s,De=Se.length;for(var qe=null,nt=0;nt<De;nt++){var lt=Se[nt];switch(lt.type){case ya:a.moveTo(lt.endX,lt.endY);break;case Po:a.lineTo(lt.endX,lt.endY);break;case ss:a.bezierCurveTo(lt.point1X,lt.point1Y,lt.point2X,lt.point2Y,lt.endX,lt.endY);break;case Cl:a.quadraticCurveTo(lt.point1X,lt.point1Y,lt.endX,lt.endY);break;case da:if(lt.radiusX===lt.radiusY){var At=Math.PI/180;a.arc(lt.point1X,lt.point1Y,lt.radiusX,lt.startAngle*At,(lt.startAngle+lt.sweepAngle)*At,0>lt.sweepAngle,qe!==null?qe.endX:me.startX,qe!==null?qe.endY:me.startY)}else if(qe=rl(lt,me),At=qe.length,At===0)a.lineTo(lt.centerX,lt.centerY);else for(var Tt=0;Tt<At;Tt++){var Bt=qe[Tt];Tt===0&&a.lineTo(Bt[0],Bt[1]),a.bezierCurveTo(Bt[2],Bt[3],Bt[4],Bt[5],Bt[6],Bt[7])}break;case _l:if(Tt=At=0,qe!==null&&qe.type===da){if(qe=rl(qe,me),Bt=qe.length,Bt===0){a.lineTo(lt.endX,lt.endY);break}qe=qe[Bt-1]||null,qe!==null&&(At=qe[6],Tt=qe[7])}else At=qe!==null?qe.endX:me.startX,Tt=qe!==null?qe.endY:me.startY;if(qe=zs(lt,me,At,Tt),At=qe.length,At===0){a.lineTo(lt.endX,lt.endY);break}for(Tt=0;Tt<At;Tt++)Bt=qe[Tt],a.bezierCurveTo(Bt[2],Bt[3],Bt[4],Bt[5],Bt[6],Bt[7]);break;default:$t("Segment not of valid type: "+lt.type)}lt.isClosed&&a.closePath(),qe=lt}Se=me.isFilled,te?me.isShadowed?(Se===!0&&b!=="transparent"&&b!==null&&a.ng(b,me.isEvenOdd),x!==null&&(Se&&se&&Lc(a),a.jk(),Se&&se&&qc(a))):(Lc(a),Se&&b!=="transparent"&&b!==null&&a.ng(b,me.isEvenOdd),x!==null&&a.jk(),qc(a)):(Se&&b!==null&&a.ng(b,me.isEvenOdd),x!==null&&a.jk()),a.Se(We)}if(ne&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),te=this.geometry,a.save(),a.beginPath(),b=pn(),te.type===Vn.j)b.push(te.startX),b.push(te.startY),b.push(te.endX),b.push(te.endY),fp(a,y,b,x);else if(te.type===Vn.o)for(te=te.figures.iterator;te.next();){for(se=te.value,b.length=0,b.push(se.startX),b.push(se.startY),ne=se.startX,E=se.startY,he=ne,We=E,me=se.segments.s,Se=me.length,De=0;De<Se;De++){switch(nt=me[De],nt.type){case ya:fp(a,y,b,x),b.length=0,b.push(nt.endX),b.push(nt.endY),ne=nt.endX,E=nt.endY,he=ne,We=E;break;case Po:b.push(nt.endX),b.push(nt.endY),ne=nt.endX,E=nt.endY;break;case ss:Qt.Qe(ne,E,nt.point1X,nt.point1Y,nt.point2X,nt.point2Y,nt.endX,nt.endY,.5,b),ne=nt.endX,E=nt.endY;break;case Cl:Qt.ep(ne,E,nt.point1X,nt.point1Y,nt.endX,nt.endY,.5,b),ne=nt.endX,E=nt.endY;break;case da:if(lt=rl(nt,se),qe=lt.length,qe===0){b.push(nt.centerX),b.push(nt.centerY),ne=nt.centerX,E=nt.centerY;break}for(At=0;At<qe;At++)Tt=lt[At],Qt.Qe(ne,E,Tt[2],Tt[3],Tt[4],Tt[5],Tt[6],Tt[7],.5,b),ne=Tt[6],E=Tt[7];break;case _l:if(lt=zs(nt,se,ne,E),qe=lt.length,qe===0){b.push(nt.endX),b.push(nt.endY),ne=nt.endX,E=nt.endY;break}for(At=0;At<qe;At++)Tt=lt[At],Qt.Qe(ne,E,Tt[2],Tt[3],Tt[4],Tt[5],Tt[6],Tt[7],.5,b),ne=Tt[6],E=Tt[7];break;default:$t("Segment not of valid type: "+nt.type)}nt.isClosed&&(b.push(he),b.push(We),fp(a,y,b,x))}fp(a,y,b,x)}else if(te.type===Vn.u)b.push(te.startX),b.push(te.startY),b.push(te.endX),b.push(te.startY),b.push(te.endX),b.push(te.endY),b.push(te.startX),b.push(te.endY),b.push(te.startX),b.push(te.startY),fp(a,y,b,x);else if(te.type===Vn.F){if(E=new $a,E.startX=te.endX,E.startY=(te.startY+te.endY)/2,ne=new Ui(da),ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(te.startX+te.endX)/2,ne.centerY=(te.startY+te.endY)/2,ne.radiusX=Math.abs(te.startX-te.endX)/2,ne.radiusY=Math.abs(te.startY-te.endY)/2,E.add(ne),te=rl(ne,E),se=te.length,se===0)b.push(ne.centerX),b.push(ne.centerY);else for(ne=E.startX,E=E.startY,he=0;he<se;he++)We=te[he],Qt.Qe(ne,E,We[2],We[3],We[4],We[5],We[6],We[7],.5,b),ne=We[6],E=We[7];fp(a,y,b,x)}kn(b),a.restore(),a.Vc(!1)}}}},ot.kk=function(a,y,x){return!Yt.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},ot.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Yt.prototype.nk.call(this,a)},ot.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},ot.ga=function(a,y){if(y===void 0&&(y=new Lt),a instanceof yr){a.Mc()&&$t("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},ot.mi=function(a){a===void 0&&(a=new wn);var y=this.naturalBounds,x=this.oe;y=wn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Lt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),qi(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),qi(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),qi(a,b.x,b.y,0,0),wn.free(y),Lt.free(b),a},ot.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==Vn.j||y||(E+=2);var te=wn.alloc();if(te.assign(b),te.Bc(E+2,E+2),!te.ca(a))return wn.free(te),!1;if(b=E+1e-4,x.type===Vn.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(wn.free(te),Qt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Vn.u){y=x.startX;var ne=x.startY,se=x.endX;if(x=x.endY,te.x=Math.min(y,se),te.y=Math.min(ne,x),te.width=Math.abs(se-y),te.height=Math.abs(x-ne),this.fill===null){if(te.Bc(-b,-b),te.ca(a))return wn.free(te),!1;te.Bc(b,b)}return this.stroke!==null&&te.Bc(E,E),a=te.ca(a),wn.free(te),a}if(x.type===Vn.F){ne=x.startX,E=x.startY,se=x.endX;var he=x.endY;if(x=Math.min(ne,se),y=Math.min(E,he),ne=Math.abs(se-ne)/2,E=Math.abs(he-E)/2,x=a.x-(x+ne),y=a.y-(y+E),this.fill===null){if(ne-=b,E-=b,0>=ne||0>=E||1>=x*x/(ne*ne)+y*y/(E*E))return wn.free(te),!1;ne+=b,E+=b}return this.stroke!==null&&(ne+=b,E+=b),wn.free(te),0>=ne||0>=E?!1:1>=x*x/(ne*ne)+y*y/(E*E)}if(x.type===Vn.o)return wn.free(te),this.fill===null?ic(x,a.x,a.y,E):$u(x,a,E,1<this.strokeWidth,y);$t("Unknown Geometry type: "+x.type)},ot.Wl=function(a,y,x,b){var E=this.desiredSize,te=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ne=this.geometry.bounds;else{var se=this.figure,he=Tv[se];if(he===void 0){var me=Qt.Ze[se];typeof me=="string"&&(me=Qt.Ze[me]),typeof me=="function"?(he=me(null,100,100),Tv[se]=he):$t("Unsupported Figure: "+se)}ne=he.bounds}se=ne.width,he=ne.height,me=ne.width;var Se=ne.height;switch(sl(this,!0)){case Fn:b=x=0;break;case $n:me=Math.max(a-te,0),Se=Math.max(y-te,0);break;case wr:me=Math.max(a-te,0),b=0;break;case Dr:x=0,Se=Math.max(y-te,0)}isFinite(E.width)&&(me=E.width),isFinite(E.height)&&(Se=E.height);var De=this.maxSize,We=this.minSize;switch(x=Math.max(x-te,We.width),b=Math.max(b-te,We.height),me=Math.min(De.width,me),Se=Math.min(De.height,Se),me=isFinite(me)?Math.max(x,me):Math.max(se,x),Se=isFinite(Se)?Math.max(b,Se):Math.max(he,b),x=Ev(this),x){case Fn:break;case $n:se=me,he=Se;break;case hr:x=Math.min(me/se,Se/he),isFinite(x)||(x=1),se*=x,he*=x;break;default:$t(x+" is not a valid geometryStretch.")}this.Rd!==null?(se===0&&(se=.001),he===0&&(he=.001),x=this.Rd!==null?this.Rd:this.ua,ne=x.bounds,b=se/ne.width,ne=he/ne.height,isFinite(b)||(b=1),isFinite(ne)||(ne=1),this.ua=b===1&&ne===1?x:x.copy().scale(b,ne)):this.ua!==null&&Qt.$(this.ua.Sk,a-te)&&Qt.$(this.ua.Rk,y-te)||(this.ua=di.makeGeometry(this,se,he)),ne=this.ua.bounds,a===1/0||y===1/0?this.Ge(ne.x-te/2,ne.y-te/2,a===0&&se===0?0:ne.width+te,y===0&&he===0?0:ne.height+te):this.Ge(-(te/2),-(te/2),me+te,Se+te),E.w()?(me=E.width,Se=E.height,me=Math.min(De.width,me),Se=Math.min(De.height,Se),me=Math.max(We.width,me),Se=Math.max(We.height,Se),this.dc.h(0,0,me,Se)):this.dc.assign(ne)};function Ev(a){var y=a.geometryStretch;return a.Rd!==null?y===ri?$n:y:y===ri?Tv[a.figure].defaultStretch:y}ot.eh=function(a,y,x,b){Ds(this,a,y,x,b)},ot.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},ot.Sj=function(a,y,x,b,E){var te=this.transform,ne=1/(te.m11*te.m22-te.m12*te.m21),se=te.m22*ne,he=-te.m12*ne,me=-te.m21*ne,Se=te.m11*ne,De=ne*(te.m21*te.dy-te.m22*te.dx),We=ne*(te.m12*te.dx-te.m11*te.dy);te=a*se+y*me+De,ne=a*he+y*Se+We,se=x*se+b*me+De,he=x*he+b*Se+We,De=this.ig/2,me=this.ua,me===null&&(this.measure(1/0,1/0),me=this.ua);var qe=me.bounds;if(Se=!1,me.type===Vn.j)if(1.5>=this.strokeWidth)Se=Qt.Ve(me.startX,me.startY,me.endX,me.endY,te,ne,se,he,E);else{if(me.startX===me.endX?(b=De,Se=0):(y=(me.endY-me.startY)/(me.endX-me.startX),Se=De/Math.sqrt(1+y*y),b=Se*y),y=pn(),a=new Lt,Qt.Ve(me.startX+b,me.startY+Se,me.endX+b,me.endY+Se,te,ne,se,he,a)&&y.push(a),a=new Lt,Qt.Ve(me.startX-b,me.startY-Se,me.endX-b,me.endY-Se,te,ne,se,he,a)&&y.push(a),a=new Lt,Qt.Ve(me.startX+b,me.startY+Se,me.startX-b,me.startY-Se,te,ne,se,he,a)&&y.push(a),a=new Lt,Qt.Ve(me.endX+b,me.endY+Se,me.endX-b,me.endY-Se,te,ne,se,he,a)&&y.push(a),se=y.length,se===0)return kn(y),!1;for(Se=!0,he=1/0,b=0;b<se;b++)a=y[b],x=(a.x-te)*(a.x-te)+(a.y-ne)*(a.y-ne),x<he&&(he=x,E.x=a.x,E.y=a.y);kn(y)}else if(me.type===Vn.u)Se=Qt.Ff(qe.x-De,qe.y-De,qe.x+qe.width+De,qe.y+qe.height+De,te,ne,se,he,E);else if(me.type===Vn.F){y=wn.allocAt(qe.x,qe.y,qe.width,qe.height).Bc(De,De);e:if(y.width===0)Se=Qt.Ve(y.x,y.y,y.x,y.y+y.height,te,ne,se,he,E);else if(y.height===0)Se=Qt.Ve(y.x,y.y,y.x+y.width,y.y,te,ne,se,he,E);else{if(a=y.width/2,me=y.height/2,b=y.x+a,Se=y.y+me,x=9999,te!==se&&(x=(ne-he)/(te-se)),9999>Math.abs(x)){if(he=ne-Se-x*(te-b),0>a*a*x*x+me*me-he*he){E.x=NaN,E.y=NaN,Se=!1;break e}De=Math.sqrt(a*a*x*x+me*me-he*he),se=(-(a*a*x*he)+a*me*De)/(me*me+a*a*x*x)+b,a=(-(a*a*x*he)-a*me*De)/(me*me+a*a*x*x)+b,me=x*(se-b)+he+Se,he=x*(a-b)+he+Se,Math.abs((te-se)*(te-se))+Math.abs((ne-me)*(ne-me))<Math.abs((te-a)*(te-a))+Math.abs((ne-he)*(ne-he))?(E.x=se,E.y=me):(E.x=a,E.y=he)}else{if(se=me*me,he=te-b,se-=se/(a*a)*he*he,0>se){E.x=NaN,E.y=NaN,Se=!1;break e}he=Math.sqrt(se),se=Se+he,he=Se-he,Math.abs(se-ne)<Math.abs(he-ne)?(E.x=te,E.y=se):(E.x=te,E.y=he)}Se=!0}wn.free(y)}else if(me.type===Vn.o){We=Lt.alloc();var nt=se-te,lt=he-ne,At=nt*nt+lt*lt,Tt=te,Bt=ne;if(0<At&&qe.contains(Tt,Bt)&&(We.x=Tt,We.y=Bt,this.ca(We)))for(nt!==0&&.5>Math.abs(nt)?(lt*=.5/nt,nt=.5):lt!==0&&.5>Math.abs(lt)&&(nt*=.5/lt,lt=.5),Tt-=nt,Bt-=lt;qe.contains(Tt,Bt);)Tt-=nt,Bt-=lt;for(E.x=se,E.y=he,lt=0;lt<me.figures.count;lt++){var _t=me.figures.s[lt],Gt=_t.isFilled?Tt:te,Zt=_t.isFilled?Bt:ne,un=_t.segments;qe=_t.startX,nt=_t.startY;for(var er=qe,ur=nt,ir=0;ir<un.count;ir++){var Hn=un.s[ir],An=Hn.type,Qr=Hn.endX,Wr=Hn.endY,Xi=!1;switch(An){case ya:er=Qr,ur=Wr;break;case Po:Xi=Dm(qe,nt,Qr,Wr,Gt,Zt,se,he,We);break;case ss:Xi=Qt.Eo(qe,nt,Hn.point1X,Hn.point1Y,Hn.point2X,Hn.point2Y,Qr,Wr,Gt,Zt,se,he,.6,We);break;case Cl:Xi=Qt.Eo(qe,nt,qe+2/3*(Hn.point1X-qe),nt+2/3*(Hn.point1Y-nt),Qr+2/3*(Hn.point1X-Qr),Wr+2/3*(Hn.point1Y-Wr),Qr,Wr,Gt,Zt,se,he,.6,We);break;case da:case _l:An=Hn.type===da?rl(Hn,_t):zs(Hn,_t,qe,nt);var bo=An.length;if(bo===0){Xi=Dm(qe,nt,Hn.type===da?Hn.centerX:Hn.endX,Hn.type===da?Hn.centerY:Hn.endY,Gt,Zt,se,he,We);break}for(Wr=null,Qr=0;Qr<bo;Qr++){if(Wr=An[Qr],Qr===0&&Dm(qe,nt,Wr[0],Wr[1],Gt,Zt,se,he,We)){var Ja=Im(Gt,Zt,We,At,E);Ja<At&&(At=Ja,Se=!0)}Qt.Eo(Wr[0],Wr[1],Wr[2],Wr[3],Wr[4],Wr[5],Wr[6],Wr[7],Gt,Zt,se,he,.6,We)&&(Ja=Im(Gt,Zt,We,At,E),Ja<At&&(At=Ja,Se=!0))}Qr=Wr[6],Wr=Wr[7];break;default:$t("Unknown Segment type: "+An)}qe=Qr,nt=Wr,Xi&&(Xi=Im(Gt,Zt,We,At,E),Xi<At&&(At=Xi,Se=!0)),Hn.isClosed&&(Qr=er,Wr=ur,Dm(qe,nt,Qr,Wr,Gt,Zt,se,he,We)&&(Hn=Im(Gt,Zt,We,At,E),Hn<At&&(At=Hn,Se=!0)))}}te=x-a,ne=b-y,se=Math.sqrt(te*te+ne*ne),se!==0&&(te/=se,ne/=se),E.x-=te*De,E.y-=ne*De,Lt.free(We)}else $t("Unknown Geometry type: "+me.type);return Se?(this.transform.Ga(E),!0):!1};function Im(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Dm(a,y,x,b,E,te,ne,se,he){if(Qt.$(a,x)&&Qt.$(y,b)||Qt.$(E,ne)&&Qt.$(te,se))return!1;var me=!1,Se=(E-ne)*(y-b)-(te-se)*(a-x);return Se===0?!1:(he.x=((E*se-te*ne)*(a-x)-(E-ne)*(a*b-y*x))/Se,he.y=((E*se-te*ne)*(y-b)-(te-se)*(a*b-y*x))/Se,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(he.y>a||Qt.$(he.y,a))&&(he.y<y||Qt.$(he.y,y))&&(me=!0)):(y=a<x?a:x,a=a<x?x:a,(he.x>y||Qt.$(he.x,y))&&(he.x<a||Qt.$(he.x,a))&&(me=!0)),me)}ot.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,te=Lt.alloc();return te.h(x.x-b,x.y-b),a.ca(y.Ga(te))&&(te.h(x.x-b,x.bottom+b),a.ca(y.Ga(te))&&(te.h(x.right+b,x.bottom+b),a.ca(y.Ga(te))&&(te.h(x.right+b,x.y-b),a.ca(y.Ga(te))&&(E=!0)))),Lt.free(te),E},ot.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=gi.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,te=a.top;a=a.bottom;var ne=Lt.alloc();if(ne.h(b,te),x.Ga(ne),this.gh(ne,!0)||(ne.h(E,te),x.Ga(ne),this.gh(ne,!0))||(ne.h(b,a),x.Ga(ne),this.gh(ne,!0))||(ne.h(E,a),x.Ga(ne),this.gh(ne,!0)))return Lt.free(ne),!0;var se=Lt.alloc(),he=Lt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),se.x=E,se.y=te,se.transform(x),ne.x=b,ne.y=te,ne.transform(x),y=!1,Kd(this,ne,se,he)?y=!0:(ne.x=E,ne.y=a,ne.transform(x),Kd(this,ne,se,he)?y=!0:(se.x=b,se.y=a,se.transform(x),Kd(this,ne,se,he)?y=!0:(ne.x=b,ne.y=te,ne.transform(x),Kd(this,ne,se,he)&&(y=!0)))),Lt.free(ne),gi.free(x),Lt.free(se),Lt.free(he),y};function Kd(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,te=x.y;return x=b.x,b=b.y,a===E?(y<te?(a=y,y=te):a=te,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}ot.tx=function(a,y,x){function b(At,Tt){for(var Bt=At.length,_t=0;_t<Bt;_t+=2)if(Tt.zd(At[_t],At[_t+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),te=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var ne=y.bounds,se=ne.x,he=ne.y,me=ne.x+ne.width;if(ne=ne.y+ne.height,io(a.x,a.y,se,he)<=E&&io(a.x,a.y,me,he)<=E&&io(a.x,a.y,se,ne)<=E&&io(a.x,a.y,me,ne)<=E)return!0}if(se=y.startX,he=y.startY,me=y.endX,ne=y.endY,y.type===Vn.j){if(x=(se-me)*(a.x-me)+(he-ne)*(a.y-ne),Vi(a.x,a.y,se,he,me,ne)<=(0<=(me-se)*(a.x-se)+(ne-he)*(a.y-he)&&0<=x?E:te))return!0}else{if(y.type===Vn.u)return y=!1,x&&(y=Vi(a.x,a.y,se,he,se,ne)<=E||Vi(a.x,a.y,se,he,me,he)<=E||Vi(a.x,a.y,me,he,me,ne)<=E||Vi(a.x,a.y,se,ne,me,ne)<=E),y;if(y.type===Vn.F){y=a.x-(se+me)/2,te=a.y-(he+ne)/2;var Se=Math.abs(me-se)/2,De=Math.abs(ne-he)/2;if(Se===0||De===0)return Vi(a.x,a.y,se,he,me,ne)<=E;if(x){if(a=Qt.$y(Se,De,y,te),a*a<=E)return!0}else return!(io(y,te,-Se,0)>=E||io(y,te,0,-De)>=E||io(y,te,0,De)>=E||io(y,te,Se,0)>=E)}else if(y.type===Vn.o){if(me=y.bounds,te=me.x,se=me.y,he=me.x+me.width,me=me.y+me.height,a.x>he&&a.x<te&&a.y>me&&a.y<se&&Vi(a.x,a.y,te,se,te,me)>E&&Vi(a.x,a.y,te,se,he,se)>E&&Vi(a.x,a.y,he,me,te,me)>E&&Vi(a.x,a.y,he,me,he,se)>E)return!1;if(te=Math.sqrt(E),x){if(this.fill===null?ic(y,a.x,a.y,te):$u(y,a,te,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(te=x.s[y],ne=te.startX,Se=te.startY,a.zd(ne,Se)>E)return!1;for(se=te.segments.s,he=se.length,me=0;me<he;me++)switch(De=se[me],De.type){case ya:case Po:if(ne=De.endX,Se=De.endY,a.zd(ne,Se)>E)return!1;break;case ss:var We=pn();if(Qt.Qe(ne,Se,De.point1X,De.point1Y,De.point2X,De.point2Y,De.endX,De.endY,.8,We),ne=b(We,a),kn(We),ne||(ne=De.endX,Se=De.endY,a.zd(ne,Se)>E))return!1;break;case Cl:if(We=pn(),Qt.ep(ne,Se,De.point1X,De.point1Y,De.endX,De.endY,.8,We),ne=b(We,a),kn(We),ne||(ne=De.endX,Se=De.endY,a.zd(ne,Se)>E))return!1;break;case da:case _l:We=De.type===da?rl(De,te):zs(De,te,ne,Se);var qe=We.length;if(qe===0){if(ne=De.type===da?De.centerX:De.endX,Se=De.type===da?De.centerY:De.endY,a.zd(ne,Se)>E)return!1;break}De=null;for(var nt=pn(),lt=0;lt<qe;lt++)if(De=We[lt],nt.length=0,Qt.Qe(De[0],De[1],De[2],De[3],De[4],De[5],De[6],De[7],.8,nt),b(nt,a))return kn(nt),!1;kn(nt),De!==null&&(ne=De[6],Se=De[7]);break;default:$t("Unknown Segment type: "+De.type)}}return!0}}}return!1},ot.qc=function(){this.ua=null},ot.kq=function(){return this.ig};function v1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Pg,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ka):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new yr(1-Ka.x,Ka.y)))}di.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Oc[a.toArrow];else a.fromArrow!=="None"?b=Oc[a.fromArrow]:(b=Qt.Ze[a.figure],typeof b=="string"&&(b=Qt.Ze[b]),b===void 0&&$t("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Qt.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function y1(a){var y=Oc[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Oc[x],y===void 0){var b=null,E;for(E in Qt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Vn.parse(Qt.um[b],!1),Oc[b]=a,x!==b&&(Oc[x]=b),b}}return typeof y=="string"?y:y instanceof Vn?a:null}Ot.Object.defineProperties(di.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),ys(this)&&(a=this.part,a!==null&&Oo(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Vn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Lt.allocAt(-y.x,-y.y),Lt.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&Pf(a,"Shape.fill"),a instanceof so&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Pf(a,"Shape.stroke"),a instanceof so&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else Wn(a,"value >= 0",di,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Wn(a,'"butt", "round", or "square"',di,"strokeCap"):(Wd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Wn(a,'"miter", "bevel", or "round"',di,"strokeJoin"):(Wd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Wd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];0<=te&&isFinite(te)||$t("strokeDashArray:value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Wd(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=Qt.Ze[a];typeof x=="function"?x=a:(x=Qt.Ze[a.toLowerCase()])||$t("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=y1(a);x===null?$t("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new qh),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=y1(a);x===null?$t("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new qh),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:oo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Wd(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:oo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Wd(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Wd(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:ri},set:function(a){var y=this.geometryStretch;y!==a&&(Wd(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Nc),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&sc(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Nc),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Nc),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Nc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),di.prototype.intersectsRect=di.prototype.Yc,di.prototype.containedInRect=di.prototype.fh,di.prototype.getNearestIntersectionPoint=di.prototype.rs,di.prototype.getDocumentBounds=di.prototype.mi,di.prototype.getDocumentPoint=di.prototype.ga;var Oc=new vr,Tv=new vr;di.className="Shape",di.getFigureGenerators=function(){var a=new cr,y;for(y in Qt.Ze)y!==y.toLowerCase()&&a.add(y,Qt.Ze[y]);return a.freeze(),a},di.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Qt.Ze;b[a]=y,b[x]=a},di.getArrowheadGeometries=function(){var a=new cr;for(b in Qt.um)if(Oc[b]===void 0){var y=Vn.parse(Qt.um[b],!1);Oc[b]=y,y=b.toLowerCase(),y!==b&&(Oc[y]=b)}for(var x in Oc)if(x!==x.toLowerCase()){var b=Oc[x];b instanceof Vn&&a.add(x,b)}return a.freeze(),a},di.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Vn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||$t("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Oc;b[a]=x,b[y]=a};function Mv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=ri,this.gg=this.fg=oo}Mv.prototype.copy=function(){var a=new Mv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Co(a,y){return Yt.call(this),zm||(ll=ra?new yu(null).context:null,zm=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}cn(Co,Yt),Co.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function hc(a){a.da===null?a.da=new Iv:a.da.nc&&(a.da=a.da.copy())}ot=Co.prototype,ot.th=function(){Yt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function S1(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}ot.qb=function(a){a.classType===Co?this.wrap=a:Yt.prototype.qb.call(this,a)},ot.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},ot.v=function(){Yt.prototype.v.call(this)},ot.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,te=x.height,ne=mg(this),se=a.textAlign=this.textAlign,he=y.tn;se==="start"?se=he?"right":"left":se==="end"&&(se=he?"left":"right"),he=this.isUnderline;var me=this.isStrikethrough;oa(this,a,this.xc,!0,!1,x,b),(he||me)&&oa(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var Se=this.oe,De=Se.dx-(ne*Se.m21+Se.dx);Se=Se.dy-(ne*Se.m22+Se.dy);var We=y.scale;switch(8>(De*De+Se*Se)*We*We&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ml&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,De=this.spacingBelow,this.flip){case Bi:a.translate(E,0),a.scale(-1,1);break;case wi:a.translate(0,te),a.scale(1,-1);break;case mo:a.translate(E,te),a.scale(-1,-1)}if(a.yc(),Se=this.Gc,We=(y+ne+De)*Se,te>We&&(b=this.verticalAlignment,b=b.y*te-b.y*We+b.offsetY),Se===1&&this.ze!==null)De=this.Cb,De>E&&(De=E),this.Oj(this.ze,a,0,b+y,E,ne,De,x,se,he,me);else if(this.Qc!==null&&this.Qb!==null)for(We=0;We<Se;We++){var qe=this.Qc[We];qe>E&&(qe=E),b+=y,this.Oj(this.Qb[We],a,0,b,E,ne,qe,x,se,he,me),b+=ne+De}switch(this.flip){case Bi:a.scale(-1,1),a.translate(-E,0);break;case wi:a.scale(1,-1),a.translate(0,-te);break;case mo:a.scale(-1,-1),a.translate(-E,-te)}}},ot.Oj=function(a,y,x,b,E,te,ne,se,he,me,Se){var De=0;if(se)he==="left"?De=0:he==="right"?De=E-ne:he==="center"&&(De=(E-ne)/2),y.fillRect(x+De,b+.25*te,ne,1);else{if(he==="left"?De=0:he==="right"?De=E:he==="center"&&(De=E/2),E=Fm!==null?Fm(this,te):.75*te,y.fillText(a,x+De,b+E),a=te/20|0,a===0&&(a=1),he==="right"?De-=ne:he==="center"&&(De-=ne/2),me){se=Bm!==null?Bm(this,te):.8*te,he=x+De,me=b+se,E=x+De+ne,se=b+se;var We=a;y.beginPath(),y.lineWidth=We,y.moveTo(he,me),y.lineTo(E,se),y.stroke(),y.Se(),y instanceof Ml&&y.ad.classList.add("gojs-td")}Se&&(Se=b+te-te/2.2|0,a%2!==0&&(Se+=.5),b=x+De,te=Se,x=x+De+ne,ne=Se,De=a,y.beginPath(),y.lineWidth=De,y.moveTo(b,te),y.lineTo(x,ne),y.stroke(),y.Se(),y instanceof Ml&&y.ad.classList.add("gojs-td"))}},ot.kk=function(a,y,x){if(!Yt.prototype.kk.call(this,a,y,x))return!1;if(oa(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)Qy(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Qy(a,y,!0);return!0},ot.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Yt.prototype.nk.call(this,a)},ot.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},ot.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var te=this.Ae;ll!==null&&T1!==te&&(T1=ll.font=te),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ne;if(isNaN(this.desiredSize.width)){if(te=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),te.length===0)te=8;else if(this.isMultiline){for(var se=ne=0,he=!1;!he;){var me=te.indexOf(`
|
|
|
`,se);me===-1&&(me=te.length,he=!0),se=te.substr(se,me-se),this.formatting===vg&&(se=se.trim()),ne=Math.max(ne,Nu(se)),se=me+1}te=ne}else ne=te.indexOf(`
|
|
|
`,0),0<=ne&&(te=te.substr(0,ne)),te=Nu(te);te=Math.min(te,a/this.scale)}else te=this.desiredSize.width;if(this.panel!==null&&(te=Math.min(te,this.panel.maxSize.width)),ne=w1(this,te),isNaN(this.desiredSize.height)?ne=Math.min(ne,y/this.scale):ne=this.desiredSize.height,he=ne,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Rm&&(y=this.Ae,y=this.overflow===Rm?x1(y):0,me=this.spacingAbove+this.spacingBelow,me=Math.max(0,mg(this)+me),he=Math.min(this.maxLines-1,Math.max(Math.floor(he/me+.01)-1,0)),!(he+1>=this.Qb.length))){for(this.l|=16777216,me=this.Qb[he],y=Math.max(1,a-y);Nu(me)>y&&1<me.length;)me=me.substr(0,me.length-1);me+=yg,y=Nu(me),this.Qb[he]=me,this.Qb=this.Qb.slice(0,he+1),this.Qc[he]=y,this.Qc=this.Qc.slice(0,he+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===b1||isNaN(this.desiredSize.width))&&(te=isNaN(a)?this.Cb:Math.min(a,this.Cb)),te=Math.max(x,te),ne=Math.max(b,ne),ma(this.dc,te,ne),this.Ge(0,0,te,ne),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},ot.eh=function(a,y,x,b){Ds(this,a,y,x,b)};function gg(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Lv(a,y,x,b){var E=a.formatting===vg;E&&(y=y.trim());var te=0,ne=a.Ae,se=a.spacingAbove+a.spacingBelow;se=Math.max(0,mg(a)+se);var he=a.overflow===Rm?x1(ne):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,se);else if(ne=y,a.wrap===kv){a.Le=1;var me=Nu(y);if(he===0||me<=x)a.Cb=Math.max(a.Cb,me),gg(a,y,a.Cb),b!==null&&b.h(me,se);else{for(te=pp(a,ne),ne=ne.substr(te.length),y=pp(a,ne),me=Nu(te+y);0<y.length&&me<=x;)te+=y,ne=ne.substr(y.length),y=pp(a,ne),me=te+y,E&&(me=me.trim()),me=Nu(me);for(E&&(y=y.trim()),te+=y,x=Math.max(1,x-he);Nu(te)>x&&1<te.length;)te=te.substr(0,te.length-1);a.l|=16777216,te+=yg;var Se=Nu(te);a.Cb=Se,gg(a,te,Se),b!==null&&b.h(Se,se)}}else{for(he=0,ne.length===0&&(he=1,gg(a,ne,0));0<ne.length;){for(y=pp(a,ne),ne=ne.substr(y.length);Nu(y)>x;){var De=1;for(me=Nu(y.substr(0,De)),Se=0;me<=x;)De++,Se=me,me=Nu(y.substr(0,De));if(De===1){var We=me;te=Math.max(te,me)}else We=Se,te=Math.max(te,Se);if(De--,1>De&&(De=1),gg(a,y.substr(0,De),We),he++,y=y.substr(De),a.Gc+he>a.maxLines)break}for(Se=pp(a,ne),me=Nu(y+Se);0<Se.length&&me<=x;)y+=Se,ne=ne.substr(Se.length),Se=pp(a,ne),me=y+Se,E&&(me=me.trim()),me=Nu(me);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),Se.length===0?(De=me,te=Math.max(te,me)):(De=Se=Nu(y),te=Math.max(te,Se)),gg(a,y,De),he++,a.Gc+he>a.maxLines))break}a.Le=Math.min(a.maxLines,he),a.Cb=Math.max(a.Cb,te),b!==null&&b.h(a.Cb,se*a.Le)}}function pp(a,y){if(a.wrap===P1)return y.substr(0,1);for(var x=y.length,b=0,E=xx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===C1&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Nu(a){return ll===null?8*a.length:ll.measureText(a).width}function mg(a){if(a.df!==null)return a.df;var y=a.Ae;if(ll===null){var x=16;return a.df=x}return Av[y]!==void 0&&5e3>E1?x=Av[y]:(x=1.3*ll.measureText("M").width,Av[y]=x,E1++),a.df=x}function x1(a){if(ll===null)return 6;if(_m[a]!==void 0&&5e3>jv)var y=_m[a];else y=ll.measureText(yg).width,_m[a]=y,jv++;return y}function w1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,mg(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var te=a.Gc=0,ne,se=!1;!se;){if(ne=x.indexOf(`
|
|
|
`,te),ne===-1&&(ne=x.length,se=!0),te<=ne){if(te=x.substr(te,ne-te),a.wrap!==kv){a.Le=0;var he=Kn.alloc();Lv(a,te,y,he),E+=he.height,Kn.free(he),a.Gc+=a.Le}else Lv(a,te,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(se=!0)}te=ne+1}return a.Lq=E}Ot.Object.defineProperties(Co.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(hc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Fn},set:function(a){var y=this.flip;y!==a&&(hc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Xa},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),hc(this),this.da.Yr=a,Gs(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Kn.alloc();Lv(this,this.ec,999999,a);var y=a.width;Kn.free(a),a=w1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),ma(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:Ov},set:function(a){var y=this.wrap;y!==a&&(hc(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Nv},set:function(a){var y=this.overflow;y!==a&&(hc(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Pf(a,"TextBlock.stroke"),a instanceof so&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return mg(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(hc(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(hc(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Nc),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Nc),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Nc),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new Nc),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Nc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(hc(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(hc(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(hc(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(hc(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:vg},set:function(a){var y=this.formatting;y!==a&&(hc(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&Wn(a,"> 0",Co,"maxLines"),hc(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Fm=null,Bm=null,kv=new vn(Co,"None",0),b1=new vn(Co,"WrapFit",1),Ov=new vn(Co,"WrapDesiredSize",2),P1=new vn(Co,"WrapBreakAll",3),Nv=new vn(Co,"OverflowClip",0),Rm=new vn(Co,"OverflowEllipsis",1),vg=new vn(Co,"FormatTrim",0),C1=new vn(Co,"FormatNone",0),xx=/[ \u200b\u00ad]/,Av=new vr,E1=0,_m=new vr,jv=0,yg="...",T1="",ll=null,zm=!1;Co.className="TextBlock";function Iv(){this.nc=!1,this.Hd=null,this.Xf=Fn,this.gq=vg,this.Jq=1/0,this.$q=Nv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Xa,this.$r=Ov}Iv.prototype.copy=function(){var a=new Iv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Co.getEllipsis=function(){return yg},Co.setEllipsis=function(a){yg=a,_m=new vr,jv=0},Co.getBaseline=function(){return Fm},Co.setBaseline=function(a){Fm=a},Co.getUnderline=function(){return Bm},Co.setUnderline=function(a){Bm=a},Co.isValidFont=function(a){if(zm||(ll=ra?new yu(null).context:null,zm=!0),ll===null)return!0;var y=ll.font;if(a===y||a==="10px sans-serif")return!0;ll.font="10px sans-serif",ll.font=a;var x=ll.font;if(x!=="10px sans-serif")return ll.font=y,!0;ll.font="19px serif";var b=ll.font;return ll.font=a,x=ll.font,ll.font=y,x!==b},Co.FormatNone=C1,Co.FormatTrim=vg,Co.None=kv,Co.OverflowClip=Nv,Co.OverflowEllipsis=Rm,Co.WrapBreakAll=P1,Co.WrapDesiredSize=Ov,Co.WrapFit=b1;function Nc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Nc.prototype.copy=function(){var a=new Nc;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Nc.className="GradElementSettings";function ul(a,y){Yt.call(this),this.Eg=null,this.qo="",this.Xg=lo,this.Nk=$n,this.Zg=this.Hd=null,this.Mk=Di,this.Xf=Fn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var gp;cn(ul,Yt),ul.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},ul.prototype.qb=function(a){a===Fn||a===hr||a===Li?this.imageStretch=a:Yt.prototype.qb.call(this,a)},ul.prototype.toString=function(){return"Picture("+this.source+")#"+zi(this)};function mp(a){a===void 0&&(a=""),a!==""?gp[a]&&(delete gp[a],$m--):(gp=new vr,$m=0)}function M1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var te=y.getAttribute("src")||"",ne=E.Og.I(te);if(ne!==null)for(var se=ne.length,he=0;he<se;he++)te=ne[he],E.Xn.add(te),te.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),te.Zg!==null&&te.Zg(te,x))}y.Bg.clear()}a.desiredSize.w()||(Ia(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,te=y.getAttribute("src")||"",ne=E.Og.I(te);if(ne!==null){E=ne.length,te=pn();for(var se=0;se<E;se++)te.push(ne[se]);if(y.hn)for(se=0;se<E;se++)ne=te[se],ne.Hd!==null&&ne.Hd(ne,x);kn(te)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}ul.prototype.hA=function(){if(this.source!==""){mp(this.source);var a=this.source;this.source="",this.source=a}},ul.prototype.redraw=function(){this.N(),this.Uc=!0},ul.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Hd)){var E=a instanceof Ml;b=this.naturalBounds;var te=0,ne=0,se=this.qn,he=se?+x.width:x.naturalWidth;if(se=se?+x.height:x.naturalHeight,he===void 0&&x.videoWidth&&(he=x.videoWidth),se===void 0&&x.videoHeight&&(se=x.videoHeight),he=he||b.width,se=se||b.height,he!==0&&se!==0){var me=he,Se=se;this.sourceRect.w()&&(te=this.Xg.x,ne=this.Xg.y,he=this.Xg.width,se=this.Xg.height);var De=he,We=se,qe=this.Nk,nt=this.Mk;switch(qe){case Fn:if(this.sourceRect.w())break;De>=b.width&&(te=te+nt.offsetX+(De*nt.x-b.width*nt.x)),We>=b.height&&(ne=ne+nt.offsetY+(We*nt.y-b.height*nt.y)),he=Math.min(b.width,De),se=Math.min(b.height,We);break;case $n:De=b.width,We=b.height;break;case hr:case Li:qe===hr?(qe=Math.min(b.height/We,b.width/De),De*=qe,We*=qe):qe===Li&&(qe=Math.max(b.height/We,b.width/De),De*=qe,We*=qe,De>=b.width&&(te=(te+nt.offsetX+(De*nt.x-b.width*nt.x)/De)*he),We>=b.height&&(ne=(ne+nt.offsetY+(We*nt.y-b.height*nt.y)/We)*se),he*=1/(De/b.width),se*=1/(We/b.height),De=b.width,We=b.height)}qe=this.Df()*y.scale;var lt=De*qe*We*qe,At=he*se/lt,Tt=x.__goCache;qe=null;var Bt=wx;if(!E){if(x.sq&&Tt!==void 0&&4<lt&&At>Bt*Bt)for(Tt.gi===null&&(k1(Tt,4,me,Se,x),k1(Tt,16,me,Se,x)),E=Tt.gi,me=E.length,Se=0;Se<me&&E[Se].ratio*E[Se].ratio<At;Se++)qe=E[Se];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new yu(null).context;try{E.drawImage(this.Eg,0,0)}catch(_t){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(_t){this.vl=!0}}if(this.vl)return}}switch(E=De<b.width?nt.offsetX+(b.width*nt.x-De*nt.x):0,nt=We<b.height?nt.offsetY+(b.height*nt.y-We*nt.y):0,this.flip){case Bi:a.translate(Math.min(b.width,De),0),a.scale(-1,1);break;case wi:a.translate(0,Math.min(b.height,We)),a.scale(1,-1);break;case mo:a.translate(Math.min(b.width,De),Math.min(b.height,We)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Tt!==void 0&&qe!==null&&qe.ratio!==1){a.save(),y=qe.ratio;try{a.drawImage(qe.source,te/y,ne/y,Math.min(qe.source.width,he/y),Math.min(qe.source.height,se/y),E,nt,Math.min(b.width,De),Math.min(b.height,We)),a instanceof Ml&&(this.bt=[te/y,ne/y,Math.min(qe.source.width,he/y),Math.min(qe.source.height,se/y),E,nt,Math.min(b.width,De),Math.min(b.height,We)])}catch(_t){this.en=!1}a.restore()}else try{a.drawImage(x,te,ne,he,se,E,nt,Math.min(b.width,De),Math.min(b.height,We)),a instanceof Ml&&(this.bt=[te,ne,he,se,E,nt,Math.min(b.width,De),Math.min(b.height,We)])}catch(_t){this.en=!1}switch(this.flip){case Bi:a.scale(-1,1),a.translate(-Math.min(b.width,De),0);break;case wi:a.scale(1,-1),a.translate(0,-Math.min(b.height,We));break;case mo:a.scale(-1,-1),a.translate(-Math.min(b.width,De),-Math.min(b.height,We))}}}}},ul.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,te=sl(this,!0),ne=this.Eg,se=this.qn,he=0,me=0;(se||!this.al&&ne&&ne.complete)&&(this.al=!0),ne===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(he=se?+ne.width:ne.naturalWidth,me=se?+ne.height:ne.naturalHeight),isFinite(E.width)||te===$n||te===wr?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ne!==null&&(a=he)),x=0):ne!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:he),isFinite(E.height)||te===$n||te===Dr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=me)),b=0):ne!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:me),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,te=this.minSize,x=Math.max(x||0,te.width),b=Math.max(b||0,te.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),ne===null||ne.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),ma(this.dc,a,y),this.Ge(0,0,a,y)},ul.prototype.eh=function(a,y,x,b){Ds(this,a,y,x,b)},Ot.Object.defineProperties(ul.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||$t("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Jp(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new On),b!==null&&x&&Yh(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Ia(this,!1),this.v())):x&&M1(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=gp;if(ra){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<$m&&(mp(),x=gp),b=Yn("img"),b.hn=!0,M1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,$m++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new L1),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),ul.prototype.redraw=ul.prototype.redraw,ul.prototype.reloadSource=ul.prototype.hA;var $m=0,wx=4;ul.className="Picture",gp=new vr,ul.clearCache=mp;function L1(){this.gi=null}function k1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var te=new yu(null),ne=te.context,se=1/y;te.width=x/y,te.height=b/y,te.width!==0&&te.height!==0&&(y=new O1(te.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),ne.setTransform(se*x,0,0,se*x,0,0),ne.yc(),ne.drawImage(E,0,0),a.gi.push(y))}L1.className="PictureCacheArray";function O1(a,y){this.source=a,this.ratio=y}O1.className="PictureCacheInstance";function vp(){this.os=new Vn,this.mc=null}vp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Vn,this.mc=null};function yp(a,y,x,b,E,te){a.mc=new $a,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=te||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function bx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}vp.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new Ui(ya);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},vp.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new Ui(Po);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Eh(a,y,x,b,E,te,ne){var se;se===void 0&&(se=!1);var he=new Ui(ss);he.point1X=y,he.point1Y=x,he.point2X=b,he.point2Y=E,he.endX=te,he.endY=ne,se&&he.close(),a.mc.segments.add(he)}function Gm(a,y,x,b,E){var te;te===void 0&&(te=!1);var ne=new Ui(Cl);ne.point1X=y,ne.point1Y=x,ne.endX=b,ne.endY=E,te&&ne.close(),a.mc.segments.add(ne)}vp.prototype.arcTo=function(a,y,x,b,E,te,ne){te===void 0&&(te=0),ne===void 0&&(ne=!1);var se=new Ui(da);se.startAngle=a,se.sweepAngle=y,se.centerX=x,se.centerY=b,se.radiusX=E,se.radiusY=te!==0?te:E,ne&&se.close(),this.mc.segments.add(se)};function Px(a,y,x,b,E,te,ne,se){var he;he===void 0&&(he=!1),y=new Ui(_l,ne,se,y,x,b,E,te),he&&y.close(),a.mc.segments.add(y)}function N1(a){var y=Hm;return y!==null?(Hm=null,y.reset(a),y):(y=new vp,y.reset(a),y)}var Hm=null;vp.className="StreamGeometryContext";function Ns(a,y){var x=a.toLowerCase(),b=Qt.Ze;b[a]=y,b[x]=a}Ns("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Vn(Vn.u),b.endX=y,b.endY=x,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Ns("Square",function(a,y,x){a="s"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Vn(Vn.u),b.endX=y,b.endY=x,b.defaultStretch=hr,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Ns("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=Qt.Mf[b];if(E!==void 0)return E;var te=a*Qt.wg;return E=new Vn().add(new $a(a,0,!0).add(new Ui(Po,y-a,0)).add(new Ui(ss,y,a,y-te,0,y,te)).add(new Ui(Po,y,x-a)).add(new Ui(ss,y-a,x,y,x-te,y-te,x)).add(new Ui(Po,a,x)).add(new Ui(ss,0,x-a,te,x,0,x-te)).add(new Ui(Po,0,a)).add(new Ui(ss,a,0,0,te,te,0).close())),1<te&&(E.spot1=new yr(0,0,te,te),E.spot2=new yr(1,1,-te,-te)),Qt.Nf<Qt.vm&&(Qt.Mf[b]=E,Qt.Nf++),E}),Ns("Border","RoundedRectangle"),Ns("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Vn(Vn.F),b.endX=y,b.endY=x,b.spot1=zu,b.spot2=Rl,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Ns("Circle",function(a,y,x){a="c"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Vn(Vn.F),b.endX=y,b.endY=x,b.spot1=zu,b.spot2=Rl,b.defaultStretch=hr,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Ns("TriangleRight",function(a,y,x){return new Vn().add(new $a(0,0).add(new Ui(Po,y,.5*x)).add(new Ui(Po,0,x).close())).pm(0,.25,.5,.75)}),Ns("TriangleDown",function(a,y,x){return new Vn().add(new $a(0,0).add(new Ui(Po,y,0)).add(new Ui(Po,.5*y,x).close())).pm(.25,0,.75,.5)}),Ns("TriangleLeft",function(a,y,x){return new Vn().add(new $a(y,x).add(new Ui(Po,0,.5*x)).add(new Ui(Po,y,0).close())).pm(.5,.25,1,.75)}),Ns("TriangleUp",function(a,y,x){return new Vn().add(new $a(y,x).add(new Ui(Po,0,x)).add(new Ui(Po,.5*y,0).close())).pm(.25,.5,.75,1)}),Ns("Triangle","TriangleUp"),Ns("Diamond",function(a,y,x){return new Vn().add(new $a(.5*y,0).add(new Ui(Po,0,.5*x)).add(new Ui(Po,.5*y,x)).add(new Ui(Po,y,.5*x).close())).pm(.25,.25,.75,.75)}),Ns("LineH",function(a,y,x){return a=new Vn(Vn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Ns("LineV",function(a,y,x){return a=new Vn(Vn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Ns("None","Rectangle"),Ns("BarH","Rectangle"),Ns("BarV","Rectangle"),Ns("MinusLine","LineH"),Ns("PlusLine",function(a,y,x){return new Vn().add(new $a(0,x/2,!1).add(new Ui(Po,y,x/2)).add(new Ui(ya,y/2,0)).add(new Ui(Po,y/2,x)))}),Ns("XLine",function(a,y,x){return new Vn().add(new $a(0,x,!1).add(new Ui(Po,y,0)).add(new Ui(ya,0,0)).add(new Ui(Po,y,x)))}),Ns("LineRight",function(a,y,x){return new Vn().add(new $a(.25*y,0,!1).add(new Ui(Po,.75*y,.5*x)).add(new Ui(Po,.25*y,x)))}),Ns("LineDown",function(a,y,x){return new Vn().add(new $a(0,.25*x,!1).add(new Ui(Po,.5*y,.75*x)).add(new Ui(Po,y,.25*x)))}),Ns("LineLeft",function(a,y,x){return new Vn().add(new $a(.75*y,0,!1).add(new Ui(Po,.25*y,.5*x)).add(new Ui(Po,.75*y,x)))}),Ns("LineUp",function(a,y,x){return new Vn().add(new $a(0,.75*x,!1).add(new Ui(Po,.5*y,.25*x)).add(new Ui(Po,y,.75*x)))}),Qt.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Dv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Jo,this.ir=null,this.jr="",this.lr=oo,this.Gq="",this.Hq=Wa,this.Pq=_r,this.Kq=Ir,this.Up=null,this.Cq=127,this.zr=_i,this.yr="gray",this.Vg=4}Dv.prototype.copy=function(){var a=new Dv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function Mr(a,y){a===void 0||a instanceof Ha||typeof a=="string"?Gn.call(this,a):(Gn.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new Lt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new wn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}cn(Mr,Gn),Mr.prototype.cloneProtected=function(a){Gn.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},ot=Mr.prototype,ot.Af=function(a){Gn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},ot.toString=function(){var a=Mn(this.constructor)+"#"+zi(this);return this.data!==null&&(a+="("+zn(this.data)+")"),a};function cl(a){a.P===null?a.P=new Dv:a.P.nc&&(a.P=a.P.copy())}ot.th=function(){Gn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},ot.gk=function(a,y,x,b,E,te,ne){var se=this.diagram;se!==null&&(a===la&&y==="elements"?E instanceof Gn?Ud(E,function(he){ly(se.partManager,he),Fd(se,he)}):Yh(se,E):a===Oa&&y==="elements"&&(E instanceof Gn?Ud(E,function(he){uy(se.partManager,he,se)}):Jp(se,E)),se.cb(a,y,x,b,E,te,ne))},ot.La=function(a){if(Gn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof Gn&&Ud(E,function(te){te.data!==null&&te.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Mr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Mr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Mr.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new cr),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},Mr.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},Mr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=pn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);kn(y)}},Mr.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof ei?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ki))break e;Su(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Gn.Link),x.adornedObject=y)}if(x!==null){x.type===Gn.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},Mr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Fv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Cx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Um(a){if(ed(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function A1(a){if(a.G|=2097152,ed(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||D1(a,y,x),x=a.Ib;var b=wn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),wn.free(b),Rv(a,!1)}}Mr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new gi);var te=this.Lb;te.reset(),this.no(te,a,y,x,b),this.Lb=te,te.ws()||te.pp(E)},Mr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=Di;this.locationSpot.sb()&&(te=this.locationSpot);var ne=Lt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ne.yi(x.x,x.y,x.width,x.height,te),y.Lb!==null&&y.Lb.Ga(ne),ne.offset(-y.measuredBounds.x,-y.measuredBounds.y),te=y.panel;te!==null&&te!==this;)te.Lb!==null&&te.Lb.Ga(ne),ne.offset(-te.measuredBounds.x,-te.measuredBounds.y),te=te.panel;else ne.yi(y,x,b,E,te);a.rotate(this.Kb,ne.x,ne.y),Lt.free(ne)}},Mr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Mr.prototype.moveTo=function(a,y,x){a=Lt.allocAt(a,y),this.move(a,x),Lt.free(a)},Mr.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},Mr.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},Mr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new cr),y.I(a)!==null)return y.I(a);var x=Gn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Th(a,y,x,b){b===void 0&&(b=new Lt),x=x.Mc()?Di:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}Mr.prototype.mi=function(a){return a===void 0&&(a=new wn),a.assign(this.actualBounds)},Mr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function j1(a){var y=Lt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof di?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Vd(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=c1(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var te=y.width;y=y.height;var ne=a.shadowBlur;return a=a.shadowOffset,te+=ne,y+=ne,b-=ne/2,E-=ne/2,0<a.x?te+=a.x:(b+=a.x,te-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,te+2,y+2),x}Mr.prototype.arrange=function(){if(Hs(this)===!1)A1(this);else{Mc(this,!1);var a=this.Ib,y=wn.alloc();y.assign(a);var x=td(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;D1(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Qt.B(y.width,a.width)&&Qt.B(y.height,a.height)||0<=this.vw&&this.C(16),wn.free(y),Rv(this,!1)}},ot=Mr.prototype,ot.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=wn.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),wn.free(E)}!(this.G&65536)&&a.D(y)||R1(this,b,x),x.N(),!a.w()&&!y.w()||So(a,y)||(this instanceof nr&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},ot.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&I1(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new Lt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),ed(this)===!1&&Hs(this)===!1&&(Um(this),A1(this)),!0};function I1(a,y,x,b,E){y===null||a instanceof Ki||(y=y.animationManager,y.zb&&Wu(y,a,new Lt(b,E),x))}ot.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;ed(this)||Hs(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}Um(this)},ot.Av=function(){this.G&=-2097153,Um(this)};function D1(a,y,x){var b=j1(a),E=a.diagram,te=x.w(),ne=y.w();te&&ne?a.G&2097152?F1(a,y,x,E,b):B1(a,y,x,E,b):te?F1(a,y,x,E,b):ne&&B1(a,y,x,E,b),a.G|=2097152,Lt.free(b),a.Uk()}function F1(a,y,x,b,E){var te=y.x,ne=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Ki||Wu(x,a,new Lt(te,ne),y),b||y.x===te&&y.y===ne||a.g("position",new Lt(te,ne),y.copy()))}function B1(a,y,x,b,E){var te=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(te)||b===null||a.g("location",te,x.copy())}function R1(a,y,x){_v(a,!1),a instanceof nr&&Sh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?td(a)?(Io(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}ot.si=function(){return!0},ot.Zc=function(){return!0},ot.ph=function(){return!1},ot.Dd=function(){return!0};function Bv(a,y,x,b){y.constructor===a.constructor||$1||($1=!0,or('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),or(" Old class: "+Mn(a.constructor)+", new class: "+Mn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var te=a.isSelected,ne=a.isHighlighted,se=!0,he=!0,me=!1;a instanceof nr&&(se=a.isTreeLeaf,he=a.isTreeExpanded,me=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=te?a.G|4096:a.G&-4097,a.G=ne?a.G|524288:a.G&-524289,a instanceof nr&&(a.U=se?a.U|4:a.U&-5,a.U=he?a.U|1:a.U&-2,a.U=me?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}Mr.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},Mr.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},Mr.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},Mr.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},Mr.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},Mr.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},Mr.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},Mr.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},Mr.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function ed(a){return(a.G&32768)!==0}function Rv(a,y){a.G=y?a.G|32768:a.G&-32769}function _v(a,y){a.G=y?a.G|65536:a.G&-65537}function td(a){return(a.G&131072)!==0}ot=Mr.prototype,ot.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Wm(a,y){a.G=y?a.G|1048576:a.G&-1048577}ot.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},ot.N=function(){var a=this.diagram;a!==null&&!Hs(this)&&!ed(this)&&this.isVisible()&&this.Ib.w()&&a.N(Vd(this,this.Ib))},ot.v=function(){Gn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof nr&&this.labeledLink!==null&&Gs(this.labeledLink),a.$b(!0))},ot.Vo=function(a){a||(a=this.Ah,a!==null&&Wv(a,this))},ot.Wo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},ot.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},ot.oz=function(){return zv(this,this)};function zv(a,y){var x=y.containingGroup;return x!==null?1+zv(a,x):y instanceof nr&&(y=y.labeledLink,y!==null)?zv(a,y):0}ot.sz=function(){return _1(this,this)};function _1(a,y){var x=y.containingGroup;return x!==null||y instanceof nr&&(x=y.labeledLink,x!==null)?_1(a,x):y}ot.Td=function(a){return a instanceof ei?$v(this,this,a):!1};function $v(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!$v(a,b,x)?y instanceof nr&&(y=y.labeledLink,y!==null)?$v(a,y,x):!1:!0}ot.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof ei&&Wm(y,!0),y instanceof nr){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof nr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof ei&&Wm(y,!1),y instanceof nr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Mr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof nr&&this.isLinkLabel)},Mr.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof nr&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function z1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function nd(a,y,x,b,E,te){if(te===void 0&&(te=null),!(a.contains(y)||te!==null&&!te(y)||y instanceof Ki)){if(a.add(y),y instanceof nr){if(x&&y instanceof ei)for(var ne=y.memberParts;ne.next();)nd(a,ne.value,x,b,E,te);if(E!==!1)for(ne=y.linksConnected;ne.next();){var se=ne.value;if(!a.contains(se)){var he=se.fromNode,me=se.toNode;he=he===null||a.contains(he),me=me===null||a.contains(me),(E?he&&me:he||me)&&nd(a,se,x,b,E,te)}}if(1<b)for(y=y.Ou();y.next();)nd(a,y.value,x,b-1,E,te)}else if(y instanceof Un)for(y=y.labelNodes;y.next();)nd(a,y.value,x,b,E,te)}}Ot.Object.defineProperties(Mr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?ai:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(Oa,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(la,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(cl(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&gu(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof Ki?this.type!==Gn.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:_r},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),cl(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Ir},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),cl(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(cl(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Wa},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),cl(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Hs(this)===!1&&(Um(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var te=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),I1(this,E,x,te.x,te.y),this.g("position",te,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof Ki)){var te=x.model.undoManager;te.isEnabled&&!te.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Ki?this instanceof Ki&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(te=x.model,te.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Su(x),x=x.copy(),x!==null&&Bv(this,x,y,a))):(te!==null&&te.jm(b,a),x=dS(x.partManager,b,a),x!==null&&(Su(x),x=x.copy(),x===null||x instanceof Un||(b=this.location.copy(),Bv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){Bv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(cl(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(cl(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(cl(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Un?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(cl(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(cl(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(cl(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Jo},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),cl(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(cl(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(cl(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:oo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),cl(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&$t("Cannot make a Group a member of itself: "+this.toString()),$t("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Kv(y,this):this instanceof ei&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Wv(a,this):this instanceof ei&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var te=E.wa(a!==null?a.data:null);E.mp(b,te)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof ei){for(x=new On,nd(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof nr)for(b=b.linksConnected;b.next();)Sp(b.value)}if(this instanceof nr){for(x=this.linksConnected;x.next();)Sp(x.value);x=this.labeledLink,x!==null&&Sp(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&gu(y,-1,a))}}else $t("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(cl(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof nr&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(cl(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(cl(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:_i},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),cl(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(cl(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(cl(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Mr.prototype.invalidateLayout=Mr.prototype.C,Mr.prototype.findCommonContainingGroup=Mr.prototype.px,Mr.prototype.isMemberOf=Mr.prototype.Td,Mr.prototype.findTopLevelPart=Mr.prototype.sz,Mr.prototype.findSubGraphLevel=Mr.prototype.oz,Mr.prototype.ensureBounds=Mr.prototype.Va,Mr.prototype.getDocumentBounds=Mr.prototype.mi,Mr.prototype.findObject=Mr.prototype.fb,Mr.prototype.moveTo=Mr.prototype.moveTo,Mr.prototype.invalidateAdornments=Mr.prototype.Wb,Mr.prototype.clearAdornments=Mr.prototype.Ej,Mr.prototype.removeAdornment=Mr.prototype.Jf,Mr.prototype.addAdornment=Mr.prototype.bh,Mr.prototype.findAdornment=Mr.prototype.Pj,Mr.prototype.updateTargetBindings=Mr.prototype.La;var $1=!1;Mr.className="Part",Mr.LayoutNone=0,Mr.LayoutAdded=1,Mr.LayoutRemoved=2,Mr.LayoutShown=4,Mr.LayoutHidden=8,Mr.LayoutNodeSized=16,Mr.LayoutGroupLayout=32,Mr.LayoutNodeReplaced=64,Mr.LayoutStandard=127,Mr.LayoutAll=16777215;function Ki(a,y){a===void 0||a instanceof Ha||typeof a=="string"?Mr.call(this,a):(Mr.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}cn(Ki,Mr),Ki.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ki.prototype.updateRelationshipsFromData=function(){},Ki.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Un&&y instanceof di){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof di&&(E.ua=a)}}},Ki.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Hs(a))},Ki.prototype.Zc=function(){return!1},Ki.prototype.gk=function(a,y,x,b,E,te,ne){if(a===la&&y==="elements"){if(E instanceof Ws)this.$a===null&&(this.$a=E);else if(E instanceof Gn){var se=E.Nl(function(he){return he instanceof Ws});se instanceof Ws&&this.$a===null&&(this.$a=se)}}else a===Oa&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Gn&&this.$a.rg(b)&&(this.$a=null));Mr.prototype.gk.call(this,a,y,x,b,E,te,ne)},Ki.prototype.updateAdornments=function(){},Ki.prototype.Lj=function(){},Ot.Object.defineProperties(Ki.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Ki.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Il,this.er=Zm,this.Kr=this.ij=this.Nq=this.Mq=null}Gv.prototype.copy=function(){var a=new Gv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function nr(a,y){a===void 0||a instanceof Ha||typeof a=="string"?Mr.call(this,a):(Mr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Tn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}cn(nr,Mr),nr.prototype.cloneProtected=function(a){Mr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},ot=nr.prototype,ot.Af=function(a){Mr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Mh(a){a.Ba===null?a.Ba=new Gv:a.Ba.nc&&(a.Ba=a.Ba.copy())}ot.th=function(){Mr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function G1(a,y){y!==null&&(a.af===null&&(a.af=new On),a.af.add(y))}function H1(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var te=E.value;if(te.Ds===a&&te.cv===y&&te.Ox===x&&te.Px===b||te.Ds===y&&te.cv===a&&te.Ox===b&&te.Px===x)return te}return null}ot.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=H1(this,a,y,x),a!==null&&a.Sl()},ot.gk=function(a,y,x,b,E,te,ne){a===la&&y==="elements"?this.wc=null:a===Oa&&y==="elements"&&(this.wc=null),Mr.prototype.gk.call(this,a,y,x,b,E,te,ne)},ot.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Ll(x.fromPort),Ll(x.toPort),x.bb())}};function U1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Ll(x.fromPort),Ll(x.toPort),x.bb())}}function Ll(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Ll(y.port)}}ot.si=function(){return!0},nr.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},nr.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},nr.prototype.isVisible=function(){if(!Mr.prototype.isVisible.call(this))return!1;var a=!0,y=wh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===wh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===ja){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===ip&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},nr.prototype.Zb=function(a){Mr.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},nr.prototype.qx=function(){var a=new On,y=new On;return W1(this,this,a,y),y.iterator};function W1(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,te=a.diagram;te!==null&&(E=te.isTreePathToChildren),y.linksConnected.each(function(ne){ne.isTreeLink?(E?ne.fromNode===y:ne.toNode===y)&&W1(a,E?ne.toNode:ne.fromNode,x,b):b.add(ne)})}}nr.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new br(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},ot=nr.prototype,ot.Mo=function(a){a===void 0&&(a=null);var y=new br(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},ot.Sd=function(a){a===void 0&&(a=null);var y=new br(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},ot.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new On,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new On,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Br(x):ai},ot.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new On,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Br(x):ai},ot.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new On,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Br(x):ai},ot.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new br(this.jb),E=this;return b.predicate=function(te){return!((te.fromNode!==E||te.toNode!==a||y!==null&&te.fromPortId!==y||x!==null&&te.toPortId!==x)&&(te.fromNode!==a||te.toNode!==E||x!==null&&te.fromPortId!==x||y!==null&&te.toPortId!==y))},b},ot.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new br(this.jb),E=this;return b.predicate=function(te){return!(te.fromNode!==E||te.toNode!==a||y!==null&&te.fromPortId!==y||x!==null&&te.toPortId!==x)},b};function Km(a,y,x){Ll(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var te=!0,ne=a.diagram;ne!==null&&(te=ne.aa,ne.aa=!0),E(a,y,x),ne!==null&&(ne.aa=te)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,te=b?x:y,E.ci||(E.ci=te),!te.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===te&&(te.isTreeLeaf=!1):y===te&&(te.isTreeLeaf=!1))))}function Vm(a,y,x){Ll(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var te=a.linkDisconnected;if(E=a.diagram,te!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),te(a,y,x),E!==null&&(E.aa=ne)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Sg(y)))}function Sg(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}nr.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},ot=nr.prototype,ot.Vo=function(a){Mr.prototype.Vo.call(this,a),a||(Sg(this),a=this.Yk,a!==null&&eS(a,this))},ot.Wo=function(a){Mr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},ot.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,Mr.prototype.Lj.call(this)},ot.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;K1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function K1(a){a.wc===null?a.wc=new cr:a.wc.clear(),a.qm(a,function(y,x){V1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function V1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Hv(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=pn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);kn(x)}}}ot.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},ot.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},ot.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Wm(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)Wm(y,!1),y=y.pg();return x},ot.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},ot.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof nr)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},ot.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new On;return a(this,y),y},ot.uz=function(){return Z1(this,this)};function Z1(a,y){return y=y.pg(),y===null?0:1+Z1(a,y)}ot.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new br(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},ot.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Tn,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Tn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Br(x):ai},ot.wz=function(a){a===void 0&&(a=1/0);var y=new On;return nd(y,this,!1,a,!0),y},nr.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new On;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===wh),y.Ue=!1}};function X1(a,y,x,b,E,te,ne){if(1<b)for(var se=x?a.Mo():a.Sd();se.next();){var he=se.value;he.isTreeLink&&(he=he.To(a),he===null||he===a||y.contains(he)||(y.add(he),X1(he,y,x,b-1,E,te,ne)))}else Y1(a,y,x,E,te,ne)}function Y1(a,y,x,b,E,te){for(var ne=E===a?!0:a.isTreeExpanded,se=x?a.Mo():a.Sd(),he={};se.next();){var me=se.value;if(me.isTreeLink&&(me=me.To(a),me!==null&&me!==a)){var Se=y.contains(me);if(Se||y.add(me),ne){var De=x?me.Oo():me.Po();he.uv=a,De.all(function(We){return function(qe){return qe===We.uv||!qe.isTreeExpanded}}(he))&&b.Aj(me,E),me.oh(),me.Zb(!1)}me.isTreeExpanded&&(me.wasTreeExpanded=me.isTreeExpanded,Se||Y1(me,y,x,b,E,te))}he={uv:he.uv}}a.isTreeExpanded=!1}nr.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new On;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===wh),y.Ue=!1}};function J1(a,y,x,b,E,te,ne){for(var se=te===a?!1:a.isTreeExpanded,he=x?a.Mo():a.Sd(),me={};he.next();){var Se=he.value;if(Se.isTreeLink&&(se||Se.fd||Se.bb(),Se=Se.To(a),Se!==null&&Se!==a&&!y.contains(Se))){if(y.add(Se),!se){Se.Zb(!0),Se.oh();var De=x?Se.Oo():Se.Po();me.vv=a,De.all(function(We){return function(qe){return qe===We.vv||!qe.isTreeExpanded}}(me))&&E.Cj(Se,te)}(2<b||Se.wasTreeExpanded)&&(Se.wasTreeExpanded=!1,J1(Se,y,x,b-1,E,te,ne))}me={vv:me.vv}}a.isTreeExpanded=!0}Ot.Object.defineProperties(nr.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Zm},set:function(a){var y=this.portSpreading;y!==a&&(Mh(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&Sh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Il},set:function(a){typeof a=="number"&&(a=new Tr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Mh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Sh(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Mh(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Mh(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Mh(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,te=x.model;if(E!==null&&te.ri()){var ne=te.wa(b);ne!==void 0&&te.Qx(E,ne)}}this.containingGroup=null}this.Yk=a,a!==null&&(eS(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),Gs(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&K1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Mh(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),nr.prototype.expandTree=nr.prototype.expandTree,nr.prototype.collapseTree=nr.prototype.collapseTree,nr.prototype.findTreeParts=nr.prototype.wz,nr.prototype.findTreeChildrenNodes=nr.prototype.Ou,nr.prototype.findTreeChildrenLinks=nr.prototype.Qo,nr.prototype.findTreeLevel=nr.prototype.uz,nr.prototype.findTreeParentChain=nr.prototype.vz,nr.prototype.findTreeParentNode=nr.prototype.pg,nr.prototype.findTreeParentLink=nr.prototype.kh,nr.prototype.findCommonTreeParent=nr.prototype.gz,nr.prototype.findTreeRoot=nr.prototype.xz,nr.prototype.isInTreeOf=nr.prototype.Nz,nr.prototype.findPort=nr.prototype.ns,nr.prototype.findLinksTo=nr.prototype.kz,nr.prototype.findLinksBetween=nr.prototype.jz,nr.prototype.findNodesInto=nr.prototype.Oo,nr.prototype.findNodesOutOf=nr.prototype.Po,nr.prototype.findNodesConnected=nr.prototype.Mu,nr.prototype.findLinksInto=nr.prototype.Sd,nr.prototype.findLinksOutOf=nr.prototype.Mo,nr.prototype.findExternalTreeLinksConnected=nr.prototype.qx,nr.prototype.invalidateConnectedLinks=nr.prototype.Bd,nr.prototype.invalidateLinkBundle=nr.prototype.Lz;var Ex=new vn(nr,"SpreadingNone",10),Zm=new vn(nr,"SpreadingEvenly",11),Uv=new vn(nr,"SpreadingPacked",12);nr.className="Node",nr.SpreadingNone=Ex,nr.SpreadingEvenly=Zm,nr.SpreadingPacked=Uv;function ei(a,y){a===void 0||a instanceof Ha||typeof a=="string"?nr.call(this,a):(nr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new On,this.$a=null,this.Sc=new _o,this.Sc.group=this,this.gl=new On,this.tb=this.$p=null,y&&Object.assign(this,y)}cn(ei,nr),ei.prototype.cloneProtected=function(a){nr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Ws});y instanceof Ws?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},ot=ei.prototype,ot.Af=function(a){nr.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof nr)x.Bd(y);else if(x instanceof Un)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},ot.gk=function(a,y,x,b,E,te,ne){if(a===la&&y==="elements"){if(E instanceof Ws)this.$a===null?this.$a=E:this.$a!==E&&$t("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Gn){var se=E.Nl(function(he){return he instanceof Ws});se instanceof Ws&&(this.$a===null?this.$a=se:this.$a!==se&&$t("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Oa&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Gn&&this.$a.rg(b)&&(this.$a=null));nr.prototype.gk.call(this,a,y,x,b,E,te,ne)},ot.Xl=function(a,y){nr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Gn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Gn&&(a=a.Pb()),this.tb===null&&(this.tb=new wn),a.mi(this.tb),a instanceof di&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},ot.eh=function(a,y,x,b){this.nf=this.$a,nr.prototype.eh.call(this,a,y,x,b)},ot.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Un||y.Va()}),nr.prototype.Va.call(this)},ot.si=function(){if(!nr.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof nr){if(y.isVisible()&&Hs(y))return!1}else if(y instanceof Un&&y.isVisible()&&Hs(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Wv(a,y){if(a.Gn.add(y)){y instanceof ei&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Un&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Kv(a,y){if(a.Gn.remove(y)){y instanceof ei&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Un&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}ot.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}nr.prototype.Lj.call(this)},ei.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=yn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},ei.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=yn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},ei.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},ot=ei.prototype,ot.Bd=function(a){var y=(this.U&65536)!==0;if(nr.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(Ll(x.fromPort),Ll(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Ll(x.fromPort),Ll(x.toPort),x.bb()))}}},ot.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new On,b=y.iterator;b.next();){var E=b.value;if(E instanceof nr)for(E=E.linksConnected;E.next();){var te=E.value;y.contains(te)||x.add(te)}}return a&&(this.$p=x),x.iterator},ot.iz=function(){var a=this.Rj();a.add(this);for(var y=new On,x=a.iterator;x.next();){var b=x.value;if(b instanceof nr)for(b=b.linksConnected;b.next();){var E=b.value,te=E.fromNode;te===null||a.contains(te)&&te!==this||y.add(te),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},ot.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new On;return a(this,y),y},ot.Rj=function(){var a=new On;return nd(a,this,!0,0,!0),a.remove(this),a},ot.Zb=function(a){nr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},ei.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();Q1(this,y,a,this),a.Ue=!1}};function Q1(a,y,x,b){for(var E=a.memberParts;E.next();){var te=E.value;if(te.Zb(!1),te instanceof ei&&te.isSubGraphExpanded&&(te.wasSubGraphExpanded=te.isSubGraphExpanded,Q1(te,y,x,b)),te instanceof nr)te.Bd(y),x.Aj(te,b);else if(te instanceof Un)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!1}ei.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();q1(this,y,a,this),a.Ue=!1}};function q1(a,y,x,b){for(var E=a.memberParts;E.next();){var te=E.value;if(te.Zb(!0),te instanceof ei&&te.wasSubGraphExpanded&&(te.wasSubGraphExpanded=!1,q1(te,y,x,b)),te instanceof nr)te.Bd(y),x.Cj(te,b);else if(te instanceof Un)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!0}ei.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,te=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===te||isNaN(x)&&isNaN(te))){for(b=E-(isNaN(b)?0:b),x=te-(isNaN(x)?0:x),te=Lt.alloc(),nr.prototype.move.call(this,a,y),a=new On,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Un&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof nr&&E.isLinkLabel)){var ne=E.position,se=E.location;ne.w()?(te.x=ne.x+b,te.y=ne.y+x,E.position=te):se.w()&&(te.x=se.x+b,te.y=se.y+x,E.location=te)}for(y.reset();y.next();)E=y.value,E instanceof Un&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(ne=E.position,te.x=ne.x+b,te.y=ne.y+x,te.w()?E.move(te):E.bb(),Zv(E)&&E.bb());Lt.free(te)}},Ot.Object.defineProperties(ei.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&$t("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Mh(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Mh(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Mh(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Mh(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),ei.prototype.expandSubGraph=ei.prototype.expandSubGraph,ei.prototype.collapseSubGraph=ei.prototype.collapseSubGraph,ei.prototype.findSubGraphParts=ei.prototype.Rj,ei.prototype.findContainingGroupChain=ei.prototype.hz,ei.prototype.findExternalNodesConnected=ei.prototype.iz,ei.prototype.findExternalLinksConnected=ei.prototype.Lu,ei.prototype.ensureBounds=ei.prototype.Va,ei.className="Group";function Ws(a){Yt.call(this),this.yb=Cs,this.ko=new wn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}cn(Ws,Yt),Ws.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Ws.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return No(0,0,y.width,y.height,a.x,a.y)},Ws.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof ei||a instanceof Ki)||$t("Placeholder is not inside a Group or Adornment."),a instanceof ei){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(ma(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Lt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Lt.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,te=a.adornedObject;a.angle=te.li();var ne=0;te instanceof di&&(ne=te.strokeWidth);var se=te.Df(),he=te.naturalBounds,me=(he.width+ne)*se;ne=(he.height+ne)*se,a.type!==Gn.Link&&(se=te.ga(a.category==="Selection"?Wa:a.locationSpot,Lt.alloc()),a.location=se,Lt.free(se)),isNaN(me)||isNaN(ne)?(a=te.ga(Wa,Lt.alloc()),me=wn.allocAt(a.x,a.y,0,0),me.Ye(te.ga(As,a)),me.Ye(te.ga(Dl,a)),me.Ye(te.ga(tl,a)),ma(y,me.width+b||0,me.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Lt.free(a),wn.free(me)):(ma(y,me+b||0,ne+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Ws.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Ws.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof ei&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=wn.alloc(),E=this.computeMemberBounds(x);var te=this.yb;return y instanceof ei&&!y.isSubGraphExpanded?a.h(E.x-te.left,E.y-te.top,0,0):a.h(E.x-te.left,E.y-te.top,Math.max(E.width+te.left+te.right,0),Math.max(E.height+te.top+te.bottom,0)),wn.free(x),b&&y instanceof ei&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Ws.prototype.computeMemberBounds=function(a){if(!(this.part instanceof ei))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,te=-1/0,ne=y.memberParts;ne.next();){var se=ne.value;if(se.isVisible()){if(se instanceof Un&&(!y.computesBoundsIncludingLinks||Vl(se)||se.fromNode===y||se.toNode===y))continue;se=se.actualBounds,se.left<x&&(x=se.left),se.top<b&&(b=se.top),se.right>E&&(E=se.right),se.bottom>te&&(te=se.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,te-b):(y=y.location,a.h(y.x,y.y,0,0)),a},Ot.Object.defineProperties(Ws.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Tr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Ws.className="Placeholder";function Un(a){Mr.call(this,Gn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ks,this.Om=0,this.Qm=Ks,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new Tn().freeze(),this.Tg=this.Mg=null,this.ml=new wn,this.ua=new Vn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Lt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}cn(Un,Mr),Un.prototype.cloneProtected=function(a){Mr.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},ot=Un.prototype,ot.Af=function(a){Mr.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Ll(y),a=a.toPort,a!==null&&Ll(a)},ot.qb=function(a){a.classType===Un?(a.value&2)===2?this.routing=a:a===Xl||a===kh||a===wp?this.curve=a:a===bg||a===e0||a===t0?this.adjusting=a:a!==Jv&&a!==Ks&&$t("Unknown Link enum value for a Link property: "+a):Mr.prototype.qb.call(this,a)},ot.Xc=function(){this.ba===null&&(this.ba=new lg)},ot.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Hs(a)||ed(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Hs(a)||ed(a)))},ot.zv=function(){return!1},ot.Av=function(){},ot.Zc=function(){return!1},Un.prototype.computeAngle=function(a,y,x){return Un.computeAngle(y,x)},Un.computeAngle=function(a,y){switch(a){default:case Ks:a=0;break;case Pg:a=y;break;case Cg:a=y+90;break;case Eg:a=y-90;break;case Qv:a=y+180;break;case n0:a=Qt.bp(y),90<a&&270>a&&(a-=180);break;case Tg:a=Qt.bp(y+90),90<a&&270>a&&(a-=180);break;case Mg:a=Qt.bp(y-90),90<a&&270>a&&(a-=180);break;case r0:if(a=Qt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Qt.bp(a)};function Sp(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Kv(x,a),a.Ah=y,y!==null&&Wv(y,a);var E=a.containingGroupChanged;if(E!==null){var te=!0,ne=a.diagram;ne!==null&&(te=ne.aa,ne.aa=!0),E(a,x,y),ne!==null&&(ne.aa=te)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}ot=Un.prototype,ot.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Mr.prototype.oh.call(this)},ot.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},ot.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function eS(a,y){a.wd===null&&(a.wd=new On),a.wd.add(y),a.v()}ot.Vo=function(a){if(Mr.prototype.Vo.call(this,a),Zd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Km(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Km(x,this,b)}xg(this)}},ot.Wo=function(a){if(Mr.prototype.Wo.call(this,a),Zd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Vm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Vm(x,this,b)}wg(this)}},ot.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Un.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Un.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?Mr.prototype.move.call(this,a,!1):(a=Lt.allocAt(x.x+b,x.y+E),Mr.prototype.move.call(this,a,!1),Lt.free(a)),Lh(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Un.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Un.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Un.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Ji),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Xl))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===Xl){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Qt.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var te=this.i(x+2);x=this.i(x+3),Qt.ax(b.x,b.y,E.x,E.y,te.x,te.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ne=this.flattenedLengths;for(x=this.flattenedTotalLength,E=te=b=0;b<x/2&&te<y&&(E=ne[te],!(b+E>x/2));)b+=E,te++;return y=this.i(te),te=this.i(te+1),1>Math.abs(y.x-te.x)?y.y>te.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-te.y)?y.x>te.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(te.x-y.x),y.y+x*(te.y-y.y))),a},Un.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Xl))return this.ua.wx(.5);if(this.computeCurve()===Xl&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),Qt.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var te;E<b/2&&x<a&&(te=y[x],!(E+te>b/2));)E+=te,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},ot=Un.prototype,ot.i=function(a){return this.Nb.s[a]},ot.dd=function(a,y){this.Nb.cd(a,y)},ot.L=function(a,y,x){this.Nb.cd(a,new Lt(y,x))},ot.Kz=function(a,y){this.Nb.Gb(a,y)},ot.m=function(a,y,x){this.Nb.Gb(a,new Lt(y,x))},ot.ne=function(a){this.Nb.add(a)},ot.yf=function(a,y){this.Nb.add(new Lt(a,y))},ot.pv=function(a){this.Nb.mb(a)},ot.Fj=function(){this.Nb.clear()};function Lh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new Tn,te=a.Nb.iterator;te.next();){var ne=te.value;E.add(new Lt(ne.x+y,ne.y+x).freeze())}E.freeze(),te=a.Nb,a.Nb=E,ne=a.diagram,isNaN(y)||isNaN(x)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),Gs(a)),b?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&ko(ne.animationManager,a,E),a.g("points",te,E)}}ot.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},ot.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];x=Math.min(se.x,x),b=Math.min(se.y,b)}se=ne=1/0;for(var he=y.s,me=he.length,Se=0;Se<me;Se++){var De=he[Se];ne=Math.min(De.x,ne),se=Math.min(De.y,se),De.freeze()}if(y.freeze(),me===te){for(te=0;te<me;te++)if(Se=E[te],De=he[te],Se.x-x!==De.x-ne||Se.y-b!==De.y-se){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&ko(x.animationManager,this,y),Xm(this),this.g("points",a,y)}},ot.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Xm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),qm(a,!1))}ot.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},ot.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},Un.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Tf||(Tf=new nr,Tf.desiredSize=li,Tf.Va()),this.defaultFromPoint&&(Tf.location=this.defaultFromPoint,Tf.Va(),y=a=Tf)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(Mf||(Mf=new nr,Mf.desiredSize=li,Mf.Va()),this.defaultToPoint&&(Mf.location=this.defaultToPoint,Mf.Va(),E=b=Mf)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var te=this.pointsCount,ne=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var se=xp(ne),he=xp(x),me=y===E&&y!==null,Se=this.isOrthogonal,De=this.curve===Xl;this.Wf=me&&!Se?De=!0:!1;var We=this.computeAdjusting()===Ks||me;if(!Se&&!me&&se&&he){if(se=!1,!We&&3<=te&&(We=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),se=this.adjustPoints(0,We,te-1,he))&&(We=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,We,te-1,he)),!se)if(this.Fj(),De){te=this.getLinkPoint(a,y,ne,!0,!1,b,E),We=this.getLinkPoint(b,E,x,!1,!1,a,y),se=We.x-te.x,he=We.y-te.y,me=this.computeCurviness(),De=Se=0;var qe=te.x+se/3,nt=te.y+he/3,lt=qe,At=nt;Qt.B(he,0)?At=0<se?At-me:At+me:(Se=-se/he,De=Math.sqrt(me*me/(Se*Se+1)),0>me&&(De=-De),lt=(0>he?-1:1)*De+qe,At=Se*(lt-qe)+nt),qe=te.x+2*se/3,nt=te.y+2*he/3;var Tt=qe,Bt=nt;Qt.B(he,0)?Bt=0<se?Bt-me:Bt+me:(Tt=(0>he?-1:1)*De+qe,Bt=Se*(Tt-qe)+nt),this.Fj(),this.ne(te),this.yf(lt,At),this.yf(Tt,Bt),this.ne(We),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else te=b,We=E,b=this.getLinkPoint(a,y,ne,!0,!1,te,We),E=this.getLinkPoint(te,We,x,!1,!1,a,y),this.hasCurviness()?(We=E.x-b.x,x=E.y-b.y,ne=this.computeCurviness(),a=b.x+We/2,y=b.y+x/2,te=a,se=y,Qt.B(x,0)?se=0<We?se-ne:se+ne:(We=-We/x,te=Math.sqrt(ne*ne/(We*We+1)),0>ne&&(te=-te),te=(0>x?-1:1)*te+a,se=We*(te-a)+y),this.ne(b),this.yf(te,se),this.ne(E)):(this.ne(b),this.ne(E),se=wn.alloc(),y.mi(se),he=se.ca(E),We.mi(se),me=se.ca(b),(he||me)&&(ne=y.ga(Jm(ne),new Lt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,E,!0,ne)),x=We.ga(Jm(x),new Lt),this.dd(1,this.getLinkPointFromPoint(te,We,x,b,!1,x))),wn.free(se))}else{De=this.isAvoiding,We&&(Se&&De||me)&&this.Fj();var _t=me?this.computeCurviness():0;De=this.getLinkPoint(a,y,ne,!0,Se,b,E),qe=lt=nt=0,(Se||!se||me)&&(At=this.computeEndSegmentLength(a,y,ne,!0),qe=this.getLinkDirection(a,y,De,ne,!0,Se,b,E),me&&(se||ne.D(x)||!Se&&ne.x+x.x===1&&ne.y+x.y===1)&&(qe-=Se?90:30,0>_t&&(qe-=180)),0>qe?qe+=360:360<=qe&&(qe-=360),me&&(At+=Math.abs(_t)*(Se?1:2)),qe===0?nt=At:qe===90?lt=At:qe===180?nt=-At:qe===270?lt=-At:(nt=At*Math.cos(qe*Math.PI/180),lt=At*Math.sin(qe*Math.PI/180)),ne.Mc()&&me&&(At=y.ga(Di,Lt.alloc()),Tt=Lt.allocAt(At.x+1e3*nt,At.y+1e3*lt),this.getLinkPointFromPoint(a,y,At,Tt,!0,De),Lt.free(At),Lt.free(Tt))),At=this.getLinkPoint(b,E,x,!1,Se,a,y);var Gt=Bt=Tt=0;if(Se||!he||me){var Zt=this.computeEndSegmentLength(b,E,x,!1);Gt=this.getLinkDirection(b,E,At,x,!1,Se,a,y),me&&(he||ne.D(x)||!Se&&ne.x+x.x===1&&ne.y+x.y===1)&&(Gt+=Se?0:30,0>_t&&(Gt+=180)),0>Gt?Gt+=360:360<=Gt&&(Gt-=360),me&&(Zt+=Math.abs(_t)*(Se?1:2)),Gt===0?Tt=Zt:Gt===90?Bt=Zt:Gt===180?Tt=-Zt:Gt===270?Bt=-Zt:(Tt=Zt*Math.cos(Gt*Math.PI/180),Bt=Zt*Math.sin(Gt*Math.PI/180)),x.Mc()&&me&&(x=E.ga(Di,Lt.alloc()),ne=Lt.allocAt(x.x+1e3*Tt,x.y+1e3*Bt),this.getLinkPointFromPoint(b,E,x,ne,!1,At),Lt.free(x),Lt.free(ne))}x=De,(Se||!se||me)&&(x=new Lt(De.x+nt,De.y+lt)),ne=At,(Se||!he||me)&&(ne=new Lt(At.x+Tt,At.y+Bt)),!We&&!Se&&se&&3<te&&this.adjustPoints(0,De,te-2,ne)?this.dd(te-1,At):!We&&!Se&&he&&3<te&&this.adjustPoints(1,x,te-1,At)?this.dd(0,De):!We&&(Se?6<=te:4<te)&&this.adjustPoints(1,x,te-2,ne)?(this.dd(0,De),this.dd(te-1,At)):(this.Fj(),this.ne(De),(Se||!se||me)&&this.ne(x),Se&&this.addOrthoPoints(x,qe,ne,Gt,a,b),(Se||!he||me)&&this.ne(ne),this.ne(At))}return!0};function Vv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Un.prototype.getLinkPointFromPoint=function(a,y,x,b,E,te){if(te===void 0&&(te=new Lt),a===null||y===null)return te.assign(x),te;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var ne=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*E;var se=-a.m12*E,he=-a.m21*E,me=a.m11*E,Se=E*(a.m21*a.dy-a.m22*a.dx),De=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ne+b.y*he+Se,b=b.x*se+b.y*me+De,ne=x.x*ne+x.y*he+Se,x=x.x*se+x.y*me+De}return y.Sj(E,b,ne,x,te),a!==null&&te.transform(a),te};function Ym(a,y){var x=y.Zn;return x===null&&(x=new Lf,x.port=y,x.node=y.part,y.Zn=x),lS(x,a)}Un.prototype.getLinkPoint=function(a,y,x,b,E,te,ne,se){if(se===void 0&&(se=new Lt),x.sb()&&!xp(x))return y.ga(x,se),se;if(x.$c()){var he=Ym(this,y);if(he!==null){if(se.assign(he.Zo),E&&this.routing===nS){var me=Ym(this,ne);if(me!==null&&he.Gl<me.Gl){he=Lt.alloc(),me=Lt.alloc();var Se=new wn(y.ga(Wa,he),y.ga(As,me)),De=this.computeSpot(!b,ne);a=this.getLinkPoint(te,ne,De,!b,E,a,y,me),(x.Hf(Ru)||x.Hf(_s))&&a.y>=Se.y&&a.y<=Se.y+Se.height?se.y=a.y:(x.Hf(Eu)||x.Hf(dl))&&a.x>=Se.x&&a.x<=Se.x+Se.width&&(se.x=a.x),Lt.free(he),Lt.free(me)}}return se}}return x=y.ga(Jm(x),Lt.alloc()),this.pointsCount>(E?6:2)?(ne=b?this.i(1):this.i(this.pointsCount-2),E&&(ne=Vv(x,ne.copy()))):(he=this.computeSpot(!b,ne),te=Lt.alloc(),ne=ne.ga(Jm(he),te),E&&(ne=Vv(x,ne)),Lt.free(te)),this.getLinkPointFromPoint(a,y,x,ne,b,se),Lt.free(x),se},Un.prototype.getLinkDirection=function(a,y,x,b,E,te,ne,se){e:if(b.sb())var he=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(he=Ym(this,y),he!==null))switch(he.Nc){case 1:he=270;break e;case 2:he=180;break e;default:case 4:he=0;break e;case 8:he=90;break e}he=y.ga(Di,Lt.alloc()),this.pointsCount>(te?6:2)?(se=E?this.i(1):this.i(this.pointsCount-2),se=te?Vv(he,se.copy()):x):(x=Lt.alloc(),se=se.ga(Di,x),Lt.free(x)),x=Math.abs(se.x-he.x)>Math.abs(se.y-he.y)?se.x>=he.x?0:180:se.y>=he.y?90:270,Lt.free(he),he=x}return b.Mc()&&ne.Td(a)&&(he+=180,360<=he&&(he-=360)),xp(b)||(a=y.li(),a===0)||(45<=a&&135>a?he+=90:135<=a&&225>a?he+=180:225<=a&&315>a&&(he+=270),360<=he&&(he-=360)),he},Un.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Ym(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Un.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Di:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===oo?aa:y)):(a=y||this.toPort,a===null?a=Di:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===oo?aa:y)),a};function xp(a){return a===aa||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:Di}Un.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ks&&4<this.pointsCount?this.computeMidPoint(new Lt):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(Di))},Un.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},Un.prototype.Cf=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ne=te;if(te===void 0&&(ne=gi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return vv(this,y,x,E),te===void 0&&gi.free(ne),!0;if(this.Yc(a,ne)){var se=!1;if(!this.isAtomic)for(var he=this.O.s,me=he.length;me--;){var Se=he[me];if(Se.visible||Se===this.locationObject){var De=Se.actualBounds,We=this.naturalBounds;if(!(De.x>We.width||De.y>We.height||0>De.x+De.width||0>De.y+De.height)){if(De=gi.alloc(),De.set(ne),Se instanceof Gn)se=Se.Cf(a,y,x,b,E,De);else if(this.path===Se){if(Se instanceof di)if(se=a,We=b,Se.pickable===!1)se=!1;else if(De.multiply(Se.transform),We)e:{var qe=se,nt=De;if(Se.fh(qe,nt))se=!0;else{if(nt===void 0&&(nt=Se.transform,qe.Re(Se.actualBounds))){se=!0;break e}se=qe.left,We=qe.right;var lt=qe.top;qe=qe.bottom;var At=Lt.alloc(),Tt=Lt.alloc(),Bt=Lt.alloc(),_t=gi.alloc();_t.set(nt),_t.bv(Se.transform),_t.Vj(),Tt.x=We,Tt.y=lt,Tt.transform(_t),At.x=se,At.y=lt,At.transform(_t),nt=!1,Kd(Se,At,Tt,Bt)?nt=!0:(At.x=We,At.y=qe,At.transform(_t),Kd(Se,At,Tt,Bt)?nt=!0:(Tt.x=se,Tt.y=qe,Tt.transform(_t),Kd(Se,At,Tt,Bt)?nt=!0:(At.x=se,At.y=lt,At.transform(_t),Kd(Se,At,Tt,Bt)&&(nt=!0)))),gi.free(_t),Lt.free(At),Lt.free(Tt),Lt.free(Bt),se=nt}}else se=Se.fh(se,De)}else se=Ya(Se,a,b,De);se&&(We=Se,y!==null&&(We=y(Se)),We&&(x===null||x(We))&&E.add(We)),gi.free(De)}}}return te===void 0&&gi.free(ne),se||this.background!==null||this.areaBackground!==null}return te===void 0&&gi.free(ne),!1},Un.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?Xl:this.curve},Un.prototype.computeCorner=function(){if(this.curve===Xl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Un.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Un.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=iS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,te=b.margin,ne=isNaN(E.width)?30:E.width*b.scale+te.left+te.right;E=isNaN(E.height)?14:E.height*b.scale+te.top+te.bottom,b=b.segmentOrientation,b===Pg||b===n0||b===Qv?a=Math.max(a,E):b===Eg||b===Mg||b===Cg||b===Tg?a=Math.max(a,ne):(y=y.ga(Di).ab(x.ga(Di))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*E)+1)),this.curve===Xl&&(a*=1.333)}}return a},Un.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Ks&&x.bb()}},Un.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=rS;var y=this.Sf;if(y!==null){for(var x=pn(),b=0,E=y.links,te=0;te<E.length;te++){var ne=E[te].computeSpacing();x.push(ne),b+=ne}for(b=-b/2,te=0;te<E.length;te++){if(E[te]===this){a=b+x[te]/2;break}b+=x[te]}y.Ds===this.fromNode&&(a=-a),kn(x)}}return a},Un.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Un.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Un.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===e0)return!1;E===t0&&(E=bg)}switch(E){case e0:var te=this.i(a),ne=this.i(x);if(!te.Xa(y)||!ne.Xa(b)){E=te.x,te=te.y;var se=ne.x-E,he=ne.y-te,me=Math.sqrt(se*se+he*he);if(!Qt.$(me,0)){if(Qt.$(se,0))var Se=0>he?-Math.PI/2:Math.PI/2;else Se=Math.atan(he/Math.abs(se)),0>se&&(Se=Math.PI-Se);ne=y.x;var De=y.y;se=b.x-ne;var We=b.y-De;for(he=Math.sqrt(se*se+We*We),Qt.$(se,0)?We=0>We?-Math.PI/2:Math.PI/2:(We=Math.atan(We/Math.abs(se)),0>se&&(We=Math.PI-We)),me=he/me,Se=We-Se,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),se=y.x-E,he=y.y-te,y=Math.sqrt(se*se+he*he),Qt.$(y,0)||(Qt.$(se,0)?he=0>he?-Math.PI/2:Math.PI/2:(he=Math.atan(he/Math.abs(se)),0>se&&(he=Math.PI-he)),se=he+Se,y*=me,this.L(a,ne+y*Math.cos(se),De+y*Math.sin(se)));this.dd(x,b)}}return!0;case t0:if(te=this.i(a),De=this.i(x),!te.Xa(y)||!De.Xa(b)){E=te.x,te=te.y,ne=De.x,De=De.y,me=(ne-E)*(ne-E)+(De-te)*(De-te),se=y.x,Se=y.y,he=b.x,We=b.y;var qe=1;if(he-se!==0){var nt=(We-Se)/(he-se);qe=Math.sqrt(1+1/(nt*nt))}else nt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var lt=y.x,At=y.y,Tt=.5;me!==0&&(Tt=((E-lt)*(E-ne)+(te-At)*(te-De))/me);var Bt=E+Tt*(ne-E),_t=te+Tt*(De-te);y=Math.sqrt((lt-Bt)*(lt-Bt)+(At-_t)*(At-_t)),At<nt*(lt-Bt)+_t&&(y=-y),0<nt&&(y=-y),lt=se+Tt*(he-se),Tt=Se+Tt*(We-Se),nt!==0?(y=lt+y/qe,this.L(a,y,Tt-(y-lt)/nt)):this.L(a,lt,Tt+y)}this.dd(x,b)}return!0;case bg:e:{if(this.isOrthogonal&&(E=this.i(a),te=this.i(a+1),ne=this.i(a+2),se=te.x,Se=te.y,De=se,me=Se,Qt.B(E.y,te.y)?Qt.B(te.x,ne.x)?Se=y.y:Qt.B(te.y,ne.y)&&(se=y.x):Qt.B(E.x,te.x)&&(Qt.B(te.y,ne.y)?se=y.x:Qt.B(te.x,ne.x)&&(Se=y.y)),this.L(a+1,se,Se),E=this.i(x),te=this.i(x-1),ne=this.i(x-2),se=te.x,Se=te.y,he=se,We=Se,Qt.B(E.y,te.y)?Qt.B(te.x,ne.x)?Se=b.y:Qt.B(te.y,ne.y)&&(se=b.x):Qt.B(E.x,te.x)&&(Qt.B(te.y,ne.y)?se=b.x:Qt.B(te.x,ne.x)&&(Se=b.y)),this.L(x-1,se,Se),Zv(this))){this.L(a+1,De,me),this.L(x-1,he,We),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Un.prototype.addOrthoPoints=function(a,y,x,b,E,te){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var ne=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var se=E.actualBounds.copy(),he=te.actualBounds.copy();if(se.w()&&he.w()){se.Bc(Lg,Lg),he.Bc(Lg,Lg),se.Ye(a),he.Ye(x);var me=Lt.alloc(),Se=Lt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&he.right>a.x||b===90&&x.y>a.y&&he.right>a.x?(me.h(x.x,a.y),Se.h(x.x,(a.y+x.y)/2),b===180?(me.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),Se.x=me.x,Se.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(me.x=a.x<he.left?this.computeMidOrthoPosition(a.x,a.y,he.left,x.y,!1):a.x<he.right&&(b===270&&a.y<he.top||b===90&&a.y>he.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):he.right,Se.x=me.x,Se.y=x.y):b===0&&a.x<he.left&&a.y>he.top&&a.y<he.bottom&&(me.x=a.x,me.y=a.y<x.y?Math.min(x.y,he.top):Math.max(x.y,he.bottom),Se.y=me.y)):(me.h(a.x,x.y),Se.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<se.top||b===270&&x.y>se.bottom)&&(b===180&&(he.ca(a)||se.ca(x))?me.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?me.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,he.bottom),!0):x.y>a.y&&(b===180||b===270)&&(me.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,he.top),!0)),Se.x=x.x,Se.y=me.y),me.y>se.top&&me.y<se.bottom&&(x.x>=se.left&&x.x<=a.x||a.x<=he.right&&a.x>=x.x?(b===90||b===270)&&(me.h(Math.max((a.x+x.x)/2,a.x),a.y),Se.h(me.x,x.y)):(me.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?se.top:Math.min(se.top,he.top)):Math.max(x.y,b===0?se.bottom:Math.max(se.bottom,he.bottom)),Se.x=x.x,Se.y=me.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&he.left<a.x||b===90&&x.y>a.y&&he.left<a.x?(me.h(x.x,a.y),Se.h(x.x,(a.y+x.y)/2),b===0?(me.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),Se.x=me.x,Se.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(me.x=a.x>he.right?this.computeMidOrthoPosition(a.x,a.y,he.right,x.y,!1):a.x>he.left&&(b===270&&a.y<he.top||b===90&&a.y>he.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):he.left,Se.x=me.x,Se.y=x.y):b===180&&a.x>he.right&&a.y>he.top&&a.y<he.bottom&&(me.x=a.x,me.y=a.y<x.y?Math.min(x.y,he.top):Math.max(x.y,he.bottom),Se.y=me.y)):(me.h(a.x,x.y),Se.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<se.top||b===270&&x.y>se.bottom)&&(b===0&&(he.ca(a)||se.ca(x))?me.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?me.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,he.bottom),!0):x.y>a.y&&(b===0||b===270)&&(me.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,he.top),!0)),Se.x=x.x,Se.y=me.y),me.y>se.top&&me.y<se.bottom&&(x.x<=se.right&&x.x>=a.x||a.x>=he.left&&a.x<=x.x?(b===90||b===270)&&(me.h(Math.min((a.x+x.x)/2,a.x),a.y),Se.h(me.x,x.y)):(me.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?se.top:Math.min(se.top,he.top)):Math.max(x.y,b===180?se.bottom:Math.max(se.bottom,he.bottom)),Se.x=x.x,Se.y=me.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&he.bottom>a.y||b===0&&x.x>a.x&&he.bottom>a.y?(me.h(a.x,x.y),Se.h((a.x+x.x)/2,x.y),b===270?(me.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),Se.x=x.x,Se.y=me.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(me.y=a.y<he.top?this.computeMidOrthoPosition(a.x,a.y,x.x,he.top,!0):a.y<he.bottom&&(b===180&&a.x<he.left||b===0&&a.x>he.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):he.bottom,Se.x=x.x,Se.y=me.y):b===90&&a.y<he.top&&a.x>he.left&&a.x<he.right&&(me.x=a.x<x.x?Math.min(x.x,he.left):Math.max(x.x,he.right),me.y=a.y,Se.x=me.x)):(me.h(x.x,a.y),Se.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<se.left||b===180&&x.x>se.right)&&(b===270&&(he.ca(a)||se.ca(x))?me.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?me.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,he.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(me.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,he.left),x.y,!1)),Se.x=me.x,Se.y=x.y),me.x>se.left&&me.x<se.right&&(x.y>=se.top&&x.y<=a.y||a.y<=he.bottom&&a.y>=x.y?(b===0||b===180)&&(me.h(a.x,Math.max((a.y+x.y)/2,a.y)),Se.h(x.x,me.y)):(me.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?se.left:Math.min(se.left,he.left)):Math.max(x.x,b===90?se.right:Math.max(se.right,he.right)),Se.x=me.x,Se.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&he.top<a.y||b===0&&x.x>a.x&&he.top<a.y?(me.h(a.x,x.y),Se.h((a.x+x.x)/2,x.y),b===90?(me.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),Se.x=x.x,Se.y=me.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(me.y=a.y>he.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,he.bottom,!0):a.y>he.top&&(b===180&&a.x<he.left||b===0&&a.x>he.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):he.top,Se.x=x.x,Se.y=me.y):b===270&&a.y>he.bottom&&a.x>he.left&&a.x<he.right&&(me.x=a.x<x.x?Math.min(x.x,he.left):Math.max(x.x,he.right),me.y=a.y,Se.x=me.x)):(me.h(x.x,a.y),Se.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<se.left||b===180&&x.x>se.right)&&(b===90&&(he.ca(a)||se.ca(x))?me.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?me.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,he.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(me.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,he.left),x.y,!1)),Se.x=me.x,Se.y=x.y),me.x>se.left&&me.x<se.right&&(x.y<=se.bottom&&x.y>=a.y||a.y>=he.top&&a.y<=x.y?(b===0||b===180)&&(me.h(a.x,Math.min((a.y+x.y)/2,a.y)),Se.h(x.x,me.y)):(me.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?se.left:Math.min(se.left,he.left)):Math.max(x.x,b===270?se.right:Math.max(se.right,he.right)),Se.x=me.x,Se.y=x.y)));var De=x;if(this.isAvoiding){var We=this.diagram;if(We===null||E===te||this.layer.isTemporary||!ep(We)||se.ca(De)&&!te.Td(E)||he.ca(a)&&!E.Td(te))y=!1;else{var qe=tp(We,!0,this.containingGroup,null);if(this.segmentIndex!==17&&qe.Yj(Math.min(a.x,me.x),Math.min(a.y,me.y),Math.abs(a.x-me.x),Math.abs(a.y-me.y))&&qe.Yj(Math.min(me.x,Se.x),Math.min(me.y,Se.y),Math.abs(me.x-Se.x),Math.abs(me.y-Se.y))&&qe.Yj(Math.min(Se.x,De.x),Math.min(Se.y,De.y),Math.abs(Se.x-De.x),Math.abs(Se.y-De.y)))y=!1;else{E=a,te=De;var nt=x=null;if(We.isVirtualized){We=qe.bounds.copy(),We.Bc(-qe.Ho,-qe.Go);var lt=Lt.alloc();bp(qe,a.x,a.y)||(Qt.Ff(We.x,We.y,We.x+We.width,We.y+We.height,a.x,a.y,me.x,me.y,lt)?(x=a=lt.copy(),y=lt.ab(me)):Qt.Ff(We.x,We.y,We.x+We.width,We.y+We.height,me.x,me.y,Se.x,Se.y,lt)?(x=a=lt.copy(),y=lt.ab(Se)):Qt.Ff(We.x,We.y,We.x+We.width,We.y+We.height,Se.x,Se.y,De.x,De.y,lt)&&(x=a=lt.copy(),y=lt.ab(De))),bp(qe,De.x,De.y)||(Qt.Ff(We.x,We.y,We.x+We.width,We.y+We.height,De.x,De.y,Se.x,Se.y,lt)?(nt=De=lt.copy(),b=Se.ab(lt)):Qt.Ff(We.x,We.y,We.x+We.width,We.y+We.height,Se.x,Se.y,me.x,me.y,lt)?(nt=De=lt.copy(),b=me.ab(lt)):Qt.Ff(We.x,We.y,We.x+We.width,We.y+We.height,me.x,me.y,a.x,a.y,lt)&&(nt=De=lt.copy(),b=a.ab(lt))),Lt.free(lt)}se=se.copy().ed(he),se.Bc(qe.Ho*qe.Os,qe.Go*qe.Os),aS(qe,a,y,De,b,se,!0),he=Ac(qe,De.x,De.y),!qe.abort&&he>=Pp&&(oS(qe),se.Bc(qe.Ho*qe.Hx,qe.Go*qe.Ix),aS(qe,a,y,De,b,se,!1),he=Ac(qe,De.x,De.y)),!qe.abort&&he<Pp&&Ac(qe,De.x,De.y)!==Oh?(Xv(this,qe,De.x,De.y,b,!0,ne),se=this.i(2),4>this.pointsCount?(y===0||y===180?(se.x=a.x,se.y=De.y):(se.x=De.x,se.y=a.y),this.L(2,se.x,se.y),this.m(3,se.x,se.y)):(ne=this.i(3),y===0||y===180?Qt.B(se.x,ne.x)?(se=y===0?Math.max(se.x,a.x):Math.min(se.x,a.x),this.L(2,se,a.y),this.L(3,se,ne.y)):Qt.B(se.y,ne.y)?(Math.abs(a.y-se.y)<=qe.Go/2&&(this.L(2,se.x,a.y),this.L(3,ne.x,a.y)),this.m(2,se.x,a.y)):this.L(2,a.x,se.y):(y===90||y===270)&&(Qt.B(se.y,ne.y)?(se=y===90?Math.max(se.y,a.y):Math.min(se.y,a.y),this.L(2,a.x,se),this.L(3,ne.x,se)):Qt.B(se.x,ne.x)?(Math.abs(a.x-se.x)<=qe.Ho/2&&(this.L(2,a.x,se.y),this.L(3,a.x,ne.y)),this.m(2,a.x,se.y)):this.L(2,se.x,a.y))),x!==null&&(a=this.i(1),ne=this.i(2),a.x!==ne.x&&a.y!==ne.y?y===0||y===180?this.m(2,a.x,ne.y):this.m(2,ne.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),nt!==null&&(b===0||b===180?this.yf(te.x,nt.y):this.yf(nt.x,te.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(me.copy()),this.ne(Se.copy())),Lt.free(me),Lt.free(Se)}},Un.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var te=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(te=this.computeCurviness()),E?(y+b)/2+te:(a+x)/2+te};function Zv(a){if(a.diagram===null||!a.isAvoiding||!ep(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=tp(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],te=y[b+1];if(!a.Yj(Math.min(E.x,te.x),Math.min(E.y,te.y),Math.abs(E.x-te.x),Math.abs(E.y-te.y)))return!0}return!1}function Xv(a,y,x,b,E,te,ne){var se=y.Ho,he=y.Go,me=Ac(y,x,b),Se=x,De=b;for(E===0?Se+=se:E===90?De+=he:E===180?Se-=se:De-=he,E!==ne&&me>Xd&&Ac(y,Se,De)!==me-1&&(Ac(y,x-se,b)===me-1?(E=180,Se=x-se,De=b):Ac(y,x+se,b)===me-1?(E=0,Se=x+se,De=b):Ac(y,x,b-he)===me-1?(E=270,Se=x,De=b-he):Ac(y,x,b+he)===me-1&&(E=90,Se=x,De=b+he));me>Xd&&Ac(y,Se,De)===me-1;)x=Se,b=De,E===0?Se+=se:E===90?De+=he:E===180?Se-=se:De-=he,--me;te?me>Xd&&(E===180||E===0?x=Math.floor(x/se)*se+se/2:(E===90||E===270)&&(b=Math.floor(b/he)*he+he/2)):(x=Math.floor(x/se)*se+se/2,b=Math.floor(b/he)*he+he/2),me>Xd&&(te=E,ne=x,Se=b,E===0?(te=90,Se+=he):E===90?(te=180,ne-=se):E===180?(te=270,Se-=he):E===270&&(te=0,ne+=se),Ac(y,ne,Se)===me-1?Xv(a,y,ne,Se,te,!1,te):(ne=x,Se=b,E===0?(te=270,Se-=he):E===90?(te=0,ne+=se):E===180?(te=90,Se+=he):E===270&&(te=180,ne-=se),Ac(y,ne,Se)===me-1&&Xv(a,y,ne,Se,te,!1,te))),a.yf(x,b)}Un.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Vi(y,a,x.x,x.y,b.x,b.y),te=0,ne=1;ne<this.pointsCount-1;ne++){x=this.i(ne+1);var se=Vi(y,a,b.x,b.y,x.x,x.y);b=x,se<E&&(te=ne,E=se)}return te},Un.prototype.qc=function(){this.lk=!1,this.v()},Un.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof di&&(E.ua=this.ua)}}},Un.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Zd(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),te=E.copy();b=this.Nb.s;var ne=this.computeCurve();if(ne===Xl&&3<=y&&!Qt.$(this.smoothness,0))if(y===3){var se=this.i(1);b=Math.min(E.x,se.x);var he=Math.min(E.y,se.y);se=this.i(2),b=Math.min(b,se.x),he=Math.min(he,se.y)}else{if(this.isOrthogonal)for(he=0;he<y;he++)se=b[he],te.x=Math.min(se.x,te.x),te.y=Math.min(se.y,te.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),he=this.i(b),te.x=Math.min(he.x,te.x),te.y=Math.min(he.y,te.y);b=te.x,he=te.y}else{for(he=0;he<y;he++)se=b[he],te.x=Math.min(se.x,te.x),te.y=Math.min(se.y,te.y);b=te.x,he=te.y}if(b-=this.su.x,he-=this.su.y,E.x-=b,E.y-=he,y!==2||Zd(this)){if(a.type=Vn.o,se=N1(a),this.computeShortLength(!0)!==0&&(E=Cf(this,E,!0,te)),yp(se,E.x,E.y,!1),ne===Xl&&3<=y&&!Qt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-he,E=this.i(2).copy(),E.x-=b,E.y-=he,this.computeShortLength(!1)!==0&&(E=Cf(this,E,!1,te)),Eh(se,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Lt.allocAt(b,he),x=Lt.alloc(),x.assign(this.i(1)),te=Lt.allocAt(b,he),E=Lt.allocAt(b,he),ne=this.i(0);for(var me,Se=this.smoothness/3,De=1;De<this.pointsCount-1;De++){me=this.i(De);var We=ne,qe=me,nt=this.i(Yv(this,me,De,!1));if((!Qt.$(We.x,qe.x)||!Qt.$(qe.x,nt.x))&&(!Qt.$(We.y,qe.y)||!Qt.$(qe.y,nt.y))){var lt=Se;isNaN(lt)&&(lt=this.smoothness/3);var At=We.x;We=We.y;var Tt=qe.x;qe=qe.y;var Bt=nt.x;nt=nt.y;var _t=lt*Qm(At,We,Tt,qe);lt*=Qm(Tt,qe,Bt,nt),Qt.$(We,qe)&&Qt.$(Tt,Bt)&&(Tt>At?nt>qe?(te.x=Tt-_t,te.y=qe-_t,E.x=Tt+lt,E.y=qe+lt):(te.x=Tt-_t,te.y=qe+_t,E.x=Tt+lt,E.y=qe-lt):nt>qe?(te.x=Tt+_t,te.y=qe-_t,E.x=Tt-lt,E.y=qe+lt):(te.x=Tt+_t,te.y=qe+_t,E.x=Tt-lt,E.y=qe-lt)),Qt.$(At,Tt)&&Qt.$(qe,nt)&&(qe>We?(Bt>Tt?(te.x=Tt-_t,te.y=qe-_t,E.x=Tt+lt):(te.x=Tt+_t,te.y=qe-_t,E.x=Tt-lt),E.y=qe+lt):(Bt>Tt?(te.x=Tt-_t,te.y=qe+_t,E.x=Tt+lt):(te.x=Tt+_t,te.y=qe+_t,E.x=Tt-lt),E.y=qe-lt)),(Qt.$(At,Tt)&&Qt.$(Tt,Bt)||Qt.$(We,qe)&&Qt.$(qe,nt))&&(At=.5*(At+Bt),We=.5*(We+nt),te.x=At,te.y=We,E.x=At,E.y=We),(De===1||De===2&&Qt.$(ne.x,this.i(0).x)&&Qt.$(ne.y,this.i(0).y))&&(x.x=.5*(ne.x+me.x),x.y=.5*(ne.y+me.y)),Eh(se,x.x-b,x.y-he,te.x-b,te.y-he,me.x-b,me.y-he),y.set(te),x.set(E),ne=me}}me=ne.x,ne=ne.y,Se=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(Se=Cf(this,Se.copy(),!1,Ii)),me=.5*(me+Se.x),ne=.5*(ne+Se.y),Eh(se,E.x-b,E.y-he,me-b,ne-he,Se.x-b,Se.y-he),Lt.free(y),Lt.free(x),Lt.free(te),Lt.free(E)}else for(x=3;x<y;x+=3)te=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),ne=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ne=Cf(this,ne.copy(),!1,Ii)),Eh(se,te.x-b,te.y-he,E.x-b,E.y-he,ne.x-b,ne.y-he);else{for(te=Lt.alloc(),te.assign(this.i(0)),E=Lt.alloc(),E.assign(te),ne=this.computeCorner(),De=1,me=0;De<y;){if(De=Yv(this,te,De,1<De),Se=this.i(De),De>=y-1){if(!te.D(Se))this.computeShortLength(!1)!==0&&(Se=Cf(this,Se.copy(),!1,Ii)),Ef(this,se,-b,-he,te,Se,x);else if(me===0)for(De=1;De<y;)E.assign(te),Se=this.i(De++),Ef(this,se,-b,-he,te,Se,x),te.assign(Se);break}if(me=Yv(this,Se,De+1,De<y-3),De=-b,At=-he,We=Se,Tt=this.i(me),lt=x,Qt.B(te.y,We.y)&&Qt.B(We.x,Tt.x))if(nt=Math.min(ne,Math.abs(We.x-E.x)/2),nt=_t=Math.min(nt,Math.abs(Tt.y-We.y)/2),Qt.B(nt,0))Ef(this,se,De,At,te,We,lt),te.assign(We);else{var Gt=We.x,Zt=We.y;qe=Gt,Bt=Zt,We.x>te.x?Gt=We.x-nt:Gt=We.x+nt,Tt.y>We.y?Bt=We.y+_t:Bt=We.y-_t,Tt=Lt.allocAt(Gt,Zt),Ef(this,se,De,At,te,Tt,lt),Lt.free(Tt),Gm(se,We.x+De,We.y+At,qe+De,Bt+At),te.h(qe,Bt)}else Qt.B(te.x,We.x)&&Qt.B(We.y,Tt.y)?(nt=Math.min(ne,Math.abs(We.y-E.y)/2),nt=_t=Math.min(nt,Math.abs(Tt.x-We.x)/2),Qt.B(_t,0)?(Ef(this,se,De,At,te,We,lt),te.assign(We)):(Gt=We.x,Zt=We.y,qe=Gt,Bt=Zt,We.y>te.y?Zt=We.y-nt:Zt=We.y+nt,Tt.x>We.x?qe=We.x+_t:qe=We.x-_t,Tt=Lt.allocAt(Gt,Zt),Ef(this,se,De,At,te,Tt,lt),Lt.free(Tt),Gm(se,We.x+De,We.y+At,qe+De,Bt+At),te.h(qe,Bt))):(Ef(this,se,De,At,te,We,lt),te.assign(We));E.assign(Se),De=me}Lt.free(te)}Hm=se}else se=this.i(1).copy(),se.x-=b,se.y-=he,this.computeShortLength(!0)!==0&&(E=Cf(this,E,!0,te)),this.computeShortLength(!1)!==0&&(se=Cf(this,se,!1,te)),a.type=Vn.j,a.startX=E.x,a.startY=E.y,a.endX=se.x,a.endY=se.y;return this.lk=!0,a};function Qm(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Qt.$(a,0)?y:Qt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Cf(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var te=a.i(1);if(x=te.x-b.x,te=te.y-b.y,b=Qm(y.x,y.y,x,te),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(te-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(te=a.i(E-2),x=te.x-b.x,te=te.y-b.y,b=Qm(y.x,y.y,x,te),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-te)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Yv(a,y,x,b){for(var E=a.pointsCount,te=y;Qt.$(y.x,te.x)&&Qt.$(y.y,te.y);){if(x>=E)return E-1;te=a.i(x++)}if(!Qt.$(y.x,te.x)&&!Qt.$(y.y,te.y))return x-1;for(var ne=te;Qt.$(y.x,te.x)&&Qt.$(te.x,ne.x)&&(!b||(y.y>=te.y?te.y>=ne.y:te.y<=ne.y))||Qt.$(y.y,te.y)&&Qt.$(te.y,ne.y)&&(!b||(y.x>=te.x?te.x>=ne.x:te.x<=ne.x));){if(x>=E)return E-1;ne=a.i(x++)}return x-2}Un.prototype.computeJumpLength=function(){return 10};function Ef(a,y,x,b,E,te,ne){if(!ne&&Zd(a)){ne=a.computeJumpLength();var se=ne/2,he=[],me=0;if(a.isVisible()&&(me=Tx(a,E,te,he)),0<me){if(Qt.B(E.y,te.y))if(E.x<te.x)for(var Se=0;Se<me;){var De=Math.max(E.x,Math.min(he[Se++]-se,te.x-ne));y.lineTo(De+x,te.y+b);for(var We=De+x,qe=Math.min(De+ne,te.x);Se<me&&(De=he[Se],De<qe+ne);)Se++,qe=Math.min(De+se,te.x);De=te.y-ne+b,qe+=x;var nt=te.y+b;a.curve===kh?yp(y,qe,nt,!1):Eh(y,We,De,qe,De,qe,nt)}else for(--me;0<=me;){for(Se=Math.min(E.x,Math.max(he[me--]+se,te.x+ne)),y.lineTo(Se+x,te.y+b),We=Se+x,De=Math.max(Se-ne,te.x);0<=me&&(Se=he[me],Se>De-ne);)me--,De=Math.max(Se-se,te.x);Se=te.y-ne+b,De+=x,qe=te.y+b,a.curve===kh?yp(y,De,qe,!1):Eh(y,We,Se,De,Se,De,qe)}else if(Qt.B(E.x,te.x))if(E.y<te.y)for(Se=0;Se<me;){for(De=Math.max(E.y,Math.min(he[Se++]-se,te.y-ne)),y.lineTo(te.x+x,De+b),We=De+b,De=Math.min(De+ne,te.y);Se<me&&(qe=he[Se],qe<De+ne);)Se++,De=Math.min(qe+se,te.y);qe=te.x-ne+x,nt=te.x+x,De+=b,a.curve===kh?yp(y,nt,De,!1):Eh(y,qe,We,qe,De,nt,De)}else for(--me;0<=me;){for(Se=Math.min(E.y,Math.max(he[me--]+se,te.y+ne)),y.lineTo(te.x+x,Se+b),We=Se+b,Se=Math.max(Se-ne,te.y);0<=me&&(De=he[me],De>Se-ne);)me--,Se=Math.max(De-se,te.y);De=te.x-ne+x,qe=te.x+x,Se+=b,a.curve===kh?yp(y,qe,Se,!1):Eh(y,De,We,De,Se,qe,Se)}}}y.lineTo(te.x+x,te.y+b)}function Tx(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var te=E.value;if(te!==null&&te.visible){te=te.Pa.s;for(var ne=te.length,se=0;se<ne;se++){var he=te[se];if(he instanceof Un){if(he===a)return 0<b.length&&b.sort(function(Se,De){return Se-De}),b.length;if(he.isVisible()&&Zd(he)){var me=he.routeBounds;me.w()&&a.routeBounds.Yc(me)&&!a.usesSamePort(he)&&(me=he.path,me!==null&&me.Ed()&&Mx(y,x,b,he))}}}}}return 0<b.length&&b.sort(function(Se,De){return Se-De}),b.length}function Mx(a,y,x,b){for(var E=Qt.B(a.y,y.y),te=b.pointsCount,ne=b.i(0),se=Lt.alloc(),he=1;he<te;he++){var me=b.i(he);if(he<te-1){var Se=b.i(he+1);if(ne.y===me.y&&me.y===Se.y){if(me.x>ne.x&&Se.x>=me.x||me.x<ne.x&&Se.x<=me.x)continue}else if(ne.x===me.x&&me.x===Se.x&&(me.y>ne.y&&Se.y>=me.y||me.y<ne.y&&Se.y<=me.y))continue}e:{Se=a.x;var De=a.y,We=y.x,qe=y.y,nt=ne.x;ne=ne.y;var lt=me.x,At=me.y;if(Qt.B(Se,We)){if(!Qt.B(De,qe)&&Qt.B(ne,At)&&Math.min(De,qe)<ne&&Math.max(De,qe)>ne&&Math.min(nt,lt)<Se&&Math.max(nt,lt)>Se&&!Qt.B(nt,lt)){se.x=Se,se.y=ne,Se=!0;break e}}else if(Qt.B(De,qe)&&Qt.B(nt,lt)&&Math.min(Se,We)<nt&&Math.max(Se,We)>nt&&Math.min(ne,At)<De&&Math.max(ne,At)>De&&!Qt.B(ne,At)){se.x=nt,se.y=De,Se=!0;break e}se.x=0,se.y=0,Se=!1}Se&&(E?x.push(se.x):x.push(se.y)),ne=me}Lt.free(se)}function Zd(a){return a=a.curve,a===wp||a===kh}function qm(a,y){(y||Zd(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Un.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var te=!1;E=E.Pa.s;for(var ne=E.length,se=0;se<ne;se++){var he=E[se];he instanceof Un&&(he===this?te=!0:te&&tS(this,he,a))}}else if(b)for(te=E.Pa.s,E=te.length,ne=0;ne<E;ne++)se=te[ne],se instanceof Un&&tS(this,se,a)}}}}};function tS(a,y,x){if(y!==null&&y.lk&&y.fd&&Zd(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Un.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Un.prototype.isVisible=function(){if(!Mr.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},Un.prototype.Zb=function(a){if(Mr.prototype.Zb.call(this,a),a&&qm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Un.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?bg:this.qk};function xg(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,te=a=null,ne=y.jb.s,se=ne.length,he=0;he<se;he++){var me=ne[he];(me.ef===y&&me.ff===b&&me.uf===x&&me.vf===E||me.ef===x&&me.ff===E&&me.uf===y&&me.vf===b)&&(te===null?te=me:(a===null&&(a=[],a.push(te)),a.push(me)))}if(a!==null){for(te=H1(y,x,b,E),te===null&&(te=new i0(y,b,x,E),G1(y,te),G1(x,te)),te.links=a,y=0;y<a.length;y++)a[y].Sf=te;te.Sl()}}}}function wg(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(En(y.links,a),y.Sl()))}Un.prototype.ph=function(){return!0},Ot.Object.defineProperties(Un.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Vm(y,this,x),wg(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,te=this.fromPortChanged;if(te!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),te(this,x,E),b!==null&&(b.aa=ne)}a!==null&&(this.uf!==a&&Km(a,this,E),xg(this),this.C(1)),this.g("fromNode",y,a),Sp(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Ll(x),wg(this),this.ff=a;var b=this.fromPort;b!==null&&Ll(b);var E=this.diagram;if(E!==null){var te=this.data,ne=E.model;te!==null&&ne.ri()&&ne.xv(te,a)}x!==b&&(this.Wf=null,this.bb(),te=this.fromPortChanged,te!==null&&(ne=!0,E!==null&&(ne=E.aa,E.aa=!0),te(this,x,b),E!==null&&(E.aa=ne))),xg(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&Vm(y,this,x),wg(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,te=this.toPortChanged;if(te!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),te(this,x,E),b!==null&&(b.aa=ne)}a!==null&&(this.ef!==a&&Km(a,this,E),xg(this),this.C(1)),this.g("toNode",y,a),Sp(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Ll(x),wg(this),this.vf=a;var b=this.toPort;b!==null&&Ll(b);var E=this.diagram;if(E!==null){var te=this.data,ne=E.model;te!==null&&ne.ri()&&ne.Cv(te,a)}x!==b&&(this.Wf=null,this.bb(),te=this.toPortChanged,te!==null&&(ne=!0,E!==null&&(ne=E.aa,E.aa=!0),te(this,x,b),E!==null&&(E.aa=ne))),xg(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:oo},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Ll(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Wn(a,">= 0",Un,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:oo},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Ll(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Wn(a,">= 0",Un,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?ai:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&Sg(this.fromNode),this.toNode!==null&&Sg(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof di?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===Xl&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var te=this.i(2);y=Math.min(te.x,y),x=Math.min(te.y,x),Qt.Dl(E.x,E.y,b.x,b.y,b.x,b.y,te.x,te.y,.5,a)}else for(te=3;te<b;te+=3){var ne=this.i(te-2);te+3>=b&&(te=b-1);var se=this.i(te-1),he=this.i(te);Qt.Dl(E.x,E.y,ne.x,ne.y,se.x,se.y,he.x,he.y,.5,a),y=Math.min(he.x,y),x=Math.min(he.y,x),E=he}else for(E=this.i(0),te=this.i(1),y=Math.min(E.x,te.x),x=Math.min(E.y,te.y),a.h(E.x,E.y,0,0),a.Ye(te),E=2;E<b;E++)te=this.i(E),y=Math.min(te.x,y),x=Math.min(te.y,x),a.Ye(te);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Lt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Xm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);Qt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Qt.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new Tn,b=0;b<a.length/2;b++)E=new Lt(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var te=a[E];if(!nn(te)||typeof te.x!="number"||isNaN(te.x)||typeof te.y!="number"||isNaN(te.y)){b=!1;break}}if(b)for(x=new Tn,b=0;b<a.length;b++)E=a[b],x.add(new Lt(E.x,E.y).freeze())}}else if(a instanceof Tn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else $t("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Xm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ko(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!xp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!xp(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),qm(this,y===kh||y===wp||a===kh||a===wp),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),qm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Un.prototype.invalidateOtherJumpOvers=Un.prototype.Xo,Un.prototype.findClosestSegment=Un.prototype.ez,Un.prototype.updateRoute=Un.prototype.vg,Un.prototype.invalidateRoute=Un.prototype.bb,Un.prototype.rollbackRoute=Un.prototype.rv,Un.prototype.commitRoute=Un.prototype.zf,Un.prototype.startRoute=Un.prototype.uh,Un.prototype.clearPoints=Un.prototype.Fj,Un.prototype.removePoint=Un.prototype.pv,Un.prototype.addPointAt=Un.prototype.yf,Un.prototype.addPoint=Un.prototype.ne,Un.prototype.insertPointAt=Un.prototype.m,Un.prototype.insertPoint=Un.prototype.Kz,Un.prototype.setPointAt=Un.prototype.L,Un.prototype.setPoint=Un.prototype.dd,Un.prototype.getPoint=Un.prototype.i,Un.prototype.getOtherPort=Un.prototype.Cz,Un.prototype.getOtherNode=Un.prototype.To;var Tf=null,Mf=null,Jv=new vn(Un,"Normal",1),Lx=new vn(Un,"Orthogonal",2),kx=new vn(Un,"AvoidsNodes",6),nS=new vn(Un,"AvoidsNodesStraight",7),Ks=new vn(Un,"None",0),Xl=new vn(Un,"Bezier",9),kh=new vn(Un,"JumpGap",10),wp=new vn(Un,"JumpOver",11),bg=new vn(Un,"End",17),e0=new vn(Un,"Scale",18),t0=new vn(Un,"Stretch",19),Pg=new vn(Un,"OrientAlong",21),Cg=new vn(Un,"OrientPlus90",22),Eg=new vn(Un,"OrientMinus90",23),Qv=new vn(Un,"OrientOpposite",24),n0=new vn(Un,"OrientUpright",25),Tg=new vn(Un,"OrientPlus90Upright",26),Mg=new vn(Un,"OrientMinus90Upright",27),r0=new vn(Un,"OrientUpright45",28),rS=16,iS=14,Lg=8;Un.className="Link",Un.Normal=Jv,Un.Orthogonal=Lx,Un.AvoidsNodes=kx,Un.AvoidsNodesStraight=nS,Un.None=Ks,Un.Bezier=Xl,Un.JumpGap=kh,Un.JumpOver=wp,Un.End=bg,Un.Scale=e0,Un.Stretch=t0,Un.OrientAlong=Pg,Un.OrientPlus90=Cg,Un.OrientMinus90=Eg,Un.OrientOpposite=Qv,Un.OrientUpright=n0,Un.OrientPlus90Upright=Tg,Un.OrientMinus90Upright=Mg,Un.OrientUpright45=r0,Un.EndSegmentStep=8,Un.CurvinessStart=rS,Un.SpacingMin=iS,Un.OrthoShortCut=Lg;function i0(a,y,x,b){pi(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}i0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},i0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},i0.className="LinkBundle";function kg(a){pi(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}kg.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=qv,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function bp(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Ac(a,y,x){return bp(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):qv}function oS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=Xd&&(x[b]=qv)}kg.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var te=y;te<=x;te++)if(E[te]===Oh)return!1}return!0};function jc(a,y,x,b,E,te,ne,se,he){if(!(y<te||y>ne||x<se||x>he)){var me=y|0,Se=x|0,De=a.ac[me][Se];if(De>=Xd&&De<Pp)for(E?Se+=b:me+=b,De+=1;te<=me&&me<=ne&&se<=Se&&Se<=he&&!(De>=a.ac[me][Se]);)a.ac[me][Se]=De,De+=1,E?Se+=b:me+=b;if(me=E?Se:me,E)if(0<b)for(x+=b;x<me;x+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he);else for(x+=b;x>me;x+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he);else if(0<b)for(y+=b;y<me;y+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he);else for(y+=b;y>me;y+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he)}}function o0(a,y,x,b,E,te,ne,se,he){y|=0,x|=0;var me=Oh,Se=Xd;for(a.ac[y][x]=Se;me===Oh&&y>te&&y<ne&&x>se&&x<he;)Se+=1,a.ac[y][x]=Se,E?x+=b:y+=b,me=a.ac[y][x]}function a0(a,y,x,b,E,te,ne,se,he){y|=0,x|=0;var me=Oh,Se=Pp;for(a.ac[y][x]=Se;me===Oh&&y>te&&y<ne&&x>se&&x<he;)a.ac[y][x]=Se,E?x+=b:y+=b,me=a.ac[y][x]}function aS(a,y,x,b,E,te,ne){if(a.ac!==null){a.abort=!1;var se=y.x,he=y.y;if(bp(a,se,he)){se-=a.Nd,se/=a.rc,he-=a.Od,he/=a.sc;var me=b.x,Se=b.y;if(bp(a,me,Se))if(me-=a.Nd,me/=a.rc,Se-=a.Od,Se/=a.sc,1>=Math.abs(se-me)&&1>=Math.abs(he-Se))a.abort=!0;else{var De=te.x;b=te.y,y=te.x+te.width;var We=te.y+te.height;De-=a.Nd,De/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,We-=a.Od,We/=a.sc,te=Math.max(0,Math.min(a.di,De|0)),y=Math.min(a.di,Math.max(0,y|0)),De=Math.max(0,Math.min(a.ei,b|0)),We=Math.min(a.ei,Math.max(0,We|0)),b=a.ac,se|=0,he|=0,me|=0,Se|=0;var qe=x===0||x===90?1:-1;if(x=x===90||x===270,b[se][he]===Oh?(o0(a,se,he,qe,x,te,y,De,We),o0(a,se,he,1,!x,te,y,De,We),o0(a,se,he,-1,!x,te,y,De,We)):o0(a,se,he,qe,x,se,he,se,he),b[me][Se]===Oh?(a0(a,me,Se,E===0||E===90?1:-1,E===90||E===270,te,y,De,We),a0(a,me,Se,1,!(E===90||E===270),te,y,De,We),a0(a,me,Se,-1,!(E===90||E===270),te,y,De,We)):a0(a,me,Se,qe,x,me,Se,me,Se),x=pn(),ne&&sS(a,me,Se,E,se,he,x))for((x[0]!==me||x[1]!==Se)&&(x.unshift(Se),x.unshift(me)),(x[x.length-2]!==se||x[x.length-1]!==he)&&(x.push(se),x.push(he)),a=Xd,E=x[x.length-2],ne=x[x.length-1],b[E][ne]=a++,te=x.length-4;0<=te;te-=2)for(E=x[te+2],ne=x[te+3],y=x[te],me=x[te+1];y>E?E++:y<E?E--:me>ne?ne++:me<ne&&ne--,b[E][ne]=a++,E!==y||ne!==me;);else jc(a,se,he,1,!1,te,y,De,We),jc(a,se,he,-1,!1,te,y,De,We),jc(a,se,he,1,!0,te,y,De,We),jc(a,se,he,-1,!0,te,y,De,We);kn(x)}}}}function sS(a,y,x,b,E,te,ne){for(var se=a.ac,he=y,me=x;;){if(he===E&&me===te)return!0;var Se=he,De=me;if(b===0)if(Se<E)Se++;else break;else if(b===90)if(De<te)De++;else break;else if(b===180)if(Se>E)Se--;else break;else if(De>te)De--;else break;var We=se[Se][De];if(We===0||We===ey)break;he=Se,me=De}for(;;){if(Se=b,De=he,We=me,b===0?We<te?(Se=90,We++):We>te&&(Se=270,We--):b===90?De<E?(Se=0,De++):De>E&&(Se=180,De--):b===180?We<te?(Se=90,We++):We>te&&(Se=270,We--):De<E?(Se=0,De++):De>E&&(Se=180,De--),De=se[De][We],Se!==b&&De!==0&&De!==ey){if(ne.push(he),ne.push(me),sS(a,he,me,Se,E,te,ne))return!0;ne.pop(),ne.pop()}if(se[he][me]=ey,b===0){if(he===y)return!1;he--}else if(b===90){if(me===x)return!1;me--}else if(b===180){if(he===y)return!1;he++}else{if(me===x)return!1;me++}}}Ot.Object.defineProperties(kg.prototype,{bounds:{get:function(){return new wn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Oh=0,Xd=1,Pp=999999,qv=Pp+1,ey=Pp+2;kg.className="PositionArray";function Lf(){pi(this),this.port=this.node=null,this.pe=[],this.ap=!1}Lf.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
|
`+b.toString())}return y};function Ox(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Lf.prototype.Sl=function(){this.pe.length=0};function lS(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,te=E instanceof ei?E:null;if(te===null||te.isSubGraphExpanded)var ne=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!te.actualBounds.w()){a.ap=x;break e}b=te,ne=b.Lu()}te=a.pe.length=0;var se=a.port.ga(Wa,Lt.alloc()),he=a.port.ga(As,Lt.alloc());for(E=wn.allocAt(se.x,se.y,0,0),E.Ye(he),Lt.free(se),Lt.free(he),se=Lt.allocAt(E.x+E.width/2,E.y+E.height/2),he=a.port.li(),ne=ne.iterator;ne.next();){var me=ne.value;if(me.isVisible()&&me.fromPort!==me.toPort){var Se=me.fromPort===a.port||me.fromNode!==null&&me.fromNode.Td(b),De=me.computeSpot(Se,a.port);if(De.$c()&&(Se=Se?me.toPort:me.fromPort,Se!==null)){var We=Se.part;if(We!==null){var qe=We.findVisibleNode();qe!==null&&qe!==We&&(We=qe,Se=We.port),Se=me.computeOtherPoint(We,Se),We=se.ab(Se),We-=he,0>We?We+=360:360<=We&&(We-=360),De=Ox(E,De,We,me.isOrthogonal),De===0?(De=4,180<We&&(We-=360)):De===90?(De=8,270<We&&(We-=360)):De===180?De=2:(De=1,90>We&&(We+=360)),qe=a.pe[te],qe===void 0?(qe=new ty(me,We,De),a.pe[te]=qe):(qe.link=me,qe.angle=We,qe.Nc=De),qe.hv.set(Se),te++}}}}for(Lt.free(se),a.pe.sort(Lf.prototype.j),he=a.pe.length,b=-1,te=se=0;te<he;te++)ne=a.pe[te],ne!==void 0&&(ne.Nc!==b&&(b=ne.Nc,se=0),ne.Uo=se,se++);for(b=-1,se=0,te=he-1;0<=te;te--)he=a.pe[te],he!==void 0&&(he.Nc!==b&&(b=he.Nc,se=he.Uo+1),he.Gl=se);if(te=a.pe,De=a.port,b=a.node.portSpreading,se=Lt.alloc(),he=Lt.alloc(),ne=Lt.alloc(),me=Lt.alloc(),De.ga(Wa,se),De.ga(Dl,he),De.ga(As,ne),De.ga(tl,me),qe=We=Se=De=0,b===Uv)for(var nt=0;nt<te.length;nt++){var lt=te[nt];if(lt!==null){var At=lt.link.computeThickness();switch(lt.Nc){case 8:We+=At;break;case 2:qe+=At;break;case 1:De+=At;break;default:case 4:Se+=At}}}var Tt=nt=0,Bt=1,_t=lt=0;for(At=0;At<te.length;At++){var Gt=te[At];if(Gt!==null){if(nt!==Gt.Nc){switch(nt=Gt.Nc,nt){case 8:var Zt=ne;Tt=me;break;case 2:Zt=me,Tt=se;break;case 1:Zt=se,Tt=he;break;default:case 4:Zt=he,Tt=ne}switch(lt=Tt.x-Zt.x,_t=Tt.y-Zt.y,nt){case 8:We>Math.abs(lt)?(Bt=Math.abs(lt)/We,We=Math.abs(lt)):Bt=1;break;case 2:qe>Math.abs(_t)?(Bt=Math.abs(_t)/qe,qe=Math.abs(_t)):Bt=1;break;case 1:De>Math.abs(lt)?(Bt=Math.abs(lt)/De,De=Math.abs(lt)):Bt=1;break;default:case 4:Se>Math.abs(_t)?(Bt=Math.abs(_t)/Se,Se=Math.abs(_t)):Bt=1}Tt=0}var un=Gt.Zo;if(b===Uv){switch(Gt=Gt.link.computeThickness(),Gt*=Bt,un.set(Zt),nt){case 8:un.x=Zt.x+lt/2+We/2-Tt-Gt/2;break;case 2:un.y=Zt.y+_t/2+qe/2-Tt-Gt/2;break;case 1:un.x=Zt.x+lt/2-De/2+Tt+Gt/2;break;default:case 4:un.y=Zt.y+_t/2-Se/2+Tt+Gt/2}Tt+=Gt}else{var er=.5;b===Zm&&(er=(Gt.Uo+1)/(Gt.Gl+1)),un.x=Zt.x+lt*er,un.y=Zt.y+_t*er}}}for(Lt.free(se),Lt.free(he),Lt.free(ne),Lt.free(me),Zt=a.pe,te=0;te<Zt.length;te++)b=Zt[te],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,wn.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}Lf.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},Lf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,aa,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var te=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<te.y:y.x<te.x)?x+8*b:(a?y.y===te.y:y.x===te.x)?x:x+8*(E-1-b)},Lf.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Lt,this.Gl=this.Uo=0,this.Zo=new Lt,this.Ju=0}ty.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},ty.className="LinkInfo";function _o(a){pi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Lt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}_o.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},_o.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},_o.prototype.qb=function(){},_o.prototype.toString=function(){var a=Mn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},_o.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},_o.prototype.createNetwork=function(){return new Eo(this)},_o.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof ln?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof ei?y.lg(a.memberParts):y.lg(a.iterator),y},_o.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},_o.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},_o.prototype.doLayout=function(a){var y=new On;a instanceof ln?(rd(this,y,a.nodes,!0,this.rh,!0,!1,!0),rd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof ei?rd(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},_o.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,te=0,ne=0;for(a=a.iterator;a.next();){var se=a.value;Og(se);var he=se.measuredBounds,me=he.width;he=he.height,se.moveTo(b,E),se instanceof ei&&(se.rh=!1),b+=Math.max(me,50)+20,ne=Math.max(ne,Math.max(he,50)),te>=y-1?(te=0,b=x,E+=ne+20,ne=0):te++}},_o.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,te=0,ne=this.network.vertexes.iterator;ne.next();){var se=ne.value.node;if(!(se===null||se instanceof Un)&&(Og(se),this.rh(se))){var he=se.measuredBounds,me=he.width;he=he.height,se.moveTo(x,b),se instanceof ei&&(se.rh=!1),x+=Math.max(me,50)+20,te=Math.max(te,Math.max(he,50)),E>=a-1?(E=0,x=y,b+=te+20,te=0):E++}}},_o.prototype.rh=function(a){return!!(!a.location.w()||a instanceof ei&&a.rh)};function rd(a,y,x,b,E,te,ne,se){for(x=x.iterator;x.next();){var he=x.value;b&&!he.isTopLevel||E!==null&&!E(he)||!he.canLayout()||(te&&he instanceof nr?he.isLinkLabel||(he instanceof ei&&he.layout===null?rd(a,y,he.memberParts,!1,E,te,ne,se):(Og(he),y.add(he))):ne&&he instanceof Un?y.add(he):!se||!he.Zc()||he instanceof nr||(Og(he),y.add(he)))}}function Og(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}_o.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new wn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},_o.prototype.ex=function(a){var y=new On;return a instanceof ln?(rd(this,y,a.nodes,!0,null,!0,!0,!0),rd(this,y,a.links,!0,null,!0,!0,!0),rd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof ei?rd(this,y,a.memberParts,!1,null,!0,!0,!0):rd(this,y,a.iterator,!1,null,!0,!0,!0),y},_o.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Wa),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Ot.Object.defineProperties(_o.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),_o.prototype.collectParts=_o.prototype.ex,_o.prototype.getLayoutBounds=_o.prototype.ni,_o.prototype.invalidateLayout=_o.prototype.C,_o.className="Layout";function Eo(a){pi(this),this.Sc=a,this.wf=new On,this.ye=new On,this.Es=new cr,this.zs=new cr}Eo.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new On,this.ye=new On,this.Es=new cr,this.zs=new cr},Eo.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1)}return y},Eo.prototype.createVertex=function(){return new Ua(this)},Eo.prototype.createEdge=function(){return new kl(this)},Eo.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ne){if(ne instanceof nr)return!ne.isLinkLabel;if(ne instanceof Un){var se=ne.fromNode;return se===null||se.isLinkLabel?!1:(ne=ne.toNode,!(ne===null||ne.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof nr&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof ei&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof Un&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var te=b.fromNode;E=b.toNode,te!==null&&E!==null&&te!==E&&(te=this.findGroupVertex(te),E=this.findGroupVertex(E),te!==null&&E!==null&&this.Zj(te,E,b))}}},Eo.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},ot=Eo.prototype,ot.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},ot.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},ot.Iu=function(a){if(a!==null&&uS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function uS(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}ot.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},ot.ki=function(a){return a===null?null:this.Es.I(a)},ot.Bo=function(a){if(a!==null){ny(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ny(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}ot.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},ot.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ry(this,a)}};function ry(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}ot.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},ot.Lo=function(a){return a===null?null:this.zs.I(a)},ot.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},ot.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},ot.Ko=function(){for(var a=pn(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);kn(a)},Eo.prototype.deleteArtificialVertexes=function(){for(var a=pn(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=pn(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);kn(a),kn(y)};function Nx(a){for(var y=pn(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);kn(y)}Eo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Nx(this),this.Ko()),a=new Tn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),iy(this,y,b),y=!0;break}}}return a.sort(function(E,te){return E===null||te===null||E===te?0:te.vertexes.count-E.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){uS(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ry(a,E),ny(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ry(a,x),ny(y,x),iy(a,y,x.toVertex))}}Eo.prototype.dz=function(){for(var a=new On,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},Ot.Object.defineProperties(Eo.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Eo.prototype.findAllParts=Eo.prototype.dz,Eo.prototype.splitIntoSubNetworks=Eo.prototype.Zx,Eo.prototype.deleteSelfEdges=Eo.prototype.Ko,Eo.prototype.reverseEdge=Eo.prototype.gm,Eo.prototype.linkVertexes=Eo.prototype.Zj,Eo.prototype.findEdge=Eo.prototype.Lo,Eo.prototype.deleteLink=Eo.prototype.Yy,Eo.prototype.deleteEdge=Eo.prototype.Mj,Eo.prototype.addLink=Eo.prototype.Dy,Eo.prototype.addEdge=Eo.prototype.Bo,Eo.prototype.findVertex=Eo.prototype.ki,Eo.prototype.deleteNode=Eo.prototype.Zy,Eo.prototype.deleteVertex=Eo.prototype.Iu,Eo.prototype.addNode=Eo.prototype.Bl,Eo.prototype.addVertex=Eo.prototype.dh,Eo.prototype.addParts=Eo.prototype.lg,Eo.className="LayoutNetwork";function Ua(a){pi(this),this.ob=a,this.j=new wn(0,0,10,10).freeze(),this.o=new Lt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Tn,this.mg=new Tn}Ua.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Tn,this.mg=new Tn},Ua.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+zi(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var te=b.value;x?x=!1:E+=",",E+=te.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},Ua.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;nn(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof ei)){x=wn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Di);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),wn.free(x);return}wn.free(x)}a.moveTo(y.x,y.y)}},Ua.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ua.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ua.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ua.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function oy(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}Ot.Object.defineProperties(Ua.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=wn.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,te=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,te,b),wn.free(x),!(a instanceof ei)&&(a=a.locationObject.ga(Di),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(te/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new On,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new On,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new On,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new Tn,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Ua.prototype.deleteDestinationEdge=Ua.prototype.Jl,Ua.prototype.addDestinationEdge=Ua.prototype.zl,Ua.prototype.deleteSourceEdge=Ua.prototype.Kl,Ua.prototype.addSourceEdge=Ua.prototype.Cl,Ua.className="LayoutVertex",Ua.standardComparer=oy,Ua.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function kl(a){pi(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}kl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},kl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+zi(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},kl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},kl.prototype.commit=function(){},kl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Ot.Object.defineProperties(kl.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),kl.prototype.getOtherVertex=kl.prototype.Ax,kl.className="LayoutEdge";function ds(a){_o.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Kn(NaN,NaN).freeze(),this.tf=new Kn(10,10).freeze(),this.Jb=Ng,this.Rb=l0,this.nd=Ag,this.hd=cS,a&&Object.assign(this,a)}cn(ds,_o),ds.prototype.cloneProtected=function(a){_o.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},ds.prototype.qb=function(a){a.classType===ds?a===Ag||a===c0||a===ay||a===u0?this.sorting=a:a===l0||a===Xu?this.arrangement=a:a===Ng||a===s0?this.alignment=a:$t("Unknown enum value: "+a):_o.prototype.qb.call(this,a)},ds.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof ei)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case u0:E.reverse();break;case Ag:E.sort(this.comparer);break;case c0:E.sort(this.comparer),E.reverse()}var te=this.wrappingColumn;isNaN(te)&&(te=0);var ne=this.wrappingWidth;switch(isNaN(ne)&&a!==null?(y=a.padding,ne=Math.max(a.viewportBounds.width-y.left-y.right,0)):ne=Math.max(this.wrappingWidth,0),0>=te&&0>=ne&&(te=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case s0:var se=y,he=x,me=wn.alloc(),Se=Math.max(this.cellSize.width,1);if(!isFinite(Se))for(var De=Se=0;De<E.length;De++){var We=this.ni(E[De],me);Se=Math.max(Se,We.width)}if(Se=Math.max(Se+se,1),De=Math.max(this.cellSize.height,1),!isFinite(De))for(We=De=0;We<E.length;We++){var qe=this.ni(E[We],me);De=Math.max(De,qe.height)}De=Math.max(De+he,1),We=this.arrangement;for(var nt=qe=this.arrangementOrigin.x,lt=this.arrangementOrigin.y,At=0,Tt=0,Bt=0;Bt<E.length;Bt++){var _t=E[Bt],Gt=this.ni(_t,me),Zt=Math.ceil((Gt.width+se)/Se)*Se,un=Math.ceil((Gt.height+he)/De)*De;switch(We){case Xu:var er=Math.abs(nt-Gt.width);break;default:er=nt+Gt.width}switch((0<te&&At>te-1||0<ne&&0<At&&er-qe>ne)&&(b.push(new wn(0,lt,ne+se,Tt)),At=0,nt=qe,lt+=Tt,Tt=0),Tt=Math.max(Tt,un),We){case Xu:Gt=-Gt.width;break;default:Gt=0}switch(_t.moveTo(nt+Gt,lt),We){case Xu:nt-=Zt;break;default:nt+=Zt}At++}b.push(new wn(0,lt,ne+se,Tt)),wn.free(me);break;case Ng:for(he=ne,Se=te,De=y,We=x,ne=wn.alloc(),qe=Math.max(this.cellSize.width,1),te=lt=me=0,se=Lt.alloc(),nt=0;nt<E.length;nt++)Tt=E[nt],At=this.ni(Tt,ne),Tt=Th(Tt,Tt.locationObject,Tt.locationSpot,se),me=Math.max(me,Tt.x),lt=Math.max(lt,At.width-Tt.x),te=Math.max(te,Tt.y);switch(nt=this.arrangement,nt){case Xu:me+=De;break;default:lt+=De}qe=isFinite(qe)?Math.max(qe+De,1):Math.max(me+lt,1);var ur=Tt=this.arrangementOrigin.x;for(Bt=this.arrangementOrigin.y,lt=0,he>=me&&(he-=me),me=_t=0,Zt=Math.max(this.cellSize.height,1),Gt=te=0,un=!0,At=Lt.alloc(),er=0;er<E.length;er++){var ir=E[er],Hn=this.ni(ir,ne),An=Th(ir,ir.locationObject,ir.locationSpot,se);if(0<lt)switch(nt){case Xu:ur=(ur-Tt-(Hn.width-An.x))/qe,ur=Qt.$(Math.round(ur),ur)?Math.round(ur):Math.floor(ur),ur=ur*qe+Tt;break;default:ur=(ur-Tt+An.x)/qe,ur=Qt.$(Math.round(ur),ur)?Math.round(ur):Math.ceil(ur),ur=ur*qe+Tt}else switch(nt){case Xu:_t=ur+An.x+Hn.width;break;default:_t=ur-An.x}switch(nt){case Xu:var Qr=-(ur+An.x)+_t;break;default:Qr=ur+Hn.width-An.x-_t}if(0<Se&<>Se-1||0<he&&0<lt&&Qr>he){for(b.push(new wn(0,un?Bt-te:Bt,he+De,Gt+te+We)),ur=0;ur<lt&&er!==lt;ur++){Qr=E[er-lt+ur];var Wr=Th(Qr,Qr.locationObject,Qr.locationSpot,At);Qr.moveTo(Qr.position.x,Qr.position.y+te-Wr.y)}Gt+=We,Bt=un?Bt+Gt:Bt+(Gt+te),lt=Gt=te=0,ur=Tt,un=!1}switch(ur===Tt&&(me=nt===Xu?Math.max(me,Hn.width-An.x):Math.min(me,-An.x)),te=Math.max(te,An.y),Gt=Math.max(Gt,Hn.height-An.y),isFinite(Zt)&&(Gt=Math.max(Gt,Math.max(Hn.height,Zt)-An.y)),un?ir.moveTo(ur-An.x,Bt-An.y):ir.moveTo(ur-An.x,Bt),nt){case Xu:ur-=An.x+De;break;default:ur+=Hn.width-An.x+De}lt++}if(b.push(new wn(0,Bt,he+De,(un?Gt:Gt+te)+We)),E.length!==lt)for(he=0;he<lt;he++)Se=E[E.length-lt+he],De=Th(Se,Se.locationObject,Se.locationSpot,se),Se.moveTo(Se.position.x,Se.position.y+te-De.y);if(Lt.free(se),Lt.free(At),nt===Xu)for(E=0;E<b.length;E++)te=b[E],te.width+=me,te.x-=me;else for(E=0;E<b.length;E++)te=b[E],te.x>me&&(te.width+=te.x-me,te.x=me);wn.free(ne)}for(se=te=ne=E=0;se<b.length;se++)he=b[se],E=Math.min(E,he.x),ne=Math.min(ne,he.y),te=Math.max(te,he.x+he.width);this.arrangement===Xu?this.commitLayers(b,new Lt(E+y/2-(te+E),ne-x/2)):this.commitLayers(b,new Lt(E-y/2,ne-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},ds.prototype.commitLayers=function(){};function cS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Ot.Object.defineProperties(ds.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==Ng&&a!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==Xu||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ay&&a!==u0&&a!==Ag&&a!==c0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var s0=new vn(ds,"Position",0),Ng=new vn(ds,"Location",1),l0=new vn(ds,"LeftToRight",2),Xu=new vn(ds,"RightToLeft",3),ay=new vn(ds,"Forward",4),u0=new vn(ds,"Reverse",5),Ag=new vn(ds,"Ascending",6),c0=new vn(ds,"Descending",7);ds.className="GridLayout",ds.standardComparer=cS,ds.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},ds.Position=s0,ds.Location=Ng,ds.LeftToRight=l0,ds.RightToLeft=Xu,ds.Forward=ay,ds.Reverse=u0,ds.Ascending=Ag,ds.Descending=c0;function uo(){this.On=new On,this.Dn=new On,this.Pa=new On,this.cf=new cr,this.bf=new cr,this.aj=new cr,this.H=null,this.tp=!1}ot=uo.prototype,ot.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},ot.Xe=function(a){this.H=a},ot.oi=function(a){if(a instanceof nr){if(this.On.add(a),a instanceof ei){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof Un?this.Dn.add(a):a instanceof Ki||this.Pa.add(a);y=a.data,y===null||a instanceof Ki||(a instanceof Un?this.bf.add(y,a):this.cf.add(y,a))},ot.pc=function(a){if(a.Ej(),a instanceof nr){if(this.On.remove(a),a instanceof ei){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof Un?this.Dn.remove(a):a instanceof Ki||this.Pa.remove(a);y=a.data,y===null||a instanceof Ki||(a instanceof Un?this.bf.remove(y):this.cf.remove(y))},ot.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof ei)&&$t('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof ei||$t('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Un||$t('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=pn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=pn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=pn(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);kn(y),kn(x),kn(a)}},uo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},uo.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&hS(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&Qf(this.diagram,!1)};function hS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=dS(a,y,b);if(E!==null&&(Su(E),E=E.copy(),E!==null)){var te=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=te,b=E;break e}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}uo.prototype.insertLink=function(){return null},uo.prototype.resolveReferencesForData=function(){},uo.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(gS||(gS=!0,or('No Group template found for category "'+x+'"'),or(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(pS||(pS=!0,or('No Node template found for category "'+x+'"'),or(" Using default node template")),y=a.ny))),y}uo.prototype.getLinkCategoryForData=function(){return""},uo.prototype.setLinkCategoryForData=function(){},uo.prototype.setFromNodeForLink=function(){},uo.prototype.setToNodeForLink=function(){},uo.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(mS||(mS=!0,or('No Link template found for category "'+a+'"'),or(" Using default link template")),x=y.my)),x},uo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},uo.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},uo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Zh(this.diagram,a,!1),this.unresolveReferencesForPart(a))},uo.prototype.unresolveReferencesForPart=function(){},uo.prototype.removeDataForLink=function(){},uo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},uo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof nr?a:null)},uo.prototype.findLinkForKey=function(){return null},ot=uo.prototype,ot.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},ot.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof nr?a:null)},ot.Kc=function(a){return a===null?null:this.bf.I(a)},ot.ms=function(a){for(var y=0;y<arguments.length;++y);y=new On;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var te=0;te<arguments.length;te++){var ne=arguments[te];if(nn(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator},ot.ls=function(a){for(var y=0;y<arguments.length;++y);y=new On;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var te=0;te<arguments.length;te++){var ne=arguments[te];if(nn(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator};function sy(a,y,x){for(var b in x){var E=y[b],te=x[b];if(Cn(te)){if(!Cn(E)||E.length<te.length)return!1;for(var ne=0;ne<E.length;ne++){var se=te[ne];if(se!==void 0&&!fS(a,E[ne],se))return!1}}else if(!fS(a,E,te))return!1}return!0}function fS(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(nn(y)&&nn(x)){if(!sy(a,y,x))return!1}else if(y!==x)return!1;return!0}uo.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===Go){if(b==="nodeCategory"){var E=this.Lc(a.object),te=a.newValue;E!==null&&typeof te=="string"&&(E.category=te)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===la){var ne=a.newValue;b==="nodeDataArray"&&nn(ne)&&hS(this,ne),y.isModified=!0}else if(x===Oa){var se=a.oldValue;b==="nodeDataArray"&&nn(se)&&this.ip(se),y.isModified=!0}else x===il&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Go){var he=a.propertyName,me=a.object;me===y.model?(he==="nodeKeyProperty"||he==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(me,he),y.isModified=!0}else if(x===la||x===Oa){var Se=a.change===la,De=Se?a.newParam:a.oldParam,We=Se?a.newValue:a.oldValue,qe=this.aj.I(a.object);if(Array.isArray(qe))for(a=0;a<qe.length;a++){var nt=qe[a];if(Se)km(nt,We,De,!0);else if(!(0>De)){var lt=De+fg(nt);nt.pc(lt,!0),wv(nt,lt,De)}}y.isModified=!0}}finally{y.aa=!0}}}}},uo.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},uo.prototype.rp=function(){for(var a=this.H.model,y=new On,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(ne){ne.data===null||y.contains(ne.data)||E.push(ne.data)}),this.parts.each(function(ne){ne.data===null||y.contains(ne.data)||E.push(ne.data)}),E.forEach(function(ne){ES(a,ne,!1)}),b=0;b<x.length;b++){var te=x[b];this.Lc(te)===null&&CS(a,te,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},uo.prototype.refreshDataBoundLinks=function(){},uo.prototype.updateRelationshipsFromData=function(){},uo.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,te=0;te<E.length;te++){var ne=E[te].sx(a);ne!==null&&(x===null&&(x=pn()),x.push(ne))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);kn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ly(a,y){var x=y.Hh;if(Cn(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function uy(a,y,x){Ud(y,function(ne){ne=ne.O.s;for(var se=ne.length,he=0;he<se;he++)Jp(x,ne[he])});var b=y.Hh;if(Cn(b)){var E=a.aj.I(b);if(E!==null){for(var te=0;te<E.length;te++)if(E[te]===y){E.splice(te,1),E.length===0&&a.aj.remove(b);break}}}}uo.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new cr;if(Cn(a))for(var E=0;E<a.length;E++)h0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)h0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new On;for(var te=new cr,ne=b.iterator;ne.next();){var se=ne.value;if(se instanceof Un)a||se.fromNode!==null&&se.toNode!==null||E.add(se);else if(se instanceof nr&&se.data!==null&&x.Tl()){var he=se;se=ne.key;var me=se.pg();me!==null&&(me=b.I(me),me!==null?(x.qe(he.data,x.wa(me.data)),he=y.Kc(he.data),se=se.kh(),se!==null&&he!==null&&te.add(se,he)):x.qe(he.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<te.count)for(x=te.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var Se=new cr;b.each(function(De){De.key.data!==null&&Se.add(De.key.data,De.value.data)}),x(Se,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function h0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var te=a.copyPartData(y,x);if(!(te instanceof Mr))return null;if(te.isSelected=!1,te.isHighlighted=!1,b.add(y,te),y instanceof nr){for(var ne=y.linksConnected;ne.next();){var se=ne.value;if(se.fromNode===y){var he=b.I(se);he!==null&&(he.fromNode=te)}se.toNode===y&&(se=b.I(se),se!==null&&(se.toNode=te))}if(y instanceof ei&&te instanceof ei)for(y=y.memberParts;y.next();)ne=h0(a,y.value,x,b,E),ne instanceof Un||ne===null||(ne.containingGroup=te)}else if(y instanceof Un&&te instanceof Un)for(ne=y.fromNode,ne!==null&&(ne=b.I(ne),ne!==null&&(te.fromNode=ne)),ne=y.toNode,ne!==null&&(ne=b.I(ne),ne!==null&&(te.toNode=ne)),y=y.labelNodes;y.next();)ne=h0(a,y.value,x,b,E),ne!==null&&ne instanceof nr&&(ne.labeledLink=te);return te}uo.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Un||(b=E.copyNodeData(b),nn(b)&&(E.xf(b),x=y.Lc(b)))}else Su(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof Un||(E=y.copyNodeData(b)),nn(E)&&(x.data=E)));return x},Ot.Object.defineProperties(uo.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),uo.prototype.updateAllRelationshipsFromData=uo.prototype.rp,uo.prototype.findLinksByExample=uo.prototype.ls,uo.prototype.findNodesByExample=uo.prototype.ms,uo.prototype.findLinkForData=uo.prototype.Kc,uo.prototype.findNodeForData=uo.prototype.ii,uo.prototype.findPartForData=uo.prototype.Lc,uo.prototype.findNodeForKey=uo.prototype.Vb,uo.prototype.removeModeledPart=uo.prototype.ip,uo.prototype.removeModeledParts=uo.prototype.Gs,uo.prototype.rebuildParts=uo.prototype.Wd;var pS=!1,gS=!1,mS=!1;uo.className="PartManager";function ns(a){uo.apply(this,arguments)}cn(ns,uo),ns.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},ns.prototype.addModeledParts=function(a){for(uo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Sp(a.value);Qf(this.diagram,!1)};function vS(a,y){y.forEach(function(x){yS(a,x)}),Qf(a.diagram,!1)}function yS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){Su(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var te=g0(x,y,!0);te!==""&&(E.fromPortId=te),te=Yl(x,y,!0),te!==void 0&&(te=a.Vb(te),te instanceof nr&&(E.fromNode=te)),te=g0(x,y,!1),te!==""&&(E.toPortId=te),te=Yl(x,y,!1),te!==void 0&&(te=a.Vb(te),te instanceof nr&&(E.toNode=te)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ne){ne=a.Vb(ne),ne!==null&&(ne.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}ns.prototype.removeAllModeledParts=function(){var a=this.diagram.model;SS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function SS(a,y){y.forEach(function(x){a.ip(x)})}ns.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},ns.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},ns.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},ns.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},ns.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},ns.prototype.findPartForKey=function(a){var y=uo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},ns.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},ns.prototype.doModelChanged=function(a){var y=this;if(uo.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Go){if(E==="linkFromKey"){var te=this.Kc(a.object);if(te!==null){var ne=this.Vb(a.newValue);te.fromNode=ne}}else if(E==="linkToKey"){var se=this.Kc(a.object);if(se!==null){var he=this.Vb(a.newValue);se.toNode=he}}else if(E==="linkFromPortId"){var me=this.Kc(a.object);if(me!==null){var Se=a.newValue;typeof Se=="string"&&(me.fromPortId=Se)}}else if(E==="linkToPortId"){var De=this.Kc(a.object);if(De!==null){var We=a.newValue;typeof We=="string"&&(De.toPortId=We)}}else if(E==="nodeGroupKey"){var qe=this.Lc(a.object);if(qe!==null){var nt=a.newValue;if(nt!==void 0){var lt=this.Vb(nt);lt instanceof ei?qe.containingGroup=lt:qe.containingGroup=null}else qe.containingGroup=null}}else if(E==="linkLabelKeys"){var At=this.Kc(a.object);if(At!==null){var Tt=a.oldValue,Bt=a.newValue;Array.isArray(Tt)&&Tt.forEach(function(An){0<=Bt.indexOf(An)||(An=y.Vb(An),An!==null&&(An.labeledLink=null))}),Array.isArray(Bt)&&Bt.forEach(function(An){An=y.Vb(An),An!==null&&(An.labeledLink=At)})}}else if(E==="linkCategory"){var _t=this.Kc(a.object),Gt=a.newValue;_t!==null&&typeof Gt=="string"&&(_t.category=Gt)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===la){var Zt=a.newValue;if(E==="linkDataArray"&&typeof Zt=="object"&&Zt!==null)yS(this,Zt);else if(E==="linkLabelKeys"&&od(Zt)){var un=this.Kc(a.object),er=this.Vb(Zt);un!==null&&er!==null&&(er.labeledLink=un)}x.isModified=!0}else if(b===Oa){var ur=a.oldValue;if(E==="linkDataArray"&&typeof ur=="object"&&ur!==null)this.ip(ur);else if(E==="linkLabelKeys"&&od(ur)){var ir=this.Vb(ur);ir!==null&&(ir.labeledLink=null)}x.isModified=!0}}else if(b===Go){var Hn=a.propertyName;a.object!==x.model||Hn!=="linkFromKeyProperty"&&Hn!=="linkToKeyProperty"&&Hn!=="linkFromPortIdProperty"&&Hn!=="linkToPortIdProperty"&&Hn!=="linkLabelKeysProperty"&&Hn!=="nodeIsGroupProperty"&&Hn!=="nodeGroupKeyProperty"&&Hn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},ns.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new On,b=y.linkDataArray;b.forEach(function(te){x.add(te)});var E=[];this.links.each(function(te){te.data===null||x.contains(te.data)||E.push(te.data)}),E.forEach(function(te){NS(y,te,!1)}),b.forEach(function(te){a.Kc(te)===null&&OS(y,te,!1)})},ns.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof Un){var E=Yl(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Yl(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var te=a.labelNodes.first();if(b.wa(te.data)===E)return}E=new On().addAll(y);var ne=new On;a.labelNodes.each(function(se){se.data!==null&&(se=b.wa(se.data),se!==void 0&&ne.add(se))}),y=ne.copy(),y.hp(E),E=E.copy(),E.hp(ne),(0<y.count||0<E.count)&&(y.each(function(se){se=x.Vb(se),se!==null&&se.labeledLink===a&&(se.labeledLink=null)}),E.each(function(se){se=x.Vb(se),se!==null&&se.labeledLink!==a&&(se.labeledLink=a)}))}}else!(a instanceof Ki)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof ei)&&(a.containingGroup=y)}}},ns.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jg(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var te={};b.next();){var ne=b.value;y.lb(ne)?E instanceof ei&&y.lh(ne)===x&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=E)):(te.link=this.Kc(ne),te.link!==null&&E instanceof nr&&(Yl(y,ne,!0)===x&&(te.link.fromNode=E),Yl(y,ne,!1)===x&&(te.link.toNode=E),ne=y.Ef(ne),Array.isArray(ne)&&ne.some(function(se){return function(he){return he===x?(E.labeledLink=se.link,!0):!1}}(te)))),te={link:te.link}}Ju(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof ei&&(E.containingGroup=a))}},ns.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof nr){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Yu(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Yu(y,x,b.data)),a instanceof ei)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&Yu(y,x,b)}}},ns.prototype.copyPartData=function(a,y){var x=uo.prototype.copyPartData.call(this,a,y);if(a instanceof Un)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},ns.prototype.insertLink=function(a,y,x,b){var E=this.diagram,te=E.model,ne=E.toolManager.findTool("Linking"),se="";if(a!==null&&(y===null&&(y=a),se=y.portId,se===null&&(se="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=ne.archetypeLinkData,b instanceof Un){if(Su(b),te=b.copy(),te!==null)return te.fromNode=a,te.fromPortId=se,te.toNode=x,te.toPortId=y,E.add(te),a=ne.archetypeLabelNodeData,a instanceof nr&&(Su(a),a=a.copy(),a!==null&&(a.labeledLink=te,E.add(a))),te}else if(b!==null&&(b=te.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Ep(te,b,te.wa(a.data),!0),Tp(te,b,se,!0),x!==null&&Ep(te,b,te.wa(x.data),!1),Tp(te,b,y,!1),te.fi(b),a=ne.archetypeLabelNodeData,a===null||a instanceof nr||(a=te.copyNodeData(a),typeof a=="object"&&a!==null&&(te.xf(a),a=te.wa(a),a!==void 0&&te.Bu(b,a))),E.Kc(b);return null},ns.prototype.findLinkForKey=ns.prototype.findLinkForKey,ns.prototype.findPartForKey=ns.prototype.findPartForKey,ns.prototype.removeAllModeledParts=ns.prototype.removeAllModeledParts,ns.prototype.addModeledParts=ns.prototype.addModeledParts,ns.prototype.addAllModeledParts=ns.prototype.addAllModeledParts,ns.className="GraphLinksPartManager";function cu(){uo.apply(this,arguments),this.Sg=null}cn(cu,uo);function d0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,te=x;if(a.diagram.isTreePathToChildren||(E=x,te=y),(b===null||!Rn(b,E,te,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Su(b),b=b.copy(),b!==null))){var ne=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=te,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=ne}}}cu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},cu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},cu.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},cu.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},cu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},cu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},cu.prototype.doModelChanged=function(a){if(uo.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===Go){if(b==="nodeParentKey"){var E=a.object,te=this.Vb(a.newValue),ne=this.ii(E);if(this.Sg!==null)te!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(ne!==null){var se=ne.kh();se!==null?te===null?y.remove(se):y.isTreePathToChildren?se.fromNode=te:se.toNode=te:d0(this,te,ne)}}else if(b==="parentLinkCategory"){var he=this.ii(a.object),me=a.newValue;if(he!==null&&typeof me=="string"){var Se=he.kh();Se!==null&&(Se.category=me)}}y.isModified=!0}}else if(x===Go){var De=a.propertyName;a.object===y.model&&De==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},cu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof nr&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:d0(this,y,a):b!==null&&Zh(x,b,!1)))}}},cu.prototype.updateDataBindings=function(a,y){uo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},cu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jg(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var te=b.value;y.lb(te)&&E instanceof nr&&y.mh(te)===x&&d0(this,E,this.ii(te))}Ju(y,x)}a=y.mh(a),a!==void 0&&E instanceof nr&&(a=this.Vb(a),d0(this,a,E))}},cu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof nr){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var te=E.pc(-1,b,!1);0<=te&&this.diagram.cb(Oa,"parts",E,b,null,te,null),te=b.layerChanged,te!==null&&te(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&Yu(y,x,E)}},cu.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},cu.prototype.findLinkForKey=cu.prototype.findLinkForKey,cu.className="TreePartManager";function mr(a,y){this.kl=new On,this.il=new On,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,pi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new cr,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new cr,this.Lt=new Tn,this.Wg=!1,this.o=null,this.undoManager=new Ko,a!==void 0&&(Cn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}mr.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},mr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},mr.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},mr.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+zn(E)}}return y},mr.prototype.xA=function(a){a.change!==il&&$t("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Va?(wS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},mr.prototype.Qv=function(a,y){var x=this,b=!1,E=new On,te=new On,ne=new On,se=this.vh;a.changes.each(function(De){De.model===x&&(De.modelChange==="nodeDataArray"?De.change===la?E.add(De.newValue):De.change===Oa&&ne.add(De.oldValue):x.lb(De.object)?te.add(De.object):De.change!==Go||x.modelData!==De.object&&De.propertyName!=="modelData"?De.object!==null&&(se&&se.contains(De.object)?se.get(De.object).each(function(We){x.lb(We)&&te.add(We)}):De.object instanceof mr||x.ri()&&x.Jc(De.object)||bS(x,De.object).each(function(We){te.add(We)})):b=!0)});var he=this.il;he.clear(),E.each(function(De){he.add(x.wa(De)),y||te.add(De)});var me=this.kl;me.clear(),ne.each(function(De){me.add(x.wa(De)),y&&te.add(De)}),a=x.cloneDeep(te.Fa());var Se=null;return b&&(Se===null&&(Se={}),Se.modelData=this.cloneDeep(this.modelData)),0<he.count&&(Se===null&&(Se={}),y?Se.removedNodeKeys=he.Fa():Se.insertedNodeKeys=he.Fa()),0<a.length&&(Se===null&&(Se={}),Se.modifiedNodeData=a),0<me.count&&(Se===null&&(Se={}),y?Se.insertedNodeKeys=me.Fa():Se.removedNodeKeys=me.Fa()),me.clear(),he.clear(),Se},mr.prototype.cloneDeep=function(a){return Cp(this,a,!0)};function Cp(a,y,x,b,E,te){function ne(De,We){se?(De.__gohashid===void 0&&te.push(De),b.set(De,We)):(De=Lo++,b.set(De,We),E.set(De,y))}if(!nn(y))return y;te||(te=[]);var se=Object.isExtensible(y);if(b||(b=new cr),se){var he=b.get(y);if(he)return he}else for(E||(E=new cr),he=E.iterator;he.next();){var me=he.key;if(he.value===y&&(me=b.get(me)))return me}if(Array.isArray(y)){he=[],ne(y,he);for(var Se=0;Se<y.length;Se++)he.push(Cp(a,y[Se],!1,b,E,te))}else if(y instanceof Lt||y instanceof Kn||y instanceof wn||y instanceof Tr||y instanceof yr)he=y.copy(),ne(y,he);else{if(y instanceof so||y instanceof Vn||y instanceof vn)return y;if(y instanceof Tn)he=new Tn().addAll(Cp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof On)he=new On().addAll(Cp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof cr)he=new cr().addAll(Cp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof Date)he=new Date(y.getTime()),ne(y,he);else if(y instanceof RegExp)he=new RegExp(y),ne(y,he),he.lastIndex=y.lastIndex;else if(typeof y.copy=="function")he=y.copy(),ne(y,he);else for(Se in he={},ne(y,he),y)Se!=="__gohashid"&&(he[Se]=Cp(a,y[Se],!1,b,E,te))}return x&&te.forEach(function(De){delete De.__gohashid}),he}ot=mr.prototype,ot.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},ot.rm=function(){var a="";return this.name!==""&&(a+=`,
|
|
|
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
|
|
|
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
|
|
|
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
|
|
|
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
|
|
|
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
|
|
|
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
|
|
|
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
|
|
|
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},ot.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function xS(a,y){y=y.modelData,nn(y)&&(a.dm(y),a.modelData=y)}ot.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!PS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+cy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+id(this,this.nodeDataArray,!0)},ot.kv=function(a){xS(this,a),a=a.nodeDataArray,Cn(a)&&(this.dm(a),this.nodeDataArray=a)};function wS(a,y){function x(E,te){if((te=te.part)&&(te=te.data,E!==te)){var ne=b.get(E);ne===null?(ne=new On,ne.add(te),b.add(E,ne)):ne.add(te)}}var b=a.vh;b===null&&(b=new cr,y.changes.each(function(E){if(E.diagram!==null){var te=E.change;te===Go?(E=E.object.panel)&&(te=E.data)&&x(te,E):(te===la||te===Oa)&&(E=E.object,(te=E.itemArray)&&x(te,E))}}),a.vh=b)}function bS(a,y){for(var x=new On,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];f0(a,y,E,E,x)}return x}function f0(a,y,x,b,E){if(Array.isArray(x))for(var te=0;te<x.length;te++){var ne=x[te];if(ne===y)return E.add(b),!0;if(f0(a,y,ne,b,E))return!0}else if(nn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(te in x){if(ne=x[te],ne===y)return E.add(b),!0;if(f0(a,y,ne,b,E))return!0}return!1}ot.Pv=function(a,y){var x=this,b=!1,E=new On,te=new On,ne=new On,se=this.vh;a.changes.each(function(Se){Se.model===x&&(Se.modelChange==="nodeDataArray"?Se.change===la?E.add(Se.newValue):Se.change===Oa&&ne.add(Se.oldValue):x.lb(Se.object)?te.add(Se.object):Se.change!==Go||x.modelData!==Se.object&&Se.propertyName!=="modelData"?Se.object!==null&&(se&&se.contains(Se.object)?se.get(Se.object).each(function(De){x.lb(De)&&te.add(De)}):Se.object instanceof mr||x.ri()&&x.Jc(Se.object)||bS(x,Se.object).each(function(De){te.add(De)})):b=!0)});var he=this.il;he.clear(),E.each(function(Se){he.add(x.wa(Se)),y||te.add(Se)});var me=this.kl;return me.clear(),ne.each(function(Se){me.add(x.wa(Se)),y&&te.add(Se)}),a="",b&&(a+=`,
|
|
|
"modelData": `+cy(this,this.modelData)),0<he.count&&(a+=(y?this.Yv:this.Wv)+id(this,he.Fa(),!0)),0<te.count&&(a+=this.jy+id(this,te.Fa(),!0)),0<me.count&&(a+=(y?this.Wv:this.Yv)+id(this,me.Fa(),!0)),me.clear(),he.clear(),a},ot.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&$t("applyIncrementalJson cannot change Model properties"),xS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new cr;if(Array.isArray(x))for(var E=0;E<x.length;E++){var te=x[E],ne=this.wa(te);ne!=null&&b.set(ne,te)}if(Array.isArray(y))for(E=y.length,te=0;te<E;te++){ne=y[te];var se=this.hc(ne);se===null&&(se=(se=b.get(ne))?se:this.copyNodeData({}),this.km(se,ne),this.xf(se))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],te=this.wa(E),te=this.hc(te),te!==null){for(var he in E)he==="__gohashid"||he===this.nodeKeyProperty||this.Wj()&&he===this.nodeIsGroupProperty||this.setDataProperty(te,he,E[he]);this.lm(E,te)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,he=0;he<x;he++)y=this.hc(a[he]),y!==null&&this.cm(y)},ot.$x=function(a,y){a.change!==il&&$t("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Va?(y===void 0&&(y=Ig(this,this)),wS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},ot.yA=function(a,y){return this.$x(a,y)},ot.np=function(a){return a===void 0&&(a=Ig(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},ot.toJSON=function(a){return this.np(a)},ot.Zw=function(a){var y=null;if(typeof a=="string")try{y=zt.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:$t("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&$t("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},ot.Ky=function(a){return this.Zw(a)},mr.constructGraphLinksModel=function(){return new mr},ot=mr.prototype,ot.dm=function(a){if(Cn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(nn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:$t("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(nn(a)){for(y in a)if(x=a[y],nn(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new Tn,b=0;b<x.length/2;b++)E.add(new Lt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Ax(a)}return a},ot.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):Cn(a)?id(this,a):nn(a)?cy(this,a):typeof a=="function"?"null":a.toString()};function id(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new lr;E.add("["),x&&1<b&&E.add(`
|
|
|
`);for(var te=0;te<b;te++){var ne=y[te];ne!==void 0&&(0<te&&(E.add(","),x&&E.add(`
|
|
|
`)),E.add(a.sm(ne)))}return x&&1<b&&E.add(`
|
|
|
`),E.add("]"),E.toString()}function PS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Vs(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function cy(a,y){var x=y;if(x instanceof Lt)y={class:"go.Point",x:Vs(x.x),y:Vs(x.y)};else if(x instanceof Kn)y={class:"go.Size",width:Vs(x.width),height:Vs(x.height)};else if(x instanceof wn)y={class:"go.Rect",x:Vs(x.x),y:Vs(x.y),width:Vs(x.width),height:Vs(x.height)};else if(x instanceof Tr)y={class:"go.Margin",top:Vs(x.top),right:Vs(x.right),bottom:Vs(x.bottom),left:Vs(x.left)};else if(x instanceof yr)x.sb()?y={class:"go.Spot",x:Vs(x.x),y:Vs(x.y),offsetX:Vs(x.offsetX),offsetY:Vs(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof so){if(y={class:"go.Brush",type:x.type.name},x.type===Ph?y.color=x.color:(x.type===th||x.type===lu)&&(y.start=x.start,y.end=x.end,x.type===lu&&(x.startRadius!==0&&(y.startRadius=Vs(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Vs(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof Vn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Vs(x.startX)),x.startY!==0&&(y.startY=Vs(x.startY)),x.endX!==0&&(y.endX=Vs(x.endX)),x.endY!==0&&(y.endY=Vs(x.endY)),x.spot1.D(Wa)||(y.spot1=x.spot1),x.spot2.D(As)||(y.spot2=x.spot2),x.type===Vn.o&&(y.path=Vn.ia(x))):x instanceof vn&&(y={class:"go.EnumValue",classType:Ig(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var te=ga(y,E);if(!PS(E,te))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&te instanceof Tn){var ne="[";for(te=te.iterator;te.next();){var se=te.value;1<ne.length&&(ne+=","),ne+=a.sm(se.x),ne+=",",ne+=a.sm(se.y)}ne+="]",b+=ne}else b+=a.sm(te)}return b+"}"}function Zs(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Ax(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Lt(Zs(a.x),Zs(a.y));else if(y==="Size")x=new Kn(Zs(a.width),Zs(a.height));else if(y==="Rect")x=new wn(Zs(a.x),Zs(a.y),Zs(a.width),Zs(a.height));else if(y==="Margin")x=new Tr(Zs(a.top),Zs(a.right),Zs(a.bottom),Zs(a.left));else if(y==="Spot")typeof a.enum=="string"?x=wd(a.enum):x=new yr(Zs(a.x),Zs(a.y),Zs(a.offsetX),Zs(a.offsetY));else if(y==="Brush"){if(x=new so,x.type=Jn(so,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof yr&&(x.start=a.start),a.end instanceof yr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Zs(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Zs(a.endRadius)),a=a.colorStops,nn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Vn.parse(a.path):x=new Vn,x.type=Jn(Vn,a.type),typeof a.startX=="number"&&(x.startX=Zs(a.startX)),typeof a.startY=="number"&&(x.startY=Zs(a.startY)),typeof a.endX=="number"&&(x.endX=Zs(a.endX)),typeof a.endY=="number"&&(x.endY=Zs(a.endY)),a.spot1 instanceof yr&&(x.spot1=a.spot1),a.spot2 instanceof yr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=Jn(b,a.name)));return x}ot.Pe=function(a){return this.Lt.add(a),this},ot.ik=function(a){this.Lt.remove(a)},ot.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},ot.cb=function(a,y,x,b,E,te,ne){Fa(this,"",a,y,x,b,E,te,ne)},ot.g=function(a,y,x,b,E){Fa(this,"",Go,a,this,y,x,b,E)},ot.Fs=function(a,y,x,b,E,te){Fa(this,"",Go,y,a,x,b,E,te)};function Fa(a,y,x,b,E,te,ne,se,he){se===void 0&&(se=null),he===void 0&&(he=null);var me=new $o;me.model=a,me.change=x,me.modelChange=y,me.propertyName=b,me.object=E,me.oldValue=te,me.oldParam=se,me.newValue=ne,me.newParam=he,a.ds(me)}mr.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Go){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),jo(x,b,E)}else a.change===la?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,nn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&En(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&mn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Cn(b)&&a.propertyName&&(b=ga(a.object,a.propertyName)),Cn(b)&&typeof x=="number"&&(a=a.newValue,y?En(b,x):mn(b,x,a))):$t("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Oa?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,nn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&mn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&En(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!Cn(b)&&a.propertyName&&(b=ga(a.object,a.propertyName)),Cn(b)&&typeof x=="number"&&(a=a.oldValue,y?mn(b,x,a):En(b,x))):$t("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==il&&$t("unknown ChangedEvent: "+a.toString())},mr.prototype.Ea=function(a){return this.undoManager.Ea(a)},mr.prototype.eb=function(a){return this.undoManager.eb(a)},mr.prototype.Kf=function(){return this.undoManager.Kf()},mr.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},ot=mr.prototype,ot.La=function(a,y){y===void 0&&(y=""),Fa(this,"SourceChanged",il,y,a,null,null)},ot.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=ga(a,y),y!==void 0)){if(od(y))return y;$t("Key value for node data "+a+" is not a number or a string: "+y)}}},ot.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=ga(a,x);b!==y&&this.hc(y)===null&&(jo(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Fa(this,"nodeKey",Go,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else jo(a,x,y)}};function od(a){return typeof a=="number"||typeof a=="string"}ot.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},ot.hc=function(a){return a===null&&$t("Model.findNodeDataForKey:key must not be null"),a!==void 0&&od(a)?this.kb.I(a):null},ot.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){jo(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;jo(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;jo(a,y,x)}}}}},ot.xf=function(a){a!==null&&(xo(a),this.lb(a)||CS(this,a,!0))};function CS(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&$t("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,mn(a.Tc,b,y)),Fa(a,"nodeDataArray",la,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}ot.Fy=function(a){if(Cn(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},ot.cm=function(a){a!==null&&ES(this,a,!0)};function ES(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){e:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break e}b=-1}if(0>b)return;En(a.Tc,b)}Fa(a,"nodeDataArray",Oa,"nodeDataArray",a,y,null,b,null),a.qp(y)}ot.nA=function(a){if(Cn(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},ot.$z=function(a){if(a!==this.nodeDataArray&&Cn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var te=a[E],ne=this.wa(te);if(ne!==void 0){x.add(ne);var se=this.hc(ne);se!==te&&(se!==null?(this.Do(se,te),this.lm(te,se)):(te=this.cloneDeep(te),this.km(te,ne),this.xf(te)))}else ne=this.cloneDeep(te),this.xf(ne),x.add(this.wa(ne))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},ot.jp=function(a,y){y!==void 0&&(a=jg(this,a),a instanceof On&&this.Vf.add(y,a))},ot.Lv=function(){},ot.fm=function(){},ot.em=function(){},ot.qp=function(){};function Yu(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new On,a.Vf.add(y,b)),b.add(x)}}function Ju(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof On&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function jg(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof On?a:null)}ot.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},mr.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):p0(this,a,!0),nn(a)&&pi(a),a};function p0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=p0(a,y[x],a.copiesArrayObjects);b.push(E)}return pi(b),b}if(x&&nn(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var te=ga(y,b),ne=Ig(a,te);ne==="GraphObject"||ne==="Diagram"||ne==="Layer"||ne==="RowColumnDefinition"||ne==="AnimationManager"||ne==="Tool"||ne==="CommandHandler"||ne==="Layout"||ne==="InputEvent"||ne==="DiagramEvent"||te instanceof mr||te instanceof Ko||te instanceof Va||te instanceof $o||(te=p0(a,te,!1)),jo(x,b,te)}return pi(x),x}return y instanceof Lt||y instanceof Kn||y instanceof wn||y instanceof yr||y instanceof Tr?y.copy():y}mr.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!TS&&a instanceof Yt&&(TS=!0,or('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),or(" Is that really your intent?"));var b=ga(a,y);b!==x&&(jo(a,y,x),this.Fs(a,y,b,x))},ot=mr.prototype,ot.set=function(a,y,x){this.setDataProperty(a,y,x)},ot.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},ot.Ay=function(a,y){this.ts(a,-1,y)},ot.ts=function(a,y,x){0>y&&(y=a.length),mn(a,y,x),Fa(this,"",la,"",a,null,x,null,y)},ot.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&$t("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];En(a,y),Fa(this,"",Oa,"",a,x,null,y,null)},ot.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ga(a,y),y===void 0))return"";if(typeof y=="string")return y;$t("getCategoryForNodeData found a non-string category for "+a+": "+y)},ot.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=ga(a,x);b===void 0&&(b=""),b!==y&&(jo(a,x,y),Fa(this,"nodeCategory",Go,x,a,b,y))}else jo(a,x,y)}},ot.lm=function(a,y){this.jm(y,this.Ro(a))},ot.Tl=function(){return!1},ot.Wj=function(){return!1},ot.ri=function(){return!1},ot.xs=function(){return!1},ot.Xj=function(){return!1};function hy(){return new mr}function Ig(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Ig(a,y.constructor);return typeof y}function dy(a){return Au[a]?Au[a]:zt.go!==void 0&&zt.go[a]?zt.go[a]:null}function ga(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function jo(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}Ot.Object.defineProperties(mr.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&$t("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&$t("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];nn(E)||$t("Model.nodeDataArray must only contain Objects, not: "+E),xo(E)}for(this.Tc=a,b=new Tn,E=0;E<x;E++){var te=a[E],ne=this.wa(te);ne===void 0||this.kb.I(ne)!==null?b.add(te):this.kb.add(ne,te)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),te=this.wa(E),te!==void 0&&this.kb.add(te,E);for(Fa(this,"nodeDataArray",Go,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),mr.prototype.setCategoryForNodeData=mr.prototype.jm,mr.prototype.getCategoryForNodeData=mr.prototype.Ro,mr.prototype.removeArrayItem=mr.prototype.ov,mr.prototype.insertArrayItem=mr.prototype.ts,mr.prototype.addArrayItem=mr.prototype.Ay,mr.prototype.assignAllDataProperties=mr.prototype.Do,mr.prototype.set=mr.prototype.set,mr.prototype.clearUnresolvedReferences=mr.prototype.Qy,mr.prototype.mergeNodeDataArray=mr.prototype.$z,mr.prototype.removeNodeDataCollection=mr.prototype.nA,mr.prototype.removeNodeData=mr.prototype.cm,mr.prototype.addNodeDataCollection=mr.prototype.Fy,mr.prototype.addNodeData=mr.prototype.xf,mr.prototype.makeNodeDataKeyUnique=mr.prototype.$u,mr.prototype.findNodeDataForKey=mr.prototype.hc,mr.prototype.containsNodeData=mr.prototype.lb,mr.prototype.setKeyForNodeData=mr.prototype.km,mr.prototype.getKeyForNodeData=mr.prototype.wa,mr.prototype.updateTargetBindings=mr.prototype.La,mr.prototype.commit=mr.prototype.commit,mr.prototype.rollbackTransaction=mr.prototype.Kf,mr.prototype.commitTransaction=mr.prototype.eb,mr.prototype.startTransaction=mr.prototype.Ea,mr.prototype.raiseDataChanged=mr.prototype.Fs,mr.prototype.raiseChanged=mr.prototype.g,mr.prototype.raiseChangedEvent=mr.prototype.cb,mr.prototype.removeChangedListener=mr.prototype.ik,mr.prototype.addChangedListener=mr.prototype.Pe,mr.prototype.writeJsonValue=mr.prototype.sm,mr.prototype.replaceJsonObjects=mr.prototype.dm,mr.prototype.applyIncrementalJSON=mr.prototype.Ky,mr.prototype.applyIncrementalJson=mr.prototype.Zw,mr.prototype.toJSON=mr.prototype.toJSON,mr.prototype.toJson=mr.prototype.np,mr.prototype.toIncrementalJSON=mr.prototype.yA,mr.prototype.toIncrementalJson=mr.prototype.$x,mr.prototype.toIncrementalData=mr.prototype.xA,mr.prototype.clear=mr.prototype.clear;var TS=!1,Au={};mr.className="Model",mr.fromJSON=mr.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=zt.JSON.parse(a)}catch(te){}else typeof a=="object"?x=a:$t("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=dy(b)):(E=dy(b),E===null&&(E=zt[b])),typeof E=="function"&&(a=new E)}catch(te){}a===null||a instanceof mr?y=a:$t("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=mr.constructGraphLinksModel()),y.gp(x),y.kv(x),y},mr.safePropertyValue=ga,mr.safePropertySet=jo,Au.Brush=so,Au.ChangedEvent=$o,Au.Geometry=Vn,Au.Margin=Tr,Au.Panel=Gn,Au.Point=Lt,Au.Rect=wn,Au.Size=Kn,Au.Spot=yr,Au.Transaction=Va,Au.UndoManager=Ko;function ba(a,y,x,b){pi(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=LS,this.wk=null):(this.el=Dg,this.wk=b),this.st=new On}ba.prototype.copy=function(){var a=new ba;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},ot=ba.prototype,ot.qb=function(a){a.classType===ba&&(this.mode=a)},ot.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return this._isFrozen=!1,this},ot.Kx=function(a){return a===void 0&&(a=null),this.mode=Dg,this.backConverter=a,this},ot.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},ot.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function MS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}ot.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")or("Binding error: target property is the empty string: "+this.toString());else{var te=y;if(b!==""&&(te=ga(y,b)),te!==void 0)if(E===null)x!==""&&jo(a,x,te);else try{if(x!==""){var ne=E(te,a);jo(a,x,ne)}else E(te,a)}catch(se){}}}},ot.sp=function(a,y,x,b){if(this.el===Dg){var E=this.xl;if(x===void 0||E===x){x=this.sl;var te=this.wk,ne=a;if(E!==""&&(ne=ga(a,E)),ne!==void 0&&!this.st.contains(a))try{this.st.add(a);var se=b!==null?b.diagram:null,he=se!==null?se.model:null;if(te===null){if(x!=="")he!==null?he.setDataProperty(y,x,ne):jo(y,x,ne);else if(he!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var me=b.itemIndex,Se=b.panel.itemArray;he.ov(Se,me),he.ts(Se,me,ne)}}else try{if(x!==""){var De=te(ne,y,he);he!==null?he.setDataProperty(y,x,De):jo(y,x,De)}else{var We=te(ne,y,he);if(We!==void 0&&he!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var qe=b.itemIndex,nt=b.panel.itemArray;he.ov(nt,qe),he.ts(nt,qe,We)}}}catch(lt){}}finally{this.st.remove(a)}}}},Ot.Object.defineProperties(ba.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&jn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&jn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&jn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&jn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&jn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&jn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&jn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&jn(this),this.el=a}}}),ba.prototype.updateSource=ba.prototype.sp,ba.prototype.updateTarget=ba.prototype.Mv,ba.prototype.ofModel=ba.prototype.dA,ba.prototype.ofObject=ba.prototype.cp,ba.prototype.makeTwoWay=ba.prototype.Kx;var jx="Binding",LS=new vn(ba,"OneWay",1),Dg=new vn(ba,"TwoWay",2);ba.className="Binding",ba.parseEnum=function(a,y){return function(x){return x=Jn(a,x),x===null?y:x}},ba.toString=zn,ba.OneWay=LS,ba.TwoWay=Dg;function ji(a,y,x){mr.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new On,this.wb=new cr,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(Cn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}cn(ji,mr),ji.constructGraphLinksModel=mr.constructGraphLinksModel,ji.prototype.cloneProtected=function(a){mr.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},ot=ji.prototype,ot.clear=function(){mr.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},ot.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;var x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+zn(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Yl(this,E,!0)+"-->"+Yl(this,E,!1)}return y},ot.Qv=function(a,y){this.linkKeyProperty===""&&$t("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=mr.prototype.Qv.call(this,a,y),b=this,E=new On,te=new On,ne=new On,se=this.vh;a.changes.each(function(Se){Se.model===b&&(Se.modelChange==="linkDataArray"?Se.change===la?E.add(Se.newValue):Se.change===Oa&&ne.add(Se.oldValue):b.Jc(Se.object)?te.add(Se.object):Se.object!==null&&(Se.object!==null&&se&&se.contains(Se.object)?se.get(Se.object).each(function(De){b.Jc(De)&&te.add(De)}):Se.object instanceof mr||b.lb(Se.object)||kS(b,Se.object).each(function(De){te.add(De)})))});var he=this.il;he.clear(),E.each(function(Se){he.add(b.Ac(Se)),y||te.add(Se)});var me=this.kl;return me.clear(),ne.each(function(Se){me.add(b.Ac(Se)),y&&te.add(Se)}),a=b.cloneDeep(te.Fa()),0<he.count&&(x===null&&(x={}),y?x.removedLinkKeys=he.Fa():x.insertedLinkKeys=he.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<me.count&&(x===null&&(x={}),y?x.insertedLinkKeys=me.Fa():x.removedLinkKeys=me.Fa()),me.clear(),he.clear(),x},ot.rm=function(){var a=mr.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
|
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
|
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
|
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
|
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
|
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
|
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
|
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
|
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
|
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},ot.gp=function(a){mr.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},ot.Rv=function(){var a=mr.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+id(this,this.linkDataArray,!0);return a+y},ot.kv=function(a){mr.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function kS(a,y){for(var x=new On,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];f0(a,y,E,E,x)}return x}ot.Pv=function(a,y){this.linkKeyProperty===""&&$t("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=mr.prototype.Pv.call(this,a,y),b=this,E=new On,te=new On,ne=new On,se=this.vh;a.changes.each(function(Se){Se.model===b&&(Se.modelChange==="linkDataArray"?Se.change===la?E.add(Se.newValue):Se.change===Oa&&ne.add(Se.oldValue):b.Jc(Se.object)?te.add(Se.object):Se.object!==null&&(Se.object!==null&&se&&se.contains(Se.object)?se.get(Se.object).each(function(De){b.Jc(De)&&te.add(De)}):Se.object instanceof mr||b.lb(Se.object)||kS(b,Se.object).each(function(De){te.add(De)})))});var he=this.il;he.clear(),E.each(function(Se){he.add(b.Ac(Se)),y||te.add(Se)});var me=this.kl;return me.clear(),ne.each(function(Se){me.add(b.Ac(Se)),y&&te.add(Se)}),a=x,0<he.count&&(a+=(y?this.Xv:this.Vv)+id(this,he.Fa(),!0)),0<te.count&&(a+=this.iy+id(this,te.Fa(),!0)),0<me.count&&(a+=(y?this.Vv:this.Xv)+id(this,me.Fa(),!0)),me.clear(),he.clear(),a},ot.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&$t("applyIncrementalJson cannot change Model properties"),mr.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],te=this.jh(E);te===null&&(te=this.Jo({}),this.Ks(te,E),this.fi(te))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],te=this.Ac(E),te=this.jh(te),te!==null){for(var ne in E)ne!=="__gohashid"&&ne!==this.linkKeyProperty&&this.setDataProperty(te,ne,E[ne]);AS(this,E,te)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ne=a.length,y=0;y<ne;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},ji.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Go){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),jo(x,b,E);return}}else if(a.change===la){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,nn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===Oa){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,nn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}mr.prototype.changeState.call(this,a,y)}},ot=ji.prototype,ot.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),jo(x,this.nodeKeyProperty,a),this.xf(x))}return a}},ot.yx=function(a){return Yl(this,a,!0)},ot.wv=function(a,y){Ep(this,a,y,!0)},ot.Bx=function(a){return Yl(this,a,!1)},ot.Bv=function(a,y){Ep(this,a,y,!1)};function Yl(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=ga(y,a),a!==void 0))){if(od(a))return a;$t((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Ep(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var te=ga(y,E);te!==x&&(Ju(a,te,y),jo(y,E,x),a.hc(x)===null&&Yu(a,x,y),Fa(a,b?"linkFromKey":"linkToKey",Go,E,y,te,x),typeof E=="string"&&a.La(y,E))}else jo(y,E,x)}}ot.zx=function(a){return g0(this,a,!0)},ot.xv=function(a,y){Tp(this,a,y,!0)},ot.Cx=function(a){return g0(this,a,!1)},ot.Cv=function(a,y){Tp(this,a,y,!1)};function g0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=ga(y,a),y===void 0?"":y)}function Tp(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var te=ga(y,E);te===void 0&&(te=""),te!==x&&(jo(y,E,x),Fa(a,b?"linkFromPortId":"linkToPortId",Go,E,y,te,x),typeof E=="string"&&a.La(y,E))}else jo(y,E,x)}}ot.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=ga(a,y),a===void 0?m0:a)},ot.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=ga(a,x);if(b===void 0&&(b=m0),b!==y){if(Array.isArray(b))for(var E=b.length,te=0;te<E;te++)Ju(this,b[te],a);for(jo(a,x,y),E=y.length,te=0;te<E;te++){var ne=y[te];this.hc(ne)===null&&Yu(this,ne,a)}Fa(this,"linkLabelKeys",Go,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else jo(a,x,y)}},ot.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ga(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&Yu(this,y,a),Fa(this,"linkLabelKeys",la,x,a,null,y,null,E)))}else $t(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},ot.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ga(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(Ju(this,y,a),Fa(this,"linkLabelKeys",Oa,x,a,y,null,E,null)))}else b!==void 0&&$t(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},ot.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ga(a,y),y!==void 0)){if(od(y))return y;$t("Key value for link data "+a+" is not a number or a string: "+y)}}},ot.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=ga(a,x);b!==y&&this.jh(y)===null&&(jo(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Fa(this,"linkKey",Go,x,a,b,y),typeof x=="string"&&this.La(a,x))}else jo(a,x,y)}},ot.jh=function(a){return a===null&&$t("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&od(a)?this.wb.I(a):null},ot.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){jo(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;jo(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;jo(a,y,x)}}}}},ot.Jc=function(a){return a===null?!1:this.$f.contains(a)},ot.fi=function(a){a!==null&&(xo(a),this.Jc(a)||OS(this,a,!0))};function OS(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&$t("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),Fa(a,"linkDataArray",la,"linkDataArray",a,null,y,null,b),fy(a,y)}ot.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},ot.bm=function(a){a!==null&&NS(this,a,!0)};function NS(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(Fa(a,"linkDataArray",Oa,"linkDataArray",a,y,null,b,null),x=Yl(a,y,!0),Ju(a,x,y),x=Yl(a,y,!1),Ju(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,te=0;te<E;te++)x=b[te],Ju(a,x,y)}ot.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},ot.Zz=function(a){if(this.linkKeyProperty===""&&$t("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Cn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var te=a[E],ne=this.Ac(te);if(ne!==void 0){x.add(ne);var se=this.jh(ne);se!==te&&(se!==null?(this.Do(se,te),AS(this,te,se)):(te=this.cloneDeep(te),this.Ks(te,ne),this.fi(te)))}else ne=this.cloneDeep(te),this.fi(ne),x.add(this.Ac(ne))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function fy(a,y){var x=Yl(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Yu(a,x,y),x=Yl(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Yu(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,te=0;te<E;te++)x=b[te],a.hc(x)===null&&Yu(a,x,y)}ot.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):p0(this,a,!0),nn(a)&&(pi(a),this.lf!==""&&jo(a,this.lf,void 0),this.mf!==""&&jo(a,this.mf,void 0),this.je!==""&&jo(a,this.je,[])),a},ot.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!ga(a,y)},ot.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=ga(a,y),y!==void 0)){if(od(y))return y;$t("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},ot.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=ga(a,x);b!==y&&(Ju(this,b,a),jo(a,x,y),this.hc(y)===null&&Yu(this,y,a),Fa(this,"nodeGroupKey",Go,x,a,b,y),typeof x=="string"&&this.La(a,x))}else jo(a,x,y)}},ji.prototype.copyNodeData=function(a){return a===null?null:(a=mr.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||ga(a,this.Je)===void 0||jo(a,this.Je,void 0),a)},ji.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Ep(this,a,x,!0);return}if(y===this.linkToKeyProperty){Ep(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Tp(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Tp(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=ga(a,y);b!==x&&(jo(a,y,x),this.Fs(a,y,b,x))},ot=ji.prototype,ot.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&ga(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},ot.jp=function(a,y){mr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,te=y;if(Yl(this,b,!0)===E){var ne=this.lf;jo(b,ne,te),Fa(this,"linkFromKey",Go,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)}if(Yl(this,b,!1)===E&&(ne=this.mf,jo(b,ne,te),Fa(this,"linkToKey",Go,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)),ne=this.Ef(b),Array.isArray(ne))for(var se=ne.length,he=this.je,me=0;me<se;me++)ne[me]===E&&(ne[me]=te,Fa(this,"linkLabelKeys",la,he,b,E,te,me,me))}},ot.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;jo(a,b,x),Fa(this,"nodeGroupKey",Go,b,a,y,x),typeof b=="string"&&this.La(a,b)}},ot.Lv=function(){mr.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},ot.fm=function(a){mr.prototype.fm.call(this,a),a=this.wa(a);var y=jg(this,a);if(y!==null){var x=pn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Fa(this,"nodeGroupKey",Go,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Yl(this,b,!0)===a&&(E=this.lf,Fa(this,"linkFromKey",Go,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Yl(this,b,!1)===a&&(E=this.mf,Fa(this,"linkToKey",Go,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var te=E.length,ne=this.je,se=0;se<te;se++)E[se]===a&&(Fa(this,"linkLabelKeys",la,ne,b,a,a,se,se),x.push(b))}for(y=0;y<x.length;y++)Ju(this,a,x[y]);kn(x)}},ot.em=function(a){mr.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Yu(this,y,a)},ot.qp=function(a){mr.prototype.qp.call(this,a);var y=this.lh(a);Ju(this,y,a)},ot.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=ga(a,y),y===void 0))return"";if(typeof y=="string")return y;$t("getCategoryForLinkData found a non-string category for "+a+": "+y)},ji.prototype.getLinkCategoryForData=function(a){return this.ps(a)},ji.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=ga(a,x);b===void 0&&(b=""),b!==y&&(jo(a,x,y),Fa(this,"linkCategory",Go,x,a,b,y),typeof x=="string"&&this.La(a,x))}else jo(a,x,y)}},ji.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},ot=ji.prototype,ot.lm=function(a,y){mr.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function AS(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}ot.Wj=function(){return!0},ot.ri=function(){return!0},ot.xs=function(){return!0},ot.Xj=function(){return!0},Ot.Object.defineProperties(ji.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];nn(E)||$t("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),xo(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Tn,E=0;E<x;E++){var te=a[E],ne=this.Ac(te);ne===void 0||this.wb.I(ne)!==null?b.add(te):this.wb.add(ne,te)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),te=this.Ac(E),te!==void 0&&this.wb.add(te,E)}for(b=new On,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Fa(this,"linkDataArray",Go,"linkDataArray",this,y,a),y=0;y<x;y++)fy(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],te=this.Ac(E);te===void 0&&(this.Bs(E),te=this.Ac(E)),te!==void 0&&this.wb.add(te,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),ji.prototype.setCategoryForLinkData=ji.prototype.lp,ji.prototype.getCategoryForLinkData=ji.prototype.ps,ji.prototype.assignAllDataProperties=ji.prototype.Do,ji.prototype.setGroupKeyForNodeData=ji.prototype.mp,ji.prototype.getGroupKeyForNodeData=ji.prototype.lh,ji.prototype.isGroupForNodeData=ji.prototype.Yu,ji.prototype.copyLinkData=ji.prototype.Jo,ji.prototype.mergeLinkDataArray=ji.prototype.Zz,ji.prototype.removeLinkDataCollection=ji.prototype.lA,ji.prototype.removeLinkData=ji.prototype.bm,ji.prototype.addLinkDataCollection=ji.prototype.Ey,ji.prototype.addLinkData=ji.prototype.fi,ji.prototype.containsLinkData=ji.prototype.Jc,ji.prototype.makeLinkDataKeyUnique=ji.prototype.Bs,ji.prototype.findLinkDataForKey=ji.prototype.jh,ji.prototype.setKeyForLinkData=ji.prototype.Ks,ji.prototype.getKeyForLinkData=ji.prototype.Ac,ji.prototype.removeLabelKeyForLinkData=ji.prototype.Qx,ji.prototype.addLabelKeyForLinkData=ji.prototype.Bu,ji.prototype.setLabelKeysForLinkData=ji.prototype.Ls,ji.prototype.getLabelKeysForLinkData=ji.prototype.Ef,ji.prototype.setToPortIdForLinkData=ji.prototype.Cv,ji.prototype.getToPortIdForLinkData=ji.prototype.Cx,ji.prototype.setFromPortIdForLinkData=ji.prototype.xv,ji.prototype.getFromPortIdForLinkData=ji.prototype.zx,ji.prototype.setToKeyForLinkData=ji.prototype.Bv,ji.prototype.getToKeyForLinkData=ji.prototype.Bx,ji.prototype.setFromKeyForLinkData=ji.prototype.wv,ji.prototype.getFromKeyForLinkData=ji.prototype.yx,ji.prototype.clear=ji.prototype.clear;var m0=Object.freeze([]);ji.className="GraphLinksModel",Au.GraphLinksModel=ji,mr.constructGraphLinksModel=mr.constructGraphLinksModel=function(){return new ji},mr.initDiagramModel=hy=function(){return new ji};function Xs(a,y){mr.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Cn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}cn(Xs,mr),Xs.constructGraphLinksModel=mr.constructGraphLinksModel,Xs.prototype.cloneProtected=function(a){mr.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},ot=Xs.prototype,ot.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+zn(E)}}return y},ot.rm=function(){var a=mr.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},ot.gp=function(a){mr.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},ot.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&$t("applyIncrementalJson cannot change Model properties"),mr.prototype.fp.call(this,a)},ot.Vl=function(a){return a},ot.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=ga(a,y),y!==void 0)){if(od(y))return y;$t("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},ot.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=ga(a,x);b!==y&&(Ju(this,b,a),jo(a,x,y),this.hc(y)===null&&Yu(this,y,a),Fa(this,"nodeParentKey",Go,x,a,b,y),typeof x=="string"&&this.La(a,x))}else jo(a,x,y)}},ot.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=ga(a,y),y===void 0)?"":typeof y=="string"?y:($t("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Xs.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Xs.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=ga(a,x);b===void 0&&(b=""),b!==y&&(jo(a,x,y),Fa(this,"parentLinkCategory",Go,x,a,b,y),typeof x=="string"&&this.La(a,x))}else jo(a,x,y)}},Xs.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Xs.prototype.copyNodeData=function(a){return a===null?null:(a=mr.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||ga(a,this.Ke)===void 0||jo(a,this.Ke,void 0),a)},Xs.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=ga(a,y);b!==x&&(jo(a,y,x),this.Fs(a,y,b,x))},ot=Xs.prototype,ot.jp=function(a,y){mr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},ot.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;jo(a,b,x),Fa(this,"nodeParentKey",Go,b,a,y,x),typeof b=="string"&&this.La(a,b)}},ot.fm=function(a){mr.prototype.fm.call(this,a),a=this.wa(a);var y=jg(this,a);if(y!==null){var x=pn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Fa(this,"nodeParentKey",Go,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)Ju(this,a,x[y]);kn(x)}},ot.em=function(a){mr.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Yu(this,y,a)},ot.qp=function(a){mr.prototype.qp.call(this,a);var y=this.mh(a);Ju(this,y,a)},ot.lm=function(a,y){mr.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},ot.Tl=function(){return!0},ot.xs=function(){return!0},Ot.Object.defineProperties(Xs.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),Xs.prototype.setParentLinkCategoryForNodeData=Xs.prototype.Ms,Xs.prototype.getParentLinkCategoryForNodeData=Xs.prototype.ss,Xs.prototype.setParentKeyForNodeData=Xs.prototype.qe,Xs.prototype.getParentKeyForNodeData=Xs.prototype.mh,Xs.className="TreeModel",Au.TreeModel=Xs;function Yo(a){_o.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ju,this.Ti=0,this.Zv=new Lt,this.Jp=this.me=0,this.Xr=new _g,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ju,this.K=Ys,this.nd=Lp,this.hd=oy,this.tf=6,this.Nn=P0,a&&Object.assign(this,a)}cn(Yo,_o),Yo.prototype.cloneProtected=function(a){_o.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},Yo.prototype.qb=function(a){a.classType===Yo?a===w0||a===b0||a===S0||a===x0||a===Lp?this.sorting=a:a===Yd||a===Mp||a===Ys||a===sd?this.direction=a:a===Nh||a===ad||a===ju||a===Iu?this.arrangement=a:(a===kf||a===P0)&&(this.nodeDiameterFormula=a):_o.prototype.qb.call(this,a)},Yo.prototype.createNetwork=function(){return new kp(this)},Yo.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Tn;y.addAll(a.iterator),a=new Tn;var x=new Tn,b=this.sort(y),E,te,ne=this.Jp,se=this.arrangement,he=this.nodeDiameterFormula,me=this.radius;(!isFinite(me)||0>=me)&&(me=NaN);var Se=this.aspectRatio;(!isFinite(Se)||0>=Se)&&(Se=1);var De=this.startAngle;isFinite(De)||(De=0);var We=this.sweepAngle;if((!isFinite(We)||360<We||1>We)&&(We=360),y=this.spacing,isFinite(y)||(y=NaN),se===Iu&&he===kf?se=ju:se===Iu&&he!==kf&&(se=this.arrangement),(this.direction===Yd||this.direction===Mp)&&this.sorting!==Lp){for(he=0;!(he>=b.length)&&(a.add(b.M(he)),!(he+1>=b.length));he+=2)x.add(b.M(he+1));this.direction===Yd?(this.arrangement===Iu&&a.reverse(),b=new Tn,b.addAll(a),b.addAll(x)):(this.arrangement===Iu&&x.reverse(),b=new Tn,b.addAll(x),b.addAll(a))}he=b.length;for(var qe=te=E=0;qe<b.length;qe++){var nt=De+We*te*(this.direction===Ys?1:-1)/he,lt=b.M(qe).diameter;isNaN(lt)&&(lt=ld(b.M(qe),nt)),360>We&&(qe===0||qe===b.length-1)&&(lt/=2),E+=lt,te++}if(isNaN(me)||se===Iu){if(isNaN(y)&&(y=6),se!==ju&&se!==Iu){for(te=-1/0,ne=0;ne<he;ne++)qe=b.M(ne),E=b.M(ne===he-1?0:ne+1),isNaN(qe.diameter)&&ld(qe,0),isNaN(E.diameter)&&ld(E,0),te=Math.max(te,(qe.diameter+E.diameter)/2);ne=te+y,se===Nh?me=(te+y)/(2*Math.PI/he):me=v0(this,ne*(360<=We?he:he-1),Se,De*Math.PI/180,We*Math.PI/180)}else me=v0(this,E+(360<=We?he:he-1)*(se!==Iu?y:1.6*y),Se,De*Math.PI/180,We*Math.PI/180);te=me*Se}else if(te=me*Se,qe=py(this,me,te,De*Math.PI/180,We*Math.PI/180),isNaN(y))(se===ju||se===Iu)&&(y=(qe-E)/(360<=We?he:he-1));else if(se===ju||se===Iu)qe=(qe-E)/(360<=We?he:he-1),qe<y?(me=v0(this,E+y*(360<=We?he:he-1),Se,De*Math.PI/180,We*Math.PI/180),te=me*Se):y=qe;else{for(ne=-1/0,E=0;E<he;E++)nt=b.M(E),lt=b.M(E===he-1?0:E+1),isNaN(nt.diameter)&&ld(nt,0),isNaN(lt.diameter)&&ld(lt,0),ne=Math.max(ne,(nt.diameter+lt.diameter)/2);ne+=y,E=v0(this,ne*(360<=We?he:he-1),Se,De*Math.PI/180,We*Math.PI/180),E>me?(me=E,te=me*Se):ne=qe/(360<=We?he:he-1)}if(this.kw=se,this.lc=me,this.Zm=Se,this.lw=De,this.Wp=We,this.Ti=y,this.me=te,this.Jp=ne,y=b,b=this.kw,se=this.lc,me=this.lw,Se=this.Wp,De=this.Ti,We=this.me,he=this.Jp,this.direction!==Yd&&this.direction!==Mp||b!==Iu)if(this.direction===Yd||this.direction===Mp){switch(ne=0,b){case ad:ne=180*y0(this,se,We,me,he)/Math.PI;break;case ju:he=y=0,ne=a.first(),ne!==null&&(y=ld(ne,Math.PI/2)),ne=x.first(),ne!==null&&(he=ld(ne,Math.PI/2)),ne=180*y0(this,se,We,me,De+(y+he)/2)/Math.PI;break;case Nh:ne=Se/y.length}if(this.direction===Yd){switch(b){case ad:Rg(this,a,me,sd);break;case ju:Bg(this,a,me,sd);break;case Nh:Fg(this,a,Se/2,me,sd)}switch(b){case ad:Rg(this,x,me+ne,Ys);break;case ju:Bg(this,x,me+ne,Ys);break;case Nh:Fg(this,x,Se/2,me+ne,Ys)}}else{switch(b){case ad:Rg(this,x,me,sd);break;case ju:Bg(this,x,me,sd);break;case Nh:Fg(this,x,Se/2,me,sd)}switch(b){case ad:Rg(this,a,me+ne,Ys);break;case ju:Bg(this,a,me+ne,Ys);break;case Nh:Fg(this,a,Se/2,me+ne,Ys)}}}else switch(b){case ad:Rg(this,y,me,this.direction);break;case ju:Bg(this,y,me,this.direction);break;case Nh:Fg(this,y,Se,me,this.direction);break;case Iu:jS(this,y,Se,me,this.direction)}else jS(this,y,Se,me-Se/2,Ys)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Fg(a,y,x,b,E){var te=a.Wp,ne=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var se=y.length,he=0;he<se;he++){var me=b+(E===Ys?he*x/(360<=te?se:se-1):-(he*x)/se),Se=y.M(he),De=ne*Math.tan(me)/a;De=Math.sqrt((ne*ne+a*a*De*De)/(1+De*De)),Se.centerX=De*Math.cos(me),Se.centerY=De*Math.sin(me),Se.actualAngle=180*me/Math.PI}}function Bg(a,y,x,b){var E=a.lc,te=a.me,ne=a.Ti;x=x*Math.PI/180;for(var se=y.length,he=0;he<se;he++){var me=y.M(he),Se=y.M(he===se-1?0:he+1),De=te*Math.sin(x);me.centerX=E*Math.cos(x),me.centerY=De,me.actualAngle=180*x/Math.PI,isNaN(me.diameter)&&ld(me,0),isNaN(Se.diameter)&&ld(Se,0),me=y0(a,E,te,b===Ys?x:-x,(me.diameter+Se.diameter)/2+ne),x+=b===Ys?me:-me}}function Rg(a,y,x,b){var E=a.lc,te=a.me,ne=a.Jp;x=x*Math.PI/180;for(var se=y.length,he=0;he<se;he++){var me=y.M(he);me.centerX=E*Math.cos(x),me.centerY=te*Math.sin(x),me.actualAngle=180*x/Math.PI,me=y0(a,E,te,b===Ys?x:-x,ne),x+=b===Ys?me:-me}}function jS(a,y,x,b,E){var te=a.Wp;if(a.mj=0,a.Xr=new _g,360>x){for(te=b+(E===Ys?te:-te);0>te;)te+=360;te%=360,180<te&&(te-=360),te*=Math.PI/180,a.gt=te,DS(a,y,x,b,E)}else IS(a,y,x,b,E);a.Xr.commit(y)}function IS(a,y,x,b,E){var te=a.lc,ne=a.Ti,se=a.Zm,he=te*Math.cos(b*Math.PI/180),me=a.me*Math.sin(b*Math.PI/180),Se=y.Fa();if(Se.length===3)Se[0].centerX=te,Se[0].centerY=0,Se[1].centerX=Se[0].centerX-Se[0].width/2-Se[1].width/2-ne,Se[1].y=Se[0].y,Se[2].centerX=(Se[0].centerX+Se[1].centerX)/2,Se[2].y=Se[0].y-Se[2].height-ne;else if(Se.length===4)Se[0].centerX=te,Se[0].centerY=0,Se[2].centerX=-Se[0].centerX,Se[2].centerY=Se[0].centerY,Se[1].centerX=0,Se[1].y=Math.min(Se[0].y,Se[2].y)-Se[1].height-ne,Se[3].centerX=0,Se[3].y=Math.max(Se[0].y+Se[0].height+ne,Se[2].y+Se[2].height+ne);else{te=Lt.alloc();for(var De=0;De<Se.length&&(Se[De].centerX=he,Se[De].centerY=me,!(De>=Se.length-1));De++)FS(a,he,me,Se,De,E,te)||BS(a,he,me,Se,De,E,te),he=te.x,me=te.y;if(Lt.free(te),a.mj++,!(23<a.mj)){he=Se[0].centerX,me=Se[0].centerY,te=Se[Se.length-1].centerX,De=Se[Se.length-1].centerY;var We=Math.abs(he-te)-((Se[0].width+Se[Se.length-1].width)/2+ne),qe=Math.abs(me-De)-((Se[0].height+Se[Se.length-1].height)/2+ne);ne=0,1>Math.abs(qe)?Math.abs(he-te)<(Se[0].width+Se[Se.length-1].width)/2&&(ne=0):ne=0<qe?qe:1>Math.abs(We)?0:We,he=Math.abs(te)>Math.abs(De)?0<te!=me>De:0<De!=he<te,(he=E===Ys?he:!he)&&(ne=-Math.abs(ne),ne=Math.min(ne,-Se[Se.length-1].width),ne=Math.min(ne,-Se[Se.length-1].height)),a.Xr.compare(ne,Se),1<Math.abs(ne)&&(a.lc=8>a.mj?a.lc-ne/(2*Math.PI):5>Se.length&&10<ne?a.lc/2:a.lc-(0<ne?1.7:-2.3),a.me=a.lc*se,IS(a,y,x,b,E))}}}function DS(a,y,x,b,E){for(var te=a.lc,ne=a.me,se=a.Zm,he=te*Math.cos(b*Math.PI/180),me=ne*Math.sin(b*Math.PI/180),Se=Lt.alloc(),De=y.Fa(),We=0;We<De.length&&(De[We].centerX=he,De[We].centerY=me,!(We>=De.length-1));We++)FS(a,he,me,De,We,E,Se)||BS(a,he,me,De,We,E,Se),he=Se.x,me=Se.y;if(Lt.free(Se),a.mj++,!(23<a.mj)){if(he=Math.atan2(me,he),he=E===Ys?a.gt-he:he-a.gt,he=Math.abs(he)<Math.abs(he-2*Math.PI)?he:he-2*Math.PI,te=he*(te+ne)/2,ne=a.Xr,Math.abs(te)<Math.abs(ne.Pl))for(ne.Pl=te,ne.mk=[],ne.tm=[],he=0;he<De.length;he++)ne.mk[he]=De[he].bounds.x,ne.tm[he]=De[he].bounds.y;1<Math.abs(te)&&(a.lc=8>a.mj?a.lc-te/(2*Math.PI):a.lc-(0<te?1.7:-2.3),a.me=a.lc*se,DS(a,y,x,b,E))}}function FS(a,y,x,b,E,te,ne){var se=a.lc,he=a.me,me=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var Se=!1;if(0<=x!=(te===Ys)){if(te=y+a,te>se){if(te=y-a,te<-se)return ne.x=te,ne.y=me,!1;Se=!0}}else if(te=y-a,te<-se){if(te=y+a,te>se)return ne.x=te,ne.y=me,!1;Se=!0}return me=Math.sqrt(1-Math.min(1,te*te/(se*se)))*he,0>x!==Se&&(me=-me),Math.abs(x-me)>(b[E].height+b[E+1].height)/2?(ne.x=te,ne.y=me,!1):(ne.x=te,ne.y=me,!0)}function BS(a,y,x,b,E,te,ne){var se=a.lc,he=a.me,me=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(te===Ys)){if(te=x-a,te<-he){if(te=x+a,te>he){ne.x=me,ne.y=te;return}b=!0}}else if(te=x+a,te>he){if(te=x-a,te<-he){ne.x=me,ne.y=te;return}b=!0}me=Math.sqrt(1-Math.min(1,te*te/(he*he)))*se,0>y!==b&&(me=-me),ne.x=me,ne.y=te}Yo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Yo.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Lt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Yo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function py(a,y,x,b,E){var te=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ne=0,se=b!==void 0&&E!==void 0?E/(te+1):Math.PI/(2*(te+1)),he=0,me=0;me<=te;me++){b!==void 0&&E!==void 0?he=b+me*E/te:he=me*Math.PI/(2*te);var Se=Math.sin(he);ne+=Math.sqrt(1-a*a*Se*Se)*se}return b!==void 0&&E!==void 0?(y>x?y:x)*ne:4*(y>x?y:x)*ne}function v0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?py(a,1,x,b,E):py(a,1,x))}function y0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var te=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ne=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var se=0;;se++){var he=Math.sin(b+se*a);if(ne+=(y>x?y:x)*Math.sqrt(1-te*te*he*he)*a,ne>=E)return se*a}}Yo.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case w0:a.sort(this.comparer);break;case b0:a.sort(this.comparer),a.reverse();break;case Lp:return this.ak(Ix(a));default:$t("Invalid sorting type.")}return a};function Ix(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Tn;for(var b=0;b<a.length;b++){var E=-1,te=-1;if(b===0)for(var ne=0;ne<a.length;ne++){var se=a.M(ne).edgesCount;se>E&&(E=se,te=ne)}else for(ne=0;ne<a.length;ne++)se=y[ne],se>E&&(E=se,te=ne);for(x.add(a.M(te)),y[te]=-1,te=a.M(te),ne=te.sourceEdges;ne.next();)E=a.indexOf(ne.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(te=te.destinationEdges;te.next();)E=a.indexOf(te.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}Yo.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,te=b.destinationEdges;te.next();)E=a.indexOf(te.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(te=[],x=0;x<y.length;x++)te[x]=0;x=[];var ne=[],se=[];b=[],E=new Tn;for(var he=0,me=0;me<y.length;me++){var Se=y[me].length;if(Se===1)b.push(me);else if(Se===0)E.add(a.M(me));else{if(he===0)x.push(me);else{for(var De=Se=1/0,We=-1,qe=[],nt=0;nt<x.length;nt++)0>y[x[nt]].indexOf(x[nt===x.length-1?0:nt+1])&&qe.push(nt===x.length-1?0:nt+1);if(qe.length===0)for(nt=0;nt<x.length;nt++)qe.push(nt);for(nt=0;nt<qe.length;nt++){for(var lt=qe[nt],At=y[me],Tt=0,Bt=0;Bt<ne.length;Bt++){var _t=te[ne[Bt]],Gt=te[se[Bt]];if(_t<Gt){var Zt=_t;_t=Gt}else Zt=Gt;if(Zt<lt&<<=_t)for(Gt=0;Gt<At.length;Gt++){var un=At[Gt];0>x.indexOf(un)||Zt<te[un]&&te[un]<_t||Zt===te[un]||_t===te[un]||Tt++}else for(Gt=0;Gt<At.length;Gt++)un=At[Gt],0>x.indexOf(un)||Zt<te[un]&&te[un]<_t&&Zt!==te[un]&&_t!==te[un]&&Tt++}for(At=Tt,Bt=Tt=0;Bt<y[me].length;Bt++)Zt=x.indexOf(y[me][Bt]),0<=Zt&&(Zt=Math.abs(lt-(Zt>=lt?Zt+1:Zt)),Tt+=Zt<x.length+1-Zt?Zt:x.length+1-Zt);for(Bt=0;Bt<ne.length;Bt++)Zt=te[ne[Bt]],_t=te[se[Bt]],Zt>=lt&&Zt++,_t>=lt&&_t++,Zt>_t&&(Gt=_t,_t=Zt,Zt=Gt),_t-Zt<(x.length+2)/2==(Zt<lt&<<=_t)&&Tt++;(At<Se||At===Se&&Tt<De)&&(Se=At,De=Tt,We=lt)}for(x.splice(We,0,me),Se=0;Se<x.length;Se++)te[x[Se]]=Se;for(Se=0;Se<y[me].length;Se++)De=y[me][Se],0<=x.indexOf(De)&&(ne.push(me),se.push(De))}he++}}for(ne=x.length;;){for(te=!0,se=0;se<b.length;se++)if(he=b[se],me=y[he][0],Se=x.indexOf(me),0<=Se){for(We=De=0;We<y[me].length;We++)qe=x.indexOf(y[me][We]),0>qe||qe===Se||(nt=qe>Se?qe-Se:Se-qe,De+=qe<Se!=nt>ne-nt?1:-1);x.splice(0>De?Se:Se+1,0,he),b.splice(se,1),se--}else te=!1;if(te)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},Ot.Object.defineProperties(Yo.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Iu&&a!==ju&&a!==ad&&a!==Nh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ys&&a!==sd&&a!==Yd&&a!==Mp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==w0&&!b0&&a!==Lp||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==P0&&a!==kf||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var ju=new vn(Yo,"ConstantSpacing",0),ad=new vn(Yo,"ConstantDistance",1),Nh=new vn(Yo,"ConstantAngle",2),Iu=new vn(Yo,"Packed",3),Ys=new vn(Yo,"Clockwise",4),sd=new vn(Yo,"Counterclockwise",5),Yd=new vn(Yo,"BidirectionalLeft",6),Mp=new vn(Yo,"BidirectionalRight",7),S0=new vn(Yo,"Forwards",8),x0=new vn(Yo,"Reverse",9),w0=new vn(Yo,"Ascending",10),b0=new vn(Yo,"Descending",11),Lp=new vn(Yo,"Optimized",12),P0=new vn(Yo,"Pythagorean",13),kf=new vn(Yo,"Circular",14);Yo.className="CircularLayout",Yo.ConstantSpacing=ju,Yo.ConstantDistance=ad,Yo.ConstantAngle=Nh,Yo.Packed=Iu,Yo.Clockwise=Ys,Yo.Counterclockwise=sd,Yo.BidirectionalLeft=Yd,Yo.BidirectionalRight=Mp,Yo.Forwards=S0,Yo.Reverse=x0,Yo.Ascending=w0,Yo.Descending=b0,Yo.Optimized=Lp,Yo.Pythagorean=P0,Yo.Circular=kf;function _g(){this.Pl=-1/0,this.tm=this.mk=null}_g.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},_g.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},_g.className="VertexArrangement";function kp(a){Eo.call(this,a)}cn(kp,Eo),kp.prototype.createVertex=function(){return new zg(this)},kp.prototype.createEdge=function(){return new C0(this)},kp.className="CircularNetwork";function zg(a){Ua.call(this,a),this.u=this.Si=NaN}cn(zg,Ua);function ld(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Iu)if(x.nodeDiameterFormula===kf)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===kf?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Ot.Object.defineProperties(zg.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),zg.className="CircularVertex";function C0(a){kl.call(this,a)}cn(C0,kl),C0.className="CircularEdge";function Ss(a){_o.call(this),this.ah=null,this.An=0,this.$d=new Kn(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}cn(Ss,_o),Ss.prototype.cloneProtected=function(a){_o.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},Ss.prototype.createNetwork=function(){return new Of(this)},Ss.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var te=E.value;te.Vd=te.vertexes.count,te.sh=1,te.Hj=null,te.We=null}RS(this,0,a)}this.network=y;var ne=b=x.iterator;b=this.arrangementSpacing;var se=ne.count,he=!0;te=E=0;for(var me=pn(),Se=0;Se<se+y.vertexes.count+2;Se++)me[Se]=null;se=0,ne.reset();for(var De=wn.alloc();ne.next();)if(Se=ne.value,this.computeBounds(Se,De),he)he=!1,E=De.x+De.width/2,te=De.y+De.height/2,me[0]=new Lt(De.x+De.width+b.width,De.y),me[1]=new Lt(De.x,De.y+De.height+b.height),se=2;else{var We=_S(me,se,E,te,De.width,De.height,b),qe=me[We],nt=new Lt(qe.x+De.width+b.width,qe.y),lt=new Lt(qe.x,qe.y+De.height+b.height);for(We+1<se&&me.splice(We+1,0,null),me[We]=nt,me[We+1]=lt,se++,We=qe.x-De.x,qe=qe.y-De.y,Se=Se.vertexes.iterator;Se.next();)nt=Se.value,nt.centerX+=We,nt.centerY+=qe}for(wn.free(De),Se=y.vertexes.iterator;Se.next();)ne=Se.value,We=ne.bounds,2>se?(E=We.x+We.width/2,te=We.y+We.height/2,me[0]=new Lt(We.x+We.width+b.width,We.y),me[1]=new Lt(We.x,We.y+We.height+b.height),se=2):(he=_S(me,se,E,te,We.width,We.height,b),De=me[he],qe=new Lt(De.x+We.width+b.width,De.y),We=new Lt(De.x,De.y+We.height+b.height),he+1<se&&me.splice(he+1,0,null),me[he]=qe,me[he+1]=We,se++,ne.centerX=De.x+ne.width/2,ne.centerY=De.y+ne.height/2);for(kn(me),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}$S(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Ss.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},Ss.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function RS(a,y,x){if(Dx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Fx(a,y),te=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=te,RS(a,y+1,x),$S(a,te),Bx(a,E),y=E.vertexes.Fa(),y.sort(function(ne,se){return ne===null||se===null||ne===se?0:se.Vd-ne.Vd}),x=0;x<y.length;x++)Rx(a,y[x]);a.Zf=b}}function Dx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Fx(a,y){for(var x=a.network,b=new Of(a),E=0;E<a.ah.length;E++){var te=a.ah[E];if(1<te.Vd){b.dh(te);var ne=new GS;ne.Rs=te.Vd,ne.Ss=te.width,ne.Qs=te.height,ne.Sv=te.focus.x,ne.Tv=te.focus.y,te.We===null&&(te.We=new Tn),te.We.add(ne),te.sv=te.We.count-1}else break}for(te=x.edges.iterator;te.next();){var se=te.value;E=se.fromVertex,ne=se.toVertex,E.network===b&&ne.network===b?b.Bo(se):E.network===b?(se=E.Hj,se===null&&(se=new Tn,E.Hj=se),se.add(ne),E.Vd--,E.sh+=ne.sh):ne.network===b&&(se=ne.Hj,se===null&&(se=new Tn,ne.Hj=se),se.add(E),ne.Vd--,ne.sh+=E.sh)}for(E=b.edges.iterator;E.next();)te=E.value,te.length*=Math.max(1,Qt.sqrt((te.fromVertex.sh+te.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var he=E.Hj;if(he!==null&&0<he.count&&(ne=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=ne))){for(var me=se=0,Se=he.count-ne;Se<he.count;Se++){var De=he.M(Se),We=null;for(te=De.edges.iterator;te.next();){var qe=te.value;if(qe.Ax(De)===E){We=qe;break}}We!==null&&(me+=We.length,se+=De.width*De.height)}te=E.centerX,he=E.centerY,Se=E.width,De=E.height,We=E.focus,qe=Se*De,1>qe&&(qe=1),se=Qt.sqrt((se+qe+me*me*4/(ne*ne))/qe),ne=(se-1)*Se/2,se=(se-1)*De/2,E.bounds=new wn(te-We.x-ne,he-We.y-se,Se+2*ne,De+2*se),E.focus=new Lt(We.x+ne,We.y+se)}}return a.network=b,x}function Bx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var te=E.Sv,ne=E.Tv;b.bounds=new wn(b.centerX-te,b.centerY-ne,E.Ss,E.Qs),b.focus=new Lt(te,ne),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,te=y.width,ne=y.height;y.We!==null&&0<y.We.count&&(ne=y.We.M(0),te=ne.Ss,ne=ne.Qs),te=Qt.sqrt(te*te+ne*ne)/2;for(var se=!1,he=ne=0,me=0,Se=y.vertexes.iterator;Se.next();){var De=Se.value;1>=De.Vd?he++:(se=!0,me++,ne+=Math.atan2(y.centerY-De.centerY,y.centerX-De.centerX))}if(he!==0){for(0<me&&(ne/=me),me=y=0,y=se?2*Math.PI/(he+1):2*Math.PI/he,he%2===0&&(me=y/2),1<x.count&&x.sort(function(qe,nt){return qe===null||nt===null||qe===nt?0:nt.width*nt.height-qe.width*qe.height}),se=he%2===0?0:1,x=x.iterator;x.next();)if(he=x.value,!(1<he.Vd||a.isFixed(he))){for(Se=null,De=he.edges.iterator;De.next();){Se=De.value;break}De=he.width;var We=he.height;De=Qt.sqrt(De*De+We*We)/2,Se=te+Se.length+De,De=ne+(y*(se/2>>1)+me)*(se%2===0?1:-1),he.centerX=b+Se*Math.cos(De),he.centerY=E+Se*Math.sin(De),se++}}}}function _S(a,y,x,b,E,te,ne){var se=9e19,he=-1,me=0;e:for(;me<y;me++){var Se=a[me],De=Se.x-x,We=Se.y-b;if(De=De*De+We*We,De<se){for(We=me-1;0<=We;We--)if(a[We].y>Se.y&&a[We].x-Se.x<E+ne.width)continue e;for(We=me+1;We<y;We++)if(a[We].x>Se.x&&a[We].y-Se.y<te+ne.height)continue e;he=me,se=De}}return he}Ss.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ss.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var te=E.value;if(te.toVertex===a){x=te;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(te=E.value,te.fromVertex===a){x=te;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function zS(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var te=y.bounds,ne=te.x;y=te.y;var se=te.width;return te=te.height,b+E<ne?a>y+te?(x=b+E-ne,a=a-y-te,Qt.sqrt(x*x+a*a)):a+x<y?(b=b+E-ne,a=a+x-y,Qt.sqrt(b*b+a*a)):ne-(b+E):b>ne+se?a>y+te?(x=b-ne-se,a=a-y-te,Qt.sqrt(x*x+a*a)):a+x<y?(b=b-ne-se,a=a+x-y,Qt.sqrt(b*b+a*a)):b-(ne+se):a>y+te?a-(y+te):a+x<y?y-(a+x):.1}function $S(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,_x(a)););a.ah=null}function _x(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,te=x=x.centerY,ne=1;ne<y.length;ne++){var se=y[ne];se.forceX=0,se.forceY=0;var he=se.centerX;se=se.centerY,b=Math.min(b,he),E=Math.max(E,he),x=Math.min(x,se),te=Math.max(te,se)}(E=E-b>te-x)?y.sort(function(lt,At){return lt===null||At===null||lt===At?0:lt.centerX-At.centerX}):y.sort(function(lt,At){return lt===null||At===null||lt===At?0:lt.centerY-At.centerY}),x=a.Zf;var me=b=se=0;for(te=0;te<y.length;te++){ne=y[te],b=ne.bounds,se=ne.focus,he=b.x+se.x;var Se=b.y+se.y;b=ne.charge*a.electricalFieldX(he,Se),me=ne.charge*a.electricalFieldY(he,Se),b+=ne.mass*a.gravitationalFieldX(he,Se),me+=ne.mass*a.gravitationalFieldY(he,Se),ne.forceX+=b,ne.forceY+=me;for(var De=te+1;De<y.length;De++){var We=y[De];if(We!==ne){b=We.bounds,se=We.focus,me=b.x+se.x;var qe=b.y+se.y;if(he-me>x||me-he>x){if(E)break}else if(Se-qe>x||qe-Se>x){if(!E)break}else{var nt=zS(ne,We);1>nt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new E0),nt=b.random(),se=b.random(),he>me?(b=Math.abs(We.bounds.right-ne.bounds.x),b=(1+b)*nt):he<me?(b=Math.abs(We.bounds.x-ne.bounds.right),b=-(1+b)*nt):(b=Math.max(We.width,ne.width),b=(1+b)*nt-b/2),Se>qe?(me=Math.abs(We.bounds.bottom-ne.bounds.y),me=(1+me)*se):he<me?(me=Math.abs(We.bounds.y-ne.bounds.bottom),me=-(1+me)*se):(me=Math.max(We.height,ne.height),me=(1+me)*se-me/2)):(se=-(ne.charge*We.charge)/(nt*nt),b=(me-he)/nt*se,me=(qe-Se)/nt*se),ne.forceX+=b,ne.forceY+=me,We.forceX-=b,We.forceY-=me}}}}for(E=a.network.edges.iterator;E.next();)se=E.value,x=se.fromVertex,te=se.toVertex,ne=x.bounds,he=x.focus,b=ne.x+he.x,ne=ne.y+he.y,Se=te.bounds,De=te.focus,he=Se.x+De.x,Se=Se.y+De.y,De=zS(x,te),1>De?(De=a.randomNumberGenerator,De===null&&(a.randomNumberGenerator=De=new E0),se=De.random(),De=De.random(),b=(b>he?1:-1)*(1+(te.width>x.width?te.width:x.width))*se,me=(ne>Se?1:-1)*(1+(te.height>x.height?te.height:x.height))*De):(se=se.stiffness*(De-se.length),b=(he-b)/De*se,me=(Se-ne)/De*se),x.forceX+=b,x.forceY+=me,te.forceX-=b,te.forceY-=me;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}Ss.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},Ss.prototype.moveFixedVertex=function(){},Ss.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ss.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=oo,y.toSpot=oo)}},Ss.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=wn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,wn.free(x)}x=wn.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}wn.free(x)},Ss.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ss.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Ss.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Ss.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Ss.prototype.electricalFieldX=function(){return 0},Ss.prototype.electricalFieldY=function(){return 0},Ss.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Ss.prototype.gravitationalFieldX=function(){return 0},Ss.prototype.gravitationalFieldY=function(){return 0},Ss.prototype.isFixed=function(a){return a.isFixed},Ot.Object.defineProperties(Ss.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&$t('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),Ss.className="ForceDirectedLayout";function GS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}GS.className="ForceDirectedSubnet";function Of(a){Eo.call(this,a)}cn(Of,Eo),Of.prototype.createVertex=function(){return new $g(this)},Of.prototype.createEdge=function(){return new Gg(this)},Of.className="ForceDirectedNetwork";function $g(a){Ua.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}cn($g,Ua),Ot.Object.defineProperties($g.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),$g.className="ForceDirectedVertex";function Gg(a){kl.call(this,a),this.j=this.o=NaN}cn(Gg,kl),Ot.Object.defineProperties(Gg.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Gg.className="ForceDirectedEdge";function E0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}E0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},E0.className="RandomNumberGenerator";function co(a){_o.call(this),this.kc=this.ie=25,this.K=0,this.Dk=O0,this.Zk=N0,this.Qk=A0,this.bj=4,this.rk=j0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Lt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}cn(co,_o),co.prototype.cloneProtected=function(a){_o.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},co.prototype.qb=function(a){a.classType===co?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:$t("Unknown enum value: "+a):_o.prototype.qb.call(this,a)},co.prototype.createNetwork=function(){return new Np(this)},co.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Ug&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Ug&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,te=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||te.node===null&&te.data===null)&&E.layer===te.layer)){var ne=0,se=0,he=0,me=0;if(b.link!==null){if(se=b.link,se===null)continue;var Se=E.node;if(ne=te.node,Se===null||ne===null)continue;var De=se.fromNode;he=se.toNode;for(var We=se.fromPort;We!==null&&!We.Ed();)We=We.panel;for(se=se.toPort;se!==null&&!se.Ed();)se=se.panel;if(b.rev){me=De;var qe=We;De=he,We=se,he=me,se=qe}var nt=E.focus;me=te.focus;var lt=b.rev?te.bounds:E.bounds;qe=Lt.alloc(),Se!==De?lt.w()&&De.isVisible()?De.actualBounds.w()?(Th(De,We,Di,qe),qe.x+=De.actualBounds.x-lt.x,qe.y+=De.actualBounds.y-lt.y):(Th(De,We,Di,qe),qe.w()||qe.assign(nt)):qe.assign(nt):lt.w()?(Th(De,We,Di,qe),qe.w()||qe.assign(nt)):qe.assign(nt),De=b.rev?E.bounds:te.bounds,Se=Lt.alloc(),ne!==he?De.w()&&he.isVisible()?he.actualBounds.w()?(Th(he,se,Di,Se),Se.x+=he.actualBounds.x-De.x,Se.y+=he.actualBounds.y-De.y):(Th(he,se,Di,Se),Se.w()||Se.assign(me)):Se.assign(me):De.w()?(Th(he,se,Di,Se),Se.w()||Se.assign(me)):Se.assign(me),this.K===90||this.K===270?(ne=Math.round((qe.x-nt.x)/this.kc),he=qe.x,se=Math.round((Se.x-me.x)/this.kc),me=Se.x):(ne=Math.round((qe.y-nt.y)/this.kc),he=qe.y,se=Math.round((Se.y-me.y)/this.kc),me=Se.y),Lt.free(qe),Lt.free(Se),b.portFromColOffset=ne,b.portFromPos=he,b.portToColOffset=se,b.portToPos=me}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(qe=E.layer,Se=te.layer,De=0,lt=b.link,lt!==null){var At=lt.fromPort,Tt=lt.toPort;if(At!==null&&Tt!==null){var Bt=lt.fromNode;if(We=lt.toNode,Bt!==null&&We!==null){var _t=k0(this,!0),Gt=k0(this,!1),Zt=this.setsPortSpots?_t:lt.computeSpot(!0,At);nt=this.setsPortSpots?Gt:lt.computeSpot(!1,Tt);var un=lt.isOrthogonal;Zt.$c()&&Zt.Hf(Gt)&&nt.$c()&&nt.Hf(_t)?De=0:(_t=lt.getLinkPoint(Bt,At,Zt,!0,un,We,Tt,Lt.alloc()),Gt=lt.getLinkDirection(Bt,At,_t,Zt,!0,un,We,Tt),Lt.free(_t),Zt.ys()||Gt!==JS(this,b,!0)?this.setsPortSpots&&Bt!==null&&Bt.ports.count===1&&b.rev&&(De+=1):De+=1,Zt=lt.getLinkPoint(We,Tt,nt,!1,un,Bt,At,Lt.alloc()),lt=lt.getLinkDirection(We,Tt,Zt,nt,!1,un,Bt,At),Lt.free(Zt),nt.ys()||lt!==JS(this,b,!1)?this.setsPortSpots&&We!==null&&We.ports.count===1&&b.rev&&(De+=2):De+=2)}}}if(We=De,De=We===1||We===3,(We=We===2||We===3)&&(nt=a.createVertex(),nt.node=null,nt.Dj=1,nt.layer=qe,nt.near=E,a.dh(nt),E=a.Zj(E,nt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ne,E.portToColOffset=0,E.portFromPos=he,E.portToPos=0,E=nt),lt=1,De&<--,qe-Se>lt&&0<qe){for(b.valid=!1,nt=a.createVertex(),nt.node=null,nt.Dj=2,nt.layer=qe-1,a.dh(nt),E=a.Zj(E,nt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=We?0:ne,E.portToColOffset=0,E.portFromPos=We?0:he,E.portToPos=0,E=nt,qe--;qe-Se>lt&&0<qe;)nt=a.createVertex(),nt.node=null,nt.Dj=3,nt.layer=qe-1,a.dh(nt),E=a.Zj(E,nt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=nt,qe--;E=a.Zj(nt,te,b.link),E.valid=!De,De&&(nt.near=te),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=se,E.portFromPos=0,E.portToPos=me}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=ud(this,a),x=0,b=this.tc[a],te=0;te<b;te++)E=y[te],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),cd(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},co.prototype.linkMinLength=function(){return 1};function gy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}co.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},co.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function hl(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function hu(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function HS(a,y,x){var b=ud(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var te=a.Jn,ne=0;ne<E;ne++){var se=0,he=b[ne],me=he.near;if(me!==null&&me.layer===he.layer)if(he=me.index,he>ne)for(var Se=ne+1;Se<he;Se++){var De=b[Se];De.near===me&&De.Dj===me.Dj||se++}else for(Se=ne-1;Se>he;Se--)De=b[Se],De.near===me&&De.Dj===me.Dj||se++;var We;if(0<=x)for(he=b[ne].sourceEdgesArrayAccess,me=0;me<he.length;me++){var qe=he[me];if(qe.valid&&qe.fromVertex.layer!==y)for(De=qe.fromVertex.index,Se=qe.portToPos,qe=qe.portFromPos,We=me+1;We<he.length;We++){var nt=he[We];if(nt.valid&&nt.fromVertex.layer!==y){var lt=nt.fromVertex.index,At=nt.portToPos;nt=nt.portFromPos,Se<At&&(De>lt||De===lt&&qe>nt)&&se++,At<Se&&(lt>De||lt===De&&nt>qe)&&se++}}}if(0>=x){for(he=b[ne].destinationEdgesArrayAccess,me=0;me<he.length;me++)if(qe=he[me],qe.valid&&qe.toVertex.layer!==y)for(De=qe.toVertex.index,Se=qe.portToPos,qe=qe.portFromPos,We=me+1;We<he.length;We++)nt=he[We],nt.valid&&nt.toVertex.layer!==y&&(lt=nt.toVertex.index,At=nt.portToPos,nt=nt.portFromPos,qe<nt&&(De>lt||De===lt&&Se>At)&&se++,nt<qe&&(lt>De||lt===De&&At>Se)&&se++)}for(te[ne*E+ne]=se,he=ne+1;he<E;he++){var Tt=0,Bt=0;if(0<=x){se=b[ne].sourceEdgesArrayAccess;var _t=b[he].sourceEdgesArrayAccess;for(me=0;me<se.length;me++)if(qe=se[me],qe.valid&&qe.fromVertex.layer!==y)for(De=qe.fromVertex.index,qe=qe.portFromPos,We=0;We<_t.length;We++)nt=_t[We],nt.valid&&nt.fromVertex.layer!==y&&(lt=nt.fromVertex.index,nt=nt.portFromPos,(De<lt||De===lt&&qe<nt)&&Bt++,(lt<De||lt===De&&nt<qe)&&Tt++)}if(0>=x){for(se=b[ne].destinationEdgesArrayAccess,_t=b[he].destinationEdgesArrayAccess,me=0;me<se.length;me++)if(qe=se[me],qe.valid&&qe.toVertex.layer!==y)for(De=qe.toVertex.index,Se=qe.portToPos,We=0;We<_t.length;We++)nt=_t[We],nt.valid&&nt.toVertex.layer!==y&&(lt=nt.toVertex.index,At=nt.portToPos,(De<lt||De===lt&&Se<At)&&Bt++,(lt<De||lt===De&&At<Se)&&Tt++)}te[ne*E+he]=Tt,te[he*E+ne]=Bt}}return cd(a,y,b),te}co.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=HS(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var te=E;te<b;te++)a+=x[E*b+te];return a};function T0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,te=ud(b,E),ne=b.tc[E],se=0,he=0;he<ne;he++){var me=te[he].destinationEdgesArrayAccess;if(me!==null)for(var Se=0;Se<me.length;Se++){var De=me[Se];if(De.valid&&De.toVertex.layer!==E){var We=De.fromVertex.column+De.portFromColOffset,qe=De.toVertex.column+De.portToColOffset;se+=(Math.abs(We-qe)+1)*gy(De)}}}cd(b,E,te),y+=se}return y}co.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function my(a,y,x){for(var b=ud(a,y),E=a.tc[y],te=[],ne=0;ne<E;ne++){var se=b[ne],he=null;0>=x&&(he=se.sourceEdgesArrayAccess);var me=null;0<=x&&(me=se.destinationEdgesArrayAccess);var Se=0,De=0,We=se.near;if(We!==null&&We.layer===se.layer&&(Se+=We.column-1,De++),he!==null)for(We=0;We<he.length;We++){se=he[We];var qe=se.fromVertex;se.valid&&!se.rev&&qe.layer!==y&&(Se+=qe.column,De++)}if(me!==null)for(he=0;he<me.length;he++)se=me[he],We=se.toVertex,se.valid&&!se.rev&&We.layer!==y&&(Se+=We.column,De++);te[ne]=De===0?-1:Se/De}return cd(a,y,b),te}function US(a,y,x){for(var b=ud(a,y),E=a.tc[y],te=[],ne=0;ne<E;ne++){var se=b[ne],he=null;0>=x&&(he=se.sourceEdgesArrayAccess);var me=null;0<=x&&(me=se.destinationEdgesArrayAccess);var Se=0,De=[],We=se.near;if(We!==null&&We.layer===se.layer&&(De[Se]=We.column-1,Se++),se=void 0,he!==null)for(We=0;We<he.length;We++){se=he[We];var qe=se.fromVertex;se.valid&&!se.rev&&qe.layer!==y&&(De[Se]=qe.column+se.portFromColOffset,Se++)}if(me!==null)for(he=0;he<me.length;he++)se=me[he],We=se.toVertex,se.valid&&!se.rev&&We.layer!==y&&(De[Se]=We.column+se.portToColOffset,Se++);Se===0?te[ne]=-1:(De.sort(function(nt,lt){return nt-lt}),me=Se>>1,te[ne]=Se&1?De[me]:De[me-1]+De[me]>>1)}return cd(a,y,b),te}function Hg(a,y,x,b,E,te){if(y.component===b){if(y.component=x,E)for(var ne=y.destinationEdges;ne.next();){var se=ne.value,he=se.toVertex,me=y.layer-he.layer;se=a.linkMinLength(se),me===se&&Hg(a,he,x,b,E,te)}if(te)for(ne=y.sourceEdges;ne.next();)se=ne.value,he=se.fromVertex,me=he.layer-y.layer,se=a.linkMinLength(se),me===se&&Hg(a,he,x,b,E,te)}}function vy(a,y,x,b,E,te){if(y.component===b){if(y.component=x,E)for(var ne=y.destinationEdges;ne.next();)vy(a,ne.value.toVertex,x,b,E,te);if(te)for(y=y.sourceEdges;y.next();)vy(a,y.value.fromVertex,x,b,E,te)}}co.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case xy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;zx(a)!==null;){for(E=WS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=WS(a);for(E=KS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=KS(a);E=null;for(var te=0,ne=this.network.vertexes.iterator;ne.next();){var se=ne.value;if(se.valid){for(var he=0,me=se.destinationEdges;me.next();)me.value.toVertex.valid&&he++;me=0;for(var Se=se.sourceEdges;Se.next();)Se.value.fromVertex.valid&&me++;(E===null||te<he-me)&&(E=se,te=he-me)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case O0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&yy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&yy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,te=E.finish,E.Ll<y.Ll&&x<te&&(this.network.gm(b),b.rev=!0));break;case Ug:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(te=0;te<E.length;te++)E[te].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function zx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function WS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function KS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function yy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,yy(a,E))}y.finish=a.Kn,a.Kn++}co.prototype.assignLayers=function(){switch(this.Zk){case wy:VS(this);break;case by:for(var a,y=this.network.vertexes.iterator;y.next();)a=XS(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case N0:for(VS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&YS(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function VS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=ZS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function ZS(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,te=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,ZS(a,te)+E)}y.layer=x}else x=y.layer;return x}function XS(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,te=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,XS(a,te)+E)}y.layer=x}else x=y.layer;return x}function YS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)YS(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,te=0;te<E;te++){var ne=b[te],se=ne.fromVertex,he=ne.toVertex;ne=a.linkMinLength(ne),se.layer-he.layer>ne&&Hg(a,se,0,-1,!0,!1)}for(Hg(a,y,1,-1,!0,!0);y.component!==0;){for(te=0,b=1/0,se=0,he=null,ne=a.network.vertexes.iterator;ne.next();){var me=ne.value;if(me.component===1){var Se=0,De=!1,We=me.sourceEdgesArrayAccess;E=We.length;for(var qe=0;qe<E;qe++){var nt=We[qe],lt=nt.fromVertex;Se+=1,lt.component!==1&&(te+=1,lt=lt.layer-me.layer,nt=a.linkMinLength(nt),b=Math.min(b,lt-nt))}for(We=me.destinationEdgesArrayAccess,E=We.length,qe=0;qe<E;qe++)nt=We[qe].toVertex,--Se,nt.component!==1?--te:De=!0;(he===null||Se<se)&&!De&&(he=me,se=Se)}}if(0<te){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else he.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Hg(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,te=0,se=null,he=a.network.vertexes.iterator;he.next();)if(ne=he.value,ne.component===1){for(me=0,Se=!1,We=ne.sourceEdgesArrayAccess,De=We.length,qe=0;qe<De;qe++)nt=We[qe].fromVertex,me+=1,nt.component!==1?b+=1:Se=!0;for(We=ne.destinationEdgesArrayAccess,De=We.length,qe=0;qe<De;qe++)nt=We[qe],lt=nt.toVertex,--me,lt.component!==1&&(--b,lt=ne.layer-lt.layer,nt=a.linkMinLength(nt),E=Math.min(E,lt-nt));(se===null||me>te)&&!Se&&(se=ne,te=me)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else se.component=0}}}function JS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}co.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case A0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&QS(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x)}};function QS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],te=y[b+1];E.portFromColOffset>te.portFromColOffset&&(x=!0,y[b]=te,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&QS(a,b))}function qS(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],te=y[x+1];E.portToColOffset>te.portToColOffset&&(b=!0,y[x]=te,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&qS(a,b))}co.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=hl(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,1),xu(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=hl(this)),b=this.Ia;0<=b;b--)M0(this,b,-1),xu(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=hl(this))}for(hu(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,0),xu(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=hl(this)),b=this.Ia;0<=b;b--)M0(this,b,0),xu(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=hl(this))}hu(this,y);var te,ne,se;switch(this.rk){case Ey:break;case Ty:for(se=a+1;(b=this.countCrossings())<se;)for(se=b,x=this.Ia;0<=x;x--)for(ne=0;ne<=x;ne++){for(te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,-1)||te;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,1)||te;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,1)||te;for(E>=a?hu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,-1)||te;for(E>=a?hu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,0)||te;for(E>=a?hu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,0)||te;E>=a?hu(this,y):(a=E,y=hl(this))}break;default:case j0:for(x=this.Ia,ne=0,se=a+1;(b=this.countCrossings())<se;){for(se=b,te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,-1)||te;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,1)||te;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,1)||te;for(E>=a?hu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,-1)||te;for(E>=a?hu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,0)||te;for(E>=a?hu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,0)||te;E>=a?hu(this,y):(a=E,y=hl(this))}}hu(this,y)};function M0(a,y,x){var b=ud(a,y),E=a.tc[y],te=US(a,y,x),ne=my(a,y,x);for(x=0;x<E;x++)ne[x]===-1&&(ne[x]=b[x].column),te[x]===-1&&(te[x]=b[x].column);for(var se=!0,he;se;)for(se=!1,x=0;x<E-1;x++)(te[x+1]<te[x]||te[x+1]===te[x]&&ne[x+1]<ne[x])&&(se=!0,he=te[x],te[x]=te[x+1],te[x+1]=he,he=ne[x],ne[x]=ne[x+1],ne[x+1]=he,he=b[x],b[x]=b[x+1],b[x+1]=he);for(x=te=0;x<E;x++)he=b[x],he.index=x,te+=a.nodeMinColumnSpace(he,!0),he.column=te,te+=1,te+=a.nodeMinColumnSpace(he,!1);cd(a,y,b)}function xu(a,y,x){var b=ud(a,y),E=a.tc[y];x=HS(a,y,x);var te,ne=[];for(te=0;te<E;te++)ne[te]=-1;var se=[];for(te=0;te<E;te++)se[te]=-1;for(var he=!1,me=!0;me;)for(me=!1,te=0;te<E-1;te++){var Se=x[b[te].index*E+b[te+1].index],De=x[b[te+1].index*E+b[te].index],We=0,qe=0,nt=b[te].column,lt=b[te+1].column,At=a.nodeMinColumnSpace(b[te],!0),Tt=a.nodeMinColumnSpace(b[te],!1),Bt=a.nodeMinColumnSpace(b[te+1],!0),_t=a.nodeMinColumnSpace(b[te+1],!1);At=nt-At+Bt,Tt=lt-Tt+_t;var Gt=b[te].sourceEdges.iterator;for(Gt.reset();Gt.next();)if(Bt=Gt.value,_t=Bt.fromVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt<te&&(We+=2*(te-Bt),qe+=2*(te+1-Bt)),Bt===te+1&&(We+=1),Bt>te+1&&(We+=4*(Bt-te),qe+=4*(Bt-(te+1)))}for(Gt=b[te].destinationEdges.iterator,Gt.reset();Gt.next();)if(Bt=Gt.value,_t=Bt.toVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt===te+1&&(qe+=1)}for(Gt=b[te+1].sourceEdges.iterator,Gt.reset();Gt.next();)if(Bt=Gt.value,_t=Bt.fromVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt<te&&(We+=2*(te+1-Bt),qe+=2*(te-Bt)),Bt===te&&(qe+=1),Bt>te+1&&(We+=4*(Bt-(te+1)),qe+=4*(Bt-te))}for(Gt=b[te+1].destinationEdges.iterator,Gt.reset();Gt.next();)if(Bt=Gt.value,_t=Bt.toVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt===te&&(We+=1)}Bt=_t=0,Gt=ne[b[te].index];var Zt=se[b[te].index],un=ne[b[te+1].index],er=se[b[te+1].index];Gt!==-1&&(_t+=Math.abs(Gt-nt),Bt+=Math.abs(Gt-Tt)),Zt!==-1&&(_t+=Math.abs(Zt-nt),Bt+=Math.abs(Zt-Tt)),un!==-1&&(_t+=Math.abs(un-lt),Bt+=Math.abs(un-At)),er!==-1&&(_t+=Math.abs(er-lt),Bt+=Math.abs(er-At)),(qe<We-.5||qe===We&&De<Se-.5||qe===We&&De===Se&&Bt<_t-.5)&&(me=he=!0,b[te].column=Tt,b[te+1].column=At,Se=b[te],b[te]=b[te+1],b[te+1]=Se)}for(te=0;te<E;te++)b[te].index=te;return cd(a,y,b),he}co.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Zx)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var te=E.value;y=te.layer,b=te.column,te=this.nodeMinColumnSpace(te,!1),x[y]=Math.max(x[y],b+te)}for(E.reset();E.next();)te=E.value,y=te.layer,b=te.column,te.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Op(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Op(this,y,-1)||x;x=Op(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Sy(this,y,1);for(y=this.Md-1;0<=y;y--)Sy(this,y,-1);Sy(this,this.Md,0)}if(a&&(ex(this,-1),ex(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Op(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Op(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Op(this,y,0)||x}}else Ux(this)};function Op(a,y,x){for(var b=!1;$x(a,y,x);)b=!0;return b}function $x(a,y,x){var b,E=ud(a,y),te=a.tc[y],ne=my(a,y,-1);if(0<x)for(b=0;b<te;b++)ne[b]=-1;var se=my(a,y,1);if(0>x)for(b=0;b<te;b++)se[b]=-1;for(var he=!1,me=!0;me;)for(me=!1,b=0;b<te;b++){var Se=E[b].column,De=a.nodeMinColumnSpace(E[b],!0),We=a.nodeMinColumnSpace(E[b],!1),qe=0;0>b-1||Se-E[b-1].column-1>De+a.nodeMinColumnSpace(E[b-1],!1)?qe=Se-1:qe=Se,De=b+1>=te||E[b+1].column-Se-1>We+a.nodeMinColumnSpace(E[b+1],!0)?Se+1:Se;var nt=We=0,lt=0;if(0>=x)for(var At=E[b].sourceEdges.iterator;At.next();){var Tt=At.value,Bt=Tt.fromVertex;if(Tt.valid&&Bt.layer!==y){var _t=gy(Tt),Gt=Tt.portFromColOffset;Tt=Tt.portToColOffset,Bt=Bt.column,We+=(Math.abs(Se+Tt-(Bt+Gt))+1)*_t,nt+=(Math.abs(qe+Tt-(Bt+Gt))+1)*_t,lt+=(Math.abs(De+Tt-(Bt+Gt))+1)*_t}}if(0<=x)for(At=E[b].destinationEdges.iterator;At.next();)Tt=At.value,Bt=Tt.toVertex,Tt.valid&&Bt.layer!==y&&(_t=gy(Tt),Gt=Tt.portFromColOffset,Tt=Tt.portToColOffset,Bt=Bt.column,We+=(Math.abs(Se+Gt-(Bt+Tt))+1)*_t,nt+=(Math.abs(qe+Gt-(Bt+Tt))+1)*_t,lt+=(Math.abs(De+Gt-(Bt+Tt))+1)*_t);Tt=Gt=_t=0,At=ne[E[b].index],Bt=se[E[b].index],At!==-1&&(_t+=Math.abs(At-Se),Gt+=Math.abs(At-qe),Tt+=Math.abs(At-De)),Bt!==-1&&(_t+=Math.abs(Bt-Se),Gt+=Math.abs(Bt-qe),Tt+=Math.abs(Bt-De)),nt<We||nt===We&&Gt<_t?(me=he=!0,E[b].column=qe):(lt<We||lt===We&&Tt<_t)&&(me=he=!0,E[b].column=De)}return cd(a,y,E),a.normalize(),he}function Sy(a,y,x){var b=ud(a,y),E=a.tc[y],te=US(a,y,x),ne=[];for(x=0;x<E;x++)ne[x]=te[x];for(te=!0;te;)for(te=!1,x=0;x<E;x++){var se=b[x].column,he=a.nodeMinColumnSpace(b[x],!0),me=a.nodeMinColumnSpace(b[x],!1),Se=0;if(ne[x]===-1)if(x===0&&x===E-1)Se=se;else if(x===0){var De=b[x+1].column;De-se===me+a.nodeMinColumnSpace(b[x+1],!0)?Se=se-1:Se=se}else x===E-1?(De=b[x-1].column,Se=se-De===he+a.nodeMinColumnSpace(b[x-1],!1)?se+1:se):(De=b[x-1].column,he=De+a.nodeMinColumnSpace(b[x-1],!1)+he+1,De=b[x+1].column,me=De-a.nodeMinColumnSpace(b[x+1],!0)-me-1,Se=(he+me)/2|0);else x===0&&x===E-1?Se=ne[x]:x===0?(De=b[x+1].column,me=De-a.nodeMinColumnSpace(b[x+1],!0)-me-1,Se=Math.min(ne[x],me)):x===E-1?(De=b[x-1].column,he=De+a.nodeMinColumnSpace(b[x-1],!1)+he+1,Se=Math.max(ne[x],he)):(De=b[x-1].column,he=De+a.nodeMinColumnSpace(b[x-1],!1)+he+1,De=b[x+1].column,me=De-a.nodeMinColumnSpace(b[x+1],!0)-me-1,he<ne[x]&&ne[x]<me?Se=ne[x]:he>=ne[x]?Se=he:me<=ne[x]&&(Se=me));Se!==se&&(te=!0,b[x].column=Se)}cd(a,y,b),a.normalize()}function Gx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,te=a.nodeMinColumnSpace(E,!0),ne=a.nodeMinColumnSpace(E,!1);if(E.column-te<=y&&E.column+ne>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Hx(a,y){var x=y+1,b,E=[],te=[];for(b=0;b<=a.Ia;b++)E[b]=!1,te[b]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){b=ne.value;var se=b.column-a.nodeMinColumnSpace(b,!0),he=b.column+a.nodeMinColumnSpace(b,!1);se<=y&&he>=y&&(E[b.layer]=!0),se<=x&&he>=x&&(te[b.layer]=!0)}for(se=!0,x=!1,b=0;b<=a.Ia;b++)se=se&&!(E[b]&&te[b]);if(se)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,x=!0);return x}function ex(a,y){for(var x=0;x<=a.Ra;x++)for(;Gx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Hx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=hl(a),te=T0(a);for(b=te+1;te<b;){b=te,tx(a,x,1);var ne=T0(a);ne>te?hu(a,E):ne<te&&(te=ne,E=hl(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=hl(a),te=T0(a),b=te+1;te<b;)b=te,tx(a,x,-1),ne=T0(a),ne>te?hu(a,E):ne<te&&(te=ne,E=hl(a));a.normalize()}function tx(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(vy(a,y,a.le,-1,!0,!0),a.le++);var te;for(y=[],te=0;te<a.le*a.le;te++)y[te]=!1;for(E=[],te=0;te<(a.Ia+1)*(a.Ra+1);te++)E[te]=-1;for(b.reset();b.next();){te=b.value;for(var ne=te.layer,se=Math.max(0,te.column-a.nodeMinColumnSpace(te,!0)),he=Math.min(a.Ra,te.column+a.nodeMinColumnSpace(te,!1));se<=he;se++)E[ne*(a.Ra+1)+se]=te.component}for(te=0;te<=a.Ia;te++){if(0<x)for(ne=0;ne<a.Ra;ne++)E[te*(a.Ra+1)+ne]!==-1&&E[te*(a.Ra+1)+ne+1]!==-1&&E[te*(a.Ra+1)+ne]!==E[te*(a.Ra+1)+ne+1]&&(y[E[te*(a.Ra+1)+ne]*a.le+E[te*(a.Ra+1)+ne+1]]=!0);if(0>x)for(ne=a.Ra;0<ne;ne--)E[te*(a.Ra+1)+ne]!==-1&&E[te*(a.Ra+1)+ne-1]!==-1&&E[te*(a.Ra+1)+ne]!==E[te*(a.Ra+1)+ne-1]&&(y[E[te*(a.Ra+1)+ne]*a.le+E[te*(a.Ra+1)+ne-1]]=!0)}for(E=[],te=0;te<a.le;te++)E[te]=!0;for(ne=[],ne.push(0);ne.length!==0;)if(he=ne[ne.length-1],ne.pop(),E[he])for(E[he]=!1,te=0;te<a.le;te++)y[he*a.le+te]&&ne.splice(0,0,te);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Ux(a){for(var y=pn(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new On,Wx(y,x);var te=null,ne=null,se=null,he=null,me=(a.ve&1)!==0,Se=(a.ve&2)!==0,De=(a.ve&4)!==0,We=(a.ve&8)!==0;for(me&&(a.verticalAlignment(y,x,!0),te=L0(a,y,!0,!1)),y.reverse(),De&&(a.verticalAlignment(y,x,!1),se=L0(a,y,!1,!1)),b=yi(y),E=b.next();!E.done;E=b.next())E.value.reverse();We&&(a.verticalAlignment(y,x,!1),he=L0(a,y,!1,!0)),y.reverse(),Se&&(a.verticalAlignment(y,x,!0),ne=L0(a,y,!0,!0)),kn(y),a.u(te,ne,se,he),a.network.vertexes.each(function(qe){var nt=pn();me&&nt.push(te.get(qe)),Se&&nt.push(ne.get(qe)),De&&nt.push(se.get(qe)),We&&nt.push(he.get(qe)),nt.sort(function(At,Tt){return At-Tt});var lt=nt.length;lt=(nt[Math.floor((lt-1)/2)]+nt[Math.ceil((lt-1)/2)])/2,kn(nt),qe.zc=lt})}function Wx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,te=0,ne=a[b],se=a[b+1],he=0;te<se.length;he++){var me=se[he];e:{if(me.node===null){var Se=My(me);if(0<Se.length){Se=Se[0].node===null;break e}}Se=!1}var De=Se;if(he===se.length-1||De){for(Se=ne.length-1,De&&(Se=My(me)[0].index);te<=he;){if(me=se[te],!me.bo){De=[];for(var We=yi(me.sourceEdgesArrayAccess),qe=We.next();!qe.done;qe=We.next())qe=qe.value,qe.valid&&De.push(qe);me.bo=De}for(me=yi(me.bo),De=me.next();!De.done;De=me.next())De=De.value,We=De.fromVertex.index,(We<E||We>Se)&&y.add(De);te++}E=Se}}}co.prototype.verticalAlignment=function(a,y,x){Kx(a),a=yi(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=yi(b.value);for(var te=b.next();!te.done;te=b.next()){te=te.value;var ne=x?My(te):Xx(te),se=ne.length;if(0<se){ne.sort(function(De,We){return De.vi-We.vi});var he=(se-1)/2;for(se=Math.floor(he),he=Math.ceil(he);se<=he;se++)if(te.align===te){var me=ne[se],Se=void 0;Se=x?I0(me,te):I0(te,me),!y.contains(Se)&&E<me.vi&&(me.align=te,te.root=me.root,te.align=me.root,E=me.vi)}}}}};function Kx(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function L0(a,y,x,b){for(var E=a.K===90||a.K===270,te=yi(y),ne=te.next();!ne.done;ne=te.next()){var se=yi(ne.value);for(ne=se.next();!ne.done;ne=se.next())ne=ne.value,ne.sd=ne,ne.shift=1/0,ne.zc=NaN,ne.qg=0}for(ne=a.K===90||a.K===270,te=yi(y),se=te.next();!se.done;se=te.next()){se=yi(se.value);for(var he=se.next();!he.done;he=se.next())if(he=he.value,he.root===he){for(var me=0,Se=he;Se.align!==he;){var De=Se.align,We=ne?Se.width:Se.height,qe=ne?De.width:De.height;if(x){var nt=I0(Se,De),lt=nt.portFromPos,At=nt.portToPos;nt.link!==null&&(Se.node&&Se.node!==nt.link.fromNode&&(lt=ne?Se.focusX:Se.focusY),De.node&&De.node!==nt.link.toNode&&(At=ne?De.focusX:De.focusY))}else nt=I0(De,Se),lt=nt.portToPos,At=nt.portFromPos,nt.link!==null&&(Se.node&&Se.node!==nt.link.toNode&&(lt=ne?Se.focusX:Se.focusY),De.node&&De.node!==nt.link.fromNode&&(At=ne?De.focusX:De.focusY));We=b?Se.qg+(We-lt)-(qe-At):Se.qg+lt-At,De.qg=We,me=Math.min(me,We),Se=Se.align}Se=he;do Se.qg=Se.qg-me,Se=Se.align;while(Se!==he)}}for(x=yi(y),ne=x.next();!ne.done;ne=x.next())for(te=yi(ne.value),ne=te.next();!ne.done;ne=te.next())ne=ne.value,ne.root===ne&&nx(a,ne,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ne=y[x][0],ne.sd===ne)){ne.sd.shift===1/0&&(ne.sd.shift=0),ne=x,se=0;do{for(te=y[ne][se];te.align!==te.root;)te=te.align,ne++,0<te.vi&&(se=rx(te,y),se.sd.shift=Math.min(se.sd.shift,te.sd.shift+te.zc+te.qg-(se.zc+se.qg+(E?se.width:se.height)+a.columnSpacing)));se=te.vi+1}while(ne<y.length&&se<y[ne].length&&te.sd===y[ne][se].sd)}for(a=new cr,y=yi(y),ne=y.next();!ne.done;ne=y.next())for(x=yi(ne.value),ne=x.next();!ne.done;ne=x.next())ne=ne.value,ne.zc=ne.zc+ne.sd.shift+ne.qg,te=E?ne.width:ne.height,a.add(ne,b?-ne.zc-te:ne.zc);return a}function nx(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=rx(b,x),te=E.root;nx(a,te,x),y.sd===y&&(y.sd=te.sd);var ne=a.K===90||a.K===270?E.width:E.height;y.sd===te.sd&&(y.zc=Math.max(y.zc,te.zc+E.qg+ne-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function rx(a,y){var x=a.Tz;return a=a.vi,1>a&&$t("Could not determine previous vertex in layer"),y[x][a-1]}co.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=pn(),E=pn(),te=1/0,ne=0;4>ne;ne++)if(y[ne]){var se=Vx(this,y[ne],b,E,ne);se<te&&(x=ne,te=se)}for(te={},ne=0;4>ne;te={delta:te.delta},ne++)y[ne]&&(te.delta=ne===0||ne===2?b[x]-b[ne]:E[x]-E[ne],te.delta!==0&&y[ne].each(function(he){return function(me){me.value+=he.delta}}(te)));kn(b),kn(E)};function Vx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var te=1/0,ne=-1/0;return y.each(function(se){var he=se.key;se=se.value,he=a.K===90||a.K===270?he.width:he.height,se<te&&(te=se),se+he>ne&&(ne=se+he)}),x[E]=te,b[E]=ne,ne-te}co.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=k0(this,!0),y=k0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function k0(a,y){return a.K===270?y?ha:za:a.K===90?y?za:ha:a.K===180?y?Ea:Ka:y?Ka:Ea}co.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var te=1/0,ne=E=1/0,se=-1/0;a.next();){var he=a.value,me=he.layer,Se=he.column|0;b?(ne=y.x+this.kc*Se,me=this.Kd[me]):(ne=this.Kd[me],me=y.y+this.kc*Se),he.centerX=ne,he.centerY=me,x&&isFinite(he.zc)&&(b?he.node?he.x=y.x+he.zc:he.centerX=y.x+he.zc:he.node?he.y=y.y+he.zc:he.centerY=y.y+he.zc),te=Math.min(he.x,te),E=Math.min(he.y,E),b?(ne=te,se=Math.max(se,he.bounds.right)):(ne=E,se=Math.max(se,he.bounds.bottom))}for(this.xw=se-ne,te=y.x-te,y=y.y-E,this.Rf=new Lt(x&&b?0:te,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=te,x.y+=y,x.commit()},co.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new wn(0,0,x,Math.abs(this.Ta[0]))):y.push(new wn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new wn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new wn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new wn(0,0,Math.abs(this.Ta[0]),x)):y.push(new wn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new wn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new wn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},co.prototype.commitLayers=function(){},co.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,te=b.toNode,ne=b.fromPort,se=b.toPort;if(E!==null){var he=E.findVisibleNode();he!==null&&he!==E&&(E=he,ne=he.port)}te!==null&&(he=te.findVisibleNode(),he!==null&&he!==te&&(te=he,se=he.port));var me=y.computeSpot(!0,ne);he=y.computeSpot(!1,se);var Se=x.fromVertex,De=x.toVertex;if(x.valid)y.curve===Xl&&y.pointsCount===4&&(Se.column===De.column&&this.alignOption===0?(x=y.getLinkPoint(E,ne,me,!0,!1,te,se),se=y.getLinkPoint(te,se,he,!1,!1,E,ne),x.w()||x.set(E.actualBounds.center),se.w()||se.set(te.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+se.x)/3,(2*x.y+se.y)/3),y.yf((x.x+2*se.x)/3,(x.y+2*se.y)/3),y.yf(se.x,se.y)):(x=b=!1,ne!==null&&me===aa&&(b=!0),se!==null&&he===aa&&(x=!0),(b||x)&&(he=null,b&&(he=y.getLinkPointFromPoint(E,ne,ne.ga(Di),y.i(3),!0),he.w()||he.set(E.actualBounds.center),y.L(0,he.x,he.y)),E=null,x&&(E=y.getLinkPointFromPoint(te,se,se.ga(Di),y.i(0),!1),E.w()||E.set(te.actualBounds.center),y.L(3,E.x,E.y)),he&&(te=y.i(2),y.L(1,(2*he.x+te.x)/3,(2*he.y+te.y)/3)),E&&(te=y.i(1),y.L(2,(2*E.x+te.x)/3,(2*E.y+te.y)/3))))),y.zf();else if(Se.layer===De.layer)y.zf();else{var We=!1,qe=!1,nt=this.ie,lt=y.firstPickIndex+1;if(y.isOrthogonal){qe=!0;var At=y.pointsCount;4<At&&y.points.removeRange(2,At-3)}else if(y.curve===Xl)We=!0,At=y.pointsCount,4<At&&y.points.removeRange(2,At-3),At===4&&(lt=2);else{At=y.pointsCount;var Tt=me===aa,Bt=he===aa;2<At&&Tt&&Bt?y.points.removeRange(1,At-2):3<At&&Tt&&!Bt?y.points.removeRange(1,At-3):3<At&&!Tt&&Bt?y.points.removeRange(2,At-2):4<At&&!Tt&&!Bt&&y.points.removeRange(2,At-3)}if(x.rev){for(;De!==null&&Se!==De;){var _t=At=null;for(Tt=De.sourceEdges.iterator;Tt.next()&&(Bt=Tt.value,Bt.link!==x.link||(At=Bt.fromVertex,_t=Bt.toVertex,At.node!==null)););if(At===null)break;if(At!==Se){Tt=y.i(lt-1).x,Bt=y.i(lt-1).y;var Gt=At.centerX,Zt=At.centerY;if(qe)this.K===180||this.K===0?lt===y.firstPickIndex+1?(y.m(lt++,Tt,Bt),y.m(lt++,Tt,Zt)):(_t!==null?_t.centerY:Bt)!==Zt&&(_t=this.Ta[At.layer-1]+this.Rf.x,y.m(lt++,_t,Bt),y.m(lt++,_t,Zt)):lt===y.firstPickIndex+1?(y.m(lt++,Tt,Bt),y.m(lt++,Gt,Bt)):(_t!==null?_t.centerX:Tt)!==Gt&&(_t=this.Ta[At.layer-1]+this.Rf.y,y.m(lt++,Tt,_t),y.m(lt++,Gt,_t));else if(lt===y.firstPickIndex+1){_t=Math.max(10,this.he[De.layer]);var un=Math.max(10,this.Ld[De.layer]);if(We)this.K===180?Gt<=De.bounds.x?(De=De.bounds.x,y.m(lt++,De-_t,Zt),y.m(lt++,De,Zt),y.m(lt++,De+un,Zt)):(y.m(lt++,Gt-_t,Zt),y.m(lt++,Gt,Zt),y.m(lt++,Gt+un,Zt)):this.K===90?Zt>=De.bounds.bottom?(De=De.bounds.y+De.bounds.height,y.m(lt++,Gt,De+un),y.m(lt++,Gt,De),y.m(lt++,Gt,De-_t)):(y.m(lt++,Gt,Zt+un),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Zt-_t)):this.K===270?Zt<=De.bounds.y?(De=De.bounds.y,y.m(lt++,Gt,De-_t),y.m(lt++,Gt,De),y.m(lt++,Gt,De+un)):(y.m(lt++,Gt,Zt-_t),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Zt+un)):this.K===0&&(Gt>=De.bounds.right?(De=De.bounds.x+De.bounds.width,y.m(lt++,De+un,Zt),y.m(lt++,De,Zt),y.m(lt++,De-_t,Zt)):(y.m(lt++,Gt+un,Zt),y.m(lt++,Gt,Zt),y.m(lt++,Gt-_t,Zt)));else{y.m(lt++,Tt,Bt);var er=0;this.K===180||this.K===0?((this.K===180?Gt>=De.bounds.right:Gt<=De.bounds.x)&&(er=(this.K===0?-_t:un)/2),y.m(lt++,Tt+er,Zt)):((this.K===270?Zt>=De.bounds.bottom:Zt<=De.bounds.y)&&(er=(this.K===90?-_t:un)/2),y.m(lt++,Gt,Bt+er)),y.m(lt++,Gt,Zt)}}else _t=Math.max(10,this.he[At.layer]),un=Math.max(10,this.Ld[At.layer]),We?this.K===180?(y.m(lt++,Gt-_t-nt,Zt),y.m(lt++,Math.min(Gt-_t+nt/2,Gt),Zt),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Zt),y.m(lt++,Math.max(Gt+un-nt/2,Gt),Zt),y.m(lt++,Gt+un+nt,Zt)):this.K===90?(y.m(lt++,Gt,Zt+un+nt),y.m(lt++,Gt,Math.max(Zt+un-nt/2,Zt)),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Math.min(Zt-_t+nt/2,Zt)),y.m(lt++,Gt,Zt-_t-nt)):this.K===270?(y.m(lt++,Gt,Zt-_t-nt),y.m(lt++,Gt,Math.min(Zt-_t+nt/2,Zt)),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Math.max(Zt+un-nt/2,Zt)),y.m(lt++,Gt,Zt+un+nt)):(y.m(lt++,Gt+un+nt,Zt),y.m(lt++,Math.max(Gt+un-nt/2,Gt),Zt),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Zt),y.m(lt++,Math.min(Gt-_t+nt/2,Gt),Zt),y.m(lt++,Gt-_t-nt,Zt)):y.m(lt++,Gt,Zt)}De=At}(se===null||me!==aa||qe)&&(Tt=y.i(lt-1).x,Bt=y.i(lt-1).y,Gt=y.i(lt).x,Zt=y.i(lt).y,qe?(nt=this.Ld[Se.layer],this.K===180||this.K===0?(qe=Bt,qe>=Se.bounds.y&&qe<=Se.bounds.bottom&&(this.K===180?Gt>=Se.bounds.x:Gt<=Se.bounds.right)&&(De=Se.centerX+(this.K===180?-nt:nt),qe<Se.bounds.y+Se.bounds.height/2?qe=Se.bounds.y-this.kc/2:qe=Se.bounds.bottom+this.kc/2,y.m(lt++,De,Bt),y.m(lt++,De,qe)),y.m(lt++,Gt,qe)):(qe=Tt,qe>=Se.bounds.x&&qe<=Se.bounds.right&&(this.K===270?Zt>=Se.bounds.y:Zt<=Se.bounds.bottom)&&(De=Se.centerY+(this.K===270?-nt:nt),qe<Se.bounds.x+Se.bounds.width/2?qe=Se.bounds.x-this.kc/2:qe=Se.bounds.right+this.kc/2,y.m(lt++,Tt,De),y.m(lt++,qe,De)),y.m(lt++,qe,Zt)),y.m(lt++,Gt,Zt)):We?(_t=Math.max(10,this.he[Se.layer]),un=Math.max(10,this.Ld[Se.layer]),this.K===180&&Gt>=Se.bounds.x?(De=Se.bounds.x+Se.bounds.width,y.L(lt-2,De,Bt),y.L(lt-1,De+un,Bt)):this.K===90&&Zt<=Se.bounds.bottom?(De=Se.bounds.y,y.L(lt-2,Tt,De),y.L(lt-1,Tt,De-_t)):this.K===270&&Zt>=Se.bounds.y?(De=Se.bounds.y+Se.bounds.height,y.L(lt-2,Tt,De),y.L(lt-1,Tt,De+un)):this.K===0&&Gt<=Se.bounds.right&&(De=Se.bounds.x,y.L(lt-2,De,Bt),y.L(lt-1,De-_t,Bt))):(_t=Math.max(10,this.he[Se.layer]),un=Math.max(10,this.Ld[Se.layer]),qe=0,this.K===180||this.K===0?((this.K===180?Gt<=Se.bounds.x:Gt>=Se.bounds.right)&&(qe=(this.K===0?un:-_t)/2),y.m(lt++,Gt+qe,Bt)):((this.K===270?Zt<=Se.bounds.y:Zt>=Se.bounds.bottom)&&(qe=(this.K===90?un:-_t)/2),y.m(lt++,Tt,Zt+qe)),y.m(lt++,Gt,Zt)))}else{for(;Se!==null&&Se!==De;){for(_t=At=null,Se=Se.destinationEdges.iterator;Se.next()&&(Tt=Se.value,Tt.link!==x.link||(At=Tt.toVertex,_t=Tt.fromVertex,_t.node!==null&&(_t=null),At.node!==null)););if(At===null)break;At!==De&&(Tt=y.i(lt-1).x,Bt=y.i(lt-1).y,Gt=At.centerX,Zt=At.centerY,qe?this.K===180||this.K===0?(_t!==null?_t.centerY:Bt)!==Zt&&(_t=this.Ta[At.layer]+this.Rf.x,lt===y.firstPickIndex+1&&(_t=this.K===0?Math.max(_t,Tt):Math.min(_t,Tt)),y.m(lt++,_t,Bt),y.m(lt++,_t,Zt)):(_t!==null?_t.centerX:Tt)!==Gt&&(_t=this.Ta[At.layer]+this.Rf.y,lt===y.firstPickIndex+1&&(_t=this.K===90?Math.max(_t,Bt):Math.min(_t,Bt)),y.m(lt++,Tt,_t),y.m(lt++,Gt,_t)):(_t=Math.max(10,this.he[At.layer]),un=Math.max(10,this.Ld[At.layer]),We?this.K===180?(y.m(lt++,Gt+un+nt,Zt),y.m(lt++,Math.max(Gt+un-nt/2,Gt),Zt),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Zt),y.m(lt++,Math.min(Gt-_t+nt/2,Gt),Zt),y.m(lt++,Gt-_t-nt,Zt)):this.K===90?(y.m(lt++,Gt,Zt-_t-nt),y.m(lt++,Gt,Math.min(Zt-_t+nt/2,Zt)),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Math.max(Zt+un-nt/2,Zt)),y.m(lt++,Gt,Zt+un+nt)):this.K===270?(y.m(lt++,Gt,Zt+un+nt),y.m(lt++,Gt,Math.max(Zt+un-nt/2,Zt)),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Math.min(Zt-_t+nt/2,Zt)),y.m(lt++,Gt,Zt-_t-nt)):(y.m(lt++,Gt-_t-nt,Zt),y.m(lt++,Math.min(Gt-_t+nt/2,Gt),Zt),y.m(lt++,Gt,Zt),y.m(lt++,Gt,Zt),y.m(lt++,Math.max(Gt+un-nt/2,Gt),Zt),y.m(lt++,Gt+un+nt,Zt)):this.K===180?(y.m(lt++,Gt+un,Zt),y.m(lt++,Gt-_t,Zt)):this.K===90?(y.m(lt++,Gt,Zt-_t),y.m(lt++,Gt,Zt+un)):this.K===270?(y.m(lt++,Gt,Zt+un),y.m(lt++,Gt,Zt-_t)):(y.m(lt++,Gt-_t,Zt),y.m(lt++,Gt+un,Zt)))),Se=At}qe&&(Tt=y.i(lt-1).x,Bt=y.i(lt-1).y,Gt=y.i(lt).x,Zt=y.i(lt).y,this.K===180||this.K===0?Bt!==Zt&&(_t=this.K===0?Math.min(Math.max((Gt+Tt)/2,this.Ta[De.layer]+this.Rf.x),Gt):Math.max(Math.min((Gt+Tt)/2,this.Ta[De.layer]+this.Rf.x),Gt),y.m(lt++,_t,Bt),y.m(lt++,_t,Zt)):Tt!==Gt&&(_t=this.K===90?Math.min(Math.max((Zt+Bt)/2,this.Ta[De.layer]+this.Rf.y),Zt):Math.max(Math.min((Zt+Bt)/2,this.Ta[De.layer]+this.Rf.y),Zt),y.m(lt++,Tt,_t),y.m(lt++,Gt,_t)))}b!==null&&We&&4<=y.pointsCount&&(ne!==null&&(ne=me===aa?y.getLinkPointFromPoint(E,ne,ne.ga(Di),y.i(3),!0):y.i(0),me===aa&&(me=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+me.x)/2,me.y),y.L(2,b.x,(me.y+b.y)/2)):(y.L(1,me.x,(ne.y+me.y)/2),y.L(2,(me.x+b.x)/2,b.y))),ne.w()||ne.set(E.actualBounds.center),y.L(0,ne.x,ne.y)),se!==null&&(E=he===aa?y.getLinkPointFromPoint(te,se,se.ga(Di),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),he===aa&&(se=y.i(y.pointsCount-3),he=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+se.x)/2,se.y),y.L(y.pointsCount-2,he.x,(se.y+he.y)/2)):(y.L(y.pointsCount-2,se.x,(E.y+se.y)/2),y.L(y.pointsCount-3,(se.x+he.x)/2,he.y))),E.w()||E.set(te.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},co.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Tn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var te=b.i(E),ne=b.i(E+1);if(this.B(te.y,ne.y)&&!this.B(te.x,ne.x)){var se=new hd;se.layer=Math.floor(te.y/2);var he=b.i(0),me=b.i(b.pointsCount-1);if(se.first=he.x*he.x+he.y,se.jc=me.x*me.x+me.y,se.rd=Math.min(te.x,ne.x),se.Ic=Math.max(te.x,ne.x),se.index=E,se.link=b,E+2<b.pointsCount){he=b.i(E-1),me=b.i(E+2);var Se=0;he.y<te.y?Se=me.y<te.y?3:te.x<ne.x?2:1:he.y>te.y&&(Se=me.y>te.y?0:ne.x<te.x?2:1),se.j=Se}x.push(se)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(te=x[a].layer,b=a+1;b<x.length&&x[b].layer===te;)b++;if(1<b-a)for(te=a;te<b;){for(ne=x[te].Ic,E=a+1;E<b&&x[E].rd<ne;)ne=Math.max(ne,x[E].Ic),E++;if(ne=E-te,1<ne){for(this.zi(x,this.Js,te,te+ne),Se=1,se=x[te].jc,he=te;he<E;he++)me=x[he],me.jc!==se&&(Se++,se=me.jc);this.zi(x,this.Ux,te,te+ne);var De=1;for(se=x[te].first,he=te;he<E;he++)me=x[he],me.first!==se&&(De++,se=me.first);for(he=!0,me=De,Se<De?(he=!1,me=Se,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,Se=0,De=te;De<E;De++){var We=x[De];(he?We.first:We.jc)!==se&&(Se++,se=he?We.first:We.jc);var qe=We.link;te=qe.i(We.index),ne=qe.i(We.index+1);var nt=this.linkSpacing*(Se-(me-1)/2);y++,qe.uh(),qe.L(We.index,te.x,te.y+nt),qe.L(We.index+1,ne.x,ne.y+nt),qe.zf()}}te=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)te=b.i(E),ne=b.i(E+1),this.B(te.x,ne.x)&&!this.B(te.y,ne.y)&&(se=new hd,se.layer=Math.floor(te.x/2),he=b.i(0),me=b.i(b.pointsCount-1),se.first=he.x+he.y*he.y,se.jc=me.x+me.y*me.y,se.rd=Math.min(te.y,ne.y),se.Ic=Math.max(te.y,ne.y),se.index=E,se.link=b,E+2<b.pointsCount&&(he=b.i(E-1),me=b.i(E+2),Se=0,he.x<te.x?Se=me.x<te.x?3:te.y<ne.y?2:1:he.x>te.x&&(Se=me.x>te.x?0:ne.y<te.y?2:1),se.j=Se),x.push(se));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(te=x[a].layer,b=a+1;b<x.length&&x[b].layer===te;)b++;if(1<b-a)for(te=a;te<b;){for(ne=x[te].Ic,E=a+1;E<b&&x[E].rd<ne;)ne=Math.max(ne,x[E].Ic),E++;if(ne=E-te,1<ne){for(this.zi(x,this.Js,te,te+ne),Se=1,se=x[te].jc,he=te;he<E;he++)me=x[he],me.jc!==se&&(Se++,se=me.jc);for(this.zi(x,this.Ux,te,te+ne),De=1,se=x[te].first,he=te;he<E;he++)me=x[he],me.first!==se&&(De++,se=me.first);for(he=!0,me=De,Se<De?(he=!1,me=Se,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,Se=0,De=te;De<E;De++)We=x[De],(he?We.first:We.jc)!==se&&(Se++,se=he?We.first:We.jc),qe=We.link,te=qe.i(We.index),ne=qe.i(We.index+1),nt=this.linkSpacing*(Se-(me-1)/2),y++,qe.uh(),qe.L(We.index,te.x+nt,te.y),qe.L(We.index+1,ne.x+nt,ne.y),qe.zf()}te=E}a=b}}}},ot=co.prototype,ot.Vx=function(a,y){return a instanceof hd&&y instanceof hd&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},ot.Ux=function(a,y){return a instanceof hd&&y instanceof hd&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},ot.Js=function(a,y){return a instanceof hd&&y instanceof hd&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},ot.B=function(a,y){return a-=y,-1<a&&1>a},ot.zi=function(a,y,x,b){var E=a.length,te=b-x;if(!(1>=te))if((0>x||x>=E-1)&&$t("not in range 0 <= from < length: "+x),te===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function ud(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function cd(a,y,x){a.He[a.tc[y]]=x}Ot.Object.defineProperties(co.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):$t("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==xy&&a!==O0&&a!==Ug||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==N0&&a!==wy&&a!==by||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==A0&&a!==Py&&a!==Cy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Ey&&a!==j0&&a!==Ty||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var O0=new vn(co,"CycleDepthFirst",0),xy=new vn(co,"CycleGreedy",1),Ug=new vn(co,"CycleFromLayers",2),N0=new vn(co,"LayerOptimalLinkLength",0),wy=new vn(co,"LayerLongestPathSink",1),by=new vn(co,"LayerLongestPathSource",2),A0=new vn(co,"InitDepthFirstOut",0),Py=new vn(co,"InitDepthFirstIn",1),Cy=new vn(co,"InitNaive",2),Ey=new vn(co,"AggressiveNone",0),j0=new vn(co,"AggressiveLess",1),Ty=new vn(co,"AggressiveMore",2),Zx=8;co.className="LayeredDigraphLayout",co.CycleDepthFirst=O0,co.CycleGreedy=xy,co.CycleFromLayers=Ug,co.LayerOptimalLinkLength=N0,co.LayerLongestPathSink=wy,co.LayerLongestPathSource=by,co.InitDepthFirstOut=A0,co.InitDepthFirstIn=Py,co.InitNaive=Cy,co.AggressiveNone=Ey,co.AggressiveLess=j0,co.AggressiveMore=Ty,co.PackNone=0,co.PackExpand=1,co.PackStraighten=2,co.PackMedian=4,co.PackAll=15,co.AlignNone=0,co.AlignUpperLeft=1,co.AlignUpperRight=2,co.AlignLowerLeft=4,co.AlignLowerRight=8,co.AlignAll=15;function hd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}hd.className="SegInfo";function Np(a){Eo.call(this,a)}cn(Np,Eo),Np.prototype.createVertex=function(){return new du(this)},Np.prototype.createEdge=function(){return new Wg(this)},Np.className="LayeredDigraphNetwork";function du(a){Ua.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}cn(du,Ua);function ix(a,y){return a.index-y.index}function I0(a,y){if(!a.$n){for(var x=[],b=yi(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=yi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;$t("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=yi(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(ix),a.co=y}return a.co}function Xx(a){if(!a.ao){for(var y=[],x=yi(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(ix),a.ao=y}return a.ao}du.prototype.Cl=function(a){Ua.prototype.Cl.call(this,a),this.bo=this.co=null},du.prototype.Kl=function(a){Ua.prototype.Kl.call(this,a),this.bo=this.co=null},du.prototype.zl=function(a){Ua.prototype.zl.call(this,a),this.$n=this.ao=null},du.prototype.Jl=function(a){Ua.prototype.Jl.call(this,a),this.$n=this.ao=null},Ot.Object.defineProperties(du.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),du.prototype.deleteDestinationEdge=du.prototype.Jl,du.prototype.addDestinationEdge=du.prototype.zl,du.prototype.deleteSourceEdge=du.prototype.Kl,du.prototype.addSourceEdge=du.prototype.Cl,du.className="LayeredDigraphVertex";function Wg(a){kl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}cn(Wg,kl),Ot.Object.defineProperties(Wg.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Wg.className="LayeredDigraphEdge";function Ti(a){_o.call(this),this.Ub=new On,this.Wn=R0,this.ud=Ic,this.vo=z0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=$0,this.$d=new Kn(10,10).freeze();var y=new If(this);this.W=new wu(y),this.Y=new wu(y),this.ru=[],a&&Object.assign(this,a)}cn(Ti,_o),Ti.prototype.cloneProtected=function(a){_o.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Ti.prototype.qb=function(a){a.classType===Ti?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:$t("Unknown enum value: "+a):_o.prototype.qb.call(this,a)},Ti.prototype.createNetwork=function(){return new If(this)},Ti.prototype.makeNetwork=function(a){function y(b){if(b instanceof nr)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Un){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof ln?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof ei?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Ti.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==G0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof ln&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?Ic:Af:this.ud=this.path===R0?Ic:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new On,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof nr?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof wu&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,Ly(this,y));for(y=this.network.vertexes,a=null;a=Yx(y),0<a.count;)y=ox(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Ly(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wu&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wu&&lx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wu&&ux(this,y);if(this.Cu(),this.layerStyle===H0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===_y)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var te=y.children[E];b=Math.max(b,x?te.width:te.height)}if(0<=b)for(E=0;E<y.children.length;E++)te=y.children[E],x?(y.angle===180&&(te.focusX+=b-te.width),te.width=b):(y.angle===270&&(te.focusY+=b-te.height),te.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wu&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new On,this.isValidLayout=!0};function Yx(a){var y=new On;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Ti.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Ic:x.sourceEdges.count===0&&this.Ub.add(x);break;case Af:x.destinationEdges.count===0&&this.Ub.add(x);break;default:$t("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ox(this,a),a!==null&&this.Ub.add(a))};function ox(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Ic:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Af:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:$t("Unhandled path value "+a.ud.toString())}}return b}function Ly(a,y){if(y!==null){switch(a.ud){case Ic:if(0<y.destinationEdges.count){for(var x=new Tn,b=y.destinationVertexes;b.next();){var E=b.value;ax(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Af:if(0<y.sourceEdges.count){for(x=new Tn,b=y.sourceVertexes;b.next();)E=b.value,ax(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:$t("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var te=x[E];te.initialized=!0,te.level=y.level+1,te.parent=y,a.Ub.remove(te)}for(y=0;y<b;y++)Ly(a,x[y])}}function ax(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}Ti.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var te=E=0;te<x.length;te++)x[te]!==y&&(b[E++]=x[te]);a.children=b}}};function sx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Bc&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,te=y.children,ne=te.length,se=0;se<ne;se++){var he=te[se];sx(a,he),x+=he.descendantCount+1,b=Math.max(b,he.maxChildrenCount),E=Math.max(E,he.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Jx(a,y){switch(a.vo){default:case z0:return y.parent!==null?y.parent:a.W;case Fy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Dy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Iy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,te=0;te<E;te++)if(0<b[te].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Ti.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Jx(this,a)),a.parent!==null&&a.parent.alignment===Bc){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function lx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}Ti.prototype.assignTreeVertexValues=function(){};function ux(a,y){if(y!==null){y.alignment!==Bc&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ux(a,y[b])}}Ti.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Ap:break;case Vg:a.children.reverse();break;case Zg:a.children.sort(a.comparer);break;case Xg:a.children.sort(a.comparer),a.children.reverse();break;default:$t("Unhandled sorting value "+a.sorting.toString())}},Ti.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ti.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=dd(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var te=0,ne=0,se=0,he=a.commentSpacing;if(a.node!==null)for(var me=a.node.Mu();me.next();){var Se=me.value;Se.category==="Comment"&&Se.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(Se),Se.Va(),Se=Se.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(te=Math.max(te,Se.width),ne+=Se.height+Math.abs(se)):(te+=Se.width+Math.abs(se),ne=Math.max(ne,Se.height)),se=he)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(te+=Math.abs(a.commentMargin),ne=Math.max(0,ne-a.height)):(ne+=Math.abs(a.commentMargin),te=Math.max(0,te-a.width)),E=wn.allocAt(0,0,a.bounds.width+te,a.bounds.height+ne),a.bounds=E,wn.free(E))};function dd(a){return a===Ah||a===Bc||a===jh||a===ih}function Kg(a){return a===Ah||a===Bc}function ky(a){var y=a.parent;if(y!==null){var x=y.alignment;if(dd(x)){if(Kg(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===jh)return!0}}return!1}Ti.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,te=!1;x!==null&&(E=x.angle,te=x.alignment,te=dd(te)),b=b===90||b===270,x=E===90||E===270;for(var ne=a.childrenCount===0,se=ky(a),he=0,me=a.comments,Se=me.length,De=Lt.alloc(),We=0;We<Se;We++){var qe=me[We],nt=qe.measuredBounds;if(b&&!ne||!te&&!x&&ne||te&&x&&ne){if(135<E&&!te||x&&se)if(0<=a.commentMargin)for(De.h(a.bounds.x-a.commentMargin-nt.width,a.bounds.y+he),qe.move(De),qe=qe.Sd();qe.next();){var lt=qe.value;lt.fromSpot=Ea,lt.toSpot=Ka}else for(De.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+he),qe.move(De),qe=qe.Sd();qe.next();)lt=qe.value,lt.fromSpot=Ka,lt.toSpot=Ea;else if(0<=a.commentMargin)for(De.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+he),qe.move(De),qe=qe.Sd();qe.next();)lt=qe.value,lt.fromSpot=Ka,lt.toSpot=Ea;else for(De.h(a.bounds.x+a.commentMargin-nt.width,a.bounds.y+he),qe.move(De),qe=qe.Sd();qe.next();)lt=qe.value,lt.fromSpot=Ea,lt.toSpot=Ka;he=0<=a.commentSpacing?he+(nt.height+a.commentSpacing):he+(a.commentSpacing-nt.height)}else{if(135<E&&!te||!x&&se)if(0<=a.commentMargin)for(De.h(a.bounds.x+he,a.bounds.y-a.commentMargin-nt.height),qe.move(De),qe=qe.Sd();qe.next();)lt=qe.value,lt.fromSpot=ha,lt.toSpot=za;else for(De.h(a.bounds.x+he,a.bounds.y+2*a.focus.y-a.commentMargin),qe.move(De),qe=qe.Sd();qe.next();)lt=qe.value,lt.fromSpot=za,lt.toSpot=ha;else if(0<=a.commentMargin)for(De.h(a.bounds.x+he,a.bounds.y+2*a.focus.y+a.commentMargin),qe.move(De),qe=qe.Sd();qe.next();)lt=qe.value,lt.fromSpot=za,lt.toSpot=ha;else for(De.h(a.bounds.x+he,a.bounds.y+a.commentMargin-nt.height),qe.move(De),qe=qe.Sd();qe.next();)lt=qe.value,lt.fromSpot=ha,lt.toSpot=za;he=0<=a.commentSpacing?he+(nt.width+a.commentSpacing):he+(a.commentSpacing-nt.width)}}if(Lt.free(De),y=he-a.commentSpacing-(b?y.height:y.width),this.ud===Ic)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},Ti.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case _0:cx(this,a);break;case Yg:if(a.alignment===Bc)cx(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=dd(x)),b=ky(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=Du(a);y=E===90||E===270;var te=0,ne=a.children,se=ne.length;for(x=0;x<se;x++)b=ne[x],te=Math.max(te,y?b.Da.width:b.Da.height);var he=a.alignment;b=he===Dc;var me=he===Fc,Se=dd(he),De=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var We=a.nodeSpacing,qe=this.computeNodeIndent(a),nt=a.rowSpacing,lt=0;(b||me||a.hm||a.im&&a.maxGenerationCount===1)&&(lt=Math.max(0,a.rowIndent)),b=a.width;var At=a.height,Tt=0,Bt=0,_t=0,Gt=null,Zt=null,un=0,er=0,ur=0,ir=0,Hn=0,An=0,Qr=0,Wr=0;if(Se&&!Kg(he)&&135<E&&ne.reverse(),Kg(he))if(1<se)for(var Xi=0;Xi<se;Xi++)Xi%2===0&&Xi!==se-1&&(Wr=Math.max(Wr,y?ne[Xi].Da.width:ne[Xi].Da.height));else se===1&&(Wr=y?ne[0].Da.width:ne[0].Da.height);if(Se){switch(he){case Ah:Bt=135>E?hx(this,a,ne,Wr,Tt,Bt):dx(this,a,ne,Wr,Tt,Bt),Wr=Bt.x,Tt=Bt.width,Bt=Bt.height;break;case jh:for(Gt=0;Gt<se;Gt++)Zt=ne[Gt],De=Zt.Da,_t=An===0?0:nt,y?(Zt.S.h(te-De.width,ir+_t),Tt=Math.max(Tt,De.width),Bt=Math.max(Bt,ir+_t+De.height),ir+=_t+De.height):(Zt.S.h(ur+_t,te-De.height),Tt=Math.max(Tt,ur+_t+De.width),Bt=Math.max(Bt,De.height),ur+=_t+De.width),An++;break;case ih:for(Gt=0;Gt<se;Gt++)Zt=ne[Gt],te=Zt.Da,De=An===0?0:nt,y?(Zt.S.h(We/2+a.focus.x,ir+De),Tt=Math.max(Tt,te.width),Bt=Math.max(Bt,ir+De+te.height),ir+=De+te.height):(Zt.S.h(ur+De,We/2+a.focus.y),Tt=Math.max(Tt,ur+De+te.width),Bt=Math.max(Bt,te.height),ur+=De+te.width),An++}Gt=yl(this,2),Zt=yl(this,2),y?(Gt[0].h(0,0),Gt[1].h(0,Bt),Zt[0].h(Tt,0)):(Gt[0].h(0,0),Gt[1].h(Tt,0),Zt[0].h(0,Bt)),Zt[1].h(Tt,Bt)}else for(Xi=0;Xi<se;Xi++){var bo=ne[Xi],Ja=bo.Da;if(y){0<De&&0<An&&ur+We+Ja.width>De&&(ur<te&&Jd(a,he,te-ur,0,Qr,Xi-1),Hn++,An=0,Qr=Xi,_t=Bt,ur=0,ir=135<E?-Bt-nt:Bt+nt),F0(this,bo,0,ir);var rs=0;if(An===0)Gt=bo.Yo,Zt=bo.kp,un=Ja.width,er=Ja.height,(Gt===null||Zt===null||E!==Du(bo))&&(Gt=yl(this,2),Zt=yl(this,2),Gt[0].h(0,0),Gt[1].h(0,er),Zt[0].h(un,0),Zt[1].h(un,er));else{var Fs=pn();er=fx(this,a,bo,Gt,Zt,un,er,Fs),rs=er.x,Gt=Fs[0],Zt=Fs[1],un=er.width,er=er.height,kn(Fs),ur<Ja.width&&0>rs&&(Nf(a,-rs,0,Qr,Xi-1),B0(Gt,-rs,0),B0(Zt,-rs,0),rs=0)}bo.S.h(rs,ir),Tt=Math.max(Tt,un),Bt=Math.max(Bt,_t+(Hn===0?0:nt)+Ja.height),ur=un}else 0<De&&0<An&&ir+We+Ja.height>De&&(ir<te&&Jd(a,he,0,te-ir,Qr,Xi-1),Hn++,An=0,Qr=Xi,_t=Tt,ir=0,ur=135<E?-Tt-nt:Tt+nt),F0(this,bo,ur,0),rs=0,An===0?(Gt=bo.Yo,Zt=bo.kp,un=Ja.width,er=Ja.height,(Gt===null||Zt===null||E!==Du(bo))&&(Gt=yl(this,2),Zt=yl(this,2),Gt[0].h(0,0),Gt[1].h(un,0),Zt[0].h(0,er),Zt[1].h(un,er))):(Fs=pn(),er=fx(this,a,bo,Gt,Zt,un,er,Fs),rs=er.x,Gt=Fs[0],Zt=Fs[1],un=er.width,er=er.height,kn(Fs),ir<Ja.height&&0>rs&&(Nf(a,0,-rs,Qr,Xi-1),B0(Gt,0,-rs),B0(Zt,0,-rs),rs=0)),bo.S.h(ur,rs),Bt=Math.max(Bt,er),Tt=Math.max(Tt,_t+(Hn===0?0:nt)+Ja.width),ir=er;An++}switch(0<Hn&&(y?(Bt+=Math.max(0,x),ur<Tt&&Jd(a,he,Tt-ur,0,Qr,se-1),0<lt&&(me||Nf(a,lt,0,0,se-1),Tt+=lt)):(Tt+=Math.max(0,x),ir<Bt&&Jd(a,he,0,Bt-ir,Qr,se-1),0<lt&&(me||Nf(a,0,lt,0,se-1),Bt+=lt))),lt=me=0,he){case jp:y?me+=Tt/2-a.focus.x-qe/2:lt+=Bt/2-a.focus.y-qe/2;break;case jf:0<Hn?y?me+=Tt/2-a.focus.x-qe/2:lt+=Bt/2-a.focus.y-qe/2:y?(Wr=ne[0].S.x+ne[0].la.x,me+=Wr+(ne[se-1].S.x+ne[se-1].la.x+2*ne[se-1].focus.x-Wr)/2-a.focus.x-qe/2):(Wr=ne[0].S.y+ne[0].la.y,lt+=Wr+(ne[se-1].S.y+ne[se-1].la.y+2*ne[se-1].focus.y-Wr)/2-a.focus.y-qe/2);break;case Dc:y?(me-=qe,Tt+=qe):(lt-=qe,Bt+=qe);break;case Fc:y?(me+=Tt-a.width+qe,Tt+=qe):(lt+=Bt-a.height+qe,Bt+=qe);break;case Ah:y?1<se?me+=Wr+We/2-a.focus.x:me+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<se?lt+=Wr+We/2-a.focus.y:lt+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case jh:y?me+=Tt+We/2-a.focus.x:lt+=Bt+We/2-a.focus.y;break;case ih:break;default:Bt=this.customAlignment(a,me,lt,Tt,Bt),me=Bt[0],lt=Bt[1],Tt=Bt[2],Bt=Bt[3]}for(qe=0;qe<se;qe++)Wr=ne[qe],y?Wr.S.h(Wr.S.x+Wr.la.x-me,Wr.S.y+(135<E?(Se?-Bt:-Wr.Da.height)+Wr.la.y-x:At+x+Wr.la.y)):Wr.S.h(Wr.S.x+(135<E?(Se?-Tt:-Wr.Da.width)+Wr.la.x-x:b+x+Wr.la.x),Wr.S.y+Wr.la.y-lt);if(se=ne=0,Se?y?(Tt=Oy(a,Tt,me),0>me&&(me=0),135<E&&(lt+=Bt+x),Bt+=At+x,he===ih&&(ne+=We/2+a.focus.x),se+=At+x):(135<E&&(me+=Tt+x),Tt+=b+x,Bt=Ny(a,Bt,lt),0>lt&&(lt=0),he===ih&&(se+=We/2+a.focus.y),ne+=b+x):y?(a.comments===null?b>Tt&&(Tt=Ay(he,b-Tt,0),ne=Tt.x,se=Tt.y,Tt=b,me=0):Tt=Oy(a,Tt,me),0>me&&(ne-=me,me=0),135<E&&(lt+=Bt+x),Bt=Math.max(Math.max(Bt,At),Bt+At+x),se+=At+x):(135<E&&(me+=Tt+x),Tt=Math.max(Math.max(Tt,b),Tt+b+x),a.comments===null?At>Bt&&(Bt=Ay(he,0,At-Bt),ne=Bt.x,se=Bt.y,Bt=At,lt=0):Bt=Ny(a,Bt,lt),0>lt&&(se-=lt,lt=0),ne+=b+x),0<Hn)E=yl(this,4),Hn=yl(this,4),y?(E[2].h(0,At+x),E[3].h(E[2].x,Bt),Hn[2].h(Tt,E[2].y),Hn[3].h(Hn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Tt,E[2].y),Hn[2].h(E[2].x,Bt),Hn[3].h(E[3].x,Hn[2].y));else{for(E=yl(this,Gt.length+2),Hn=yl(this,Zt.length+2),he=0;he<Gt.length;he++)Se=Gt[he],E[he+2].h(Se.x+ne,Se.y+se);for(he=0;he<Zt.length;he++)Se=Zt[he],Hn[he+2].h(Se.x+ne,Se.y+se)}y?(E[0].h(me,0),E[1].h(E[0].x,At),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),Hn[0].h(me+b,0),Hn[1].h(Hn[0].x,At),Hn[2].y<Hn[1].y&&(Hn[2].x<Hn[0].x?Hn[2].assign(Hn[1]):Hn[1].assign(Hn[2])),Hn[3].y<Hn[2].y&&(Hn[3].x<Hn[0].x?Hn[3].assign(Hn[2]):Hn[2].assign(Hn[3])),E[2].y-=x/2,Hn[2].y-=x/2):(E[0].h(0,lt),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),Hn[0].h(0,lt+At),Hn[1].h(b,Hn[0].y),Hn[2].x<Hn[1].x&&(Hn[2].y<Hn[0].y?Hn[2].assign(Hn[1]):Hn[1].assign(Hn[2])),Hn[3].x<Hn[2].x&&(Hn[3].y<Hn[0].y?Hn[3].assign(Hn[2]):Hn[2].assign(Hn[3])),E[2].x-=x/2,Hn[2].x-=x/2),Qu(this,Gt),Qu(this,Zt),a.Yo=E,a.kp=Hn,a.la.h(me,lt),a.Da.h(Tt,Bt)}break;default:$t("Unhandled compaction value "+a.compaction.toString())}}};function cx(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=dd(x));var E=ky(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=Du(y),x=b===90||b===270;var te=0;E=y.children;for(var ne=E.length,se=0;se<ne;se++){var he=E[se];te=Math.max(te,x?he.Da.width:he.Da.height)}var me=y.alignment,Se=me===Dc,De=me===Fc;se=dd(me);var We=Math.max(0,y.breadthLimit);he=a.computeLayerSpacing(y);var qe=y.nodeSpacing,nt=a.computeNodeIndent(y),lt=Se||De?0:nt/2,At=y.rowSpacing,Tt=0;(Se||De||y.hm||y.im&&y.maxGenerationCount===1)&&(Tt=Math.max(0,y.rowIndent)),Se=y.width;var Bt=y.height,_t=0,Gt=0,Zt=0,un=0,er=0,ur=0,ir=0,Hn=0,An=0,Qr=0;if(se&&!Kg(me)&&135<b&&E.reverse(),Kg(me))if(1<ne)for(var Wr=0;Wr<ne;Wr++){var Xi=E[Wr],bo=Xi.Da;Wr%2===0&&Wr!==ne-1?An=Math.max(An,(x?bo.width:bo.height)+a.computeBusNodeSpacing(Xi)-qe):Wr%2!==0&&(Qr=Math.max(Qr,(x?bo.width:bo.height)+a.computeBusNodeSpacing(Xi)-qe))}else ne===1&&(An=x?E[0].Da.width:E[0].Da.height);if(se)switch(me){case Ah:case Bc:Gt=135>b?hx(a,y,E,An,_t,Gt):dx(a,y,E,An,_t,Gt),An=Gt.x,_t=Gt.width,Gt=Gt.height;break;case jh:for(We=0;We<ne;We++)lt=E[We],Zt=lt.Da,Qr=ir===0?0:At,x?(lt.S.h(te-Zt.width,er+Qr),_t=Math.max(_t,Zt.width),Gt=Math.max(Gt,er+Qr+Zt.height),er+=Qr+Zt.height):(lt.S.h(un+Qr,te-Zt.height),_t=Math.max(_t,un+Qr+Zt.width),Gt=Math.max(Gt,Zt.height),un+=Qr+Zt.width),ir++;break;case ih:for(te=0;te<ne;te++)We=E[te],lt=We.Da,Zt=ir===0?0:At,x?(We.S.h(qe/2+y.focus.x,er+Zt),_t=Math.max(_t,lt.width),Gt=Math.max(Gt,er+Zt+lt.height),er+=Zt+lt.height):(We.S.h(un+Zt,qe/2+y.focus.y),_t=Math.max(_t,un+Zt+lt.width),Gt=Math.max(Gt,lt.height),un+=Zt+lt.width),ir++}else for(Qr=0;Qr<ne;Qr++)Wr=E[Qr],Xi=Wr.Da,x?(0<We&&0<ir&&un+qe+Xi.width>We&&(un<te&&Jd(y,me,te-un,0,Hn,Qr-1),ur++,ir=0,Hn=Qr,Zt=Gt,un=0,er=135<b?-Gt-At:Gt+At),bo=ir===0?lt:qe,F0(a,Wr,0,er),Wr.S.h(un+bo,er),_t=Math.max(_t,un+bo+Xi.width),Gt=Math.max(Gt,Zt+(ur===0?0:At)+Xi.height),un+=bo+Xi.width):(0<We&&0<ir&&er+qe+Xi.height>We&&(er<te&&Jd(y,me,0,te-er,Hn,Qr-1),ur++,ir=0,Hn=Qr,Zt=_t,er=0,un=135<b?-_t-At:_t+At),bo=ir===0?lt:qe,F0(a,Wr,un,0),Wr.S.h(un,er+bo),Gt=Math.max(Gt,er+bo+Xi.height),_t=Math.max(_t,Zt+(ur===0?0:At)+Xi.width),er+=bo+Xi.height),ir++;switch(0<ur&&(x?(Gt+=Math.max(0,he),un<_t&&Jd(y,me,_t-un,0,Hn,ne-1),0<Tt&&(De||Nf(y,Tt,0,0,ne-1),_t+=Tt)):(_t+=Math.max(0,he),er<Gt&&Jd(y,me,0,Gt-er,Hn,ne-1),0<Tt&&(De||Nf(y,0,Tt,0,ne-1),Gt+=Tt))),Tt=De=0,me){case jp:x?De+=_t/2-y.focus.x-nt/2:Tt+=Gt/2-y.focus.y-nt/2;break;case jf:0<ur?x?De+=_t/2-y.focus.x-nt/2:Tt+=Gt/2-y.focus.y-nt/2:x?(a=E[0].S.x+E[0].la.x,De+=a+(E[ne-1].S.x+E[ne-1].la.x+2*E[ne-1].focus.x-a)/2-y.focus.x-nt/2):(a=E[0].S.y+E[0].la.y,Tt+=a+(E[ne-1].S.y+E[ne-1].la.y+2*E[ne-1].focus.y-a)/2-y.focus.y-nt/2);break;case Dc:x?(De-=nt,_t+=nt):(Tt-=nt,Gt+=nt);break;case Fc:x?(De+=_t-y.width+nt,_t+=nt):(Tt+=Gt-y.height+nt,Gt+=nt);break;case Ah:case Bc:x?1<ne?De+=An+qe/2-y.focus.x:De+=E[0].focus.x-y.focus.x+E[0].la.x:1<ne?Tt+=An+qe/2-y.focus.y:Tt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case jh:x?De+=_t+qe/2-y.focus.x:Tt+=Gt+qe/2-y.focus.y;break;case ih:break;default:a=a.customAlignment(y,De,Tt,_t,Gt),De=a[0],Tt=a[1],_t=a[2],Gt=a[3]}for(a=0;a<ne;a++)nt=E[a],x?nt.S.h(nt.S.x+nt.la.x-De,nt.S.y+(135<b?(se?-Gt:-nt.Da.height)+nt.la.y-he:Bt+he+nt.la.y)):nt.S.h(nt.S.x+(135<b?(se?-_t:-nt.Da.width)+nt.la.x-he:Se+he+nt.la.x),nt.S.y+nt.la.y-Tt);x?(_t=Oy(y,_t,De),0>De&&(De=0),135<b&&(Tt+=Gt+he),Gt=Math.max(Math.max(Gt,Bt),Gt+Bt+he)):(135<b&&(De+=_t+he),_t=Math.max(Math.max(_t,Se),_t+Se+he),Gt=Ny(y,Gt,Tt),0>Tt&&(Tt=0)),y.la.h(De,Tt),y.Da.h(_t,Gt)}}Ti.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,te){var ne=x.length;if(ne===0)return new wn(b,0,E,te);if(ne===1)return y=x[0],E=y.Da.width,te=y.Da.height,new wn(b,0,E,te);for(var se=y.nodeSpacing,he=y.rowSpacing,me=Du(y)===90,Se=0,De=0,We=0,qe=0;qe<ne;qe++)if(!(qe%2!==0||1<ne&&qe===ne-1)){var nt=x[qe],lt=nt.Da,At=Se===0?0:he;if(me){var Tt=a.computeBusNodeSpacing(nt)-se;nt.S.h(b-(lt.width+Tt),We+At),E=Math.max(E,lt.width+Tt),te=Math.max(te,We+At+lt.height),We+=At+lt.height}else Tt=a.computeBusNodeSpacing(nt)-se,nt.S.h(De+At,b-(lt.height+Tt)),te=Math.max(te,lt.height+Tt),E=Math.max(E,De+At+lt.width),De+=At+lt.width;Se++}for(Se=0,nt=De,qe=We,me?(De=b+se,We=0):(De=0,We=b+se),lt=0;lt<ne;lt++)if(lt%2!==0){At=x[lt],Tt=At.Da;var Bt=Se===0?0:he;if(me){var _t=a.computeBusNodeSpacing(At)-se;At.S.h(De+_t,We+Bt),E=Math.max(E,De+Tt.width+_t),te=Math.max(te,We+Bt+Tt.height),We+=Bt+Tt.height}else _t=a.computeBusNodeSpacing(At)-se,At.S.h(De+Bt,We+_t),E=Math.max(E,De+Bt+Tt.width),te=Math.max(te,We+Tt.height+_t),De+=Bt+Tt.width;Se++}return 1<ne&&ne%2===1&&(x=x[ne-1],ne=x.Da,a=a.computeBusLastRowSpacing(x,me?Math.max(Math.abs(qe),Math.abs(We)):Math.max(Math.abs(nt),Math.abs(De))),me?(x.S.h(b+se/2-x.focus.x-x.la.x,te+a),me=b+se/2-x.focus.x-x.la.x,E=Math.max(E,me+ne.width),0>me&&(E-=me),te=Math.max(te,Math.max(qe,We)+a+ne.height),0>x.S.x&&(b=D0(y,x.S.x,!1,b,se))):(x.S.h(E+a,b+se/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(nt,De)+a+ne.width),We=b+se/2-x.focus.y-x.la.y,te=Math.max(te,We+ne.height),0>We&&(te-=We),0>x.S.y&&(b=D0(y,x.S.y,!0,b,se)))),new wn(b,0,E,te)}function dx(a,y,x,b,E,te){var ne=x.length;if(ne===0)return new wn(b,0,E,te);if(ne===1)return x=x[0],E=x.Da.width,te=x.Da.height,new wn(b,0,E,te);for(var se=y.nodeSpacing,he=y.rowSpacing,me=Du(y)===270,Se=0,De=0,We=0,qe=0;qe<ne;qe++)if(!(qe%2!==0||1<ne&&qe===ne-1)){var nt=x[qe],lt=nt.Da,At=Se===0?0:he;if(me){var Tt=a.computeBusNodeSpacing(nt)-se;We-=At+lt.height,nt.S.h(b-(lt.width+Tt),We),E=Math.max(E,lt.width+Tt),te=Math.max(te,Math.abs(We))}else Tt=a.computeBusNodeSpacing(nt)-se,De-=At+lt.width,nt.S.h(De,b-(lt.height+Tt)),te=Math.max(te,lt.height+Tt),E=Math.max(E,Math.abs(De));Se++}for(Se=0,nt=De,qe=We,me?(De=b+se,We=0):(De=0,We=b+se),lt=0;lt<ne;lt++)if(lt%2!==0){At=x[lt],Tt=At.Da;var Bt=Se===0?0:he;if(me){var _t=a.computeBusNodeSpacing(At)-se;We-=Bt+Tt.height,At.S.h(De+_t,We),E=Math.max(E,De+Tt.width+_t),te=Math.max(te,Math.abs(We))}else _t=a.computeBusNodeSpacing(At)-se,De-=Bt+Tt.width,At.S.h(De,We+_t),te=Math.max(te,We+Tt.height+_t),E=Math.max(E,Math.abs(De));Se++}for(1<ne&&ne%2===1&&(he=x[ne-1],Se=he.Da,a=a.computeBusLastRowSpacing(he,me?Math.max(Math.abs(qe),Math.abs(We)):Math.max(Math.abs(nt),Math.abs(De))),me?(he.S.h(b+se/2-he.focus.x-he.la.x,-te-Se.height-a),De=b+se/2-he.focus.x-he.la.x,E=Math.max(E,De+Se.width),0>De&&(E-=De),te=Math.max(te,Math.abs(Math.min(qe,We))+a+Se.height),0>he.S.x&&(b=D0(y,he.S.x,!1,b,se))):(he.S.h(-E-Se.width-a,b+se/2-he.focus.y-he.la.y),E=Math.max(E,Math.abs(Math.min(nt,De))+a+Se.width),We=b+se/2-he.focus.y-he.la.y,te=Math.max(te,We+Se.height),0>We&&(te-=We),0>he.S.y&&(b=D0(y,he.S.y,!0,b,se)))),y=0;y<ne;y++)se=x[y],me?se.S.h(se.S.x,se.S.y+te):se.S.h(se.S.x+E,se.S.y);return new wn(b,0,E,te)}Ti.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Ti.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function D0(a,y,x,b,E){a=a.children;for(var te=a.length,ne=0;ne<te;ne++)x?a[ne].S.h(a[ne].S.x,a[ne].S.y-y):a[ne].S.h(a[ne].S.x-y,a[ne].S.y);return y=a[te-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function Oy(a,y,x){switch(a.alignment){case jf:case jp:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Dc:return a.width>y?a.width:y;case Fc:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Ah:case Bc:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case jh:return a.width-a.focus.x+a.nodeSpacing/2+y;case ih:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a.alignment){case jf:case jp:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Dc:return a.height>y?a.height:y;case Fc:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Ah:case Bc:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case jh:return a.height-a.focus.y+a.nodeSpacing/2+y;case ih:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ay(a,y,x){switch(a){case jp:y/=2,x/=2;break;case jf:y/=2,x/=2;break;case Dc:x=y=0;break;case Fc:break;default:$t("Unhandled alignment value "+a.toString())}return new Lt(y,x)}function Jd(a,y,x,b,E,te){y=Ay(y,x,b),Nf(a,y.x,y.y,E,te)}function Nf(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var te=a[b].S;te.x+=y,te.y+=x}}function F0(a,y,x,b){var E=y.parent;switch(a.ud){case Ic:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Af:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:$t("Unhandled path value "+a.ud.toString())}}function B0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function fx(a,y,x,b,E,te,ne,se){var he=Du(y),me=he===90||he===270,Se=y.nodeSpacing;y=b;var De=E;b=te;var We=ne,qe=x.Yo,nt=x.kp;ne=x.Da;var lt=me?Math.max(We,ne.height):Math.max(b,ne.width);if((qe===null||he!==Du(x))&&(qe=yl(a,2),nt=yl(a,2),me?(qe[0].h(0,0),qe[1].h(0,ne.height),nt[0].h(ne.width,0),nt[1].h(nt[0].x,qe[1].y)):(qe[0].h(0,0),qe[1].h(ne.width,0),nt[0].h(0,ne.height),nt[1].h(qe[1].x,nt[0].y))),me){if(We=9999999,!(De===null||2>De.length||qe===null||2>qe.length))for(E=x=0;x<De.length&&E<qe.length;){te=De[x];var At=qe[E];he=At.x,me=At.y,he+=b;var Tt=te;x+1<De.length&&(Tt=De[x+1]);var Bt=At;At=Bt.x,Bt=Bt.y,E+1<qe.length&&(Bt=qe[E+1],At=Bt.x,Bt=Bt.y,At+=b);var _t=We;te.y===me?_t=he-te.x:te.y>me&&te.y<Bt?_t=he+(te.y-me)/(Bt-me)*(At-he)-te.x:me>te.y&&me<Tt.y&&(_t=he-(te.x+(me-te.y)/(Tt.y-te.y)*(Tt.x-te.x))),_t<We&&(We=_t),Tt.y<=te.y?x++:Bt<=me?E++:(Tt.y<=Bt&&x++,Bt<=Tt.y&&E++)}if(We=b-We,We+=Se,x=qe,E=We,y===null||2>y.length||x===null||2>x.length)b=null;else{for(Se=yl(a,y.length+x.length),b=te=he=0;te<x.length&&x[te].y<y[0].y;)me=x[te++],Se[b++].h(me.x+E,me.y);for(;he<y.length;)me=y[he++],Se[b++].h(me.x,me.y);for(he=y[y.length-1].y;te<x.length&&x[te].y<=he;)te++;for(;te<x.length&&x[te].y>he;)me=x[te++],Se[b++].h(me.x+E,me.y);for(x=yl(a,b),he=0;he<b;he++)x[he].assign(Se[he]);Qu(a,Se),b=x}if(te=nt,he=We,De===null||2>De.length||te===null||2>te.length)E=null;else{for(Se=yl(a,De.length+te.length),E=me=x=0;x<De.length&&De[x].y<te[0].y;)Tt=De[x++],Se[E++].h(Tt.x,Tt.y);for(;me<te.length;)Tt=te[me++],Se[E++].h(Tt.x+he,Tt.y);for(te=te[te.length-1].y;x<De.length&&De[x].y<=te;)x++;for(;x<De.length&&De[x].y>te;)he=De[x++],Se[E++].h(he.x,he.y);for(te=yl(a,E),x=0;x<E;x++)te[x].assign(Se[x]);Qu(a,Se),E=te}return te=Math.max(0,We)+ne.width,ne=lt,Qu(a,y),Qu(a,qe),Qu(a,De),Qu(a,nt),se[0]=b,se[1]=E,new wn(We,0,te,ne)}if(b=9999999,!(De===null||2>De.length||qe===null||2>qe.length))for(E=x=0;x<De.length&&E<qe.length;)te=De[x],At=qe[E],he=At.x,me=At.y,me+=We,Tt=te,x+1<De.length&&(Tt=De[x+1]),Bt=At,At=Bt.x,Bt=Bt.y,E+1<qe.length&&(Bt=qe[E+1],At=Bt.x,Bt=Bt.y,Bt+=We),_t=b,te.x===he?_t=me-te.y:te.x>he&&te.x<At?_t=me+(te.x-he)/(At-he)*(Bt-me)-te.y:he>te.x&&he<Tt.x&&(_t=me-(te.y+(he-te.x)/(Tt.x-te.x)*(Tt.y-te.y))),_t<b&&(b=_t),Tt.x<=te.x?x++:At<=he?E++:(Tt.x<=At&&x++,At<=Tt.x&&E++);if(We-=b,We+=Se,x=qe,E=We,y===null||2>y.length||x===null||2>x.length)b=null;else{for(Se=yl(a,y.length+x.length),b=te=he=0;te<x.length&&x[te].x<y[0].x;)me=x[te++],Se[b++].h(me.x,me.y+E);for(;he<y.length;)me=y[he++],Se[b++].h(me.x,me.y);for(he=y[y.length-1].x;te<x.length&&x[te].x<=he;)te++;for(;te<x.length&&x[te].x>he;)me=x[te++],Se[b++].h(me.x,me.y+E);for(x=yl(a,b),he=0;he<b;he++)x[he].assign(Se[he]);Qu(a,Se),b=x}if(te=nt,he=We,De===null||2>De.length||te===null||2>te.length)E=null;else{for(Se=yl(a,De.length+te.length),E=me=x=0;x<De.length&&De[x].x<te[0].x;)Tt=De[x++],Se[E++].h(Tt.x,Tt.y);for(;me<te.length;)Tt=te[me++],Se[E++].h(Tt.x,Tt.y+he);for(te=te[te.length-1].x;x<De.length&&De[x].x<=te;)x++;for(;x<De.length&&De[x].x>te;)he=De[x++],Se[E++].h(he.x,he.y);for(te=yl(a,E),x=0;x<E;x++)te[x].assign(Se[x]);Qu(a,Se),E=te}return te=lt,ne=Math.max(0,We)+ne.height,Qu(a,y),Qu(a,qe),Qu(a,De),Qu(a,nt),se[0]=b,se[1]=E,new wn(We,0,te,ne)}function yl(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Lt;return a}function Qu(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Ti.prototype.arrangeTrees=function(){if(this.Rb===G0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof wu){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),jy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof wu&&a.push(x);switch(this.sorting){case Ap:break;case Vg:a.reverse();break;case Zg:a.sort(this.comparer);break;case Xg:a.sort(this.comparer),a.reverse();break;default:$t("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(jy(this,E,y+E.la.x,x+E.la.y),this.Rb){case $0:x+=E.Da.height+this.$d.height;break;case By:y+=E.Da.width+this.$d.width;break;default:$t("Unhandled arrangement value "+this.Rb.toString())}}}};function jy(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,te=0;te<E;te++){var ne=y[te];jy(a,ne,x+ne.S.x,b+ne.S.y)}}}Ti.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Ti.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Ti.prototype.Gu=function(){if(this.layerStyle===H0){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var te=y[E.level];te===void 0?te=this.computeLayerSpacing(E):te=Math.max(te,this.computeLayerSpacing(E)),y[E.level]=te}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new Lt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Lt(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,te=0,this.angle===180||this.angle===270)for(var ne=0;ne<a.length;ne++)te+=a[ne]+y[ne];for(ne=0;ne<a.length;ne++){var se=a[ne]+y[ne];this.angle===270?(te-=se,E.push(new wn(0,te,x,se))):this.angle===90?(E.push(new wn(0,te,x,se)),te+=se):this.angle===180?(te-=se,E.push(new wn(te,0,se,x))):(E.push(new wn(te,0,se,x)),te+=se)}this.commitLayers(E,b)}},Ti.prototype.commitLayers=function(){},Ti.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ti.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof wu&&px(this,y)}};function px(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)px(a,y[b])}}Ti.prototype.setPortSpots=function(a){var y=a.alignment;if(dd(y)){var x=this.ud===Ic,b=Du(a);switch(b){case 0:var E=Ka;break;case 90:E=za;break;case 180:E=Ea;break;default:E=ha}var te=a.children,ne=te.length;switch(y){case Ah:case Bc:for(y=0;y<ne;y++){var se=te[y];if(se=(x?se.sourceEdges:se.destinationEdges).first(),se!==null&&(se=se.link,se!==null)){var he=b===90||b===270?Ea:ha;if(ne===1||y===ne-1&&ne%2===1)switch(b){case 0:he=Ea;break;case 90:he=ha;break;case 180:he=Ka;break;default:he=za}else y%2===0&&(he=b===90||b===270?Ka:za);x?(a.setsPortSpot&&(se.fromSpot=E),a.setsChildPortSpot&&(se.toSpot=he)):(a.setsPortSpot&&(se.fromSpot=he),a.setsChildPortSpot&&(se.toSpot=E))}}break;case jh:for(b=b===90||b===270?Ka:za,te=x?a.destinationEdges:a.sourceEdges;te.next();)ne=te.value.link,ne!==null&&(x?(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=E)));break;case ih:for(b=b===90||b===270?Ea:ha,te=x?a.destinationEdges:a.sourceEdges;te.next();)ne=te.value.link,ne!==null&&(x?(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=E)))}}else if(x=Du(a),this.ud===Ic){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Ka;break;case 90:b.fromSpot=za;break;case 180:b.fromSpot=Ea;break;default:b.fromSpot=ha}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Ea;break;case 90:b.toSpot=ha;break;case 180:b.toSpot=Ka;break;default:b.toSpot=za}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Ka;break;case 90:b.toSpot=za;break;case 180:b.toSpot=Ea;break;default:b.toSpot=ha}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Ea;break;case 90:b.fromSpot=ha;break;case 180:b.fromSpot=Ka;break;default:b.fromSpot=za}else b.fromSpot=a.childPortSpot}};function Du(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Ti.prototype.computeLayerSpacing=function(a){var y=Du(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},Ti.prototype.computeNodeIndent=function(a){var y=Du(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},Ot.Object.defineProperties(Ti.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==z0&&a!==Dy&&a!==Iy&&a!==Fy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==_y&&a!==H0||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==$0&&a!==By&&a!==G0||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==Ap&&a!==Vg&&a!==Zg&&!Xg||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):$t("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==_0&&a!==Yg||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Ap&&a!==Vg&&a!==Zg&&!Xg||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==_0&&a!==Yg||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var R0=new vn(Ti,"PathDefault",-1),Ic=new vn(Ti,"PathDestination",0),Af=new vn(Ti,"PathSource",1),Ap=new vn(Ti,"SortingForwards",10),Vg=new vn(Ti,"SortingReverse",11),Zg=new vn(Ti,"SortingAscending",12),Xg=new vn(Ti,"SortingDescending",13),jp=new vn(Ti,"AlignmentCenterSubtrees",20),jf=new vn(Ti,"AlignmentCenterChildren",21),Dc=new vn(Ti,"AlignmentStart",22),Fc=new vn(Ti,"AlignmentEnd",23),Ah=new vn(Ti,"AlignmentBus",24),Bc=new vn(Ti,"AlignmentBusBranching",25),jh=new vn(Ti,"AlignmentTopLeftBus",26),ih=new vn(Ti,"AlignmentBottomRightBus",27),_0=new vn(Ti,"CompactionNone",30),Yg=new vn(Ti,"CompactionBlock",31),z0=new vn(Ti,"StyleLayered",40),Iy=new vn(Ti,"StyleLastParents",41),Dy=new vn(Ti,"StyleAlternating",42),Fy=new vn(Ti,"StyleRootOnly",43),$0=new vn(Ti,"ArrangementVertical",50),By=new vn(Ti,"ArrangementHorizontal",51),G0=new vn(Ti,"ArrangementFixedRoots",52),Ry=new vn(Ti,"LayerIndividual",60),_y=new vn(Ti,"LayerSiblings",61),H0=new vn(Ti,"LayerUniform",62);Ti.className="TreeLayout",Ti.PathDefault=R0,Ti.PathDestination=Ic,Ti.PathSource=Af,Ti.SortingForwards=Ap,Ti.SortingReverse=Vg,Ti.SortingAscending=Zg,Ti.SortingDescending=Xg,Ti.AlignmentCenterSubtrees=jp,Ti.AlignmentCenterChildren=jf,Ti.AlignmentStart=Dc,Ti.AlignmentEnd=Fc,Ti.AlignmentBus=Ah,Ti.AlignmentBusBranching=Bc,Ti.AlignmentTopLeftBus=jh,Ti.AlignmentBottomRightBus=ih,Ti.CompactionNone=_0,Ti.CompactionBlock=Yg,Ti.StyleLayered=z0,Ti.StyleLastParents=Iy,Ti.StyleAlternating=Dy,Ti.StyleRootOnly=Fy,Ti.ArrangementVertical=$0,Ti.ArrangementHorizontal=By,Ti.ArrangementFixedRoots=G0,Ti.LayerIndividual=Ry,Ti.LayerSiblings=_y,Ti.LayerUniform=H0;function If(a){Eo.call(this,a)}cn(If,Eo),If.prototype.createVertex=function(){return new wu(this)},If.prototype.createEdge=function(){return new Ip(this)},If.className="TreeNetwork";function wu(a){Ua.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Lt(0,0),this.Da=new Kn(0,0),this.la=new Lt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Ap,this.hd=oy,this.Kb=0,this.Jb=jf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Yg,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=oo,this.wr=!0,this.Dp=oo}cn(wu,Ua),wu.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Ot.Object.defineProperties(wu.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),wu.className="TreeVertex";function Ip(a){kl.call(this,a),this.$t=new Lt(0,0)}cn(Ip,kl),Ip.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case Ic:x=this.fromVertex,b=this.toVertex;break;case Af:x=this.toVertex,b=this.fromVertex;break;default:$t("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var te=Du(x),ne=y.computeLayerSpacing(x),se=x.rowSpacing;a.vg();var he=a.curve===Xl,me=a.isOrthogonal,Se;if(a.uh(),me||he){for(Se=2;4<a.pointsCount;)a.pv(2);var De=a.i(1),We=a.i(2)}else{for(Se=1;3<a.pointsCount;)a.pv(1);De=a.i(0),We=a.i(a.pointsCount-1)}var qe=a.i(a.pointsCount-1);te===0?(x.alignment===Fc?(te=b.bottom+E.y,E.y===0&&De.y>qe.y+x.rowIndent&&(te=Math.min(te,Math.max(De.y,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.top+E.y,E.y===0&&De.y<qe.y-x.rowIndent&&(te=Math.max(te,Math.min(De.y,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,he?(a.m(Se,De.x,te),Se++,a.m(Se,b.right+ne,te),Se++,a.m(Se,b.right+ne+(E.x-se)/3,te),Se++,a.m(Se,b.right+ne+2*(E.x-se)/3,te),Se++,a.m(Se,b.right+ne+(E.x-se),te),Se++,a.m(Se,We.x,te)):(me&&(a.m(Se,b.right+ne/2,De.y),Se++),a.m(Se,b.right+ne/2,te),Se++,a.m(Se,b.right+ne+E.x-(me?se/2:se),te),Se++,me&&a.m(Se,a.i(Se-1).x,We.y))):te===90?(x.alignment===Fc?(te=b.right+E.x,E.x===0&&De.x>qe.x+x.rowIndent&&(te=Math.min(te,Math.max(De.x,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.left+E.x,E.x===0&&De.x<qe.x-x.rowIndent&&(te=Math.max(te,Math.min(De.x,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,he?(a.m(Se,te,De.y),Se++,a.m(Se,te,b.bottom+ne),Se++,a.m(Se,te,b.bottom+ne+(E.y-se)/3),Se++,a.m(Se,te,b.bottom+ne+2*(E.y-se)/3),Se++,a.m(Se,te,b.bottom+ne+(E.y-se)),Se++,a.m(Se,te,We.y)):(me&&(a.m(Se,De.x,b.bottom+ne/2),Se++),a.m(Se,te,b.bottom+ne/2),Se++,a.m(Se,te,b.bottom+ne+E.y-(me?se/2:se)),Se++,me&&a.m(Se,We.x,a.i(Se-1).y))):te===180?(x.alignment===Fc?(te=b.bottom+E.y,E.y===0&&De.y>qe.y+x.rowIndent&&(te=Math.min(te,Math.max(De.y,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.top+E.y,E.y===0&&De.y<qe.y-x.rowIndent&&(te=Math.max(te,Math.min(De.y,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,he?(a.m(Se,De.x,te),Se++,a.m(Se,b.left-ne,te),Se++,a.m(Se,b.left-ne+(E.x+se)/3,te),Se++,a.m(Se,b.left-ne+2*(E.x+se)/3,te),Se++,a.m(Se,b.left-ne+(E.x+se),te),Se++,a.m(Se,We.x,te)):(me&&(a.m(Se,b.left-ne/2,De.y),Se++),a.m(Se,b.left-ne/2,te),Se++,a.m(Se,b.left-ne+E.x+(me?se/2:se),te),Se++,me&&a.m(Se,a.i(Se-1).x,We.y))):te===270?(x.alignment===Fc?(te=b.right+E.x,E.x===0&&De.x>qe.x+x.rowIndent&&(te=Math.min(te,Math.max(De.x,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.left+E.x,E.x===0&&De.x<qe.x-x.rowIndent&&(te=Math.max(te,Math.min(De.x,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,he?(a.m(Se,te,De.y),Se++,a.m(Se,te,b.top-ne),Se++,a.m(Se,te,b.top-ne+(E.y+se)/3),Se++,a.m(Se,te,b.top-ne+2*(E.y+se)/3),Se++,a.m(Se,te,b.top-ne+(E.y+se)),Se++,a.m(Se,te,We.y)):(me&&(a.m(Se,De.x,b.top-ne/2),Se++),a.m(Se,te,b.top-ne/2),Se++,a.m(Se,te,b.top-ne+E.y+(me?se/2:se)),Se++,me&&a.m(Se,We.x,a.i(Se-1).y))):$t("Invalid angle "+te),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Du(x),y!==Du(E)&&(ne=b.computeLayerSpacing(x),se=x.bounds,x=E.bounds,y===0&&x.left-se.right<ne+1||y===90&&x.top-se.bottom<ne+1||y===180&&se.left-x.right<ne+1||y===270&&se.top-x.bottom<ne+1||(a.vg(),x=a.curve===Xl,E=a.isOrthogonal,b=dd(this.fromVertex.alignment),a.uh(),y===0?(y=se.right+ne/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=se.bottom+ne/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=se.left-ne/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=se.top-ne/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},Ot.Object.defineProperties(Ip.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),Ip.className="TreeEdge",Fo.prototype.initializeStandardTools=function(){this.gb("Action",new ci,this.mouseDownTools),this.gb("Relinking",new gr,this.mouseDownTools),this.gb("LinkReshaping",new xr,this.mouseDownTools),this.gb("Rotating",new ki,this.mouseDownTools),this.gb("Resizing",new ti,this.mouseDownTools),this.gb("Linking",new rr,this.mouseMoveTools),this.gb("Dragging",new Vo,this.mouseMoveTools),this.gb("DragSelecting",new ui,this.mouseMoveTools),this.gb("Panning",new $r,this.mouseMoveTools),this.gb("ContextMenu",new Yi,this.mouseUpTools),this.gb("TextEditing",new Gi,this.mouseUpTools),this.gb("ClickCreating",new Ei,this.mouseUpTools),this.gb("ClickSelecting",new ho,this.mouseUpTools)},cc("Horizontal",new ym),cc("Spot",new xm),cc("Table",new bm),cc("Viewbox",new Em),cc("TableRow",new Pm),cc("TableColumn",new Cm),cc("Graduated",new dg),cc("Grid",new hg),rp.add("GraphLinksModel",ns),rp.add("TreeModel",cu);var U0=zt.go,zy={get licenseKey(){return ln.licenseKey},set licenseKey(a){ln.licenseKey=a},get version(){return ln.version},Group:ei,EnumValue:vn,List:Tn,Set:On,Map:cr,Point:Lt,Size:Kn,Rect:wn,Margin:Tr,Spot:yr,Geometry:Vn,PathFigure:$a,PathSegment:Ui,InputEvent:ws,DiagramEvent:Kc,ChangedEvent:$o,Model:mr,GraphLinksModel:ji,TreeModel:Xs,Binding:ba,Transaction:Va,UndoManager:Ko,CommandHandler:Nt,Tool:$i,DraggingTool:Vo,DraggingInfo:Qc,DraggingOptions:de,LinkingBaseTool:fn,LinkingTool:rr,RelinkingTool:gr,LinkReshapingTool:xr,ResizingTool:ti,RotatingTool:ki,ClickSelectingTool:ho,ActionTool:ci,ClickCreatingTool:Ei,HTMLInfo:xi,ContextMenuTool:Yi,DragSelectingTool:ui,PanningTool:$r,TextEditingTool:Gi,ToolManager:Fo,Animation:na,AnimationManager:qo,AnimationTrigger:Tl,Layer:Ho,Diagram:ln,Palette:ke,Overview:Re,Brush:so,GraphObject:Yt,Panel:Gn,RowColumnDefinition:Da,Shape:di,TextBlock:Co,Picture:ul,Part:Mr,Adornment:Ki,Node:nr,Link:Un,Placeholder:Ws,Layout:_o,LayoutNetwork:Eo,LayoutVertex:Ua,LayoutEdge:kl,GridLayout:ds,PanelLayout:Ha,CircularLayout:Yo,CircularNetwork:kp,CircularVertex:zg,CircularEdge:C0,ForceDirectedLayout:Ss,ForceDirectedNetwork:Of,ForceDirectedVertex:$g,ForceDirectedEdge:Gg,LayeredDigraphLayout:co,LayeredDigraphNetwork:Np,LayeredDigraphVertex:du,LayeredDigraphEdge:Wg,TreeLayout:Ti,TreeNetwork:If,TreeVertex:wu,TreeEdge:Ip};typeof U0=="object"&&U0.version&&or("WARNING: a `go` object on the root object is already defined. "+("Debug"in U0?"debug ":"")+"version: "+U0.version+", replaced with version: "+zy.version),ln.prototype.go=zy,zt.go=zy,typeof bn.exports=="object"&&(bn.exports=typeof Ge.g!="undefined"?Ge.g.go:self.go)}();var rt=typeof Ge.g!="undefined"?Ge.g.go:self.go;const vt=typeof Ge.g!="undefined"?Ge.g.go:self.go,ie=vt.Group,_e=vt.EnumValue,Ie=vt.List,ge=vt.Set,ce=vt.Map,Pe=vt.Point,Ee=vt.Size,ye=vt.Rect,Me=vt.Margin,ve=vt.Spot,xe=vt.Geometry,fe=vt.PathFigure,z=vt.PathSegment,ee=vt.InputEvent,ae=vt.DiagramEvent,re=vt.ChangedEvent,le=vt.Model,ue=vt.GraphLinksModel,pe=vt.TreeModel,Te=vt.Binding,Ce=vt.Transaction,Fe=vt.UndoManager,Ae=vt.CommandHandler,je=vt.Tool,Ne=vt.DraggingTool,Be=vt.DraggingInfo,ze=vt.LinkingBaseTool,Qe=vt.LinkingTool,$e=vt.RelinkingTool,Ye=vt.LinkReshapingTool,at=vt.ResizingTool,ut=vt.RotatingTool,ht=vt.ClickSelectingTool,Ct=vt.ActionTool,et=vt.ClickCreatingTool,it=vt.HTMLInfo,St=vt.ContextMenuTool,bt=vt.DragSelectingTool,Pt=vt.PanningTool,gt=vt.TextEditingTool,dt=vt.ToolManager,mt=vt.Animation,kt=vt.AnimationManager,Et=vt.AnimationTrigger,Ut=vt.Layer,wt=vt.Diagram,pt=vt.Palette,tt=vt.Overview,Ze=vt.Brush,we=vt.GraphObject,be=vt.Panel,Ke=vt.RowColumnDefinition,Xe=vt.Shape,Oe=vt.TextBlock,Ue=vt.TextBlockMetrics,He=vt.Picture,Ve=vt.Part,Je=vt.Adornment,ct=vt.Node,yt=vt.Link,ft=vt.Placeholder,Mt=vt.Layout,Jt=vt.LayoutNetwork,Vt=vt.LayoutVertex,Kt=vt.LayoutEdge,Ht=vt.GridLayout,tn=vt.PanelLayout,It=vt.CircularLayout,Dt=vt.CircularNetwork,qt=vt.CircularVertex,sn=vt.CircularEdge,xn=vt.ForceDirectedLayout,Ln=vt.ForceDirectedNetwork,Zn=vt.ForceDirectedVertex,Xn=vt.ForceDirectedEdge,dr=vt.LayeredDigraphLayout,fr=vt.LayeredDigraphNetwork,pr=vt.LayeredDigraphVertex,Cr=vt.LayeredDigraphEdge,Yr=vt.TreeLayout,ii=vt.TreeNetwork,jr=vt.TreeVertex,fi=vt.TreeEdge,Lr=vt.version},24334:function(bn,an,Ge){var rt,vt;(function(ie,_e){bn.exports=_e(ie)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ge.g!="undefined"?Ge.g:this,function(ie){"use strict";ie=ie||{};var _e=ie.Base64,Ie="2.6.4",ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ce=function($e){for(var Ye={},at=0,ut=$e.length;at<ut;at++)Ye[$e.charAt(at)]=at;return Ye}(ge),Pe=String.fromCharCode,Ee=function($e){if($e.length<2){var Ye=$e.charCodeAt(0);return Ye<128?$e:Ye<2048?Pe(192|Ye>>>6)+Pe(128|Ye&63):Pe(224|Ye>>>12&15)+Pe(128|Ye>>>6&63)+Pe(128|Ye&63)}else{var Ye=65536+($e.charCodeAt(0)-55296)*1024+($e.charCodeAt(1)-56320);return Pe(240|Ye>>>18&7)+Pe(128|Ye>>>12&63)+Pe(128|Ye>>>6&63)+Pe(128|Ye&63)}},ye=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Me=function($e){return $e.replace(ye,Ee)},ve=function($e){var Ye=[0,2,1][$e.length%3],at=$e.charCodeAt(0)<<16|($e.length>1?$e.charCodeAt(1):0)<<8|($e.length>2?$e.charCodeAt(2):0),ut=[ge.charAt(at>>>18),ge.charAt(at>>>12&63),Ye>=2?"=":ge.charAt(at>>>6&63),Ye>=1?"=":ge.charAt(at&63)];return ut.join("")},xe=ie.btoa&&typeof ie.btoa=="function"?function($e){return ie.btoa($e)}:function($e){if($e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return $e.replace(/[\s\S]{1,3}/g,ve)},fe=function($e){return xe(Me(String($e)))},z=function($e){return $e.replace(/[+\/]/g,function(Ye){return Ye=="+"?"-":"_"}).replace(/=/g,"")},ee=function($e,Ye){return Ye?z(fe($e)):fe($e)},ae=function($e){return ee($e,!0)},re;ie.Uint8Array&&(re=function($e,Ye){for(var at="",ut=0,ht=$e.length;ut<ht;ut+=3){var Ct=$e[ut],et=$e[ut+1],it=$e[ut+2],St=Ct<<16|et<<8|it;at+=ge.charAt(St>>>18)+ge.charAt(St>>>12&63)+(typeof et!="undefined"?ge.charAt(St>>>6&63):"=")+(typeof it!="undefined"?ge.charAt(St&63):"=")}return Ye?z(at):at});var le=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ue=function($e){switch($e.length){case 4:var Ye=(7&$e.charCodeAt(0))<<18|(63&$e.charCodeAt(1))<<12|(63&$e.charCodeAt(2))<<6|63&$e.charCodeAt(3),at=Ye-65536;return Pe((at>>>10)+55296)+Pe((at&1023)+56320);case 3:return Pe((15&$e.charCodeAt(0))<<12|(63&$e.charCodeAt(1))<<6|63&$e.charCodeAt(2));default:return Pe((31&$e.charCodeAt(0))<<6|63&$e.charCodeAt(1))}},pe=function($e){return $e.replace(le,ue)},Te=function($e){var Ye=$e.length,at=Ye%4,ut=(Ye>0?ce[$e.charAt(0)]<<18:0)|(Ye>1?ce[$e.charAt(1)]<<12:0)|(Ye>2?ce[$e.charAt(2)]<<6:0)|(Ye>3?ce[$e.charAt(3)]:0),ht=[Pe(ut>>>16),Pe(ut>>>8&255),Pe(ut&255)];return ht.length-=[0,0,2,1][at],ht.join("")},Ce=ie.atob&&typeof ie.atob=="function"?function($e){return ie.atob($e)}:function($e){return $e.replace(/\S{1,4}/g,Te)},Fe=function($e){return Ce(String($e).replace(/[^A-Za-z0-9\+\/]/g,""))},Ae=function($e){return pe(Ce($e))},je=function($e){return String($e).replace(/[-_]/g,function(Ye){return Ye=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ne=function($e){return Ae(je($e))},Be;ie.Uint8Array&&(Be=function($e){return Uint8Array.from(Fe(je($e)),function(Ye){return Ye.charCodeAt(0)})});var ze=function(){var $e=ie.Base64;return ie.Base64=_e,$e};if(ie.Base64={VERSION:Ie,atob:Fe,btoa:xe,fromBase64:Ne,toBase64:ee,utob:Me,encode:ee,encodeURI:ae,btou:pe,decode:Ne,noConflict:ze,fromUint8Array:re,toUint8Array:Be},typeof Object.defineProperty=="function"){var Qe=function($e){return{value:$e,enumerable:!1,writable:!0,configurable:!0}};ie.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Qe(function(){return Ne(this)})),Object.defineProperty(String.prototype,"toBase64",Qe(function($e){return ee(this,$e)})),Object.defineProperty(String.prototype,"toBase64URI",Qe(function(){return ee(this,!0)}))}}return ie.Meteor&&(Base64=ie.Base64),bn.exports?bn.exports.Base64=ie.Base64:(rt=[],vt=function(){return ie.Base64}.apply(an,rt),vt!==void 0&&(bn.exports=vt)),{Base64:ie.Base64}})},2859:function(bn,an,Ge){"use strict";Ge.d(an,{hP:function(){return tt}});var rt=function(Ze,we){return(rt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,Ke){be.__proto__=Ke}||function(be,Ke){for(var Xe in Ke)Object.prototype.hasOwnProperty.call(Ke,Xe)&&(be[Xe]=Ke[Xe])})(Ze,we)};function vt(Ze,we){function be(){this.constructor=Ze}rt(Ze,we),Ze.prototype=we===null?Object.create(we):(be.prototype=we.prototype,new be)}function ie(Ze,we,be,Ke){return new(be||(be=Promise))(function(Xe,Oe){function Ue(Je){try{Ve(Ke.next(Je))}catch(ct){Oe(ct)}}function He(Je){try{Ve(Ke.throw(Je))}catch(ct){Oe(ct)}}function Ve(Je){var ct;Je.done?Xe(Je.value):(ct=Je.value,ct instanceof be?ct:new be(function(yt){yt(ct)})).then(Ue,He)}Ve((Ke=Ke.apply(Ze,we||[])).next())})}function _e(Ze,we){var be,Ke,Xe,Oe,Ue={label:0,sent:function(){if(1&Xe[0])throw Xe[1];return Xe[1]},trys:[],ops:[]};return Oe={next:He(0),throw:He(1),return:He(2)},typeof Symbol=="function"&&(Oe[Symbol.iterator]=function(){return this}),Oe;function He(Ve){return function(Je){return function(ct){if(be)throw new TypeError("Generator is already executing.");for(;Ue;)try{if(be=1,Ke&&(Xe=2&ct[0]?Ke.return:ct[0]?Ke.throw||((Xe=Ke.return)&&Xe.call(Ke),0):Ke.next)&&!(Xe=Xe.call(Ke,ct[1])).done)return Xe;switch(Ke=0,Xe&&(ct=[2&ct[0],Xe.value]),ct[0]){case 0:case 1:Xe=ct;break;case 4:return Ue.label++,{value:ct[1],done:!1};case 5:Ue.label++,Ke=ct[1],ct=[0];continue;case 7:ct=Ue.ops.pop(),Ue.trys.pop();continue;default:if(Xe=Ue.trys,!((Xe=Xe.length>0&&Xe[Xe.length-1])||ct[0]!==6&&ct[0]!==2)){Ue=0;continue}if(ct[0]===3&&(!Xe||ct[1]>Xe[0]&&ct[1]<Xe[3])){Ue.label=ct[1];break}if(ct[0]===6&&Ue.label<Xe[1]){Ue.label=Xe[1],Xe=ct;break}if(Xe&&Ue.label<Xe[2]){Ue.label=Xe[2],Ue.ops.push(ct);break}Xe[2]&&Ue.ops.pop(),Ue.trys.pop();continue}ct=we.call(Ze,Ue)}catch(yt){ct=[6,yt],Ke=0}finally{be=Xe=0}if(5&ct[0])throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}([Ve,Je])}}}function Ie(){for(var Ze=0,we=0,be=arguments.length;we<be;we++)Ze+=arguments[we].length;var Ke=Array(Ze),Xe=0;for(we=0;we<be;we++)for(var Oe=arguments[we],Ue=0,He=Oe.length;Ue<He;Ue++,Xe++)Ke[Xe]=Oe[Ue];return Ke}var ge=function(){function Ze(){}return Ze.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ze.setAttributes=function(we,be){for(var Ke=0,Xe=be;Ke<Xe.length;Ke++){var Oe=Xe[Ke],Ue=Oe[0],He=Oe[1];we.setAttribute(Ue,He)}},Ze.createRect=function(we,be,Ke){var Xe=document.createElementNS("http://www.w3.org/2000/svg","rect");return Xe.setAttribute("width",we.toString()),Xe.setAttribute("height",be.toString()),Ke&&Ze.setAttributes(Xe,Ke),Xe},Ze.createLine=function(we,be,Ke,Xe,Oe){var Ue=document.createElementNS("http://www.w3.org/2000/svg","line");return Ue.setAttribute("x1",we.toString()),Ue.setAttribute("y1",be.toString()),Ue.setAttribute("x2",Ke.toString()),Ue.setAttribute("y2",Xe.toString()),Oe&&Ze.setAttributes(Ue,Oe),Ue},Ze.createPolygon=function(we,be){var Ke=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ke.setAttribute("points",we),be&&Ze.setAttributes(Ke,be),Ke},Ze.createCircle=function(we,be){var Ke=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ke.setAttribute("cx",(we/2).toString()),Ke.setAttribute("cy",(we/2).toString()),Ke.setAttribute("r",we.toString()),be&&Ze.setAttributes(Ke,be),Ke},Ze.createEllipse=function(we,be,Ke){var Xe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Xe.setAttribute("cx",(we/2).toString()),Xe.setAttribute("cy",(be/2).toString()),Xe.setAttribute("rx",(we/2).toString()),Xe.setAttribute("ry",(be/2).toString()),Ke&&Ze.setAttributes(Xe,Ke),Xe},Ze.createGroup=function(we){var be=document.createElementNS("http://www.w3.org/2000/svg","g");return we&&Ze.setAttributes(be,we),be},Ze.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ze.createMarker=function(we,be,Ke,Xe,Oe,Ue,He){var Ve=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ze.setAttributes(Ve,[["id",we],["orient",be],["markerWidth",Ke.toString()],["markerHeight",Xe.toString()],["refX",Oe.toString()],["refY",Ue.toString()]]),Ve.appendChild(He),Ve},Ze.createText=function(we){var be=document.createElementNS("http://www.w3.org/2000/svg","text");return be.setAttribute("x","0"),be.setAttribute("y","0"),we&&Ze.setAttributes(be,we),be},Ze.createTSpan=function(we,be){var Ke=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ke.textContent=we,be&&Ze.setAttributes(Ke,be),Ke},Ze.createImage=function(we){var be=document.createElementNS("http://www.w3.org/2000/svg","image");return we&&Ze.setAttributes(be,we),be},Ze.createPoint=function(we,be){var Ke=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ke.x=we,Ke.y=be,Ke},Ze.createPath=function(we,be){var Ke=document.createElementNS("http://www.w3.org/2000/svg","path");return Ke.setAttribute("d",we),be&&Ze.setAttributes(Ke,be),Ke},Ze}(),ce=function(){function Ze(){}return Ze.addKey=function(we){Ze.key=we},Object.defineProperty(Ze,"isLicensed",{get:function(){return!!Ze.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ze.key)},enumerable:!1,configurable:!0}),Ze}(),Pe=function(){function Ze(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ze.prototype.rasterize=function(we,be,Ke){var Xe=this;return new Promise(function(Oe){var Ue=Ke!==void 0?Ke:document.createElement("canvas");we===null&&(Xe.markersOnly=!0,Xe.naturalSize=!1);var He=document.createElementNS("http://www.w3.org/2000/svg","svg");He.setAttribute("xmlns","http://www.w3.org/2000/svg"),He.setAttribute("width",be.width.baseVal.valueAsString),He.setAttribute("height",be.height.baseVal.valueAsString),He.setAttribute("viewBox","0 0 "+be.viewBox.baseVal.width.toString()+" "+be.viewBox.baseVal.height.toString()),He.innerHTML=be.innerHTML,Xe.naturalSize===!0?(He.width.baseVal.value=we.naturalWidth,He.height.baseVal.value=we.naturalHeight):Xe.width!==void 0&&Xe.height!==void 0&&(He.width.baseVal.value=Xe.width,He.height.baseVal.value=Xe.height),Ue.width=He.width.baseVal.value,Ue.height=He.height.baseVal.value;var Ve=He.outerHTML,Je=Ue.getContext("2d");Xe.markersOnly!==!0&&Je.drawImage(we,0,0,Ue.width,Ue.height);var ct=window.URL,yt=new Image(Ue.width,Ue.height);yt.setAttribute("crossOrigin","anonymous");var ft=new Blob([Ve],{type:"image/svg+xml"}),Mt=ct.createObjectURL(ft);yt.onload=function(){Je.drawImage(yt,0,0),ct.revokeObjectURL(Mt);var Jt=Ue.toDataURL(Xe.imageType,Xe.imageQuality);Oe(Jt)},yt.src=Mt})},Ze}(),Ee=function(){},ye=function(){function Ze(we){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+we+"_"}return Object.defineProperty(Ze.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.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(Ze.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ze.prototype.addClass=function(we){return this.styleSheet===void 0&&this.addStyleSheet(),we.name=""+this.classNamePrefix+we.localName,this.classes.push(we),this.styleSheet.sheet.insertRule("."+we.name+" {"+we.style+"}",this.styleSheet.sheet.cssRules.length),we},Ze.prototype.addRule=function(we){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(we),this.styleSheet.sheet.insertRule(we.selector+" {"+we.style+"}",this.styleSheet.sheet.cssRules.length)},Ze.prototype.addStyleSheet=function(){var we;this.styleSheet=document.createElement("style"),((we=this.styleSheetRoot)!==null&&we!==void 0?we:document.head).appendChild(this.styleSheet),this.addRule(new Me("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Me("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Me("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ve("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ve("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Ze.prototype.removeStyleSheet=function(){var we;this.styleSheet&&(((we=this.styleSheetRoot)!==null&&we!==void 0?we:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ze}(),Me=function(Ze,we){this.selector=Ze,this.style=we},ve=function(Ze,we){this.localName=Ze,this.style=we},xe=function(){function Ze(we,be,Ke,Xe,Oe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=we,this.displayMode=be,this.markerItems=Ke,this.uiStyleSettings=Xe,this.styles=Oe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ze.prototype.show=function(we){var be=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=we,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ke=document.createElement("div");Ke.className=this.toolbarBlockStyleClass.name,Ke.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ke),this.addActionButton(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Oe){var Ue=document.createElement("div");Ue.className=""+be.toolbarButtonStyleClass.name,Ue.setAttribute("data-type-name",Oe.typeName),Ue.innerHTML=Oe.icon,Ue.addEventListener("click",function(){be.markerToolbarButtonClicked(Ue,Oe)}),be.buttons.push(Ue),be.markerButtons.push(Ue)}),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 Xe=document.createElement("div");Xe.className=this.toolbarBlockStyleClass.name,Xe.style.whiteSpace="nowrap",Xe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Xe),this.addActionButton(Xe,'<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(Xe,'<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()},Ze.prototype.addButtonClickListener=function(we){this.buttonClickListeners.push(we)},Ze.prototype.removeButtonClickListener=function(we){this.buttonClickListeners.indexOf(we)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(we),1)},Ze.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ze.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var we=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var be=0;be<this.markerButtons.length;be++)be<we||be===we&&this.markerButtons.length-1===we?this.markerButtonBlock.appendChild(this.markerButtons[be]):(be===we&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[be]))}},Ze.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")},Ze.prototype.resetButtonStyles=function(){var we=this;this.buttons.forEach(function(be){be.className=be.className.replace(we.uiStyleSettings.toolbarButtonStyleColorsClassName?we.uiStyleSettings.toolbarButtonStyleColorsClassName:we.toolbarButtonStyleColorsClass.name,"").trim(),be.className=be.className.replace(we.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?we.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:we.toolbarActiveButtonStyleColorsClass.name,"").trim(),be.className+=" "+(we.uiStyleSettings.toolbarButtonStyleColorsClassName?we.uiStyleSettings.toolbarButtonStyleColorsClassName:we.toolbarButtonStyleColorsClass.name)})},Ze.prototype.addActionButton=function(we,be,Ke){var Xe=this,Oe=document.createElement("div");switch(Oe.className=""+this.toolbarButtonStyleClass.name,Oe.innerHTML=be,Oe.setAttribute("data-action",Ke),Oe.addEventListener("click",function(){Xe.actionToolbarButtonClicked(Oe,Ke)}),Ke){case"select":Oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Oe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Oe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Oe.style.fill=this.uiStyleSettings.closeButtonColor}we.appendChild(Oe),this.buttons.push(Oe)},Ze.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ve("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ve("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ve("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ve("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ve("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var we=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ve("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
|
|
|
padding: `+we+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Me("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Me("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Ze.prototype.markerToolbarButtonClicked=function(we,be){this.setActiveButton(we),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ke){return Ke("marker",be)}),this.markerButtonOverflowBlock.style.display="none"},Ze.prototype.actionToolbarButtonClicked=function(we,be){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ke){return Ke("action",be)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ze.prototype.setActiveButton=function(we){this.resetButtonStyles(),we.className=we.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),we.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ze.prototype.setActiveMarkerButton=function(we){var be=this.markerButtons.find(function(Ke){return Ke.getAttribute("data-type-name")===we});be&&this.setActiveButton(be)},Ze.prototype.setCurrentMarker=function(we){var be=this;this.currentMarker=we,this.buttons.filter(function(Ke){return/delete|notes/.test(Ke.getAttribute("data-action"))}).forEach(function(Ke){be.currentMarker===void 0?(Ke.style.fillOpacity="0.4",Ke.style.pointerEvents="none"):(Ke.style.fillOpacity="1",Ke.style.pointerEvents="all")})},Ze}(),fe=function(){function Ze(we,be,Ke,Xe){this.panels=[],this.panelButtons=[],this.markerjsContainer=we,this.displayMode=be,this.uiStyleSettings=Ke,this.styles=Xe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ze.prototype.addStyles=function(){var we;this.toolboxStyleClass=this.styles.addClass(new ve("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ve("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var be=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ve("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ve("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ve("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ve("toolbox-panel-row_colors",`
|
|
|
background-color: `+((we=this.uiStyleSettings.toolboxBackgroundColor)!==null&&we!==void 0?we:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ve("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*be)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*be)+`px;
|
|
|
padding: `+be+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Me("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Me("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Ze.prototype.show=function(we){var be;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=we,this.uiContainer.className=this.toolboxStyleClass.name+" "+((be=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&be!==void 0?be:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ze.prototype.setPanelButtons=function(we){var be,Ke,Xe=this;this.panels=we,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((be=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&be!==void 0?be:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ke=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ke!==void 0?Ke:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Oe){var Ue;Oe.uiStyleSettings=Xe.uiStyleSettings;var He=document.createElement("div");He.className=Xe.toolboxButtonStyleClass.name+" "+((Ue=Xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ue!==void 0?Ue:Xe.toolboxButtonStyleColorsClass.name),He.innerHTML=Oe.icon,He.title=Oe.title,He.addEventListener("click",function(){Xe.panelButtonClick(Oe)}),Xe.panelButtons.push(He),Xe.buttonRow.appendChild(He)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ze.prototype.panelButtonClick=function(we){var be=this,Ke=-1;if(we!==this.activePanel){Ke=this.panels.indexOf(we),this.panelRow.innerHTML="";var Xe=we.getUi();Xe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Xe),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=we}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){be.displayMode==="inline"?be.panelRow.style.display="none":be.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Oe,Ue){var He,Ve;Oe.className=be.toolboxButtonStyleClass.name+" "+(Ue===Ke?""+((He=be.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&He!==void 0?He:be.toolboxActiveButtonStyleColorsClass.name):""+((Ve=be.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ve!==void 0?Ve:be.toolboxButtonStyleColorsClass.name))})},Ze}(),z=function(Ze,we){this.title=Ze,this.icon=we},ee=function(Ze){function we(be,Ke,Xe,Oe){var Ue=Ze.call(this,be,Oe||'<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 Ue.colors=[],Ue.addTransparent=!1,Ue.colorBoxes=[],Ue.colors=Ke,Ue.currentColor=Xe,Ue.setCurrentColor=Ue.setCurrentColor.bind(Ue),Ue.getColorBox=Ue.getColorBox.bind(Ue),Ue}return vt(we,Ze),we.prototype.getUi=function(){var be=this,Ke=document.createElement("div");return Ke.style.overflow="hidden",Ke.style.whiteSpace="nowrap",this.colors.forEach(function(Xe){var Oe=be.getColorBox(Xe);Ke.appendChild(Oe),be.colorBoxes.push(Oe)}),Ke},we.prototype.getColorBox=function(be){var Ke=this,Xe=this.uiStyleSettings.toolbarHeight/4,Oe=this.uiStyleSettings.toolbarHeight-Xe,Ue=document.createElement("div");Ue.style.display="inline-block",Ue.style.boxSizing="content-box",Ue.style.width=Oe-2+"px",Ue.style.height=Oe-2+"px",Ue.style.padding="1px",Ue.style.marginRight="2px",Ue.style.marginBottom="2px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.borderRadius=(Oe+2)/2+"px",Ue.style.borderColor=be===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){Ke.setCurrentColor(be,Ue)});var He=document.createElement("div");return He.style.display="inline-block",He.style.width=Oe-2+"px",He.style.height=Oe-2+"px",He.style.backgroundColor=be,He.style.borderRadius=Oe/2+"px",be==="transparent"&&(He.style.fill=this.uiStyleSettings.toolboxAccentColor,He.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>`),Ue.appendChild(He),Ue},we.prototype.setCurrentColor=function(be,Ke){var Xe=this;this.currentColor=be,this.colorBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===Ke?Xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(be)},we}(z),ae=function(){function Ze(we,be,Ke){this._state="new",this._isSelected=!1,this._container=we,this._overlayContainer=be,this.globalSettings=Ke,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ze.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ze.prototype.ownsTarget=function(we){return!1},Object.defineProperty(Ze.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ze.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ze.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ze.prototype.pointerDown=function(we,be){},Ze.prototype.dblClick=function(we,be){},Ze.prototype.manipulate=function(we){},Ze.prototype.pointerUp=function(we){this.stateChanged()},Ze.prototype.dispose=function(){},Ze.prototype.addMarkerVisualToContainer=function(we){this.container.childNodes.length>0?this.container.insertBefore(we,this.container.childNodes[0]):this.container.appendChild(we)},Ze.prototype.getState=function(){return{typeName:Ze.typeName,state:this.state,notes:this.notes}},Ze.prototype.restoreState=function(we){this._state=we.state,this.notes=we.notes},Ze.prototype.scale=function(we,be){},Ze.prototype.colorChanged=function(we){this.onColorChanged&&this.onColorChanged(we),this.stateChanged()},Ze.prototype.fillColorChanged=function(we){this.onFillColorChanged&&this.onFillColorChanged(we),this.stateChanged()},Ze.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var we=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),we.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(we)&&this.onStateChanged(this)}},Ze.typeName="MarkerBase",Ze}(),re=function(){function Ze(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ze.prototype.findGripByVisual=function(we){return this.topLeft.ownsTarget(we)?this.topLeft:this.topCenter.ownsTarget(we)?this.topCenter:this.topRight.ownsTarget(we)?this.topRight:this.centerLeft.ownsTarget(we)?this.centerLeft:this.centerRight.ownsTarget(we)?this.centerRight:this.bottomLeft.ownsTarget(we)?this.bottomLeft:this.bottomCenter.ownsTarget(we)?this.bottomCenter:this.bottomRight.ownsTarget(we)?this.bottomRight:void 0},Ze}(),le=function(){function Ze(){this.GRIP_SIZE=10,this.visual=ge.createGroup(),this.visual.appendChild(ge.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ge.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ze.prototype.ownsTarget=function(we){return we===this.visual||we===this.visual.childNodes[0]||we===this.visual.childNodes[1]},Ze}(),ue=function(){function Ze(){}return Ze.toITransformMatrix=function(we){return{a:we.a,b:we.b,c:we.c,d:we.d,e:we.e,f:we.f}},Ze.toSVGMatrix=function(we,be){return we.a=be.a,we.b=be.b,we.c=be.c,we.d=be.d,we.e=be.e,we.f=be.f,we},Ze}(),pe=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.left=0,Oe.top=0,Oe.width=0,Oe.height=0,Oe.defaultSize={x:50,y:20},Oe.offsetX=0,Oe.offsetY=0,Oe.rotationAngle=0,Oe.CB_DISTANCE=10,Oe._suppressMarkerCreateEvent=!1,Oe.container.transform.baseVal.appendItem(ge.createTransform()),Oe.setupControlBox(),Oe}return vt(we,Ze),Object.defineProperty(we.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"visual",{get:function(){return this._visual},set:function(be){this._visual=be;var Ke=ge.createTransform();this._visual.transform.baseVal.appendItem(Ke)},enumerable:!1,configurable:!0}),we.prototype.ownsTarget=function(be){return!!Ze.prototype.ownsTarget.call(this,be)||!!(this.controlGrips.findGripByVisual(be)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(be))},we.prototype.pointerDown=function(be,Ke){Ze.prototype.pointerDown.call(this,be,Ke),this.state==="new"&&(this.left=be.x,this.top=be.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Xe=this.unrotatePoint(be);if(this.manipulationStartX=Xe.x,this.manipulationStartY=Xe.y,this.offsetX=Xe.x-this.left,this.offsetY=Xe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ke),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ke)){this.activeGrip=this.rotatorGrip;var Oe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Oe.x-this.width/2,this.top=Oe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ue=this.container.transform.baseVal.getItem(0);Ue.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ue,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},we.prototype.pointerUp=function(be){var Ke=this.state;Ze.prototype.pointerUp.call(this,be),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(be),this._state="select",Ke==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},we.prototype.moveVisual=function(be){this.visual.style.transform="translate("+be.x+"px, "+be.y+"px)"},we.prototype.manipulate=function(be){var Ke=this.unrotatePoint(be);this.state==="creating"?this.resize(be):this.state==="move"?(this.left=this.manipulationStartLeft+(Ke.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ke.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ke):this.state==="rotate"&&this.rotate(be)},we.prototype.resize=function(be){var Ke=this.manipulationStartLeft,Xe=this.manipulationStartWidth,Oe=this.manipulationStartTop,Ue=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ke=this.manipulationStartLeft+be.x-this.manipulationStartX,Xe=this.manipulationStartWidth+this.manipulationStartLeft-Ke;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Xe=this.manipulationStartWidth+be.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Oe=this.manipulationStartTop+be.y-this.manipulationStartY,Ue=this.manipulationStartHeight+this.manipulationStartTop-Oe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ue=this.manipulationStartHeight+be.y-this.manipulationStartY}Xe>=0?(this.left=Ke,this.width=Xe):(this.left=Ke+Xe,this.width=-Xe),Ue>=0?(this.top=Oe,this.height=Ue):(this.top=Oe+Ue,this.height=-Ue),this.setSize()},we.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},we.prototype.rotate=function(be){if(Math.abs(be.x-this.centerX)>.1){var Ke=Math.sign(be.x-this.centerX);this.rotationAngle=180*Math.atan((be.y-this.centerY)/(be.x-this.centerX))/Math.PI+90*Ke,this.applyRotation()}},we.prototype.applyRotation=function(){var be=this.container.transform.baseVal.getItem(0);be.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(be,0)},we.prototype.rotatePoint=function(be){if(this.rotationAngle===0)return be;var Ke=this.container.getCTM(),Xe=ge.createPoint(be.x,be.y);return{x:(Xe=Xe.matrixTransform(Ke)).x,y:Xe.y}},we.prototype.unrotatePoint=function(be){if(this.rotationAngle===0)return be;var Ke=this.container.getCTM();Ke=Ke.inverse();var Xe=ge.createPoint(be.x,be.y);return{x:(Xe=Xe.matrixTransform(Ke)).x,y:Xe.y}},we.prototype.select=function(){Ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},we.prototype.deselect=function(){Ze.prototype.deselect.call(this),this.controlBox.style.display="none"},we.prototype.setupControlBox=function(){this.controlBox=ge.createGroup();var be=ge.createTransform();be.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(be),this.container.appendChild(this.controlBox),this.controlRect=ge.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=ge.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 re,this.addControlGrips(),this.controlBox.style.display="none"},we.prototype.adjustControlBox=function(){var be=this.controlBox.transform.baseVal.getItem(0);be.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(be,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()},we.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()},we.prototype.createGrip=function(){var be=new le;return be.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(be.visual),be},we.prototype.positionGrips=function(){var be=this.controlGrips.topLeft.GRIP_SIZE,Ke=-be/2,Xe=Ke,Oe=(this.width+this.CB_DISTANCE)/2-be/2,Ue=(this.height+this.CB_DISTANCE)/2-be/2,He=this.height+this.CB_DISTANCE-be/2,Ve=this.width+this.CB_DISTANCE-be/2;this.positionGrip(this.controlGrips.topLeft.visual,Ke,Xe),this.positionGrip(this.controlGrips.topCenter.visual,Oe,Xe),this.positionGrip(this.controlGrips.topRight.visual,Ve,Xe),this.positionGrip(this.controlGrips.centerLeft.visual,Ke,Ue),this.positionGrip(this.controlGrips.centerRight.visual,Ve,Ue),this.positionGrip(this.controlGrips.bottomLeft.visual,Ke,He),this.positionGrip(this.controlGrips.bottomCenter.visual,Oe,He),this.positionGrip(this.controlGrips.bottomRight.visual,Ve,He),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Oe,Xe-3*this.CB_DISTANCE)},we.prototype.positionGrip=function(be,Ke,Xe){var Oe=be.transform.baseVal.getItem(0);Oe.setTranslate(Ke,Xe),be.transform.baseVal.replaceItem(Oe,0)},we.prototype.hideControlBox=function(){this.controlBox.style.display="none"},we.prototype.showControlBox=function(){this.controlBox.style.display=""},we.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ue.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ue.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ze.prototype.getState.call(this))},we.prototype.restoreState=function(be){Ze.prototype.restoreState.call(this,be);var Ke=be;this.left=Ke.left,this.top=Ke.top,this.width=Ke.width,this.height=Ke.height,this.rotationAngle=Ke.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ue.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ke.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ue.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ke.containerTransformMatrix))},we.prototype.scale=function(be,Ke){Ze.prototype.scale.call(this,be,Ke);var Xe=this.rotatePoint({x:this.left,y:this.top}),Oe=this.unrotatePoint({x:Xe.x*be,y:Xe.y*Ke});this.left=Oe.x,this.top=Oe.y,this.width=this.width*be,this.height=this.height*Ke,this.adjustControlBox()},we}(ae),Te=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.fillColor="transparent",Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.opacity=1,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setFillColor=Oe.setFillColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.createVisual=Oe.createVisual.bind(Oe),Oe}return vt(we,Ze),we.prototype.ownsTarget=function(be){return!(!Ze.prototype.ownsTarget.call(this,be)&&be!==this.visual)},we.prototype.createVisual=function(){this.visual=ge.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)},we.prototype.pointerDown=function(be,Ke){Ze.prototype.pointerDown.call(this,be,Ke),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},we.prototype.manipulate=function(be){Ze.prototype.manipulate.call(this,be)},we.prototype.resize=function(be){Ze.prototype.resize.call(this,be),this.setSize()},we.prototype.setSize=function(){Ze.prototype.setSize.call(this),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},we.prototype.pointerUp=function(be){Ze.prototype.pointerUp.call(this,be),this.setSize()},we.prototype.setStrokeColor=function(be){this.strokeColor=be,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(be),this.stateChanged()},we.prototype.setFillColor=function(be){this.fillColor=be,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},we.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},we.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ze.prototype.getState.call(this))},we.prototype.restoreState=function(be){var Ke=be;this.fillColor=Ke.fillColor,this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.opacity=Ke.opacity,this.createVisual(),Ze.prototype.restoreState.call(this,be),this.setSize()},we.prototype.scale=function(be,Ke){Ze.prototype.scale.call(this,be,Ke),this.setSize()},we.title="Rectangle marker",we}(pe),Ce=function(Ze){function we(be,Ke,Xe,Oe){var Ue=Ze.call(this,be,Oe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ue.widths=[],Ue.widthBoxes=[],Ue.widths=Ke,Ue.currentWidth=Xe,Ue.setCurrentWidth=Ue.setCurrentWidth.bind(Ue),Ue}return vt(we,Ze),we.prototype.getUi=function(){var be=this,Ke=document.createElement("div");return Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2",this.widths.forEach(function(Xe){var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.flexGrow="2",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderColor=Xe===be.currentWidth?be.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){be.setCurrentWidth(Xe,Oe)}),Ke.appendChild(Oe);var Ue=document.createElement("div");Ue.innerText=Xe.toString(),Ue.style.marginRight="5px",Oe.appendChild(Ue);var He=document.createElement("div");He.style.minHeight="20px",He.style.flexGrow="2",He.style.display="flex",He.style.alignItems="center";var Ve=document.createElement("hr");Ve.style.minWidth="20px",Ve.style.border="0px",Ve.style.borderTop=Xe+"px solid "+be.uiStyleSettings.toolboxColor,Ve.style.flexGrow="2",He.appendChild(Ve),Oe.appendChild(He),be.widthBoxes.push(Oe)}),Ke},we.prototype.setCurrentWidth=function(be,Ke){var Xe=this;this.currentWidth=be,this.widthBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===Ke?Xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},we}(z),Fe=function(Ze){function we(be,Ke,Xe,Oe){var Ue=Ze.call(this,be,Oe||'<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 Ue.styles=[],Ue.styleBoxes=[],Ue.styles=Ke,Ue.currentStyle=Xe,Ue.setCurrentStyle=Ue.setCurrentStyle.bind(Ue),Ue}return vt(we,Ze),we.prototype.getUi=function(){var be=this,Ke=document.createElement("div");return Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2",this.styles.forEach(function(Xe){var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.overflow="hidden",Oe.style.maxWidth=100/be.styles.length-5+"%",Oe.style.borderColor=Xe===be.currentStyle?be.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){be.setCurrentStyle(Xe,Oe)}),Ke.appendChild(Oe);var Ue=document.createElement("div");Ue.style.minHeight="20px",Ue.style.flexGrow="2",Ue.style.overflow="hidden";var He=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+be.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Xe!==""?'stroke-dasharray="'+Xe+'"':"")+` />
|
|
|
</svg>`;Ue.innerHTML=He,Oe.appendChild(Ue),be.styleBoxes.push(Oe)}),Ke},we.prototype.setCurrentStyle=function(be,Ke){var Xe=this;this.currentStyle=be,this.styleBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===Ke?Xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},we}(z),Ae=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.strokeColor=Xe.defaultColor,Oe.strokeWidth=Xe.defaultStrokeWidth,Oe.strokeDasharray=Xe.defaultStrokeDasharray,Oe.strokePanel=new ee("Line color",Xe.defaultColorSet,Xe.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.strokeWidthPanel=new Ce("Line width",Xe.defaultStrokeWidths,Xe.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new Fe("Line style",Xe.defaultStrokeDasharrays,Xe.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe}return vt(we,Ze),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=Ze.prototype.getState.call(this);return be.typeName=we.typeName,be},we.typeName="FrameMarker",we.title="Frame marker",we.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',we}(Te),je=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"},Ne=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.x1=0,Oe.y1=0,Oe.x2=0,Oe.y2=0,Oe.defaultLength=50,Oe.manipulationStartX=0,Oe.manipulationStartY=0,Oe.manipulationStartX1=0,Oe.manipulationStartY1=0,Oe.manipulationStartX2=0,Oe.manipulationStartY2=0,Oe.setupControlBox(),Oe}return vt(we,Ze),we.prototype.ownsTarget=function(be){return!!Ze.prototype.ownsTarget.call(this,be)||!(!this.grip1.ownsTarget(be)&&!this.grip2.ownsTarget(be))},we.prototype.pointerDown=function(be,Ke){Ze.prototype.pointerDown.call(this,be,Ke),this.manipulationStartX=be.x,this.manipulationStartY=be.y,this.state==="new"&&(this.x1=be.x,this.y1=be.y,this.x2=be.x,this.y2=be.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(Ke)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ke)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},we.prototype.pointerUp=function(be){var Ke=this.state;Ze.prototype.pointerUp.call(this,be),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(be),this._state="select",Ke==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},we.prototype.adjustVisual=function(){},we.prototype.manipulate=function(be){this.state==="creating"?this.resize(be):this.state==="move"?(this.x1=this.manipulationStartX1+be.x-this.manipulationStartX,this.y1=this.manipulationStartY1+be.y-this.manipulationStartY,this.x2=this.manipulationStartX2+be.x-this.manipulationStartX,this.y2=this.manipulationStartY2+be.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(be)},we.prototype.resize=function(be){switch(this.activeGrip){case this.grip1:this.x1=be.x,this.y1=be.y;break;case this.grip2:case void 0:this.x2=be.x,this.y2=be.y}this.adjustVisual(),this.adjustControlBox()},we.prototype.select=function(){Ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},we.prototype.deselect=function(){Ze.prototype.deselect.call(this),this.controlBox.style.display="none"},we.prototype.setupControlBox=function(){this.controlBox=ge.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},we.prototype.adjustControlBox=function(){this.positionGrips()},we.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},we.prototype.createGrip=function(){var be=new le;return be.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(be.visual),be},we.prototype.positionGrips=function(){var be=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-be/2,this.y1-be/2),this.positionGrip(this.grip2.visual,this.x2-be/2,this.y2-be/2)},we.prototype.positionGrip=function(be,Ke,Xe){var Oe=be.transform.baseVal.getItem(0);Oe.setTranslate(Ke,Xe),be.transform.baseVal.replaceItem(Oe,0)},we.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ze.prototype.getState.call(this))},we.prototype.restoreState=function(be){Ze.prototype.restoreState.call(this,be);var Ke=be;this.x1=Ke.x1,this.y1=Ke.y1,this.x2=Ke.x2,this.y2=Ke.y2},we.prototype.scale=function(be,Ke){Ze.prototype.scale.call(this,be,Ke),this.x1=this.x1*be,this.y1=this.y1*Ke,this.x2=this.x2*be,this.y2=this.y2*Ke,this.adjustVisual(),this.adjustControlBox()},we}(ae),Be=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.strokeColor=Xe.defaultColor,Oe.strokeWidth=Xe.defaultStrokeWidth,Oe.strokeDasharray=Xe.defaultStrokeDasharray,Oe.strokePanel=new ee("Line color",Xe.defaultColorSet,Xe.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.strokeWidthPanel=new Ce("Line width",Xe.defaultStrokeWidths,Xe.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new Fe("Line style",Xe.defaultStrokeDasharrays,Xe.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe}return vt(we,Ze),we.prototype.ownsTarget=function(be){return!(!Ze.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.selectorLine&&be!==this.visibleLine)},we.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorLine=ge.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ge.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)},we.prototype.pointerDown=function(be,Ke){Ze.prototype.pointerDown.call(this,be,Ke),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},we.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()),ge.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},we.prototype.setStrokeColor=function(be){this.strokeColor=be,this.adjustVisual(),this.colorChanged(be)},we.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.adjustVisual()},we.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.adjustVisual(),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ze.prototype.getState.call(this));return be.typeName=we.typeName,be},we.prototype.restoreState=function(be){Ze.prototype.restoreState.call(this,be);var Ke=be;this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.createVisual(),this.adjustVisual()},we.typeName="LineMarker",we.title="Line marker",we.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',we}(Ne),ze=function(Ze){function we(be,Ke,Xe,Oe){var Ue=Ze.call(this,be,Oe||'<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 Ue.fonts=[],Ue.fontBoxes=[],Ue.fonts=Ke,Ue.currentFont=Xe,Ue.setCurrentFont=Ue.setCurrentFont.bind(Ue),Ue}return vt(we,Ze),we.prototype.getUi=function(){var be=this,Ke=document.createElement("div");return Ke.style.overflow="hidden",Ke.style.flexGrow="2",this.fonts.forEach(function(Xe){var Oe=document.createElement("div");Oe.style.display="inline-block",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.overflow="hidden",Oe.style.maxWidth=100/be.fonts.length-5+"%",Oe.style.borderColor=Xe===be.currentFont?be.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){be.setCurrentFont(Xe,Oe)}),Ke.appendChild(Oe);var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.minHeight="20px",Ue.style.flexGrow="2",Ue.style.fontFamily=Xe,Ue.style.overflow="hidden";var He=document.createElement("div");He.style.whiteSpace="nowrap",He.style.overflow="hidden",He.style.textOverflow="ellipsis",He.innerHTML="The quick brown fox jumps over the lazy dog",Ue.appendChild(He),Oe.appendChild(Ue),be.fontBoxes.push(Oe)}),Ke},we.prototype.setCurrentFont=function(be,Ke){var Xe=this;this.currentFont=be,this.fontBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===Ke?Xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},we}(z),Qe=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.color="transparent",Oe.padding=5,Oe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Oe.text=Oe.DEFAULT_TEXT,Oe.isMoved=!1,Oe.color=Xe.defaultColor,Oe.fontFamily=Xe.defaultFontFamily,Oe.defaultSize={x:100,y:30},Oe.setColor=Oe.setColor.bind(Oe),Oe.setFont=Oe.setFont.bind(Oe),Oe.renderText=Oe.renderText.bind(Oe),Oe.sizeText=Oe.sizeText.bind(Oe),Oe.textEditDivClicked=Oe.textEditDivClicked.bind(Oe),Oe.showTextEditor=Oe.showTextEditor.bind(Oe),Oe.setSize=Oe.setSize.bind(Oe),Oe.positionTextEditor=Oe.positionTextEditor.bind(Oe),Oe.colorPanel=new ee("Color",Xe.defaultColorSet,Xe.defaultColor),Oe.colorPanel.onColorChanged=Oe.setColor,Oe.fontFamilyPanel=new ze("Font",Xe.defaultFontFamilies,Xe.defaultFontFamily),Oe.fontFamilyPanel.onFontChanged=Oe.setFont,Oe}return vt(we,Ze),we.prototype.ownsTarget=function(be){if(Ze.prototype.ownsTarget.call(this,be)||be===this.visual||be===this.textElement||be===this.bgRectangle)return!0;var Ke=!1;return this.textElement.childNodes.forEach(function(Xe){Xe===be&&(Ke=!0)}),Ke},we.prototype.createVisual=function(){this.visual=ge.createGroup(),this.bgRectangle=ge.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ge.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},we.prototype.pointerDown=function(be,Ke){Ze.prototype.pointerDown.call(this,be,Ke),this.isMoved=!1,this.pointerDownPoint=be,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},we.prototype.renderText=function(){var be=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(Ke){be.textElement.appendChild(ge.createTSpan(Ke.trim()===""?" ":Ke.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},we.prototype.getTextScale=function(){var be=this.textElement.getBBox(),Ke=1;if(be.width>0&&be.height>0){var Xe=(1*this.width-this.width*this.padding*2/100)/be.width,Oe=(1*this.height-this.height*this.padding*2/100)/be.height;Ke=Math.min(Xe,Oe)}return Ke},we.prototype.getTextPosition=function(be){var Ke=this.textElement.getBBox(),Xe=0,Oe=0;return Ke.width>0&&Ke.height>0&&(Xe=(this.width-Ke.width*be)/2,Oe=this.height/2-Ke.height*be/2),{x:Xe,y:Oe}},we.prototype.sizeText=function(){var be=this.textElement.getBBox(),Ke=this.getTextScale(),Xe=this.getTextPosition(Ke);Xe.y-=be.y*Ke,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Xe.x+"px, "+Xe.y+"px) scale("+Ke+", "+Ke+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Xe.x,Xe.y),this.textElement.transform.baseVal.getItem(1).setScale(Ke,Ke))},we.prototype.manipulate=function(be){Ze.prototype.manipulate.call(this,be),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(be.x-this.pointerDownPoint.x)>5||Math.abs(be.y-this.pointerDownPoint.y)>5)},we.prototype.resize=function(be){Ze.prototype.resize.call(this,be),this.isMoved=!0,this.setSize(),this.sizeText()},we.prototype.setSize=function(){Ze.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},we.prototype.pointerUp=function(be){var Ke=this.state;Ke==="creating"&&(this._suppressMarkerCreateEvent=!0),Ze.prototype.pointerUp.call(this,be),this.setSize(),(Ke==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},we.prototype.showTextEditor=function(){var be=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(Ke){Ke.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ke=Number.parseFloat(be.textEditor.style.fontSize);be.textEditor.clientWidth>=Number.parseInt(be.textEditor.style.maxWidth)&&Ke>.9;)Ke-=.1,be.textEditor.style.fontSize=Math.max(Ke,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ke){Ke.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ke){if(Ke.clipboardData){var Xe=Ke.clipboardData.getData("text"),Oe=window.getSelection();if(!Oe.rangeCount)return!1;Oe.deleteFromDocument(),Oe.getRangeAt(0).insertNode(document.createTextNode(Xe)),Ke.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){be.textEditDivClicked(be.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},we.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var be=this.getTextScale(),Ke=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Xe=this.textElement.getBBox(),Oe={x:Xe.width*be,y:Xe.height*be};Ke.x-=Oe.x/2,Ke.y-=Oe.y/2,this.textEditor.style.top=Ke.y+"px",this.textEditor.style.left=Ke.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ke.x+"px",this.textEditor.style.fontSize=Math.max(16*be,12)+"px",this.textElement.style.display="none"}},we.prototype.textEditDivClicked=function(be){this.text=be.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},we.prototype.select=function(){Ze.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},we.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ze.prototype.deselect.call(this)},we.prototype.dblClick=function(be,Ke){Ze.prototype.dblClick.call(this,be,Ke),this.showTextEditor()},we.prototype.setColor=function(be){this.textElement&&ge.setAttributes(this.textElement,[["fill",be]]),this.color=be,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(be)},we.prototype.setFont=function(be){this.textElement&&ge.setAttributes(this.textElement,[["font-family",be]]),this.fontFamily=be,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},we.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},we.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ze.prototype.getState.call(this));return be.typeName=we.typeName,be},we.prototype.restoreState=function(be){var Ke=be;this.color=Ke.color,this.fontFamily=Ke.fontFamily,this.padding=Ke.padding,this.text=Ke.text,this.createVisual(),Ze.prototype.restoreState.call(this,be),this.setSize()},we.prototype.scale=function(be,Ke){Ze.prototype.scale.call(this,be,Ke),this.setSize(),this.sizeText(),this.positionTextEditor()},we.typeName="TextMarker",we.title="Text marker",we.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>',we}(pe),$e=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.color="transparent",Oe.lineWidth=3,Oe.drawing=!1,Oe.pixelRatio=1,Oe.color=Xe.defaultColor,Oe.lineWidth=Xe.defaultStrokeWidth,Oe.pixelRatio=Xe.freehandPixelRatio,Oe.setColor=Oe.setColor.bind(Oe),Oe.addCanvas=Oe.addCanvas.bind(Oe),Oe.finishCreation=Oe.finishCreation.bind(Oe),Oe.setLineWidth=Oe.setLineWidth.bind(Oe),Oe.colorPanel=new ee("Color",Xe.defaultColorSet,Xe.defaultColor),Oe.colorPanel.onColorChanged=Oe.setColor,Oe.lineWidthPanel=new Ce("Line width",Xe.defaultStrokeWidths,Xe.defaultStrokeWidth),Oe.lineWidthPanel.onWidthChanged=Oe.setLineWidth,Oe}return vt(we,Ze),we.prototype.ownsTarget=function(be){return!(!Ze.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.drawingImage)},we.prototype.createVisual=function(){this.visual=ge.createGroup(),this.drawingImage=ge.createImage(),this.visual.appendChild(this.drawingImage);var be=ge.createTransform();this.visual.transform.baseVal.appendItem(be),this.addMarkerVisualToContainer(this.visual)},we.prototype.pointerDown=function(be,Ke){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(be.x,be.y),this.drawing=!0):Ze.prototype.pointerDown.call(this,be,Ke)},we.prototype.manipulate=function(be){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(be.x,be.y),this.canvasContext.stroke()):Ze.prototype.manipulate.call(this,be)},we.prototype.resize=function(be){Ze.prototype.resize.call(this,be),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},we.prototype.pointerUp=function(be){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ze.prototype.pointerUp.call(this,be)},we.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)},we.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ze.prototype.select.call(this)},we.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ze.prototype.deselect.call(this)},we.prototype.finishCreation=function(){for(var be=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ke=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Xe=Ke[0],Oe=Ke[1],Ue=Ke[2],He=Ke[3],Ve=!1,Je=0;Je<this.canvasElement.height;Je++)for(var ct=0;ct<this.canvasElement.width;ct++)be.data[Je*this.canvasElement.width*4+4*ct+3]>0&&(Ve=!0,Je<Oe&&(Oe=Je),ct<Xe&&(Xe=ct),Je>He&&(He=Je),ct>Ue&&(Ue=ct));if(Ve){this.left=Xe/this.pixelRatio,this.top=Oe/this.pixelRatio,this.width=(Ue-Xe)/this.pixelRatio,this.height=(He-Oe)/this.pixelRatio;var yt=document.createElement("canvas");yt.width=Ue-Xe,yt.height=He-Oe,yt.getContext("2d").putImageData(this.canvasContext.getImageData(Xe,Oe,Ue-Xe,He-Oe),0,0),this.drawingImgUrl=yt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},we.prototype.setDrawingImage=function(){ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},we.prototype.setColor=function(be){this.color=be,this.colorChanged(be)},we.prototype.setLineWidth=function(be){this.lineWidth=be},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=Object.assign({drawingImgUrl:this.drawingImgUrl},Ze.prototype.getState.call(this));return be.typeName=we.typeName,be},we.prototype.restoreState=function(be){this.createVisual(),Ze.prototype.restoreState.call(this,be),this.drawingImgUrl=be.drawingImgUrl,this.setDrawingImage()},we.prototype.scale=function(be,Ke){Ze.prototype.scale.call(this,be,Ke),this.setDrawingImage()},we.typeName="FreehandMarker",we.title="Freehand marker",we.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>',we}(pe),Ye=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Xe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Oe.typeBoxes=[],Oe.currentType=Ke,Oe.setCurrentType=Oe.setCurrentType.bind(Oe),Oe}return vt(we,Ze),we.prototype.getUi=function(){var be=this,Ke=document.createElement("div");Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2";for(var Xe=function(He){var Ve="both";switch(He){case 0:Ve="both";break;case 1:Ve="start";break;case 2:Ve="end";break;case 3:Ve="none"}var Je=document.createElement("div");if(Je.style.display="flex",Je.style.flexGrow="2",Je.style.alignItems="center",Je.style.justifyContent="space-between",Je.style.padding="5px",Je.style.borderWidth="2px",Je.style.borderStyle="solid",Je.style.borderColor=Ve===Oe.currentType?Oe.uiStyleSettings.toolboxAccentColor:"transparent",Je.addEventListener("click",function(){be.setCurrentType(Ve,Je)}),Ke.appendChild(Je),Ve==="both"||Ve==="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="`+(Oe.uiStyleSettings!==void 0?Oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,ct.style.marginLeft="5px",Je.appendChild(ct)}var yt=document.createElement("div");yt.style.display="flex",yt.style.alignItems="center",yt.style.minHeight="20px",yt.style.flexGrow="2";var ft=document.createElement("hr");if(ft.style.minWidth="20px",ft.style.border="0px",ft.style.borderTop="3px solid "+(Oe.uiStyleSettings!==void 0?Oe.uiStyleSettings.toolboxColor:"#eeeeee"),ft.style.flexGrow="2",yt.appendChild(ft),Je.appendChild(yt),Ve==="both"||Ve==="end"){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.alignItems="center",Mt.style.minHeight="20px",Mt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(Oe.uiStyleSettings!==void 0?Oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Mt.style.marginRight="5px",Je.appendChild(Mt)}Oe.typeBoxes.push(Je)},Oe=this,Ue=0;Ue<4;Ue++)Xe(Ue);return Ke},we.prototype.setCurrentType=function(be,Ke){var Xe=this;this.currentType=be,this.typeBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===Ke?Xe.uiStyleSettings!==void 0?Xe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},we}(z),at=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.arrowType="end",Oe.arrowBaseHeight=10,Oe.arrowBaseWidth=10,Oe.getArrowPoints=Oe.getArrowPoints.bind(Oe),Oe.setArrowType=Oe.setArrowType.bind(Oe),Oe.arrowTypePanel=new Ye("Arrow type","end"),Oe.arrowTypePanel.onArrowTypeChanged=Oe.setArrowType,Oe}return vt(we,Ze),we.prototype.ownsTarget=function(be){return!(!Ze.prototype.ownsTarget.call(this,be)&&be!==this.arrow1&&be!==this.arrow2)},we.prototype.getArrowPoints=function(be,Ke){var Xe=this.arrowBaseWidth+2*this.strokeWidth,Oe=this.arrowBaseHeight+2*this.strokeWidth;return be-Xe/2+","+(Ke+Oe/2)+" "+be+","+(Ke-Oe/2)+" "+(be+Xe/2)+","+(Ke+Oe/2)},we.prototype.createTips=function(){this.arrow1=ge.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ge.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow2)},we.prototype.pointerDown=function(be,Ke){Ze.prototype.pointerDown.call(this,be,Ke),this.state==="creating"&&this.createTips()},we.prototype.adjustVisual=function(){if(Ze.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",ge.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ge.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var be=0;Math.abs(this.x1-this.x2)>.1&&(be=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ke=this.arrow1.transform.baseVal.getItem(0);Ke.setRotate(be,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ke,0);var Xe=this.arrow2.transform.baseVal.getItem(0);Xe.setRotate(be+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Xe,0)}},we.prototype.setArrowType=function(be){this.arrowType=be,this.adjustVisual(),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=Object.assign({arrowType:this.arrowType},Ze.prototype.getState.call(this));return be.typeName=we.typeName,be},we.prototype.restoreState=function(be){Ze.prototype.restoreState.call(this,be);var Ke=be;this.arrowType=Ke.arrowType,this.createTips(),this.adjustVisual()},we.typeName="ArrowMarker",we.title="Arrow marker",we.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',we}(Be),ut=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.fillColor=Xe.defaultFillColor,Oe.strokeWidth=0,Oe.fillPanel=new ee("Color",Xe.defaultColorSet,Xe.defaultFillColor),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe}return vt(we,Ze),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=Ze.prototype.getState.call(this);return be.typeName=we.typeName,be},we.typeName="CoverMarker",we.title="Cover marker",we.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',we}(Te),ht=function(Ze){function we(be,Ke,Xe,Oe){var Ue=Ze.call(this,be,Oe||'<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 Ue.opacities=[],Ue.opacityBoxes=[],Ue.opacities=Ke,Ue.currentOpacity=Xe,Ue.setCurrentOpacity=Ue.setCurrentOpacity.bind(Ue),Ue}return vt(we,Ze),we.prototype.getUi=function(){var be=this,Ke=document.createElement("div");return Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2",Ke.style.justifyContent="space-between",this.opacities.forEach(function(Xe){var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.justifyContent="center",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderColor=Xe===be.currentOpacity?be.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){be.setCurrentOpacity(Xe,Oe)}),Ke.appendChild(Oe);var Ue=document.createElement("div");Ue.innerText=100*Xe+"%",Oe.appendChild(Ue),be.opacityBoxes.push(Oe)}),Ke},we.prototype.setCurrentOpacity=function(be,Ke){var Xe=this;this.currentOpacity=be,this.opacityBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===Ke?Xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},we}(z),Ct=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.setOpacity=Oe.setOpacity.bind(Oe),Oe.fillColor=Xe.defaultHighlightColor,Oe.strokeWidth=0,Oe.opacity=Xe.defaultHighlightOpacity,Oe.fillPanel=new ee("Color",Xe.defaultColorSet,Oe.fillColor),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe.opacityPanel=new ht("Opacity",Xe.defaultOpacitySteps,Oe.opacity),Oe.opacityPanel.onOpacityChanged=Oe.setOpacity,Oe}return vt(we,Ze),we.prototype.setOpacity=function(be){this.opacity=be,this.visual&&ge.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=Ze.prototype.getState.call(this);return be.typeName=we.typeName,be},we.typeName="HighlightMarker",we.title="Highlight marker",we.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>',we}(ut),et='<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>',it='<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>',St=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.bgColor="transparent",Oe.tipPosition={x:0,y:0},Oe.tipBase1Position={x:0,y:0},Oe.tipBase2Position={x:0,y:0},Oe.tipMoving=!1,Oe.color=Xe.defaultStrokeColor,Oe.bgColor=Xe.defaultFillColor,Oe.fontFamily=Xe.defaultFontFamily,Oe.defaultSize={x:100,y:30},Oe.setBgColor=Oe.setBgColor.bind(Oe),Oe.getTipPoints=Oe.getTipPoints.bind(Oe),Oe.positionTip=Oe.positionTip.bind(Oe),Oe.setTipPoints=Oe.setTipPoints.bind(Oe),Oe.colorPanel=new ee("Text color",Xe.defaultColorSet,Oe.color,et),Oe.colorPanel.onColorChanged=Oe.setColor,Oe.bgColorPanel=new ee("Fill color",Xe.defaultColorSet,Oe.bgColor,it),Oe.bgColorPanel.onColorChanged=Oe.setBgColor,Oe.fontFamilyPanel=new ze("Font",Xe.defaultFontFamilies,Xe.defaultFontFamily),Oe.fontFamilyPanel.onFontChanged=Oe.setFont,Oe.tipGrip=new le,Oe.tipGrip.visual.transform.baseVal.appendItem(ge.createTransform()),Oe.controlBox.appendChild(Oe.tipGrip.visual),Oe}return vt(we,Ze),we.prototype.ownsTarget=function(be){return Ze.prototype.ownsTarget.call(this,be)||this.tipGrip.ownsTarget(be)||this.tip===be},we.prototype.createTip=function(){ge.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ge.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},we.prototype.pointerDown=function(be,Ke){this.state==="new"&&Ze.prototype.pointerDown.call(this,be,Ke),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ke)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ze.prototype.pointerDown.call(this,be,Ke)},we.prototype.pointerUp=function(be){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ze.prototype.pointerUp.call(this,be);else{var Ke=this.state==="creating";Ze.prototype.pointerUp.call(this,be),this.setTipPoints(Ke),this.positionTip()}},we.prototype.manipulate=function(be){if(this.tipMoving){var Ke=this.unrotatePoint(be);this.tipPosition={x:Ke.x-this.manipulationStartLeft,y:Ke.y-this.manipulationStartTop},this.positionTip()}else Ze.prototype.manipulate.call(this,be)},we.prototype.setBgColor=function(be){this.bgRectangle&&this.tip&&(ge.setAttributes(this.bgRectangle,[["fill",be]]),ge.setAttributes(this.tip,[["fill",be]])),this.bgColor=be,this.fillColorChanged(be)},we.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},we.prototype.setTipPoints=function(be){be===void 0&&(be=!1);var Ke=Math.min(this.height/2,15),Xe=this.height/5;be&&(this.tipPosition={x:Ke+Xe/2,y:this.height+20});var Oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Oe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Xe=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:Ke,y:0},this.tipBase2Position={x:Ke+Xe,y:0}):(this.tipBase1Position={x:0,y:Ke},this.tipBase2Position={x:0,y:Ke+Xe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Oe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Xe=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ke-Xe,y:0},this.tipBase2Position={x:this.width-Ke,y:0}):(this.tipBase1Position={x:this.width,y:Ke},this.tipBase2Position={x:this.width,y:Ke+Xe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Oe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Xe=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ke-Xe,y:this.height},this.tipBase2Position={x:this.width-Ke,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ke-Xe},this.tipBase2Position={x:this.width,y:this.height-Ke}):Oe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Xe=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:Ke,y:this.height},this.tipBase2Position={x:Ke+Xe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ke},this.tipBase2Position={x:0,y:this.height-Ke-Xe})},we.prototype.resize=function(be){Ze.prototype.resize.call(this,be),this.positionTip()},we.prototype.positionTip=function(){ge.setAttributes(this.tip,[["points",this.getTipPoints()]]);var be=this.tipGrip.visual.transform.baseVal.getItem(0);be.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(be,0)},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),we.prototype.select=function(){this.positionTip(),Ze.prototype.select.call(this)},we.prototype.getState=function(){var be=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ze.prototype.getState.call(this));return be.typeName=we.typeName,be},we.prototype.restoreState=function(be){var Ke=be;this.bgColor=Ke.bgColor,this.tipPosition=Ke.tipPosition,Ze.prototype.restoreState.call(this,be),this.createTip(),this.setTipPoints()},we.prototype.scale=function(be,Ke){Ze.prototype.scale.call(this,be,Ke),this.tipPosition={x:this.tipPosition.x*be,y:this.tipPosition.y*Ke},this.positionTip()},we.typeName="CalloutMarker",we.title="Callout marker",we.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>',we}(Qe),bt=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.fillColor="transparent",Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.opacity=1,Oe.strokeColor=Xe.defaultColor,Oe.strokeWidth=Xe.defaultStrokeWidth,Oe.strokeDasharray=Xe.defaultStrokeDasharray,Oe.fillColor=Xe.defaultFillColor,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setFillColor=Oe.setFillColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.setOpacity=Oe.setOpacity.bind(Oe),Oe.createVisual=Oe.createVisual.bind(Oe),Oe.strokePanel=new ee("Line color",Ie(Xe.defaultColorSet,["transparent"]),Xe.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.fillPanel=new ee("Fill color",Ie(Xe.defaultColorSet,["transparent"]),Oe.fillColor,it),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe.strokeWidthPanel=new Ce("Line width",Xe.defaultStrokeWidths,Xe.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new Fe("Line style",Xe.defaultStrokeDasharrays,Xe.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe.opacityPanel=new ht("Opacity",Xe.defaultOpacitySteps,Oe.opacity),Oe.opacityPanel.onOpacityChanged=Oe.setOpacity,Oe}return vt(we,Ze),we.prototype.ownsTarget=function(be){return!(!Ze.prototype.ownsTarget.call(this,be)&&be!==this.visual)},we.prototype.createVisual=function(){this.visual=ge.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)},we.prototype.pointerDown=function(be,Ke){Ze.prototype.pointerDown.call(this,be,Ke),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},we.prototype.manipulate=function(be){Ze.prototype.manipulate.call(this,be)},we.prototype.resize=function(be){Ze.prototype.resize.call(this,be),this.setSize()},we.prototype.setSize=function(){Ze.prototype.setSize.call(this),ge.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},we.prototype.pointerUp=function(be){Ze.prototype.pointerUp.call(this,be),this.setSize()},we.prototype.setStrokeColor=function(be){this.strokeColor=be,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(be),this.stateChanged()},we.prototype.setFillColor=function(be){this.fillColor=be,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(be),this.stateChanged()},we.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},we.prototype.setOpacity=function(be){this.opacity=be,this.visual&&ge.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ze.prototype.getState.call(this));return be.typeName=we.typeName,be},we.prototype.restoreState=function(be){var Ke=be;this.fillColor=Ke.fillColor,this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.opacity=Ke.opacity,this.createVisual(),Ze.prototype.restoreState.call(this,be),this.setSize()},we.prototype.scale=function(be,Ke){Ze.prototype.scale.call(this,be,Ke),this.setSize()},we.typeName="EllipseMarker",we.title="Ellipse marker",we.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>',we}(pe),Pt=function(Ze){function we(be,Ke,Xe){return Ze.call(this,be,Ke,Xe)||this}return vt(we,Ze),Object.defineProperty(we.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),we.prototype.ownsTarget=function(be){return!(!Ze.prototype.ownsTarget.call(this,be)&&be!==this.tip1&&be!==this.tip2)},we.prototype.createTips=function(){this.tip1=ge.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(ge.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ge.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(ge.createTransform()),this.visual.appendChild(this.tip2)},we.prototype.pointerDown=function(be,Ke){Ze.prototype.pointerDown.call(this,be,Ke),this.state==="creating"&&this.createTips()},we.prototype.adjustVisual=function(){if(Ze.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ge.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()]]),ge.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 be=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ke=this.tip1.transform.baseVal.getItem(0);Ke.setRotate(be,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ke,0);var Xe=this.tip2.transform.baseVal.getItem(0);Xe.setRotate(be+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Xe,0)}},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=Ze.prototype.getState.call(this);return be.typeName=we.typeName,be},we.prototype.restoreState=function(be){Ze.prototype.restoreState.call(this,be),this.createTips(),this.adjustVisual()},we.typeName="MeasurementMarker",we.title="Measurement marker",we.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>',we}(Be),gt=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.strokePanel.colors=Xe.defaultColorSet,Oe.fillColor="transparent",Oe}return vt(we,Ze),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=Ze.prototype.getState.call(this);return be.typeName=we.typeName,be},we.typeName="EllipseFrameMarker",we.title="Ellipse frame marker",we.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>',we}(bt),dt=function(){function Ze(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ze.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ze.prototype.addUndoStep=function(we){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(we)||(this.undoStack.push(we),JSON.stringify(this.lastRedoStep)!==JSON.stringify(we)&&this.redoStack.splice(0,this.redoStack.length))},Ze.prototype.replaceLastUndoStep=function(we){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=we)},Ze.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ze.prototype.undo=function(){if(this.undoStack.length>1){var we=this.undoStack.pop();return we!==void 0&&this.redoStack.push(we),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ze.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ze}(),mt=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.curveX=0,Oe.curveY=0,Oe.manipulationStartCurveX=0,Oe.manipulationStartCurveY=0,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.positionGrips=Oe.positionGrips.bind(Oe),Oe.addControlGrips=Oe.addControlGrips.bind(Oe),Oe.adjustVisual=Oe.adjustVisual.bind(Oe),Oe.setupControlBox=Oe.setupControlBox.bind(Oe),Oe.resize=Oe.resize.bind(Oe),Oe.strokeColor=Xe.defaultColor,Oe.strokeWidth=Xe.defaultStrokeWidth,Oe.strokeDasharray=Xe.defaultStrokeDasharray,Oe.strokePanel=new ee("Line color",Xe.defaultColorSet,Xe.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.strokeWidthPanel=new Ce("Line width",Xe.defaultStrokeWidths,Xe.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new Fe("Line style",Xe.defaultStrokeDasharrays,Xe.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe}return vt(we,Ze),we.prototype.ownsTarget=function(be){return!(!Ze.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.selectorCurve&&be!==this.visibleCurve&&!this.curveGrip.ownsTarget(be))},we.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},we.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorCurve=ge.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ge.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)},we.prototype.pointerDown=function(be,Ke){Ze.prototype.pointerDown.call(this,be,Ke),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=be.x,this.curveY=be.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ke)&&(this.activeGrip=this.curveGrip,this._state="resize")},we.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ge.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},we.prototype.setupControlBox=function(){Ze.prototype.setupControlBox.call(this),this.curveControlLine1=ge.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ge.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)},we.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ze.prototype.addControlGrips.call(this)},we.prototype.positionGrips=function(){Ze.prototype.positionGrips.call(this);var be=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-be/2,this.curveY-be/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()))},we.prototype.manipulate=function(be){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+be.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+be.y-this.manipulationStartY),Ze.prototype.manipulate.call(this,be)},we.prototype.resize=function(be){this.activeGrip===this.curveGrip&&(this.curveX=be.x,this.curveY=be.y),Ze.prototype.resize.call(this,be),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},we.prototype.setStrokeColor=function(be){this.strokeColor=be,this.adjustVisual(),this.colorChanged(be)},we.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.adjustVisual()},we.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.adjustVisual()},we.prototype.scale=function(be,Ke){this.curveX=this.curveX*be,this.curveY=this.curveY*Ke,Ze.prototype.scale.call(this,be,Ke)},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ze.prototype.getState.call(this));return be.typeName=we.typeName,be},we.prototype.restoreState=function(be){Ze.prototype.restoreState.call(this,be);var Ke=be;this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.curveX=Ke.curveX,this.curveY=Ke.curveY,this.createVisual(),this.adjustVisual()},we.typeName="CurveMarker",we.title="Curve marker",we.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>',we}(Ne),kt=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,Ke,Xe)||this;return Oe.fillColor="transparent",Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.textColor="transparent",Oe.fontSize="1rem",Oe.isMoved=!1,Oe.captionText="Caption",Oe.PADDING=5,Oe.captionBoxWidth=0,Oe.captionBoxHeight=0,Oe.strokeColor=Xe.defaultColor,Oe.strokeWidth=Xe.defaultStrokeWidth,Oe.strokeDasharray=Xe.defaultStrokeDasharray,Oe.fillColor=Xe.defaultFillColor,Oe.textColor=Xe.defaultStrokeColor,Oe.fontFamily=Xe.defaultFontFamily,Oe.fontSize=Xe.defaultCaptionFontSize,Oe.captionText=Xe.defaultCaptionText,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setFillColor=Oe.setFillColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.createVisual=Oe.createVisual.bind(Oe),Oe.sizeCaption=Oe.sizeCaption.bind(Oe),Oe.setCaptionText=Oe.setCaptionText.bind(Oe),Oe.showTextEditor=Oe.showTextEditor.bind(Oe),Oe.positionTextEditor=Oe.positionTextEditor.bind(Oe),Oe.finishTextEditing=Oe.finishTextEditing.bind(Oe),Oe.setFont=Oe.setFont.bind(Oe),Oe.setTextColor=Oe.setTextColor.bind(Oe),Oe.strokePanel=new ee("Line color",Ie(Xe.defaultColorSet,["transparent"]),Oe.strokeColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.fillPanel=new ee("Fill color",Ie(Xe.defaultColorSet,["transparent"]),Oe.fillColor,it),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe.strokeWidthPanel=new Ce("Line width",Xe.defaultStrokeWidths,Xe.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new Fe("Line style",Xe.defaultStrokeDasharrays,Xe.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe.fontFamilyPanel=new ze("Font",Xe.defaultFontFamilies,Xe.defaultFontFamily),Oe.fontFamilyPanel.onFontChanged=Oe.setFont,Oe.textColorPanel=new ee("Text color",Xe.defaultColorSet,Oe.textColor,et),Oe.textColorPanel.onColorChanged=Oe.setTextColor,Oe}return vt(we,Ze),we.prototype.ownsTarget=function(be){return!(!Ze.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.frame&&be!==this.captionBg&&be!==this.captionElement)},we.prototype.createVisual=function(){this.visual=ge.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ge.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ge.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=ge.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()},we.prototype.setCaptionText=function(be){this.captionText=be,this.captionElement.textContent=this.captionText,this.sizeCaption()},we.prototype.pointerDown=function(be,Ke){Ze.prototype.pointerDown.call(this,be,Ke),this.isMoved=!1,this.pointerDownPoint=be,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},we.prototype.manipulate=function(be){Ze.prototype.manipulate.call(this,be),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(be.x-this.pointerDownPoint.x)>5||Math.abs(be.y-this.pointerDownPoint.y)>5)},we.prototype.resize=function(be){Ze.prototype.resize.call(this,be),this.setSize()},we.prototype.sizeCaption=function(){var be=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=be.width+2*this.PADDING,this.captionBoxHeight=be.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ge.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')"]]),ge.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')"]])},we.prototype.showTextEditor=function(){var be=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(Ke){Ke.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ke){Ke.key==="Enter"&&be.finishTextEditing(be.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ke){Ke.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){be.finishTextEditing(be.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){be.finishTextEditing(be.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},we.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"))},we.prototype.finishTextEditing=function(be){this.setCaptionText(be.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},we.prototype.setFont=function(be){this.captionElement&&ge.setAttributes(this.captionElement,[["font-family",be]]),this.fontFamily=be,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},we.prototype.setTextColor=function(be){this.captionElement&&ge.setAttributes(this.captionElement,[["fill",be]]),this.textColor=be,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},we.prototype.setSize=function(){Ze.prototype.setSize.call(this),ge.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},we.prototype.pointerUp=function(be){Ze.prototype.pointerUp.call(this,be),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},we.prototype.dblClick=function(be,Ke){Ze.prototype.dblClick.call(this,be,Ke),this.showTextEditor()},we.prototype.setStrokeColor=function(be){this.strokeColor=be,this.frame&&ge.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(be),this.stateChanged()},we.prototype.setFillColor=function(be){this.fillColor=be,this.captionBg&&ge.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(be),this.stateChanged()},we.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.frame&&ge.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.frame&&ge.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var be=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},Ze.prototype.getState.call(this));return be.typeName=this.typeName,be},we.prototype.restoreState=function(be){var Ke=be;this.fillColor=Ke.fillColor,this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.textColor=Ke.textColor,this.fontFamily=Ke.fontFamily,this.captionText=Ke.captionText,this.fontSize=Ke.fontSize,this.createVisual(),Ze.prototype.restoreState.call(this,be),this.setSize()},we.prototype.scale=function(be,Ke){Ze.prototype.scale.call(this,be,Ke),this.setSize()},we.typeName="CaptionFrameMarker",we.title="Caption frame marker",we.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>',we}(pe),Et=function(){function Ze(we,be){be===void 0&&(be=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=we,this.cancelable=be}return Object.defineProperty(Ze.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ze.prototype.preventDefault=function(){this._defaultPrevented=!0},Ze}(),Ut=function(Ze){function we(be,Ke,Xe){var Oe=Ze.call(this,be,!1)||this;return Oe.dataUrl=Ke,Oe.state=Xe,Oe}return vt(we,Ze),we}(Et),wt=function(Ze){function we(be,Ke,Xe){Xe===void 0&&(Xe=!1);var Oe=Ze.call(this,be,Xe)||this;return Oe.marker=Ke,Oe}return vt(we,Ze),we}(Et),pt=function(){function Ze(){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 Ze.prototype.addEventListener=function(we,be){this[we].push(be)},Ze.prototype.removeEventListener=function(we,be){var Ke=this[we].indexOf(be);Ke>-1&&this[we].splice(Ke,1)},Ze}(),tt=function(){function Ze(we){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new je,this._isOpen=!1,this.undoRedoManager=new dt,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 pt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ze.instanceCounter++,this.styles=new ye(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=we,this.targetRoot=document.body,this.width=we.clientWidth,this.height=we.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(Ze.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ae,$e,at,Qe,gt,bt,Ct,St,Pt,ut,Be,mt,kt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ae,$e,at,Qe,bt,Ct,St]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ae,$e,at,Qe,Ct]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(we){var be=this;this._availableMarkerTypes.splice(0),we.forEach(function(Ke){if(typeof Ke=="string"){var Xe=be.ALL_MARKER_TYPES.find(function(Oe){return Oe.typeName===Ke});Xe!==void 0&&be._availableMarkerTypes.push(Xe)}else be._availableMarkerTypes.push(Ke)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(we){this._zoomLevel=we,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(Ze.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ze.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ce.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ze.prototype.show=function(){var we=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(be){return be(new Et(we))})},Ze.prototype.render=function(){return ie(this,void 0,void 0,function(){var we;return _e(this,function(be){switch(be.label){case 0:return this.setCurrentMarker(),(we=new Pe).naturalSize=this.renderAtNaturalSize,we.imageType=this.renderImageType,we.imageQuality=this.renderImageQuality,we.markersOnly=this.renderMarkersOnly,we.width=this.renderWidth,we.height=this.renderHeight,[4,we.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return be.sent(),[4,we.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,be.sent()]}})})},Ze.prototype.close=function(we){var be=this;if(we===void 0&&(we=!1),this.isOpen){var Ke=!1;we||this.eventListeners.beforeclose.forEach(function(Xe){var Oe=new Et(be,!0);Xe(Oe),Oe.defaultPrevented&&(Ke=!0)}),Ke||(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(Xe){return Xe(new Et(be))}),this.detachEvents(),this._isOpen=!1)}},Ze.prototype.addMarkersToToolbar=function(){for(var we,be=[],Ke=0;Ke<arguments.length;Ke++)be[Ke]=arguments[Ke];(we=this._availableMarkerTypes).push.apply(we,be)},Ze.prototype.addRenderEventListener=function(we){this.addEventListener("render",function(be){we(be.dataUrl,be.state)})},Ze.prototype.removeRenderEventListener=function(we){},Ze.prototype.addCloseEventListener=function(we){this.addEventListener("close",function(){we()})},Ze.prototype.removeCloseEventListener=function(we){},Ze.prototype.setupResizeObserver=function(){var we=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){we.resize(we.target.clientWidth,we.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return we.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ze.prototype.onPopupTargetResize=function(){var we=1*this.target.clientWidth/this.target.clientHeight,be=this.editorCanvas.clientWidth/we>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*we:this.editorCanvas.clientWidth,Ke=be<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/we;this.resize(be,Ke)},Ze.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ze.prototype.resize=function(we,be){this._isResizing=!0;var Ke=we/this.imageWidth,Xe=be/this.imageHeight;this.imageWidth=Math.round(we),this.imageHeight=Math.round(be),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(Ke,Xe),this._isResizing=!1},Ze.prototype.scaleMarkers=function(we,be){var Ke,Xe=this;this._currentMarker&&this._currentMarker instanceof Qe?this._currentMarker.scale(we,be):(Ke=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Oe){Oe!==Xe._currentMarker&&Oe.scale(we,be)}),Ke!==void 0&&this.setCurrentMarker(Ke)},Ze.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"},Ze.prototype.setTopLeft=function(){var we=this.editingTarget.getBoundingClientRect(),be=this.editorCanvas.getBoundingClientRect();this.left=we.left-be.left,this.top=we.top-be.top},Ze.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)},Ze.prototype.addDefs=function(){for(var we,be=[],Ke=0;Ke<arguments.length;Ke++)be[Ke]=arguments[Ke];this.defs=ge.createDefs(),this.addDefsToImage(),(we=this.defs).append.apply(we,be)},Ze.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ze.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)},Ze.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ze.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ze.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)},Ze.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ze.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)},Ze.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 we=document.createElement("a");we.href="https://markerjs.com/",we.target="_blank",we.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>',we.title="Powered by marker.js",we.style.display="grid",we.style.alignItems="center",we.style.justifyItems="center",we.style.padding="3px",we.style.width="20px",we.style.height="20px",this.logoUI.appendChild(we),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ze.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")},Ze.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"},Ze.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ze.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 we=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=we+"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 xe(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new fe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ze.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ze.prototype.removeMarker=function(we){this.markerImage.removeChild(we.container),this.markers.indexOf(we)>-1&&this.markers.splice(this.markers.indexOf(we),1),we.dispose()},Ze.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())},Ze.prototype.toolbarButtonClicked=function(we,be){if(we==="marker"&&be!==void 0)this.createNewMarker(be);else if(we==="action")switch(be){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()}},Ze.prototype.deleteSelectedMarker=function(){var we=this;if(this._currentMarker!==void 0){var be=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Xe){var Oe=new wt(we,we._currentMarker,!0);Xe(Oe),Oe.defaultPrevented&&(be=!0)}),!be){var Ke=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(Xe){return Xe(new wt(we,Ke))})}}},Ze.prototype.clear=function(){var we=this,be=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ue){var He=new wt(we,void 0,!0);Ue(He),He.defaultPrevented&&(be=!0)}),!be)){this.setCurrentMarker();for(var Ke=function(Ue){var He=Xe.markers[Ue];Xe.setCurrentMarker(Xe.markers[Ue]),Xe._currentMarker.dispose(),Xe.markerImage.removeChild(Xe._currentMarker.container),Xe.markers.splice(Xe.markers.indexOf(Xe._currentMarker),1),Xe.eventListeners.markerdelete.forEach(function(Ve){return Ve(new wt(we,He))})},Xe=this,Oe=this.markers.length-1;Oe>=0;Oe--)Ke(Oe);this.addUndoStep()}},Object.defineProperty(Ze.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ze.prototype.showNotesEditor=function(){var we;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=(we=this._currentMarker.notes)!==null&&we!==void 0?we:"",this.overlayContainer.appendChild(this.notesArea))},Ze.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)},Ze.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ze.prototype.addUndoStep=function(){var we=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var be=this.getState(),Ke=this.undoRedoManager.getLastUndoStep();if(!Ke||Ke.width===be.width&&Ke.height===be.height){var Xe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(be),Xe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Oe){return Oe(new Et(we))})}else this.undoRedoManager.replaceLastUndoStep(be),this.eventListeners.statechange.forEach(function(Oe){return Oe(new Et(we))})}},Ze.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ze.prototype.undoStep=function(){var we=this,be=this.undoRedoManager.undo();be!==void 0&&(this.restoreState(be),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ke){return Ke(new Et(we))}))},Ze.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ze.prototype.redoStep=function(){var we=this,be=this.undoRedoManager.redo();be!==void 0&&(this.restoreState(be),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ke){return Ke(new Et(we))}))},Ze.prototype.stepZoom=function(){var we=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=we<this.zoomSteps.length-1?this.zoomSteps[we+1]:this.zoomSteps[0]},Ze.prototype.panTo=function(we){this.contentDiv.scrollBy({left:this.prevPanPoint.x-we.x,top:this.prevPanPoint.y-we.y}),this.prevPanPoint=we},Ze.prototype.startRenderAndClose=function(){return ie(this,void 0,void 0,function(){var we,be,Ke=this;return _e(this,function(Xe){switch(Xe.label){case 0:return[4,this.render()];case 1:return we=Xe.sent(),be=this.getState(),this.eventListeners.render.forEach(function(Oe){return Oe(new Ut(Ke,we,be))}),this.close(!0),[2]}})})},Ze.prototype.getState=function(we){we===!0&&this.setCurrentMarker();var be={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ke){return be.markers.push(Ke.getState())}),be},Ze.prototype.restoreState=function(we){var be=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);we.markers.forEach(function(Ke){var Xe=be._availableMarkerTypes.find(function(Ue){return Ue.typeName===Ke.typeName});if(Xe!==void 0){var Oe=be.addNewMarker(Xe);Oe.restoreState(Ke),be.markers.push(Oe)}}),we.width&&we.height&&(we.width!==this.imageWidth||we.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/we.width,this.imageHeight/we.height),this.eventListeners.restorestate.forEach(function(Ke){return Ke(new Et(be))})},Ze.prototype.addNewMarker=function(we){var be=ge.createGroup();return this.markerImage.appendChild(be),new we(be,this.overlayContainer,this.settings)},Ze.prototype.createNewMarker=function(we){var be,Ke=this;(be=typeof we=="string"?this._availableMarkerTypes.find(function(Xe){return Xe.typeName===we}):we)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(be),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(be.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Xe){return Xe(new wt(Ke,Ke._currentMarker))}))},Ze.prototype.markerCreated=function(we){var be=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(we),this.setCurrentMarker(we),we instanceof $e&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker($e):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ke){return Ke(new wt(be,be._currentMarker))})},Ze.prototype.colorChanged=function(we){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=we,this.settings.defaultStrokeColor=we)},Ze.prototype.fillColorChanged=function(we){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=we)},Ze.prototype.markerStateChanged=function(we){var be=this;this.eventListeners.markerchange.forEach(function(Ke){return Ke(new wt(be,we))})},Ze.prototype.setCurrentMarker=function(we){var be=this;this._currentMarker!==we&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ke){return Ke(new wt(be,be._currentMarker))})),this._currentMarker=we,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(Ke){return Ke(new wt(be,be._currentMarker))}))},Ze.prototype.onPointerDown=function(we){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||we.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var be=this.markers.find(function(Ke){return Ke.ownsTarget(we.target)});be!==void 0?(this.setCurrentMarker(be),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(we.clientX,we.clientY),we.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:we.clientX,y:we.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(we.clientX,we.clientY))},Ze.prototype.onDblClick=function(we){if(this._isFocused||this.focus(),this.mode==="select"){var be=this.markers.find(function(Ke){return Ke.ownsTarget(we.target)});be!==void 0&&be!==this._currentMarker&&this.setCurrentMarker(be),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(we.clientX,we.clientY),we.target):this.setCurrentMarker()}},Ze.prototype.onPointerMove=function(we){this.touchPoints!==1&&we.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||we.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(we.clientX,we.clientY)):this.zoomLevel>1&&this.panTo({x:we.clientX,y:we.clientY}))},Ze.prototype.onPointerUp=function(we){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(we.clientX,we.clientY)),this.isDragging=!1,this.addUndoStep()},Ze.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ze.prototype.onKeyUp=function(we){this._currentMarker===void 0||this.notesArea!==void 0||we.key!=="Delete"&&we.key!=="Backspace"||this.deleteSelectedMarker()},Ze.prototype.clientToLocalCoordinates=function(we,be){var Ke=this.markerImage.getBoundingClientRect();return{x:(we-Ke.left)/this.zoomLevel,y:(be-Ke.top)/this.zoomLevel}},Ze.prototype.onWindowResize=function(){this.positionUI()},Ze.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var we=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=we+"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()},Ze.prototype.addLicenseKey=function(we){ce.addKey(we)},Ze.prototype.addEventListener=function(we,be){this.eventListeners.addEventListener(we,be)},Ze.prototype.removeEventListener=function(we,be){this.eventListeners.removeEventListener(we,be)},Ze.prototype.renderState=function(we){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(we),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ze.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ze.prototype.focus=function(){var we=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(be){return be(new Et(we))}))},Ze.prototype.blur=function(){var we=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(be){return be(new Et(we))}))},Ze.instanceCounter=0,Ze}()},17115:function(bn,an,Ge){"use strict";Ge.d(an,{ZP:function(){return ce}});var rt=Ge(72071),vt=Ge(59301),ie=Ge(47273),_e=0,Ie=(0,ie.Z)();function ge(){var Pe;return Ie?(Pe=_e,_e+=1):Pe="TEST_OR_SSR",Pe}function ce(Pe){var Ee=vt.useState(),ye=(0,rt.Z)(Ee,2),Me=ye[0],ve=ye[1];return vt.useEffect(function(){ve("rc_select_".concat(ge()))},[]),Pe||Me}},77861:function(bn,an,Ge){"use strict";Ge.d(an,{Ac:function(){return Mt},Xo:function(){return Xn},Wx:function(){return fr},ZP:function(){return Nn},lk:function(){return pe}});var rt=Ge(96663),vt=Ge(19127),ie=Ge(90493),_e=Ge(44127),Ie=Ge(72071),ge=Ge(6620),ce=Ge(20135),Pe=Ge(18929),Ee=Ge(48736),ye=Ge(59301),Me=Ge(92310),ve=Ge.n(Me),xe=Ge(34280),fe=Ge(49658),z=Ge(10228),ee=Ge(8654),ae=function(zt){var Pn=zt.className,_n=zt.customizeIcon,qn=zt.customizeIconProps,Yn=zt.onMouseDown,$t=zt.onClick,jn=zt.children,Wn;return typeof _n=="function"?Wn=_n(qn):Wn=_n,ye.createElement("span",{className:Pn,onMouseDown:function(nn){nn.preventDefault(),Yn&&Yn(nn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:$t,"aria-hidden":!0},Wn!==void 0?Wn:ye.createElement("span",{className:ve()(Pn.split(/\s+/).map(function(or){return"".concat(or,"-icon")}))},jn))},re=ae;function le(Xt,zt,Pn,_n,qn){var Yn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,$t=arguments.length>6?arguments[6]:void 0,jn=arguments.length>7?arguments[7]:void 0,Wn=ye.useMemo(function(){if((0,ce.Z)(_n)==="object")return _n.clearIcon;if(qn)return qn},[_n,qn]),or=ye.useMemo(function(){return!!(!Yn&&_n&&(Pn.length||$t)&&!(jn==="combobox"&&$t===""))},[_n,Yn,Pn.length,$t,jn]);return{allowClear:or,clearIcon:ye.createElement(re,{className:"".concat(Xt,"-clear"),onMouseDown:zt,customizeIcon:Wn},"\xD7")}}var ue=ye.createContext(null);function pe(){return ye.useContext(ue)}function Te(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,zt=ye.useState(!1),Pn=(0,Ie.Z)(zt,2),_n=Pn[0],qn=Pn[1],Yn=ye.useRef(null),$t=function(){window.clearTimeout(Yn.current)};ye.useEffect(function(){return $t},[]);var jn=function(or,nn){$t(),Yn.current=window.setTimeout(function(){qn(or),nn&&nn()},Xt)};return[_n,jn,$t]}function Ce(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,zt=ye.useRef(null),Pn=ye.useRef(null);ye.useEffect(function(){return function(){window.clearTimeout(Pn.current)}},[]);function _n(qn){(qn||zt.current===null)&&(zt.current=qn),window.clearTimeout(Pn.current),Pn.current=window.setTimeout(function(){zt.current=null},Xt)}return[function(){return zt.current},_n]}function Fe(Xt,zt,Pn,_n){var qn=ye.useRef(null);qn.current={open:zt,triggerOpen:Pn,customizedTrigger:_n},ye.useEffect(function(){function Yn($t){var jn;if(!((jn=qn.current)!==null&&jn!==void 0&&jn.customizedTrigger)){var Wn=$t.target;Wn.shadowRoot&&$t.composed&&(Wn=$t.composedPath()[0]||Wn),qn.current.open&&Xt().filter(function(or){return or}).every(function(or){return!or.contains(Wn)&&or!==Wn})&&qn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Yn),function(){return window.removeEventListener("mousedown",Yn)}},[])}var Ae=Ge(26112),je=Ge(11780),Ne=function(zt,Pn){var _n,qn,Yn=zt.prefixCls,$t=zt.id,jn=zt.inputElement,Wn=zt.disabled,or=zt.tabIndex,nn=zt.autoFocus,Cn=zt.autoComplete,rn=zt.editable,mn=zt.activeDescendantId,En=zt.value,pn=zt.maxLength,kn=zt.onKeyDown,Mn=zt.onMouseDown,zn=zt.onChange,Dn=zt.onPaste,ar=zt.onCompositionStart,dn=zt.onCompositionEnd,Or=zt.open,Jr=zt.attrs,Rr=jn||ye.createElement("input",null),vn=Rr,Jn=vn.ref,lr=vn.props,vr=lr.onKeyDown,Sr=lr.onChange,Kr=lr.onMouseDown,ai=lr.onCompositionStart,Br=lr.onCompositionEnd,br=lr.style;return(0,Ee.Kp)(!("maxLength"in Rr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Rr=ye.cloneElement(Rr,(0,_e.Z)((0,_e.Z)((0,_e.Z)({type:"search"},lr),{},{id:$t,ref:(0,ee.sQ)(Pn,Jn),disabled:Wn,tabIndex:or,autoComplete:Cn||"off",autoFocus:nn,className:ve()("".concat(Yn,"-selection-search-input"),(_n=Rr)===null||_n===void 0||(qn=_n.props)===null||qn===void 0?void 0:qn.className),role:"combobox","aria-label":"Search","aria-expanded":Or||!1,"aria-haspopup":"listbox","aria-owns":"".concat($t,"_list"),"aria-autocomplete":"list","aria-controls":"".concat($t,"_list"),"aria-activedescendant":Or?mn:void 0},Jr),{},{value:rn?En:"",maxLength:pn,readOnly:!rn,unselectable:rn?null:"on",style:(0,_e.Z)((0,_e.Z)({},br),{},{opacity:rn?null:0}),onKeyDown:function(Tn){kn(Tn),vr&&vr(Tn)},onMouseDown:function(Tn){Mn(Tn),Kr&&Kr(Tn)},onChange:function(Tn){zn(Tn),Sr&&Sr(Tn)},onCompositionStart:function(Tn){ar(Tn),ai&&ai(Tn)},onCompositionEnd:function(Tn){dn(Tn),Br&&Br(Tn)},onPaste:Dn})),Rr},Be=ye.forwardRef(Ne);Be.displayName="Input";var ze=Be;function Qe(Xt){return Array.isArray(Xt)?Xt:Xt!==void 0?[Xt]:[]}var $e=typeof window!="undefined"&&window.document&&window.document.documentElement,Ye=$e;function at(Xt){return Xt!=null}function ut(Xt){return!Xt&&Xt!==0}function ht(Xt){return["string","number"].includes((0,ce.Z)(Xt))}function Ct(Xt){var zt=void 0;return Xt&&(ht(Xt.title)?zt=Xt.title.toString():ht(Xt.label)&&(zt=Xt.label.toString())),zt}function et(Xt,zt){Ye?ye.useLayoutEffect(Xt,zt):ye.useEffect(Xt,zt)}function it(Xt){var zt;return(zt=Xt.key)!==null&&zt!==void 0?zt:Xt.value}var St=function(zt){zt.preventDefault(),zt.stopPropagation()},bt=function(zt){var Pn=zt.id,_n=zt.prefixCls,qn=zt.values,Yn=zt.open,$t=zt.searchValue,jn=zt.autoClearSearchValue,Wn=zt.inputRef,or=zt.placeholder,nn=zt.disabled,Cn=zt.mode,rn=zt.showSearch,mn=zt.autoFocus,En=zt.autoComplete,pn=zt.activeDescendantId,kn=zt.tabIndex,Mn=zt.removeIcon,zn=zt.maxTagCount,Dn=zt.maxTagTextLength,ar=zt.maxTagPlaceholder,dn=ar===void 0?function(Ii){return"+ ".concat(Ii.length," ...")}:ar,Or=zt.tagRender,Jr=zt.onToggleOpen,Rr=zt.onRemove,vn=zt.onInputChange,Jn=zt.onInputPaste,lr=zt.onInputKeyDown,vr=zt.onInputMouseDown,Sr=zt.onInputCompositionStart,Kr=zt.onInputCompositionEnd,ai=ye.useRef(null),Br=(0,ye.useState)(0),br=(0,Ie.Z)(Br,2),si=br[0],Tn=br[1],Ri=(0,ye.useState)(!1),On=(0,Ie.Z)(Ri,2),pi=On[0],xo=On[1],zi="".concat(_n,"-selection"),Lo=Yn||Cn==="multiple"&&jn===!1||Cn==="tags"?$t:"",yo=Cn==="tags"||Cn==="multiple"&&jn===!1||rn&&(Yn||pi);et(function(){Tn(ai.current.scrollWidth)},[Lo]);function Ur(Ii,_r,Ir,_i,Ji){return ye.createElement("span",{className:ve()("".concat(zi,"-item"),(0,ie.Z)({},"".concat(zi,"-item-disabled"),Ir)),title:Ct(Ii)},ye.createElement("span",{className:"".concat(zi,"-item-content")},_r),_i&&ye.createElement(re,{className:"".concat(zi,"-item-remove"),onMouseDown:St,onClick:Ji,customizeIcon:Mn},"\xD7"))}function Gr(Ii,_r,Ir,_i,Ji){var zr=function(Ci){St(Ci),Jr(!Yn)};return ye.createElement("span",{onMouseDown:zr},Or({label:_r,value:Ii,disabled:Ir,closable:_i,onClose:Ji}))}function Mi(Ii){var _r=Ii.disabled,Ir=Ii.label,_i=Ii.value,Ji=!nn&&!_r,zr=Ir;if(typeof Dn=="number"&&(typeof Ir=="string"||typeof Ir=="number")){var Vr=String(zr);Vr.length>Dn&&(zr="".concat(Vr.slice(0,Dn),"..."))}var Ci=function(Vi){Vi&&Vi.stopPropagation(),Rr(Ii)};return typeof Or=="function"?Gr(_i,zr,_r,Ji,Ci):Ur(Ii,zr,_r,Ji,Ci)}function Hi(Ii){var _r=typeof dn=="function"?dn(Ii):dn;return Ur({title:_r},_r,!1)}var cr=ye.createElement("div",{className:"".concat(zi,"-search"),style:{width:si},onFocus:function(){xo(!0)},onBlur:function(){xo(!1)}},ye.createElement(ze,{ref:Wn,open:Yn,prefixCls:_n,id:Pn,inputElement:null,disabled:nn,autoFocus:mn,autoComplete:En,editable:yo,activeDescendantId:pn,value:Lo,onKeyDown:lr,onMouseDown:vr,onChange:vn,onPaste:Jn,onCompositionStart:Sr,onCompositionEnd:Kr,tabIndex:kn,attrs:(0,Ae.Z)(zt,!0)}),ye.createElement("span",{ref:ai,className:"".concat(zi,"-search-mirror"),"aria-hidden":!0},Lo,"\xA0")),Lt=ye.createElement(je.Z,{prefixCls:"".concat(zi,"-overflow"),data:qn,renderItem:Mi,renderRest:Hi,suffix:cr,itemKey:it,maxCount:zn});return ye.createElement(ye.Fragment,null,Lt,!qn.length&&!Lo&&ye.createElement("span",{className:"".concat(zi,"-placeholder")},or))},Pt=bt,gt=function(zt){var Pn=zt.inputElement,_n=zt.prefixCls,qn=zt.id,Yn=zt.inputRef,$t=zt.disabled,jn=zt.autoFocus,Wn=zt.autoComplete,or=zt.activeDescendantId,nn=zt.mode,Cn=zt.open,rn=zt.values,mn=zt.placeholder,En=zt.tabIndex,pn=zt.showSearch,kn=zt.searchValue,Mn=zt.activeValue,zn=zt.maxLength,Dn=zt.onInputKeyDown,ar=zt.onInputMouseDown,dn=zt.onInputChange,Or=zt.onInputPaste,Jr=zt.onInputCompositionStart,Rr=zt.onInputCompositionEnd,vn=zt.title,Jn=ye.useState(!1),lr=(0,Ie.Z)(Jn,2),vr=lr[0],Sr=lr[1],Kr=nn==="combobox",ai=Kr||pn,Br=rn[0],br=kn||"";Kr&&Mn&&!vr&&(br=Mn),ye.useEffect(function(){Kr&&Sr(!1)},[Kr,Mn]);var si=nn!=="combobox"&&!Cn&&!pn?!1:!!br,Tn=vn===void 0?Ct(Br):vn,Ri=function(){if(Br)return null;var pi=si?{visibility:"hidden"}:void 0;return ye.createElement("span",{className:"".concat(_n,"-selection-placeholder"),style:pi},mn)};return ye.createElement(ye.Fragment,null,ye.createElement("span",{className:"".concat(_n,"-selection-search")},ye.createElement(ze,{ref:Yn,prefixCls:_n,id:qn,open:Cn,inputElement:Pn,disabled:$t,autoFocus:jn,autoComplete:Wn,editable:ai,activeDescendantId:or,value:br,onKeyDown:Dn,onMouseDown:ar,onChange:function(pi){Sr(!0),dn(pi)},onPaste:Or,onCompositionStart:Jr,onCompositionEnd:Rr,tabIndex:En,attrs:(0,Ae.Z)(zt,!0),maxLength:Kr?zn:void 0})),!Kr&&Br?ye.createElement("span",{className:"".concat(_n,"-selection-item"),title:Tn,style:si?{visibility:"hidden"}:void 0},Br.label):null,Ri())},dt=gt;function mt(Xt){return![z.Z.ESC,z.Z.SHIFT,z.Z.BACKSPACE,z.Z.TAB,z.Z.WIN_KEY,z.Z.ALT,z.Z.META,z.Z.WIN_KEY_RIGHT,z.Z.CTRL,z.Z.SEMICOLON,z.Z.EQUALS,z.Z.CAPS_LOCK,z.Z.CONTEXT_MENU,z.Z.F1,z.Z.F2,z.Z.F3,z.Z.F4,z.Z.F5,z.Z.F6,z.Z.F7,z.Z.F8,z.Z.F9,z.Z.F10,z.Z.F11,z.Z.F12].includes(Xt)}var kt=function(zt,Pn){var _n=(0,ye.useRef)(null),qn=(0,ye.useRef)(!1),Yn=zt.prefixCls,$t=zt.open,jn=zt.mode,Wn=zt.showSearch,or=zt.tokenWithEnter,nn=zt.autoClearSearchValue,Cn=zt.onSearch,rn=zt.onSearchSubmit,mn=zt.onToggleOpen,En=zt.onInputKeyDown,pn=zt.domRef;ye.useImperativeHandle(Pn,function(){return{focus:function(){_n.current.focus()},blur:function(){_n.current.blur()}}});var kn=Ce(0),Mn=(0,Ie.Z)(kn,2),zn=Mn[0],Dn=Mn[1],ar=function(br){var si=br.which;(si===z.Z.UP||si===z.Z.DOWN)&&br.preventDefault(),En&&En(br),si===z.Z.ENTER&&jn==="tags"&&!qn.current&&!$t&&(rn==null||rn(br.target.value)),mt(si)&&mn(!0)},dn=function(){Dn(!0)},Or=(0,ye.useRef)(null),Jr=function(br){Cn(br,!0,qn.current)!==!1&&mn(!0)},Rr=function(){qn.current=!0},vn=function(br){qn.current=!1,jn!=="combobox"&&Jr(br.target.value)},Jn=function(br){var si=br.target.value;if(or&&Or.current&&/[\r\n]/.test(Or.current)){var Tn=Or.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");si=si.replace(Tn,Or.current)}Or.current=null,Jr(si)},lr=function(br){var si=br.clipboardData,Tn=si.getData("text");Or.current=Tn},vr=function(br){var si=br.target;if(si!==_n.current){var Tn=document.body.style.msTouchAction!==void 0;Tn?setTimeout(function(){_n.current.focus()}):_n.current.focus()}},Sr=function(br){var si=zn();br.target!==_n.current&&!si&&jn!=="combobox"&&br.preventDefault(),(jn!=="combobox"&&(!Wn||!si)||!$t)&&($t&&nn!==!1&&Cn("",!0,!1),mn())},Kr={inputRef:_n,onInputKeyDown:ar,onInputMouseDown:dn,onInputChange:Jn,onInputPaste:lr,onInputCompositionStart:Rr,onInputCompositionEnd:vn},ai=jn==="multiple"||jn==="tags"?ye.createElement(Pt,(0,rt.Z)({},zt,Kr)):ye.createElement(dt,(0,rt.Z)({},zt,Kr));return ye.createElement("div",{ref:pn,className:"".concat(Yn,"-selector"),onClick:vr,onMouseDown:Sr},ai)},Et=ye.forwardRef(kt);Et.displayName="Selector";var Ut=Et,wt=Ge(35593),pt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],tt=function(zt){var Pn=zt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pn,adjustY:1},htmlRegion:"scroll"}}},Ze=function(zt,Pn){var _n=zt.prefixCls,qn=zt.disabled,Yn=zt.visible,$t=zt.children,jn=zt.popupElement,Wn=zt.animation,or=zt.transitionName,nn=zt.dropdownStyle,Cn=zt.dropdownClassName,rn=zt.direction,mn=rn===void 0?"ltr":rn,En=zt.placement,pn=zt.builtinPlacements,kn=zt.dropdownMatchSelectWidth,Mn=zt.dropdownRender,zn=zt.dropdownAlign,Dn=zt.getPopupContainer,ar=zt.empty,dn=zt.getTriggerDOMNode,Or=zt.onPopupVisibleChange,Jr=zt.onPopupMouseEnter,Rr=(0,ge.Z)(zt,pt),vn="".concat(_n,"-dropdown"),Jn=jn;Mn&&(Jn=Mn(jn));var lr=ye.useMemo(function(){return pn||tt(kn)},[pn,kn]),vr=Wn?"".concat(vn,"-").concat(Wn):or,Sr=typeof kn=="number",Kr=ye.useMemo(function(){return Sr?null:kn===!1?"minWidth":"width"},[kn,Sr]),ai=nn;Sr&&(ai=(0,_e.Z)((0,_e.Z)({},ai),{},{width:kn}));var Br=ye.useRef(null);return ye.useImperativeHandle(Pn,function(){return{getPopupElement:function(){return Br.current}}}),ye.createElement(wt.Z,(0,rt.Z)({},Rr,{showAction:Or?["click"]:[],hideAction:Or?["click"]:[],popupPlacement:En||(mn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:lr,prefixCls:vn,popupTransitionName:vr,popup:ye.createElement("div",{ref:Br,onMouseEnter:Jr},Jn),stretch:Kr,popupAlign:zn,popupVisible:Yn,getPopupContainer:Dn,popupClassName:ve()(Cn,(0,ie.Z)({},"".concat(vn,"-empty"),ar)),popupStyle:ai,getTriggerDOMNode:dn,onPopupVisibleChange:Or}),$t)},we=ye.forwardRef(Ze);we.displayName="SelectTrigger";var be=we,Ke=Ge(4537);function Xe(Xt,zt){var Pn=Xt.key,_n;return"value"in Xt&&(_n=Xt.value),Pn!=null?Pn:_n!==void 0?_n:"rc-index-key-".concat(zt)}function Oe(Xt,zt){var Pn=Xt||{},_n=Pn.label,qn=Pn.value,Yn=Pn.options,$t=Pn.groupLabel,jn=_n||(zt?"children":"label");return{label:jn,value:qn||"value",options:Yn||"options",groupLabel:$t||jn}}function Ue(Xt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pn=zt.fieldNames,_n=zt.childrenAsData,qn=[],Yn=Oe(Pn,!1),$t=Yn.label,jn=Yn.value,Wn=Yn.options,or=Yn.groupLabel;function nn(Cn,rn){Cn.forEach(function(mn){if(rn||!(Wn in mn)){var En=mn[jn];qn.push({key:Xe(mn,qn.length),groupOption:rn,data:mn,label:mn[$t],value:En})}else{var pn=mn[or];pn===void 0&&_n&&(pn=mn.label),qn.push({key:Xe(mn,qn.length),group:!0,data:mn,label:pn}),nn(mn[Wn],!0)}})}return nn(Xt,!1),qn}function He(Xt){var zt=(0,_e.Z)({},Xt);return"props"in zt||Object.defineProperty(zt,"props",{get:function(){return(0,Ee.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),zt}}),zt}function Ve(Xt,zt){if(!zt||!zt.length)return null;var Pn=!1;function _n(Yn,$t){var jn=(0,Ke.Z)($t),Wn=jn[0],or=jn.slice(1);if(!Wn)return[Yn];var nn=Yn.split(Wn);return Pn=Pn||nn.length>1,nn.reduce(function(Cn,rn){return[].concat((0,vt.Z)(Cn),(0,vt.Z)(_n(rn,or)))},[]).filter(function(Cn){return Cn})}var qn=_n(Xt,zt);return Pn?qn:null}var Je=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ct=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function yt(Xt){return Xt==="tags"||Xt==="multiple"}var ft=ye.forwardRef(function(Xt,zt){var Pn,_n,qn=Xt.id,Yn=Xt.prefixCls,$t=Xt.className,jn=Xt.showSearch,Wn=Xt.tagRender,or=Xt.direction,nn=Xt.omitDomProps,Cn=Xt.displayValues,rn=Xt.onDisplayValuesChange,mn=Xt.emptyOptions,En=Xt.notFoundContent,pn=En===void 0?"Not Found":En,kn=Xt.onClear,Mn=Xt.mode,zn=Xt.disabled,Dn=Xt.loading,ar=Xt.getInputElement,dn=Xt.getRawInputElement,Or=Xt.open,Jr=Xt.defaultOpen,Rr=Xt.onDropdownVisibleChange,vn=Xt.activeValue,Jn=Xt.onActiveValueChange,lr=Xt.activeDescendantId,vr=Xt.searchValue,Sr=Xt.autoClearSearchValue,Kr=Xt.onSearch,ai=Xt.onSearchSplit,Br=Xt.tokenSeparators,br=Xt.allowClear,si=Xt.suffixIcon,Tn=Xt.clearIcon,Ri=Xt.OptionList,On=Xt.animation,pi=Xt.transitionName,xo=Xt.dropdownStyle,zi=Xt.dropdownClassName,Lo=Xt.dropdownMatchSelectWidth,yo=Xt.dropdownRender,Ur=Xt.dropdownAlign,Gr=Xt.placement,Mi=Xt.builtinPlacements,Hi=Xt.getPopupContainer,cr=Xt.showAction,Lt=cr===void 0?[]:cr,Ii=Xt.onFocus,_r=Xt.onBlur,Ir=Xt.onKeyUp,_i=Xt.onKeyDown,Ji=Xt.onMouseDown,zr=(0,ge.Z)(Xt,Je),Vr=yt(Mn),Ci=(jn!==void 0?jn:Vr)||Mn==="combobox",mi=(0,_e.Z)({},zr);ct.forEach(function(oo){delete mi[oo]}),nn==null||nn.forEach(function(oo){delete mi[oo]});var Vi=ye.useState(!1),io=(0,Ie.Z)(Vi,2),Hr=io[0],Er=io[1];ye.useEffect(function(){Er((0,fe.Z)())},[]);var Kn=ye.useRef(null),li=ye.useRef(null),Qi=ye.useRef(null),zo=ye.useRef(null),Mo=ye.useRef(null),Uo=Te(),ca=(0,Ie.Z)(Uo,3),Jo=ca[0],qa=ca[1],La=ca[2];ye.useImperativeHandle(zt,function(){var oo,Do;return{focus:(oo=zo.current)===null||oo===void 0?void 0:oo.focus,blur:(Do=zo.current)===null||Do===void 0?void 0:Do.blur,scrollTo:function(Xa){var _a;return(_a=Mo.current)===null||_a===void 0?void 0:_a.scrollTo(Xa)}}});var es=ye.useMemo(function(){var oo;if(Mn!=="combobox")return vr;var Do=(oo=Cn[0])===null||oo===void 0?void 0:oo.value;return typeof Do=="string"||typeof Do=="number"?String(Do):""},[vr,Mn,Cn]),wn=Mn==="combobox"&&typeof ar=="function"&&ar()||null,ma=typeof dn=="function"&&dn(),Ql=(0,ee.x1)(li,ma==null||(Pn=ma.props)===null||Pn===void 0?void 0:Pn.ref),el=ye.useState(!1),So=(0,Ie.Z)(el,2),ro=So[0],va=So[1];(0,xe.Z)(function(){va(!0)},[]);var Io=(0,Pe.Z)(!1,{defaultValue:Jr,value:Or}),qi=(0,Ie.Z)(Io,2),No=qi[0],xs=qi[1],bi=ro?No:!1,lo=!pn&&mn;(zn||lo&&bi&&Mn==="combobox")&&(bi=!1);var ao=lo?!1:bi,Tr=ye.useCallback(function(oo){var Do=oo!==void 0?oo:!bi;zn||(xs(Do),bi!==Do&&(Rr==null||Rr(Do)))},[zn,bi,xs,Rr]),Ba=ye.useMemo(function(){return(Br||[]).some(function(oo){return[`
|
|
|
`,`\r
|
|
|
`].includes(oo)})},[Br]),Ra=function(Do,Es,Xa){var _a=!0,ha=Do;Jn==null||Jn(null);var Ea=Xa?null:Ve(Do,Br);return Mn!=="combobox"&&Ea&&(ha="",ai==null||ai(Ea),Tr(!1),_a=!1),Kr&&es!==ha&&Kr(ha,{source:Es?"typing":"effect"}),_a},Cs=function(Do){!Do||!Do.trim()||Kr(Do,{source:"submit"})};ye.useEffect(function(){!bi&&!Vr&&Mn!=="combobox"&&Ra("",!1,!1)},[bi]),ye.useEffect(function(){No&&zn&&xs(!1),zn&&qa(!1)},[zn]);var Il=Ce(),ql=(0,Ie.Z)(Il,2),yr=ql[0],aa=ql[1],Wa=function(Do){var Es=yr(),Xa=Do.which;if(Xa===z.Z.ENTER&&(Mn!=="combobox"&&Do.preventDefault(),bi||Tr(!0)),aa(!!es),Xa===z.Z.BACKSPACE&&!Es&&Vr&&!es&&Cn.length){for(var _a=(0,vt.Z)(Cn),ha=null,Ea=_a.length-1;Ea>=0;Ea-=1){var Ka=_a[Ea];if(!Ka.disabled){_a.splice(Ea,1),ha=Ka;break}}ha&&rn(_a,{type:"remove",values:[ha]})}for(var za=arguments.length,zu=new Array(za>1?za-1:0),Rl=1;Rl<za;Rl++)zu[Rl-1]=arguments[Rl];if(bi&&Mo.current){var ka;(ka=Mo.current).onKeyDown.apply(ka,[Do].concat(zu))}_i==null||_i.apply(void 0,[Do].concat(zu))},Pl=function(Do){for(var Es=arguments.length,Xa=new Array(Es>1?Es-1:0),_a=1;_a<Es;_a++)Xa[_a-1]=arguments[_a];if(bi&&Mo.current){var ha;(ha=Mo.current).onKeyUp.apply(ha,[Do].concat(Xa))}Ir==null||Ir.apply(void 0,[Do].concat(Xa))},Dl=function(Do){var Es=Cn.filter(function(Xa){return Xa!==Do});rn(Es,{type:"remove",values:[Do]})},Fl=ye.useRef(!1),Di=function(){qa(!0),zn||(Ii&&!Fl.current&&Ii.apply(void 0,arguments),Lt.includes("focus")&&Tr(!0)),Fl.current=!0},mc=function(){qa(!1,function(){Fl.current=!1,Tr(!1)}),!zn&&(es&&(Mn==="tags"?Kr(es,{source:"submit"}):Mn==="multiple"&&Kr("",{source:"blur"})),_r&&_r.apply(void 0,arguments))},tl=[];ye.useEffect(function(){return function(){tl.forEach(function(oo){return clearTimeout(oo)}),tl.splice(0,tl.length)}},[]);var nl=function(Do){var Es,Xa=Do.target,_a=(Es=Qi.current)===null||Es===void 0?void 0:Es.getPopupElement();if(_a&&_a.contains(Xa)){var ha=setTimeout(function(){var zu=tl.indexOf(ha);if(zu!==-1&&tl.splice(zu,1),La(),!Hr&&!_a.contains(document.activeElement)){var Rl;(Rl=zo.current)===null||Rl===void 0||Rl.focus()}});tl.push(ha)}for(var Ea=arguments.length,Ka=new Array(Ea>1?Ea-1:0),za=1;za<Ea;za++)Ka[za-1]=arguments[za];Ji==null||Ji.apply(void 0,[Do].concat(Ka))},As=ye.useState({}),Eu=(0,Ie.Z)(As,2),Ru=Eu[1];function _s(){Ru({})}var dl;ma&&(dl=function(Do){Tr(Do)}),Fe(function(){var oo;return[Kn.current,(oo=Qi.current)===null||oo===void 0?void 0:oo.getPopupElement()]},ao,Tr,!!ma);var $c=ye.useMemo(function(){return(0,_e.Z)((0,_e.Z)({},Xt),{},{notFoundContent:pn,open:bi,triggerOpen:ao,id:qn,showSearch:Ci,multiple:Vr,toggleOpen:Tr})},[Xt,pn,ao,bi,qn,Ci,Vr,Tr]),hh=!!si||Dn,Gc;hh&&(Gc=ye.createElement(re,{className:ve()("".concat(Yn,"-arrow"),(0,ie.Z)({},"".concat(Yn,"-arrow-loading"),Dn)),customizeIcon:si,customizeIconProps:{loading:Dn,searchValue:es,open:bi,focused:Jo,showSearch:Ci}}));var Hh=function(){var Do;kn==null||kn(),(Do=zo.current)===null||Do===void 0||Do.focus(),rn([],{type:"clear",values:Cn}),Ra("",!1,!1)},Hc=le(Yn,Hh,Cn,br,Tn,zn,es,Mn),vc=Hc.allowClear,_u=Hc.clearIcon,Bl=ye.createElement(Ri,{ref:Mo}),dh=ve()(Yn,$t,(_n={},(0,ie.Z)(_n,"".concat(Yn,"-focused"),Jo),(0,ie.Z)(_n,"".concat(Yn,"-multiple"),Vr),(0,ie.Z)(_n,"".concat(Yn,"-single"),!Vr),(0,ie.Z)(_n,"".concat(Yn,"-allow-clear"),br),(0,ie.Z)(_n,"".concat(Yn,"-show-arrow"),hh),(0,ie.Z)(_n,"".concat(Yn,"-disabled"),zn),(0,ie.Z)(_n,"".concat(Yn,"-loading"),Dn),(0,ie.Z)(_n,"".concat(Yn,"-open"),bi),(0,ie.Z)(_n,"".concat(Yn,"-customize-input"),wn),(0,ie.Z)(_n,"".concat(Yn,"-show-search"),Ci),_n)),Uc=ye.createElement(be,{ref:Qi,disabled:zn,prefixCls:Yn,visible:ao,popupElement:Bl,animation:On,transitionName:pi,dropdownStyle:xo,dropdownClassName:zi,direction:or,dropdownMatchSelectWidth:Lo,dropdownRender:yo,dropdownAlign:Ur,placement:Gr,builtinPlacements:Mi,getPopupContainer:Hi,empty:mn,getTriggerDOMNode:function(){return li.current},onPopupVisibleChange:dl,onPopupMouseEnter:_s},ma?ye.cloneElement(ma,{ref:Ql}):ye.createElement(Ut,(0,rt.Z)({},Xt,{domRef:li,prefixCls:Yn,inputElement:wn,ref:zo,id:qn,showSearch:Ci,autoClearSearchValue:Sr,mode:Mn,activeDescendantId:lr,tagRender:Wn,values:Cn,open:bi,onToggleOpen:Tr,activeValue:vn,searchValue:es,onSearch:Ra,onSearchSubmit:Cs,onRemove:Dl,tokenWithEnter:Ba}))),yc;return ma?yc=Uc:yc=ye.createElement("div",(0,rt.Z)({className:dh},mi,{ref:Kn,onMouseDown:nl,onKeyDown:Wa,onKeyUp:Pl,onFocus:Di,onBlur:mc}),Jo&&!bi&&ye.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Cn.map(function(oo){var Do=oo.label,Es=oo.value;return["number","string"].includes((0,ce.Z)(Do))?Do:Es}).join(", "))),Uc,Gc,vc&&_u),ye.createElement(ue.Provider,{value:$c},yc)}),Mt=ft,Jt=function(Xt,zt){var Pn=ye.useRef({values:new Map,options:new Map}),_n=ye.useMemo(function(){var Yn=Pn.current,$t=Yn.values,jn=Yn.options,Wn=Xt.map(function(Cn){if(Cn.label===void 0){var rn;return(0,_e.Z)((0,_e.Z)({},Cn),{},{label:(rn=$t.get(Cn.value))===null||rn===void 0?void 0:rn.label})}return Cn}),or=new Map,nn=new Map;return Wn.forEach(function(Cn){or.set(Cn.value,Cn),nn.set(Cn.value,zt.get(Cn.value)||jn.get(Cn.value))}),Pn.current.values=or,Pn.current.options=nn,Wn},[Xt,zt]),qn=ye.useCallback(function(Yn){return zt.get(Yn)||Pn.current.options.get(Yn)},[zt]);return[_n,qn]};function Vt(Xt,zt){return Qe(Xt).join("").toUpperCase().includes(zt)}var Kt=function(Xt,zt,Pn,_n,qn){return ye.useMemo(function(){if(!Pn||_n===!1)return Xt;var Yn=zt.options,$t=zt.label,jn=zt.value,Wn=[],or=typeof _n=="function",nn=Pn.toUpperCase(),Cn=or?_n:function(mn,En){return qn?Vt(En[qn],nn):En[Yn]?Vt(En[$t!=="children"?$t:"label"],nn):Vt(En[jn],nn)},rn=or?function(mn){return He(mn)}:function(mn){return mn};return Xt.forEach(function(mn){if(mn[Yn]){var En=Cn(Pn,rn(mn));if(En)Wn.push(mn);else{var pn=mn[Yn].filter(function(kn){return Cn(Pn,rn(kn))});pn.length&&Wn.push((0,_e.Z)((0,_e.Z)({},mn),{},(0,ie.Z)({},Yn,pn)))}return}Cn(Pn,rn(mn))&&Wn.push(mn)}),Wn},[Xt,_n,qn,Pn,zt])},Ht=Ge(17115),tn=Ge(11592),It=["children","value"],Dt=["children"];function qt(Xt){var zt=Xt,Pn=zt.key,_n=zt.props,qn=_n.children,Yn=_n.value,$t=(0,ge.Z)(_n,It);return(0,_e.Z)({key:Pn,value:Yn!==void 0?Yn:Pn,children:qn},$t)}function sn(Xt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,tn.Z)(Xt).map(function(Pn,_n){if(!ye.isValidElement(Pn)||!Pn.type)return null;var qn=Pn,Yn=qn.type.isSelectOptGroup,$t=qn.key,jn=qn.props,Wn=jn.children,or=(0,ge.Z)(jn,Dt);return zt||!Yn?qt(Pn):(0,_e.Z)((0,_e.Z)({key:"__RC_SELECT_GRP__".concat($t===null?_n:$t,"__"),label:$t},or),{},{options:sn(Wn)})}).filter(function(Pn){return Pn})}function xn(Xt,zt,Pn,_n,qn){return ye.useMemo(function(){var Yn=Xt,$t=!Xt;$t&&(Yn=sn(zt));var jn=new Map,Wn=new Map,or=function(rn,mn,En){En&&typeof En=="string"&&rn.set(mn[En],mn)};function nn(Cn){for(var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn=0;mn<Cn.length;mn+=1){var En=Cn[mn];!En[Pn.options]||rn?(jn.set(En[Pn.value],En),or(Wn,En,Pn.label),or(Wn,En,_n),or(Wn,En,qn)):nn(En[Pn.options],!0)}}return nn(Yn),{options:Yn,valueOptions:jn,labelOptions:Wn}},[Xt,zt,Pn,_n,qn])}function Ln(Xt){var zt=ye.useRef();zt.current=Xt;var Pn=ye.useCallback(function(){return zt.current.apply(zt,arguments)},[]);return Pn}var Zn=function(){return null};Zn.isSelectOptGroup=!0;var Xn=Zn,dr=function(){return null};dr.isSelectOption=!0;var fr=dr,pr=Ge(80547),Cr=Ge(2738),Yr=Ge(24916),ii=ye.createContext(null),jr=ii;function fi(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Lr=["disabled","title","children","style","className"];function ot(Xt){return typeof Xt=="string"||typeof Xt=="number"}var oi=function(zt,Pn){var _n=pe(),qn=_n.prefixCls,Yn=_n.id,$t=_n.open,jn=_n.multiple,Wn=_n.mode,or=_n.searchValue,nn=_n.toggleOpen,Cn=_n.notFoundContent,rn=_n.onPopupScroll,mn=ye.useContext(jr),En=mn.flattenOptions,pn=mn.onActiveValue,kn=mn.defaultActiveFirstOption,Mn=mn.onSelect,zn=mn.menuItemSelectedIcon,Dn=mn.rawValues,ar=mn.fieldNames,dn=mn.virtual,Or=mn.direction,Jr=mn.listHeight,Rr=mn.listItemHeight,vn="".concat(qn,"-item"),Jn=(0,pr.Z)(function(){return En},[$t,En],function(Ur,Gr){return Gr[0]&&Ur[1]!==Gr[1]}),lr=ye.useRef(null),vr=function(Gr){Gr.preventDefault()},Sr=function(Gr){lr.current&&lr.current.scrollTo(typeof Gr=="number"?{index:Gr}:Gr)},Kr=function(Gr){for(var Mi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Hi=Jn.length,cr=0;cr<Hi;cr+=1){var Lt=(Gr+cr*Mi+Hi)%Hi,Ii=Jn[Lt],_r=Ii.group,Ir=Ii.data;if(!_r&&!Ir.disabled)return Lt}return-1},ai=ye.useState(function(){return Kr(0)}),Br=(0,Ie.Z)(ai,2),br=Br[0],si=Br[1],Tn=function(Gr){var Mi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;si(Gr);var Hi={source:Mi?"keyboard":"mouse"},cr=Jn[Gr];if(!cr){pn(null,-1,Hi);return}pn(cr.value,Gr,Hi)};(0,ye.useEffect)(function(){Tn(kn!==!1?Kr(0):-1)},[Jn.length,or]);var Ri=ye.useCallback(function(Ur){return Dn.has(Ur)&&Wn!=="combobox"},[Wn,(0,vt.Z)(Dn).toString(),Dn.size]);(0,ye.useEffect)(function(){var Ur=setTimeout(function(){if(!jn&&$t&&Dn.size===1){var Mi=Array.from(Dn)[0],Hi=Jn.findIndex(function(cr){var Lt=cr.data;return Lt.value===Mi});Hi!==-1&&(Tn(Hi),Sr(Hi))}});if($t){var Gr;(Gr=lr.current)===null||Gr===void 0||Gr.scrollTo(void 0)}return function(){return clearTimeout(Ur)}},[$t,or,En.length]);var On=function(Gr){Gr!==void 0&&Mn(Gr,{selected:!Dn.has(Gr)}),jn||nn(!1)};if(ye.useImperativeHandle(Pn,function(){return{onKeyDown:function(Gr){var Mi=Gr.which,Hi=Gr.ctrlKey;switch(Mi){case z.Z.N:case z.Z.P:case z.Z.UP:case z.Z.DOWN:{var cr=0;if(Mi===z.Z.UP?cr=-1:Mi===z.Z.DOWN?cr=1:fi()&&Hi&&(Mi===z.Z.N?cr=1:Mi===z.Z.P&&(cr=-1)),cr!==0){var Lt=Kr(br+cr,cr);Sr(Lt),Tn(Lt,!0)}break}case z.Z.ENTER:{var Ii=Jn[br];Ii&&!Ii.data.disabled?On(Ii.value):On(void 0),$t&&Gr.preventDefault();break}case z.Z.ESC:nn(!1),$t&&Gr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Gr){Sr(Gr)}}}),Jn.length===0)return ye.createElement("div",{role:"listbox",id:"".concat(Yn,"_list"),className:"".concat(vn,"-empty"),onMouseDown:vr},Cn);var pi=Object.keys(ar).map(function(Ur){return ar[Ur]}),xo=function(Gr){return Gr.label};function zi(Ur,Gr){var Mi=Ur.group;return{role:Mi?"presentation":"option",id:"".concat(Yn,"_list_").concat(Gr)}}var Lo=function(Gr){var Mi=Jn[Gr];if(!Mi)return null;var Hi=Mi.data||{},cr=Hi.value,Lt=Mi.group,Ii=(0,Ae.Z)(Hi,!0),_r=xo(Mi);return Mi?ye.createElement("div",(0,rt.Z)({"aria-label":typeof _r=="string"&&!Lt?_r:null},Ii,{key:Gr},zi(Mi,Gr),{"aria-selected":Ri(cr)}),cr):null},yo={role:"listbox",id:"".concat(Yn,"_list")};return ye.createElement(ye.Fragment,null,dn&&ye.createElement("div",(0,rt.Z)({},yo,{style:{height:0,width:0,overflow:"hidden"}}),Lo(br-1),Lo(br),Lo(br+1)),ye.createElement(Yr.Z,{itemKey:"key",ref:lr,data:Jn,height:Jr,itemHeight:Rr,fullHeight:!1,onMouseDown:vr,onScroll:rn,virtual:dn,direction:Or,innerProps:dn?null:yo},function(Ur,Gr){var Mi,Hi=Ur.group,cr=Ur.groupOption,Lt=Ur.data,Ii=Ur.label,_r=Ur.value,Ir=Lt.key;if(Hi){var _i,Ji=(_i=Lt.title)!==null&&_i!==void 0?_i:ot(Ii)?Ii.toString():void 0;return ye.createElement("div",{className:ve()(vn,"".concat(vn,"-group")),title:Ji},Ii!==void 0?Ii:Ir)}var zr=Lt.disabled,Vr=Lt.title,Ci=Lt.children,mi=Lt.style,Vi=Lt.className,io=(0,ge.Z)(Lt,Lr),Hr=(0,Cr.Z)(io,pi),Er=Ri(_r),Kn="".concat(vn,"-option"),li=ve()(vn,Kn,Vi,(Mi={},(0,ie.Z)(Mi,"".concat(Kn,"-grouped"),cr),(0,ie.Z)(Mi,"".concat(Kn,"-active"),br===Gr&&!zr),(0,ie.Z)(Mi,"".concat(Kn,"-disabled"),zr),(0,ie.Z)(Mi,"".concat(Kn,"-selected"),Er),Mi)),Qi=xo(Ur),zo=!zn||typeof zn=="function"||Er,Mo=typeof Qi=="number"?Qi:Qi||_r,Uo=ot(Mo)?Mo.toString():void 0;return Vr!==void 0&&(Uo=Vr),ye.createElement("div",(0,rt.Z)({},(0,Ae.Z)(Hr),dn?{}:zi(Ur,Gr),{"aria-selected":Er,className:li,title:Uo,onMouseMove:function(){br===Gr||zr||Tn(Gr)},onClick:function(){zr||On(_r)},style:mi}),ye.createElement("div",{className:"".concat(Kn,"-content")},Mo),ye.isValidElement(zn)||Er,zo&&ye.createElement(re,{className:"".concat(vn,"-option-state"),customizeIcon:zn,customizeIconProps:{isSelected:Er}},Er?"\u2713":null))}))},yi=ye.forwardRef(oi);yi.displayName="OptionList";var Pi=yi;function sr(Xt){var zt=Xt.mode,Pn=Xt.options,_n=Xt.children,qn=Xt.backfill,Yn=Xt.allowClear,$t=Xt.placeholder,jn=Xt.getInputElement,Wn=Xt.showSearch,or=Xt.onSearch,nn=Xt.defaultOpen,Cn=Xt.autoFocus,rn=Xt.labelInValue,mn=Xt.value,En=Xt.inputValue,pn=Xt.optionLabelProp,kn=isMultiple(zt),Mn=Wn!==void 0?Wn:kn||zt==="combobox",zn=Pn||convertChildrenToData(_n);if(warning(zt!=="tags"||zn.every(function(Or){return!Or.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),zt==="tags"||zt==="combobox"){var Dn=zn.some(function(Or){return Or.options?Or.options.some(function(Jr){return typeof("value"in Jr?Jr.value:Jr.key)=="number"}):typeof("value"in Or?Or.value:Or.key)=="number"});warning(!Dn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(zt!=="combobox"||!pn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(zt==="combobox"||!qn,"`backfill` only works with `combobox` mode."),warning(zt==="combobox"||!jn,"`getInputElement` only work with `combobox` mode."),noteOnce(zt!=="combobox"||!jn||!Yn||!$t,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),or&&!Mn&&zt!=="combobox"&&zt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!nn||Cn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),mn!=null){var ar=toArray(mn);warning(!rn||ar.every(function(Or){return _typeof(Or)==="object"&&("key"in Or||"value"in Or)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!kn||Array.isArray(mn),"`value` should be array when `mode` is `multiple` or `tags`")}if(_n){var dn=null;toNodeArray(_n).some(function(Or){if(!React.isValidElement(Or)||!Or.type)return!1;var Jr=Or,Rr=Jr.type;if(Rr.isSelectOption)return!1;if(Rr.isSelectOptGroup){var vn=toNodeArray(Or.props.children).every(function(Jn){return!React.isValidElement(Jn)||!Or.type||Jn.type.isSelectOption?!0:(dn=Jn.type,!1)});return!vn}return dn=Rr,!0}),dn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(dn.displayName||dn.name||dn,"`.")),warning(En===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ar(Xt,zt){if(Xt){var Pn=function _n(qn){for(var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=0;$t<qn.length;$t++){var jn=qn[$t];if(jn[zt==null?void 0:zt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Yn&&Array.isArray(jn[zt==null?void 0:zt.options])&&_n(jn[zt==null?void 0:zt.options],!0))break}};Pn(Xt)}}var Fr=null,Si=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Nr=["inputValue"];function hn(Xt){return!Xt||(0,ce.Z)(Xt)!=="object"}var cn=ye.forwardRef(function(Xt,zt){var Pn=Xt.id,_n=Xt.mode,qn=Xt.prefixCls,Yn=qn===void 0?"rc-select":qn,$t=Xt.backfill,jn=Xt.fieldNames,Wn=Xt.inputValue,or=Xt.searchValue,nn=Xt.onSearch,Cn=Xt.autoClearSearchValue,rn=Cn===void 0?!0:Cn,mn=Xt.onSelect,En=Xt.onDeselect,pn=Xt.dropdownMatchSelectWidth,kn=pn===void 0?!0:pn,Mn=Xt.filterOption,zn=Xt.filterSort,Dn=Xt.optionFilterProp,ar=Xt.optionLabelProp,dn=Xt.options,Or=Xt.children,Jr=Xt.defaultActiveFirstOption,Rr=Xt.menuItemSelectedIcon,vn=Xt.virtual,Jn=Xt.direction,lr=Xt.listHeight,vr=lr===void 0?200:lr,Sr=Xt.listItemHeight,Kr=Sr===void 0?20:Sr,ai=Xt.value,Br=Xt.defaultValue,br=Xt.labelInValue,si=Xt.onChange,Tn=(0,ge.Z)(Xt,Si),Ri=(0,Ht.ZP)(Pn),On=yt(_n),pi=!!(!dn&&Or),xo=ye.useMemo(function(){return Mn===void 0&&_n==="combobox"?!1:Mn},[Mn,_n]),zi=ye.useMemo(function(){return Oe(jn,pi)},[JSON.stringify(jn),pi]),Lo=(0,Pe.Z)("",{value:or!==void 0?or:Wn,postState:function(lo){return lo||""}}),yo=(0,Ie.Z)(Lo,2),Ur=yo[0],Gr=yo[1],Mi=xn(dn,Or,zi,Dn,ar),Hi=Mi.valueOptions,cr=Mi.labelOptions,Lt=Mi.options,Ii=ye.useCallback(function(bi){var lo=Qe(bi);return lo.map(function(ao){var Tr,Ba,Ra,Cs,Il;if(hn(ao))Tr=ao;else{var ql;Ra=ao.key,Ba=ao.label,Tr=(ql=ao.value)!==null&&ql!==void 0?ql:Ra}var yr=Hi.get(Tr);if(yr){var aa;if(Ba===void 0&&(Ba=yr==null?void 0:yr[ar||zi.label]),Ra===void 0&&(Ra=(aa=yr==null?void 0:yr.key)!==null&&aa!==void 0?aa:Tr),Cs=yr==null?void 0:yr.disabled,Il=yr==null?void 0:yr.title,0)var Wa}return{label:Ba,value:Tr,key:Ra,disabled:Cs,title:Il}})},[zi,ar,Hi]),_r=(0,Pe.Z)(Br,{value:ai}),Ir=(0,Ie.Z)(_r,2),_i=Ir[0],Ji=Ir[1],zr=ye.useMemo(function(){var bi,lo=Ii(_i);return _n==="combobox"&&ut((bi=lo[0])===null||bi===void 0?void 0:bi.value)?[]:lo},[_i,Ii,_n]),Vr=Jt(zr,Hi),Ci=(0,Ie.Z)(Vr,2),mi=Ci[0],Vi=Ci[1],io=ye.useMemo(function(){if(!_n&&mi.length===1){var bi=mi[0];if(bi.value===null&&(bi.label===null||bi.label===void 0))return[]}return mi.map(function(lo){var ao;return(0,_e.Z)((0,_e.Z)({},lo),{},{label:(ao=lo.label)!==null&&ao!==void 0?ao:lo.value})})},[_n,mi]),Hr=ye.useMemo(function(){return new Set(mi.map(function(bi){return bi.value}))},[mi]);ye.useEffect(function(){if(_n==="combobox"){var bi,lo=(bi=mi[0])===null||bi===void 0?void 0:bi.value;Gr(at(lo)?String(lo):"")}},[mi]);var Er=Ln(function(bi,lo){var ao,Tr=lo!=null?lo:bi;return ao={},(0,ie.Z)(ao,zi.value,bi),(0,ie.Z)(ao,zi.label,Tr),ao}),Kn=ye.useMemo(function(){if(_n!=="tags")return Lt;var bi=(0,vt.Z)(Lt),lo=function(Tr){return Hi.has(Tr)};return(0,vt.Z)(mi).sort(function(ao,Tr){return ao.value<Tr.value?-1:1}).forEach(function(ao){var Tr=ao.value;lo(Tr)||bi.push(Er(Tr,ao.label))}),bi},[Er,Lt,Hi,mi,_n]),li=Kt(Kn,zi,Ur,xo,Dn),Qi=ye.useMemo(function(){return _n!=="tags"||!Ur||li.some(function(bi){return bi[Dn||"value"]===Ur})||li.some(function(bi){return bi[zi.value]===Ur})?li:[Er(Ur)].concat((0,vt.Z)(li))},[Er,Dn,_n,li,Ur,zi]),zo=ye.useMemo(function(){return zn?(0,vt.Z)(Qi).sort(function(bi,lo){return zn(bi,lo)}):Qi},[Qi,zn]),Mo=ye.useMemo(function(){return Ue(zo,{fieldNames:zi,childrenAsData:pi})},[zo,zi,pi]),Uo=function(lo){var ao=Ii(lo);if(Ji(ao),si&&(ao.length!==mi.length||ao.some(function(Ra,Cs){var Il;return((Il=mi[Cs])===null||Il===void 0?void 0:Il.value)!==(Ra==null?void 0:Ra.value)}))){var Tr=br?ao:ao.map(function(Ra){return Ra.value}),Ba=ao.map(function(Ra){return He(Vi(Ra.value))});si(On?Tr:Tr[0],On?Ba:Ba[0])}},ca=ye.useState(null),Jo=(0,Ie.Z)(ca,2),qa=Jo[0],La=Jo[1],es=ye.useState(0),wn=(0,Ie.Z)(es,2),ma=wn[0],Ql=wn[1],el=Jr!==void 0?Jr:_n!=="combobox",So=ye.useCallback(function(bi,lo){var ao=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Tr=ao.source,Ba=Tr===void 0?"keyboard":Tr;Ql(lo),$t&&_n==="combobox"&&bi!==null&&Ba==="keyboard"&&La(String(bi))},[$t,_n]),ro=function(lo,ao,Tr){var Ba=function(){var Fl,Di=Vi(lo);return[br?{label:Di==null?void 0:Di[zi.label],value:lo,key:(Fl=Di==null?void 0:Di.key)!==null&&Fl!==void 0?Fl:lo}:lo,He(Di)]};if(ao&&mn){var Ra=Ba(),Cs=(0,Ie.Z)(Ra,2),Il=Cs[0],ql=Cs[1];mn(Il,ql)}else if(!ao&&En&&Tr!=="clear"){var yr=Ba(),aa=(0,Ie.Z)(yr,2),Wa=aa[0],Pl=aa[1];En(Wa,Pl)}},va=Ln(function(bi,lo){var ao,Tr=On?lo.selected:!0;Tr?ao=On?[].concat((0,vt.Z)(mi),[bi]):[bi]:ao=mi.filter(function(Ba){return Ba.value!==bi}),Uo(ao),ro(bi,Tr),_n==="combobox"?La(""):(!yt||rn)&&(Gr(""),La(""))}),Io=function(lo,ao){Uo(lo);var Tr=ao.type,Ba=ao.values;(Tr==="remove"||Tr==="clear")&&Ba.forEach(function(Ra){ro(Ra.value,!1,Tr)})},qi=function(lo,ao){if(Gr(lo),La(null),ao.source==="submit"){var Tr=(lo||"").trim();if(Tr){var Ba=Array.from(new Set([].concat((0,vt.Z)(Hr),[Tr])));Uo(Ba),ro(Tr,!0),Gr("")}return}ao.source!=="blur"&&(_n==="combobox"&&Uo(lo),nn==null||nn(lo))},No=function(lo){var ao=lo;_n!=="tags"&&(ao=lo.map(function(Ba){var Ra=cr.get(Ba);return Ra==null?void 0:Ra.value}).filter(function(Ba){return Ba!==void 0}));var Tr=Array.from(new Set([].concat((0,vt.Z)(Hr),(0,vt.Z)(ao))));Uo(Tr),Tr.forEach(function(Ba){ro(Ba,!0)})},xs=ye.useMemo(function(){var bi=vn!==!1&&kn!==!1;return(0,_e.Z)((0,_e.Z)({},Mi),{},{flattenOptions:Mo,onActiveValue:So,defaultActiveFirstOption:el,onSelect:va,menuItemSelectedIcon:Rr,rawValues:Hr,fieldNames:zi,virtual:bi,direction:Jn,listHeight:vr,listItemHeight:Kr,childrenAsData:pi})},[Mi,Mo,So,el,va,Rr,Hr,zi,vn,kn,vr,Kr,pi]);return ye.createElement(jr.Provider,{value:xs},ye.createElement(Mt,(0,rt.Z)({},Tn,{id:Ri,prefixCls:Yn,ref:zt,omitDomProps:Nr,mode:_n,displayValues:io,onDisplayValuesChange:Io,direction:Jn,searchValue:Ur,onSearch:qi,autoClearSearchValue:rn,onSearchSplit:No,dropdownMatchSelectWidth:kn,OptionList:Pi,emptyOptions:!Mo.length,activeValue:qa,activeDescendantId:"".concat(Ri,"_list_").concat(ma)})))}),Ot=cn;Ot.Option=fr,Ot.OptGroup=Xn;var gn=Ot,Nn=gn},9296:function(bn,an,Ge){"use strict";Ge.r(an),Ge.d(an,{ResizableTextArea:function(){return Be},default:function(){return ut}});var rt=Ge(96663),vt=Ge(44127),ie=Ge(90493),_e=Ge(20135),Ie=Ge(72071),ge=Ge(6620),ce=Ge(19127),Pe=Ge(92310),Ee=Ge.n(Pe),ye=Ge(93681),Me=Ge(5643),ve=Ge(18929),xe=Ge(59301),fe=Ge(29301),z=Ge(34280),ee=Ge(16089),ae=`
|
|
|
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;
|
|
|
`,re=["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"],le={},ue;function pe(ht){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et=ht.getAttribute("id")||ht.getAttribute("data-reactid")||ht.getAttribute("name");if(Ct&&le[et])return le[et];var it=window.getComputedStyle(ht),St=it.getPropertyValue("box-sizing")||it.getPropertyValue("-moz-box-sizing")||it.getPropertyValue("-webkit-box-sizing"),bt=parseFloat(it.getPropertyValue("padding-bottom"))+parseFloat(it.getPropertyValue("padding-top")),Pt=parseFloat(it.getPropertyValue("border-bottom-width"))+parseFloat(it.getPropertyValue("border-top-width")),gt=re.map(function(mt){return"".concat(mt,":").concat(it.getPropertyValue(mt))}).join(";"),dt={sizingStyle:gt,paddingSize:bt,borderSize:Pt,boxSizing:St};return Ct&&et&&(le[et]=dt),dt}function Te(ht){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,it=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ue||(ue=document.createElement("textarea"),ue.setAttribute("tab-index","-1"),ue.setAttribute("aria-hidden","true"),document.body.appendChild(ue)),ht.getAttribute("wrap")?ue.setAttribute("wrap",ht.getAttribute("wrap")):ue.removeAttribute("wrap");var St=pe(ht,Ct),bt=St.paddingSize,Pt=St.borderSize,gt=St.boxSizing,dt=St.sizingStyle;ue.setAttribute("style","".concat(dt,";").concat(ae)),ue.value=ht.value||ht.placeholder||"";var mt=void 0,kt=void 0,Et,Ut=ue.scrollHeight;if(gt==="border-box"?Ut+=Pt:gt==="content-box"&&(Ut-=bt),et!==null||it!==null){ue.value=" ";var wt=ue.scrollHeight-bt;et!==null&&(mt=wt*et,gt==="border-box"&&(mt=mt+bt+Pt),Ut=Math.max(mt,Ut)),it!==null&&(kt=wt*it,gt==="border-box"&&(kt=kt+bt+Pt),Et=Ut>kt?"":"hidden",Ut=Math.min(kt,Ut))}var pt={height:Ut,overflowY:Et,resize:"none"};return mt&&(pt.minHeight=mt),kt&&(pt.maxHeight=kt),pt}var Ce=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Fe=0,Ae=1,je=2,Ne=xe.forwardRef(function(ht,Ct){var et=ht,it=et.prefixCls,St=et.onPressEnter,bt=et.defaultValue,Pt=et.value,gt=et.autoSize,dt=et.onResize,mt=et.className,kt=et.style,Et=et.disabled,Ut=et.onChange,wt=et.onInternalAutoSize,pt=(0,ge.Z)(et,Ce),tt=(0,ve.Z)(bt,{value:Pt,postState:function(Xn){return Xn!=null?Xn:""}}),Ze=(0,Ie.Z)(tt,2),we=Ze[0],be=Ze[1],Ke=function(Xn){be(Xn.target.value),Ut==null||Ut(Xn)},Xe=xe.useRef();xe.useImperativeHandle(Ct,function(){return{textArea:Xe.current}});var Oe=xe.useMemo(function(){return gt&&(0,_e.Z)(gt)==="object"?[gt.minRows,gt.maxRows]:[]},[gt]),Ue=(0,Ie.Z)(Oe,2),He=Ue[0],Ve=Ue[1],Je=!!gt,ct=function(){try{if(document.activeElement===Xe.current){var Xn=Xe.current,dr=Xn.selectionStart,fr=Xn.selectionEnd,pr=Xn.scrollTop;Xe.current.setSelectionRange(dr,fr),Xe.current.scrollTop=pr}}catch(Cr){}},yt=xe.useState(je),ft=(0,Ie.Z)(yt,2),Mt=ft[0],Jt=ft[1],Vt=xe.useState(),Kt=(0,Ie.Z)(Vt,2),Ht=Kt[0],tn=Kt[1],It=function(){Jt(Fe)};(0,z.Z)(function(){Je&&It()},[Pt,He,Ve,Je]),(0,z.Z)(function(){if(Mt===Fe)Jt(Ae);else if(Mt===Ae){var Zn=Te(Xe.current,!1,He,Ve);Jt(je),tn(Zn)}else ct()},[Mt]);var Dt=xe.useRef(),qt=function(){ee.Z.cancel(Dt.current)},sn=function(Xn){Mt===je&&(dt==null||dt(Xn),gt&&(qt(),Dt.current=(0,ee.Z)(function(){It()})))};xe.useEffect(function(){return qt},[]);var xn=Je?Ht:null,Ln=(0,vt.Z)((0,vt.Z)({},kt),xn);return(Mt===Fe||Mt===Ae)&&(Ln.overflowY="hidden",Ln.overflowX="hidden"),xe.createElement(fe.Z,{onResize:sn,disabled:!(gt||dt)},xe.createElement("textarea",(0,rt.Z)({},pt,{ref:Xe,style:Ln,className:Ee()(it,mt,(0,ie.Z)({},"".concat(it,"-disabled"),Et)),disabled:Et,value:we,onChange:Ke})))}),Be=Ne,ze=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Qe(ht,Ct){return(0,ce.Z)(ht||"").slice(0,Ct).join("")}function $e(ht,Ct,et,it){var St=et;return ht?St=Qe(et,it):(0,ce.Z)(Ct||"").length<et.length&&(0,ce.Z)(et||"").length>it&&(St=Ct),St}var Ye=xe.forwardRef(function(ht,Ct){var et,it=ht.defaultValue,St=ht.value,bt=ht.onFocus,Pt=ht.onBlur,gt=ht.onChange,dt=ht.allowClear,mt=ht.maxLength,kt=ht.onCompositionStart,Et=ht.onCompositionEnd,Ut=ht.suffix,wt=ht.prefixCls,pt=wt===void 0?"rc-textarea":wt,tt=ht.classes,Ze=ht.showCount,we=ht.className,be=ht.style,Ke=ht.disabled,Xe=ht.hidden,Oe=ht.classNames,Ue=ht.styles,He=ht.onResize,Ve=(0,ge.Z)(ht,ze),Je=(0,ve.Z)(it,{value:St,defaultValue:it}),ct=(0,Ie.Z)(Je,2),yt=ct[0],ft=ct[1],Mt=(0,xe.useRef)(null),Jt=xe.useState(!1),Vt=(0,Ie.Z)(Jt,2),Kt=Vt[0],Ht=Vt[1],tn=xe.useState(!1),It=(0,Ie.Z)(tn,2),Dt=It[0],qt=It[1],sn=xe.useRef(),xn=xe.useRef(0),Ln=xe.useState(null),Zn=(0,Ie.Z)(Ln,2),Xn=Zn[0],dr=Zn[1],fr=function(){var hn;(hn=Mt.current)===null||hn===void 0||hn.textArea.focus()};(0,xe.useImperativeHandle)(Ct,function(){return{resizableTextArea:Mt.current,focus:fr,blur:function(){var hn;(hn=Mt.current)===null||hn===void 0||hn.textArea.blur()}}}),(0,xe.useEffect)(function(){Ht(function(Nr){return!Ke&&Nr})},[Ke]);var pr=Number(mt)>0,Cr=function(hn){qt(!0),sn.current=yt,xn.current=hn.currentTarget.selectionStart,kt==null||kt(hn)},Yr=function(hn){qt(!1);var cn=hn.currentTarget.value;if(pr){var Ot,gn=xn.current>=mt+1||xn.current===((Ot=sn.current)===null||Ot===void 0?void 0:Ot.length);cn=$e(gn,sn.current,cn,mt)}cn!==yt&&(ft(cn),(0,Me.rJ)(hn.currentTarget,hn,gt,cn)),Et==null||Et(hn)},ii=function(hn){var cn=hn.target.value;if(!Dt&&pr){var Ot=hn.target.selectionStart>=mt+1||hn.target.selectionStart===cn.length||!hn.target.selectionStart;cn=$e(Ot,yt,cn,mt)}ft(cn),(0,Me.rJ)(hn.currentTarget,hn,gt,cn)},jr=function(hn){var cn=Ve.onPressEnter,Ot=Ve.onKeyDown;hn.key==="Enter"&&cn&&cn(hn),Ot==null||Ot(hn)},fi=function(hn){Ht(!0),bt==null||bt(hn)},Lr=function(hn){Ht(!1),Pt==null||Pt(hn)},ot=function(hn){var cn;ft(""),fr(),(0,Me.rJ)((cn=Mt.current)===null||cn===void 0?void 0:cn.textArea,hn,gt)},oi=(0,Me.D7)(yt);!Dt&&pr&&St==null&&(oi=Qe(oi,mt));var yi=Ut,Pi;if(Ze){var sr=(0,ce.Z)(oi).length;(0,_e.Z)(Ze)==="object"?Pi=Ze.formatter({value:oi,count:sr,maxLength:mt}):Pi="".concat(sr).concat(pr?" / ".concat(mt):""),yi=xe.createElement(xe.Fragment,null,yi,xe.createElement("span",{className:Ee()("".concat(pt,"-data-count"),Oe==null?void 0:Oe.count),style:Ue==null?void 0:Ue.count},Pi))}var Ar=function(hn){var cn;He==null||He(hn),(cn=Mt.current)!==null&&cn!==void 0&&cn.textArea.style.height&&dr(!0)},Fr=!Ve.autoSize&&!Ze&&!dt,Si=xe.createElement(ye.BaseInput,{value:oi,allowClear:dt,handleReset:ot,suffix:yi,prefixCls:pt,classes:{affixWrapper:Ee()(tt==null?void 0:tt.affixWrapper,(et={},(0,ie.Z)(et,"".concat(pt,"-show-count"),Ze),(0,ie.Z)(et,"".concat(pt,"-textarea-allow-clear"),dt),et))},disabled:Ke,focused:Kt,className:we,style:(0,vt.Z)((0,vt.Z)({},be),Xn&&!Fr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Pi=="string"?Pi:void 0}},hidden:Xe,inputElement:xe.createElement(Be,(0,rt.Z)({},Ve,{onKeyDown:jr,onChange:ii,onFocus:fi,onBlur:Lr,onCompositionStart:Cr,onCompositionEnd:Yr,className:Oe==null?void 0:Oe.textarea,style:(0,vt.Z)((0,vt.Z)({},Ue==null?void 0:Ue.textarea),{},{resize:be==null?void 0:be.resize}),disabled:Ke,prefixCls:pt,onResize:Ar,ref:Mt}))});return Si}),at=Ye,ut=at},39417:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Ae}});var rt=Ge(96663),vt=Ge(90493),ie=Ge(6620),_e=Ge(44127),Ie=Ge(52884),ge=Ge(95727),ce=Ge(89866),Pe=Ge(65711),Ee=Ge(85745),ye=Ge(92310),Me=Ge.n(ye),ve=Ge(26112),xe=Ge(59301),fe=Ge(39378),z=function(Ne){for(var Be=Ne.prefixCls,ze=Ne.level,Qe=Ne.isStart,$e=Ne.isEnd,Ye="".concat(Be,"-indent-unit"),at=[],ut=0;ut<ze;ut+=1){var ht;at.push(xe.createElement("span",{key:ut,className:Me()(Ye,(ht={},(0,vt.Z)(ht,"".concat(Ye,"-start"),Qe[ut]),(0,vt.Z)(ht,"".concat(Ye,"-end"),$e[ut]),ht))}))}return xe.createElement("span",{"aria-hidden":"true",className:"".concat(Be,"-indent")},at)},ee=xe.memo(z),ae=Ge(67841),re=Ge(71430),le=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ue="open",pe="close",Te="---",Ce=function(je){(0,Pe.Z)(Be,je);var Ne=(0,Ee.Z)(Be);function Be(){var ze;(0,Ie.Z)(this,Be);for(var Qe=arguments.length,$e=new Array(Qe),Ye=0;Ye<Qe;Ye++)$e[Ye]=arguments[Ye];return ze=Ne.call.apply(Ne,[this].concat($e)),ze.state={dragNodeHighlight:!1},ze.selectHandle=void 0,ze.cacheIndent=void 0,ze.onSelectorClick=function(at){var ut=ze.props.context.onNodeClick;ut(at,(0,re.F)(ze.props)),ze.isSelectable()?ze.onSelect(at):ze.onCheck(at)},ze.onSelectorDoubleClick=function(at){var ut=ze.props.context.onNodeDoubleClick;ut(at,(0,re.F)(ze.props))},ze.onSelect=function(at){if(!ze.isDisabled()){var ut=ze.props.context.onNodeSelect;ut(at,(0,re.F)(ze.props))}},ze.onCheck=function(at){if(!ze.isDisabled()){var ut=ze.props,ht=ut.disableCheckbox,Ct=ut.checked,et=ze.props.context.onNodeCheck;if(!(!ze.isCheckable()||ht)){var it=!Ct;et(at,(0,re.F)(ze.props),it)}}},ze.onMouseEnter=function(at){var ut=ze.props.context.onNodeMouseEnter;ut(at,(0,re.F)(ze.props))},ze.onMouseLeave=function(at){var ut=ze.props.context.onNodeMouseLeave;ut(at,(0,re.F)(ze.props))},ze.onContextMenu=function(at){var ut=ze.props.context.onNodeContextMenu;ut(at,(0,re.F)(ze.props))},ze.onDragStart=function(at){var ut=ze.props.context.onNodeDragStart;at.stopPropagation(),ze.setState({dragNodeHighlight:!0}),ut(at,(0,ce.Z)(ze));try{at.dataTransfer.setData("text/plain","")}catch(ht){}},ze.onDragEnter=function(at){var ut=ze.props.context.onNodeDragEnter;at.preventDefault(),at.stopPropagation(),ut(at,(0,ce.Z)(ze))},ze.onDragOver=function(at){var ut=ze.props.context.onNodeDragOver;at.preventDefault(),at.stopPropagation(),ut(at,(0,ce.Z)(ze))},ze.onDragLeave=function(at){var ut=ze.props.context.onNodeDragLeave;at.stopPropagation(),ut(at,(0,ce.Z)(ze))},ze.onDragEnd=function(at){var ut=ze.props.context.onNodeDragEnd;at.stopPropagation(),ze.setState({dragNodeHighlight:!1}),ut(at,(0,ce.Z)(ze))},ze.onDrop=function(at){var ut=ze.props.context.onNodeDrop;at.preventDefault(),at.stopPropagation(),ze.setState({dragNodeHighlight:!1}),ut(at,(0,ce.Z)(ze))},ze.onExpand=function(at){var ut=ze.props,ht=ut.loading,Ct=ut.context.onNodeExpand;ht||Ct(at,(0,re.F)(ze.props))},ze.setSelectHandle=function(at){ze.selectHandle=at},ze.getNodeState=function(){var at=ze.props.expanded;return ze.isLeaf()?null:at?ue:pe},ze.hasChildren=function(){var at=ze.props.eventKey,ut=ze.props.context.keyEntities,ht=(0,ae.Z)(ut,at)||{},Ct=ht.children;return!!(Ct||[]).length},ze.isLeaf=function(){var at=ze.props,ut=at.isLeaf,ht=at.loaded,Ct=ze.props.context.loadData,et=ze.hasChildren();return ut===!1?!1:ut||!Ct&&!et||Ct&&ht&&!et},ze.isDisabled=function(){var at=ze.props.disabled,ut=ze.props.context.disabled;return!!(ut||at)},ze.isCheckable=function(){var at=ze.props.checkable,ut=ze.props.context.checkable;return!ut||at===!1?!1:ut},ze.syncLoadData=function(at){var ut=at.expanded,ht=at.loading,Ct=at.loaded,et=ze.props.context,it=et.loadData,St=et.onNodeLoad;ht||it&&ut&&!ze.isLeaf()&&!ze.hasChildren()&&!Ct&&St((0,re.F)(ze.props))},ze.isDraggable=function(){var at=ze.props,ut=at.data,ht=at.context.draggable;return!!(ht&&(!ht.nodeDraggable||ht.nodeDraggable(ut)))},ze.renderDragHandler=function(){var at=ze.props.context,ut=at.draggable,ht=at.prefixCls;return ut!=null&&ut.icon?xe.createElement("span",{className:"".concat(ht,"-draggable-icon")},ut.icon):null},ze.renderSwitcherIconDom=function(at){var ut=ze.props.switcherIcon,ht=ze.props.context.switcherIcon,Ct=ut||ht;return typeof Ct=="function"?Ct((0,_e.Z)((0,_e.Z)({},ze.props),{},{isLeaf:at})):Ct},ze.renderSwitcher=function(){var at=ze.props.expanded,ut=ze.props.context.prefixCls;if(ze.isLeaf()){var ht=ze.renderSwitcherIconDom(!0);return ht!==!1?xe.createElement("span",{className:Me()("".concat(ut,"-switcher"),"".concat(ut,"-switcher-noop"))},ht):null}var Ct=Me()("".concat(ut,"-switcher"),"".concat(ut,"-switcher_").concat(at?ue:pe)),et=ze.renderSwitcherIconDom(!1);return et!==!1?xe.createElement("span",{onClick:ze.onExpand,className:Ct},et):null},ze.renderCheckbox=function(){var at=ze.props,ut=at.checked,ht=at.halfChecked,Ct=at.disableCheckbox,et=ze.props.context.prefixCls,it=ze.isDisabled(),St=ze.isCheckable();if(!St)return null;var bt=typeof St!="boolean"?St:null;return xe.createElement("span",{className:Me()("".concat(et,"-checkbox"),ut&&"".concat(et,"-checkbox-checked"),!ut&&ht&&"".concat(et,"-checkbox-indeterminate"),(it||Ct)&&"".concat(et,"-checkbox-disabled")),onClick:ze.onCheck},bt)},ze.renderIcon=function(){var at=ze.props.loading,ut=ze.props.context.prefixCls;return xe.createElement("span",{className:Me()("".concat(ut,"-iconEle"),"".concat(ut,"-icon__").concat(ze.getNodeState()||"docu"),at&&"".concat(ut,"-icon_loading"))})},ze.renderSelector=function(){var at=ze.state.dragNodeHighlight,ut=ze.props,ht=ut.title,Ct=ht===void 0?Te:ht,et=ut.selected,it=ut.icon,St=ut.loading,bt=ut.data,Pt=ze.props.context,gt=Pt.prefixCls,dt=Pt.showIcon,mt=Pt.icon,kt=Pt.loadData,Et=Pt.titleRender,Ut=ze.isDisabled(),wt="".concat(gt,"-node-content-wrapper"),pt;if(dt){var tt=it||mt;pt=tt?xe.createElement("span",{className:Me()("".concat(gt,"-iconEle"),"".concat(gt,"-icon__customize"))},typeof tt=="function"?tt(ze.props):tt):ze.renderIcon()}else kt&&St&&(pt=ze.renderIcon());var Ze;typeof Ct=="function"?Ze=Ct(bt):Et?Ze=Et(bt):Ze=Ct;var we=xe.createElement("span",{className:"".concat(gt,"-title")},Ze);return xe.createElement("span",{ref:ze.setSelectHandle,title:typeof Ct=="string"?Ct:"",className:Me()("".concat(wt),"".concat(wt,"-").concat(ze.getNodeState()||"normal"),!Ut&&(et||at)&&"".concat(gt,"-node-selected")),onMouseEnter:ze.onMouseEnter,onMouseLeave:ze.onMouseLeave,onContextMenu:ze.onContextMenu,onClick:ze.onSelectorClick,onDoubleClick:ze.onSelectorDoubleClick},pt,we,ze.renderDropIndicator())},ze.renderDropIndicator=function(){var at=ze.props,ut=at.disabled,ht=at.eventKey,Ct=ze.props.context,et=Ct.draggable,it=Ct.dropLevelOffset,St=Ct.dropPosition,bt=Ct.prefixCls,Pt=Ct.indent,gt=Ct.dropIndicatorRender,dt=Ct.dragOverNodeKey,mt=Ct.direction,kt=!!et,Et=!ut&&kt&&dt===ht,Ut=Pt!=null?Pt:ze.cacheIndent;return ze.cacheIndent=Pt,Et?gt({dropPosition:St,dropLevelOffset:it,indent:Ut,prefixCls:bt,direction:mt}):null},ze}return(0,ge.Z)(Be,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Qe=this.props.selectable,$e=this.props.context.selectable;return typeof Qe=="boolean"?Qe:$e}},{key:"render",value:function(){var Qe,$e=this.props,Ye=$e.eventKey,at=$e.className,ut=$e.style,ht=$e.dragOver,Ct=$e.dragOverGapTop,et=$e.dragOverGapBottom,it=$e.isLeaf,St=$e.isStart,bt=$e.isEnd,Pt=$e.expanded,gt=$e.selected,dt=$e.checked,mt=$e.halfChecked,kt=$e.loading,Et=$e.domRef,Ut=$e.active,wt=$e.data,pt=$e.onMouseMove,tt=$e.selectable,Ze=(0,ie.Z)($e,le),we=this.props.context,be=we.prefixCls,Ke=we.filterTreeNode,Xe=we.keyEntities,Oe=we.dropContainerKey,Ue=we.dropTargetKey,He=we.draggingNodeKey,Ve=this.isDisabled(),Je=(0,ve.Z)(Ze,{aria:!0,data:!0}),ct=(0,ae.Z)(Xe,Ye)||{},yt=ct.level,ft=bt[bt.length-1],Mt=this.isDraggable(),Jt=!Ve&&Mt,Vt=He===Ye,Kt=tt!==void 0?{"aria-selected":!!tt}:void 0;return xe.createElement("div",(0,rt.Z)({ref:Et,className:Me()(at,"".concat(be,"-treenode"),(Qe={},(0,vt.Z)(Qe,"".concat(be,"-treenode-disabled"),Ve),(0,vt.Z)(Qe,"".concat(be,"-treenode-switcher-").concat(Pt?"open":"close"),!it),(0,vt.Z)(Qe,"".concat(be,"-treenode-checkbox-checked"),dt),(0,vt.Z)(Qe,"".concat(be,"-treenode-checkbox-indeterminate"),mt),(0,vt.Z)(Qe,"".concat(be,"-treenode-selected"),gt),(0,vt.Z)(Qe,"".concat(be,"-treenode-loading"),kt),(0,vt.Z)(Qe,"".concat(be,"-treenode-active"),Ut),(0,vt.Z)(Qe,"".concat(be,"-treenode-leaf-last"),ft),(0,vt.Z)(Qe,"".concat(be,"-treenode-draggable"),Mt),(0,vt.Z)(Qe,"dragging",Vt),(0,vt.Z)(Qe,"drop-target",Ue===Ye),(0,vt.Z)(Qe,"drop-container",Oe===Ye),(0,vt.Z)(Qe,"drag-over",!Ve&&ht),(0,vt.Z)(Qe,"drag-over-gap-top",!Ve&&Ct),(0,vt.Z)(Qe,"drag-over-gap-bottom",!Ve&&et),(0,vt.Z)(Qe,"filter-node",Ke&&Ke((0,re.F)(this.props))),Qe)),style:ut,draggable:Jt,"aria-grabbed":Vt,onDragStart:Jt?this.onDragStart:void 0,onDragEnter:Mt?this.onDragEnter:void 0,onDragOver:Mt?this.onDragOver:void 0,onDragLeave:Mt?this.onDragLeave:void 0,onDrop:Mt?this.onDrop:void 0,onDragEnd:Mt?this.onDragEnd:void 0,onMouseMove:pt},Kt,Je),xe.createElement(ee,{prefixCls:be,level:yt,isStart:St,isEnd:bt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Be}(xe.Component),Fe=function(Ne){return xe.createElement(fe.k.Consumer,null,function(Be){return xe.createElement(Ce,(0,rt.Z)({},Ne,{context:Be}))})};Fe.displayName="TreeNode",Fe.isTreeNode=1;var Ae=Fe},39378:function(bn,an,Ge){"use strict";Ge.d(an,{k:function(){return vt}});var rt=Ge(59301),vt=rt.createContext(null)},43858:function(bn,an,Ge){"use strict";Ge.d(an,{O:function(){return Ae.Z},Z:function(){return we}});var rt=Ge(96663),vt=Ge(90493),ie=Ge(20135),_e=Ge(44127),Ie=Ge(19127),ge=Ge(52884),ce=Ge(95727),Pe=Ge(89866),Ee=Ge(65711),ye=Ge(85745),Me=Ge(92310),ve=Ge.n(Me),xe=Ge(10228),fe=Ge(26112),z=Ge(48736),ee=Ge(59301),ae=Ge(39378);function re(be){var Ke=be.dropPosition,Xe=be.dropLevelOffset,Oe=be.indent,Ue={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ke){case-1:Ue.top=0,Ue.left=-Xe*Oe;break;case 1:Ue.bottom=0,Ue.left=-Xe*Oe;break;case 0:Ue.bottom=0,Ue.left=Oe;break}return ee.createElement("div",{style:Ue})}function le(be){if(be==null)throw new TypeError("Cannot destructure "+be)}var ue=Ge(72071),pe=Ge(6620),Te=Ge(34280),Ce=Ge(24916),Fe=Ge(77900),Ae=Ge(39417);function je(be,Ke){var Xe=ee.useState(!1),Oe=(0,ue.Z)(Xe,2),Ue=Oe[0],He=Oe[1];ee.useLayoutEffect(function(){if(Ue)return be(),function(){Ke()}},[Ue]),ee.useLayoutEffect(function(){return He(!0),function(){He(!1)}},[])}var Ne=Ge(71430),Be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ze=function(Ke,Xe){var Oe=Ke.className,Ue=Ke.style,He=Ke.motion,Ve=Ke.motionNodes,Je=Ke.motionType,ct=Ke.onMotionStart,yt=Ke.onMotionEnd,ft=Ke.active,Mt=Ke.treeNodeRequiredProps,Jt=(0,pe.Z)(Ke,Be),Vt=ee.useState(!0),Kt=(0,ue.Z)(Vt,2),Ht=Kt[0],tn=Kt[1],It=ee.useContext(ae.k),Dt=It.prefixCls,qt=Ve&&Je!=="hide";(0,Te.Z)(function(){Ve&&qt!==Ht&&tn(qt)},[Ve]);var sn=function(){Ve&&ct()},xn=ee.useRef(!1),Ln=function(){Ve&&!xn.current&&(xn.current=!0,yt())};je(sn,Ln);var Zn=function(dr){qt===dr&&Ln()};return Ve?ee.createElement(Fe.default,(0,rt.Z)({ref:Xe,visible:Ht},He,{motionAppear:Je==="show",onVisibleChanged:Zn}),function(Xn,dr){var fr=Xn.className,pr=Xn.style;return ee.createElement("div",{ref:dr,className:ve()("".concat(Dt,"-treenode-motion"),fr),style:pr},Ve.map(function(Cr){var Yr=(0,rt.Z)({},(le(Cr.data),Cr.data)),ii=Cr.title,jr=Cr.key,fi=Cr.isStart,Lr=Cr.isEnd;delete Yr.children;var ot=(0,Ne.H8)(jr,Mt);return ee.createElement(Ae.Z,(0,rt.Z)({},Yr,ot,{title:ii,active:ft,data:Cr.data,key:jr,isStart:fi,isEnd:Lr}))}))}):ee.createElement(Ae.Z,(0,rt.Z)({domRef:Xe,className:Oe,style:Ue},Jt,{active:ft}))};ze.displayName="MotionTreeNode";var Qe=ee.forwardRef(ze),$e=Qe;function Ye(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xe=be.length,Oe=Ke.length;if(Math.abs(Xe-Oe)!==1)return{add:!1,key:null};function Ue(He,Ve){var Je=new Map;He.forEach(function(yt){Je.set(yt,!0)});var ct=Ve.filter(function(yt){return!Je.has(yt)});return ct.length===1?ct[0]:null}return Xe<Oe?{add:!0,key:Ue(be,Ke)}:{add:!1,key:Ue(Ke,be)}}function at(be,Ke,Xe){var Oe=be.findIndex(function(Je){return Je.key===Xe}),Ue=be[Oe+1],He=Ke.findIndex(function(Je){return Je.key===Xe});if(Ue){var Ve=Ke.findIndex(function(Je){return Je.key===Ue.key});return Ke.slice(He+1,Ve)}return Ke.slice(He+1)}var ut=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ht={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ct=function(){},et="RC_TREE_MOTION_".concat(Math.random()),it={key:et},St={key:et,level:0,index:0,pos:"0",node:it,nodes:[it]},bt={parent:null,children:[],pos:St.pos,data:it,title:null,key:et,isStart:[],isEnd:[]};function Pt(be,Ke,Xe,Oe){return Ke===!1||!Xe?be:be.slice(0,Math.ceil(Xe/Oe)+1)}function gt(be){var Ke=be.key,Xe=be.pos;return(0,Ne.km)(Ke,Xe)}function dt(be){for(var Ke=String(be.data.key),Xe=be;Xe.parent;)Xe=Xe.parent,Ke="".concat(Xe.data.key," > ").concat(Ke);return Ke}var mt=ee.forwardRef(function(be,Ke){var Xe=be.prefixCls,Oe=be.data,Ue=be.selectable,He=be.checkable,Ve=be.expandedKeys,Je=be.selectedKeys,ct=be.checkedKeys,yt=be.loadedKeys,ft=be.loadingKeys,Mt=be.halfCheckedKeys,Jt=be.keyEntities,Vt=be.disabled,Kt=be.dragging,Ht=be.dragOverNodeKey,tn=be.dropPosition,It=be.motion,Dt=be.height,qt=be.itemHeight,sn=be.virtual,xn=be.focusable,Ln=be.activeItem,Zn=be.focused,Xn=be.tabIndex,dr=be.onKeyDown,fr=be.onFocus,pr=be.onBlur,Cr=be.onActiveChange,Yr=be.onListChangeStart,ii=be.onListChangeEnd,jr=(0,pe.Z)(be,ut),fi=ee.useRef(null),Lr=ee.useRef(null);ee.useImperativeHandle(Ke,function(){return{scrollTo:function(Cn){fi.current.scrollTo(Cn)},getIndentWidth:function(){return Lr.current.offsetWidth}}});var ot=ee.useState(Ve),oi=(0,ue.Z)(ot,2),yi=oi[0],Pi=oi[1],sr=ee.useState(Oe),Ar=(0,ue.Z)(sr,2),Fr=Ar[0],Si=Ar[1],Nr=ee.useState(Oe),hn=(0,ue.Z)(Nr,2),cn=hn[0],Ot=hn[1],gn=ee.useState([]),Nn=(0,ue.Z)(gn,2),Xt=Nn[0],zt=Nn[1],Pn=ee.useState(null),_n=(0,ue.Z)(Pn,2),qn=_n[0],Yn=_n[1],$t=ee.useRef(Oe);$t.current=Oe;function jn(){var nn=$t.current;Si(nn),Ot(nn),zt([]),Yn(null),ii()}(0,Te.Z)(function(){Pi(Ve);var nn=Ye(yi,Ve);if(nn.key!==null)if(nn.add){var Cn=Fr.findIndex(function(Mn){var zn=Mn.key;return zn===nn.key}),rn=Pt(at(Fr,Oe,nn.key),sn,Dt,qt),mn=Fr.slice();mn.splice(Cn+1,0,bt),Ot(mn),zt(rn),Yn("show")}else{var En=Oe.findIndex(function(Mn){var zn=Mn.key;return zn===nn.key}),pn=Pt(at(Oe,Fr,nn.key),sn,Dt,qt),kn=Oe.slice();kn.splice(En+1,0,bt),Ot(kn),zt(pn),Yn("hide")}else Fr!==Oe&&(Si(Oe),Ot(Oe))},[Ve,Oe]),ee.useEffect(function(){Kt||jn()},[Kt]);var Wn=It?cn:Oe,or={expandedKeys:Ve,selectedKeys:Je,loadedKeys:yt,loadingKeys:ft,checkedKeys:ct,halfCheckedKeys:Mt,dragOverNodeKey:Ht,dropPosition:tn,keyEntities:Jt};return ee.createElement(ee.Fragment,null,Zn&&Ln&&ee.createElement("span",{style:ht,"aria-live":"assertive"},dt(Ln)),ee.createElement("div",null,ee.createElement("input",{style:ht,disabled:xn===!1||Vt,tabIndex:xn!==!1?Xn:null,onKeyDown:dr,onFocus:fr,onBlur:pr,value:"",onChange:Ct,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(Xe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(Xe,"-indent")},ee.createElement("div",{ref:Lr,className:"".concat(Xe,"-indent-unit")}))),ee.createElement(Ce.Z,(0,rt.Z)({},jr,{data:Wn,itemKey:gt,height:Dt,fullHeight:!1,virtual:sn,itemHeight:qt,prefixCls:"".concat(Xe,"-list"),ref:fi,onVisibleChange:function(Cn,rn){var mn=new Set(Cn),En=rn.filter(function(pn){return!mn.has(pn)});En.some(function(pn){return gt(pn)===et})&&jn()}}),function(nn){var Cn=nn.pos,rn=(0,rt.Z)({},(le(nn.data),nn.data)),mn=nn.title,En=nn.key,pn=nn.isStart,kn=nn.isEnd,Mn=(0,Ne.km)(En,Cn);delete rn.key,delete rn.children;var zn=(0,Ne.H8)(Mn,or);return ee.createElement($e,(0,rt.Z)({},rn,zn,{title:mn,active:!!Ln&&En===Ln.key,pos:Cn,data:nn.data,isStart:pn,isEnd:kn,motion:It,motionNodes:En===et?Xt:null,motionType:qn,onMotionStart:Yr,onMotionEnd:jn,treeNodeRequiredProps:or,onMouseMove:function(){Cr(null)}}))}))});mt.displayName="NodeList";var kt=mt,Et=Ge(35654),Ut=Ge(90782),wt=Ge(67841),pt=10,tt=function(be){(0,Ee.Z)(Xe,be);var Ke=(0,ye.Z)(Xe);function Xe(){var Oe;(0,ge.Z)(this,Xe);for(var Ue=arguments.length,He=new Array(Ue),Ve=0;Ve<Ue;Ve++)He[Ve]=arguments[Ve];return Oe=Ke.call.apply(Ke,[this].concat(He)),Oe.destroyed=!1,Oe.delayedDragEnterLogic=void 0,Oe.loadingRetryTimes={},Oe.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,Ne.w$)()},Oe.dragStartMousePosition=null,Oe.dragNode=void 0,Oe.currentMouseOverDroppableNodeKey=null,Oe.listRef=ee.createRef(),Oe.onNodeDragStart=function(Je,ct){var yt=Oe.state,ft=yt.expandedKeys,Mt=yt.keyEntities,Jt=Oe.props.onDragStart,Vt=ct.props.eventKey;Oe.dragNode=ct,Oe.dragStartMousePosition={x:Je.clientX,y:Je.clientY};var Kt=(0,Et._5)(ft,Vt);Oe.setState({draggingNodeKey:Vt,dragChildrenKeys:(0,Et.wA)(Vt,Mt),indent:Oe.listRef.current.getIndentWidth()}),Oe.setExpandedKeys(Kt),window.addEventListener("dragend",Oe.onWindowDragEnd),Jt==null||Jt({event:Je,node:(0,Ne.F)(ct.props)})},Oe.onNodeDragEnter=function(Je,ct){var yt=Oe.state,ft=yt.expandedKeys,Mt=yt.keyEntities,Jt=yt.dragChildrenKeys,Vt=yt.flattenNodes,Kt=yt.indent,Ht=Oe.props,tn=Ht.onDragEnter,It=Ht.onExpand,Dt=Ht.allowDrop,qt=Ht.direction,sn=ct.props,xn=sn.pos,Ln=sn.eventKey,Zn=(0,Pe.Z)(Oe),Xn=Zn.dragNode;if(Oe.currentMouseOverDroppableNodeKey!==Ln&&(Oe.currentMouseOverDroppableNodeKey=Ln),!Xn){Oe.resetDragState();return}var dr=(0,Et.OM)(Je,Xn,ct,Kt,Oe.dragStartMousePosition,Dt,Vt,Mt,ft,qt),fr=dr.dropPosition,pr=dr.dropLevelOffset,Cr=dr.dropTargetKey,Yr=dr.dropContainerKey,ii=dr.dropTargetPos,jr=dr.dropAllowed,fi=dr.dragOverNodeKey;if(Jt.indexOf(Cr)!==-1||!jr){Oe.resetDragState();return}if(Oe.delayedDragEnterLogic||(Oe.delayedDragEnterLogic={}),Object.keys(Oe.delayedDragEnterLogic).forEach(function(Lr){clearTimeout(Oe.delayedDragEnterLogic[Lr])}),Xn.props.eventKey!==ct.props.eventKey&&(Je.persist(),Oe.delayedDragEnterLogic[xn]=window.setTimeout(function(){if(Oe.state.draggingNodeKey!==null){var Lr=(0,Ie.Z)(ft),ot=(0,wt.Z)(Mt,ct.props.eventKey);ot&&(ot.children||[]).length&&(Lr=(0,Et.L0)(ft,ct.props.eventKey)),"expandedKeys"in Oe.props||Oe.setExpandedKeys(Lr),It==null||It(Lr,{node:(0,Ne.F)(ct.props),expanded:!0,nativeEvent:Je.nativeEvent})}},800)),Xn.props.eventKey===Cr&&pr===0){Oe.resetDragState();return}Oe.setState({dragOverNodeKey:fi,dropPosition:fr,dropLevelOffset:pr,dropTargetKey:Cr,dropContainerKey:Yr,dropTargetPos:ii,dropAllowed:jr}),tn==null||tn({event:Je,node:(0,Ne.F)(ct.props),expandedKeys:ft})},Oe.onNodeDragOver=function(Je,ct){var yt=Oe.state,ft=yt.dragChildrenKeys,Mt=yt.flattenNodes,Jt=yt.keyEntities,Vt=yt.expandedKeys,Kt=yt.indent,Ht=Oe.props,tn=Ht.onDragOver,It=Ht.allowDrop,Dt=Ht.direction,qt=(0,Pe.Z)(Oe),sn=qt.dragNode;if(sn){var xn=(0,Et.OM)(Je,sn,ct,Kt,Oe.dragStartMousePosition,It,Mt,Jt,Vt,Dt),Ln=xn.dropPosition,Zn=xn.dropLevelOffset,Xn=xn.dropTargetKey,dr=xn.dropContainerKey,fr=xn.dropAllowed,pr=xn.dropTargetPos,Cr=xn.dragOverNodeKey;ft.indexOf(Xn)!==-1||!fr||(sn.props.eventKey===Xn&&Zn===0?Oe.state.dropPosition===null&&Oe.state.dropLevelOffset===null&&Oe.state.dropTargetKey===null&&Oe.state.dropContainerKey===null&&Oe.state.dropTargetPos===null&&Oe.state.dropAllowed===!1&&Oe.state.dragOverNodeKey===null||Oe.resetDragState():Ln===Oe.state.dropPosition&&Zn===Oe.state.dropLevelOffset&&Xn===Oe.state.dropTargetKey&&dr===Oe.state.dropContainerKey&&pr===Oe.state.dropTargetPos&&fr===Oe.state.dropAllowed&&Cr===Oe.state.dragOverNodeKey||Oe.setState({dropPosition:Ln,dropLevelOffset:Zn,dropTargetKey:Xn,dropContainerKey:dr,dropTargetPos:pr,dropAllowed:fr,dragOverNodeKey:Cr}),tn==null||tn({event:Je,node:(0,Ne.F)(ct.props)}))}},Oe.onNodeDragLeave=function(Je,ct){Oe.currentMouseOverDroppableNodeKey===ct.props.eventKey&&!Je.currentTarget.contains(Je.relatedTarget)&&(Oe.resetDragState(),Oe.currentMouseOverDroppableNodeKey=null);var yt=Oe.props.onDragLeave;yt==null||yt({event:Je,node:(0,Ne.F)(ct.props)})},Oe.onWindowDragEnd=function(Je){Oe.onNodeDragEnd(Je,null,!0),window.removeEventListener("dragend",Oe.onWindowDragEnd)},Oe.onNodeDragEnd=function(Je,ct){var yt=Oe.props.onDragEnd;Oe.setState({dragOverNodeKey:null}),Oe.cleanDragState(),yt==null||yt({event:Je,node:(0,Ne.F)(ct.props)}),Oe.dragNode=null,window.removeEventListener("dragend",Oe.onWindowDragEnd)},Oe.onNodeDrop=function(Je,ct){var yt,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Mt=Oe.state,Jt=Mt.dragChildrenKeys,Vt=Mt.dropPosition,Kt=Mt.dropTargetKey,Ht=Mt.dropTargetPos,tn=Mt.dropAllowed;if(tn){var It=Oe.props.onDrop;if(Oe.setState({dragOverNodeKey:null}),Oe.cleanDragState(),Kt!==null){var Dt=(0,_e.Z)((0,_e.Z)({},(0,Ne.H8)(Kt,Oe.getTreeNodeRequiredProps())),{},{active:((yt=Oe.getActiveItem())===null||yt===void 0?void 0:yt.key)===Kt,data:(0,wt.Z)(Oe.state.keyEntities,Kt).node}),qt=Jt.indexOf(Kt)!==-1;(0,z.ZP)(!qt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var sn=(0,Et.yx)(Ht),xn={event:Je,node:(0,Ne.F)(Dt),dragNode:Oe.dragNode?(0,Ne.F)(Oe.dragNode.props):null,dragNodesKeys:[Oe.dragNode.props.eventKey].concat(Jt),dropToGap:Vt!==0,dropPosition:Vt+Number(sn[sn.length-1])};ft||It==null||It(xn),Oe.dragNode=null}}},Oe.cleanDragState=function(){var Je=Oe.state.draggingNodeKey;Je!==null&&Oe.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Oe.dragStartMousePosition=null,Oe.currentMouseOverDroppableNodeKey=null},Oe.triggerExpandActionExpand=function(Je,ct){var yt=Oe.state,ft=yt.expandedKeys,Mt=yt.flattenNodes,Jt=ct.expanded,Vt=ct.key,Kt=ct.isLeaf;if(!(Kt||Je.shiftKey||Je.metaKey||Je.ctrlKey)){var Ht=Mt.filter(function(It){return It.key===Vt})[0],tn=(0,Ne.F)((0,_e.Z)((0,_e.Z)({},(0,Ne.H8)(Vt,Oe.getTreeNodeRequiredProps())),{},{data:Ht.data}));Oe.setExpandedKeys(Jt?(0,Et._5)(ft,Vt):(0,Et.L0)(ft,Vt)),Oe.onNodeExpand(Je,tn)}},Oe.onNodeClick=function(Je,ct){var yt=Oe.props,ft=yt.onClick,Mt=yt.expandAction;Mt==="click"&&Oe.triggerExpandActionExpand(Je,ct),ft==null||ft(Je,ct)},Oe.onNodeDoubleClick=function(Je,ct){var yt=Oe.props,ft=yt.onDoubleClick,Mt=yt.expandAction;Mt==="doubleClick"&&Oe.triggerExpandActionExpand(Je,ct),ft==null||ft(Je,ct)},Oe.onNodeSelect=function(Je,ct){var yt=Oe.state.selectedKeys,ft=Oe.state,Mt=ft.keyEntities,Jt=ft.fieldNames,Vt=Oe.props,Kt=Vt.onSelect,Ht=Vt.multiple,tn=ct.selected,It=ct[Jt.key],Dt=!tn;Dt?Ht?yt=(0,Et.L0)(yt,It):yt=[It]:yt=(0,Et._5)(yt,It);var qt=yt.map(function(sn){var xn=(0,wt.Z)(Mt,sn);return xn?xn.node:null}).filter(function(sn){return sn});Oe.setUncontrolledState({selectedKeys:yt}),Kt==null||Kt(yt,{event:"select",selected:Dt,node:ct,selectedNodes:qt,nativeEvent:Je.nativeEvent})},Oe.onNodeCheck=function(Je,ct,yt){var ft=Oe.state,Mt=ft.keyEntities,Jt=ft.checkedKeys,Vt=ft.halfCheckedKeys,Kt=Oe.props,Ht=Kt.checkStrictly,tn=Kt.onCheck,It=ct.key,Dt,qt={event:"check",node:ct,checked:yt,nativeEvent:Je.nativeEvent};if(Ht){var sn=yt?(0,Et.L0)(Jt,It):(0,Et._5)(Jt,It),xn=(0,Et._5)(Vt,It);Dt={checked:sn,halfChecked:xn},qt.checkedNodes=sn.map(function(pr){return(0,wt.Z)(Mt,pr)}).filter(function(pr){return pr}).map(function(pr){return pr.node}),Oe.setUncontrolledState({checkedKeys:sn})}else{var Ln=(0,Ut.S)([].concat((0,Ie.Z)(Jt),[It]),!0,Mt),Zn=Ln.checkedKeys,Xn=Ln.halfCheckedKeys;if(!yt){var dr=new Set(Zn);dr.delete(It);var fr=(0,Ut.S)(Array.from(dr),{checked:!1,halfCheckedKeys:Xn},Mt);Zn=fr.checkedKeys,Xn=fr.halfCheckedKeys}Dt=Zn,qt.checkedNodes=[],qt.checkedNodesPositions=[],qt.halfCheckedKeys=Xn,Zn.forEach(function(pr){var Cr=(0,wt.Z)(Mt,pr);if(Cr){var Yr=Cr.node,ii=Cr.pos;qt.checkedNodes.push(Yr),qt.checkedNodesPositions.push({node:Yr,pos:ii})}}),Oe.setUncontrolledState({checkedKeys:Zn},!1,{halfCheckedKeys:Xn})}tn==null||tn(Dt,qt)},Oe.onNodeLoad=function(Je){var ct=Je.key,yt=new Promise(function(ft,Mt){Oe.setState(function(Jt){var Vt=Jt.loadedKeys,Kt=Vt===void 0?[]:Vt,Ht=Jt.loadingKeys,tn=Ht===void 0?[]:Ht,It=Oe.props,Dt=It.loadData,qt=It.onLoad;if(!Dt||Kt.indexOf(ct)!==-1||tn.indexOf(ct)!==-1)return null;var sn=Dt(Je);return sn.then(function(){var xn=Oe.state.loadedKeys,Ln=(0,Et.L0)(xn,ct);qt==null||qt(Ln,{event:"load",node:Je}),Oe.setUncontrolledState({loadedKeys:Ln}),Oe.setState(function(Zn){return{loadingKeys:(0,Et._5)(Zn.loadingKeys,ct)}}),ft()}).catch(function(xn){if(Oe.setState(function(Zn){return{loadingKeys:(0,Et._5)(Zn.loadingKeys,ct)}}),Oe.loadingRetryTimes[ct]=(Oe.loadingRetryTimes[ct]||0)+1,Oe.loadingRetryTimes[ct]>=pt){var Ln=Oe.state.loadedKeys;(0,z.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Oe.setUncontrolledState({loadedKeys:(0,Et.L0)(Ln,ct)}),ft()}Mt(xn)}),{loadingKeys:(0,Et.L0)(tn,ct)}})});return yt.catch(function(){}),yt},Oe.onNodeMouseEnter=function(Je,ct){var yt=Oe.props.onMouseEnter;yt==null||yt({event:Je,node:ct})},Oe.onNodeMouseLeave=function(Je,ct){var yt=Oe.props.onMouseLeave;yt==null||yt({event:Je,node:ct})},Oe.onNodeContextMenu=function(Je,ct){var yt=Oe.props.onRightClick;yt&&(Je.preventDefault(),yt({event:Je,node:ct}))},Oe.onFocus=function(){var Je=Oe.props.onFocus;Oe.setState({focused:!0});for(var ct=arguments.length,yt=new Array(ct),ft=0;ft<ct;ft++)yt[ft]=arguments[ft];Je==null||Je.apply(void 0,yt)},Oe.onBlur=function(){var Je=Oe.props.onBlur;Oe.setState({focused:!1}),Oe.onActiveChange(null);for(var ct=arguments.length,yt=new Array(ct),ft=0;ft<ct;ft++)yt[ft]=arguments[ft];Je==null||Je.apply(void 0,yt)},Oe.getTreeNodeRequiredProps=function(){var Je=Oe.state,ct=Je.expandedKeys,yt=Je.selectedKeys,ft=Je.loadedKeys,Mt=Je.loadingKeys,Jt=Je.checkedKeys,Vt=Je.halfCheckedKeys,Kt=Je.dragOverNodeKey,Ht=Je.dropPosition,tn=Je.keyEntities;return{expandedKeys:ct||[],selectedKeys:yt||[],loadedKeys:ft||[],loadingKeys:Mt||[],checkedKeys:Jt||[],halfCheckedKeys:Vt||[],dragOverNodeKey:Kt,dropPosition:Ht,keyEntities:tn}},Oe.setExpandedKeys=function(Je){var ct=Oe.state,yt=ct.treeData,ft=ct.fieldNames,Mt=(0,Ne.oH)(yt,Je,ft);Oe.setUncontrolledState({expandedKeys:Je,flattenNodes:Mt},!0)},Oe.onNodeExpand=function(Je,ct){var yt=Oe.state.expandedKeys,ft=Oe.state,Mt=ft.listChanging,Jt=ft.fieldNames,Vt=Oe.props,Kt=Vt.onExpand,Ht=Vt.loadData,tn=ct.expanded,It=ct[Jt.key];if(!Mt){var Dt=yt.indexOf(It),qt=!tn;if((0,z.ZP)(tn&&Dt!==-1||!tn&&Dt===-1,"Expand state not sync with index check"),qt?yt=(0,Et.L0)(yt,It):yt=(0,Et._5)(yt,It),Oe.setExpandedKeys(yt),Kt==null||Kt(yt,{node:ct,expanded:qt,nativeEvent:Je.nativeEvent}),qt&&Ht){var sn=Oe.onNodeLoad(ct);sn&&sn.then(function(){var xn=(0,Ne.oH)(Oe.state.treeData,yt,Jt);Oe.setUncontrolledState({flattenNodes:xn})}).catch(function(){var xn=Oe.state.expandedKeys,Ln=(0,Et._5)(xn,It);Oe.setExpandedKeys(Ln)})}}},Oe.onListChangeStart=function(){Oe.setUncontrolledState({listChanging:!0})},Oe.onListChangeEnd=function(){setTimeout(function(){Oe.setUncontrolledState({listChanging:!1})})},Oe.onActiveChange=function(Je){var ct=Oe.state.activeKey,yt=Oe.props.onActiveChange;ct!==Je&&(Oe.setState({activeKey:Je}),Je!==null&&Oe.scrollTo({key:Je}),yt==null||yt(Je))},Oe.getActiveItem=function(){var Je=Oe.state,ct=Je.activeKey,yt=Je.flattenNodes;return ct===null?null:yt.find(function(ft){var Mt=ft.key;return Mt===ct})||null},Oe.offsetActiveKey=function(Je){var ct=Oe.state,yt=ct.flattenNodes,ft=ct.activeKey,Mt=yt.findIndex(function(Kt){var Ht=Kt.key;return Ht===ft});Mt===-1&&Je<0&&(Mt=yt.length),Mt=(Mt+Je+yt.length)%yt.length;var Jt=yt[Mt];if(Jt){var Vt=Jt.key;Oe.onActiveChange(Vt)}else Oe.onActiveChange(null)},Oe.onKeyDown=function(Je){var ct=Oe.state,yt=ct.activeKey,ft=ct.expandedKeys,Mt=ct.checkedKeys,Jt=ct.fieldNames,Vt=Oe.props,Kt=Vt.onKeyDown,Ht=Vt.checkable,tn=Vt.selectable;switch(Je.which){case xe.Z.UP:{Oe.offsetActiveKey(-1),Je.preventDefault();break}case xe.Z.DOWN:{Oe.offsetActiveKey(1),Je.preventDefault();break}}var It=Oe.getActiveItem();if(It&&It.data){var Dt=Oe.getTreeNodeRequiredProps(),qt=It.data.isLeaf===!1||!!(It.data[Jt.children]||[]).length,sn=(0,Ne.F)((0,_e.Z)((0,_e.Z)({},(0,Ne.H8)(yt,Dt)),{},{data:It.data,active:!0}));switch(Je.which){case xe.Z.LEFT:{qt&&ft.includes(yt)?Oe.onNodeExpand({},sn):It.parent&&Oe.onActiveChange(It.parent.key),Je.preventDefault();break}case xe.Z.RIGHT:{qt&&!ft.includes(yt)?Oe.onNodeExpand({},sn):It.children&&It.children.length&&Oe.onActiveChange(It.children[0].key),Je.preventDefault();break}case xe.Z.ENTER:case xe.Z.SPACE:{Ht&&!sn.disabled&&sn.checkable!==!1&&!sn.disableCheckbox?Oe.onNodeCheck({},sn,!Mt.includes(yt)):!Ht&&tn&&!sn.disabled&&sn.selectable!==!1&&Oe.onNodeSelect({},sn);break}}}Kt==null||Kt(Je)},Oe.setUncontrolledState=function(Je){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Oe.destroyed){var ft=!1,Mt=!0,Jt={};Object.keys(Je).forEach(function(Vt){if(Vt in Oe.props){Mt=!1;return}ft=!0,Jt[Vt]=Je[Vt]}),ft&&(!ct||Mt)&&Oe.setState((0,_e.Z)((0,_e.Z)({},Jt),yt))}},Oe.scrollTo=function(Je){Oe.listRef.current.scrollTo(Je)},Oe}return(0,ce.Z)(Xe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ue=this.props.activeKey;Ue!==void 0&&Ue!==this.state.activeKey&&(this.setState({activeKey:Ue}),Ue!==null&&this.scrollTo({key:Ue}))}},{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 Ue,He=this.state,Ve=He.focused,Je=He.flattenNodes,ct=He.keyEntities,yt=He.draggingNodeKey,ft=He.activeKey,Mt=He.dropLevelOffset,Jt=He.dropContainerKey,Vt=He.dropTargetKey,Kt=He.dropPosition,Ht=He.dragOverNodeKey,tn=He.indent,It=this.props,Dt=It.prefixCls,qt=It.className,sn=It.style,xn=It.showLine,Ln=It.focusable,Zn=It.tabIndex,Xn=Zn===void 0?0:Zn,dr=It.selectable,fr=It.showIcon,pr=It.icon,Cr=It.switcherIcon,Yr=It.draggable,ii=It.checkable,jr=It.checkStrictly,fi=It.disabled,Lr=It.motion,ot=It.loadData,oi=It.filterTreeNode,yi=It.height,Pi=It.itemHeight,sr=It.virtual,Ar=It.titleRender,Fr=It.dropIndicatorRender,Si=It.onContextMenu,Nr=It.onScroll,hn=It.direction,cn=It.rootClassName,Ot=It.rootStyle,gn=(0,fe.Z)(this.props,{aria:!0,data:!0}),Nn;return Yr&&((0,ie.Z)(Yr)==="object"?Nn=Yr:typeof Yr=="function"?Nn={nodeDraggable:Yr}:Nn={}),ee.createElement(ae.k.Provider,{value:{prefixCls:Dt,selectable:dr,showIcon:fr,icon:pr,switcherIcon:Cr,draggable:Nn,draggingNodeKey:yt,checkable:ii,checkStrictly:jr,disabled:fi,keyEntities:ct,dropLevelOffset:Mt,dropContainerKey:Jt,dropTargetKey:Vt,dropPosition:Kt,dragOverNodeKey:Ht,indent:tn,direction:hn,dropIndicatorRender:Fr,loadData:ot,filterTreeNode:oi,titleRender:Ar,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}},ee.createElement("div",{role:"tree",className:ve()(Dt,qt,cn,(Ue={},(0,vt.Z)(Ue,"".concat(Dt,"-show-line"),xn),(0,vt.Z)(Ue,"".concat(Dt,"-focused"),Ve),(0,vt.Z)(Ue,"".concat(Dt,"-active-focused"),ft!==null),Ue)),style:Ot},ee.createElement(kt,(0,rt.Z)({ref:this.listRef,prefixCls:Dt,style:sn,data:Je,disabled:fi,selectable:dr,checkable:!!ii,motion:Lr,dragging:yt!==null,height:yi,itemHeight:Pi,virtual:sr,focusable:Ln,focused:Ve,tabIndex:Xn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Si,onScroll:Nr},this.getTreeNodeRequiredProps(),gn))))}}],[{key:"getDerivedStateFromProps",value:function(Ue,He){var Ve=He.prevProps,Je={prevProps:Ue};function ct(Ln){return!Ve&&Ln in Ue||Ve&&Ve[Ln]!==Ue[Ln]}var yt,ft=He.fieldNames;if(ct("fieldNames")&&(ft=(0,Ne.w$)(Ue.fieldNames),Je.fieldNames=ft),ct("treeData")?yt=Ue.treeData:ct("children")&&((0,z.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),yt=(0,Ne.zn)(Ue.children)),yt){Je.treeData=yt;var Mt=(0,Ne.I8)(yt,{fieldNames:ft});Je.keyEntities=(0,_e.Z)((0,vt.Z)({},et,St),Mt.keyEntities)}var Jt=Je.keyEntities||He.keyEntities;if(ct("expandedKeys")||Ve&&ct("autoExpandParent"))Je.expandedKeys=Ue.autoExpandParent||!Ve&&Ue.defaultExpandParent?(0,Et.r7)(Ue.expandedKeys,Jt):Ue.expandedKeys;else if(!Ve&&Ue.defaultExpandAll){var Vt=(0,_e.Z)({},Jt);delete Vt[et],Je.expandedKeys=Object.keys(Vt).map(function(Ln){return Vt[Ln].key})}else!Ve&&Ue.defaultExpandedKeys&&(Je.expandedKeys=Ue.autoExpandParent||Ue.defaultExpandParent?(0,Et.r7)(Ue.defaultExpandedKeys,Jt):Ue.defaultExpandedKeys);if(Je.expandedKeys||delete Je.expandedKeys,yt||Je.expandedKeys){var Kt=(0,Ne.oH)(yt||He.treeData,Je.expandedKeys||He.expandedKeys,ft);Je.flattenNodes=Kt}if(Ue.selectable&&(ct("selectedKeys")?Je.selectedKeys=(0,Et.BT)(Ue.selectedKeys,Ue):!Ve&&Ue.defaultSelectedKeys&&(Je.selectedKeys=(0,Et.BT)(Ue.defaultSelectedKeys,Ue))),Ue.checkable){var Ht;if(ct("checkedKeys")?Ht=(0,Et.E6)(Ue.checkedKeys)||{}:!Ve&&Ue.defaultCheckedKeys?Ht=(0,Et.E6)(Ue.defaultCheckedKeys)||{}:yt&&(Ht=(0,Et.E6)(Ue.checkedKeys)||{checkedKeys:He.checkedKeys,halfCheckedKeys:He.halfCheckedKeys}),Ht){var tn=Ht,It=tn.checkedKeys,Dt=It===void 0?[]:It,qt=tn.halfCheckedKeys,sn=qt===void 0?[]:qt;if(!Ue.checkStrictly){var xn=(0,Ut.S)(Dt,!0,Jt);Dt=xn.checkedKeys,sn=xn.halfCheckedKeys}Je.checkedKeys=Dt,Je.halfCheckedKeys=sn}}return ct("loadedKeys")&&(Je.loadedKeys=Ue.loadedKeys),Je}}]),Xe}(ee.Component);tt.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:re,allowDrop:function(){return!0},expandAction:!1},tt.TreeNode=Ae.Z;var Ze=tt,we=Ze},35654:function(bn,an,Ge){"use strict";Ge.d(an,{BT:function(){return ee},E6:function(){return le},L0:function(){return ye},OM:function(){return z},_5:function(){return Ee},r7:function(){return ue},wA:function(){return ve},yx:function(){return Me}});var rt=Ge(19127),vt=Ge(20135),ie=Ge(48736),_e=Ge(59301),Ie=Ge(39417),ge=Ge(67841),ce=Ge(71430),Pe=null;function Ee(pe,Te){if(!pe)return[];var Ce=pe.slice(),Fe=Ce.indexOf(Te);return Fe>=0&&Ce.splice(Fe,1),Ce}function ye(pe,Te){var Ce=(pe||[]).slice();return Ce.indexOf(Te)===-1&&Ce.push(Te),Ce}function Me(pe){return pe.split("-")}function ve(pe,Te){var Ce=[],Fe=(0,ge.Z)(Te,pe);function Ae(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];je.forEach(function(Ne){var Be=Ne.key,ze=Ne.children;Ce.push(Be),Ae(ze)})}return Ae(Fe.children),Ce}function xe(pe){if(pe.parent){var Te=Me(pe.pos);return Number(Te[Te.length-1])===pe.parent.children.length-1}return!1}function fe(pe){var Te=Me(pe.pos);return Number(Te[Te.length-1])===0}function z(pe,Te,Ce,Fe,Ae,je,Ne,Be,ze,Qe){var $e,Ye=pe.clientX,at=pe.clientY,ut=pe.target.getBoundingClientRect(),ht=ut.top,Ct=ut.height,et=(Qe==="rtl"?-1:1)*(((Ae==null?void 0:Ae.x)||0)-Ye),it=(et-12)/Fe,St=(0,ge.Z)(Be,Ce.props.eventKey);if(at<ht+Ct/2){var bt=Ne.findIndex(function(we){return we.key===St.key}),Pt=bt<=0?0:bt-1,gt=Ne[Pt].key;St=(0,ge.Z)(Be,gt)}var dt=St.key,mt=St,kt=St.key,Et=0,Ut=0;if(!ze.includes(dt))for(var wt=0;wt<it&&xe(St);wt+=1)St=St.parent,Ut+=1;var pt=Te.props.data,tt=St.node,Ze=!0;return fe(St)&&St.level===0&&at<ht+Ct/2&&je({dragNode:pt,dropNode:tt,dropPosition:-1})&&St.key===Ce.props.eventKey?Et=-1:(mt.children||[]).length&&ze.includes(kt)?je({dragNode:pt,dropNode:tt,dropPosition:0})?Et=0:Ze=!1:Ut===0?it>-1.5?je({dragNode:pt,dropNode:tt,dropPosition:1})?Et=1:Ze=!1:je({dragNode:pt,dropNode:tt,dropPosition:0})?Et=0:je({dragNode:pt,dropNode:tt,dropPosition:1})?Et=1:Ze=!1:je({dragNode:pt,dropNode:tt,dropPosition:1})?Et=1:Ze=!1,{dropPosition:Et,dropLevelOffset:Ut,dropTargetKey:St.key,dropTargetPos:St.pos,dragOverNodeKey:kt,dropContainerKey:Et===0?null:(($e=St.parent)===null||$e===void 0?void 0:$e.key)||null,dropAllowed:Ze}}function ee(pe,Te){if(pe){var Ce=Te.multiple;return Ce?pe.slice():pe.length?[pe[0]]:pe}}var ae=function(Te){return Te};function re(pe,Te){if(!pe)return[];var Ce=Te||{},Fe=Ce.processProps,Ae=Fe===void 0?ae:Fe,je=Array.isArray(pe)?pe:[pe];return je.map(function(Ne){var Be=Ne.children,ze=_objectWithoutProperties(Ne,Pe),Qe=re(Be,Te);return React.createElement(TreeNode,_extends({key:ze.key},Ae(ze)),Qe)})}function le(pe){if(!pe)return null;var Te;if(Array.isArray(pe))Te={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,vt.Z)(pe)==="object")Te={checkedKeys:pe.checked||void 0,halfCheckedKeys:pe.halfChecked||void 0};else return(0,ie.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Te}function ue(pe,Te){var Ce=new Set;function Fe(Ae){if(!Ce.has(Ae)){var je=(0,ge.Z)(Te,Ae);if(je){Ce.add(Ae);var Ne=je.parent,Be=je.node;Be.disabled||Ne&&Fe(Ne.key)}}}return(pe||[]).forEach(function(Ae){Fe(Ae)}),(0,rt.Z)(Ce)}},90782:function(bn,an,Ge){"use strict";Ge.d(an,{S:function(){return ce}});var rt=Ge(48736),vt=Ge(67841);function ie(Pe,Ee){var ye=new Set;return Pe.forEach(function(Me){Ee.has(Me)||ye.add(Me)}),ye}function _e(Pe){var Ee=Pe||{},ye=Ee.disabled,Me=Ee.disableCheckbox,ve=Ee.checkable;return!!(ye||Me)||ve===!1}function Ie(Pe,Ee,ye,Me){for(var ve=new Set(Pe),xe=new Set,fe=0;fe<=ye;fe+=1){var z=Ee.get(fe)||new Set;z.forEach(function(le){var ue=le.key,pe=le.node,Te=le.children,Ce=Te===void 0?[]:Te;ve.has(ue)&&!Me(pe)&&Ce.filter(function(Fe){return!Me(Fe.node)}).forEach(function(Fe){ve.add(Fe.key)})})}for(var ee=new Set,ae=ye;ae>=0;ae-=1){var re=Ee.get(ae)||new Set;re.forEach(function(le){var ue=le.parent,pe=le.node;if(!(Me(pe)||!le.parent||ee.has(le.parent.key))){if(Me(le.parent.node)){ee.add(ue.key);return}var Te=!0,Ce=!1;(ue.children||[]).filter(function(Fe){return!Me(Fe.node)}).forEach(function(Fe){var Ae=Fe.key,je=ve.has(Ae);Te&&!je&&(Te=!1),!Ce&&(je||xe.has(Ae))&&(Ce=!0)}),Te&&ve.add(ue.key),Ce&&xe.add(ue.key),ee.add(ue.key)}})}return{checkedKeys:Array.from(ve),halfCheckedKeys:Array.from(ie(xe,ve))}}function ge(Pe,Ee,ye,Me,ve){for(var xe=new Set(Pe),fe=new Set(Ee),z=0;z<=Me;z+=1){var ee=ye.get(z)||new Set;ee.forEach(function(ue){var pe=ue.key,Te=ue.node,Ce=ue.children,Fe=Ce===void 0?[]:Ce;!xe.has(pe)&&!fe.has(pe)&&!ve(Te)&&Fe.filter(function(Ae){return!ve(Ae.node)}).forEach(function(Ae){xe.delete(Ae.key)})})}fe=new Set;for(var ae=new Set,re=Me;re>=0;re-=1){var le=ye.get(re)||new Set;le.forEach(function(ue){var pe=ue.parent,Te=ue.node;if(!(ve(Te)||!ue.parent||ae.has(ue.parent.key))){if(ve(ue.parent.node)){ae.add(pe.key);return}var Ce=!0,Fe=!1;(pe.children||[]).filter(function(Ae){return!ve(Ae.node)}).forEach(function(Ae){var je=Ae.key,Ne=xe.has(je);Ce&&!Ne&&(Ce=!1),!Fe&&(Ne||fe.has(je))&&(Fe=!0)}),Ce||xe.delete(pe.key),Fe&&fe.add(pe.key),ae.add(pe.key)}})}return{checkedKeys:Array.from(xe),halfCheckedKeys:Array.from(ie(fe,xe))}}function ce(Pe,Ee,ye,Me){var ve=[],xe;Me?xe=Me:xe=_e;var fe=new Set(Pe.filter(function(re){var le=!!(0,vt.Z)(ye,re);return le||ve.push(re),le})),z=new Map,ee=0;Object.keys(ye).forEach(function(re){var le=ye[re],ue=le.level,pe=z.get(ue);pe||(pe=new Set,z.set(ue,pe)),pe.add(le),ee=Math.max(ee,ue)}),(0,rt.ZP)(!ve.length,"Tree missing follow keys: ".concat(ve.slice(0,100).map(function(re){return"'".concat(re,"'")}).join(", ")));var ae;return Ee===!0?ae=Ie(fe,z,ee,xe):ae=ge(fe,Ee.halfCheckedKeys,z,ee,xe),ae}},67841:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return rt}});function rt(vt,ie){return vt[ie]}},71430:function(bn,an,Ge){"use strict";Ge.d(an,{F:function(){return ue},H8:function(){return le},I8:function(){return re},km:function(){return ve},oH:function(){return ee},w$:function(){return xe},zn:function(){return z}});var rt=Ge(20135),vt=Ge(19127),ie=Ge(44127),_e=Ge(6620),Ie=Ge(11592),ge=Ge(2738),ce=Ge(48736),Pe=Ge(67841),Ee=["children"];function ye(pe,Te){return"".concat(pe,"-").concat(Te)}function Me(pe){return pe&&pe.type&&pe.type.isTreeNode}function ve(pe,Te){return pe!=null?pe:Te}function xe(pe){var Te=pe||{},Ce=Te.title,Fe=Te._title,Ae=Te.key,je=Te.children,Ne=Ce||"title";return{title:Ne,_title:Fe||[Ne],key:Ae||"key",children:je||"children"}}function fe(pe,Te){var Ce=new Map;function Fe(Ae){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ae||[]).forEach(function(Ne){var Be=Ne[Te.key],ze=Ne[Te.children];warning(Be!=null,"Tree node must have a certain key: [".concat(je).concat(Be,"]"));var Qe=String(Be);warning(!Ce.has(Qe)||Be===null||Be===void 0,"Same 'key' exist in the Tree: ".concat(Qe)),Ce.set(Qe,!0),Fe(ze,"".concat(je).concat(Qe," > "))})}Fe(pe)}function z(pe){function Te(Ce){var Fe=(0,Ie.Z)(Ce);return Fe.map(function(Ae){if(!Me(Ae))return(0,ce.ZP)(!Ae,"Tree/TreeNode can only accept TreeNode as children."),null;var je=Ae.key,Ne=Ae.props,Be=Ne.children,ze=(0,_e.Z)(Ne,Ee),Qe=(0,ie.Z)({key:je},ze),$e=Te(Be);return $e.length&&(Qe.children=$e),Qe}).filter(function(Ae){return Ae})}return Te(pe)}function ee(pe,Te,Ce){var Fe=xe(Ce),Ae=Fe._title,je=Fe.key,Ne=Fe.children,Be=new Set(Te===!0?[]:Te),ze=[];function Qe($e){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return $e.map(function(at,ut){for(var ht=ye(Ye?Ye.pos:"0",ut),Ct=ve(at[je],ht),et,it=0;it<Ae.length;it+=1){var St=Ae[it];if(at[St]!==void 0){et=at[St];break}}var bt=(0,ie.Z)((0,ie.Z)({},(0,ge.Z)(at,[].concat((0,vt.Z)(Ae),[je,Ne]))),{},{title:et,key:Ct,parent:Ye,pos:ht,children:null,data:at,isStart:[].concat((0,vt.Z)(Ye?Ye.isStart:[]),[ut===0]),isEnd:[].concat((0,vt.Z)(Ye?Ye.isEnd:[]),[ut===$e.length-1])});return ze.push(bt),Te===!0||Be.has(Ct)?bt.children=Qe(at[Ne]||[],bt):bt.children=[],bt})}return Qe(pe),ze}function ae(pe,Te,Ce){var Fe={};(0,rt.Z)(Ce)==="object"?Fe=Ce:Fe={externalGetKey:Ce},Fe=Fe||{};var Ae=Fe,je=Ae.childrenPropName,Ne=Ae.externalGetKey,Be=Ae.fieldNames,ze=xe(Be),Qe=ze.key,$e=ze.children,Ye=je||$e,at;Ne?typeof Ne=="string"?at=function(Ct){return Ct[Ne]}:typeof Ne=="function"&&(at=function(Ct){return Ne(Ct)}):at=function(Ct,et){return ve(Ct[Qe],et)};function ut(ht,Ct,et,it){var St=ht?ht[Ye]:pe,bt=ht?ye(et.pos,Ct):"0",Pt=ht?[].concat((0,vt.Z)(it),[ht]):[];if(ht){var gt=at(ht,bt),dt={node:ht,index:Ct,pos:bt,key:gt,parentPos:et.node?et.pos:null,level:et.level+1,nodes:Pt};Te(dt)}St&&St.forEach(function(mt,kt){ut(mt,kt,{node:ht,pos:bt,level:et?et.level+1:-1},Pt)})}ut(null)}function re(pe){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=Te.initWrapper,Fe=Te.processEntity,Ae=Te.onProcessFinished,je=Te.externalGetKey,Ne=Te.childrenPropName,Be=Te.fieldNames,ze=arguments.length>2?arguments[2]:void 0,Qe=je||ze,$e={},Ye={},at={posEntities:$e,keyEntities:Ye};return Ce&&(at=Ce(at)||at),ae(pe,function(ut){var ht=ut.node,Ct=ut.index,et=ut.pos,it=ut.key,St=ut.parentPos,bt=ut.level,Pt=ut.nodes,gt={node:ht,nodes:Pt,index:Ct,key:it,pos:et,level:bt},dt=ve(it,et);$e[et]=gt,Ye[dt]=gt,gt.parent=$e[St],gt.parent&&(gt.parent.children=gt.parent.children||[],gt.parent.children.push(gt)),Fe&&Fe(gt,at)},{externalGetKey:Qe,childrenPropName:Ne,fieldNames:Be}),Ae&&Ae(at),at}function le(pe,Te){var Ce=Te.expandedKeys,Fe=Te.selectedKeys,Ae=Te.loadedKeys,je=Te.loadingKeys,Ne=Te.checkedKeys,Be=Te.halfCheckedKeys,ze=Te.dragOverNodeKey,Qe=Te.dropPosition,$e=Te.keyEntities,Ye=(0,Pe.Z)($e,pe),at={eventKey:pe,expanded:Ce.indexOf(pe)!==-1,selected:Fe.indexOf(pe)!==-1,loaded:Ae.indexOf(pe)!==-1,loading:je.indexOf(pe)!==-1,checked:Ne.indexOf(pe)!==-1,halfChecked:Be.indexOf(pe)!==-1,pos:String(Ye?Ye.pos:""),dragOver:ze===pe&&Qe===0,dragOverGapTop:ze===pe&&Qe===-1,dragOverGapBottom:ze===pe&&Qe===1};return at}function ue(pe){var Te=pe.data,Ce=pe.expanded,Fe=pe.selected,Ae=pe.checked,je=pe.loaded,Ne=pe.loading,Be=pe.halfChecked,ze=pe.dragOver,Qe=pe.dragOverGapTop,$e=pe.dragOverGapBottom,Ye=pe.pos,at=pe.active,ut=pe.eventKey,ht=(0,ie.Z)((0,ie.Z)({},Te),{},{expanded:Ce,selected:Fe,checked:Ae,loaded:je,loading:Ne,halfChecked:Be,dragOver:ze,dragOverGapTop:Qe,dragOverGapBottom:$e,pos:Ye,active:at,key:ut});return"props"in ht||Object.defineProperty(ht,"props",{get:function(){return(0,ce.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),pe}}),ht}},8224:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return vt}});var rt=Ge(4676);function vt(ie,_e,Ie,ge){var ce=rt.unstable_batchedUpdates?function(Ee){rt.unstable_batchedUpdates(Ie,Ee)}:Ie;return ie!=null&&ie.addEventListener&&ie.addEventListener(_e,ce,ge),{remove:function(){ie!=null&&ie.removeEventListener&&ie.removeEventListener(_e,ce,ge)}}}},55468:function(bn,an,Ge){"use strict";Ge.d(an,{g1:function(){return Me},os:function(){return xe}});var rt=/margin|padding|width|height|max|min|offset/,vt={left:!0,top:!0},ie={cssFloat:1,styleFloat:1,float:1};function _e(fe){return fe.nodeType===1?fe.ownerDocument.defaultView.getComputedStyle(fe,null):{}}function Ie(fe,z,ee){if(z=z.toLowerCase(),ee==="auto"){if(z==="height")return fe.offsetHeight;if(z==="width")return fe.offsetWidth}return z in vt||(vt[z]=rt.test(z)),vt[z]?parseFloat(ee)||0:ee}function ge(fe,z){var ee=arguments.length,ae=_e(fe);return z=ie[z]?"cssFloat"in fe.style?"cssFloat":"styleFloat":z,ee===1?ae:Ie(fe,z,ae[z]||fe.style[z])}function ce(fe,z,ee){var ae=arguments.length;if(z=ie[z]?"cssFloat"in fe.style?"cssFloat":"styleFloat":z,ae===3)return typeof ee=="number"&&rt.test(z)&&(ee="".concat(ee,"px")),fe.style[z]=ee,ee;for(var re in z)z.hasOwnProperty(re)&&ce(fe,re,z[re]);return _e(fe)}function Pe(fe){return fe===document.body?document.documentElement.clientWidth:fe.offsetWidth}function Ee(fe){return fe===document.body?window.innerHeight||document.documentElement.clientHeight:fe.offsetHeight}function ye(){var fe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),z=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:fe,height:z}}function Me(){var fe=document.documentElement.clientWidth,z=window.innerHeight||document.documentElement.clientHeight;return{width:fe,height:z}}function ve(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function xe(fe){var z=fe.getBoundingClientRect(),ee=document.documentElement;return{left:z.left+(window.pageXOffset||ee.scrollLeft)-(ee.clientLeft||document.body.clientLeft||0),top:z.top+(window.pageYOffset||ee.scrollTop)-(ee.clientTop||document.body.clientTop||0)}}},24514:function(bn,an,Ge){"use strict";Ge.d(an,{G:function(){return _e}});var rt=Ge(47273),vt=function(ge){if((0,rt.Z)()&&window.document.documentElement){var ce=Array.isArray(ge)?ge:[ge],Pe=window.document.documentElement;return ce.some(function(Ee){return Ee in Pe.style})}return!1},ie=function(ge,ce){if(!vt(ge))return!1;var Pe=document.createElement("div"),Ee=Pe.style[ge];return Pe.style[ge]=ce,Pe.style[ge]!==Ee};function _e(Ie,ge){return!Array.isArray(Ie)&&ge!==void 0?ie(Ie,ge):vt(Ie)}},24916:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return tt}});var rt=Ge(96663),vt=Ge(20135),ie=Ge(44127),_e=Ge(90493),Ie=Ge(72071),ge=Ge(6620),ce=Ge(92310),Pe=Ge.n(ce),Ee=Ge(29301),ye=Ge(70425),Me=Ge(34280),ve=Ge(59301),xe=Ge(4676),fe=ve.forwardRef(function(Ze,we){var be=Ze.height,Ke=Ze.offsetY,Xe=Ze.offsetX,Oe=Ze.children,Ue=Ze.prefixCls,He=Ze.onInnerResize,Ve=Ze.innerProps,Je=Ze.rtl,ct=Ze.extra,yt={},ft={display:"flex",flexDirection:"column"};return Ke!==void 0&&(yt={height:be,position:"relative",overflow:"hidden"},ft=(0,ie.Z)((0,ie.Z)({},ft),{},(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)({transform:"translateY(".concat(Ke,"px)")},Je?"marginRight":"marginLeft",-Xe),"position","absolute"),"left",0),"right",0),"top",0))),ve.createElement("div",{style:yt},ve.createElement(Ee.Z,{onResize:function(Jt){var Vt=Jt.offsetHeight;Vt&&He&&He()}},ve.createElement("div",(0,rt.Z)({style:ft,className:Pe()((0,_e.Z)({},"".concat(Ue,"-holder-inner"),Ue)),ref:we},Ve),Oe,ct)))});fe.displayName="Filler";var z=fe;function ee(Ze){var we=Ze.children,be=Ze.setRef,Ke=ve.useCallback(function(Xe){be(Xe)},[]);return ve.cloneElement(we,{ref:Ke})}function ae(Ze,we,be,Ke,Xe,Oe,Ue,He){var Ve=He.getKey;return Ze.slice(we,be+1).map(function(Je,ct){var yt=we+ct,ft=Ue(Je,yt,{style:{width:Ke},offsetX:Xe}),Mt=Ve(Je);return ve.createElement(ee,{key:Mt,setRef:function(Vt){return Oe(Je,Vt)}},ft)})}function re(Ze,we,be,Ke){var Xe=be-Ze,Oe=we-be,Ue=Math.min(Xe,Oe)*2;if(Ke<=Ue){var He=Math.floor(Ke/2);return Ke%2?be+He+1:be-He}return Xe>Oe?be-(Ke-Oe):be+(Ke-Xe)}function le(Ze,we,be){var Ke=Ze.length,Xe=we.length,Oe,Ue;if(Ke===0&&Xe===0)return null;Ke<Xe?(Oe=Ze,Ue=we):(Oe=we,Ue=Ze);var He={__EMPTY_ITEM__:!0};function Ve(Jt){return Jt!==void 0?be(Jt):He}for(var Je=null,ct=Math.abs(Ke-Xe)!==1,yt=0;yt<Ue.length;yt+=1){var ft=Ve(Oe[yt]),Mt=Ve(Ue[yt]);if(ft!==Mt){Je=yt,ct=ct||ft!==Ve(Ue[yt+1]);break}}return Je===null?null:{index:Je,multiple:ct}}function ue(Ze,we,be){var Ke=ve.useState(Ze),Xe=(0,Ie.Z)(Ke,2),Oe=Xe[0],Ue=Xe[1],He=ve.useState(null),Ve=(0,Ie.Z)(He,2),Je=Ve[0],ct=Ve[1];return ve.useEffect(function(){var yt=le(Oe||[],Ze||[],we);(yt==null?void 0:yt.index)!==void 0&&(be==null||be(yt.index),ct(Ze[yt.index])),Ue(Ze)},[Ze]),[Je]}var pe=Ge(16089),Te=(typeof navigator=="undefined"?"undefined":(0,vt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ce=Te,Fe=function(Ze,we,be,Ke){var Xe=(0,ve.useRef)(!1),Oe=(0,ve.useRef)(null);function Ue(){clearTimeout(Oe.current),Xe.current=!0,Oe.current=setTimeout(function(){Xe.current=!1},50)}var He=(0,ve.useRef)({top:Ze,bottom:we,left:be,right:Ke});return He.current.top=Ze,He.current.bottom=we,He.current.left=be,He.current.right=Ke,function(Ve,Je){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,yt=Ve?Je<0&&He.current.left||Je>0&&He.current.right:Je<0&&He.current.top||Je>0&&He.current.bottom;return ct&&yt?(clearTimeout(Oe.current),Xe.current=!1):(!yt||Xe.current)&&Ue(),!Xe.current&&yt}};function Ae(Ze,we,be,Ke,Xe,Oe,Ue){var He=(0,ve.useRef)(0),Ve=(0,ve.useRef)(null),Je=(0,ve.useRef)(null),ct=(0,ve.useRef)(!1),yt=Fe(we,be,Ke,Xe);function ft(tn,It){if(pe.Z.cancel(Ve.current),!yt(!1,It)){var Dt=tn;if(!Dt._virtualHandled)Dt._virtualHandled=!0;else return;He.current+=It,Je.current=It,Ce||Dt.preventDefault(),Ve.current=(0,pe.Z)(function(){var qt=ct.current?10:1;Ue(He.current*qt,!1),He.current=0})}}function Mt(tn,It){Ue(It,!0),Ce||tn.preventDefault()}var Jt=(0,ve.useRef)(null),Vt=(0,ve.useRef)(null);function Kt(tn){if(Ze){pe.Z.cancel(Vt.current),Vt.current=(0,pe.Z)(function(){Jt.current=null},2);var It=tn.deltaX,Dt=tn.deltaY,qt=tn.shiftKey,sn=It,xn=Dt;(Jt.current==="sx"||!Jt.current&&qt&&Dt&&!It)&&(sn=Dt,xn=0,Jt.current="sx");var Ln=Math.abs(sn),Zn=Math.abs(xn);Jt.current===null&&(Jt.current=Oe&&Ln>Zn?"x":"y"),Jt.current==="y"?ft(tn,xn):Mt(tn,sn)}}function Ht(tn){Ze&&(ct.current=tn.detail===Je.current)}return[Kt,Ht]}function je(Ze,we,be,Ke){var Xe=ve.useMemo(function(){return[new Map,[]]},[Ze,be.id,Ke]),Oe=(0,Ie.Z)(Xe,2),Ue=Oe[0],He=Oe[1],Ve=function(ct){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct,ft=Ue.get(ct),Mt=Ue.get(yt);if(ft===void 0||Mt===void 0)for(var Jt=Ze.length,Vt=He.length;Vt<Jt;Vt+=1){var Kt,Ht=Ze[Vt],tn=we(Ht);Ue.set(tn,Vt);var It=(Kt=be.get(tn))!==null&&Kt!==void 0?Kt:Ke;if(He[Vt]=(He[Vt-1]||0)+It,tn===ct&&(ft=Vt),tn===yt&&(Mt=Vt),ft!==void 0&&Mt!==void 0)break}return{top:He[ft-1]||0,bottom:He[Mt]}};return Ve}var Ne=Ge(52884),Be=Ge(95727),ze=function(){function Ze(){(0,Ne.Z)(this,Ze),(0,_e.Z)(this,"maps",void 0),(0,_e.Z)(this,"id",0),(0,_e.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Be.Z)(Ze,[{key:"set",value:function(be,Ke){this.maps[be]=Ke,this.id+=1,this.diffKeys.add(be)}},{key:"get",value:function(be){return this.maps[be]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Ze}(),Qe=ze;function $e(Ze){var we=parseFloat(Ze);return isNaN(we)?0:we}function Ye(Ze,we,be){var Ke=ve.useState(0),Xe=(0,Ie.Z)(Ke,2),Oe=Xe[0],Ue=Xe[1],He=(0,ve.useRef)(new Map),Ve=(0,ve.useRef)(new Qe),Je=(0,ve.useRef)(0);function ct(){Je.current+=1}function yt(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ct();var Jt=function(){var Ht=!1;He.current.forEach(function(tn,It){if(tn&&tn.offsetParent){var Dt=tn.offsetHeight,qt=getComputedStyle(tn),sn=qt.marginTop,xn=qt.marginBottom,Ln=$e(sn),Zn=$e(xn),Xn=Dt+Ln+Zn;Ve.current.get(It)!==Xn&&(Ve.current.set(It,Xn),Ht=!0)}}),Ht&&Ue(function(tn){return tn+1})};if(Mt)Jt();else{Je.current+=1;var Vt=Je.current;Promise.resolve().then(function(){Vt===Je.current&&Jt()})}}function ft(Mt,Jt){var Vt=Ze(Mt),Kt=He.current.get(Vt);Jt?(He.current.set(Vt,Jt),yt()):He.current.delete(Vt),!Kt!=!Jt&&(Jt?we==null||we(Mt):be==null||be(Mt))}return(0,ve.useEffect)(function(){return ct},[]),[ft,yt,Ve.current,Oe]}var at=14/15;function ut(Ze,we,be){var Ke=(0,ve.useRef)(!1),Xe=(0,ve.useRef)(0),Oe=(0,ve.useRef)(0),Ue=(0,ve.useRef)(null),He=(0,ve.useRef)(null),Ve,Je=function(Mt){if(Ke.current){var Jt=Math.ceil(Mt.touches[0].pageX),Vt=Math.ceil(Mt.touches[0].pageY),Kt=Xe.current-Jt,Ht=Oe.current-Vt,tn=Math.abs(Kt)>Math.abs(Ht);tn?Xe.current=Jt:Oe.current=Vt;var It=be(tn,tn?Kt:Ht,!1,Mt);It&&Mt.preventDefault(),clearInterval(He.current),It&&(He.current=setInterval(function(){tn?Kt*=at:Ht*=at;var Dt=Math.floor(tn?Kt:Ht);(!be(tn,Dt,!0)||Math.abs(Dt)<=.1)&&clearInterval(He.current)},16))}},ct=function(){Ke.current=!1,Ve()},yt=function(Mt){Ve(),Mt.touches.length===1&&!Ke.current&&(Ke.current=!0,Xe.current=Math.ceil(Mt.touches[0].pageX),Oe.current=Math.ceil(Mt.touches[0].pageY),Ue.current=Mt.target,Ue.current.addEventListener("touchmove",Je,{passive:!1}),Ue.current.addEventListener("touchend",ct,{passive:!0}))};Ve=function(){Ue.current&&(Ue.current.removeEventListener("touchmove",Je),Ue.current.removeEventListener("touchend",ct))},(0,Me.Z)(function(){return Ze&&we.current.addEventListener("touchstart",yt,{passive:!0}),function(){var ft;(ft=we.current)===null||ft===void 0||ft.removeEventListener("touchstart",yt),Ve(),clearInterval(He.current)}},[Ze])}function ht(Ze){return Math.floor(Math.pow(Ze,.5))}function Ct(Ze,we){var be="touches"in Ze?Ze.touches[0]:Ze;return be[we?"pageX":"pageY"]-window[we?"scrollX":"scrollY"]}function et(Ze,we,be){ve.useEffect(function(){var Ke=we.current;if(Ze&&Ke){var Xe=!1,Oe,Ue,He=function(){pe.Z.cancel(Oe)},Ve=function ft(){He(),Oe=(0,pe.Z)(function(){be(Ue),ft()})},Je=function(Mt){if(!Mt.target.draggable){var Jt=Mt;Jt._virtualHandled||(Jt._virtualHandled=!0,Xe=!0)}},ct=function(){Xe=!1,He()},yt=function(Mt){if(Xe){var Jt=Ct(Mt,!1),Vt=Ke.getBoundingClientRect(),Kt=Vt.top,Ht=Vt.bottom;if(Jt<=Kt){var tn=Kt-Jt;Ue=-ht(tn),Ve()}else if(Jt>=Ht){var It=Jt-Ht;Ue=ht(It),Ve()}else He()}};return Ke.addEventListener("mousedown",Je),Ke.ownerDocument.addEventListener("mouseup",ct),Ke.ownerDocument.addEventListener("mousemove",yt),function(){Ke.removeEventListener("mousedown",Je),Ke.ownerDocument.removeEventListener("mouseup",ct),Ke.ownerDocument.removeEventListener("mousemove",yt),He()}}},[Ze])}var it=10;function St(Ze,we,be,Ke,Xe,Oe,Ue,He){var Ve=ve.useRef(),Je=ve.useState(null),ct=(0,Ie.Z)(Je,2),yt=ct[0],ft=ct[1];return(0,Me.Z)(function(){if(yt&&yt.times<it){if(!Ze.current){ft(function(Lr){return(0,ie.Z)({},Lr)});return}Oe();var Mt=yt.targetAlign,Jt=yt.originAlign,Vt=yt.index,Kt=yt.offset,Ht=Ze.current.clientHeight,tn=!1,It=Mt,Dt=null;if(Ht){for(var qt=Mt||Jt,sn=0,xn=0,Ln=0,Zn=Math.min(we.length-1,Vt),Xn=0;Xn<=Zn;Xn+=1){var dr=Xe(we[Xn]);xn=sn;var fr=be.get(dr);Ln=xn+(fr===void 0?Ke:fr),sn=Ln}for(var pr=qt==="top"?Kt:Ht-Kt,Cr=Zn;Cr>=0;Cr-=1){var Yr=Xe(we[Cr]),ii=be.get(Yr);if(ii===void 0){tn=!0;break}if(pr-=ii,pr<=0)break}switch(qt){case"top":Dt=xn-Kt;break;case"bottom":Dt=Ln-Ht+Kt;break;default:{var jr=Ze.current.scrollTop,fi=jr+Ht;xn<jr?It="top":Ln>fi&&(It="bottom")}}Dt!==null&&Ue(Dt),Dt!==yt.lastTop&&(tn=!0)}tn&&ft((0,ie.Z)((0,ie.Z)({},yt),{},{times:yt.times+1,targetAlign:It,lastTop:Dt}))}},[yt,Ze.current]),function(Mt){if(Mt==null){He();return}if(pe.Z.cancel(Ve.current),typeof Mt=="number")Ue(Mt);else if(Mt&&(0,vt.Z)(Mt)==="object"){var Jt,Vt=Mt.align;"index"in Mt?Jt=Mt.index:Jt=we.findIndex(function(tn){return Xe(tn)===Mt.key});var Kt=Mt.offset,Ht=Kt===void 0?0:Kt;ft({times:0,index:Jt,offset:Ht,originAlign:Vt})}}}var bt=ve.forwardRef(function(Ze,we){var be=Ze.prefixCls,Ke=Ze.rtl,Xe=Ze.scrollOffset,Oe=Ze.scrollRange,Ue=Ze.onStartMove,He=Ze.onStopMove,Ve=Ze.onScroll,Je=Ze.horizontal,ct=Ze.spinSize,yt=Ze.containerSize,ft=Ze.style,Mt=Ze.thumbStyle,Jt=Ze.showScrollBar,Vt=ve.useState(!1),Kt=(0,Ie.Z)(Vt,2),Ht=Kt[0],tn=Kt[1],It=ve.useState(null),Dt=(0,Ie.Z)(It,2),qt=Dt[0],sn=Dt[1],xn=ve.useState(null),Ln=(0,Ie.Z)(xn,2),Zn=Ln[0],Xn=Ln[1],dr=!Ke,fr=ve.useRef(),pr=ve.useRef(),Cr=ve.useState(Jt),Yr=(0,Ie.Z)(Cr,2),ii=Yr[0],jr=Yr[1],fi=ve.useRef(),Lr=function(){Jt===!0||Jt===!1||(clearTimeout(fi.current),jr(!0),fi.current=setTimeout(function(){jr(!1)},3e3))},ot=Oe-yt||0,oi=yt-ct||0,yi=ve.useMemo(function(){if(Xe===0||ot===0)return 0;var Ot=Xe/ot;return Ot*oi},[Xe,ot,oi]),Pi=function(gn){gn.stopPropagation(),gn.preventDefault()},sr=ve.useRef({top:yi,dragging:Ht,pageY:qt,startTop:Zn});sr.current={top:yi,dragging:Ht,pageY:qt,startTop:Zn};var Ar=function(gn){tn(!0),sn(Ct(gn,Je)),Xn(sr.current.top),Ue(),gn.stopPropagation(),gn.preventDefault()};ve.useEffect(function(){var Ot=function(zt){zt.preventDefault()},gn=fr.current,Nn=pr.current;return gn.addEventListener("touchstart",Ot,{passive:!1}),Nn.addEventListener("touchstart",Ar,{passive:!1}),function(){gn.removeEventListener("touchstart",Ot),Nn.removeEventListener("touchstart",Ar)}},[]);var Fr=ve.useRef();Fr.current=ot;var Si=ve.useRef();Si.current=oi,ve.useEffect(function(){if(Ht){var Ot,gn=function(zt){var Pn=sr.current,_n=Pn.dragging,qn=Pn.pageY,Yn=Pn.startTop;pe.Z.cancel(Ot);var $t=fr.current.getBoundingClientRect(),jn=yt/(Je?$t.width:$t.height);if(_n){var Wn=(Ct(zt,Je)-qn)*jn,or=Yn;!dr&&Je?or-=Wn:or+=Wn;var nn=Fr.current,Cn=Si.current,rn=Cn?or/Cn:0,mn=Math.ceil(rn*nn);mn=Math.max(mn,0),mn=Math.min(mn,nn),Ot=(0,pe.Z)(function(){Ve(mn,Je)})}},Nn=function(){tn(!1),He()};return window.addEventListener("mousemove",gn,{passive:!0}),window.addEventListener("touchmove",gn,{passive:!0}),window.addEventListener("mouseup",Nn,{passive:!0}),window.addEventListener("touchend",Nn,{passive:!0}),function(){window.removeEventListener("mousemove",gn),window.removeEventListener("touchmove",gn),window.removeEventListener("mouseup",Nn),window.removeEventListener("touchend",Nn),pe.Z.cancel(Ot)}}},[Ht]),ve.useEffect(function(){return Lr(),function(){clearTimeout(fi.current)}},[Xe]),ve.useImperativeHandle(we,function(){return{delayHidden:Lr}});var Nr="".concat(be,"-scrollbar"),hn={position:"absolute",visibility:ii?null:"hidden"},cn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Je?(hn.height=8,hn.left=0,hn.right=0,hn.bottom=0,cn.height="100%",cn.width=ct,dr?cn.left=yi:cn.right=yi):(hn.width=8,hn.top=0,hn.bottom=0,dr?hn.right=0:hn.left=0,cn.width="100%",cn.height=ct,cn.top=yi),ve.createElement("div",{ref:fr,className:Pe()(Nr,(0,_e.Z)((0,_e.Z)((0,_e.Z)({},"".concat(Nr,"-horizontal"),Je),"".concat(Nr,"-vertical"),!Je),"".concat(Nr,"-visible"),ii)),style:(0,ie.Z)((0,ie.Z)({},hn),ft),onMouseDown:Pi,onMouseMove:Lr},ve.createElement("div",{ref:pr,className:Pe()("".concat(Nr,"-thumb"),(0,_e.Z)({},"".concat(Nr,"-thumb-moving"),Ht)),style:(0,ie.Z)((0,ie.Z)({},cn),Mt),onMouseDown:Ar}))}),Pt=bt,gt=20;function dt(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,be=Ze/we*Ze;return isNaN(be)&&(be=0),be=Math.max(be,gt),Math.floor(be)}var mt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],kt=[],Et={overflowY:"auto",overflowAnchor:"none"};function Ut(Ze,we){var be=Ze.prefixCls,Ke=be===void 0?"rc-virtual-list":be,Xe=Ze.className,Oe=Ze.height,Ue=Ze.itemHeight,He=Ze.fullHeight,Ve=He===void 0?!0:He,Je=Ze.style,ct=Ze.data,yt=Ze.children,ft=Ze.itemKey,Mt=Ze.virtual,Jt=Ze.direction,Vt=Ze.scrollWidth,Kt=Ze.component,Ht=Kt===void 0?"div":Kt,tn=Ze.onScroll,It=Ze.onVirtualScroll,Dt=Ze.onVisibleChange,qt=Ze.innerProps,sn=Ze.extraRender,xn=Ze.styles,Ln=Ze.showScrollBar,Zn=Ln===void 0?"optional":Ln,Xn=(0,ge.Z)(Ze,mt),dr=ve.useCallback(function(zr){return typeof ft=="function"?ft(zr):zr==null?void 0:zr[ft]},[ft]),fr=Ye(dr,null,null),pr=(0,Ie.Z)(fr,4),Cr=pr[0],Yr=pr[1],ii=pr[2],jr=pr[3],fi=!!(Mt!==!1&&Oe&&Ue),Lr=ve.useMemo(function(){return Object.values(ii.maps).reduce(function(zr,Vr){return zr+Vr},0)},[ii.id,ii.maps]),ot=fi&&ct&&(Math.max(Ue*ct.length,Lr)>Oe||!!Vt),oi=Jt==="rtl",yi=Pe()(Ke,(0,_e.Z)({},"".concat(Ke,"-rtl"),oi),Xe),Pi=ct||kt,sr=(0,ve.useRef)(),Ar=(0,ve.useRef)(),Fr=(0,ve.useRef)(),Si=(0,ve.useState)(0),Nr=(0,Ie.Z)(Si,2),hn=Nr[0],cn=Nr[1],Ot=(0,ve.useState)(0),gn=(0,Ie.Z)(Ot,2),Nn=gn[0],Xt=gn[1],zt=(0,ve.useState)(!1),Pn=(0,Ie.Z)(zt,2),_n=Pn[0],qn=Pn[1],Yn=function(){qn(!0)},$t=function(){qn(!1)},jn={getKey:dr};function Wn(zr){cn(function(Vr){var Ci;typeof zr=="function"?Ci=zr(Vr):Ci=zr;var mi=Kr(Ci);return sr.current.scrollTop=mi,mi})}var or=(0,ve.useRef)({start:0,end:Pi.length}),nn=(0,ve.useRef)(),Cn=ue(Pi,dr),rn=(0,Ie.Z)(Cn,1),mn=rn[0];nn.current=mn;var En=ve.useMemo(function(){if(!fi)return{scrollHeight:void 0,start:0,end:Pi.length-1,offset:void 0};if(!ot){var zr;return{scrollHeight:((zr=Ar.current)===null||zr===void 0?void 0:zr.offsetHeight)||0,start:0,end:Pi.length-1,offset:void 0}}for(var Vr=0,Ci,mi,Vi,io=Pi.length,Hr=0;Hr<io;Hr+=1){var Er=Pi[Hr],Kn=dr(Er),li=ii.get(Kn),Qi=Vr+(li===void 0?Ue:li);Qi>=hn&&Ci===void 0&&(Ci=Hr,mi=Vr),Qi>hn+Oe&&Vi===void 0&&(Vi=Hr),Vr=Qi}return Ci===void 0&&(Ci=0,mi=0,Vi=Math.ceil(Oe/Ue)),Vi===void 0&&(Vi=Pi.length-1),Vi=Math.min(Vi+1,Pi.length-1),{scrollHeight:Vr,start:Ci,end:Vi,offset:mi}},[ot,fi,hn,Pi,jr,Oe]),pn=En.scrollHeight,kn=En.start,Mn=En.end,zn=En.offset;or.current.start=kn,or.current.end=Mn,ve.useLayoutEffect(function(){var zr=ii.getRecord();if(zr.size===1){var Vr=Array.from(zr)[0],Ci=Pi[kn];if(Ci){var mi=dr(Ci);if(mi===Vr){var Vi=ii.get(Vr),io=Vi-Ue;Wn(function(Hr){return Hr+io})}}}ii.resetRecord()},[pn]);var Dn=ve.useState({width:0,height:Oe}),ar=(0,Ie.Z)(Dn,2),dn=ar[0],Or=ar[1],Jr=function(Vr){Or({width:Vr.offsetWidth,height:Vr.offsetHeight})},Rr=(0,ve.useRef)(),vn=(0,ve.useRef)(),Jn=ve.useMemo(function(){return dt(dn.width,Vt)},[dn.width,Vt]),lr=ve.useMemo(function(){return dt(dn.height,pn)},[dn.height,pn]),vr=pn-Oe,Sr=(0,ve.useRef)(vr);Sr.current=vr;function Kr(zr){var Vr=zr;return Number.isNaN(Sr.current)||(Vr=Math.min(Vr,Sr.current)),Vr=Math.max(Vr,0),Vr}var ai=hn<=0,Br=hn>=vr,br=Nn<=0,si=Nn>=Vt,Tn=Fe(ai,Br,br,si),Ri=function(){return{x:oi?-Nn:Nn,y:hn}},On=(0,ve.useRef)(Ri()),pi=(0,ye.useEvent)(function(zr){if(It){var Vr=(0,ie.Z)((0,ie.Z)({},Ri()),zr);(On.current.x!==Vr.x||On.current.y!==Vr.y)&&(It(Vr),On.current=Vr)}});function xo(zr,Vr){var Ci=zr;Vr?((0,xe.flushSync)(function(){Xt(Ci)}),pi()):Wn(Ci)}function zi(zr){var Vr=zr.currentTarget.scrollTop;Vr!==hn&&Wn(Vr),tn==null||tn(zr),pi()}var Lo=function(Vr){var Ci=Vr,mi=Vt?Vt-dn.width:0;return Ci=Math.max(Ci,0),Ci=Math.min(Ci,mi),Ci},yo=(0,ye.useEvent)(function(zr,Vr){Vr?((0,xe.flushSync)(function(){Xt(function(Ci){var mi=Ci+(oi?-zr:zr);return Lo(mi)})}),pi()):Wn(function(Ci){var mi=Ci+zr;return mi})}),Ur=Ae(fi,ai,Br,br,si,!!Vt,yo),Gr=(0,Ie.Z)(Ur,2),Mi=Gr[0],Hi=Gr[1];ut(fi,sr,function(zr,Vr,Ci,mi){var Vi=mi;return Tn(zr,Vr,Ci)?!1:!Vi||!Vi._virtualHandled?(Vi&&(Vi._virtualHandled=!0),Mi({preventDefault:function(){},deltaX:zr?Vr:0,deltaY:zr?0:Vr}),!0):!1}),et(ot,sr,function(zr){Wn(function(Vr){return Vr+zr})}),(0,Me.Z)(function(){function zr(Ci){var mi=ai&&Ci.detail<0,Vi=Br&&Ci.detail>0;fi&&!mi&&!Vi&&Ci.preventDefault()}var Vr=sr.current;return Vr.addEventListener("wheel",Mi,{passive:!1}),Vr.addEventListener("DOMMouseScroll",Hi,{passive:!0}),Vr.addEventListener("MozMousePixelScroll",zr,{passive:!1}),function(){Vr.removeEventListener("wheel",Mi),Vr.removeEventListener("DOMMouseScroll",Hi),Vr.removeEventListener("MozMousePixelScroll",zr)}},[fi,ai,Br]),(0,Me.Z)(function(){if(Vt){var zr=Lo(Nn);Xt(zr),pi({x:zr})}},[dn.width,Vt]);var cr=function(){var Vr,Ci;(Vr=Rr.current)===null||Vr===void 0||Vr.delayHidden(),(Ci=vn.current)===null||Ci===void 0||Ci.delayHidden()},Lt=St(sr,Pi,ii,Ue,dr,function(){return Yr(!0)},Wn,cr);ve.useImperativeHandle(we,function(){return{nativeElement:Fr.current,getScrollInfo:Ri,scrollTo:function(Vr){function Ci(mi){return mi&&(0,vt.Z)(mi)==="object"&&("left"in mi||"top"in mi)}Ci(Vr)?(Vr.left!==void 0&&Xt(Lo(Vr.left)),Lt(Vr.top)):Lt(Vr)}}}),(0,Me.Z)(function(){if(Dt){var zr=Pi.slice(kn,Mn+1);Dt(zr,Pi)}},[kn,Mn,Pi]);var Ii=je(Pi,dr,ii,Ue),_r=sn==null?void 0:sn({start:kn,end:Mn,virtual:ot,offsetX:Nn,offsetY:zn,rtl:oi,getSize:Ii}),Ir=ae(Pi,kn,Mn,Vt,Nn,Cr,yt,jn),_i=null;Oe&&(_i=(0,ie.Z)((0,_e.Z)({},Ve?"height":"maxHeight",Oe),Et),fi&&(_i.overflowY="hidden",Vt&&(_i.overflowX="hidden"),_n&&(_i.pointerEvents="none")));var Ji={};return oi&&(Ji.dir="rtl"),ve.createElement("div",(0,rt.Z)({ref:Fr,style:(0,ie.Z)((0,ie.Z)({},Je),{},{position:"relative"}),className:yi},Ji,Xn),ve.createElement(Ee.Z,{onResize:Jr},ve.createElement(Ht,{className:"".concat(Ke,"-holder"),style:_i,ref:sr,onScroll:zi,onMouseEnter:cr},ve.createElement(z,{prefixCls:Ke,height:pn,offsetX:Nn,offsetY:zn,scrollWidth:Vt,onInnerResize:Yr,ref:Ar,innerProps:qt,rtl:oi,extra:_r},Ir))),ot&&pn>Oe&&ve.createElement(Pt,{ref:Rr,prefixCls:Ke,scrollOffset:hn,scrollRange:pn,rtl:oi,onScroll:xo,onStartMove:Yn,onStopMove:$t,spinSize:lr,containerSize:dn.height,style:xn==null?void 0:xn.verticalScrollBar,thumbStyle:xn==null?void 0:xn.verticalScrollBarThumb,showScrollBar:Zn}),ot&&Vt>dn.width&&ve.createElement(Pt,{ref:vn,prefixCls:Ke,scrollOffset:Nn,scrollRange:Vt,rtl:oi,onScroll:xo,onStartMove:Yn,onStopMove:$t,spinSize:Jn,containerSize:dn.width,horizontal:!0,style:xn==null?void 0:xn.horizontalScrollBar,thumbStyle:xn==null?void 0:xn.horizontalScrollBarThumb,showScrollBar:Zn}))}var wt=ve.forwardRef(Ut);wt.displayName="List";var pt=wt,tt=pt},7062:function(bn,an,Ge){var rt=Ge(19637),vt=Ge(97573),ie=[Ge(96627)];bn.exports=rt.createStore(vt,ie)},96627:function(bn,an,Ge){bn.exports=rt;function rt(){return Ge(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(bn){return bn<10?"0"+bn:bn}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(bn){return rx_escapable.lastIndex=0,rx_escapable.test(bn)?'"'+bn.replace(rx_escapable,function(an){var Ge=meta[an];return typeof Ge=="string"?Ge:"\\u"+("0000"+an.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+bn+'"'}function str(bn,an){var Ge,rt,vt,ie,_e=gap,Ie,ge=an[bn];switch(ge&&typeof ge=="object"&&typeof ge.toJSON=="function"&&(ge=ge.toJSON(bn)),typeof rep=="function"&&(ge=rep.call(an,bn,ge)),typeof ge){case"string":return quote(ge);case"number":return isFinite(ge)?String(ge):"null";case"boolean":case"null":return String(ge);case"object":if(!ge)return"null";if(gap+=indent,Ie=[],Object.prototype.toString.apply(ge)==="[object Array]"){for(ie=ge.length,Ge=0;Ge<ie;Ge+=1)Ie[Ge]=str(Ge,ge)||"null";return vt=Ie.length===0?"[]":gap?`[
|
|
|
`+gap+Ie.join(`,
|
|
|
`+gap)+`
|
|
|
`+_e+"]":"["+Ie.join(",")+"]",gap=_e,vt}if(rep&&typeof rep=="object")for(ie=rep.length,Ge=0;Ge<ie;Ge+=1)typeof rep[Ge]=="string"&&(rt=rep[Ge],vt=str(rt,ge),vt&&Ie.push(quote(rt)+(gap?": ":":")+vt));else for(rt in ge)Object.prototype.hasOwnProperty.call(ge,rt)&&(vt=str(rt,ge),vt&&Ie.push(quote(rt)+(gap?": ":":")+vt));return vt=Ie.length===0?"{}":gap?`{
|
|
|
`+gap+Ie.join(`,
|
|
|
`+gap)+`
|
|
|
`+_e+"}":"{"+Ie.join(",")+"}",gap=_e,vt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(bn,an,Ge){var rt;if(gap="",indent="",typeof Ge=="number")for(rt=0;rt<Ge;rt+=1)indent+=" ";else typeof Ge=="string"&&(indent=Ge);if(rep=an,an&&typeof an!="function"&&(typeof an!="object"||typeof an.length!="number"))throw new Error("JSON.stringify");return str("",{"":bn})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(bn,an){var Ge,rt,vt=bn[an];if(vt&&typeof vt=="object")for(Ge in vt)Object.prototype.hasOwnProperty.call(vt,Ge)&&(rt=walk(vt,Ge),rt!==void 0?vt[Ge]=rt:delete vt[Ge]);return reviver.call(bn,an,vt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(bn){return"\\u"+("0000"+bn.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(bn,an,Ge){var rt=Ge(67039),vt=rt.slice,ie=rt.pluck,_e=rt.each,Ie=rt.bind,ge=rt.create,ce=rt.isList,Pe=rt.isFunction,Ee=rt.isObject;bn.exports={createStore:ve};var ye={version:"2.0.12",enabled:!1,get:function(xe,fe){var z=this.storage.read(this._namespacePrefix+xe);return this._deserialize(z,fe)},set:function(xe,fe){return fe===void 0?this.remove(xe):(this.storage.write(this._namespacePrefix+xe,this._serialize(fe)),fe)},remove:function(xe){this.storage.remove(this._namespacePrefix+xe)},each:function(xe){var fe=this;this.storage.each(function(z,ee){xe.call(fe,fe._deserialize(z),(ee||"").replace(fe._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(xe){return this._namespacePrefix=="__storejs_"+xe+"_"},createStore:function(){return ve.apply(this,arguments)},addPlugin:function(xe){this._addPlugin(xe)},namespace:function(xe){return ve(this.storage,this.plugins,xe)}};function Me(){var xe=typeof console=="undefined"?null:console;if(xe){var fe=xe.warn?xe.warn:xe.log;fe.apply(xe,arguments)}}function ve(xe,fe,z){z||(z=""),xe&&!ce(xe)&&(xe=[xe]),fe&&!ce(fe)&&(fe=[fe]);var ee=z?"__storejs_"+z+"_":"",ae=z?new RegExp("^"+ee):null,re=/^[a-zA-Z0-9_\-]*$/;if(!re.test(z))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var le={_namespacePrefix:ee,_namespaceRegexp:ae,_testStorage:function(pe){try{var Te="__storejs__test__";pe.write(Te,Te);var Ce=pe.read(Te)===Te;return pe.remove(Te),Ce}catch(Fe){return!1}},_assignPluginFnProp:function(pe,Te){var Ce=this[Te];this[Te]=function(){var Ae=vt(arguments,0),je=this;function Ne(){if(Ce)return _e(arguments,function(ze,Qe){Ae[Qe]=ze}),Ce.apply(je,Ae)}var Be=[Ne].concat(Ae);return pe.apply(je,Be)}},_serialize:function(pe){return JSON.stringify(pe)},_deserialize:function(pe,Te){if(!pe)return Te;var Ce="";try{Ce=JSON.parse(pe)}catch(Fe){Ce=pe}return Ce!==void 0?Ce:Te},_addStorage:function(pe){this.enabled||this._testStorage(pe)&&(this.storage=pe,this.enabled=!0)},_addPlugin:function(pe){var Te=this;if(ce(pe)){_e(pe,function(Ae){Te._addPlugin(Ae)});return}var Ce=ie(this.plugins,function(Ae){return pe===Ae});if(!Ce){if(this.plugins.push(pe),!Pe(pe))throw new Error("Plugins must be function values that return objects");var Fe=pe.call(this);if(!Ee(Fe))throw new Error("Plugins must return an object of function properties");_e(Fe,function(Ae,je){if(!Pe(Ae))throw new Error("Bad plugin property: "+je+" from plugin "+pe.name+". Plugins should only return functions.");Te._assignPluginFnProp(Ae,je)})}},addStorage:function(pe){Me("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(pe)}},ue=ge(le,ye,{plugins:[]});return ue.raw={},_e(ue,function(pe,Te){Pe(pe)&&(ue.raw[Te]=Ie(ue,pe))}),_e(xe,function(pe){ue._addStorage(pe)}),_e(fe,function(pe){ue._addPlugin(pe)}),ue}},67039:function(bn,an,Ge){var rt=Ie(),vt=ge(),ie=ce(),_e=typeof window!="undefined"?window:Ge.g;bn.exports={assign:rt,create:vt,trim:ie,bind:Pe,slice:Ee,each:ye,map:Me,pluck:ve,isList:xe,isFunction:fe,isObject:z,Global:_e};function Ie(){return Object.assign?Object.assign:function(ae,re,le,ue){for(var pe=1;pe<arguments.length;pe++)ye(Object(arguments[pe]),function(Te,Ce){ae[Ce]=Te});return ae}}function ge(){if(Object.create)return function(re,le,ue,pe){var Te=Ee(arguments,1);return rt.apply(this,[Object.create(re)].concat(Te))};{let ae=function(){};var ee=ae;return function(le,ue,pe,Te){var Ce=Ee(arguments,1);return ae.prototype=le,rt.apply(this,[new ae].concat(Ce))}}}function ce(){return String.prototype.trim?function(ae){return String.prototype.trim.call(ae)}:function(ae){return ae.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function Pe(ee,ae){return function(){return ae.apply(ee,Array.prototype.slice.call(arguments,0))}}function Ee(ee,ae){return Array.prototype.slice.call(ee,ae||0)}function ye(ee,ae){ve(ee,function(re,le){return ae(re,le),!1})}function Me(ee,ae){var re=xe(ee)?[]:{};return ve(ee,function(le,ue){return re[ue]=ae(le,ue),!1}),re}function ve(ee,ae){if(xe(ee)){for(var re=0;re<ee.length;re++)if(ae(ee[re],re))return ee[re]}else for(var le in ee)if(ee.hasOwnProperty(le)&&ae(ee[le],le))return ee[le]}function xe(ee){return ee!=null&&typeof ee!="function"&&typeof ee.length=="number"}function fe(ee){return ee&&{}.toString.call(ee)==="[object Function]"}function z(ee){return ee&&{}.toString.call(ee)==="[object Object]"}},97573:function(bn,an,Ge){bn.exports=[Ge(52496),Ge(16436),Ge(76673),Ge(35701),Ge(65578),Ge(65300)]},35701:function(bn,an,Ge){var rt=Ge(67039),vt=rt.Global,ie=rt.trim;bn.exports={name:"cookieStorage",read:Ie,write:ce,each:ge,remove:Pe,clearAll:Ee};var _e=vt.document;function Ie(Me){if(!Me||!ye(Me))return null;var ve="(?:^|.*;\\s*)"+escape(Me).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(_e.cookie.replace(new RegExp(ve),"$1"))}function ge(Me){for(var ve=_e.cookie.split(/; ?/g),xe=ve.length-1;xe>=0;xe--)if(ie(ve[xe])){var fe=ve[xe].split("="),z=unescape(fe[0]),ee=unescape(fe[1]);Me(ee,z)}}function ce(Me,ve){Me&&(_e.cookie=escape(Me)+"="+escape(ve)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function Pe(Me){!Me||!ye(Me)||(_e.cookie=escape(Me)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function Ee(){ge(function(Me,ve){Pe(ve)})}function ye(Me){return new RegExp("(?:^|;\\s*)"+escape(Me).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(_e.cookie)}},52496:function(bn,an,Ge){var rt=Ge(67039),vt=rt.Global;bn.exports={name:"localStorage",read:_e,write:Ie,each:ge,remove:ce,clearAll:Pe};function ie(){return vt.localStorage}function _e(Ee){return ie().getItem(Ee)}function Ie(Ee,ye){return ie().setItem(Ee,ye)}function ge(Ee){for(var ye=ie().length-1;ye>=0;ye--){var Me=ie().key(ye);Ee(_e(Me),Me)}}function ce(Ee){return ie().removeItem(Ee)}function Pe(){return ie().clear()}},65300:function(bn){bn.exports={name:"memoryStorage",read:Ge,write:rt,each:vt,remove:ie,clearAll:_e};var an={};function Ge(Ie){return an[Ie]}function rt(Ie,ge){an[Ie]=ge}function vt(Ie){for(var ge in an)an.hasOwnProperty(ge)&&Ie(an[ge],ge)}function ie(Ie){delete an[Ie]}function _e(Ie){an={}}},16436:function(bn,an,Ge){var rt=Ge(67039),vt=rt.Global;bn.exports={name:"oldFF-globalStorage",read:_e,write:Ie,each:ge,remove:ce,clearAll:Pe};var ie=vt.globalStorage;function _e(Ee){return ie[Ee]}function Ie(Ee,ye){ie[Ee]=ye}function ge(Ee){for(var ye=ie.length-1;ye>=0;ye--){var Me=ie.key(ye);Ee(ie[Me],Me)}}function ce(Ee){return ie.removeItem(Ee)}function Pe(){ge(function(Ee,ye){delete ie[Ee]})}},76673:function(bn,an,Ge){var rt=Ge(67039),vt=rt.Global;bn.exports={name:"oldIE-userDataStorage",write:ce,read:Pe,each:Ee,remove:ye,clearAll:Me};var ie="storejs",_e=vt.document,Ie=fe(),ge=(vt.navigator?vt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ce(z,ee){if(!ge){var ae=xe(z);Ie(function(re){re.setAttribute(ae,ee),re.save(ie)})}}function Pe(z){if(!ge){var ee=xe(z),ae=null;return Ie(function(re){ae=re.getAttribute(ee)}),ae}}function Ee(z){Ie(function(ee){for(var ae=ee.XMLDocument.documentElement.attributes,re=ae.length-1;re>=0;re--){var le=ae[re];z(ee.getAttribute(le.name),le.name)}})}function ye(z){var ee=xe(z);Ie(function(ae){ae.removeAttribute(ee),ae.save(ie)})}function Me(){Ie(function(z){var ee=z.XMLDocument.documentElement.attributes;z.load(ie);for(var ae=ee.length-1;ae>=0;ae--)z.removeAttribute(ee[ae].name);z.save(ie)})}var ve=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function xe(z){return z.replace(/^\d/,"___$&").replace(ve,"___")}function fe(){if(!_e||!_e.documentElement||!_e.documentElement.addBehavior)return null;var z="script",ee,ae,re;try{ae=new ActiveXObject("htmlfile"),ae.open(),ae.write("<"+z+">document.w=window</"+z+'><iframe src="/favicon.ico"></iframe>'),ae.close(),ee=ae.w.frames[0].document,re=ee.createElement("div")}catch(le){re=_e.createElement("div"),ee=_e.body}return function(le){var ue=[].slice.call(arguments,0);ue.unshift(re),ee.appendChild(re),re.addBehavior("#default#userData"),re.load(ie),le.apply(this,ue),ee.removeChild(re)}}},65578:function(bn,an,Ge){var rt=Ge(67039),vt=rt.Global;bn.exports={name:"sessionStorage",read:_e,write:Ie,each:ge,remove:ce,clearAll:Pe};function ie(){return vt.sessionStorage}function _e(Ee){return ie().getItem(Ee)}function Ie(Ee,ye){return ie().setItem(Ee,ye)}function ge(Ee){for(var ye=ie().length-1;ye>=0;ye--){var Me=ie().key(ye);Ee(_e(Me),Me)}}function ce(Ee){return ie().removeItem(Ee)}function Pe(){return ie().clear()}},93314:function(bn){"use strict";bn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});const rt=Ee=>typeof Ee=="object"&&Ee!=null&&Ee.nodeType===1,vt=(Ee,ye)=>(!ye||Ee!=="hidden")&&Ee!=="visible"&&Ee!=="clip",ie=(Ee,ye)=>{if(Ee.clientHeight<Ee.scrollHeight||Ee.clientWidth<Ee.scrollWidth){const Me=getComputedStyle(Ee,null);return vt(Me.overflowY,ye)||vt(Me.overflowX,ye)||(ve=>{const xe=(fe=>{if(!fe.ownerDocument||!fe.ownerDocument.defaultView)return null;try{return fe.ownerDocument.defaultView.frameElement}catch(z){return null}})(ve);return!!xe&&(xe.clientHeight<ve.scrollHeight||xe.clientWidth<ve.scrollWidth)})(Ee)}return!1},_e=(Ee,ye,Me,ve,xe,fe,z,ee)=>fe<Ee&&z>ye||fe>Ee&&z<ye?0:fe<=Ee&&ee<=Me||z>=ye&&ee>=Me?fe-Ee-ve:z>ye&&ee<Me||fe<Ee&&ee>Me?z-ye+xe:0,Ie=Ee=>{const ye=Ee.parentElement;return ye==null?Ee.getRootNode().host||null:ye},ge=(Ee,ye)=>{var Me,ve,xe,fe;if(typeof document=="undefined")return[];const{scrollMode:z,block:ee,inline:ae,boundary:re,skipOverflowHiddenElements:le}=ye,ue=typeof re=="function"?re:Pt=>Pt!==re;if(!rt(Ee))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,Te=[];let Ce=Ee;for(;rt(Ce)&&ue(Ce);){if(Ce=Ie(Ce),Ce===pe){Te.push(Ce);break}Ce!=null&&Ce===document.body&&ie(Ce)&&!ie(document.documentElement)||Ce!=null&&ie(Ce,le)&&Te.push(Ce)}const Fe=(ve=(Me=window.visualViewport)==null?void 0:Me.width)!=null?ve:innerWidth,Ae=(fe=(xe=window.visualViewport)==null?void 0:xe.height)!=null?fe:innerHeight,{scrollX:je,scrollY:Ne}=window,{height:Be,width:ze,top:Qe,right:$e,bottom:Ye,left:at}=Ee.getBoundingClientRect(),{top:ut,right:ht,bottom:Ct,left:et}=(Pt=>{const gt=window.getComputedStyle(Pt);return{top:parseFloat(gt.scrollMarginTop)||0,right:parseFloat(gt.scrollMarginRight)||0,bottom:parseFloat(gt.scrollMarginBottom)||0,left:parseFloat(gt.scrollMarginLeft)||0}})(Ee);let it=ee==="start"||ee==="nearest"?Qe-ut:ee==="end"?Ye+Ct:Qe+Be/2-ut+Ct,St=ae==="center"?at+ze/2-et+ht:ae==="end"?$e+ht:at-et;const bt=[];for(let Pt=0;Pt<Te.length;Pt++){const gt=Te[Pt],{height:dt,width:mt,top:kt,right:Et,bottom:Ut,left:wt}=gt.getBoundingClientRect();if(z==="if-needed"&&Qe>=0&&at>=0&&Ye<=Ae&&$e<=Fe&&(gt===pe&&!ie(gt)||Qe>=kt&&Ye<=Ut&&at>=wt&&$e<=Et))return bt;const pt=getComputedStyle(gt),tt=parseInt(pt.borderLeftWidth,10),Ze=parseInt(pt.borderTopWidth,10),we=parseInt(pt.borderRightWidth,10),be=parseInt(pt.borderBottomWidth,10);let Ke=0,Xe=0;const Oe="offsetWidth"in gt?gt.offsetWidth-gt.clientWidth-tt-we:0,Ue="offsetHeight"in gt?gt.offsetHeight-gt.clientHeight-Ze-be:0,He="offsetWidth"in gt?gt.offsetWidth===0?0:mt/gt.offsetWidth:0,Ve="offsetHeight"in gt?gt.offsetHeight===0?0:dt/gt.offsetHeight:0;if(pe===gt)Ke=ee==="start"?it:ee==="end"?it-Ae:ee==="nearest"?_e(Ne,Ne+Ae,Ae,Ze,be,Ne+it,Ne+it+Be,Be):it-Ae/2,Xe=ae==="start"?St:ae==="center"?St-Fe/2:ae==="end"?St-Fe:_e(je,je+Fe,Fe,tt,we,je+St,je+St+ze,ze),Ke=Math.max(0,Ke+Ne),Xe=Math.max(0,Xe+je);else{Ke=ee==="start"?it-kt-Ze:ee==="end"?it-Ut+be+Ue:ee==="nearest"?_e(kt,Ut,dt,Ze,be+Ue,it,it+Be,Be):it-(kt+dt/2)+Ue/2,Xe=ae==="start"?St-wt-tt:ae==="center"?St-(wt+mt/2)+Oe/2:ae==="end"?St-Et+we+Oe:_e(wt,Et,mt,tt,we+Oe,St,St+ze,ze);const{scrollLeft:Je,scrollTop:ct}=gt;Ke=Ve===0?0:Math.max(0,Math.min(ct+Ke/Ve,gt.scrollHeight-dt/Ve+Ue)),Xe=He===0?0:Math.max(0,Math.min(Je+Xe/He,gt.scrollWidth-mt/He+Oe)),it+=ct-Ke,St+=Je-Xe}bt.push({el:gt,top:Ke,left:Xe})}return bt},ce=Ee=>Ee===!1?{block:"end",inline:"nearest"}:(ye=>ye===Object(ye)&&Object.keys(ye).length!==0)(Ee)?Ee:{block:"start",inline:"nearest"};function Pe(Ee,ye){if(!Ee.isConnected||!(xe=>{let fe=xe;for(;fe&&fe.parentNode;){if(fe.parentNode===document)return!0;fe=fe.parentNode instanceof ShadowRoot?fe.parentNode.host:fe.parentNode}return!1})(Ee))return;const Me=(xe=>{const fe=window.getComputedStyle(xe);return{top:parseFloat(fe.scrollMarginTop)||0,right:parseFloat(fe.scrollMarginRight)||0,bottom:parseFloat(fe.scrollMarginBottom)||0,left:parseFloat(fe.scrollMarginLeft)||0}})(Ee);if((xe=>typeof xe=="object"&&typeof xe.behavior=="function")(ye))return ye.behavior(ge(Ee,ye));const ve=typeof ye=="boolean"||ye==null?void 0:ye.behavior;for(const{el:xe,top:fe,left:z}of ge(Ee,ce(ye))){const ee=fe-Me.top+Me.bottom,ae=z-Me.left+Me.right;xe.scroll({top:ee,left:ae,behavior:ve})}}}}]);
|