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

1397 lines
3.2 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[2413],{89489:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},59477:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},40001:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},26227:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},49198:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},41464:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},87169:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},73331:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},15277:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},52671:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},8657:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},56082:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},61481:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},33853:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},15075:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},43531:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},61485:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},38819:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},47472:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(ye,be){return xt.createElement(Oe.Z,(0,We.Z)({},ye,{ref:be,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce},37036:function(){"use strict"},88010:function(Nn,mn){"use strict";mn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},56615:function(Nn,mn){"use strict";mn.Z={modal:"modal___A9Ovz",colorBlue:"colorBlue___XSmR5",formWrap:"formWrap___wRvaA",flexRow:"flexRow___C40dc",flexColumn:"flexColumn___LkZfj",example:"example___bz7Hw",exampleImg:"exampleImg___gNkC_",colorOrange:"colorOrange___Ka6zf",uploader:"uploader___plQRr",uploadImg:"uploadImg___cjOpL",imageTip:"imageTip___p1_lZ",uploadTipIcon:"uploadTipIcon___SpsS2",uploadTip:"uploadTip___e9JlL",color05101a:"color05101a___CDEUv",viewLargerImg:"viewLargerImg___IclRX",footerWrap:"footerWrap___beWC6",note:"note___CXi9y",schoolHintWrap:"schoolHintWrap___Ma6ly",colorCDCDCD:"colorCDCDCD___D0UWo",color0152d9:"color0152d9___hF3Bb"}},93678:function(Nn,mn){"use strict";mn.Z={flex_box_center:"flex_box_center___fo_3c",flex_space_between:"flex_space_between___G46CO",flex_box_vertical_center:"flex_box_vertical_center___br3Kr",flex_box_center_end:"flex_box_center_end___Xdo94",flex_box_column:"flex_box_column___Bcnmr",wrp:"wrp___TY7QJ",bg:"bg___xiaSy",commonimg:"commonimg___a4R0Q",titlesize:"titlesize___Wdd_a",timesize:"timesize___OkfYO",flex1:"flex1___N6paY",buttonsize:"buttonsize___syL9V",myteam:"myteam___RTWAt",bootmdetail:"bootmdetail___taUGk",menuItem:"menuItem___Kww4S",flex6:"flex6___RuzJ4",spanprev:"spanprev___Cssg_",spannext:"spannext___jVFGE",divwidth:"divwidth___r5hE3",receiveclick:"receiveclick___BauOs",receivealready:"receivealready___Z7Wo0",bkfff:"bkfff___lHrcJ","ant-input":"ant-input___m4bn_",onediv:"onediv___xzZRa",onetop:"onetop___M4GfM",towdiv:"towdiv___yj3ds",towtop:"towtop___veKa4",threediv:"threediv___Ztz0D",threetop:"threetop___zDXIg",imgradius:"imgradius___r4uGN",prize:"prize___YNRD4",spanrightradius:"spanrightradius___tC6T5",bottomItem:"bottomItem___CHcMJ",myTeam:"myTeam___fm7KX",downloadpdf:"downloadpdf___a2NuA",pdfBut:"pdfBut___Drr6h",PerfectBut:"PerfectBut___wEhjV",PerfectCent:"PerfectCent___HD3Id",PerfectCentName:"PerfectCentName___smdJX",teamItem:"teamItem___mx2f3",dash:"dash___l6QH1",modal:"modal___yXh2H",maskText:"maskText___Tdh6h",box:"box___K2uQ4",open_style:"open_style___gLTB9",title_style:"title_style___j6zvN",colorhove:"colorhove___FKtzO"}},74413:function(){"use strict";function Nn(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(Nn.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(Nn.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(Nn.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(Nn.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 Nn))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 mn=[];function ze(fe,z){var ee=mn.pop();return ee===void 0?new go.Point(fe,z):(ee.x=fe,ee.y=z,ee)}function We(){var fe=mn.pop();return fe===void 0?new go.Point:fe}function xt(fe){mn.push(fe)}function oe(fe,z,ee,ae,re,le,ue,pe,Pe){Pe||(Pe=new go.Point);var we=fe-ee,Ne=re-ue,Ae=NaN,Te=NaN;if(we===0)if(Ne===0)fe===ee&&(Ae=fe,Te=z);else{var Me=(le-pe)/Ne,Be=le-Me*re;Ae=fe,Te=Me*Ae+Be}else if(Ne===0){var Re=(z-ae)/we,Qe=z-Re*fe;Ae=re,Te=Re*Ae+Qe}else{var Re=(z-ae)/we,Me=(le-pe)/Ne,Qe=z-Re*fe,Be=le-Me*re;Ae=(Be-Qe)/(Re-Me),Te=Re*Ae+Qe}return Pe.x=Ae,Pe.y=Te,Pe}function Ue(fe,z,ee,ae,re,le,ue,pe,Pe,we,Ne,Ae,Te,Me){var Be=1-Pe,Re=Pe,Qe=fe*Be+ee*Re,He=z*Be+ae*Re,$e=ee*Be+re*Re,qe=ae*Be+le*Re,ut=re*Be+ue*Re,ct=le*Be+pe*Re,yt=Qe*Be+$e*Re,_e=He*Be+qe*Re,st=$e*Be+ut*Re,pt=qe*Be+ct*Re,bt=yt*Be+st*Re,wt=_e*Be+pt*Re;we.x=Qe,we.y=He,Ne.x=yt,Ne.y=_e,Ae.x=bt,Ae.y=wt,Te.x=st,Te.y=pt,Me.x=ut,Me.y=ct}var Oe=new go.Spot(.156,.156),ve=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Nn("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=Oe,re.spot2=ve,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 Nn("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 Nn("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 Nn("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 Nn("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 Nn("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 Ce=[];function Ee(){var fe=Ce.pop();return fe===void 0?[]:fe}function ye(fe){fe.length=0,Ce.push(fe)}function be(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 me(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=be(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],Pe=z[ue+1],we=z[(ae+ue-1)%re],Ne=z[(ae+ue+le)%re];ee[ue*2]=pe,ee[ue*2+1]=oe(pe.x,pe.y,we.x,we.y,Pe.x,Pe.y,Ne.x,Ne.y,new go.Point)}return ee[ee.length]=ee[0],ye(z),ee}go.Shape.defineFigureGenerator("Pentagon",function(fe,z,ee){var ae=be(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=be(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=be(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=be(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=be(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=be(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=be(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=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<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=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<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=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<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=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<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=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<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=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<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 Nn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Nn("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 Nn("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=Oe,le.spot2=ve,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 Nn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Nn("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 Nn("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 Nn("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 Nn("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),Pe=ae-Math.min(Math.cos(pe)*ae/2,le),we=ae-Math.min(Math.sin(pe)*ae/2,ue),re=new go.Geometry,Ne=new go.PathFigure(Pe,0,!0);return re.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,z-Pe,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,z,we)),Ne.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,z,ee-we)),Ne.add(new go.PathSegment(go.PathSegment.Line,z-Pe,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,Pe,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,ee-we)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,we).close()),re}}),go.Shape.setFigureParameter("ThinX",0,new Nn("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 Nn("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 Nn("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,Pe=le*ce;return re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Pe+pe)*ee,(.5-Pe+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Pe+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Pe+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Pe+pe)*ee,(.5+Pe+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-Pe+ue)*z,(.5-le+pe)*ee,(.5-le+ue+.05)*z,(.5-Pe+pe-.02)*ee)),le=.2,ue=0,pe=-.3,Pe=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Pe+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Pe+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Pe+pe)*ee,(.5+Pe+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Pe+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Pe+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Pe+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Pe+pe)*ee,(.5-Pe+ue)*z,(.5+le+pe)*ee)),le=.2,ue=-.3,pe=0,Pe=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue-.05)*z,(.5-Pe+pe-.02)*ee,(.5+Pe+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Pe+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Pe+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Pe+pe)*ee,(.5-Pe+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+Pe+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Pe+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,Pe=new go.PathFigure(ue*z,(pe-le)*ee);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Pe.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 we=We(),Ne=We(),Ae=We(),Te=We();Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.42,we,Ne,Ae,Te,Te);var Me=We(),Be=We(),Re=We();Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.58,Te,Te,Re,Me,Be);var Qe=We(),He=We(),$e=We();Ue(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.42,Qe,He,$e,Te,Te);var qe=We(),ut=We(),ct=We();return Ue(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.58,Te,Te,ct,qe,ut),Pe.add(new go.PathSegment(go.PathSegment.Move,ct.x*z,ct.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,qe.x*z,qe.y*ee,ut.x*z,ut.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Ae.x*z,Ae.y*ee,we.x*z,we.y*ee,Ne.x*z,Ne.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,ct.x*z,ct.y*ee).close()),Pe.add(new go.PathSegment(go.PathSegment.Move,$e.x*z,$e.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,Re.x*z,Re.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Me.x*z,Me.y*ee,Be.x*z,Be.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,$e.x*z,$e.y*ee,Qe.x*z,Qe.y*ee,He.x*z,He.y*ee).close()),xt(we),xt(Ne),xt(Ae),xt(Te),xt(Me),xt(Be),xt(Re),xt(Qe),xt(He),xt($e),xt(qe),xt(ut),xt(ct),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 Nn("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,Pe=We(),we=We(),Ne=We(),Ae=We(),Te=new go.PathFigure((ue-le)*z,pe*ee,!1);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)),Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.44,Ne,Ae,we,Pe,Pe),Te.add(new go.PathSegment(go.PathSegment.Bezier,we.x*z,we.y*ee,Ne.x*z,Ne.y*ee,Ae.x*z,Ae.y*ee));var Me=ze(we.x,we.y);Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.56,Pe,Pe,we,Ne,Ae);var Be=ze(we.x,we.y);Te.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.95*.9)*z,Me.y*.1*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.85*z,Me.y*.1*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),Te.add(new go.PathSegment(go.PathSegment.Line,z,0)),Te.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,.15*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,(Be.y*.1+.05*.9)*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,Be.x*z,Be.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ne.x*z,Ne.y*ee,Ae.x*z,Ae.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,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),le=.35,re=ce*.35;var Re=new go.PathFigure(ue*z,(pe-le)*ee,!1);ae.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Re.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),xt(Pe),xt(we),xt(Ne),xt(Ae),xt(Me),xt(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,Pe=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);ae.add(Pe),Pe.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)),Pe.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)),Pe.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)),Pe.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)),Pe.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),re=.325,le=0,ue=-.125,pe=re*ce;var Pe=new go.PathFigure((1-.5+re+le)*z,(.5+ue)*ee,!1);ae.add(Pe),Pe.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)),Pe.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)),Pe.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)),Pe.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 Pe=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);return ae.add(Pe),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 Nn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Nn("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,Pe=new go.Geometry,we=new go.PathFigure(0,ue,!0);Pe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,le,ue)),we.add(new go.PathSegment(go.PathSegment.Line,le,0)),we.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),we.add(new go.PathSegment(go.PathSegment.Line,le,ee)),we.add(new go.PathSegment(go.PathSegment.Line,le,pe)),we.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Pe.spot1=new go.Spot(0,ue/ee);var Ne=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,We());return Pe.spot2=new go.Spot(Ne.x,Ne.y),xt(Ne),Pe}),go.Shape.setFigureParameter("Arrow2",0,new Nn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Nn("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,Pe=new go.Geometry,we=new go.PathFigure(0,ue,!0);Pe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,le,ue)),we.add(new go.PathSegment(go.PathSegment.Line,le,0)),we.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),we.add(new go.PathSegment(go.PathSegment.Line,le,ee)),we.add(new go.PathSegment(go.PathSegment.Line,le,pe)),we.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Pe.spot1=new go.Spot(0,ue/ee);var Ne=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,We());return Pe.spot2=new go.Spot(Ne.x,Ne.y),xt(Ne),Pe}),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 Nn("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 Pe=oe(0,.5,.3,0,0,re/ee,.1,re/ee,We());return ue.spot1=new go.Spot(Pe.x,Pe.y),Pe=oe(.7,1,1,.5,0,le/ee,1,le/ee,Pe),ue.spot2=new go.Spot(Pe.x,Pe.y),xt(Pe),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Nn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Nn("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,Pe=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Pe=ee):(le=0,ue=ee,pe=0,Pe=ee));var we=new go.Geometry,Ne=new go.PathFigure(z,.5*ee,!0);we.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,Pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*z,Pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var Ae=oe(0,.5,.3,pe/ee,0,le/ee,1,le/ee,We());return we.spot1=new go.Spot(Ae.x,Ae.y),Ae=oe(.7,Pe/ee,1,.5,0,ue/ee,1,ue/ee,Ae),we.spot2=new go.Spot(Ae.x,Ae.y),xt(Ae),we}),go.Shape.setFigureParameter("IBeamArrow",0,new Nn("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 Pe=oe(.7,1,1,.5,0,le/ee,1,le/ee,We());return ue.spot2=new go.Spot(Pe.x,Pe.y),xt(Pe),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new Nn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Nn("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,Pe=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Pe=ee):(le=0,ue=ee,pe=0,Pe=ee));var we=new go.Geometry,Ne=new go.PathFigure(z,.5*ee,!0);we.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,Pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,Pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,Pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),we.spot1=new go.Spot(0,le/ee);var Ae=oe(.7,Pe/ee,1,.5,0,ue/ee,1,ue/ee,We());return we.spot2=new go.Spot(Ae.x,Ae.y),xt(Ae),we}),go.Shape.setFigureParameter("Pointer",0,new Nn("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=oe(.2,.65,1,.65,0,1,1,.5,We());return re.spot2=new go.Spot(ue.x,ue.y),xt(ue),re}),go.Shape.setFigureParameter("RoundedPointer",0,new Nn("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=oe(0,.65,1,.65,0,1,1,.5,We());return re.spot2=new go.Spot(ue.x,ue.y),xt(ue),re}),go.Shape.setFigureParameter("SplitEndArrow",0,new Nn("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 Pe=oe(.7,1,1,.5,0,le/ee,1,le/ee,We());return ue.spot2=new go.Spot(Pe.x,Pe.y),xt(Pe),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Nn("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 Pe=oe(.7,1,1,.5,0,le/ee,1,le/ee,We());return ue.spot2=new go.Spot(Pe.x,Pe.y),xt(Pe),ue}),go.Shape.setFigureParameter("SquareArrow",0,new Nn("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,Pe=.5,we=.1,Ne=new go.PathFigure(Pe*z,(we+le)*ee,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-re)*z,we*ee,(Pe-ue)*z,(we+le)*ee,(Pe-re)*z,(we+pe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we-le)*ee,(Pe-re)*z,(we-pe)*ee,(Pe-ue)*z,(we-le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+re)*z,we*ee,(Pe+ue)*z,(we-le)*ee,(Pe+re)*z,(we-pe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we+le)*ee,(Pe+re)*z,(we+pe)*ee,(Pe+ue)*z,(we+le)*ee));var Ae=.05,Te=ce*Ae;Pe=.05,we=.25;var Me=new go.PathFigure(.5*z,.2*ee,!0);return ae.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),Pe=.95,we=.25,Me.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+Ae)*z,we*ee,(Pe+Te)*z,(we-Ae)*ee,(Pe+Ae)*z,(we-Te)*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),Ae=.025,Te=ce*Ae,Pe=.825,we=.35,Me.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we-Ae)*ee,(Pe+Ae)*z,(we-Te)*ee,(Pe+Te)*z,(we-Ae)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-Ae)*z,we*ee,(Pe-Te)*z,(we-Ae)*ee,(Pe-Ae)*z,(we-Te)*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),Ae=.05,Te=ce*Ae,Pe=.5,we=.7,Me.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we-Ae)*ee,(Pe+Ae)*z,(we-Te)*ee,(Pe+Te)*z,(we-Ae)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-Ae)*z,we*ee,(Pe-Te)*z,(we-Ae)*ee,(Pe-Ae)*z,(we-Te)*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),Ae=.025,Te=ce*Ae,Pe=.175,we=.35,Me.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we-Ae)*ee,(Pe+Ae)*z,(we-Te)*ee,(Pe+Te)*z,(we-Ae)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-Ae)*z,we*ee,(Pe-Te)*z,(we-Ae)*ee,(Pe-Ae)*z,(we-Te)*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),Ae=.05,Te=ce*Ae,Pe=.05,we=.25,Me.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we-Ae)*ee,(Pe-Ae)*z,(we-Te)*ee,(Pe-Te)*z,(we-Ae)*ee)),Me.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 Nn("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,Pe=new go.PathFigure(z,pe*ee,!0);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,ee,z,(pe+ue)*ee,(pe+ue)*z,ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-ue)*z,ee,0,(pe+ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,0,0,(pe-ue)*ee,(pe-ue)*z,0)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z,pe*ee,(pe+ue)*z,0,z,(pe-ue)*ee));var we=new go.PathFigure((le+re)*z,(le+re)*ee,!1);return ae.add(we),we.add(new go.PathSegment(go.PathSegment.Line,le*z,le*ee)),we.add(new go.PathSegment(go.PathSegment.Move,le*z,(le+re)*ee)),we.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 Pe=new go.PathFigure(.8*z,.75*ee,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),Pe.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,Pe=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Pe),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,.8*z,.5*ee));var we=new go.PathFigure((ue+le)*z,pe*ee,!0);return ae.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),we.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,Pe=.9,we=.5,Ne=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+re)*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Ne.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((Pe+pe)*z,we*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we+pe)*ee,(Pe+pe)*z,(we+ue)*ee,(Pe+ue)*z,(we+pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-pe)*z,we*ee,(Pe-ue)*z,(we+pe)*ee,(Pe-pe)*z,(we+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we-pe)*ee,(Pe-pe)*z,(we-ue)*ee,(Pe-ue)*z,(we-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+pe)*z,we*ee,(Pe+ue)*z,(we-pe)*ee,(Pe+pe)*z,(we-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,Pe=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),Pe.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 we=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),we.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,Pe=new go.PathFigure(0,0,!0);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le+le)*z,(pe-re)*ee,.8*z,(pe-le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(pe+le)*ee,(ue+le+le)*z,(pe+re)*ee)),Pe.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,Pe=new go.PathFigure(.1*z,0,!1);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var we=new go.PathFigure(.8*z,.5*ee,!0);ae.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee)),we.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 Ne=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ne.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,Pe=new go.PathFigure(.1*z,0,!1);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var we=new go.PathFigure(.2*z,0,!0);return ae.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le)*z,(pe-re)*ee,.9*z,(pe-le)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.9*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),we.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,Pe=new go.PathFigure((ue-re*.5)*z,ee,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.3,Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.5,Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.7,Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.9,Pe.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,Pe=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Move,(ue-le+.1)*z,pe*ee)),Pe.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,Pe=0,we=.5,Ne=(re-z)/2,Ae=(le-ee)/2,Te=new go.PathFigure(Pe*z+Ne,(we+pe)*ee+Ae,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-pe)*z+Ne,we*ee+Ae,(Pe-ue)*z+Ne,(we+pe)*ee+Ae,(Pe-pe)*z+Ne,(we+ue)*ee+Ae)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z+Ne,(we-pe)*ee+Ae,(Pe-pe)*z+Ne,(we-ue)*ee+Ae,(Pe-ue)*z+Ne,(we-pe)*ee+Ae)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-pe+ue*.5)*z+Ne,we*ee+Ae,Pe*z+Ne,(we-pe)*ee+Ae,(Pe-pe+ue*.5)*z+Ne,(we-ue)*ee+Ae)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z+Ne,(we+pe)*ee+Ae,(Pe-pe+ue*.5)*z+Ne,(we+ue)*ee+Ae,Pe*z+Ne,(we+pe)*ee+Ae).close()),ue=ce*.4,pe=.4,Pe=.2,we=.5;var Me=new go.PathFigure(Pe*z+Ne,(we+pe)*ee+Ae,!0);ae.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-pe)*z+Ne,we*ee+Ae,(Pe-ue)*z+Ne,(we+pe)*ee+Ae,(Pe-pe)*z+Ne,(we+ue)*ee+Ae)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z+Ne,(we-pe)*ee+Ae,(Pe-pe)*z+Ne,(we-ue)*ee+Ae,(Pe-ue)*z+Ne,(we-pe)*ee+Ae)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-pe+ue*.5)*z+Ne,we*ee+Ae,Pe*z+Ne,(we-pe)*ee+Ae,(Pe-pe+ue*.5)*z+Ne,(we-ue)*ee+Ae)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z+Ne,(we+pe)*ee+Ae,(Pe-pe+ue*.5)*z+Ne,(we+ue)*ee+Ae,Pe*z+Ne,(we+pe)*ee+Ae).close()),ue=ce*.2,pe=.2,Pe=.5,we=.5;var Be=new go.PathFigure((Pe-pe)*z+Ne,we*ee+Ae,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z+Ne,(we-pe)*ee+Ae,(Pe-pe)*z+Ne,(we-ue)*ee+Ae,(Pe-ue)*z+Ne,(we-pe)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+pe)*z+Ne,we*ee+Ae,(Pe+ue)*z+Ne,(we-pe)*ee+Ae,(Pe+pe)*z+Ne,(we-ue)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z+Ne,(we+pe)*ee+Ae,(Pe+pe)*z+Ne,(we+ue)*ee+Ae,(Pe+ue)*z+Ne,(we+pe)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-pe)*z+Ne,we*ee+Ae,(Pe-ue)*z+Ne,(we+pe)*ee+Ae,(Pe-pe)*z+Ne,(we+ue)*ee+Ae)),ue=ce*.4,pe=.4,Pe=.8,we=.5;var Re=new go.PathFigure(Pe*z+Ne,(we-pe)*ee+Ae,!0);ae.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+pe)*z+Ne,we*ee+Ae,(Pe+ue)*z+Ne,(we-pe)*ee+Ae,(Pe+pe)*z+Ne,(we-ue)*ee+Ae)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z+Ne,(we+pe)*ee+Ae,(Pe+pe)*z+Ne,(we+ue)*ee+Ae,(Pe+ue)*z+Ne,(we+pe)*ee+Ae)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+pe-ue*.5)*z+Ne,we*ee+Ae,Pe*z+Ne,(we+pe)*ee+Ae,(Pe+pe-ue*.5)*z+Ne,(we+ue)*ee+Ae)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z+Ne,(we-pe)*ee+Ae,(Pe+pe-ue*.5)*z+Ne,(we-ue)*ee+Ae,Pe*z+Ne,(we-pe)*ee+Ae).close()),ue=ce*.8,pe=.8,Pe=1,we=.5;var Qe=new go.PathFigure(Pe*z+Ne,(we-pe)*ee+Ae,!0);return ae.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+pe)*z+Ne,we*ee+Ae,(Pe+ue)*z+Ne,(we-pe)*ee+Ae,(Pe+pe)*z+Ne,(we-ue)*ee+Ae)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z+Ne,(we+pe)*ee+Ae,(Pe+pe)*z+Ne,(we+ue)*ee+Ae,(Pe+ue)*z+Ne,(we+pe)*ee+Ae)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+pe-ue*.5)*z+Ne,we*ee+Ae,Pe*z+Ne,(we+pe)*ee+Ae,(Pe+pe-ue*.5)*z+Ne,(we+ue)*ee+Ae)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z+Ne,(we-pe)*ee+Ae,(Pe+pe-ue*.5)*z+Ne,(we-ue)*ee+Ae,Pe*z+Ne,(we-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,Pe=We(),we=We(),Ne=We(),Ae=We();Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Pe,Pe,we,Ne,Ae);var Te=ze(we.x,we.y),Me=new go.PathFigure(we.x*z,we.y*ee,!0);ae.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ne.x*z,Ne.y*ee,Ae.x*z,Ae.y*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ue(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Ne,Ae,we,Pe,Pe),Me.add(new go.PathSegment(go.PathSegment.Bezier,we.x*z,we.y*ee,Ne.x*z,Ne.y*ee,Ae.x*z,Ae.y*ee)),re=ce*.3,le=.3,Ue(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Ne,Ae,we,Pe,Pe),Me.add(new go.PathSegment(go.PathSegment.Line,we.x*z,we.y*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Ae.x*z,Ae.y*ee,Ne.x*z,Ne.y*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Pe,Pe,we,Ne,Ae),Me.add(new go.PathSegment(go.PathSegment.Bezier,we.x*z,we.y*ee,Ae.x*z,Ae.y*ee,Ne.x*z,Ne.y*ee).close());var Me=new go.PathFigure(.45*z,0,!0);return ae.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),xt(Pe),xt(we),xt(Ne),xt(Ae),xt(Te),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,Pe){ue.add(new go.PathSegment(go.PathSegment.Move,(.3+pe)*z,(.8+Pe)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.5+pe)*z,(.5+Pe)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.1+pe)*z,(.5+Pe)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.3+pe)*z,(.8+Pe)*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,Pe=.4*Math.SQRT2/2+.5,we=.5-.5*Math.SQRT2/2,Ne=1,Ae=.5,Te=.5,Me=0,Be=new go.PathFigure(Pe*z,(1-we)*ee,!1);return ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ne*z,Ae*ee,Ne*z,.7*ee,Ne*z,Ae*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Te+le)*z,(Me+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,Pe=ue,we=Math.PI/4,Ne=4*(1-Math.cos(we))/(3*Math.sin(we)),Ae=Ne*.5,Te=ue,Me=ue,Be=Ne*Te,Re=Ne*Me;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-Te)*z,Pe*ee,(pe-(Be+Te)/2)*z,(Pe+(Me+Re)/2)*ee,(pe-Te)*z,(Pe+Re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(Pe-Me)*ee,(pe-Te)*z,(Pe-Re)*ee,(pe-Be)*z,(Pe-Me)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+Te)*z,Pe*ee,(pe+Be)*z,(Pe-Me)*ee,(pe+Te)*z,(Pe-Re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+Te)*z,(Pe+Re)*ee,(pe+(Be+Te)/2)*z,(Pe+(Me+Re)/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 He=new go.PathFigure(.8*z,ee,!1);return ae.add(He),He.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,Pe=.2,we=.9,Ne=new go.PathFigure((Pe-ue)*z,we*ee,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we-ue)*ee,(Pe-ue)*z,(we-pe)*ee,(Pe-pe)*z,(we-ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ue)*z,we*ee,(Pe+pe)*z,(we-ue)*ee,(Pe+ue)*z,(we-pe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we+ue)*ee,(Pe+ue)*z,(we+pe)*ee,(Pe+pe)*z,(we+ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ue)*z,we*ee,(Pe-pe)*z,(we+ue)*ee,(Pe-ue)*z,(we+pe)*ee).close()),ue=.1,pe=ce*.1,Pe=.8,we=.9;var Ae=new go.PathFigure((Pe-ue)*z,we*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we-ue)*ee,(Pe-ue)*z,(we-pe)*ee,(Pe-pe)*z,(we-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ue)*z,we*ee,(Pe+pe)*z,(we-ue)*ee,(Pe+ue)*z,(we-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(we+ue)*ee,(Pe+ue)*z,(we+pe)*ee,(Pe+pe)*z,(we+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ue)*z,we*ee,(Pe-pe)*z,(we+ue)*ee,(Pe-ue)*z,(we+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 Pe=.1,we=ce*.1,Ne=.1,Ae=.9,Te=new go.PathFigure((Ne-Pe)*z,Ae*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ne*z,(Ae-Pe)*ee,(Ne-Pe)*z,(Ae-we)*ee,(Ne-we)*z,(Ae-Pe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ne+Pe)*z,Ae*ee,(Ne+we)*z,(Ae-Pe)*ee,(Ne+Pe)*z,(Ae-we)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ne*z,(Ae+Pe)*ee,(Ne+Pe)*z,(Ae+we)*ee,(Ne+we)*z,(Ae+Pe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ne-Pe)*z,Ae*ee,(Ne-we)*z,(Ae+Pe)*ee,(Ne-Pe)*z,(Ae+we)*ee)),Pe=.1,we=ce*.1,Ne=.4,Ae=.9;var Me=new go.PathFigure((Ne-Pe)*z,Ae*ee,!0);return ae.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,Ne*z,(Ae-Pe)*ee,(Ne-Pe)*z,(Ae-we)*ee,(Ne-we)*z,(Ae-Pe)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Ne+Pe)*z,Ae*ee,(Ne+we)*z,(Ae-Pe)*ee,(Ne+Pe)*z,(Ae-we)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Ne*z,(Ae+Pe)*ee,(Ne+Pe)*z,(Ae+we)*ee,(Ne+we)*z,(Ae+Pe)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Ne-Pe)*z,Ae*ee,(Ne-we)*z,(Ae+Pe)*ee,(Ne-Pe)*z,(Ae+we)*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 Ne=.05,Ae=ce*.05,Te=.175,Me=.95,pe=new go.PathFigure((Te-Ne)*z,Me*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Me-Ne)*ee,(Te-Ne)*z,(Me-Ae)*ee,(Te-Ae)*z,(Me-Ne)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ne)*z,Me*ee,(Te+Ae)*z,(Me-Ne)*ee,(Te+Ne)*z,(Me-Ae)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Me+Ne)*ee,(Te+Ne)*z,(Me+Ae)*ee,(Te+Ae)*z,(Me+Ne)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ne)*z,Me*ee,(Te-Ae)*z,(Me+Ne)*ee,(Te-Ne)*z,(Me+Ae)*ee));var Ne=.05,Ae=ce*.05,Te=.375,Me=.95,Pe=new go.PathFigure((Te-Ne)*z,Me*ee,!0);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Me-Ne)*ee,(Te-Ne)*z,(Me-Ae)*ee,(Te-Ae)*z,(Me-Ne)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ne)*z,Me*ee,(Te+Ae)*z,(Me-Ne)*ee,(Te+Ne)*z,(Me-Ae)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Me+Ne)*ee,(Te+Ne)*z,(Me+Ae)*ee,(Te+Ae)*z,(Me+Ne)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ne)*z,Me*ee,(Te-Ae)*z,(Me+Ne)*ee,(Te-Ne)*z,(Me+Ae)*ee));var Ne=.05,Ae=ce*.05,Te=.625,Me=.95,we=new go.PathFigure((Te-Ne)*z,Me*ee,!0);ae.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Me-Ne)*ee,(Te-Ne)*z,(Me-Ae)*ee,(Te-Ae)*z,(Me-Ne)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ne)*z,Me*ee,(Te+Ae)*z,(Me-Ne)*ee,(Te+Ne)*z,(Me-Ae)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Me+Ne)*ee,(Te+Ne)*z,(Me+Ae)*ee,(Te+Ae)*z,(Me+Ne)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ne)*z,Me*ee,(Te-Ae)*z,(Me+Ne)*ee,(Te-Ne)*z,(Me+Ae)*ee));var Ne=.05,Ae=ce*.05,Te=.825,Me=.95,Be=new go.PathFigure((Te-Ne)*z,Me*ee,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Me-Ne)*ee,(Te-Ne)*z,(Me-Ae)*ee,(Te-Ae)*z,(Me-Ne)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ne)*z,Me*ee,(Te+Ae)*z,(Me-Ne)*ee,(Te+Ne)*z,(Me-Ae)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Me+Ne)*ee,(Te+Ne)*z,(Me+Ae)*ee,(Te+Ae)*z,(Me+Ne)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ne)*z,Me*ee,(Te-Ae)*z,(Me+Ne)*ee,(Te-Ne)*z,(Me+Ae)*ee).close());var Re=new go.PathFigure(0,ee,!1);return ae.add(Re),Re.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,Pe=ce*.05,we=.35,Ne=.775,Ae=new go.PathFigure((we-pe)*z,Ne*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ne-pe)*ee,(we-pe)*z,(Ne-Pe)*ee,(we-Pe)*z,(Ne-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(we+pe)*z,Ne*ee,(we+Pe)*z,(Ne-pe)*ee,(we+pe)*z,(Ne-Pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ne+pe)*ee,(we+pe)*z,(Ne+Pe)*ee,(we+Pe)*z,(Ne+pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(we-pe)*z,Ne*ee,(we-Pe)*z,(Ne+pe)*ee,(we-pe)*z,(Ne+Pe)*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,Pe=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Pe.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 we=new go.PathFigure(0,.7*ee,!1);return ae.add(we),we.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,Pe=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Pe.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 we=new go.PathFigure(.15*z,.5*ee,!1);return ae.add(we),we.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,Pe=new go.PathFigure((ue-re)*z,pe*ee,!1);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Pe.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 we=new go.PathFigure((ue-re)*z,pe*ee,!1);return ae.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),we.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()),we.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,.75*z,.475*ee,.75*z,.225*ee)),we.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 Pe=new go.PathFigure(.5*z,.1*ee,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),Pe.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 Pe=new go.PathFigure(z*.816,ee,!0);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),Pe.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),Pe.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 Pe=new go.PathFigure(z*1,0,!0);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),Pe.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 Pe=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),Pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),Pe.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 Pe=new go.PathFigure(z*.83,ee*1,!1);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),Pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),Pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*1).close());var we=new go.PathFigure(z*.78,ee*.05,!1);return ae.add(we),we.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.05)),we.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.25)),we.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 Nn={},mn="5.0",ze={},We=null,xt=!1,oe=!1,Ue=null,Oe=!1,ve=null,ce=null,Ce=0;Ce<arguments.length;Ce++){var Ee=arguments[Ce];if(Ee!==null)switch(typeof Ee){case"number":mn=Ee.toFixed(1);break;case"string":Ee.match(new RegExp("^[0-9]\\.[0-9]+$"))?mn=Ee:Ue=Ee;break;case"object":typeof Ee.is3D!="undefined"?We=Ee:ze=Ee;break;case"boolean":xt=Ee,oe=!0;break}}We===null&&(We={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ze.material_id!==void 0&&!oe&&(xt=!0)),Ue!==null&&ze.id===void 0&&(ze.id=Ue);var ye="",be="",me=!1,xe=null,fe=null,z=null,ee=!1,ae=null,re=null,le=null,ue=null,pe=null;ze.height!==void 0&&(ze.height=Math.round(ze.height)),ze.width!==void 0&&(ze.width=Math.round(ze.width));var Pe=function(mt){return parseFloat(mt)>4?parseFloat(mt):5};Nn.setHTML5Codebase=function(mt,vt){ce=mt,pt(mt,vt)},Nn.setJavaCodebase=Nn.setJavaCodebaseVersion=Nn.isCompiledInstalled=Nn.setPreCompiledScriptPath=Nn.setPreCompiledResourcePath=function(){},Nn.setHTML5CodebaseVersion=function(mt,vt){var St=parseFloat(mt);if(St!==NaN&&St<5){console.log("The GeoGebra HTML5 codebase version "+St+" is deprecated. Using version latest instead.");return}ve=mt,st(mt,vt)},Nn.getHTML5CodebaseVersion=function(){return fe},Nn.getParameters=function(){return ze},Nn.setFontsCSSURL=function(mt){ue=mt},Nn.setGiacJSURL=function(mt){},Nn.setJNLPFile=function(mt){ye=mt},Nn.setJNLPBaseDir=function(mt){},Nn.inject=function(){function mt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var vt="auto",St=ze.id,Nt,Ft=!1,Kt=0;Kt<arguments.length;Kt++){var Pt=arguments[Kt];typeof Pt=="string"?(Pt=Pt.toLowerCase(),Pt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?vt=Pt:St=arguments[Kt]):typeof Pt=="boolean"?Ft=Pt:Pt instanceof HTMLElement&&(Nt=Pt)}Et();function Et(){if(!Oe){setTimeout(Et,200);return}vt=yt(vt);var at=Nt||document.getElementById(St);if(!at){console.log("possibly bug on ajax loading? ");return}if(Nn.removeExistingApplet(at,!1),ze.width===void 0&&at.clientWidth&&(ze.width=at.clientWidth),ze.height===void 0&&at.clientHeight&&(ze.height=at.clientHeight),!(ze.width&&ze.height)&&vt==="html5"&&(delete ze.width,delete ze.height),xe=vt,vt==="screenshot")He(at,ze);else{var Ct=!1;ze.hasOwnProperty("playButton")&&ze.playButton||ze.hasOwnProperty("clickToLoad")&&ze.clickToLoad?Ct=!0:ze.hasOwnProperty("playButtonAutoDecide")&&ze.playButtonAutoDecide&&(Ct=(!we()||mt())&&Ne()),Ct?(xe="screenshot",qe(at,ze,Ft,vt)):Qe(at,ze,Ft)}}};function we(){try{return window.self!==window.top}catch(mt){return!0}}function Ne(){return ze.hasOwnProperty("screenshotGenerator")&&ze.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Nn.getViews=function(){return We},Nn.isJavaInstalled=function(){return!1};var Ae=function(mt){var vt=function(Kt){var Pt=JSON.parse(Kt),Et=function(nt){return nt.type=="G"||nt.type=="E"},at=Pt.elements?Pt.elements.filter(Et)[0]:Pt;if(!at||!at.url){St();return}ze.fileName=at.url,Te(at.settings||{}),We.is3D=!0;var Ct="https://www.geogebra.org/images/";Nn.setPreviewImage(ae||at.previewUrl,Ct+"GeoGebra_loading.png",Ct+"applet_play.png"),mt()},St=function(){ze.onError&&ze.onError(),bt("Error: Fetching material (id "+ze.material_id+") failed.",ze)},Nt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ft="/materials/"+ze.material_id+"?scope=basic";Me("https://"+Nt+"/api/proxy.php?path="+encodeURIComponent(Ft),vt,St)};function Te(mt){var vt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(St){mt[St]=!!mt[St]}),vt.forEach(function(St){ze[St]===void 0&&mt[St]!==void 0&&(ze[St]=mt[St])}),ze.showToolBarHelp===void 0&&(ze.showToolBarHelp=ze.showToolBar)}function Me(mt,vt,St){var Nt=new XMLHttpRequest;Nt.open("GET",mt),Nt.onload=function(){vt(Nt.responseText)},Nt.onerror=St,Nt.send()}Nn.isHTML5Installed=function(){return!0},Nn.getLoadedAppletType=function(){return xe},Nn.setPreviewImage=function(mt,vt,St){ae=mt,re=vt,le=St},Nn.removeExistingApplet=function(mt,vt){var St;typeof mt=="string"&&(mt=document.getElementById(mt)),xe=null;var Nt=null;for(St=0;St<mt.childNodes.length;St++){var Ft=mt.childNodes[St],Kt=Ft.className;Kt==="applet_screenshot"?vt?(Ft.style.display="block",xe="screenshot"):Ft.style.display="none":Kt!=="applet_scaler prerender"&&(mt.removeChild(Ft),Nt=Kt&&Kt.indexOf("appletParameters")!=-1?Ft.id:null,St--)}var Pt=ze.id!==void 0?ze.id:Nt,Et=window[Pt];Et&&typeof Et.getBase64=="function"&&(Et.remove(),window[Pt]=null)},Nn.refreshHitPoints=function(){if(Pe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var mt=Nn.getAppletObject();return mt&&typeof mt.recalculateEnvironments=="function"?(mt.recalculateEnvironments(),!0):!1},Nn.startAnimation=function(){var mt=Nn.getAppletObject();return mt&&typeof mt.startAnimation=="function"?(mt.startAnimation(),!0):!1},Nn.stopAnimation=function(){var mt=Nn.getAppletObject();return mt&&typeof mt.stopAnimation=="function"?(mt.stopAnimation(),!0):!1},Nn.getAppletObject=function(){var mt=ze.id!==void 0?ze.id:"ggbApplet";return window[mt]},Nn.resize=function(){};var Be=function(mt,vt,St){var Nt=document.createElement("param");Nt.setAttribute("name",vt),Nt.setAttribute("value",St),mt.appendChild(Nt)},Re=function(mt){return mt&&mt!=="false"},Qe=function(mt,vt,St){Pe(fe)<=4.2&&(St=!0);var Nt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Nt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ft=document.createElement("div");Ft.classList.add("appletParameters","notranslate");var Kt=vt.width,Pt=vt.height;if(vt.disableAutoScale=vt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():vt.disableAutoScale,vt.width!==void 0)if(Pe(fe)<=4.4)Re(vt.showToolBar)&&(vt.height-=7),Re(vt.showAlgebraInput)&&(vt.height-=37),vt.width<605&&Re(vt.showToolBar)&&(vt.width=605,Kt=605);else{var Et=100;(Re(vt.showToolBar)||Re(vt.showMenuBar))&&(vt.hasOwnProperty("customToolBar")&&(vt.customToolbar=vt.customToolBar),Et=Re(vt.showMenuBar)?245:155),Kt<Et&&(vt.width=Et,Kt=Et)}Ft.style.border="none",Ft.style.display="inline-block";for(var at in vt)vt.hasOwnProperty(at)&&at!=="appletOnLoad"&&Ft.setAttribute("data-param-"+at,vt[at]);ue&&Ft.setAttribute("data-param-fontscssurl",ue),Nn.resize=function(){GGBAppletUtils.responsiveResize(mt,vt)},window.addEventListener("resize",function(De){Nn.resize()});var Ct=typeof vt.appletOnLoad=="function"?vt.appletOnLoad:function(){};if(!St&&vt.width!==void 0){vt.hasOwnProperty("showSplash")||Ft.setAttribute("data-param-showSplash","false");var nt=mt.querySelector(".applet_scaler.prerender"),ht=nt!==null;if(ht)var Mt=nt.querySelector(".ggb_preview");else{var Mt=ct(Kt,Pt,vt.borderColor,!1);nt=document.createElement("div"),nt.className="applet_scaler",nt.style.position="relative",nt.style.display="block",nt.style.width=Kt+"px",nt.style.height=Pt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(nt,"66%"),Pe(fe)>=5?(vt.appletOnLoad=function(De){var Ye=mt.querySelector(".ggb_preview");Ye&&Ye.parentNode.removeChild(Ye),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(nt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ct(De)},ht||nt.appendChild(Mt)):Ft.appendChild(Mt),nt.appendChild(Ft),ht||mt.appendChild(nt),setTimeout(function(){Nn.resize()},1)}else{var gt=document.createElement("div");gt.className="applet_scaler",gt.style.position="relative",gt.style.display="block",gt.appendChild(Ft),mt.appendChild(gt),vt.appletOnLoad=function(De){Nn.resize(),Ct(De)}}function rt(De,Ye){Ye&&typeof Ye.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(De,Ye.appletOnLoad):renderGGBElement(De),bt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ye)}function Je(De,Ye){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:De,params:Ye}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(dt){rt(dt.article,dt.params)}),html5AppletsToProcess=null)},Pe(fe)<5&&(De.className+=" geogebraweb")):rt(De,Ye)}if(Nt){scriptLoadStarted=!0;for(var Xe=0;Xe<Ft.childNodes.length;Xe++){var Ve=Ft.childNodes[Xe].tagName;Ve==="TABLE"&&(Ft.removeChild(Ft.childNodes[Xe]),Xe--)}if(ggbHTML5LoadedScript!==null){var tt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');tt!=null&&tt.parentNode.removeChild(tt)}var Ze=document.createElement("script"),je=function(){Je(Ft,vt)};Ze.src=be+z,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=fe,ggbHTML5LoadedScript=Ze.src,bt("GeoGebra HTML5 codebase loaded: '"+be+"'.",vt),!ce&&(!ve||ve=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),je()):be.requirejs?__webpack_require__.e(4184).then(function(){var De=[__webpack_require__(74620)];je.apply(null,De)}.bind(this)).catch(__webpack_require__.oe):(Ze.onload=je,mt.appendChild(Ze))}else Je(Ft,vt);vt.height=Pt,vt.width=Kt},He=function(mt,vt,St){var Nt=ct(vt.width,vt.height,vt.borderColor,St),Ft=document.createElement("div");Ft.style.position="relative",Ft.style.display="block",Ft.style.width=vt.width+"px",Ft.style.height=vt.height+"px",Ft.className="applet_screenshot applet_scaler"+(St?" applet_screenshot_play":""),Ft.appendChild(Nt);var Kt=GGBAppletUtils.getScale(vt,mt,St);St?(mt.appendChild(ut()),window.GGBT_wsf_view||(mt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ft,"66%"),mt.appendChild(Ft),Kt!==1&&!isNaN(Kt)&&(GGBAppletUtils.scaleElement(Ft,Kt),Ft.style.width=vt.width+"px",Ft.style.height=vt.height+"px",Ft.parentNode.style.width=vt.width*Kt+"px",Ft.parentNode.style.height=vt.height*Kt+"px"),Nn.resize=function(){$e(mt,Nt,Ft,St)},window.addEventListener("resize",function(Pt){Nn.resize()}),Nn.resize()};function $e(mt,vt,St,Nt){if(mt.contains(vt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(mt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(mt)}var Ft=GGBAppletUtils.getScale(ze,mt,Nt);St.parentNode!==null&&(!isNaN(Ft)&&Ft!==1?(GGBAppletUtils.scaleElement(St,Ft),St.parentNode.style.width=ze.width*Ft+"px",St.parentNode.style.height=ze.height*Ft+"px"):(GGBAppletUtils.scaleElement(St,1),St.parentNode.style.width=ze.width+"px",St.parentNode.style.height=ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(mt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Nn.onExitFullscreen=function(mt,vt){vt.appendChild(mt)};var qe=function(mt,vt,St,Nt){He(mt,vt,!0);for(var Ft=function(){var Et=[];for(Pt=0;Pt<mt.childNodes.length;Pt++)Et.push(mt.childNodes[Pt]);if(window.GGBT_wsf_view){var at=window.GGBT_wsf_view.renderFullScreen(mt,vt.id),Ct=document.getElementById("fullscreencontainer"),nt=jQuery(mt).find(".fullscreencontent");nt.length>0?(at.remove(),nt.attr("id","fullscreencontent").show(),jQuery(Ct).append(nt),window.dispatchEvent(new Event("resize"))):Qe(at,vt,!1),window.GGBT_wsf_view.launchFullScreen(Ct)}else xe=Nt,Qe(mt,vt,!1);if(!window.GGBT_wsf_view)for(Pt=0;Pt<Et.length;Pt++)mt.removeChild(Et[Pt])},Kt=mt.getElementsByClassName("ggb_preview_play"),Pt=0;Pt<Kt.length;Pt++)Kt[Pt].addEventListener("click",Ft,!1),Kt[Pt].addEventListener("ontouchstart",Ft,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(mt),Ne()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ut=function(){var mt=document.createElement("div");if(mt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var vt='.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");}',St=document.createElement("style");St.styleSheet?St.styleSheet.cssText=vt:St.appendChild(document.createTextNode(vt)),document.getElementsByTagName("head")[0].appendChild(St)}return mt},ct=function(mt,vt,St,Nt){var Ft=document.createElement("div");Ft.className="ggb_preview",Ft.style.position="absolute",Ft.style.zIndex="90",Ft.style.width=mt-2+"px",Ft.style.height=vt-2+"px",Ft.style.top="0px",Ft.style.left="0px",Ft.style.overflow="hidden",Ft.style.backgroundColor="white";var Kt="lightgrey";St!==void 0&&(St==="none"?Kt="transparent":Kt=St),Ft.style.border="1px solid "+Kt;var Pt=document.createElement("img");if(Pt.style.position="relative",Pt.style.zIndex="1000",Pt.style.top="-1px",Pt.style.left="-1px",ae!==null&&Pt.setAttribute("src",ae),Pt.style.opacity=.7,re!==null){var Et,at,Ct;if(!Nt){Et=document.createElement("img"),Et.style.position="absolute",Et.style.zIndex="1001",Et.style.opacity=1,Pt.style.opacity=.3,at=360,at>mt/4*3&&(at=mt/4*3),Ct=at/5.8,Et.setAttribute("src",re),Et.setAttribute("width",at),Et.setAttribute("height",Ct);var nt=(mt-at)/2,ht=(vt-Ct)/2;Et.style.left=nt+"px",Et.style.top=ht+"px",Ft.appendChild(Et)}}return Ft.appendChild(Pt),Ft},yt=function(mt){return mt=mt.toLowerCase(),mt==="html5"||mt==="screenshot"?mt:"html5"},_e=["web","webSimple","web3d","tablet","tablet3d","phone"],st=function(mt,vt){if(fe=mt,vt){pt(fe,!0);return}var St=!xt;if(St){var Nt=Pe(fe);!isNaN(Nt)&&Nt<4.4&&(St=!1)}var Ft,Kt;window.location.protocol.substr(0,4)==="http"?Ft=window.location.protocol:Ft="http:";var Pt=fe.indexOf("//");Pt>0?Kt=fe:Pt===0?Kt=Ft+fe:Kt="https://www.geogebra.org/apps/5.2.814.0/";for(var Et in _e)if(fe.slice(_e[Et].length*-1)===_e[Et]||fe.slice((_e[Et].length+1)*-1)===_e[Et]+"/"){pt(Kt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&St&&!We.is3D&&!We.AV&&!We.SV&&!We.CV&&!We.EV2&&!We.CP&&!We.PC&&!We.DA&&!We.FI&&!We.PV&&!Re(ze.showToolBar)&&!Re(ze.showMenuBar)&&!Re(ze.showAlgebraInput)&&!Re(ze.enableRightClick)&&(!ze.appName||ze.appName=="classic")?Kt+="webSimple/":Kt+="web3d/",pt(Kt,!1)},pt=function(mt,vt){if(mt.requirejs){be=mt;return}mt.slice(-1)!=="/"&&(mt+="/"),be=mt,vt===null&&(vt=mt.indexOf("http")===-1),me=vt,z="web.nocache.js",ee=!1;var St=be.split("/");St.length>1&&(!vt&&St[St.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):_e.indexOf(St[St.length-2])>=0&&(z=St[St.length-2]+".nocache.js")),St=mt.split("/"),fe=St[St.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 Nt=parseFloat(fe);Nt!==NaN&&Nt<5&&mt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Nt+" is deprecated. Using version latest instead."),st("5.0",vt))},bt=function(mt,vt){window.console&&window.console.log&&(!vt||typeof vt.showLogging=="undefined"||vt.showLogging&&vt.showLogging!=="false")&&console.log(mt)};ze.material_id!==void 0?Ae(wt):wt();function wt(){var mt=mn;ve!==null?mt=ve:parseFloat(mt)<5&&(mt="5.0"),st(mt,!1),ce!==null&&pt(ce,me),Oe=!0}return Nn},GGBAppletUtils=function(){"use strict";function Nn(){return window.GGBT_wsf_edit!==void 0}function mn(Oe,ve){ve!=1?(Oe.style.transformOrigin="0% 0% 0px",Oe.style.webkitTransformOrigin="0% 0% 0px",Oe.style.transform="scale("+ve+","+ve+")",Oe.style.webkitTransform="scale("+ve+","+ve+")",Oe.style.maxWidth="initial",Oe.querySelector(".ggb_preview")!==null&&(Oe.querySelector(".ggb_preview").style.maxWidth="initial"),Oe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Oe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Oe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Oe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Oe.style.transform="none",Oe.style.webkitTransform="none")}function ze(Oe,ve,ce,Ce,Ee,ye){var be=null;if(ye!=null&&ye!="")for(var me=Oe.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+ye+" ")>-1){be=me;break}else me=me.parentNode;var xe=0,fe=0,z=0,ee=0,ae=0,re=0,le=0;if(be)xe=be.offsetWidth,fe=Math.max(Ce?be.offsetWidth:0,be.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),Oe){var ue=Oe.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(Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=Oe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return Oe&&((ce===void 0||!ce)&&ve>0&&ve+ee<xe?xe=ve:xe-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(fe-=le)),{width:xe,height:fe}}function We(Oe,ve,ce,Ce,Ee){if(Oe.isScreenshoGenerator)return 1;var ye=Ce!==void 0&&Ce,be=Oe.noScaleMargin!=null&&Oe.noScaleMargin,me=function(pe){return pe&&pe!=="false"},xe=me(Oe.autoHeight),fe=ze(ve,Oe.width,ce,xe,ye&&window.GGBT_wsf_view||be,Ee),z=parseInt(fe.width),ee=Oe.width,ae=Oe.height;if(ee===void 0){var re=ve.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 xt(Oe,ve,ce){var Ce=1,Ee,ye=!1;if(Oe.hasOwnProperty("allowUpscale")&&(ye=Oe.allowUpscale),Oe.hasOwnProperty("scale")&&(Ce=parseFloat(Oe.scale),(isNaN(Ce)||Ce===null||Ce===0)&&(Ce=1),Ce>1&&(ye=!0)),ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ye=!0),!(Oe.hasOwnProperty("disableAutoScale")&&Oe.disableAutoScale))Ee=We(Oe,ve,ye,ce,Oe.scaleContainerClass);else return Ce;return ye&&(!Oe.hasOwnProperty("scale")||Ce===1)?Ee:Math.min(Ce,Ee)}function oe(Oe){var ve=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),Ce=Oe.getBoundingClientRect(),Ee=(ve-Ce.width)/2,ye=(ce-Ce.height)/2;ye<0&&(ye=0),Oe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee<40?Oe.style.left="40px":Oe.style.left=Ee+"px",Oe.style.top=ye+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ye<40?Oe.style.top="40px":Oe.style.top=ye+"px",Oe.style.left=Ee+"px")}function Ue(Oe,ve){var ce=Oe.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ve.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Oe)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var Ce=xt(ve,Oe);Nn()&&ce.setAttribute("data-param-scale",Ce);for(var Ee=null,ye=0;ye<Oe.childNodes.length;ye++)if(Oe.childNodes[ye].className!==void 0&&Oe.childNodes[ye].className.match(/^applet_scaler/)){Ee=Oe.childNodes[ye];break}if(Ee!==null&&Ee.querySelector(".noscale")!==null)return;var be=ve.id!==void 0?ve.id:"ggbApplet",me=window[be];(me==null||!me.recalculateEnvironments)&&Ee!==null&&!Ee.className.match(/fullscreen/)&&(Ee.parentNode.style.transform="",!isNaN(Ce)&&Ce!==1?(Ee.parentNode.style.width=ve.width*Ce+"px",Ee.parentNode.style.height=ve.height*Ce+"px",mn(Ee,Ce)):(mn(Ee,1),Ee.parentNode.style.width=ve.width+"px",Ee.parentNode.style.height=ve.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&oe(Oe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:Nn,positionCenter:oe,getScale:xt,scaleElement:mn}}();__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 Nn=n.location.search;return Nn.indexOf(J)!=-1||Nn.indexOf(K)!=-1}function q(Nn,mn){}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(Nn){var mn=s[L].bindings;s[L].bindings=function(){for(var ze=mn?mn():{},We=Nn[webModule.__softPermutationId],xt=O;xt<We.length;xt++){var oe=We[xt];ze[oe[O]]=oe[P]}return ze}};var t;function u(){return v(),t}function v(){if(!t){var Nn=o.createElement(Q);if(Nn.id=L,Nn.style.cssText=R+S,Nn.tabIndex=-1,o.body.appendChild(Nn),t=Nn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var mn=document.compatMode==U?V:W;t.write(mn+X),t.close()}}}function w(Nn){function mn(We){function xt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var oe=xt();if(oe){We();return}function Ue(){if(!oe){if(!xt())return;oe=!0,We(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),Oe&&clearInterval(Oe)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var Oe=setInterval(function(){Ue()},$)}function ze(We){var xt=u(),oe=xt.body,Ue=xt.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=We,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+We))}),oe.appendChild(Ue)}mn(function(){ze(Nn)})}webModule.__startLoadingFragment=function(Nn){return C(Nn)},webModule.__installRunAsyncCode=function(Nn){var mn=u(),ze=mn.body,We=mn.createElement(_);We.language=ab,We.text=Nn,ze.appendChild(We),ze.removeChild(We)};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(Nn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Nn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Nn){var mn=c[Nn];return mn==null?null:mn},r=d,webModule.__errFn=e}function B(){function Nn(Oe){var ve=Oe.lastIndexOf(rb);ve==-1&&(ve=Oe.length);var ce=Oe.indexOf(sb);ce==-1&&(ce=Oe.length);var Ce=Oe.lastIndexOf(tb,Math.min(ce,ve));return Ce>=O?Oe.substring(O,Ce+P):W}function mn(Oe){if(!Oe.match(/^\w+:\/\//)){var ve=o.createElement(ub);ve.src=Oe+vb,Oe=Nn(ve.src)}return Oe}function ze(){var Oe=__gwt_getMetaProperty(wb);return Oe!=null?Oe:W}function We(){for(var Oe=o.getElementsByTagName(_),ve=O;ve<Oe.length;++ve)if(Oe[ve].src.indexOf(xb)!=-1)return Nn(Oe[ve].src);return W}function xt(){var Oe=o.getElementsByTagName(yb);return Oe.length>O?Oe[Oe.length-P].href:W}function oe(){var Oe=o.location;return Oe.href==Oe.protocol+zb+Oe.host+Oe.pathname+Oe.search+Oe.hash}var Ue=ze();return Ue==W&&(Ue=We()),Ue==W&&(Ue=xt()),Ue==W&&oe()&&(Ue=Nn(o.location.href)),Ue=mn(Ue),Ue}function C(Nn){return Nn.match(/^\//)||Nn.match(/^[a-zA-Z]+:\/\//)?Nn:webModule.__moduleBase+Nn}function D(){var Nn=[],mn=O,ze=[],We=[];function xt(Oe){var ve=We[Oe](),ce=ze[Oe];if(ve in ce)return ve;var Ce=[];for(var Ee in ce)Ce[ce[Ee]]=Ee;throw r&&r(Oe,Ce,ve),null}if(__gwt_isKnownPropertyValue=function(Oe,ve){return ve in ze[Oe]},webModule.__getPropMap=function(){var Oe={};for(var ve in ze)ze.hasOwnProperty(ve)&&(Oe[ve]=xt(ve));return Oe},webModule.__computePropValue=xt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var oe;try{oe=Cb;var Ue=oe.indexOf(Db);Ue!=-1&&(mn=parseInt(oe.substring(Ue+P),$),oe=oe.substring(O,Ue))}catch(Oe){}return webModule.__softPermutationId=mn,C(oe+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(Nn,mn,ze){"use strict";ze.d(mn,{Ax:function(){return Ue},Ds:function(){return Oe},KI:function(){return ce},SI:function(){return oe},f1:function(){return xt}});var We=ze(3294);function xt(Ce){let Ee=!0;if(Ce.length>0){for(let ye=0;ye<Ce.length;ye++)if(Ce[ye].compile_success==0||!Ce[ye].compile_success){Ee=!1;break}}else Ee=!1;return Ee}function oe(Ce,Ee=""){let ye=[];for(let be=0;be<Ce.length;be++){let me=Ce[be],xe=Ee?`${Ee}/${me.name}`:`${me.name}`;ye.push({title:me.name,type:me.type,isLeaf:me.type!=="tree",key:xe})}return ye}function Ue(Ce,Ee,ye){for(let be=0;be<Ce.length;be++){let me=Ce[be];if(me.key===Ee){me.children=ye;break}me.children&&Ue(me.children,Ee,ye)}return Ce}function Oe(Ce,Ee,ye){let be;return function(){let me=this,xe=arguments,fe=function(){be=null,ye||Ce.apply(me,xe)},z=ye&&!be;clearTimeout(be),be=setTimeout(fe,Ee),z&&Ce.apply(me,xe)}}const ve=!0,ce=We.Z.API_SERVER},60302:function(Nn,mn,ze){"use strict";var We=ze(59301),xt=ze(89070),oe=ze(92832),Ue=ze(78241),Oe=ze(8591),ve=ze(43418),ce=ze(1710),Ce=ze(99064),Ee=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,me=(ee,ae)=>{var re={};for(var le in ee)ye.call(ee,le)&&ae.indexOf(le)<0&&(re[le]=ee[le]);if(ee!=null&&Ee)for(var le of Ee(ee))ae.indexOf(le)<0&&be.call(ee,le)&&(re[le]=ee[le]);return re},xe=(ee,ae,re)=>new Promise((le,ue)=>{var pe=Ne=>{try{we(re.next(Ne))}catch(Ae){ue(Ae)}},Pe=Ne=>{try{we(re.throw(Ne))}catch(Ae){ue(Ae)}},we=Ne=>Ne.done?le(Ne.value):Promise.resolve(Ne.value).then(pe,Pe);we((re=re.apply(ee,ae)).next())});const fe=oe.default.TextArea,z=ee=>{var ae=ee,{account:re,globalSetting:le,loading:ue,dispatch:pe,schoolName:Pe,departmentName:we,visible:Ne,onClose:Ae=()=>{},onSuccess:Te=()=>{}}=ae,Me=me(ae,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]);const[Be]=Ue.default.useForm(),Re=(0,We.useRef)(),[Qe,He]=(0,We.useState)(!1);(0,We.useEffect)(()=>{Re.current=Me.schoolId},[Me.schoolId]),(0,We.useEffect)(()=>{Be.setFieldsValue({department:we})},[we]);const $e=qe=>xe(void 0,null,function*(){var ut,ct,yt;const{department:_e,remarks:st}=qe||{};He(!0);const pt=yield(0,Ce.ZP)("/api/add_department_applies/inspect.json",{method:"get",params:{name:_e,school_id:Re.current}});He(!1);const bt=()=>xe(void 0,null,function*(){const wt=yield pe({type:"account/appplyDepartment",payload:{school_id:Re.current,name:_e,remarks:st}});(wt==null?void 0:wt.status)===0&&(Oe.ZP.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),Te(_e),Ae())});if((pt==null?void 0:pt.status)===0){if((ut=pt==null?void 0:pt.data)!=null&&ut.name){ve.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:We.createElement("div",null,We.createElement("div",{className:"mb10"},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7533\u8BF7\u65B0\u589E\u7684\u90E8\u95E8\u5DF2\u5B58\u5728\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4E3A\u8BE5\u90E8\u95E8\uFF1F"),We.createElement(ce.default,{rowKey:"name",columns:[{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"name"},{title:"\u7528\u6237\u6570",dataIndex:"size"}],dataSource:[{name:(ct=pt==null?void 0:pt.data)==null?void 0:ct.name,size:(yt=pt==null?void 0:pt.data)==null?void 0:yt.size}],pagination:!1})),onOk:()=>{Te(_e),Ae()}});return}bt()}});return We.createElement(ve.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Ne,title:"\u7533\u8BF7\u6DFB\u52A0\u90E8\u95E8\u540D\u79F0",width:"600px",onCancel:Ae,onOk:()=>Be.submit(),confirmLoading:Qe},We.createElement(Ue.default,{form:Be,labelCol:{span:4},wrapperCol:{span:20},onFinish:$e},We.createElement(Ue.default.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},Pe),We.createElement(Ue.default.Item,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"}]},We.createElement(oe.default,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),We.createElement(Ue.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks",style:{marginBottom:0}},We.createElement(fe,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"}))))};mn.Z=(0,xt.connect)(({account:ee,loading:ae,globalSetting:re})=>({account:ee,globalSetting:re,loading:ae.effects}))(z)},6021:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return fe}});var We=ze(3113),xt=ze(59301),oe=Object.defineProperty,Ue=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Ee=(z,ee,ae)=>ee in z?oe(z,ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):z[ee]=ae,ye=(z,ee)=>{for(var ae in ee||(ee={}))ce.call(ee,ae)&&Ee(z,ae,ee[ae]);if(ve)for(var ae of ve(ee))Ce.call(ee,ae)&&Ee(z,ae,ee[ae]);return z},be=(z,ee)=>Ue(z,Oe(ee)),me=(z,ee)=>{var ae={};for(var re in z)ce.call(z,re)&&ee.indexOf(re)<0&&(ae[re]=z[re]);if(z!=null&&ve)for(var re of ve(z))ee.indexOf(re)<0&&Ce.call(z,re)&&(ae[re]=z[re]);return ae},xe=(z,ee,ae)=>new Promise((re,le)=>{var ue=we=>{try{Pe(ae.next(we))}catch(Ne){le(Ne)}},pe=we=>{try{Pe(ae.throw(we))}catch(Ne){le(Ne)}},Pe=we=>we.done?re(we.value):Promise.resolve(we.value).then(ue,pe);Pe((ae=ae.apply(z,ee)).next())});const fe=z=>{var ee=z,{children:ae}=ee,re=me(ee,["children"]);const[le,ue]=(0,xt.useState)(!1);return xt.createElement(We.ZP,be(ye({},re),{loading:le,onClick:pe=>xe(void 0,null,function*(){try{ue(!0),yield re.onClick(pe),ue(!1)}catch(Pe){console.error(Pe),ue(!1)}})}),ae)}},73633:function(Nn,mn,ze){"use strict";var We=ze(59301),xt=ze(89070),oe=ze(43418),Ue=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,ce=(Ee,ye)=>{var be={};for(var me in Ee)Oe.call(Ee,me)&&ye.indexOf(me)<0&&(be[me]=Ee[me]);if(Ee!=null&&Ue)for(var me of Ue(Ee))ye.indexOf(me)<0&&ve.call(Ee,me)&&(be[me]=Ee[me]);return be};const Ce=Ee=>{var ye=Ee,{shixunsDetail:be,globalSetting:me,loading:xe,dispatch:fe}=ye,z=ce(ye,["shixunsDetail","globalSetting","loading","dispatch"]);return We.createElement(oe.default,{centered:!0,keyboard:!1,closable:!1,zIndex:6666,title:"\u63D0\u793A",open:be.actionTabs.key==="Banner-Auth",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>{fe({type:"shixunsDetail/setActionTabs",payload:{}}),window.location.href="/account/certification"},onCancel:()=>{fe({type:"shixunsDetail/setActionTabs",payload:{}})}},We.createElement("p",{className:"tc font16"},"\u5F53\u524D\u7ADE\u8D5B\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u8BF7\u5148\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1\u540E\u518D\u62A5\u540D\u53C2\u8D5B",We.createElement("br",null),"\u8BF7\u95EE\u662F\u5426\u524D\u5F80\u8FDB\u884C\u8BA4\u8BC1\uFF1F"))};mn.Z=(0,xt.connect)(({shixunsDetail:Ee,loading:ye,globalSetting:be})=>({shixunsDetail:Ee,globalSetting:be,loading:ye.models.index}))(Ce)},16406:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return tt}});var We=ze(59301),xt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},oe=ze(92310),Ue=ze.n(oe),Oe=ze(71418);var ve=function(Ze,je){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Ye){De.__proto__=Ye}||function(De,Ye){for(var dt in Ye)Object.prototype.hasOwnProperty.call(Ye,dt)&&(De[dt]=Ye[dt])})(Ze,je)};function ce(Ze,je){function De(){this.constructor=Ze}ve(Ze,je),Ze.prototype=je===null?Object.create(je):(De.prototype=je.prototype,new De)}function Ce(Ze,je,De,Ye){return new(De||(De=Promise))(function(dt,Ke){function At(Ot){try{_t(Ye.next(Ot))}catch(Vt){Ke(Vt)}}function zt(Ot){try{_t(Ye.throw(Ot))}catch(Vt){Ke(Vt)}}function _t(Ot){var Vt;Ot.done?dt(Ot.value):(Vt=Ot.value,Vt instanceof De?Vt:new De(function(en){en(Vt)})).then(At,zt)}_t((Ye=Ye.apply(Ze,je||[])).next())})}function Ee(Ze,je){var De,Ye,dt,Ke,At={label:0,sent:function(){if(1&dt[0])throw dt[1];return dt[1]},trys:[],ops:[]};return Ke={next:zt(0),throw:zt(1),return:zt(2)},typeof Symbol=="function"&&(Ke[Symbol.iterator]=function(){return this}),Ke;function zt(_t){return function(Ot){return function(Vt){if(De)throw new TypeError("Generator is already executing.");for(;At;)try{if(De=1,Ye&&(dt=2&Vt[0]?Ye.return:Vt[0]?Ye.throw||((dt=Ye.return)&&dt.call(Ye),0):Ye.next)&&!(dt=dt.call(Ye,Vt[1])).done)return dt;switch(Ye=0,dt&&(Vt=[2&Vt[0],dt.value]),Vt[0]){case 0:case 1:dt=Vt;break;case 4:return At.label++,{value:Vt[1],done:!1};case 5:At.label++,Ye=Vt[1],Vt=[0];continue;case 7:Vt=At.ops.pop(),At.trys.pop();continue;default:if(dt=At.trys,!((dt=dt.length>0&&dt[dt.length-1])||Vt[0]!==6&&Vt[0]!==2)){At=0;continue}if(Vt[0]===3&&(!dt||Vt[1]>dt[0]&&Vt[1]<dt[3])){At.label=Vt[1];break}if(Vt[0]===6&&At.label<dt[1]){At.label=dt[1],dt=Vt;break}if(dt&&At.label<dt[2]){At.label=dt[2],At.ops.push(Vt);break}dt[2]&&At.ops.pop(),At.trys.pop();continue}Vt=je.call(Ze,At)}catch(en){Vt=[6,en],Ye=0}finally{De=dt=0}if(5&Vt[0])throw Vt[1];return{value:Vt[0]?Vt[1]:void 0,done:!0}}([_t,Ot])}}}function ye(){for(var Ze=0,je=0,De=arguments.length;je<De;je++)Ze+=arguments[je].length;var Ye=Array(Ze),dt=0;for(je=0;je<De;je++)for(var Ke=arguments[je],At=0,zt=Ke.length;At<zt;At++,dt++)Ye[dt]=Ke[At];return Ye}var be=function(){function Ze(){}return Ze.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ze.setAttributes=function(je,De){for(var Ye=0,dt=De;Ye<dt.length;Ye++){var Ke=dt[Ye],At=Ke[0],zt=Ke[1];je.setAttribute(At,zt)}},Ze.createRect=function(je,De,Ye){var dt=document.createElementNS("http://www.w3.org/2000/svg","rect");return dt.setAttribute("width",je.toString()),dt.setAttribute("height",De.toString()),Ye&&Ze.setAttributes(dt,Ye),dt},Ze.createLine=function(je,De,Ye,dt,Ke){var At=document.createElementNS("http://www.w3.org/2000/svg","line");return At.setAttribute("x1",je.toString()),At.setAttribute("y1",De.toString()),At.setAttribute("x2",Ye.toString()),At.setAttribute("y2",dt.toString()),Ke&&Ze.setAttributes(At,Ke),At},Ze.createPolygon=function(je,De){var Ye=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ye.setAttribute("points",je),De&&Ze.setAttributes(Ye,De),Ye},Ze.createCircle=function(je,De){var Ye=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ye.setAttribute("cx",(je/2).toString()),Ye.setAttribute("cy",(je/2).toString()),Ye.setAttribute("r",je.toString()),De&&Ze.setAttributes(Ye,De),Ye},Ze.createEllipse=function(je,De,Ye){var dt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return dt.setAttribute("cx",(je/2).toString()),dt.setAttribute("cy",(De/2).toString()),dt.setAttribute("rx",(je/2).toString()),dt.setAttribute("ry",(De/2).toString()),Ye&&Ze.setAttributes(dt,Ye),dt},Ze.createGroup=function(je){var De=document.createElementNS("http://www.w3.org/2000/svg","g");return je&&Ze.setAttributes(De,je),De},Ze.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ze.createMarker=function(je,De,Ye,dt,Ke,At,zt){var _t=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ze.setAttributes(_t,[["id",je],["orient",De],["markerWidth",Ye.toString()],["markerHeight",dt.toString()],["refX",Ke.toString()],["refY",At.toString()]]),_t.appendChild(zt),_t},Ze.createText=function(je){var De=document.createElementNS("http://www.w3.org/2000/svg","text");return De.setAttribute("x","0"),De.setAttribute("y","0"),je&&Ze.setAttributes(De,je),De},Ze.createTSpan=function(je,De){var Ye=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ye.textContent=je,De&&Ze.setAttributes(Ye,De),Ye},Ze.createImage=function(je){var De=document.createElementNS("http://www.w3.org/2000/svg","image");return je&&Ze.setAttributes(De,je),De},Ze.createPoint=function(je,De){var Ye=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ye.x=je,Ye.y=De,Ye},Ze.createPath=function(je,De){var Ye=document.createElementNS("http://www.w3.org/2000/svg","path");return Ye.setAttribute("d",je),De&&Ze.setAttributes(Ye,De),Ye},Ze}(),me=function(){function Ze(){}return Ze.addKey=function(je){Ze.key=je},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}(),xe=function(){function Ze(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ze.prototype.rasterize=function(je,De,Ye){var dt=this;return new Promise(function(Ke){var At=Ye!==void 0?Ye:document.createElement("canvas");je===null&&(dt.markersOnly=!0,dt.naturalSize=!1);var zt=document.createElementNS("http://www.w3.org/2000/svg","svg");zt.setAttribute("xmlns","http://www.w3.org/2000/svg"),zt.setAttribute("width",De.width.baseVal.valueAsString),zt.setAttribute("height",De.height.baseVal.valueAsString),zt.setAttribute("viewBox","0 0 "+De.viewBox.baseVal.width.toString()+" "+De.viewBox.baseVal.height.toString()),zt.innerHTML=De.innerHTML,dt.naturalSize===!0?(zt.width.baseVal.value=je.naturalWidth,zt.height.baseVal.value=je.naturalHeight):dt.width!==void 0&&dt.height!==void 0&&(zt.width.baseVal.value=dt.width,zt.height.baseVal.value=dt.height),At.width=zt.width.baseVal.value,At.height=zt.height.baseVal.value;var _t=zt.outerHTML,Ot=At.getContext("2d");dt.markersOnly!==!0&&Ot.drawImage(je,0,0,At.width,At.height);var Vt=window.URL,en=new Image(At.width,At.height);en.setAttribute("crossOrigin","anonymous");var on=new Blob([_t],{type:"image/svg+xml"}),fn=Vt.createObjectURL(on);en.onload=function(){Ot.drawImage(en,0,0),Vt.revokeObjectURL(fn);var jn=At.toDataURL(dt.imageType,dt.imageQuality);Ke(jn)},en.src=fn})},Ze}(),fe=function(){},z=function(){function Ze(je){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+je+"_"}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(je){return this.styleSheet===void 0&&this.addStyleSheet(),je.name=""+this.classNamePrefix+je.localName,this.classes.push(je),this.styleSheet.sheet.insertRule("."+je.name+" {"+je.style+"}",this.styleSheet.sheet.cssRules.length),je},Ze.prototype.addRule=function(je){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(je),this.styleSheet.sheet.insertRule(je.selector+" {"+je.style+"}",this.styleSheet.sheet.cssRules.length)},Ze.prototype.addStyleSheet=function(){var je;this.styleSheet=document.createElement("style"),((je=this.styleSheetRoot)!==null&&je!==void 0?je:document.head).appendChild(this.styleSheet),this.addRule(new ee("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ee("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ee("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ae("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ae("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Ze.prototype.removeStyleSheet=function(){var je;this.styleSheet&&(((je=this.styleSheetRoot)!==null&&je!==void 0?je:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ze}(),ee=function(Ze,je){this.selector=Ze,this.style=je},ae=function(Ze,je){this.localName=Ze,this.style=je},re=function(){function Ze(je,De,Ye,dt,Ke){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=je,this.displayMode=De,this.markerItems=Ye,this.uiStyleSettings=dt,this.styles=Ke,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(je){var De=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=je,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ye=document.createElement("div");Ye.className=this.toolbarBlockStyleClass.name,Ye.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ye),this.addActionButton(Ye,'<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(Ye,'<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(Ye,'<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(Ye,'<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(Ye,'<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(Ye,'<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(Ye,'<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(Ye,'<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(Ke){var At=document.createElement("div");At.className=""+De.toolbarButtonStyleClass.name,At.setAttribute("data-type-name",Ke.typeName),At.innerHTML=Ke.icon,At.addEventListener("click",function(){De.markerToolbarButtonClicked(At,Ke)}),De.buttons.push(At),De.markerButtons.push(At)}),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 dt=document.createElement("div");dt.className=this.toolbarBlockStyleClass.name,dt.style.whiteSpace="nowrap",dt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(dt),this.addActionButton(dt,'<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(dt,'<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(je){this.buttonClickListeners.push(je)},Ze.prototype.removeButtonClickListener=function(je){this.buttonClickListeners.indexOf(je)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(je),1)},Ze.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ze.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var je=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var De=0;De<this.markerButtons.length;De++)De<je||De===je&&this.markerButtons.length-1===je?this.markerButtonBlock.appendChild(this.markerButtons[De]):(De===je&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[De]))}},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 je=this;this.buttons.forEach(function(De){De.className=De.className.replace(je.uiStyleSettings.toolbarButtonStyleColorsClassName?je.uiStyleSettings.toolbarButtonStyleColorsClassName:je.toolbarButtonStyleColorsClass.name,"").trim(),De.className=De.className.replace(je.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?je.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:je.toolbarActiveButtonStyleColorsClass.name,"").trim(),De.className+=" "+(je.uiStyleSettings.toolbarButtonStyleColorsClassName?je.uiStyleSettings.toolbarButtonStyleColorsClassName:je.toolbarButtonStyleColorsClass.name)})},Ze.prototype.addActionButton=function(je,De,Ye){var dt=this,Ke=document.createElement("div");switch(Ke.className=""+this.toolbarButtonStyleClass.name,Ke.innerHTML=De,Ke.setAttribute("data-action",Ye),Ke.addEventListener("click",function(){dt.actionToolbarButtonClicked(Ke,Ye)}),Ye){case"select":Ke.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ke.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ke.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ke.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ke.style.fill=this.uiStyleSettings.closeButtonColor}je.appendChild(Ke),this.buttons.push(Ke)},Ze.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ae("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 ae("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ae("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ae("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 ae("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var je=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ae("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*je)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*je)+`px;
padding: `+je+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ae("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ae("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ee("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ee("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Ze.prototype.markerToolbarButtonClicked=function(je,De){this.setActiveButton(je),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ye){return Ye("marker",De)}),this.markerButtonOverflowBlock.style.display="none"},Ze.prototype.actionToolbarButtonClicked=function(je,De){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ye){return Ye("action",De)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ze.prototype.setActiveButton=function(je){this.resetButtonStyles(),je.className=je.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),je.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ze.prototype.setActiveMarkerButton=function(je){var De=this.markerButtons.find(function(Ye){return Ye.getAttribute("data-type-name")===je});De&&this.setActiveButton(De)},Ze.prototype.setCurrentMarker=function(je){var De=this;this.currentMarker=je,this.buttons.filter(function(Ye){return/delete|notes/.test(Ye.getAttribute("data-action"))}).forEach(function(Ye){De.currentMarker===void 0?(Ye.style.fillOpacity="0.4",Ye.style.pointerEvents="none"):(Ye.style.fillOpacity="1",Ye.style.pointerEvents="all")})},Ze}(),le=function(){function Ze(je,De,Ye,dt){this.panels=[],this.panelButtons=[],this.markerjsContainer=je,this.displayMode=De,this.uiStyleSettings=Ye,this.styles=dt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ze.prototype.addStyles=function(){var je;this.toolboxStyleClass=this.styles.addClass(new ae("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 ae("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var De=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ae("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ae("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ae("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 ae("toolbox-panel-row_colors",`
background-color: `+((je=this.uiStyleSettings.toolboxBackgroundColor)!==null&&je!==void 0?je:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ae("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*De)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*De)+`px;
padding: `+De+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ae("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ae("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ee("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ee("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Ze.prototype.show=function(je){var De;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=je,this.uiContainer.className=this.toolboxStyleClass.name+" "+((De=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&De!==void 0?De:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ze.prototype.setPanelButtons=function(je){var De,Ye,dt=this;this.panels=je,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((De=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&De!==void 0?De:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ye=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ye!==void 0?Ye:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ke){var At;Ke.uiStyleSettings=dt.uiStyleSettings;var zt=document.createElement("div");zt.className=dt.toolboxButtonStyleClass.name+" "+((At=dt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&At!==void 0?At:dt.toolboxButtonStyleColorsClass.name),zt.innerHTML=Ke.icon,zt.title=Ke.title,zt.addEventListener("click",function(){dt.panelButtonClick(Ke)}),dt.panelButtons.push(zt),dt.buttonRow.appendChild(zt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ze.prototype.panelButtonClick=function(je){var De=this,Ye=-1;if(je!==this.activePanel){Ye=this.panels.indexOf(je),this.panelRow.innerHTML="";var dt=je.getUi();dt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(dt),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=je}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){De.displayMode==="inline"?De.panelRow.style.display="none":De.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ke,At){var zt,_t;Ke.className=De.toolboxButtonStyleClass.name+" "+(At===Ye?""+((zt=De.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&zt!==void 0?zt:De.toolboxActiveButtonStyleColorsClass.name):""+((_t=De.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&_t!==void 0?_t:De.toolboxButtonStyleColorsClass.name))})},Ze}(),ue=function(Ze,je){this.title=Ze,this.icon=je},pe=function(Ze){function je(De,Ye,dt,Ke){var At=Ze.call(this,De,Ke||'<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 At.colors=[],At.addTransparent=!1,At.colorBoxes=[],At.colors=Ye,At.currentColor=dt,At.setCurrentColor=At.setCurrentColor.bind(At),At.getColorBox=At.getColorBox.bind(At),At}return ce(je,Ze),je.prototype.getUi=function(){var De=this,Ye=document.createElement("div");return Ye.style.overflow="hidden",Ye.style.whiteSpace="nowrap",this.colors.forEach(function(dt){var Ke=De.getColorBox(dt);Ye.appendChild(Ke),De.colorBoxes.push(Ke)}),Ye},je.prototype.getColorBox=function(De){var Ye=this,dt=this.uiStyleSettings.toolbarHeight/4,Ke=this.uiStyleSettings.toolbarHeight-dt,At=document.createElement("div");At.style.display="inline-block",At.style.boxSizing="content-box",At.style.width=Ke-2+"px",At.style.height=Ke-2+"px",At.style.padding="1px",At.style.marginRight="2px",At.style.marginBottom="2px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderRadius=(Ke+2)/2+"px",At.style.borderColor=De===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){Ye.setCurrentColor(De,At)});var zt=document.createElement("div");return zt.style.display="inline-block",zt.style.width=Ke-2+"px",zt.style.height=Ke-2+"px",zt.style.backgroundColor=De,zt.style.borderRadius=Ke/2+"px",De==="transparent"&&(zt.style.fill=this.uiStyleSettings.toolboxAccentColor,zt.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>`),At.appendChild(zt),At},je.prototype.setCurrentColor=function(De,Ye){var dt=this;this.currentColor=De,this.colorBoxes.forEach(function(Ke){Ke.style.borderColor=Ke===Ye?dt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(De)},je}(ue),Pe=function(){function Ze(je,De,Ye){this._state="new",this._isSelected=!1,this._container=je,this._overlayContainer=De,this.globalSettings=Ye,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(je){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(je,De){},Ze.prototype.dblClick=function(je,De){},Ze.prototype.manipulate=function(je){},Ze.prototype.pointerUp=function(je){this.stateChanged()},Ze.prototype.dispose=function(){},Ze.prototype.addMarkerVisualToContainer=function(je){this.container.childNodes.length>0?this.container.insertBefore(je,this.container.childNodes[0]):this.container.appendChild(je)},Ze.prototype.getState=function(){return{typeName:Ze.typeName,state:this.state,notes:this.notes}},Ze.prototype.restoreState=function(je){this._state=je.state,this.notes=je.notes},Ze.prototype.scale=function(je,De){},Ze.prototype.colorChanged=function(je){this.onColorChanged&&this.onColorChanged(je),this.stateChanged()},Ze.prototype.fillColorChanged=function(je){this.onFillColorChanged&&this.onFillColorChanged(je),this.stateChanged()},Ze.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var je=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),je.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(je)&&this.onStateChanged(this)}},Ze.typeName="MarkerBase",Ze}(),we=function(){function Ze(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ze.prototype.findGripByVisual=function(je){return this.topLeft.ownsTarget(je)?this.topLeft:this.topCenter.ownsTarget(je)?this.topCenter:this.topRight.ownsTarget(je)?this.topRight:this.centerLeft.ownsTarget(je)?this.centerLeft:this.centerRight.ownsTarget(je)?this.centerRight:this.bottomLeft.ownsTarget(je)?this.bottomLeft:this.bottomCenter.ownsTarget(je)?this.bottomCenter:this.bottomRight.ownsTarget(je)?this.bottomRight:void 0},Ze}(),Ne=function(){function Ze(){this.GRIP_SIZE=10,this.visual=be.createGroup(),this.visual.appendChild(be.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(be.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ze.prototype.ownsTarget=function(je){return je===this.visual||je===this.visual.childNodes[0]||je===this.visual.childNodes[1]},Ze}(),Ae=function(){function Ze(){}return Ze.toITransformMatrix=function(je){return{a:je.a,b:je.b,c:je.c,d:je.d,e:je.e,f:je.f}},Ze.toSVGMatrix=function(je,De){return je.a=De.a,je.b=De.b,je.c=De.c,je.d=De.d,je.e=De.e,je.f=De.f,je},Ze}(),Te=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.left=0,Ke.top=0,Ke.width=0,Ke.height=0,Ke.defaultSize={x:50,y:20},Ke.offsetX=0,Ke.offsetY=0,Ke.rotationAngle=0,Ke.CB_DISTANCE=10,Ke._suppressMarkerCreateEvent=!1,Ke.container.transform.baseVal.appendItem(be.createTransform()),Ke.setupControlBox(),Ke}return ce(je,Ze),Object.defineProperty(je.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"visual",{get:function(){return this._visual},set:function(De){this._visual=De;var Ye=be.createTransform();this._visual.transform.baseVal.appendItem(Ye)},enumerable:!1,configurable:!0}),je.prototype.ownsTarget=function(De){return!!Ze.prototype.ownsTarget.call(this,De)||!!(this.controlGrips.findGripByVisual(De)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(De))},je.prototype.pointerDown=function(De,Ye){Ze.prototype.pointerDown.call(this,De,Ye),this.state==="new"&&(this.left=De.x,this.top=De.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var dt=this.unrotatePoint(De);if(this.manipulationStartX=dt.x,this.manipulationStartY=dt.y,this.offsetX=dt.x-this.left,this.offsetY=dt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ye),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ye)){this.activeGrip=this.rotatorGrip;var Ke=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ke.x-this.width/2,this.top=Ke.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var At=this.container.transform.baseVal.getItem(0);At.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(At,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},je.prototype.pointerUp=function(De){var Ye=this.state;Ze.prototype.pointerUp.call(this,De),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(De),this._state="select",Ye==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},je.prototype.moveVisual=function(De){this.visual.style.transform="translate("+De.x+"px, "+De.y+"px)"},je.prototype.manipulate=function(De){var Ye=this.unrotatePoint(De);this.state==="creating"?this.resize(De):this.state==="move"?(this.left=this.manipulationStartLeft+(Ye.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ye.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ye):this.state==="rotate"&&this.rotate(De)},je.prototype.resize=function(De){var Ye=this.manipulationStartLeft,dt=this.manipulationStartWidth,Ke=this.manipulationStartTop,At=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ye=this.manipulationStartLeft+De.x-this.manipulationStartX,dt=this.manipulationStartWidth+this.manipulationStartLeft-Ye;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:dt=this.manipulationStartWidth+De.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ke=this.manipulationStartTop+De.y-this.manipulationStartY,At=this.manipulationStartHeight+this.manipulationStartTop-Ke;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:At=this.manipulationStartHeight+De.y-this.manipulationStartY}dt>=0?(this.left=Ye,this.width=dt):(this.left=Ye+dt,this.width=-dt),At>=0?(this.top=Ke,this.height=At):(this.top=Ke+At,this.height=-At),this.setSize()},je.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},je.prototype.rotate=function(De){if(Math.abs(De.x-this.centerX)>.1){var Ye=Math.sign(De.x-this.centerX);this.rotationAngle=180*Math.atan((De.y-this.centerY)/(De.x-this.centerX))/Math.PI+90*Ye,this.applyRotation()}},je.prototype.applyRotation=function(){var De=this.container.transform.baseVal.getItem(0);De.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(De,0)},je.prototype.rotatePoint=function(De){if(this.rotationAngle===0)return De;var Ye=this.container.getCTM(),dt=be.createPoint(De.x,De.y);return{x:(dt=dt.matrixTransform(Ye)).x,y:dt.y}},je.prototype.unrotatePoint=function(De){if(this.rotationAngle===0)return De;var Ye=this.container.getCTM();Ye=Ye.inverse();var dt=be.createPoint(De.x,De.y);return{x:(dt=dt.matrixTransform(Ye)).x,y:dt.y}},je.prototype.select=function(){Ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},je.prototype.deselect=function(){Ze.prototype.deselect.call(this),this.controlBox.style.display="none"},je.prototype.setupControlBox=function(){this.controlBox=be.createGroup();var De=be.createTransform();De.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(De),this.container.appendChild(this.controlBox),this.controlRect=be.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=be.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 we,this.addControlGrips(),this.controlBox.style.display="none"},je.prototype.adjustControlBox=function(){var De=this.controlBox.transform.baseVal.getItem(0);De.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(De,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()},je.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()},je.prototype.createGrip=function(){var De=new Ne;return De.visual.transform.baseVal.appendItem(be.createTransform()),this.controlBox.appendChild(De.visual),De},je.prototype.positionGrips=function(){var De=this.controlGrips.topLeft.GRIP_SIZE,Ye=-De/2,dt=Ye,Ke=(this.width+this.CB_DISTANCE)/2-De/2,At=(this.height+this.CB_DISTANCE)/2-De/2,zt=this.height+this.CB_DISTANCE-De/2,_t=this.width+this.CB_DISTANCE-De/2;this.positionGrip(this.controlGrips.topLeft.visual,Ye,dt),this.positionGrip(this.controlGrips.topCenter.visual,Ke,dt),this.positionGrip(this.controlGrips.topRight.visual,_t,dt),this.positionGrip(this.controlGrips.centerLeft.visual,Ye,At),this.positionGrip(this.controlGrips.centerRight.visual,_t,At),this.positionGrip(this.controlGrips.bottomLeft.visual,Ye,zt),this.positionGrip(this.controlGrips.bottomCenter.visual,Ke,zt),this.positionGrip(this.controlGrips.bottomRight.visual,_t,zt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ke,dt-3*this.CB_DISTANCE)},je.prototype.positionGrip=function(De,Ye,dt){var Ke=De.transform.baseVal.getItem(0);Ke.setTranslate(Ye,dt),De.transform.baseVal.replaceItem(Ke,0)},je.prototype.hideControlBox=function(){this.controlBox.style.display="none"},je.prototype.showControlBox=function(){this.controlBox.style.display=""},je.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ae.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ae.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ze.prototype.getState.call(this))},je.prototype.restoreState=function(De){Ze.prototype.restoreState.call(this,De);var Ye=De;this.left=Ye.left,this.top=Ye.top,this.width=Ye.width,this.height=Ye.height,this.rotationAngle=Ye.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ae.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ye.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ae.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ye.containerTransformMatrix))},je.prototype.scale=function(De,Ye){Ze.prototype.scale.call(this,De,Ye);var dt=this.rotatePoint({x:this.left,y:this.top}),Ke=this.unrotatePoint({x:dt.x*De,y:dt.y*Ye});this.left=Ke.x,this.top=Ke.y,this.width=this.width*De,this.height=this.height*Ye,this.adjustControlBox()},je}(Pe),Me=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.fillColor="transparent",Ke.strokeColor="transparent",Ke.strokeWidth=0,Ke.strokeDasharray="",Ke.opacity=1,Ke.setStrokeColor=Ke.setStrokeColor.bind(Ke),Ke.setFillColor=Ke.setFillColor.bind(Ke),Ke.setStrokeWidth=Ke.setStrokeWidth.bind(Ke),Ke.setStrokeDasharray=Ke.setStrokeDasharray.bind(Ke),Ke.createVisual=Ke.createVisual.bind(Ke),Ke}return ce(je,Ze),je.prototype.ownsTarget=function(De){return!(!Ze.prototype.ownsTarget.call(this,De)&&De!==this.visual)},je.prototype.createVisual=function(){this.visual=be.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)},je.prototype.pointerDown=function(De,Ye){Ze.prototype.pointerDown.call(this,De,Ye),this.state==="new"&&(this.createVisual(),this.moveVisual(De),this._state="creating")},je.prototype.manipulate=function(De){Ze.prototype.manipulate.call(this,De)},je.prototype.resize=function(De){Ze.prototype.resize.call(this,De),this.setSize()},je.prototype.setSize=function(){Ze.prototype.setSize.call(this),be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},je.prototype.pointerUp=function(De){Ze.prototype.pointerUp.call(this,De),this.setSize()},je.prototype.setStrokeColor=function(De){this.strokeColor=De,this.visual&&be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(De),this.stateChanged()},je.prototype.setFillColor=function(De){this.fillColor=De,this.visual&&be.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},je.prototype.setStrokeWidth=function(De){this.strokeWidth=De,this.visual&&be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},je.prototype.setStrokeDasharray=function(De){this.strokeDasharray=De,this.visual&&be.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},je.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))},je.prototype.restoreState=function(De){var Ye=De;this.fillColor=Ye.fillColor,this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.opacity=Ye.opacity,this.createVisual(),Ze.prototype.restoreState.call(this,De),this.setSize()},je.prototype.scale=function(De,Ye){Ze.prototype.scale.call(this,De,Ye),this.setSize()},je.title="Rectangle marker",je}(Te),Be=function(Ze){function je(De,Ye,dt,Ke){var At=Ze.call(this,De,Ke||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return At.widths=[],At.widthBoxes=[],At.widths=Ye,At.currentWidth=dt,At.setCurrentWidth=At.setCurrentWidth.bind(At),At}return ce(je,Ze),je.prototype.getUi=function(){var De=this,Ye=document.createElement("div");return Ye.style.display="flex",Ye.style.overflow="hidden",Ye.style.flexGrow="2",this.widths.forEach(function(dt){var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.flexGrow="2",Ke.style.alignItems="center",Ke.style.justifyContent="space-between",Ke.style.padding="5px",Ke.style.borderWidth="2px",Ke.style.borderStyle="solid",Ke.style.borderColor=dt===De.currentWidth?De.uiStyleSettings.toolboxAccentColor:"transparent",Ke.addEventListener("click",function(){De.setCurrentWidth(dt,Ke)}),Ye.appendChild(Ke);var At=document.createElement("div");At.innerText=dt.toString(),At.style.marginRight="5px",Ke.appendChild(At);var zt=document.createElement("div");zt.style.minHeight="20px",zt.style.flexGrow="2",zt.style.display="flex",zt.style.alignItems="center";var _t=document.createElement("hr");_t.style.minWidth="20px",_t.style.border="0px",_t.style.borderTop=dt+"px solid "+De.uiStyleSettings.toolboxColor,_t.style.flexGrow="2",zt.appendChild(_t),Ke.appendChild(zt),De.widthBoxes.push(Ke)}),Ye},je.prototype.setCurrentWidth=function(De,Ye){var dt=this;this.currentWidth=De,this.widthBoxes.forEach(function(Ke){Ke.style.borderColor=Ke===Ye?dt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},je}(ue),Re=function(Ze){function je(De,Ye,dt,Ke){var At=Ze.call(this,De,Ke||'<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 At.styles=[],At.styleBoxes=[],At.styles=Ye,At.currentStyle=dt,At.setCurrentStyle=At.setCurrentStyle.bind(At),At}return ce(je,Ze),je.prototype.getUi=function(){var De=this,Ye=document.createElement("div");return Ye.style.display="flex",Ye.style.overflow="hidden",Ye.style.flexGrow="2",this.styles.forEach(function(dt){var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.justifyContent="space-between",Ke.style.padding="5px",Ke.style.borderWidth="2px",Ke.style.borderStyle="solid",Ke.style.overflow="hidden",Ke.style.maxWidth=100/De.styles.length-5+"%",Ke.style.borderColor=dt===De.currentStyle?De.uiStyleSettings.toolboxAccentColor:"transparent",Ke.addEventListener("click",function(){De.setCurrentStyle(dt,Ke)}),Ye.appendChild(Ke);var At=document.createElement("div");At.style.minHeight="20px",At.style.flexGrow="2",At.style.overflow="hidden";var zt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+De.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(dt!==""?'stroke-dasharray="'+dt+'"':"")+` />
</svg>`;At.innerHTML=zt,Ke.appendChild(At),De.styleBoxes.push(Ke)}),Ye},je.prototype.setCurrentStyle=function(De,Ye){var dt=this;this.currentStyle=De,this.styleBoxes.forEach(function(Ke){Ke.style.borderColor=Ke===Ye?dt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},je}(ue),Qe=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.strokeColor=dt.defaultColor,Ke.strokeWidth=dt.defaultStrokeWidth,Ke.strokeDasharray=dt.defaultStrokeDasharray,Ke.strokePanel=new pe("Line color",dt.defaultColorSet,dt.defaultColor),Ke.strokePanel.onColorChanged=Ke.setStrokeColor,Ke.strokeWidthPanel=new Be("Line width",dt.defaultStrokeWidths,dt.defaultStrokeWidth),Ke.strokeWidthPanel.onWidthChanged=Ke.setStrokeWidth,Ke.strokeStylePanel=new Re("Line style",dt.defaultStrokeDasharrays,dt.defaultStrokeDasharray),Ke.strokeStylePanel.onStyleChanged=Ke.setStrokeDasharray,Ke}return ce(je,Ze),Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Ze.prototype.getState.call(this);return De.typeName=je.typeName,De},je.typeName="FrameMarker",je.title="Frame marker",je.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',je}(Me),He=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"},$e=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.x1=0,Ke.y1=0,Ke.x2=0,Ke.y2=0,Ke.defaultLength=50,Ke.manipulationStartX=0,Ke.manipulationStartY=0,Ke.manipulationStartX1=0,Ke.manipulationStartY1=0,Ke.manipulationStartX2=0,Ke.manipulationStartY2=0,Ke.setupControlBox(),Ke}return ce(je,Ze),je.prototype.ownsTarget=function(De){return!!Ze.prototype.ownsTarget.call(this,De)||!(!this.grip1.ownsTarget(De)&&!this.grip2.ownsTarget(De))},je.prototype.pointerDown=function(De,Ye){Ze.prototype.pointerDown.call(this,De,Ye),this.manipulationStartX=De.x,this.manipulationStartY=De.y,this.state==="new"&&(this.x1=De.x,this.y1=De.y,this.x2=De.x,this.y2=De.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(Ye)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ye)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},je.prototype.pointerUp=function(De){var Ye=this.state;Ze.prototype.pointerUp.call(this,De),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(De),this._state="select",Ye==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},je.prototype.adjustVisual=function(){},je.prototype.manipulate=function(De){this.state==="creating"?this.resize(De):this.state==="move"?(this.x1=this.manipulationStartX1+De.x-this.manipulationStartX,this.y1=this.manipulationStartY1+De.y-this.manipulationStartY,this.x2=this.manipulationStartX2+De.x-this.manipulationStartX,this.y2=this.manipulationStartY2+De.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(De)},je.prototype.resize=function(De){switch(this.activeGrip){case this.grip1:this.x1=De.x,this.y1=De.y;break;case this.grip2:case void 0:this.x2=De.x,this.y2=De.y}this.adjustVisual(),this.adjustControlBox()},je.prototype.select=function(){Ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},je.prototype.deselect=function(){Ze.prototype.deselect.call(this),this.controlBox.style.display="none"},je.prototype.setupControlBox=function(){this.controlBox=be.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},je.prototype.adjustControlBox=function(){this.positionGrips()},je.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},je.prototype.createGrip=function(){var De=new Ne;return De.visual.transform.baseVal.appendItem(be.createTransform()),this.controlBox.appendChild(De.visual),De},je.prototype.positionGrips=function(){var De=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-De/2,this.y1-De/2),this.positionGrip(this.grip2.visual,this.x2-De/2,this.y2-De/2)},je.prototype.positionGrip=function(De,Ye,dt){var Ke=De.transform.baseVal.getItem(0);Ke.setTranslate(Ye,dt),De.transform.baseVal.replaceItem(Ke,0)},je.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ze.prototype.getState.call(this))},je.prototype.restoreState=function(De){Ze.prototype.restoreState.call(this,De);var Ye=De;this.x1=Ye.x1,this.y1=Ye.y1,this.x2=Ye.x2,this.y2=Ye.y2},je.prototype.scale=function(De,Ye){Ze.prototype.scale.call(this,De,Ye),this.x1=this.x1*De,this.y1=this.y1*Ye,this.x2=this.x2*De,this.y2=this.y2*Ye,this.adjustVisual(),this.adjustControlBox()},je}(Pe),qe=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.strokeColor="transparent",Ke.strokeWidth=0,Ke.strokeDasharray="",Ke.setStrokeColor=Ke.setStrokeColor.bind(Ke),Ke.setStrokeWidth=Ke.setStrokeWidth.bind(Ke),Ke.setStrokeDasharray=Ke.setStrokeDasharray.bind(Ke),Ke.strokeColor=dt.defaultColor,Ke.strokeWidth=dt.defaultStrokeWidth,Ke.strokeDasharray=dt.defaultStrokeDasharray,Ke.strokePanel=new pe("Line color",dt.defaultColorSet,dt.defaultColor),Ke.strokePanel.onColorChanged=Ke.setStrokeColor,Ke.strokeWidthPanel=new Be("Line width",dt.defaultStrokeWidths,dt.defaultStrokeWidth),Ke.strokeWidthPanel.onWidthChanged=Ke.setStrokeWidth,Ke.strokeStylePanel=new Re("Line style",dt.defaultStrokeDasharrays,dt.defaultStrokeDasharray),Ke.strokeStylePanel.onStyleChanged=Ke.setStrokeDasharray,Ke}return ce(je,Ze),je.prototype.ownsTarget=function(De){return!(!Ze.prototype.ownsTarget.call(this,De)&&De!==this.visual&&De!==this.selectorLine&&De!==this.visibleLine)},je.prototype.createVisual=function(){this.visual=be.createGroup(),this.selectorLine=be.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=be.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)},je.prototype.pointerDown=function(De,Ye){Ze.prototype.pointerDown.call(this,De,Ye),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},je.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()),be.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),be.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),be.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},je.prototype.setStrokeColor=function(De){this.strokeColor=De,this.adjustVisual(),this.colorChanged(De)},je.prototype.setStrokeWidth=function(De){this.strokeWidth=De,this.adjustVisual()},je.prototype.setStrokeDasharray=function(De){this.strokeDasharray=De,this.adjustVisual(),this.stateChanged()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ze.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){Ze.prototype.restoreState.call(this,De);var Ye=De;this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.createVisual(),this.adjustVisual()},je.typeName="LineMarker",je.title="Line marker",je.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',je}($e),ut=function(Ze){function je(De,Ye,dt,Ke){var At=Ze.call(this,De,Ke||'<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 At.fonts=[],At.fontBoxes=[],At.fonts=Ye,At.currentFont=dt,At.setCurrentFont=At.setCurrentFont.bind(At),At}return ce(je,Ze),je.prototype.getUi=function(){var De=this,Ye=document.createElement("div");return Ye.style.overflow="hidden",Ye.style.flexGrow="2",this.fonts.forEach(function(dt){var Ke=document.createElement("div");Ke.style.display="inline-block",Ke.style.alignItems="center",Ke.style.justifyContent="space-between",Ke.style.padding="5px",Ke.style.borderWidth="2px",Ke.style.borderStyle="solid",Ke.style.overflow="hidden",Ke.style.maxWidth=100/De.fonts.length-5+"%",Ke.style.borderColor=dt===De.currentFont?De.uiStyleSettings.toolboxAccentColor:"transparent",Ke.addEventListener("click",function(){De.setCurrentFont(dt,Ke)}),Ye.appendChild(Ke);var At=document.createElement("div");At.style.display="flex",At.style.minHeight="20px",At.style.flexGrow="2",At.style.fontFamily=dt,At.style.overflow="hidden";var zt=document.createElement("div");zt.style.whiteSpace="nowrap",zt.style.overflow="hidden",zt.style.textOverflow="ellipsis",zt.innerHTML="The quick brown fox jumps over the lazy dog",At.appendChild(zt),Ke.appendChild(At),De.fontBoxes.push(Ke)}),Ye},je.prototype.setCurrentFont=function(De,Ye){var dt=this;this.currentFont=De,this.fontBoxes.forEach(function(Ke){Ke.style.borderColor=Ke===Ye?dt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},je}(ue),ct=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.color="transparent",Ke.padding=5,Ke.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ke.text=Ke.DEFAULT_TEXT,Ke.isMoved=!1,Ke.color=dt.defaultColor,Ke.fontFamily=dt.defaultFontFamily,Ke.defaultSize={x:100,y:30},Ke.setColor=Ke.setColor.bind(Ke),Ke.setFont=Ke.setFont.bind(Ke),Ke.renderText=Ke.renderText.bind(Ke),Ke.sizeText=Ke.sizeText.bind(Ke),Ke.textEditDivClicked=Ke.textEditDivClicked.bind(Ke),Ke.showTextEditor=Ke.showTextEditor.bind(Ke),Ke.setSize=Ke.setSize.bind(Ke),Ke.positionTextEditor=Ke.positionTextEditor.bind(Ke),Ke.colorPanel=new pe("Color",dt.defaultColorSet,dt.defaultColor),Ke.colorPanel.onColorChanged=Ke.setColor,Ke.fontFamilyPanel=new ut("Font",dt.defaultFontFamilies,dt.defaultFontFamily),Ke.fontFamilyPanel.onFontChanged=Ke.setFont,Ke}return ce(je,Ze),je.prototype.ownsTarget=function(De){if(Ze.prototype.ownsTarget.call(this,De)||De===this.visual||De===this.textElement||De===this.bgRectangle)return!0;var Ye=!1;return this.textElement.childNodes.forEach(function(dt){dt===De&&(Ye=!0)}),Ye},je.prototype.createVisual=function(){this.visual=be.createGroup(),this.bgRectangle=be.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=be.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(be.createTransform()),this.textElement.transform.baseVal.appendItem(be.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},je.prototype.pointerDown=function(De,Ye){Ze.prototype.pointerDown.call(this,De,Ye),this.isMoved=!1,this.pointerDownPoint=De,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(De),this._state="creating")},je.prototype.renderText=function(){var De=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(Ye){De.textElement.appendChild(be.createTSpan(Ye.trim()===""?" ":Ye.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},je.prototype.getTextScale=function(){var De=this.textElement.getBBox(),Ye=1;if(De.width>0&&De.height>0){var dt=(1*this.width-this.width*this.padding*2/100)/De.width,Ke=(1*this.height-this.height*this.padding*2/100)/De.height;Ye=Math.min(dt,Ke)}return Ye},je.prototype.getTextPosition=function(De){var Ye=this.textElement.getBBox(),dt=0,Ke=0;return Ye.width>0&&Ye.height>0&&(dt=(this.width-Ye.width*De)/2,Ke=this.height/2-Ye.height*De/2),{x:dt,y:Ke}},je.prototype.sizeText=function(){var De=this.textElement.getBBox(),Ye=this.getTextScale(),dt=this.getTextPosition(Ye);dt.y-=De.y*Ye,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+dt.x+"px, "+dt.y+"px) scale("+Ye+", "+Ye+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(dt.x,dt.y),this.textElement.transform.baseVal.getItem(1).setScale(Ye,Ye))},je.prototype.manipulate=function(De){Ze.prototype.manipulate.call(this,De),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(De.x-this.pointerDownPoint.x)>5||Math.abs(De.y-this.pointerDownPoint.y)>5)},je.prototype.resize=function(De){Ze.prototype.resize.call(this,De),this.isMoved=!0,this.setSize(),this.sizeText()},je.prototype.setSize=function(){Ze.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),be.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},je.prototype.pointerUp=function(De){var Ye=this.state;Ye==="creating"&&(this._suppressMarkerCreateEvent=!0),Ze.prototype.pointerUp.call(this,De),this.setSize(),(Ye==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},je.prototype.showTextEditor=function(){var De=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(Ye){Ye.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ye=Number.parseFloat(De.textEditor.style.fontSize);De.textEditor.clientWidth>=Number.parseInt(De.textEditor.style.maxWidth)&&Ye>.9;)Ye-=.1,De.textEditor.style.fontSize=Math.max(Ye,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ye){Ye.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ye){if(Ye.clipboardData){var dt=Ye.clipboardData.getData("text"),Ke=window.getSelection();if(!Ke.rangeCount)return!1;Ke.deleteFromDocument(),Ke.getRangeAt(0).insertNode(document.createTextNode(dt)),Ye.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){De.textEditDivClicked(De.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},je.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var De=this.getTextScale(),Ye=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),dt=this.textElement.getBBox(),Ke={x:dt.width*De,y:dt.height*De};Ye.x-=Ke.x/2,Ye.y-=Ke.y/2,this.textEditor.style.top=Ye.y+"px",this.textEditor.style.left=Ye.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ye.x+"px",this.textEditor.style.fontSize=Math.max(16*De,12)+"px",this.textElement.style.display="none"}},je.prototype.textEditDivClicked=function(De){this.text=De.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},je.prototype.select=function(){Ze.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},je.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ze.prototype.deselect.call(this)},je.prototype.dblClick=function(De,Ye){Ze.prototype.dblClick.call(this,De,Ye),this.showTextEditor()},je.prototype.setColor=function(De){this.textElement&&be.setAttributes(this.textElement,[["fill",De]]),this.color=De,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(De)},je.prototype.setFont=function(De){this.textElement&&be.setAttributes(this.textElement,[["font-family",De]]),this.fontFamily=De,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},je.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},je.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ze.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){var Ye=De;this.color=Ye.color,this.fontFamily=Ye.fontFamily,this.padding=Ye.padding,this.text=Ye.text,this.createVisual(),Ze.prototype.restoreState.call(this,De),this.setSize()},je.prototype.scale=function(De,Ye){Ze.prototype.scale.call(this,De,Ye),this.setSize(),this.sizeText(),this.positionTextEditor()},je.typeName="TextMarker",je.title="Text marker",je.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>',je}(Te),yt=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.color="transparent",Ke.lineWidth=3,Ke.drawing=!1,Ke.pixelRatio=1,Ke.color=dt.defaultColor,Ke.lineWidth=dt.defaultStrokeWidth,Ke.pixelRatio=dt.freehandPixelRatio,Ke.setColor=Ke.setColor.bind(Ke),Ke.addCanvas=Ke.addCanvas.bind(Ke),Ke.finishCreation=Ke.finishCreation.bind(Ke),Ke.setLineWidth=Ke.setLineWidth.bind(Ke),Ke.colorPanel=new pe("Color",dt.defaultColorSet,dt.defaultColor),Ke.colorPanel.onColorChanged=Ke.setColor,Ke.lineWidthPanel=new Be("Line width",dt.defaultStrokeWidths,dt.defaultStrokeWidth),Ke.lineWidthPanel.onWidthChanged=Ke.setLineWidth,Ke}return ce(je,Ze),je.prototype.ownsTarget=function(De){return!(!Ze.prototype.ownsTarget.call(this,De)&&De!==this.visual&&De!==this.drawingImage)},je.prototype.createVisual=function(){this.visual=be.createGroup(),this.drawingImage=be.createImage(),this.visual.appendChild(this.drawingImage);var De=be.createTransform();this.visual.transform.baseVal.appendItem(De),this.addMarkerVisualToContainer(this.visual)},je.prototype.pointerDown=function(De,Ye){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(De.x,De.y),this.drawing=!0):Ze.prototype.pointerDown.call(this,De,Ye)},je.prototype.manipulate=function(De){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(De.x,De.y),this.canvasContext.stroke()):Ze.prototype.manipulate.call(this,De)},je.prototype.resize=function(De){Ze.prototype.resize.call(this,De),be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},je.prototype.pointerUp=function(De){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ze.prototype.pointerUp.call(this,De)},je.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)},je.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ze.prototype.select.call(this)},je.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ze.prototype.deselect.call(this)},je.prototype.finishCreation=function(){for(var De=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ye=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],dt=Ye[0],Ke=Ye[1],At=Ye[2],zt=Ye[3],_t=!1,Ot=0;Ot<this.canvasElement.height;Ot++)for(var Vt=0;Vt<this.canvasElement.width;Vt++)De.data[Ot*this.canvasElement.width*4+4*Vt+3]>0&&(_t=!0,Ot<Ke&&(Ke=Ot),Vt<dt&&(dt=Vt),Ot>zt&&(zt=Ot),Vt>At&&(At=Vt));if(_t){this.left=dt/this.pixelRatio,this.top=Ke/this.pixelRatio,this.width=(At-dt)/this.pixelRatio,this.height=(zt-Ke)/this.pixelRatio;var en=document.createElement("canvas");en.width=At-dt,en.height=zt-Ke,en.getContext("2d").putImageData(this.canvasContext.getImageData(dt,Ke,At-dt,zt-Ke),0,0),this.drawingImgUrl=en.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},je.prototype.setDrawingImage=function(){be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),be.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},je.prototype.setColor=function(De){this.color=De,this.colorChanged(De)},je.prototype.setLineWidth=function(De){this.lineWidth=De},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({drawingImgUrl:this.drawingImgUrl},Ze.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){this.createVisual(),Ze.prototype.restoreState.call(this,De),this.drawingImgUrl=De.drawingImgUrl,this.setDrawingImage()},je.prototype.scale=function(De,Ye){Ze.prototype.scale.call(this,De,Ye),this.setDrawingImage()},je.typeName="FreehandMarker",je.title="Freehand marker",je.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>',je}(Te),_e=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,dt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ke.typeBoxes=[],Ke.currentType=Ye,Ke.setCurrentType=Ke.setCurrentType.bind(Ke),Ke}return ce(je,Ze),je.prototype.getUi=function(){var De=this,Ye=document.createElement("div");Ye.style.display="flex",Ye.style.overflow="hidden",Ye.style.flexGrow="2";for(var dt=function(zt){var _t="both";switch(zt){case 0:_t="both";break;case 1:_t="start";break;case 2:_t="end";break;case 3:_t="none"}var Ot=document.createElement("div");if(Ot.style.display="flex",Ot.style.flexGrow="2",Ot.style.alignItems="center",Ot.style.justifyContent="space-between",Ot.style.padding="5px",Ot.style.borderWidth="2px",Ot.style.borderStyle="solid",Ot.style.borderColor=_t===Ke.currentType?Ke.uiStyleSettings.toolboxAccentColor:"transparent",Ot.addEventListener("click",function(){De.setCurrentType(_t,Ot)}),Ye.appendChild(Ot),_t==="both"||_t==="start"){var Vt=document.createElement("div");Vt.style.display="flex",Vt.style.alignItems="center",Vt.style.minHeight="20px",Vt.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="`+(Ke.uiStyleSettings!==void 0?Ke.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Vt.style.marginLeft="5px",Ot.appendChild(Vt)}var en=document.createElement("div");en.style.display="flex",en.style.alignItems="center",en.style.minHeight="20px",en.style.flexGrow="2";var on=document.createElement("hr");if(on.style.minWidth="20px",on.style.border="0px",on.style.borderTop="3px solid "+(Ke.uiStyleSettings!==void 0?Ke.uiStyleSettings.toolboxColor:"#eeeeee"),on.style.flexGrow="2",en.appendChild(on),Ot.appendChild(en),_t==="both"||_t==="end"){var fn=document.createElement("div");fn.style.display="flex",fn.style.alignItems="center",fn.style.minHeight="20px",fn.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="`+(Ke.uiStyleSettings!==void 0?Ke.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,fn.style.marginRight="5px",Ot.appendChild(fn)}Ke.typeBoxes.push(Ot)},Ke=this,At=0;At<4;At++)dt(At);return Ye},je.prototype.setCurrentType=function(De,Ye){var dt=this;this.currentType=De,this.typeBoxes.forEach(function(Ke){Ke.style.borderColor=Ke===Ye?dt.uiStyleSettings!==void 0?dt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},je}(ue),st=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.arrowType="end",Ke.arrowBaseHeight=10,Ke.arrowBaseWidth=10,Ke.getArrowPoints=Ke.getArrowPoints.bind(Ke),Ke.setArrowType=Ke.setArrowType.bind(Ke),Ke.arrowTypePanel=new _e("Arrow type","end"),Ke.arrowTypePanel.onArrowTypeChanged=Ke.setArrowType,Ke}return ce(je,Ze),je.prototype.ownsTarget=function(De){return!(!Ze.prototype.ownsTarget.call(this,De)&&De!==this.arrow1&&De!==this.arrow2)},je.prototype.getArrowPoints=function(De,Ye){var dt=this.arrowBaseWidth+2*this.strokeWidth,Ke=this.arrowBaseHeight+2*this.strokeWidth;return De-dt/2+","+(Ye+Ke/2)+" "+De+","+(Ye-Ke/2)+" "+(De+dt/2)+","+(Ye+Ke/2)},je.prototype.createTips=function(){this.arrow1=be.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(be.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=be.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(be.createTransform()),this.visual.appendChild(this.arrow2)},je.prototype.pointerDown=function(De,Ye){Ze.prototype.pointerDown.call(this,De,Ye),this.state==="creating"&&this.createTips()},je.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",be.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),be.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var De=0;Math.abs(this.x1-this.x2)>.1&&(De=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ye=this.arrow1.transform.baseVal.getItem(0);Ye.setRotate(De,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ye,0);var dt=this.arrow2.transform.baseVal.getItem(0);dt.setRotate(De+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(dt,0)}},je.prototype.setArrowType=function(De){this.arrowType=De,this.adjustVisual(),this.stateChanged()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({arrowType:this.arrowType},Ze.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){Ze.prototype.restoreState.call(this,De);var Ye=De;this.arrowType=Ye.arrowType,this.createTips(),this.adjustVisual()},je.typeName="ArrowMarker",je.title="Arrow marker",je.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',je}(qe),pt=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.fillColor=dt.defaultFillColor,Ke.strokeWidth=0,Ke.fillPanel=new pe("Color",dt.defaultColorSet,dt.defaultFillColor),Ke.fillPanel.onColorChanged=Ke.setFillColor,Ke}return ce(je,Ze),Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Ze.prototype.getState.call(this);return De.typeName=je.typeName,De},je.typeName="CoverMarker",je.title="Cover marker",je.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',je}(Me),bt=function(Ze){function je(De,Ye,dt,Ke){var At=Ze.call(this,De,Ke||'<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 At.opacities=[],At.opacityBoxes=[],At.opacities=Ye,At.currentOpacity=dt,At.setCurrentOpacity=At.setCurrentOpacity.bind(At),At}return ce(je,Ze),je.prototype.getUi=function(){var De=this,Ye=document.createElement("div");return Ye.style.display="flex",Ye.style.overflow="hidden",Ye.style.flexGrow="2",Ye.style.justifyContent="space-between",this.opacities.forEach(function(dt){var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.justifyContent="center",Ke.style.padding="5px",Ke.style.borderWidth="2px",Ke.style.borderStyle="solid",Ke.style.borderColor=dt===De.currentOpacity?De.uiStyleSettings.toolboxAccentColor:"transparent",Ke.addEventListener("click",function(){De.setCurrentOpacity(dt,Ke)}),Ye.appendChild(Ke);var At=document.createElement("div");At.innerText=100*dt+"%",Ke.appendChild(At),De.opacityBoxes.push(Ke)}),Ye},je.prototype.setCurrentOpacity=function(De,Ye){var dt=this;this.currentOpacity=De,this.opacityBoxes.forEach(function(Ke){Ke.style.borderColor=Ke===Ye?dt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},je}(ue),wt=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.setOpacity=Ke.setOpacity.bind(Ke),Ke.fillColor=dt.defaultHighlightColor,Ke.strokeWidth=0,Ke.opacity=dt.defaultHighlightOpacity,Ke.fillPanel=new pe("Color",dt.defaultColorSet,Ke.fillColor),Ke.fillPanel.onColorChanged=Ke.setFillColor,Ke.opacityPanel=new bt("Opacity",dt.defaultOpacitySteps,Ke.opacity),Ke.opacityPanel.onOpacityChanged=Ke.setOpacity,Ke}return ce(je,Ze),je.prototype.setOpacity=function(De){this.opacity=De,this.visual&&be.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Ze.prototype.getState.call(this);return De.typeName=je.typeName,De},je.typeName="HighlightMarker",je.title="Highlight marker",je.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>',je}(pt),mt='<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>',vt='<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 je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.bgColor="transparent",Ke.tipPosition={x:0,y:0},Ke.tipBase1Position={x:0,y:0},Ke.tipBase2Position={x:0,y:0},Ke.tipMoving=!1,Ke.color=dt.defaultStrokeColor,Ke.bgColor=dt.defaultFillColor,Ke.fontFamily=dt.defaultFontFamily,Ke.defaultSize={x:100,y:30},Ke.setBgColor=Ke.setBgColor.bind(Ke),Ke.getTipPoints=Ke.getTipPoints.bind(Ke),Ke.positionTip=Ke.positionTip.bind(Ke),Ke.setTipPoints=Ke.setTipPoints.bind(Ke),Ke.colorPanel=new pe("Text color",dt.defaultColorSet,Ke.color,mt),Ke.colorPanel.onColorChanged=Ke.setColor,Ke.bgColorPanel=new pe("Fill color",dt.defaultColorSet,Ke.bgColor,vt),Ke.bgColorPanel.onColorChanged=Ke.setBgColor,Ke.fontFamilyPanel=new ut("Font",dt.defaultFontFamilies,dt.defaultFontFamily),Ke.fontFamilyPanel.onFontChanged=Ke.setFont,Ke.tipGrip=new Ne,Ke.tipGrip.visual.transform.baseVal.appendItem(be.createTransform()),Ke.controlBox.appendChild(Ke.tipGrip.visual),Ke}return ce(je,Ze),je.prototype.ownsTarget=function(De){return Ze.prototype.ownsTarget.call(this,De)||this.tipGrip.ownsTarget(De)||this.tip===De},je.prototype.createTip=function(){be.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=be.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},je.prototype.pointerDown=function(De,Ye){this.state==="new"&&Ze.prototype.pointerDown.call(this,De,Ye),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ye)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ze.prototype.pointerDown.call(this,De,Ye)},je.prototype.pointerUp=function(De){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ze.prototype.pointerUp.call(this,De);else{var Ye=this.state==="creating";Ze.prototype.pointerUp.call(this,De),this.setTipPoints(Ye),this.positionTip()}},je.prototype.manipulate=function(De){if(this.tipMoving){var Ye=this.unrotatePoint(De);this.tipPosition={x:Ye.x-this.manipulationStartLeft,y:Ye.y-this.manipulationStartTop},this.positionTip()}else Ze.prototype.manipulate.call(this,De)},je.prototype.setBgColor=function(De){this.bgRectangle&&this.tip&&(be.setAttributes(this.bgRectangle,[["fill",De]]),be.setAttributes(this.tip,[["fill",De]])),this.bgColor=De,this.fillColorChanged(De)},je.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},je.prototype.setTipPoints=function(De){De===void 0&&(De=!1);var Ye=Math.min(this.height/2,15),dt=this.height/5;De&&(this.tipPosition={x:Ye+dt/2,y:this.height+20});var Ke=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ke<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(dt=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:Ye,y:0},this.tipBase2Position={x:Ye+dt,y:0}):(this.tipBase1Position={x:0,y:Ye},this.tipBase2Position={x:0,y:Ye+dt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ke<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(dt=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ye-dt,y:0},this.tipBase2Position={x:this.width-Ye,y:0}):(this.tipBase1Position={x:this.width,y:Ye},this.tipBase2Position={x:this.width,y:Ye+dt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ke<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(dt=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ye-dt,y:this.height},this.tipBase2Position={x:this.width-Ye,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ye-dt},this.tipBase2Position={x:this.width,y:this.height-Ye}):Ke<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(dt=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:Ye,y:this.height},this.tipBase2Position={x:Ye+dt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ye},this.tipBase2Position={x:0,y:this.height-Ye-dt})},je.prototype.resize=function(De){Ze.prototype.resize.call(this,De),this.positionTip()},je.prototype.positionTip=function(){be.setAttributes(this.tip,[["points",this.getTipPoints()]]);var De=this.tipGrip.visual.transform.baseVal.getItem(0);De.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(De,0)},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),je.prototype.select=function(){this.positionTip(),Ze.prototype.select.call(this)},je.prototype.getState=function(){var De=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ze.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){var Ye=De;this.bgColor=Ye.bgColor,this.tipPosition=Ye.tipPosition,Ze.prototype.restoreState.call(this,De),this.createTip(),this.setTipPoints()},je.prototype.scale=function(De,Ye){Ze.prototype.scale.call(this,De,Ye),this.tipPosition={x:this.tipPosition.x*De,y:this.tipPosition.y*Ye},this.positionTip()},je.typeName="CalloutMarker",je.title="Callout marker",je.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>',je}(ct),Nt=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.fillColor="transparent",Ke.strokeColor="transparent",Ke.strokeWidth=0,Ke.strokeDasharray="",Ke.opacity=1,Ke.strokeColor=dt.defaultColor,Ke.strokeWidth=dt.defaultStrokeWidth,Ke.strokeDasharray=dt.defaultStrokeDasharray,Ke.fillColor=dt.defaultFillColor,Ke.setStrokeColor=Ke.setStrokeColor.bind(Ke),Ke.setFillColor=Ke.setFillColor.bind(Ke),Ke.setStrokeWidth=Ke.setStrokeWidth.bind(Ke),Ke.setStrokeDasharray=Ke.setStrokeDasharray.bind(Ke),Ke.setOpacity=Ke.setOpacity.bind(Ke),Ke.createVisual=Ke.createVisual.bind(Ke),Ke.strokePanel=new pe("Line color",ye(dt.defaultColorSet,["transparent"]),dt.defaultColor),Ke.strokePanel.onColorChanged=Ke.setStrokeColor,Ke.fillPanel=new pe("Fill color",ye(dt.defaultColorSet,["transparent"]),Ke.fillColor,vt),Ke.fillPanel.onColorChanged=Ke.setFillColor,Ke.strokeWidthPanel=new Be("Line width",dt.defaultStrokeWidths,dt.defaultStrokeWidth),Ke.strokeWidthPanel.onWidthChanged=Ke.setStrokeWidth,Ke.strokeStylePanel=new Re("Line style",dt.defaultStrokeDasharrays,dt.defaultStrokeDasharray),Ke.strokeStylePanel.onStyleChanged=Ke.setStrokeDasharray,Ke.opacityPanel=new bt("Opacity",dt.defaultOpacitySteps,Ke.opacity),Ke.opacityPanel.onOpacityChanged=Ke.setOpacity,Ke}return ce(je,Ze),je.prototype.ownsTarget=function(De){return!(!Ze.prototype.ownsTarget.call(this,De)&&De!==this.visual)},je.prototype.createVisual=function(){this.visual=be.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)},je.prototype.pointerDown=function(De,Ye){Ze.prototype.pointerDown.call(this,De,Ye),this.state==="new"&&(this.createVisual(),this.moveVisual(De),this._state="creating")},je.prototype.manipulate=function(De){Ze.prototype.manipulate.call(this,De)},je.prototype.resize=function(De){Ze.prototype.resize.call(this,De),this.setSize()},je.prototype.setSize=function(){Ze.prototype.setSize.call(this),be.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},je.prototype.pointerUp=function(De){Ze.prototype.pointerUp.call(this,De),this.setSize()},je.prototype.setStrokeColor=function(De){this.strokeColor=De,this.visual&&be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(De),this.stateChanged()},je.prototype.setFillColor=function(De){this.fillColor=De,this.visual&&be.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(De),this.stateChanged()},je.prototype.setStrokeWidth=function(De){this.strokeWidth=De,this.visual&&be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},je.prototype.setStrokeDasharray=function(De){this.strokeDasharray=De,this.visual&&be.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},je.prototype.setOpacity=function(De){this.opacity=De,this.visual&&be.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ze.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){var Ye=De;this.fillColor=Ye.fillColor,this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.opacity=Ye.opacity,this.createVisual(),Ze.prototype.restoreState.call(this,De),this.setSize()},je.prototype.scale=function(De,Ye){Ze.prototype.scale.call(this,De,Ye),this.setSize()},je.typeName="EllipseMarker",je.title="Ellipse marker",je.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>',je}(Te),Ft=function(Ze){function je(De,Ye,dt){return Ze.call(this,De,Ye,dt)||this}return ce(je,Ze),Object.defineProperty(je.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),je.prototype.ownsTarget=function(De){return!(!Ze.prototype.ownsTarget.call(this,De)&&De!==this.tip1&&De!==this.tip2)},je.prototype.createTips=function(){this.tip1=be.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(be.createTransform()),this.visual.appendChild(this.tip1),this.tip2=be.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(be.createTransform()),this.visual.appendChild(this.tip2)},je.prototype.pointerDown=function(De,Ye){Ze.prototype.pointerDown.call(this,De,Ye),this.state==="creating"&&this.createTips()},je.prototype.adjustVisual=function(){if(Ze.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(be.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()]]),be.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 De=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ye=this.tip1.transform.baseVal.getItem(0);Ye.setRotate(De,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ye,0);var dt=this.tip2.transform.baseVal.getItem(0);dt.setRotate(De+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(dt,0)}},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Ze.prototype.getState.call(this);return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){Ze.prototype.restoreState.call(this,De),this.createTips(),this.adjustVisual()},je.typeName="MeasurementMarker",je.title="Measurement marker",je.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>',je}(qe),Kt=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.strokePanel.colors=dt.defaultColorSet,Ke.fillColor="transparent",Ke}return ce(je,Ze),Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Ze.prototype.getState.call(this);return De.typeName=je.typeName,De},je.typeName="EllipseFrameMarker",je.title="Ellipse frame marker",je.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>',je}(Nt),Pt=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(je){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(je)||(this.undoStack.push(je),JSON.stringify(this.lastRedoStep)!==JSON.stringify(je)&&this.redoStack.splice(0,this.redoStack.length))},Ze.prototype.replaceLastUndoStep=function(je){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=je)},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 je=this.undoStack.pop();return je!==void 0&&this.redoStack.push(je),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}(),Et=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.strokeColor="transparent",Ke.strokeWidth=0,Ke.strokeDasharray="",Ke.curveX=0,Ke.curveY=0,Ke.manipulationStartCurveX=0,Ke.manipulationStartCurveY=0,Ke.setStrokeColor=Ke.setStrokeColor.bind(Ke),Ke.setStrokeWidth=Ke.setStrokeWidth.bind(Ke),Ke.setStrokeDasharray=Ke.setStrokeDasharray.bind(Ke),Ke.positionGrips=Ke.positionGrips.bind(Ke),Ke.addControlGrips=Ke.addControlGrips.bind(Ke),Ke.adjustVisual=Ke.adjustVisual.bind(Ke),Ke.setupControlBox=Ke.setupControlBox.bind(Ke),Ke.resize=Ke.resize.bind(Ke),Ke.strokeColor=dt.defaultColor,Ke.strokeWidth=dt.defaultStrokeWidth,Ke.strokeDasharray=dt.defaultStrokeDasharray,Ke.strokePanel=new pe("Line color",dt.defaultColorSet,dt.defaultColor),Ke.strokePanel.onColorChanged=Ke.setStrokeColor,Ke.strokeWidthPanel=new Be("Line width",dt.defaultStrokeWidths,dt.defaultStrokeWidth),Ke.strokeWidthPanel.onWidthChanged=Ke.setStrokeWidth,Ke.strokeStylePanel=new Re("Line style",dt.defaultStrokeDasharrays,dt.defaultStrokeDasharray),Ke.strokeStylePanel.onStyleChanged=Ke.setStrokeDasharray,Ke}return ce(je,Ze),je.prototype.ownsTarget=function(De){return!(!Ze.prototype.ownsTarget.call(this,De)&&De!==this.visual&&De!==this.selectorCurve&&De!==this.visibleCurve&&!this.curveGrip.ownsTarget(De))},je.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},je.prototype.createVisual=function(){this.visual=be.createGroup(),this.selectorCurve=be.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=be.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)},je.prototype.pointerDown=function(De,Ye){Ze.prototype.pointerDown.call(this,De,Ye),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=De.x,this.curveY=De.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ye)&&(this.activeGrip=this.curveGrip,this._state="resize")},je.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),be.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),be.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),be.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},je.prototype.setupControlBox=function(){Ze.prototype.setupControlBox.call(this),this.curveControlLine1=be.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=be.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)},je.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ze.prototype.addControlGrips.call(this)},je.prototype.positionGrips=function(){Ze.prototype.positionGrips.call(this);var De=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-De/2,this.curveY-De/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()))},je.prototype.manipulate=function(De){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+De.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+De.y-this.manipulationStartY),Ze.prototype.manipulate.call(this,De)},je.prototype.resize=function(De){this.activeGrip===this.curveGrip&&(this.curveX=De.x,this.curveY=De.y),Ze.prototype.resize.call(this,De),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},je.prototype.setStrokeColor=function(De){this.strokeColor=De,this.adjustVisual(),this.colorChanged(De)},je.prototype.setStrokeWidth=function(De){this.strokeWidth=De,this.adjustVisual()},je.prototype.setStrokeDasharray=function(De){this.strokeDasharray=De,this.adjustVisual()},je.prototype.scale=function(De,Ye){this.curveX=this.curveX*De,this.curveY=this.curveY*Ye,Ze.prototype.scale.call(this,De,Ye)},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ze.prototype.getState.call(this));return De.typeName=je.typeName,De},je.prototype.restoreState=function(De){Ze.prototype.restoreState.call(this,De);var Ye=De;this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.curveX=Ye.curveX,this.curveY=Ye.curveY,this.createVisual(),this.adjustVisual()},je.typeName="CurveMarker",je.title="Curve marker",je.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>',je}($e),at=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,Ye,dt)||this;return Ke.fillColor="transparent",Ke.strokeColor="transparent",Ke.strokeWidth=0,Ke.strokeDasharray="",Ke.textColor="transparent",Ke.fontSize="1rem",Ke.isMoved=!1,Ke.captionText="Caption",Ke.PADDING=5,Ke.captionBoxWidth=0,Ke.captionBoxHeight=0,Ke.strokeColor=dt.defaultColor,Ke.strokeWidth=dt.defaultStrokeWidth,Ke.strokeDasharray=dt.defaultStrokeDasharray,Ke.fillColor=dt.defaultFillColor,Ke.textColor=dt.defaultStrokeColor,Ke.fontFamily=dt.defaultFontFamily,Ke.fontSize=dt.defaultCaptionFontSize,Ke.captionText=dt.defaultCaptionText,Ke.setStrokeColor=Ke.setStrokeColor.bind(Ke),Ke.setFillColor=Ke.setFillColor.bind(Ke),Ke.setStrokeWidth=Ke.setStrokeWidth.bind(Ke),Ke.setStrokeDasharray=Ke.setStrokeDasharray.bind(Ke),Ke.createVisual=Ke.createVisual.bind(Ke),Ke.sizeCaption=Ke.sizeCaption.bind(Ke),Ke.setCaptionText=Ke.setCaptionText.bind(Ke),Ke.showTextEditor=Ke.showTextEditor.bind(Ke),Ke.positionTextEditor=Ke.positionTextEditor.bind(Ke),Ke.finishTextEditing=Ke.finishTextEditing.bind(Ke),Ke.setFont=Ke.setFont.bind(Ke),Ke.setTextColor=Ke.setTextColor.bind(Ke),Ke.strokePanel=new pe("Line color",ye(dt.defaultColorSet,["transparent"]),Ke.strokeColor),Ke.strokePanel.onColorChanged=Ke.setStrokeColor,Ke.fillPanel=new pe("Fill color",ye(dt.defaultColorSet,["transparent"]),Ke.fillColor,vt),Ke.fillPanel.onColorChanged=Ke.setFillColor,Ke.strokeWidthPanel=new Be("Line width",dt.defaultStrokeWidths,dt.defaultStrokeWidth),Ke.strokeWidthPanel.onWidthChanged=Ke.setStrokeWidth,Ke.strokeStylePanel=new Re("Line style",dt.defaultStrokeDasharrays,dt.defaultStrokeDasharray),Ke.strokeStylePanel.onStyleChanged=Ke.setStrokeDasharray,Ke.fontFamilyPanel=new ut("Font",dt.defaultFontFamilies,dt.defaultFontFamily),Ke.fontFamilyPanel.onFontChanged=Ke.setFont,Ke.textColorPanel=new pe("Text color",dt.defaultColorSet,Ke.textColor,mt),Ke.textColorPanel.onColorChanged=Ke.setTextColor,Ke}return ce(je,Ze),je.prototype.ownsTarget=function(De){return!(!Ze.prototype.ownsTarget.call(this,De)&&De!==this.visual&&De!==this.frame&&De!==this.captionBg&&De!==this.captionElement)},je.prototype.createVisual=function(){this.visual=be.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=be.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=be.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=be.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()},je.prototype.setCaptionText=function(De){this.captionText=De,this.captionElement.textContent=this.captionText,this.sizeCaption()},je.prototype.pointerDown=function(De,Ye){Ze.prototype.pointerDown.call(this,De,Ye),this.isMoved=!1,this.pointerDownPoint=De,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(De),this._state="creating")},je.prototype.manipulate=function(De){Ze.prototype.manipulate.call(this,De),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(De.x-this.pointerDownPoint.x)>5||Math.abs(De.y-this.pointerDownPoint.y)>5)},je.prototype.resize=function(De){Ze.prototype.resize.call(this,De),this.setSize()},je.prototype.sizeCaption=function(){var De=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=De.width+2*this.PADDING,this.captionBoxHeight=De.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),be.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')"]]),be.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')"]])},je.prototype.showTextEditor=function(){var De=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(Ye){Ye.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ye){Ye.key==="Enter"&&De.finishTextEditing(De.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ye){Ye.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){De.finishTextEditing(De.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){De.finishTextEditing(De.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},je.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"))},je.prototype.finishTextEditing=function(De){this.setCaptionText(De.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},je.prototype.setFont=function(De){this.captionElement&&be.setAttributes(this.captionElement,[["font-family",De]]),this.fontFamily=De,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},je.prototype.setTextColor=function(De){this.captionElement&&be.setAttributes(this.captionElement,[["fill",De]]),this.textColor=De,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},je.prototype.setSize=function(){Ze.prototype.setSize.call(this),be.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},je.prototype.pointerUp=function(De){Ze.prototype.pointerUp.call(this,De),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},je.prototype.dblClick=function(De,Ye){Ze.prototype.dblClick.call(this,De,Ye),this.showTextEditor()},je.prototype.setStrokeColor=function(De){this.strokeColor=De,this.frame&&be.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(De),this.stateChanged()},je.prototype.setFillColor=function(De){this.fillColor=De,this.captionBg&&be.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(De),this.stateChanged()},je.prototype.setStrokeWidth=function(De){this.strokeWidth=De,this.frame&&be.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},je.prototype.setStrokeDasharray=function(De){this.strokeDasharray=De,this.frame&&be.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),je.prototype.getState=function(){var De=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 De.typeName=this.typeName,De},je.prototype.restoreState=function(De){var Ye=De;this.fillColor=Ye.fillColor,this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.textColor=Ye.textColor,this.fontFamily=Ye.fontFamily,this.captionText=Ye.captionText,this.fontSize=Ye.fontSize,this.createVisual(),Ze.prototype.restoreState.call(this,De),this.setSize()},je.prototype.scale=function(De,Ye){Ze.prototype.scale.call(this,De,Ye),this.setSize()},je.typeName="CaptionFrameMarker",je.title="Caption frame marker",je.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>',je}(Te),Ct=function(){function Ze(je,De){De===void 0&&(De=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=je,this.cancelable=De}return Object.defineProperty(Ze.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ze.prototype.preventDefault=function(){this._defaultPrevented=!0},Ze}(),nt=function(Ze){function je(De,Ye,dt){var Ke=Ze.call(this,De,!1)||this;return Ke.dataUrl=Ye,Ke.state=dt,Ke}return ce(je,Ze),je}(Ct),ht=function(Ze){function je(De,Ye,dt){dt===void 0&&(dt=!1);var Ke=Ze.call(this,De,dt)||this;return Ke.marker=Ye,Ke}return ce(je,Ze),je}(Ct),Mt=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(je,De){this[je].push(De)},Ze.prototype.removeEventListener=function(je,De){var Ye=this[je].indexOf(De);Ye>-1&&this[je].splice(Ye,1)},Ze}(),gt=function(){function Ze(je){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new He,this._isOpen=!1,this.undoRedoManager=new Pt,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 Mt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ze.instanceCounter++,this.styles=new z(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=je,this.targetRoot=document.body,this.width=je.clientWidth,this.height=je.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[Qe,yt,st,ct,Kt,Nt,wt,St,Ft,pt,qe,Et,at]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Qe,yt,st,ct,Nt,wt,St]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Qe,yt,st,ct,wt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(je){var De=this;this._availableMarkerTypes.splice(0),je.forEach(function(Ye){if(typeof Ye=="string"){var dt=De.ALL_MARKER_TYPES.find(function(Ke){return Ke.typeName===Ye});dt!==void 0&&De._availableMarkerTypes.push(dt)}else De._availableMarkerTypes.push(Ye)})},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(je){this._zoomLevel=je,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(),me.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ze.prototype.show=function(){var je=this;this.styles.styleSheetRoot===void 0&&fe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=fe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(De){return De(new Ct(je))})},Ze.prototype.render=function(){return Ce(this,void 0,void 0,function(){var je;return Ee(this,function(De){switch(De.label){case 0:return this.setCurrentMarker(),(je=new xe).naturalSize=this.renderAtNaturalSize,je.imageType=this.renderImageType,je.imageQuality=this.renderImageQuality,je.markersOnly=this.renderMarkersOnly,je.width=this.renderWidth,je.height=this.renderHeight,[4,je.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return De.sent(),[4,je.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,De.sent()]}})})},Ze.prototype.close=function(je){var De=this;if(je===void 0&&(je=!1),this.isOpen){var Ye=!1;je||this.eventListeners.beforeclose.forEach(function(dt){var Ke=new Ct(De,!0);dt(Ke),Ke.defaultPrevented&&(Ye=!0)}),Ye||(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(dt){return dt(new Ct(De))}),this.detachEvents(),this._isOpen=!1)}},Ze.prototype.addMarkersToToolbar=function(){for(var je,De=[],Ye=0;Ye<arguments.length;Ye++)De[Ye]=arguments[Ye];(je=this._availableMarkerTypes).push.apply(je,De)},Ze.prototype.addRenderEventListener=function(je){this.addEventListener("render",function(De){je(De.dataUrl,De.state)})},Ze.prototype.removeRenderEventListener=function(je){},Ze.prototype.addCloseEventListener=function(je){this.addEventListener("close",function(){je()})},Ze.prototype.removeCloseEventListener=function(je){},Ze.prototype.setupResizeObserver=function(){var je=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){je.resize(je.target.clientWidth,je.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return je.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ze.prototype.onPopupTargetResize=function(){var je=1*this.target.clientWidth/this.target.clientHeight,De=this.editorCanvas.clientWidth/je>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*je:this.editorCanvas.clientWidth,Ye=De<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/je;this.resize(De,Ye)},Ze.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ze.prototype.resize=function(je,De){this._isResizing=!0;var Ye=je/this.imageWidth,dt=De/this.imageHeight;this.imageWidth=Math.round(je),this.imageHeight=Math.round(De),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(Ye,dt),this._isResizing=!1},Ze.prototype.scaleMarkers=function(je,De){var Ye,dt=this;this._currentMarker&&this._currentMarker instanceof ct?this._currentMarker.scale(je,De):(Ye=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ke){Ke!==dt._currentMarker&&Ke.scale(je,De)}),Ye!==void 0&&this.setCurrentMarker(Ye)},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 je=this.editingTarget.getBoundingClientRect(),De=this.editorCanvas.getBoundingClientRect();this.left=je.left-De.left,this.top=je.top-De.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 je,De=[],Ye=0;Ye<arguments.length;Ye++)De[Ye]=arguments[Ye];this.defs=be.createDefs(),this.addDefsToImage(),(je=this.defs).append.apply(je,De)},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 je=document.createElement("a");je.href="https://markerjs.com/",je.target="_blank",je.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>',je.title="Powered by marker.js",je.style.display="grid",je.style.alignItems="center",je.style.justifyItems="center",je.style.padding="3px",je.style.width="20px",je.style.height="20px",this.logoUI.appendChild(je),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 je=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=je+"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 re(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 le(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(je){this.markerImage.removeChild(je.container),this.markers.indexOf(je)>-1&&this.markers.splice(this.markers.indexOf(je),1),je.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(je,De){if(je==="marker"&&De!==void 0)this.createNewMarker(De);else if(je==="action")switch(De){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 je=this;if(this._currentMarker!==void 0){var De=!1;if(this.eventListeners.markerbeforedelete.forEach(function(dt){var Ke=new ht(je,je._currentMarker,!0);dt(Ke),Ke.defaultPrevented&&(De=!0)}),!De){var Ye=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(dt){return dt(new ht(je,Ye))})}}},Ze.prototype.clear=function(){var je=this,De=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(At){var zt=new ht(je,void 0,!0);At(zt),zt.defaultPrevented&&(De=!0)}),!De)){this.setCurrentMarker();for(var Ye=function(At){var zt=dt.markers[At];dt.setCurrentMarker(dt.markers[At]),dt._currentMarker.dispose(),dt.markerImage.removeChild(dt._currentMarker.container),dt.markers.splice(dt.markers.indexOf(dt._currentMarker),1),dt.eventListeners.markerdelete.forEach(function(_t){return _t(new ht(je,zt))})},dt=this,Ke=this.markers.length-1;Ke>=0;Ke--)Ye(Ke);this.addUndoStep()}},Object.defineProperty(Ze.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ze.prototype.showNotesEditor=function(){var je;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=(je=this._currentMarker.notes)!==null&&je!==void 0?je:"",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 je=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var De=this.getState(),Ye=this.undoRedoManager.getLastUndoStep();if(!Ye||Ye.width===De.width&&Ye.height===De.height){var dt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(De),dt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ke){return Ke(new Ct(je))})}else this.undoRedoManager.replaceLastUndoStep(De),this.eventListeners.statechange.forEach(function(Ke){return Ke(new Ct(je))})}},Ze.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ze.prototype.undoStep=function(){var je=this,De=this.undoRedoManager.undo();De!==void 0&&(this.restoreState(De),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ye){return Ye(new Ct(je))}))},Ze.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ze.prototype.redoStep=function(){var je=this,De=this.undoRedoManager.redo();De!==void 0&&(this.restoreState(De),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ye){return Ye(new Ct(je))}))},Ze.prototype.stepZoom=function(){var je=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=je<this.zoomSteps.length-1?this.zoomSteps[je+1]:this.zoomSteps[0]},Ze.prototype.panTo=function(je){this.contentDiv.scrollBy({left:this.prevPanPoint.x-je.x,top:this.prevPanPoint.y-je.y}),this.prevPanPoint=je},Ze.prototype.startRenderAndClose=function(){return Ce(this,void 0,void 0,function(){var je,De,Ye=this;return Ee(this,function(dt){switch(dt.label){case 0:return[4,this.render()];case 1:return je=dt.sent(),De=this.getState(),this.eventListeners.render.forEach(function(Ke){return Ke(new nt(Ye,je,De))}),this.close(!0),[2]}})})},Ze.prototype.getState=function(je){je===!0&&this.setCurrentMarker();var De={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ye){return De.markers.push(Ye.getState())}),De},Ze.prototype.restoreState=function(je){var De=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);je.markers.forEach(function(Ye){var dt=De._availableMarkerTypes.find(function(At){return At.typeName===Ye.typeName});if(dt!==void 0){var Ke=De.addNewMarker(dt);Ke.restoreState(Ye),De.markers.push(Ke)}}),je.width&&je.height&&(je.width!==this.imageWidth||je.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/je.width,this.imageHeight/je.height),this.eventListeners.restorestate.forEach(function(Ye){return Ye(new Ct(De))})},Ze.prototype.addNewMarker=function(je){var De=be.createGroup();return this.markerImage.appendChild(De),new je(De,this.overlayContainer,this.settings)},Ze.prototype.createNewMarker=function(je){var De,Ye=this;(De=typeof je=="string"?this._availableMarkerTypes.find(function(dt){return dt.typeName===je}):je)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(De),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(De.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(dt){return dt(new ht(Ye,Ye._currentMarker))}))},Ze.prototype.markerCreated=function(je){var De=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(je),this.setCurrentMarker(je),je instanceof yt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(yt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ye){return Ye(new ht(De,De._currentMarker))})},Ze.prototype.colorChanged=function(je){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=je,this.settings.defaultStrokeColor=je)},Ze.prototype.fillColorChanged=function(je){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=je)},Ze.prototype.markerStateChanged=function(je){var De=this;this.eventListeners.markerchange.forEach(function(Ye){return Ye(new ht(De,je))})},Ze.prototype.setCurrentMarker=function(je){var De=this;this._currentMarker!==je&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ye){return Ye(new ht(De,De._currentMarker))})),this._currentMarker=je,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(Ye){return Ye(new ht(De,De._currentMarker))}))},Ze.prototype.onPointerDown=function(je){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||je.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var De=this.markers.find(function(Ye){return Ye.ownsTarget(je.target)});De!==void 0?(this.setCurrentMarker(De),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(je.clientX,je.clientY),je.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:je.clientX,y:je.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(je.clientX,je.clientY))},Ze.prototype.onDblClick=function(je){if(this._isFocused||this.focus(),this.mode==="select"){var De=this.markers.find(function(Ye){return Ye.ownsTarget(je.target)});De!==void 0&&De!==this._currentMarker&&this.setCurrentMarker(De),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(je.clientX,je.clientY),je.target):this.setCurrentMarker()}},Ze.prototype.onPointerMove=function(je){this.touchPoints!==1&&je.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||je.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(je.clientX,je.clientY)):this.zoomLevel>1&&this.panTo({x:je.clientX,y:je.clientY}))},Ze.prototype.onPointerUp=function(je){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(je.clientX,je.clientY)),this.isDragging=!1,this.addUndoStep()},Ze.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ze.prototype.onKeyUp=function(je){this._currentMarker===void 0||this.notesArea!==void 0||je.key!=="Delete"&&je.key!=="Backspace"||this.deleteSelectedMarker()},Ze.prototype.clientToLocalCoordinates=function(je,De){var Ye=this.markerImage.getBoundingClientRect();return{x:(je-Ye.left)/this.zoomLevel,y:(De-Ye.top)/this.zoomLevel}},Ze.prototype.onWindowResize=function(){this.positionUI()},Ze.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var je=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=je+"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(je){me.addKey(je)},Ze.prototype.addEventListener=function(je,De){this.eventListeners.addEventListener(je,De)},Ze.prototype.removeEventListener=function(je,De){this.eventListeners.removeEventListener(je,De)},Ze.prototype.renderState=function(je){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(je),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ze.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ze.prototype.focus=function(){var je=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(De){return De(new Ct(je))}))},Ze.prototype.blur=function(){var je=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(De){return De(new Ct(je))}))},Ze.instanceCounter=0,Ze}(),rt=ze(99064),Je=ze(955),Xe=(Ze,je,De)=>new Promise((Ye,dt)=>{var Ke=_t=>{try{zt(De.next(_t))}catch(Ot){dt(Ot)}},At=_t=>{try{zt(De.throw(_t))}catch(Ot){dt(Ot)}},zt=_t=>_t.done?Ye(_t.value):Promise.resolve(_t.value).then(Ke,At);zt((De=De.apply(Ze,je)).next())}),tt=({data:Ze,className:je,fullWidth:De,style:Ye={},onClose:dt,onOk:Ke,showFullTools:At,noAssociationId:zt})=>{const _t=(0,We.useRef)(null),Ot=(0,We.useRef)(null),Vt=(0,We.useRef)(null),en=(0,We.useRef)(null),[on,fn]=(0,We.useState)(!1),[jn,er]=(0,We.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,We.useEffect)(()=>(Vt.current||(Vt.current=document.createElement("style"),document.head.appendChild(Vt.current)),Ze!=null&&Ze.visible?(document.body.setAttribute("data-custom","y-hidden"),Vt.current.innerHTML=" html { overflow-y: hidden; }",Ze!=null&&Ze.src&&tr()):(document.body.removeAttribute("data-custom"),Vt.current&&(document.head.removeChild(Vt.current),Vt.current=null)),()=>{document.body.removeAttribute("data-custom"),Vt.current&&(document.head.removeChild(Vt.current),Vt.current=null)}),[Ze==null?void 0:Ze.visible]);const tr=()=>Xe(void 0,null,function*(){fn(!0),er("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ar=yield(0,Je.ZJ)(Ze==null?void 0:Ze.src);_t.current.src="",_t.current.src=Ar,_t.current.onload=function(){Lr()},fn(!1),er("")}),ur=Ar=>Xe(void 0,null,function*(){fn(!0),er("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Gr=yield(0,rt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ze.title,file:Ar.dataUrl}});Gr!=null&&Gr.id&&!zt?(yield(0,rt.ZP)(`/api/attachments/${Ze.id}/add_subitem.json`,{method:"post",body:{subitem_id:Gr==null?void 0:Gr.id,settings:JSON.stringify(Ar.state)}})).status===0&&Ke():Gr!=null&&Gr.id&&Ke(Gr),fn(!1),er("")}),Tr=()=>{const Ar=document.querySelector('a[href="https://markerjs.com/"]');Ar&&Ar.parentNode&&(Ar.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(Kr=>{const Mr=document.querySelector(Kr.name);Mr&&Mr.setAttribute("title",Kr.title)})},Lr=()=>{Ot.current=new gt(_t.current),Ot.current.targetRoot=en.current,Ot.current.addEventListener("render",ur),Ot.current.addEventListener("beforeclose",dt),At&&(Ot.current.availableMarkerTypes=Ot.current.ALL_MARKER_TYPES,Ot.current.uiStyleSettings.redoButtonVisible=!0,Ot.current.uiStyleSettings.notesButtonVisible=!0,Ot.current.uiStyleSettings.zoomButtonVisible=!0,Ot.current.uiStyleSettings.zoomOutButtonVisible=!0,Ot.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ot.current.uiStyleSettings,Ot.current.show(),Ze!=null&&Ze.snapshotData&&Ot.current.restoreState(Ze.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Tr()},300)};return We.createElement(We.Fragment,null,(Ze==null?void 0:Ze.visible)&&We.createElement(Oe.Z,{spinning:on,tip:jn,style:{position:"absolute",width:"100vw"}},We.createElement("div",{ref:en,className:Ue()(xt.imageDimensions,je,De?xt.fullWidth:""),style:Ye},We.createElement("img",{className:xt.img,ref:_t}))))}},41588:function(Nn,mn,ze){"use strict";var We=ze(59301),xt=ze(95237),oe=ze(43604),Ue=ze(99313),Oe=ze(3113),ve=ze(85149),ce=ze(88010),Ce=ze(48136),Ee=ze(59301);const ye=(0,We.forwardRef)(({callback:be,showSaveButton:me,value:xe=""},fe)=>{const z=(0,We.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(xt.Z,{className:ce.Z.lists,gutter:[10,10]},ee.map((pe,Pe)=>Ee.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Ee.createElement("div",null,Ee.createElement(ve.Z,{value:`$$${pe.value}$$`}),pe.name),Ee.createElement("div",{className:ce.Z.children},pe.children.map((we,Ne)=>Ee.createElement("div",{key:Ne},Ee.createElement("h1",null,we.name),Ee.createElement(xt.Z,{gutter:[10,10]},we.data.map((Ae,Te)=>Ee.createElement(oe.Z,{key:Te,onClick:()=>re(Ae),className:ce.Z.diamond},Ee.createElement(ve.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ee.createElement(xt.Z,{className:ce.Z.lists,gutter:[10,10]},ae.map((pe,Pe)=>Ee.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Ee.createElement("div",null,Ee.createElement(ve.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Ee.createElement("div",{className:ce.Z.children},pe.children.map((we,Ne)=>Ee.createElement("div",{key:Ne},we.name&&Ee.createElement("h1",null,we.name),Ee.createElement(xt.Z,{gutter:[10,10]},we.data.map((Ae,Te)=>Ee.createElement(oe.Z,{key:Te,onClick:()=>re(Ae),className:ce.Z.diamond},Ee.createElement(ve.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var Pe=pe.innerText;return be&&be(Pe),Pe};return(0,We.useImperativeHandle)(fe,()=>({getData:ue})),Ee.createElement("div",{className:ce.Z.mathWrap},Ee.createElement(Ue.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||""),me&&Ee.createElement("div",{className:ce.Z.button},Ee.createElement(Oe.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});mn.Z=ye},8797:function(Nn,mn,ze){"use strict";var We=ze(59301),xt=ze(93314),oe=ze(3113),Ue=Object.defineProperty,Oe=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ye=(fe,z,ee)=>z in fe?Ue(fe,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):fe[z]=ee,be=(fe,z)=>{for(var ee in z||(z={}))Ce.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},me=(fe,z)=>Oe(fe,ve(z));const xe=({img:fe,buttonProps:z={},styles:ee={},customText:ae,ButtonText:re,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:Pe,loading:we=!1,className:Ne=""})=>We.createElement("section",{className:`tc animated fadeIn ${Ne}`,style:be({color:"#999",margin:"100px auto",visibility:we?"hidden":"visible"},ee)},We.createElement("img",{src:fe||xt,style:me(be({},Pe),{pointerEvents:"none",userSelect:"none"})}),We.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),re&&We.createElement(oe.ZP,be({className:ue,onClick:le},z),re),pe&&pe);mn.Z=xe},23210:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return ue}});var We=ze(59301),xt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=ze(3113),Ue=ze(70557),Oe=ze(23954),ve=ze(6848),ce=ze(955),Ce=ze(94941),Ee=ze(8797),ye=ze(3294),be=ze(19381),me=ze(59301),xe=Object.defineProperty,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(pe,Pe,we)=>Pe in pe?xe(pe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):pe[Pe]=we,re=(pe,Pe)=>{for(var we in Pe||(Pe={}))z.call(Pe,we)&&ae(pe,we,Pe[we]);if(fe)for(var we of fe(Pe))ee.call(Pe,we)&&ae(pe,we,Pe[we]);return pe},le=(pe,Pe,we)=>new Promise((Ne,Ae)=>{var Te=Re=>{try{Be(we.next(Re))}catch(Qe){Ae(Qe)}},Me=Re=>{try{Be(we.throw(Re))}catch(Qe){Ae(Qe)}},Be=Re=>Re.done?Ne(Re.value):Promise.resolve(Re.value).then(Te,Me);Be((we=we.apply(pe,Pe)).next())}),ue=({editOffice:pe="view",data:Pe,theme:we,type:Ne,filename:Ae,monacoEditor:Te,className:Me,style:Be,close:Re,onClose:Qe,hasMask:He,disabledDownload:$e,onImgDimensions:qe,showNodata:ut,recordInfo:ct})=>{const[yt,_e]=(0,We.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[st,pt]=(0,We.useState)(""),[bt,wt]=(0,We.useState)(),mt=window.ENV==="build"?"/react/build":"",vt=location.host.startsWith("localhost")?ye.Z.PROXY_SERVER:ye.Z.API_SERVER,Nt=10*(1024*1024),Ft=(0,We.useRef)();Pe!=null&&Pe.startsWith("/api")&&Ne!=="txt"&&(Pe=ye.Z.API_SERVER+Pe);const Kt=Ct=>Ct.substring(Ct.lastIndexOf("/")+1).split(".").pop();Ae&&Te&&(Te.filename=Ae),(0,We.useEffect)(()=>{var Ct,nt;const ht=(nt=(Ct=document.cookie)==null?void 0:Ct.replace(/\s/g,""))==null?void 0:nt.split(";");ht==null||ht.map(Mt=>{let gt=Mt.split("=");gt[0]==="_educoder_session"&&pt(gt[1])})},[]),(0,We.useEffect)(()=>{Ne==="office"&&(Pe.indexOf("bigfilescdn.")>-1||Pe.indexOf("bigfiles1")>-1?wt({url:Pe,fileType:Kt(Pe),model:Pe.indexOf("model=edit")?"edit":"view"}):Pt())},[Ne,Pe]);const Pt=()=>le(void 0,null,function*(){console.log("data:",Pe);let Ct=Pe;Pe.startsWith("http")||(Ct=location.origin+Ct);let nt=new URL(Ct).pathname.split("/").pop();const ht=yield(0,Ce.gJ)({attachment_id:nt});ht.url=vt+ht.url,wt(ht)}),Et=()=>{if(Pe.startsWith("http")||Pe.startsWith("blob:")){at();return}(0,ce.Sv)(Ae||"educoder",Pe,Ae)},at=()=>{ct&&(0,be.fc)({id:ct==null?void 0:ct.id,watch_type:1,course_id:ct==null?void 0:ct.course_id}),(0,ce.Nd)(Ae||"educoder",decodeURIComponent(Pe))};return me.createElement("div",{style:re({},Be||{}),className:`${He&&xt.bgBlack} ${Ne?xt.wrp:"hide"}`},Re&&me.createElement("div",{className:xt.close,ref:Ft},!!qe&&me.createElement(ve.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ft.current},me.createElement("span",{onClick:()=>{Qe(),qe()}},me.createElement("i",{className:"icon-yulanpizhu"}))),!$e&&me.createElement(ve.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ft.current},me.createElement("span",{onClick:at},me.createElement("i",{className:"icon-quxiaozhiding"}))),me.createElement(ve.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ft.current},me.createElement("span",{className:"",onClick:Qe},me.createElement("i",{className:"icon-guanbi1"})))),me.createElement("div",{className:`${xt[Me]} ${Me} ${xt.monaco} ${Ne==="txt"?"show":"hide"}`},Ne==="txt"&&me.createElement(me.Fragment,null,me.createElement(Oe.ZP,re({},Te)))),Ne==="audio"&&me.createElement("audio",{src:`${(Pe==null?void 0:Pe.indexOf("http://"))>-1||(Pe==null?void 0:Pe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Pe}`,autoPlay:!0}),Ne==="video"&&me.createElement(me.Fragment,null,(Pe==null?void 0:Pe.indexOf("http"))>-1?me.createElement("video",{controls:!0,src:`${Pe}`,autoPlay:!0}):me.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Pe}`,autoPlay:!0})),Ne==="office"&&bt&&me.createElement("iframe",{src:`${mt}/office.html?key=${bt.key}&url=${btoa(bt.url)}&callbackUrl=${vt+(bt.callbackUrl||"")}&fileType=${bt.fileType}&title=${bt.title||""}&model=${pe}&officeServer=${ye.Z.ONLYOFFICE}&disabledDownload=${!!$e}`}),Ne==="html"&&me.createElement("iframe",{src:Pe+"&disposition=inline"}),Ne==="pdf"&&me.createElement("iframe",{src:`${mt}/js/pdfview/index.html?filename=${Ae||"educoder.pdf"}&url=${encodeURIComponent(Pe)}&disabledDownload=${!!$e}`}),Ne==="image"&&me.createElement("img",{src:`${(Pe==null?void 0:Pe.indexOf("http://"))>-1||(Pe==null?void 0:Pe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Pe}`}),(Ne==="other"||Ne==="download")&&me.createElement(me.Fragment,null,ut?me.createElement(Ee.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:me.createElement(oe.ZP,{icon:me.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Et,disabled:$e},"\u4E0B\u8F7D")}):me.createElement(oe.ZP,{type:"primary",size:"middle",onClick:Et,disabled:$e},me.createElement(Ue.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Nn,mn,ze){"use strict";ze.d(mn,{z:function(){return Ne},Z:function(){return Ae}});var We=ze(59301),xt=ze(50304),oe=ze(24768),Ue=ze(64018),Oe=ze(65157),ve=ze(3294),ce=ze(955),Ce=ze(15342),Ee=ze(1012),ye=ze(23210),be=ze(59301),xe=({html:Te})=>{const Me=(0,We.useRef)(null),Be=(0,We.useRef)(null),Re=`.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,We.useEffect)(()=>{const Qe=Me.current.attachShadow({mode:"open"});Be.current=document.createElement("div"),Be.current.className="markdown-body",Be.current.innerHTML=Te,Qe.appendChild(Be.current);const He=document.createElement("style");return He.textContent=Re,Qe.appendChild(He),()=>{Qe.innerHTML=""}},[]),(0,We.useEffect)(()=>{Be.current&&(Be.current.innerHTML=Te)},[Te]),be.createElement("div",{ref:Me})},fe=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,re=(Te,Me,Be)=>Me in Te?fe(Te,Me,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Te[Me]=Be,le=(Te,Me)=>{for(var Be in Me||(Me={}))ee.call(Me,Be)&&re(Te,Be,Me[Be]);if(z)for(var Be of z(Me))ae.call(Me,Be)&&re(Te,Be,Me[Be]);return Te};const ue="@\u2581\u2581@",pe="@\u2581@",Pe=/<pre[^>]*>/g;function we(Te){let Me=document.createElement("div");return Me.innerHTML=Te,Me.childNodes.length===0?"":Me.childNodes[0].nodeValue}const Ne=(Te,Me)=>{Te=Te||"";const Be=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Re=/\"(?: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,He=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Me?Te.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Be,($e,qe,ut,ct,yt,_e,st)=>{const pt=qe||ct||_e,bt=ut||yt||st||"?";return ve.Z.API_SERVER+"/api/attachments/"+pt+bt+"&t="+(0,ce.Jn)(pt,Date.now())+($e.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Te=Te.replace(He,($e,qe,ut,ct,yt,_e,st)=>{const pt=qe||ct||_e,bt=ut||yt||st||"?";return ve.Z.API_SERVER+"/attachments/download/"+pt+bt+"&t="+(0,ce.Jn)(pt,Date.now())+($e.indexOf(")")>-1?")":"&")}).replace(Be,($e,qe,ut,ct,yt,_e,st)=>{const pt=qe||ct||_e,bt=ut||yt||st||"?";return ve.Z.API_SERVER+"/api/attachments/"+pt+bt+"&t="+(0,ce.Jn)(pt,Date.now())+($e.indexOf(")")>-1?")":"&")}).replace(Re,($e,qe,ut,ct,yt)=>{const _e=qe||ct,st=ut||yt||"";return'"'+ve.Z.API_SERVER+"/api/attachments/"+_e+st+_e+st+"&t="+(0,ce.Jn)(_e,Date.now())}).replace(Qe,($e,qe,ut,ct,yt)=>{const _e=qe||ct,st=ut||yt||"";return"("+ve.Z.API_SERVER+"/files/uploads/"+_e+st+_e+st+"&t="+(0,ce.Jn)(_e,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,`
`),Te)};var Ae=({value:Te="",className:Me,showTextOnly:Be,showLines:Re,style:Qe={},stylesPrev:He={},highlightKeywords:$e,showProgramFill:qe,isProgramFill:ut,disabledFill:ct=!1,programFillValue:yt,onFillChange:_e=bt=>{},onFillBlur:st=()=>{},onFillFocus:pt=()=>{}})=>{let bt=String(Te);const[wt,mt]=(0,We.useState)(""),[vt,St]=(0,We.useState)("office"),[Nt,Ft]=(0,We.useState)([]),Kt=(0,We.useRef)("a"+(0,Ee.Z)()),Pt={},Et=(Ze,je,De)=>{const Ye=document.createElement(Ze===pe?"input":"textarea");Ye.style.width="100%",Ye.style.height=Ze===pe?"40px":"151px",Ye.rows=5,Ye.spellcheck=!1,Ye.name="edu-program-fill",Ye.placeholder="\u8BF7\u8F93\u5165",Ye.dataset.id=je;const dt=Object.keys(Pt).length;return Pt[dt]=Ye,`<span class="edu-program-fill-wrap ${Ze===pe?"":"show"}" style="width:${Ze===pe?"400px":"100%"}" title=${De||""}><span>${Ye.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function at(Ze){return Ze=Ze.replace(/!\[.*?\]\(.*?\)/g,""),Ze=Ze.replace(/\[.*?\]\(.*?\)/g,""),Ze=Ze.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ze=Ze.replace(/<embed.*?>/g,""),Ze=Ze.replace(/<img.*?>/g,""),Ze=Ze.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ze=Ze.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ze=Ze.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ze=Ze.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ze}const Ct=Ze=>Ze.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(je,De){let Ye=De.replace(/(\n|\r)/g,"").split("}"),dt=[];return Ye.map(Ke=>{Ke!=""&&dt.push(`.${Kt.current} ${Ke}`)}),`<style>${dt.join("}")}</style>`}),nt=(0,We.useMemo)(()=>{try{const Ye=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,dt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ke=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,At=/\(\/attachments\/download\//g;bt=bt.replace(At,"("+ve.Z.API_SERVER+"/attachments/download/").replace(Ye,"("+ve.Z.API_SERVER+"/api/attachments/").replace(dt,'"'+ve.Z.API_SERVER+"/api/attachments/").replace(Ke,'"'+ve.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Ye){}if(qe){let Ye=-1;return bt=bt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(dt,Ke,At){var zt;return++Ye,Et(dt,Ye,(zt=yt==null?void 0:yt[Ye])==null?void 0:zt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ct(bt||"")}</pre>`}let Ze=Ct(bt);Ze=(0,oe.ZP)(Ze);const je=(0,oe.ez)();bt.match(/\[TOC\]/)&&(Ze=Ze.replace("<p>[TOC]</p>",(0,oe.Qv)()),(0,oe.Iy)()),Ze=Ze.replace(/(__special_katext_id_\d+__)/g,(Ye,dt)=>{const{type:Ke,expression:At}=je[dt];return(0,Ce.renderToString)(we(At)||"",{displayMode:Ke==="block",throwOnError:!1,output:"html"})}),Ze=Ze.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const De=document.createElement("div");if(De.innerHTML=Ze,Be)return De.innerText;if($e){const Ye=$e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return rt(De,Ye),De.innerHTML}return setTimeout(()=>Ve(),500),De.innerHTML},[bt,$e]);(0,We.useEffect)(()=>{Je.current&&Je.current.querySelectorAll(["input","textarea"]).forEach(je=>{je.oninput=ht,je.onblur=Mt,je.onfocus=gt})},[Nt]),(0,We.useEffect)(()=>{var Ze,je,De,Ye,dt;if(yt!=null&&yt.length)try{const Ke=Je.current.querySelectorAll(".edu-program-fill-score"),At=Je.current.querySelectorAll('[name="edu-program-fill"]');for(const[zt,_t]of At.entries())_t.value=((Ze=yt==null?void 0:yt[zt])==null?void 0:Ze.value)||"",((je=yt==null?void 0:yt[zt])==null?void 0:je.type)==="warning"?_t.className="program-fill-warning":((De=yt==null?void 0:yt[zt])==null?void 0:De.type)==="success"?_t.className="program-fill-success":_t.className="";for(const[zt,_t]of Ke.entries())_t.innerHTML=(Ye=yt==null?void 0:yt[zt])!=null&&Ye.score?`${(dt=yt==null?void 0:yt[zt])==null?void 0:dt.score}\u5206`:"";Ft(yt)}catch(Ke){console.log(Ke,"error")}},[yt]);const ht=Ze=>{Nt[Ze.target.dataset.id]=Nt[Ze.target.dataset.id]||{},Nt[Ze.target.dataset.id].value=Ze.target.value,Ft([...Nt]),_e(Nt,Ze.target.dataset.id)},Mt=Ze=>{Nt[Ze.target.dataset.id]=Nt[Ze.target.dataset.id]||{},Nt[Ze.target.dataset.id].value=Ze.target.value,Ft([...Nt]),st(Nt,Ze.target.dataset.id)},gt=Ze=>{Nt[Ze.target.dataset.id]=Nt[Ze.target.dataset.id]||{},Nt[Ze.target.dataset.id].value=Ze.target.value,Ft([...Nt]),pt(Nt,Ze.target.dataset.id)};function rt(Ze,je){return Ze.childNodes.forEach(De=>{var Ye;if(De.childNodes.length>0)rt(De,je);else if(De.nodeName!=="IMG")if(De.innerHTML)De.innerHTML=(Ye=De.innerHTML)==null?void 0:Ye.replace(new RegExp(je,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const dt=document.createElement("span");dt.innerHTML=De.textContent.replace(new RegExp(je,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),De.replaceWith(dt)}})}const Je=(0,We.useRef)();oe.jb.WebkitLineClamp=Re,Re&&(Qe=le(le({},Qe),oe.jb));function Xe(Ze){let je=Ze.target;if(je.tagName.toUpperCase()==="A"){let De=je.getAttribute("href");if(De.indexOf("office")>-1)Ze.preventDefault(),mt(De),St("office");else if(De.indexOf("application/pdf")>-1)Ze.preventDefault(),mt(De),St("pdf");else if(De.indexOf("text/html")>-1)Ze.preventDefault(),mt(De),St("html");else if(De.startsWith("#")){Ze.preventDefault();let Ye=document.getElementById(De.replace("#",""));Ye&&Ye.scrollIntoView(!0)}}}const Ve=()=>{var Ze;const je=(Ze=Je.current)==null?void 0:Ze.querySelectorAll("video");je==null||je.forEach(De=>{if(De.oncontextmenu=()=>!1,De.src.indexOf(".m3u8")>-1&&!De.canPlayType("application/vnd.apple.mpegurl")){if(Oe.ZP.isSupported()){var Ye=new Oe.ZP;Ye.loadSource(De.src),Ye.attachMedia(De)}}})};(0,We.useEffect)(()=>{if(Je.current&&nt&&nt.match(Pe)&&window.PR.prettyPrint(),Je.current)return Je.current.addEventListener("click",Xe),()=>{var Ze;(Ze=Je.current)==null||Ze.removeEventListener("click",Xe),(0,oe.AL)(),(0,oe.Iy)()}},[nt,Je.current,Xe]),(0,We.useEffect)(()=>{var Ze;const je=De=>{De.preventDefault(),De.clipboardData.setData("text",window.getSelection().toString())};return(Ze=Je.current)==null||Ze.addEventListener("copy",je),()=>{var De;(De=Je.current)==null||De.removeEventListener("copy",je)}},[Je.current]);const tt=Ze=>/<style[\s\S]*?>/i.test(Ze||"");return We.createElement(We.Fragment,null,Be&&We.createElement("div",{ref:Je},nt),!Be&&!tt(nt)&&We.createElement("div",{ref:Je,style:le({},Qe),className:`${Me||""} ${ct?"disabled-fill":""} markdown-body ${Kt.current}`,dangerouslySetInnerHTML:{__html:nt}}),!Be&&tt(nt)&&We.createElement(xe,{html:nt}),We.createElement(ye.Z,{close:!0,data:wt,type:wt!=null&&wt.length?vt:"",style:le({},He),onClose:()=>mt("")}))}},81939:function(Nn,mn,ze){"use strict";ze.d(mn,{cT:function(){return Te},pe:function(){return we}});var We=ze(59301),xt=ze(54580),oe=ze(8591),Ue=ze(99064),Oe=ze(28209),ve=ze.n(Oe),ce=ze(1012),Ce=ze(89070),Ee=ze(47257),ye=ze.n(Ee),be=Object.defineProperty,me=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Be,Re,Qe)=>Re in Be?be(Be,Re,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Be[Re]=Qe,re=(Be,Re)=>{for(var Qe in Re||(Re={}))z.call(Re,Qe)&&ae(Be,Qe,Re[Qe]);if(fe)for(var Qe of fe(Re))ee.call(Re,Qe)&&ae(Be,Qe,Re[Qe]);return Be},le=(Be,Re)=>me(Be,xe(Re)),ue=(Be,Re)=>{var Qe={};for(var He in Be)z.call(Be,He)&&Re.indexOf(He)<0&&(Qe[He]=Be[He]);if(Be!=null&&fe)for(var He of fe(Be))Re.indexOf(He)<0&&ee.call(Be,He)&&(Qe[He]=Be[He]);return Qe},pe=(Be,Re,Qe)=>new Promise((He,$e)=>{var qe=yt=>{try{ct(Qe.next(yt))}catch(_e){$e(_e)}},ut=yt=>{try{ct(Qe.throw(yt))}catch(_e){$e(_e)}},ct=yt=>yt.done?He(yt.value):Promise.resolve(yt.value).then(qe,ut);ct((Qe=Qe.apply(Be,Re)).next())});const{Dragger:Pe}=xt.default,we=Be=>{const Re="bf3c199c2470cb477d907b1e0917c17b",Qe="5183666c72eec9e4";var He=ve().enc.Utf8.parse(Re);let $e=ve().enc.Utf8.parse(Qe);var qe=ve().AES.decrypt(Be,He,{iv:$e,mode:ve().mode.CBC});return qe.toString(ve().enc.Utf8)};let Ne;const Ae=Be=>pe(void 0,[Be],function*({identifier:Re,oldFilename:Qe,newFilename:He}){var $e,qe,ut,ct,yt,_e;const st=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});st.data=JSON.parse(we(st.data));const pt=new OSS({endpoint:($e=st==null?void 0:st.data)==null?void 0:$e.end_point,region:(qe=st==null?void 0:st.data)==null?void 0:qe.region,accessKeyId:(ut=st==null?void 0:st.data)==null?void 0:ut.access_key_id,accessKeySecret:(ct=st==null?void 0:st.data)==null?void 0:ct.access_key_secret,bucket:(yt=st==null?void 0:st.data)==null?void 0:yt.bucket,stsToken:(_e=st==null?void 0:st.data)==null?void 0:_e.security_token});return new Promise((bt,wt)=>{console.log(11111,`${Re}/${Qe}`,`${Re}/${He}`,st.data),pt.copy(`/${Re}/${Qe}`,`/${Re}/${He}`).then(mt=>{console.log("\u62F7\u8D1D\u6210\u529F",mt)}).catch(mt=>{console.log(mt)})})}),Te=(Be,Re,Qe)=>pe(void 0,null,function*(){var He,$e,qe,ut,ct,yt;Re.file_name=Be.name;const _e=yield(0,Ue.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",we(_e.data)),_e.data=JSON.parse(we(_e.data));const st=Be.name.split(".");st.pop();const pt=Re.realFileName?st.join(""):(0,ce.Z)(),bt=new(ye())({endpoint:(He=_e==null?void 0:_e.data)==null?void 0:He.end_point,region:($e=_e==null?void 0:_e.data)==null?void 0:$e.region,accessKeyId:(qe=_e==null?void 0:_e.data)==null?void 0:qe.access_key_id,accessKeySecret:(ut=_e==null?void 0:_e.data)==null?void 0:ut.access_key_secret,bucket:(ct=_e==null?void 0:_e.data)==null?void 0:ct.bucket,stsToken:(yt=_e==null?void 0:_e.data)==null?void 0:yt.security_token});return new Promise((wt,mt)=>{var vt;bt.multipartUpload(`${pt}`,new Blob([Be],{type:Be.type}),le(re({timeout:200*1e3,partSize:102400},Qe),{callback:{url:(vt=_e==null?void 0:_e.data)==null?void 0:vt.callback_url,host:_e==null?void 0:_e.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ue.rz)(Re)}})).then(function(St){var Nt;Be.response=(Nt=St.data)==null?void 0:Nt.data,wt(St==null?void 0:St.data)}).catch(function(St){mt(St),console.log("err:",St)})})}),Me=Be=>{var Re=Be,{user:Qe,cancelUpload:He}=Re,$e=ue(Re,["user","cancelUpload"]);const[qe,ut]=(0,We.useState)([]);let[ct,yt]=(0,We.useState)();const _e={onRemove:pt=>{ut([...qe.filter(bt=>bt.name!==pt.name)]),$e.onChange(qe.filter(bt=>bt.name!==pt.name))},disabled:$e.disabled,multiple:!0,fileList:qe==null?void 0:qe.map(pt=>pt.file),customRequest:()=>{},beforeUpload:pt=>pe(void 0,null,function*(){let bt=$e.maxSize||1073741824;if(qe.filter(wt=>wt.name===pt.name).length){oe.ZP.info(`${pt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(pt==null?void 0:pt.size)>bt?(oe.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${bt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(qe.push({name:pt.name,file:pt}),ut([...qe]),$e.onChange(qe),!1)})},st=(pt,bt)=>pe(void 0,null,function*(){var wt,mt,vt,St,Nt,Ft;bt.file_name=pt.name;const Kt=pt.name,Pt=yield(0,Ue.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(Pt.data=JSON.parse(we(Pt.data)),(Pt==null?void 0:Pt.status)!==0){qe[qe.findIndex(Ct=>Ct.name===Kt)].status="error",qe[qe.findIndex(Ct=>Ct.name===Kt)].file.status="error",$e.onChange(qe),oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}ct=new(ye())({endpoint:(wt=Pt==null?void 0:Pt.data)==null?void 0:wt.end_point,region:(mt=Pt==null?void 0:Pt.data)==null?void 0:mt.region,accessKeyId:(vt=Pt==null?void 0:Pt.data)==null?void 0:vt.access_key_id,accessKeySecret:(St=Pt==null?void 0:Pt.data)==null?void 0:St.access_key_secret,bucket:(Nt=Pt==null?void 0:Pt.data)==null?void 0:Nt.bucket,stsToken:(Ft=Pt==null?void 0:Pt.data)==null?void 0:Ft.security_token}),console.log(pt,"file"),yt(ct);const Et=pt.name.split(".");Et.pop();const at=Kt.indexOf(".")>-1?bt.realFileName?Et.join("."):(0,ce.Z)():Kt;return new Promise((Ct,nt)=>{var ht;try{ct.multipartUpload(`${$e.identifier}/${at}${Kt.indexOf(".")>-1?"."+Kt.split(".").pop():""}`,new Blob([pt.file],{type:pt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Mt,gt,rt)=>{try{console.log("\u8FDB\u5EA6",Mt,gt,rt);const Je=qe.findIndex(Xe=>Xe.name===Kt);qe[Je].file.percent=Mt*100,qe[Je].tempCheckpoint=gt,ut([...qe])}catch(Je){}},checkpoint:qe[qe.findIndex(Mt=>Mt.name===Kt)].tempCheckpoint,callback:{customValue:{id:Kt+""},url:(ht=Pt==null?void 0:Pt.data)==null?void 0:ht.callback_url,host:Pt==null?void 0:Pt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ue.rz)(bt)}}).then(function(Mt){var gt,rt,Je;const Xe=qe.findIndex(tt=>tt.name===Kt);let Ve="done";if(((gt=Mt.data)==null?void 0:gt.status)===0){pt.response=(rt=Mt.data)==null?void 0:rt.data;const tt=qe.findIndex(Ze=>Ze.name===Kt);qe[tt].status="done",qe[tt].file.status="done"}else oe.ZP.warning((Je=Mt.data)==null?void 0:Je.message),Ve="error";qe[Xe].status=Ve,qe[Xe].file.status=Ve,$e.onChange(qe),Ct(Mt==null?void 0:Mt.data)}).catch(function(Mt){qe[qe.findIndex(gt=>gt.name===Kt)].status="error",qe[qe.findIndex(gt=>gt.name===Kt)].file.status="error",oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ut([...qe]),$e.onChange(qe),nt(Mt),console.log("err:",Mt)})}catch(Mt){}})});return(0,We.useEffect)(()=>{qe.every(pt=>pt==="done"||pt==="error")&&$e.onComplete(qe)},[qe]),(0,We.useEffect)(()=>{He&&(ct==null||ct.cancel())},[He]),(0,We.useEffect)(()=>{$e.uploading&&qe.map(pt=>pe(void 0,null,function*(){var bt;if((!pt.status||pt.status==="error")&&!He){pt.status="uploading",pt.file.status="uploading";const wt=yield st(pt,{login:(bt=Qe==null?void 0:Qe.userInfo)==null?void 0:bt.login,container_type:$e.container_type,container_id:$e.container_id,description:$e.description,realFileName:$e.realFileName})}}))},[$e.uploading]),We.createElement(Pe,le(re({},_e),{height:$e.height,className:$e.className}),We.createElement("p",{className:"ant-upload-hint"},$e.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};mn.ZP=(0,Ce.connect)(({loading:Be,globalSetting:Re,user:Qe})=>({globalSetting:Re,loading:Be.models.competitions,user:Qe}))(Me)},53932:function(Nn,mn,ze){"use strict";ze.d(mn,{h:function(){return pe},Z:function(){return ue}});var We=ze(59301),xt=ze(57809),oe=ze(78241),Ue=ze(3113),Oe=ze(89780),ve=ze.n(Oe),ce=ze(37036),Ce=Object.defineProperty,Ee=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,fe=(Pe,we,Ne)=>we in Pe?Ce(Pe,we,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Pe[we]=Ne,z=(Pe,we)=>{for(var Ne in we||(we={}))me.call(we,Ne)&&fe(Pe,Ne,we[Ne]);if(be)for(var Ne of be(we))xe.call(we,Ne)&&fe(Pe,Ne,we[Ne]);return Pe},ee=(Pe,we)=>Ee(Pe,ye(we));const ae=xt.default.Option,re={labelCol:{span:4},wrapperCol:{span:20}},le={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"]};var ue=({callback:Pe,onCancel:we})=>{const[Ne,Ae]=(0,We.useState)("python");function Te(Be){Ae(le[Be][1])}function Me(Be){Pe(Be)}return We.createElement(oe.default,ee(z({},re),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Me,style:{width:500}}),We.createElement(oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},We.createElement(xt.default,{getPopupContainer:Be=>Be.parentNode,onChange:Te},Object.keys(le).map(Be=>We.createElement(ae,{key:Be,value:Be},le[Be][0])))),We.createElement(oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},We.createElement(pe,{mode:Ne})),We.createElement("div",{className:"flex-container flex-end"},We.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(Ue.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))};function pe({value:Pe,onChange:we,mode:Ne,options:Ae={}}){const Te=(0,We.useRef)(),[Me,Be]=(0,We.useState)();return(0,We.useEffect)(()=>{if(Me){let Re=function(Qe){const He=Qe.getValue();we&&we(He)};return Me.on("change",Re),()=>{Me.off("change",Re)}}},[Me,we]),(0,We.useEffect)(()=>{Me&&Me.setOption("mode",Ne)},[Me,Ne]),(0,We.useEffect)(()=>{Me&&(Pe!==Me.getValue()||Pe==="")&&setTimeout(()=>{Me.setValue(Pe||"")},300)},[Me,Pe]),(0,We.useEffect)(()=>{if(Te.current&&!Me){const Re=ve().fromTextArea(Te.current,z({mode:Ne,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ae));Be(Re)}},[Te.current,Me]),We.createElement("div",{className:"my-codemirror-container"},We.createElement("textarea",{ref:Te}))}},12290:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return zn}});var We=ze(59301),xt=ze(89780),oe=ze.n(xt),Ue=ze(76374),Oe=ze(37036),ve=ze(6313),ce=ze(25717),Ce=ze(99498),Ee=ze(25419),ye=ze(67549),be=ze(85149),me=({value:$t="",className:Xt,showTextOnly:Tt,showLines:sn,style:pn={}})=>{const Yt=(0,We.useMemo)(()=>"",[$t]);return We.createElement(We.Fragment,null,We.createElement("div",{dangerouslySetInnerHTML:{__html:Yt}}))},xe=ze(59301),fe=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=($t,Xt,Tt)=>Xt in $t?fe($t,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):$t[Xt]=Tt,pe=($t,Xt)=>{for(var Tt in Xt||(Xt={}))re.call(Xt,Tt)&&ue($t,Tt,Xt[Tt]);if(ae)for(var Tt of ae(Xt))le.call(Xt,Tt)&&ue($t,Tt,Xt[Tt]);return $t},Pe=($t,Xt)=>z($t,ee(Xt));let we=[{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 Ne({onActionCallback:$t,title:Xt,icon:Tt,actionName:sn,className:pn="",children:Yt}){function Bt(){$t(sn)}return xe.createElement("a",{title:Xt,className:pn,onClick:Bt},xe.createElement("i",{className:`${Tt}`}),Yt)}var Ae=({watch:$t,showNullButton:Xt,showNullProgramButton:Tt,onActionCallback:sn,fullScreen:pn,insertTemp:Yt,hidetoolBar:Bt,extraUse:un})=>{const bn=[...we,{title:`${$t?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${$t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!Bt&&bn.map((On,Zn)=>xe.createElement("li",{key:Zn},On.actionName?xe.createElement(Ne,Pe(pe({},On),{onActionCallback:sn})):xe.createElement("span",{className:"v-line"}))),Xt?xe.createElement("li",null,xe.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:sn},xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Tt?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:sn},xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xe.createElement("li",null,xe.createElement(Ne,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:sn},xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Yt&&xe.createElement("li",null,xe.createElement(Ne,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Yt}`,onActionCallback:sn},xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),un&&xe.createElement("li",null,un),xe.createElement("li",{className:"btn-full-screen"},xe.createElement(Ne,{icon:`${pn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:pn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:sn})))},Te=ze(79346),Me=ze(78241),Be=ze(92832),Re=ze(3113),Qe=Object.defineProperty,He=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,yt=($t,Xt,Tt)=>Xt in $t?Qe($t,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):$t[Xt]=Tt,_e=($t,Xt)=>{for(var Tt in Xt||(Xt={}))ut.call(Xt,Tt)&&yt($t,Tt,Xt[Tt]);if(qe)for(var Tt of qe(Xt))ct.call(Xt,Tt)&&yt($t,Tt,Xt[Tt]);return $t},st=($t,Xt)=>He($t,$e(Xt));const pt={labelCol:{span:4},wrapperCol:{span:20}};var bt=({callback:$t,onCancel:Xt})=>{function Tt(sn){$t(sn)}return We.createElement(Me.default,st(_e({},pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Tt,style:{width:500}}),We.createElement(Me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},We.createElement(Be.default,null)),We.createElement(Me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},We.createElement(Be.default,null)),We.createElement("div",{className:"flex-container flex-end"},We.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(Re.ZP,{type:"ghost",onClick:Xt},"\u53D6\u6D88")))},wt=ze(53932),mt=ze(28451),vt=ze(43418),St=ze(95237),Nt=ze(16406),Ft=ze(59301),Kt=({callback:$t,onCancel:Xt})=>{const Tt=document.createElement("canvas"),sn=Tt.getContext("2d");Tt.width=1e3,Tt.height=800,sn.fillStyle="#ffffff",sn.fillRect(0,0,Tt.width,Tt.height);const pn=Tt.toDataURL("image/png");return Ft.createElement(vt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ft.createElement(St.Z,{style:{height:"100vh"}},Ft.createElement(Nt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pn,visible:!0,title:String(Date.now())},onOk:Yt=>{$t({src:Yt.url})},onClose:Xt})))},Pt=ze(12378);function Et(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Et,go.CommandHandler),Et.prototype.canAlignSelection=function(){var $t=this.diagram;return!($t===null||$t.isReadOnly||$t.isModelReadOnly||$t.selection.count<2)},Et.prototype.alignLeft=function(){var $t=this.diagram;$t.startTransaction("aligning left");var Xt=1/0;$t.selection.each(function(Tt){Tt instanceof go.Link||(Xt=Math.min(Tt.position.x,Xt))}),$t.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(Xt,Tt.position.y))}),$t.commitTransaction("aligning left")},Et.prototype.alignRight=function(){var $t=this.diagram;$t.startTransaction("aligning right");var Xt=-1/0;$t.selection.each(function(Tt){if(!(Tt instanceof go.Link)){var sn=Tt.actualBounds.x+Tt.actualBounds.width;Xt=Math.max(sn,Xt)}}),$t.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(Xt-Tt.actualBounds.width,Tt.position.y))}),$t.commitTransaction("aligning right")},Et.prototype.alignTop=function(){var $t=this.diagram;$t.startTransaction("alignTop");var Xt=1/0;$t.selection.each(function(Tt){Tt instanceof go.Link||(Xt=Math.min(Tt.position.y,Xt))}),$t.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(Tt.position.x,Xt))}),$t.commitTransaction("alignTop")},Et.prototype.alignBottom=function(){var $t=this.diagram;$t.startTransaction("aligning bottom");var Xt=-1/0;$t.selection.each(function(Tt){if(!(Tt instanceof go.Link)){var sn=Tt.actualBounds.y+Tt.actualBounds.height;Xt=Math.max(sn,Xt)}}),$t.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(Tt.actualBounds.x,Xt-Tt.actualBounds.height))}),$t.commitTransaction("aligning bottom")},Et.prototype.alignCenterX=function(){var $t=this.diagram,Xt=$t.selection.first();if(Xt){$t.startTransaction("aligning Center X");var Tt=Xt.actualBounds.x+Xt.actualBounds.width/2;$t.selection.each(function(sn){sn instanceof go.Link||sn.move(new go.Point(Tt-sn.actualBounds.width/2,sn.actualBounds.y))}),$t.commitTransaction("aligning Center X")}},Et.prototype.alignCenterY=function(){var $t=this.diagram,Xt=$t.selection.first();if(Xt){$t.startTransaction("aligning Center Y");var Tt=Xt.actualBounds.y+Xt.actualBounds.height/2;$t.selection.each(function(sn){sn instanceof go.Link||sn.move(new go.Point(sn.actualBounds.x,Tt-sn.actualBounds.height/2))}),$t.commitTransaction("aligning Center Y")}},Et.prototype.alignColumn=function($t){var Xt=this.diagram;Xt.startTransaction("align Column"),$t===void 0&&($t=0),$t=parseFloat($t);var Tt=new Array;Xt.selection.each(function(un){un instanceof go.Link||Tt.push(un)});for(var sn=0;sn<Tt.length-1;sn++){var pn=Tt[sn],Yt=pn.actualBounds.y+pn.actualBounds.height+$t,Bt=Tt[sn+1];Bt.move(new go.Point(pn.actualBounds.x,Yt))}Xt.commitTransaction("align Column")},Et.prototype.alignRow=function($t){$t===void 0&&($t=0),$t=parseFloat($t);var Xt=this.diagram;Xt.startTransaction("align Row");var Tt=new Array;Xt.selection.each(function(un){un instanceof go.Link||Tt.push(un)});for(var sn=0;sn<Tt.length-1;sn++){var pn=Tt[sn],Yt=pn.actualBounds.x+pn.actualBounds.width+$t,Bt=Tt[sn+1];Bt.move(new go.Point(Yt,pn.actualBounds.y))}Xt.commitTransaction("align Row")},Et.prototype.canRotate=function($t){var Xt=this.diagram;return!(Xt===null||Xt.isReadOnly||Xt.isModelReadOnly||Xt.selection.count<1)},Et.prototype.rotate=function($t){$t===void 0&&($t=90);var Xt=this.diagram;Xt.startTransaction("rotate "+$t.toString());var Xt=this.diagram;Xt.selection.each(function(Tt){Tt instanceof go.Link||Tt instanceof go.Group||(Tt.angle+=$t)}),Xt.commitTransaction("rotate "+$t.toString())},Et.prototype.pullToFront=function(){var $t=this.diagram;$t.startTransaction("pullToFront");var Xt=new go.Map;$t.selection.each(function(Tt){Xt.set(Tt.layer,0)}),Xt.iteratorKeys.each(function(Tt){var sn=0;Tt.parts.each(function(pn){if(!pn.isSelected){var Yt=pn.zOrder;isNaN(Yt)?pn.zOrder=0:sn=Math.max(sn,Yt)}}),Xt.set(Tt,sn)}),$t.selection.each(function(Tt){Et._assignZOrder(Tt,Xt.get(Tt.layer)+1)}),$t.commitTransaction("pullToFront")},Et.prototype.pushToBack=function(){var $t=this.diagram;$t.startTransaction("pushToBack");var Xt=new go.Map;$t.selection.each(function(Tt){Xt.set(Tt.layer,0)}),Xt.iteratorKeys.each(function(Tt){var sn=0;Tt.parts.each(function(pn){if(!pn.isSelected){var Yt=pn.zOrder;isNaN(Yt)?pn.zOrder=0:sn=Math.min(sn,Yt)}}),Xt.set(Tt,sn)}),$t.selection.each(function(Tt){Et._assignZOrder(Tt,Xt.get(Tt.layer)-1-Et._findGroupDepth(Tt))}),$t.commitTransaction("pushToBack")},Et._assignZOrder=function($t,Xt,Tt){Tt===void 0&&(Tt=$t),$t.layer===Tt.layer&&($t.zOrder=Xt),$t instanceof go.Group&&$t.memberParts.each(function(sn){Et._assignZOrder(sn,Xt+1,Tt)})},Et._findGroupDepth=function($t){if($t instanceof go.Group){var Xt=0;return $t.memberParts.each(function(Tt){Xt=Math.max(Xt,Et._findGroupDepth(Tt))}),Xt+1}else return 0},Et.prototype.doKeyDown=function(){var $t=this.diagram;if($t!==null){var Xt=$t.lastInput;if(Xt.key==="Up"||Xt.key==="Down"||Xt.key==="Left"||Xt.key==="Right"){var Tt=this.arrowKeyBehavior;if(Tt==="none")return;if(Tt==="select"){this._arrowKeySelect();return}else if(Tt==="move"){this._arrowKeyMove();return}else if(Tt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Et.prototype._getAllParts=function(){var $t=new Array;return this.diagram.nodes.each(function(Xt){$t.push(Xt)}),this.diagram.parts.each(function(Xt){$t.push(Xt)}),$t},Et.prototype._arrowKeyMove=function(){var $t=this.diagram,Xt=$t.lastInput,Tt=0,sn=0;if(Xt.control||Xt.meta)Tt=1,sn=1;else if($t.grid!==null){var pn=$t.grid.gridCellSize;sn=pn.width,Tt=pn.height}$t.startTransaction("arrowKeyMove"),$t.selection.each(function(Yt){Xt.key==="Up"?Yt.move(new go.Point(Yt.actualBounds.x,Yt.actualBounds.y-Tt)):Xt.key==="Down"?Yt.move(new go.Point(Yt.actualBounds.x,Yt.actualBounds.y+Tt)):Xt.key==="Left"?Yt.move(new go.Point(Yt.actualBounds.x-sn,Yt.actualBounds.y)):Xt.key==="Right"&&Yt.move(new go.Point(Yt.actualBounds.x+sn,Yt.actualBounds.y))}),$t.commitTransaction("arrowKeyMove")},Et.prototype._arrowKeySelect=function(){var $t=this.diagram,Xt=$t.lastInput,Tt=null;Xt.key==="Up"?Tt=this._findNearestPartTowards(270):Xt.key==="Down"?Tt=this._findNearestPartTowards(90):Xt.key==="Left"?Tt=this._findNearestPartTowards(180):Xt.key==="Right"&&(Tt=this._findNearestPartTowards(0)),Tt!==null&&(Xt.shift?Tt.isSelected=!0:Xt.control||Xt.meta?Tt.isSelected=!Tt.isSelected:$t.select(Tt))},Et.prototype._findNearestPartTowards=function($t){var Xt=this.diagram.selection.first();if(Xt===null)return null;for(var Tt=Xt.actualBounds.center,sn=this._getAllParts(),pn=1/0,Yt=Xt,Bt=0;Bt<sn.length;Bt++){var un=sn[Bt];if(un!==Xt&&un.canSelect()){var bn=un.actualBounds.center,On=Tt.directionPoint(bn),Zn=this._angleCloseness(On,$t);if(Zn<=45){var Gt=Tt.distanceSquaredPoint(bn);Gt*=1+Math.sin(Zn*Math.PI/180),Gt<pn&&(pn=Gt,Yt=un)}}}return Yt},Et.prototype._angleCloseness=function($t,Xt){return Math.min(Math.abs(Xt-$t),Math.min(Math.abs(Xt+360-$t),Math.abs(Xt-360-$t)))},Et.prototype._arrowKeyTree=function(){var $t=this.diagram,Xt=$t.selection.first();if(Xt instanceof go.Node){var Tt=$t.lastInput;if(Tt.key==="Right"){if(!Xt.isTreeLeaf)if(!Xt.isTreeExpanded)$t.commandHandler.canExpandTree(Xt)&&$t.commandHandler.expandTree(Xt);else{var sn=this._sortTreeChildrenByY(Xt).first();sn!==null&&$t.select(sn)}}else if(Tt.key==="Left")if(!Xt.isTreeLeaf&&Xt.isTreeExpanded)$t.commandHandler.canCollapseTree(Xt)&&$t.commandHandler.collapseTree(Xt);else{var pn=Xt.findTreeParentNode();pn!==null&&$t.select(pn)}else if(Tt.key==="Up"){var pn=Xt.findTreeParentNode();if(pn!==null){var Yt=this._sortTreeChildrenByY(pn),Bt=Yt.indexOf(Xt);if(Bt>0){for(var un=Yt.elt(Bt-1);un!==null&&un.isTreeExpanded&&!un.isTreeLeaf;){var bn=this._sortTreeChildrenByY(un);un=bn.last()}un!==null&&$t.select(un)}else $t.select(pn)}}else if(Tt.key==="Down")if(Xt.isTreeExpanded&&!Xt.isTreeLeaf){var sn=this._sortTreeChildrenByY(Xt).first();sn!==null&&$t.select(sn)}else for(;Xt!==null;){var pn=Xt.findTreeParentNode();if(pn===null)break;var Yt=this._sortTreeChildrenByY(pn),Bt=Yt.indexOf(Xt);if(Bt<Yt.length-1){$t.select(Yt.elt(Bt+1));break}else Xt=pn}var On=$t.selection.first();On!==null&&$t.scrollToRect(On.actualBounds)}},Et.prototype._sortTreeChildrenByY=function($t){var Xt=new go.List().addAll($t.findTreeChildrenNodes());return Xt.sort(function(Tt,sn){var pn=Tt.location,Yt=sn.location;return pn.y<Yt.y?-1:pn.y>Yt.y?1:pn.x<Yt.x?-1:pn.x>Yt.x?1:0}),Xt},Et.prototype.copyToClipboard=function($t){go.CommandHandler.prototype.copyToClipboard.call(this,$t),this._lastPasteOffset.set(this.pasteOffset)},Et.prototype.pasteFromClipboard=function(){var $t=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts($t,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),$t},Object.defineProperty(Et.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function($t){if($t!=="move"&&$t!=="select"&&$t!=="scroll"&&$t!=="tree"&&$t!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+$t);this._arrowKeyBehavior=$t}}),Object.defineProperty(Et.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function($t){if(!($t instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+$t);this._pasteOffset.set($t)}});var at=Et,Ct=ze(74413),nt=ze(43604),ht=ze(99064),Mt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},gt=ze(24065),rt=ze(59301),Je=($t,Xt,Tt)=>new Promise((sn,pn)=>{var Yt=bn=>{try{un(Tt.next(bn))}catch(On){pn(On)}},Bt=bn=>{try{un(Tt.throw(bn))}catch(On){pn(On)}},un=bn=>bn.done?sn(bn.value):Promise.resolve(bn.value).then(Yt,Bt);un((Tt=Tt.apply($t,Xt)).next())});function Xe({onCancel:$t,callback:Xt}){let Tt=(0,We.useRef)(),sn=(0,We.useRef)(),pn=(0,We.useRef)(),Yt=(0,We.useRef)(!1);const Bt=(0,We.useRef)(!1),[un,bn]=(0,We.useState)(0);function On(){const Gt=Pt.bx.make,An={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"};Tt.current=new Pt.S0(sn.current,{padding:20,grid:Gt(Pt.s_,"Grid",Gt(Pt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Gt(Pt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Yn=>{var cr=Yn.diagram.commandHandler.addTopLevelParts(Yn.diagram.selection,!0);cr||Yn.diagram.currentTool.doCancel()},commandHandler:Gt(at),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Yn=>{var cr=Yn.subject;cr.location=cr.location.copy().snapToGridPoint(Yn.diagram.grid.gridOrigin,Yn.diagram.grid.gridCellSize),setTimeout(()=>{Yn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Yn=>{var cr=Yn.subject;setTimeout(()=>{Yn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Yn=>{var cr=Yn.parameter.part;cr.invalidateConnectedLinks();var Fr=Yn.subject;Yn.diagram.toolManager.linkingTool.isForwards?Fr.toNode.invalidateConnectedLinks():Fr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Tt.current.nodeTemplate=Gt(Pt.NB,"Auto",{locationSpot:Pt.z6.Center,locationObjectName:"SHAPE",desiredSize:new Pt.$u(120,60),minSize:new Pt.$u(40,40),resizable:!0,resizeCellSize:new Pt.$u(10,10),rotatable:!0},new Pt.KX("location","loc",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),new Pt.KX("desiredSize","size",Pt.$u.parse).makeTwoWay(Pt.$u.stringify),Gt(Pt.bn,{name:"SHAPE",fill:An.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Pt.z6.AllSides,toSpot:Pt.z6.AllSides},new Pt.KX("figure"),new Pt.KX("fill"),new Pt.KX("stroke","borderColor"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),Gt(Pt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Gt(Pt.al,{margin:1,textAlign:"center",overflow:Pt.al.OverflowEllipsis,editable:!0},new Pt.KX("text").makeTwoWay(),new Pt.KX("stroke","color"))),Tt.current.nodeTemplate.toolTip=Gt("ToolTip",Gt(Pt.s_,"Vertical",{maxSize:new Pt.$u(200,NaN)},Gt(Pt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Pt.KX("text")),Gt(Pt.al,{font:"10pt sans-serif",textAlign:"center"},new Pt.KX("text","details"))));function Kn(Yn,cr){var Fr=(fr,br)=>{fr.handled=!0,fr.diagram.model.commit(Hr=>{var Rr=br.part.adornedPart,Cr=new Pt.E9().setRectSpot(Rr.actualBounds,Yn);Cr.subtract(Rr.location),Cr.scale(2,2),Cr.x+=Math.sign(Cr.x)*130,Cr.y+=Math.sign(Cr.y)*130,Cr.add(Rr.location),Cr.snapToGridPoint(fr.diagram.grid.gridOrigin,fr.diagram.grid.gridCellSize);var Zr=Hr.copyNodeData(Rr.data);Hr.setGroupKeyForNodeData(Zr,Hr.getGroupKeyForNodeData(Rr.data)),Hr.addNodeData(Zr);var Dn={from:Rr.key,to:Hr.getKeyForNodeData(Zr)};Hr.addLinkData(Dn);var Ei=fr.diagram.findNodeForData(Zr);Ei.location=Cr,fr.diagram.select(Ei),setTimeout(()=>{fr.diagram.commandHandler.editTextBlock()},20)})};return Gt(Pt.bn,{figure:cr,alignment:Yn,alignmentFocus:Yn.opposite(),width:Yn.equals(Pt.z6.Top)||Yn.equals(Pt.z6.Bottom)?25:18,height:Yn.equals(Pt.z6.Top)||Yn.equals(Pt.z6.Bottom)?18:25,fill:"orange",stroke:An.white,strokeWidth:4,mouseEnter:(fr,br)=>br.fill="dodgerblue",mouseLeave:(fr,br)=>br.fill="orange",isActionable:!0,click:Fr,contextClick:Fr})}function rr(Yn){return Gt(Pt.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:(cr,Fr)=>Fr.fill="dodgerblue",mouseLeave:(cr,Fr)=>Fr.fill="orange",click:(cr,Fr)=>{cr.diagram.commandHandler.showContextMenu(Fr.part.adornedPart)}},Yn||{})}Tt.current.nodeTemplate.selectionAdornmentTemplate=Gt(Pt.uz,"Spot",Gt(Pt.Vm,{padding:10}),Kn(Pt.z6.Top,"TriangleUp"),Kn(Pt.z6.Left,"TriangleLeft"),Kn(Pt.z6.Right,"TriangleRight"),Kn(Pt.z6.Bottom,"TriangleDown"),rr({alignment:new Pt.z6(.75,0)}));function xn(Yn,cr){return(Fr,fr)=>{Fr.handled=!0,Fr.diagram.model.commit(br=>{br.set(fr.part.adornedPart.data,Yn,cr)})}}function Cn(Yn,cr){return cr||(cr="color"),Gt(Pt.bn,{width:16,height:16,stroke:"lightgray",fill:Yn,margin:1,background:"transparent",mouseEnter:(Fr,fr)=>fr.stroke="dodgerblue",mouseLeave:(Fr,fr)=>fr.stroke="lightgray",click:xn(cr,Yn),contextClick:xn(cr,Yn)})}function tn(){return[Gt("ContextMenuButton",Gt(Pt.s_,"Horizontal",Cn(An.white,"fill"),Cn(An.beige,"fill"),Cn(An.extralightblue,"fill"),Cn(An.extralightred,"fill"))),Gt("ContextMenuButton",Gt(Pt.s_,"Horizontal",Cn(An.lightgray,"fill"),Cn(An.lightgreen,"fill"),Cn(An.lightblue,"fill"),Cn(An.lightred,"fill")))]}function gn(){return[Gt("ContextMenuButton",Gt(Pt.s_,"Horizontal",Cn(An.black),Cn(An.green),Cn(An.blue),Cn(An.red))),Gt("ContextMenuButton",Gt(Pt.s_,"Horizontal",Cn(An.white),Cn(An.magenta),Cn(An.purple),Cn(An.orange)))]}function yn(Yn,cr){return cr||(cr="thickness"),Gt(Pt.bn,"LineH",{width:16,height:16,strokeWidth:Yn,margin:1,background:"transparent",mouseEnter:(Fr,fr)=>fr.background="dodgerblue",mouseLeave:(Fr,fr)=>fr.background="transparent",click:xn(cr,Yn),contextClick:xn(cr,Yn)})}function vn(Yn,cr){return cr||(cr="dash"),Gt(Pt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Yn,margin:1,background:"transparent",mouseEnter:(Fr,fr)=>fr.background="dodgerblue",mouseLeave:(Fr,fr)=>fr.background="transparent",click:xn(cr,Yn),contextClick:xn(cr,Yn)})}function Ln(){return[Gt("ContextMenuButton",Gt(Pt.s_,"Horizontal",yn(1),yn(2),yn(3),yn(4))),Gt("ContextMenuButton",Gt(Pt.s_,"Horizontal",vn(null),vn([2,4]),vn([4,4])))]}function Fn(Yn,cr){return cr||(cr="figure"),Gt(Pt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Yn,margin:1,background:"transparent",mouseEnter:(Fr,fr)=>fr.fill="dodgerblue",mouseLeave:(Fr,fr)=>fr.fill="lightgray",click:xn(cr,Yn),contextClick:xn(cr,Yn)})}Tt.current.nodeTemplate.contextMenu=Gt("ContextMenu",Gt("ContextMenuButton",Gt(Pt.s_,"Horizontal",Fn("Rectangle"),Fn("RoundedRectangle"),Fn("Ellipse"),Fn("Diamond"))),Gt("ContextMenuButton",Gt(Pt.s_,"Horizontal",Fn("Parallelogram2"),Fn("ManualOperation"),Fn("Procedure"),Fn("Cylinder1"))),Gt("ContextMenuButton",Gt(Pt.s_,"Horizontal",Fn("Terminator"),Fn("CreateRequest"),Fn("Document"),Fn("TriangleDown"))),tn(),gn(),Ln()),Tt.current.groupTemplate=Gt(Pt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Pt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Yn,cr)=>{var Fr=cr.addMembers(cr.diagram.selection,!0);Fr||cr.diagram.currentTool.doCancel()},avoidable:!1},new Pt.KX("location","loc",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),Gt(Pt.s_,"Auto",{name:"BODY"},Gt(Pt.bn,{parameter1:10,fill:An.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Pt.z6.AllSides,toSpot:Pt.z6.AllSides},new Pt.KX("fill"),new Pt.KX("stroke","color"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),Gt(Pt.Vm,{background:"transparent",margin:20})),Gt(Pt.al,{alignment:Pt.z6.Top,alignmentFocus:Pt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Pt.KX("text"),new Pt.KX("stroke","color"))),Tt.current.groupTemplate.selectionAdornmentTemplate=Gt(Pt.uz,"Spot",Gt(Pt.s_,"Auto",Gt(Pt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Gt(Pt.Vm,{margin:1.5})),rr({alignment:Pt.z6.TopRight,alignmentFocus:Pt.z6.BottomRight})),Tt.current.groupTemplate.contextMenu=Gt("ContextMenu",tn(),gn(),Ln()),Tt.current.linkTemplate=Gt(Pt.rU,{layerName:"Foreground",routing:Pt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Pt.KX("fromSpot","fromSpot",Pt.z6.parse),new Pt.KX("toSpot","toSpot",Pt.z6.parse),new Pt.KX("fromShortLength","dir",Yn=>Yn>=1?10:0),new Pt.KX("toShortLength","dir",Yn=>Yn>=1?10:0),new Pt.KX("points").makeTwoWay(),Gt(Pt.bn,{strokeWidth:2},new Pt.KX("stroke","color"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),Gt(Pt.bn,{segmentIndex:0,segmentOffset:new Pt.E9(15,0),segmentOrientation:Pt.rU.OrientAlong,alignmentFocus:Pt.z6.Right,figure:"circle",width:10,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",Yn=>Yn===1)),Gt(Pt.bn,{segmentIndex:-1,segmentOffset:new Pt.E9(-10,6),segmentOrientation:Pt.rU.OrientPlus90,alignmentFocus:Pt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",Yn=>Yn>=1),new Pt.KX("width","thickness",Yn=>7+3*Yn),new Pt.KX("height","thickness",Yn=>7+3*Yn),new Pt.KX("segmentOffset","thickness",Yn=>new Pt.E9(-15,4+1.5*Yn))),Gt(Pt.bn,{segmentIndex:0,segmentOffset:new Pt.E9(15,-6),segmentOrientation:Pt.rU.OrientMinus90,alignmentFocus:Pt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",Yn=>Yn===2),new Pt.KX("width","thickness",Yn=>7+3*Yn),new Pt.KX("height","thickness",Yn=>7+3*Yn),new Pt.KX("segmentOffset","thickness",Yn=>new Pt.E9(-15,4+1.5*Yn))),Gt(Pt.al,{alignmentFocus:new Pt.z6(0,1,-4,0),editable:!0},new Pt.KX("text").makeTwoWay(),new Pt.KX("stroke","color"))),Tt.current.linkTemplate.selectionAdornmentTemplate=Gt(Pt.uz,Gt(Pt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Gn(2)},new Pt.KX("pathPattern","thickness",Gn)),rr({alignmentFocus:new Pt.z6(0,0,-6,-4)}));function Gn(Yn){return Gt(Pt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Yn+4).toString()+" H3"})}function Hn(Yn){var cr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Yn===0?cr="M0 0 M16 16 M0 8 L16 8":Yn===2&&(cr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Gt(Pt.bn,{geometryString:cr,margin:2,background:"transparent",mouseEnter:(Fr,fr)=>fr.background="dodgerblue",mouseLeave:(Fr,fr)=>fr.background="transparent",click:xn("dir",Yn),contextClick:xn("dir",Yn)})}function gr(Yn){var cr=(Fr,fr)=>{Fr.handled=!0,Fr.diagram.model.commit(br=>{var Hr=fr.part.adornedPart;br.set(Hr.data,Yn?"toSpot":"fromSpot",Pt.z6.stringify(Pt.z6.AllSides)),(Yn?Hr.toNode:Hr.fromNode).invalidateConnectedLinks()})};return Gt(Pt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Fr,fr)=>fr.background="dodgerblue",mouseLeave:(Fr,fr)=>fr.background="transparent",click:cr,contextClick:cr})}function dn(Yn,cr){var Fr=0,fr=Pt.z6.RightSide;Yn.equals(Pt.z6.Top)?(Fr=270,fr=Pt.z6.TopSide):Yn.equals(Pt.z6.Left)?(Fr=180,fr=Pt.z6.LeftSide):Yn.equals(Pt.z6.Bottom)&&(Fr=90,fr=Pt.z6.BottomSide),cr||(Fr-=180);var br=(Hr,Rr)=>{Hr.handled=!0,Hr.diagram.model.commit(Cr=>{var Zr=Rr.part.adornedPart;Cr.set(Zr.data,cr?"toSpot":"fromSpot",Pt.z6.stringify(fr)),(cr?Zr.toNode:Zr.fromNode).invalidateConnectedLinks()})};return Gt(Pt.bn,{alignment:Yn,alignmentFocus:Yn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Fr,background:"transparent",mouseEnter:(Hr,Rr)=>Rr.background="dodgerblue",mouseLeave:(Hr,Rr)=>Rr.background="transparent",click:br,contextClick:br})}Tt.current.linkTemplate.contextMenu=Gt("ContextMenu",gn(),Ln(),Gt("ContextMenuButton",Gt(Pt.s_,"Horizontal",Hn(0),Hn(1),Hn(2))),Gt("ContextMenuButton",Gt(Pt.s_,"Horizontal",Gt(Pt.s_,"Spot",gr(!1),dn(Pt.z6.Top,!1),dn(Pt.z6.Left,!1),dn(Pt.z6.Right,!1),dn(Pt.z6.Bottom,!1)),Gt(Pt.s_,"Spot",{margin:new Pt.Zt(0,0,0,2)},gr(!0),dn(Pt.z6.Top,!0),dn(Pt.z6.Left,!0),dn(Pt.z6.Right,!0),dn(Pt.z6.Bottom,!0)))));const Dr=`{ "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 zr=["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 Qr(Yn){return console.log("shapeName:",Yn),zr.indexOf(Yn)>=0}var wn=new Pt.YI(pn.current,{maxSelectionCount:1,linkTemplate:Gt(Pt.rU,{locationSpot:Pt.z6.Center,selectionAdornmentTemplate:Gt(Pt.uz,"Link",{locationSpot:Pt.z6.Center},Gt(Pt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Gt(Pt.bn,{toArrow:"Standard",stroke:null}))},{routing:Pt.rU.AvoidsNodes,curve:Pt.rU.JumpOver,corner:5,toShortLength:4},new Pt.KX("points"),Gt(Pt.bn,{isPanelMain:!0,strokeWidth:2}),Gt(Pt.bn,{toArrow:"Standard",stroke:null})),model:new Pt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Pt.bn.getFigureGenerators().toArray().map(Yn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Yn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Tt.current.addDiagramListener("TextEdited",function(Yn){var cr;const Fr=Yn.subject.part;var fr=(cr=document.activeElement)==null?void 0:cr.value;typeof fr=="string"&&fr.trim()===""&&Tt.current.model.commit(function(br){br.set(Fr.data,"text","\u672A\u547D\u540D"),Tt.current.commandHandler.stopCommand()},"increment")}),wn.nodeTemplate=Gt(Pt.NB,"Auto",{locationSpot:Pt.z6.Center},new Pt.KX("location","location",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),Gt(Pt.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 Pt.KX("stroke").makeTwoWay(),new Pt.KX("fill").makeTwoWay(),new Pt.KX("figure")),Gt(Pt.al,{margin:new Pt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Pt.$u(16,16),maxSize:new Pt.$u(10,NaN),textAlign:"center",editable:!0},new Pt.KX("key").makeTwoWay())),setTimeout(()=>{Tt.current.grid=Gt(Pt.s_,"Grid",Gt(Pt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Gt(Pt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Tt.current.grid.visible=!0,Tt.current.grid.gridCellStroke="darkgray",Tt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Tt.current,Tt.current}const Zn=()=>Je(this,null,function*(){var Gt,An=Tt.current.makeImage();const Kn=yield(0,ht.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:An.src,file_data:JSON.stringify({login:(Gt=(0,gt.eY)())==null?void 0:Gt.login,data:JSON.parse(Tt.current.model.toJson())})}});Xt({src:Kn.url})});return(0,We.useEffect)(()=>(setTimeout(()=>{On()},500),bn(un+1),()=>{Tt.current=null}),[]),rt.createElement("div",{ref:Bt,className:Yt.current?`${Mt.maxH60} body-overflow-initial`:"body-overflow-initial"},rt.createElement(vt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!un,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:rt.createElement(St.Z,null,rt.createElement(nt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),rt.createElement(nt.Z,{onClick:()=>{var Gt,An,Kn=Tt.current.selection.first();if(Yt.current=!Yt.current,document.activeElement&&Kn){let rr=(An=(Gt=document.activeElement)==null?void 0:Gt.value)==null?void 0:An.trim();typeof rr=="string"&&Tt.current.model.commit(function(xn){xn.set(Kn.data,"text",rr||"\u672A\u547D\u540D"),Tt.current.commandHandler.stopCommand()},"increment")}bn(un+1)}},rt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:$t},rt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Mt.flowChartWrp},rt.createElement("div",{style:{display:"flex",height:"100%"}},rt.createElement("div",{style:{width:"300px",height:"100%"}},rt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),rt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Mt.myPaletteDiv,ref:pn})),rt.createElement("div",{style:{flex:1,position:"relative"}},rt.createElement("div",{ref:sn,style:{height:"80vh"}}))),rt.createElement("div",{className:"tr"},rt.createElement(Re.ZP,{size:"large",onClick:Zn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ve=Xe,tt=ze(5112),Ze=ze(5871);const je=tt.ZP.Group,De={margin:"0 8px"};var Ye=({callback:$t,onCancel:Xt})=>{function Tt(sn){$t(sn)}return We.createElement(Me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Tt},We.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},We.createElement("span",{style:De},"\u5355\u5143\u683C\u6570\uFF1A"),We.createElement("span",{style:De},"\u884C\u6570"),We.createElement(Me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},We.createElement(Ze.Z,null)),We.createElement("span",{style:De},"\u5217\u6570"),We.createElement(Me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},We.createElement(Ze.Z,null))),We.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},We.createElement("span",{style:De},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),We.createElement(Me.default.Item,{name:"align"},We.createElement(je,null,We.createElement(tt.ZP,{value:"default"},We.createElement("i",{className:"fa fa-align-justify"})),We.createElement(tt.ZP,{value:"left"},We.createElement("i",{className:"fa fa-align-left"})),We.createElement(tt.ZP,{value:"center"},We.createElement("i",{className:"fa fa-align-center"})),We.createElement(tt.ZP,{value:"right"},We.createElement("i",{className:"fa fa-align-right"}))))),We.createElement("div",{className:"flex-container flex-end"},We.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(Re.ZP,{type:"ghost",onClick:Xt},"\u53D6\u6D88")))},dt=ze(78673),Ke=ze(80727),At=ze.n(Ke),_t=(0,We.forwardRef)(({use3d:$t,width:Xt,height:Tt,callback:sn,showSaveButton:pn},Yt)=>{const Bt=(0,We.useRef)(),un=(0,We.useRef)(),[bn,On]=(0,We.useState)(!1),Zn=(0,We.useRef)({id:Bt,appName:"graphing",width:Xt||1e3,height:Tt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,We.useEffect)(()=>{un.current=new(At())(Zn.current,!0),window.onload=function(){un.current.inject("applet_container")}},[]);const Gt=()=>{var An=window.ggbApplet.getPNGBase64(1,!0,72);return sn&&sn(An),An};return(0,We.useEffect)(()=>{Zn.current.appName=bn?"3D":"graphing",un.current.inject("applet_container")},[bn]),(0,We.useEffect)(()=>{On($t)},[$t]),(0,We.useImperativeHandle)(Yt,()=>({getImgData:Gt})),We.createElement(We.Fragment,null,We.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Bt}),We.createElement(St.Z,{align:"middle"},We.createElement(nt.Z,{flex:1},We.createElement(dt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:bn,onChange:An=>On(An)})),We.createElement(nt.Z,null,We.createElement(Re.ZP,{size:"large",onClick:Gt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ot=ze(41588),Vt=ze(8591);const en="link",on="upload-image",fn="add-flowchart",jn="draw-image",er="add-flowchart",tr="code-block",ur="add-table",Tr="------------",Lr={default:Tr,left:`:${Tr}`,center:`:${Tr}:`,right:`${Tr}:`};var Ar=ze(58856);function Gr(){}let Kr=0;const Mr=1e4,fi="\u2581",Jr="@\u2581\u2581@",it="@\u2581@",bi=`
**\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`,mi=["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 Tn($t){return/^\d+$/.test($t)?`${$t}px`:$t}const ar=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",vr={[ar+"-B"]:"bold",[ar+"-I"]:"italic"},Jn={[en]:"\u6DFB\u52A0\u94FE\u63A5",[tr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[on]:"\u6DFB\u52A0\u56FE\u7247",[jn]:"\u6DFB\u52A0\u753B\u56FE",[fn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ur]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var zn=({defaultValue:$t="",onChange:Xt,width:Tt="100%",height:sn=400,miniToolbar:pn=!1,isFocus:Yt=!1,watch:Bt,insertTemp:un,mode:bn="markdown",id:On="markdown-editor-id",showResizeBar:Zn=!1,noStorage:Gt=!1,showNullButton:An=!1,showNullProgramButton:Kn=!1,hidetoolBar:rr=!1,fullScreen:xn=!1,onBlur:Cn,onCMBeforeChange:tn,onFullScreen:gn,className:yn="",disablePaste:vn=!1,disabled:Ln=!1,disabledFill:Fn=!1,placeholder:Gn="",values:Hn="",extraUse:gr})=>{const[dn,Dr]=(0,We.useState)(null),[zr,Qr]=(0,We.useState)($t),[wn,Yn]=(0,We.useState)(Bt),[cr,Fr]=(0,We.useState)(xn),[fr,br]=(0,We.useState)(""),[Hr,Rr]=(0,We.useState)(0),[Cr,Zr]=(0,We.useState)(sn),[Dn,Ei]=(0,We.useState)(!1),[kn,ci]=(0,We.useState)(0),[Ri,$r]=(0,We.useState)(0),Xi=(0,We.useRef)(),Oi=(0,We.useRef)(),Ir=(0,We.useRef)(),jr=(0,We.useRef)();(0,We.useEffect)(()=>{const Vr=window.scrollY||window.pageYOffset;Qr(Hn),dn==null||dn.setValue(Hn),window.scrollTo(0,Vr)},[Hn]),(0,We.useEffect)(()=>{gn==null||gn(cr)},[cr]),(0,We.useEffect)(()=>{if(Xi.current){let Vr=function(qn,si){var qi;if(vn){si.preventDefault();return}const Ro=si.clipboardData;if(Ro){const lo=Ro.types.toString(),Qi=Ro.items;if(lo==="Files"||Ro.types.indexOf("Files")>-1){if(si.preventDefault(),bn=="stex")return;try{let Do=Qi[1];((qi=Qi[0])==null?void 0:qi.kind)==="file"&&(Do=Qi[0]);const Oo=Do.getAsFile(),oa=Oo.name.split(".").pop();(0,mt.I)(Oo,la=>{var Ma,Mn,ha;la.id?((Ma=Oo==null?void 0:Oo.type)==null?void 0:Ma.indexOf("image"))>-1?Xr.replaceSelection(`<img width="100%" src="/api/attachments/${la.id}?type=${la.content_type})" alt="" />`):((Mn=Oo==null?void 0:Oo.type)==null?void 0:Mn.indexOf("video"))>-1?Xr.replaceSelection(`<video width="100%" controls src="/api/attachments/${la.id}"></video>`):((ha=Oo==null?void 0:Oo.type)==null?void 0:ha.indexOf("pdf"))>-1?Xr.replaceSelection(`<a href="/api/attachments/${la.id}?type=${Oo.type}&disposition=inline" target="_blank">${Oo.name}</a>`):mi.includes(oa)?Xr.replaceSelection(`<a href="/api/attachments/${la.id}?type=office&disposition=inline" target="_blank">${Oo.name}</a>`):Xr.replaceSelection(`[${Oo.name}](/api/attachments/${la.id}?type=${la.content_type})`):(la==null?void 0:la.status)===401&&(document.location.href="/user/login")})}catch(Do){Vt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Xr=oe().fromTextArea(Xi.current,{mode:bn,lineNumbers:!pn,lineWrapping:!0,value:$t,autoCloseTags:!0,autoCloseBrackets:!0});return Xr.on("keyup",function(qn,si){si.keyCode===8&&(qn.getValue()==""?Xr.setOption("placeholder",Gn):Xr.setOption("placeholder",null))}),Xr.on("keydown",function(qn,si){if(si.keyCode===8){var qi=ki(qn);qi&&si.preventDefault()}}),Yt&&Xr.focus(),Xr.on("paste",Vr),Ln&&Xr.on("beforeChange",function(qn,si){(si.origin==="paste"||si.origin==="+input")&&si.cancel()}),Dr(Xr),()=>{Xr.off("paste",Vr)}}},[]);const xi=(0,We.useCallback)(()=>{if(Oi.current)try{}catch(Vr){console.log(Vr,"---- to set md editor body height")}},[Cr,Oi,cr]);(0,We.useEffect)(()=>{function Vr(){let Xr=new Ue.Z(qn=>{for(let si of qn)(si.target.offsetHeight>0||si.target.offsetWidth>0)&&(xi(),dn.setSize("100%","100%"),dn.refresh())});return Xr.observe(Xi.current.parentElement),Xr}if(dn){const Xr=Vr();return()=>{var qn,si;(qn=Xi.current)!=null&&qn.parentElement&&Xr.unobserve((si=Xi.current)==null?void 0:si.parentElement)}}},[dn,xi]),(0,We.useEffect)(()=>{if(dn){let Vr=[];for(const[Xr,qn]of Object.entries(vr)){let si={[Xr]:()=>{pr(qn)}};Vr.push(si),dn.addKeyMap(si)}return()=>{for(let Xr of Vr)dn.removeKeyMap(Xr)}}},[dn]),(0,We.useEffect)(()=>{xn!==cr&&Fr(xn)},[xn]),(0,Ar.Z)(()=>{if(!Gt&&Hr>0){let Vr=new Date().getTime(),Xr=window.sessionStorage.getItem(On);Vr>=Hr+Mr&&(!Xr||Xr!==zr)&&(window.sessionStorage.setItem(On,zr),Ei(!0))}},Mr),(0,We.useEffect)(()=>{Yn(Bt)},[dn,Bt]),(0,We.useEffect)(()=>{dn&&Yt&&dn.focus()},[dn,Yt]),(0,We.useEffect)(()=>{if(wn&&dn){let Vr=function(qn){let si=qn.target;if(jr.current){let qi=si.scrollTop/si.scrollHeight;jr.current.scrollTop=jr.current.scrollHeight*qi}};const Xr=dn.getScrollerElement();return Xr.addEventListener("scroll",Vr),()=>{Xr.removeEventListener("scroll",Vr)}}},[dn,wn]),(0,We.useEffect)(()=>{if(dn&&tn){let Vr=function(Xr,qn){tn(Xr,qn)};return dn.on("beforeChange",Vr),()=>{dn.off("beforeChange",Vr)}}},[dn,tn]),(0,We.useEffect)(()=>{if(dn&&Cn){let Vr=function(){Cn(dn.getValue())};return dn.on("blur",Vr),()=>{dn.off("blur",Vr)}}},[dn,Cn]);function ki(Vr,Xr){var qn=Vr.getDoc(),si=qn.getCursor(),qi=qn.getLine(si.line),Ro=qi.charAt(si.ch-1),lo=qi.lastIndexOf("@\u2581@",si.ch),Qi=qi.lastIndexOf("@\u2581\u2581@",si.ch),Do=lo>Qi?lo:Qi,Oo=lo>Qi?3:4;if(Jr.indexOf(Ro)===-1)return null;if(console.log("change1:",Xr,Vr,qi,si,Do,lo,Qi,Ro),Do>=0&&si.ch-Do<5){var oa=Do+Oo;return qn.replaceRange("",{line:si.line,ch:Do},{line:si.line,ch:oa}),{line:si.line,ch:oa}}return null}(0,We.useEffect)(()=>{if(dn){let Vr=function(Xr,qn){const si=Xr.getValue();Qr(si),Rr(new Date().getTime()),Xr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Xt&&(Kn?Xt(si,hi(si)):Xt(si))};return dn.on("change",Vr),()=>{dn.off("change",Vr)}}},[dn,Xt]),(0,We.useEffect)(()=>{if(dn)if($t==null)dn.setValue(""),Qr("");else{const Vr=window.scrollY||window.pageYOffset;$t!==dn.getValue()&&(dn.setValue($t),Qr($t),dn.setCursor(Ln?1:dn.lineCount(),0),window.scrollTo(0,Vr))}},[dn,$t]);const pr=(0,We.useCallback)(Vr=>{const Xr=dn.getCursor(),qn=dn.getSelection();let si=qn.split(`
`);switch(Vr){case"bold":return dn.replaceSelection("**"+qn+"**"),qn===""&&dn.setCursor(Xr.line,Xr.ch+2),dn.focus();case"italic":return dn.replaceSelection("*"+qn+"*"),qn===""&&dn.setCursor(Xr.line,Xr.ch+1),dn.focus();case"code":return dn.replaceSelection("`"+qn+"`"),qn===""&&dn.setCursor(Xr.line,Xr.ch+1),dn.focus();case"inline-latex":return br("inline-latex"),dn.focus();case"latex":return dn.replaceSelection("```latex\n"+qn+"\n```"),dn.setCursor(Xr.line+1,qn.length+1),dn.focus();case"line-break":return dn.replaceSelection(`<br/>
`),dn.focus();case"list-ul":return qn===""?dn.replaceSelection("- "+qn):dn.replaceSelection(si.map(qi=>qi===""?"":`- ${qi}`).join(`
`)),dn.focus();case"list-ol":return qn===""?dn.replaceSelection("1. "+qn):dn.replaceSelection(si.map((qi,Ro)=>qi===""?"":`${Ro+1}. ${qi}`).join(`
`)),dn.focus();case"add-null-ch":return qn===""&&dn.setCursor(Xr.line,Xr.ch),dn.replaceSelection(fi),dn.focus();case"add-signal":return qn===""&&dn.setCursor(Xr.line,Xr.ch),dn.replaceSelection(it),dn.focus();case"add-multiple":return qn===""&&dn.setCursor(Xr.line,Xr.ch),dn.replaceSelection(Jr),dn.focus();case"inster-template-1":return qn===""&&dn.setCursor(Xr.line,Xr.ch),dn.replaceSelection(bi),dn.focus();case"eraser":return dn.setValue(""),dn.focus();case"trigger-watch":return Yn(!wn),dn.focus();case"trigger-full-screen":return Fr(!cr),dn.focus();case en:br(en);return;case tr:br(tr);return;case on:br(on);return;case jn:br(jn);return;case"maths-latex":br("maths-latex");return;case fn:br(fn);return;case ur:br(ur);return;default:throw new Error}},[dn,wn,cr]),kt=(0,We.useCallback)((Vr,Xr)=>{var qn,si,qi,Ro,lo,Qi;switch(br(""),fr){case en:const{title:Ma,link:Mn}=Vr;return dn.replaceSelection(`[${Ma}](${Mn})`),dn.focus();case tr:const{language:ha,content:fu}=Vr;return dn.replaceSelection(["```"+ha,fu,"```"].join(`
`)),dn.focus();case"maths-latex":for(var Do=atob(Vr),Oo=new Uint8Array(Do.length),oa=0;oa<Do.length;oa++)Oo[oa]=Do.charCodeAt(oa);var la=new Blob([Oo],{type:"image/png"});(0,mt.I)(la,Ci=>{Ci.id?dn.replaceSelection(`![,](/api/attachments/${Ci.id}?type=${Ci.content_type})`):(Ci==null?void 0:Ci.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":dn.replaceSelection("`$$"+Vr+"$$`");break;case on:case jn:case er:const{src:xs,alt:bo}=Vr,_i=Xr,da=(qi=(si=(qn=_i==null?void 0:_i.name)==null?void 0:qn.split("."))==null?void 0:si.pop)==null?void 0:qi.call(si);return((Ro=_i==null?void 0:_i.type)==null?void 0:Ro.indexOf("image"))>-1||!(_i!=null&&_i.type)?_i!=null&&_i.align||_i!=null&&_i.width?dn.replaceSelection(`<p style="text-align:${_i.align||"initial"}"><img width="${_i.width?_i.width+"%":"initial"}" src="${xs}" alt="${bo||""}" /></p>`):dn.replaceSelection(`<img width="100%" src="${xs}" alt="${bo||""}" />`):((lo=_i==null?void 0:_i.type)==null?void 0:lo.indexOf("video"))>-1?dn.replaceSelection(`<video width="100%" controls src="${xs}"></video>`):((Qi=_i==null?void 0:_i.type)==null?void 0:Qi.indexOf("pdf"))>-1?dn.replaceSelection(`<a href="${xs}?type=${_i.type}&disposition=inline" target="_blank">${_i.name}</a>`):mi.includes(da)?dn.replaceSelection(`<a href="${xs}?type=office&disposition=inline" target="_blank">${_i.name}</a>`):dn.replaceSelection(`[${_i.name}](${xs})`),dn.focus();case ur:const{row:Ao,col:eo,align:Bo}=Vr;let ws=`
`;for(let Ci=0;Ci<Ao;Ci++){let ho=[],oo=[];for(let kr=0;kr<eo;kr++)Ci===1&&oo.push(Lr[Bo]),ho.push(" ");Ci===1&&(ws+=`| ${oo.join(" | ")} |
`),ws+=`| ${ho.join(eo===1?"":" | ")} |
`}return dn.replaceSelection(ws+`
`),dn.focus();default:throw new Error}},[dn,fr]),Li=(0,We.useMemo)(()=>{switch(fr){case en:return We.createElement(bt,{callback:kt,onCancel:ao});case tr:return We.createElement(wt.Z,{callback:kt,onCancel:ao});case on:return We.createElement(mt.Z,{callback:kt,onCancel:ao});case fn:return We.createElement(Ve,{callback:kt,onCancel:ao});case ur:return We.createElement(Ye,{callback:kt,onCancel:ao});case"maths-latex":return We.createElement(_t,{showSaveButton:!0,callback:kt});case"inline-latex":return We.createElement(Ot.Z,{showSaveButton:!0,callback:kt});default:return null}},[fr]);function ao(){br("")}(0,We.useEffect)(()=>{if(Ir.current){let Vr=function(lo){qi=!0,Ro=lo.pageY},Xr=function(){qi=!1},qn=function(lo){if(qi){let Qi=lo.pageY-Ro;Qi<0&&(Qi=0),Qi>300&&(Qi=300);let Do=sn+Qi+"px";Zr(Do)}},si=Ir.current,qi=!1,Ro=0;return si.addEventListener("mousedown",Vr),document.addEventListener("mousemove",qn),document.addEventListener("mouseup",Xr),()=>{si.removeEventListener("mousedown",Vr),document.removeEventListener("mousemove",qn),document.removeEventListener("mouseup",Xr)}}},[dn,Ir]),(0,We.useEffect)(()=>{Zr(sn)},[sn]);const Pi=Tn(Tt),co=Tn(Cr),wo={width:Pi,height:co},ti=(0,We.useMemo)(()=>{if(Hr){let Vr=new Date(Hr),Xr=Vr.getHours(),qn=Vr.getMinutes(),si=Vr.getSeconds();return Xr=Xr<10?"0"+Xr:Xr,qn=qn<10?"0"+qn:qn,si=si<10?"0"+si:si,`${Xr}:${qn}:${si}`}return 0},[Hr]),hi=Vr=>{const Xr=[];if(Kn){let qn=-1;Vr=Vr.replace(/(@▁▁@|@▁@)/g,function(si,qi,Ro){Xr.push({multiLine:si!==it})})}return Xr};function Fi(){window.sessionStorage.removeItem(On),Ei(!1),Rr(0)}function wi(){Ei(!1),Rr(0),dn.setValue(window.sessionStorage.getItem(On))}(0,We.useEffect)(()=>{Jn[fr]&&fr!==jn&&fr!==fn&&setTimeout(()=>{const Vr=document.getElementsByClassName("markdown-popup-form")[0],Xr=window.innerWidth/2-Vr.offsetWidth/2,qn=window.innerHeight/2-Vr.offsetHeight/2;ci(Xr),$r(qn)},0)},[fr]);const so=Vr=>{Vr.preventDefault();const Xr=Vr.clientX-kn,qn=Vr.clientY-Ri;document.body.onmousemove=si=>{let qi=si.clientX-Xr,Ro=si.clientY-qn;const lo=document.getElementsByClassName("markdown-popup-form")[0],Qi=window.innerWidth-lo.offsetWidth,Do=window.innerHeight-lo.offsetHeight;qi=Math.max(0,Math.min(qi,Qi)),Ro=Math.max(0,Math.min(Ro,Do)),Po(si.clientX,si.clientY,Xr,qn)&&(ci(qi),$r(Ro))},document.body.onmouseup=function(){document.body.onmousemove=null}},Po=(Vr,Xr,qn,si)=>{const qi=document.body.clientHeight,Ro=document.body.clientWidth;return Vr<20&&qn>Vr||Vr>Ro-20&&qn<Vr||Xr<20&&si>Xr||Xr>qi-20&&si<Xr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return We.createElement(We.Fragment,null,We.createElement("div",{className:"markdown-editor-wrapper",ref:Oi},We.createElement("div",{className:`markdown-editor-container ${yn} ${wn?"on-preview":""} ${pn?"mini":""} ${cr?"full-screen":""}`,style:wo},We.createElement(Ae,{insertTemp:un,watch:wn,fullScreen:cr,showNullButton:An,showNullProgramButton:Kn,onActionCallback:pr,hidetoolBar:rr,extraUse:gr}),We.createElement("div",{className:"markdown-editor-body"},We.createElement("div",{className:"codemirror-container"},We.createElement("textarea",{ref:Xi,placeholder:Gn})),wn?We.createElement("div",{ref:jr,className:"preview-container"},bn==="stex"&&We.createElement(me,{value:zr}),bn!=="stex"&&We.createElement(be.Z,{disabledFill:Fn,showProgramFill:Kn,value:zr})):null))),Zn?We.createElement("a",{ref:Ir,className:"editor-resize"}):null,fr===jn&&We.createElement(Kt,{callback:kt,onCancel:ao}),fr===fn&&We.createElement(Ve,{callback:kt,onCancel:ao}),We.createElement(Te.Z,null,Jn[fr]&&fr!==jn&&fr!==fn?We.createElement(vt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:kn,top:Ri},title:We.createElement("div",{style:{cursor:"move"},onMouseDown:so},Jn[fr]),open:!0,onCancel:ao,footer:null,destroyOnClose:!0,width:fr===fn?"1200px":null,height:fr===fn?"80vh":null,className:"markdown-popup-form"},Li):null))}},28451:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return we},I:function(){return Ae}});var We=ze(78241),xt=ze(8591),oe=ze(92832),Ue=ze(81327),Oe=ze(5871),ve=ze(5112),ce=ze(3113),Ce=ze(77903),Ee=ze(59301),ye=ze(59301),be=Object.defineProperty,me=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Te,Me,Be)=>Me in Te?be(Te,Me,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Te[Me]=Be,re=(Te,Me)=>{for(var Be in Me||(Me={}))z.call(Me,Be)&&ae(Te,Be,Me[Be]);if(fe)for(var Be of fe(Me))ee.call(Me,Be)&&ae(Te,Be,Me[Be]);return Te},le=(Te,Me)=>me(Te,xe(Me));const{useForm:ue}=We.default,pe={width:280,marginRight:10},Pe={labelCol:{span:5},wrapperCol:{span:19}};var we=({callback:Te,onCancel:Me})=>{const[Be]=ue();let Re=(0,Ee.useRef)();function Qe(qe){Re.current.width=Be.getFieldValue("width"),Re.current.align=Be.getFieldValue("align"),Te(qe,Re.current)}function He(qe,ut){if(qe.status===-1){xt.ZP.error(qe.message);return}Be.setFieldsValue({src:`/api/attachments/${qe.id}`,type:ut.type})}function $e(qe){let ut=qe.target.files[0];Re.current=ut,Ae(ut,He)}return ye.createElement(We.default,le(re({form:Be},Pe),{className:"upload-image-panel",onFinish:Qe,style:{width:470,overflow:"hidden"}}),ye.createElement(We.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ye.createElement("div",{className:"flex-container"},ye.createElement(We.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ye.createElement(oe.default,{style:pe})),ye.createElement(Ne,{onFileChange:$e}))),ye.createElement(We.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ye.createElement(oe.default,{style:{width:264}})),ye.createElement(We.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ye.createElement(Ue.Z,null,ye.createElement(We.default.Item,{name:"width",style:{margin:0}},ye.createElement(Oe.Z,{style:{width:264}})),ye.createElement("span",{className:"ml8"},"%"))),ye.createElement(We.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ye.createElement(ve.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ye.createElement("aside",null,ye.createElement(We.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:Me},"\u53D6\u6D88"))))};function Ne({onFileChange:Te}){return ye.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ye.createElement("input",{type:"file",onChange:Te}))}function Ae(Te,Me){if(!Te)throw new String("\u6CA1\u6709\u6587\u4EF6");let Be=new FormData;Be.append("editormd-image-file",Te),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var Re=new window.XMLHttpRequest;Re.withCredentials=!0,Re.addEventListener("load",function(Qe){Me(JSON.parse(Qe.target.responseText),Te)},!1),Re.addEventListener("error",function(Qe){console.error(Qe)},!1),Re.open("POST",`${Ce.KI}/api/attachments.json`),Re.send(Be)}},79346:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return oe}});var We=ze(59301),xt=ze(4676);class oe extends We.Component{constructor(Oe){super(Oe);const ve=window.document;this.node=ve.createElement("div"),ve.body.appendChild(this.node)}render(){const{children:Oe}=this.props;return(0,xt.createPortal)(Oe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Nn,mn,ze){"use strict";ze.d(mn,{SV:function(){return Je},ZP:function(){return rt}});var We=ze(59301),xt=ze(76374);const oe={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"]},Ue={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Oe={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},ve={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},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 Ce=ze(53184),Ee=ze.n(Ce),ye=Object.defineProperty,be=Object.defineProperties,me=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Xe,Ve,tt)=>Ve in Xe?ye(Xe,Ve,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Xe[Ve]=tt,ae=(Xe,Ve)=>{for(var tt in Ve||(Ve={}))fe.call(Ve,tt)&&ee(Xe,tt,Ve[tt]);if(xe)for(var tt of xe(Ve))z.call(Ve,tt)&&ee(Xe,tt,Ve[tt]);return Xe},re=(Xe,Ve)=>be(Xe,me(Ve)),le=(Xe,Ve,tt)=>new Promise((Ze,je)=>{var De=Ke=>{try{dt(tt.next(Ke))}catch(At){je(At)}},Ye=Ke=>{try{dt(tt.throw(Ke))}catch(At){je(At)}},dt=Ke=>Ke.done?Ze(Ke.value):Promise.resolve(Ke.value).then(De,Ye);dt((tt=tt.apply(Xe,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=(Xe,Ve)=>Ve.map(tt=>({label:tt,kind:Xe.languages.CompletionItemKind.Keyword,insertText:tt})),Pe=Xe=>Object.keys(ue.tables).map(Ve=>({label:Ve,kind:Xe.languages.CompletionItemKind.Variable,insertText:Ve})),we=(Xe,Ve)=>{const tt=ue.tables[Xe];return tt?tt.map(Ze=>({label:Ze,kind:Ve.languages.CompletionItemKind.Field,insertText:Ze})):[]};function Ne(Xe,Ve,tt,Ze,je){let De=Ve.getWordUntilPosition(tt),Ye={startLineNumber:tt.lineNumber,endLineNumber:tt.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},dt=Ze.map(Ke=>({label:Ke,kind:Xe.languages.CompletionItemKind.Keyword,insertText:Ke,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye}));return je.map(Ke=>{dt.push(re(ae({},Ke),{range:Ye}))}),dt}var Ae=Xe=>{ue.languages.map(je=>(Xe.languages.registerDocumentFormattingEditProvider(je,{provideDocumentFormattingEdits(De,Ye,dt){return le(this,null,function*(){const Ke=Ee()(De.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:De.getFullModelRange(),text:Ke}]})}}),je));const Ve=Oe.quickKey.map(je=>({label:je.label,kind:Xe.languages.CompletionItemKind.Method,insertText:je.content,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),tt=ve.quickKey.map(je=>({label:je.label,kind:Xe.languages.CompletionItemKind.Method,insertText:je.content,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ze=Ue.quickKey.map(je=>({label:je.label,kind:Xe.languages.CompletionItemKind.Method,insertText:je.content,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Xe.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(je,De){var Ye=je.getWordUntilPosition(De),dt={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:Ye.startColumn,endColumn:Ye.endColumn},Ke=je.getLineContent(De.lineNumber).substring(Ye.startColumn-2,Ye.endColumn);return{suggestions:[...Oe.keywords.map(At=>({label:At,kind:Xe.languages.CompletionItemKind.Function,documentation:At,insertText:At,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt})),...Oe.quickKey.map(At=>({label:At.label,kind:Xe.languages.CompletionItemKind.Function,documentation:At.content,insertText:Ke.startsWith("#")?At.content.replace(/#/,""):At.content,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt}))]}}}),Xe.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(je,De){var Ye=je.getWordUntilPosition(De),dt={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:Ye.startColumn,endColumn:Ye.endColumn};return{suggestions:[...oe.keywords.map(Ke=>({label:Ke,kind:Xe.languages.CompletionItemKind.Function,documentation:Ke,insertText:Ke,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt}))]}}}),Xe.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(je,De){var Ye=je.getWordUntilPosition(De),dt={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:Ye.startColumn,endColumn:Ye.endColumn},Ke=je.getLineContent(De.lineNumber).substring(Ye.startColumn-2,Ye.endColumn);return{suggestions:[...Ue.keywords.map(At=>({label:At,kind:Xe.languages.CompletionItemKind.Function,documentation:At,insertText:At,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt})),...Ue.quickKey.map(At=>({label:At.label,kind:Xe.languages.CompletionItemKind.Function,documentation:At.content,insertText:Ke.startsWith("#")?At.content.replace(/#/,""):At.content,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt}))]}}}),Xe.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(je,De){var Ye=je.getWordUntilPosition(De),dt={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:Ye.startColumn,endColumn:Ye.endColumn},Ke=je.getLineContent(De.lineNumber).substring(Ye.startColumn-2,Ye.endColumn);return{suggestions:[...ce.keywords.map(At=>({label:At,kind:Xe.languages.CompletionItemKind.Function,documentation:At,insertText:At,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt})),...ce.quickKey.map(At=>({label:At.label,kind:Xe.languages.CompletionItemKind.Function,documentation:At.content,insertText:Ke.startsWith("#")?At.content.replace(/#/,""):At.content,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt}))]}}}),Xe.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(je,De){var Ye=je.getWordUntilPosition(De),dt={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:Ye.startColumn,endColumn:Ye.endColumn},Ke=je.getLineContent(De.lineNumber).substring(Ye.startColumn-2,Ye.endColumn);return{suggestions:[...ve.keywords.map(At=>({label:At,kind:Xe.languages.CompletionItemKind.Function,documentation:At,insertText:At,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt})),...ve.quickKey.map(At=>({label:At.label,kind:Xe.languages.CompletionItemKind.Function,documentation:At.content,insertText:Ke.startsWith("#")?At.content.replace(/#/,""):At.content,insertTextRules:Xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt}))]}}})};const Te="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Me=Object.defineProperty,Be=(Xe,Ve,tt)=>Ve in Xe?Me(Xe,Ve,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Xe[Ve]=tt,Re=(Xe,Ve,tt)=>Be(Xe,typeof Ve!="symbol"?Ve+"":Ve,tt);const Qe=class mx{constructor(Ve,tt,Ze){this.placeholder=Ve,this.editor=tt,this.monaco=Ze,tt.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)}};Re(Qe,"ID","editor.widget.placeholderHint");var $e=Qe,qe=ze(96236),ut=ze(8591),ct=ze(6848),yt=ze(89392),_e=ze(34604),st=ze(56102),pt=Object.defineProperty,bt=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Nt=(Xe,Ve,tt)=>Ve in Xe?pt(Xe,Ve,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Xe[Ve]=tt,Ft=(Xe,Ve)=>{for(var tt in Ve||(Ve={}))vt.call(Ve,tt)&&Nt(Xe,tt,Ve[tt]);if(mt)for(var tt of mt(Ve))St.call(Ve,tt)&&Nt(Xe,tt,Ve[tt]);return Xe},Kt=(Xe,Ve)=>bt(Xe,wt(Ve)),Pt=(Xe,Ve)=>{var tt={};for(var Ze in Xe)vt.call(Xe,Ze)&&Ve.indexOf(Ze)<0&&(tt[Ze]=Xe[Ze]);if(Xe!=null&&mt)for(var Ze of mt(Xe))Ve.indexOf(Ze)<0&&St.call(Xe,Ze)&&(tt[Ze]=Xe[Ze]);return tt},Et=(Xe,Ve,tt)=>new Promise((Ze,je)=>{var De=Ke=>{try{dt(tt.next(Ke))}catch(At){je(At)}},Ye=Ke=>{try{dt(tt.throw(Ke))}catch(At){je(At)}},dt=Ke=>Ke.done?Ze(Ke.value):Promise.resolve(Ke.value).then(De,Ye);dt((tt=tt.apply(Xe,Ve)).next())});function at(Xe){return/^\d+$/.test(Xe)?`${Xe}px`:Xe}function Ct(){}let nt=!1;const ht={"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 Mt(Xe=[]){let Ve=Xe;if(Array.isArray(Xe)){for(let tt=0;tt<Xe.length;tt++){let Ze=ht[Xe[tt]];if(Ze)return Ze}return Ve[0]}return ht[Ve]||Ve}let gt=null;var rt=Xe=>{var Ve=Xe,{width:tt="100%",height:Ze="100%",value:je,language:De="javascript",style:Ye={},options:dt={},overrideServices:Ke={},theme:At="vs-dark",onEditBlur:zt,isCopy:_t=!1,onSave:Ot,autoHeight:Vt=!1,forbidCopy:en=!1,onChange:on=Ct,editorDidMount:fn=Ct,onFocus:jn=Ct,onBreakPoint:er=Ct,breakPointValue:tr=[],filename:ur="educoder.txt",errorLine:Tr,errorContent:Lr="",highlightLine:Ar,openBreakPoint:Gr=!1,placeholder:Kr="",showMiniMap:Mr=!0}=Ve,fi=Pt(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","showMiniMap"]);const Jr=(0,We.useRef)(),it=(0,We.useRef)({}),bi=(0,We.useRef)(),mi=(0,We.useRef)(),Tn=(0,We.useRef)([]),dr=(0,We.useRef)(!1),ar=(0,We.useRef)(),vr=(0,We.useRef)(),Jn=(0,We.useRef)(!1),[zn,$t]=(0,We.useState)(!1);function Xt(){let Cn;return Jr.current&&(Cn=new xt.Z(tn=>{for(let gn of tn)(gn.target.offsetHeight>0||gn.target.offsetWidth>0)&&it.current.instance.layout()}),Cn.observe(Jr.current)),Cn}function Tt(){ut.ZP.warning({content:decodeURIComponent(Te),key:"monaco-editor-tip"})}const sn=()=>{let Cn=it.current.instance;if(je!=null&&Cn&&zn){const tn=Cn.getModel();tn&&je!==tn.getValue()&&(nt=!0,tn.setValue(je),Cn.layout(),nt=!1)}};(0,We.useEffect)(()=>{const Cn=_e.Z.subscribe("formatDocument",tn=>{var gn;let yn=it.current.instance;(gn=yn==null?void 0:yn.getAction)==null||gn.call(yn,"editor.action.formatDocument").run()});return window.updateMonacoValue=tn=>{on(tn)},Cn},[]),(0,We.useEffect)(()=>{var Cn;let tn=it.current.instance;mi.current&&clearTimeout(mi.current),mi.current=setTimeout(()=>{sn()},500),je&&(je!=null&&je.length)&&((Cn=tn==null?void 0:tn.updateOptions)==null||Cn.call(tn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(je.split(/\r\n|\r|\n/g).length))+3,5)}))},[je,zn,it.current]),(0,We.useEffect)(()=>{if(Tr&&it.current&&it.current.instance){let tn=it.current.instance;tn.changeViewZones(function(gn){var yn=document.createElement("div");yn.style.padding="10px 20px",yn.style.width="calc(100% - 20px)",yn.className="my-error-line-wrp",yn.innerHTML=Lr,gn.addZone({afterLineNumber:Tr||11,heightInLines:3,domNode:yn})});var Cn={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}};tn.addOverlayWidget(Cn),tn.revealPositionInCenter({lineNumber:20,column:1})}},[Tr,it.current,zn]);const pn=(Cn="",tn)=>{if(!Cn||Cn.trim()==="")return!0;const yn=it.current.instance.getModel().getLineTokens(tn);let vn=!1;for(let Ln=0;Ln<2;Ln++)yn.getStandardTokenType(Ln)===1&&(vn=!0);return vn};(0,We.useEffect)(()=>{var Cn;const tn=(Cn=it.current)==null?void 0:Cn.instance;if(tn&&zn&&en){const gn=tn.onDidBlurEditorWidget(()=>{Jn.current=!1}),yn=tn.onDidFocusEditorText(()=>{Jn.current=!0});return()=>{gn.dispose(),yn.dispose()}}},[it.current,zn,en]),(0,We.useEffect)(()=>{var Cn;if((Cn=it.current)!=null&&Cn.instance&&zn&&Gr){let tn=it.current.instance,gn=tn.getModel();if(!gn)return;(()=>{var wn;let Yn=[],cr=[];const Fr=gn.getAllDecorations();for(let br of Fr)br.options.className==="highlighted-line"&&(Yn.push((wn=br==null?void 0:br.range)==null?void 0:wn.startLineNumber),cr.push(br==null?void 0:br.id));if(Ar===Yn[0])return;gn.deltaDecorations(cr,[]);const fr=gn.getLineCount();Ar&&Ar<=fr&&(tn.deltaDecorations([],[{range:new gt.Range(Ar,1,Ar,gn.getLineMaxColumn(Ar)),options:{isWholeLine:!0,className:"highlighted-line"}}]),tn.revealLineInCenter(Ar))})();const vn=(wn=!1)=>{var Yn;let cr=[],Fr=[];const fr=gn.getAllDecorations();for(let br of fr)br.options.linesDecorationsClassName==="breakpoints-select"&&(cr.push((Yn=br==null?void 0:br.range)==null?void 0:Yn.startLineNumber),Fr.push(br==null?void 0:br.id));if(wn)return{lines:cr,ids:Fr};er(cr)},Ln=wn=>Et(void 0,null,function*(){let Yn={range:new gt.Range(wn,1,wn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield gn.deltaDecorations([],[Yn]),vn()}),Fn=wn=>Et(void 0,null,function*(){let Yn=[];const cr=tn.getLineDecorations(wn);for(let Fr of cr)Fr.options.linesDecorationsClassName==="breakpoints-select"&&Yn.push(Fr.id);yield gn.deltaDecorations(Yn,[]),vn()}),Gn=wn=>{let Yn=tn.getLineDecorations(wn);for(let cr of Yn)if(cr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,yt.isEqual)(tr,vn(!0).lines)){gn.deltaDecorations(vn(!0).ids,[]);const wn=tr.map(Yn=>({range:new gt.Range(Yn,1,Yn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));gn.deltaDecorations([],wn)}const Hn=tn.onDidChangeModelContent(wn=>{let Yn=tn.getPosition();if(Yn){let cr=Yn.lineNumber;clearTimeout(vr.current),vr.current=setTimeout(()=>{pn(gn.getLineContent(cr),cr)?Fn(cr):Gn(cr)?(Fn(cr),Ln(cr)):vn()},100)}}),gr=tn.onMouseDown(wn=>{var Yn,cr,Fr;if(wn.target.detail&&((Fr=(cr=(Yn=wn.target)==null?void 0:Yn.element)==null?void 0:cr.className)!=null&&Fr.includes("line-numbers"))){let fr=wn.target.position.lineNumber;if(pn(gn.getLineContent(fr),fr))return;Gn(fr)?Fn(fr):Ln(fr)}}),dn=wn=>{let Yn={range:new gt.Range(wn,1,wn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Tn.current=tn.deltaDecorations(Tn.current,[Yn])},Dr=()=>{Tn.current=tn.deltaDecorations(Tn.current,[])},zr=tn.onMouseMove(wn=>{var Yn,cr,Fr;if(Dr(),wn.target.detail&&((Fr=(cr=(Yn=wn.target)==null?void 0:Yn.element)==null?void 0:cr.className)!=null&&Fr.includes("line-numbers"))){let fr=wn.target.position.lineNumber;if(pn(gn.getLineContent(fr),fr))return;dn(fr)}}),Qr=tn.onMouseLeave(()=>{Dr()});return()=>{Hn.dispose(),gr.dispose(),zr.dispose(),Qr.dispose()}}},[it.current,zn,tr,Ar,Gr,De]),(0,We.useEffect)(()=>{var Cn;(Cn=it.current)!=null&&Cn.instance&&Gr&&it.current.instance.setPosition({lineNumber:0,column:0})},[Ar]);function Yt(){let Cn=it.current.instance;if(Cn){const tn=Cn.getSelection(),gn=it.current.pastePos||{},yn=new gt.Range(gn.startLineNumber||tn.endLineNumber,gn.startColumn||tn.endColumn,gn.endLineNumber||tn.endLineNumber,gn.endColumn||tn.endColumn);setTimeout(()=>{Cn.executeEdits("",[{range:yn,text:""}])},300)}}function Bt(Cn){(window.navigator.platform.match("Mac")?Cn.metaKey:Cn.ctrlKey)&&Cn.keyCode==83&&(Cn.preventDefault(),Ot())}const un=()=>{if(Vt&&it.current.instance){const Cn=it.current.instance.getContentHeight();rr(Cn<Ze?Ze:Cn)}else rr(Ze)};function bn(Cn){var tn=document.createEvent("MouseEvents");tn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Cn.dispatchEvent(tn)}const On=Cn=>{if(!Jn.current)return;const{keyCode:tn,ctrlKey:gn,metaKey:yn,target:vn,type:Ln}=Cn;return(Ln==="paste"||(tn===67||tn===86)&&(yn||gn))&&vn.nodeName==="TEXTAREA"&&(Tt(),Cn.preventDefault()),!1};function Zn(Cn,tn){var gn=window.URL||window.webkitURL||window,yn=new Blob([tn]),vn=document.createElementNS("http://www.w3.org/1999/xhtml","a");vn.href=gn.createObjectURL(yn),vn.download=Cn,bn(vn)}(0,We.useEffect)(()=>{un()},[un]),(0,We.useEffect)(()=>{Jr.current&&!zn&&Promise.all([ze.e(8909),ze.e(3267)]).then(ze.bind(ze,71448)).then(Cn=>{try{gt=Cn,it.current.instance=gt.editor.create(Jr.current,{value:je,language:Mt(De),theme:At,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Mr||!1}},Ke);const tn=it.current.instance;let vn=[...qe.BH._menuItems].find(Hn=>Hn[0]._debugName=="EditorContext")[1],Ln=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Fn=(Hn,gr)=>{var dn,Dr;let zr=Hn._first;do gr.includes((Dr=(dn=zr.element)==null?void 0:dn.command)==null?void 0:Dr.id)&&Hn._remove(zr);while(zr=zr.next)};if(fn(tn,gt),setTimeout(()=>{un(),it.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Zn(ur||"educoder.txt",tn.getValue())}})},500),it.current.subscription=tn.onDidChangeModelContent(Hn=>{dr.current?clearTimeout(ar.current):(un(),on(tn.getValue(),Hn)),ar.current=setTimeout(()=>{dr.current=!1},500)}),window.Monaco||Ae(gt,Mt(De)),en&&(Fn(vn,Ln),Jr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",On),window.removeEventListener("paste",On),window.addEventListener("keydown",On),window.addEventListener("paste",On)),window.Monaco=gt,zt&&tn.onDidBlurEditorWidget(()=>{zt(tn.getValue())}),jn&&tn.onDidFocusEditorText(()=>{jn(tn.getValue())}),en)try{tn.onDidPaste(Hn=>{const gr=tn.getSelection(),dn=it.current.pastePos||{},Dr=new gt.Range(dn.startLineNumber||gr.endLineNumber,dn.startColumn||gr.endColumn,dn.endLineNumber||gr.endLineNumber,dn.endColumn||gr.endColumn);tn.executeEdits("",[{range:Hn.range,text:""}])})}catch(Hn){}let Gn=Xt();return Kr&&typeof Kr=="string"&&new $e(Kr,tn,gt),$t(!0),()=>{const Hn=it.current.instance;Hn.dispose();const gr=Hn.getModel();gr&&gr.dispose(),it.current.subscription&&it.current.subscription.dispose(),Gn.unobserve(Jr.current)}}catch(tn){}})},[]),(0,We.useEffect)(()=>{if(it.current.instance&&zn)return document.addEventListener("keydown",Bt,!1),()=>{document.removeEventListener("keydown",Bt)}},[Ot,zn]),(0,We.useEffect)(()=>{let Cn=it.current.instance;if(Cn&&zn){let tn=Mt(De);gt.editor.setModelLanguage(Cn.getModel(),tn)}},[De,zn]),(0,We.useEffect)(()=>{it.current.instance&&zn&&gt.editor.setTheme(At)},[At,zn]),(0,We.useEffect)(()=>{let Cn=it.current.instance;bi.current=dt,Cn&&zn&&(Cn.updateOptions(Ft({},dt)),setTimeout(()=>{Cn.getModel().updateOptions(Ft({},dt))},200))},[JSON.stringify(dt),zn]),(0,We.useEffect)(()=>{let Cn=it.current.instance;Cn&&zn&&Cn.layout()},[tt,Ze,zn]);const[Gt,An]=(0,We.useState)(at(tt)),[Kn,rr]=(0,We.useState)(at(Ze)),xn=Kt(Ft({},Ye),{width:Gt,height:Kn,position:"relative"});return We.createElement("div",{className:"my-monaco-editor",ref:Jr,style:xn},_t&&We.createElement(st.CopyToClipboard,{text:je,onCopy:()=>ut.ZP.success("\u590D\u5236\u6210\u529F")},We.createElement(ct.Z,{title:"\u590D\u5236\u4EE3\u7801"},We.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},We.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Je({width:Xe="100%",height:Ve="100%",original:tt,modified:Ze,language:je,options:De={}}){const Ye=(0,We.useRef)(),[dt,Ke]=(0,We.useState)(null);function At(Vt){let en;return Ye.current&&(en=new xt.Z(on=>{for(let fn of on)(fn.target.offsetHeight>0||fn.target.offsetWidth>0)&&Vt.layout()}),en.observe(Ye.current)),en}(0,We.useEffect)(()=>(Ye.current&&Promise.all([ze.e(8909),ze.e(9404)]).then(ze.bind(ze,2550)).then(Vt=>{gt=Vt;const en=gt.editor.createDiffEditor(Ye.current,Kt(Ft({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},De),{wordWrap:!0}));Ke(en);let on=At(en);return()=>{en.dispose();const fn=en.getModel();fn&&fn.dispose(),on.unobserve(Ye.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,We.useEffect)(()=>{dt&&dt.setModel({original:gt.editor.createModel(tt,je),modified:gt.editor.createModel(Ze,je)})},[tt,Ze,je,dt]);const zt=at(Xe),_t=at(Ve),Ot={width:zt,height:_t};return We.createElement("div",{className:"my-diff-editor",ref:Ye,style:Ot})}},85057:function(Nn,mn,ze){"use strict";ze.d(mn,{jL:function(){return Oe},w9:function(){return vt},QD:function(){return on},cQ:function(){return st},op:function(){return At},O5:function(){return vr},_b:function(){return Tr},t7:function(){return re},Gi:function(){return Et},YG:function(){return Kt},qp:function(){return be},vr:function(){return er},qE:function(){return Ot},Je:function(){return pe},wb:function(){return qe},cq:function(){return gt},tp:function(){return fe}});var We=ze(59301),xt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW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fswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Oe=({dataSource:Jn=[],img:zn,imgWidth:$t=346,title:Xt,sunTitle:Tt,bannerExtraContent:sn})=>We.createElement("div",{className:xt.banner},We.createElement("div",{className:xt.content},We.createElement("aside",null,We.createElement("p",null,We.createElement("b",null,Xt),We.createElement("span",null,Tt)),Jn.length>0&&We.createElement("div",{className:xt.btns},Jn.map((pn,Yt)=>We.createElement("div",{key:Yt,onClick:pn.click},pn.name,pn.sign?We.createElement("img",{src:oe,width:39}):null))),sn),zn&&We.createElement("img",{style:{marginTop:33,marginRight:38},src:zn,width:$t}))),ve={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ce=ze(92310),Ce=ze.n(ce),Ee=ze(89392),be=({dataSource:Jn=[],value:zn,onChange:$t,onTitleChange:Xt,className:Tt,title:sn,titleWidth:pn=41,style:Yt={},fontColor:Bt="#6A7283",showCount:un})=>{const[bn,On]=(0,We.useState)(0),[Zn,Gt]=(0,We.useState)(!1),An=(0,We.useRef)(null),Kn=(0,We.useRef)(null);return(0,We.useEffect)(()=>{var rr;Jn.length!==0&&(((rr=An==null?void 0:An.current)==null?void 0:rr.clientHeight)>97?On(1):On(0)),Jn.length===0&&On(0),Gt(!1)},[Jn]),We.createElement("div",{className:Ce()(ve.row,Tt),style:Yt},We.createElement("div",{onClick:(0,Ee.throttle)(()=>Xt==null?void 0:Xt(),2e3),style:{width:pn,marginTop:Zn?12:4},className:`${ve.title} ${Xt?"current":""}`},sn),We.createElement("div",{className:Zn?`${ve.tagsWrap} ${ve.tagsBorderWrap}`:ve.tagsWrap},We.createElement("div",{className:ve.bar,ref:Kn,style:bn>0?{height:bn===1?97:"auto",overflow:bn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},We.createElement("div",{className:ve.tag,ref:An},Jn==null?void 0:Jn.map(rr=>We.createElement("span",{onClick:()=>$t(rr.id),key:rr.id,style:{color:Bt},className:zn===rr.id?ve.active:""},We.createElement("span",{title:rr.name,className:ve.name},rr.name),!!un&&We.createElement("span",{className:ve.num},rr.count))))),!!bn&&We.createElement(We.Fragment,null,bn===1?We.createElement("div",{onClick:()=>{var rr;On(2),((rr=An==null?void 0:An.current)==null?void 0:rr.clientHeight)>245?Gt(!0):Gt(!1)},className:ve.action},"\u5C55\u5F00",We.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):We.createElement("div",{onClick:()=>{Kn.current.scrollTop=0,On(1),Gt(!1)},className:ve.action},"\u6536\u8D77",We.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},me={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},fe=({dataSource:Jn=[],value:zn,onChange:$t,className:Xt,style:Tt={}})=>We.createElement("div",{style:Tt,className:Ce()(me.tabs,Xt)},Jn.map(sn=>We.createElement("span",{onClick:()=>$t(sn.id),className:zn===sn.id?me.active:"",key:sn.id},sn.name))),z={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ee=ze(92832),re=({dataSource:Jn=[],value:zn="",onChange:$t,onInputChange:Xt=()=>{},className:Tt,style:sn={},placeholder:pn,allowClear:Yt=!1})=>{var Bt;const[un,bn]=(0,We.useState)(""),[On,Zn]=(0,We.useState)("");(0,We.useEffect)(()=>{var Kn;let rr=zn;(Kn=JSON.stringify(zn))!=null&&Kn.includes("{")&&(bn(zn.id),rr=zn.value||"");try{Zn(decodeURIComponent(rr||""))}catch(xn){Zn(decodeURIComponent(rr||""))}},[zn]);const Gt=()=>{$t(encodeURIComponent(On),un||null)},An=Kn=>{Kn!==un&&(bn(Kn),$t(encodeURIComponent(On),Kn))};return We.createElement("div",{className:Ce()(z.input,Tt),style:sn},!!Jn.length&&We.createElement("div",{className:z.dropdown},We.createElement("div",{className:z.text},(Bt=Jn.find(Kn=>Kn.id===un))==null?void 0:Bt.name,We.createElement("i",{className:"iconfont icon-zhankai4"}),We.createElement("b",{className:z.b1}),We.createElement("b",{className:z.b2})),We.createElement("div",{className:z.menu},Jn.map((Kn,rr)=>We.createElement("div",{key:rr,onClick:()=>An(Kn.id)},Kn.name)))),We.createElement(ee.default,{onPressEnter:Gt,value:On,onChange:Kn=>{Zn(Kn.target.value),Xt(encodeURIComponent(Kn.target.value),un||null)},bordered:!1,placeholder:pn}),We.createElement("i",{onClick:Gt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},le={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},pe=({value:Jn,onChange:zn,className:$t,total:Xt,pageSize:Tt,style:sn={}})=>{const pn=Jn<2,Yt=Jn>=Math.ceil(Xt/Tt);return Xt<=Tt?We.createElement(We.Fragment,null):We.createElement("div",{className:Ce()(le.quickPager,$t),style:sn},We.createElement("div",{onClick:()=>{pn||zn(Jn-1,"prev")},className:pn?le.disabled:""},"\u4E0A\u4E00\u9875"),We.createElement("div",{onClick:()=>{Yt||zn(Jn+1,"next")},className:Yt?le.disabled:""},"\u4E0B\u4E00\u9875"))},Pe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},we=ze(71418),Ne=ze(6848),Ae=ze(13570),Te=ze(3294),Me=ze(955),Be=ze(96908),Re=ze(57177),Qe=ze(81378),He=ze(8797),qe=({className:Jn,dataSource:zn=[],col:$t=4,right:Xt,bottom:Tt=23,precision:sn=0,wrapWidth:pn=1200,trackEventItems:Yt,loading:Bt})=>{const un=Math.floor((pn-($t-1)*Xt)/$t);return We.createElement(we.Z,{spinning:Bt},We.createElement("div",{className:Ce()(Pe.list,Jn)},!!zn.length&&zn.map((bn,On)=>{const{name:Zn,id:Gt,identifier:An,power:Kn,cover_image_id:rr,pic:xn}=bn;return We.createElement("div",{className:Pe.wrap,key:Gt,style:{width:un,marginRight:(1+On)%$t===0?0:Xt+sn,marginBottom:Tt}},We.createElement("a",{target:"_blank",href:`/shixuns/${An}/challenges`,className:Pe.li,onClick:Cn=>{Cn.preventDefault(),Yt&&(0,Me.L9)([Yt]),Kn&&(0,Me.xg)(`/shixuns/${An}/challenges`)}},We.createElement("div",{className:Pe.img},We.createElement("img",{className:Pe.cover,src:`${xn}`}),bn.is_jupyter&&We.createElement("img",{className:Pe.sign,src:Be}),bn.is_jupyter_lab&&We.createElement("img",{className:Pe.sign,src:Re}),bn.is_unity_3d&&We.createElement("img",{className:Pe.sign,src:Qe})),We.createElement("div",{className:Pe.name},We.createElement(Ne.Z,{title:Zn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},We.createElement("span",{className:Pe.e},Zn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),We.createElement("div",{className:Pe.tags},We.createElement(Ne.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),We.createElement("span",null,bn.challenges_count))),!!bn.myshixuns_count&&We.createElement(Ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),We.createElement("span",null,bn.myshixuns_count))),We.createElement(Ne.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},We.createElement("span",null,We.createElement("span",null,bn.level))),We.createElement("div",{className:Pe.rate},We.createElement(Ae.Z,{allowHalf:!0,disabled:!0,defaultValue:bn.score_info}),We.createElement("span",null,"\xA0",bn.score_info?`${bn.score_info}\u5206`:"5\u5206")))),!Kn&&We.createElement("div",{className:Pe.lockWrap},We.createElement("img",{src:`${Te.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),We.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!zn.length&&We.createElement(He.Z,null)))},ut={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},ct=ze(24065),yt=ze(59301),st=({className:Jn,dataSource:zn=[],col:$t=4,right:Xt,bottom:Tt=23,precision:sn=0,wrapWidth:pn=1200,trackEventItems:Yt,loading:Bt,onRemove:un=()=>{},isCurrent:bn=!0,showAlias:On=!1})=>{const Zn=Math.floor((pn-($t-1)*Xt)/$t),Gt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return yt.createElement(we.Z,{spinning:Bt},yt.createElement("div",{className:Ce()(ut.list,Jn)},!!(zn!=null&&zn.length)&&(zn==null?void 0:zn.map((An,Kn)=>{var rr;const{name:xn,id:Cn,identifier:tn,featured:gn,school_name:yn,image_url:vn,excellent:Ln,is_plan:Fn}=An;return yt.createElement("div",{key:Cn,className:ut.wrap,style:{width:Zn,marginRight:(1+Kn)%$t===0?0:Xt+sn,marginBottom:Tt}},yt.createElement("a",{className:ut.li,onClick:Gn=>{Gn.preventDefault(),Gn.stopPropagation(),Yt&&(0,Me.L9)([Yt]),(0,Me.xg)(`/paths/${tn}`)}},yt.createElement("div",{className:ut.img},yt.createElement("img",{className:ut.cover,src:`${vn}`}),bn&&(0,ct.bg)()&&(An==null?void 0:An.studying)&&yt.createElement("div",{className:`${ut.movebq} user-path-items`,onClick:Gn=>{Gn.stopPropagation(),un(An)}},yt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),yt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(rr=An==null?void 0:An.subject_tags)==null?void 0:rr.map((Gn,Hn)=>{var gr,dn;if(Hn===0){const zr=(gr=Gt.find(Qr=>Qr.name==Gn))==null?void 0:gr.swimg;return yt.createElement("img",{className:ut.sign,src:zr,style:{left:"-4px"}})}const Dr=(dn=Gt.find(zr=>zr.name==Gn))==null?void 0:dn.ptimg;return yt.createElement("img",{className:ut.sign,src:Dr,style:{left:`${48+52*(Hn-1)+2*Hn}px`}})}),yt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(An==null?void 0:An.excellent)&&yt.createElement("div",{className:ut.bq},"\u5F00\u653E\u8BFE\u7A0B"))),yt.createElement("div",{className:ut.name},yt.createElement(Ne.Z,{title:On&&(An!=null&&An.excellent_alias_name)?yt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${xn}`,yt.createElement("br",null),yt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${An==null?void 0:An.excellent_alias_name}`)):xn},yt.createElement("span",{className:ut.e},On&&(An==null?void 0:An.excellent_alias_name)||xn))),yt.createElement(Ne.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${yn}`},yt.createElement("div",{className:ut.unit},yt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),yn)),yt.createElement("div",{className:ut.tags},yt.createElement("div",null,yt.createElement(Ne.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),yt.createElement("span",null,An.stages_count))),yt.createElement(Ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),yt.createElement("span",null,An.members_count)))))))})),!zn.length&&yt.createElement(He.Z,null)))},pt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CA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kxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",wt=ze(59301),vt=({className:Jn,dataSource:zn=[],col:$t=4,right:Xt,bottom:Tt=23,precision:sn=0,wrapWidth:pn=1200,trackEventItems:Yt,loading:Bt,handleVery:un=()=>!0})=>{const bn=Math.floor((pn-($t-1)*Xt)/$t);return wt.createElement(we.Z,{spinning:Bt},wt.createElement("div",{className:Ce()(pt.list,Jn)},!!zn.length&&zn.map((On,Zn)=>{const{subject_identifier:Gt,id:An,identifier:Kn,power:rr}=On,xn=On.is_public!=0&&On.is_public;return wt.createElement("div",{className:pt.wrap,key:An,style:{width:bn,marginRight:(1+Zn)%$t===0?0:Xt+sn,marginBottom:Tt}},wt.createElement("a",{className:pt.li,onClick:Cn=>{Cn.preventDefault(),un(On==null?void 0:On.first_category_url)&&(Yt&&(0,Me.L9)([Yt]),(0,Me.xg)(On.first_category_url))}},wt.createElement("div",{className:pt.top},wt.createElement(Ne.Z,{title:On.name},wt.createElement("div",{className:pt.name},On.name)),wt.createElement("img",{className:pt.img,src:Te.Z.IMG_SERVER+"/images/"+On.avatar_url}),wt.createElement("div",{className:pt.text,title:On.creator},On.creator),Gt&&wt.createElement("div",{className:pt.btns},wt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),wt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),xn&&wt.createElement("div",{className:pt.sign},"\u516C\u5F00")),wt.createElement("div",{className:pt.bottom},On.visits>0&&wt.createElement(Ne.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-liulanyan"}),wt.createElement("span",null,On.visits))),On.course_members_count>0&&wt.createElement(Ne.Z,{title:"\u6210\u5458",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-chengyuan"}),On.course_members_count)),On.tasks_count>0&&wt.createElement(Ne.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-zuoye"}),On.tasks_count)),On.is_end?wt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):wt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!On.is_accessible&&wt.createElement("div",{className:pt.lockWrap},wt.createElement("img",{src:`${Te.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),wt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!zn.length&&wt.createElement(He.Z,null)))},St={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Nt=ze(89070),Kt=({dataSource:Jn=[],value:zn,onChange:$t,className:Xt,style:Tt={},tabBarExtraContent:sn})=>We.createElement("div",{className:Ce()(St.tabs,Xt),style:Tt},We.createElement("div",{className:St.tabsWrap},Jn.map((pn,Yt)=>!(pn!=null&&pn.hide)&&We.createElement("aside",{className:St.tab,onClick:()=>{$t(pn.id),pn.link&&Nt.history.push(pn.link)},key:Yt},We.createElement("div",{className:zn===pn.id?St.active:""},pn.name),(pn==null?void 0:pn.resetCount)==null&&(pn==null?void 0:pn.total)!==void 0&&We.createElement("span",null,"\uFF08",pn==null?void 0:pn.total,"\uFF09"),(pn==null?void 0:pn.resetCount)!==void 0&&(pn==null?void 0:pn.total)!==void 0&&We.createElement(Ne.Z,{title:(pn==null?void 0:pn.tip)!=null?pn==null?void 0:pn.tip:""},We.createElement("span",{style:{color:"#9096A3"}},"\uFF08",We.createElement("span",{style:{color:"#000"}},pn==null?void 0:pn.resetCount),"/",We.createElement("span",null,pn==null?void 0:pn.total),"\uFF09"))))),We.createElement("div",{className:St.tabBar},sn)),Et=({className:Jn,style:zn={},children:$t})=>We.createElement("div",{className:Ce()(Jn),style:zn},$t),at={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Ct=ze(38854),nt=ze(20834);const ht=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var gt=({sortValue:Jn,dropValue:zn,className:$t,onSort:Xt,onDrop:Tt,dataSource:sn=ht})=>{var pn;return We.createElement("div",{className:Ce()(at.orderWrap,$t)},We.createElement(Ct.Z,{dropdownRender:()=>We.createElement(nt.default,null,sn.map((Yt,Bt)=>We.createElement(nt.default.Item,{key:Bt,onClick:()=>Tt(Yt.id)},Yt.name)))},We.createElement("span",{className:at.orderTextWrap},(pn=sn.find(Yt=>zn===Yt.id))==null?void 0:pn.name)),We.createElement("span",{className:at.orderIconWrap},We.createElement("span",{className:at.orderAsc},We.createElement("i",{className:Jn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${at.cursorPointer} ${at.active}`:`iconfont icon-sanjiaoxing-up font12 ${at.cursorPointer}`,onClick:()=>Xt(Jn==="asc"?"desc":"asc")})),We.createElement("span",{className:at.orderDesc},We.createElement("i",{className:Jn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${at.cursorPointer} ${at.active}`:`iconfont icon-sanjiaoxing-down font12 ${at.cursorPointer}`,onClick:()=>Xt(Jn==="asc"?"desc":"asc")}))))},rt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Je=ze(3113),Xe=Object.defineProperty,Ve=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,je=(Jn,zn,$t)=>zn in Jn?Xe(Jn,zn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Jn[zn]=$t,De=(Jn,zn)=>{for(var $t in zn||(zn={}))tt.call(zn,$t)&&je(Jn,$t,zn[$t]);if(Ve)for(var $t of Ve(zn))Ze.call(zn,$t)&&je(Jn,$t,zn[$t]);return Jn},Ye=(Jn,zn)=>{var $t={};for(var Xt in Jn)tt.call(Jn,Xt)&&zn.indexOf(Xt)<0&&($t[Xt]=Jn[Xt]);if(Jn!=null&&Ve)for(var Xt of Ve(Jn))zn.indexOf(Xt)<0&&Ze.call(Jn,Xt)&&($t[Xt]=Jn[Xt]);return $t},dt=(Jn,zn,$t)=>new Promise((Xt,Tt)=>{var sn=Bt=>{try{Yt($t.next(Bt))}catch(un){Tt(un)}},pn=Bt=>{try{Yt($t.throw(Bt))}catch(un){Tt(un)}},Yt=Bt=>Bt.done?Xt(Bt.value):Promise.resolve(Bt.value).then(sn,pn);Yt(($t=$t.apply(Jn,zn)).next())}),At=Jn=>{var zn=Jn,{className:$t,style:Xt,children:Tt,loading:sn=!1,openLoading:pn,onClick:Yt=()=>{},size:Bt="middle",shape:un="round"}=zn,bn=Ye(zn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[On,Zn]=(0,We.useState)(!1);return We.createElement(Je.ZP,De({onClick:(0,Ee.throttle)(Gt=>dt(void 0,null,function*(){pn&&Zn(!0);try{yield Yt(Gt)}catch(An){console.log("error",An)}pn&&Zn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ce()(rt.btn,rt[`${Bt}-${un}`],$t),style:Xt,size:Bt,shape:un,loading:On||sn},bn),Tt)},zt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Ot=({className:Jn,style:zn,children:$t=null,onClick:Xt,title:Tt})=>We.createElement("div",{className:Ce()(zt.head,Jn),style:zn},We.createElement("span",{className:"primary-hover",onClick:Xt},We.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),We.createElement("b",{title:Tt},Tt),We.createElement("div",{className:zt.node},$t)),Vt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},on=({confirmShow:Jn=!0,confirmTitle:zn,confirmClick:$t,cancelShow:Xt=!0,cancelTitle:Tt,cancelClick:sn,className:pn,style:Yt,confirmLoading:Bt=!1})=>We.createElement("div",{className:Ce()(Vt.btns,pn),style:Yt},Jn&&We.createElement(Je.ZP,{loading:Bt,onClick:$t,type:"primary",className:Vt.confirm},zn),Xt&&We.createElement(Je.ZP,{onClick:sn,className:Vt.cancel},Tt)),fn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},er=({className:Jn,style:zn={},LeftContent:$t,children:Xt,RightContent:Tt})=>We.createElement("div",{className:Ce()(fn.fixedBottom,Jn),style:zn},We.createElement("div",{className:fn.wrap},We.createElement("div",{className:fn.left},$t),We.createElement("div",{className:fn.center},Xt),We.createElement("div",{className:fn.right},Tt))),tr={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Tr=({className:Jn,style:zn={},dataSource:$t=[]})=>We.createElement("div",{className:Ce()(tr.crumbs,Jn),style:zn},$t.map((Xt,Tt)=>Tt<$t.length-1?We.createElement(We.Fragment,{key:Tt},Xt.path||Xt.onClick?We.createElement("span",{className:tr.hover,onClick:Xt!=null&&Xt.onClick?Xt.onClick:()=>Nt.history.push(Xt.path)},Xt.name):We.createElement("span",null,Xt.name),We.createElement("span",null,"\xA0",">","\xA0")):We.createElement("span",{key:Tt,style:{color:"#5F6368"}},Xt.name))),Lr=ze(31797),Ar=Object.defineProperty,Gr=Object.defineProperties,Kr=Object.getOwnPropertyDescriptors,Mr=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable,it=(Jn,zn,$t)=>zn in Jn?Ar(Jn,zn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Jn[zn]=$t,bi=(Jn,zn)=>{for(var $t in zn||(zn={}))fi.call(zn,$t)&&it(Jn,$t,zn[$t]);if(Mr)for(var $t of Mr(zn))Jr.call(zn,$t)&&it(Jn,$t,zn[$t]);return Jn},mi=(Jn,zn)=>Gr(Jn,Kr(zn)),Tn=(Jn,zn)=>{var $t={};for(var Xt in Jn)fi.call(Jn,Xt)&&zn.indexOf(Xt)<0&&($t[Xt]=Jn[Xt]);if(Jn!=null&&Mr)for(var Xt of Mr(Jn))zn.indexOf(Xt)<0&&Jr.call(Jn,Xt)&&($t[Xt]=Jn[Xt]);return $t};const{Countdown:dr}=Lr.default;var vr=Jn=>{var zn=Jn,{onChange:$t}=zn,Xt=Tn(zn,["onChange"]);const[Tt,sn]=(0,We.useState)(null);(0,We.useEffect)(()=>{typeof Tt=="number"&&Tt>=0&&$t(Tt)},[Tt]);const pn=Yt=>{const Bt=Math.floor(Yt/1e3);sn(Bt)};return We.createElement(dr,mi(bi({},Xt),{onChange:pn}))}},58856:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return xt}});var We=ze(59301);function xt(oe,Ue){const Oe=(0,We.useRef)();(0,We.useEffect)(()=>{Oe.current=oe}),(0,We.useEffect)(()=>{function ve(){Oe.current()}if(Ue!==null){let ce=setInterval(ve,Ue);return()=>clearInterval(ce)}},[Ue])}},53926:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ye}});var We=ze(59301),xt=ze(89070),oe=ze(93678),Ue=ze(6848),Oe=ze(1710),ve=ze(95237),ce=ze(43604),Ce=ze(52721),Ee=ze(3294),ye=ze(6021),be=(dt,Ke,At)=>new Promise((zt,_t)=>{var Ot=on=>{try{en(At.next(on))}catch(fn){_t(fn)}},Vt=on=>{try{en(At.throw(on))}catch(fn){_t(fn)}},en=on=>on.done?zt(on.value):Promise.resolve(on.value).then(Ot,Vt);en((At=At.apply(dt,Ke)).next())});function me({Prize:dt}){var Ke,At,zt,_t,Ot,Vt,en;const on=(0,xt.useParams)(),[fn,jn]=(0,We.useState)([{type:1,name:"\u56E2\u4F53\u5956\u8BC1\u4E66"},{type:2,name:"\u4E2A\u4EBA\u5956\u8BC1\u4E66"},{type:3,name:"\u4F18\u79C0\u6307\u5BFC\u6559\u5E08\u8BC1\u4E66"}]),er=ur=>be(this,null,function*(){const Tr=yield(0,Ce.Ju)({type:ur.type,id:on.identifier});(Tr==null?void 0:Tr.status)===0&&(location.href=`/competitions/exports?id=${on.identifier}&type=${ur.type}`)}),tr=[{title:"\u89D2\u8272",dataIndex:"role",align:"center",width:80,render:ur=>We.createElement(Ue.Z,{placement:"topLeft",title:ur},ur||"--")},{title:"\u59D3\u540D",dataIndex:"name",width:100,render:ur=>We.createElement(Ue.Z,{placement:"topLeft",title:ur},ur||"--")},{title:"\u5B9E\u540D\u8BA4\u8BC1",width:100,dataIndex:"real_name_auth",render:ur=>ur==="authed"?"\u5DF2\u8BA4\u8BC1":ur==="authing"?"\u5F85\u5BA1\u6838":"\u672A\u8BA4\u8BC1"},{title:"\u804C\u4E1A\u8BA4\u8BC1",width:100,dataIndex:"professional_auth",render:ur=>ur==="authed"?"\u5DF2\u8BA4\u8BC1":ur==="authing"?"\u5F85\u5BA1\u6838":"\u672A\u8BA4\u8BC1"},{title:"\u624B\u673A\u53F7",dataIndex:"phone_binded",width:100,render:ur=>ur?"\u5DF2\u7ED1\u5B9A":"\u672A\u7ED1\u5B9A"},{title:"\u90AE\u7BB1\u53F7",dataIndex:"email_binded",width:100,render:ur=>ur?"\u5DF2\u7ED1\u5B9A":"\u672A\u7ED1\u5B9A"},{title:"\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7\u4FE1\u606F\uFF08\u961F\u957F\u586B\u5199\uFF09",dataIndex:"role",align:"center",render:(ur,Tr)=>{var Lr,Ar,Gr,Kr,Mr,fi;return(Tr==null?void 0:Tr.role)==="\u961F\u957F"?We.createElement("span",{style:{width:"50%",textAlign:"center"}},(dt==null?void 0:dt.teams)&&((Ar=(Lr=dt==null?void 0:dt.teams[0])==null?void 0:Lr.bank_account)==null?void 0:Ar.bank),(dt==null?void 0:dt.teams)&&((Kr=(Gr=dt==null?void 0:dt.teams[0])==null?void 0:Gr.bank_account)==null?void 0:Kr.second_bank),(dt==null?void 0:dt.teams)&&((fi=(Mr=dt==null?void 0:dt.teams[0])==null?void 0:Mr.bank_account)==null?void 0:fi.card_no)):"--"}}];return We.createElement("div",null,We.createElement("p",{className:oe.Z.downloadpdf},"\u6E29\u99A8\u63D0\u793A\uFF1A\u586B\u5199\u7684\u4E2A\u4EBA\u4FE1\u606F\u7ECF\u5BA1\u6279\u540E\uFF0C\u5C06\u63D0\u4F9B\u4E2A\u4EBA\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D\uFF1B\u56E2\u961F\u961F\u5458\u4FE1\u606F\u5168\u90E8\u5BA1\u6279\u540E\uFF0C\u5C06\u63D0\u4F9B\u56E2\u961F\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D\u3002"),We.createElement("p",{style:{marginTop:"30px",fontSize:"14px",color:"#232B40",fontWeight:"600"}},"\u8BC1\u4E66\u60C5\u51B5"),((Ke=dt==null?void 0:dt.personal_certifications)==null?void 0:Ke.length)>0?We.createElement("p",null,We.createElement("span",null,"\u4E2A\u4EBA\u8BC1\u4E66\uFF1A"),We.createElement("img",{src:Ee.Z.IMG_SERVER+"/images/educoder/pdfs.png"}),We.createElement("a",{style:{marginLeft:"5px"},href:Ee.Z.API_SERVER+`${(At=dt==null?void 0:dt.personal_certifications[0])==null?void 0:At.url}`},"\u7ACB\u5373\u4E0B\u8F7D")):We.createElement("p",null,We.createElement("span",null,"\u4E2A\u4EBA\u8BC1\u4E66\uFF1A",We.createElement("span",{style:{color:"#000"}},"\u6682\u672A\u751F\u6210")),We.createElement("span",{className:"c-red",style:{marginLeft:"20px"}},"\u539F\u56E0\uFF1A\u7EC4\u59D4\u4F1A\u672A\u5B8C\u6210\u8BC1\u4E66\u5BA1\u6279\uFF0C\u8BF7\u7A0D\u540E")),((zt=dt==null?void 0:dt.team_certifications)==null?void 0:zt.length)>0?We.createElement("p",null,We.createElement("span",null,"\u56E2\u961F\u8BC1\u4E66\uFF1A"),We.createElement("img",{src:Ee.Z.IMG_SERVER+"/images/educoder/pdfs.png"}),We.createElement("a",{style:{marginLeft:"5px"},href:Ee.Z.API_SERVER+`${(_t=dt==null?void 0:dt.team_certifications[0])==null?void 0:_t.url}`},"\u7ACB\u5373\u4E0B\u8F7D")):We.createElement("p",null,We.createElement("span",null,"\u56E2\u961F\u8BC1\u4E66\uFF1A",We.createElement("span",{style:{color:"#000"}},"\u6682\u672A\u751F\u6210"))),((Ot=dt==null?void 0:dt.teams)==null?void 0:Ot.length)>0&&We.createElement(We.Fragment,null,We.createElement("p",null,(dt==null?void 0:dt.teams)&&((Vt=dt==null?void 0:dt.teams[0])==null?void 0:Vt.name),"\u6218\u961F\u4FE1\u606F\u586B\u62A5\u6982\u51B5"),We.createElement(Oe.default,{columns:tr,dataSource:(en=dt==null?void 0:dt.teams[0])==null?void 0:en.team_members,pagination:!1})),We.createElement(ve.Z,{style:{marginTop:"20px"},gutter:[20,20]},fn.map(function(ur,Tr){return We.createElement(ce.Z,{key:Tr},We.createElement(ye.Z,{icon:We.createElement("i",{className:"iconfont icon-xiazai5",style:{marginRight:"6px"}}),className:oe.Z.pdfBut,onClick:()=>be(this,null,function*(){return yield er(ur)})},ur.name))})))}var xe=me,fe=ze(54580),z=ze(78241),ee=ze(8591),ae=ze(43418),re=ze(71418),le=ze(92832),ue=ze(5112),pe=ze(3113),Pe=ze(955),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAABgCAYAAADo6BsvAAAgAElEQVR4Xmy9CZheaVUu+u75n+uvKTVlqHSSTtLpeQS6G20QFRA8DTgdBccDCCUi0csgiCB4xIug0DTgeS4O96r4eBAUkJluhp479JCeMnRSGSuVmv/6pz3f513r25XS54QndJKq2v/e317fWu9617vWZwFwtmzbNv1zr37NG9428/Zf2b1nesKygDRDHqU58jyH59rIcyCOM8CyEPgWbJvfk8O25J9gyf+ALMmRA7Ad/bcMQJjliHLAzgHfsuA4AL8rzQBeMuM3gdey4NqAZ/Nv8k/yuVmunyH/xH/j91vQz+bXzPc4NmAjh2Wb782AlPdim/uT++TP53KfSZLCcSw4rtysXl/uOYft8O5zpGkOO7dg8cNSfhhXzEKWpHJ/tuvAcvRnszyXZ0myDGmSyrfalg3LsuRrv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ncMWzfO9+kI22pezDnGahmjTfKhsQfKdeO8saeRejSSkQWQZUVj5xt6WQheYeOs69LrClVhYFSpDlAdQPVISBbjkg1jIue4QaBMt1JysrKszQIxe7D497k413tmUtCowqSCCGNiYPLBYa2YiESQEDIojGrYOBv8/PxehEDVSlmUwLp26aZrx07VPByozUIYGU8GE/gWKUrmf66UcFxUWhI0NdEOfm/pG1//11+98tr2h/kJVnZ2zvjEZ++557pbbv/0/N7evqCOULbcAUvrxg1xEG8ZxNpU3+Ye/CU2uuBYxODdRnwx5r1lSNZcCg4viSDRYWdoxvmZVMpZn3CgaJ2anwUaq9COJ9OT5s2Tmq+yrBKpKwMkuKMnksSTOmJRWqoHhXjlUcDWn+2ttNtcp8n6R8UAVQK87CxHJ7RVZwaVXaPjFJDpz2vhmGiy2lQGMc9YG5tYTSZpfGZ+qTcxqGzs4vfTNuw2fKkU1xlwzJr8WdbA3A037IGRhaaDpDPQVMJwrENIFztYLdGdLAeDjZ9TlMe6HccsZVgfhoOEeyPu9OzKJLtUeJoEBEzlmJiBK8tzNiCakwLVIh9i4vlCiEfIdyECmAI9fA4IKG2gXmY3zc9tFSn3qeMnJxuPPPJv7//LP//jd6YmJn76P8ED9U58gLSYAAAAAElFTkSuQmCC",Ne=ze(56615),Ae=Object.defineProperty,Te=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,He=(dt,Ke,At)=>Ke in dt?Ae(dt,Ke,{enumerable:!0,configurable:!0,writable:!0,value:At}):dt[Ke]=At,$e=(dt,Ke)=>{for(var At in Ke||(Ke={}))Re.call(Ke,At)&&He(dt,At,Ke[At]);if(Be)for(var At of Be(Ke))Qe.call(Ke,At)&&He(dt,At,Ke[At]);return dt},qe=(dt,Ke)=>Te(dt,Me(Ke)),ut=(dt,Ke)=>{var At={};for(var zt in dt)Re.call(dt,zt)&&Ke.indexOf(zt)<0&&(At[zt]=dt[zt]);if(dt!=null&&Be)for(var zt of Be(dt))Ke.indexOf(zt)<0&&Qe.call(dt,zt)&&(At[zt]=dt[zt]);return At},ct=(dt,Ke,At)=>new Promise((zt,_t)=>{var Ot=on=>{try{en(At.next(on))}catch(fn){_t(fn)}},Vt=on=>{try{en(At.throw(on))}catch(fn){_t(fn)}},en=on=>on.done?zt(on.value):Promise.resolve(on.value).then(Ot,Vt);en((At=At.apply(dt,Ke)).next())});const yt=fe.default.Dragger,_e=10,st=dt=>{var Ke=dt,{user:At,account:zt,globalSetting:_t,loading:Ot,dispatch:Vt}=Ke,en=ut(Ke,["user","account","globalSetting","loading","dispatch"]);const[on]=z.default.useForm(),[fn,jn]=(0,We.useState)({}),[er,tr]=(0,We.useState)(!0),[ur,Tr]=(0,We.useState)(),[Lr,Ar]=(0,We.useState)(),[Gr,Kr]=(0,We.useState)(),[Mr,fi]=(0,We.useState)();(0,We.useEffect)(()=>{if(!zt.basicInfo)return;const{basicInfo:ar}=zt,vr={name:ar.show_realname?ar.name:(0,Pe.YA)(ar.name),gender:ar.gender};Tr(ar.name),tr(ar.show_realname),on.setFieldsValue(vr),jn(vr)},[zt.basicInfo]);const Jr=ar=>{var vr;if(ar.file.status==="uploading"){fi(!0);return}ar.file.status==="done"&&(console.log(ar.file,ar.file.response),Kr((vr=ar.file.response)==null?void 0:vr.id),(0,Pe.y3)(ar.file.originFileObj,Jn=>{Ar(Jn),fi(!1)}))},it=ar=>{jn($e({},on.getFieldsValue())),"name"in ar&&Tr(ar.name)},bi=()=>{const ar=!er;tr(ar);const vr=ar?ur:(0,Pe.YA)(ur);on.setFieldsValue({name:vr})},mi=ar=>ct(void 0,null,function*(){var vr,Jn,zn;const{name:$t,gender:Xt,idNumber:Tt}=ar||{};if(!Lr){ee.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01");return}const sn=yield Vt({type:"account/applyRealNameAuth",payload:{id:((vr=zt.basicInfo)==null?void 0:vr.id)||((Jn=At.userInfo)==null?void 0:Jn.login),name:$t,gender:Xt,id_number:Tt,show_realname:er,attachment_ids:[Gr]}});Tn(),sn&&(ee.ZP.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Vt({type:"account/getBasicInfo",payload:{login:(zn=At.userInfo)==null?void 0:zn.login}}))}),Tn=()=>{Vt({type:"account/setActionTabs",payload:{}})},dr={data:{type:"real_name"},multiple:!0,showUploadList:!1,action:`${Ee.Z.API_SERVER}/api/attachments.json`,className:Ne.Z.uploader,onChange:Jr,beforeUpload:ar=>{const vr=ar.type==="image/jpeg"||ar.type==="image/png"||ar.type==="image/jpg"||ar.type==="image/bmp";return vr||ee.ZP.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),vr}};return We.createElement(ae.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:zt.actionTabs.key==="Account-RealNameAuth",title:"\u4FEE\u6539\u5B9E\u540D\u4FE1\u606F",width:"600px",footer:null},We.createElement(re.Z,{spinning:!!Mr},We.createElement(z.default,{className:Ne.Z.formWrap,form:on,layout:"horizontal",onValuesChange:it,onFinish:mi},We.createElement(z.default.Item,{label:"\u59D3\u540D",name:"name",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:`\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236${_e}\u4E2A\u5B57\u7B26`},{validator:Pe.HJ}],extra:We.createElement("span",null,er?"\uFF08\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09":"\uFF08\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0\uFF09")},We.createElement(le.default,{disabled:!er,placeholder:`\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236${_e}\u4E2A\u5B57\u7B26`,maxLength:_e,addonAfter:We.createElement("i",{className:`iconfont ${er?"icon-xianshi":"icon-yincang"} font18 ${Ne.Z.color0152d9}`,onClick:bi})})),We.createElement(z.default.Item,{label:"\u6027\u522B\uFF1A",name:"gender",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},We.createElement(ue.ZP.Group,null,We.createElement(ue.ZP,{value:0},"\u7537"),We.createElement(ue.ZP,{value:1},"\u5973"))),We.createElement(z.default.Item,{label:"\u8BC1\u4EF6\u53F7\uFF1A",labelCol:{span:3},name:"idNumber",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"}]},We.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"})),We.createElement(z.default.Item,{label:"\u8EAB\u4EFD\u8BC1\u4E0A\u4F20",labelCol:{span:3}},We.createElement("div",{className:Ne.Z.flexRow},We.createElement("div",{className:`${Ne.Z.flexColumn} ${Ne.Z.example}`},We.createElement("span",{className:Ne.Z.exampleImg},We.createElement("img",{src:we})),We.createElement("span",{className:"tc"},We.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),We.createElement("p",{className:`${Ne.Z.colorOrange} font12`},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),We.createElement("div",{className:Ne.Z.flexColumn},We.createElement(yt,qe($e({},dr),{accept:".png,.jpg,.bmp,.jpeg"}),Lr?We.createElement("img",{src:Lr,className:Ne.Z.uploadImg}):We.createElement("div",{className:Ne.Z.imageTip},We.createElement("p",null,We.createElement("i",{className:`iconfont icon-cuban2shangchuanyunduan ${Ne.Z.uploadTipIcon}`})),We.createElement("p",{className:Ne.Z.uploadTip},We.createElement("a",{className:Ne.Z.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),We.createElement("span",{className:"tc"},We.createElement("p",{className:Ne.Z.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),We.createElement("div",{className:Ne.Z.footerWrap},We.createElement(z.default.Item,null,We.createElement(pe.ZP,{className:"mr5",size:"middle",onClick:Tn},"\u53D6\u6D88"),We.createElement(pe.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Ot["account/applyRealNameAuth"]},"\u4FDD\u5B58"))),We.createElement("div",{className:Ne.Z.note},We.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),We.createElement("p",null,"1.\u4F60\u9700\u8981\u51C6\u5907\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u6B63\u9762\uFF08\u4EBA\u50CF\u9762\uFF09\u7684\u8BC1\u4EF6\u7167\u7167\u7247\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u7247\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),We.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),We.createElement("p",null,"3.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B"),We.createElement("p",null,"4.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),We.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),We.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u8BC1\u4EF6\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u5B9E\u540D\u8BA4\u8BC1\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3EduCoder\u8D26\u53F7\u3002"),We.createElement("p",null,"7.\u63D0\u4EA4\u5B9E\u540D\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))))};var pt=(0,xt.connect)(({user:dt,account:Ke,loading:At,globalSetting:zt})=>({user:dt,account:Ke,globalSetting:zt,loading:At.effects}))(st),bt=ze(78110),wt=ze(93735),mt=ze.n(wt),vt=(dt,Ke,At)=>new Promise((zt,_t)=>{var Ot=on=>{try{en(At.next(on))}catch(fn){_t(fn)}},Vt=on=>{try{en(At.throw(on))}catch(fn){_t(fn)}},en=on=>on.done?zt(on.value):Promise.resolve(on.value).then(Ot,Vt);en((At=At.apply(dt,Ke)).next())});function St({type:dt,dispatch:Ke,userid:At,isshow:zt,setPhoneshow:_t,setEmailshow:Ot}){const Vt="79e33abd4b6588941ab7622aed1e67e8",[en,on]=(0,We.useState)(""),[fn,jn]=(0,We.useState)("\u83B7\u53D6\u9A8C\u8BC1\u7801");let[er,tr]=(0,We.useState)(60);const[ur,Tr]=(0,We.useState)(!1),[Lr,Ar]=(0,We.useState)("");function Gr(){return vt(this,null,function*(){if(!en){dt===3?ee.ZP.info("\u624B\u673A\u53F7\u4E0D\u80FD\u4E3A\u7A7A"):ee.ZP.info("\u90AE\u7BB1\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Ke({type:"competitions/getVerification",payload:{type:dt,login:en,smscode:mt()(Vt+en)}})).status===1&&(ee.ZP.info("\u83B7\u53D6\u9A8C\u8BC1\u7801\u6210\u529F"),Kr(),Tr(!0))})}function Kr(){tr(60);let Jr=setInterval(()=>{--er,er>-1?tr(er):(clearInterval(Jr),Tr(!1))},1e3)}function Mr(){return vt(this,null,function*(){(yield Ke({type:"competitions/PhoneBind",payload:{userid:At,code:Lr,phone:en}})).status===0&&(ee.ZP.info("\u7ED1\u5B9A\u6210\u529F"),_t("none"))})}function fi(){return vt(this,null,function*(){(yield Ke({type:"competitions/EmailBind",payload:{userid:At,code:Lr,email:en}})).status===0&&(ee.ZP.info("\u7ED1\u5B9A\u6210\u529F"),Ot("none"))})}return We.createElement("div",{style:{display:zt}},We.createElement("p",null,We.createElement(le.default,{value:en,onChange:Jr=>on(Jr.target.value),placeholder:dt===3?"\u8BF7\u8F93\u5165\u624B\u673A\u53F7":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740",style:{width:"370px"}})),We.createElement("span",null,We.createElement(le.default,{value:Lr,onChange:Jr=>Ar(Jr.target.value),placeholder:dt===3?"\u8BF7\u8F93\u5165\u624B\u673A\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801",style:{width:"250px"}}))," ",We.createElement(pe.ZP,{disabled:ur,onClick:()=>Gr(),type:"primary",style:{marginLeft:"20px",width:"100px"}},ur?`\u91CD\u65B0\u53D1\u9001${er}s`:fn),We.createElement("p",{style:{marginTop:"30px",width:"370px",textAlign:"center"}},We.createElement(pe.ZP,{type:"primary",style:{marginRight:"15px"},onClick:()=>{if(!Lr){ee.ZP.info("\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}dt===3?Mr():fi()}},"\u786E\u8BA4"),We.createElement(pe.ZP,{style:{marginLeft:"20px"},onClick:()=>{dt===3?_t("none"):Ot("none")}},"\u53D6\u6D88")))}var Nt=St,Ft=Object.defineProperty,Kt=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,nt=(dt,Ke,At)=>Ke in dt?Ft(dt,Ke,{enumerable:!0,configurable:!0,writable:!0,value:At}):dt[Ke]=At,ht=(dt,Ke)=>{for(var At in Ke||(Ke={}))at.call(Ke,At)&&nt(dt,At,Ke[At]);if(Et)for(var At of Et(Ke))Ct.call(Ke,At)&&nt(dt,At,Ke[At]);return dt},Mt=(dt,Ke)=>Kt(dt,Pt(Ke)),gt=(dt,Ke,At)=>new Promise((zt,_t)=>{var Ot=on=>{try{en(At.next(on))}catch(fn){_t(fn)}},Vt=on=>{try{en(At.throw(on))}catch(fn){_t(fn)}},en=on=>on.done?zt(on.value):Promise.resolve(on.value).then(Ot,Vt);en((At=At.apply(dt,Ke)).next())});function rt({dispatch:dt,userid:Ke}){const At={wrapperCol:{offset:3,span:21}},[zt]=z.default.useForm(),{identifier:_t}=(0,xt.useParams)();return We.createElement("div",{style:{width:"500px"}},We.createElement(z.default,{form:zt,name:"basic"},We.createElement(z.default.Item,Mt(ht({},At),{label:We.createElement("div",{style:{width:"30px"}},"\u5F00\u6237\u884C"),name:"bank",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F00\u6237\u884C"}]}),We.createElement(le.default,null)),We.createElement(z.default.Item,Mt(ht({},At),{label:We.createElement("div",{style:{width:"30px"}},"\u652F\u884C"),name:"second_bank",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u652F\u884C"}]}),We.createElement(le.default,null)),We.createElement(z.default.Item,Mt(ht({},At),{label:We.createElement("div",{style:{width:"30px"}},"\u8D26\u53F7"),name:"card_no",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D26\u53F7"}]}),We.createElement(le.default,null)),We.createElement(z.default.Item,null,We.createElement(pe.ZP,{type:"primary",htmlType:"submit",onClick:()=>gt(this,null,function*(){zt.validateFields().then(Ot=>gt(this,null,function*(){(yield dt({type:"competitions/setleader",payload:ht({identifier:_t,user_id:Ke},Ot)})).status===0&&ee.ZP.info("\u63D0\u4EA4\u6210\u529F")}))})},"\u63D0\u4EA4"))))}var Je=rt,Xe=(dt,Ke,At)=>new Promise((zt,_t)=>{var Ot=on=>{try{en(At.next(on))}catch(fn){_t(fn)}},Vt=on=>{try{en(At.throw(on))}catch(fn){_t(fn)}},en=on=>on.done?zt(on.value):Promise.resolve(on.value).then(Ot,Vt);en((At=At.apply(dt,Ke)).next())});const Ve={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"};function tt({Prize:dt,Accounts:Ke,dispatch:At,userid:zt}){var _t,Ot,Vt,en,on,fn,jn,er;const[tr,ur]=(0,We.useState)("none"),[Tr,Lr]=(0,We.useState)("none");function Ar(Gr){return Xe(this,null,function*(){let Kr;Gr==="1"?Kr=yield At({type:"competitions/Authentication"}):Kr=yield At({type:"competitions/Professional"}),Kr.status===0&&ee.ZP.info("\u64A4\u9500\u6210\u529F")})}return We.createElement("div",null,We.createElement(ve.Z,{align:"middle"},We.createElement(ce.Z,null,We.createElement("span",{className:"c-red"},"*"),"\u5B9E\u540D\u4FE1\u606F"),(Ke==null?void 0:Ke.authentication)==="uncertified"&&We.createElement(ce.Z,{flex:1,className:"ml20"},We.createElement(ve.Z,{align:"middle",justify:"space-between"},We.createElement(ce.Z,{style:{marginLeft:"20px"}},"\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"),We.createElement(pe.ZP,{className:oe.Z.PerfectBut,onClick:()=>{At({type:"account/setActionTabs",payload:{key:"Account-RealNameAuth"}})}},"\u7ACB\u5373\u8BA4\u8BC1")))),We.createElement("div",{className:oe.Z.PerfectCent},We.createElement(ve.Z,null,We.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u59D3\u540D"),We.createElement(ce.Z,{className:"ml20"},Ke==null?void 0:Ke.name,(Ke==null?void 0:Ke.authentication)==="uncertified"?null:(Ke==null?void 0:Ke.authentication)==="applying"?We.createElement("span",null,We.createElement("span",null,"\u5F85\u5BA1\u6838"),We.createElement(pe.ZP,{type:"primary",onClick:()=>Ar("1"),ghost:!0,style:{marginLeft:"20px"}},"\u64A4\u9500\u8BA4\u8BC1")):We.createElement("span",{style:{color:"#6ec76e"}},We.createElement("i",{className:"iconfont icon-wancheng font-14"})," \u5DF2\u8BA4\u8BC1"))),We.createElement(ve.Z,{className:"mt20"},We.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u6027\u522B"),We.createElement(ce.Z,{className:"ml20"},(Ke==null?void 0:Ke.gender)===0?"\u7537":"\u5973"))),We.createElement(ve.Z,{align:"middle"},We.createElement(ce.Z,null,We.createElement("span",{className:"c-red"},"*"),"\u804C\u4E1A\u4FE1\u606F"),(Ke==null?void 0:Ke.authentication)==="uncertified"&&We.createElement(ce.Z,{flex:1,className:"ml20"},We.createElement(ve.Z,{align:"middle",justify:"space-between"},We.createElement(ce.Z,{style:{marginLeft:"20px"}},"\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"),We.createElement(pe.ZP,{className:oe.Z.PerfectBut,onClick:()=>{At({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})}},"\u7ACB\u5373\u8BA4\u8BC1")))),We.createElement("div",{className:oe.Z.PerfectCent},We.createElement(ve.Z,null,We.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u804C\u4E1A"),We.createElement(ce.Z,{className:"ml20"},Ke&&Ke.identity&&Ve[Ke.identity],(Ke==null?void 0:Ke.authentication)==="uncertified"?null:(Ke==null?void 0:Ke.authentication)==="applying"?We.createElement("span",null,We.createElement("span",null,"\u5F85\u5BA1\u6838"),We.createElement(pe.ZP,{type:"primary",onClick:()=>Ar("2"),ghost:!0,style:{marginLeft:"20px"}},"\u64A4\u9500\u8BA4\u8BC1")):We.createElement("span",{style:{color:"#6ec76e"}},We.createElement("i",{className:"iconfont icon-wancheng font-14"})," \u5DF2\u8BA4\u8BC1",We.createElement(pe.ZP,{type:"primary",onClick:()=>{At({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})},ghost:!0,style:{marginLeft:"20px"}},"\u91CD\u65B0\u8BA4\u8BC1")))),We.createElement(ve.Z,{className:"mt20"},We.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u5B66\u53F7"),We.createElement(ce.Z,{className:"ml20"},(Ke==null?void 0:Ke.student_id)||"--")),We.createElement(ve.Z,{className:"mt20"},We.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u5B66\u6821"),We.createElement(ce.Z,{className:"ml20"},(Ke==null?void 0:Ke.school_name)||"--")),We.createElement(ve.Z,{className:"mt20"},We.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u9662\u7CFB"),We.createElement(ce.Z,{className:"ml20"},(Ke==null?void 0:Ke.department_name)||"--"))),We.createElement("p",null,We.createElement("span",{className:"c-red"},"*"),"\u8054\u7CFB\u65B9\u5F0F"),We.createElement("div",{className:oe.Z.PerfectCent},We.createElement(ve.Z,null,We.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u624B\u673A\u53F7"),We.createElement(ce.Z,{className:"ml20"},We.createElement(ve.Z,null,We.createElement(ce.Z,{style:{width:"150px"}},(Ke==null?void 0:Ke.phone)||"--"),tr==="none"&&We.createElement(pe.ZP,{type:"link",className:"ml20",style:{color:"#165DFF"},onClick:()=>{ur("block")}},"\u66F4\u6362")))),We.createElement("div",{className:"mt10",style:{marginLeft:"74px"}},We.createElement(Nt,{type:3,dispatch:At,userid:Ke==null?void 0:Ke.id,isshow:tr,setPhoneshow:ur,setEmailshow:Lr})),We.createElement(ve.Z,{className:"mt20"},We.createElement(ce.Z,{className:oe.Z.PerfectCentName},"Email"),We.createElement(ce.Z,{className:"ml20"},We.createElement(ve.Z,null,We.createElement(ce.Z,{style:{width:"150px"}},(Ke==null?void 0:Ke.mail)||"--"),Tr==="none"&&We.createElement(pe.ZP,{type:"link",className:"ml20",style:{color:"#165DFF"},onClick:()=>{Lr("block")}},"\u66F4\u6362")))),We.createElement("div",{className:"mt10",style:{marginLeft:"74px"}},We.createElement(Nt,{type:4,dispatch:At,userid:Ke==null?void 0:Ke.id,isshow:Tr,setEmailshow:Lr,setPhoneshow:ur}))),dt!=null&&dt.leader&&(dt!=null&&dt.teams)&&((Ot=(_t=dt==null?void 0:dt.teams[0])==null?void 0:_t.bank_account)!=null&&Ot.bank)?We.createElement(ve.Z,{align:"middle"},We.createElement(ce.Z,null,"\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"),We.createElement(ce.Z,{className:"ml20",style:{fontSize:"12px"}},"\u4E3A\u4FDD\u969C\u5956\u91D1\u7684\u53CA\u65F6\u53D1\u653E\uFF0C\u8BF7\u961F\u957F\u5982\u5B9E\u586B\u5199\u4F60\u540D\u4E0B\u7684\u94F6\u884C\u5361\u4FE1\u606F")):We.createElement("div",null,We.createElement(ve.Z,{align:"middle"},We.createElement(ce.Z,null,"\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"),We.createElement(ce.Z,{className:"ml20",style:{fontSize:"12px"}},"\u4E3A\u4FDD\u969C\u5956\u91D1\u7684\u53CA\u65F6\u53D1\u653E\uFF0C\u8BF7\u961F\u957F\u5982\u5B9E\u586B\u5199\u4F60\u540D\u4E0B\u7684\u94F6\u884C\u5361\u4FE1\u606F")),We.createElement(Je,{dispatch:At,userid:zt})),(dt==null?void 0:dt.leader)&&We.createElement("div",{className:oe.Z.PerfectCent,style:{border:0}},We.createElement(ve.Z,null,We.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u5F00\u6237\u884C"),We.createElement(ce.Z,{className:"ml20"},(dt==null?void 0:dt.teams)&&((en=(Vt=dt==null?void 0:dt.teams[0])==null?void 0:Vt.bank_account)==null?void 0:en.bank)||"--")),We.createElement(ve.Z,{className:"mt20"},We.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u652F\u884C"),We.createElement(ce.Z,{className:"ml20"},(dt==null?void 0:dt.teams)&&((fn=(on=dt==null?void 0:dt.teams[0])==null?void 0:on.bank_account)==null?void 0:fn.second_bank)||"--")),We.createElement(ve.Z,{className:"mt20"},We.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u8D26\u53F7"),We.createElement(ce.Z,{className:"ml20"},(dt==null?void 0:dt.teams)&&((er=(jn=dt==null?void 0:dt.teams[0])==null?void 0:jn.bank_account)==null?void 0:er.card_no)||"--"))),We.createElement(bt.Z,{Scoid:Ke==null?void 0:Ke.school_id}),We.createElement(pt,null))}var Ze=tt,je=ze(85057);const De=({Prize:dt,Accounts:Ke,getAccounts:At,dispatch:zt,userid:_t})=>{const[Ot,Vt]=(0,We.useState)("DownPdf");return We.createElement("div",{style:{margin:"15px 0"}},We.createElement(je.tp,{dataSource:[{name:"\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D",id:"DownPdf"},{name:"\u5B8C\u5584\u4E2A\u4EBA\u4FE1\u606F",id:"Perfect"}],value:Ot,onChange:en=>Vt(en)}),Ot=="DownPdf"&&We.createElement(xe,{Prize:dt}),Ot=="Perfect"&&We.createElement(Ze,{userid:_t,dispatch:zt,Prize:dt,Accounts:Ke}))};var Ye=(0,xt.connect)(({})=>({}))(De)},27268:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ne}});var We=ze(59301),xt=ze(43418),oe=ze(8591),Ue=ze(6848),Oe=ze(3113),ve=ze(93678),ce=ze(89070),Ce=ze(85149),Ee=ze(46474),ye=ze(49692),be=ze(99064),me=Object.defineProperty,xe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Ae,Te,Me)=>Te in Ae?me(Ae,Te,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ae[Te]=Me,ae=(Ae,Te)=>{for(var Me in Te||(Te={}))fe.call(Te,Me)&&ee(Ae,Me,Te[Me]);if(xe)for(var Me of xe(Te))z.call(Te,Me)&&ee(Ae,Me,Te[Me]);return Ae};const re=Ae=>React.createElement("svg",ae({className:"jieduanguanka_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Ae),React.createElement("path",{d:"M128 0h768c70.4 0 128 57.6 128 128v768c0 70.4-57.6 128-128 128H128A128.358 128.358 0 0 1 0 896V128C0 57.6 57.6 0 128 0z",fill:"#165DFF",fillOpacity:.14}),React.createElement("path",{d:"M294.4 377.6 160 480c-6.4 6.4-12.8 12.8-12.8 25.6v57.6c0 12.8 6.4 19.2 19.2 32l134.4 96c12.8 12.8 38.4 12.8 51.2 0l6.4-6.4c6.4-6.4 12.8-19.2 6.4-32s-6.4-25.6-19.2-32l-115.2-83.2 121.6-96c6.4-6.4 12.8-19.2 12.8-25.6 0-12.8 0-19.2-6.4-32-19.2-19.2-44.8-25.6-64-6.4zm275.2-12.8c-12.8 6.4-19.2 12.8-25.6 19.2L409.6 633.6a40.806 40.806 0 0 0 0 38.4c6.4 12.8 19.2 19.2 38.4 19.2 12.8 0 25.6-6.4 32-19.2l134.4-249.6c6.4-6.4 6.4-19.2 6.4-32s-12.8-19.2-19.2-25.6h-32zm128 0c-12.8 0-19.2 6.4-25.6 12.8-12.8 19.2-12.8 44.8 6.4 57.6l121.6 96-121.6 89.6c-19.2 12.8-19.2 38.4-12.8 51.2l6.4 6.4c12.8 19.2 38.4 19.2 57.6 6.4l134.4-96c6.4-6.4 12.8-19.2 19.2-25.6v-57.6c0-12.8-6.4-19.2-12.8-25.6L736 377.6c-19.2-12.8-32-12.8-38.4-12.8z",fill:"#165DFF"}));var le="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiPjxwYXRoIGQ9Ik0xMjggMGg3NjhjNzAuNCAwIDEyOCA1Ny42IDEyOCAxMjh2NzY4YzAgNzAuNC01Ny42IDEyOC0xMjggMTI4SDEyOEExMjguMzU4IDEyOC4zNTggMCAwIDEgMCA4OTZWMTI4QzAgNTcuNiA1Ny42IDAgMTI4IDB6IiBmaWxsPSIjMTY1REZGIiBmaWxsLW9wYWNpdHk9Ii4xNCIvPjxwYXRoIGQ9Ik0yOTQuNCAzNzcuNiAxNjAgNDgwYy02LjQgNi40LTEyLjggMTIuOC0xMi44IDI1LjZ2NTcuNmMwIDEyLjggNi40IDE5LjIgMTkuMiAzMmwxMzQuNCA5NmMxMi44IDEyLjggMzguNCAxMi44IDUxLjIgMGw2LjQtNi40YzYuNC02LjQgMTIuOC0xOS4yIDYuNC0zMnMtNi40LTI1LjYtMTkuMi0zMmwtMTE1LjItODMuMiAxMjEuNi05NmM2LjQtNi40IDEyLjgtMTkuMiAxMi44LTI1LjYgMC0xMi44IDAtMTkuMi02LjQtMzItMTkuMi0xOS4yLTQ0LjgtMjUuNi02NC02LjR6bTI3NS4yLTEyLjhjLTEyLjggNi40LTE5LjIgMTIuOC0yNS42IDE5LjJMNDA5LjYgNjMzLjZhNDAuODA2IDQwLjgwNiAwIDAgMCAwIDM4LjRjNi40IDEyLjggMTkuMiAxOS4yIDM4LjQgMTkuMiAxMi44IDAgMjUuNi02LjQgMzItMTkuMmwxMzQuNC0yNDkuNmM2LjQtNi40IDYuNC0xOS4yIDYuNC0zMnMtMTIuOC0xOS4yLTE5LjItMjUuNmgtMzJ6bTEyOCAwYy0xMi44IDAtMTkuMiA2LjQtMjUuNiAxMi44LTEyLjggMTkuMi0xMi44IDQ0LjggNi40IDU3LjZsMTIxLjYgOTYtMTIxLjYgODkuNmMtMTkuMiAxMi44LTE5LjIgMzguNC0xMi44IDUxLjJsNi40IDYuNGMxMi44IDE5LjIgMzguNCAxOS4yIDU3LjYgNi40bDEzNC40LTk2YzYuNC02LjQgMTIuOC0xOS4yIDE5LjItMjUuNnYtNTcuNmMwLTEyLjgtNi40LTE5LjItMTIuOC0yNS42TDczNiAzNzcuNmMtMTkuMi0xMi44LTMyLTEyLjgtMzguNC0xMi44eiIgZmlsbD0iIzE2NURGRiIvPjwvc3ZnPg==",ue=ze(24065),pe=(Ae,Te,Me)=>new Promise((Be,Re)=>{var Qe=qe=>{try{$e(Me.next(qe))}catch(ut){Re(ut)}},He=qe=>{try{$e(Me.throw(qe))}catch(ut){Re(ut)}},$e=qe=>qe.done?Be(qe.value):Promise.resolve(qe.value).then(Qe,He);$e((Me=Me.apply(Ae,Te)).next())});const Pe=Ae=>{let Te=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Me=["","\u5341","\u767E","\u5343","\u4E07"];Ae=parseInt(Ae);let Be=He=>{let $e=He.toString().split("").reverse(),qe="";for(var ut=0;ut<$e.length;ut++)qe=(ut==0&&$e[ut]==0||ut>0&&$e[ut]==0&&$e[ut-1]==0?"":Te[$e[ut]]+($e[ut]==0?Me[0]:Me[ut]))+qe;return qe},Re=Math.floor(Ae/1e4),Qe=Ae%1e4;return Qe.toString().length<4&&(Qe="0"+Qe),Re?Be(Re)+"\u4E07"+Be(Qe):Be(Ae)};function we({item:Ae,Header:Te,index:Me,StaffDetail:Be,dispatch:Re}){var Qe,He,$e,qe,ut,ct,yt;const[_e,st]=(0,We.useState)(!0),[pt,bt]=(0,We.useState)(!0),[wt,mt]=(0,We.useState)(!1),vt=(0,We.useRef)(),[St,Nt]=(0,We.useState)(!1),{identifier:Ft}=(0,ce.useParams)();(0,We.useEffect)(()=>{setTimeout(()=>{vt.current.children[0].clientHeight>88&&mt(!0)},10)},[]);const Kt=at=>{var Ct,nt;if((0,Ee.tJ)(Re,!0)){if((at==null?void 0:at.shixun_status)>1&&Nt(!0),at!=null&&at.is_jupyter||at!=null&&at.is_jupyter_lab){Re({type:"shixunsDetail/execJupyter",payload:{id:(Ct=at==null?void 0:at.shixun)==null?void 0:Ct.identifier}}).then(ht=>{Nt(!1),ht!=null&&ht.identifier&&window.open(`/tasks/${ht.identifier}/jupyter?competition_entry_id=${at==null?void 0:at.id}&type=competitions`)});return}Re({type:"shixunsDetail/execShixun",payload:{id:(nt=at==null?void 0:at.shixun)==null?void 0:nt.identifier}}).then(ht=>{if(Nt(!1),ht!=null&&ht.game_identifier){window.open(`/tasks/${ht.game_identifier}?competition_entry_id=${at==null?void 0:at.id}&type=competitions`);return}(ht==null?void 0:ht.status)===2?Pt(ht==null?void 0:ht.message):(ht==null?void 0:ht.status)===3&&Et(ht==null?void 0:ht.message)})}},Pt=at=>{at=at!=null&&at.includes(".json")?at:`${at}.json`,xt.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:We.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>pe(this,null,function*(){const Ct=yield(0,ye.$Q)({url:at});if(!Ct)return;oe.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const nt=yield(0,ye.Ir)({id:Ct.shixun_identifier});if(nt!=null&&nt.game_identifier){window.open(`/tasks/${nt.game_identifier}`);return}(nt==null?void 0:nt.status)===2?Pt(nt==null?void 0:nt.message):(nt==null?void 0:nt.status)===3&&Et(nt==null?void 0:nt.message)})})},Et=at=>{xt.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:We.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",at,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})};return We.createElement("div",{className:ve.Z.box},We.createElement("div",{style:{justifyContent:"space-between",display:"flex",padding:"0 10px"}},We.createElement("span",{className:ve.Z.title_style,style:{color:"#333333",fontWeight:500,fontSize:"14px"}},Te!=null&&Te.is_new?"\u8D5B\u9898":"\u4EFB\u52A1",Me+1),We.createElement("span",{style:{color:"#9096A3",marginLeft:"auto",fontSize:"12px"}},"\u4F5C\u54C1\u63D0\u4EA4\u65F6\u95F4",We.createElement("span",{style:{color:"#232B40",marginLeft:5}},Te==null?void 0:Te.start_time,"~",Te==null?void 0:Te.end_time))),We.createElement("div",{style:{padding:10,display:"flex",position:"relative"}},We.createElement("img",{src:Ae==null?void 0:Ae.pic,style:{width:220,height:130,borderRadius:"4px"}}),We.createElement("div",{style:{marginLeft:20,width:"75%"}},We.createElement("div",{style:{justifyContent:"space-between",display:"flex"}},We.createElement("div",null,We.createElement(Ue.Z,{title:(Ae==null?void 0:Ae.name)||((Qe=Ae==null?void 0:Ae.shixun)==null?void 0:Qe.name)},We.createElement("span",{style:{color:"#333333",fontWeight:"500",fontSize:"14px"}},(Ae==null?void 0:Ae.name)||((He=Ae==null?void 0:Ae.shixun)==null?void 0:He.name))),We.createElement("span",{style:{color:"#9096A3",marginLeft:40}},"\u5173\u5361",We.createElement("span",{style:{color:"#333333",marginLeft:5}},(Ae==null?void 0:Ae.challenges_count)||(($e=Ae==null?void 0:Ae.shixun)==null?void 0:$e.challenges_count)))),We.createElement("span",{style:{marginLeft:"auto"}},((Be==null?void 0:Be.enrolled)&&(Te==null?void 0:Te.competition_status)!=="ended"||(0,ue.eB)()||((qe=Te.permission)==null?void 0:qe.editable))&&We.createElement(Oe.ZP,{loading:St,onClick:()=>pe(this,null,function*(){var at,Ct;if(Te!=null&&Te.is_new){let nt=yield(0,be.ZP)(`/api/competitions/${Ft}/check_team_member.json`,{method:"post"});if((nt==null?void 0:nt.status)===0){Kt(Ae);let ht=yield(0,be.ZP)(`/api/competitions/${Ft}/enter_competition_question.json`,{method:"post",body:{competition_stage_id:Ae==null?void 0:Ae.competition_stage_id,competition_stage_section_id:Ae==null?void 0:Ae.competition_stage_section_id,competition_entry_id:Ae==null?void 0:Ae.id,shixun_id:(at=Ae==null?void 0:Ae.shixun)==null?void 0:at.id}})}}else window.open(`/shixuns/${(Ae==null?void 0:Ae.identifier)||((Ct=Ae==null?void 0:Ae.shixun)==null?void 0:Ct.identifier)}/challenges`)}),style:{marginLeft:30,borderRadius:14,fontSize:12,width:88},type:"primary"},"\u5F00\u542F\u6311\u6218"))),We.createElement("div",{ref:vt,style:{maxHeight:_e&&100,position:"relative",overflow:"hidden"}},We.createElement(Ce.Z,{style:{fontSize:"14px",color:"#9096A3",marginTop:20,position:"relative"},value:(Ae==null?void 0:Ae.description)||""}),wt&&_e&&We.createElement("div",{className:ve.Z.maskText})),wt&&We.createElement("div",{className:ve.Z.colorhove,style:{textAlign:"end",cursor:"pointer"},onClick:()=>{st(!_e)}},_e?"\u9605\u8BFB\u5168\u6587 ":"\u6536\u8D77\u5168\u6587 ",We.createElement("i",{className:`iconfont font14 ${_e?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-"}`})),We.createElement("div",{style:{marginTop:14,maxHeight:pt&&58,overflow:"hidden"}},(ut=Ae==null?void 0:Ae.challenges)==null?void 0:ut.map((at,Ct)=>We.createElement("div",{style:{marginTop:Ct===0?0:12}},We.createElement("img",{src:le,style:{width:20,height:20}}),We.createElement("span",{style:{marginLeft:10}},"\u7B2C",Ct+1,"\u5173",at==null?void 0:at.challenge_name))),(ct=Ae==null?void 0:Ae.challenge_settings)==null?void 0:ct.map((at,Ct)=>We.createElement("div",{style:{marginTop:Ct===0?0:12}},We.createElement("img",{src:le,style:{width:20,height:20}}),We.createElement("span",{style:{marginLeft:10}},"\u7B2C",Ct+1,"\u5173",at==null?void 0:at.challenge_name)))),We.createElement("div",{className:ve.Z.colorhove,style:{position:"absolute",bottom:14,right:10,cursor:"pointer"}},((Ae==null?void 0:Ae.challenges_count)||((yt=Ae==null?void 0:Ae.shixun)==null?void 0:yt.challenges_count))>2&&We.createElement("span",{onClick:()=>{bt(!pt)}},pt?"\u5C55\u5F00":"\u6536\u8D77"," ",We.createElement("i",{className:`iconfont font14 ${pt?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-"}`}))))))}var Ne=we},78110:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ct}});var We=ze(59301),xt=ze(89070),oe=ze(57809),Ue=ze(54580),Oe=ze(78241),ve=ze(8591),ce=ze(43418),Ce=ze(95237),Ee=ze(43604),ye=ze(71418),be=ze(92832),me=ze(88522),xe=ze(3113),fe=ze(3294),z=ze(51941),ee=ze(56615),ae=ze(955),re=ze(60302),le=ze(19842),ue=ze(29679),pe=ze(19248),Pe=ze(16979),we={flexRow:"flexRow___jGYtM",flexColumn:"flexColumn___NPMB3",formWrap:"formWrap___vwH9N",example:"example____BmJC",footerWrap:"footerWrap___lp1L0"},Ne=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,Me=(nt,ht)=>{var Mt={};for(var gt in nt)Ae.call(nt,gt)&&ht.indexOf(gt)<0&&(Mt[gt]=nt[gt]);if(nt!=null&&Ne)for(var gt of Ne(nt))ht.indexOf(gt)<0&&Te.call(nt,gt)&&(Mt[gt]=nt[gt]);return Mt},Be=(nt,ht,Mt)=>new Promise((gt,rt)=>{var Je=tt=>{try{Ve(Mt.next(tt))}catch(Ze){rt(Ze)}},Xe=tt=>{try{Ve(Mt.throw(tt))}catch(Ze){rt(Ze)}},Ve=tt=>tt.done?gt(tt.value):Promise.resolve(tt.value).then(Je,Xe);Ve((Mt=Mt.apply(nt,ht)).next())});const Re=(nt,ht)=>ht.some(Mt=>Mt.label.toLowerCase().indexOf(nt.toLowerCase())>-1),Qe=be.default.TextArea,He=nt=>{var ht=nt,{account:Mt,globalSetting:gt,loading:rt,dispatch:Je,schoolName:Xe,visible:Ve,onClose:tt=()=>{},onSuccess:Ze=()=>{}}=ht,je=Me(ht,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]);const[De]=Oe.default.useForm();(0,We.useEffect)(()=>{De.setFieldsValue({name:Xe})},[Xe]);const Ye=dt=>Be(void 0,null,function*(){const{name:Ke,city:At=[],address:zt,remarks:_t}=dt||{},Ot=yield Je({type:"account/appplySchool",payload:{name:Ke,province:At[0],city:At[1],address:zt,remarks:_t}});tt(),Ot&&(ve.ZP.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),Ze(Ke))});return We.createElement(ce.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Ve,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},We.createElement(Oe.default,{className:we.formWrap,form:De,labelCol:{span:4},wrapperCol:{span:20},onFinish:Ye},We.createElement(Oe.default.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},We.createElement(be.default,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),We.createElement("div",{className:`${we.flexRow} ${we.example}`},We.createElement("div",null,"\u793A\u4F8B\uFF1A"),We.createElement("div",{className:we.flexColumn},We.createElement("div",null,We.createElement(ue.Z,{style:{color:"rgb(82, 196, 26)"}}),We.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),We.createElement("div",null,We.createElement(pe.Z,{style:{color:"red"}}),We.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),We.createElement(Oe.default.Item,{label:"\u5730\u533A\uFF1A",name:"city"},We.createElement(le.Z,{allowClear:!0,size:"middle",options:Pe.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:Re}})),We.createElement(Oe.default.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},We.createElement(be.default,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),We.createElement(Oe.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},We.createElement(Qe,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),We.createElement("div",{className:we.footerWrap},We.createElement(Oe.default.Item,null,We.createElement(xe.ZP,{className:"mr5",size:"middle",onClick:()=>{tt()}},"\u53D6\u6D88"),We.createElement(xe.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:rt["account/appplySchool"]},"\u4FDD\u5B58")))))};var $e=(0,xt.connect)(({account:nt,loading:ht,globalSetting:Mt})=>({account:nt,globalSetting:Mt,loading:ht.effects}))(He),qe=ze(1),ut=ze(89392),ct=ze(59301),yt=Object.defineProperty,_e=Object.defineProperties,st=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,mt=(nt,ht,Mt)=>ht in nt?yt(nt,ht,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):nt[ht]=Mt,vt=(nt,ht)=>{for(var Mt in ht||(ht={}))bt.call(ht,Mt)&&mt(nt,Mt,ht[Mt]);if(pt)for(var Mt of pt(ht))wt.call(ht,Mt)&&mt(nt,Mt,ht[Mt]);return nt},St=(nt,ht)=>_e(nt,st(ht)),Nt=(nt,ht)=>{var Mt={};for(var gt in nt)bt.call(nt,gt)&&ht.indexOf(gt)<0&&(Mt[gt]=nt[gt]);if(nt!=null&&pt)for(var gt of pt(nt))ht.indexOf(gt)<0&&wt.call(nt,gt)&&(Mt[gt]=nt[gt]);return Mt},Ft=(nt,ht,Mt)=>new Promise((gt,rt)=>{var Je=tt=>{try{Ve(Mt.next(tt))}catch(Ze){rt(Ze)}},Xe=tt=>{try{Ve(Mt.throw(tt))}catch(Ze){rt(Ze)}},Ve=tt=>tt.done?gt(tt.value):Promise.resolve(tt.value).then(Je,Xe);Ve((Mt=Mt.apply(nt,ht)).next())});const Kt=oe.default.Option,Pt=Ue.default.Dragger;var Et=(nt=>(nt[nt.Professor=1]="Professor",nt[nt.AssistantProfessor=2]="AssistantProfessor",nt[nt.Student=3]="Student",nt))(Et||{});const at=nt=>{var ht=nt,{user:Mt,account:gt,globalSetting:rt,loading:Je,dispatch:Xe,Scoid:Ve}=ht,tt=Nt(ht,["user","account","globalSetting","loading","dispatch","Scoid"]),Ze,je;const[De]=Oe.default.useForm(),[Ye,dt]=(0,We.useState)({}),[Ke,At]=(0,We.useState)([]),[zt,_t]=(0,We.useState)([]),[Ot,Vt]=(0,We.useState)([]),[en,on]=(0,We.useState)([]),[fn,jn]=(0,We.useState)(),[er,tr]=(0,We.useState)(),[ur,Tr]=(0,We.useState)(),[Lr,Ar]=(0,We.useState)(),[Gr,Kr]=(0,We.useState)(),Mr=(0,We.useRef)((0,ut.throttle)(Xt=>fi(Xt),1200,{leading:!0,trailing:!0})).current;(0,We.useEffect)(()=>{},[]),(0,We.useEffect)(()=>{Ft(void 0,null,function*(){if(!Ve)return;const Xt=yield Jr(Ve);Vt(Xt==null?void 0:Xt.departments)})},[Ve]);const fi=Xt=>Ft(void 0,null,function*(){var Tt,sn;const pn=yield Xe({type:"account/getSchoolOption",payload:{keyword:Xt,limit:10}});At(pn==null?void 0:pn.schools),Xt&&Xt!=""&&(_t((Tt=pn==null?void 0:pn.schools)==null?void 0:Tt.filter(Bt=>Bt.name.includes(Xt))),(((sn=pn==null?void 0:pn.schools)==null?void 0:sn.find(Bt=>Bt.name===Xt))||{}).id?dr(Xt,null,pn==null?void 0:pn.schools):(De.setFieldsValue({department:""}),dt(vt(vt({},Ye),{school:Xt,department:""}))))}),Jr=Xt=>{if(Xt)return Xe({type:"account/getDepartmentOption",payload:{id:Xt}})};(0,We.useEffect)(()=>{if(!gt.basicInfo)return;const{basicInfo:Xt}=gt,Tt={identity:Xt.identity,school:Xt.school_name,department:Xt.department_name,studentNo:Xt.student_id,jobTitle:Xt.identity=="teacher"?Xt.technical_title:"\u6559\u6388",manager:Xt.identity=="professional"?Xt.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};De.setFieldsValue(Tt),dt(Tt)},[gt.basicInfo]);const it=()=>{Ar(!0)},bi=()=>{if(!Ke.find(Xt=>Xt.name===Ye.school)){ve.ZP.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}Kr(!0)},mi=Xt=>{dt(vt({},De.getFieldsValue())),"school"in Xt&&(_t(Ke.filter(sn=>sn.name.includes(Xt.school))),(Ke.find(sn=>sn.name===Xt.school)||{}).id?dr(Xt.school):(De.setFieldsValue({department:""}),dt(vt(vt({},Ye),{school:Xt.school,department:""}))))},Tn=(Xt,Tt)=>{if(gt.actionTabs.checkedList.includes(1)){ce.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ct.createElement("div",{className:"tc"},Tt||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{window.location.href=`/classrooms/${Xt}/students`}});return}window.location.href=`/classrooms/${Xt}/students`},dr=(Xt,Tt,sn)=>Ft(void 0,null,function*(){var pn,Yt,Bt;const un=(pn=(sn||Ke).find(Zn=>Zn.name===Xt))==null?void 0:pn.id,bn=(yield Jr(un))||{};Vt(bn==null?void 0:bn.departments);const On=Tt||((Bt=(Yt=bn==null?void 0:bn.departments)==null?void 0:Yt[0])==null?void 0:Bt.name);De.setFieldsValue({department:On}),dt(vt(vt({},Ye),{school:Xt,department:On}))}),ar=Xt=>Ft(void 0,null,function*(){yield fi(),De.setFieldsValue({school:Xt,department:""}),dt(vt(vt({},Ye),{school:Xt,department:""}))}),vr=Xt=>{var Tt;if(Xt.file.status==="uploading"){Tr(!0);return}Xt.file.status==="done"&&(console.log(Xt.file,Xt.file.response),tr((Tt=Xt.file.response)==null?void 0:Tt.id),(0,ae.y3)(Xt.file.originFileObj,sn=>{jn(sn),Tr(!1)}))},Jn=Xt=>Ft(void 0,null,function*(){var Tt,sn,pn,Yt,Bt;const{school:un,department:bn,identity:On,studentNo:Zn,jobTitle:Gt,manager:An}=Xt||{};if(!fn){ve.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01");return}const Kn=(Tt=Ke.find(tn=>tn.name===un))==null?void 0:Tt.id,rr=(sn=Ot.find(tn=>tn.name===bn))==null?void 0:sn.id;let xn;On==="student"?xn=Zn:On==="teacher"?xn=Gt:xn=An;const Cn=yield Xe({type:"account/applyProfessionalAuth",payload:{id:((pn=gt.basicInfo)==null?void 0:pn.id)||((Yt=Mt.userInfo)==null?void 0:Yt.login),school_id:Kn,department_id:rr,identity:On,extra:xn,attachment_ids:[er]}});if(gt.actionTabs.code){let tn=yield(0,qe.cR)({invite_code:gt.actionTabs.code,professor:gt.actionTabs.checkedList.includes(1)?1:null,assistant_professor:gt.actionTabs.checkedList.includes(2)?1:null,student:gt.actionTabs.checkedList.includes(3)?1:null});tn.message==="\u52A0\u5165\u6210\u529F"&&(tn!=null&&tn.course_id?Tn(tn.course_id,tn.message):ve.ZP.success(tn.message))}zn(),Cn&&(ve.ZP.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Xe({type:"account/getBasicInfo",payload:{login:(Bt=Mt.userInfo)==null?void 0:Bt.login}}))}),zn=()=>{Xe({type:"account/setActionTabs",payload:{}})},$t={data:{type:"professional"},multiple:!0,showUploadList:!1,action:`${fe.Z.API_SERVER}/api/attachments.json`,className:ee.Z.uploader,onChange:vr,beforeUpload:Xt=>{const Tt=Xt.type==="image/jpeg"||Xt.type==="image/png"||Xt.type==="image/jpg"||Xt.type==="image/bmp";return Tt||ve.ZP.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),Tt}};return ct.createElement(ce.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:ee.Z.modal,open:gt.actionTabs.key==="Account-ProfessionalAuth",title:ct.createElement(Ce.Z,{style:{padding:"25px"},align:"middle",justify:"space-between"},ct.createElement(Ee.Z,null,"\u804C\u4E1A\u8BA4\u8BC1"),ct.createElement(Ee.Z,null,ct.createElement("i",{className:"iconfont icon-guanbi11",style:{color:"#979797",cursor:"pointer"},onClick:zn}))),width:"660px",footer:null},ct.createElement(ye.Z,{spinning:!!ur},ct.createElement(Oe.default,{className:ee.Z.formWrap,form:De,colon:!1,onValuesChange:mi,onFinish:Jn},ct.createElement(Ce.Z,{gutter:[10,0]},ct.createElement(Ee.Z,{flex:"300px"},ct.createElement(Oe.default.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},ct.createElement(oe.default,null,ct.createElement(Kt,{value:"teacher"},"\u6559\u5E08"),ct.createElement(Kt,{value:"student"},"\u5B66\u751F"),ct.createElement(Kt,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),Ye.identity==="student"&&ct.createElement(Ee.Z,{flex:"200px"},ct.createElement(Oe.default.Item,{initialValue:Ye.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},ct.createElement(be.default,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),Ye.identity==="teacher"&&ct.createElement(Ee.Z,{flex:"200px"},ct.createElement(Oe.default.Item,{initialValue:Ye.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},ct.createElement(oe.default,null,ct.createElement(Kt,{value:"\u6559\u6388"},"\u6559\u6388"),ct.createElement(Kt,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),ct.createElement(Kt,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),ct.createElement(Kt,{value:"\u52A9\u6559"},"\u52A9\u6559")))),Ye.identity==="professional"&&ct.createElement(Ee.Z,{flex:"200px"},ct.createElement(Oe.default.Item,{initialValue:Ye.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},ct.createElement(oe.default,null,ct.createElement(Kt,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),ct.createElement(Kt,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),ct.createElement(Kt,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),ct.createElement(Kt,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),ct.createElement(Kt,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),ct.createElement(Oe.default.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:Ye.school&&!(Ke!=null&&Ke.find(Xt=>Xt.name===Ye.school))&&ct.createElement("div",{className:ee.Z.schoolHintWrap},ct.createElement("span",{className:ee.Z.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",Ye.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),ct.createElement("span",{className:`${ee.Z.color0152d9} current`,onClick:it},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},ct.createElement(me.Z,{showSearch:!0,onSearch:Mr,options:zt==null?void 0:zt.map(Xt=>({value:Xt.name}))})),ct.createElement(Oe.default.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:Ye.department&&!(Ot!=null&&Ot.find(Xt=>Xt.name===Ye.department))&&ct.createElement("div",{className:ee.Z.schoolHintWrap},ct.createElement("span",{className:ee.Z.colorCDCDCD},Ye.department?`\u672A\u627E\u5230\u5305\u542B\u201C${Ye.department}\u201D\u7684\u9AD8\u6821\uFF0C`:"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),ct.createElement("span",{className:`${ee.Z.color0152d9} current`,onClick:bi},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},ct.createElement(me.Z,{showSearch:!0,onChange:Xt=>on(Ot.filter(Tt=>Tt.name.includes(Xt))),options:en==null?void 0:en.map(Xt=>({value:Xt.name}))})),ct.createElement(Oe.default.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},ct.createElement("div",{className:ee.Z.flexRow},ct.createElement("div",{className:ee.Z.flexColumn},ct.createElement(Pt,St(vt({},$t),{accept:".png,.jpg,.bmp,.jpeg"}),fn?ct.createElement("img",{src:fn,className:ee.Z.uploadImg}):ct.createElement("div",{className:ee.Z.imageTip},ct.createElement("p",null,ct.createElement("i",{className:`iconfont icon-cuban2shangchuanyunduan ${ee.Z.uploadTipIcon}`})),ct.createElement("p",{className:ee.Z.uploadTip},ct.createElement("a",{className:ee.Z.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),ct.createElement("span",{className:"tc"},ct.createElement("p",{className:ee.Z.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))),ct.createElement("div",{className:`${ee.Z.flexColumn} ${ee.Z.example}`},ct.createElement("span",{className:ee.Z.exampleImg},ct.createElement("img",{src:z})),ct.createElement("span",{className:"tc"},ct.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),ct.createElement("p",{className:`${ee.Z.colorOrange} font12`},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))))),ct.createElement("div",{className:ee.Z.footerWrap},ct.createElement(Oe.default.Item,null,ct.createElement(xe.ZP,{className:"mr5",size:"middle",onClick:zn},"\u53D6\u6D88"),ct.createElement(xe.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Je["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),ct.createElement("div",{className:ee.Z.note},ct.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),ct.createElement("p",null,"1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),ct.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),ct.createElement("p",null,"3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"),ct.createElement("p",null,"4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),ct.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),ct.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!((Ze=rt==null?void 0:rt.setting)!=null&&Ze.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),ct.createElement("p",null,"7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))),ct.createElement($e,{visible:Lr,onClose:()=>Ar(!1),schoolName:Ye.school,onSuccess:ar}),ct.createElement(re.Z,{visible:Gr,onClose:()=>Kr(!1),schoolId:(je=Ke.find(Xt=>Xt.name===Ye.school))==null?void 0:je.id,schoolName:Ye.school,departmentName:Ye.department,onSuccess:Xt=>dr(Ye.school,Xt)}))};var Ct=(0,xt.connect)(({user:nt,account:ht,loading:Mt,globalSetting:gt})=>({user:nt,account:ht,globalSetting:gt,loading:Mt.effects}))(at)},89033:function(Nn,mn,ze){"use strict";var We=ze(59301),xt=ze(8591),oe=ze(43418),Ue=ze(92832),Oe=ze(3113),ve=ze(99064),ce=ze(1957),Ce=ze(955),Ee=ze(3294),ye=ze(59301),be=(fe,z,ee)=>new Promise((ae,re)=>{var le=Pe=>{try{pe(ee.next(Pe))}catch(we){re(we)}},ue=Pe=>{try{pe(ee.throw(Pe))}catch(we){re(we)}},pe=Pe=>Pe.done?ae(Pe.value):Promise.resolve(Pe.value).then(le,ue);pe((ee=ee.apply(fe,z)).next())});const me=/^1\d{10}$/;function xe({isShowPhone:fe,setIsShowPhone:z,user:ee,dispatch:ae,onOK:re,isopen:le,setisopen:ue,datas:pe,Header:Pe}){const[we,Ne]=(0,We.useState)(""),[Ae,Te]=(0,We.useState)(""),[Me,Be]=(0,We.useState)(60),[Re,Qe]=(0,We.useState)(),[He,$e]=(0,We.useState)(!1),[qe,ut]=(0,We.useState)(!1),[ct,yt]=(0,We.useState)(""),_e=(0,We.useRef)();(0,We.useEffect)(()=>()=>{_e.current&&clearInterval(_e.current)},[]),(0,ce.Y)(()=>{if(Re)Be(60);else return;Me>0?Be(Me-1):(Be(60),Qe(!1),_e.current&&clearInterval(_e.current))},1e3);const st=()=>be(this,null,function*(){var pt;let bt=yield(0,ve.ZP)(`/api/users/accounts/${(pt=ee.userInfo)==null?void 0:pt.login}/valid_phone.json`,{method:"get",params:{phone:we}});if((bt==null?void 0:bt.status)===-1)return;if(bt!=null&&bt.is_exists){$e(!0);return}let wt=(0,Ce.M)(we);(yield ae({type:"account/getCode",payload:{login:we,type:3,smscode:wt}})).status===1&&(xt.ZP.info("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\uFF0C\u8BF7\u6CE8\u610F\u67E5\u6536"),Qe(!0))});return ye.createElement("div",null,ye.createElement(oe.default,{title:"\u5F3A\u5236\u89E3\u7ED1",open:qe,onCancel:()=>ut(!1),onOk:()=>be(this,null,function*(){var pt;if(!ct){xt.ZP.info("\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}let bt=yield(0,ve.ZP)(`/api/users/accounts/${(pt=ee==null?void 0:ee.userInfo)==null?void 0:pt.login}/phone_force_unbind.json`,{method:"POST",body:{code:ct,phone:we}});(bt==null?void 0:bt.status)===0&&(xt.ZP.info("\u89E3\u7ED1\u6210\u529F"),Qe(!1),ut(!1),re(),z(!1),yt(""))})},ye.createElement("div",{style:{padding:"8px 24px"}},ye.createElement("p",null,"\u82E5\u539F\u8D26\u53F7\u53EA\u6709\u7ED1\u5B9A\u4E86\u624B\u673A\u53F7\u4E00\u79CD\u767B\u5F55\u65B9\u5F0F\uFF0C\u5F3A\u5236\u89E3\u7ED1\u540E\u4F1A\u5BFC\u81F4\u539F\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u5F3A\u5236\u89E3\u7ED1"),ye.createElement("p",null,"\u4F60\u7684\u624B\u673A\u53F7\uFF1A",we),ye.createElement("p",null,"\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A",ye.createElement(Ue.default,{value:ct,size:"middle",onChange:pt=>yt(pt.target.value),style:{width:"240px"}})," ",ye.createElement(Oe.ZP,{disabled:Re,type:"primary",size:"middle",onClick:()=>be(this,null,function*(){let pt=(0,Ce.M)(we);(yield ae({type:"account/getCode",payload:{login:we,type:10,smscode:pt}})).status===1&&(xt.ZP.info("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\uFF0C\u8BF7\u6CE8\u610F\u67E5\u6536"),Qe(!0))})},Re?`\u91CD\u65B0\u53D1\u9001${Me}s`:"\u83B7\u53D6\u9A8C\u8BC1\u7801")))),ye.createElement(oe.default,{title:"\u63D0\u793A",open:He,onCancel:()=>{$e(!1)},okText:"\u8FDB\u884C\u5F3A\u5236\u89E3\u7ED1",okButtonProps:{type:"primary",ghost:!0,style:{width:"124px"}},onOk:()=>{ut(!0),$e(!1)}},ye.createElement("div",{style:{padding:"7px 24px"}},ye.createElement("span",null,"\u8BE5\u624B\u673A\u53F7\u5DF2\u7ECF\u88AB\u7ED1\u5B9A\u8D26\u53F7\uFF0C\u5982\u679C\u9700\u8981\u5C06\u8BE5\u624B\u673A\u53F7\u7ED1\u5B9A\u5728\u5F53\u524D\u8D26\u53F7\u4E0A\uFF0C\u4F60\u53EF\u4EE5\u8FDB\u884C\u4E0B\u65B9\u4EFB\u610F\u4E00\u79CD\u89E3\u7ED1\u64CD\u4F5C\uFF1A"),ye.createElement("br",null),ye.createElement("p",{style:{marginTop:"1em",display:"flex"}},ye.createElement("span",{style:{flex:"1"}},"1\u3001\u4F7F\u7528\u8BE5\u624B\u673A\u53F7\u767B\u5F55\u5E73\u53F0\u8FDB\u884C\u89E3\u7ED1\uFF0C\u518D\u5C06\u624B\u673A\u53F7\u7ED1\u5B9A\u5F53\u524D\u8D26\u53F7\u4E0A\u3002")),ye.createElement("p",{style:{marginTop:"1em",display:"flex"}},ye.createElement("span",{style:{flex:"1"}},"2\u3001\u5F3A\u5236\u89E3\u7ED1\uFF08\u5F3A\u5236\u89E3\u7ED1\u53EF\u80FD\u4F1A\u5BFC\u81F4\u89E3\u7ED1\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF09")))),ye.createElement(oe.default,{title:"\u7ED1\u5B9A\u624B\u673A\u53F7",open:fe,onCancel:()=>z(!1),onOk:()=>be(this,null,function*(){if(!me.test(we)){xt.ZP.info("\u8BF7\u8F93\u5165\u6709\u6548\u768411\u4F4D\u624B\u673A\u53F7\u7801");return}if(!Ae){xt.ZP.info("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801");return}const{login:pt}=ee.userInfo||{},bt=yield ae({type:"account/bindPhone",payload:{login:pt,phone:we,code:Ae}});(bt==null?void 0:bt.status)===0&&(z(!1),re())})},ye.createElement("div",{style:{padding:"8px 24px"}},ye.createElement("p",null,"\u5E73\u53F0\u5DF2\u68C0\u6D4B\u5230\u60A8\u672A\u7ED1\u5B9A\u624B\u673A\u53F7\uFF0C\u4E3A\u4E86\u4E0D\u5F71\u54CD\u4F7F\u7528\u62A5\u540D\u529F\u80FD\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801"),ye.createElement("p",null,"\u4F60\u7684\u624B\u673A\u53F7\uFF1A",ye.createElement(Ue.default,{size:"middle",value:we,onChange:pt=>Ne(pt.target.value),style:{width:"240px"}})),ye.createElement("p",null,"\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A",ye.createElement(Ue.default,{size:"middle",value:Ae,onChange:pt=>Te(pt.target.value),style:{width:"240px"}})," ",ye.createElement(Oe.ZP,{disabled:Re,type:"primary",size:"middle",onClick:()=>be(this,null,function*(){if(!me.test(we)){xt.ZP.info("\u8BF7\u8F93\u5165\u6709\u6548\u768411\u4F4D\u624B\u673A\u53F7\u7801");return}st()})},Re?`\u91CD\u65B0\u53D1\u9001${Me}s`:"\u83B7\u53D6\u9A8C\u8BC1\u7801")))),ye.createElement(oe.default,{open:le,footer:!1,onCancel:()=>ue(!1),centered:!0,width:460},ye.createElement("div",null,ye.createElement("div",{style:{marginTop:50,fontSize:26,color:"#3d3d3d",textAlign:"center",marginBottom:20}},ye.createElement("i",{style:{fontSize:26,color:"#52C41A"},className:"iconfont icon-tongguo"})," \u62A5\u540D\u6210\u529F"),ye.createElement("div",{style:{alignItems:"center",textAlign:"center"}},(Pe==null?void 0:Pe.is_show_picture)&&ye.createElement("img",{style:{width:180,border:"1px solid #eeeeef",padding:10,marginBottom:20},src:Ee.Z.IMG_SERVER+(pe==null?void 0:pe.QR_code)}),ye.createElement("p",{style:{color:"#AAAAAA"}},(Pe==null?void 0:Pe.apply_success_tips)||"\u53C2\u8D5B\u8005\u53EF\u626B\u7801\u52A0\u5165\u5927\u8D5B\u5B98\u65B9\u4EA4\u6D41\u7FA4\uFF0C\u83B7\u53D6\u6700\u65B0\u7ADE\u8D5B\u901A\u77E5")))))}mn.Z=xe},16979:function(Nn,mn,ze){"use strict";ze.d(mn,{P:function(){return We}});const We=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},1957:function(Nn,mn,ze){"use strict";ze.d(mn,{Y:function(){return xt}});var We=ze(59301);function xt(oe,Ue){const Oe=(0,We.useRef)(),ve=(0,We.useRef)();(0,We.useEffect)(()=>{Oe.current=oe}),(0,We.useEffect)(()=>{function ce(){Oe.current()}if(Ue!==null){let Ce=setInterval(ce,Ue);return ve.current=Ce,()=>clearInterval(Ce)}},[Ue])}},24768:function(Nn,mn,ze){"use strict";ze.d(mn,{AL:function(){return pe},Iy:function(){return be},Qv:function(){return fe},ez:function(){return ue},jb:function(){return me}});var We=ze(32834),xt=ze.n(We),oe=ze(11690),Ue=ze.n(oe);let Oe=1;function ve(Te,Me){const Be=Te.match(/^(\s+)(?:```)/);if(Be===null)return Me;const Re=Be[1];return Me.split(`
`).map(Qe=>{const He=Qe.match(/^\s+/);if(He===null)return Qe;const[$e]=He;return $e.length>=Re.length?Qe.slice(Re.length):Qe}).join(`
`)}let ce=[],Ce=["<ul>"];const Ee=new(xt()).Renderer,ye=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function be(){ce.length=0,Ce=["<ul>"]}const me={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function xe(Te,Me,Be,Re){if(Me>=Te.length||Te[Me].level<=Be)return Me;var Qe=Te[Me];Re.push("<li><a href='#"+Oe+Qe.anchor+"'>"+Qe.text+"</a>"),Me++;var He=[];return Me=xe(Te,Me,Qe.level,He),He.length>0&&(Re.push("<ul>"),He.forEach(function($e){Re.push($e)}),Re.push("</ul>")),Re.push("</li>"),Me=xe(Te,Me,Be,Re),Me}function fe(){return xe(ce,0,0,Ce),Ce.push("</ul>"),Ce.join("")}const z={heading(Te){const Me=ye.exec(Te);if(Oe+=1,Me)return{type:"heading",raw:Me[0],depth:Me[1].length,text:Me[2]}},fences(Te){const Me=this.rules.block.fences.exec(Te);if(Me){const Be=Me[0];let Re=ve(Be,Me[3]||"");const Qe=Me[2]?Me[2].trim():Me[2];if(["latex","katex","math"].indexOf(Qe)>=0){const He=re(),$e=Re;Re=He,le[He]={type:"block",expression:$e}}return{type:"code",raw:Be,lang:Qe,text:Re}}}},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 Pe(Te){return Te=Te.replace(ee,(Me,Be)=>{const Re=re();return le[Re]={type:"inline",expression:Be},Re}),Te}const we=Ee.listitem;Ee.listitem=function(Te){return we(Pe(Te))};const Ne=Ee.paragraph;Ee.paragraph=function(Te){return Ne(Pe(Te))};const Ae=Ee.tablecell;Ee.tablecell=function(Te,Me){return Ae(Pe(Te),Me)},Ee.code=function(Te,Me,Be){const Re=(Me||"").match(/\S*/)[0];return Re?["latex","katex","math"].indexOf(Re)>=0?`<p class='editormd-tex'>${Te}</p>`:`<pre class="prettyprint linenums"><code class="language-${Me}">${Be?Te:(0,oe.escape)(Te,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Be?Te:(0,oe.escape)(Te,!0))+"</code></pre>"},Ee.heading=function(Te,Me,Be){let Re=this.options.headerPrefix+Be.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ce.push({anchor:Re,level:Me,text:Te}),"<h"+Me+' id="'+Oe+Re+'">'+Te+"</h"+Me+">"},xt().setOptions({silent:!0,gfm:!0,pedantic:!1}),xt().use({tokenizer:z,renderer:Ee}),mn.ZP=xt()},46474:function(Nn,mn,ze){"use strict";ze.d(mn,{rX:function(){return Pe},pW:function(){return we},gy:function(){return Ne},xY:function(){return pe},O5:function(){return ue},hs:function(){return ee},tJ:function(){return fe},o1:function(){return z},Rd:function(){return le}});var We=ze(89070),xt=ze(43418),oe=ze(28103),Ue=ze(8591),Oe=ze(24065),ve=ze(955),ce=ze(87169),Ce=ze(25510),Ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UII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hWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",ye=ze.p+"static/newqrcode.a8740efb.png",be=ze(32637),me=ze(59301),xe=(Ae,Te,Me)=>new Promise((Be,Re)=>{var Qe=qe=>{try{$e(Me.next(qe))}catch(ut){Re(ut)}},He=qe=>{try{$e(Me.throw(qe))}catch(ut){Re(ut)}},$e=qe=>qe.done?Be(qe.value):Promise.resolve(qe.value).then(Qe,He);$e((Me=Me.apply(Ae,Te)).next())});const fe=(Ae,Te=!1,Me=!1,Be="",Re=!1)=>!!(z(Ae)&&ae(Ae,Te,Me,Be,Re)),z=Ae=>(0,Oe.bg)()?!0:(Ae({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),ee=Ae=>{var Te,Me,Be;const{user:Re}=(0,We.getDvaApp)()._store.getState();(0,Oe.bg)()&&!((Me=(Te=Re==null?void 0:Re.userInfo)==null?void 0:Te.course)!=null&&Me.course_public)&&!((Be=Re==null?void 0:Re.userInfo)!=null&&Be.profile_completed)&&Ae({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ae=(Ae,Te=!1,Me=!0,Be="",Re=!1)=>{var Qe;const{user:He}=(0,We.getDvaApp)()._store.getState();return(Qe=He.userInfo)!=null&&Qe.profile_completed?!0:(Me?Ae({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Be,isCurrentPage:Re}}):xt.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,ve.xg)("/account/profile/edit"),re()}}),!1)},re=()=>{xt.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},le=()=>{xt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:me.createElement("div",{style:{textAlign:"center"}},me.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),me.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:be}),me.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},ue=()=>{var Ae;const{user:Te}=(0,We.getDvaApp)()._store.getState();return(Ae=Te.userInfo)!=null&&Ae.professional_certification?!0:(xt.default.confirm({title:"\u63D0\u793A",centered:!0,content:me.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,ve.xg)("/account/certification")}}),!1)},pe=()=>(0,Oe.V9)()?!0:(xt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:me.createElement("div",{className:"tc",style:{marginLeft:-38}},me.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),me.createElement("img",{src:ye,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Pe=(Ae,Te)=>Ae?!0:(xt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:me.createElement("div",null,me.createElement("p",null,Te||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),me.createElement("div",{style:{marginLeft:"110px"}},me.createElement("img",{src:Ee,width:200}),me.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ve.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),we=Ae=>{xt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:me.createElement("div",null,me.createElement("div",null,me.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),me.createElement(oe.Z,null),me.createElement("p",{style:{color:"#666666",fontSize:12}}," ",me.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",me.createElement("a",null,Ae),"\u5929\u3002"),me.createElement("p",{style:{color:"#666666",fontSize:12}}," ",me.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),me.createElement("div",{style:{textAlign:"center",marginTop:30}},me.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ce,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Ne=(Ae,Te="")=>{const{shixunsDetail:{detail:Me}}=(0,We.getDvaApp)()._store.getState();if((Me==null?void 0:Me.public)===2||(Me==null?void 0:Me.public)===1||(Me==null?void 0:Me.shixun_status)===3){let Be="";return(Me==null?void 0:Me.public)===2&&(Be="\u5DF2\u516C\u5F00"),(Me==null?void 0:Me.public)===1&&(Be="\u5F85\u5BA1\u6838"),(Me==null?void 0:Me.shixun_status)===3&&(Be="\u5DF2\u5173\u95ED"),xt.default.info({centered:!0,icon:me.createElement(ce.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:me.createElement("div",{className:"tc",style:{marginLeft:-38}},me.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},me.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Be,"\uFF0C",Te,"\u3002"),me.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),me.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ce,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Me==null?void 0:Me.shixun_status)===2?(xt.default.confirm({centered:!0,icon:me.createElement(ce.Z,null),title:"\u63D0\u793A",content:me.createElement("div",null,me.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Te,"\u3002"),me.createElement("br",null),me.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{xt.default.confirm({width:440,centered:!0,icon:me.createElement(ce.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>xe(void 0,null,function*(){(yield Ae({type:"shixunsDetail/cancelRelease",payload:{id:Me==null?void 0:Me.identifier}})).status!==401&&(Ue.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ae({type:"shixunsDetail/getShixunsDetail",payload:{id:Me==null?void 0:Me.identifier}}),Ae({type:"practiceSetting/getCommonData",payload:{id:Me==null?void 0:Me.identifier}}))})})}}),!0):!1}},47257:function(Nn){(function(mn){(function(ze){if(1)Nn.exports=ze();else var We})(function(){var ze,We,xt;return function(){function oe(Ue,Oe,ve){function ce(ye,be){if(!Oe[ye]){if(!Ue[ye]){var me=void 0;if(!be&&me)return require(ye,!0);if(Ce)return Ce(ye,!0);var xe=new Error("Cannot find module '"+ye+"'");throw xe.code="MODULE_NOT_FOUND",xe}var fe=Oe[ye]={exports:{}};Ue[ye][0].call(fe.exports,function(z){var ee=Ue[ye][1][z];return ce(ee||z)},fe,fe.exports,oe,Ue,Oe,ve)}return Oe[ye].exports}for(var Ce=void 0,Ee=0;Ee<ve.length;Ee++)ce(ve[Ee]);return ce}return oe}()({1:[function(oe,Ue,Oe){"use strict";var ve=oe("./browser/client");ve.Buffer=oe("buffer").Buffer,ve.urllib=oe("../shims/xhr"),ve.version=oe("./browser/version").version,Ue.exports=ve},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.slice.js");var Ee=oe("assert"),ye=oe("../common/utils/checkBucketName"),be=ye.checkBucketName,me=Oe;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]:[]}me.useBucket=function(ee){return be(ee),this.options.bucket=ee,this},me.setBucket=function(ee){return be(ee),this.options.bucket=ee,this},me.getBucket=function(){return this.options.bucket},me.deleteBucket=function(){var z=(0,Ce.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"",le),we.next=3,this.request(ue);case 3:if(pe=we.sent,!(pe.status===200||pe.status===204)){we.next=6;break}return we.abrupt("return",{res:pe.res});case 6:return we.next=8,this.requestError(pe);case 8:throw we.sent;case 9:case"end":return we.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketACL=function(){var z=(0,Ce.default)(ce.default.mark(function ae(re,le,ue){var pe,Pe;return ce.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return pe=this._bucketRequestParams("PUT",re,"acl",ue),pe.headers={"x-oss-acl":le},pe.successStatuses=[200],Ne.next=5,this.request(pe);case 5:return Pe=Ne.sent,Ne.abrupt("return",{bucket:Pe.headers.location&&Pe.headers.location.substring(1)||null,res:Pe.res});case 7:case"end":return Ne.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketACL=function(){var z=(0,Ce.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ue=this._bucketRequestParams("GET",re,"acl",le),ue.successStatuses=[200],ue.xmlResponse=!0,we.next=5,this.request(ue);case 5:return pe=we.sent,we.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 we.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketLogging=function(){var z=(0,Ce.default)(ce.default.mark(function ae(re,le,ue){var pe,Pe,we;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return pe=this._bucketRequestParams("PUT",re,"logging",ue),Pe=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(re,`</TargetBucket>
`),le&&(Pe+="<TargetPrefix>".concat(le,`</TargetPrefix>
`)),Pe+=`</LoggingEnabled>
</BucketLoggingStatus>`,pe.content=Pe,pe.mime="xml",pe.successStatuses=[200],Ae.next=9,this.request(pe);case 9:return we=Ae.sent,Ae.abrupt("return",{res:we.res});case 11:case"end":return Ae.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketLogging=function(){var z=(0,Ce.default)(ce.default.mark(function ae(re,le){var ue,pe,Pe;return ce.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ue=this._bucketRequestParams("GET",re,"logging",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ne.next=5,this.request(ue);case 5:return pe=Ne.sent,Pe=pe.data.LoggingEnabled,Ne.abrupt("return",{enable:!!Pe,prefix:Pe&&Pe.TargetPrefix||null,res:pe.res});case 8:case"end":return Ne.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketLogging=function(){var z=(0,Ce.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"logging",le),ue.successStatuses=[204,200],we.next=4,this.request(ue);case 4:return pe=we.sent,we.abrupt("return",{res:pe.res});case 6:case"end":return we.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketCORS=function(){var z=(0,Ce.default)(ce.default.mark(function ae(re,le,ue){var pe,Pe,we,Ne,Ae,Te,Me,Be,Re,Qe;return ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:for(le=le||[],Ee(le.length,"rules is required"),le.forEach(function(qe){Ee(qe.allowedOrigin,"allowedOrigin is required"),Ee(qe.allowedMethod,"allowedMethod is required")}),pe=this._bucketRequestParams("PUT",re,"cors",ue),Pe=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,we=function(ut){Pe+="<AllowedOrigin>".concat(ut,"</AllowedOrigin>")},Ne=function(ut){Pe+="<AllowedMethod>".concat(ut,"</AllowedMethod>")},Ae=function(ut){Pe+="<AllowedHeader>".concat(ut,"</AllowedHeader>")},Te=function(ut){Pe+="<ExposeHeader>".concat(ut,"</ExposeHeader>")},Me=0,Be=le.length;Me<Be;Me++)Re=le[Me],Pe+="<CORSRule>",fe(Re.allowedOrigin).forEach(we),fe(Re.allowedMethod).forEach(Ne),fe(Re.allowedHeader).forEach(Ae),fe(Re.exposeHeader).forEach(Te),Re.maxAgeSeconds&&(Pe+="<MaxAgeSeconds>".concat(Re.maxAgeSeconds,"</MaxAgeSeconds>")),Pe+="</CORSRule>";return Pe+="</CORSConfiguration>",pe.content=Pe,pe.mime="xml",pe.successStatuses=[200],$e.next=16,this.request(pe);case 16:return Qe=$e.sent,$e.abrupt("return",{res:Qe.res});case 18:case"end":return $e.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketCORS=function(){var z=(0,Ce.default)(ce.default.mark(function ae(re,le){var ue,pe,Pe,we;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,Pe=[],pe.data&&pe.data.CORSRule&&(we=pe.data.CORSRule,xe(we)||(we=[we]),we.forEach(function(Te){var Me={};Object.keys(Te).forEach(function(Be){Me[Be.slice(0,1).toLowerCase()+Be.slice(1,Be.length)]=Te[Be]}),Pe.push(Me)})),Ae.abrupt("return",{rules:Pe,res:pe.res});case 9:case"end":return Ae.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketCORS=function(){var z=(0,Ce.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"cors",le),ue.successStatuses=[204],we.next=4,this.request(ue);case 4:return pe=we.sent,we.abrupt("return",{res:pe.res});case 6:case"end":return we.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketReferer=function(){var z=(0,Ce.default)(ce.default.mark(function ae(re,le,ue,pe){var Pe,we,Ne,Ae;return ce.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(Pe=this._bucketRequestParams("PUT",re,"referer",pe),we=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,we+=" <AllowEmptyReferer>".concat(le?"true":"false",`</AllowEmptyReferer>
`),ue&&ue.length>0){for(we+=` <RefererList>
`,Ne=0;Ne<ue.length;Ne++)we+=" <Referer>".concat(ue[Ne],`</Referer>
`);we+=` </RefererList>
`}else we+=` <RefererList />
`;return we+="</RefererConfiguration>",Pe.content=we,Pe.mime="xml",Pe.successStatuses=[200],Me.next=10,this.request(Pe);case 10:return Ae=Me.sent,Me.abrupt("return",{res:Ae.res});case 12:case"end":return Me.stop()}},ae,this)}));function ee(ae,re,le,ue){return z.apply(this,arguments)}return ee}(),me.getBucketReferer=function(){var z=(0,Ce.default)(ce.default.mark(function ae(re,le){var ue,pe,Pe;return ce.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ue=this._bucketRequestParams("GET",re,"referer",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ne.next=5,this.request(ue);case 5:return pe=Ne.sent,Pe=pe.data.RefererList.Referer||null,Pe&&(xe(Pe)||(Pe=[Pe])),Ne.abrupt("return",{allowEmpty:pe.data.AllowEmptyReferer==="true",referers:Pe,res:pe.res});case 9:case"end":return Ne.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketReferer=function(){var z=(0,Ce.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}(),me._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(oe,Ue,Oe){(function(ve,ce){(function(){"use strict";var Ce=oe("@babel/runtime/helpers/interopRequireDefault"),Ee=Ce(oe("@babel/runtime/regenerator")),ye=Ce(oe("@babel/runtime/helpers/asyncToGenerator"));oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.symbol.js"),oe("core-js/modules/es.symbol.description.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.to-string.js");var be=oe("debug")("ali-oss"),me=oe("xml2js"),xe=oe("agentkeepalive"),fe=oe("merge-descriptors"),z=oe("platform"),ee=oe("utility"),ae=oe("urllib"),re=oe("./version"),le=oe("bowser"),ue=oe("../common/signUtils"),pe=oe("../common/client/initOptions"),Pe=oe("../common/utils/createRequest"),we=Pe.createRequest,Ne=oe("../common/utils/encoder"),Ae=Ne.encoder,Te=oe("../common/client/getReqUrl"),Me=Te.getReqUrl,Be=oe("../common/utils/setSTSToken"),Re=Be.setSTSToken,Qe=oe("../common/utils/retry"),He=Qe.retry,$e=oe("../common/utils/isFunction"),qe=$e.isFunction,ut=new xe;function ct(){var wt=z.name,mt=z.version;wt&&wt.toLowerCase&&wt.toLowerCase()==="ie"&&mt.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function yt(){return location&&location.protocol==="https:"}function _e(wt,mt){if(ct(),!(this instanceof _e))return new _e(wt,mt);wt&&wt.inited?this.options=wt:this.options=_e.initOptions(wt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ae,this.agent=this.options.agent||ut),this.ctx=mt,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Ue.exports=_e,_e.initOptions=function(mt){mt.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var vt=Object.assign({secure:yt(),useFetch:!1},mt);return pe(vt)};var st=_e.prototype;st.debug=be,fe(st,oe("./object")),fe(st,oe("./bucket")),fe(st,oe("../common/bucket/getBucketWebsite")),fe(st,oe("../common/bucket/putBucketWebsite")),fe(st,oe("../common/bucket/deleteBucketWebsite")),fe(st,oe("../common/bucket/getBucketLifecycle")),fe(st,oe("../common/bucket/putBucketLifecycle")),fe(st,oe("../common/bucket/deleteBucketLifecycle")),fe(st,oe("../common/bucket/putBucketVersioning")),fe(st,oe("../common/bucket/getBucketVersioning")),fe(st,oe("../common/bucket/getBucketInventory")),fe(st,oe("../common/bucket/deleteBucketInventory")),fe(st,oe("../common/bucket/listBucketInventory")),fe(st,oe("../common/bucket/putBucketInventory")),fe(st,oe("../common/bucket/abortBucketWorm")),fe(st,oe("../common/bucket/completeBucketWorm")),fe(st,oe("../common/bucket/extendBucketWorm")),fe(st,oe("../common/bucket/getBucketWorm")),fe(st,oe("../common/bucket/initiateBucketWorm")),fe(st,oe("./managed-upload")),fe(st,oe("../common/multipart-copy")),fe(st,oe("../common/multipart")),fe(st,oe("../common/parallel")),st.signature=function(mt){return this.debug("authorization stringToSign: %s",mt,"info"),ue.computeSignature(this.options.accessKeySecret,mt,this.options.headerEncoding)},st._getReqUrl=Me,st.authorization=function(mt,vt,St,Nt){var Ft=ue.buildCanonicalString(mt.toUpperCase(),vt,{headers:Nt,parameters:St});return ue.authorization(this.options.accessKeyId,this.options.accessKeySecret,Ft,this.options.headerEncoding)},st.request=function(){var wt=(0,ye.default)(Ee.default.mark(function mt(vt){var St=this;return Ee.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:if(!this.options.retryMax){Ft.next=6;break}return Ft.next=3,He(pt.bind(this),this.options.retryMax,{errorHandler:function(Pt){var Et=function(Ct){if(vt.stream)return!1;var nt=[-1,-2].includes(Ct.status),ht=St.options.requestErrorRetryHandle||function(){return!0};return nt&&ht(Ct)};return!!Et(Pt)}})(vt);case 3:return Ft.abrupt("return",Ft.sent);case 6:return Ft.abrupt("return",pt.call(this,vt));case 7:case"end":return Ft.stop()}},mt,this)}));return function(mt){return wt.apply(this,arguments)}}();function pt(wt){return bt.apply(this,arguments)}function bt(){return bt=(0,ye.default)(Ee.default.mark(function wt(mt){var vt,St,Nt,Ft,Kt,Pt;return Ee.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(!(this.options.stsToken&&qe(this.options.refreshSTSToken))){at.next=3;break}return at.next=3,Re.call(this);case 3:return vt=we.call(this,mt),this.options.useFetch||(vt.params.mode="disable-fetch"),Ft=!!mt.stream,at.prev=6,at.next=9,this.urllib.request(vt.url,vt.params);case 9:St=at.sent,this.debug("response %s %s, got %s, headers: %j",mt.method,vt.url,St.status,St.headers,"info"),at.next=16;break;case 13:at.prev=13,at.t0=at.catch(6),Nt=at.t0;case 16:if(!(St&&mt.successStatuses&&mt.successStatuses.indexOf(St.status)===-1)){at.next=28;break}return at.next=19,this.requestError(St);case 19:if(Kt=at.sent,!(Kt.code==="RequestTimeTooSkewed"&&!Ft)){at.next=25;break}return this.options.amendTimeSkewed=+new Date(Kt.serverTime)-new Date,at.next=24,this.request(mt);case 24:return at.abrupt("return",at.sent);case 25:Kt.params=mt,at.next=32;break;case 28:if(!Nt){at.next=32;break}return at.next=31,this.requestError(Nt);case 31:Kt=at.sent;case 32:if(!Kt){at.next=34;break}throw Kt;case 34:if(!mt.xmlResponse){at.next=39;break}return at.next=37,this.parseXML(St.data);case 37:Pt=at.sent,St.data=Pt;case 39:return at.abrupt("return",St);case 40:case"end":return at.stop()}},wt,this,[[6,13]])})),bt.apply(this,arguments)}st._getResource=function(mt){var vt="/";return mt.bucket&&(vt+="".concat(mt.bucket,"/")),mt.object&&(vt+=Ae(mt.object,this.options.headerEncoding)),vt},st._escape=function(mt){return ee.encodeURIComponent(mt).replace(/%2F/g,"/")},st._getUserAgent=function(){var mt=ce&&ce.browser?"js":"nodejs",vt="aliyun-sdk-".concat(mt,"/").concat(re.version),St=z.description;return!St&&ce&&(St="Node.js ".concat(ce.version.slice(1)," on ").concat(ce.platform," ").concat(ce.arch)),this._checkUserAgent("".concat(vt," ").concat(St))},st._checkUserAgent=function(mt){var vt=mt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return vt},st.checkBrowserAndVersion=function(mt,vt){return le.name===mt&&le.version.split(".")[0]===vt},st.parseXML=function(mt){return new Promise(function(vt,St){ve.isBuffer(mt)&&(mt=mt.toString()),me.parseString(mt,{explicitRoot:!1,explicitArray:!1},function(Nt,Ft){Nt?St(Nt):vt(Ft)})})},st.requestError=function(){var wt=(0,ye.default)(Ee.default.mark(function vt(St){var Nt,Ft,Kt,Pt;return Ee.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(Nt=null,!(!St.data||!St.data.length)){at.next=5;break}St.status===-1||St.status===-2?(Nt=new Error(St.message),Nt.name=St.name,Nt.status=St.status,Nt.code=St.name):(St.status===404?(Nt=new Error("Object not exists"),Nt.name="NoSuchKeyError",Nt.status=404,Nt.code="NoSuchKey"):St.status===412?(Nt=new Error("Pre condition failed"),Nt.name="PreconditionFailedError",Nt.status=412,Nt.code="PreconditionFailed"):(Nt=new Error("Unknow error, status: ".concat(St.status)),Nt.name="UnknownError",Nt.status=St.status),Nt.requestId=St.headers["x-oss-request-id"],Nt.host=""),at.next=32;break;case 5:return Ft=String(St.data),this.debug("request response error data: %s",Ft,"error"),at.prev=7,at.next=10,this.parseXML(Ft);case 10:if(at.t0=at.sent,at.t0){at.next=13;break}at.t0={};case 13:Kt=at.t0,at.next=23;break;case 16:return at.prev=16,at.t1=at.catch(7),this.debug(Ft,"error"),at.t1.message+=`
raw xml: `.concat(Ft),at.t1.status=St.status,at.t1.requestId=St.headers["x-oss-request-id"],at.abrupt("return",at.t1);case 23:Pt=Kt.Message||"unknow request error, status: ".concat(St.status),Kt.Condition&&(Pt+=" (condition: ".concat(Kt.Condition,")")),Nt=new Error(Pt),Nt.name=Kt.Code?"".concat(Kt.Code,"Error"):"UnknownError",Nt.status=St.status,Nt.code=Kt.Code,Nt.requestId=Kt.RequestId,Nt.hostId=Kt.HostId,Nt.serverTime=Kt.ServerTime;case 32:return this.debug("generate error %j",Nt,"error"),at.abrupt("return",Nt);case 34:case"end":return at.stop()}},vt,this,[[7,16]])}));function mt(vt){return wt.apply(this,arguments)}return mt}()}).call(this)}).call(this,{isBuffer:oe("../../node_modules/is-buffer/index.js")},oe("_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(oe,Ue,Oe){(function(ve){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),Ce=ce(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.typed-array.uint8-array.js"),oe("core-js/modules/es.typed-array.copy-within.js"),oe("core-js/modules/es.typed-array.every.js"),oe("core-js/modules/es.typed-array.fill.js"),oe("core-js/modules/es.typed-array.filter.js"),oe("core-js/modules/es.typed-array.find.js"),oe("core-js/modules/es.typed-array.find-index.js"),oe("core-js/modules/es.typed-array.for-each.js"),oe("core-js/modules/es.typed-array.includes.js"),oe("core-js/modules/es.typed-array.index-of.js"),oe("core-js/modules/es.typed-array.iterator.js"),oe("core-js/modules/es.typed-array.join.js"),oe("core-js/modules/es.typed-array.last-index-of.js"),oe("core-js/modules/es.typed-array.map.js"),oe("core-js/modules/es.typed-array.reduce.js"),oe("core-js/modules/es.typed-array.reduce-right.js"),oe("core-js/modules/es.typed-array.reverse.js"),oe("core-js/modules/es.typed-array.set.js"),oe("core-js/modules/es.typed-array.slice.js"),oe("core-js/modules/es.typed-array.some.js"),oe("core-js/modules/es.typed-array.sort.js"),oe("core-js/modules/es.typed-array.subarray.js"),oe("core-js/modules/es.typed-array.to-locale-string.js"),oe("core-js/modules/es.typed-array.to-string.js");var Ee=ce(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("util"),be=oe("path"),me=oe("mime"),xe=oe("copy-to"),fe=oe("../common/utils/isBlob"),z=fe.isBlob,ee=oe("../common/utils/isFile"),ae=ee.isFile,re=oe("../common/utils/isBuffer"),le=re.isBuffer,ue=Oe;ue.multipartUpload=function(){var Ae=(0,Ee.default)(Ce.default.mark(function Me(Be,Re){var Qe,He,$e,qe,ut,ct,yt,_e,st,pt=arguments;return Ce.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(Qe=pt.length>2&&pt[2]!==void 0?pt[2]:{},this.resetCancelFlag(),Qe.disabledMD5=Qe.disabledMD5===void 0?!0:!!Qe.disabledMD5,!(Qe.checkpoint&&Qe.checkpoint.uploadId)){wt.next=8;break}return Re&&ae(Re)&&(Qe.checkpoint.file=Re),wt.next=7,this._resumeMultipart(Qe.checkpoint,Qe);case 7:return wt.abrupt("return",wt.sent);case 8:return He=102400,Qe.mime||(ae(Re)?Qe.mime=me.getType(be.extname(Re.name)):z(Re)?Qe.mime=Re.type:le(Re)?Qe.mime="":Qe.mime=me.getType(be.extname(Re))),Qe.headers=Qe.headers||{},this._convertMetaToHeaders(Qe.meta,Qe.headers),wt.next=14,this._getFileSize(Re);case 14:if($e=wt.sent,!($e<He)){wt.next=26;break}return Qe.contentLength=$e,wt.next=19,this.put(Be,Re,Qe);case 19:if(qe=wt.sent,!(Qe&&Qe.progress)){wt.next=23;break}return wt.next=23,Qe.progress(1);case 23:return ut={res:qe.res,bucket:this.options.bucket,name:Be,etag:qe.res.headers.etag},(Qe.headers&&Qe.headers["x-oss-callback"]||Qe.callback)&&(ut.data=qe.data),wt.abrupt("return",ut);case 26:if(!(Qe.partSize&&parseInt(Qe.partSize,10)!==Qe.partSize)){wt.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Qe.partSize&&Qe.partSize<He)){wt.next=30;break}throw new Error("partSize must not be smaller than ".concat(He));case 30:return wt.next=32,this.initMultipartUpload(Be,Qe);case 32:if(ct=wt.sent,yt=ct.uploadId,_e=this._getPartSize($e,Qe.partSize),st={file:Re,name:Be,fileSize:$e,partSize:_e,uploadId:yt,doneParts:[]},!(Qe&&Qe.progress)){wt.next=39;break}return wt.next=39,Qe.progress(0,st,ct.res);case 39:return wt.next=41,this._resumeMultipart(st,Qe);case 41:return wt.abrupt("return",wt.sent);case 42:case"end":return wt.stop()}},Me,this)}));function Te(Me,Be){return Ae.apply(this,arguments)}return Te}(),ue._resumeMultipart=function(){var Ae=(0,Ee.default)(Ce.default.mark(function Me(Be,Re){var Qe,He,$e,qe,ut,ct,yt,_e,st,pt,bt,wt,mt,vt,St,Nt,Ft,Kt,Pt;return Ce.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(Qe=this,!this.isCancel()){at.next=3;break}throw this._makeCancelEvent();case 3:return He=Be.file,$e=Be.fileSize,qe=Be.partSize,ut=Be.uploadId,ct=Be.doneParts,yt=Be.name,_e=[],ct.length>0&&xe(ct).to(_e),st=this._divideParts($e,qe),pt=st.length,bt=!1,wt=function(nt,ht){return new Promise(function(){var Mt=(0,Ee.default)(Ce.default.mark(function gt(rt,Je){var Xe,Ve,tt,Ze,je;return Ce.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(Ye.prev=0,nt.isCancel()){Ye.next=29;break}return Xe=st[ht-1],Ye.next=5,nt._createBuffer(He,Xe.start,Xe.end);case 5:return Ve=Ye.sent,tt={content:Ve,size:Xe.end-Xe.start},Ye.prev=7,Ye.next=10,nt._uploadPart(yt,ut,ht,tt,Re);case 10:Ze=Ye.sent,Ye.next=18;break;case 13:if(Ye.prev=13,Ye.t0=Ye.catch(7),Ye.t0.status!==404){Ye.next=17;break}throw nt._makeAbortEvent();case 17:throw Ye.t0;case 18:if(!(!nt.isCancel()&&!bt)){Ye.next=26;break}if(Be.doneParts.push({number:ht,etag:Ze.res.headers.etag}),!Re.progress){Ye.next=23;break}return Ye.next=23,Re.progress(ct.length/(pt+1),Be,Ze.res);case 23:rt({number:ht,etag:Ze.res.headers.etag}),Ye.next=27;break;case 26:rt();case 27:Ye.next=30;break;case 29:rt();case 30:Ye.next=41;break;case 32:Ye.prev=32,Ye.t1=Ye.catch(0),je=new Error,je.name=Ye.t1.name,je.message=Ye.t1.message,je.stack=Ye.t1.stack,je.partNum=ht,xe(Ye.t1).to(je),Je(je);case 41:case"end":return Ye.stop()}},gt,null,[[0,32],[7,13]])}));return function(gt,rt){return Mt.apply(this,arguments)}}())},mt=Array.from(new Array(pt),function(Ct,nt){return nt+1}),vt=_e.map(function(Ct){return Ct.number}),St=mt.filter(function(Ct){return vt.indexOf(Ct)<0}),Nt=5,Ft=Re.parallel||Nt,at.next=17,this._parallel(St,Ft,function(Ct){return new Promise(function(nt,ht){wt(Qe,Ct).then(function(Mt){Mt&&_e.push(Mt),nt()}).catch(function(Mt){ht(Mt)})})});case 17:if(Kt=at.sent,bt=!0,Pt=Kt.find(function(Ct){return Ct.name==="abort"}),!Pt){at.next=22;break}throw Pt;case 22:if(!this.isCancel()){at.next=25;break}throw wt=null,this._makeCancelEvent();case 25:if(!(Kt&&Kt.length>0)){at.next=28;break}throw Kt[0].message="Failed to upload some parts with error: ".concat(Kt[0].toString()," part_num: ").concat(Kt[0].partNum),Kt[0];case 28:return at.next=30,this.completeMultipartUpload(yt,ut,_e,Re);case 30:return at.abrupt("return",at.sent);case 31:case"end":return at.stop()}},Me,this)}));function Te(Me,Be){return Ae.apply(this,arguments)}return Te}(),ue._getFileSize=function(){var Ae=(0,Ee.default)(Ce.default.mark(function Me(Be){return Ce.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()}},Me)}));function Te(Me){return Ae.apply(this,arguments)}return Te}();var pe=oe("stream"),Pe=pe.Readable;function we(Ae,Te){if(!(this instanceof we))return new we(Ae,Te);Pe.call(this,Te),this.file=Ae,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ye.inherits(we,Pe),we.prototype.readFileAndPush=function(Te){if(this.fileBuffer)for(var Me=!0;Me&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Be=this.start,Re=Be+Te;Re=Re>this.fileBuffer.length?this.fileBuffer.length:Re,this.start=Re,Me=this.push(this.fileBuffer.slice(Be,Re))}},we.prototype._read=function(Te){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 Me=16*1024;Te=Te||Me;var Be=this;this.reader.onload=function(Qe){Be.fileBuffer=ve.from(new Uint8Array(Qe.target.result)),Be.file=null,Be.readFileAndPush(Te)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(Te)};function Ne(Ae){return Ae.arrayBuffer?Ae.arrayBuffer():new Promise(function(Te,Me){var Be=new FileReader;Be.onload=function(Re){Te(Re.target.result)},Be.onerror=function(Re){Me(Re)},Be.readAsArrayBuffer(Ae)})}ue._createBuffer=function(){var Ae=(0,Ee.default)(Ce.default.mark(function Me(Be,Re,Qe){var He,$e;return Ce.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(!(z(Be)||ae(Be))){ut.next=8;break}return He=Be.slice(Re,Qe),ut.next=4,Ne(He);case 4:return $e=ut.sent,ut.abrupt("return",ve.from($e));case 8:if(!le(Be)){ut.next=12;break}return ut.abrupt("return",Be.subarray(Re,Qe));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ut.stop()}},Me)}));function Te(Me,Be,Re){return Ae.apply(this,arguments)}return Te}(),ue._getPartSize=function(Te,Me){var Be=1e4,Re=1*1024*1024;Me||(Me=Re);var Qe=Math.ceil(Te/Be);return Me<Qe&&(Me=Qe,console.warn("partSize has been set to ".concat(Me,", because the partSize you provided causes partNumber to be greater than 10,000"))),Me},ue._divideParts=function(Te,Me){for(var Be=Math.ceil(Te/Me),Re=[],Qe=0;Qe<Be;Qe++){var He=Me*Qe,$e=Math.min(He+Me,Te);Re.push({start:He,end:$e})}return Re}}).call(this)}).call(this,oe("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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.number.constructor.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.promise.js");var ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("fs"),ye=oe("copy-to"),be=oe("path"),me=oe("mime"),xe=oe("../common/callback"),fe=oe("merge-descriptors"),z=oe("../common/utils/isBlob"),ee=z.isBlob,ae=oe("../common/utils/isFile"),re=ae.isFile,le=oe("../common/utils/isBuffer"),ue=le.isBuffer,pe=oe("../common/utils/obj2xml"),Pe=pe.obj2xml,we=Oe;we.append=function(){var Ne=(0,Ce.default)(ce.default.mark(function Te(Me,Be,Re){var Qe;return ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return Re=Re||{},Re.position===void 0&&(Re.position="0"),Re.subres={append:"",position:Re.position},Re.method="POST",$e.next=6,this.put(Me,Be,Re);case 6:return Qe=$e.sent,Qe.nextAppendPosition=Qe.res.headers["x-oss-next-append-position"],$e.abrupt("return",Qe);case 9:case"end":return $e.stop()}},Te,this)}));function Ae(Te,Me,Be){return Ne.apply(this,arguments)}return Ae}(),we.put=function(){var Ne=(0,Ce.default)(ce.default.mark(function Te(Me,Be,Re){var Qe,He,$e,qe,ut;return ce.default.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(Re=Re||{},Re.disabledMD5=Re.disabledMD5===void 0?!0:!!Re.disabledMD5,Re.headers=Re.headers||{},Me=this._objectName(Me),!ue(Be)){yt.next=8;break}Qe=Be,yt.next=19;break;case 8:if(!(ee(Be)||re(Be))){yt.next=18;break}return Re.mime||(re(Be)?Re.mime=me.getType(be.extname(Be.name)):Re.mime=Be.type),yt.next=12,this._createBuffer(Be,0,Be.size);case 12:return Qe=yt.sent,yt.next=15,this._getFileSize(Be);case 15:Re.contentLength=yt.sent,yt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Re.meta,Re.headers),He=Re.method||"PUT",$e=this._objectRequestParams(He,Me,Re),xe.encodeCallback($e,Re),$e.mime=Re.mime,$e.disabledMD5=Re.disabledMD5,$e.content=Qe,$e.successStatuses=[200],yt.next=29,this.request($e);case 29:return qe=yt.sent,ut={name:Me,url:this._objectUrl(Me),res:qe.res},$e.headers&&$e.headers["x-oss-callback"]&&(ut.data=JSON.parse(qe.data.toString())),yt.abrupt("return",ut);case 33:case"end":return yt.stop()}},Te,this)}));function Ae(Te,Me,Be){return Ne.apply(this,arguments)}return Ae}(),we.putStream=function(){var Ne=(0,Ce.default)(ce.default.mark(function Te(Me,Be,Re){var Qe,He,$e,qe;return ce.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Re=Re||{},Re.headers=Re.headers||{},Me=this._objectName(Me),Re.contentLength?Re.headers["Content-Length"]=Re.contentLength:Re.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Re.meta,Re.headers),Qe=Re.method||"PUT",He=this._objectRequestParams(Qe,Me,Re),xe.encodeCallback(He,Re),He.mime=Re.mime,He.stream=Be,He.successStatuses=[200],ct.next=13,this.request(He);case 13:return $e=ct.sent,qe={name:Me,url:this._objectUrl(Me),res:$e.res},He.headers&&He.headers["x-oss-callback"]&&(qe.data=JSON.parse($e.data.toString())),ct.abrupt("return",qe);case 17:case"end":return ct.stop()}},Te,this)}));function Ae(Te,Me,Be){return Ne.apply(this,arguments)}return Ae}(),fe(we,oe("../common/object/copyObject")),fe(we,oe("../common/object/getObjectTagging")),fe(we,oe("../common/object/putObjectTagging")),fe(we,oe("../common/object/deleteObjectTagging")),fe(we,oe("../common/image")),fe(we,oe("../common/object/getBucketVersions")),fe(we,oe("../common/object/getACL")),fe(we,oe("../common/object/putACL")),fe(we,oe("../common/object/head")),fe(we,oe("../common/object/delete")),fe(we,oe("../common/object/get")),fe(we,oe("../common/object/putSymlink")),fe(we,oe("../common/object/getSymlink")),fe(we,oe("../common/object/deleteMulti")),fe(we,oe("../common/object/getObjectMeta")),fe(we,oe("../common/object/getObjectUrl")),fe(we,oe("../common/object/generateObjectUrl")),fe(we,oe("../common/object/signatureUrl")),fe(we,oe("../common/object/asyncSignatureUrl")),we.putMeta=function(){var Ne=(0,Ce.default)(ce.default.mark(function Te(Me,Be,Re){var Qe;return ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,this.copy(Me,Me,{meta:Be||{},timeout:Re&&Re.timeout,ctx:Re&&Re.ctx});case 2:return Qe=$e.sent,$e.abrupt("return",Qe);case 4:case"end":return $e.stop()}},Te,this)}));function Ae(Te,Me,Be){return Ne.apply(this,arguments)}return Ae}(),we.list=function(){var Ne=(0,Ce.default)(ce.default.mark(function Te(Me,Be){var Re,Qe,He,$e,qe;return ce.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Re=this._objectRequestParams("GET","",Be),Re.query=Me,Re.xmlResponse=!0,Re.successStatuses=[200],ct.next=6,this.request(Re);case 6:return Qe=ct.sent,He=Qe.data.Contents||[],$e=this,He&&(Array.isArray(He)||(He=[He]),He=He.map(function(yt){return{name:yt.Key,url:$e._objectUrl(yt.Key),lastModified:yt.LastModified,etag:yt.ETag,type:yt.Type,size:Number(yt.Size),storageClass:yt.StorageClass,owner:{id:yt.Owner.ID,displayName:yt.Owner.DisplayName}}})),qe=Qe.data.CommonPrefixes||null,qe&&(Array.isArray(qe)||(qe=[qe]),qe=qe.map(function(yt){return yt.Prefix})),ct.abrupt("return",{res:Qe.res,objects:He,prefixes:qe,nextMarker:Qe.data.NextMarker||null,isTruncated:Qe.data.IsTruncated==="true"});case 13:case"end":return ct.stop()}},Te,this)}));function Ae(Te,Me){return Ne.apply(this,arguments)}return Ae}(),we.listV2=function(){var Ne=(0,Ce.default)(ce.default.mark(function Te(Me){var Be,Re,Qe,He,$e,qe,ut,ct=arguments;return ce.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Be=ct.length>1&&ct[1]!==void 0?ct[1]:{},Re=Me["continuation-token"]||Me.continuationToken,Re&&(Be.subres=Object.assign({"continuation-token":Re},Be.subres)),Qe=this._objectRequestParams("GET","",Be),Qe.query=Object.assign({"list-type":2},Me),delete Qe.query["continuation-token"],delete Qe.query.continuationToken,Qe.xmlResponse=!0,Qe.successStatuses=[200],_e.next=11,this.request(Qe);case 11:return He=_e.sent,$e=He.data.Contents||[],qe=this,$e&&(Array.isArray($e)||($e=[$e]),$e=$e.map(function(st){var pt=null;return st.Owner&&(pt={id:st.Owner.ID,displayName:st.Owner.DisplayName}),{name:st.Key,url:qe._objectUrl(st.Key),lastModified:st.LastModified,etag:st.ETag,type:st.Type,size:Number(st.Size),storageClass:st.StorageClass,owner:pt}})),ut=He.data.CommonPrefixes||null,ut&&(Array.isArray(ut)||(ut=[ut]),ut=ut.map(function(st){return st.Prefix})),_e.abrupt("return",{res:He.res,objects:$e,prefixes:ut,isTruncated:He.data.IsTruncated==="true",keyCount:+He.data.KeyCount,continuationToken:He.data.ContinuationToken||null,nextContinuationToken:He.data.NextContinuationToken||null});case 18:case"end":return _e.stop()}},Te,this)}));function Ae(Te){return Ne.apply(this,arguments)}return Ae}(),we.restore=function(){var Ne=(0,Ce.default)(ce.default.mark(function Te(Me){var Be,Re,Qe,He,$e=arguments;return ce.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return Be=$e.length>1&&$e[1]!==void 0?$e[1]:{type:"Archive"},Be=Be||{},Be.subres=Object.assign({restore:""},Be.subres),Be.versionId&&(Be.subres.versionId=Be.versionId),Re=this._objectRequestParams("POST",Me,Be),Be.type==="ColdArchive"&&(Qe={RestoreRequest:{Days:Be.Days?Be.Days:2,JobParameters:{Tier:Be.JobParameters?Be.JobParameters:"Standard"}}},Re.content=Pe(Qe,{headers:!0}),Re.mime="xml"),Re.successStatuses=[202],ut.next=9,this.request(Re);case 9:return He=ut.sent,ut.abrupt("return",{res:He.res});case 11:case"end":return ut.stop()}},Te,this)}));function Ae(Te){return Ne.apply(this,arguments)}return Ae}(),we._objectUrl=function(Ae){return this._getReqUrl({bucket:this.options.bucket,object:Ae})},we._objectRequestParams=function(Ae,Te,Me){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Me=Me||{},Te=this._objectName(Te);var Be={object:Te,bucket:this.options.bucket,method:Ae,subres:Me&&Me.subres,timeout:Me&&Me.timeout,ctx:Me&&Me.ctx};return Me.headers&&(Be.headers={},ye(Me.headers).to(Be.headers)),Be},we._objectName=function(Ae){return Ae.replace(/^\/+/,"")},we._convertMetaToHeaders=function(Ae,Te){Ae&&Object.keys(Ae).forEach(function(Me){Te["x-oss-meta-".concat(Me)]=Ae[Me]})},we._deleteFileSafe=function(Ae){var Te=this;return new Promise(function(Me){Ee.exists(Ae,function(Be){Be?Ee.unlink(Ae,function(Re){Re&&Te.debug("unlink %j error: %s",Ae,Re,"error"),Me()}):Me()})})}},{"../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(oe,Ue,Oe){"use strict";Oe.version="6.18.1"},{}],7:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.abortBucketWorm=void 0;var Ee=oe("../utils/checkBucketName");function ye(me,xe){return be.apply(this,arguments)}function be(){return be=(0,Ce.default)(ce.default.mark(function me(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()}},me,this)})),be.apply(this,arguments)}Oe.abortBucketWorm=ye},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.completeBucketWorm=void 0;var Ee=oe("../utils/checkBucketName");function ye(me,xe,fe){return be.apply(this,arguments)}function be(){return be=(0,Ce.default)(ce.default.mark(function me(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()}},me,this)})),be.apply(this,arguments)}Oe.completeBucketWorm=ye},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.deleteBucketInventory=void 0;var Ee=oe("../utils/checkBucketName");function ye(me,xe){return be.apply(this,arguments)}function be(){return be=(0,Ce.default)(ce.default.mark(function me(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()}},me,this)})),be.apply(this,arguments)}Oe.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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),ye=Ee.checkBucketName,be=Oe;be.deleteBucketLifecycle=function(){var me=(0,Ce.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 me.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),ye=Ee.checkBucketName,be=Oe;be.deleteBucketWebsite=function(){var me=(0,Ce.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 me.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.extendBucketWorm=void 0;var Ee=oe("../utils/checkBucketName"),ye=oe("../utils/obj2xml");function be(xe,fe,z,ee){return me.apply(this,arguments)}function me(){return me=(0,Ce.default)(ce.default.mark(function xe(fe,z,ee,ae){var re,le,ue;return ce.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.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],Pe.next=8,this.request(re);case 8:return ue=Pe.sent,Pe.abrupt("return",{res:ue.res,status:ue.status});case 10:case"end":return Pe.stop()}},xe,this)})),me.apply(this,arguments)}Oe.extendBucketWorm=be},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.getBucketInventory=void 0;var Ee=oe("../utils/checkBucketName"),ye=oe("../utils/formatInventoryConfig");function be(xe,fe){return me.apply(this,arguments)}function me(){return me=(0,Ce.default)(ce.default.mark(function xe(fe,z){var ee,ae,re,le,ue=arguments;return ce.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.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,Pe.next=8,this.request(re);case 8:return le=Pe.sent,Pe.abrupt("return",{status:le.status,res:le.res,inventory:ye.formatInventoryConfig(le.data)});case 10:case"end":return Pe.stop()}},xe,this)})),me.apply(this,arguments)}Oe.getBucketInventory=be},{"../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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),ye=Ee.checkBucketName,be=oe("../utils/isArray"),me=be.isArray,xe=oe("../utils/formatObjKey"),fe=xe.formatObjKey,z=Oe;z.getBucketLifecycle=function(){var ee=(0,Ce.default)(ce.default.mark(function re(le,ue){var pe,Pe,we;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 Pe=Ae.sent,we=Pe.data.Rule||null,we&&(me(we)||(we=[we]),we=we.map(function(Te){return Te.ID&&(Te.id=Te.ID,delete Te.ID),Te.Tag&&!me(Te.Tag)&&(Te.Tag=[Te.Tag]),fe(Te,"firstLowerCase")})),Ae.abrupt("return",{rules:we,res:Pe.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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),ye=Ee.checkBucketName,be=Oe;be.getBucketVersioning=function(){var me=(0,Ce.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 me.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),ye=Ee.checkBucketName,be=oe("../utils/isObject"),me=be.isObject,xe=Oe;xe.getBucketWebsite=function(){var fe=(0,Ce.default)(ce.default.mark(function ee(ae,re){var le,ue,pe;return ce.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ye(ae),le=this._bucketRequestParams("GET",ae,"website",re),le.successStatuses=[200],le.xmlResponse=!0,we.next=6,this.request(le);case 6:return ue=we.sent,pe=[],ue.data.RoutingRules&&ue.data.RoutingRules.RoutingRule&&(me(ue.data.RoutingRules.RoutingRule)?pe=[ue.data.RoutingRules.RoutingRule]:pe=ue.data.RoutingRules.RoutingRule),we.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 we.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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.getBucketWorm=void 0;var Ee=oe("../utils/checkBucketName"),ye=oe("../utils/dataFix");function be(xe,fe){return me.apply(this,arguments)}function me(){return me=(0,Ce.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)})),me.apply(this,arguments)}Oe.getBucketWorm=be},{"../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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.initiateBucketWorm=void 0;var Ee=oe("../utils/obj2xml"),ye=oe("../utils/checkBucketName");function be(xe,fe,z){return me.apply(this,arguments)}function me(){return me=(0,Ce.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)})),me.apply(this,arguments)}Oe.initiateBucketWorm=be},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.listBucketInventory=void 0;var Ee=oe("../utils/checkBucketName"),ye=oe("../utils/formatInventoryConfig");function be(xe){return me.apply(this,arguments)}function me(){return me=(0,Ce.default)(ce.default.mark(function xe(fe){var z,ee,ae,re,le,ue,pe,Pe,we=arguments;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return z=we.length>1&&we[1]!==void 0?we[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,Pe=le.status,Ae.abrupt("return",{isTruncated:ue.IsTruncated==="true",nextContinuationToken:ue.NextContinuationToken,inventoryList:ye.formatInventoryConfig(ue.InventoryConfiguration,!0),status:Pe,res:pe});case 12:case"end":return Ae.stop()}},xe,this)})),me.apply(this,arguments)}Oe.listBucketInventory=be},{"../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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.putBucketInventory=void 0;var Ee=oe("../utils/checkBucketName"),ye=oe("../utils/obj2xml");function be(xe,fe){return me.apply(this,arguments)}function me(){return me=(0,Ce.default)(ce.default.mark(function xe(fe,z){var ee,ae,re,le,ue,pe,Pe,we,Ne,Ae,Te,Me=arguments;return ce.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return ee=Me.length>2&&Me[2]!==void 0?Me[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:::",Pe="acs:ram::".concat(re.accountId,":role/"),we={InventoryConfiguration:{Id:z.id,IsEnabled:z.isEnabled,Filter:{Prefix:z.prefix||""},Destination:{OSSBucketDestination:{Format:re.format,AccountId:re.accountId,RoleArn:"".concat(Pe).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)||[]}}},Ne=ye.obj2xml(we,{headers:!0,firstUpperCase:!0}),Ae=this._bucketRequestParams("PUT",fe,ae,ee),Ae.successStatuses=[200],Ae.mime="xml",Ae.content=Ne,Re.next=14,this.request(Ae);case 14:return Te=Re.sent,Re.abrupt("return",{status:Te.status,res:Te.res});case 16:case"end":return Re.stop()}},xe,this)})),me.apply(this,arguments)}Oe.putBucketInventory=be},{"../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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.array.includes.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),ye=Ee.checkBucketName,be=oe("../utils/isArray"),me=be.isArray,xe=oe("../utils/deepCopy"),fe=xe.deepCopy,z=oe("../utils/isObject"),ee=z.isObject,ae=oe("../utils/obj2xml"),re=ae.obj2xml,le=oe("../utils/checkObjectTag"),ue=le.checkObjectTag,pe=oe("../utils/getStrBytesCount"),Pe=pe.getStrBytesCount,we=Oe;we.putBucketLifecycle=function(){var Be=(0,Ce.default)(ce.default.mark(function Qe(He,$e,qe){var ut,ct,yt,_e,st;return ce.default.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(ye(He),me($e)){bt.next=3;break}throw new Error("rules must be Array");case 3:return ut=this._bucketRequestParams("PUT",He,"lifecycle",qe),ct=[],yt={LifecycleConfiguration:{Rule:ct}},$e.forEach(function(wt){Ne(wt),Me(wt),wt.id&&(wt.ID=wt.id,delete wt.id),ct.push(wt)}),_e=re(yt,{headers:!0,firstUpperCase:!0}),ut.content=_e,ut.mime="xml",ut.successStatuses=[200],bt.next=13,this.request(ut);case 13:return st=bt.sent,bt.abrupt("return",{res:st.res});case 15:case"end":return bt.stop()}},Qe,this)}));function Re(Qe,He,$e){return Be.apply(this,arguments)}return Re}();function Ne(Be){Be.days&&(Be.expiration={days:Be.days}),Be.date&&(Be.expiration={createdBeforeDate:Be.date})}function Ae(Be,Re){var Qe=Be.days,He=Be.createdBeforeDate;if(!Qe&&!He)throw new Error("".concat(Re," must includes days or createdBeforeDate"));if(Qe&&!/^[1-9][0-9]*$/.test(Qe))throw new Error("days must be a positive integer");if(He&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(He))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function Te(Be){if(!me(Be)&&!ee(Be))throw new Error("tag must be Object or Array");Be=ee(Be)?[Be]:Be;var Re={},Qe=fe(Be);Qe.forEach(function(He){Re[He.key]=He.value}),ue(Re)}function Me(Be){if(Be.id&&Pe(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");Te(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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.includes.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),ye=Ee.checkBucketName,be=oe("../utils/obj2xml"),me=be.obj2xml,xe=Oe;xe.putBucketVersioning=function(){var fe=(0,Ce.default)(ce.default.mark(function ee(ae,re){var le,ue,pe,Pe,we=arguments;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(le=we.length>2&&we[2]!==void 0?we[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=me(pe,{headers:!0}),Ae.next=10,this.request(ue);case 10:return Pe=Ae.sent,Ae.abrupt("return",{res:Pe.res,status:Pe.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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),ye=Ee.checkBucketName,be=oe("../utils/obj2xml"),me=be.obj2xml,xe=oe("../utils/isArray"),fe=xe.isArray,z=Oe;z.putBucketWebsite=function(){var ee=(0,Ce.default)(ce.default.mark(function re(le){var ue,pe,Pe,we,Ne,Ae,Te,Me=arguments;return ce.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(ue=Me.length>1&&Me[1]!==void 0?Me[1]:{},pe=Me.length>2?Me[2]:void 0,ye(le),Pe=this._bucketRequestParams("PUT",le,"website",pe),we={Suffix:ue.index||"index.html"},Ne={IndexDocument:we},Ae={WebsiteConfiguration:Ne},ue.supportSubDir&&(we.SupportSubDir=ue.supportSubDir),ue.type&&(we.Type=ue.type),ue.error&&(Ne.ErrorDocument={Key:ue.error}),ue.routingRules===void 0){Re.next=14;break}if(fe(ue.routingRules)){Re.next=13;break}throw new Error("RoutingRules must be Array");case 13:Ne.RoutingRules={RoutingRule:ue.routingRules};case 14:return Ae=me(Ae),Pe.content=Ae,Pe.mime="xml",Pe.successStatuses=[200],Re.next=20,this.request(Pe);case 20:return Te=Re.sent,Re.abrupt("return",{res:Te.res});case 22:case"end":return Re.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(oe,Ue,Oe){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),Oe.encodeCallback=function(Ce,Ee){if(Ce.headers=Ce.headers||{},!Object.prototype.hasOwnProperty.call(Ce.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 be=ve.from(JSON.stringify(ye)).toString("base64");if(Ce.headers["x-oss-callback"]=be,Ee.callback.customValue){var me={};Object.keys(Ee.callback.customValue).forEach(function(xe){me["x:".concat(xe)]=Ee.callback.customValue[xe].toString()}),Ce.headers["x-oss-callback-var"]=ve.from(JSON.stringify(me)).toString("base64")}}}}).call(this)}).call(this,oe("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(oe,Ue,Oe){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js");var ve=function(fe){return fe&&fe.__esModule?fe:{default:fe}};Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.getReqUrl=void 0;var ce=ve(oe("copy-to")),Ce=ve(oe("url")),Ee=ve(oe("merge-descriptors")),ye=ve(oe("is-type-of")),be=oe("../utils/isIP"),me=oe("../utils/checkConfigValid");function xe(fe){var z={},ee=this.options.cname;me.checkConfigValid(this.options.endpoint,"endpoint"),ce.default(this.options.endpoint,!1).to(z),fe.bucket&&!ee&&!be.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,Ce.default.format(z)}Oe.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(oe,Ue,Oe){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.string.trim.js");var ve=oe("humanize-ms"),ce=oe("url"),Ce=oe("../utils/checkBucketName"),Ee=Ce.checkBucketName,ye=oe("../utils/setRegion"),be=ye.setRegion,me=oe("../utils/checkConfigValid"),xe=me.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}Ue.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=ve(ee.timeout)),ee.endpoint)ee.endpoint=fe(ee.endpoint,ee.secure);else if(ee.region)ee.endpoint=be(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(oe,Ue,Oe){"use strict";var ve=oe("merge-descriptors"),ce=Oe;ve(ce,oe("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),ye=Ee.checkBucketName,be=oe("querystring"),me=oe("js-base64"),xe=me.Base64.encode,fe=Oe;fe.processObjectSave=function(){var ee=(0,Ce.default)(ce.default.mark(function re(le,ue,pe,Pe){var we,Ne,Ae,Te;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),Pe&&ye(Pe),we=this._objectRequestParams("POST",le,{subres:"x-oss-process"}),Ne=Pe?",b_".concat(xe(Pe)):"",ue=xe(ue),Ae={"x-oss-process":"".concat(pe,"|sys/saveas,o_").concat(ue).concat(Ne)},we.content=be.stringify(Ae),Be.next=12,this.request(we);case 12:return Te=Be.sent,Be.abrupt("return",{res:Te.res,status:Te.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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.regexp.to-string.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("debug")("ali-oss:multipart-copy"),ye=oe("copy-to"),be=Oe;be.uploadPartCopy=function(){var me=(0,Ce.default)(ce.default.mark(function fe(z,ee,ae,re,le){var ue,pe,Pe,we,Ne,Ae=arguments;return ce.default.wrap(function(Me){for(;;)switch(Me.prev=Me.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?Pe="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey),"?versionId=").concat(pe):Pe="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey)),ue.headers["x-oss-copy-source"]=Pe,re&&(ue.headers["x-oss-copy-source-range"]="bytes=".concat(re)),ue.subres={partNumber:ae,uploadId:ee},we=this._objectRequestParams("PUT",z,ue),we.mime=ue.mime,we.successStatuses=[200],Me.next=12,this.request(we);case 12:return Ne=Me.sent,Me.abrupt("return",{name:z,etag:Ne.res.headers.etag,res:Ne.res});case 14:case"end":return Me.stop()}},fe,this)}));function xe(fe,z,ee,ae,re){return me.apply(this,arguments)}return xe}(),be.multipartUploadCopy=function(){var me=(0,Ce.default)(ce.default.mark(function fe(z,ee){var ae,re,le,ue,pe,Pe,we,Ne,Ae,Te,Me,Be,Re=arguments;return ce.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return ae=Re.length>2&&Re[2]!==void 0?Re[2]:{},this.resetCancelFlag(),re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},He.next=6,this._getObjectMeta(ee.sourceBucketName,ee.sourceKey,ue);case 6:if(pe=He.sent,Pe=pe.res.headers["content-length"],ee.startOffset=ee.startOffset||0,ee.endOffset=ee.endOffset||Pe,!(ae.checkpoint&&ae.checkpoint.uploadId)){He.next=14;break}return He.next=13,this._resumeMultipartCopy(ae.checkpoint,ee,ae);case 13:return He.abrupt("return",He.sent);case 14:if(we=102400,Ne=ee.endOffset-ee.startOffset,!(Ne<we)){He.next=18;break}throw new Error("copySize must not be smaller than ".concat(we));case 18:if(!(ae.partSize&&ae.partSize<we)){He.next=20;break}throw new Error("partSize must not be smaller than ".concat(we));case 20:return He.next=22,this.initMultipartUpload(z,ae);case 22:if(Ae=He.sent,Te=Ae.uploadId,Me=this._getPartSize(Ne,ae.partSize),Be={name:z,copySize:Ne,partSize:Me,uploadId:Te,doneParts:[]},!(ae&&ae.progress)){He.next=29;break}return He.next=29,ae.progress(0,Be,Ae.res);case 29:return He.next=31,this._resumeMultipartCopy(Be,ee,ae);case 31:return He.abrupt("return",He.sent);case 32:case"end":return He.stop()}},fe,this)}));function xe(fe,z){return me.apply(this,arguments)}return xe}(),be._resumeMultipartCopy=function(){var me=(0,Ce.default)(ce.default.mark(function fe(z,ee,ae){var re,le,ue,pe,Pe,we,Ne,Ae,Te,Me,Be,Re,Qe,He,$e,qe,ut,ct,yt,_e,st;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,Pe=z.partSize,we=z.uploadId,Ne=z.doneParts,Ae=z.name,Te=this._divideMultipartCopyParts(pe,Pe,ee.startOffset),Me=Te.length,Be={headers:{}},ae.copyheaders&&ye(ae.copyheaders).to(Be.headers),le&&ye(ue).to(Be),Re=function(mt,vt,St){return new Promise(function(){var Nt=(0,Ce.default)(ce.default.mark(function Ft(Kt,Pt){var Et,at,Ct;return ce.default.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:if(ht.prev=0,mt.isCancel()){ht.next=22;break}return Et=Te[vt-1],at="".concat(Et.start,"-").concat(Et.end-1),ht.prev=4,ht.next=7,mt.uploadPartCopy(Ae,we,vt,at,St,Be);case 7:Ct=ht.sent,ht.next=15;break;case 10:if(ht.prev=10,ht.t0=ht.catch(4),ht.t0.status!==404){ht.next=14;break}throw mt._makeAbortEvent();case 14:throw ht.t0;case 15:if(mt.isCancel()){ht.next=22;break}if(Ee("content-range ".concat(Ct.res.headers["content-range"])),Ne.push({number:vt,etag:Ct.res.headers.etag}),z.doneParts=Ne,!(ae&&ae.progress)){ht.next=22;break}return ht.next=22,ae.progress(Ne.length/Me,z,Ct.res);case 22:Kt(),ht.next=29;break;case 25:ht.prev=25,ht.t1=ht.catch(0),ht.t1.partNum=vt,Pt(ht.t1);case 29:case"end":return ht.stop()}},Ft,null,[[0,25],[4,10]])}));return function(Ft,Kt){return Nt.apply(this,arguments)}}())},Qe=Array.from(new Array(Me),function(wt,mt){return mt+1}),He=Ne.map(function(wt){return wt.number}),$e=Qe.filter(function(wt){return He.indexOf(wt)<0}),qe=5,ut=ae.parallel||qe,!(this.checkBrowserAndVersion("Internet Explorer","10")||ut===1)){bt.next=28;break}ct=0;case 18:if(!(ct<$e.length)){bt.next=26;break}if(!this.isCancel()){bt.next=21;break}throw this._makeCancelEvent();case 21:return bt.next=23,Re(this,$e[ct],ee);case 23:ct++,bt.next=18;break;case 26:bt.next=40;break;case 28:return bt.next=30,this._parallelNode($e,ut,Re,ee);case 30:if(yt=bt.sent,_e=yt.find(function(wt){return wt.name==="abort"}),!_e){bt.next=34;break}throw _e;case 34:if(!this.isCancel()){bt.next=36;break}throw this._makeCancelEvent();case 36:if(!(yt&&yt.length>0)){bt.next=40;break}throw st=yt[0],st.message="Failed to copy some parts with error: ".concat(st.toString()," part_num: ").concat(st.partNum),st;case 40:return bt.next=42,this.completeMultipartUpload(Ae,we,Ne,ae);case 42:return bt.abrupt("return",bt.sent);case 43:case"end":return bt.stop()}},fe,this)}));function xe(fe,z,ee){return me.apply(this,arguments)}return xe}(),be._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},be._getObjectMeta=function(){var me=(0,Ce.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 me.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(oe,Ue,Oe){(function(ve){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),Ce=ce(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.array.sort.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js");var Ee=ce(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("copy-to"),be=oe("./callback"),me=oe("./utils/deepCopy"),xe=me.deepCopyWith,fe=oe("./utils/isBuffer"),z=fe.isBuffer,ee=oe("./utils/omit"),ae=ee.omit,re=Oe;re.listUploads=function(){var le=(0,Ee.default)(Ce.default.mark(function pe(Pe,we){var Ne,Ae,Te,Me;return Ce.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return we=we||{},Ne={},ye(we).to(Ne),Ne.subres="uploads",Ae=this._objectRequestParams("GET","",Ne),Ae.query=Pe,Ae.xmlResponse=!0,Ae.successStatuses=[200],Re.next=10,this.request(Ae);case 10:return Te=Re.sent,Me=Te.data.Upload||[],Array.isArray(Me)||(Me=[Me]),Me=Me.map(function(Qe){return{name:Qe.Key,uploadId:Qe.UploadId,initiated:Qe.Initiated}}),Re.abrupt("return",{res:Te.res,uploads:Me,bucket:Te.data.Bucket,nextKeyMarker:Te.data.NextKeyMarker,nextUploadIdMarker:Te.data.NextUploadIdMarker,isTruncated:Te.data.IsTruncated==="true"});case 15:case"end":return Re.stop()}},pe,this)}));function ue(pe,Pe){return le.apply(this,arguments)}return ue}(),re.listParts=function(){var le=(0,Ee.default)(Ce.default.mark(function pe(Pe,we,Ne,Ae){var Te,Me,Be;return Ce.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Ae=Ae||{},Te={},ye(Ae).to(Te),Te.subres={uploadId:we},Me=this._objectRequestParams("GET",Pe,Te),Me.query=Ne,Me.xmlResponse=!0,Me.successStatuses=[200],Qe.next=10,this.request(Me);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,Pe,we,Ne){return le.apply(this,arguments)}return ue}(),re.abortMultipartUpload=function(){var le=(0,Ee.default)(Ce.default.mark(function pe(Pe,we,Ne){var Ae,Te,Me;return Ce.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return this._stop(),Ne=Ne||{},Ae={},ye(Ne).to(Ae),Ae.subres={uploadId:we},Te=this._objectRequestParams("DELETE",Pe,Ae),Te.successStatuses=[204],Re.next=9,this.request(Te);case 9:return Me=Re.sent,Re.abrupt("return",{res:Me.res});case 11:case"end":return Re.stop()}},pe,this)}));function ue(pe,Pe,we){return le.apply(this,arguments)}return ue}(),re.initMultipartUpload=function(){var le=(0,Ee.default)(Ce.default.mark(function pe(Pe,we){var Ne,Ae,Te;return Ce.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return we=we||{},Ne={},ye(we).to(Ne),Ne.headers=Ne.headers||{},this._convertMetaToHeaders(we.meta,Ne.headers),Ne.subres="uploads",Ae=this._objectRequestParams("POST",Pe,Ne),Ae.mime=we.mime,Ae.xmlResponse=!0,Ae.successStatuses=[200],Be.next=12,this.request(Ae);case 12:return Te=Be.sent,Be.abrupt("return",{res:Te.res,bucket:Te.data.Bucket,name:Te.data.Key,uploadId:Te.data.UploadId});case 14:case"end":return Be.stop()}},pe,this)}));function ue(pe,Pe){return le.apply(this,arguments)}return ue}(),re.uploadPart=function(){var le=(0,Ee.default)(Ce.default.mark(function pe(Pe,we,Ne,Ae,Te,Me,Be){var Re,Qe;return Ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(Re={size:Me-Te},Qe=ve&&ve.browser,!Qe){$e.next=8;break}return $e.next=5,this._createBuffer(Ae,Te,Me);case 5:Re.content=$e.sent,$e.next=11;break;case 8:return $e.next=10,this._createStream(Ae,Te,Me);case 10:Re.stream=$e.sent;case 11:return $e.next=13,this._uploadPart(Pe,we,Ne,Re,Be);case 13:return $e.abrupt("return",$e.sent);case 14:case"end":return $e.stop()}},pe,this)}));function ue(pe,Pe,we,Ne,Ae,Te,Me){return le.apply(this,arguments)}return ue}(),re.completeMultipartUpload=function(){var le=(0,Ee.default)(Ce.default.mark(function pe(Pe,we,Ne,Ae){var Te,Me,Be,Re,Qe,He,$e,qe;return Ce.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:for(Te=Ne.concat().sort(function(yt,_e){return yt.number-_e.number}).filter(function(yt,_e,st){return!_e||yt.number!==st[_e-1].number}),Me=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Be=0;Be<Te.length;Be++)Re=Te[Be],Me+=`<Part>
`,Me+="<PartNumber>".concat(Re.number,`</PartNumber>
`),Me+="<ETag>".concat(Re.etag,`</ETag>
`),Me+=`</Part>
`;return Me+="</CompleteMultipartUpload>",Ae=Ae||{},Qe={},Qe=xe(Ae,function(yt){if(z(yt))return null}),Qe.subres={uploadId:we},Qe.headers=ae(Qe.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),He=this._objectRequestParams("POST",Pe,Qe),be.encodeCallback(He,Qe),He.mime="xml",He.content=Me,He.headers&&He.headers["x-oss-callback"]||(He.xmlResponse=!0),He.successStatuses=[200],ct.next=17,this.request(He);case 17:if($e=ct.sent,!Ae.progress){ct.next=21;break}return ct.next=21,Ae.progress(1,null,$e.res);case 21:return qe={res:$e.res,bucket:He.bucket,name:Pe,etag:$e.res.headers.etag},He.headers&&He.headers["x-oss-callback"]&&(qe.data=JSON.parse($e.data.toString())),ct.abrupt("return",qe);case 24:case"end":return ct.stop()}},pe,this)}));function ue(pe,Pe,we,Ne){return le.apply(this,arguments)}return ue}(),re._uploadPart=function(){var le=(0,Ee.default)(Ce.default.mark(function pe(Pe,we,Ne,Ae,Te){var Me,Be,Re,Qe;return Ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return Te=Te||{},Me={},ye(Te).to(Me),Me.headers=Me.headers||{},Me.headers["Content-Length"]=Ae.size,Me.headers=ae(Me.headers,["x-oss-server-side-encryption"]),Me.subres={partNumber:Ne,uploadId:we},Be=this._objectRequestParams("PUT",Pe,Me),Be.mime=Me.mime,Re=ve&&ve.browser,Re?Be.content=Ae.content:Be.stream=Ae.stream,Be.successStatuses=[200],Be.disabledMD5=Te.disabledMD5,$e.next=15,this.request(Be);case 15:if(Qe=$e.sent,Qe.res.headers.etag){$e.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),$e.abrupt("return",{name:Pe,etag:Qe.res.headers.etag,res:Qe.res});case 20:case"end":return $e.stop()}},pe,this)}));function ue(pe,Pe,we,Ne,Ae){return le.apply(this,arguments)}return ue}()}).call(this)}).call(this,oe("_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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("url"),ye=oe("utility"),be=oe("copy-to"),me=oe("../../common/signUtils"),xe=oe("../utils/isIP"),fe=xe.isIP,z=oe("../utils/setSTSToken"),ee=z.setSTSToken,ae=oe("../utils/isFunction"),re=ae.isFunction,le=Oe;le.asyncSignatureUrl=function(){var ue=(0,Ce.default)(ce.default.mark(function Pe(we,Ne){var Ae,Te,Me,Be,Re;return ce.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(!fe(this.options.endpoint.hostname)){He.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Ne=Ne||{},we=this._objectName(we),Ne.method=Ne.method||"GET",Ae=ye.timestamp()+(Ne.expires||1800),Te={bucket:this.options.bucket,object:we},Me=this._getResource(Te),!(this.options.stsToken&&re(this.options.refreshSTSToken))){He.next=11;break}return He.next=11,ee.call(this);case 11:return this.options.stsToken&&(Ne["security-token"]=this.options.stsToken),Be=me._signatureForURL(this.options.accessKeySecret,Ne,Me,Ae),Re=Ee.parse(this._getReqUrl(Te)),Re.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Ae,Signature:Be.Signature},be(Be.subResource).to(Re.query),He.abrupt("return",Re.format());case 17:case"end":return He.stop()}},Pe,this)}));function pe(Pe,we){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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js");var Ce=ve(oe("@babel/runtime/helpers/typeof")),Ee=ve(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("../utils/checkBucketName"),be=ye.checkBucketName,me=Oe,xe=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];me.copy=function(){var fe=(0,Ee.default)(ce.default.mark(function ee(ae,re,le,ue){var pe,Pe,we;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return(0,Ce.default)(le)==="object"&&(ue=le),ue=ue||{},ue.headers=ue.headers||{},Object.keys(ue.headers).forEach(function(Te){ue.headers["x-oss-copy-source-".concat(Te.toLowerCase())]=ue.headers[Te]}),(ue.meta||Object.keys(ue.headers).find(function(Te){return xe.includes(Te.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 Pe=Ae.sent,we=Pe.data,we&&(we={etag:we.ETag,lastModified:we.LastModified}),Ae.abrupt("return",{data:we,res:Pe.res});case 18:case"end":return Ae.stop()}},ee,this)}));function z(ee,ae,re,le){return fe.apply(this,arguments)}return z}(),me._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")),be(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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=Oe;Ee.delete=function(){var ye=(0,Ce.default)(ce.default.mark(function me(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()}},me,this)}));function be(me){return ye.apply(this,arguments)}return be}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("utility"),ye=oe("../utils/obj2xml"),be=ye.obj2xml,me=Oe;me.deleteMulti=function(){var xe=(0,Ce.default)(ce.default.mark(function z(ee){var ae,re,le,ue,pe,Pe,we,Ne,Ae,Te,Me,Be,Re,Qe=arguments;return ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(ae=Qe.length>1&&Qe[1]!==void 0?Qe[1]:{},re=[],!(!ee||!ee.length)){$e.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],Pe=pe.key,we=pe.versionId,ue.Key=Ee.escape(this._objectName(Pe)),ue.VersionId=we),re.push(ue);return Ne={Delete:{Quiet:!!ae.quiet,Object:re}},Ae=be(Ne,{headers:!0}),ae.subres=Object.assign({delete:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),Te=this._objectRequestParams("POST","",ae),Te.mime="xml",Te.content=Ae,Te.xmlResponse=!0,Te.successStatuses=[200],$e.next=16,this.request(Te);case 16:return Me=$e.sent,Be=Me.data,Re=Be&&Be.Deleted||null,Re&&(Array.isArray(Re)||(Re=[Re])),$e.abrupt("return",{res:Me.res,deleted:Re||[]});case 21:case"end":return $e.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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=Oe;Ee.deleteObjectTagging=function(){var ye=(0,Ce.default)(ce.default.mark(function me(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()}},me,this)}));function be(me){return ye.apply(this,arguments)}return be}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(oe,Ue,Oe){"use strict";oe("core-js/modules/es.array.concat.js");var ve=oe("url"),ce=oe("../utils/isIP"),Ce=ce.isIP,Ee=Oe;Ee.generateObjectUrl=function(be,me){if(Ce(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(me)me[me.length-1]!=="/"&&(me+="/");else{me=this.options.endpoint.format();var xe=ve.parse(me),fe=this.options.bucket;xe.hostname="".concat(fe,".").concat(xe.hostname),xe.host="".concat(fe,".").concat(xe.host),me=xe.format()}return me+this._escape(this._objectName(be))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),Ce=ce(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ee=ce(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("fs"),be=oe("is-type-of"),me=Oe;me.get=function(){var xe=(0,Ee.default)(Ce.default.mark(function z(ee,ae){var re,le,ue,pe,Pe,we,Ne,Ae,Te=arguments;return Ce.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return re=Te.length>2&&Te[2]!==void 0?Te[2]:{},le=null,ue=!1,be.writableStream(ae)?le=ae:be.string(ae)?(le=ye.createWriteStream(ae),ue=!0):re=ae,re=re||{},pe=ve&&ve.browser,Pe=re.responseCacheControl===null?"":"no-cache",we=pe&&Pe?{"response-cache-control":Pe}:{},re.subres=Object.assign(we,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:Ne=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:Ne.res,content:Ne.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,oe("_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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=Oe;Ee.getACL=function(){var ye=(0,Ce.default)(ce.default.mark(function me(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()}},me,this)}));function be(me){return ye.apply(this,arguments)}return be}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.number.constructor.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=Oe,ye=oe("../utils/isObject"),be=ye.isObject,me=oe("../utils/isArray"),xe=me.isArray;Ee.getBucketVersions=fe,Ee.listObjectVersions=fe;function fe(){return z.apply(this,arguments)}function z(){return z=(0,Ce.default)(ce.default.mark(function re(){var le,ue,pe,Pe,we,Ne,Ae,Te,Me=arguments;return ce.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(le=Me.length>0&&Me[0]!==void 0?Me[0]:{},ue=Me.length>1&&Me[1]!==void 0?Me[1]:{},!(le.versionIdMarker&&le.keyMarker===void 0)){Re.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),Re.next=12,this.request(pe);case 12:return Pe=Re.sent,we=Pe.data.Version||[],Ne=Pe.data.DeleteMarker||[],Ae=this,we&&(Array.isArray(we)||(we=[we]),we=we.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}}})),Ne&&(xe(Ne)||(Ne=[Ne]),Ne=Ne.map(function(Qe){return{name:Qe.Key,lastModified:Qe.LastModified,versionId:Qe.VersionId,owner:{id:Qe.Owner.ID,displayName:Qe.Owner.DisplayName}}})),Te=Pe.data.CommonPrefixes||null,Te&&(xe(Te)||(Te=[Te]),Te=Te.map(function(Qe){return Qe.Prefix})),Re.abrupt("return",{res:Pe.res,objects:we,deleteMarker:Ne,prefixes:Te,nextMarker:Pe.data.NextKeyMarker||null,NextVersionIdMarker:Pe.data.NextVersionIdMarker||null,nextKeyMarker:Pe.data.NextKeyMarker||null,nextVersionIdMarker:Pe.data.NextVersionIdMarker||null,isTruncated:Pe.data.IsTruncated==="true"});case 21:case"end":return Re.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 be(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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=Oe;Ee.getObjectMeta=function(){var ye=(0,Ce.default)(ce.default.mark(function me(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()}},me,this)}));function be(me,xe){return ye.apply(this,arguments)}return be}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=Oe,ye=oe("../utils/isObject"),be=ye.isObject;Ee.getObjectTagging=function(){var me=(0,Ce.default)(ce.default.mark(function fe(z){var ee,ae,re,le,ue,pe,Pe=arguments;return ce.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ee=Pe.length>1&&Pe[1]!==void 0?Pe[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],Ne.next=8,this.request(ae);case 8:return re=Ne.sent,Ne.next=11,this.parseXML(re.data);case 11:return le=Ne.sent,ue=le.TagSet.Tag,ue=ue&&be(ue)?[ue]:ue||[],pe={},ue.forEach(function(Ae){pe[Ae.Key]=Ae.Value}),Ne.abrupt("return",{status:re.status,res:re.res,tag:pe});case 17:case"end":return Ne.stop()}},fe,this)}));function xe(fe){return me.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(oe,Ue,Oe){"use strict";var ve=oe("../utils/isIP"),ce=ve.isIP,Ce=Oe;Ce.getObjectUrl=function(ye,be){if(ce(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return be?be[be.length-1]!=="/"&&(be+="/"):be=this.options.endpoint.format(),be+this._escape(this._objectName(ye))}},{"../utils/isIP":69}],43:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=Oe;Ee.getSymlink=function(){var ye=(0,Ce.default)(ce.default.mark(function me(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()}},me,this)}));function be(me){return ye.apply(this,arguments)}return be}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkEnv"),ye=Ee.checkEnv,be=Oe;be.head=function(){var me=(0,Ce.default)(ce.default.mark(function fe(z){var ee,ae,re,le,ue=arguments;return ce.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.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],Pe.next=8,this.request(ae);case 8:return re=Pe.sent,le={meta:null,res:re.res,status:re.status},re.status===200&&Object.keys(re.headers).forEach(function(we){we.indexOf("x-oss-meta-")===0&&(le.meta||(le.meta={}),le.meta[we.substring(11)]=re.headers[we])}),Pe.abrupt("return",le);case 12:case"end":return Pe.stop()}},fe,this)}));function xe(fe){return me.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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=Oe;Ee.putACL=function(){var ye=(0,Ce.default)(ce.default.mark(function me(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()}},me,this)}));function be(me,xe,fe){return ye.apply(this,arguments)}return be}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.object.keys.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/obj2xml"),ye=Ee.obj2xml,be=oe("../utils/checkObjectTag"),me=be.checkObjectTag,xe=Oe;xe.putObjectTagging=function(){var fe=(0,Ce.default)(ce.default.mark(function ee(ae,re){var le,ue,pe,Pe,we=arguments;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return le=we.length>2&&we[2]!==void 0?we[2]:{},me(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(Te){return{Key:Te,Value:re[Te]}}),pe={Tagging:{TagSet:{Tag:re}}},ue.mime="xml",ue.content=ye(pe),Ae.next=13,this.request(ue);case 13:return Pe=Ae.sent,Ae.abrupt("return",{res:Pe.res,status:Pe.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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=Oe;Ee.putSymlink=function(){var ye=(0,Ce.default)(ce.default.mark(function me(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()}},me,this)}));function be(me,xe,fe){return ye.apply(this,arguments)}return be}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(oe,Ue,Oe){"use strict";var ve=oe("url"),ce=oe("utility"),Ce=oe("copy-to"),Ee=oe("../../common/signUtils"),ye=oe("../utils/isIP"),be=ye.isIP,me=Oe;me.signatureUrl=function(fe,z){if(be(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=ve.parse(this._getReqUrl(ae));return ue.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ee,Signature:le.Signature},Ce(le.subResource).to(ue.query),ue.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/web.dom-collections.iterator.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.function.name.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("./utils/isArray"),ye=Ee.isArray,be=Oe;be._parallelNode=function(){var me=(0,Ce.default)(ce.default.mark(function fe(z,ee,ae,re){var le,ue,pe,Pe,we,Ne,Ae,Te;return ce.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:le=this,ue=[],pe=[],Pe=z.length/ee,we=z.length%ee,Ne=we===0?Pe:(z.length-we)/ee+1,Ae=1,Te=0;case 8:if(!(Te<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[Te],re)):pe.push(ae(le,z[Te])),!(pe.length===ee||Ae===Ne&&Te===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:Te++,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 me.apply(this,arguments)}return xe}(),be._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 Re=Be;Be=null;for(var Qe=arguments.length,He=new Array(Qe),$e=0;$e<Qe;$e++)He[$e]=arguments[$e];Re.apply(this,He)}}function ue(Be){var Re=-1,Qe=Be.length;return function(){return++Re<Qe&&!ee.isCancel()?{value:Be[Re],key:Re}:null}}var pe=ue(xe),Pe=!1,we=0,Ne=!1;function Ae(Be){we-=1,Be?(Pe=!0,re.push(Be),ae(re)):Pe&&we<=0?(Pe=!0,ae(re)):Ne||(ee.isCancel()?ae(re):Me())}function Te(Be,Re){z(Be).then(function(Qe){Re(null,Qe)}).catch(function(Qe){Re(Qe)})}function Me(){for(Ne=!0;we<fe&&!Pe&&!ee.isCancel();){var Be=pe();if(Be===null||re.length>0){Pe=!0,we<=0&&ae(re);return}we+=1,Te(Be.value,le(Ae))}Ne=!1}Me()})},be.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)},be.isCancel=function(){return this.options.cancelFlag},be.resetCancelFlag=function(){this.options.cancelFlag=!1},be._stop=function(){this.options.cancelFlag=!0},be._makeCancelEvent=function(){var xe={status:0,name:"cancel"};return xe},be._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(oe,Ue,Oe){(function(ve){(function(){"use strict";oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.array.sort.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js");var ce=oe("./../../shims/crypto/crypto.js"),Ce=oe("is-type-of"),Ee=oe("./utils/lowercaseKeyHeader"),ye=Ee.lowercaseKeyHeader;Oe.buildCanonicalizedResource=function(me,xe){var fe="".concat(me),z="?";if(Ce.string(xe)&&xe.trim()!=="")fe+=z+xe;else if(Ce.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},Oe.buildCanonicalString=function(me,xe,fe,z){fe=fe||{};var ee=ye(fe.headers),ae="x-oss-",re=[],le={},ue=[me.toUpperCase(),ee["content-md5"]||"",ee["content-type"],z||ee["x-oss-date"]];return Object.keys(ee).forEach(function(pe){var Pe=pe.toLowerCase();Pe.indexOf(ae)===0&&(le[Pe]=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(`
`)},Oe.computeSignature=function(me,xe){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",z=ce.createHmac("sha1",me);return z.update(ve.from(xe,fe)).digest("base64")},Oe.authorization=function(me,xe,fe,z){return"OSS ".concat(me,":").concat(this.computeSignature(xe,fe,z))},Oe._signatureForURL=function(me){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 Te="response-".concat(Ae.toLowerCase());le[Te]=xe.response[Ae]}),Object.keys(xe).forEach(function(Ae){var Te=Ae.toLowerCase(),Me=xe[Ae];Te.indexOf("x-oss-")===0?ae[Te]=Me:(Te.indexOf("content-md5")===0||Te.indexOf("content-type")===0)&&(ae[Ae]=Me)}),Object.prototype.hasOwnProperty.call(xe,"security-token")&&(le["security-token"]=xe["security-token"]),Object.prototype.hasOwnProperty.call(xe,"callback")){var Pe={callbackUrl:encodeURI(xe.callback.url),callbackBody:xe.callback.body};if(xe.callback.host&&(Pe.callbackHost=xe.callback.host),xe.callback.contentType&&(Pe.callbackBodyType=xe.callback.contentType),le.callback=ve.from(JSON.stringify(Pe)).toString("base64"),xe.callback.customValue){var we={};Object.keys(xe.callback.customValue).forEach(function(Ae){we["x:".concat(Ae)]=xe.callback.customValue[Ae]}),le["callback-var"]=ve.from(JSON.stringify(we)).toString("base64")}}var Ne=this.buildCanonicalString(xe.method,fe,{headers:ae,parameters:le},z.toString());return{Signature:this.computeSignature(me,Ne,ee),subResource:le}}}).call(this)}).call(this,oe("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(oe,Ue,Oe){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.checkBucketName=void 0,Oe.checkBucketName=function(ve){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=ce?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!Ce.test(ve))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(oe,Ue,Oe){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.checkConfigValid=void 0;var ve={endpoint:ce,region:/^[a-zA-Z0-9\-_]+$/};function ce(Ce){return typeof Ce=="string"?/^[a-zA-Z0-9._:/-]+$/.test(Ce):Ce.host?/^[a-zA-Z0-9._:/-]+$/.test(Ce.host):!1}Oe.checkConfigValid=function(Ce,Ee){if(ve[Ee]){var ye=!0;if(ve[Ee]instanceof Function?ye=ve[Ee](Ce):ye=ve[Ee].test(Ce),!ye)throw new Error("The ".concat(Ee," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.checkEnv=void 0;function ce(Ce){ve.browser&&console.warn(Ce)}Oe.checkEnv=ce}).call(this)}).call(this,oe("_process"))},{_process:467}],54:[function(oe,Ue,Oe){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.entries.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.checkObjectTag=void 0;var ve=oe("./checkValid"),ce=ve.checkValid,Ce=oe("./isObject"),Ee=Ce.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 (/)"}],be={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 me(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,be[z[re]])})})}Oe.checkObjectTag=me},{"./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(oe,Ue,Oe){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.checkValid=void 0;function ve(ce,Ce){Ce.forEach(function(Ee){if(Ee.validator)Ee.validator(ce);else if(Ee.pattern&&!Ee.pattern.test(ce))throw new Error(Ee.msg)})}Oe.checkValid=ve},{"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(oe,Ue,Oe){(function(ve){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.createRequest=void 0;var ce=oe("./../../../shims/crypto/crypto.js"),Ce=oe("debug")("ali-oss"),Ee=oe("mime"),ye=oe("dateformat"),be=oe("copy-to"),me=oe("path"),xe=oe("./encoder"),fe=xe.encoder,z=oe("./isIP"),ee=z.isIP,ae=oe("./setRegion"),re=ae.setRegion,le=oe("../client/getReqUrl"),ue=le.getReqUrl,pe=oe("./isDingTalk"),Pe=pe.isDingTalk;function we(Te,Me){return Te[Me]||Te[Me.toLowerCase()]}function Ne(Te,Me){delete Te[Me],delete Te[Me.toLowerCase()]}function Ae(Te){var Me=new Date;this.options.amendTimeSkewed&&(Me=+new Date+this.options.amendTimeSkewed);var Be={"x-oss-date":ye(Me,"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),be(Te.headers).to(Be),we(Be,"Content-Type")||(Te.mime&&Te.mime.indexOf("/")>0?Be["Content-Type"]=Te.mime:Pe()?Be["Content-Type"]="application/octet-stream":Be["Content-Type"]=Ee.getType(Te.mime||me.extname(Te.object||""))),we(Be,"Content-Type")||Ne(Be,"Content-Type"),Te.content&&(Te.disabledMD5||(!Te.headers||!Te.headers["Content-MD5"]?Be["Content-MD5"]=ce.createHash("md5").update(ve.from(Te.content,"utf8")).digest("base64"):Be["Content-MD5"]=Te.headers["Content-MD5"]),Be["Content-Length"]||(Be["Content-Length"]=Te.content.length));var Re=Object.prototype.hasOwnProperty;for(var Qe in Be)Be[Qe]&&Re.call(Be,Qe)&&(Be[Qe]=fe(String(Be[Qe]),this.options.headerEncoding));var He=this._getResource(Te);if(Be.authorization=this.authorization(Te.method,He,Te.subres,Be,this.options.headerEncoding),ee(this.options.endpoint.hostname)){var $e=this.options,qe=$e.region,ut=$e.internal,ct=$e.secure,yt=re(qe,ut,ct);Be.host="".concat(Te.bucket,".").concat(yt.host)}var _e=ue.bind(this)(Te);Ce("request %s %s, with headers %j, !!stream: %s",Te.method,_e,Be,!!Te.stream);var st=Te.timeout||this.options.timeout,pt={method:Te.method,content:Te.content,stream:Te.stream,headers:Be,timeout:st,writeStream:Te.writeStream,customResponse:Te.customResponse,ctx:Te.ctx||this.ctx};return this.agent&&(pt.agent=this.agent),this.httpsAgent&&(pt.httpsAgent=this.httpsAgent),pt.enableProxy=!!this.options.enableProxy,pt.proxy=this.options.proxy?this.options.proxy:null,{url:_e,params:pt}}Oe.createRequest=Ae}).call(this)}).call(this,oe("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(oe,Ue,Oe){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.entries.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.object.keys.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.dataFix=void 0;var ve=oe("./isObject"),ce=["true","TRUE","1",1],Ce=["false","FALSE","0",0];function Ee(me,xe,fe){if(ve.isObject(me)){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,Pe=pe===void 0?[]:pe,we=xe.lowerFirst,Ne=we===void 0?!1:we;return ee.forEach(function(Ae){return delete me[Ae]}),Object.entries(re).forEach(function(Ae){me[Ae[0]]&&(me[Ae[1]]||(me[Ae[1]]=me[Ae[0]],delete me[Ae[0]]))}),ue.forEach(function(Ae){if(me[Ae]){var Te=Ae.replace(/^(.)/,function(Me){return Me.toLowerCase()}).replace(/-(\w)/g,function(Me,Be){return Be.toUpperCase()});me[Te]||(me[Te]=me[Ae])}}),Pe.forEach(function(Ae){me[Ae]=ye(me[Ae])}),typeof fe=="function"&&fe(me),be(me,Ne),Ee}}Oe.dataFix=Ee;function ye(me){return me?ce.includes(me)?!0:Ce.includes(me)?!1:me:!1}function be(me,xe){xe&&Object.keys(me).forEach(function(fe){var z=fe.replace(/^\w/,function(ee){return ee.toLowerCase()});typeof me[z]=="undefined"&&(me[z]=me[fe],delete me[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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js");var ce=ve(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.deepCopyWith=Oe.deepCopy=void 0;var Ce=oe("./isBuffer");Oe.deepCopy=function(Ee){if(Ee===null||(0,ce.default)(Ee)!=="object")return Ee;if(Ce.isBuffer(Ee))return Ee.slice();var ye=Array.isArray(Ee)?[]:{};return Object.keys(Ee).forEach(function(be){ye[be]=Oe.deepCopy(Ee[be])}),ye},Oe.deepCopyWith=function(Ee,ye){function be(me,xe,fe){var z=ye(me,xe,fe);if(z!==void 0)return z;if(me===null||(0,ce.default)(me)!=="object")return me;if(Ce.isBuffer(me))return me.slice();var ee=Array.isArray(me)?[]:{};return Object.keys(me).forEach(function(ae){ee[ae]=be(me[ae],ae,me)}),ee}return ye?be(Ee,"",null):Oe.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(oe,Ue,Oe){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.encoder=void 0;function ce(Ce){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return Ee==="utf-8"?Ce:ve.from(Ce).toString("latin1")}Oe.encoder=ce}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(oe,Ue,Oe){"use strict";oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.formatInventoryConfig=void 0;var ve=oe("../utils/dataFix"),ce=oe("../utils/isObject"),Ce=oe("../utils/isArray"),Ee=oe("../utils/formatObjKey");function ye(me){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return xe&&ce.isObject(me)&&(me=[me]),Ce.isArray(me)?me=me.map(be):me=be(me),me}Oe.formatInventoryConfig=ye;function be(me){return ve.dataFix(me,{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&&!Ce.isArray((z=xe.OptionalFields)===null||z===void 0?void 0:z.Field)&&(xe.OptionalFields.Field=[xe.OptionalFields.Field])}),me=Ee.formatObjKey(me,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),me}},{"../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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js");var ce=ve(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.formatObjKey=void 0;function Ce(ye,be,me){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(Ce(ye[fe],be,me))}else xe={},Object.keys(ye).forEach(function(z){xe[Ee(z,be,me)]=Ce(ye[z],be,me)});return xe}Oe.formatObjKey=Ce;function Ee(ye,be,me){return me&&me.exclude&&me.exclude.includes(ye)||(be==="firstUpperCase"?ye=ye.replace(/^./,function(xe){return xe.toUpperCase()}):be==="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(oe,Ue,Oe){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.getStrBytesCount=void 0;function ve(ce){for(var Ce=0,Ee=0;Ee<ce.length;Ee++){var ye=ce.charAt(Ee);/^[\u00-\uff]$/.test(ye)?Ce+=1:Ce+=2}return Ce}Oe.getStrBytesCount=ve},{"core-js/modules/es.regexp.exec.js":300}],63:[function(oe,Ue,Oe){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.isArray=void 0,Oe.isArray=function(ve){return Object.prototype.toString.call(ve)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(oe,Ue,Oe){"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.isBlob=void 0;function ve(ce){return typeof Blob!="undefined"&&ce instanceof Blob}Oe.isBlob=ve},{}],65:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.isBuffer=void 0;function ce(Ce){return ve.isBuffer(Ce)}Oe.isBuffer=ce}).call(this)}).call(this,{isBuffer:oe("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.isDingTalk=void 0;function ce(){return!!(ve.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}Oe.isDingTalk=ce}).call(this)}).call(this,oe("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(oe,Ue,Oe){"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.isFile=void 0,Oe.isFile=function(ve){return typeof File!="undefined"&&ve instanceof File}},{}],68:[function(oe,Ue,Oe){"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.isFunction=void 0,Oe.isFunction=function(ve){return typeof ve=="function"}},{}],69:[function(oe,Ue,Oe){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.isIP=void 0,Oe.isIP=function(ve){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}$/,Ce=/^\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(ve)||Ce.test(ve)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(oe,Ue,Oe){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.isObject=void 0,Oe.isObject=function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(oe,Ue,Oe){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.lowercaseKeyHeader=void 0;var ve=oe("./isObject");function ce(Ce){var Ee={};return ve.isObject(Ce)&&Object.keys(Ce).forEach(function(ye){Ee[ye.toLowerCase()]=Ce[ye]}),Ee}Oe.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(oe,Ue,Oe){"use strict";oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.obj2xml=void 0;var ve=oe("./formatObjKey");function ce(Ee){return Object.prototype.toString.call(Ee).replace(/(.*? |])/g,"").toLowerCase()}function Ce(Ee,ye){var be="";return ye&&ye.headers&&(be=`<?xml version="1.0" encoding="UTF-8"?>
`),ye&&ye.firstUpperCase&&(Ee=ve.formatObjKey(Ee,"firstUpperCase")),ce(Ee)==="object"?Object.keys(Ee).forEach(function(me){ce(Ee[me])!=="undefined"&&ce(Ee[me])!=="null"&&(ce(Ee[me])==="string"||ce(Ee[me])==="number"?be+="<".concat(me,">").concat(Ee[me],"</").concat(me,">"):ce(Ee[me])==="object"?be+="<".concat(me,">").concat(Ce(Ee[me]),"</").concat(me,">"):ce(Ee[me])==="array"?be+=Ee[me].map(function(xe){return"<".concat(me,">").concat(Ce(xe),"</").concat(me,">")}).join(""):be+="<".concat(me,">").concat(Ee[me].toString(),"</").concat(me,">"))}):be+=Ee.toString(),be}Oe.obj2xml=Ce},{"./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(oe,Ue,Oe){"use strict";oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.symbol.js"),oe("core-js/modules/es.symbol.description.js"),oe("core-js/modules/es.symbol.iterator.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/web.dom-collections.iterator.js"),oe("core-js/modules/es.object.assign.js");function ve(ye,be){var me=typeof Symbol!="undefined"&&ye[Symbol.iterator]||ye["@@iterator"];if(!me){if(Array.isArray(ye)||(me=ce(ye))||be&&ye&&typeof ye.length=="number"){me&&(ye=me);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(){me=me.call(ye)},n:function(){var le=me.next();return z=le.done,le},e:function(le){ee=!0,ae=le},f:function(){try{!z&&me.return!=null&&me.return()}finally{if(ee)throw ae}}}}function ce(ye,be){if(ye){if(typeof ye=="string")return Ce(ye,be);var me=Object.prototype.toString.call(ye).slice(8,-1);if(me==="Object"&&ye.constructor&&(me=ye.constructor.name),me==="Map"||me==="Set")return Array.from(ye);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return Ce(ye,be)}}function Ce(ye,be){(be==null||be>ye.length)&&(be=ye.length);for(var me=0,xe=new Array(be);me<be;me++)xe[me]=ye[me];return xe}Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.omit=void 0;function Ee(ye,be){var me=Object.assign({},ye),xe=ve(be),fe;try{for(xe.s();!(fe=xe.n()).done;){var z=fe.value;delete me[z]}}catch(ee){xe.e(ee)}finally{xe.f()}return me}Oe.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(oe,Ue,Oe){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.retry=void 0;function ve(ce,Ce){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ye=0,be=Ee.retryDelay,me=be===void 0?500:be,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(Pe){ye=0,ue(Pe)}).catch(function(Pe){ye<Ce&&fe(Pe)?(ye++,setTimeout(function(){ue(ee.apply(void 0,re))},me)):(ye=0,pe(Pe))})})};return z}Oe.retry=ve},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(oe,Ue,Oe){"use strict";var ve=function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.setRegion=void 0;var ce=ve(oe("url")),Ce=oe("./checkConfigValid");function Ee(ye){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ce.checkConfigValid(ye,"region");var xe=me?"https://":"http://",fe=be?"-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)}Oe.setRegion=Ee},{"./checkConfigValid":52,url:472}],76:[function(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.object.assign.js");var Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.checkCredentials=Oe.setSTSToken=void 0;var Ee=oe("./formatObjKey");function ye(){return be.apply(this,arguments)}function be(){return be=(0,Ce.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),me(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)})),be.apply(this,arguments)}Oe.setSTSToken=ye;function me(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))})}Oe.checkCredentials=me},{"./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(oe,Ue,Oe){function ve(Ce,Ee,ye,be,me,xe,fe){try{var z=Ce[xe](fe),ee=z.value}catch(ae){ye(ae);return}z.done?Ee(ee):Promise.resolve(ee).then(be,me)}function ce(Ce){return function(){var Ee=this,ye=arguments;return new Promise(function(be,me){var xe=Ce.apply(Ee,ye);function fe(ee){ve(xe,be,me,fe,z,"next",ee)}function z(ee){ve(xe,be,me,fe,z,"throw",ee)}fe(void 0)})}}Ue.exports=ce,Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports},{}],78:[function(oe,Ue,Oe){function ve(ce){return ce&&ce.__esModule?ce:{default:ce}}Ue.exports=ve,Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports},{}],79:[function(oe,Ue,Oe){function ve(ce){"@babel/helpers - typeof";return Ue.exports=ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ce){return typeof Ce}:function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports,ve(ce)}Ue.exports=ve,Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports},{}],80:[function(oe,Ue,Oe){Ue.exports=oe("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(oe,Ue,Oe){Ue.exports=ve,Ue.exports.HttpsAgent=ve;function ve(){}},{}],82:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";var ce=oe("object-assign");function Ce(qe,ut){if(qe===ut)return 0;for(var ct=qe.length,yt=ut.length,_e=0,st=Math.min(ct,yt);_e<st;++_e)if(qe[_e]!==ut[_e]){ct=qe[_e],yt=ut[_e];break}return ct<yt?-1:yt<ct?1:0}function Ee(qe){return ve.Buffer&&typeof ve.Buffer.isBuffer=="function"?ve.Buffer.isBuffer(qe):!!(qe!=null&&qe._isBuffer)}var ye=oe("util/"),be=Object.prototype.hasOwnProperty,me=Array.prototype.slice,xe=function(){return function(){}.name==="foo"}();function fe(qe){return Object.prototype.toString.call(qe)}function z(qe){return Ee(qe)||typeof ve.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(qe):qe?!!(qe instanceof DataView||qe.buffer&&qe.buffer instanceof ArrayBuffer):!1}var ee=Ue.exports=we,ae=/\s*function\s+([^\(\s]*)\s*/;function re(qe){if(ye.isFunction(qe)){if(xe)return qe.name;var ut=qe.toString(),ct=ut.match(ae);return ct&&ct[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 ct=ut.stackStartFunction||Pe;if(Error.captureStackTrace)Error.captureStackTrace(this,ct);else{var yt=new Error;if(yt.stack){var _e=yt.stack,st=re(ct),pt=_e.indexOf(`
`+st);if(pt>=0){var bt=_e.indexOf(`
`,pt+1);_e=_e.substring(bt+1)}this.stack=_e}}},ye.inherits(ee.AssertionError,Error);function le(qe,ut){return typeof qe=="string"?qe.length<ut?qe:qe.slice(0,ut):qe}function ue(qe){if(xe||!ye.isFunction(qe))return ye.inspect(qe);var ut=re(qe),ct=ut?": "+ut:"";return"[Function"+ct+"]"}function pe(qe){return le(ue(qe.actual),128)+" "+qe.operator+" "+le(ue(qe.expected),128)}function Pe(qe,ut,ct,yt,_e){throw new ee.AssertionError({message:ct,actual:qe,expected:ut,operator:yt,stackStartFunction:_e})}ee.fail=Pe;function we(qe,ut){qe||Pe(qe,!0,ut,"==",ee.ok)}ee.ok=we,ee.equal=function(ut,ct,yt){ut!=ct&&Pe(ut,ct,yt,"==",ee.equal)},ee.notEqual=function(ut,ct,yt){ut==ct&&Pe(ut,ct,yt,"!=",ee.notEqual)},ee.deepEqual=function(ut,ct,yt){Ne(ut,ct,!1)||Pe(ut,ct,yt,"deepEqual",ee.deepEqual)},ee.deepStrictEqual=function(ut,ct,yt){Ne(ut,ct,!0)||Pe(ut,ct,yt,"deepStrictEqual",ee.deepStrictEqual)};function Ne(qe,ut,ct,yt){if(qe===ut)return!0;if(Ee(qe)&&Ee(ut))return Ce(qe,ut)===0;if(ye.isDate(qe)&&ye.isDate(ut))return qe.getTime()===ut.getTime();if(ye.isRegExp(qe)&&ye.isRegExp(ut))return qe.source===ut.source&&qe.global===ut.global&&qe.multiline===ut.multiline&&qe.lastIndex===ut.lastIndex&&qe.ignoreCase===ut.ignoreCase;if((qe===null||typeof qe!="object")&&(ut===null||typeof ut!="object"))return ct?qe===ut:qe==ut;if(z(qe)&&z(ut)&&fe(qe)===fe(ut)&&!(qe instanceof Float32Array||qe instanceof Float64Array))return Ce(new Uint8Array(qe.buffer),new Uint8Array(ut.buffer))===0;if(Ee(qe)!==Ee(ut))return!1;yt=yt||{actual:[],expected:[]};var _e=yt.actual.indexOf(qe);return _e!==-1&&_e===yt.expected.indexOf(ut)?!0:(yt.actual.push(qe),yt.expected.push(ut),Te(qe,ut,ct,yt))}function Ae(qe){return Object.prototype.toString.call(qe)=="[object Arguments]"}function Te(qe,ut,ct,yt){if(qe==null||ut===null||ut===void 0)return!1;if(ye.isPrimitive(qe)||ye.isPrimitive(ut))return qe===ut;if(ct&&Object.getPrototypeOf(qe)!==Object.getPrototypeOf(ut))return!1;var _e=Ae(qe),st=Ae(ut);if(_e&&!st||!_e&&st)return!1;if(_e)return qe=me.call(qe),ut=me.call(ut),Ne(qe,ut,ct);var pt=$e(qe),bt=$e(ut),wt,mt;if(pt.length!==bt.length)return!1;for(pt.sort(),bt.sort(),mt=pt.length-1;mt>=0;mt--)if(pt[mt]!==bt[mt])return!1;for(mt=pt.length-1;mt>=0;mt--)if(wt=pt[mt],!Ne(qe[wt],ut[wt],ct,yt))return!1;return!0}ee.notDeepEqual=function(ut,ct,yt){Ne(ut,ct,!1)&&Pe(ut,ct,yt,"notDeepEqual",ee.notDeepEqual)},ee.notDeepStrictEqual=Me;function Me(qe,ut,ct){Ne(qe,ut,!0)&&Pe(qe,ut,ct,"notDeepStrictEqual",Me)}ee.strictEqual=function(ut,ct,yt){ut!==ct&&Pe(ut,ct,yt,"===",ee.strictEqual)},ee.notStrictEqual=function(ut,ct,yt){ut===ct&&Pe(ut,ct,yt,"!==",ee.notStrictEqual)};function Be(qe,ut){if(!qe||!ut)return!1;if(Object.prototype.toString.call(ut)=="[object RegExp]")return ut.test(qe);try{if(qe instanceof ut)return!0}catch(ct){}return Error.isPrototypeOf(ut)?!1:ut.call({},qe)===!0}function Re(qe){var ut;try{qe()}catch(ct){ut=ct}return ut}function Qe(qe,ut,ct,yt){var _e;if(typeof ut!="function")throw new TypeError('"block" argument must be a function');typeof ct=="string"&&(yt=ct,ct=null),_e=Re(ut),yt=(ct&&ct.name?" ("+ct.name+").":".")+(yt?" "+yt:"."),qe&&!_e&&Pe(_e,ct,"Missing expected exception"+yt);var st=typeof yt=="string",pt=!qe&&ye.isError(_e),bt=!qe&&_e&&!ct;if((pt&&st&&Be(_e,ct)||bt)&&Pe(_e,ct,"Got unwanted exception"+yt),qe&&_e&&ct&&!Be(_e,ct)||!qe&&_e)throw _e}ee.throws=function(qe,ut,ct){Qe(!0,qe,ut,ct)},ee.doesNotThrow=function(qe,ut,ct){Qe(!1,qe,ut,ct)},ee.ifError=function(qe){if(qe)throw qe};function He(qe,ut){qe||Pe(qe,!0,ut,"==",He)}ee.strict=ce(He,ee,{equal:ee.strictEqual,deepEqual:ee.deepStrictEqual,notEqual:ee.notStrictEqual,notDeepEqual:ee.notDeepStrictEqual}),ee.strict.strict=ee.strict;var $e=Object.keys||function(qe){var ut=[];for(var ct in qe)be.call(qe,ct)&&ut.push(ct);return ut}}).call(this)}).call(this,typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(oe,Ue,Oe){typeof Object.create=="function"?Ue.exports=function(ce,Ce){ce.super_=Ce,ce.prototype=Object.create(Ce.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}})}:Ue.exports=function(ce,Ce){ce.super_=Ce;var Ee=function(){};Ee.prototype=Ce.prototype,ce.prototype=new Ee,ce.prototype.constructor=ce}},{}],84:[function(oe,Ue,Oe){Ue.exports=function(ce){return ce&&typeof ce=="object"&&typeof ce.copy=="function"&&typeof ce.fill=="function"&&typeof ce.readUInt8=="function"}},{}],85:[function(oe,Ue,Oe){(function(ve,ce){(function(){var Ce=/%[sdj%]/g;Oe.format=function(bt){if(!Te(bt)){for(var wt=[],mt=0;mt<arguments.length;mt++)wt.push(be(arguments[mt]));return wt.join(" ")}for(var mt=1,vt=arguments,St=vt.length,Nt=String(bt).replace(Ce,function(Kt){if(Kt==="%%")return"%";if(mt>=St)return Kt;switch(Kt){case"%s":return String(vt[mt++]);case"%d":return Number(vt[mt++]);case"%j":try{return JSON.stringify(vt[mt++])}catch(Pt){return"[Circular]"}default:return Kt}}),Ft=vt[mt];mt<St;Ft=vt[++mt])we(Ft)||!Qe(Ft)?Nt+=" "+Ft:Nt+=" "+be(Ft);return Nt},Oe.deprecate=function(bt,wt){if(Be(ce.process))return function(){return Oe.deprecate(bt,wt).apply(this,arguments)};if(ve.noDeprecation===!0)return bt;var mt=!1;function vt(){if(!mt){if(ve.throwDeprecation)throw new Error(wt);ve.traceDeprecation?console.trace(wt):console.error(wt),mt=!0}return bt.apply(this,arguments)}return vt};var Ee={},ye;Oe.debuglog=function(bt){if(Be(ye)&&(ye=ve.env.NODE_DEBUG||""),bt=bt.toUpperCase(),!Ee[bt])if(new RegExp("\\b"+bt+"\\b","i").test(ye)){var wt=ve.pid;Ee[bt]=function(){var mt=Oe.format.apply(Oe,arguments);console.error("%s %d: %s",bt,wt,mt)}}else Ee[bt]=function(){};return Ee[bt]};function be(bt,wt){var mt={seen:[],stylize:xe};return arguments.length>=3&&(mt.depth=arguments[2]),arguments.length>=4&&(mt.colors=arguments[3]),Pe(wt)?mt.showHidden=wt:wt&&Oe._extend(mt,wt),Be(mt.showHidden)&&(mt.showHidden=!1),Be(mt.depth)&&(mt.depth=2),Be(mt.colors)&&(mt.colors=!1),Be(mt.customInspect)&&(mt.customInspect=!0),mt.colors&&(mt.stylize=me),z(mt,bt,mt.depth)}Oe.inspect=be,be.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]},be.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function me(bt,wt){var mt=be.styles[wt];return mt?"\x1B["+be.colors[mt][0]+"m"+bt+"\x1B["+be.colors[mt][1]+"m":bt}function xe(bt,wt){return bt}function fe(bt){var wt={};return bt.forEach(function(mt,vt){wt[mt]=!0}),wt}function z(bt,wt,mt){if(bt.customInspect&&wt&&qe(wt.inspect)&&wt.inspect!==Oe.inspect&&!(wt.constructor&&wt.constructor.prototype===wt)){var vt=wt.inspect(mt,bt);return Te(vt)||(vt=z(bt,vt,mt)),vt}var St=ee(bt,wt);if(St)return St;var Nt=Object.keys(wt),Ft=fe(Nt);if(bt.showHidden&&(Nt=Object.getOwnPropertyNames(wt)),$e(wt)&&(Nt.indexOf("message")>=0||Nt.indexOf("description")>=0))return ae(wt);if(Nt.length===0){if(qe(wt)){var Kt=wt.name?": "+wt.name:"";return bt.stylize("[Function"+Kt+"]","special")}if(Re(wt))return bt.stylize(RegExp.prototype.toString.call(wt),"regexp");if(He(wt))return bt.stylize(Date.prototype.toString.call(wt),"date");if($e(wt))return ae(wt)}var Pt="",Et=!1,at=["{","}"];if(pe(wt)&&(Et=!0,at=["[","]"]),qe(wt)){var Ct=wt.name?": "+wt.name:"";Pt=" [Function"+Ct+"]"}if(Re(wt)&&(Pt=" "+RegExp.prototype.toString.call(wt)),He(wt)&&(Pt=" "+Date.prototype.toUTCString.call(wt)),$e(wt)&&(Pt=" "+ae(wt)),Nt.length===0&&(!Et||wt.length==0))return at[0]+Pt+at[1];if(mt<0)return Re(wt)?bt.stylize(RegExp.prototype.toString.call(wt),"regexp"):bt.stylize("[Object]","special");bt.seen.push(wt);var nt;return Et?nt=re(bt,wt,mt,Ft,Nt):nt=Nt.map(function(ht){return le(bt,wt,mt,Ft,ht,Et)}),bt.seen.pop(),ue(nt,Pt,at)}function ee(bt,wt){if(Be(wt))return bt.stylize("undefined","undefined");if(Te(wt)){var mt="'"+JSON.stringify(wt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return bt.stylize(mt,"string")}if(Ae(wt))return bt.stylize(""+wt,"number");if(Pe(wt))return bt.stylize(""+wt,"boolean");if(we(wt))return bt.stylize("null","null")}function ae(bt){return"["+Error.prototype.toString.call(bt)+"]"}function re(bt,wt,mt,vt,St){for(var Nt=[],Ft=0,Kt=wt.length;Ft<Kt;++Ft)pt(wt,String(Ft))?Nt.push(le(bt,wt,mt,vt,String(Ft),!0)):Nt.push("");return St.forEach(function(Pt){Pt.match(/^\d+$/)||Nt.push(le(bt,wt,mt,vt,Pt,!0))}),Nt}function le(bt,wt,mt,vt,St,Nt){var Ft,Kt,Pt;if(Pt=Object.getOwnPropertyDescriptor(wt,St)||{value:wt[St]},Pt.get?Pt.set?Kt=bt.stylize("[Getter/Setter]","special"):Kt=bt.stylize("[Getter]","special"):Pt.set&&(Kt=bt.stylize("[Setter]","special")),pt(vt,St)||(Ft="["+St+"]"),Kt||(bt.seen.indexOf(Pt.value)<0?(we(mt)?Kt=z(bt,Pt.value,null):Kt=z(bt,Pt.value,mt-1),Kt.indexOf(`
`)>-1&&(Nt?Kt=Kt.split(`
`).map(function(Et){return" "+Et}).join(`
`).substr(2):Kt=`
`+Kt.split(`
`).map(function(Et){return" "+Et}).join(`
`))):Kt=bt.stylize("[Circular]","special")),Be(Ft)){if(Nt&&St.match(/^\d+$/))return Kt;Ft=JSON.stringify(""+St),Ft.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ft=Ft.substr(1,Ft.length-2),Ft=bt.stylize(Ft,"name")):(Ft=Ft.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ft=bt.stylize(Ft,"string"))}return Ft+": "+Kt}function ue(bt,wt,mt){var vt=0,St=bt.reduce(function(Nt,Ft){return vt++,Ft.indexOf(`
`)>=0&&vt++,Nt+Ft.replace(/\u001b\[\d\d?m/g,"").length+1},0);return St>60?mt[0]+(wt===""?"":wt+`
`)+" "+bt.join(`,
`)+" "+mt[1]:mt[0]+wt+" "+bt.join(", ")+" "+mt[1]}function pe(bt){return Array.isArray(bt)}Oe.isArray=pe;function Pe(bt){return typeof bt=="boolean"}Oe.isBoolean=Pe;function we(bt){return bt===null}Oe.isNull=we;function Ne(bt){return bt==null}Oe.isNullOrUndefined=Ne;function Ae(bt){return typeof bt=="number"}Oe.isNumber=Ae;function Te(bt){return typeof bt=="string"}Oe.isString=Te;function Me(bt){return typeof bt=="symbol"}Oe.isSymbol=Me;function Be(bt){return bt===void 0}Oe.isUndefined=Be;function Re(bt){return Qe(bt)&&ct(bt)==="[object RegExp]"}Oe.isRegExp=Re;function Qe(bt){return typeof bt=="object"&&bt!==null}Oe.isObject=Qe;function He(bt){return Qe(bt)&&ct(bt)==="[object Date]"}Oe.isDate=He;function $e(bt){return Qe(bt)&&(ct(bt)==="[object Error]"||bt instanceof Error)}Oe.isError=$e;function qe(bt){return typeof bt=="function"}Oe.isFunction=qe;function ut(bt){return bt===null||typeof bt=="boolean"||typeof bt=="number"||typeof bt=="string"||typeof bt=="symbol"||typeof bt=="undefined"}Oe.isPrimitive=ut,Oe.isBuffer=oe("./support/isBuffer");function ct(bt){return Object.prototype.toString.call(bt)}function yt(bt){return bt<10?"0"+bt.toString(10):bt.toString(10)}var _e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function st(){var bt=new Date,wt=[yt(bt.getHours()),yt(bt.getMinutes()),yt(bt.getSeconds())].join(":");return[bt.getDate(),_e[bt.getMonth()],wt].join(" ")}Oe.log=function(){console.log("%s - %s",st(),Oe.format.apply(Oe,arguments))},Oe.inherits=oe("inherits"),Oe._extend=function(bt,wt){if(!wt||!Qe(wt))return bt;for(var mt=Object.keys(wt),vt=mt.length;vt--;)bt[mt[vt]]=wt[mt[vt]];return bt};function pt(bt,wt){return Object.prototype.hasOwnProperty.call(bt,wt)}}).call(this)}).call(this,oe("_process"),typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";var ce=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Ce=typeof globalThis=="undefined"?ve:globalThis;Ue.exports=function(){for(var ye=[],be=0;be<ce.length;be++)typeof Ce[ce[be]]=="function"&&(ye[ye.length]=ce[be]);return ye}}).call(this)}).call(this,typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(oe,Ue,Oe){"use strict";Oe.byteLength=xe,Oe.toByteArray=z,Oe.fromByteArray=re;for(var ve=[],ce=[],Ce=typeof Uint8Array!="undefined"?Uint8Array:Array,Ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye=0,be=Ee.length;ye<be;++ye)ve[ye]=Ee[ye],ce[Ee.charCodeAt(ye)]=ye;ce[45]=62,ce[95]=63;function me(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 Pe=pe===ue?0:4-pe%4;return[pe,Pe]}function xe(le){var ue=me(le),pe=ue[0],Pe=ue[1];return(pe+Pe)*3/4-Pe}function fe(le,ue,pe){return(ue+pe)*3/4-pe}function z(le){var ue,pe=me(le),Pe=pe[0],we=pe[1],Ne=new Ce(fe(le,Pe,we)),Ae=0,Te=we>0?Pe-4:Pe,Me;for(Me=0;Me<Te;Me+=4)ue=ce[le.charCodeAt(Me)]<<18|ce[le.charCodeAt(Me+1)]<<12|ce[le.charCodeAt(Me+2)]<<6|ce[le.charCodeAt(Me+3)],Ne[Ae++]=ue>>16&255,Ne[Ae++]=ue>>8&255,Ne[Ae++]=ue&255;return we===2&&(ue=ce[le.charCodeAt(Me)]<<2|ce[le.charCodeAt(Me+1)]>>4,Ne[Ae++]=ue&255),we===1&&(ue=ce[le.charCodeAt(Me)]<<10|ce[le.charCodeAt(Me+1)]<<4|ce[le.charCodeAt(Me+2)]>>2,Ne[Ae++]=ue>>8&255,Ne[Ae++]=ue&255),Ne}function ee(le){return ve[le>>18&63]+ve[le>>12&63]+ve[le>>6&63]+ve[le&63]}function ae(le,ue,pe){for(var Pe,we=[],Ne=ue;Ne<pe;Ne+=3)Pe=(le[Ne]<<16&16711680)+(le[Ne+1]<<8&65280)+(le[Ne+2]&255),we.push(ee(Pe));return we.join("")}function re(le){for(var ue,pe=le.length,Pe=pe%3,we=[],Ne=16383,Ae=0,Te=pe-Pe;Ae<Te;Ae+=Ne)we.push(ae(le,Ae,Ae+Ne>Te?Te:Ae+Ne));return Pe===1?(ue=le[pe-1],we.push(ve[ue>>2]+ve[ue<<4&63]+"==")):Pe===2&&(ue=(le[pe-2]<<8)+le[pe-1],we.push(ve[ue>>10]+ve[ue>>4&63]+ve[ue<<2&63]+"=")),we.join("")}},{}],88:[function(oe,Ue,Oe){(function(ve,ce,Ce){typeof Ue!="undefined"&&Ue.exports?Ue.exports=Ce():typeof ze=="function"&&ze.amd?ze(ce,Ce):ve[ce]=Ce()})(this,"bowser",function(){var ve=!0;function ce(fe){function z(wt){var mt=fe.match(wt);return mt&&mt.length>1&&mt[1]||""}function ee(wt){var mt=fe.match(wt);return mt&&mt.length>1&&mt[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),Pe=/CrOS/.test(fe),we=/silk/i.test(fe),Ne=/sailfish/i.test(fe),Ae=/tizen/i.test(fe),Te=/(web|hpw)(o|0)s/i.test(fe),Me=/windows phone/i.test(fe),Be=/SamsungBrowser/i.test(fe),Re=!Me&&/windows/i.test(fe),Qe=!ae&&!we&&/macintosh/i.test(fe),He=!le&&!Ne&&!Ae&&!Te&&/linux/i.test(fe),$e=ee(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),qe=z(/version\/(\d+(\.\d+)?)/i),ut=/tablet/i.test(fe)&&!/tablet pc/i.test(fe),ct=!ut&&/[^-]mobi/i.test(fe),yt=/xbox/i.test(fe),_e;/opera/i.test(fe)?_e={name:"Opera",opera:ve,version:qe||z(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(fe)?_e={name:"Opera",opera:ve,version:z(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||qe}:/SamsungBrowser/i.test(fe)?_e={name:"Samsung Internet for Android",samsungBrowser:ve,version:qe||z(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(fe)?_e={name:"NAVER Whale browser",whale:ve,version:z(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(fe)?_e={name:"MZ Browser",mzbrowser:ve,version:z(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(fe)?_e={name:"Opera Coast",coast:ve,version:qe||z(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(fe)?_e={name:"Focus",focus:ve,version:z(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(fe)?_e={name:"Yandex Browser",yandexbrowser:ve,version:qe||z(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(fe)?_e={name:"UC Browser",ucbrowser:ve,version:z(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(fe)?_e={name:"Maxthon",maxthon:ve,version:z(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(fe)?_e={name:"Epiphany",epiphany:ve,version:z(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(fe)?_e={name:"Puffin",puffin:ve,version:z(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(fe)?_e={name:"Sleipnir",sleipnir:ve,version:z(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(fe)?_e={name:"K-Meleon",kMeleon:ve,version:z(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Me?(_e={name:"Windows Phone",osname:"Windows Phone",windowsphone:ve},$e?(_e.msedge=ve,_e.version=$e):(_e.msie=ve,_e.version=z(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(fe)?_e={name:"Internet Explorer",msie:ve,version:z(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Pe?_e={name:"Chrome",osname:"Chrome OS",chromeos:ve,chromeBook:ve,chrome:ve,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(fe)?_e={name:"Microsoft Edge",msedge:ve,version:$e}:/vivaldi/i.test(fe)?_e={name:"Vivaldi",vivaldi:ve,version:z(/vivaldi\/(\d+(\.\d+)?)/i)||qe}:Ne?_e={name:"Sailfish",osname:"Sailfish OS",sailfish:ve,version:z(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(fe)?_e={name:"SeaMonkey",seamonkey:ve,version:z(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(fe)?(_e={name:"Firefox",firefox:ve,version:z(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(fe)&&(_e.firefoxos=ve,_e.osname="Firefox OS")):we?_e={name:"Amazon Silk",silk:ve,version:z(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(fe)?_e={name:"PhantomJS",phantom:ve,version:z(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(fe)?_e={name:"SlimerJS",slimer:ve,version:z(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(fe)||/rim\stablet/i.test(fe)?_e={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ve,version:qe||z(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Te?(_e={name:"WebOS",osname:"WebOS",webos:ve,version:qe||z(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(fe)&&(_e.touchpad=ve)):/bada/i.test(fe)?_e={name:"Bada",osname:"Bada",bada:ve,version:z(/dolfin\/(\d+(\.\d+)?)/i)}:Ae?_e={name:"Tizen",osname:"Tizen",tizen:ve,version:z(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||qe}:/qupzilla/i.test(fe)?_e={name:"QupZilla",qupzilla:ve,version:z(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||qe}:/chromium/i.test(fe)?_e={name:"Chromium",chromium:ve,version:z(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||qe}:/chrome|crios|crmo/i.test(fe)?_e={name:"Chrome",chrome:ve,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:le?_e={name:"Android",version:qe}:/safari|applewebkit/i.test(fe)?(_e={name:"Safari",safari:ve},qe&&(_e.version=qe)):ae?(_e={name:ae=="iphone"?"iPhone":ae=="ipad"?"iPad":"iPod"},qe&&(_e.version=qe)):/googlebot/i.test(fe)?_e={name:"Googlebot",googlebot:ve,version:z(/googlebot\/(\d+(\.\d+))/i)||qe}:_e={name:z(/^(.*)\/(.*) /),version:ee(/^(.*)\/(.*) /)},!_e.msedge&&/(apple)?webkit/i.test(fe)?(/(apple)?webkit\/537\.36/i.test(fe)?(_e.name=_e.name||"Blink",_e.blink=ve):(_e.name=_e.name||"Webkit",_e.webkit=ve),!_e.version&&qe&&(_e.version=qe)):!_e.opera&&/gecko\//i.test(fe)&&(_e.name=_e.name||"Gecko",_e.gecko=ve,_e.version=_e.version||z(/gecko\/(\d+(\.\d+)?)/i)),!_e.windowsphone&&(le||_e.silk)?(_e.android=ve,_e.osname="Android"):!_e.windowsphone&&ae?(_e[ae]=ve,_e.ios=ve,_e.osname="iOS"):Qe?(_e.mac=ve,_e.osname="macOS"):yt?(_e.xbox=ve,_e.osname="Xbox"):Re?(_e.windows=ve,_e.osname="Windows"):He&&(_e.linux=ve,_e.osname="Linux");function st(wt){switch(wt){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 pt="";_e.windows?pt=st(z(/Windows ((NT|XP)( \d\d?.\d)?)/i)):_e.windowsphone?pt=z(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):_e.mac?(pt=z(/Mac OS X (\d+([_\.\s]\d+)*)/i),pt=pt.replace(/[_\s]/g,".")):ae?(pt=z(/os (\d+([_\s]\d+)*) like mac os x/i),pt=pt.replace(/[_\s]/g,".")):le?pt=z(/android[ \/-](\d+(\.\d+)*)/i):_e.webos?pt=z(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):_e.blackberry?pt=z(/rim\stablet\sos\s(\d+(\.\d+)*)/i):_e.bada?pt=z(/bada\/(\d+(\.\d+)*)/i):_e.tizen&&(pt=z(/tizen[\/\s](\d+(\.\d+)*)/i)),pt&&(_e.osversion=pt);var bt=!_e.windows&&pt.split(".")[0];return ut||pe||ae=="ipad"||le&&(bt==3||bt>=4&&!ct)||_e.silk?_e.tablet=ve:(ct||ae=="iphone"||ae=="ipod"||le||ue||_e.blackberry||_e.webos||_e.bada)&&(_e.mobile=ve),_e.msedge||_e.msie&&_e.version>=10||_e.yandexbrowser&&_e.version>=15||_e.vivaldi&&_e.version>=1||_e.chrome&&_e.version>=20||_e.samsungBrowser&&_e.version>=4||_e.whale&&be([_e.version,"1.0"])===1||_e.mzbrowser&&be([_e.version,"6.0"])===1||_e.focus&&be([_e.version,"1.0"])===1||_e.firefox&&_e.version>=20||_e.safari&&_e.version>=6||_e.opera&&_e.version>=10||_e.ios&&_e.osversion&&_e.osversion.split(".")[0]>=6||_e.blackberry&&_e.version>=10.1||_e.chromium&&_e.version>=20?_e.a=ve:_e.msie&&_e.version<10||_e.chrome&&_e.version<20||_e.firefox&&_e.version<20||_e.safari&&_e.version<6||_e.opera&&_e.version<10||_e.ios&&_e.osversion&&_e.osversion.split(".")[0]<6||_e.chromium&&_e.version<20?_e.c=ve:_e.x=ve,_e}var Ce=ce(typeof navigator!="undefined"&&navigator.userAgent||"");Ce.test=function(fe){for(var z=0;z<fe.length;++z){var ee=fe[z];if(typeof ee=="string"&&ee in Ce)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 be(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 me(fe,z,ee){var ae=Ce;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 be([re,fe[le]])<0}return z}function xe(fe,z,ee){return!me(fe,z,ee)}return Ce.isUnsupportedBrowser=me,Ce.compareVersions=be,Ce.check=xe,Ce._detect=ce,Ce.detect=ce,Ce})},{}],89:[function(oe,Ue,Oe){},{}],90:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";var ce=oe("base64-js"),Ce=oe("ieee754");Oe.Buffer=me,Oe.SlowBuffer=Pe,Oe.INSPECT_MAX_BYTES=50;var Ee=2147483647;Oe.kMaxLength=Ee,me.TYPED_ARRAY_SUPPORT=ye(),!me.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 Je=new Uint8Array(1);return Je.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Je.foo()===42}catch(Xe){return!1}}Object.defineProperty(me.prototype,"parent",{enumerable:!0,get:function(){if(me.isBuffer(this))return this.buffer}}),Object.defineProperty(me.prototype,"offset",{enumerable:!0,get:function(){if(me.isBuffer(this))return this.byteOffset}});function be(Je){if(Je>Ee)throw new RangeError('The value "'+Je+'" is invalid for option "size"');var Xe=new Uint8Array(Je);return Xe.__proto__=me.prototype,Xe}function me(Je,Xe,Ve){if(typeof Je=="number"){if(typeof Xe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ee(Je)}return xe(Je,Xe,Ve)}typeof Symbol!="undefined"&&Symbol.species!=null&&me[Symbol.species]===me&&Object.defineProperty(me,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),me.poolSize=8192;function xe(Je,Xe,Ve){if(typeof Je=="string")return ae(Je,Xe);if(ArrayBuffer.isView(Je))return re(Je);if(Je==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Je);if(gt(Je,ArrayBuffer)||Je&&gt(Je.buffer,ArrayBuffer))return le(Je,Xe,Ve);if(typeof Je=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var tt=Je.valueOf&&Je.valueOf();if(tt!=null&&tt!==Je)return me.from(tt,Xe,Ve);var Ze=ue(Je);if(Ze)return Ze;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Je[Symbol.toPrimitive]=="function")return me.from(Je[Symbol.toPrimitive]("string"),Xe,Ve);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Je)}me.from=function(Je,Xe,Ve){return xe(Je,Xe,Ve)},me.prototype.__proto__=Uint8Array.prototype,me.__proto__=Uint8Array;function fe(Je){if(typeof Je!="number")throw new TypeError('"size" argument must be of type number');if(Je<0)throw new RangeError('The value "'+Je+'" is invalid for option "size"')}function z(Je,Xe,Ve){return fe(Je),Je<=0?be(Je):Xe!==void 0?typeof Ve=="string"?be(Je).fill(Xe,Ve):be(Je).fill(Xe):be(Je)}me.alloc=function(Je,Xe,Ve){return z(Je,Xe,Ve)};function ee(Je){return fe(Je),be(Je<0?0:pe(Je)|0)}me.allocUnsafe=function(Je){return ee(Je)},me.allocUnsafeSlow=function(Je){return ee(Je)};function ae(Je,Xe){if((typeof Xe!="string"||Xe==="")&&(Xe="utf8"),!me.isEncoding(Xe))throw new TypeError("Unknown encoding: "+Xe);var Ve=we(Je,Xe)|0,tt=be(Ve),Ze=tt.write(Je,Xe);return Ze!==Ve&&(tt=tt.slice(0,Ze)),tt}function re(Je){for(var Xe=Je.length<0?0:pe(Je.length)|0,Ve=be(Xe),tt=0;tt<Xe;tt+=1)Ve[tt]=Je[tt]&255;return Ve}function le(Je,Xe,Ve){if(Xe<0||Je.byteLength<Xe)throw new RangeError('"offset" is outside of buffer bounds');if(Je.byteLength<Xe+(Ve||0))throw new RangeError('"length" is outside of buffer bounds');var tt;return Xe===void 0&&Ve===void 0?tt=new Uint8Array(Je):Ve===void 0?tt=new Uint8Array(Je,Xe):tt=new Uint8Array(Je,Xe,Ve),tt.__proto__=me.prototype,tt}function ue(Je){if(me.isBuffer(Je)){var Xe=pe(Je.length)|0,Ve=be(Xe);return Ve.length===0||Je.copy(Ve,0,0,Xe),Ve}if(Je.length!==void 0)return typeof Je.length!="number"||rt(Je.length)?be(0):re(Je);if(Je.type==="Buffer"&&Array.isArray(Je.data))return re(Je.data)}function pe(Je){if(Je>=Ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ee.toString(16)+" bytes");return Je|0}function Pe(Je){return+Je!=Je&&(Je=0),me.alloc(+Je)}me.isBuffer=function(Xe){return Xe!=null&&Xe._isBuffer===!0&&Xe!==me.prototype},me.compare=function(Xe,Ve){if(gt(Xe,Uint8Array)&&(Xe=me.from(Xe,Xe.offset,Xe.byteLength)),gt(Ve,Uint8Array)&&(Ve=me.from(Ve,Ve.offset,Ve.byteLength)),!me.isBuffer(Xe)||!me.isBuffer(Ve))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Xe===Ve)return 0;for(var tt=Xe.length,Ze=Ve.length,je=0,De=Math.min(tt,Ze);je<De;++je)if(Xe[je]!==Ve[je]){tt=Xe[je],Ze=Ve[je];break}return tt<Ze?-1:Ze<tt?1:0},me.isEncoding=function(Xe){switch(String(Xe).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}},me.concat=function(Xe,Ve){if(!Array.isArray(Xe))throw new TypeError('"list" argument must be an Array of Buffers');if(Xe.length===0)return me.alloc(0);var tt;if(Ve===void 0)for(Ve=0,tt=0;tt<Xe.length;++tt)Ve+=Xe[tt].length;var Ze=me.allocUnsafe(Ve),je=0;for(tt=0;tt<Xe.length;++tt){var De=Xe[tt];if(gt(De,Uint8Array)&&(De=me.from(De)),!me.isBuffer(De))throw new TypeError('"list" argument must be an Array of Buffers');De.copy(Ze,je),je+=De.length}return Ze};function we(Je,Xe){if(me.isBuffer(Je))return Je.length;if(ArrayBuffer.isView(Je)||gt(Je,ArrayBuffer))return Je.byteLength;if(typeof Je!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Je);var Ve=Je.length,tt=arguments.length>2&&arguments[2]===!0;if(!tt&&Ve===0)return 0;for(var Ze=!1;;)switch(Xe){case"ascii":case"latin1":case"binary":return Ve;case"utf8":case"utf-8":return at(Je).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ve*2;case"hex":return Ve>>>1;case"base64":return ht(Je).length;default:if(Ze)return tt?-1:at(Je).length;Xe=(""+Xe).toLowerCase(),Ze=!0}}me.byteLength=we;function Ne(Je,Xe,Ve){var tt=!1;if((Xe===void 0||Xe<0)&&(Xe=0),Xe>this.length||((Ve===void 0||Ve>this.length)&&(Ve=this.length),Ve<=0)||(Ve>>>=0,Xe>>>=0,Ve<=Xe))return"";for(Je||(Je="utf8");;)switch(Je){case"hex":return bt(this,Xe,Ve);case"utf8":case"utf-8":return ct(this,Xe,Ve);case"ascii":return st(this,Xe,Ve);case"latin1":case"binary":return pt(this,Xe,Ve);case"base64":return ut(this,Xe,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,Xe,Ve);default:if(tt)throw new TypeError("Unknown encoding: "+Je);Je=(Je+"").toLowerCase(),tt=!0}}me.prototype._isBuffer=!0;function Ae(Je,Xe,Ve){var tt=Je[Xe];Je[Xe]=Je[Ve],Je[Ve]=tt}me.prototype.swap16=function(){var Xe=this.length;if(Xe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ve=0;Ve<Xe;Ve+=2)Ae(this,Ve,Ve+1);return this},me.prototype.swap32=function(){var Xe=this.length;if(Xe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ve=0;Ve<Xe;Ve+=4)Ae(this,Ve,Ve+3),Ae(this,Ve+1,Ve+2);return this},me.prototype.swap64=function(){var Xe=this.length;if(Xe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ve=0;Ve<Xe;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},me.prototype.toString=function(){var Xe=this.length;return Xe===0?"":arguments.length===0?ct(this,0,Xe):Ne.apply(this,arguments)},me.prototype.toLocaleString=me.prototype.toString,me.prototype.equals=function(Xe){if(!me.isBuffer(Xe))throw new TypeError("Argument must be a Buffer");return this===Xe?!0:me.compare(this,Xe)===0},me.prototype.inspect=function(){var Xe="",Ve=Oe.INSPECT_MAX_BYTES;return Xe=this.toString("hex",0,Ve).replace(/(.{2})/g,"$1 ").trim(),this.length>Ve&&(Xe+=" ... "),"<Buffer "+Xe+">"},me.prototype.compare=function(Xe,Ve,tt,Ze,je){if(gt(Xe,Uint8Array)&&(Xe=me.from(Xe,Xe.offset,Xe.byteLength)),!me.isBuffer(Xe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Xe);if(Ve===void 0&&(Ve=0),tt===void 0&&(tt=Xe?Xe.length:0),Ze===void 0&&(Ze=0),je===void 0&&(je=this.length),Ve<0||tt>Xe.length||Ze<0||je>this.length)throw new RangeError("out of range index");if(Ze>=je&&Ve>=tt)return 0;if(Ze>=je)return-1;if(Ve>=tt)return 1;if(Ve>>>=0,tt>>>=0,Ze>>>=0,je>>>=0,this===Xe)return 0;for(var De=je-Ze,Ye=tt-Ve,dt=Math.min(De,Ye),Ke=this.slice(Ze,je),At=Xe.slice(Ve,tt),zt=0;zt<dt;++zt)if(Ke[zt]!==At[zt]){De=Ke[zt],Ye=At[zt];break}return De<Ye?-1:Ye<De?1:0};function Te(Je,Xe,Ve,tt,Ze){if(Je.length===0)return-1;if(typeof Ve=="string"?(tt=Ve,Ve=0):Ve>2147483647?Ve=2147483647:Ve<-2147483648&&(Ve=-2147483648),Ve=+Ve,rt(Ve)&&(Ve=Ze?0:Je.length-1),Ve<0&&(Ve=Je.length+Ve),Ve>=Je.length){if(Ze)return-1;Ve=Je.length-1}else if(Ve<0)if(Ze)Ve=0;else return-1;if(typeof Xe=="string"&&(Xe=me.from(Xe,tt)),me.isBuffer(Xe))return Xe.length===0?-1:Me(Je,Xe,Ve,tt,Ze);if(typeof Xe=="number")return Xe=Xe&255,typeof Uint8Array.prototype.indexOf=="function"?Ze?Uint8Array.prototype.indexOf.call(Je,Xe,Ve):Uint8Array.prototype.lastIndexOf.call(Je,Xe,Ve):Me(Je,[Xe],Ve,tt,Ze);throw new TypeError("val must be string, number or Buffer")}function Me(Je,Xe,Ve,tt,Ze){var je=1,De=Je.length,Ye=Xe.length;if(tt!==void 0&&(tt=String(tt).toLowerCase(),tt==="ucs2"||tt==="ucs-2"||tt==="utf16le"||tt==="utf-16le")){if(Je.length<2||Xe.length<2)return-1;je=2,De/=2,Ye/=2,Ve/=2}function dt(Ot,Vt){return je===1?Ot[Vt]:Ot.readUInt16BE(Vt*je)}var Ke;if(Ze){var At=-1;for(Ke=Ve;Ke<De;Ke++)if(dt(Je,Ke)===dt(Xe,At===-1?0:Ke-At)){if(At===-1&&(At=Ke),Ke-At+1===Ye)return At*je}else At!==-1&&(Ke-=Ke-At),At=-1}else for(Ve+Ye>De&&(Ve=De-Ye),Ke=Ve;Ke>=0;Ke--){for(var zt=!0,_t=0;_t<Ye;_t++)if(dt(Je,Ke+_t)!==dt(Xe,_t)){zt=!1;break}if(zt)return Ke}return-1}me.prototype.includes=function(Xe,Ve,tt){return this.indexOf(Xe,Ve,tt)!==-1},me.prototype.indexOf=function(Xe,Ve,tt){return Te(this,Xe,Ve,tt,!0)},me.prototype.lastIndexOf=function(Xe,Ve,tt){return Te(this,Xe,Ve,tt,!1)};function Be(Je,Xe,Ve,tt){Ve=Number(Ve)||0;var Ze=Je.length-Ve;tt?(tt=Number(tt),tt>Ze&&(tt=Ze)):tt=Ze;var je=Xe.length;tt>je/2&&(tt=je/2);for(var De=0;De<tt;++De){var Ye=parseInt(Xe.substr(De*2,2),16);if(rt(Ye))return De;Je[Ve+De]=Ye}return De}function Re(Je,Xe,Ve,tt){return Mt(at(Xe,Je.length-Ve),Je,Ve,tt)}function Qe(Je,Xe,Ve,tt){return Mt(Ct(Xe),Je,Ve,tt)}function He(Je,Xe,Ve,tt){return Qe(Je,Xe,Ve,tt)}function $e(Je,Xe,Ve,tt){return Mt(ht(Xe),Je,Ve,tt)}function qe(Je,Xe,Ve,tt){return Mt(nt(Xe,Je.length-Ve),Je,Ve,tt)}me.prototype.write=function(Xe,Ve,tt,Ze){if(Ve===void 0)Ze="utf8",tt=this.length,Ve=0;else if(tt===void 0&&typeof Ve=="string")Ze=Ve,tt=this.length,Ve=0;else if(isFinite(Ve))Ve=Ve>>>0,isFinite(tt)?(tt=tt>>>0,Ze===void 0&&(Ze="utf8")):(Ze=tt,tt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var je=this.length-Ve;if((tt===void 0||tt>je)&&(tt=je),Xe.length>0&&(tt<0||Ve<0)||Ve>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ze||(Ze="utf8");for(var De=!1;;)switch(Ze){case"hex":return Be(this,Xe,Ve,tt);case"utf8":case"utf-8":return Re(this,Xe,Ve,tt);case"ascii":return Qe(this,Xe,Ve,tt);case"latin1":case"binary":return He(this,Xe,Ve,tt);case"base64":return $e(this,Xe,Ve,tt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qe(this,Xe,Ve,tt);default:if(De)throw new TypeError("Unknown encoding: "+Ze);Ze=(""+Ze).toLowerCase(),De=!0}},me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ut(Je,Xe,Ve){return Xe===0&&Ve===Je.length?ce.fromByteArray(Je):ce.fromByteArray(Je.slice(Xe,Ve))}function ct(Je,Xe,Ve){Ve=Math.min(Je.length,Ve);for(var tt=[],Ze=Xe;Ze<Ve;){var je=Je[Ze],De=null,Ye=je>239?4:je>223?3:je>191?2:1;if(Ze+Ye<=Ve){var dt,Ke,At,zt;switch(Ye){case 1:je<128&&(De=je);break;case 2:dt=Je[Ze+1],(dt&192)===128&&(zt=(je&31)<<6|dt&63,zt>127&&(De=zt));break;case 3:dt=Je[Ze+1],Ke=Je[Ze+2],(dt&192)===128&&(Ke&192)===128&&(zt=(je&15)<<12|(dt&63)<<6|Ke&63,zt>2047&&(zt<55296||zt>57343)&&(De=zt));break;case 4:dt=Je[Ze+1],Ke=Je[Ze+2],At=Je[Ze+3],(dt&192)===128&&(Ke&192)===128&&(At&192)===128&&(zt=(je&15)<<18|(dt&63)<<12|(Ke&63)<<6|At&63,zt>65535&&zt<1114112&&(De=zt))}}De===null?(De=65533,Ye=1):De>65535&&(De-=65536,tt.push(De>>>10&1023|55296),De=56320|De&1023),tt.push(De),Ze+=Ye}return _e(tt)}var yt=4096;function _e(Je){var Xe=Je.length;if(Xe<=yt)return String.fromCharCode.apply(String,Je);for(var Ve="",tt=0;tt<Xe;)Ve+=String.fromCharCode.apply(String,Je.slice(tt,tt+=yt));return Ve}function st(Je,Xe,Ve){var tt="";Ve=Math.min(Je.length,Ve);for(var Ze=Xe;Ze<Ve;++Ze)tt+=String.fromCharCode(Je[Ze]&127);return tt}function pt(Je,Xe,Ve){var tt="";Ve=Math.min(Je.length,Ve);for(var Ze=Xe;Ze<Ve;++Ze)tt+=String.fromCharCode(Je[Ze]);return tt}function bt(Je,Xe,Ve){var tt=Je.length;(!Xe||Xe<0)&&(Xe=0),(!Ve||Ve<0||Ve>tt)&&(Ve=tt);for(var Ze="",je=Xe;je<Ve;++je)Ze+=Et(Je[je]);return Ze}function wt(Je,Xe,Ve){for(var tt=Je.slice(Xe,Ve),Ze="",je=0;je<tt.length;je+=2)Ze+=String.fromCharCode(tt[je]+tt[je+1]*256);return Ze}me.prototype.slice=function(Xe,Ve){var tt=this.length;Xe=~~Xe,Ve=Ve===void 0?tt:~~Ve,Xe<0?(Xe+=tt,Xe<0&&(Xe=0)):Xe>tt&&(Xe=tt),Ve<0?(Ve+=tt,Ve<0&&(Ve=0)):Ve>tt&&(Ve=tt),Ve<Xe&&(Ve=Xe);var Ze=this.subarray(Xe,Ve);return Ze.__proto__=me.prototype,Ze};function mt(Je,Xe,Ve){if(Je%1!==0||Je<0)throw new RangeError("offset is not uint");if(Je+Xe>Ve)throw new RangeError("Trying to access beyond buffer length")}me.prototype.readUIntLE=function(Xe,Ve,tt){Xe=Xe>>>0,Ve=Ve>>>0,tt||mt(Xe,Ve,this.length);for(var Ze=this[Xe],je=1,De=0;++De<Ve&&(je*=256);)Ze+=this[Xe+De]*je;return Ze},me.prototype.readUIntBE=function(Xe,Ve,tt){Xe=Xe>>>0,Ve=Ve>>>0,tt||mt(Xe,Ve,this.length);for(var Ze=this[Xe+--Ve],je=1;Ve>0&&(je*=256);)Ze+=this[Xe+--Ve]*je;return Ze},me.prototype.readUInt8=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,1,this.length),this[Xe]},me.prototype.readUInt16LE=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,2,this.length),this[Xe]|this[Xe+1]<<8},me.prototype.readUInt16BE=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,2,this.length),this[Xe]<<8|this[Xe+1]},me.prototype.readUInt32LE=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,4,this.length),(this[Xe]|this[Xe+1]<<8|this[Xe+2]<<16)+this[Xe+3]*16777216},me.prototype.readUInt32BE=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,4,this.length),this[Xe]*16777216+(this[Xe+1]<<16|this[Xe+2]<<8|this[Xe+3])},me.prototype.readIntLE=function(Xe,Ve,tt){Xe=Xe>>>0,Ve=Ve>>>0,tt||mt(Xe,Ve,this.length);for(var Ze=this[Xe],je=1,De=0;++De<Ve&&(je*=256);)Ze+=this[Xe+De]*je;return je*=128,Ze>=je&&(Ze-=Math.pow(2,8*Ve)),Ze},me.prototype.readIntBE=function(Xe,Ve,tt){Xe=Xe>>>0,Ve=Ve>>>0,tt||mt(Xe,Ve,this.length);for(var Ze=Ve,je=1,De=this[Xe+--Ze];Ze>0&&(je*=256);)De+=this[Xe+--Ze]*je;return je*=128,De>=je&&(De-=Math.pow(2,8*Ve)),De},me.prototype.readInt8=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,1,this.length),this[Xe]&128?(255-this[Xe]+1)*-1:this[Xe]},me.prototype.readInt16LE=function(Xe,Ve){Xe=Xe>>>0,Ve||mt(Xe,2,this.length);var tt=this[Xe]|this[Xe+1]<<8;return tt&32768?tt|4294901760:tt},me.prototype.readInt16BE=function(Xe,Ve){Xe=Xe>>>0,Ve||mt(Xe,2,this.length);var tt=this[Xe+1]|this[Xe]<<8;return tt&32768?tt|4294901760:tt},me.prototype.readInt32LE=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,4,this.length),this[Xe]|this[Xe+1]<<8|this[Xe+2]<<16|this[Xe+3]<<24},me.prototype.readInt32BE=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,4,this.length),this[Xe]<<24|this[Xe+1]<<16|this[Xe+2]<<8|this[Xe+3]},me.prototype.readFloatLE=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,4,this.length),Ce.read(this,Xe,!0,23,4)},me.prototype.readFloatBE=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,4,this.length),Ce.read(this,Xe,!1,23,4)},me.prototype.readDoubleLE=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,8,this.length),Ce.read(this,Xe,!0,52,8)},me.prototype.readDoubleBE=function(Xe,Ve){return Xe=Xe>>>0,Ve||mt(Xe,8,this.length),Ce.read(this,Xe,!1,52,8)};function vt(Je,Xe,Ve,tt,Ze,je){if(!me.isBuffer(Je))throw new TypeError('"buffer" argument must be a Buffer instance');if(Xe>Ze||Xe<je)throw new RangeError('"value" argument is out of bounds');if(Ve+tt>Je.length)throw new RangeError("Index out of range")}me.prototype.writeUIntLE=function(Xe,Ve,tt,Ze){if(Xe=+Xe,Ve=Ve>>>0,tt=tt>>>0,!Ze){var je=Math.pow(2,8*tt)-1;vt(this,Xe,Ve,tt,je,0)}var De=1,Ye=0;for(this[Ve]=Xe&255;++Ye<tt&&(De*=256);)this[Ve+Ye]=Xe/De&255;return Ve+tt},me.prototype.writeUIntBE=function(Xe,Ve,tt,Ze){if(Xe=+Xe,Ve=Ve>>>0,tt=tt>>>0,!Ze){var je=Math.pow(2,8*tt)-1;vt(this,Xe,Ve,tt,je,0)}var De=tt-1,Ye=1;for(this[Ve+De]=Xe&255;--De>=0&&(Ye*=256);)this[Ve+De]=Xe/Ye&255;return Ve+tt},me.prototype.writeUInt8=function(Xe,Ve,tt){return Xe=+Xe,Ve=Ve>>>0,tt||vt(this,Xe,Ve,1,255,0),this[Ve]=Xe&255,Ve+1},me.prototype.writeUInt16LE=function(Xe,Ve,tt){return Xe=+Xe,Ve=Ve>>>0,tt||vt(this,Xe,Ve,2,65535,0),this[Ve]=Xe&255,this[Ve+1]=Xe>>>8,Ve+2},me.prototype.writeUInt16BE=function(Xe,Ve,tt){return Xe=+Xe,Ve=Ve>>>0,tt||vt(this,Xe,Ve,2,65535,0),this[Ve]=Xe>>>8,this[Ve+1]=Xe&255,Ve+2},me.prototype.writeUInt32LE=function(Xe,Ve,tt){return Xe=+Xe,Ve=Ve>>>0,tt||vt(this,Xe,Ve,4,4294967295,0),this[Ve+3]=Xe>>>24,this[Ve+2]=Xe>>>16,this[Ve+1]=Xe>>>8,this[Ve]=Xe&255,Ve+4},me.prototype.writeUInt32BE=function(Xe,Ve,tt){return Xe=+Xe,Ve=Ve>>>0,tt||vt(this,Xe,Ve,4,4294967295,0),this[Ve]=Xe>>>24,this[Ve+1]=Xe>>>16,this[Ve+2]=Xe>>>8,this[Ve+3]=Xe&255,Ve+4},me.prototype.writeIntLE=function(Xe,Ve,tt,Ze){if(Xe=+Xe,Ve=Ve>>>0,!Ze){var je=Math.pow(2,8*tt-1);vt(this,Xe,Ve,tt,je-1,-je)}var De=0,Ye=1,dt=0;for(this[Ve]=Xe&255;++De<tt&&(Ye*=256);)Xe<0&&dt===0&&this[Ve+De-1]!==0&&(dt=1),this[Ve+De]=(Xe/Ye>>0)-dt&255;return Ve+tt},me.prototype.writeIntBE=function(Xe,Ve,tt,Ze){if(Xe=+Xe,Ve=Ve>>>0,!Ze){var je=Math.pow(2,8*tt-1);vt(this,Xe,Ve,tt,je-1,-je)}var De=tt-1,Ye=1,dt=0;for(this[Ve+De]=Xe&255;--De>=0&&(Ye*=256);)Xe<0&&dt===0&&this[Ve+De+1]!==0&&(dt=1),this[Ve+De]=(Xe/Ye>>0)-dt&255;return Ve+tt},me.prototype.writeInt8=function(Xe,Ve,tt){return Xe=+Xe,Ve=Ve>>>0,tt||vt(this,Xe,Ve,1,127,-128),Xe<0&&(Xe=255+Xe+1),this[Ve]=Xe&255,Ve+1},me.prototype.writeInt16LE=function(Xe,Ve,tt){return Xe=+Xe,Ve=Ve>>>0,tt||vt(this,Xe,Ve,2,32767,-32768),this[Ve]=Xe&255,this[Ve+1]=Xe>>>8,Ve+2},me.prototype.writeInt16BE=function(Xe,Ve,tt){return Xe=+Xe,Ve=Ve>>>0,tt||vt(this,Xe,Ve,2,32767,-32768),this[Ve]=Xe>>>8,this[Ve+1]=Xe&255,Ve+2},me.prototype.writeInt32LE=function(Xe,Ve,tt){return Xe=+Xe,Ve=Ve>>>0,tt||vt(this,Xe,Ve,4,2147483647,-2147483648),this[Ve]=Xe&255,this[Ve+1]=Xe>>>8,this[Ve+2]=Xe>>>16,this[Ve+3]=Xe>>>24,Ve+4},me.prototype.writeInt32BE=function(Xe,Ve,tt){return Xe=+Xe,Ve=Ve>>>0,tt||vt(this,Xe,Ve,4,2147483647,-2147483648),Xe<0&&(Xe=4294967295+Xe+1),this[Ve]=Xe>>>24,this[Ve+1]=Xe>>>16,this[Ve+2]=Xe>>>8,this[Ve+3]=Xe&255,Ve+4};function St(Je,Xe,Ve,tt,Ze,je){if(Ve+tt>Je.length)throw new RangeError("Index out of range");if(Ve<0)throw new RangeError("Index out of range")}function Nt(Je,Xe,Ve,tt,Ze){return Xe=+Xe,Ve=Ve>>>0,Ze||St(Je,Xe,Ve,4,34028234663852886e22,-34028234663852886e22),Ce.write(Je,Xe,Ve,tt,23,4),Ve+4}me.prototype.writeFloatLE=function(Xe,Ve,tt){return Nt(this,Xe,Ve,!0,tt)},me.prototype.writeFloatBE=function(Xe,Ve,tt){return Nt(this,Xe,Ve,!1,tt)};function Ft(Je,Xe,Ve,tt,Ze){return Xe=+Xe,Ve=Ve>>>0,Ze||St(Je,Xe,Ve,8,17976931348623157e292,-17976931348623157e292),Ce.write(Je,Xe,Ve,tt,52,8),Ve+8}me.prototype.writeDoubleLE=function(Xe,Ve,tt){return Ft(this,Xe,Ve,!0,tt)},me.prototype.writeDoubleBE=function(Xe,Ve,tt){return Ft(this,Xe,Ve,!1,tt)},me.prototype.copy=function(Xe,Ve,tt,Ze){if(!me.isBuffer(Xe))throw new TypeError("argument should be a Buffer");if(tt||(tt=0),!Ze&&Ze!==0&&(Ze=this.length),Ve>=Xe.length&&(Ve=Xe.length),Ve||(Ve=0),Ze>0&&Ze<tt&&(Ze=tt),Ze===tt||Xe.length===0||this.length===0)return 0;if(Ve<0)throw new RangeError("targetStart out of bounds");if(tt<0||tt>=this.length)throw new RangeError("Index out of range");if(Ze<0)throw new RangeError("sourceEnd out of bounds");Ze>this.length&&(Ze=this.length),Xe.length-Ve<Ze-tt&&(Ze=Xe.length-Ve+tt);var je=Ze-tt;if(this===Xe&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ve,tt,Ze);else if(this===Xe&&tt<Ve&&Ve<Ze)for(var De=je-1;De>=0;--De)Xe[De+Ve]=this[De+tt];else Uint8Array.prototype.set.call(Xe,this.subarray(tt,Ze),Ve);return je},me.prototype.fill=function(Xe,Ve,tt,Ze){if(typeof Xe=="string"){if(typeof Ve=="string"?(Ze=Ve,Ve=0,tt=this.length):typeof tt=="string"&&(Ze=tt,tt=this.length),Ze!==void 0&&typeof Ze!="string")throw new TypeError("encoding must be a string");if(typeof Ze=="string"&&!me.isEncoding(Ze))throw new TypeError("Unknown encoding: "+Ze);if(Xe.length===1){var je=Xe.charCodeAt(0);(Ze==="utf8"&&je<128||Ze==="latin1")&&(Xe=je)}}else typeof Xe=="number"&&(Xe=Xe&255);if(Ve<0||this.length<Ve||this.length<tt)throw new RangeError("Out of range index");if(tt<=Ve)return this;Ve=Ve>>>0,tt=tt===void 0?this.length:tt>>>0,Xe||(Xe=0);var De;if(typeof Xe=="number")for(De=Ve;De<tt;++De)this[De]=Xe;else{var Ye=me.isBuffer(Xe)?Xe:me.from(Xe,Ze),dt=Ye.length;if(dt===0)throw new TypeError('The value "'+Xe+'" is invalid for argument "value"');for(De=0;De<tt-Ve;++De)this[De+Ve]=Ye[De%dt]}return this};var Kt=/[^+/0-9A-Za-z-_]/g;function Pt(Je){if(Je=Je.split("=")[0],Je=Je.trim().replace(Kt,""),Je.length<2)return"";for(;Je.length%4!==0;)Je=Je+"=";return Je}function Et(Je){return Je<16?"0"+Je.toString(16):Je.toString(16)}function at(Je,Xe){Xe=Xe||1/0;for(var Ve,tt=Je.length,Ze=null,je=[],De=0;De<tt;++De){if(Ve=Je.charCodeAt(De),Ve>55295&&Ve<57344){if(!Ze){if(Ve>56319){(Xe-=3)>-1&&je.push(239,191,189);continue}else if(De+1===tt){(Xe-=3)>-1&&je.push(239,191,189);continue}Ze=Ve;continue}if(Ve<56320){(Xe-=3)>-1&&je.push(239,191,189),Ze=Ve;continue}Ve=(Ze-55296<<10|Ve-56320)+65536}else Ze&&(Xe-=3)>-1&&je.push(239,191,189);if(Ze=null,Ve<128){if((Xe-=1)<0)break;je.push(Ve)}else if(Ve<2048){if((Xe-=2)<0)break;je.push(Ve>>6|192,Ve&63|128)}else if(Ve<65536){if((Xe-=3)<0)break;je.push(Ve>>12|224,Ve>>6&63|128,Ve&63|128)}else if(Ve<1114112){if((Xe-=4)<0)break;je.push(Ve>>18|240,Ve>>12&63|128,Ve>>6&63|128,Ve&63|128)}else throw new Error("Invalid code point")}return je}function Ct(Je){for(var Xe=[],Ve=0;Ve<Je.length;++Ve)Xe.push(Je.charCodeAt(Ve)&255);return Xe}function nt(Je,Xe){for(var Ve,tt,Ze,je=[],De=0;De<Je.length&&!((Xe-=2)<0);++De)Ve=Je.charCodeAt(De),tt=Ve>>8,Ze=Ve%256,je.push(Ze),je.push(tt);return je}function ht(Je){return ce.toByteArray(Pt(Je))}function Mt(Je,Xe,Ve,tt){for(var Ze=0;Ze<tt&&!(Ze+Ve>=Xe.length||Ze>=Je.length);++Ze)Xe[Ze+Ve]=Je[Ze];return Ze}function gt(Je,Xe){return Je instanceof Xe||Je!=null&&Je.constructor!=null&&Je.constructor.name!=null&&Je.constructor.name===Xe.name}function rt(Je){return Je!==Je}}).call(this)}).call(this,oe("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(oe,Ue,Oe){Ue.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(oe,Ue,Oe){"use strict";var ve=oe("get-intrinsic"),ce=oe("./"),Ce=ce(ve("String.prototype.indexOf"));Ue.exports=function(ye,be){var me=ve(ye,!!be);return typeof me=="function"&&Ce(ye,".prototype.")>-1?ce(me):me}},{"./":93,"get-intrinsic":348}],93:[function(oe,Ue,Oe){"use strict";var ve=oe("function-bind"),ce=oe("get-intrinsic"),Ce=ce("%Function.prototype.apply%"),Ee=ce("%Function.prototype.call%"),ye=ce("%Reflect.apply%",!0)||ve.call(Ee,Ce),be=ce("%Object.getOwnPropertyDescriptor%",!0),me=ce("%Object.defineProperty%",!0),xe=ce("%Math.max%");if(me)try{me({},"a",{value:1})}catch(z){me=null}Ue.exports=function(ee){var ae=ye(ve,Ee,arguments);if(be&&me){var re=be(ae,"length");re.configurable&&me(ae,"length",{value:1+xe(0,ee.length-(arguments.length-1))})}return ae};var fe=function(){return ye(ve,Ce,arguments)};me?me(Ue.exports,"apply",{value:fe}):Ue.exports.apply=fe},{"function-bind":347,"get-intrinsic":348}],94:[function(oe,Ue,Oe){"use strict";var ve=Array.prototype.slice;Ue.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=ve.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 be=0;be<ye.length;be++)me=ye[be],Ee[me]===void 0&&(Ee[me]=this.src[me]);return Ee}for(var be=0;be<ye.length;be++){var me=ye[be];if(Ce(Ee,me)){var xe=this.src.__lookupGetter__(me),fe=this.src.__lookupSetter__(me);xe&&Ee.__defineGetter__(me,xe),fe&&Ee.__defineSetter__(me,fe),!xe&&!fe&&(Ee[me]=this.src[me])}}return Ee},ce.prototype.toCover=function(Ee){for(var ye=this.keys||Object.keys(this.src),be=0;be<ye.length;be++){var me=ye[be];delete Ee[me];var xe=this.src.__lookupGetter__(me),fe=this.src.__lookupSetter__(me);xe&&Ee.__defineGetter__(me,xe),fe&&Ee.__defineSetter__(me,fe),!xe&&!fe&&(Ee[me]=this.src[me])}},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 Ce(Ee,ye){return Ee[ye]===void 0&&Ee.__lookupGetter__(ye)===void 0&&Ee.__lookupSetter__(ye)===void 0}},{}],95:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/is-callable"),Ce=oe("../internals/try-to-string"),Ee=ve.TypeError;Ue.exports=function(ye){if(ce(ye))return ye;throw Ee(Ce(ye)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/is-constructor"),Ce=oe("../internals/try-to-string"),Ee=ve.TypeError;Ue.exports=function(ye){if(ce(ye))return ye;throw Ee(Ce(ye)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/is-callable"),Ce=ve.String,Ee=ve.TypeError;Ue.exports=function(ye){if(typeof ye=="object"||ce(ye))return ye;throw Ee("Can't set "+Ce(ye)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(oe,Ue,Oe){var ve=oe("../internals/well-known-symbol"),ce=oe("../internals/object-create"),Ce=oe("../internals/object-define-property"),Ee=ve("unscopables"),ye=Array.prototype;ye[Ee]==null&&Ce.f(ye,Ee,{configurable:!0,value:ce(null)}),Ue.exports=function(be){ye[Ee][be]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/string-multibyte").charAt;Ue.exports=function(ce,Ce,Ee){return Ce+(Ee?ve(ce,Ce).length:1)}},{"../internals/string-multibyte":239}],100:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/object-is-prototype-of"),Ce=ve.TypeError;Ue.exports=function(Ee,ye){if(ce(ye,Ee))return Ee;throw Ce("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/is-object"),Ce=ve.String,Ee=ve.TypeError;Ue.exports=function(ye){if(ce(ye))return ye;throw Ee(Ce(ye)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(oe,Ue,Oe){Ue.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-native"),ce=oe("../internals/descriptors"),Ce=oe("../internals/global"),Ee=oe("../internals/is-callable"),ye=oe("../internals/is-object"),be=oe("../internals/has-own-property"),me=oe("../internals/classof"),xe=oe("../internals/try-to-string"),fe=oe("../internals/create-non-enumerable-property"),z=oe("../internals/redefine"),ee=oe("../internals/object-define-property").f,ae=oe("../internals/object-is-prototype-of"),re=oe("../internals/object-get-prototype-of"),le=oe("../internals/object-set-prototype-of"),ue=oe("../internals/well-known-symbol"),pe=oe("../internals/uid"),Pe=Ce.Int8Array,we=Pe&&Pe.prototype,Ne=Ce.Uint8ClampedArray,Ae=Ne&&Ne.prototype,Te=Pe&&re(Pe),Me=we&&re(we),Be=Object.prototype,Re=Ce.TypeError,Qe=ue("toStringTag"),He=pe("TYPED_ARRAY_TAG"),$e=pe("TYPED_ARRAY_CONSTRUCTOR"),qe=ve&&!!le&&me(Ce.opera)!=="Opera",ut=!1,ct,yt,_e,st={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},pt={BigInt64Array:8,BigUint64Array:8},bt=function(Kt){if(!ye(Kt))return!1;var Pt=me(Kt);return Pt==="DataView"||be(st,Pt)||be(pt,Pt)},wt=function(Ft){if(!ye(Ft))return!1;var Kt=me(Ft);return be(st,Kt)||be(pt,Kt)},mt=function(Ft){if(wt(Ft))return Ft;throw Re("Target is not a typed array")},vt=function(Ft){if(Ee(Ft)&&(!le||ae(Te,Ft)))return Ft;throw Re(xe(Ft)+" is not a typed array constructor")},St=function(Ft,Kt,Pt,Et){if(ce){if(Pt)for(var at in st){var Ct=Ce[at];if(Ct&&be(Ct.prototype,Ft))try{delete Ct.prototype[Ft]}catch(nt){try{Ct.prototype[Ft]=Kt}catch(ht){}}}(!Me[Ft]||Pt)&&z(Me,Ft,Pt?Kt:qe&&we[Ft]||Kt,Et)}},Nt=function(Ft,Kt,Pt){var Et,at;if(ce){if(le){if(Pt){for(Et in st)if(at=Ce[Et],at&&be(at,Ft))try{delete at[Ft]}catch(Ct){}}if(!Te[Ft]||Pt)try{return z(Te,Ft,Pt?Kt:qe&&Te[Ft]||Kt)}catch(Ct){}else return}for(Et in st)at=Ce[Et],at&&(!at[Ft]||Pt)&&z(at,Ft,Kt)}};for(ct in st)yt=Ce[ct],_e=yt&&yt.prototype,_e?fe(_e,$e,yt):qe=!1;for(ct in pt)yt=Ce[ct],_e=yt&&yt.prototype,_e&&fe(_e,$e,yt);if((!qe||!Ee(Te)||Te===Function.prototype)&&(Te=function(){throw Re("Incorrect invocation")},qe))for(ct in st)Ce[ct]&&le(Ce[ct],Te);if((!qe||!Me||Me===Be)&&(Me=Te.prototype,qe))for(ct in st)Ce[ct]&&le(Ce[ct].prototype,Me);if(qe&&re(Ae)!==Me&&le(Ae,Me),ce&&!be(Me,Qe)){ut=!0,ee(Me,Qe,{get:function(){return ye(this)?this[He]:void 0}});for(ct in st)Ce[ct]&&fe(Ce[ct],He,ct)}Ue.exports={NATIVE_ARRAY_BUFFER_VIEWS:qe,TYPED_ARRAY_CONSTRUCTOR:$e,TYPED_ARRAY_TAG:ut&&He,aTypedArray:mt,aTypedArrayConstructor:vt,exportTypedArrayMethod:St,exportTypedArrayStaticMethod:Nt,isView:bt,isTypedArray:wt,TypedArray:Te,TypedArrayPrototype:Me}},{"../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(oe,Ue,Oe){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/descriptors"),Ee=oe("../internals/array-buffer-native"),ye=oe("../internals/function-name"),be=oe("../internals/create-non-enumerable-property"),me=oe("../internals/redefine-all"),xe=oe("../internals/fails"),fe=oe("../internals/an-instance"),z=oe("../internals/to-integer-or-infinity"),ee=oe("../internals/to-length"),ae=oe("../internals/to-index"),re=oe("../internals/ieee754"),le=oe("../internals/object-get-prototype-of"),ue=oe("../internals/object-set-prototype-of"),pe=oe("../internals/object-get-own-property-names").f,Pe=oe("../internals/object-define-property").f,we=oe("../internals/array-fill"),Ne=oe("../internals/array-slice-simple"),Ae=oe("../internals/set-to-string-tag"),Te=oe("../internals/internal-state"),Me=ye.PROPER,Be=ye.CONFIGURABLE,Re=Te.get,Qe=Te.set,He="ArrayBuffer",$e="DataView",qe="prototype",ut="Wrong length",ct="Wrong index",yt=ve[He],_e=yt,st=_e&&_e[qe],pt=ve[$e],bt=pt&&pt[qe],wt=Object.prototype,mt=ve.Array,vt=ve.RangeError,St=ce(we),Nt=ce([].reverse),Ft=re.pack,Kt=re.unpack,Pt=function(De){return[De&255]},Et=function(De){return[De&255,De>>8&255]},at=function(De){return[De&255,De>>8&255,De>>16&255,De>>24&255]},Ct=function(De){return De[3]<<24|De[2]<<16|De[1]<<8|De[0]},nt=function(De){return Ft(De,23,4)},ht=function(De){return Ft(De,52,8)},Mt=function(De,Ye){Pe(De[qe],Ye,{get:function(){return Re(this)[Ye]}})},gt=function(De,Ye,dt,Ke){var At=ae(dt),zt=Re(De);if(At+Ye>zt.byteLength)throw vt(ct);var _t=Re(zt.buffer).bytes,Ot=At+zt.byteOffset,Vt=Ne(_t,Ot,Ot+Ye);return Ke?Vt:Nt(Vt)},rt=function(De,Ye,dt,Ke,At,zt){var _t=ae(dt),Ot=Re(De);if(_t+Ye>Ot.byteLength)throw vt(ct);for(var Vt=Re(Ot.buffer).bytes,en=_t+Ot.byteOffset,on=Ke(+At),fn=0;fn<Ye;fn++)Vt[en+fn]=on[zt?fn:Ye-fn-1]};if(!Ee)_e=function(Ye){fe(this,st);var dt=ae(Ye);Qe(this,{bytes:St(mt(dt),0),byteLength:dt}),Ce||(this.byteLength=dt)},st=_e[qe],pt=function(Ye,dt,Ke){fe(this,bt),fe(Ye,st);var At=Re(Ye).byteLength,zt=z(dt);if(zt<0||zt>At)throw vt("Wrong offset");if(Ke=Ke===void 0?At-zt:ee(Ke),zt+Ke>At)throw vt(ut);Qe(this,{buffer:Ye,byteLength:Ke,byteOffset:zt}),Ce||(this.buffer=Ye,this.byteLength=Ke,this.byteOffset=zt)},bt=pt[qe],Ce&&(Mt(_e,"byteLength"),Mt(pt,"buffer"),Mt(pt,"byteLength"),Mt(pt,"byteOffset")),me(bt,{getInt8:function(Ye){return gt(this,1,Ye)[0]<<24>>24},getUint8:function(Ye){return gt(this,1,Ye)[0]},getInt16:function(Ye){var dt=gt(this,2,Ye,arguments.length>1?arguments[1]:void 0);return(dt[1]<<8|dt[0])<<16>>16},getUint16:function(Ye){var dt=gt(this,2,Ye,arguments.length>1?arguments[1]:void 0);return dt[1]<<8|dt[0]},getInt32:function(Ye){return Ct(gt(this,4,Ye,arguments.length>1?arguments[1]:void 0))},getUint32:function(Ye){return Ct(gt(this,4,Ye,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Ye){return Kt(gt(this,4,Ye,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Ye){return Kt(gt(this,8,Ye,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Ye,dt){rt(this,1,Ye,Pt,dt)},setUint8:function(Ye,dt){rt(this,1,Ye,Pt,dt)},setInt16:function(Ye,dt){rt(this,2,Ye,Et,dt,arguments.length>2?arguments[2]:void 0)},setUint16:function(Ye,dt){rt(this,2,Ye,Et,dt,arguments.length>2?arguments[2]:void 0)},setInt32:function(Ye,dt){rt(this,4,Ye,at,dt,arguments.length>2?arguments[2]:void 0)},setUint32:function(Ye,dt){rt(this,4,Ye,at,dt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Ye,dt){rt(this,4,Ye,nt,dt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Ye,dt){rt(this,8,Ye,ht,dt,arguments.length>2?arguments[2]:void 0)}});else{var Je=Me&&yt.name!==He;if(!xe(function(){yt(1)})||!xe(function(){new yt(-1)})||xe(function(){return new yt,new yt(1.5),new yt(NaN),Je&&!Be})){_e=function(Ye){return fe(this,st),new yt(ae(Ye))},_e[qe]=st;for(var Xe=pe(yt),Ve=0,tt;Xe.length>Ve;)(tt=Xe[Ve++])in _e||be(_e,tt,yt[tt]);st.constructor=_e}else Je&&Be&&be(yt,"name",He);ue&&le(bt)!==wt&&ue(bt,wt);var Ze=new pt(new _e(2)),je=ce(bt.setInt8);Ze.setInt8(0,2147483648),Ze.setInt8(1,2147483649),(Ze.getInt8(0)||!Ze.getInt8(1))&&me(bt,{setInt8:function(Ye,dt){je(this,Ye,dt<<24>>24)},setUint8:function(Ye,dt){je(this,Ye,dt<<24>>24)}},{unsafe:!0})}Ae(_e,He),Ae(pt,$e),Ue.exports={ArrayBuffer:_e,DataView:pt}},{"../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(oe,Ue,Oe){"use strict";var ve=oe("../internals/to-object"),ce=oe("../internals/to-absolute-index"),Ce=oe("../internals/length-of-array-like"),Ee=Math.min;Ue.exports=[].copyWithin||function(be,me){var xe=ve(this),fe=Ce(xe),z=ce(be,fe),ee=ce(me,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(oe,Ue,Oe){"use strict";var ve=oe("../internals/to-object"),ce=oe("../internals/to-absolute-index"),Ce=oe("../internals/length-of-array-like");Ue.exports=function(ye){for(var be=ve(this),me=Ce(be),xe=arguments.length,fe=ce(xe>1?arguments[1]:void 0,me),z=xe>2?arguments[2]:void 0,ee=z===void 0?me:ce(z,me);ee>fe;)be[fe++]=ye;return be}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-iteration").forEach,ce=oe("../internals/array-method-is-strict"),Ce=ce("forEach");Ue.exports=Ce?[].forEach:function(ye){return ve(this,ye,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(oe,Ue,Oe){var ve=oe("../internals/length-of-array-like");Ue.exports=function(ce,Ce){for(var Ee=0,ye=ve(Ce),be=new ce(ye);ye>Ee;)be[Ee]=Ce[Ee++];return be}},{"../internals/length-of-array-like":188}],109:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/function-bind-context"),Ce=oe("../internals/function-call"),Ee=oe("../internals/to-object"),ye=oe("../internals/call-with-safe-iteration-closing"),be=oe("../internals/is-array-iterator-method"),me=oe("../internals/is-constructor"),xe=oe("../internals/length-of-array-like"),fe=oe("../internals/create-property"),z=oe("../internals/get-iterator"),ee=oe("../internals/get-iterator-method"),ae=ve.Array;Ue.exports=function(le){var ue=Ee(le),pe=me(this),Pe=arguments.length,we=Pe>1?arguments[1]:void 0,Ne=we!==void 0;Ne&&(we=ce(we,Pe>2?arguments[2]:void 0));var Ae=ee(ue),Te=0,Me,Be,Re,Qe,He,$e;if(Ae&&!(this==ae&&be(Ae)))for(Qe=z(ue,Ae),He=Qe.next,Be=pe?new this:[];!(Re=Ce(He,Qe)).done;Te++)$e=Ne?ye(Qe,we,[Re.value,Te],!0):Re.value,fe(Be,Te,$e);else for(Me=xe(ue),Be=pe?new this(Me):ae(Me);Me>Te;Te++)$e=Ne?we(ue[Te],Te):ue[Te],fe(Be,Te,$e);return Be.length=Te,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(oe,Ue,Oe){var ve=oe("../internals/to-indexed-object"),ce=oe("../internals/to-absolute-index"),Ce=oe("../internals/length-of-array-like"),Ee=function(ye){return function(be,me,xe){var fe=ve(be),z=Ce(fe),ee=ce(xe,z),ae;if(ye&&me!=me){for(;z>ee;)if(ae=fe[ee++],ae!=ae)return!0}else for(;z>ee;ee++)if((ye||ee in fe)&&fe[ee]===me)return ye||ee||0;return!ye&&-1}};Ue.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(oe,Ue,Oe){var ve=oe("../internals/function-bind-context"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/indexed-object"),Ee=oe("../internals/to-object"),ye=oe("../internals/length-of-array-like"),be=oe("../internals/array-species-create"),me=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(Pe,we,Ne,Ae){for(var Te=Ee(Pe),Me=Ce(Te),Be=ve(we,Ne),Re=ye(Me),Qe=0,He=Ae||be,$e=z?He(Pe,Re):ee||ue?He(Pe,0):void 0,qe,ut;Re>Qe;Qe++)if((pe||Qe in Me)&&(qe=Me[Qe],ut=Be(qe,Qe,Te),fe))if(z)$e[Qe]=ut;else if(ut)switch(fe){case 3:return!0;case 5:return qe;case 6:return Qe;case 2:me($e,qe)}else switch(fe){case 4:return!1;case 7:me($e,qe)}return le?-1:ae||re?re:$e}};Ue.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(oe,Ue,Oe){"use strict";var ve=oe("../internals/function-apply"),ce=oe("../internals/to-indexed-object"),Ce=oe("../internals/to-integer-or-infinity"),Ee=oe("../internals/length-of-array-like"),ye=oe("../internals/array-method-is-strict"),be=Math.min,me=[].lastIndexOf,xe=!!me&&1/[1].lastIndexOf(1,-0)<0,fe=ye("lastIndexOf"),z=xe||!fe;Ue.exports=z?function(ae){if(xe)return ve(me,this,arguments)||0;var re=ce(this),le=Ee(re),ue=le-1;for(arguments.length>1&&(ue=be(ue,Ce(arguments[1]))),ue<0&&(ue=le+ue);ue>=0;ue--)if(ue in re&&re[ue]===ae)return ue||0;return-1}:me},{"../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(oe,Ue,Oe){var ve=oe("../internals/fails"),ce=oe("../internals/well-known-symbol"),Ce=oe("../internals/engine-v8-version"),Ee=ce("species");Ue.exports=function(ye){return Ce>=51||!ve(function(){var be=[],me=be.constructor={};return me[Ee]=function(){return{foo:1}},be[ye](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/fails");Ue.exports=function(ce,Ce){var Ee=[][ce];return!!Ee&&ve(function(){Ee.call(null,Ce||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/a-callable"),Ce=oe("../internals/to-object"),Ee=oe("../internals/indexed-object"),ye=oe("../internals/length-of-array-like"),be=ve.TypeError,me=function(xe){return function(fe,z,ee,ae){ce(z);var re=Ce(fe),le=Ee(re),ue=ye(re),pe=xe?ue-1:0,Pe=xe?-1:1;if(ee<2)for(;;){if(pe in le){ae=le[pe],pe+=Pe;break}if(pe+=Pe,xe?pe<0:ue<=pe)throw be("Reduce of empty array with no initial value")}for(;xe?pe>=0:ue>pe;pe+=Pe)pe in le&&(ae=z(ae,le[pe],pe,re));return ae}};Ue.exports={left:me(!1),right:me(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/to-absolute-index"),Ce=oe("../internals/length-of-array-like"),Ee=oe("../internals/create-property"),ye=ve.Array,be=Math.max;Ue.exports=function(me,xe,fe){for(var z=Ce(me),ee=ce(xe,z),ae=ce(fe===void 0?z:fe,z),re=ye(be(ae-ee,0)),le=0;ee<ae;ee++,le++)Ee(re,le,me[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(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this");Ue.exports=ve([].slice)},{"../internals/function-uncurry-this":157}],118:[function(oe,Ue,Oe){var ve=oe("../internals/array-slice-simple"),ce=Math.floor,Ce=function(be,me){var xe=be.length,fe=ce(xe/2);return xe<8?Ee(be,me):ye(be,Ce(ve(be,0,fe),me),Ce(ve(be,fe),me),me)},Ee=function(be,me){for(var xe=be.length,fe=1,z,ee;fe<xe;){for(ee=fe,z=be[fe];ee&&me(be[ee-1],z)>0;)be[ee]=be[--ee];ee!==fe++&&(be[ee]=z)}return be},ye=function(be,me,xe,fe){for(var z=me.length,ee=xe.length,ae=0,re=0;ae<z||re<ee;)be[ae+re]=ae<z&&re<ee?fe(me[ae],xe[re])<=0?me[ae++]:xe[re++]:ae<z?me[ae++]:xe[re++];return be};Ue.exports=Ce},{"../internals/array-slice-simple":116}],119:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/is-array"),Ce=oe("../internals/is-constructor"),Ee=oe("../internals/is-object"),ye=oe("../internals/well-known-symbol"),be=ye("species"),me=ve.Array;Ue.exports=function(xe){var fe;return ce(xe)&&(fe=xe.constructor,Ce(fe)&&(fe===me||ce(fe.prototype))?fe=void 0:Ee(fe)&&(fe=fe[be],fe===null&&(fe=void 0))),fe===void 0?me:fe}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(oe,Ue,Oe){var ve=oe("../internals/array-species-constructor");Ue.exports=function(ce,Ce){return new(ve(ce))(Ce===0?0:Ce)}},{"../internals/array-species-constructor":119}],121:[function(oe,Ue,Oe){var ve=oe("../internals/an-object"),ce=oe("../internals/iterator-close");Ue.exports=function(Ce,Ee,ye,be){try{return be?Ee(ve(ye)[0],ye[1]):Ee(ye)}catch(me){ce(Ce,"throw",me)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(oe,Ue,Oe){var ve=oe("../internals/well-known-symbol"),ce=ve("iterator"),Ce=!1;try{var Ee=0,ye={next:function(){return{done:!!Ee++}},return:function(){Ce=!0}};ye[ce]=function(){return this},Array.from(ye,function(){throw 2})}catch(be){}Ue.exports=function(be,me){if(!me&&!Ce)return!1;var xe=!1;try{var fe={};fe[ce]=function(){return{next:function(){return{done:xe=!0}}}},be(fe)}catch(z){}return xe}},{"../internals/well-known-symbol":268}],123:[function(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this"),ce=ve({}.toString),Ce=ve("".slice);Ue.exports=function(Ee){return Ce(ce(Ee),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/to-string-tag-support"),Ce=oe("../internals/is-callable"),Ee=oe("../internals/classof-raw"),ye=oe("../internals/well-known-symbol"),be=ye("toStringTag"),me=ve.Object,xe=Ee(function(){return arguments}())=="Arguments",fe=function(z,ee){try{return z[ee]}catch(ae){}};Ue.exports=ce?Ee:function(z){var ee,ae,re;return z===void 0?"Undefined":z===null?"Null":typeof(ae=fe(ee=me(z),be))=="string"?ae:xe?Ee(ee):(re=Ee(ee))=="Object"&&Ce(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(oe,Ue,Oe){var ve=oe("../internals/has-own-property"),ce=oe("../internals/own-keys"),Ce=oe("../internals/object-get-own-property-descriptor"),Ee=oe("../internals/object-define-property");Ue.exports=function(ye,be,me){for(var xe=ce(be),fe=Ee.f,z=Ce.f,ee=0;ee<xe.length;ee++){var ae=xe[ee];!ve(ye,ae)&&!(me&&ve(me,ae))&&fe(ye,ae,z(be,ae))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(oe,Ue,Oe){var ve=oe("../internals/well-known-symbol"),ce=ve("match");Ue.exports=function(Ce){var Ee=/./;try{"/./"[Ce](Ee)}catch(ye){try{return Ee[ce]=!1,"/./"[Ce](Ee)}catch(be){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(oe,Ue,Oe){var ve=oe("../internals/fails");Ue.exports=!ve(function(){function ce(){}return ce.prototype.constructor=null,Object.getPrototypeOf(new ce)!==ce.prototype})},{"../internals/fails":150}],128:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/iterators-core").IteratorPrototype,ce=oe("../internals/object-create"),Ce=oe("../internals/create-property-descriptor"),Ee=oe("../internals/set-to-string-tag"),ye=oe("../internals/iterators"),be=function(){return this};Ue.exports=function(me,xe,fe,z){var ee=xe+" Iterator";return me.prototype=ce(ve,{next:Ce(+!z,fe)}),Ee(me,ee,!1,!0),ye[ee]=be,me}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(oe,Ue,Oe){var ve=oe("../internals/descriptors"),ce=oe("../internals/object-define-property"),Ce=oe("../internals/create-property-descriptor");Ue.exports=ve?function(Ee,ye,be){return ce.f(Ee,ye,Ce(1,be))}:function(Ee,ye,be){return Ee[ye]=be,Ee}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(oe,Ue,Oe){Ue.exports=function(ve,ce){return{enumerable:!(ve&1),configurable:!(ve&2),writable:!(ve&4),value:ce}}},{}],131:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/to-property-key"),ce=oe("../internals/object-define-property"),Ce=oe("../internals/create-property-descriptor");Ue.exports=function(Ee,ye,be){var me=ve(ye);me in Ee?ce.f(Ee,me,Ce(0,be)):Ee[me]=be}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-call"),Ce=oe("../internals/is-pure"),Ee=oe("../internals/function-name"),ye=oe("../internals/is-callable"),be=oe("../internals/create-iterator-constructor"),me=oe("../internals/object-get-prototype-of"),xe=oe("../internals/object-set-prototype-of"),fe=oe("../internals/set-to-string-tag"),z=oe("../internals/create-non-enumerable-property"),ee=oe("../internals/redefine"),ae=oe("../internals/well-known-symbol"),re=oe("../internals/iterators"),le=oe("../internals/iterators-core"),ue=Ee.PROPER,pe=Ee.CONFIGURABLE,Pe=le.IteratorPrototype,we=le.BUGGY_SAFARI_ITERATORS,Ne=ae("iterator"),Ae="keys",Te="values",Me="entries",Be=function(){return this};Ue.exports=function(Re,Qe,He,$e,qe,ut,ct){be(He,Qe,$e);var yt=function(Ft){if(Ft===qe&&wt)return wt;if(!we&&Ft in pt)return pt[Ft];switch(Ft){case Ae:return function(){return new He(this,Ft)};case Te:return function(){return new He(this,Ft)};case Me:return function(){return new He(this,Ft)}}return function(){return new He(this)}},_e=Qe+" Iterator",st=!1,pt=Re.prototype,bt=pt[Ne]||pt["@@iterator"]||qe&&pt[qe],wt=!we&&bt||yt(qe),mt=Qe=="Array"&&pt.entries||bt,vt,St,Nt;if(mt&&(vt=me(mt.call(new Re)),vt!==Object.prototype&&vt.next&&(!Ce&&me(vt)!==Pe&&(xe?xe(vt,Pe):ye(vt[Ne])||ee(vt,Ne,Be)),fe(vt,_e,!0,!0),Ce&&(re[_e]=Be))),ue&&qe==Te&&bt&&bt.name!==Te&&(!Ce&&pe?z(pt,"name",Te):(st=!0,wt=function(){return ce(bt,this)})),qe)if(St={values:yt(Te),keys:ut?wt:yt(Ae),entries:yt(Me)},ct)for(Nt in St)(we||st||!(Nt in pt))&&ee(pt,Nt,St[Nt]);else ve({target:Qe,proto:!0,forced:we||st},St);return(!Ce||ct)&&pt[Ne]!==wt&&ee(pt,Ne,wt,{name:qe}),re[Qe]=wt,St}},{"../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(oe,Ue,Oe){var ve=oe("../internals/path"),ce=oe("../internals/has-own-property"),Ce=oe("../internals/well-known-symbol-wrapped"),Ee=oe("../internals/object-define-property").f;Ue.exports=function(ye){var be=ve.Symbol||(ve.Symbol={});ce(be,ye)||Ee(be,ye,{value:Ce.f(ye)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(oe,Ue,Oe){var ve=oe("../internals/fails");Ue.exports=!ve(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/is-object"),Ce=ve.document,Ee=ce(Ce)&&ce(Ce.createElement);Ue.exports=function(ye){return Ee?Ce.createElement(ye):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(oe,Ue,Oe){Ue.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(oe,Ue,Oe){var ve=oe("../internals/document-create-element"),ce=ve("span").classList,Ce=ce&&ce.constructor&&ce.constructor.prototype;Ue.exports=Ce===Object.prototype?void 0:Ce},{"../internals/document-create-element":135}],138:[function(oe,Ue,Oe){var ve=oe("../internals/engine-user-agent"),ce=ve.match(/firefox\/(\d+)/i);Ue.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],139:[function(oe,Ue,Oe){Ue.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(oe,Ue,Oe){var ve=oe("../internals/engine-user-agent");Ue.exports=/MSIE|Trident/.test(ve)},{"../internals/engine-user-agent":145}],141:[function(oe,Ue,Oe){var ve=oe("../internals/engine-user-agent"),ce=oe("../internals/global");Ue.exports=/ipad|iphone|ipod/i.test(ve)&&ce.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(oe,Ue,Oe){var ve=oe("../internals/engine-user-agent");Ue.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ve)},{"../internals/engine-user-agent":145}],143:[function(oe,Ue,Oe){var ve=oe("../internals/classof-raw"),ce=oe("../internals/global");Ue.exports=ve(ce.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(oe,Ue,Oe){var ve=oe("../internals/engine-user-agent");Ue.exports=/web0s(?!.*chrome)/i.test(ve)},{"../internals/engine-user-agent":145}],145:[function(oe,Ue,Oe){var ve=oe("../internals/get-built-in");Ue.exports=ve("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/engine-user-agent"),Ce=ve.process,Ee=ve.Deno,ye=Ce&&Ce.versions||Ee&&Ee.version,be=ye&&ye.v8,me,xe;be&&(me=be.split("."),xe=me[0]>0&&me[0]<4?1:+(me[0]+me[1])),!xe&&ce&&(me=ce.match(/Edge\/(\d+)/),(!me||me[1]>=74)&&(me=ce.match(/Chrome\/(\d+)/),me&&(xe=+me[1]))),Ue.exports=xe},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(oe,Ue,Oe){var ve=oe("../internals/engine-user-agent"),ce=ve.match(/AppleWebKit\/(\d+)\./);Ue.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],148:[function(oe,Ue,Oe){Ue.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/object-get-own-property-descriptor").f,Ce=oe("../internals/create-non-enumerable-property"),Ee=oe("../internals/redefine"),ye=oe("../internals/set-global"),be=oe("../internals/copy-constructor-properties"),me=oe("../internals/is-forced");Ue.exports=function(xe,fe){var z=xe.target,ee=xe.global,ae=xe.stat,re,le,ue,pe,Pe,we;if(ee?le=ve:ae?le=ve[z]||ye(z,{}):le=(ve[z]||{}).prototype,le)for(ue in fe){if(Pe=fe[ue],xe.noTargetGet?(we=ce(le,ue),pe=we&&we.value):pe=le[ue],re=me(ee?ue:z+(ae?".":"#")+ue,xe.forced),!re&&pe!==void 0){if(typeof Pe==typeof pe)continue;be(Pe,pe)}(xe.sham||pe&&pe.sham)&&Ce(Pe,"sham",!0),Ee(le,ue,Pe,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(oe,Ue,Oe){Ue.exports=function(ve){try{return!!ve()}catch(ce){return!0}}},{}],151:[function(oe,Ue,Oe){"use strict";oe("../modules/es.regexp.exec");var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/redefine"),Ce=oe("../internals/regexp-exec"),Ee=oe("../internals/fails"),ye=oe("../internals/well-known-symbol"),be=oe("../internals/create-non-enumerable-property"),me=ye("species"),xe=RegExp.prototype;Ue.exports=function(fe,z,ee,ae){var re=ye(fe),le=!Ee(function(){var we={};return we[re]=function(){return 7},""[fe](we)!=7}),ue=le&&!Ee(function(){var we=!1,Ne=/a/;return fe==="split"&&(Ne={},Ne.constructor={},Ne.constructor[me]=function(){return Ne},Ne.flags="",Ne[re]=/./[re]),Ne.exec=function(){return we=!0,null},Ne[re](""),!we});if(!le||!ue||ee){var pe=ve(/./[re]),Pe=z(re,""[fe],function(we,Ne,Ae,Te,Me){var Be=ve(we),Re=Ne.exec;return Re===Ce||Re===xe.exec?le&&!Me?{done:!0,value:pe(Ne,Ae,Te)}:{done:!0,value:Be(Ae,Ne,Te)}:{done:!1}});ce(String.prototype,fe,Pe[0]),ce(xe,re,Pe[1])}ae&&be(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(oe,Ue,Oe){var ve=oe("../internals/function-bind-native"),ce=Function.prototype,Ce=ce.apply,Ee=ce.call;Ue.exports=typeof Reflect=="object"&&Reflect.apply||(ve?Ee.bind(Ce):function(){return Ee.apply(Ce,arguments)})},{"../internals/function-bind-native":154}],153:[function(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/a-callable"),Ce=oe("../internals/function-bind-native"),Ee=ve(ve.bind);Ue.exports=function(ye,be){return ce(ye),be===void 0?ye:Ce?Ee(ye,be):function(){return ye.apply(be,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(oe,Ue,Oe){var ve=oe("../internals/fails");Ue.exports=!ve(function(){var ce=function(){}.bind();return typeof ce!="function"||ce.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(oe,Ue,Oe){var ve=oe("../internals/function-bind-native"),ce=Function.prototype.call;Ue.exports=ve?ce.bind(ce):function(){return ce.apply(ce,arguments)}},{"../internals/function-bind-native":154}],156:[function(oe,Ue,Oe){var ve=oe("../internals/descriptors"),ce=oe("../internals/has-own-property"),Ce=Function.prototype,Ee=ve&&Object.getOwnPropertyDescriptor,ye=ce(Ce,"name"),be=ye&&function(){}.name==="something",me=ye&&(!ve||ve&&Ee(Ce,"name").configurable);Ue.exports={EXISTS:ye,PROPER:be,CONFIGURABLE:me}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(oe,Ue,Oe){var ve=oe("../internals/function-bind-native"),ce=Function.prototype,Ce=ce.bind,Ee=ce.call,ye=ve&&Ce.bind(Ee,Ee);Ue.exports=ve?function(be){return be&&ye(be)}:function(be){return be&&function(){return Ee.apply(be,arguments)}}},{"../internals/function-bind-native":154}],158:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/is-callable"),Ce=function(Ee){return ce(Ee)?Ee:void 0};Ue.exports=function(Ee,ye){return arguments.length<2?Ce(ve[Ee]):ve[Ee]&&ve[Ee][ye]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(oe,Ue,Oe){var ve=oe("../internals/classof"),ce=oe("../internals/get-method"),Ce=oe("../internals/iterators"),Ee=oe("../internals/well-known-symbol"),ye=Ee("iterator");Ue.exports=function(be){if(be!=null)return ce(be,ye)||ce(be,"@@iterator")||Ce[ve(be)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/function-call"),Ce=oe("../internals/a-callable"),Ee=oe("../internals/an-object"),ye=oe("../internals/try-to-string"),be=oe("../internals/get-iterator-method"),me=ve.TypeError;Ue.exports=function(xe,fe){var z=arguments.length<2?be(xe):fe;if(Ce(z))return Ee(ce(z,xe));throw me(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(oe,Ue,Oe){var ve=oe("../internals/a-callable");Ue.exports=function(ce,Ce){var Ee=ce[Ce];return Ee==null?void 0:ve(Ee)}},{"../internals/a-callable":95}],162:[function(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-object"),Ce=Math.floor,Ee=ve("".charAt),ye=ve("".replace),be=ve("".slice),me=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xe=/\$([$&'`]|\d{1,2})/g;Ue.exports=function(fe,z,ee,ae,re,le){var ue=ee+fe.length,pe=ae.length,Pe=xe;return re!==void 0&&(re=ce(re),Pe=me),ye(le,Pe,function(we,Ne){var Ae;switch(Ee(Ne,0)){case"$":return"$";case"&":return fe;case"`":return be(z,0,ee);case"'":return be(z,ue);case"<":Ae=re[be(Ne,1,-1)];break;default:var Te=+Ne;if(Te===0)return we;if(Te>pe){var Me=Ce(Te/10);return Me===0?we:Me<=pe?ae[Me-1]===void 0?Ee(Ne,1):ae[Me-1]+Ee(Ne,1):we}Ae=ae[Te-1]}return Ae===void 0?"":Ae})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(oe,Ue,Oe){(function(ve){(function(){var ce=function(Ce){return Ce&&Ce.Math==Math&&Ce};Ue.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof ve=="object"&&ve)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-object"),Ce=ve({}.hasOwnProperty);Ue.exports=Object.hasOwn||function(ye,be){return Ce(ce(ye),be)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(oe,Ue,Oe){Ue.exports={}},{}],166:[function(oe,Ue,Oe){var ve=oe("../internals/global");Ue.exports=function(ce,Ce){var Ee=ve.console;Ee&&Ee.error&&(arguments.length==1?Ee.error(ce):Ee.error(ce,Ce))}},{"../internals/global":163}],167:[function(oe,Ue,Oe){var ve=oe("../internals/get-built-in");Ue.exports=ve("document","documentElement")},{"../internals/get-built-in":158}],168:[function(oe,Ue,Oe){var ve=oe("../internals/descriptors"),ce=oe("../internals/fails"),Ce=oe("../internals/document-create-element");Ue.exports=!ve&&!ce(function(){return Object.defineProperty(Ce("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=ve.Array,Ce=Math.abs,Ee=Math.pow,ye=Math.floor,be=Math.log,me=Math.LN2,xe=function(z,ee,ae){var re=ce(ae),le=ae*8-ee-1,ue=(1<<le)-1,pe=ue>>1,Pe=ee===23?Ee(2,-24)-Ee(2,-77):0,we=z<0||z===0&&1/z<0?1:0,Ne=0,Ae,Te,Me;for(z=Ce(z),z!=z||z===1/0?(Te=z!=z?1:0,Ae=ue):(Ae=ye(be(z)/me),Me=Ee(2,-Ae),z*Me<1&&(Ae--,Me*=2),Ae+pe>=1?z+=Pe/Me:z+=Pe*Ee(2,1-pe),z*Me>=2&&(Ae++,Me/=2),Ae+pe>=ue?(Te=0,Ae=ue):Ae+pe>=1?(Te=(z*Me-1)*Ee(2,ee),Ae=Ae+pe):(Te=z*Ee(2,pe-1)*Ee(2,ee),Ae=0));ee>=8;)re[Ne++]=Te&255,Te/=256,ee-=8;for(Ae=Ae<<ee|Te,le+=ee;le>0;)re[Ne++]=Ae&255,Ae/=256,le-=8;return re[--Ne]|=we*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,Pe=ae-1,we=z[Pe--],Ne=we&127,Ae;for(we>>=7;pe>0;)Ne=Ne*256+z[Pe--],pe-=8;for(Ae=Ne&(1<<-pe)-1,Ne>>=-pe,pe+=ee;pe>0;)Ae=Ae*256+z[Pe--],pe-=8;if(Ne===0)Ne=1-ue;else{if(Ne===le)return Ae?NaN:we?-1/0:1/0;Ae=Ae+Ee(2,ee),Ne=Ne-ue}return(we?-1:1)*Ae*Ee(2,Ne-ee)};Ue.exports={pack:xe,unpack:fe}},{"../internals/global":163}],170:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/fails"),Ee=oe("../internals/classof-raw"),ye=ve.Object,be=ce("".split);Ue.exports=Ce(function(){return!ye("z").propertyIsEnumerable(0)})?function(me){return Ee(me)=="String"?be(me,""):ye(me)}:ye},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(oe,Ue,Oe){var ve=oe("../internals/is-callable"),ce=oe("../internals/is-object"),Ce=oe("../internals/object-set-prototype-of");Ue.exports=function(Ee,ye,be){var me,xe;return Ce&&ve(me=ye.constructor)&&me!==be&&ce(xe=me.prototype)&&xe!==be.prototype&&Ce(Ee,xe),Ee}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/is-callable"),Ce=oe("../internals/shared-store"),Ee=ve(Function.toString);ce(Ce.inspectSource)||(Ce.inspectSource=function(ye){return Ee(ye)}),Ue.exports=Ce.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(oe,Ue,Oe){var ve=oe("../internals/native-weak-map"),ce=oe("../internals/global"),Ce=oe("../internals/function-uncurry-this"),Ee=oe("../internals/is-object"),ye=oe("../internals/create-non-enumerable-property"),be=oe("../internals/has-own-property"),me=oe("../internals/shared-store"),xe=oe("../internals/shared-key"),fe=oe("../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,{})},Pe=function(Be){return function(Re){var Qe;if(!Ee(Re)||(Qe=le(Re)).type!==Be)throw ee("Incompatible receiver, "+Be+" required");return Qe}};if(ve||me.state){var we=me.state||(me.state=new ae),Ne=Ce(we.get),Ae=Ce(we.has),Te=Ce(we.set);re=function(Be,Re){if(Ae(we,Be))throw new ee(z);return Re.facade=Be,Te(we,Be,Re),Re},le=function(Be){return Ne(we,Be)||{}},ue=function(Be){return Ae(we,Be)}}else{var Me=xe("state");fe[Me]=!0,re=function(Be,Re){if(be(Be,Me))throw new ee(z);return Re.facade=Be,ye(Be,Me,Re),Re},le=function(Be){return be(Be,Me)?Be[Me]:{}},ue=function(Be){return be(Be,Me)}}Ue.exports={set:re,get:le,has:ue,enforce:pe,getterFor:Pe}},{"../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(oe,Ue,Oe){var ve=oe("../internals/well-known-symbol"),ce=oe("../internals/iterators"),Ce=ve("iterator"),Ee=Array.prototype;Ue.exports=function(ye){return ye!==void 0&&(ce.Array===ye||Ee[Ce]===ye)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(oe,Ue,Oe){var ve=oe("../internals/classof-raw");Ue.exports=Array.isArray||function(Ce){return ve(Ce)=="Array"}},{"../internals/classof-raw":123}],176:[function(oe,Ue,Oe){Ue.exports=function(ve){return typeof ve=="function"}},{}],177:[function(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/fails"),Ce=oe("../internals/is-callable"),Ee=oe("../internals/classof"),ye=oe("../internals/get-built-in"),be=oe("../internals/inspect-source"),me=function(){},xe=[],fe=ye("Reflect","construct"),z=/^\s*(?:class|function)\b/,ee=ve(z.exec),ae=!z.exec(me),re=function(pe){if(!Ce(pe))return!1;try{return fe(me,xe,pe),!0}catch(Pe){return!1}},le=function(pe){if(!Ce(pe))return!1;switch(Ee(pe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!ee(z,be(pe))}catch(Pe){return!0}};le.sham=!0,Ue.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(oe,Ue,Oe){var ve=oe("../internals/fails"),ce=oe("../internals/is-callable"),Ce=/#|\.prototype\./,Ee=function(fe,z){var ee=be[ye(fe)];return ee==xe?!0:ee==me?!1:ce(z)?ve(z):!!z},ye=Ee.normalize=function(fe){return String(fe).replace(Ce,".").toLowerCase()},be=Ee.data={},me=Ee.NATIVE="N",xe=Ee.POLYFILL="P";Ue.exports=Ee},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(oe,Ue,Oe){var ve=oe("../internals/is-object"),ce=Math.floor;Ue.exports=Number.isInteger||function(Ee){return!ve(Ee)&&isFinite(Ee)&&ce(Ee)===Ee}},{"../internals/is-object":180}],180:[function(oe,Ue,Oe){var ve=oe("../internals/is-callable");Ue.exports=function(ce){return typeof ce=="object"?ce!==null:ve(ce)}},{"../internals/is-callable":176}],181:[function(oe,Ue,Oe){Ue.exports=!1},{}],182:[function(oe,Ue,Oe){var ve=oe("../internals/is-object"),ce=oe("../internals/classof-raw"),Ce=oe("../internals/well-known-symbol"),Ee=Ce("match");Ue.exports=function(ye){var be;return ve(ye)&&((be=ye[Ee])!==void 0?!!be:ce(ye)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/get-built-in"),Ce=oe("../internals/is-callable"),Ee=oe("../internals/object-is-prototype-of"),ye=oe("../internals/use-symbol-as-uid"),be=ve.Object;Ue.exports=ye?function(me){return typeof me=="symbol"}:function(me){var xe=ce("Symbol");return Ce(xe)&&Ee(xe.prototype,be(me))}},{"../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(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/function-bind-context"),Ce=oe("../internals/function-call"),Ee=oe("../internals/an-object"),ye=oe("../internals/try-to-string"),be=oe("../internals/is-array-iterator-method"),me=oe("../internals/length-of-array-like"),xe=oe("../internals/object-is-prototype-of"),fe=oe("../internals/get-iterator"),z=oe("../internals/get-iterator-method"),ee=oe("../internals/iterator-close"),ae=ve.TypeError,re=function(ue,pe){this.stopped=ue,this.result=pe},le=re.prototype;Ue.exports=function(ue,pe,Pe){var we=Pe&&Pe.that,Ne=!!(Pe&&Pe.AS_ENTRIES),Ae=!!(Pe&&Pe.IS_ITERATOR),Te=!!(Pe&&Pe.INTERRUPTED),Me=ce(pe,we),Be,Re,Qe,He,$e,qe,ut,ct=function(_e){return Be&&ee(Be,"normal",_e),new re(!0,_e)},yt=function(_e){return Ne?(Ee(_e),Te?Me(_e[0],_e[1],ct):Me(_e[0],_e[1])):Te?Me(_e,ct):Me(_e)};if(Ae)Be=ue;else{if(Re=z(ue),!Re)throw ae(ye(ue)+" is not iterable");if(be(Re)){for(Qe=0,He=me(ue);He>Qe;Qe++)if($e=yt(ue[Qe]),$e&&xe(le,$e))return $e;return new re(!1)}Be=fe(ue,Re)}for(qe=Be.next;!(ut=Ce(qe,Be)).done;){try{$e=yt(ut.value)}catch(_e){ee(Be,"throw",_e)}if(typeof $e=="object"&&$e&&xe(le,$e))return $e}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(oe,Ue,Oe){var ve=oe("../internals/function-call"),ce=oe("../internals/an-object"),Ce=oe("../internals/get-method");Ue.exports=function(Ee,ye,be){var me,xe;ce(Ee);try{if(me=Ce(Ee,"return"),!me){if(ye==="throw")throw be;return be}me=ve(me,Ee)}catch(fe){xe=!0,me=fe}if(ye==="throw")throw be;if(xe)throw me;return ce(me),be}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/fails"),ce=oe("../internals/is-callable"),Ce=oe("../internals/object-create"),Ee=oe("../internals/object-get-prototype-of"),ye=oe("../internals/redefine"),be=oe("../internals/well-known-symbol"),me=oe("../internals/is-pure"),xe=be("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||ve(function(){var le={};return z[xe].call(le)!==le});re?z={}:me&&(z=Ce(z)),ce(z[xe])||ye(z,xe,function(){return this}),Ue.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(oe,Ue,Oe){arguments[4][165][0].apply(Oe,arguments)},{dup:165}],188:[function(oe,Ue,Oe){var ve=oe("../internals/to-length");Ue.exports=function(ce){return ve(ce.length)}},{"../internals/to-length":249}],189:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/function-bind-context"),Ce=oe("../internals/object-get-own-property-descriptor").f,Ee=oe("../internals/task").set,ye=oe("../internals/engine-is-ios"),be=oe("../internals/engine-is-ios-pebble"),me=oe("../internals/engine-is-webos-webkit"),xe=oe("../internals/engine-is-node"),fe=ve.MutationObserver||ve.WebKitMutationObserver,z=ve.document,ee=ve.process,ae=ve.Promise,re=Ce(ve,"queueMicrotask"),le=re&&re.value,ue,pe,Pe,we,Ne,Ae,Te,Me;le||(ue=function(){var Be,Re;for(xe&&(Be=ee.domain)&&Be.exit();pe;){Re=pe.fn,pe=pe.next;try{Re()}catch(Qe){throw pe?we():Pe=void 0,Qe}}Pe=void 0,Be&&Be.enter()},!ye&&!xe&&!me&&fe&&z?(Ne=!0,Ae=z.createTextNode(""),new fe(ue).observe(Ae,{characterData:!0}),we=function(){Ae.data=Ne=!Ne}):!be&&ae&&ae.resolve?(Te=ae.resolve(void 0),Te.constructor=ae,Me=ce(Te.then,Te),we=function(){Me(ue)}):xe?we=function(){ee.nextTick(ue)}:(Ee=ce(Ee,ve),we=function(){Ee(ue)})),Ue.exports=le||function(Be){var Re={fn:Be,next:void 0};Pe&&(Pe.next=Re),pe||(pe=Re,we()),Pe=Re}},{"../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(oe,Ue,Oe){var ve=oe("../internals/native-symbol");Ue.exports=ve&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(oe,Ue,Oe){var ve=oe("../internals/engine-v8-version"),ce=oe("../internals/fails");Ue.exports=!!Object.getOwnPropertySymbols&&!ce(function(){var Ce=Symbol();return!String(Ce)||!(Object(Ce)instanceof Symbol)||!Symbol.sham&&ve&&ve<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/is-callable"),Ce=oe("../internals/inspect-source"),Ee=ve.WeakMap;Ue.exports=ce(Ee)&&/native code/.test(Ce(Ee))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/a-callable"),ce=function(Ce){var Ee,ye;this.promise=new Ce(function(be,me){if(Ee!==void 0||ye!==void 0)throw TypeError("Bad Promise constructor");Ee=be,ye=me}),this.resolve=ve(Ee),this.reject=ve(ye)};Ue.exports.f=function(Ce){return new ce(Ce)}},{"../internals/a-callable":95}],194:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/is-regexp"),Ce=ve.TypeError;Ue.exports=function(Ee){if(ce(Ee))throw Ce("The method doesn't accept regular expressions");return Ee}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/descriptors"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/function-call"),Ee=oe("../internals/fails"),ye=oe("../internals/object-keys"),be=oe("../internals/object-get-own-property-symbols"),me=oe("../internals/object-property-is-enumerable"),xe=oe("../internals/to-object"),fe=oe("../internals/indexed-object"),z=Object.assign,ee=Object.defineProperty,ae=ce([].concat);Ue.exports=!z||Ee(function(){if(ve&&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(Pe){le[Pe]=Pe}),z({},re)[ue]!=7||ye(z({},le)).join("")!=pe})?function(le,ue){for(var pe=xe(le),Pe=arguments.length,we=1,Ne=be.f,Ae=me.f;Pe>we;)for(var Te=fe(arguments[we++]),Me=Ne?ae(ye(Te),Ne(Te)):ye(Te),Be=Me.length,Re=0,Qe;Be>Re;)Qe=Me[Re++],(!ve||Ce(Ae,Te,Qe))&&(pe[Qe]=Te[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(oe,Ue,Oe){var ve=oe("../internals/an-object"),ce=oe("../internals/object-define-properties"),Ce=oe("../internals/enum-bug-keys"),Ee=oe("../internals/hidden-keys"),ye=oe("../internals/html"),be=oe("../internals/document-create-element"),me=oe("../internals/shared-key"),xe=">",fe="<",z="prototype",ee="script",ae=me("IE_PROTO"),re=function(){},le=function(Ne){return fe+ee+xe+Ne+fe+"/"+ee+xe},ue=function(Ne){Ne.write(le("")),Ne.close();var Ae=Ne.parentWindow.Object;return Ne=null,Ae},pe=function(){var Ne=be("iframe"),Ae="java"+ee+":",Te;return Ne.style.display="none",ye.appendChild(Ne),Ne.src=String(Ae),Te=Ne.contentWindow.document,Te.open(),Te.write(le("document.F=Object")),Te.close(),Te.F},Pe,we=function(){try{Pe=new ActiveXObject("htmlfile")}catch(Ae){}we=typeof document!="undefined"?document.domain&&Pe?ue(Pe):pe():ue(Pe);for(var Ne=Ce.length;Ne--;)delete we[z][Ce[Ne]];return we()};Ee[ae]=!0,Ue.exports=Object.create||function(Ae,Te){var Me;return Ae!==null?(re[z]=ve(Ae),Me=new re,re[z]=null,Me[ae]=Ae):Me=we(),Te===void 0?Me:ce.f(Me,Te)}},{"../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(oe,Ue,Oe){var ve=oe("../internals/descriptors"),ce=oe("../internals/v8-prototype-define-bug"),Ce=oe("../internals/object-define-property"),Ee=oe("../internals/an-object"),ye=oe("../internals/to-indexed-object"),be=oe("../internals/object-keys");Oe.f=ve&&!ce?Object.defineProperties:function(xe,fe){Ee(xe);for(var z=ye(fe),ee=be(fe),ae=ee.length,re=0,le;ae>re;)Ce.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(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/descriptors"),Ce=oe("../internals/ie8-dom-define"),Ee=oe("../internals/v8-prototype-define-bug"),ye=oe("../internals/an-object"),be=oe("../internals/to-property-key"),me=ve.TypeError,xe=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,z="enumerable",ee="configurable",ae="writable";Oe.f=ce?Ee?function(le,ue,pe){if(ye(le),ue=be(ue),ye(pe),typeof le=="function"&&ue==="prototype"&&"value"in pe&&ae in pe&&!pe[ae]){var Pe=fe(le,ue);Pe&&Pe[ae]&&(le[ue]=pe.value,pe={configurable:ee in pe?pe[ee]:Pe[ee],enumerable:z in pe?pe[z]:Pe[z],writable:!1})}return xe(le,ue,pe)}:xe:function(le,ue,pe){if(ye(le),ue=be(ue),ye(pe),Ce)try{return xe(le,ue,pe)}catch(Pe){}if("get"in pe||"set"in pe)throw me("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(oe,Ue,Oe){var ve=oe("../internals/descriptors"),ce=oe("../internals/function-call"),Ce=oe("../internals/object-property-is-enumerable"),Ee=oe("../internals/create-property-descriptor"),ye=oe("../internals/to-indexed-object"),be=oe("../internals/to-property-key"),me=oe("../internals/has-own-property"),xe=oe("../internals/ie8-dom-define"),fe=Object.getOwnPropertyDescriptor;Oe.f=ve?fe:function(ee,ae){if(ee=ye(ee),ae=be(ae),xe)try{return fe(ee,ae)}catch(re){}if(me(ee,ae))return Ee(!ce(Ce.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(oe,Ue,Oe){var ve=oe("../internals/classof-raw"),ce=oe("../internals/to-indexed-object"),Ce=oe("../internals/object-get-own-property-names").f,Ee=oe("../internals/array-slice-simple"),ye=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],be=function(me){try{return Ce(me)}catch(xe){return Ee(ye)}};Ue.exports.f=function(xe){return ye&&ve(xe)=="Window"?be(xe):Ce(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(oe,Ue,Oe){var ve=oe("../internals/object-keys-internal"),ce=oe("../internals/enum-bug-keys"),Ce=ce.concat("length","prototype");Oe.f=Object.getOwnPropertyNames||function(ye){return ve(ye,Ce)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(oe,Ue,Oe){Oe.f=Object.getOwnPropertySymbols},{}],203:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/has-own-property"),Ce=oe("../internals/is-callable"),Ee=oe("../internals/to-object"),ye=oe("../internals/shared-key"),be=oe("../internals/correct-prototype-getter"),me=ye("IE_PROTO"),xe=ve.Object,fe=xe.prototype;Ue.exports=be?xe.getPrototypeOf:function(z){var ee=Ee(z);if(ce(ee,me))return ee[me];var ae=ee.constructor;return Ce(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(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this");Ue.exports=ve({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/has-own-property"),Ce=oe("../internals/to-indexed-object"),Ee=oe("../internals/array-includes").indexOf,ye=oe("../internals/hidden-keys"),be=ve([].push);Ue.exports=function(me,xe){var fe=Ce(me),z=0,ee=[],ae;for(ae in fe)!ce(ye,ae)&&ce(fe,ae)&&be(ee,ae);for(;xe.length>z;)ce(fe,ae=xe[z++])&&(~Ee(ee,ae)||be(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(oe,Ue,Oe){var ve=oe("../internals/object-keys-internal"),ce=oe("../internals/enum-bug-keys");Ue.exports=Object.keys||function(Ee){return ve(Ee,ce)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(oe,Ue,Oe){"use strict";var ve={}.propertyIsEnumerable,ce=Object.getOwnPropertyDescriptor,Ce=ce&&!ve.call({1:2},1);Oe.f=Ce?function(ye){var be=ce(this,ye);return!!be&&be.enumerable}:ve},{}],208:[function(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/an-object"),Ce=oe("../internals/a-possible-prototype");Ue.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Ee=!1,ye={},be;try{be=ve(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),be(ye,[]),Ee=ye instanceof Array}catch(me){}return function(xe,fe){return ce(xe),Ce(fe),Ee?be(xe,fe):xe.__proto__=fe,xe}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(oe,Ue,Oe){var ve=oe("../internals/descriptors"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/object-keys"),Ee=oe("../internals/to-indexed-object"),ye=oe("../internals/object-property-is-enumerable").f,be=ce(ye),me=ce([].push),xe=function(fe){return function(z){for(var ee=Ee(z),ae=Ce(ee),re=ae.length,le=0,ue=[],pe;re>le;)pe=ae[le++],(!ve||be(ee,pe))&&me(ue,fe?[pe,ee[pe]]:ee[pe]);return ue}};Ue.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(oe,Ue,Oe){"use strict";var ve=oe("../internals/to-string-tag-support"),ce=oe("../internals/classof");Ue.exports=ve?{}.toString:function(){return"[object "+ce(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/function-call"),Ce=oe("../internals/is-callable"),Ee=oe("../internals/is-object"),ye=ve.TypeError;Ue.exports=function(be,me){var xe,fe;if(me==="string"&&Ce(xe=be.toString)&&!Ee(fe=ce(xe,be))||Ce(xe=be.valueOf)&&!Ee(fe=ce(xe,be))||me!=="string"&&Ce(xe=be.toString)&&!Ee(fe=ce(xe,be)))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(oe,Ue,Oe){var ve=oe("../internals/get-built-in"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/object-get-own-property-names"),Ee=oe("../internals/object-get-own-property-symbols"),ye=oe("../internals/an-object"),be=ce([].concat);Ue.exports=ve("Reflect","ownKeys")||function(xe){var fe=Ce.f(ye(xe)),z=Ee.f;return z?be(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(oe,Ue,Oe){var ve=oe("../internals/global");Ue.exports=ve},{"../internals/global":163}],214:[function(oe,Ue,Oe){Ue.exports=function(ve){try{return{error:!1,value:ve()}}catch(ce){return{error:!0,value:ce}}}},{}],215:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/promise-native-constructor"),Ce=oe("../internals/is-callable"),Ee=oe("../internals/is-forced"),ye=oe("../internals/inspect-source"),be=oe("../internals/well-known-symbol"),me=oe("../internals/engine-is-browser"),xe=oe("../internals/is-pure"),fe=oe("../internals/engine-v8-version"),z=ce&&ce.prototype,ee=be("species"),ae=!1,re=Ce(ve.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 Pe=new ce(function(Ae){Ae(1)}),we=function(Ae){Ae(function(){},function(){})},Ne=Pe.constructor={};return Ne[ee]=we,ae=Pe.then(function(){})instanceof we,ae?!pe&&me&&!re:!0});Ue.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(oe,Ue,Oe){var ve=oe("../internals/global");Ue.exports=ve.Promise},{"../internals/global":163}],217:[function(oe,Ue,Oe){var ve=oe("../internals/an-object"),ce=oe("../internals/is-object"),Ce=oe("../internals/new-promise-capability");Ue.exports=function(Ee,ye){if(ve(Ee),ce(ye)&&ye.constructor===Ee)return ye;var be=Ce.f(Ee),me=be.resolve;return me(ye),be.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(oe,Ue,Oe){var ve=oe("../internals/promise-native-constructor"),ce=oe("../internals/check-correctness-of-iteration"),Ce=oe("../internals/promise-constructor-detection").CONSTRUCTOR;Ue.exports=Ce||!ce(function(Ee){ve.all(Ee).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(oe,Ue,Oe){var ve=oe("../internals/object-define-property").f;Ue.exports=function(ce,Ce,Ee){Ee in ce||ve(ce,Ee,{configurable:!0,get:function(){return Ce[Ee]},set:function(ye){Ce[Ee]=ye}})}},{"../internals/object-define-property":198}],220:[function(oe,Ue,Oe){var ve=function(){this.head=null,this.tail=null};ve.prototype={add:function(ce){var Ce={item:ce,next:null};this.head?this.tail.next=Ce:this.head=Ce,this.tail=Ce},get:function(){var ce=this.head;if(ce)return this.head=ce.next,this.tail===ce&&(this.tail=null),ce.item}},Ue.exports=ve},{}],221:[function(oe,Ue,Oe){var ve=oe("../internals/redefine");Ue.exports=function(ce,Ce,Ee){for(var ye in Ce)ve(ce,ye,Ce[ye],Ee);return ce}},{"../internals/redefine":222}],222:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/is-callable"),Ce=oe("../internals/has-own-property"),Ee=oe("../internals/create-non-enumerable-property"),ye=oe("../internals/set-global"),be=oe("../internals/inspect-source"),me=oe("../internals/internal-state"),xe=oe("../internals/function-name").CONFIGURABLE,fe=me.get,z=me.enforce,ee=String(String).split("String");(Ue.exports=function(ae,re,le,ue){var pe=ue?!!ue.unsafe:!1,Pe=ue?!!ue.enumerable:!1,we=ue?!!ue.noTargetGet:!1,Ne=ue&&ue.name!==void 0?ue.name:re,Ae;if(ce(le)&&(String(Ne).slice(0,7)==="Symbol("&&(Ne="["+String(Ne).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ce(le,"name")||xe&&le.name!==Ne)&&Ee(le,"name",Ne),Ae=z(le),Ae.source||(Ae.source=ee.join(typeof Ne=="string"?Ne:""))),ae===ve){Pe?ae[re]=le:ye(re,le);return}else pe?!we&&ae[re]&&(Pe=!0):delete ae[re];Pe?ae[re]=le:Ee(ae,re,le)})(Function.prototype,"toString",function(){return ce(this)&&fe(this).source||be(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(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/function-call"),Ce=oe("../internals/an-object"),Ee=oe("../internals/is-callable"),ye=oe("../internals/classof-raw"),be=oe("../internals/regexp-exec"),me=ve.TypeError;Ue.exports=function(xe,fe){var z=xe.exec;if(Ee(z)){var ee=ce(z,xe,fe);return ee!==null&&Ce(ee),ee}if(ye(xe)==="RegExp")return ce(be,xe,fe);throw me("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(oe,Ue,Oe){"use strict";var ve=oe("../internals/function-call"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/to-string"),Ee=oe("../internals/regexp-flags"),ye=oe("../internals/regexp-sticky-helpers"),be=oe("../internals/shared"),me=oe("../internals/object-create"),xe=oe("../internals/internal-state").get,fe=oe("../internals/regexp-unsupported-dot-all"),z=oe("../internals/regexp-unsupported-ncg"),ee=be("native-string-replace",String.prototype.replace),ae=RegExp.prototype.exec,re=ae,le=ce("".charAt),ue=ce("".indexOf),pe=ce("".replace),Pe=ce("".slice),we=function(){var Me=/a/,Be=/b*/g;return ve(ae,Me,"a"),ve(ae,Be,"a"),Me.lastIndex!==0||Be.lastIndex!==0}(),Ne=ye.BROKEN_CARET,Ae=/()??/.exec("")[1]!==void 0,Te=we||Ae||Ne||fe||z;Te&&(re=function(Be){var Re=this,Qe=xe(Re),He=Ce(Be),$e=Qe.raw,qe,ut,ct,yt,_e,st,pt;if($e)return $e.lastIndex=Re.lastIndex,qe=ve(re,$e,He),Re.lastIndex=$e.lastIndex,qe;var bt=Qe.groups,wt=Ne&&Re.sticky,mt=ve(Ee,Re),vt=Re.source,St=0,Nt=He;if(wt&&(mt=pe(mt,"y",""),ue(mt,"g")===-1&&(mt+="g"),Nt=Pe(He,Re.lastIndex),Re.lastIndex>0&&(!Re.multiline||Re.multiline&&le(He,Re.lastIndex-1)!==`
`)&&(vt="(?: "+vt+")",Nt=" "+Nt,St++),ut=new RegExp("^(?:"+vt+")",mt)),Ae&&(ut=new RegExp("^"+vt+"$(?!\\s)",mt)),we&&(ct=Re.lastIndex),yt=ve(ae,wt?ut:Re,Nt),wt?yt?(yt.input=Pe(yt.input,St),yt[0]=Pe(yt[0],St),yt.index=Re.lastIndex,Re.lastIndex+=yt[0].length):Re.lastIndex=0:we&&yt&&(Re.lastIndex=Re.global?yt.index+yt[0].length:ct),Ae&&yt&&yt.length>1&&ve(ee,yt[0],ut,function(){for(_e=1;_e<arguments.length-2;_e++)arguments[_e]===void 0&&(yt[_e]=void 0)}),yt&&bt)for(yt.groups=st=me(null),_e=0;_e<bt.length;_e++)pt=bt[_e],st[pt[0]]=yt[pt[1]];return yt}),Ue.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(oe,Ue,Oe){"use strict";var ve=oe("../internals/an-object");Ue.exports=function(){var ce=ve(this),Ce="";return ce.hasIndices&&(Ce+="d"),ce.global&&(Ce+="g"),ce.ignoreCase&&(Ce+="i"),ce.multiline&&(Ce+="m"),ce.dotAll&&(Ce+="s"),ce.unicode&&(Ce+="u"),ce.sticky&&(Ce+="y"),Ce}},{"../internals/an-object":101}],226:[function(oe,Ue,Oe){var ve=oe("../internals/function-call"),ce=oe("../internals/has-own-property"),Ce=oe("../internals/object-is-prototype-of"),Ee=oe("../internals/regexp-flags"),ye=RegExp.prototype;Ue.exports=function(be){var me=be.flags;return me===void 0&&!("flags"in ye)&&!ce(be,"flags")&&Ce(ye,be)?ve(Ee,be):me}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(oe,Ue,Oe){var ve=oe("../internals/fails"),ce=oe("../internals/global"),Ce=ce.RegExp,Ee=ve(function(){var me=Ce("a","y");return me.lastIndex=2,me.exec("abcd")!=null}),ye=Ee||ve(function(){return!Ce("a","y").sticky}),be=Ee||ve(function(){var me=Ce("^r","gy");return me.lastIndex=2,me.exec("str")!=null});Ue.exports={BROKEN_CARET:be,MISSED_STICKY:ye,UNSUPPORTED_Y:Ee}},{"../internals/fails":150,"../internals/global":163}],228:[function(oe,Ue,Oe){var ve=oe("../internals/fails"),ce=oe("../internals/global"),Ce=ce.RegExp;Ue.exports=ve(function(){var Ee=Ce(".","s");return!(Ee.dotAll&&Ee.exec(`
`)&&Ee.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(oe,Ue,Oe){var ve=oe("../internals/fails"),ce=oe("../internals/global"),Ce=ce.RegExp;Ue.exports=ve(function(){var Ee=Ce("(?<a>b)","g");return Ee.exec("b").groups.a!=="b"||"b".replace(Ee,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=ve.TypeError;Ue.exports=function(Ce){if(Ce==null)throw ce("Can't call method on "+Ce);return Ce}},{"../internals/global":163}],231:[function(oe,Ue,Oe){Ue.exports=Object.is||function(ce,Ce){return ce===Ce?ce!==0||1/ce===1/Ce:ce!=ce&&Ce!=Ce}},{}],232:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=Object.defineProperty;Ue.exports=function(Ce,Ee){try{ce(ve,Ce,{value:Ee,configurable:!0,writable:!0})}catch(ye){ve[Ce]=Ee}return Ee}},{"../internals/global":163}],233:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/get-built-in"),ce=oe("../internals/object-define-property"),Ce=oe("../internals/well-known-symbol"),Ee=oe("../internals/descriptors"),ye=Ce("species");Ue.exports=function(be){var me=ve(be),xe=ce.f;Ee&&me&&!me[ye]&&xe(me,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(oe,Ue,Oe){var ve=oe("../internals/object-define-property").f,ce=oe("../internals/has-own-property"),Ce=oe("../internals/well-known-symbol"),Ee=Ce("toStringTag");Ue.exports=function(ye,be,me){ye&&!me&&(ye=ye.prototype),ye&&!ce(ye,Ee)&&ve(ye,Ee,{configurable:!0,value:be})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(oe,Ue,Oe){var ve=oe("../internals/shared"),ce=oe("../internals/uid"),Ce=ve("keys");Ue.exports=function(Ee){return Ce[Ee]||(Ce[Ee]=ce(Ee))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/set-global"),Ce="__core-js_shared__",Ee=ve[Ce]||ce(Ce,{});Ue.exports=Ee},{"../internals/global":163,"../internals/set-global":232}],237:[function(oe,Ue,Oe){var ve=oe("../internals/is-pure"),ce=oe("../internals/shared-store");(Ue.exports=function(Ce,Ee){return ce[Ce]||(ce[Ce]=Ee!==void 0?Ee:{})})("versions",[]).push({version:"3.22.1",mode:ve?"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(oe,Ue,Oe){var ve=oe("../internals/an-object"),ce=oe("../internals/a-constructor"),Ce=oe("../internals/well-known-symbol"),Ee=Ce("species");Ue.exports=function(ye,be){var me=ve(ye).constructor,xe;return me===void 0||(xe=ve(me)[Ee])==null?be:ce(xe)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-integer-or-infinity"),Ce=oe("../internals/to-string"),Ee=oe("../internals/require-object-coercible"),ye=ve("".charAt),be=ve("".charCodeAt),me=ve("".slice),xe=function(fe){return function(z,ee){var ae=Ce(Ee(z)),re=ce(ee),le=ae.length,ue,pe;return re<0||re>=le?fe?"":void 0:(ue=be(ae,re),ue<55296||ue>56319||re+1===le||(pe=be(ae,re+1))<56320||pe>57343?fe?ye(ae,re):ue:fe?me(ae,re,re+2):(ue-55296<<10)+(pe-56320)+65536)}};Ue.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(oe,Ue,Oe){var ve=oe("../internals/function-name").PROPER,ce=oe("../internals/fails"),Ce=oe("../internals/whitespaces"),Ee="\u200B\x85\u180E";Ue.exports=function(ye){return ce(function(){return!!Ce[ye]()||Ee[ye]()!==Ee||ve&&Ce[ye].name!==ye})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/require-object-coercible"),Ce=oe("../internals/to-string"),Ee=oe("../internals/whitespaces"),ye=ve("".replace),be="["+Ee+"]",me=RegExp("^"+be+be+"*"),xe=RegExp(be+be+"*$"),fe=function(z){return function(ee){var ae=Ce(ce(ee));return z&1&&(ae=ye(ae,me,"")),z&2&&(ae=ye(ae,xe,"")),ae}};Ue.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(oe,Ue,Oe){var ve=oe("../internals/function-call"),ce=oe("../internals/get-built-in"),Ce=oe("../internals/well-known-symbol"),Ee=oe("../internals/redefine");Ue.exports=function(){var ye=ce("Symbol"),be=ye&&ye.prototype,me=be&&be.valueOf,xe=Ce("toPrimitive");be&&!be[xe]&&Ee(be,xe,function(fe){return ve(me,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/function-apply"),Ce=oe("../internals/function-bind-context"),Ee=oe("../internals/is-callable"),ye=oe("../internals/has-own-property"),be=oe("../internals/fails"),me=oe("../internals/html"),xe=oe("../internals/array-slice"),fe=oe("../internals/document-create-element"),z=oe("../internals/validate-arguments-length"),ee=oe("../internals/engine-is-ios"),ae=oe("../internals/engine-is-node"),re=ve.setImmediate,le=ve.clearImmediate,ue=ve.process,pe=ve.Dispatch,Pe=ve.Function,we=ve.MessageChannel,Ne=ve.String,Ae=0,Te={},Me="onreadystatechange",Be,Re,Qe,He;try{Be=ve.location}catch(yt){}var $e=function(yt){if(ye(Te,yt)){var _e=Te[yt];delete Te[yt],_e()}},qe=function(yt){return function(){$e(yt)}},ut=function(yt){$e(yt.data)},ct=function(yt){ve.postMessage(Ne(yt),Be.protocol+"//"+Be.host)};(!re||!le)&&(re=function(_e){z(arguments.length,1);var st=Ee(_e)?_e:Pe(_e),pt=xe(arguments,1);return Te[++Ae]=function(){ce(st,void 0,pt)},Re(Ae),Ae},le=function(_e){delete Te[_e]},ae?Re=function(yt){ue.nextTick(qe(yt))}:pe&&pe.now?Re=function(yt){pe.now(qe(yt))}:we&&!ee?(Qe=new we,He=Qe.port2,Qe.port1.onmessage=ut,Re=Ce(He.postMessage,He)):ve.addEventListener&&Ee(ve.postMessage)&&!ve.importScripts&&Be&&Be.protocol!=="file:"&&!be(ct)?(Re=ct,ve.addEventListener("message",ut,!1)):Me in fe("script")?Re=function(yt){me.appendChild(fe("script"))[Me]=function(){me.removeChild(this),$e(yt)}}:Re=function(yt){setTimeout(qe(yt),0)}),Ue.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(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this");Ue.exports=ve(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(oe,Ue,Oe){var ve=oe("../internals/to-integer-or-infinity"),ce=Math.max,Ce=Math.min;Ue.exports=function(Ee,ye){var be=ve(Ee);return be<0?ce(be+ye,0):Ce(be,ye)}},{"../internals/to-integer-or-infinity":248}],246:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/to-integer-or-infinity"),Ce=oe("../internals/to-length"),Ee=ve.RangeError;Ue.exports=function(ye){if(ye===void 0)return 0;var be=ce(ye),me=Ce(be);if(be!==me)throw Ee("Wrong length or index");return me}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(oe,Ue,Oe){var ve=oe("../internals/indexed-object"),ce=oe("../internals/require-object-coercible");Ue.exports=function(Ce){return ve(ce(Ce))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(oe,Ue,Oe){var ve=Math.ceil,ce=Math.floor;Ue.exports=function(Ce){var Ee=+Ce;return Ee!==Ee||Ee===0?0:(Ee>0?ce:ve)(Ee)}},{}],249:[function(oe,Ue,Oe){var ve=oe("../internals/to-integer-or-infinity"),ce=Math.min;Ue.exports=function(Ce){return Ce>0?ce(ve(Ce),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/require-object-coercible"),Ce=ve.Object;Ue.exports=function(Ee){return Ce(ce(Ee))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/to-positive-integer"),Ce=ve.RangeError;Ue.exports=function(Ee,ye){var be=ce(Ee);if(be%ye)throw Ce("Wrong offset");return be}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/to-integer-or-infinity"),Ce=ve.RangeError;Ue.exports=function(Ee){var ye=ce(Ee);if(ye<0)throw Ce("The argument can't be less than 0");return ye}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/function-call"),Ce=oe("../internals/is-object"),Ee=oe("../internals/is-symbol"),ye=oe("../internals/get-method"),be=oe("../internals/ordinary-to-primitive"),me=oe("../internals/well-known-symbol"),xe=ve.TypeError,fe=me("toPrimitive");Ue.exports=function(z,ee){if(!Ce(z)||Ee(z))return z;var ae=ye(z,fe),re;if(ae){if(ee===void 0&&(ee="default"),re=ce(ae,z,ee),!Ce(re)||Ee(re))return re;throw xe("Can't convert object to primitive value")}return ee===void 0&&(ee="number"),be(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(oe,Ue,Oe){var ve=oe("../internals/to-primitive"),ce=oe("../internals/is-symbol");Ue.exports=function(Ce){var Ee=ve(Ce,"string");return ce(Ee)?Ee:Ee+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(oe,Ue,Oe){var ve=oe("../internals/well-known-symbol"),ce=ve("toStringTag"),Ce={};Ce[ce]="z",Ue.exports=String(Ce)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/classof"),Ce=ve.String;Ue.exports=function(Ee){if(ce(Ee)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ce(Ee)}},{"../internals/classof":124,"../internals/global":163}],257:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=ve.String;Ue.exports=function(Ce){try{return ce(Ce)}catch(Ee){return"Object"}}},{"../internals/global":163}],258:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),Ce=oe("../internals/function-call"),Ee=oe("../internals/descriptors"),ye=oe("../internals/typed-array-constructors-require-wrappers"),be=oe("../internals/array-buffer-view-core"),me=oe("../internals/array-buffer"),xe=oe("../internals/an-instance"),fe=oe("../internals/create-property-descriptor"),z=oe("../internals/create-non-enumerable-property"),ee=oe("../internals/is-integral-number"),ae=oe("../internals/to-length"),re=oe("../internals/to-index"),le=oe("../internals/to-offset"),ue=oe("../internals/to-property-key"),pe=oe("../internals/has-own-property"),Pe=oe("../internals/classof"),we=oe("../internals/is-object"),Ne=oe("../internals/is-symbol"),Ae=oe("../internals/object-create"),Te=oe("../internals/object-is-prototype-of"),Me=oe("../internals/object-set-prototype-of"),Be=oe("../internals/object-get-own-property-names").f,Re=oe("../internals/typed-array-from"),Qe=oe("../internals/array-iteration").forEach,He=oe("../internals/set-species"),$e=oe("../internals/object-define-property"),qe=oe("../internals/object-get-own-property-descriptor"),ut=oe("../internals/internal-state"),ct=oe("../internals/inherit-if-required"),yt=ut.get,_e=ut.set,st=$e.f,pt=qe.f,bt=Math.round,wt=ce.RangeError,mt=me.ArrayBuffer,vt=mt.prototype,St=me.DataView,Nt=be.NATIVE_ARRAY_BUFFER_VIEWS,Ft=be.TYPED_ARRAY_CONSTRUCTOR,Kt=be.TYPED_ARRAY_TAG,Pt=be.TypedArray,Et=be.TypedArrayPrototype,at=be.aTypedArrayConstructor,Ct=be.isTypedArray,nt="BYTES_PER_ELEMENT",ht="Wrong length",Mt=function(tt,Ze){at(tt);for(var je=0,De=Ze.length,Ye=new tt(De);De>je;)Ye[je]=Ze[je++];return Ye},gt=function(tt,Ze){st(tt,Ze,{get:function(){return yt(this)[Ze]}})},rt=function(tt){var Ze;return Te(vt,tt)||(Ze=Pe(tt))=="ArrayBuffer"||Ze=="SharedArrayBuffer"},Je=function(tt,Ze){return Ct(tt)&&!Ne(Ze)&&Ze in tt&&ee(+Ze)&&Ze>=0},Xe=function(Ze,je){return je=ue(je),Je(Ze,je)?fe(2,Ze[je]):pt(Ze,je)},Ve=function(Ze,je,De){return je=ue(je),Je(Ze,je)&&we(De)&&pe(De,"value")&&!pe(De,"get")&&!pe(De,"set")&&!De.configurable&&(!pe(De,"writable")||De.writable)&&(!pe(De,"enumerable")||De.enumerable)?(Ze[je]=De.value,Ze):st(Ze,je,De)};Ee?(Nt||(qe.f=Xe,$e.f=Ve,gt(Et,"buffer"),gt(Et,"byteOffset"),gt(Et,"byteLength"),gt(Et,"length")),ve({target:"Object",stat:!0,forced:!Nt},{getOwnPropertyDescriptor:Xe,defineProperty:Ve}),Ue.exports=function(tt,Ze,je){var De=tt.match(/\d+$/)[0]/8,Ye=tt+(je?"Clamped":"")+"Array",dt="get"+tt,Ke="set"+tt,At=ce[Ye],zt=At,_t=zt&&zt.prototype,Ot={},Vt=function(fn,jn){var er=yt(fn);return er.view[dt](jn*De+er.byteOffset,!0)},en=function(fn,jn,er){var tr=yt(fn);je&&(er=(er=bt(er))<0?0:er>255?255:er&255),tr.view[Ke](jn*De+tr.byteOffset,er,!0)},on=function(fn,jn){st(fn,jn,{get:function(){return Vt(this,jn)},set:function(er){return en(this,jn,er)},enumerable:!0})};Nt?ye&&(zt=Ze(function(fn,jn,er,tr){return xe(fn,_t),ct(function(){return we(jn)?rt(jn)?tr!==void 0?new At(jn,le(er,De),tr):er!==void 0?new At(jn,le(er,De)):new At(jn):Ct(jn)?Mt(zt,jn):Ce(Re,zt,jn):new At(re(jn))}(),fn,zt)}),Me&&Me(zt,Pt),Qe(Be(At),function(fn){fn in zt||z(zt,fn,At[fn])}),zt.prototype=_t):(zt=Ze(function(fn,jn,er,tr){xe(fn,_t);var ur=0,Tr=0,Lr,Ar,Gr;if(!we(jn))Gr=re(jn),Ar=Gr*De,Lr=new mt(Ar);else if(rt(jn)){Lr=jn,Tr=le(er,De);var Kr=jn.byteLength;if(tr===void 0){if(Kr%De||(Ar=Kr-Tr,Ar<0))throw wt(ht)}else if(Ar=ae(tr)*De,Ar+Tr>Kr)throw wt(ht);Gr=Ar/De}else return Ct(jn)?Mt(zt,jn):Ce(Re,zt,jn);for(_e(fn,{buffer:Lr,byteOffset:Tr,byteLength:Ar,length:Gr,view:new St(Lr)});ur<Gr;)on(fn,ur++)}),Me&&Me(zt,Pt),_t=zt.prototype=Ae(Et)),_t.constructor!==zt&&z(_t,"constructor",zt),z(_t,Ft,zt),Kt&&z(_t,Kt,Ye),Ot[Ye]=zt,ve({global:!0,forced:zt!=At,sham:!Nt},Ot),nt in zt||z(zt,nt,De),nt in _t||z(_t,nt,De),He(Ye)}):Ue.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(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/fails"),Ce=oe("../internals/check-correctness-of-iteration"),Ee=oe("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ye=ve.ArrayBuffer,be=ve.Int8Array;Ue.exports=!Ee||!ce(function(){be(1)})||!ce(function(){new be(-1)})||!Ce(function(me){new be,new be(null),new be(1.5),new be(me)},!0)||ce(function(){return new be(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(oe,Ue,Oe){var ve=oe("../internals/array-from-constructor-and-list"),ce=oe("../internals/typed-array-species-constructor");Ue.exports=function(Ce,Ee){return ve(ce(Ce),Ee)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(oe,Ue,Oe){var ve=oe("../internals/function-bind-context"),ce=oe("../internals/function-call"),Ce=oe("../internals/a-constructor"),Ee=oe("../internals/to-object"),ye=oe("../internals/length-of-array-like"),be=oe("../internals/get-iterator"),me=oe("../internals/get-iterator-method"),xe=oe("../internals/is-array-iterator-method"),fe=oe("../internals/array-buffer-view-core").aTypedArrayConstructor;Ue.exports=function(ee){var ae=Ce(this),re=Ee(ee),le=arguments.length,ue=le>1?arguments[1]:void 0,pe=ue!==void 0,Pe=me(re),we,Ne,Ae,Te,Me,Be;if(Pe&&!xe(Pe))for(Me=be(re,Pe),Be=Me.next,re=[];!(Te=ce(Be,Me)).done;)re.push(Te.value);for(pe&&le>2&&(ue=ve(ue,arguments[2])),Ne=ye(re),Ae=new(fe(ae))(Ne),we=0;Ne>we;we++)Ae[we]=pe?ue(re[we],we):re[we];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(oe,Ue,Oe){var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/species-constructor"),Ce=ve.TYPED_ARRAY_CONSTRUCTOR,Ee=ve.aTypedArrayConstructor;Ue.exports=function(ye){return Ee(ce(ye,ye[Ce]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(oe,Ue,Oe){var ve=oe("../internals/function-uncurry-this"),ce=0,Ce=Math.random(),Ee=ve(1 .toString);Ue.exports=function(ye){return"Symbol("+(ye===void 0?"":ye)+")_"+Ee(++ce+Ce,36)}},{"../internals/function-uncurry-this":157}],264:[function(oe,Ue,Oe){var ve=oe("../internals/native-symbol");Ue.exports=ve&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(oe,Ue,Oe){var ve=oe("../internals/descriptors"),ce=oe("../internals/fails");Ue.exports=ve&&ce(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=ve.TypeError;Ue.exports=function(Ce,Ee){if(Ce<Ee)throw ce("Not enough arguments");return Ce}},{"../internals/global":163}],267:[function(oe,Ue,Oe){var ve=oe("../internals/well-known-symbol");Oe.f=ve},{"../internals/well-known-symbol":268}],268:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/shared"),Ce=oe("../internals/has-own-property"),Ee=oe("../internals/uid"),ye=oe("../internals/native-symbol"),be=oe("../internals/use-symbol-as-uid"),me=ce("wks"),xe=ve.Symbol,fe=xe&&xe.for,z=be?xe:xe&&xe.withoutSetter||Ee;Ue.exports=function(ee){if(!Ce(me,ee)||!(ye||typeof me[ee]=="string")){var ae="Symbol."+ee;ye&&Ce(xe,ee)?me[ee]=xe[ee]:be&&fe?me[ee]=fe(ae):me[ee]=z(ae)}return me[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(oe,Ue,Oe){Ue.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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),Ce=oe("../internals/array-buffer"),Ee=oe("../internals/set-species"),ye="ArrayBuffer",be=Ce[ye],me=ce[ye];ve({global:!0,forced:me!==be},{ArrayBuffer:be}),Ee(ye)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/fails"),Ee=oe("../internals/array-buffer"),ye=oe("../internals/an-object"),be=oe("../internals/to-absolute-index"),me=oe("../internals/to-length"),xe=oe("../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=Ce(function(){return!new fe(2).slice(1,void 0).byteLength});ve({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ue},{slice:function(Pe,we){if(ae&&we===void 0)return ae(ye(this),Pe);for(var Ne=ye(this).byteLength,Ae=be(Pe,Ne),Te=be(we===void 0?Ne:we,Ne),Me=new(xe(this,fe))(me(Te-Ae)),Be=new z(this),Re=new z(Me),Qe=0;Ae<Te;)le(Re,Qe++,re(Be,Ae++));return Me}})},{"../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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),Ce=oe("../internals/fails"),Ee=oe("../internals/is-array"),ye=oe("../internals/is-object"),be=oe("../internals/to-object"),me=oe("../internals/length-of-array-like"),xe=oe("../internals/create-property"),fe=oe("../internals/array-species-create"),z=oe("../internals/array-method-has-species-support"),ee=oe("../internals/well-known-symbol"),ae=oe("../internals/engine-v8-version"),re=ee("isConcatSpreadable"),le=9007199254740991,ue="Maximum allowed index exceeded",pe=ce.TypeError,Pe=ae>=51||!Ce(function(){var Te=[];return Te[re]=!1,Te.concat()[0]!==Te}),we=z("concat"),Ne=function(Te){if(!ye(Te))return!1;var Me=Te[re];return Me!==void 0?!!Me:Ee(Te)},Ae=!Pe||!we;ve({target:"Array",proto:!0,forced:Ae},{concat:function(Me){var Be=be(this),Re=fe(Be,0),Qe=0,He,$e,qe,ut,ct;for(He=-1,qe=arguments.length;He<qe;He++)if(ct=He===-1?Be:arguments[He],Ne(ct)){if(ut=me(ct),Qe+ut>le)throw pe(ue);for($e=0;$e<ut;$e++,Qe++)$e in ct&&xe(Re,Qe,ct[$e])}else{if(Qe>=le)throw pe(ue);xe(Re,Qe++,ct)}return Re.length=Qe,Re}})},{"../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(oe,Ue,Oe){var ve=oe("../internals/export"),ce=oe("../internals/array-fill"),Ce=oe("../internals/add-to-unscopables");ve({target:"Array",proto:!0},{fill:ce}),Ce("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/array-iteration").filter,Ce=oe("../internals/array-method-has-species-support"),Ee=Ce("filter");ve({target:"Array",proto:!0,forced:!Ee},{filter:function(be){return ce(this,be,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/array-iteration").find,Ce=oe("../internals/add-to-unscopables"),Ee="find",ye=!0;Ee in[]&&Array(1)[Ee](function(){ye=!1}),ve({target:"Array",proto:!0,forced:ye},{find:function(me){return ce(this,me,arguments.length>1?arguments[1]:void 0)}}),Ce(Ee)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(oe,Ue,Oe){var ve=oe("../internals/export"),ce=oe("../internals/array-from"),Ce=oe("../internals/check-correctness-of-iteration"),Ee=!Ce(function(ye){Array.from(ye)});ve({target:"Array",stat:!0,forced:Ee},{from:ce})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/array-includes").includes,Ce=oe("../internals/add-to-unscopables");ve({target:"Array",proto:!0},{includes:function(ye){return ce(this,ye,arguments.length>1?arguments[1]:void 0)}}),Ce("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/to-indexed-object"),ce=oe("../internals/add-to-unscopables"),Ce=oe("../internals/iterators"),Ee=oe("../internals/internal-state"),ye=oe("../internals/object-define-property").f,be=oe("../internals/define-iterator"),me=oe("../internals/is-pure"),xe=oe("../internals/descriptors"),fe="Array Iterator",z=Ee.set,ee=Ee.getterFor(fe);Ue.exports=be(Array,"Array",function(re,le){z(this,{type:fe,target:ve(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=Ce.Arguments=Ce.Array;if(ce("keys"),ce("values"),ce("entries"),!me&&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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/indexed-object"),Ee=oe("../internals/to-indexed-object"),ye=oe("../internals/array-method-is-strict"),be=ce([].join),me=Ce!=Object,xe=ye("join",",");ve({target:"Array",proto:!0,forced:me||!xe},{join:function(z){return be(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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/array-iteration").map,Ce=oe("../internals/array-method-has-species-support"),Ee=Ce("map");ve({target:"Array",proto:!0,forced:!Ee},{map:function(be){return ce(this,be,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),Ce=oe("../internals/is-array"),Ee=oe("../internals/is-constructor"),ye=oe("../internals/is-object"),be=oe("../internals/to-absolute-index"),me=oe("../internals/length-of-array-like"),xe=oe("../internals/to-indexed-object"),fe=oe("../internals/create-property"),z=oe("../internals/well-known-symbol"),ee=oe("../internals/array-method-has-species-support"),ae=oe("../internals/array-slice"),re=ee("slice"),le=z("species"),ue=ce.Array,pe=Math.max;ve({target:"Array",proto:!0,forced:!re},{slice:function(we,Ne){var Ae=xe(this),Te=me(Ae),Me=be(we,Te),Be=be(Ne===void 0?Te:Ne,Te),Re,Qe,He;if(Ce(Ae)&&(Re=Ae.constructor,Ee(Re)&&(Re===ue||Ce(Re.prototype))?Re=void 0:ye(Re)&&(Re=Re[le],Re===null&&(Re=void 0)),Re===ue||Re===void 0))return ae(Ae,Me,Be);for(Qe=new(Re===void 0?ue:Re)(pe(Be-Me,0)),He=0;Me<Be;Me++,He++)Me in Ae&&fe(Qe,He,Ae[Me]);return Qe.length=He,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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/a-callable"),Ee=oe("../internals/to-object"),ye=oe("../internals/length-of-array-like"),be=oe("../internals/to-string"),me=oe("../internals/fails"),xe=oe("../internals/array-sort"),fe=oe("../internals/array-method-is-strict"),z=oe("../internals/engine-ff-version"),ee=oe("../internals/engine-is-ie-or-edge"),ae=oe("../internals/engine-v8-version"),re=oe("../internals/engine-webkit-version"),le=[],ue=ce(le.sort),pe=ce(le.push),Pe=me(function(){le.sort(void 0)}),we=me(function(){le.sort(null)}),Ne=fe("sort"),Ae=!me(function(){if(ae)return ae<70;if(!(z&&z>3)){if(ee)return!0;if(re)return re<603;var Be="",Re,Qe,He,$e;for(Re=65;Re<76;Re++){switch(Qe=String.fromCharCode(Re),Re){case 66:case 69:case 70:case 72:He=3;break;case 68:case 71:He=4;break;default:He=2}for($e=0;$e<47;$e++)le.push({k:Qe+$e,v:He})}for(le.sort(function(qe,ut){return ut.v-qe.v}),$e=0;$e<le.length;$e++)Qe=le[$e].k.charAt(0),Be.charAt(Be.length-1)!==Qe&&(Be+=Qe);return Be!=="DGBEFHACIJK"}}),Te=Pe||!we||!Ne||!Ae,Me=function(Be){return function(Re,Qe){return Qe===void 0?-1:Re===void 0?1:Be!==void 0?+Be(Re,Qe)||0:be(Re)>be(Qe)?1:-1}};ve({target:"Array",proto:!0,forced:Te},{sort:function(Re){Re!==void 0&&Ce(Re);var Qe=Ee(this);if(Ae)return Re===void 0?ue(Qe):ue(Qe,Re);var He=[],$e=ye(Qe),qe,ut;for(ut=0;ut<$e;ut++)ut in Qe&&pe(He,Qe[ut]);for(xe(He,Me(Re)),qe=He.length,ut=0;ut<qe;)Qe[ut]=He[ut++];for(;ut<$e;)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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),Ce=oe("../internals/to-absolute-index"),Ee=oe("../internals/to-integer-or-infinity"),ye=oe("../internals/length-of-array-like"),be=oe("../internals/to-object"),me=oe("../internals/array-species-create"),xe=oe("../internals/create-property"),fe=oe("../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";ve({target:"Array",proto:!0,forced:!z},{splice:function(Pe,we){var Ne=be(this),Ae=ye(Ne),Te=Ce(Pe,Ae),Me=arguments.length,Be,Re,Qe,He,$e,qe;if(Me===0?Be=Re=0:Me===1?(Be=0,Re=Ae-Te):(Be=Me-2,Re=re(ae(Ee(we),0),Ae-Te)),Ae+Be-Re>le)throw ee(ue);for(Qe=me(Ne,Re),He=0;He<Re;He++)$e=Te+He,$e in Ne&&xe(Qe,He,Ne[$e]);if(Qe.length=Re,Be<Re){for(He=Te;He<Ae-Re;He++)$e=He+Re,qe=He+Be,$e in Ne?Ne[qe]=Ne[$e]:delete Ne[qe];for(He=Ae;He>Ae-Re+Be;He--)delete Ne[He-1]}else if(Be>Re)for(He=Ae-Re;He>Te;He--)$e=He+Re-1,qe=He+Be-1,$e in Ne?Ne[qe]=Ne[$e]:delete Ne[qe];for(He=0;He<Be;He++)Ne[He+Te]=arguments[He+2];return Ne.length=Ae-Re+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(oe,Ue,Oe){var ve=oe("../internals/descriptors"),ce=oe("../internals/function-name").EXISTS,Ce=oe("../internals/function-uncurry-this"),Ee=oe("../internals/object-define-property").f,ye=Function.prototype,be=Ce(ye.toString),me=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,xe=Ce(me.exec),fe="name";ve&&!ce&&Ee(ye,fe,{configurable:!0,get:function(){try{return xe(me,be(this))[1]}catch(z){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(oe,Ue,Oe){var ve=oe("../internals/export"),ce=oe("../internals/get-built-in"),Ce=oe("../internals/function-apply"),Ee=oe("../internals/function-call"),ye=oe("../internals/function-uncurry-this"),be=oe("../internals/fails"),me=oe("../internals/is-array"),xe=oe("../internals/is-callable"),fe=oe("../internals/is-object"),z=oe("../internals/is-symbol"),ee=oe("../internals/array-slice"),ae=oe("../internals/native-symbol"),re=ce("JSON","stringify"),le=ye(/./.exec),ue=ye("".charAt),pe=ye("".charCodeAt),Pe=ye("".replace),we=ye(1 .toString),Ne=/[\uD800-\uDFFF]/g,Ae=/^[\uD800-\uDBFF]$/,Te=/^[\uDC00-\uDFFF]$/,Me=!ae||be(function(){var He=ce("Symbol")();return re([He])!="[null]"||re({a:He})!="{}"||re(Object(He))!="{}"}),Be=be(function(){return re("\uDF06\uD834")!=='"\\udf06\\ud834"'||re("\uDEAD")!=='"\\udead"'}),Re=function(He,$e){var qe=ee(arguments),ut=$e;if(!(!fe($e)&&He===void 0||z(He)))return me($e)||($e=function(ct,yt){if(xe(ut)&&(yt=Ee(ut,this,ct,yt)),!z(yt))return yt}),qe[1]=$e,Ce(re,null,qe)},Qe=function(He,$e,qe){var ut=ue(qe,$e-1),ct=ue(qe,$e+1);return le(Ae,He)&&!le(Te,ct)||le(Te,He)&&!le(Ae,ut)?"\\u"+we(pe(He,0),16):He};re&&ve({target:"JSON",stat:!0,forced:Me||Be},{stringify:function($e,qe,ut){var ct=ee(arguments),yt=Ce(Me?Re:re,null,ct);return Be&&typeof yt=="string"?Pe(yt,Ne,Qe):yt}})},{"../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(oe,Ue,Oe){"use strict";var ve=oe("../internals/descriptors"),ce=oe("../internals/global"),Ce=oe("../internals/function-uncurry-this"),Ee=oe("../internals/is-forced"),ye=oe("../internals/redefine"),be=oe("../internals/has-own-property"),me=oe("../internals/inherit-if-required"),xe=oe("../internals/object-is-prototype-of"),fe=oe("../internals/is-symbol"),z=oe("../internals/to-primitive"),ee=oe("../internals/fails"),ae=oe("../internals/object-get-own-property-names").f,re=oe("../internals/object-get-own-property-descriptor").f,le=oe("../internals/object-define-property").f,ue=oe("../internals/this-number-value"),pe=oe("../internals/string-trim").trim,Pe="Number",we=ce[Pe],Ne=we.prototype,Ae=ce.TypeError,Te=Ce("".slice),Me=Ce("".charCodeAt),Be=function(ut){var ct=z(ut,"number");return typeof ct=="bigint"?ct:Re(ct)},Re=function(ut){var ct=z(ut,"number"),yt,_e,st,pt,bt,wt,mt,vt;if(fe(ct))throw Ae("Cannot convert a Symbol value to a number");if(typeof ct=="string"&&ct.length>2){if(ct=pe(ct),yt=Me(ct,0),yt===43||yt===45){if(_e=Me(ct,2),_e===88||_e===120)return NaN}else if(yt===48){switch(Me(ct,1)){case 66:case 98:st=2,pt=49;break;case 79:case 111:st=8,pt=55;break;default:return+ct}for(bt=Te(ct,2),wt=bt.length,mt=0;mt<wt;mt++)if(vt=Me(bt,mt),vt<48||vt>pt)return NaN;return parseInt(bt,st)}}return+ct};if(Ee(Pe,!we(" 0o1")||!we("0b1")||we("+0x1"))){for(var Qe=function(ct){var yt=arguments.length<1?0:we(Be(ct)),_e=this;return xe(Ne,_e)&&ee(function(){ue(_e)})?me(Object(yt),_e,Qe):yt},He=ve?ae(we):"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(","),$e=0,qe;He.length>$e;$e++)be(we,qe=He[$e])&&!be(Qe,qe)&&le(Qe,qe,re(we,qe));Qe.prototype=Ne,Ne.constructor=Qe,ye(ce,Pe,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(oe,Ue,Oe){var ve=oe("../internals/export"),ce=oe("../internals/object-assign");ve({target:"Object",stat:!0,forced:Object.assign!==ce},{assign:ce})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(oe,Ue,Oe){var ve=oe("../internals/export"),ce=oe("../internals/object-to-array").entries;ve({target:"Object",stat:!0},{entries:function(Ee){return ce(Ee)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(oe,Ue,Oe){var ve=oe("../internals/export"),ce=oe("../internals/native-symbol"),Ce=oe("../internals/fails"),Ee=oe("../internals/object-get-own-property-symbols"),ye=oe("../internals/to-object"),be=!ce||Ce(function(){Ee.f(1)});ve({target:"Object",stat:!0,forced:be},{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(oe,Ue,Oe){var ve=oe("../internals/export"),ce=oe("../internals/to-object"),Ce=oe("../internals/object-keys"),Ee=oe("../internals/fails"),ye=Ee(function(){Ce(1)});ve({target:"Object",stat:!0,forced:ye},{keys:function(me){return Ce(ce(me))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(oe,Ue,Oe){var ve=oe("../internals/to-string-tag-support"),ce=oe("../internals/redefine"),Ce=oe("../internals/object-to-string");ve||ce(Object.prototype,"toString",Ce,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-call"),Ce=oe("../internals/a-callable"),Ee=oe("../internals/new-promise-capability"),ye=oe("../internals/perform"),be=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ve({target:"Promise",stat:!0,forced:me},{all:function(fe){var z=this,ee=Ee.f(z),ae=ee.resolve,re=ee.reject,le=ye(function(){var ue=Ce(z.resolve),pe=[],Pe=0,we=1;be(fe,function(Ne){var Ae=Pe++,Te=!1;we++,ce(ue,z,Ne).then(function(Me){Te||(Te=!0,pe[Ae]=Me,--we||ae(pe))},re)}),--we||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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/is-pure"),Ce=oe("../internals/promise-constructor-detection").CONSTRUCTOR,Ee=oe("../internals/promise-native-constructor"),ye=oe("../internals/get-built-in"),be=oe("../internals/is-callable"),me=oe("../internals/redefine"),xe=Ee&&Ee.prototype;if(ve({target:"Promise",proto:!0,forced:Ce,real:!0},{catch:function(z){return this.then(void 0,z)}}),!ce&&be(Ee)){var fe=ye("Promise").prototype.catch;xe.catch!==fe&&me(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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/is-pure"),Ce=oe("../internals/engine-is-node"),Ee=oe("../internals/global"),ye=oe("../internals/function-call"),be=oe("../internals/redefine"),me=oe("../internals/redefine-all"),xe=oe("../internals/object-set-prototype-of"),fe=oe("../internals/set-to-string-tag"),z=oe("../internals/set-species"),ee=oe("../internals/a-callable"),ae=oe("../internals/is-callable"),re=oe("../internals/is-object"),le=oe("../internals/an-instance"),ue=oe("../internals/species-constructor"),pe=oe("../internals/task").set,Pe=oe("../internals/microtask"),we=oe("../internals/host-report-errors"),Ne=oe("../internals/perform"),Ae=oe("../internals/queue"),Te=oe("../internals/internal-state"),Me=oe("../internals/promise-native-constructor"),Be=oe("../internals/promise-constructor-detection"),Re=oe("../internals/new-promise-capability"),Qe="Promise",He=Be.CONSTRUCTOR,$e=Be.REJECTION_EVENT,qe=Be.SUBCLASSING,ut=Te.getterFor(Qe),ct=Te.set,yt=Me&&Me.prototype,_e=Me,st=yt,pt=Ee.TypeError,bt=Ee.document,wt=Ee.process,mt=Re.f,vt=mt,St=!!(bt&&bt.createEvent&&Ee.dispatchEvent),Nt="unhandledrejection",Ft="rejectionhandled",Kt=0,Pt=1,Et=2,at=1,Ct=2,nt,ht,Mt,gt,rt=function(Ke){var At;return re(Ke)&&ae(At=Ke.then)?At:!1},Je=function(Ke,At){var zt=At.value,_t=At.state==Pt,Ot=_t?Ke.ok:Ke.fail,Vt=Ke.resolve,en=Ke.reject,on=Ke.domain,fn,jn,er;try{Ot?(_t||(At.rejection===Ct&&je(At),At.rejection=at),Ot===!0?fn=zt:(on&&on.enter(),fn=Ot(zt),on&&(on.exit(),er=!0)),fn===Ke.promise?en(pt("Promise-chain cycle")):(jn=rt(fn))?ye(jn,fn,Vt,en):Vt(fn)):en(zt)}catch(tr){on&&!er&&on.exit(),en(tr)}},Xe=function(Ke,At){Ke.notified||(Ke.notified=!0,Pe(function(){for(var zt=Ke.reactions,_t;_t=zt.get();)Je(_t,Ke);Ke.notified=!1,At&&!Ke.rejection&&tt(Ke)}))},Ve=function(Ke,At,zt){var _t,Ot;St?(_t=bt.createEvent("Event"),_t.promise=At,_t.reason=zt,_t.initEvent(Ke,!1,!0),Ee.dispatchEvent(_t)):_t={promise:At,reason:zt},!$e&&(Ot=Ee["on"+Ke])?Ot(_t):Ke===Nt&&we("Unhandled promise rejection",zt)},tt=function(Ke){ye(pe,Ee,function(){var At=Ke.facade,zt=Ke.value,_t=Ze(Ke),Ot;if(_t&&(Ot=Ne(function(){Ce?wt.emit("unhandledRejection",zt,At):Ve(Nt,At,zt)}),Ke.rejection=Ce||Ze(Ke)?Ct:at,Ot.error))throw Ot.value})},Ze=function(Ke){return Ke.rejection!==at&&!Ke.parent},je=function(Ke){ye(pe,Ee,function(){var At=Ke.facade;Ce?wt.emit("rejectionHandled",At):Ve(Ft,At,Ke.value)})},De=function(Ke,At,zt){return function(_t){Ke(At,_t,zt)}},Ye=function(Ke,At,zt){Ke.done||(Ke.done=!0,zt&&(Ke=zt),Ke.value=At,Ke.state=Et,Xe(Ke,!0))},dt=function(Ke,At,zt){if(!Ke.done){Ke.done=!0,zt&&(Ke=zt);try{if(Ke.facade===At)throw pt("Promise can't be resolved itself");var _t=rt(At);_t?Pe(function(){var Ot={done:!1};try{ye(_t,At,De(dt,Ot,Ke),De(Ye,Ot,Ke))}catch(Vt){Ye(Ot,Vt,Ke)}}):(Ke.value=At,Ke.state=Pt,Xe(Ke,!1))}catch(Ot){Ye({done:!1},Ot,Ke)}}};if(He&&(_e=function(At){le(this,st),ee(At),ye(nt,this);var zt=ut(this);try{At(De(dt,zt),De(Ye,zt))}catch(_t){Ye(zt,_t)}},st=_e.prototype,nt=function(At){ct(this,{type:Qe,done:!1,notified:!1,parent:!1,reactions:new Ae,rejection:!1,state:Kt,value:void 0})},nt.prototype=me(st,{then:function(At,zt){var _t=ut(this),Ot=mt(ue(this,_e));return _t.parent=!0,Ot.ok=ae(At)?At:!0,Ot.fail=ae(zt)&&zt,Ot.domain=Ce?wt.domain:void 0,_t.state==Kt?_t.reactions.add(Ot):Pe(function(){Je(Ot,_t)}),Ot.promise}}),ht=function(){var Ke=new nt,At=ut(Ke);this.promise=Ke,this.resolve=De(dt,At),this.reject=De(Ye,At)},Re.f=mt=function(Ke){return Ke===_e||Ke===Mt?new ht(Ke):vt(Ke)},!ce&&ae(Me)&&yt!==Object.prototype)){gt=yt.then,qe||be(yt,"then",function(At,zt){var _t=this;return new _e(function(Ot,Vt){ye(gt,_t,Ot,Vt)}).then(At,zt)},{unsafe:!0});try{delete yt.constructor}catch(Ke){}xe&&xe(yt,st)}ve({global:!0,wrap:!0,forced:He},{Promise:_e}),fe(_e,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(oe,Ue,Oe){oe("../modules/es.promise.constructor"),oe("../modules/es.promise.all"),oe("../modules/es.promise.catch"),oe("../modules/es.promise.race"),oe("../modules/es.promise.reject"),oe("../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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-call"),Ce=oe("../internals/a-callable"),Ee=oe("../internals/new-promise-capability"),ye=oe("../internals/perform"),be=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ve({target:"Promise",stat:!0,forced:me},{race:function(fe){var z=this,ee=Ee.f(z),ae=ee.reject,re=ye(function(){var le=Ce(z.resolve);be(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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-call"),Ce=oe("../internals/new-promise-capability"),Ee=oe("../internals/promise-constructor-detection").CONSTRUCTOR;ve({target:"Promise",stat:!0,forced:Ee},{reject:function(be){var me=Ce.f(this);return ce(me.reject,void 0,be),me.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/get-built-in"),Ce=oe("../internals/is-pure"),Ee=oe("../internals/promise-native-constructor"),ye=oe("../internals/promise-constructor-detection").CONSTRUCTOR,be=oe("../internals/promise-resolve"),me=ce("Promise"),xe=Ce&&!ye;ve({target:"Promise",stat:!0,forced:Ce||ye},{resolve:function(z){return be(xe&&this===me?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(oe,Ue,Oe){var ve=oe("../internals/descriptors"),ce=oe("../internals/global"),Ce=oe("../internals/function-uncurry-this"),Ee=oe("../internals/is-forced"),ye=oe("../internals/inherit-if-required"),be=oe("../internals/create-non-enumerable-property"),me=oe("../internals/object-get-own-property-names").f,xe=oe("../internals/object-is-prototype-of"),fe=oe("../internals/is-regexp"),z=oe("../internals/to-string"),ee=oe("../internals/regexp-get-flags"),ae=oe("../internals/regexp-sticky-helpers"),re=oe("../internals/proxy-accessor"),le=oe("../internals/redefine"),ue=oe("../internals/fails"),pe=oe("../internals/has-own-property"),Pe=oe("../internals/internal-state").enforce,we=oe("../internals/set-species"),Ne=oe("../internals/well-known-symbol"),Ae=oe("../internals/regexp-unsupported-dot-all"),Te=oe("../internals/regexp-unsupported-ncg"),Me=Ne("match"),Be=ce.RegExp,Re=Be.prototype,Qe=ce.SyntaxError,He=Ce(Re.exec),$e=Ce("".charAt),qe=Ce("".replace),ut=Ce("".indexOf),ct=Ce("".slice),yt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_e=/a/g,st=/a/g,pt=new Be(_e)!==_e,bt=ae.MISSED_STICKY,wt=ae.UNSUPPORTED_Y,mt=ve&&(!pt||bt||Ae||Te||ue(function(){return st[Me]=!1,Be(_e)!=_e||Be(st)==st||Be(_e,"i")!="/a/i"})),vt=function(Pt){for(var Et=Pt.length,at=0,Ct="",nt=!1,ht;at<=Et;at++){if(ht=$e(Pt,at),ht==="\\"){Ct+=ht+$e(Pt,++at);continue}!nt&&ht==="."?Ct+="[\\s\\S]":(ht==="["?nt=!0:ht==="]"&&(nt=!1),Ct+=ht)}return Ct},St=function(Pt){for(var Et=Pt.length,at=0,Ct="",nt=[],ht={},Mt=!1,gt=!1,rt=0,Je="",Xe;at<=Et;at++){if(Xe=$e(Pt,at),Xe==="\\")Xe=Xe+$e(Pt,++at);else if(Xe==="]")Mt=!1;else if(!Mt)switch(!0){case Xe==="[":Mt=!0;break;case Xe==="(":He(yt,ct(Pt,at+1))&&(at+=2,gt=!0),Ct+=Xe,rt++;continue;case(Xe===">"&&gt):if(Je===""||pe(ht,Je))throw new Qe("Invalid capture group name");ht[Je]=!0,nt[nt.length]=[Je,rt],gt=!1,Je="";continue}gt?Je+=Xe:Ct+=Xe}return[Ct,nt]};if(Ee("RegExp",mt)){for(var Nt=function(Et,at){var Ct=xe(Re,this),nt=fe(Et),ht=at===void 0,Mt=[],gt=Et,rt,Je,Xe,Ve,tt,Ze;if(!Ct&&nt&&ht&&Et.constructor===Nt)return Et;if((nt||xe(Re,Et))&&(Et=Et.source,ht&&(at=ee(gt))),Et=Et===void 0?"":z(Et),at=at===void 0?"":z(at),gt=Et,Ae&&"dotAll"in _e&&(Je=!!at&&ut(at,"s")>-1,Je&&(at=qe(at,/s/g,""))),rt=at,bt&&"sticky"in _e&&(Xe=!!at&&ut(at,"y")>-1,Xe&&wt&&(at=qe(at,/y/g,""))),Te&&(Ve=St(Et),Et=Ve[0],Mt=Ve[1]),tt=ye(Be(Et,at),Ct?this:Re,Nt),(Je||Xe||Mt.length)&&(Ze=Pe(tt),Je&&(Ze.dotAll=!0,Ze.raw=Nt(vt(Et),rt)),Xe&&(Ze.sticky=!0),Mt.length&&(Ze.groups=Mt)),Et!==gt)try{be(tt,"source",gt===""?"(?:)":gt)}catch(je){}return tt},Ft=me(Be),Kt=0;Ft.length>Kt;)re(Nt,Be,Ft[Kt++]);Re.constructor=Nt,Nt.prototype=Re,le(ce,"RegExp",Nt)}we("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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/regexp-exec");ve({target:"RegExp",proto:!0,forced:/./.exec!==ce},{exec:ce})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/function-name").PROPER,ce=oe("../internals/redefine"),Ce=oe("../internals/an-object"),Ee=oe("../internals/to-string"),ye=oe("../internals/fails"),be=oe("../internals/regexp-get-flags"),me="toString",xe=RegExp.prototype,fe=xe[me],z=ye(function(){return fe.call({source:"a",flags:"b"})!="/a/b"}),ee=ve&&fe.name!=me;(z||ee)&&ce(RegExp.prototype,me,function(){var re=Ce(this),le=Ee(re.source),ue=Ee(be(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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/not-a-regexp"),Ee=oe("../internals/require-object-coercible"),ye=oe("../internals/to-string"),be=oe("../internals/correct-is-regexp-logic"),me=ce("".indexOf);ve({target:"String",proto:!0,forced:!be("includes")},{includes:function(fe){return!!~me(ye(Ee(this)),ye(Ce(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(oe,Ue,Oe){"use strict";var ve=oe("../internals/string-multibyte").charAt,ce=oe("../internals/to-string"),Ce=oe("../internals/internal-state"),Ee=oe("../internals/define-iterator"),ye="String Iterator",be=Ce.set,me=Ce.getterFor(ye);Ee(String,"String",function(xe){be(this,{type:ye,string:ce(xe),index:0})},function(){var fe=me(this),z=fe.string,ee=fe.index,ae;return ee>=z.length?{value:void 0,done:!0}:(ae=ve(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(oe,Ue,Oe){"use strict";var ve=oe("../internals/function-call"),ce=oe("../internals/fix-regexp-well-known-symbol-logic"),Ce=oe("../internals/an-object"),Ee=oe("../internals/to-length"),ye=oe("../internals/to-string"),be=oe("../internals/require-object-coercible"),me=oe("../internals/get-method"),xe=oe("../internals/advance-string-index"),fe=oe("../internals/regexp-exec-abstract");ce("match",function(z,ee,ae){return[function(le){var ue=be(this),pe=le==null?void 0:me(le,z);return pe?ve(pe,le,ue):new RegExp(le)[z](ye(ue))},function(re){var le=Ce(this),ue=ye(re),pe=ae(ee,le,ue);if(pe.done)return pe.value;if(!le.global)return fe(le,ue);var Pe=le.unicode;le.lastIndex=0;for(var we=[],Ne=0,Ae;(Ae=fe(le,ue))!==null;){var Te=ye(Ae[0]);we[Ne]=Te,Te===""&&(le.lastIndex=xe(ue,Ee(le.lastIndex),Pe)),Ne++}return Ne===0?null:we}]})},{"../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(oe,Ue,Oe){"use strict";var ve=oe("../internals/function-apply"),ce=oe("../internals/function-call"),Ce=oe("../internals/function-uncurry-this"),Ee=oe("../internals/fix-regexp-well-known-symbol-logic"),ye=oe("../internals/fails"),be=oe("../internals/an-object"),me=oe("../internals/is-callable"),xe=oe("../internals/to-integer-or-infinity"),fe=oe("../internals/to-length"),z=oe("../internals/to-string"),ee=oe("../internals/require-object-coercible"),ae=oe("../internals/advance-string-index"),re=oe("../internals/get-method"),le=oe("../internals/get-substitution"),ue=oe("../internals/regexp-exec-abstract"),pe=oe("../internals/well-known-symbol"),Pe=pe("replace"),we=Math.max,Ne=Math.min,Ae=Ce([].concat),Te=Ce([].push),Me=Ce("".indexOf),Be=Ce("".slice),Re=function(qe){return qe===void 0?qe:String(qe)},Qe=function(){return"a".replace(/./,"$0")==="$0"}(),He=function(){return/./[Pe]?/./[Pe]("a","$0")==="":!1}(),$e=!ye(function(){var qe=/./;return qe.exec=function(){var ut=[];return ut.groups={a:"7"},ut},"".replace(qe,"$<a>")!=="7"});Ee("replace",function(qe,ut,ct){var yt=He?"$":"$0";return[function(st,pt){var bt=ee(this),wt=st==null?void 0:re(st,Pe);return wt?ce(wt,st,bt,pt):ce(ut,z(bt),st,pt)},function(_e,st){var pt=be(this),bt=z(_e);if(typeof st=="string"&&Me(st,yt)===-1&&Me(st,"$<")===-1){var wt=ct(ut,pt,bt,st);if(wt.done)return wt.value}var mt=me(st);mt||(st=z(st));var vt=pt.global;if(vt){var St=pt.unicode;pt.lastIndex=0}for(var Nt=[];;){var Ft=ue(pt,bt);if(Ft===null||(Te(Nt,Ft),!vt))break;var Kt=z(Ft[0]);Kt===""&&(pt.lastIndex=ae(bt,fe(pt.lastIndex),St))}for(var Pt="",Et=0,at=0;at<Nt.length;at++){Ft=Nt[at];for(var Ct=z(Ft[0]),nt=we(Ne(xe(Ft.index),bt.length),0),ht=[],Mt=1;Mt<Ft.length;Mt++)Te(ht,Re(Ft[Mt]));var gt=Ft.groups;if(mt){var rt=Ae([Ct],ht,nt,bt);gt!==void 0&&Te(rt,gt);var Je=z(ve(st,void 0,rt))}else Je=le(Ct,bt,nt,ht,gt,st);nt>=Et&&(Pt+=Be(bt,Et,nt)+Je,Et=nt+Ct.length)}return Pt+Be(bt,Et)}]},!$e||!Qe||He)},{"../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(oe,Ue,Oe){"use strict";var ve=oe("../internals/function-call"),ce=oe("../internals/fix-regexp-well-known-symbol-logic"),Ce=oe("../internals/an-object"),Ee=oe("../internals/require-object-coercible"),ye=oe("../internals/same-value"),be=oe("../internals/to-string"),me=oe("../internals/get-method"),xe=oe("../internals/regexp-exec-abstract");ce("search",function(fe,z,ee){return[function(re){var le=Ee(this),ue=re==null?void 0:me(re,fe);return ue?ve(ue,re,le):new RegExp(re)[fe](be(le))},function(ae){var re=Ce(this),le=be(ae),ue=ee(z,re,le);if(ue.done)return ue.value;var pe=re.lastIndex;ye(pe,0)||(re.lastIndex=0);var Pe=xe(re,le);return ye(re.lastIndex,pe)||(re.lastIndex=pe),Pe===null?-1:Pe.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(oe,Ue,Oe){"use strict";var ve=oe("../internals/function-apply"),ce=oe("../internals/function-call"),Ce=oe("../internals/function-uncurry-this"),Ee=oe("../internals/fix-regexp-well-known-symbol-logic"),ye=oe("../internals/is-regexp"),be=oe("../internals/an-object"),me=oe("../internals/require-object-coercible"),xe=oe("../internals/species-constructor"),fe=oe("../internals/advance-string-index"),z=oe("../internals/to-length"),ee=oe("../internals/to-string"),ae=oe("../internals/get-method"),re=oe("../internals/array-slice-simple"),le=oe("../internals/regexp-exec-abstract"),ue=oe("../internals/regexp-exec"),pe=oe("../internals/regexp-sticky-helpers"),Pe=oe("../internals/fails"),we=pe.UNSUPPORTED_Y,Ne=4294967295,Ae=Math.min,Te=[].push,Me=Ce(/./.exec),Be=Ce(Te),Re=Ce("".slice),Qe=!Pe(function(){var He=/(?:)/,$e=He.exec;He.exec=function(){return $e.apply(this,arguments)};var qe="ab".split(He);return qe.length!==2||qe[0]!=="a"||qe[1]!=="b"});Ee("split",function(He,$e,qe){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(ct,yt){var _e=ee(me(this)),st=yt===void 0?Ne:yt>>>0;if(st===0)return[];if(ct===void 0)return[_e];if(!ye(ct))return ce($e,_e,ct,st);for(var pt=[],bt=(ct.ignoreCase?"i":"")+(ct.multiline?"m":"")+(ct.unicode?"u":"")+(ct.sticky?"y":""),wt=0,mt=new RegExp(ct.source,bt+"g"),vt,St,Nt;(vt=ce(ue,mt,_e))&&(St=mt.lastIndex,!(St>wt&&(Be(pt,Re(_e,wt,vt.index)),vt.length>1&&vt.index<_e.length&&ve(Te,pt,re(vt,1)),Nt=vt[0].length,wt=St,pt.length>=st)));)mt.lastIndex===vt.index&&mt.lastIndex++;return wt===_e.length?(Nt||!Me(mt,""))&&Be(pt,""):Be(pt,Re(_e,wt)),pt.length>st?re(pt,0,st):pt}:"0".split(void 0,0).length?ut=function(ct,yt){return ct===void 0&&yt===0?[]:ce($e,this,ct,yt)}:ut=$e,[function(yt,_e){var st=me(this),pt=yt==null?void 0:ae(yt,He);return pt?ce(pt,yt,st,_e):ce(ut,ee(st),yt,_e)},function(ct,yt){var _e=be(this),st=ee(ct),pt=qe(ut,_e,st,yt,ut!==$e);if(pt.done)return pt.value;var bt=xe(_e,RegExp),wt=_e.unicode,mt=(_e.ignoreCase?"i":"")+(_e.multiline?"m":"")+(_e.unicode?"u":"")+(we?"g":"y"),vt=new bt(we?"^(?:"+_e.source+")":_e,mt),St=yt===void 0?Ne:yt>>>0;if(St===0)return[];if(st.length===0)return le(vt,st)===null?[st]:[];for(var Nt=0,Ft=0,Kt=[];Ft<st.length;){vt.lastIndex=we?0:Ft;var Pt=le(vt,we?Re(st,Ft):st),Et;if(Pt===null||(Et=Ae(z(vt.lastIndex+(we?Ft:0)),st.length))===Nt)Ft=fe(st,Ft,wt);else{if(Be(Kt,Re(st,Nt,Ft)),Kt.length===St)return Kt;for(var at=1;at<=Pt.length-1;at++)if(Be(Kt,Pt[at]),Kt.length===St)return Kt;Ft=Nt=Et}}return Be(Kt,Re(st,Nt)),Kt}]},!Qe,we)},{"../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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/string-trim").trim,Ce=oe("../internals/string-trim-forced");ve({target:"String",proto:!0,forced:Ce("trim")},{trim:function(){return ce(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),Ce=oe("../internals/function-call"),Ee=oe("../internals/function-uncurry-this"),ye=oe("../internals/is-pure"),be=oe("../internals/descriptors"),me=oe("../internals/native-symbol"),xe=oe("../internals/fails"),fe=oe("../internals/has-own-property"),z=oe("../internals/object-is-prototype-of"),ee=oe("../internals/an-object"),ae=oe("../internals/to-indexed-object"),re=oe("../internals/to-property-key"),le=oe("../internals/to-string"),ue=oe("../internals/create-property-descriptor"),pe=oe("../internals/object-create"),Pe=oe("../internals/object-keys"),we=oe("../internals/object-get-own-property-names"),Ne=oe("../internals/object-get-own-property-names-external"),Ae=oe("../internals/object-get-own-property-symbols"),Te=oe("../internals/object-get-own-property-descriptor"),Me=oe("../internals/object-define-property"),Be=oe("../internals/object-define-properties"),Re=oe("../internals/object-property-is-enumerable"),Qe=oe("../internals/redefine"),He=oe("../internals/shared"),$e=oe("../internals/shared-key"),qe=oe("../internals/hidden-keys"),ut=oe("../internals/uid"),ct=oe("../internals/well-known-symbol"),yt=oe("../internals/well-known-symbol-wrapped"),_e=oe("../internals/define-well-known-symbol"),st=oe("../internals/symbol-define-to-primitive"),pt=oe("../internals/set-to-string-tag"),bt=oe("../internals/internal-state"),wt=oe("../internals/array-iteration").forEach,mt=$e("hidden"),vt="Symbol",St="prototype",Nt=bt.set,Ft=bt.getterFor(vt),Kt=Object[St],Pt=ce.Symbol,Et=Pt&&Pt[St],at=ce.TypeError,Ct=ce.QObject,nt=Te.f,ht=Me.f,Mt=Ne.f,gt=Re.f,rt=Ee([].push),Je=He("symbols"),Xe=He("op-symbols"),Ve=He("wks"),tt=!Ct||!Ct[St]||!Ct[St].findChild,Ze=be&&xe(function(){return pe(ht({},"a",{get:function(){return ht(this,"a",{value:7}).a}})).a!=7})?function(Ot,Vt,en){var on=nt(Kt,Vt);on&&delete Kt[Vt],ht(Ot,Vt,en),on&&Ot!==Kt&&ht(Kt,Vt,on)}:ht,je=function(Ot,Vt){var en=Je[Ot]=pe(Et);return Nt(en,{type:vt,tag:Ot,description:Vt}),be||(en.description=Vt),en},De=function(Vt,en,on){Vt===Kt&&De(Xe,en,on),ee(Vt);var fn=re(en);return ee(on),fe(Je,fn)?(on.enumerable?(fe(Vt,mt)&&Vt[mt][fn]&&(Vt[mt][fn]=!1),on=pe(on,{enumerable:ue(0,!1)})):(fe(Vt,mt)||ht(Vt,mt,ue(1,{})),Vt[mt][fn]=!0),Ze(Vt,fn,on)):ht(Vt,fn,on)},Ye=function(Vt,en){ee(Vt);var on=ae(en),fn=Pe(on).concat(_t(on));return wt(fn,function(jn){(!be||Ce(Ke,on,jn))&&De(Vt,jn,on[jn])}),Vt},dt=function(Vt,en){return en===void 0?pe(Vt):Ye(pe(Vt),en)},Ke=function(Vt){var en=re(Vt),on=Ce(gt,this,en);return this===Kt&&fe(Je,en)&&!fe(Xe,en)?!1:on||!fe(this,en)||!fe(Je,en)||fe(this,mt)&&this[mt][en]?on:!0},At=function(Vt,en){var on=ae(Vt),fn=re(en);if(!(on===Kt&&fe(Je,fn)&&!fe(Xe,fn))){var jn=nt(on,fn);return jn&&fe(Je,fn)&&!(fe(on,mt)&&on[mt][fn])&&(jn.enumerable=!0),jn}},zt=function(Vt){var en=Mt(ae(Vt)),on=[];return wt(en,function(fn){!fe(Je,fn)&&!fe(qe,fn)&&rt(on,fn)}),on},_t=function(Ot){var Vt=Ot===Kt,en=Mt(Vt?Xe:ae(Ot)),on=[];return wt(en,function(fn){fe(Je,fn)&&(!Vt||fe(Kt,fn))&&rt(on,Je[fn])}),on};me||(Pt=function(){if(z(Et,this))throw at("Symbol is not a constructor");var Vt=!arguments.length||arguments[0]===void 0?void 0:le(arguments[0]),en=ut(Vt),on=function(fn){this===Kt&&Ce(on,Xe,fn),fe(this,mt)&&fe(this[mt],en)&&(this[mt][en]=!1),Ze(this,en,ue(1,fn))};return be&&tt&&Ze(Kt,en,{configurable:!0,set:on}),je(en,Vt)},Et=Pt[St],Qe(Et,"toString",function(){return Ft(this).tag}),Qe(Pt,"withoutSetter",function(Ot){return je(ut(Ot),Ot)}),Re.f=Ke,Me.f=De,Be.f=Ye,Te.f=At,we.f=Ne.f=zt,Ae.f=_t,yt.f=function(Ot){return je(ct(Ot),Ot)},be&&(ht(Et,"description",{configurable:!0,get:function(){return Ft(this).description}}),ye||Qe(Kt,"propertyIsEnumerable",Ke,{unsafe:!0}))),ve({global:!0,wrap:!0,forced:!me,sham:!me},{Symbol:Pt}),wt(Pe(Ve),function(Ot){_e(Ot)}),ve({target:vt,stat:!0,forced:!me},{useSetter:function(){tt=!0},useSimple:function(){tt=!1}}),ve({target:"Object",stat:!0,forced:!me,sham:!be},{create:dt,defineProperty:De,defineProperties:Ye,getOwnPropertyDescriptor:At}),ve({target:"Object",stat:!0,forced:!me},{getOwnPropertyNames:zt}),st(),pt(Pt,vt),qe[mt]=!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(oe,Ue,Oe){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/descriptors"),Ce=oe("../internals/global"),Ee=oe("../internals/function-uncurry-this"),ye=oe("../internals/has-own-property"),be=oe("../internals/is-callable"),me=oe("../internals/object-is-prototype-of"),xe=oe("../internals/to-string"),fe=oe("../internals/object-define-property").f,z=oe("../internals/copy-constructor-properties"),ee=Ce.Symbol,ae=ee&&ee.prototype;if(ce&&be(ee)&&(!("description"in ae)||ee().description!==void 0)){var re={},le=function(){var Me=arguments.length<1||arguments[0]===void 0?void 0:xe(arguments[0]),Be=me(ae,this)?new ee(Me):Me===void 0?ee():ee(Me);return Me===""&&(re[Be]=!0),Be};z(le,ee),le.prototype=ae,ae.constructor=le;var ue=String(ee("test"))=="Symbol(test)",pe=Ee(ae.toString),Pe=Ee(ae.valueOf),we=/^Symbol\((.*)\)[^)]+$/,Ne=Ee("".replace),Ae=Ee("".slice);fe(ae,"description",{configurable:!0,get:function(){var Me=Pe(this),Be=pe(Me);if(ye(re,Me))return"";var Re=ue?Ae(Be,7,-1):Ne(Be,we,"$1");return Re===""?void 0:Re}}),ve({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(oe,Ue,Oe){var ve=oe("../internals/export"),ce=oe("../internals/get-built-in"),Ce=oe("../internals/has-own-property"),Ee=oe("../internals/to-string"),ye=oe("../internals/shared"),be=oe("../internals/native-symbol-registry"),me=ye("string-to-symbol-registry"),xe=ye("symbol-to-string-registry");ve({target:"Symbol",stat:!0,forced:!be},{for:function(fe){var z=Ee(fe);if(Ce(me,z))return me[z];var ee=ce("Symbol")(z);return me[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(oe,Ue,Oe){var ve=oe("../internals/define-well-known-symbol");ve("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(oe,Ue,Oe){oe("../modules/es.symbol.constructor"),oe("../modules/es.symbol.for"),oe("../modules/es.symbol.key-for"),oe("../modules/es.json.stringify"),oe("../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(oe,Ue,Oe){var ve=oe("../internals/export"),ce=oe("../internals/has-own-property"),Ce=oe("../internals/is-symbol"),Ee=oe("../internals/try-to-string"),ye=oe("../internals/shared"),be=oe("../internals/native-symbol-registry"),me=ye("symbol-to-string-registry");ve({target:"Symbol",stat:!0,forced:!be},{keyFor:function(fe){if(!Ce(fe))throw TypeError(Ee(fe)+" is not a symbol");if(ce(me,fe))return me[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(oe,Ue,Oe){"use strict";var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/array-buffer-view-core"),Ce=oe("../internals/array-copy-within"),Ee=ve(Ce),ye=ce.aTypedArray,be=ce.exportTypedArrayMethod;be("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(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").every,Ce=ve.aTypedArray,Ee=ve.exportTypedArrayMethod;Ee("every",function(be){return ce(Ce(this),be,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-call"),Ce=oe("../internals/array-fill"),Ee=ve.aTypedArray,ye=ve.exportTypedArrayMethod;ye("fill",function(me){var xe=arguments.length;return ce(Ce,Ee(this),me,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(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").filter,Ce=oe("../internals/typed-array-from-species-and-list"),Ee=ve.aTypedArray,ye=ve.exportTypedArrayMethod;ye("filter",function(me){var xe=ce(Ee(this),me,arguments.length>1?arguments[1]:void 0);return Ce(this,xe)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").findIndex,Ce=ve.aTypedArray,Ee=ve.exportTypedArrayMethod;Ee("findIndex",function(be){return ce(Ce(this),be,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").find,Ce=ve.aTypedArray,Ee=ve.exportTypedArrayMethod;Ee("find",function(be){return ce(Ce(this),be,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").forEach,Ce=ve.aTypedArray,Ee=ve.exportTypedArrayMethod;Ee("forEach",function(be){ce(Ce(this),be,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-includes").includes,Ce=ve.aTypedArray,Ee=ve.exportTypedArrayMethod;Ee("includes",function(be){return ce(Ce(this),be,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-includes").indexOf,Ce=ve.aTypedArray,Ee=ve.exportTypedArrayMethod;Ee("indexOf",function(be){return ce(Ce(this),be,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/fails"),Ce=oe("../internals/function-uncurry-this"),Ee=oe("../internals/array-buffer-view-core"),ye=oe("../modules/es.array.iterator"),be=oe("../internals/well-known-symbol"),me=be("iterator"),xe=ve.Uint8Array,fe=Ce(ye.values),z=Ce(ye.keys),ee=Ce(ye.entries),ae=Ee.aTypedArray,re=Ee.exportTypedArrayMethod,le=xe&&xe.prototype,ue=!ce(function(){le[me].call([1])}),pe=!!le&&le.values&&le[me]===le.values&&le.values.name==="values",Pe=function(){return fe(ae(this))};re("entries",function(){return ee(ae(this))},ue),re("keys",function(){return z(ae(this))},ue),re("values",Pe,ue||!pe,{name:"values"}),re(me,Pe,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(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-uncurry-this"),Ce=ve.aTypedArray,Ee=ve.exportTypedArrayMethod,ye=ce([].join);Ee("join",function(me){return ye(Ce(this),me)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-apply"),Ce=oe("../internals/array-last-index-of"),Ee=ve.aTypedArray,ye=ve.exportTypedArrayMethod;ye("lastIndexOf",function(me){var xe=arguments.length;return ce(Ce,Ee(this),xe>1?[me,arguments[1]]:[me])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").map,Ce=oe("../internals/typed-array-species-constructor"),Ee=ve.aTypedArray,ye=ve.exportTypedArrayMethod;ye("map",function(me){return ce(Ee(this),me,arguments.length>1?arguments[1]:void 0,function(xe,fe){return new(Ce(xe))(fe)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-reduce").right,Ce=ve.aTypedArray,Ee=ve.exportTypedArrayMethod;Ee("reduceRight",function(be){var me=arguments.length;return ce(Ce(this),be,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-reduce").left,Ce=ve.aTypedArray,Ee=ve.exportTypedArrayMethod;Ee("reduce",function(be){var me=arguments.length;return ce(Ce(this),be,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=ve.aTypedArray,Ce=ve.exportTypedArrayMethod,Ee=Math.floor;Ce("reverse",function(){for(var be=this,me=ce(be).length,xe=Ee(me/2),fe=0,z;fe<xe;)z=be[fe],be[fe++]=be[--me],be[me]=z;return be})},{"../internals/array-buffer-view-core":103}],331:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/function-call"),Ce=oe("../internals/array-buffer-view-core"),Ee=oe("../internals/length-of-array-like"),ye=oe("../internals/to-offset"),be=oe("../internals/to-object"),me=oe("../internals/fails"),xe=ve.RangeError,fe=ve.Int8Array,z=fe&&fe.prototype,ee=z&&z.set,ae=Ce.aTypedArray,re=Ce.exportTypedArrayMethod,le=!me(function(){var pe=new Uint8ClampedArray(2);return ce(ee,pe,{length:1,0:3},1),pe[1]!==3}),ue=le&&Ce.NATIVE_ARRAY_BUFFER_VIEWS&&me(function(){var pe=new fe(2);return pe.set(1),pe.set("2",1),pe[0]!==0||pe[1]!==2});re("set",function(Pe){ae(this);var we=ye(arguments.length>1?arguments[1]:void 0,1),Ne=be(Pe);if(le)return ce(ee,this,Ne,we);var Ae=this.length,Te=Ee(Ne),Me=0;if(Te+we>Ae)throw xe("Wrong length");for(;Me<Te;)this[we+Me]=Ne[Me++]},!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(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/typed-array-species-constructor"),Ce=oe("../internals/fails"),Ee=oe("../internals/array-slice"),ye=ve.aTypedArray,be=ve.exportTypedArrayMethod,me=Ce(function(){new Int8Array(1).slice()});be("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},me)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").some,Ce=ve.aTypedArray,Ee=ve.exportTypedArrayMethod;Ee("some",function(be){return ce(Ce(this),be,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(oe,Ue,Oe){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),Ce=oe("../internals/fails"),Ee=oe("../internals/a-callable"),ye=oe("../internals/array-sort"),be=oe("../internals/array-buffer-view-core"),me=oe("../internals/engine-ff-version"),xe=oe("../internals/engine-is-ie-or-edge"),fe=oe("../internals/engine-v8-version"),z=oe("../internals/engine-webkit-version"),ee=be.aTypedArray,ae=be.exportTypedArrayMethod,re=ve.Uint16Array,le=re&&ce(re.prototype.sort),ue=!!le&&!(Ce(function(){le(new re(2),null)})&&Ce(function(){le(new re(2),{})})),pe=!!le&&!Ce(function(){if(fe)return fe<74;if(me)return me<67;if(xe)return!0;if(z)return z<602;var we=new re(516),Ne=Array(516),Ae,Te;for(Ae=0;Ae<516;Ae++)Te=Ae%4,we[Ae]=515-Ae,Ne[Ae]=Ae-2*Te+3;for(le(we,function(Me,Be){return(Me/4|0)-(Be/4|0)}),Ae=0;Ae<516;Ae++)if(we[Ae]!==Ne[Ae])return!0}),Pe=function(we){return function(Ne,Ae){return we!==void 0?+we(Ne,Ae)||0:Ae!==Ae?-1:Ne!==Ne?1:Ne===0&&Ae===0?1/Ne>0&&1/Ae<0?1:-1:Ne>Ae}};ae("sort",function(Ne){return Ne!==void 0&&Ee(Ne),pe?le(this,Ne):ye(ee(this),Pe(Ne))},!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(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/to-length"),Ce=oe("../internals/to-absolute-index"),Ee=oe("../internals/typed-array-species-constructor"),ye=ve.aTypedArray,be=ve.exportTypedArrayMethod;be("subarray",function(xe,fe){var z=ye(this),ee=z.length,ae=Ce(xe,ee),re=Ee(z);return new re(z.buffer,z.byteOffset+ae*z.BYTES_PER_ELEMENT,ce((fe===void 0?ee:Ce(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(oe,Ue,Oe){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/function-apply"),Ce=oe("../internals/array-buffer-view-core"),Ee=oe("../internals/fails"),ye=oe("../internals/array-slice"),be=ve.Int8Array,me=Ce.aTypedArray,xe=Ce.exportTypedArrayMethod,fe=[].toLocaleString,z=!!be&&Ee(function(){fe.call(new be(1))}),ee=Ee(function(){return[1,2].toLocaleString()!=new be([1,2]).toLocaleString()})||!Ee(function(){be.prototype.toLocaleString.call([1,2])});xe("toLocaleString",function(){return ce(fe,z?ye(me(this)):me(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(oe,Ue,Oe){"use strict";var ve=oe("../internals/array-buffer-view-core").exportTypedArrayMethod,ce=oe("../internals/fails"),Ce=oe("../internals/global"),Ee=oe("../internals/function-uncurry-this"),ye=Ce.Uint8Array,be=ye&&ye.prototype||{},me=[].toString,xe=Ee([].join);ce(function(){me.call({})})&&(me=function(){return xe(this)});var fe=be.toString!=me;ve("toString",me,fe)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(oe,Ue,Oe){var ve=oe("../internals/typed-array-constructor");ve("Uint8",function(ce){return function(Ee,ye,be){return ce(this,Ee,ye,be)}})},{"../internals/typed-array-constructor":258}],339:[function(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/dom-iterables"),Ce=oe("../internals/dom-token-list-prototype"),Ee=oe("../internals/array-for-each"),ye=oe("../internals/create-non-enumerable-property"),be=function(xe){if(xe&&xe.forEach!==Ee)try{ye(xe,"forEach",Ee)}catch(fe){xe.forEach=Ee}};for(var me in ce)ce[me]&&be(ve[me]&&ve[me].prototype);be(Ce)},{"../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(oe,Ue,Oe){var ve=oe("../internals/global"),ce=oe("../internals/dom-iterables"),Ce=oe("../internals/dom-token-list-prototype"),Ee=oe("../modules/es.array.iterator"),ye=oe("../internals/create-non-enumerable-property"),be=oe("../internals/well-known-symbol"),me=be("iterator"),xe=be("toStringTag"),fe=Ee.values,z=function(ae,re){if(ae){if(ae[me]!==fe)try{ye(ae,me,fe)}catch(ue){ae[me]=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(ve[ee]&&ve[ee].prototype,ee);z(Ce,"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(oe,Ue,Oe){function ve(pe){return Array.isArray?Array.isArray(pe):ue(pe)==="[object Array]"}Oe.isArray=ve;function ce(pe){return typeof pe=="boolean"}Oe.isBoolean=ce;function Ce(pe){return pe===null}Oe.isNull=Ce;function Ee(pe){return pe==null}Oe.isNullOrUndefined=Ee;function ye(pe){return typeof pe=="number"}Oe.isNumber=ye;function be(pe){return typeof pe=="string"}Oe.isString=be;function me(pe){return typeof pe=="symbol"}Oe.isSymbol=me;function xe(pe){return pe===void 0}Oe.isUndefined=xe;function fe(pe){return ue(pe)==="[object RegExp]"}Oe.isRegExp=fe;function z(pe){return typeof pe=="object"&&pe!==null}Oe.isObject=z;function ee(pe){return ue(pe)==="[object Date]"}Oe.isDate=ee;function ae(pe){return ue(pe)==="[object Error]"||pe instanceof Error}Oe.isError=ae;function re(pe){return typeof pe=="function"}Oe.isFunction=re;function le(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}Oe.isPrimitive=le,Oe.isBuffer=oe("buffer").Buffer.isBuffer;function ue(pe){return Object.prototype.toString.call(pe)}},{buffer:90}],342:[function(oe,Ue,Oe){(function(ve){"use strict";var ce=function(){var me=/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&&be(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"](),Pe=z[ue+"Day"](),we=z[ue+"Month"](),Ne=z[ue+"FullYear"](),Ae=z[ue+"Hours"](),Te=z[ue+"Minutes"](),Me=z[ue+"Seconds"](),Be=z[ue+"Milliseconds"](),Re=ae?0:z.getTimezoneOffset(),Qe=Ee(z),He=ye(z),$e={d:pe,dd:Ce(pe),ddd:ce.i18n.dayNames[Pe],dddd:ce.i18n.dayNames[Pe+7],m:we+1,mm:Ce(we+1),mmm:ce.i18n.monthNames[we],mmmm:ce.i18n.monthNames[we+12],yy:String(Ne).slice(2),yyyy:Ne,h:Ae%12||12,hh:Ce(Ae%12||12),H:Ae,HH:Ce(Ae),M:Te,MM:Ce(Te),s:Me,ss:Ce(Me),l:Ce(Be,3),L:Ce(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:(Re>0?"-":"+")+Ce(Math.floor(Math.abs(Re)/60)*100+Math.abs(Re)%60,4),S:["th","st","nd","rd"][pe%10>3?0:(pe%100-pe%10!=10)*pe%10],W:Qe,N:He};return ee.replace(me,function(qe){return qe in $e?$e[qe]:qe.slice(1,qe.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 Ce(me,xe){for(me=String(me),xe=xe||2;me.length<xe;)me="0"+me;return me}function Ee(me){var xe=new Date(me.getFullYear(),me.getMonth(),me.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(me){var xe=me.getDay();return xe===0&&(xe=7),xe}function be(me){return me===null?"null":me===void 0?"undefined":typeof me!="object"?typeof me:Array.isArray(me)?"array":{}.toString.call(me).slice(8,-1).toLowerCase()}typeof ze=="function"&&ze.amd?ze(function(){return ce}):typeof Oe=="object"?Ue.exports=ce:ve.dateFormat=ce})(this)},{}],343:[function(oe,Ue,Oe){"use strict";var ve=/["'&<>]/;Ue.exports=ce;function ce(Ce){var Ee=""+Ce,ye=ve.exec(Ee);if(!ye)return Ee;var be,me="",xe=0,fe=0;for(xe=ye.index;xe<Ee.length;xe++){switch(Ee.charCodeAt(xe)){case 34:be="&quot;";break;case 38:be="&amp;";break;case 39:be="&#39;";break;case 60:be="&lt;";break;case 62:be="&gt;";break;default:continue}fe!==xe&&(me+=Ee.substring(fe,xe)),fe=xe+1,me+=be}return fe!==xe?me+Ee.substring(fe,xe):me}},{}],344:[function(oe,Ue,Oe){"use strict";var ve=typeof Reflect=="object"?Reflect:null,ce=ve&&typeof ve.apply=="function"?ve.apply:function(Me,Be,Re){return Function.prototype.apply.call(Me,Be,Re)},Ce;ve&&typeof ve.ownKeys=="function"?Ce=ve.ownKeys:Object.getOwnPropertySymbols?Ce=function(Me){return Object.getOwnPropertyNames(Me).concat(Object.getOwnPropertySymbols(Me))}:Ce=function(Me){return Object.getOwnPropertyNames(Me)};function Ee(Te){console&&console.warn&&console.warn(Te)}var ye=Number.isNaN||function(Me){return Me!==Me};function be(){be.init.call(this)}Ue.exports=be,Ue.exports.once=we,be.EventEmitter=be,be.prototype._events=void 0,be.prototype._eventsCount=0,be.prototype._maxListeners=void 0;var me=10;function xe(Te){if(typeof Te!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Te)}Object.defineProperty(be,"defaultMaxListeners",{enumerable:!0,get:function(){return me},set:function(Te){if(typeof Te!="number"||Te<0||ye(Te))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Te+".");me=Te}}),be.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},be.prototype.setMaxListeners=function(Me){if(typeof Me!="number"||Me<0||ye(Me))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Me+".");return this._maxListeners=Me,this};function fe(Te){return Te._maxListeners===void 0?be.defaultMaxListeners:Te._maxListeners}be.prototype.getMaxListeners=function(){return fe(this)},be.prototype.emit=function(Me){for(var Be=[],Re=1;Re<arguments.length;Re++)Be.push(arguments[Re]);var Qe=Me==="error",He=this._events;if(He!==void 0)Qe=Qe&&He.error===void 0;else if(!Qe)return!1;if(Qe){var $e;if(Be.length>0&&($e=Be[0]),$e instanceof Error)throw $e;var qe=new Error("Unhandled error."+($e?" ("+$e.message+")":""));throw qe.context=$e,qe}var ut=He[Me];if(ut===void 0)return!1;if(typeof ut=="function")ce(ut,this,Be);else for(var ct=ut.length,yt=ue(ut,ct),Re=0;Re<ct;++Re)ce(yt[Re],this,Be);return!0};function z(Te,Me,Be,Re){var Qe,He,$e;if(xe(Be),He=Te._events,He===void 0?(He=Te._events=Object.create(null),Te._eventsCount=0):(He.newListener!==void 0&&(Te.emit("newListener",Me,Be.listener?Be.listener:Be),He=Te._events),$e=He[Me]),$e===void 0)$e=He[Me]=Be,++Te._eventsCount;else if(typeof $e=="function"?$e=He[Me]=Re?[Be,$e]:[$e,Be]:Re?$e.unshift(Be):$e.push(Be),Qe=fe(Te),Qe>0&&$e.length>Qe&&!$e.warned){$e.warned=!0;var qe=new Error("Possible EventEmitter memory leak detected. "+$e.length+" "+String(Me)+" listeners added. Use emitter.setMaxListeners() to increase limit");qe.name="MaxListenersExceededWarning",qe.emitter=Te,qe.type=Me,qe.count=$e.length,Ee(qe)}return Te}be.prototype.addListener=function(Me,Be){return z(this,Me,Be,!1)},be.prototype.on=be.prototype.addListener,be.prototype.prependListener=function(Me,Be){return z(this,Me,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(Te,Me,Be){var Re={fired:!1,wrapFn:void 0,target:Te,type:Me,listener:Be},Qe=ee.bind(Re);return Qe.listener=Be,Re.wrapFn=Qe,Qe}be.prototype.once=function(Me,Be){return xe(Be),this.on(Me,ae(this,Me,Be)),this},be.prototype.prependOnceListener=function(Me,Be){return xe(Be),this.prependListener(Me,ae(this,Me,Be)),this},be.prototype.removeListener=function(Me,Be){var Re,Qe,He,$e,qe;if(xe(Be),Qe=this._events,Qe===void 0)return this;if(Re=Qe[Me],Re===void 0)return this;if(Re===Be||Re.listener===Be)--this._eventsCount===0?this._events=Object.create(null):(delete Qe[Me],Qe.removeListener&&this.emit("removeListener",Me,Re.listener||Be));else if(typeof Re!="function"){for(He=-1,$e=Re.length-1;$e>=0;$e--)if(Re[$e]===Be||Re[$e].listener===Be){qe=Re[$e].listener,He=$e;break}if(He<0)return this;He===0?Re.shift():pe(Re,He),Re.length===1&&(Qe[Me]=Re[0]),Qe.removeListener!==void 0&&this.emit("removeListener",Me,qe||Be)}return this},be.prototype.off=be.prototype.removeListener,be.prototype.removeAllListeners=function(Me){var Be,Re,Qe;if(Re=this._events,Re===void 0)return this;if(Re.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Re[Me]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Re[Me]),this;if(arguments.length===0){var He=Object.keys(Re),$e;for(Qe=0;Qe<He.length;++Qe)$e=He[Qe],$e!=="removeListener"&&this.removeAllListeners($e);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Be=Re[Me],typeof Be=="function")this.removeListener(Me,Be);else if(Be!==void 0)for(Qe=Be.length-1;Qe>=0;Qe--)this.removeListener(Me,Be[Qe]);return this};function re(Te,Me,Be){var Re=Te._events;if(Re===void 0)return[];var Qe=Re[Me];return Qe===void 0?[]:typeof Qe=="function"?Be?[Qe.listener||Qe]:[Qe]:Be?Pe(Qe):ue(Qe,Qe.length)}be.prototype.listeners=function(Me){return re(this,Me,!0)},be.prototype.rawListeners=function(Me){return re(this,Me,!1)},be.listenerCount=function(Te,Me){return typeof Te.listenerCount=="function"?Te.listenerCount(Me):le.call(Te,Me)},be.prototype.listenerCount=le;function le(Te){var Me=this._events;if(Me!==void 0){var Be=Me[Te];if(typeof Be=="function")return 1;if(Be!==void 0)return Be.length}return 0}be.prototype.eventNames=function(){return this._eventsCount>0?Ce(this._events):[]};function ue(Te,Me){for(var Be=new Array(Me),Re=0;Re<Me;++Re)Be[Re]=Te[Re];return Be}function pe(Te,Me){for(;Me+1<Te.length;Me++)Te[Me]=Te[Me+1];Te.pop()}function Pe(Te){for(var Me=new Array(Te.length),Be=0;Be<Me.length;++Be)Me[Be]=Te[Be].listener||Te[Be];return Me}function we(Te,Me){return new Promise(function(Be,Re){function Qe($e){Te.removeListener(Me,He),Re($e)}function He(){typeof Te.removeListener=="function"&&Te.removeListener("error",Qe),Be([].slice.call(arguments))}Ae(Te,Me,He,{once:!0}),Me!=="error"&&Ne(Te,Qe,{once:!0})})}function Ne(Te,Me,Be){typeof Te.on=="function"&&Ae(Te,"error",Me,Be)}function Ae(Te,Me,Be,Re){if(typeof Te.on=="function")Re.once?Te.once(Me,Be):Te.on(Me,Be);else if(typeof Te.addEventListener=="function")Te.addEventListener(Me,function Qe(He){Re.once&&Te.removeEventListener(Me,Qe),Be(He)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Te)}},{}],345:[function(oe,Ue,Oe){"use strict";var ve=oe("is-callable"),ce=Object.prototype.toString,Ce=Object.prototype.hasOwnProperty,Ee=function(fe,z,ee){for(var ae=0,re=fe.length;ae<re;ae++)Ce.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)},be=function(fe,z,ee){for(var ae in fe)Ce.call(fe,ae)&&(ee==null?z(fe[ae],ae,fe):z.call(ee,fe[ae],ae,fe))},me=function(fe,z,ee){if(!ve(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):be(fe,z,ae)};Ue.exports=me},{"is-callable":367}],346:[function(oe,Ue,Oe){"use strict";var ve="Function.prototype.bind called on incompatible ",ce=Array.prototype.slice,Ce=Object.prototype.toString,Ee="[object Function]";Ue.exports=function(be){var me=this;if(typeof me!="function"||Ce.call(me)!==Ee)throw new TypeError(ve+me);for(var xe=ce.call(arguments,1),fe,z=function(){if(this instanceof fe){var ue=me.apply(this,xe.concat(ce.call(arguments)));return Object(ue)===ue?ue:this}else return me.apply(be,xe.concat(ce.call(arguments)))},ee=Math.max(0,me.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),me.prototype){var le=function(){};le.prototype=me.prototype,fe.prototype=new le,le.prototype=null}return fe}},{}],347:[function(oe,Ue,Oe){"use strict";var ve=oe("./implementation");Ue.exports=Function.prototype.bind||ve},{"./implementation":346}],348:[function(oe,Ue,Oe){"use strict";var ve,ce=SyntaxError,Ce=Function,Ee=TypeError,ye=function(ut){try{return Ce('"use strict"; return ('+ut+").constructor;")()}catch(ct){}},be=Object.getOwnPropertyDescriptor;if(be)try{be({},"")}catch(ut){be=null}var me=function(){throw new Ee},xe=be?function(){try{return arguments.callee,me}catch(ut){try{return be(arguments,"callee").get}catch(ct){return me}}}():me,fe=oe("has-symbols")(),z=oe("has-proto")(),ee=Object.getPrototypeOf||(z?function(ut){return ut.__proto__}:null),ae={},re=typeof Uint8Array=="undefined"||!ee?ve:ee(Uint8Array),le={"%AggregateError%":typeof AggregateError=="undefined"?ve:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ve:ArrayBuffer,"%ArrayIteratorPrototype%":fe&&ee?ee([][Symbol.iterator]()):ve,"%AsyncFromSyncIteratorPrototype%":ve,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics=="undefined"?ve:Atomics,"%BigInt%":typeof BigInt=="undefined"?ve:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ve:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ve:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ve:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ve:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ve:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ve:FinalizationRegistry,"%Function%":Ce,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array=="undefined"?ve:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ve:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ve:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fe&&ee?ee(ee([][Symbol.iterator]())):ve,"%JSON%":typeof JSON=="object"?JSON:ve,"%Map%":typeof Map=="undefined"?ve:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!fe||!ee?ve:ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ve:Promise,"%Proxy%":typeof Proxy=="undefined"?ve:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ve:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ve:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!fe||!ee?ve:ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ve:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fe&&ee?ee(""[Symbol.iterator]()):ve,"%Symbol%":fe?Symbol:ve,"%SyntaxError%":ce,"%ThrowTypeError%":xe,"%TypedArray%":re,"%TypeError%":Ee,"%Uint8Array%":typeof Uint8Array=="undefined"?ve:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ve:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ve:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ve:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ve:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ve:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ve:WeakSet};if(ee)try{null.error}catch(ut){var ue=ee(ee(ut));le["%Error.prototype%"]=ue}var pe=function ut(ct){var yt;if(ct==="%AsyncFunction%")yt=ye("async function () {}");else if(ct==="%GeneratorFunction%")yt=ye("function* () {}");else if(ct==="%AsyncGeneratorFunction%")yt=ye("async function* () {}");else if(ct==="%AsyncGenerator%"){var _e=ut("%AsyncGeneratorFunction%");_e&&(yt=_e.prototype)}else if(ct==="%AsyncIteratorPrototype%"){var st=ut("%AsyncGenerator%");st&&ee&&(yt=ee(st.prototype))}return le[ct]=yt,yt},Pe={"%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"]},we=oe("function-bind"),Ne=oe("has"),Ae=we.call(Function.call,Array.prototype.concat),Te=we.call(Function.apply,Array.prototype.splice),Me=we.call(Function.call,String.prototype.replace),Be=we.call(Function.call,String.prototype.slice),Re=we.call(Function.call,RegExp.prototype.exec),Qe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,He=/\\(\\)?/g,$e=function(ct){var yt=Be(ct,0,1),_e=Be(ct,-1);if(yt==="%"&&_e!=="%")throw new ce("invalid intrinsic syntax, expected closing `%`");if(_e==="%"&&yt!=="%")throw new ce("invalid intrinsic syntax, expected opening `%`");var st=[];return Me(ct,Qe,function(pt,bt,wt,mt){st[st.length]=wt?Me(mt,He,"$1"):bt||pt}),st},qe=function(ct,yt){var _e=ct,st;if(Ne(Pe,_e)&&(st=Pe[_e],_e="%"+st[0]+"%"),Ne(le,_e)){var pt=le[_e];if(pt===ae&&(pt=pe(_e)),typeof pt=="undefined"&&!yt)throw new Ee("intrinsic "+ct+" exists, but is not available. Please file an issue!");return{alias:st,name:_e,value:pt}}throw new ce("intrinsic "+ct+" does not exist!")};Ue.exports=function(ct,yt){if(typeof ct!="string"||ct.length===0)throw new Ee("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof yt!="boolean")throw new Ee('"allowMissing" argument must be a boolean');if(Re(/^%?[^%]*%?$/,ct)===null)throw new ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var _e=$e(ct),st=_e.length>0?_e[0]:"",pt=qe("%"+st+"%",yt),bt=pt.name,wt=pt.value,mt=!1,vt=pt.alias;vt&&(st=vt[0],Te(_e,Ae([0,1],vt)));for(var St=1,Nt=!0;St<_e.length;St+=1){var Ft=_e[St],Kt=Be(Ft,0,1),Pt=Be(Ft,-1);if((Kt==='"'||Kt==="'"||Kt==="`"||Pt==='"'||Pt==="'"||Pt==="`")&&Kt!==Pt)throw new ce("property names with quotes must have matching quotes");if((Ft==="constructor"||!Nt)&&(mt=!0),st+="."+Ft,bt="%"+st+"%",Ne(le,bt))wt=le[bt];else if(wt!=null){if(!(Ft in wt)){if(!yt)throw new Ee("base intrinsic for "+ct+" exists, but the property is not available.");return}if(be&&St+1>=_e.length){var Et=be(wt,Ft);Nt=!!Et,Nt&&"get"in Et&&!("originalValue"in Et.get)?wt=Et.get:wt=wt[Ft]}else Nt=Ne(wt,Ft),wt=wt[Ft];Nt&&!mt&&(le[bt]=wt)}}return wt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(oe,Ue,Oe){"use strict";var ve=oe("get-intrinsic"),ce=ve("%Object.getOwnPropertyDescriptor%",!0);if(ce)try{ce([],"length")}catch(Ce){ce=null}Ue.exports=ce},{"get-intrinsic":348}],350:[function(oe,Ue,Oe){"use strict";var ve={foo:{}},ce=Object;Ue.exports=function(){return{__proto__:ve}.foo===ve.foo&&!({__proto__:null}instanceof ce)}},{}],351:[function(oe,Ue,Oe){"use strict";var ve=typeof Symbol!="undefined"&&Symbol,ce=oe("./shams");Ue.exports=function(){return typeof ve!="function"||typeof Symbol!="function"||typeof ve("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ce()}},{"./shams":352}],352:[function(oe,Ue,Oe){"use strict";Ue.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var ce={},Ce=Symbol("test"),Ee=Object(Ce);if(typeof Ce=="string"||Object.prototype.toString.call(Ce)!=="[object Symbol]"||Object.prototype.toString.call(Ee)!=="[object Symbol]")return!1;var ye=42;ce[Ce]=ye;for(Ce 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 be=Object.getOwnPropertySymbols(ce);if(be.length!==1||be[0]!==Ce||!Object.prototype.propertyIsEnumerable.call(ce,Ce))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var me=Object.getOwnPropertyDescriptor(ce,Ce);if(me.value!==ye||me.enumerable!==!0)return!1}return!0}},{}],353:[function(oe,Ue,Oe){"use strict";var ve=oe("has-symbols/shams");Ue.exports=function(){return ve()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(oe,Ue,Oe){"use strict";var ve=oe("function-bind");Ue.exports=ve.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(oe,Ue,Oe){var ve=oe("http"),ce=oe("url"),Ce=Ue.exports;for(var Ee in ve)ve.hasOwnProperty(Ee)&&(Ce[Ee]=ve[Ee]);Ce.request=function(be,me){return be=ye(be),ve.request.call(this,be,me)},Ce.get=function(be,me){return be=ye(be),ve.get.call(this,be,me)};function ye(be){if(typeof be=="string"&&(be=ce.parse(be)),be.protocol||(be.protocol="https:"),be.protocol!=="https:")throw new Error('Protocol "'+be.protocol+'" not supported. Expected "https:"');return be}},{http:468,url:472}],356:[function(oe,Ue,Oe){"use strict";var ve=oe("util"),ce=oe("ms");Ue.exports=function(Ce){if(typeof Ce=="number")return Ce;var Ee=ce(Ce);if(Ee===void 0){var ye=new Error(ve.format("humanize-ms(%j) result undefined",Ce));console.warn(ye.stack)}return Ee}},{ms:376,util:419}],357:[function(oe,Ue,Oe){Oe.read=function(ve,ce,Ce,Ee,ye){var be,me,xe=ye*8-Ee-1,fe=(1<<xe)-1,z=fe>>1,ee=-7,ae=Ce?ye-1:0,re=Ce?-1:1,le=ve[ce+ae];for(ae+=re,be=le&(1<<-ee)-1,le>>=-ee,ee+=xe;ee>0;be=be*256+ve[ce+ae],ae+=re,ee-=8);for(me=be&(1<<-ee)-1,be>>=-ee,ee+=Ee;ee>0;me=me*256+ve[ce+ae],ae+=re,ee-=8);if(be===0)be=1-z;else{if(be===fe)return me?NaN:(le?-1:1)*(1/0);me=me+Math.pow(2,Ee),be=be-z}return(le?-1:1)*me*Math.pow(2,be-Ee)},Oe.write=function(ve,ce,Ce,Ee,ye,be){var me,xe,fe,z=be*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:be-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,me=ee):(me=Math.floor(Math.log(ce)/Math.LN2),ce*(fe=Math.pow(2,-me))<1&&(me--,fe*=2),me+ae>=1?ce+=re/fe:ce+=re*Math.pow(2,1-ae),ce*fe>=2&&(me++,fe/=2),me+ae>=ee?(xe=0,me=ee):me+ae>=1?(xe=(ce*fe-1)*Math.pow(2,ye),me=me+ae):(xe=ce*Math.pow(2,ae-1)*Math.pow(2,ye),me=0));ye>=8;ve[Ce+le]=xe&255,le+=ue,xe/=256,ye-=8);for(me=me<<ye|xe,z+=ye;z>0;ve[Ce+le]=me&255,le+=ue,me/=256,z-=8);ve[Ce+le-ue]|=pe*128}},{}],358:[function(oe,Ue,Oe){"use strict";var ve=[oe("./nextTick"),oe("./queueMicrotask"),oe("./mutation.js"),oe("./messageChannel"),oe("./stateChange"),oe("./timeout")],ce,Ce,Ee=-1,ye=[],be=!1;function me(){!ce||!Ce||(ce=!1,Ce.length?ye=Ce.concat(ye):Ee=-1,ye.length&&xe())}function xe(){if(!ce){be=!1,ce=!0;for(var le=ye.length,ue=setTimeout(me);le;){for(Ce=ye,ye=[];Ce&&++Ee<le;)Ce[Ee].run();Ee=-1,le=ye.length}Ce=null,Ee=-1,ce=!1,clearTimeout(ue)}}for(var fe,z=-1,ee=ve.length;++z<ee;)if(ve[z]&&ve[z].test&&ve[z].test()){fe=ve[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)}},Ue.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)),!be&&!ce&&(be=!0,fe())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";Oe.test=function(){return ve.setImmediate?!1:typeof ve.MessageChannel!="undefined"},Oe.install=function(ce){var Ce=new ve.MessageChannel;return Ce.port1.onmessage=ce,function(){Ce.port2.postMessage(0)}}}).call(this)}).call(this,typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";var ce=ve.MutationObserver||ve.WebKitMutationObserver;Oe.test=function(){return ce},Oe.install=function(Ce){var Ee=0,ye=new ce(Ce),be=ve.document.createTextNode("");return ye.observe(be,{characterData:!0}),function(){be.data=Ee=++Ee%2}}}).call(this)}).call(this,typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";Oe.test=function(){return typeof ve.queueMicrotask=="function"},Oe.install=function(ce){return function(){ve.queueMicrotask(ce)}}}).call(this)}).call(this,typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";Oe.test=function(){return"document"in ve&&"onreadystatechange"in ve.document.createElement("script")},Oe.install=function(ce){return function(){var Ce=ve.document.createElement("script");return Ce.onreadystatechange=function(){ce(),Ce.onreadystatechange=null,Ce.parentNode.removeChild(Ce),Ce=null},ve.document.documentElement.appendChild(Ce),ce}}}).call(this)}).call(this,typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(oe,Ue,Oe){"use strict";Oe.test=function(){return!0},Oe.install=function(ve){return function(){setTimeout(ve,0)}}},{}],364:[function(oe,Ue,Oe){typeof Object.create=="function"?Ue.exports=function(ce,Ce){Ce&&(ce.super_=Ce,ce.prototype=Object.create(Ce.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}))}:Ue.exports=function(ce,Ce){if(Ce){ce.super_=Ce;var Ee=function(){};Ee.prototype=Ce.prototype,ce.prototype=new Ee,ce.prototype.constructor=ce}}},{}],365:[function(oe,Ue,Oe){"use strict";var ve=oe("has-tostringtag/shams")(),ce=oe("call-bind/callBound"),Ce=ce("Object.prototype.toString"),Ee=function(xe){return ve&&xe&&typeof xe=="object"&&Symbol.toStringTag in xe?!1:Ce(xe)==="[object Arguments]"},ye=function(xe){return Ee(xe)?!0:xe!==null&&typeof xe=="object"&&typeof xe.length=="number"&&xe.length>=0&&Ce(xe)!=="[object Array]"&&Ce(xe.callee)==="[object Function]"},be=function(){return Ee(arguments)}();Ee.isLegacyArguments=ye,Ue.exports=be?Ee:ye},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(oe,Ue,Oe){Ue.exports=function(Ce){return Ce!=null&&(ve(Ce)||ce(Ce)||!!Ce._isBuffer)};function ve(Ce){return!!Ce.constructor&&typeof Ce.constructor.isBuffer=="function"&&Ce.constructor.isBuffer(Ce)}function ce(Ce){return typeof Ce.readFloatLE=="function"&&typeof Ce.slice=="function"&&ve(Ce.slice(0,0))}},{}],367:[function(oe,Ue,Oe){"use strict";var ve=Function.prototype.toString,ce=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Ce,Ee;if(typeof ce=="function"&&typeof Object.defineProperty=="function")try{Ce=Object.defineProperty({},"length",{get:function(){throw Ee}}),Ee={},ce(function(){throw 42},null,Ce)}catch(Ne){Ne!==Ee&&(ce=null)}else ce=null;var ye=/^\s*class\b/,be=function(Ae){try{var Te=ve.call(Ae);return ye.test(Te)}catch(Me){return!1}},me=function(Ae){try{return be(Ae)?!1:(ve.call(Ae),!0)}catch(Te){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[,]),Pe=function(){return!1};if(typeof document=="object"){var we=document.all;xe.call(we)===xe.call(document.all)&&(Pe=function(Ae){if((pe||!Ae)&&(typeof Ae=="undefined"||typeof Ae=="object"))try{var Te=xe.call(Ae);return(Te===ae||Te===re||Te===le||Te===fe)&&Ae("")==null}catch(Me){}return!1})}Ue.exports=ce?function(Ae){if(Pe(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;try{ce(Ae,null,Ce)}catch(Te){if(Te!==Ee)return!1}return!be(Ae)&&me(Ae)}:function(Ae){if(Pe(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;if(ue)return me(Ae);if(be(Ae))return!1;var Te=xe.call(Ae);return Te!==z&&Te!==ee&&!/^\[object HTML/.test(Te)?!1:me(Ae)}},{}],368:[function(oe,Ue,Oe){"use strict";var ve=Object.prototype.toString,ce=Function.prototype.toString,Ce=/^\s*(?:function)?\*/,Ee=oe("has-tostringtag/shams")(),ye=Object.getPrototypeOf,be=function(){if(!Ee)return!1;try{return Function("return function*() {}")()}catch(xe){}},me;Ue.exports=function(fe){if(typeof fe!="function")return!1;if(Ce.test(ce.call(fe)))return!0;if(!Ee){var z=ve.call(fe);return z==="[object GeneratorFunction]"}if(!ye)return!1;if(typeof me=="undefined"){var ee=be();me=ee?ye(ee):!1}return ye(fe)===me}},{"has-tostringtag/shams":353}],369:[function(oe,Ue,Oe){"use strict";var ve=oe("which-typed-array");Ue.exports=function(Ce){return!!ve(Ce)}},{"which-typed-array":420}],370:[function(oe,Ue,Oe){var ve={}.toString;Ue.exports=Array.isArray||function(ce){return ve.call(ce)=="[object Array]"}},{}],371:[function(oe,Ue,Oe){(function(ve){(function(){(function(ce,Ce){typeof Oe=="object"&&typeof Ue!="undefined"?Ue.exports=Ce(ce):typeof ze=="function"&&ze.amd?ze(Ce):Ce(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ve!="undefined"?ve:this,function(ce){"use strict";ce=ce||{};var Ce=ce.Base64,Ee="2.6.4",ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",be=function(ct){for(var yt={},_e=0,st=ct.length;_e<st;_e++)yt[ct.charAt(_e)]=_e;return yt}(ye),me=String.fromCharCode,xe=function(ct){if(ct.length<2){var yt=ct.charCodeAt(0);return yt<128?ct:yt<2048?me(192|yt>>>6)+me(128|yt&63):me(224|yt>>>12&15)+me(128|yt>>>6&63)+me(128|yt&63)}else{var yt=65536+(ct.charCodeAt(0)-55296)*1024+(ct.charCodeAt(1)-56320);return me(240|yt>>>18&7)+me(128|yt>>>12&63)+me(128|yt>>>6&63)+me(128|yt&63)}},fe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=function(ct){return ct.replace(fe,xe)},ee=function(ct){var yt=[0,2,1][ct.length%3],_e=ct.charCodeAt(0)<<16|(ct.length>1?ct.charCodeAt(1):0)<<8|(ct.length>2?ct.charCodeAt(2):0),st=[ye.charAt(_e>>>18),ye.charAt(_e>>>12&63),yt>=2?"=":ye.charAt(_e>>>6&63),yt>=1?"=":ye.charAt(_e&63)];return st.join("")},ae=ce.btoa&&typeof ce.btoa=="function"?function(ct){return ce.btoa(ct)}:function(ct){if(ct.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ct.replace(/[\s\S]{1,3}/g,ee)},re=function(ct){return ae(z(String(ct)))},le=function(ct){return ct.replace(/[+\/]/g,function(yt){return yt=="+"?"-":"_"}).replace(/=/g,"")},ue=function(ct,yt){return yt?le(re(ct)):re(ct)},pe=function(ct){return ue(ct,!0)},Pe;ce.Uint8Array&&(Pe=function(ct,yt){for(var _e="",st=0,pt=ct.length;st<pt;st+=3){var bt=ct[st],wt=ct[st+1],mt=ct[st+2],vt=bt<<16|wt<<8|mt;_e+=ye.charAt(vt>>>18)+ye.charAt(vt>>>12&63)+(typeof wt!="undefined"?ye.charAt(vt>>>6&63):"=")+(typeof mt!="undefined"?ye.charAt(vt&63):"=")}return yt?le(_e):_e});var we=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ne=function(ct){switch(ct.length){case 4:var yt=(7&ct.charCodeAt(0))<<18|(63&ct.charCodeAt(1))<<12|(63&ct.charCodeAt(2))<<6|63&ct.charCodeAt(3),_e=yt-65536;return me((_e>>>10)+55296)+me((_e&1023)+56320);case 3:return me((15&ct.charCodeAt(0))<<12|(63&ct.charCodeAt(1))<<6|63&ct.charCodeAt(2));default:return me((31&ct.charCodeAt(0))<<6|63&ct.charCodeAt(1))}},Ae=function(ct){return ct.replace(we,Ne)},Te=function(ct){var yt=ct.length,_e=yt%4,st=(yt>0?be[ct.charAt(0)]<<18:0)|(yt>1?be[ct.charAt(1)]<<12:0)|(yt>2?be[ct.charAt(2)]<<6:0)|(yt>3?be[ct.charAt(3)]:0),pt=[me(st>>>16),me(st>>>8&255),me(st&255)];return pt.length-=[0,0,2,1][_e],pt.join("")},Me=ce.atob&&typeof ce.atob=="function"?function(ct){return ce.atob(ct)}:function(ct){return ct.replace(/\S{1,4}/g,Te)},Be=function(ct){return Me(String(ct).replace(/[^A-Za-z0-9\+\/]/g,""))},Re=function(ct){return Ae(Me(ct))},Qe=function(ct){return String(ct).replace(/[-_]/g,function(yt){return yt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},He=function(ct){return Re(Qe(ct))},$e;ce.Uint8Array&&($e=function(ct){return Uint8Array.from(Be(Qe(ct)),function(yt){return yt.charCodeAt(0)})});var qe=function(){var ct=ce.Base64;return ce.Base64=Ce,ct};if(ce.Base64={VERSION:Ee,atob:Be,btoa:ae,fromBase64:He,toBase64:ue,utob:z,encode:ue,encodeURI:pe,btou:Ae,decode:He,noConflict:qe,fromUint8Array:Pe,toUint8Array:$e},typeof Object.defineProperty=="function"){var ut=function(ct){return{value:ct,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ut(function(){return He(this)})),Object.defineProperty(String.prototype,"toBase64",ut(function(ct){return ue(this,ct)})),Object.defineProperty(String.prototype,"toBase64URI",ut(function(){return ue(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),typeof Ue!="undefined"&&Ue.exports?Ue.exports.Base64=ce.Base64:typeof ze=="function"&&ze.amd&&ze([],function(){return ce.Base64}),{Base64:ce.Base64}})}).call(this)}).call(this,typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(oe,Ue,Oe){"use strict";Ue.exports=ce;var ve=Object.prototype.hasOwnProperty;function ce(Ce,Ee,ye){if(!Ce)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(me){if(!(!ye&&ve.call(Ce,me))){var xe=Object.getOwnPropertyDescriptor(Ee,me);Object.defineProperty(Ce,me,xe)}}),Ce}},{}],373:[function(oe,Ue,Oe){"use strict";oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.regexp.constructor.js"),oe("core-js/modules/es.regexp.to-string.js");function ve(){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)}ve.prototype.define=function(ce,Ce){for(var Ee in ce){var ye=ce[Ee].map(function(fe){return fe.toLowerCase()});Ee=Ee.toLowerCase();for(var be=0;be<ye.length;be++){var me=ye[be];if(me[0]!=="*"){if(!Ce&&me in this._types)throw new Error('Attempt to change mapping for "'+me+'" extension from "'+this._types[me]+'" to "'+Ee+'". Pass `force=true` to allow this, otherwise remove "'+me+'" from the list of extensions for "'+Ee+'".');this._types[me]=Ee}}if(Ce||!this._extensions[Ee]){var xe=ye[0];this._extensions[Ee]=xe[0]!=="*"?xe:xe.substr(1)}}},ve.prototype.getType=function(ce){ce=String(ce);var Ce=ce.replace(/^.*[/\\]/,"").toLowerCase(),Ee=Ce.replace(/^.*\./,"").toLowerCase(),ye=Ce.length<ce.length,be=Ee.length<Ce.length-1;return(be||!ye)&&this._types[Ee]||null},ve.prototype.getExtension=function(ce){return ce=/^\s*([^;\s]*)/.test(ce)&&RegExp.$1,ce&&this._extensions[ce.toLowerCase()]||null},Ue.exports=ve},{"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(oe,Ue,Oe){"use strict";var ve=oe("./Mime");Ue.exports=new ve(oe("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(oe,Ue,Oe){"use strict";Ue.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(oe,Ue,Oe){var ve=1e3,ce=ve*60,Ce=ce*60,Ee=Ce*24,ye=Ee*7,be=Ee*365.25;Ue.exports=function(ee,ae){ae=ae||{};var re=typeof ee;if(re==="string"&&ee.length>0)return me(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 me(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*be;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*Ce;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*ve;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>=Ce?Math.round(ee/Ce)+"h":ae>=ce?Math.round(ee/ce)+"m":ae>=ve?Math.round(ee/ve)+"s":ee+"ms"}function fe(ee){var ae=Math.abs(ee);return ae>=Ee?z(ee,ae,Ee,"day"):ae>=Ce?z(ee,ae,Ce,"hour"):ae>=ce?z(ee,ae,ce,"minute"):ae>=ve?z(ee,ae,ve,"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(oe,Ue,Oe){"use strict";var ve=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable;function Ee(be){if(be==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(be)}function ye(){try{if(!Object.assign)return!1;var be=new String("abc");if(be[5]="de",Object.getOwnPropertyNames(be)[0]==="5")return!1;for(var me={},xe=0;xe<10;xe++)me["_"+String.fromCharCode(xe)]=xe;var fe=Object.getOwnPropertyNames(me).map(function(ee){return me[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}}Ue.exports=ye()?Object.assign:function(be,me){for(var xe,fe=Ee(be),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(ve){z=ve(xe);for(var re=0;re<z.length;re++)Ce.call(xe,z[re])&&(fe[z[re]]=xe[z[re]])}}return fe}},{}],378:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";function ce(be){if(typeof be!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(be))}function Ce(be,me){for(var xe="",fe=0,z=-1,ee=0,ae,re=0;re<=be.length;++re){if(re<be.length)ae=be.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}}me&&(xe.length>0?xe+="/..":xe="..",fe=2)}else xe.length>0?xe+="/"+be.slice(z+1,re):xe=be.slice(z+1,re),fe=re-z-1;z=re,ee=0}else ae===46&&ee!==-1?++ee:ee=-1}return xe}function Ee(be,me){var xe=me.dir||me.root,fe=me.base||(me.name||"")+(me.ext||"");return xe?xe===me.root?xe+fe:xe+be+fe:fe}var ye={resolve:function(){for(var me="",xe=!1,fe,z=arguments.length-1;z>=-1&&!xe;z--){var ee;z>=0?ee=arguments[z]:(fe===void 0&&(fe=ve.cwd()),ee=fe),ce(ee),ee.length!==0&&(me=ee+"/"+me,xe=ee.charCodeAt(0)===47)}return me=Ce(me,!xe),xe?me.length>0?"/"+me:"/":me.length>0?me:"."},normalize:function(me){if(ce(me),me.length===0)return".";var xe=me.charCodeAt(0)===47,fe=me.charCodeAt(me.length-1)===47;return me=Ce(me,!xe),me.length===0&&!xe&&(me="."),me.length>0&&fe&&(me+="/"),xe?"/"+me:me},isAbsolute:function(me){return ce(me),me.length>0&&me.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var me,xe=0;xe<arguments.length;++xe){var fe=arguments[xe];ce(fe),fe.length>0&&(me===void 0?me=fe:me+="/"+fe)}return me===void 0?".":ye.normalize(me)},relative:function(me,xe){if(ce(me),ce(xe),me===xe||(me=ye.resolve(me),xe=ye.resolve(xe),me===xe))return"";for(var fe=1;fe<me.length&&me.charCodeAt(fe)===47;++fe);for(var z=me.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,Pe=0;Pe<=ue;++Pe){if(Pe===ue){if(le>ue){if(xe.charCodeAt(ae+Pe)===47)return xe.slice(ae+Pe+1);if(Pe===0)return xe.slice(ae+Pe)}else ee>ue&&(me.charCodeAt(fe+Pe)===47?pe=Pe:Pe===0&&(pe=0));break}var we=me.charCodeAt(fe+Pe),Ne=xe.charCodeAt(ae+Pe);if(we!==Ne)break;we===47&&(pe=Pe)}var Ae="";for(Pe=fe+pe+1;Pe<=z;++Pe)(Pe===z||me.charCodeAt(Pe)===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(me){return me},dirname:function(me){if(ce(me),me.length===0)return".";for(var xe=me.charCodeAt(0),fe=xe===47,z=-1,ee=!0,ae=me.length-1;ae>=1;--ae)if(xe=me.charCodeAt(ae),xe===47){if(!ee){z=ae;break}}else ee=!1;return z===-1?fe?"/":".":fe&&z===1?"//":me.slice(0,z)},basename:function(me,xe){if(xe!==void 0&&typeof xe!="string")throw new TypeError('"ext" argument must be a string');ce(me);var fe=0,z=-1,ee=!0,ae;if(xe!==void 0&&xe.length>0&&xe.length<=me.length){if(xe.length===me.length&&xe===me)return"";var re=xe.length-1,le=-1;for(ae=me.length-1;ae>=0;--ae){var ue=me.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=me.length),me.slice(fe,z)}else{for(ae=me.length-1;ae>=0;--ae)if(me.charCodeAt(ae)===47){if(!ee){fe=ae+1;break}}else z===-1&&(ee=!1,z=ae+1);return z===-1?"":me.slice(fe,z)}},extname:function(me){ce(me);for(var xe=-1,fe=0,z=-1,ee=!0,ae=0,re=me.length-1;re>=0;--re){var le=me.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?"":me.slice(xe,z)},format:function(me){if(me===null||typeof me!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof me);return Ee("/",me)},parse:function(me){ce(me);var xe={root:"",dir:"",base:"",ext:"",name:""};if(me.length===0)return xe;var fe=me.charCodeAt(0),z=fe===47,ee;z?(xe.root="/",ee=1):ee=0;for(var ae=-1,re=0,le=-1,ue=!0,pe=me.length-1,Pe=0;pe>=ee;--pe){if(fe=me.charCodeAt(pe),fe===47){if(!ue){re=pe+1;break}continue}le===-1&&(ue=!1,le=pe+1),fe===46?ae===-1?ae=pe:Pe!==1&&(Pe=1):ae!==-1&&(Pe=-1)}return ae===-1||le===-1||Pe===0||Pe===1&&ae===le-1&&ae===re+1?le!==-1&&(re===0&&z?xe.base=xe.name=me.slice(1,le):xe.base=xe.name=me.slice(re,le)):(re===0&&z?(xe.name=me.slice(1,ae),xe.base=me.slice(1,le)):(xe.name=me.slice(re,ae),xe.base=me.slice(re,le)),xe.ext=me.slice(ae,le)),re>0?xe.dir=me.slice(0,re-1):z&&(xe.dir="/"),xe},sep:"/",delimiter:":",win32:null,posix:null};ye.posix=ye,Ue.exports=ye}).call(this)}).call(this,oe("_process"))},{_process:467}],379:[function(oe,Ue,Oe){(function(ve){(function(){(function(){"use strict";var ce={function:!0,object:!0},Ce=ce[typeof window]&&window||this,Ee=Ce,ye=ce[typeof Oe]&&Oe,be=ce[typeof Ue]&&Ue&&!Ue.nodeType&&Ue,me=ye&&be&&typeof ve=="object"&&ve;me&&(me.global===me||me.window===me||me.self===me)&&(Ce=me);var xe=Math.pow(2,53)-1,fe=/\bOpera/,z=this,ee=Object.prototype,ae=ee.hasOwnProperty,re=ee.toString;function le(He){return He=String(He),He.charAt(0).toUpperCase()+He.slice(1)}function ue(He,$e,qe){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 $e&&qe&&/^Win/i.test(He)&&!/^Windows Phone /i.test(He)&&(ut=ut[/[\d.]+$/.exec(He)])&&(He="Windows "+ut),He=String(He),$e&&qe&&(He=He.replace(RegExp($e,"i"),qe)),He=Pe(He.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]),He}function pe(He,$e){var qe=-1,ut=He?He.length:0;if(typeof ut=="number"&&ut>-1&&ut<=xe)for(;++qe<ut;)$e(He[qe],qe,He);else we(He,$e)}function Pe(He){return He=Be(He),/^(?:webOS|i(?:OS|P))/.test(He)?He:le(He)}function we(He,$e){for(var qe in He)ae.call(He,qe)&&$e(He[qe],qe,He)}function Ne(He){return He==null?le(He):re.call(He).slice(8,-1)}function Ae(He,$e){var qe=He!=null?typeof He[$e]:"number";return!/^(?:boolean|number|string|undefined)$/.test(qe)&&(qe=="object"?!!He[$e]:!0)}function Te(He){return String(He).replace(/([ -])(?!$)/g,"$1?")}function Me(He,$e){var qe=null;return pe(He,function(ut,ct){qe=$e(qe,ut,ct,He)}),qe}function Be(He){return String(He).replace(/^ +| +$/g,"")}function Re(He){var $e=Ce,qe=He&&typeof He=="object"&&Ne(He)!="String";qe&&($e=He,He=null);var ut=$e.navigator||{},ct=ut.userAgent||"";He||(He=ct);var yt=qe||z==Ee,_e=qe?!!ut.likeChrome:/\bChrome\b/.test(He)&&!/internal|\n/i.test(re.toString()),st="Object",pt=qe?st:"ScriptBridgingProxyObject",bt=qe?st:"Environment",wt=qe&&$e.java?"JavaPackage":Ne($e.java),mt=qe?st:"RuntimeObject",vt=/\bJava/.test(wt)&&$e.java,St=vt&&Ne($e.environment)==bt,Nt=vt?"a":"\u03B1",Ft=vt?"b":"\u03B2",Kt=$e.document||{},Pt=$e.operamini||$e.opera,Et=fe.test(Et=qe&&Pt?Pt["[[Class]]"]:Ne(Pt))?Et:Pt=null,at,Ct=He,nt=[],ht=null,Mt=He==ct,gt=Mt&&Pt&&typeof Pt.version=="function"&&Pt.version(),rt,Je=je([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Xe=Ye(["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=Ke([{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"]),tt=De({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}}),Ze=dt(["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 je(Ot){return Me(Ot,function(Vt,en){return Vt||RegExp("\\b"+(en.pattern||Te(en))+"\\b","i").exec(He)&&(en.label||en)})}function De(Ot){return Me(Ot,function(Vt,en,on){return Vt||(en[Ve]||en[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ve)]||RegExp("\\b"+Te(on)+"(?:\\b|\\w*\\d)","i").exec(He))&&on})}function Ye(Ot){return Me(Ot,function(Vt,en){return Vt||RegExp("\\b"+(en.pattern||Te(en))+"\\b","i").exec(He)&&(en.label||en)})}function dt(Ot){return Me(Ot,function(Vt,en){var on=en.pattern||Te(en);return!Vt&&(Vt=RegExp("\\b"+on+"(?:/[\\d.]+|[ \\w.]*)","i").exec(He))&&(Vt=ue(Vt,on,en.label||en)),Vt})}function Ke(Ot){return Me(Ot,function(Vt,en){var on=en.pattern||Te(en);return!Vt&&(Vt=RegExp("\\b"+on+" *\\d+[.\\w_]*","i").exec(He)||RegExp("\\b"+on+" *\\w+-[\\w]*","i").exec(He)||RegExp("\\b"+on+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(He))&&((Vt=String(en.label&&!RegExp(on,"i").test(en.label)?en.label:Vt).split("/"))[1]&&!/[\d.]+/.test(Vt[0])&&(Vt[0]+=" "+Vt[1]),en=en.label||en,Vt=Pe(Vt[0].replace(RegExp(on,"i"),en).replace(RegExp("; *(?:"+en+"[_-])?","i")," ").replace(RegExp("("+en+")[-_.]?(\\w)","i"),"$1 $2"))),Vt})}function At(Ot){return Me(Ot,function(Vt,en){return Vt||(RegExp(en+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(He)||0)[1]||null})}function zt(){return this.description||""}if(Je&&(Je=[Je]),/\bAndroid\b/.test(Ze)&&!Ve&&(at=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(He))&&(Ve=Be(at[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),tt&&!Ve?Ve=Ke([tt]):tt&&Ve&&(Ve=Ve.replace(RegExp("^("+Te(tt)+")[-_.\\s]","i"),tt+" ").replace(RegExp("^("+Te(tt)+")[-_.]?(\\w)","i"),tt+" $2")),(at=/\bGoogle TV\b/.exec(Ve))&&(Ve=at[0]),/\bSimulator\b/i.test(He)&&(Ve=(Ve?Ve+" ":"")+"Simulator"),Xe=="Opera Mini"&&/\bOPiOS\b/.test(He)&&nt.push("running in Turbo/Uncompressed mode"),Xe=="IE"&&/\blike iPhone OS\b/.test(He)?(at=Re(He.replace(/like iPhone OS/,"")),tt=at.manufacturer,Ve=at.product):/^iP/.test(Ve)?(Xe||(Xe="Safari"),Ze="iOS"+((at=/ OS ([\d_]+)/i.exec(He))?" "+at[1].replace(/_/g,"."):"")):Xe=="Konqueror"&&/^Linux\b/i.test(Ze)?Ze="Kubuntu":tt&&tt!="Google"&&(/Chrome/.test(Xe)&&!/\bMobile Safari\b/i.test(He)||/\bVita\b/.test(Ve))||/\bAndroid\b/.test(Ze)&&/^Chrome/.test(Xe)&&/\bVersion\//i.test(He)?(Xe="Android Browser",Ze=/\bAndroid\b/.test(Ze)?Ze:"Android"):Xe=="Silk"?(/\bMobi/i.test(He)||(Ze="Android",nt.unshift("desktop mode")),/Accelerated *= *true/i.test(He)&&nt.unshift("accelerated")):Xe=="UC Browser"&&/\bUCWEB\b/.test(He)?nt.push("speed mode"):Xe=="PaleMoon"&&(at=/\bFirefox\/([\d.]+)\b/.exec(He))?nt.push("identifying as Firefox "+at[1]):Xe=="Firefox"&&(at=/\b(Mobile|Tablet|TV)\b/i.exec(He))?(Ze||(Ze="Firefox OS"),Ve||(Ve=at[1])):!Xe||(at=!/\bMinefield\b/i.test(He)&&/\b(?:Firefox|Safari)\b/.exec(Xe))?(Xe&&!Ve&&/[\/,]|^[^(]+?\)/.test(He.slice(He.indexOf(at+"/")+8))&&(Xe=null),(at=Ve||tt||Ze)&&(Ve||tt||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ze))&&(Xe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ze)?Ze:at)+" Browser")):Xe=="Electron"&&(at=(/\bChrome\/([\d.]+)\b/.exec(He)||0)[1])&&nt.push("Chromium "+at),gt||(gt=At(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",Te(Xe),"(?:Firefox|Minefield|NetFront)"])),(at=Je=="iCab"&&parseFloat(gt)>3&&"WebKit"||/\bOpera\b/.test(Xe)&&(/\bOPR\b/.test(He)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(He)&&!/^(?:Trident|EdgeHTML)$/.test(Je)&&"WebKit"||!Je&&/\bMSIE\b/i.test(He)&&(Ze=="Mac OS"?"Tasman":"Trident")||Je=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Xe)&&"NetFront")&&(Je=[at]),Xe=="IE"&&(at=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(He)||0)[1])?(Xe+=" Mobile",Ze="Windows Phone "+(/\+$/.test(at)?at:at+".x"),nt.unshift("desktop mode")):/\bWPDesktop\b/i.test(He)?(Xe="IE Mobile",Ze="Windows Phone 8.x",nt.unshift("desktop mode"),gt||(gt=(/\brv:([\d.]+)/.exec(He)||0)[1])):Xe!="IE"&&Je=="Trident"&&(at=/\brv:([\d.]+)/.exec(He))&&(Xe&&nt.push("identifying as "+Xe+(gt?" "+gt:"")),Xe="IE",gt=at[1]),Mt){if(Ae($e,"global"))if(vt&&(at=vt.lang.System,Ct=at.getProperty("os.arch"),Ze=Ze||at.getProperty("os.name")+" "+at.getProperty("os.version")),St){try{gt=$e.require("ringo/engine").version.join("."),Xe="RingoJS"}catch(Ot){(at=$e.system)&&at.global.system==$e.system&&(Xe="Narwhal",Ze||(Ze=at[0].os||null))}Xe||(Xe="Rhino")}else typeof $e.process=="object"&&!$e.process.browser&&(at=$e.process)&&(typeof at.versions=="object"&&(typeof at.versions.electron=="string"?(nt.push("Node "+at.versions.node),Xe="Electron",gt=at.versions.electron):typeof at.versions.nw=="string"&&(nt.push("Chromium "+gt,"Node "+at.versions.node),Xe="NW.js",gt=at.versions.nw)),Xe||(Xe="Node.js",Ct=at.arch,Ze=at.platform,gt=/[\d.]+/.exec(at.version),gt=gt?gt[0]:null));else Ne(at=$e.runtime)==pt?(Xe="Adobe AIR",Ze=at.flash.system.Capabilities.os):Ne(at=$e.phantom)==mt?(Xe="PhantomJS",gt=(at=at.version||null)&&at.major+"."+at.minor+"."+at.patch):typeof Kt.documentMode=="number"&&(at=/\bTrident\/(\d+)/i.exec(He))?(gt=[gt,Kt.documentMode],(at=+at[1]+4)!=gt[1]&&(nt.push("IE "+gt[1]+" mode"),Je&&(Je[1]=""),gt[1]=at),gt=Xe=="IE"?String(gt[1].toFixed(1)):gt[0]):typeof Kt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Xe)&&(nt.push("masking as "+Xe+" "+gt),Xe="IE",gt="11.0",Je=["Trident"],Ze="Windows");Ze=Ze&&Pe(Ze)}if(gt&&(at=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(gt)||/(?:alpha|beta)(?: ?\d)?/i.exec(He+";"+(Mt&&ut.appMinorVersion))||/\bMinefield\b/i.test(He)&&"a")&&(ht=/b/i.test(at)?"beta":"alpha",gt=gt.replace(RegExp(at+"\\+?$"),"")+(ht=="beta"?Ft:Nt)+(/\d+\+?/.exec(at)||"")),Xe=="Fennec"||Xe=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Ze))Xe="Firefox Mobile";else if(Xe=="Maxthon"&&gt)gt=gt.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ve))Ve=="Xbox 360"&&(Ze=null),Ve=="Xbox 360"&&/\bIEMobile\b/.test(He)&&nt.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Xe)||Xe&&!Ve&&!/Browser|Mobi/.test(Xe))&&(Ze=="Windows CE"||/Mobi/i.test(He)))Xe+=" Mobile";else if(Xe=="IE"&&Mt)try{$e.external===null&&nt.unshift("platform preview")}catch(Ot){nt.unshift("embedded")}else(/\bBlackBerry\b/.test(Ve)||/\bBB10\b/.test(He))&&(at=(RegExp(Ve.replace(/ +/g," *")+"/([.\\d]+)","i").exec(He)||0)[1]||gt)?(at=[at,/BB10/.test(He)],Ze=(at[1]?(Ve=null,tt="BlackBerry"):"Device Software")+" "+at[0],gt=null):this!=we&&Ve!="Wii"&&(Mt&&Pt||/Opera/.test(Xe)&&/\b(?:MSIE|Firefox)\b/i.test(He)||Xe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Ze)||Xe=="IE"&&(Ze&&!/^Win/.test(Ze)&&gt>5.5||/\bWindows XP\b/.test(Ze)&&gt>8||gt==8&&!/\bTrident\b/.test(He)))&&!fe.test(at=Re.call(we,He.replace(fe,"")+";"))&&at.name&&(at="ing as "+at.name+((at=at.version)?" "+at:""),fe.test(Xe)?(/\bIE\b/.test(at)&&Ze=="Mac OS"&&(Ze=null),at="identify"+at):(at="mask"+at,Et?Xe=Pe(Et.replace(/([a-z])([A-Z])/g,"$1 $2")):Xe="Opera",/\bIE\b/.test(at)&&(Ze=null),Mt||(gt=null)),Je=["Presto"],nt.push(at));(at=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(He)||0)[1])&&(at=[parseFloat(at.replace(/\.(\d)$/,".0$1")),at],Xe=="Safari"&&at[1].slice(-1)=="+"?(Xe="WebKit Nightly",ht="alpha",gt=at[1].slice(0,-1)):(gt==at[1]||gt==(at[2]=(/\bSafari\/([\d.]+\+?)/i.exec(He)||0)[1]))&&(gt=null),at[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(He)||0)[1],at[0]==537.36&&at[2]==537.36&&parseFloat(at[1])>=28&&Je=="WebKit"&&(Je=["Blink"]),!Mt||!_e&&!at[1]?(Je&&(Je[1]="like Safari"),at=(at=at[0],at<400?1:at<500?2:at<526?3:at<533?4:at<534?"4+":at<535?5:at<537?6:at<538?7:at<601?8:at<602?9:at<604?10:at<606?11:at<608?12:"12")):(Je&&(Je[1]="like Chrome"),at=at[1]||(at=at[0],at<530?1:at<532?2:at<532.05?3:at<533?4:at<534.03?5:at<534.07?6:at<534.1?7:at<534.13?8:at<534.16?9:at<534.24?10:at<534.3?11:at<535.01?12:at<535.02?"13+":at<535.07?15:at<535.11?16:at<535.19?17:at<536.05?18:at<536.1?19:at<537.01?20:at<537.11?"21+":at<537.13?23:at<537.18?24:at<537.24?25:at<537.36?26:Je!="Blink"?"27":"28")),Je&&(Je[1]+=" "+(at+=typeof at=="number"?".x":/[.+]/.test(at)?"":"+")),Xe=="Safari"&&(!gt||parseInt(gt)>45)?gt=at:Xe=="Chrome"&&/\bHeadlessChrome/i.test(He)&&nt.unshift("headless")),Xe=="Opera"&&(at=/\bzbov|zvav$/.exec(Ze))?(Xe+=" ",nt.unshift("desktop mode"),at=="zvav"?(Xe+="Mini",gt=null):Xe+="Mobile",Ze=Ze.replace(RegExp(" *"+at+"$"),"")):Xe=="Safari"&&/\bChrome\b/.exec(Je&&Je[1])?(nt.unshift("desktop mode"),Xe="Chrome Mobile",gt=null,/\bOS X\b/.test(Ze)?(tt="Apple",Ze="iOS 4.3+"):Ze=null):/\bSRWare Iron\b/.test(Xe)&&!gt&&(gt=At("Chrome")),gt&&gt.indexOf(at=/[\d.]+$/.exec(Ze))==0&&He.indexOf("/"+at+"-")>-1&&(Ze=Be(Ze.replace(at,""))),Ze&&Ze.indexOf(Xe)!=-1&&!RegExp(Xe+" OS").test(Ze)&&(Ze=Ze.replace(RegExp(" *"+Te(Xe)+" *"),"")),Je&&!/\b(?:Avant|Nook)\b/.test(Xe)&&(/Browser|Lunascape|Maxthon/.test(Xe)||Xe!="Safari"&&/^iOS/.test(Ze)&&/\bSafari\b/.test(Je[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Xe)&&Je[1])&&(at=Je[Je.length-1])&&nt.push(at),nt.length&&(nt=["("+nt.join("; ")+")"]),tt&&Ve&&Ve.indexOf(tt)<0&&nt.push("on "+tt),Ve&&nt.push((/^on /.test(nt[nt.length-1])?"":"on ")+Ve),Ze&&(at=/ ([\d.+]+)$/.exec(Ze),rt=at&&Ze.charAt(Ze.length-at[0].length-1)=="/",Ze={architecture:32,family:at&&!rt?Ze.replace(at[0],""):Ze,version:at?at[1]:null,toString:function(){var Ot=this.version;return this.family+(Ot&&!rt?" "+Ot:"")+(this.architecture==64?" 64-bit":"")}}),(at=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ct))&&!/\bi686\b/i.test(Ct)?(Ze&&(Ze.architecture=64,Ze.family=Ze.family.replace(RegExp(" *"+at),"")),Xe&&(/\bWOW64\b/i.test(He)||Mt&&/\w(?:86|32)$/.test(ut.cpuClass||ut.platform)&&!/\bWin64; x64\b/i.test(He))&&nt.unshift("32-bit")):Ze&&/^OS X/.test(Ze.family)&&Xe=="Chrome"&&parseFloat(gt)>=39&&(Ze.architecture=64),He||(He=null);var _t={};return _t.description=He,_t.layout=Je&&Je[0],_t.manufacturer=tt,_t.name=Xe,_t.prerelease=ht,_t.product=Ve,_t.ua=He,_t.version=Xe&&gt,_t.os=Ze||{architecture:null,family:null,version:null,toString:function(){return"null"}},_t.parse=Re,_t.toString=zt,_t.version&&nt.unshift(gt),_t.name&&nt.unshift(Xe),Ze&&Xe&&!(Ze==String(Ze).split(" ")[0]&&(Ze==Xe.split(" ")[0]||Ve))&&nt.push(Ve?"("+Ze+")":"on "+Ze),nt.length&&(_t.description=nt.join(" ")),_t}var Qe=Re();typeof ze=="function"&&typeof ze.amd=="object"&&ze.amd?(Ce.platform=Qe,ze(function(){return Qe})):ye&&be?we(Qe,function(He,$e){ye[$e]=He}):Ce.platform=Qe}).call(this)}).call(this)}).call(this,typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";typeof ve=="undefined"||!ve.version||ve.version.indexOf("v0.")===0||ve.version.indexOf("v1.")===0&&ve.version.indexOf("v1.8.")!==0?Ue.exports={nextTick:ce}:Ue.exports=ve;function ce(Ce,Ee,ye,be){if(typeof Ce!="function")throw new TypeError('"callback" argument must be a function');var me=arguments.length,xe,fe;switch(me){case 0:case 1:return ve.nextTick(Ce);case 2:return ve.nextTick(function(){Ce.call(null,Ee)});case 3:return ve.nextTick(function(){Ce.call(null,Ee,ye)});case 4:return ve.nextTick(function(){Ce.call(null,Ee,ye,be)});default:for(xe=new Array(me-1),fe=0;fe<xe.length;)xe[fe++]=arguments[fe];return ve.nextTick(function(){Ce.apply(null,xe)})}}}).call(this)}).call(this,oe("_process"))},{_process:467}],381:[function(oe,Ue,Oe){var ve=Ue.exports={},ce,Ce;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"?Ce=clearTimeout:Ce=ye}catch(pe){Ce=ye}})();function be(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(Pe){try{return ce.call(null,pe,0)}catch(we){return ce.call(this,pe,0)}}}function me(pe){if(Ce===clearTimeout)return clearTimeout(pe);if((Ce===ye||!Ce)&&clearTimeout)return Ce=clearTimeout,clearTimeout(pe);try{return Ce(pe)}catch(Pe){try{return Ce.call(null,pe)}catch(we){return Ce.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=be(ae);fe=!0;for(var Pe=xe.length;Pe;){for(z=xe,xe=[];++ee<Pe;)z&&z[ee].run();ee=-1,Pe=xe.length}z=null,fe=!1,me(pe)}}ve.nextTick=function(pe){var Pe=new Array(arguments.length-1);if(arguments.length>1)for(var we=1;we<arguments.length;we++)Pe[we-1]=arguments[we];xe.push(new le(pe,Pe)),xe.length===1&&!fe&&be(re)};function le(pe,Pe){this.fun=pe,this.array=Pe}le.prototype.run=function(){this.fun.apply(null,this.array)},ve.title="browser",ve.browser=!0,ve.env={},ve.argv=[],ve.version="",ve.versions={};function ue(){}ve.on=ue,ve.addListener=ue,ve.once=ue,ve.off=ue,ve.removeListener=ue,ve.removeAllListeners=ue,ve.emit=ue,ve.prependListener=ue,ve.prependOnceListener=ue,ve.listeners=function(pe){return[]},ve.binding=function(pe){throw new Error("process.binding is not supported")},ve.cwd=function(){return"/"},ve.chdir=function(pe){throw new Error("process.chdir is not supported")},ve.umask=function(){return 0}},{}],382:[function(oe,Ue,Oe){(function(ve){(function(){(function(ce){var Ce=typeof Oe=="object"&&Oe&&!Oe.nodeType&&Oe,Ee=typeof Ue=="object"&&Ue&&!Ue.nodeType&&Ue,ye=typeof ve=="object"&&ve;(ye.global===ye||ye.window===ye||ye.self===ye)&&(ce=ye);var be,me=2147483647,xe=36,fe=1,z=26,ee=38,ae=700,re=72,le=128,ue="-",pe=/^xn--/,Pe=/[^\x20-\x7E]/,we=/[\x2E\u3002\uFF0E\uFF61]/g,Ne={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,Te=Math.floor,Me=String.fromCharCode,Be;function Re(wt){throw new RangeError(Ne[wt])}function Qe(wt,mt){for(var vt=wt.length,St=[];vt--;)St[vt]=mt(wt[vt]);return St}function He(wt,mt){var vt=wt.split("@"),St="";vt.length>1&&(St=vt[0]+"@",wt=vt[1]),wt=wt.replace(we,".");var Nt=wt.split("."),Ft=Qe(Nt,mt).join(".");return St+Ft}function $e(wt){for(var mt=[],vt=0,St=wt.length,Nt,Ft;vt<St;)Nt=wt.charCodeAt(vt++),Nt>=55296&&Nt<=56319&&vt<St?(Ft=wt.charCodeAt(vt++),(Ft&64512)==56320?mt.push(((Nt&1023)<<10)+(Ft&1023)+65536):(mt.push(Nt),vt--)):mt.push(Nt);return mt}function qe(wt){return Qe(wt,function(mt){var vt="";return mt>65535&&(mt-=65536,vt+=Me(mt>>>10&1023|55296),mt=56320|mt&1023),vt+=Me(mt),vt}).join("")}function ut(wt){return wt-48<10?wt-22:wt-65<26?wt-65:wt-97<26?wt-97:xe}function ct(wt,mt){return wt+22+75*(wt<26)-((mt!=0)<<5)}function yt(wt,mt,vt){var St=0;for(wt=vt?Te(wt/ae):wt>>1,wt+=Te(wt/mt);wt>Ae*z>>1;St+=xe)wt=Te(wt/Ae);return Te(St+(Ae+1)*wt/(wt+ee))}function _e(wt){var mt=[],vt=wt.length,St,Nt=0,Ft=le,Kt=re,Pt,Et,at,Ct,nt,ht,Mt,gt,rt;for(Pt=wt.lastIndexOf(ue),Pt<0&&(Pt=0),Et=0;Et<Pt;++Et)wt.charCodeAt(Et)>=128&&Re("not-basic"),mt.push(wt.charCodeAt(Et));for(at=Pt>0?Pt+1:0;at<vt;){for(Ct=Nt,nt=1,ht=xe;at>=vt&&Re("invalid-input"),Mt=ut(wt.charCodeAt(at++)),(Mt>=xe||Mt>Te((me-Nt)/nt))&&Re("overflow"),Nt+=Mt*nt,gt=ht<=Kt?fe:ht>=Kt+z?z:ht-Kt,!(Mt<gt);ht+=xe)rt=xe-gt,nt>Te(me/rt)&&Re("overflow"),nt*=rt;St=mt.length+1,Kt=yt(Nt-Ct,St,Ct==0),Te(Nt/St)>me-Ft&&Re("overflow"),Ft+=Te(Nt/St),Nt%=St,mt.splice(Nt++,0,Ft)}return qe(mt)}function st(wt){var mt,vt,St,Nt,Ft,Kt,Pt,Et,at,Ct,nt,ht=[],Mt,gt,rt,Je;for(wt=$e(wt),Mt=wt.length,mt=le,vt=0,Ft=re,Kt=0;Kt<Mt;++Kt)nt=wt[Kt],nt<128&&ht.push(Me(nt));for(St=Nt=ht.length,Nt&&ht.push(ue);St<Mt;){for(Pt=me,Kt=0;Kt<Mt;++Kt)nt=wt[Kt],nt>=mt&&nt<Pt&&(Pt=nt);for(gt=St+1,Pt-mt>Te((me-vt)/gt)&&Re("overflow"),vt+=(Pt-mt)*gt,mt=Pt,Kt=0;Kt<Mt;++Kt)if(nt=wt[Kt],nt<mt&&++vt>me&&Re("overflow"),nt==mt){for(Et=vt,at=xe;Ct=at<=Ft?fe:at>=Ft+z?z:at-Ft,!(Et<Ct);at+=xe)Je=Et-Ct,rt=xe-Ct,ht.push(Me(ct(Ct+Je%rt,0))),Et=Te(Je/rt);ht.push(Me(ct(Et,0))),Ft=yt(vt,gt,St==Nt),vt=0,++St}++vt,++mt}return ht.join("")}function pt(wt){return He(wt,function(mt){return pe.test(mt)?_e(mt.slice(4).toLowerCase()):mt})}function bt(wt){return He(wt,function(mt){return Pe.test(mt)?"xn--"+st(mt):mt})}if(be={version:"1.4.1",ucs2:{decode:$e,encode:qe},decode:_e,encode:st,toASCII:bt,toUnicode:pt},typeof ze=="function"&&typeof ze.amd=="object"&&ze.amd)ze("punycode",function(){return be});else if(Ce&&Ee)if(Ue.exports==Ce)Ee.exports=be;else for(Be in be)be.hasOwnProperty(Be)&&(Ce[Be]=be[Be]);else ce.punycode=be})(this)}).call(this)}).call(this,typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(oe,Ue,Oe){"use strict";function ve(Ce,Ee){return Object.prototype.hasOwnProperty.call(Ce,Ee)}Ue.exports=function(Ce,Ee,ye,be){Ee=Ee||"&",ye=ye||"=";var me={};if(typeof Ce!="string"||Ce.length===0)return me;var xe=/\+/g;Ce=Ce.split(Ee);var fe=1e3;be&&typeof be.maxKeys=="number"&&(fe=be.maxKeys);var z=Ce.length;fe>0&&z>fe&&(z=fe);for(var ee=0;ee<z;++ee){var ae=Ce[ee].replace(xe,"%20"),re=ae.indexOf(ye),le,ue,pe,Pe;re>=0?(le=ae.substr(0,re),ue=ae.substr(re+1)):(le=ae,ue=""),pe=decodeURIComponent(le),Pe=decodeURIComponent(ue),ve(me,pe)?ce(me[pe])?me[pe].push(Pe):me[pe]=[me[pe],Pe]:me[pe]=Pe}return me};var ce=Array.isArray||function(Ce){return Object.prototype.toString.call(Ce)==="[object Array]"}},{}],384:[function(oe,Ue,Oe){"use strict";var ve=function(ye){switch(typeof ye){case"string":return ye;case"boolean":return ye?"true":"false";case"number":return isFinite(ye)?ye:"";default:return""}};Ue.exports=function(ye,be,me,xe){return be=be||"&",me=me||"=",ye===null&&(ye=void 0),typeof ye=="object"?Ce(Ee(ye),function(fe){var z=encodeURIComponent(ve(fe))+me;return ce(ye[fe])?Ce(ye[fe],function(ee){return z+encodeURIComponent(ve(ee))}).join(be):z+encodeURIComponent(ve(ye[fe]))}).join(be):xe?encodeURIComponent(ve(xe))+me+encodeURIComponent(ve(ye)):""};var ce=Array.isArray||function(ye){return Object.prototype.toString.call(ye)==="[object Array]"};function Ce(ye,be){if(ye.map)return ye.map(be);for(var me=[],xe=0;xe<ye.length;xe++)me.push(be(ye[xe],xe));return me}var Ee=Object.keys||function(ye){var be=[];for(var me in ye)Object.prototype.hasOwnProperty.call(ye,me)&&be.push(me);return be}},{}],385:[function(oe,Ue,Oe){"use strict";Oe.decode=Oe.parse=oe("./decode"),Oe.encode=Oe.stringify=oe("./encode")},{"./decode":383,"./encode":384}],386:[function(oe,Ue,Oe){"use strict";var ve=oe("process-nextick-args"),ce=Object.keys||function(ae){var re=[];for(var le in ae)re.push(le);return re};Ue.exports=fe;var Ce=Object.create(oe("core-util-is"));Ce.inherits=oe("inherits");var Ee=oe("./_stream_readable"),ye=oe("./_stream_writable");Ce.inherits(fe,Ee);for(var be=ce(ye.prototype),me=0;me<be.length;me++){var xe=be[me];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||ve.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(),ve.nextTick(re,ae)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(oe,Ue,Oe){"use strict";Ue.exports=Ce;var ve=oe("./_stream_transform"),ce=Object.create(oe("core-util-is"));ce.inherits=oe("inherits"),ce.inherits(Ce,ve);function Ce(Ee){if(!(this instanceof Ce))return new Ce(Ee);ve.call(this,Ee)}Ce.prototype._transform=function(Ee,ye,be){be(null,Ee)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(oe,Ue,Oe){(function(ve,ce){(function(){"use strict";var Ce=oe("process-nextick-args");Ue.exports=Me;var Ee=oe("isarray"),ye;Me.ReadableState=Te;var be=oe("events").EventEmitter,me=function(nt,ht){return nt.listeners(ht).length},xe=oe("./internal/streams/stream"),fe=oe("safe-buffer").Buffer,z=ce.Uint8Array||function(){};function ee(nt){return fe.from(nt)}function ae(nt){return fe.isBuffer(nt)||nt instanceof z}var re=Object.create(oe("core-util-is"));re.inherits=oe("inherits");var le=oe("util"),ue=void 0;le&&le.debuglog?ue=le.debuglog("stream"):ue=function(){};var pe=oe("./internal/streams/BufferList"),Pe=oe("./internal/streams/destroy"),we;re.inherits(Me,xe);var Ne=["error","close","destroy","pause","resume"];function Ae(nt,ht,Mt){if(typeof nt.prependListener=="function")return nt.prependListener(ht,Mt);!nt._events||!nt._events[ht]?nt.on(ht,Mt):Ee(nt._events[ht])?nt._events[ht].unshift(Mt):nt._events[ht]=[Mt,nt._events[ht]]}function Te(nt,ht){ye=ye||oe("./_stream_duplex"),nt=nt||{};var Mt=ht instanceof ye;this.objectMode=!!nt.objectMode,Mt&&(this.objectMode=this.objectMode||!!nt.readableObjectMode);var gt=nt.highWaterMark,rt=nt.readableHighWaterMark,Je=this.objectMode?16:16*1024;gt||gt===0?this.highWaterMark=gt:Mt&&(rt||rt===0)?this.highWaterMark=rt:this.highWaterMark=Je,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=nt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,nt.encoding&&(we||(we=oe("string_decoder/").StringDecoder),this.decoder=new we(nt.encoding),this.encoding=nt.encoding)}function Me(nt){if(ye=ye||oe("./_stream_duplex"),!(this instanceof Me))return new Me(nt);this._readableState=new Te(nt,this),this.readable=!0,nt&&(typeof nt.read=="function"&&(this._read=nt.read),typeof nt.destroy=="function"&&(this._destroy=nt.destroy)),xe.call(this)}Object.defineProperty(Me.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(nt){this._readableState&&(this._readableState.destroyed=nt)}}),Me.prototype.destroy=Pe.destroy,Me.prototype._undestroy=Pe.undestroy,Me.prototype._destroy=function(nt,ht){this.push(null),ht(nt)},Me.prototype.push=function(nt,ht){var Mt=this._readableState,gt;return Mt.objectMode?gt=!0:typeof nt=="string"&&(ht=ht||Mt.defaultEncoding,ht!==Mt.encoding&&(nt=fe.from(nt,ht),ht=""),gt=!0),Be(this,nt,ht,!1,gt)},Me.prototype.unshift=function(nt){return Be(this,nt,null,!0,!1)};function Be(nt,ht,Mt,gt,rt){var Je=nt._readableState;if(ht===null)Je.reading=!1,ct(nt,Je);else{var Xe;rt||(Xe=Qe(Je,ht)),Xe?nt.emit("error",Xe):Je.objectMode||ht&&ht.length>0?(typeof ht!="string"&&!Je.objectMode&&Object.getPrototypeOf(ht)!==fe.prototype&&(ht=ee(ht)),gt?Je.endEmitted?nt.emit("error",new Error("stream.unshift() after end event")):Re(nt,Je,ht,!0):Je.ended?nt.emit("error",new Error("stream.push() after EOF")):(Je.reading=!1,Je.decoder&&!Mt?(ht=Je.decoder.write(ht),Je.objectMode||ht.length!==0?Re(nt,Je,ht,!1):st(nt,Je)):Re(nt,Je,ht,!1))):gt||(Je.reading=!1)}return He(Je)}function Re(nt,ht,Mt,gt){ht.flowing&&ht.length===0&&!ht.sync?(nt.emit("data",Mt),nt.read(0)):(ht.length+=ht.objectMode?1:Mt.length,gt?ht.buffer.unshift(Mt):ht.buffer.push(Mt),ht.needReadable&&yt(nt)),st(nt,ht)}function Qe(nt,ht){var Mt;return!ae(ht)&&typeof ht!="string"&&ht!==void 0&&!nt.objectMode&&(Mt=new TypeError("Invalid non-string/buffer chunk")),Mt}function He(nt){return!nt.ended&&(nt.needReadable||nt.length<nt.highWaterMark||nt.length===0)}Me.prototype.isPaused=function(){return this._readableState.flowing===!1},Me.prototype.setEncoding=function(nt){return we||(we=oe("string_decoder/").StringDecoder),this._readableState.decoder=new we(nt),this._readableState.encoding=nt,this};var $e=8388608;function qe(nt){return nt>=$e?nt=$e:(nt--,nt|=nt>>>1,nt|=nt>>>2,nt|=nt>>>4,nt|=nt>>>8,nt|=nt>>>16,nt++),nt}function ut(nt,ht){return nt<=0||ht.length===0&&ht.ended?0:ht.objectMode?1:nt!==nt?ht.flowing&&ht.length?ht.buffer.head.data.length:ht.length:(nt>ht.highWaterMark&&(ht.highWaterMark=qe(nt)),nt<=ht.length?nt:ht.ended?ht.length:(ht.needReadable=!0,0))}Me.prototype.read=function(nt){ue("read",nt),nt=parseInt(nt,10);var ht=this._readableState,Mt=nt;if(nt!==0&&(ht.emittedReadable=!1),nt===0&&ht.needReadable&&(ht.length>=ht.highWaterMark||ht.ended))return ue("read: emitReadable",ht.length,ht.ended),ht.length===0&&ht.ended?Et(this):yt(this),null;if(nt=ut(nt,ht),nt===0&&ht.ended)return ht.length===0&&Et(this),null;var gt=ht.needReadable;ue("need readable",gt),(ht.length===0||ht.length-nt<ht.highWaterMark)&&(gt=!0,ue("length less than watermark",gt)),ht.ended||ht.reading?(gt=!1,ue("reading or ended",gt)):gt&&(ue("do read"),ht.reading=!0,ht.sync=!0,ht.length===0&&(ht.needReadable=!0),this._read(ht.highWaterMark),ht.sync=!1,ht.reading||(nt=ut(Mt,ht)));var rt;return nt>0?rt=Nt(nt,ht):rt=null,rt===null?(ht.needReadable=!0,nt=0):ht.length-=nt,ht.length===0&&(ht.ended||(ht.needReadable=!0),Mt!==nt&&ht.ended&&Et(this)),rt!==null&&this.emit("data",rt),rt};function ct(nt,ht){if(!ht.ended){if(ht.decoder){var Mt=ht.decoder.end();Mt&&Mt.length&&(ht.buffer.push(Mt),ht.length+=ht.objectMode?1:Mt.length)}ht.ended=!0,yt(nt)}}function yt(nt){var ht=nt._readableState;ht.needReadable=!1,ht.emittedReadable||(ue("emitReadable",ht.flowing),ht.emittedReadable=!0,ht.sync?Ce.nextTick(_e,nt):_e(nt))}function _e(nt){ue("emit readable"),nt.emit("readable"),St(nt)}function st(nt,ht){ht.readingMore||(ht.readingMore=!0,Ce.nextTick(pt,nt,ht))}function pt(nt,ht){for(var Mt=ht.length;!ht.reading&&!ht.flowing&&!ht.ended&&ht.length<ht.highWaterMark&&(ue("maybeReadMore read 0"),nt.read(0),Mt!==ht.length);)Mt=ht.length;ht.readingMore=!1}Me.prototype._read=function(nt){this.emit("error",new Error("_read() is not implemented"))},Me.prototype.pipe=function(nt,ht){var Mt=this,gt=this._readableState;switch(gt.pipesCount){case 0:gt.pipes=nt;break;case 1:gt.pipes=[gt.pipes,nt];break;default:gt.pipes.push(nt);break}gt.pipesCount+=1,ue("pipe count=%d opts=%j",gt.pipesCount,ht);var rt=(!ht||ht.end!==!1)&&nt!==ve.stdout&&nt!==ve.stderr,Je=rt?Ve:zt;gt.endEmitted?Ce.nextTick(Je):Mt.once("end",Je),nt.on("unpipe",Xe);function Xe(_t,Ot){ue("onunpipe"),_t===Mt&&Ot&&Ot.hasUnpiped===!1&&(Ot.hasUnpiped=!0,je())}function Ve(){ue("onend"),nt.end()}var tt=bt(Mt);nt.on("drain",tt);var Ze=!1;function je(){ue("cleanup"),nt.removeListener("close",Ke),nt.removeListener("finish",At),nt.removeListener("drain",tt),nt.removeListener("error",dt),nt.removeListener("unpipe",Xe),Mt.removeListener("end",Ve),Mt.removeListener("end",zt),Mt.removeListener("data",Ye),Ze=!0,gt.awaitDrain&&(!nt._writableState||nt._writableState.needDrain)&&tt()}var De=!1;Mt.on("data",Ye);function Ye(_t){ue("ondata"),De=!1;var Ot=nt.write(_t);Ot===!1&&!De&&((gt.pipesCount===1&&gt.pipes===nt||gt.pipesCount>1&&Ct(gt.pipes,nt)!==-1)&&!Ze&&(ue("false write response, pause",Mt._readableState.awaitDrain),Mt._readableState.awaitDrain++,De=!0),Mt.pause())}function dt(_t){ue("onerror",_t),zt(),nt.removeListener("error",dt),me(nt,"error")===0&&nt.emit("error",_t)}Ae(nt,"error",dt);function Ke(){nt.removeListener("finish",At),zt()}nt.once("close",Ke);function At(){ue("onfinish"),nt.removeListener("close",Ke),zt()}nt.once("finish",At);function zt(){ue("unpipe"),Mt.unpipe(nt)}return nt.emit("pipe",Mt),gt.flowing||(ue("pipe resume"),Mt.resume()),nt};function bt(nt){return function(){var ht=nt._readableState;ue("pipeOnDrain",ht.awaitDrain),ht.awaitDrain&&ht.awaitDrain--,ht.awaitDrain===0&&me(nt,"data")&&(ht.flowing=!0,St(nt))}}Me.prototype.unpipe=function(nt){var ht=this._readableState,Mt={hasUnpiped:!1};if(ht.pipesCount===0)return this;if(ht.pipesCount===1)return nt&&nt!==ht.pipes?this:(nt||(nt=ht.pipes),ht.pipes=null,ht.pipesCount=0,ht.flowing=!1,nt&&nt.emit("unpipe",this,Mt),this);if(!nt){var gt=ht.pipes,rt=ht.pipesCount;ht.pipes=null,ht.pipesCount=0,ht.flowing=!1;for(var Je=0;Je<rt;Je++)gt[Je].emit("unpipe",this,Mt);return this}var Xe=Ct(ht.pipes,nt);return Xe===-1?this:(ht.pipes.splice(Xe,1),ht.pipesCount-=1,ht.pipesCount===1&&(ht.pipes=ht.pipes[0]),nt.emit("unpipe",this,Mt),this)},Me.prototype.on=function(nt,ht){var Mt=xe.prototype.on.call(this,nt,ht);if(nt==="data")this._readableState.flowing!==!1&&this.resume();else if(nt==="readable"){var gt=this._readableState;!gt.endEmitted&&!gt.readableListening&&(gt.readableListening=gt.needReadable=!0,gt.emittedReadable=!1,gt.reading?gt.length&&yt(this):Ce.nextTick(wt,this))}return Mt},Me.prototype.addListener=Me.prototype.on;function wt(nt){ue("readable nexttick read 0"),nt.read(0)}Me.prototype.resume=function(){var nt=this._readableState;return nt.flowing||(ue("resume"),nt.flowing=!0,mt(this,nt)),this};function mt(nt,ht){ht.resumeScheduled||(ht.resumeScheduled=!0,Ce.nextTick(vt,nt,ht))}function vt(nt,ht){ht.reading||(ue("resume read 0"),nt.read(0)),ht.resumeScheduled=!1,ht.awaitDrain=0,nt.emit("resume"),St(nt),ht.flowing&&!ht.reading&&nt.read(0)}Me.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 St(nt){var ht=nt._readableState;for(ue("flow",ht.flowing);ht.flowing&&nt.read()!==null;);}Me.prototype.wrap=function(nt){var ht=this,Mt=this._readableState,gt=!1;nt.on("end",function(){if(ue("wrapped end"),Mt.decoder&&!Mt.ended){var Xe=Mt.decoder.end();Xe&&Xe.length&&ht.push(Xe)}ht.push(null)}),nt.on("data",function(Xe){if(ue("wrapped data"),Mt.decoder&&(Xe=Mt.decoder.write(Xe)),!(Mt.objectMode&&Xe==null)&&!(!Mt.objectMode&&(!Xe||!Xe.length))){var Ve=ht.push(Xe);Ve||(gt=!0,nt.pause())}});for(var rt in nt)this[rt]===void 0&&typeof nt[rt]=="function"&&(this[rt]=function(Xe){return function(){return nt[Xe].apply(nt,arguments)}}(rt));for(var Je=0;Je<Ne.length;Je++)nt.on(Ne[Je],this.emit.bind(this,Ne[Je]));return this._read=function(Xe){ue("wrapped _read",Xe),gt&&(gt=!1,nt.resume())},this},Object.defineProperty(Me.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Me._fromList=Nt;function Nt(nt,ht){if(ht.length===0)return null;var Mt;return ht.objectMode?Mt=ht.buffer.shift():!nt||nt>=ht.length?(ht.decoder?Mt=ht.buffer.join(""):ht.buffer.length===1?Mt=ht.buffer.head.data:Mt=ht.buffer.concat(ht.length),ht.buffer.clear()):Mt=Ft(nt,ht.buffer,ht.decoder),Mt}function Ft(nt,ht,Mt){var gt;return nt<ht.head.data.length?(gt=ht.head.data.slice(0,nt),ht.head.data=ht.head.data.slice(nt)):nt===ht.head.data.length?gt=ht.shift():gt=Mt?Kt(nt,ht):Pt(nt,ht),gt}function Kt(nt,ht){var Mt=ht.head,gt=1,rt=Mt.data;for(nt-=rt.length;Mt=Mt.next;){var Je=Mt.data,Xe=nt>Je.length?Je.length:nt;if(Xe===Je.length?rt+=Je:rt+=Je.slice(0,nt),nt-=Xe,nt===0){Xe===Je.length?(++gt,Mt.next?ht.head=Mt.next:ht.head=ht.tail=null):(ht.head=Mt,Mt.data=Je.slice(Xe));break}++gt}return ht.length-=gt,rt}function Pt(nt,ht){var Mt=fe.allocUnsafe(nt),gt=ht.head,rt=1;for(gt.data.copy(Mt),nt-=gt.data.length;gt=gt.next;){var Je=gt.data,Xe=nt>Je.length?Je.length:nt;if(Je.copy(Mt,Mt.length-nt,0,Xe),nt-=Xe,nt===0){Xe===Je.length?(++rt,gt.next?ht.head=gt.next:ht.head=ht.tail=null):(ht.head=gt,gt.data=Je.slice(Xe));break}++rt}return ht.length-=rt,Mt}function Et(nt){var ht=nt._readableState;if(ht.length>0)throw new Error('"endReadable()" called on non-empty stream');ht.endEmitted||(ht.ended=!0,Ce.nextTick(at,ht,nt))}function at(nt,ht){!nt.endEmitted&&nt.length===0&&(nt.endEmitted=!0,ht.readable=!1,ht.emit("end"))}function Ct(nt,ht){for(var Mt=0,gt=nt.length;Mt<gt;Mt++)if(nt[Mt]===ht)return Mt;return-1}}).call(this)}).call(this,oe("_process"),typeof mn!="undefined"?mn: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(oe,Ue,Oe){"use strict";Ue.exports=Ee;var ve=oe("./_stream_duplex"),ce=Object.create(oe("core-util-is"));ce.inherits=oe("inherits"),ce.inherits(Ee,ve);function Ce(me,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(me);var ee=this._readableState;ee.reading=!1,(ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}function Ee(me){if(!(this instanceof Ee))return new Ee(me);ve.call(this,me),this._transformState={afterTransform:Ce.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,me&&(typeof me.transform=="function"&&(this._transform=me.transform),typeof me.flush=="function"&&(this._flush=me.flush)),this.on("prefinish",ye)}function ye(){var me=this;typeof this._flush=="function"?this._flush(function(xe,fe){be(me,xe,fe)}):be(this,null,null)}Ee.prototype.push=function(me,xe){return this._transformState.needTransform=!1,ve.prototype.push.call(this,me,xe)},Ee.prototype._transform=function(me,xe,fe){throw new Error("_transform() is not implemented")},Ee.prototype._write=function(me,xe,fe){var z=this._transformState;if(z.writecb=fe,z.writechunk=me,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(me){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(me,xe){var fe=this;ve.prototype._destroy.call(this,me,function(z){xe(z),fe.emit("close")})};function be(me,xe,fe){if(xe)return me.emit("error",xe);if(fe!=null&&me.push(fe),me._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(me._transformState.transforming)throw new Error("Calling transform done when still transforming");return me.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(oe,Ue,Oe){(function(ve,ce,Ce){(function(){"use strict";var Ee=oe("process-nextick-args");Ue.exports=Ae;function ye(vt,St,Nt){this.chunk=vt,this.encoding=St,this.callback=Nt,this.next=null}function be(vt){var St=this;this.next=null,this.entry=null,this.finish=function(){mt(St,vt)}}var me=!ve.browser&&["v0.10","v0.9."].indexOf(ve.version.slice(0,5))>-1?Ce:Ee.nextTick,xe;Ae.WritableState=we;var fe=Object.create(oe("core-util-is"));fe.inherits=oe("inherits");var z={deprecate:oe("util-deprecate")},ee=oe("./internal/streams/stream"),ae=oe("safe-buffer").Buffer,re=ce.Uint8Array||function(){};function le(vt){return ae.from(vt)}function ue(vt){return ae.isBuffer(vt)||vt instanceof re}var pe=oe("./internal/streams/destroy");fe.inherits(Ae,ee);function Pe(){}function we(vt,St){xe=xe||oe("./_stream_duplex"),vt=vt||{};var Nt=St instanceof xe;this.objectMode=!!vt.objectMode,Nt&&(this.objectMode=this.objectMode||!!vt.writableObjectMode);var Ft=vt.highWaterMark,Kt=vt.writableHighWaterMark,Pt=this.objectMode?16:16*1024;Ft||Ft===0?this.highWaterMark=Ft:Nt&&(Kt||Kt===0)?this.highWaterMark=Kt:this.highWaterMark=Pt,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 Et=vt.decodeStrings===!1;this.decodeStrings=!Et,this.defaultEncoding=vt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(at){qe(St,at)},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 be(this)}we.prototype.getBuffer=function(){for(var St=this.bufferedRequest,Nt=[];St;)Nt.push(St),St=St.next;return Nt},function(){try{Object.defineProperty(we.prototype,"buffer",{get:z.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(vt){}}();var Ne;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ne=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ae,Symbol.hasInstance,{value:function(vt){return Ne.call(this,vt)?!0:this!==Ae?!1:vt&&vt._writableState instanceof we}})):Ne=function(vt){return vt instanceof this};function Ae(vt){if(xe=xe||oe("./_stream_duplex"),!Ne.call(Ae,this)&&!(this instanceof xe))return new Ae(vt);this._writableState=new we(vt,this),this.writable=!0,vt&&(typeof vt.write=="function"&&(this._write=vt.write),typeof vt.writev=="function"&&(this._writev=vt.writev),typeof vt.destroy=="function"&&(this._destroy=vt.destroy),typeof vt.final=="function"&&(this._final=vt.final)),ee.call(this)}Ae.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Te(vt,St){var Nt=new Error("write after end");vt.emit("error",Nt),Ee.nextTick(St,Nt)}function Me(vt,St,Nt,Ft){var Kt=!0,Pt=!1;return Nt===null?Pt=new TypeError("May not write null values to stream"):typeof Nt!="string"&&Nt!==void 0&&!St.objectMode&&(Pt=new TypeError("Invalid non-string/buffer chunk")),Pt&&(vt.emit("error",Pt),Ee.nextTick(Ft,Pt),Kt=!1),Kt}Ae.prototype.write=function(vt,St,Nt){var Ft=this._writableState,Kt=!1,Pt=!Ft.objectMode&&ue(vt);return Pt&&!ae.isBuffer(vt)&&(vt=le(vt)),typeof St=="function"&&(Nt=St,St=null),Pt?St="buffer":St||(St=Ft.defaultEncoding),typeof Nt!="function"&&(Nt=Pe),Ft.ended?Te(this,Nt):(Pt||Me(this,Ft,vt,Nt))&&(Ft.pendingcb++,Kt=Re(this,Ft,Pt,vt,St,Nt)),Kt},Ae.prototype.cork=function(){var vt=this._writableState;vt.corked++},Ae.prototype.uncork=function(){var vt=this._writableState;vt.corked&&(vt.corked--,!vt.writing&&!vt.corked&&!vt.finished&&!vt.bufferProcessing&&vt.bufferedRequest&&yt(this,vt))},Ae.prototype.setDefaultEncoding=function(St){if(typeof St=="string"&&(St=St.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((St+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+St);return this._writableState.defaultEncoding=St,this};function Be(vt,St,Nt){return!vt.objectMode&&vt.decodeStrings!==!1&&typeof St=="string"&&(St=ae.from(St,Nt)),St}Object.defineProperty(Ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Re(vt,St,Nt,Ft,Kt,Pt){if(!Nt){var Et=Be(St,Ft,Kt);Ft!==Et&&(Nt=!0,Kt="buffer",Ft=Et)}var at=St.objectMode?1:Ft.length;St.length+=at;var Ct=St.length<St.highWaterMark;if(Ct||(St.needDrain=!0),St.writing||St.corked){var nt=St.lastBufferedRequest;St.lastBufferedRequest={chunk:Ft,encoding:Kt,isBuf:Nt,callback:Pt,next:null},nt?nt.next=St.lastBufferedRequest:St.bufferedRequest=St.lastBufferedRequest,St.bufferedRequestCount+=1}else Qe(vt,St,!1,at,Ft,Kt,Pt);return Ct}function Qe(vt,St,Nt,Ft,Kt,Pt,Et){St.writelen=Ft,St.writecb=Et,St.writing=!0,St.sync=!0,Nt?vt._writev(Kt,St.onwrite):vt._write(Kt,Pt,St.onwrite),St.sync=!1}function He(vt,St,Nt,Ft,Kt){--St.pendingcb,Nt?(Ee.nextTick(Kt,Ft),Ee.nextTick(bt,vt,St),vt._writableState.errorEmitted=!0,vt.emit("error",Ft)):(Kt(Ft),vt._writableState.errorEmitted=!0,vt.emit("error",Ft),bt(vt,St))}function $e(vt){vt.writing=!1,vt.writecb=null,vt.length-=vt.writelen,vt.writelen=0}function qe(vt,St){var Nt=vt._writableState,Ft=Nt.sync,Kt=Nt.writecb;if($e(Nt),St)He(vt,Nt,Ft,St,Kt);else{var Pt=_e(Nt);!Pt&&!Nt.corked&&!Nt.bufferProcessing&&Nt.bufferedRequest&&yt(vt,Nt),Ft?me(ut,vt,Nt,Pt,Kt):ut(vt,Nt,Pt,Kt)}}function ut(vt,St,Nt,Ft){Nt||ct(vt,St),St.pendingcb--,Ft(),bt(vt,St)}function ct(vt,St){St.length===0&&St.needDrain&&(St.needDrain=!1,vt.emit("drain"))}function yt(vt,St){St.bufferProcessing=!0;var Nt=St.bufferedRequest;if(vt._writev&&Nt&&Nt.next){var Ft=St.bufferedRequestCount,Kt=new Array(Ft),Pt=St.corkedRequestsFree;Pt.entry=Nt;for(var Et=0,at=!0;Nt;)Kt[Et]=Nt,Nt.isBuf||(at=!1),Nt=Nt.next,Et+=1;Kt.allBuffers=at,Qe(vt,St,!0,St.length,Kt,"",Pt.finish),St.pendingcb++,St.lastBufferedRequest=null,Pt.next?(St.corkedRequestsFree=Pt.next,Pt.next=null):St.corkedRequestsFree=new be(St),St.bufferedRequestCount=0}else{for(;Nt;){var Ct=Nt.chunk,nt=Nt.encoding,ht=Nt.callback,Mt=St.objectMode?1:Ct.length;if(Qe(vt,St,!1,Mt,Ct,nt,ht),Nt=Nt.next,St.bufferedRequestCount--,St.writing)break}Nt===null&&(St.lastBufferedRequest=null)}St.bufferedRequest=Nt,St.bufferProcessing=!1}Ae.prototype._write=function(vt,St,Nt){Nt(new Error("_write() is not implemented"))},Ae.prototype._writev=null,Ae.prototype.end=function(vt,St,Nt){var Ft=this._writableState;typeof vt=="function"?(Nt=vt,vt=null,St=null):typeof St=="function"&&(Nt=St,St=null),vt!=null&&this.write(vt,St),Ft.corked&&(Ft.corked=1,this.uncork()),!Ft.ending&&!Ft.finished&&wt(this,Ft,Nt)};function _e(vt){return vt.ending&&vt.length===0&&vt.bufferedRequest===null&&!vt.finished&&!vt.writing}function st(vt,St){vt._final(function(Nt){St.pendingcb--,Nt&&vt.emit("error",Nt),St.prefinished=!0,vt.emit("prefinish"),bt(vt,St)})}function pt(vt,St){!St.prefinished&&!St.finalCalled&&(typeof vt._final=="function"?(St.pendingcb++,St.finalCalled=!0,Ee.nextTick(st,vt,St)):(St.prefinished=!0,vt.emit("prefinish")))}function bt(vt,St){var Nt=_e(St);return Nt&&(pt(vt,St),St.pendingcb===0&&(St.finished=!0,vt.emit("finish"))),Nt}function wt(vt,St,Nt){St.ending=!0,bt(vt,St),Nt&&(St.finished?Ee.nextTick(Nt):vt.once("finish",Nt)),St.ended=!0,vt.writable=!1}function mt(vt,St,Nt){var Ft=vt.entry;for(vt.entry=null;Ft;){var Kt=Ft.callback;St.pendingcb--,Kt(Nt),Ft=Ft.next}St.corkedRequestsFree?St.corkedRequestsFree.next=vt:St.corkedRequestsFree=vt}Object.defineProperty(Ae.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(vt){this._writableState&&(this._writableState.destroyed=vt)}}),Ae.prototype.destroy=pe.destroy,Ae.prototype._undestroy=pe.undestroy,Ae.prototype._destroy=function(vt,St){this.end(),St(vt)}}).call(this)}).call(this,oe("_process"),typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("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(oe,Ue,Oe){"use strict";function ve(ye,be){if(!(ye instanceof be))throw new TypeError("Cannot call a class as a function")}var ce=oe("safe-buffer").Buffer,Ce=oe("util");function Ee(ye,be,me){ye.copy(be,me)}Ue.exports=function(){function ye(){ve(this,ye),this.head=null,this.tail=null,this.length=0}return ye.prototype.push=function(me){var xe={data:me,next:null};this.length>0?this.tail.next=xe:this.head=xe,this.tail=xe,++this.length},ye.prototype.unshift=function(me){var xe={data:me,next:this.head};this.length===0&&(this.tail=xe),this.head=xe,++this.length},ye.prototype.shift=function(){if(this.length!==0){var me=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,me}},ye.prototype.clear=function(){this.head=this.tail=null,this.length=0},ye.prototype.join=function(me){if(this.length===0)return"";for(var xe=this.head,fe=""+xe.data;xe=xe.next;)fe+=me+xe.data;return fe},ye.prototype.concat=function(me){if(this.length===0)return ce.alloc(0);if(this.length===1)return this.head.data;for(var xe=ce.allocUnsafe(me>>>0),fe=this.head,z=0;fe;)Ee(fe.data,xe,z),z+=fe.data.length,fe=fe.next;return xe},ye}(),Ce&&Ce.inspect&&Ce.inspect.custom&&(Ue.exports.prototype[Ce.inspect.custom]=function(){var ye=Ce.inspect({length:this.length});return this.constructor.name+" "+ye})},{"safe-buffer":396,util:89}],392:[function(oe,Ue,Oe){"use strict";var ve=oe("process-nextick-args");function ce(ye,be){var me=this,xe=this._readableState&&this._readableState.destroyed,fe=this._writableState&&this._writableState.destroyed;return xe||fe?(be?be(ye):ye&&(!this._writableState||!this._writableState.errorEmitted)&&ve.nextTick(Ee,this,ye),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ye||null,function(z){!be&&z?(ve.nextTick(Ee,me,z),me._writableState&&(me._writableState.errorEmitted=!0)):be&&be(z)}),this)}function Ce(){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,be){ye.emit("error",be)}Ue.exports={destroy:ce,undestroy:Ce}},{"process-nextick-args":380}],393:[function(oe,Ue,Oe){Ue.exports=oe("events").EventEmitter},{events:344}],394:[function(oe,Ue,Oe){Oe=Ue.exports=oe("./lib/_stream_readable.js"),Oe.Stream=Oe,Oe.Readable=Oe,Oe.Writable=oe("./lib/_stream_writable.js"),Oe.Duplex=oe("./lib/_stream_duplex.js"),Oe.Transform=oe("./lib/_stream_transform.js"),Oe.PassThrough=oe("./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(oe,Ue,Oe){var ve=function(ce){"use strict";var Ce=Object.prototype,Ee=Ce.hasOwnProperty,ye,be=typeof Symbol=="function"?Symbol:{},me=be.iterator||"@@iterator",xe=be.asyncIterator||"@@asyncIterator",fe=be.toStringTag||"@@toStringTag";function z(pt,bt,wt){return Object.defineProperty(pt,bt,{value:wt,enumerable:!0,configurable:!0,writable:!0}),pt[bt]}try{z({},"")}catch(pt){z=function(bt,wt,mt){return bt[wt]=mt}}function ee(pt,bt,wt,mt){var vt=bt&&bt.prototype instanceof we?bt:we,St=Object.create(vt.prototype),Nt=new yt(mt||[]);return St._invoke=$e(pt,wt,Nt),St}ce.wrap=ee;function ae(pt,bt,wt){try{return{type:"normal",arg:pt.call(bt,wt)}}catch(mt){return{type:"throw",arg:mt}}}var re="suspendedStart",le="suspendedYield",ue="executing",pe="completed",Pe={};function we(){}function Ne(){}function Ae(){}var Te={};z(Te,me,function(){return this});var Me=Object.getPrototypeOf,Be=Me&&Me(Me(_e([])));Be&&Be!==Ce&&Ee.call(Be,me)&&(Te=Be);var Re=Ae.prototype=we.prototype=Object.create(Te);Ne.prototype=Ae,z(Re,"constructor",Ae),z(Ae,"constructor",Ne),Ne.displayName=z(Ae,fe,"GeneratorFunction");function Qe(pt){["next","throw","return"].forEach(function(bt){z(pt,bt,function(wt){return this._invoke(bt,wt)})})}ce.isGeneratorFunction=function(pt){var bt=typeof pt=="function"&&pt.constructor;return bt?bt===Ne||(bt.displayName||bt.name)==="GeneratorFunction":!1},ce.mark=function(pt){return Object.setPrototypeOf?Object.setPrototypeOf(pt,Ae):(pt.__proto__=Ae,z(pt,fe,"GeneratorFunction")),pt.prototype=Object.create(Re),pt},ce.awrap=function(pt){return{__await:pt}};function He(pt,bt){function wt(St,Nt,Ft,Kt){var Pt=ae(pt[St],pt,Nt);if(Pt.type==="throw")Kt(Pt.arg);else{var Et=Pt.arg,at=Et.value;return at&&typeof at=="object"&&Ee.call(at,"__await")?bt.resolve(at.__await).then(function(Ct){wt("next",Ct,Ft,Kt)},function(Ct){wt("throw",Ct,Ft,Kt)}):bt.resolve(at).then(function(Ct){Et.value=Ct,Ft(Et)},function(Ct){return wt("throw",Ct,Ft,Kt)})}}var mt;function vt(St,Nt){function Ft(){return new bt(function(Kt,Pt){wt(St,Nt,Kt,Pt)})}return mt=mt?mt.then(Ft,Ft):Ft()}this._invoke=vt}Qe(He.prototype),z(He.prototype,xe,function(){return this}),ce.AsyncIterator=He,ce.async=function(pt,bt,wt,mt,vt){vt===void 0&&(vt=Promise);var St=new He(ee(pt,bt,wt,mt),vt);return ce.isGeneratorFunction(bt)?St:St.next().then(function(Nt){return Nt.done?Nt.value:St.next()})};function $e(pt,bt,wt){var mt=re;return function(St,Nt){if(mt===ue)throw new Error("Generator is already running");if(mt===pe){if(St==="throw")throw Nt;return st()}for(wt.method=St,wt.arg=Nt;;){var Ft=wt.delegate;if(Ft){var Kt=qe(Ft,wt);if(Kt){if(Kt===Pe)continue;return Kt}}if(wt.method==="next")wt.sent=wt._sent=wt.arg;else if(wt.method==="throw"){if(mt===re)throw mt=pe,wt.arg;wt.dispatchException(wt.arg)}else wt.method==="return"&&wt.abrupt("return",wt.arg);mt=ue;var Pt=ae(pt,bt,wt);if(Pt.type==="normal"){if(mt=wt.done?pe:le,Pt.arg===Pe)continue;return{value:Pt.arg,done:wt.done}}else Pt.type==="throw"&&(mt=pe,wt.method="throw",wt.arg=Pt.arg)}}}function qe(pt,bt){var wt=pt.iterator[bt.method];if(wt===ye){if(bt.delegate=null,bt.method==="throw"){if(pt.iterator.return&&(bt.method="return",bt.arg=ye,qe(pt,bt),bt.method==="throw"))return Pe;bt.method="throw",bt.arg=new TypeError("The iterator does not provide a 'throw' method")}return Pe}var mt=ae(wt,pt.iterator,bt.arg);if(mt.type==="throw")return bt.method="throw",bt.arg=mt.arg,bt.delegate=null,Pe;var vt=mt.arg;if(!vt)return bt.method="throw",bt.arg=new TypeError("iterator result is not an object"),bt.delegate=null,Pe;if(vt.done)bt[pt.resultName]=vt.value,bt.next=pt.nextLoc,bt.method!=="return"&&(bt.method="next",bt.arg=ye);else return vt;return bt.delegate=null,Pe}Qe(Re),z(Re,fe,"Generator"),z(Re,me,function(){return this}),z(Re,"toString",function(){return"[object Generator]"});function ut(pt){var bt={tryLoc:pt[0]};1 in pt&&(bt.catchLoc=pt[1]),2 in pt&&(bt.finallyLoc=pt[2],bt.afterLoc=pt[3]),this.tryEntries.push(bt)}function ct(pt){var bt=pt.completion||{};bt.type="normal",delete bt.arg,pt.completion=bt}function yt(pt){this.tryEntries=[{tryLoc:"root"}],pt.forEach(ut,this),this.reset(!0)}ce.keys=function(pt){var bt=[];for(var wt in pt)bt.push(wt);return bt.reverse(),function mt(){for(;bt.length;){var vt=bt.pop();if(vt in pt)return mt.value=vt,mt.done=!1,mt}return mt.done=!0,mt}};function _e(pt){if(pt){var bt=pt[me];if(bt)return bt.call(pt);if(typeof pt.next=="function")return pt;if(!isNaN(pt.length)){var wt=-1,mt=function vt(){for(;++wt<pt.length;)if(Ee.call(pt,wt))return vt.value=pt[wt],vt.done=!1,vt;return vt.value=ye,vt.done=!0,vt};return mt.next=mt}}return{next:st}}ce.values=_e;function st(){return{value:ye,done:!0}}return yt.prototype={constructor:yt,reset:function(pt){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(ct),!pt)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 pt=this.tryEntries[0],bt=pt.completion;if(bt.type==="throw")throw bt.arg;return this.rval},dispatchException:function(pt){if(this.done)throw pt;var bt=this;function wt(Kt,Pt){return St.type="throw",St.arg=pt,bt.next=Kt,Pt&&(bt.method="next",bt.arg=ye),!!Pt}for(var mt=this.tryEntries.length-1;mt>=0;--mt){var vt=this.tryEntries[mt],St=vt.completion;if(vt.tryLoc==="root")return wt("end");if(vt.tryLoc<=this.prev){var Nt=Ee.call(vt,"catchLoc"),Ft=Ee.call(vt,"finallyLoc");if(Nt&&Ft){if(this.prev<vt.catchLoc)return wt(vt.catchLoc,!0);if(this.prev<vt.finallyLoc)return wt(vt.finallyLoc)}else if(Nt){if(this.prev<vt.catchLoc)return wt(vt.catchLoc,!0)}else if(Ft){if(this.prev<vt.finallyLoc)return wt(vt.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(pt,bt){for(var wt=this.tryEntries.length-1;wt>=0;--wt){var mt=this.tryEntries[wt];if(mt.tryLoc<=this.prev&&Ee.call(mt,"finallyLoc")&&this.prev<mt.finallyLoc){var vt=mt;break}}vt&&(pt==="break"||pt==="continue")&&vt.tryLoc<=bt&&bt<=vt.finallyLoc&&(vt=null);var St=vt?vt.completion:{};return St.type=pt,St.arg=bt,vt?(this.method="next",this.next=vt.finallyLoc,Pe):this.complete(St)},complete:function(pt,bt){if(pt.type==="throw")throw pt.arg;return pt.type==="break"||pt.type==="continue"?this.next=pt.arg:pt.type==="return"?(this.rval=this.arg=pt.arg,this.method="return",this.next="end"):pt.type==="normal"&&bt&&(this.next=bt),Pe},finish:function(pt){for(var bt=this.tryEntries.length-1;bt>=0;--bt){var wt=this.tryEntries[bt];if(wt.finallyLoc===pt)return this.complete(wt.completion,wt.afterLoc),ct(wt),Pe}},catch:function(pt){for(var bt=this.tryEntries.length-1;bt>=0;--bt){var wt=this.tryEntries[bt];if(wt.tryLoc===pt){var mt=wt.completion;if(mt.type==="throw"){var vt=mt.arg;ct(wt)}return vt}}throw new Error("illegal catch attempt")},delegateYield:function(pt,bt,wt){return this.delegate={iterator:_e(pt),resultName:bt,nextLoc:wt},this.method==="next"&&(this.arg=ye),Pe}},ce}(typeof Ue=="object"?Ue.exports:{});try{regeneratorRuntime=ve}catch(ce){typeof globalThis=="object"?globalThis.regeneratorRuntime=ve:Function("r","regeneratorRuntime = r")(ve)}},{}],396:[function(oe,Ue,Oe){var ve=oe("buffer"),ce=ve.Buffer;function Ce(ye,be){for(var me in ye)be[me]=ye[me]}ce.from&&ce.alloc&&ce.allocUnsafe&&ce.allocUnsafeSlow?Ue.exports=ve:(Ce(ve,Oe),Oe.Buffer=Ee);function Ee(ye,be,me){return ce(ye,be,me)}Ce(ce,Ee),Ee.from=function(ye,be,me){if(typeof ye=="number")throw new TypeError("Argument must not be a number");return ce(ye,be,me)},Ee.alloc=function(ye,be,me){if(typeof ye!="number")throw new TypeError("Argument must be a number");var xe=ce(ye);return be!==void 0?typeof me=="string"?xe.fill(be,me):xe.fill(be):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 ve.SlowBuffer(ye)}},{buffer:90}],397:[function(oe,Ue,Oe){(function(ve){(function(){(function(ce){ce.parser=function(Et,at){return new Ee(Et,at)},ce.SAXParser=Ee,ce.SAXStream=ee,ce.createStream=z,ce.MAX_BUFFER_LENGTH=64*1024;var Ce=["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(Et,at){if(!(this instanceof Ee))return new Ee(Et,at);var Ct=this;be(Ct),Ct.q=Ct.c="",Ct.bufferCheckPosition=ce.MAX_BUFFER_LENGTH,Ct.opt=at||{},Ct.opt.lowercase=Ct.opt.lowercase||Ct.opt.lowercasetags,Ct.looseCase=Ct.opt.lowercase?"toLowerCase":"toUpperCase",Ct.tags=[],Ct.closed=Ct.closedRoot=Ct.sawRoot=!1,Ct.tag=Ct.error=null,Ct.strict=!!Et,Ct.noscript=!!(Et||Ct.opt.noscript),Ct.state=He.BEGIN,Ct.strictEntities=Ct.opt.strictEntities,Ct.ENTITIES=Ct.strictEntities?Object.create(ce.XML_ENTITIES):Object.create(ce.ENTITIES),Ct.attribList=[],Ct.opt.xmlns&&(Ct.ns=Object.create(pe)),Ct.trackPosition=Ct.opt.position!==!1,Ct.trackPosition&&(Ct.position=Ct.line=Ct.column=0),qe(Ct,"onready")}Object.create||(Object.create=function(Et){function at(){}at.prototype=Et;var Ct=new at;return Ct}),Object.keys||(Object.keys=function(Et){var at=[];for(var Ct in Et)Et.hasOwnProperty(Ct)&&at.push(Ct);return at});function ye(Et){for(var at=Math.max(ce.MAX_BUFFER_LENGTH,10),Ct=0,nt=0,ht=Ce.length;nt<ht;nt++){var Mt=Et[Ce[nt]].length;if(Mt>at)switch(Ce[nt]){case"textNode":ct(Et);break;case"cdata":ut(Et,"oncdata",Et.cdata),Et.cdata="";break;case"script":ut(Et,"onscript",Et.script),Et.script="";break;default:_e(Et,"Max buffer length exceeded: "+Ce[nt])}Ct=Math.max(Ct,Mt)}var gt=ce.MAX_BUFFER_LENGTH-Ct;Et.bufferCheckPosition=gt+Et.position}function be(Et){for(var at=0,Ct=Ce.length;at<Ct;at++)Et[Ce[at]]=""}function me(Et){ct(Et),Et.cdata!==""&&(ut(Et,"oncdata",Et.cdata),Et.cdata=""),Et.script!==""&&(ut(Et,"onscript",Et.script),Et.script="")}Ee.prototype={end:function(){st(this)},write:Pt,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){me(this)}};var xe;try{xe=oe("stream").Stream}catch(Et){xe=function(){}}var fe=ce.EVENTS.filter(function(Et){return Et!=="error"&&Et!=="end"});function z(Et,at){return new ee(Et,at)}function ee(Et,at){if(!(this instanceof ee))return new ee(Et,at);xe.apply(this),this._parser=new Ee(Et,at),this.writable=!0,this.readable=!0;var Ct=this;this._parser.onend=function(){Ct.emit("end")},this._parser.onerror=function(nt){Ct.emit("error",nt),Ct._parser.error=null},this._decoder=null,fe.forEach(function(nt){Object.defineProperty(Ct,"on"+nt,{get:function(){return Ct._parser["on"+nt]},set:function(ht){if(!ht)return Ct.removeAllListeners(nt),Ct._parser["on"+nt]=ht,ht;Ct.on(nt,ht)},enumerable:!0,configurable:!1})})}ee.prototype=Object.create(xe.prototype,{constructor:{value:ee}}),ee.prototype.write=function(Et){if(typeof ve=="function"&&typeof ve.isBuffer=="function"&&ve.isBuffer(Et)){if(!this._decoder){var at=oe("string_decoder").StringDecoder;this._decoder=new at("utf8")}Et=this._decoder.write(Et)}return this._parser.write(Et.toString()),this.emit("data",Et),!0},ee.prototype.end=function(Et){return Et&&Et.length&&this.write(Et),this._parser.end(),!0},ee.prototype.on=function(Et,at){var Ct=this;return!Ct._parser["on"+Et]&&fe.indexOf(Et)!==-1&&(Ct._parser["on"+Et]=function(){var nt=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);nt.splice(0,0,Et),Ct.emit.apply(Ct,nt)}),xe.prototype.on.call(Ct,Et,at)};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},Pe=/[:_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]/,we=/[:_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-]/,Ne=/[#:_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 Te(Et){return Et===" "||Et===`
`||Et==="\r"||Et===" "}function Me(Et){return Et==='"'||Et==="'"}function Be(Et){return Et===">"||Te(Et)}function Re(Et,at){return Et.test(at)}function Qe(Et,at){return!Re(Et,at)}var He=0;ce.STATE={BEGIN:He++,BEGIN_WHITESPACE:He++,TEXT:He++,TEXT_ENTITY:He++,OPEN_WAKA:He++,SGML_DECL:He++,SGML_DECL_QUOTED:He++,DOCTYPE:He++,DOCTYPE_QUOTED:He++,DOCTYPE_DTD:He++,DOCTYPE_DTD_QUOTED:He++,COMMENT_STARTING:He++,COMMENT:He++,COMMENT_ENDING:He++,COMMENT_ENDED:He++,CDATA:He++,CDATA_ENDING:He++,CDATA_ENDING_2:He++,PROC_INST:He++,PROC_INST_BODY:He++,PROC_INST_ENDING:He++,OPEN_TAG:He++,OPEN_TAG_SLASH:He++,ATTRIB:He++,ATTRIB_NAME:He++,ATTRIB_NAME_SAW_WHITE:He++,ATTRIB_VALUE:He++,ATTRIB_VALUE_QUOTED:He++,ATTRIB_VALUE_CLOSED:He++,ATTRIB_VALUE_UNQUOTED:He++,ATTRIB_VALUE_ENTITY_Q:He++,ATTRIB_VALUE_ENTITY_U:He++,CLOSE_TAG:He++,CLOSE_TAG_SAW_WHITE:He++,SCRIPT:He++,SCRIPT_ENDING:He++},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(Et){var at=ce.ENTITIES[Et],Ct=typeof at=="number"?String.fromCharCode(at):at;ce.ENTITIES[Et]=Ct});for(var $e in ce.STATE)ce.STATE[ce.STATE[$e]]=$e;He=ce.STATE;function qe(Et,at,Ct){Et[at]&&Et[at](Ct)}function ut(Et,at,Ct){Et.textNode&&ct(Et),qe(Et,at,Ct)}function ct(Et){Et.textNode=yt(Et.opt,Et.textNode),Et.textNode&&qe(Et,"ontext",Et.textNode),Et.textNode=""}function yt(Et,at){return Et.trim&&(at=at.trim()),Et.normalize&&(at=at.replace(/\s+/g," ")),at}function _e(Et,at){return ct(Et),Et.trackPosition&&(at+=`
Line: `+Et.line+`
Column: `+Et.column+`
Char: `+Et.c),at=new Error(at),Et.error=at,qe(Et,"onerror",at),Et}function st(Et){return Et.sawRoot&&!Et.closedRoot&&pt(Et,"Unclosed root tag"),Et.state!==He.BEGIN&&Et.state!==He.BEGIN_WHITESPACE&&Et.state!==He.TEXT&&_e(Et,"Unexpected end"),ct(Et),Et.c="",Et.closed=!0,qe(Et,"onend"),Ee.call(Et,Et.strict,Et.opt),Et}function pt(Et,at){if(typeof Et!="object"||!(Et instanceof Ee))throw new Error("bad call to strictFail");Et.strict&&_e(Et,at)}function bt(Et){Et.strict||(Et.tagName=Et.tagName[Et.looseCase]());var at=Et.tags[Et.tags.length-1]||Et,Ct=Et.tag={name:Et.tagName,attributes:{}};Et.opt.xmlns&&(Ct.ns=at.ns),Et.attribList.length=0,ut(Et,"onopentagstart",Ct)}function wt(Et,at){var Ct=Et.indexOf(":"),nt=Ct<0?["",Et]:Et.split(":"),ht=nt[0],Mt=nt[1];return at&&Et==="xmlns"&&(ht="xmlns",Mt=""),{prefix:ht,local:Mt}}function mt(Et){if(Et.strict||(Et.attribName=Et.attribName[Et.looseCase]()),Et.attribList.indexOf(Et.attribName)!==-1||Et.tag.attributes.hasOwnProperty(Et.attribName)){Et.attribName=Et.attribValue="";return}if(Et.opt.xmlns){var at=wt(Et.attribName,!0),Ct=at.prefix,nt=at.local;if(Ct==="xmlns")if(nt==="xml"&&Et.attribValue!==le)pt(Et,"xml: prefix must be bound to "+le+`
Actual: `+Et.attribValue);else if(nt==="xmlns"&&Et.attribValue!==ue)pt(Et,"xmlns: prefix must be bound to "+ue+`
Actual: `+Et.attribValue);else{var ht=Et.tag,Mt=Et.tags[Et.tags.length-1]||Et;ht.ns===Mt.ns&&(ht.ns=Object.create(Mt.ns)),ht.ns[nt]=Et.attribValue}Et.attribList.push([Et.attribName,Et.attribValue])}else Et.tag.attributes[Et.attribName]=Et.attribValue,ut(Et,"onattribute",{name:Et.attribName,value:Et.attribValue});Et.attribName=Et.attribValue=""}function vt(Et,at){if(Et.opt.xmlns){var Ct=Et.tag,nt=wt(Et.tagName);Ct.prefix=nt.prefix,Ct.local=nt.local,Ct.uri=Ct.ns[nt.prefix]||"",Ct.prefix&&!Ct.uri&&(pt(Et,"Unbound namespace prefix: "+JSON.stringify(Et.tagName)),Ct.uri=nt.prefix);var ht=Et.tags[Et.tags.length-1]||Et;Ct.ns&&ht.ns!==Ct.ns&&Object.keys(Ct.ns).forEach(function(Ye){ut(Et,"onopennamespace",{prefix:Ye,uri:Ct.ns[Ye]})});for(var Mt=0,gt=Et.attribList.length;Mt<gt;Mt++){var rt=Et.attribList[Mt],Je=rt[0],Xe=rt[1],Ve=wt(Je,!0),tt=Ve.prefix,Ze=Ve.local,je=tt===""?"":Ct.ns[tt]||"",De={name:Je,value:Xe,prefix:tt,local:Ze,uri:je};tt&&tt!=="xmlns"&&!je&&(pt(Et,"Unbound namespace prefix: "+JSON.stringify(tt)),De.uri=tt),Et.tag.attributes[Je]=De,ut(Et,"onattribute",De)}Et.attribList.length=0}Et.tag.isSelfClosing=!!at,Et.sawRoot=!0,Et.tags.push(Et.tag),ut(Et,"onopentag",Et.tag),at||(!Et.noscript&&Et.tagName.toLowerCase()==="script"?Et.state=He.SCRIPT:Et.state=He.TEXT,Et.tag=null,Et.tagName=""),Et.attribName=Et.attribValue="",Et.attribList.length=0}function St(Et){if(!Et.tagName){pt(Et,"Weird empty close tag."),Et.textNode+="</>",Et.state=He.TEXT;return}if(Et.script){if(Et.tagName!=="script"){Et.script+="</"+Et.tagName+">",Et.tagName="",Et.state=He.SCRIPT;return}ut(Et,"onscript",Et.script),Et.script=""}var at=Et.tags.length,Ct=Et.tagName;Et.strict||(Ct=Ct[Et.looseCase]());for(var nt=Ct;at--;){var ht=Et.tags[at];if(ht.name!==nt)pt(Et,"Unexpected close tag");else break}if(at<0){pt(Et,"Unmatched closing tag: "+Et.tagName),Et.textNode+="</"+Et.tagName+">",Et.state=He.TEXT;return}Et.tagName=Ct;for(var Mt=Et.tags.length;Mt-- >at;){var gt=Et.tag=Et.tags.pop();Et.tagName=Et.tag.name,ut(Et,"onclosetag",Et.tagName);var rt={};for(var Je in gt.ns)rt[Je]=gt.ns[Je];var Xe=Et.tags[Et.tags.length-1]||Et;Et.opt.xmlns&&gt.ns!==Xe.ns&&Object.keys(gt.ns).forEach(function(Ve){var tt=gt.ns[Ve];ut(Et,"onclosenamespace",{prefix:Ve,uri:tt})})}at===0&&(Et.closedRoot=!0),Et.tagName=Et.attribValue=Et.attribName="",Et.attribList.length=0,Et.state=He.TEXT}function Nt(Et){var at=Et.entity,Ct=at.toLowerCase(),nt,ht="";return Et.ENTITIES[at]?Et.ENTITIES[at]:Et.ENTITIES[Ct]?Et.ENTITIES[Ct]:(at=Ct,at.charAt(0)==="#"&&(at.charAt(1)==="x"?(at=at.slice(2),nt=parseInt(at,16),ht=nt.toString(16)):(at=at.slice(1),nt=parseInt(at,10),ht=nt.toString(10))),at=at.replace(/^0+/,""),isNaN(nt)||ht.toLowerCase()!==at?(pt(Et,"Invalid character entity"),"&"+Et.entity+";"):String.fromCodePoint(nt))}function Ft(Et,at){at==="<"?(Et.state=He.OPEN_WAKA,Et.startTagPosition=Et.position):Te(at)||(pt(Et,"Non-whitespace before first tag."),Et.textNode=at,Et.state=He.TEXT)}function Kt(Et,at){var Ct="";return at<Et.length&&(Ct=Et.charAt(at)),Ct}function Pt(Et){var at=this;if(this.error)throw this.error;if(at.closed)return _e(at,"Cannot write after close. Assign an onready handler.");if(Et===null)return st(at);typeof Et=="object"&&(Et=Et.toString());for(var Ct=0,nt="";nt=Kt(Et,Ct++),at.c=nt,!!nt;)switch(at.trackPosition&&(at.position++,nt===`
`?(at.line++,at.column=0):at.column++),at.state){case He.BEGIN:if(at.state=He.BEGIN_WHITESPACE,nt==="\uFEFF")continue;Ft(at,nt);continue;case He.BEGIN_WHITESPACE:Ft(at,nt);continue;case He.TEXT:if(at.sawRoot&&!at.closedRoot){for(var ht=Ct-1;nt&&nt!=="<"&&nt!=="&";)nt=Kt(Et,Ct++),nt&&at.trackPosition&&(at.position++,nt===`
`?(at.line++,at.column=0):at.column++);at.textNode+=Et.substring(ht,Ct-1)}nt==="<"&&!(at.sawRoot&&at.closedRoot&&!at.strict)?(at.state=He.OPEN_WAKA,at.startTagPosition=at.position):(!Te(nt)&&(!at.sawRoot||at.closedRoot)&&pt(at,"Text data outside of root node."),nt==="&"?at.state=He.TEXT_ENTITY:at.textNode+=nt);continue;case He.SCRIPT:nt==="<"?at.state=He.SCRIPT_ENDING:at.script+=nt;continue;case He.SCRIPT_ENDING:nt==="/"?at.state=He.CLOSE_TAG:(at.script+="<"+nt,at.state=He.SCRIPT);continue;case He.OPEN_WAKA:if(nt==="!")at.state=He.SGML_DECL,at.sgmlDecl="";else if(!Te(nt))if(Re(Pe,nt))at.state=He.OPEN_TAG,at.tagName=nt;else if(nt==="/")at.state=He.CLOSE_TAG,at.tagName="";else if(nt==="?")at.state=He.PROC_INST,at.procInstName=at.procInstBody="";else{if(pt(at,"Unencoded <"),at.startTagPosition+1<at.position){var Mt=at.position-at.startTagPosition;nt=new Array(Mt).join(" ")+nt}at.textNode+="<"+nt,at.state=He.TEXT}continue;case He.SGML_DECL:(at.sgmlDecl+nt).toUpperCase()===ae?(ut(at,"onopencdata"),at.state=He.CDATA,at.sgmlDecl="",at.cdata=""):at.sgmlDecl+nt==="--"?(at.state=He.COMMENT,at.comment="",at.sgmlDecl=""):(at.sgmlDecl+nt).toUpperCase()===re?(at.state=He.DOCTYPE,(at.doctype||at.sawRoot)&&pt(at,"Inappropriately located doctype declaration"),at.doctype="",at.sgmlDecl=""):nt===">"?(ut(at,"onsgmldeclaration",at.sgmlDecl),at.sgmlDecl="",at.state=He.TEXT):(Me(nt)&&(at.state=He.SGML_DECL_QUOTED),at.sgmlDecl+=nt);continue;case He.SGML_DECL_QUOTED:nt===at.q&&(at.state=He.SGML_DECL,at.q=""),at.sgmlDecl+=nt;continue;case He.DOCTYPE:nt===">"?(at.state=He.TEXT,ut(at,"ondoctype",at.doctype),at.doctype=!0):(at.doctype+=nt,nt==="["?at.state=He.DOCTYPE_DTD:Me(nt)&&(at.state=He.DOCTYPE_QUOTED,at.q=nt));continue;case He.DOCTYPE_QUOTED:at.doctype+=nt,nt===at.q&&(at.q="",at.state=He.DOCTYPE);continue;case He.DOCTYPE_DTD:at.doctype+=nt,nt==="]"?at.state=He.DOCTYPE:Me(nt)&&(at.state=He.DOCTYPE_DTD_QUOTED,at.q=nt);continue;case He.DOCTYPE_DTD_QUOTED:at.doctype+=nt,nt===at.q&&(at.state=He.DOCTYPE_DTD,at.q="");continue;case He.COMMENT:nt==="-"?at.state=He.COMMENT_ENDING:at.comment+=nt;continue;case He.COMMENT_ENDING:nt==="-"?(at.state=He.COMMENT_ENDED,at.comment=yt(at.opt,at.comment),at.comment&&ut(at,"oncomment",at.comment),at.comment=""):(at.comment+="-"+nt,at.state=He.COMMENT);continue;case He.COMMENT_ENDED:nt!==">"?(pt(at,"Malformed comment"),at.comment+="--"+nt,at.state=He.COMMENT):at.state=He.TEXT;continue;case He.CDATA:nt==="]"?at.state=He.CDATA_ENDING:at.cdata+=nt;continue;case He.CDATA_ENDING:nt==="]"?at.state=He.CDATA_ENDING_2:(at.cdata+="]"+nt,at.state=He.CDATA);continue;case He.CDATA_ENDING_2:nt===">"?(at.cdata&&ut(at,"oncdata",at.cdata),ut(at,"onclosecdata"),at.cdata="",at.state=He.TEXT):nt==="]"?at.cdata+="]":(at.cdata+="]]"+nt,at.state=He.CDATA);continue;case He.PROC_INST:nt==="?"?at.state=He.PROC_INST_ENDING:Te(nt)?at.state=He.PROC_INST_BODY:at.procInstName+=nt;continue;case He.PROC_INST_BODY:if(!at.procInstBody&&Te(nt))continue;nt==="?"?at.state=He.PROC_INST_ENDING:at.procInstBody+=nt;continue;case He.PROC_INST_ENDING:nt===">"?(ut(at,"onprocessinginstruction",{name:at.procInstName,body:at.procInstBody}),at.procInstName=at.procInstBody="",at.state=He.TEXT):(at.procInstBody+="?"+nt,at.state=He.PROC_INST_BODY);continue;case He.OPEN_TAG:Re(we,nt)?at.tagName+=nt:(bt(at),nt===">"?vt(at):nt==="/"?at.state=He.OPEN_TAG_SLASH:(Te(nt)||pt(at,"Invalid character in tag name"),at.state=He.ATTRIB));continue;case He.OPEN_TAG_SLASH:nt===">"?(vt(at,!0),St(at)):(pt(at,"Forward-slash in opening tag not followed by >"),at.state=He.ATTRIB);continue;case He.ATTRIB:if(Te(nt))continue;nt===">"?vt(at):nt==="/"?at.state=He.OPEN_TAG_SLASH:Re(Pe,nt)?(at.attribName=nt,at.attribValue="",at.state=He.ATTRIB_NAME):pt(at,"Invalid attribute name");continue;case He.ATTRIB_NAME:nt==="="?at.state=He.ATTRIB_VALUE:nt===">"?(pt(at,"Attribute without value"),at.attribValue=at.attribName,mt(at),vt(at)):Te(nt)?at.state=He.ATTRIB_NAME_SAW_WHITE:Re(we,nt)?at.attribName+=nt:pt(at,"Invalid attribute name");continue;case He.ATTRIB_NAME_SAW_WHITE:if(nt==="=")at.state=He.ATTRIB_VALUE;else{if(Te(nt))continue;pt(at,"Attribute without value"),at.tag.attributes[at.attribName]="",at.attribValue="",ut(at,"onattribute",{name:at.attribName,value:""}),at.attribName="",nt===">"?vt(at):Re(Pe,nt)?(at.attribName=nt,at.state=He.ATTRIB_NAME):(pt(at,"Invalid attribute name"),at.state=He.ATTRIB)}continue;case He.ATTRIB_VALUE:if(Te(nt))continue;Me(nt)?(at.q=nt,at.state=He.ATTRIB_VALUE_QUOTED):(pt(at,"Unquoted attribute value"),at.state=He.ATTRIB_VALUE_UNQUOTED,at.attribValue=nt);continue;case He.ATTRIB_VALUE_QUOTED:if(nt!==at.q){nt==="&"?at.state=He.ATTRIB_VALUE_ENTITY_Q:at.attribValue+=nt;continue}mt(at),at.q="",at.state=He.ATTRIB_VALUE_CLOSED;continue;case He.ATTRIB_VALUE_CLOSED:Te(nt)?at.state=He.ATTRIB:nt===">"?vt(at):nt==="/"?at.state=He.OPEN_TAG_SLASH:Re(Pe,nt)?(pt(at,"No whitespace between attributes"),at.attribName=nt,at.attribValue="",at.state=He.ATTRIB_NAME):pt(at,"Invalid attribute name");continue;case He.ATTRIB_VALUE_UNQUOTED:if(!Be(nt)){nt==="&"?at.state=He.ATTRIB_VALUE_ENTITY_U:at.attribValue+=nt;continue}mt(at),nt===">"?vt(at):at.state=He.ATTRIB;continue;case He.CLOSE_TAG:if(at.tagName)nt===">"?St(at):Re(we,nt)?at.tagName+=nt:at.script?(at.script+="</"+at.tagName,at.tagName="",at.state=He.SCRIPT):(Te(nt)||pt(at,"Invalid tagname in closing tag"),at.state=He.CLOSE_TAG_SAW_WHITE);else{if(Te(nt))continue;Qe(Pe,nt)?at.script?(at.script+="</"+nt,at.state=He.SCRIPT):pt(at,"Invalid tagname in closing tag."):at.tagName=nt}continue;case He.CLOSE_TAG_SAW_WHITE:if(Te(nt))continue;nt===">"?St(at):pt(at,"Invalid characters in closing tag");continue;case He.TEXT_ENTITY:case He.ATTRIB_VALUE_ENTITY_Q:case He.ATTRIB_VALUE_ENTITY_U:var gt,rt;switch(at.state){case He.TEXT_ENTITY:gt=He.TEXT,rt="textNode";break;case He.ATTRIB_VALUE_ENTITY_Q:gt=He.ATTRIB_VALUE_QUOTED,rt="attribValue";break;case He.ATTRIB_VALUE_ENTITY_U:gt=He.ATTRIB_VALUE_UNQUOTED,rt="attribValue";break}nt===";"?(at[rt]+=Nt(at),at.entity="",at.state=gt):Re(at.entity.length?Ae:Ne,nt)?at.entity+=nt:(pt(at,"Invalid character in entity name"),at[rt]+="&"+at.entity+nt,at.entity="",at.state=gt);continue;default:throw new Error(at,"Unknown state: "+at.state)}return at.position>=at.bufferCheckPosition&&ye(at),at}String.fromCodePoint||function(){var Et=String.fromCharCode,at=Math.floor,Ct=function(){var nt=16384,ht=[],Mt,gt,rt=-1,Je=arguments.length;if(!Je)return"";for(var Xe="";++rt<Je;){var Ve=Number(arguments[rt]);if(!isFinite(Ve)||Ve<0||Ve>1114111||at(Ve)!==Ve)throw RangeError("Invalid code point: "+Ve);Ve<=65535?ht.push(Ve):(Ve-=65536,Mt=(Ve>>10)+55296,gt=Ve%1024+56320,ht.push(Mt,gt)),(rt+1===Je||ht.length>nt)&&(Xe+=Et.apply(null,ht),ht.length=0)}return Xe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ct,configurable:!0,writable:!0}):String.fromCodePoint=Ct}()})(typeof Oe=="undefined"?this.sax={}:Oe)}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(oe,Ue,Oe){Ue.exports=Ce;var ve=oe("events").EventEmitter,ce=oe("inherits");ce(Ce,ve),Ce.Readable=oe("readable-stream/lib/_stream_readable.js"),Ce.Writable=oe("readable-stream/lib/_stream_writable.js"),Ce.Duplex=oe("readable-stream/lib/_stream_duplex.js"),Ce.Transform=oe("readable-stream/lib/_stream_transform.js"),Ce.PassThrough=oe("readable-stream/lib/_stream_passthrough.js"),Ce.finished=oe("readable-stream/lib/internal/streams/end-of-stream.js"),Ce.pipeline=oe("readable-stream/lib/internal/streams/pipeline.js"),Ce.Stream=Ce;function Ce(){ve.call(this)}Ce.prototype.pipe=function(Ee,ye){var be=this;function me(le){Ee.writable&&Ee.write(le)===!1&&be.pause&&be.pause()}be.on("data",me);function xe(){be.readable&&be.resume&&be.resume()}Ee.on("drain",xe),!Ee._isStdio&&(!ye||ye.end!==!1)&&(be.on("end",z),be.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(),ve.listenerCount(this,"error")===0)throw le}be.on("error",ae),Ee.on("error",ae);function re(){be.removeListener("data",me),Ee.removeListener("drain",xe),be.removeListener("end",z),be.removeListener("close",ee),be.removeListener("error",ae),Ee.removeListener("error",ae),be.removeListener("end",re),be.removeListener("close",re),Ee.removeListener("close",re)}return be.on("end",re),be.on("close",re),Ee.on("close",re),Ee.emit("pipe",be),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(oe,Ue,Oe){"use strict";function ve(xe,fe){xe.prototype=Object.create(fe.prototype),xe.prototype.constructor=xe,xe.__proto__=fe}var ce={};function Ce(xe,fe,z){z||(z=Error);function ee(re,le,ue){return typeof fe=="string"?fe:fe(re,le,ue)}var ae=function(re){ve(le,re);function le(ue,pe,Pe){return re.call(this,ee(ue,pe,Pe))||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 be(xe,fe,z){return(z===void 0||z>xe.length)&&(z=xe.length),xe.substring(z-fe.length,z)===fe}function me(xe,fe,z){return typeof z!="number"&&(z=0),z+fe.length>xe.length?!1:xe.indexOf(fe,z)!==-1}Ce("ERR_INVALID_OPT_VALUE",function(xe,fe){return'The value "'+fe+'" is invalid for option "'+xe+'"'},TypeError),Ce("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(be(xe," argument"))ae="The ".concat(xe," ").concat(ee," ").concat(Ee(fe,"type"));else{var re=me(xe,".")?"property":"argument";ae='The "'.concat(xe,'" ').concat(re," ").concat(ee," ").concat(Ee(fe,"type"))}return ae+=". Received type ".concat(typeof z),ae},TypeError),Ce("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Ce("ERR_METHOD_NOT_IMPLEMENTED",function(xe){return"The "+xe+" method is not implemented"}),Ce("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Ce("ERR_STREAM_DESTROYED",function(xe){return"Cannot call "+xe+" after a stream was destroyed"}),Ce("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Ce("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Ce("ERR_STREAM_WRITE_AFTER_END","write after end"),Ce("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Ce("ERR_UNKNOWN_ENCODING",function(xe){return"Unknown encoding: "+xe},TypeError),Ce("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ue.exports.codes=ce},{}],400:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";var ce=Object.keys||function(ee){var ae=[];for(var re in ee)ae.push(re);return ae};Ue.exports=xe;var Ce=oe("./_stream_readable"),Ee=oe("./_stream_writable");oe("inherits")(xe,Ce);for(var ye=ce(Ee.prototype),be=0;be<ye.length;be++){var me=ye[be];xe.prototype[me]||(xe.prototype[me]=Ee.prototype[me])}function xe(ee){if(!(this instanceof xe))return new xe(ee);Ce.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||ve.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,oe("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(oe,Ue,Oe){"use strict";Ue.exports=ce;var ve=oe("./_stream_transform");oe("inherits")(ce,ve);function ce(Ce){if(!(this instanceof ce))return new ce(Ce);ve.call(this,Ce)}ce.prototype._transform=function(Ce,Ee,ye){ye(null,Ce)}},{"./_stream_transform":403,inherits:364}],402:[function(oe,Ue,Oe){(function(ve,ce){(function(){"use strict";Ue.exports=ut;var Ce;ut.ReadableState=qe;var Ee=oe("events").EventEmitter,ye=function(Je,Xe){return Je.listeners(Xe).length},be=oe("./internal/streams/stream"),me=oe("buffer").Buffer,xe=(typeof ce!="undefined"?ce:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function fe(rt){return me.from(rt)}function z(rt){return me.isBuffer(rt)||rt instanceof xe}var ee=oe("util"),ae;ee&&ee.debuglog?ae=ee.debuglog("stream"):ae=function(){};var re=oe("./internal/streams/buffer_list"),le=oe("./internal/streams/destroy"),ue=oe("./internal/streams/state"),pe=ue.getHighWaterMark,Pe=oe("../errors").codes,we=Pe.ERR_INVALID_ARG_TYPE,Ne=Pe.ERR_STREAM_PUSH_AFTER_EOF,Ae=Pe.ERR_METHOD_NOT_IMPLEMENTED,Te=Pe.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Me,Be,Re;oe("inherits")(ut,be);var Qe=le.errorOrDestroy,He=["error","close","destroy","pause","resume"];function $e(rt,Je,Xe){if(typeof rt.prependListener=="function")return rt.prependListener(Je,Xe);!rt._events||!rt._events[Je]?rt.on(Je,Xe):Array.isArray(rt._events[Je])?rt._events[Je].unshift(Xe):rt._events[Je]=[Xe,rt._events[Je]]}function qe(rt,Je,Xe){Ce=Ce||oe("./_stream_duplex"),rt=rt||{},typeof Xe!="boolean"&&(Xe=Je instanceof Ce),this.objectMode=!!rt.objectMode,Xe&&(this.objectMode=this.objectMode||!!rt.readableObjectMode),this.highWaterMark=pe(this,rt,"readableHighWaterMark",Xe),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=rt.emitClose!==!1,this.autoDestroy=!!rt.autoDestroy,this.destroyed=!1,this.defaultEncoding=rt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,rt.encoding&&(Me||(Me=oe("string_decoder/").StringDecoder),this.decoder=new Me(rt.encoding),this.encoding=rt.encoding)}function ut(rt){if(Ce=Ce||oe("./_stream_duplex"),!(this instanceof ut))return new ut(rt);var Je=this instanceof Ce;this._readableState=new qe(rt,this,Je),this.readable=!0,rt&&(typeof rt.read=="function"&&(this._read=rt.read),typeof rt.destroy=="function"&&(this._destroy=rt.destroy)),be.call(this)}Object.defineProperty(ut.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Je){this._readableState&&(this._readableState.destroyed=Je)}}),ut.prototype.destroy=le.destroy,ut.prototype._undestroy=le.undestroy,ut.prototype._destroy=function(rt,Je){Je(rt)},ut.prototype.push=function(rt,Je){var Xe=this._readableState,Ve;return Xe.objectMode?Ve=!0:typeof rt=="string"&&(Je=Je||Xe.defaultEncoding,Je!==Xe.encoding&&(rt=me.from(rt,Je),Je=""),Ve=!0),ct(this,rt,Je,!1,Ve)},ut.prototype.unshift=function(rt){return ct(this,rt,null,!0,!1)};function ct(rt,Je,Xe,Ve,tt){ae("readableAddChunk",Je);var Ze=rt._readableState;if(Je===null)Ze.reading=!1,wt(rt,Ze);else{var je;if(tt||(je=_e(Ze,Je)),je)Qe(rt,je);else if(Ze.objectMode||Je&&Je.length>0)if(typeof Je!="string"&&!Ze.objectMode&&Object.getPrototypeOf(Je)!==me.prototype&&(Je=fe(Je)),Ve)Ze.endEmitted?Qe(rt,new Te):yt(rt,Ze,Je,!0);else if(Ze.ended)Qe(rt,new Ne);else{if(Ze.destroyed)return!1;Ze.reading=!1,Ze.decoder&&!Xe?(Je=Ze.decoder.write(Je),Ze.objectMode||Je.length!==0?yt(rt,Ze,Je,!1):St(rt,Ze)):yt(rt,Ze,Je,!1)}else Ve||(Ze.reading=!1,St(rt,Ze))}return!Ze.ended&&(Ze.length<Ze.highWaterMark||Ze.length===0)}function yt(rt,Je,Xe,Ve){Je.flowing&&Je.length===0&&!Je.sync?(Je.awaitDrain=0,rt.emit("data",Xe)):(Je.length+=Je.objectMode?1:Xe.length,Ve?Je.buffer.unshift(Xe):Je.buffer.push(Xe),Je.needReadable&&mt(rt)),St(rt,Je)}function _e(rt,Je){var Xe;return!z(Je)&&typeof Je!="string"&&Je!==void 0&&!rt.objectMode&&(Xe=new we("chunk",["string","Buffer","Uint8Array"],Je)),Xe}ut.prototype.isPaused=function(){return this._readableState.flowing===!1},ut.prototype.setEncoding=function(rt){Me||(Me=oe("string_decoder/").StringDecoder);var Je=new Me(rt);this._readableState.decoder=Je,this._readableState.encoding=this._readableState.decoder.encoding;for(var Xe=this._readableState.buffer.head,Ve="";Xe!==null;)Ve+=Je.write(Xe.data),Xe=Xe.next;return this._readableState.buffer.clear(),Ve!==""&&this._readableState.buffer.push(Ve),this._readableState.length=Ve.length,this};var st=1073741824;function pt(rt){return rt>=st?rt=st:(rt--,rt|=rt>>>1,rt|=rt>>>2,rt|=rt>>>4,rt|=rt>>>8,rt|=rt>>>16,rt++),rt}function bt(rt,Je){return rt<=0||Je.length===0&&Je.ended?0:Je.objectMode?1:rt!==rt?Je.flowing&&Je.length?Je.buffer.head.data.length:Je.length:(rt>Je.highWaterMark&&(Je.highWaterMark=pt(rt)),rt<=Je.length?rt:Je.ended?Je.length:(Je.needReadable=!0,0))}ut.prototype.read=function(rt){ae("read",rt),rt=parseInt(rt,10);var Je=this._readableState,Xe=rt;if(rt!==0&&(Je.emittedReadable=!1),rt===0&&Je.needReadable&&((Je.highWaterMark!==0?Je.length>=Je.highWaterMark:Je.length>0)||Je.ended))return ae("read: emitReadable",Je.length,Je.ended),Je.length===0&&Je.ended?ht(this):mt(this),null;if(rt=bt(rt,Je),rt===0&&Je.ended)return Je.length===0&&ht(this),null;var Ve=Je.needReadable;ae("need readable",Ve),(Je.length===0||Je.length-rt<Je.highWaterMark)&&(Ve=!0,ae("length less than watermark",Ve)),Je.ended||Je.reading?(Ve=!1,ae("reading or ended",Ve)):Ve&&(ae("do read"),Je.reading=!0,Je.sync=!0,Je.length===0&&(Je.needReadable=!0),this._read(Je.highWaterMark),Je.sync=!1,Je.reading||(rt=bt(Xe,Je)));var tt;return rt>0?tt=nt(rt,Je):tt=null,tt===null?(Je.needReadable=Je.length<=Je.highWaterMark,rt=0):(Je.length-=rt,Je.awaitDrain=0),Je.length===0&&(Je.ended||(Je.needReadable=!0),Xe!==rt&&Je.ended&&ht(this)),tt!==null&&this.emit("data",tt),tt};function wt(rt,Je){if(ae("onEofChunk"),!Je.ended){if(Je.decoder){var Xe=Je.decoder.end();Xe&&Xe.length&&(Je.buffer.push(Xe),Je.length+=Je.objectMode?1:Xe.length)}Je.ended=!0,Je.sync?mt(rt):(Je.needReadable=!1,Je.emittedReadable||(Je.emittedReadable=!0,vt(rt)))}}function mt(rt){var Je=rt._readableState;ae("emitReadable",Je.needReadable,Je.emittedReadable),Je.needReadable=!1,Je.emittedReadable||(ae("emitReadable",Je.flowing),Je.emittedReadable=!0,ve.nextTick(vt,rt))}function vt(rt){var Je=rt._readableState;ae("emitReadable_",Je.destroyed,Je.length,Je.ended),!Je.destroyed&&(Je.length||Je.ended)&&(rt.emit("readable"),Je.emittedReadable=!1),Je.needReadable=!Je.flowing&&!Je.ended&&Je.length<=Je.highWaterMark,Ct(rt)}function St(rt,Je){Je.readingMore||(Je.readingMore=!0,ve.nextTick(Nt,rt,Je))}function Nt(rt,Je){for(;!Je.reading&&!Je.ended&&(Je.length<Je.highWaterMark||Je.flowing&&Je.length===0);){var Xe=Je.length;if(ae("maybeReadMore read 0"),rt.read(0),Xe===Je.length)break}Je.readingMore=!1}ut.prototype._read=function(rt){Qe(this,new Ae("_read()"))},ut.prototype.pipe=function(rt,Je){var Xe=this,Ve=this._readableState;switch(Ve.pipesCount){case 0:Ve.pipes=rt;break;case 1:Ve.pipes=[Ve.pipes,rt];break;default:Ve.pipes.push(rt);break}Ve.pipesCount+=1,ae("pipe count=%d opts=%j",Ve.pipesCount,Je);var tt=(!Je||Je.end!==!1)&&rt!==ve.stdout&&rt!==ve.stderr,Ze=tt?De:Vt;Ve.endEmitted?ve.nextTick(Ze):Xe.once("end",Ze),rt.on("unpipe",je);function je(en,on){ae("onunpipe"),en===Xe&&on&&on.hasUnpiped===!1&&(on.hasUnpiped=!0,Ke())}function De(){ae("onend"),rt.end()}var Ye=Ft(Xe);rt.on("drain",Ye);var dt=!1;function Ke(){ae("cleanup"),rt.removeListener("close",_t),rt.removeListener("finish",Ot),rt.removeListener("drain",Ye),rt.removeListener("error",zt),rt.removeListener("unpipe",je),Xe.removeListener("end",De),Xe.removeListener("end",Vt),Xe.removeListener("data",At),dt=!0,Ve.awaitDrain&&(!rt._writableState||rt._writableState.needDrain)&&Ye()}Xe.on("data",At);function At(en){ae("ondata");var on=rt.write(en);ae("dest.write",on),on===!1&&((Ve.pipesCount===1&&Ve.pipes===rt||Ve.pipesCount>1&&gt(Ve.pipes,rt)!==-1)&&!dt&&(ae("false write response, pause",Ve.awaitDrain),Ve.awaitDrain++),Xe.pause())}function zt(en){ae("onerror",en),Vt(),rt.removeListener("error",zt),ye(rt,"error")===0&&Qe(rt,en)}$e(rt,"error",zt);function _t(){rt.removeListener("finish",Ot),Vt()}rt.once("close",_t);function Ot(){ae("onfinish"),rt.removeListener("close",_t),Vt()}rt.once("finish",Ot);function Vt(){ae("unpipe"),Xe.unpipe(rt)}return rt.emit("pipe",Xe),Ve.flowing||(ae("pipe resume"),Xe.resume()),rt};function Ft(rt){return function(){var Xe=rt._readableState;ae("pipeOnDrain",Xe.awaitDrain),Xe.awaitDrain&&Xe.awaitDrain--,Xe.awaitDrain===0&&ye(rt,"data")&&(Xe.flowing=!0,Ct(rt))}}ut.prototype.unpipe=function(rt){var Je=this._readableState,Xe={hasUnpiped:!1};if(Je.pipesCount===0)return this;if(Je.pipesCount===1)return rt&&rt!==Je.pipes?this:(rt||(rt=Je.pipes),Je.pipes=null,Je.pipesCount=0,Je.flowing=!1,rt&&rt.emit("unpipe",this,Xe),this);if(!rt){var Ve=Je.pipes,tt=Je.pipesCount;Je.pipes=null,Je.pipesCount=0,Je.flowing=!1;for(var Ze=0;Ze<tt;Ze++)Ve[Ze].emit("unpipe",this,{hasUnpiped:!1});return this}var je=gt(Je.pipes,rt);return je===-1?this:(Je.pipes.splice(je,1),Je.pipesCount-=1,Je.pipesCount===1&&(Je.pipes=Je.pipes[0]),rt.emit("unpipe",this,Xe),this)},ut.prototype.on=function(rt,Je){var Xe=be.prototype.on.call(this,rt,Je),Ve=this._readableState;return rt==="data"?(Ve.readableListening=this.listenerCount("readable")>0,Ve.flowing!==!1&&this.resume()):rt==="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?mt(this):Ve.reading||ve.nextTick(Pt,this)),Xe},ut.prototype.addListener=ut.prototype.on,ut.prototype.removeListener=function(rt,Je){var Xe=be.prototype.removeListener.call(this,rt,Je);return rt==="readable"&&ve.nextTick(Kt,this),Xe},ut.prototype.removeAllListeners=function(rt){var Je=be.prototype.removeAllListeners.apply(this,arguments);return(rt==="readable"||rt===void 0)&&ve.nextTick(Kt,this),Je};function Kt(rt){var Je=rt._readableState;Je.readableListening=rt.listenerCount("readable")>0,Je.resumeScheduled&&!Je.paused?Je.flowing=!0:rt.listenerCount("data")>0&&rt.resume()}function Pt(rt){ae("readable nexttick read 0"),rt.read(0)}ut.prototype.resume=function(){var rt=this._readableState;return rt.flowing||(ae("resume"),rt.flowing=!rt.readableListening,Et(this,rt)),rt.paused=!1,this};function Et(rt,Je){Je.resumeScheduled||(Je.resumeScheduled=!0,ve.nextTick(at,rt,Je))}function at(rt,Je){ae("resume",Je.reading),Je.reading||rt.read(0),Je.resumeScheduled=!1,rt.emit("resume"),Ct(rt),Je.flowing&&!Je.reading&&rt.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 Ct(rt){var Je=rt._readableState;for(ae("flow",Je.flowing);Je.flowing&&rt.read()!==null;);}ut.prototype.wrap=function(rt){var Je=this,Xe=this._readableState,Ve=!1;rt.on("end",function(){if(ae("wrapped end"),Xe.decoder&&!Xe.ended){var je=Xe.decoder.end();je&&je.length&&Je.push(je)}Je.push(null)}),rt.on("data",function(je){if(ae("wrapped data"),Xe.decoder&&(je=Xe.decoder.write(je)),!(Xe.objectMode&&je==null)&&!(!Xe.objectMode&&(!je||!je.length))){var De=Je.push(je);De||(Ve=!0,rt.pause())}});for(var tt in rt)this[tt]===void 0&&typeof rt[tt]=="function"&&(this[tt]=function(De){return function(){return rt[De].apply(rt,arguments)}}(tt));for(var Ze=0;Ze<He.length;Ze++)rt.on(He[Ze],this.emit.bind(this,He[Ze]));return this._read=function(je){ae("wrapped _read",je),Ve&&(Ve=!1,rt.resume())},this},typeof Symbol=="function"&&(ut.prototype[Symbol.asyncIterator]=function(){return Be===void 0&&(Be=oe("./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(Je){this._readableState&&(this._readableState.flowing=Je)}}),ut._fromList=nt,Object.defineProperty(ut.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function nt(rt,Je){if(Je.length===0)return null;var Xe;return Je.objectMode?Xe=Je.buffer.shift():!rt||rt>=Je.length?(Je.decoder?Xe=Je.buffer.join(""):Je.buffer.length===1?Xe=Je.buffer.first():Xe=Je.buffer.concat(Je.length),Je.buffer.clear()):Xe=Je.buffer.consume(rt,Je.decoder),Xe}function ht(rt){var Je=rt._readableState;ae("endReadable",Je.endEmitted),Je.endEmitted||(Je.ended=!0,ve.nextTick(Mt,Je,rt))}function Mt(rt,Je){if(ae("endReadableNT",rt.endEmitted,rt.length),!rt.endEmitted&&rt.length===0&&(rt.endEmitted=!0,Je.readable=!1,Je.emit("end"),rt.autoDestroy)){var Xe=Je._writableState;(!Xe||Xe.autoDestroy&&Xe.finished)&&Je.destroy()}}typeof Symbol=="function"&&(ut.from=function(rt,Je){return Re===void 0&&(Re=oe("./internal/streams/from")),Re(ut,rt,Je)});function gt(rt,Je){for(var Xe=0,Ve=rt.length;Xe<Ve;Xe++)if(rt[Xe]===Je)return Xe;return-1}}).call(this)}).call(this,oe("_process"),typeof mn!="undefined"?mn: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(oe,Ue,Oe){"use strict";Ue.exports=xe;var ve=oe("../errors").codes,ce=ve.ERR_METHOD_NOT_IMPLEMENTED,Ce=ve.ERR_MULTIPLE_CALLBACK,Ee=ve.ERR_TRANSFORM_ALREADY_TRANSFORMING,ye=ve.ERR_TRANSFORM_WITH_LENGTH_0,be=oe("./_stream_duplex");oe("inherits")(xe,be);function me(ee,ae){var re=this._transformState;re.transforming=!1;var le=re.writecb;if(le===null)return this.emit("error",new Ce);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);be.call(this,ee),this._transformState={afterTransform:me.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,be.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){be.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(oe,Ue,Oe){(function(ve,ce){(function(){"use strict";Ue.exports=qe;function Ce(Ct,nt,ht){this.chunk=Ct,this.encoding=nt,this.callback=ht,this.next=null}function Ee(Ct){var nt=this;this.next=null,this.entry=null,this.finish=function(){at(nt,Ct)}}var ye;qe.WritableState=He;var be={deprecate:oe("util-deprecate")},me=oe("./internal/streams/stream"),xe=oe("buffer").Buffer,fe=(typeof ce!="undefined"?ce:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function z(Ct){return xe.from(Ct)}function ee(Ct){return xe.isBuffer(Ct)||Ct instanceof fe}var ae=oe("./internal/streams/destroy"),re=oe("./internal/streams/state"),le=re.getHighWaterMark,ue=oe("../errors").codes,pe=ue.ERR_INVALID_ARG_TYPE,Pe=ue.ERR_METHOD_NOT_IMPLEMENTED,we=ue.ERR_MULTIPLE_CALLBACK,Ne=ue.ERR_STREAM_CANNOT_PIPE,Ae=ue.ERR_STREAM_DESTROYED,Te=ue.ERR_STREAM_NULL_VALUES,Me=ue.ERR_STREAM_WRITE_AFTER_END,Be=ue.ERR_UNKNOWN_ENCODING,Re=ae.errorOrDestroy;oe("inherits")(qe,me);function Qe(){}function He(Ct,nt,ht){ye=ye||oe("./_stream_duplex"),Ct=Ct||{},typeof ht!="boolean"&&(ht=nt instanceof ye),this.objectMode=!!Ct.objectMode,ht&&(this.objectMode=this.objectMode||!!Ct.writableObjectMode),this.highWaterMark=le(this,Ct,"writableHighWaterMark",ht),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Mt=Ct.decodeStrings===!1;this.decodeStrings=!Mt,this.defaultEncoding=Ct.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(gt){wt(nt,gt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ct.emitClose!==!1,this.autoDestroy=!!Ct.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ee(this)}He.prototype.getBuffer=function(){for(var nt=this.bufferedRequest,ht=[];nt;)ht.push(nt),nt=nt.next;return ht},function(){try{Object.defineProperty(He.prototype,"buffer",{get:be.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ct){}}();var $e;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($e=Function.prototype[Symbol.hasInstance],Object.defineProperty(qe,Symbol.hasInstance,{value:function(nt){return $e.call(this,nt)?!0:this!==qe?!1:nt&&nt._writableState instanceof He}})):$e=function(nt){return nt instanceof this};function qe(Ct){ye=ye||oe("./_stream_duplex");var nt=this instanceof ye;if(!nt&&!$e.call(qe,this))return new qe(Ct);this._writableState=new He(Ct,this,nt),this.writable=!0,Ct&&(typeof Ct.write=="function"&&(this._write=Ct.write),typeof Ct.writev=="function"&&(this._writev=Ct.writev),typeof Ct.destroy=="function"&&(this._destroy=Ct.destroy),typeof Ct.final=="function"&&(this._final=Ct.final)),me.call(this)}qe.prototype.pipe=function(){Re(this,new Ne)};function ut(Ct,nt){var ht=new Me;Re(Ct,ht),ve.nextTick(nt,ht)}function ct(Ct,nt,ht,Mt){var gt;return ht===null?gt=new Te:typeof ht!="string"&&!nt.objectMode&&(gt=new pe("chunk",["string","Buffer"],ht)),gt?(Re(Ct,gt),ve.nextTick(Mt,gt),!1):!0}qe.prototype.write=function(Ct,nt,ht){var Mt=this._writableState,gt=!1,rt=!Mt.objectMode&&ee(Ct);return rt&&!xe.isBuffer(Ct)&&(Ct=z(Ct)),typeof nt=="function"&&(ht=nt,nt=null),rt?nt="buffer":nt||(nt=Mt.defaultEncoding),typeof ht!="function"&&(ht=Qe),Mt.ending?ut(this,ht):(rt||ct(this,Mt,Ct,ht))&&(Mt.pendingcb++,gt=_e(this,Mt,rt,Ct,nt,ht)),gt},qe.prototype.cork=function(){this._writableState.corked++},qe.prototype.uncork=function(){var Ct=this._writableState;Ct.corked&&(Ct.corked--,!Ct.writing&&!Ct.corked&&!Ct.bufferProcessing&&Ct.bufferedRequest&&St(this,Ct))},qe.prototype.setDefaultEncoding=function(nt){if(typeof nt=="string"&&(nt=nt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((nt+"").toLowerCase())>-1))throw new Be(nt);return this._writableState.defaultEncoding=nt,this},Object.defineProperty(qe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function yt(Ct,nt,ht){return!Ct.objectMode&&Ct.decodeStrings!==!1&&typeof nt=="string"&&(nt=xe.from(nt,ht)),nt}Object.defineProperty(qe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _e(Ct,nt,ht,Mt,gt,rt){if(!ht){var Je=yt(nt,Mt,gt);Mt!==Je&&(ht=!0,gt="buffer",Mt=Je)}var Xe=nt.objectMode?1:Mt.length;nt.length+=Xe;var Ve=nt.length<nt.highWaterMark;if(Ve||(nt.needDrain=!0),nt.writing||nt.corked){var tt=nt.lastBufferedRequest;nt.lastBufferedRequest={chunk:Mt,encoding:gt,isBuf:ht,callback:rt,next:null},tt?tt.next=nt.lastBufferedRequest:nt.bufferedRequest=nt.lastBufferedRequest,nt.bufferedRequestCount+=1}else st(Ct,nt,!1,Xe,Mt,gt,rt);return Ve}function st(Ct,nt,ht,Mt,gt,rt,Je){nt.writelen=Mt,nt.writecb=Je,nt.writing=!0,nt.sync=!0,nt.destroyed?nt.onwrite(new Ae("write")):ht?Ct._writev(gt,nt.onwrite):Ct._write(gt,rt,nt.onwrite),nt.sync=!1}function pt(Ct,nt,ht,Mt,gt){--nt.pendingcb,ht?(ve.nextTick(gt,Mt),ve.nextTick(Pt,Ct,nt),Ct._writableState.errorEmitted=!0,Re(Ct,Mt)):(gt(Mt),Ct._writableState.errorEmitted=!0,Re(Ct,Mt),Pt(Ct,nt))}function bt(Ct){Ct.writing=!1,Ct.writecb=null,Ct.length-=Ct.writelen,Ct.writelen=0}function wt(Ct,nt){var ht=Ct._writableState,Mt=ht.sync,gt=ht.writecb;if(typeof gt!="function")throw new we;if(bt(ht),nt)pt(Ct,ht,Mt,nt,gt);else{var rt=Nt(ht)||Ct.destroyed;!rt&&!ht.corked&&!ht.bufferProcessing&&ht.bufferedRequest&&St(Ct,ht),Mt?ve.nextTick(mt,Ct,ht,rt,gt):mt(Ct,ht,rt,gt)}}function mt(Ct,nt,ht,Mt){ht||vt(Ct,nt),nt.pendingcb--,Mt(),Pt(Ct,nt)}function vt(Ct,nt){nt.length===0&&nt.needDrain&&(nt.needDrain=!1,Ct.emit("drain"))}function St(Ct,nt){nt.bufferProcessing=!0;var ht=nt.bufferedRequest;if(Ct._writev&&ht&&ht.next){var Mt=nt.bufferedRequestCount,gt=new Array(Mt),rt=nt.corkedRequestsFree;rt.entry=ht;for(var Je=0,Xe=!0;ht;)gt[Je]=ht,ht.isBuf||(Xe=!1),ht=ht.next,Je+=1;gt.allBuffers=Xe,st(Ct,nt,!0,nt.length,gt,"",rt.finish),nt.pendingcb++,nt.lastBufferedRequest=null,rt.next?(nt.corkedRequestsFree=rt.next,rt.next=null):nt.corkedRequestsFree=new Ee(nt),nt.bufferedRequestCount=0}else{for(;ht;){var Ve=ht.chunk,tt=ht.encoding,Ze=ht.callback,je=nt.objectMode?1:Ve.length;if(st(Ct,nt,!1,je,Ve,tt,Ze),ht=ht.next,nt.bufferedRequestCount--,nt.writing)break}ht===null&&(nt.lastBufferedRequest=null)}nt.bufferedRequest=ht,nt.bufferProcessing=!1}qe.prototype._write=function(Ct,nt,ht){ht(new Pe("_write()"))},qe.prototype._writev=null,qe.prototype.end=function(Ct,nt,ht){var Mt=this._writableState;return typeof Ct=="function"?(ht=Ct,Ct=null,nt=null):typeof nt=="function"&&(ht=nt,nt=null),Ct!=null&&this.write(Ct,nt),Mt.corked&&(Mt.corked=1,this.uncork()),Mt.ending||Et(this,Mt,ht),this},Object.defineProperty(qe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Nt(Ct){return Ct.ending&&Ct.length===0&&Ct.bufferedRequest===null&&!Ct.finished&&!Ct.writing}function Ft(Ct,nt){Ct._final(function(ht){nt.pendingcb--,ht&&Re(Ct,ht),nt.prefinished=!0,Ct.emit("prefinish"),Pt(Ct,nt)})}function Kt(Ct,nt){!nt.prefinished&&!nt.finalCalled&&(typeof Ct._final=="function"&&!nt.destroyed?(nt.pendingcb++,nt.finalCalled=!0,ve.nextTick(Ft,Ct,nt)):(nt.prefinished=!0,Ct.emit("prefinish")))}function Pt(Ct,nt){var ht=Nt(nt);if(ht&&(Kt(Ct,nt),nt.pendingcb===0&&(nt.finished=!0,Ct.emit("finish"),nt.autoDestroy))){var Mt=Ct._readableState;(!Mt||Mt.autoDestroy&&Mt.endEmitted)&&Ct.destroy()}return ht}function Et(Ct,nt,ht){nt.ending=!0,Pt(Ct,nt),ht&&(nt.finished?ve.nextTick(ht):Ct.once("finish",ht)),nt.ended=!0,Ct.writable=!1}function at(Ct,nt,ht){var Mt=Ct.entry;for(Ct.entry=null;Mt;){var gt=Mt.callback;nt.pendingcb--,gt(ht),Mt=Mt.next}nt.corkedRequestsFree.next=Ct}Object.defineProperty(qe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(nt){this._writableState&&(this._writableState.destroyed=nt)}}),qe.prototype.destroy=ae.destroy,qe.prototype._undestroy=ae.undestroy,qe.prototype._destroy=function(Ct,nt){nt(Ct)}}).call(this)}).call(this,oe("_process"),typeof mn!="undefined"?mn: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(oe,Ue,Oe){(function(ve){(function(){"use strict";var ce;function Ce(Te,Me,Be){return Me=Ee(Me),Me in Te?Object.defineProperty(Te,Me,{value:Be,enumerable:!0,configurable:!0,writable:!0}):Te[Me]=Be,Te}function Ee(Te){var Me=ye(Te,"string");return typeof Me=="symbol"?Me:String(Me)}function ye(Te,Me){if(typeof Te!="object"||Te===null)return Te;var Be=Te[Symbol.toPrimitive];if(Be!==void 0){var Re=Be.call(Te,Me||"default");if(typeof Re!="object")return Re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Me==="string"?String:Number)(Te)}var be=oe("./end-of-stream"),me=Symbol("lastResolve"),xe=Symbol("lastReject"),fe=Symbol("error"),z=Symbol("ended"),ee=Symbol("lastPromise"),ae=Symbol("handlePromise"),re=Symbol("stream");function le(Te,Me){return{value:Te,done:Me}}function ue(Te){var Me=Te[me];if(Me!==null){var Be=Te[re].read();Be!==null&&(Te[ee]=null,Te[me]=null,Te[xe]=null,Me(le(Be,!1)))}}function pe(Te){ve.nextTick(ue,Te)}function Pe(Te,Me){return function(Be,Re){Te.then(function(){if(Me[z]){Be(le(void 0,!0));return}Me[ae](Be,Re)},Re)}}var we=Object.getPrototypeOf(function(){}),Ne=Object.setPrototypeOf((ce={get stream(){return this[re]},next:function(){var Me=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($e,qe){ve.nextTick(function(){Me[fe]?qe(Me[fe]):$e(le(void 0,!0))})});var Re=this[ee],Qe;if(Re)Qe=new Promise(Pe(Re,this));else{var He=this[re].read();if(He!==null)return Promise.resolve(le(He,!1));Qe=new Promise(this[ae])}return this[ee]=Qe,Qe}},Ce(ce,Symbol.asyncIterator,function(){return this}),Ce(ce,"return",function(){var Me=this;return new Promise(function(Be,Re){Me[re].destroy(null,function(Qe){if(Qe){Re(Qe);return}Be(le(void 0,!0))})})}),ce),we),Ae=function(Me){var Be,Re=Object.create(Ne,(Be={},Ce(Be,re,{value:Me,writable:!0}),Ce(Be,me,{value:null,writable:!0}),Ce(Be,xe,{value:null,writable:!0}),Ce(Be,fe,{value:null,writable:!0}),Ce(Be,z,{value:Me._readableState.endEmitted,writable:!0}),Ce(Be,ae,{value:function(He,$e){var qe=Re[re].read();qe?(Re[ee]=null,Re[me]=null,Re[xe]=null,He(le(qe,!1))):(Re[me]=He,Re[xe]=$e)},writable:!0}),Be));return Re[ee]=null,be(Me,function(Qe){if(Qe&&Qe.code!=="ERR_STREAM_PREMATURE_CLOSE"){var He=Re[xe];He!==null&&(Re[ee]=null,Re[me]=null,Re[xe]=null,He(Qe)),Re[fe]=Qe;return}var $e=Re[me];$e!==null&&(Re[ee]=null,Re[me]=null,Re[xe]=null,$e(le(void 0,!0))),Re[z]=!0}),Me.on("readable",pe.bind(null,Re)),Re};Ue.exports=Ae}).call(this)}).call(this,oe("_process"))},{"./end-of-stream":408,_process:467}],406:[function(oe,Ue,Oe){"use strict";function ve(ue,pe){var Pe=Object.keys(ue);if(Object.getOwnPropertySymbols){var we=Object.getOwnPropertySymbols(ue);pe&&(we=we.filter(function(Ne){return Object.getOwnPropertyDescriptor(ue,Ne).enumerable})),Pe.push.apply(Pe,we)}return Pe}function ce(ue){for(var pe=1;pe<arguments.length;pe++){var Pe=arguments[pe]!=null?arguments[pe]:{};pe%2?ve(Object(Pe),!0).forEach(function(we){Ce(ue,we,Pe[we])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Pe)):ve(Object(Pe)).forEach(function(we){Object.defineProperty(ue,we,Object.getOwnPropertyDescriptor(Pe,we))})}return ue}function Ce(ue,pe,Pe){return pe=me(pe),pe in ue?Object.defineProperty(ue,pe,{value:Pe,enumerable:!0,configurable:!0,writable:!0}):ue[pe]=Pe,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 Pe=0;Pe<pe.length;Pe++){var we=pe[Pe];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ue,me(we.key),we)}}function be(ue,pe,Pe){return pe&&ye(ue.prototype,pe),Pe&&ye(ue,Pe),Object.defineProperty(ue,"prototype",{writable:!1}),ue}function me(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 Pe=ue[Symbol.toPrimitive];if(Pe!==void 0){var we=Pe.call(ue,pe||"default");if(typeof we!="object")return we;throw new TypeError("@@toPrimitive must return a primitive value.")}return(pe==="string"?String:Number)(ue)}var fe=oe("buffer"),z=fe.Buffer,ee=oe("util"),ae=ee.inspect,re=ae&&ae.custom||"inspect";function le(ue,pe,Pe){z.prototype.copy.call(ue,pe,Pe)}Ue.exports=function(){function ue(){Ee(this,ue),this.head=null,this.tail=null,this.length=0}return be(ue,[{key:"push",value:function(Pe){var we={data:Pe,next:null};this.length>0?this.tail.next=we:this.head=we,this.tail=we,++this.length}},{key:"unshift",value:function(Pe){var we={data:Pe,next:this.head};this.length===0&&(this.tail=we),this.head=we,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Pe=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Pe}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Pe){if(this.length===0)return"";for(var we=this.head,Ne=""+we.data;we=we.next;)Ne+=Pe+we.data;return Ne}},{key:"concat",value:function(Pe){if(this.length===0)return z.alloc(0);for(var we=z.allocUnsafe(Pe>>>0),Ne=this.head,Ae=0;Ne;)le(Ne.data,we,Ae),Ae+=Ne.data.length,Ne=Ne.next;return we}},{key:"consume",value:function(Pe,we){var Ne;return Pe<this.head.data.length?(Ne=this.head.data.slice(0,Pe),this.head.data=this.head.data.slice(Pe)):Pe===this.head.data.length?Ne=this.shift():Ne=we?this._getString(Pe):this._getBuffer(Pe),Ne}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Pe){var we=this.head,Ne=1,Ae=we.data;for(Pe-=Ae.length;we=we.next;){var Te=we.data,Me=Pe>Te.length?Te.length:Pe;if(Me===Te.length?Ae+=Te:Ae+=Te.slice(0,Pe),Pe-=Me,Pe===0){Me===Te.length?(++Ne,we.next?this.head=we.next:this.head=this.tail=null):(this.head=we,we.data=Te.slice(Me));break}++Ne}return this.length-=Ne,Ae}},{key:"_getBuffer",value:function(Pe){var we=z.allocUnsafe(Pe),Ne=this.head,Ae=1;for(Ne.data.copy(we),Pe-=Ne.data.length;Ne=Ne.next;){var Te=Ne.data,Me=Pe>Te.length?Te.length:Pe;if(Te.copy(we,we.length-Pe,0,Me),Pe-=Me,Pe===0){Me===Te.length?(++Ae,Ne.next?this.head=Ne.next:this.head=this.tail=null):(this.head=Ne,Ne.data=Te.slice(Me));break}++Ae}return this.length-=Ae,we}},{key:re,value:function(Pe,we){return ae(this,ce(ce({},we),{},{depth:0,customInspect:!1}))}}]),ue}()},{buffer:90,util:89}],407:[function(oe,Ue,Oe){(function(ve){(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,ve.nextTick(be,this,xe)):ve.nextTick(be,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?ve.nextTick(Ee,z):(z._writableState.errorEmitted=!0,ve.nextTick(Ce,z,re)):ve.nextTick(Ce,z,re):fe?(ve.nextTick(Ee,z),fe(re)):ve.nextTick(Ee,z)}),this)}function Ce(xe,fe){be(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 be(xe,fe){xe.emit("error",fe)}function me(xe,fe){var z=xe._readableState,ee=xe._writableState;z&&z.autoDestroy||ee&&ee.autoDestroy?xe.destroy(fe):xe.emit("error",fe)}Ue.exports={destroy:ce,undestroy:ye,errorOrDestroy:me}}).call(this)}).call(this,oe("_process"))},{_process:467}],408:[function(oe,Ue,Oe){"use strict";var ve=oe("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function ce(be){var me=!1;return function(){if(!me){me=!0;for(var xe=arguments.length,fe=new Array(xe),z=0;z<xe;z++)fe[z]=arguments[z];be.apply(this,fe)}}}function Ce(){}function Ee(be){return be.setHeader&&typeof be.abort=="function"}function ye(be,me,xe){if(typeof me=="function")return ye(be,null,me);me||(me={}),xe=ce(xe||Ce);var fe=me.readable||me.readable!==!1&&be.readable,z=me.writable||me.writable!==!1&&be.writable,ee=function(){be.writable||re()},ae=be._writableState&&be._writableState.finished,re=function(){z=!1,ae=!0,fe||xe.call(be)},le=be._readableState&&be._readableState.endEmitted,ue=function(){fe=!1,le=!0,z||xe.call(be)},pe=function(Ae){xe.call(be,Ae)},Pe=function(){var Ae;if(fe&&!le)return(!be._readableState||!be._readableState.ended)&&(Ae=new ve),xe.call(be,Ae);if(z&&!ae)return(!be._writableState||!be._writableState.ended)&&(Ae=new ve),xe.call(be,Ae)},we=function(){be.req.on("finish",re)};return Ee(be)?(be.on("complete",re),be.on("abort",Pe),be.req?we():be.on("request",we)):z&&!be._writableState&&(be.on("end",ee),be.on("close",ee)),be.on("end",ue),be.on("finish",re),me.error!==!1&&be.on("error",pe),be.on("close",Pe),function(){be.removeListener("complete",re),be.removeListener("abort",Pe),be.removeListener("request",we),be.req&&be.req.removeListener("finish",re),be.removeListener("end",ee),be.removeListener("close",ee),be.removeListener("finish",re),be.removeListener("end",ue),be.removeListener("error",pe),be.removeListener("close",Pe)}}Ue.exports=ye},{"../../../errors":399}],409:[function(oe,Ue,Oe){Ue.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(oe,Ue,Oe){"use strict";var ve;function ce(re){var le=!1;return function(){le||(le=!0,re.apply(void 0,arguments))}}var Ce=oe("../../../errors").codes,Ee=Ce.ERR_MISSING_ARGS,ye=Ce.ERR_STREAM_DESTROYED;function be(re){if(re)throw re}function me(re){return re.setHeader&&typeof re.abort=="function"}function xe(re,le,ue,pe){pe=ce(pe);var Pe=!1;re.on("close",function(){Pe=!0}),ve===void 0&&(ve=oe("./end-of-stream")),ve(re,{readable:le,writable:ue},function(Ne){if(Ne)return pe(Ne);Pe=!0,pe()});var we=!1;return function(Ne){if(!Pe&&!we){if(we=!0,me(re))return re.abort();if(typeof re.destroy=="function")return re.destroy();pe(Ne||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"?be: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 Pe,we=le.map(function(Ne,Ae){var Te=Ae<le.length-1,Me=Ae>0;return xe(Ne,Te,Me,function(Be){Pe||(Pe=Be),Be&&we.forEach(fe),!Te&&(we.forEach(fe),pe(Pe))})});return le.reduce(z)}Ue.exports=ae},{"../../../errors":399,"./end-of-stream":408}],411:[function(oe,Ue,Oe){"use strict";var ve=oe("../../../errors").codes.ERR_INVALID_OPT_VALUE;function ce(Ee,ye,be){return Ee.highWaterMark!=null?Ee.highWaterMark:ye?Ee[be]:null}function Ce(Ee,ye,be,me){var xe=ce(ye,me,be);if(xe!=null){if(!(isFinite(xe)&&Math.floor(xe)===xe)||xe<0){var fe=me?be:"highWaterMark";throw new ve(fe,xe)}return Math.floor(xe)}return Ee.objectMode?16:16*1024}Ue.exports={getHighWaterMark:Ce}},{"../../../errors":399}],412:[function(oe,Ue,Oe){arguments[4][393][0].apply(Oe,arguments)},{dup:393,events:344}],413:[function(oe,Ue,Oe){"use strict";var ve=oe("safe-buffer").Buffer,ce=ve.isEncoding||function(we){switch(we=""+we,we&&we.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 Ce(we){if(!we)return"utf8";for(var Ne;;)switch(we){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 we;default:if(Ne)return;we=(""+we).toLowerCase(),Ne=!0}}function Ee(we){var Ne=Ce(we);if(typeof Ne!="string"&&(ve.isEncoding===ce||!ce(we)))throw new Error("Unknown encoding: "+we);return Ne||we}Oe.StringDecoder=ye;function ye(we){this.encoding=Ee(we);var Ne;switch(this.encoding){case"utf16le":this.text=ae,this.end=re,Ne=4;break;case"utf8":this.fillLast=fe,Ne=4;break;case"base64":this.text=le,this.end=ue,Ne=3;break;default:this.write=pe,this.end=Pe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ve.allocUnsafe(Ne)}ye.prototype.write=function(we){if(we.length===0)return"";var Ne,Ae;if(this.lastNeed){if(Ne=this.fillLast(we),Ne===void 0)return"";Ae=this.lastNeed,this.lastNeed=0}else Ae=0;return Ae<we.length?Ne?Ne+this.text(we,Ae):this.text(we,Ae):Ne||""},ye.prototype.end=ee,ye.prototype.text=z,ye.prototype.fillLast=function(we){if(this.lastNeed<=we.length)return we.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);we.copy(this.lastChar,this.lastTotal-this.lastNeed,0,we.length),this.lastNeed-=we.length};function be(we){return we<=127?0:we>>5===6?2:we>>4===14?3:we>>3===30?4:we>>6===2?-1:-2}function me(we,Ne,Ae){var Te=Ne.length-1;if(Te<Ae)return 0;var Me=be(Ne[Te]);return Me>=0?(Me>0&&(we.lastNeed=Me-1),Me):--Te<Ae||Me===-2?0:(Me=be(Ne[Te]),Me>=0?(Me>0&&(we.lastNeed=Me-2),Me):--Te<Ae||Me===-2?0:(Me=be(Ne[Te]),Me>=0?(Me>0&&(Me===2?Me=0:we.lastNeed=Me-3),Me):0))}function xe(we,Ne,Ae){if((Ne[0]&192)!==128)return we.lastNeed=0,"\uFFFD";if(we.lastNeed>1&&Ne.length>1){if((Ne[1]&192)!==128)return we.lastNeed=1,"\uFFFD";if(we.lastNeed>2&&Ne.length>2&&(Ne[2]&192)!==128)return we.lastNeed=2,"\uFFFD"}}function fe(we){var Ne=this.lastTotal-this.lastNeed,Ae=xe(this,we,Ne);if(Ae!==void 0)return Ae;if(this.lastNeed<=we.length)return we.copy(this.lastChar,Ne,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);we.copy(this.lastChar,Ne,0,we.length),this.lastNeed-=we.length}function z(we,Ne){var Ae=me(this,we,Ne);if(!this.lastNeed)return we.toString("utf8",Ne);this.lastTotal=Ae;var Te=we.length-(Ae-this.lastNeed);return we.copy(this.lastChar,0,Te),we.toString("utf8",Ne,Te)}function ee(we){var Ne=we&&we.length?this.write(we):"";return this.lastNeed?Ne+"\uFFFD":Ne}function ae(we,Ne){if((we.length-Ne)%2===0){var Ae=we.toString("utf16le",Ne);if(Ae){var Te=Ae.charCodeAt(Ae.length-1);if(Te>=55296&&Te<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=we[we.length-2],this.lastChar[1]=we[we.length-1],Ae.slice(0,-1)}return Ae}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=we[we.length-1],we.toString("utf16le",Ne,we.length-1)}function re(we){var Ne=we&&we.length?this.write(we):"";if(this.lastNeed){var Ae=this.lastTotal-this.lastNeed;return Ne+this.lastChar.toString("utf16le",0,Ae)}return Ne}function le(we,Ne){var Ae=(we.length-Ne)%3;return Ae===0?we.toString("base64",Ne):(this.lastNeed=3-Ae,this.lastTotal=3,Ae===1?this.lastChar[0]=we[we.length-1]:(this.lastChar[0]=we[we.length-2],this.lastChar[1]=we[we.length-1]),we.toString("base64",Ne,we.length-Ae))}function ue(we){var Ne=we&&we.length?this.write(we):"";return this.lastNeed?Ne+this.lastChar.toString("base64",0,3-this.lastNeed):Ne}function pe(we){return we.toString(this.encoding)}function Pe(we){return we&&we.length?this.write(we):""}},{"safe-buffer":396}],414:[function(oe,Ue,Oe){(function(ve,ce){(function(){var Ce=oe("process/browser.js").nextTick,Ee=Function.prototype.apply,ye=Array.prototype.slice,be={},me=0;Oe.setTimeout=function(){return new xe(Ee.call(setTimeout,window,arguments),clearTimeout)},Oe.setInterval=function(){return new xe(Ee.call(setInterval,window,arguments),clearInterval)},Oe.clearTimeout=Oe.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)},Oe.enroll=function(fe,z){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=z},Oe.unenroll=function(fe){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=-1},Oe._unrefActive=Oe.active=function(fe){clearTimeout(fe._idleTimeoutId);var z=fe._idleTimeout;z>=0&&(fe._idleTimeoutId=setTimeout(function(){fe._onTimeout&&fe._onTimeout()},z))},Oe.setImmediate=typeof ve=="function"?ve:function(fe){var z=me++,ee=arguments.length<2?!1:ye.call(arguments,1);return be[z]=!0,Ce(function(){be[z]&&(ee?fe.apply(null,ee):fe.call(null),Oe.clearImmediate(z))}),z},Oe.clearImmediate=typeof ce=="function"?ce:function(fe){delete be[fe]}}).call(this)}).call(this,oe("timers").setImmediate,oe("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(oe,Ue,Oe){var ve=oe("buffer").Buffer;Ue.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(ve.isBuffer(ce)){for(var Ce=new Uint8Array(ce.length),Ee=ce.length,ye=0;ye<Ee;ye++)Ce[ye]=ce[ye];return Ce.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(oe,Ue,Oe){(function(ve){(function(){Ue.exports=ce;function ce(Ee,ye){if(Ce("noDeprecation"))return Ee;var be=!1;function me(){if(!be){if(Ce("throwDeprecation"))throw new Error(ye);Ce("traceDeprecation")?console.trace(ye):console.warn(ye),be=!0}return Ee.apply(this,arguments)}return me}function Ce(Ee){try{if(!ve.localStorage)return!1}catch(be){return!1}var ye=ve.localStorage[Ee];return ye==null?!1:String(ye).toLowerCase()==="true"}}).call(this)}).call(this,typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(oe,Ue,Oe){arguments[4][84][0].apply(Oe,arguments)},{dup:84}],418:[function(oe,Ue,Oe){"use strict";var ve=oe("is-arguments"),ce=oe("is-generator-function"),Ce=oe("which-typed-array"),Ee=oe("is-typed-array");function ye(tt){return tt.call.bind(tt)}var be=typeof BigInt!="undefined",me=typeof Symbol!="undefined",xe=ye(Object.prototype.toString),fe=ye(Number.prototype.valueOf),z=ye(String.prototype.valueOf),ee=ye(Boolean.prototype.valueOf);if(be)var ae=ye(BigInt.prototype.valueOf);if(me)var re=ye(Symbol.prototype.valueOf);function le(tt,Ze){if(typeof tt!="object")return!1;try{return Ze(tt),!0}catch(je){return!1}}Oe.isArgumentsObject=ve,Oe.isGeneratorFunction=ce,Oe.isTypedArray=Ee;function ue(tt){return typeof Promise!="undefined"&&tt instanceof Promise||tt!==null&&typeof tt=="object"&&typeof tt.then=="function"&&typeof tt.catch=="function"}Oe.isPromise=ue;function pe(tt){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(tt):Ee(tt)||St(tt)}Oe.isArrayBufferView=pe;function Pe(tt){return Ce(tt)==="Uint8Array"}Oe.isUint8Array=Pe;function we(tt){return Ce(tt)==="Uint8ClampedArray"}Oe.isUint8ClampedArray=we;function Ne(tt){return Ce(tt)==="Uint16Array"}Oe.isUint16Array=Ne;function Ae(tt){return Ce(tt)==="Uint32Array"}Oe.isUint32Array=Ae;function Te(tt){return Ce(tt)==="Int8Array"}Oe.isInt8Array=Te;function Me(tt){return Ce(tt)==="Int16Array"}Oe.isInt16Array=Me;function Be(tt){return Ce(tt)==="Int32Array"}Oe.isInt32Array=Be;function Re(tt){return Ce(tt)==="Float32Array"}Oe.isFloat32Array=Re;function Qe(tt){return Ce(tt)==="Float64Array"}Oe.isFloat64Array=Qe;function He(tt){return Ce(tt)==="BigInt64Array"}Oe.isBigInt64Array=He;function $e(tt){return Ce(tt)==="BigUint64Array"}Oe.isBigUint64Array=$e;function qe(tt){return xe(tt)==="[object Map]"}qe.working=typeof Map!="undefined"&&qe(new Map);function ut(tt){return typeof Map=="undefined"?!1:qe.working?qe(tt):tt instanceof Map}Oe.isMap=ut;function ct(tt){return xe(tt)==="[object Set]"}ct.working=typeof Set!="undefined"&&ct(new Set);function yt(tt){return typeof Set=="undefined"?!1:ct.working?ct(tt):tt instanceof Set}Oe.isSet=yt;function _e(tt){return xe(tt)==="[object WeakMap]"}_e.working=typeof WeakMap!="undefined"&&_e(new WeakMap);function st(tt){return typeof WeakMap=="undefined"?!1:_e.working?_e(tt):tt instanceof WeakMap}Oe.isWeakMap=st;function pt(tt){return xe(tt)==="[object WeakSet]"}pt.working=typeof WeakSet!="undefined"&&pt(new WeakSet);function bt(tt){return pt(tt)}Oe.isWeakSet=bt;function wt(tt){return xe(tt)==="[object ArrayBuffer]"}wt.working=typeof ArrayBuffer!="undefined"&&wt(new ArrayBuffer);function mt(tt){return typeof ArrayBuffer=="undefined"?!1:wt.working?wt(tt):tt instanceof ArrayBuffer}Oe.isArrayBuffer=mt;function vt(tt){return xe(tt)==="[object DataView]"}vt.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&vt(new DataView(new ArrayBuffer(1),0,1));function St(tt){return typeof DataView=="undefined"?!1:vt.working?vt(tt):tt instanceof DataView}Oe.isDataView=St;var Nt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Ft(tt){return xe(tt)==="[object SharedArrayBuffer]"}function Kt(tt){return typeof Nt=="undefined"?!1:(typeof Ft.working=="undefined"&&(Ft.working=Ft(new Nt)),Ft.working?Ft(tt):tt instanceof Nt)}Oe.isSharedArrayBuffer=Kt;function Pt(tt){return xe(tt)==="[object AsyncFunction]"}Oe.isAsyncFunction=Pt;function Et(tt){return xe(tt)==="[object Map Iterator]"}Oe.isMapIterator=Et;function at(tt){return xe(tt)==="[object Set Iterator]"}Oe.isSetIterator=at;function Ct(tt){return xe(tt)==="[object Generator]"}Oe.isGeneratorObject=Ct;function nt(tt){return xe(tt)==="[object WebAssembly.Module]"}Oe.isWebAssemblyCompiledModule=nt;function ht(tt){return le(tt,fe)}Oe.isNumberObject=ht;function Mt(tt){return le(tt,z)}Oe.isStringObject=Mt;function gt(tt){return le(tt,ee)}Oe.isBooleanObject=gt;function rt(tt){return be&&le(tt,ae)}Oe.isBigIntObject=rt;function Je(tt){return me&&le(tt,re)}Oe.isSymbolObject=Je;function Xe(tt){return ht(tt)||Mt(tt)||gt(tt)||rt(tt)||Je(tt)}Oe.isBoxedPrimitive=Xe;function Ve(tt){return typeof Uint8Array!="undefined"&&(mt(tt)||Kt(tt))}Oe.isAnyArrayBuffer=Ve,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(tt){Object.defineProperty(Oe,tt,{enumerable:!1,value:function(){throw new Error(tt+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(oe,Ue,Oe){(function(ve){(function(){var ce=Object.getOwnPropertyDescriptors||function(Nt){for(var Ft=Object.keys(Nt),Kt={},Pt=0;Pt<Ft.length;Pt++)Kt[Ft[Pt]]=Object.getOwnPropertyDescriptor(Nt,Ft[Pt]);return Kt},Ce=/%[sdj%]/g;Oe.format=function(St){if(!Me(St)){for(var Nt=[],Ft=0;Ft<arguments.length;Ft++)Nt.push(me(arguments[Ft]));return Nt.join(" ")}for(var Ft=1,Kt=arguments,Pt=Kt.length,Et=String(St).replace(Ce,function(Ct){if(Ct==="%%")return"%";if(Ft>=Pt)return Ct;switch(Ct){case"%s":return String(Kt[Ft++]);case"%d":return Number(Kt[Ft++]);case"%j":try{return JSON.stringify(Kt[Ft++])}catch(nt){return"[Circular]"}default:return Ct}}),at=Kt[Ft];Ft<Pt;at=Kt[++Ft])Ne(at)||!He(at)?Et+=" "+at:Et+=" "+me(at);return Et},Oe.deprecate=function(St,Nt){if(typeof ve!="undefined"&&ve.noDeprecation===!0)return St;if(typeof ve=="undefined")return function(){return Oe.deprecate(St,Nt).apply(this,arguments)};var Ft=!1;function Kt(){if(!Ft){if(ve.throwDeprecation)throw new Error(Nt);ve.traceDeprecation?console.trace(Nt):console.error(Nt),Ft=!0}return St.apply(this,arguments)}return Kt};var Ee={},ye=/^$/;if(ve.env.NODE_DEBUG){var be=ve.env.NODE_DEBUG;be=be.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ye=new RegExp("^"+be+"$","i")}Oe.debuglog=function(St){if(St=St.toUpperCase(),!Ee[St])if(ye.test(St)){var Nt=ve.pid;Ee[St]=function(){var Ft=Oe.format.apply(Oe,arguments);console.error("%s %d: %s",St,Nt,Ft)}}else Ee[St]=function(){};return Ee[St]};function me(St,Nt){var Ft={seen:[],stylize:fe};return arguments.length>=3&&(Ft.depth=arguments[2]),arguments.length>=4&&(Ft.colors=arguments[3]),we(Nt)?Ft.showHidden=Nt:Nt&&Oe._extend(Ft,Nt),Re(Ft.showHidden)&&(Ft.showHidden=!1),Re(Ft.depth)&&(Ft.depth=2),Re(Ft.colors)&&(Ft.colors=!1),Re(Ft.customInspect)&&(Ft.customInspect=!0),Ft.colors&&(Ft.stylize=xe),ee(Ft,St,Ft.depth)}Oe.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 xe(St,Nt){var Ft=me.styles[Nt];return Ft?"\x1B["+me.colors[Ft][0]+"m"+St+"\x1B["+me.colors[Ft][1]+"m":St}function fe(St,Nt){return St}function z(St){var Nt={};return St.forEach(function(Ft,Kt){Nt[Ft]=!0}),Nt}function ee(St,Nt,Ft){if(St.customInspect&&Nt&&ut(Nt.inspect)&&Nt.inspect!==Oe.inspect&&!(Nt.constructor&&Nt.constructor.prototype===Nt)){var Kt=Nt.inspect(Ft,St);return Me(Kt)||(Kt=ee(St,Kt,Ft)),Kt}var Pt=ae(St,Nt);if(Pt)return Pt;var Et=Object.keys(Nt),at=z(Et);if(St.showHidden&&(Et=Object.getOwnPropertyNames(Nt)),qe(Nt)&&(Et.indexOf("message")>=0||Et.indexOf("description")>=0))return re(Nt);if(Et.length===0){if(ut(Nt)){var Ct=Nt.name?": "+Nt.name:"";return St.stylize("[Function"+Ct+"]","special")}if(Qe(Nt))return St.stylize(RegExp.prototype.toString.call(Nt),"regexp");if($e(Nt))return St.stylize(Date.prototype.toString.call(Nt),"date");if(qe(Nt))return re(Nt)}var nt="",ht=!1,Mt=["{","}"];if(Pe(Nt)&&(ht=!0,Mt=["[","]"]),ut(Nt)){var gt=Nt.name?": "+Nt.name:"";nt=" [Function"+gt+"]"}if(Qe(Nt)&&(nt=" "+RegExp.prototype.toString.call(Nt)),$e(Nt)&&(nt=" "+Date.prototype.toUTCString.call(Nt)),qe(Nt)&&(nt=" "+re(Nt)),Et.length===0&&(!ht||Nt.length==0))return Mt[0]+nt+Mt[1];if(Ft<0)return Qe(Nt)?St.stylize(RegExp.prototype.toString.call(Nt),"regexp"):St.stylize("[Object]","special");St.seen.push(Nt);var rt;return ht?rt=le(St,Nt,Ft,at,Et):rt=Et.map(function(Je){return ue(St,Nt,Ft,at,Je,ht)}),St.seen.pop(),pe(rt,nt,Mt)}function ae(St,Nt){if(Re(Nt))return St.stylize("undefined","undefined");if(Me(Nt)){var Ft="'"+JSON.stringify(Nt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return St.stylize(Ft,"string")}if(Te(Nt))return St.stylize(""+Nt,"number");if(we(Nt))return St.stylize(""+Nt,"boolean");if(Ne(Nt))return St.stylize("null","null")}function re(St){return"["+Error.prototype.toString.call(St)+"]"}function le(St,Nt,Ft,Kt,Pt){for(var Et=[],at=0,Ct=Nt.length;at<Ct;++at)bt(Nt,String(at))?Et.push(ue(St,Nt,Ft,Kt,String(at),!0)):Et.push("");return Pt.forEach(function(nt){nt.match(/^\d+$/)||Et.push(ue(St,Nt,Ft,Kt,nt,!0))}),Et}function ue(St,Nt,Ft,Kt,Pt,Et){var at,Ct,nt;if(nt=Object.getOwnPropertyDescriptor(Nt,Pt)||{value:Nt[Pt]},nt.get?nt.set?Ct=St.stylize("[Getter/Setter]","special"):Ct=St.stylize("[Getter]","special"):nt.set&&(Ct=St.stylize("[Setter]","special")),bt(Kt,Pt)||(at="["+Pt+"]"),Ct||(St.seen.indexOf(nt.value)<0?(Ne(Ft)?Ct=ee(St,nt.value,null):Ct=ee(St,nt.value,Ft-1),Ct.indexOf(`
`)>-1&&(Et?Ct=Ct.split(`
`).map(function(ht){return" "+ht}).join(`
`).slice(2):Ct=`
`+Ct.split(`
`).map(function(ht){return" "+ht}).join(`
`))):Ct=St.stylize("[Circular]","special")),Re(at)){if(Et&&Pt.match(/^\d+$/))return Ct;at=JSON.stringify(""+Pt),at.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(at=at.slice(1,-1),at=St.stylize(at,"name")):(at=at.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),at=St.stylize(at,"string"))}return at+": "+Ct}function pe(St,Nt,Ft){var Kt=0,Pt=St.reduce(function(Et,at){return Kt++,at.indexOf(`
`)>=0&&Kt++,Et+at.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Pt>60?Ft[0]+(Nt===""?"":Nt+`
`)+" "+St.join(`,
`)+" "+Ft[1]:Ft[0]+Nt+" "+St.join(", ")+" "+Ft[1]}Oe.types=oe("./support/types");function Pe(St){return Array.isArray(St)}Oe.isArray=Pe;function we(St){return typeof St=="boolean"}Oe.isBoolean=we;function Ne(St){return St===null}Oe.isNull=Ne;function Ae(St){return St==null}Oe.isNullOrUndefined=Ae;function Te(St){return typeof St=="number"}Oe.isNumber=Te;function Me(St){return typeof St=="string"}Oe.isString=Me;function Be(St){return typeof St=="symbol"}Oe.isSymbol=Be;function Re(St){return St===void 0}Oe.isUndefined=Re;function Qe(St){return He(St)&&yt(St)==="[object RegExp]"}Oe.isRegExp=Qe,Oe.types.isRegExp=Qe;function He(St){return typeof St=="object"&&St!==null}Oe.isObject=He;function $e(St){return He(St)&&yt(St)==="[object Date]"}Oe.isDate=$e,Oe.types.isDate=$e;function qe(St){return He(St)&&(yt(St)==="[object Error]"||St instanceof Error)}Oe.isError=qe,Oe.types.isNativeError=qe;function ut(St){return typeof St=="function"}Oe.isFunction=ut;function ct(St){return St===null||typeof St=="boolean"||typeof St=="number"||typeof St=="string"||typeof St=="symbol"||typeof St=="undefined"}Oe.isPrimitive=ct,Oe.isBuffer=oe("./support/isBuffer");function yt(St){return Object.prototype.toString.call(St)}function _e(St){return St<10?"0"+St.toString(10):St.toString(10)}var st=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pt(){var St=new Date,Nt=[_e(St.getHours()),_e(St.getMinutes()),_e(St.getSeconds())].join(":");return[St.getDate(),st[St.getMonth()],Nt].join(" ")}Oe.log=function(){console.log("%s - %s",pt(),Oe.format.apply(Oe,arguments))},Oe.inherits=oe("inherits"),Oe._extend=function(St,Nt){if(!Nt||!He(Nt))return St;for(var Ft=Object.keys(Nt),Kt=Ft.length;Kt--;)St[Ft[Kt]]=Nt[Ft[Kt]];return St};function bt(St,Nt){return Object.prototype.hasOwnProperty.call(St,Nt)}var wt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Oe.promisify=function(Nt){if(typeof Nt!="function")throw new TypeError('The "original" argument must be of type Function');if(wt&&Nt[wt]){var Ft=Nt[wt];if(typeof Ft!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Ft,wt,{value:Ft,enumerable:!1,writable:!1,configurable:!0}),Ft}function Ft(){for(var Kt,Pt,Et=new Promise(function(nt,ht){Kt=nt,Pt=ht}),at=[],Ct=0;Ct<arguments.length;Ct++)at.push(arguments[Ct]);at.push(function(nt,ht){nt?Pt(nt):Kt(ht)});try{Nt.apply(this,at)}catch(nt){Pt(nt)}return Et}return Object.setPrototypeOf(Ft,Object.getPrototypeOf(Nt)),wt&&Object.defineProperty(Ft,wt,{value:Ft,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Ft,ce(Nt))},Oe.promisify.custom=wt;function mt(St,Nt){if(!St){var Ft=new Error("Promise was rejected with a falsy value");Ft.reason=St,St=Ft}return Nt(St)}function vt(St){if(typeof St!="function")throw new TypeError('The "original" argument must be of type Function');function Nt(){for(var Ft=[],Kt=0;Kt<arguments.length;Kt++)Ft.push(arguments[Kt]);var Pt=Ft.pop();if(typeof Pt!="function")throw new TypeError("The last argument must be of type Function");var Et=this,at=function(){return Pt.apply(Et,arguments)};St.apply(this,Ft).then(function(Ct){ve.nextTick(at.bind(null,null,Ct))},function(Ct){ve.nextTick(mt.bind(null,Ct,at))})}return Object.setPrototypeOf(Nt,Object.getPrototypeOf(St)),Object.defineProperties(Nt,ce(St)),Nt}Oe.callbackify=vt}).call(this)}).call(this,oe("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";var ce=oe("for-each"),Ce=oe("available-typed-arrays"),Ee=oe("call-bind"),ye=oe("call-bind/callBound"),be=oe("gopd"),me=ye("Object.prototype.toString"),xe=oe("has-tostringtag/shams")(),fe=typeof globalThis=="undefined"?ve:globalThis,z=Ce(),ee=ye("String.prototype.slice"),ae=Object.getPrototypeOf,re=ye("Array.prototype.indexOf",!0)||function(we,Ne){for(var Ae=0;Ae<we.length;Ae+=1)if(we[Ae]===Ne)return Ae;return-1},le={__proto__:null};xe&&be&&ae?ce(z,function(Pe){var we=new fe[Pe];if(Symbol.toStringTag in we){var Ne=ae(we),Ae=be(Ne,Symbol.toStringTag);if(!Ae){var Te=ae(Ne);Ae=be(Te,Symbol.toStringTag)}le["$"+Pe]=Ee(Ae.get)}}):ce(z,function(Pe){var we=new fe[Pe];le["$"+Pe]=Ee(we.slice)});var ue=function(we){var Ne=!1;return ce(le,function(Ae,Te){if(!Ne)try{"$"+Ae(we)===Te&&(Ne=ee(Te,1))}catch(Me){}}),Ne},pe=function(we){var Ne=!1;return ce(le,function(Ae,Te){if(!Ne)try{Ae(we),Ne=ee(Te,1)}catch(Me){}}),Ne};Ue.exports=function(we){if(!we||typeof we!="object")return!1;if(!xe){var Ne=ee(me(we),8,-1);return re(z,Ne)>-1?Ne:Ne!=="Object"?!1:pe(we)}return be?ue(we):null}}).call(this)}).call(this,typeof mn!="undefined"?mn: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(oe,Ue,Oe){(function(){"use strict";Oe.stripBOM=function(ve){return ve[0]==="\uFEFF"?ve.substring(1):ve}}).call(this)},{}],422:[function(oe,Ue,Oe){(function(){"use strict";var ve,ce,Ce,Ee,ye,be={}.hasOwnProperty;ve=oe("xmlbuilder"),ce=oe("./defaults").defaults,Ee=function(me){return typeof me=="string"&&(me.indexOf("&")>=0||me.indexOf(">")>=0||me.indexOf("<")>=0)},ye=function(me){return"<![CDATA["+Ce(me)+"]]>"},Ce=function(me){return me.replace("]]>","]]]]><![CDATA[>")},Oe.Builder=function(){function me(xe){var fe,z,ee;this.options={},z=ce["0.2"];for(fe in z)be.call(z,fe)&&(ee=z[fe],this.options[fe]=ee);for(fe in xe)be.call(xe,fe)&&(ee=xe[fe],this.options[fe]=ee)}return me.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 Pe,we,Ne,Ae,Te,Me;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(be.call(pe,Ae)){we=pe[Ae];for(Te in we)Ne=we[Te],ue=ee(ue.ele(Te),Ne).up()}}else for(Te in pe)if(be.call(pe,Te))if(we=pe[Te],Te===fe){if(typeof we=="object")for(Pe in we)Me=we[Pe],ue=ue.att(Pe,Me)}else if(Te===z)le.options.cdata&&Ee(we)?ue=ue.raw(ye(we)):ue=ue.txt(we);else if(Array.isArray(we))for(Ae in we)be.call(we,Ae)&&(Ne=we[Ae],typeof Ne=="string"?le.options.cdata&&Ee(Ne)?ue=ue.ele(Te).raw(ye(Ne)).up():ue=ue.ele(Te,Ne).up():ue=ee(ue.ele(Te),Ne).up());else typeof we=="object"?ue=ee(ue.ele(Te),we).up():typeof we=="string"&&le.options.cdata&&Ee(we)?ue=ue.ele(Te).raw(ye(we)).up():(we==null&&(we=""),ue=ue.ele(Te,we.toString()).up());return ue}}(this),ae=ve.create(re,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ee(ae,xe).end(this.options.renderOpts)},me}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(oe,Ue,Oe){(function(){Oe.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(oe,Ue,Oe){(function(){"use strict";var ve,ce,Ce,Ee,ye,be,me,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=oe("sax"),Ee=oe("events"),ve=oe("./bom"),me=oe("./processors"),fe=oe("timers").setImmediate,ce=oe("./defaults").defaults,ye=function(re){return typeof re=="object"&&re!=null&&Object.keys(re).length===0},be=function(re,le,ue){var pe,Pe,we;for(pe=0,Pe=re.length;pe<Pe;pe++)we=re[pe],le=we(le,ue);return le},Ce=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)},Oe.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,Pe,we;if(!(this instanceof Oe.Parser))return new Oe.Parser(ue);this.options={},Pe=ce["0.2"];for(pe in Pe)ae.call(Pe,pe)&&(we=Pe[pe],this.options[pe]=we);for(pe in ue)ae.call(ue,pe)&&(we=ue[pe],this.options[pe]=we);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(me.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(Pe){if(pe=Pe,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(pe)}},le.prototype.assignOrPush=function(ue,pe,Pe){return pe in ue?(ue[pe]instanceof Array||Ce(ue,pe,[ue[pe]]),ue[pe].push(Pe)):this.options.explicitArray?Ce(ue,pe,[Pe]):Ce(ue,pe,Pe)},le.prototype.reset=function(){var ue,pe,Pe,we;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(Ne){return function(Ae){if(Ne.saxParser.resume(),!Ne.saxParser.errThrown)return Ne.saxParser.errThrown=!0,Ne.emit("error",Ae)}}(this),this.saxParser.onend=function(Ne){return function(){if(!Ne.saxParser.ended)return Ne.saxParser.ended=!0,Ne.emit("end",Ne.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,we=[],ue=this.options.attrkey,pe=this.options.charkey,this.saxParser.onopentag=function(Ne){return function(Ae){var Te,Me,Be,Re,Qe;if(Be={},Be[pe]="",!Ne.options.ignoreAttrs){Qe=Ae.attributes;for(Te in Qe)ae.call(Qe,Te)&&(!(ue in Be)&&!Ne.options.mergeAttrs&&(Be[ue]={}),Me=Ne.options.attrValueProcessors?be(Ne.options.attrValueProcessors,Ae.attributes[Te],Te):Ae.attributes[Te],Re=Ne.options.attrNameProcessors?be(Ne.options.attrNameProcessors,Te):Te,Ne.options.mergeAttrs?Ne.assignOrPush(Be,Re,Me):Ce(Be[ue],Re,Me))}return Be["#name"]=Ne.options.tagNameProcessors?be(Ne.options.tagNameProcessors,Ae.name):Ae.name,Ne.options.xmlns&&(Be[Ne.options.xmlnskey]={uri:Ae.uri,local:Ae.local}),we.push(Be)}}(this),this.saxParser.onclosetag=function(Ne){return function(){var Ae,Te,Me,Be,Re,Qe,He,$e,qe,ut;if(Qe=we.pop(),Re=Qe["#name"],(!Ne.options.explicitChildren||!Ne.options.preserveChildrenOrder)&&delete Qe["#name"],Qe.cdata===!0&&(Ae=Qe.cdata,delete Qe.cdata),qe=we[we.length-1],Qe[pe].match(/^\s*$/)&&!Ae?(Te=Qe[pe],delete Qe[pe]):(Ne.options.trim&&(Qe[pe]=Qe[pe].trim()),Ne.options.normalize&&(Qe[pe]=Qe[pe].replace(/\s{2,}/g," ").trim()),Qe[pe]=Ne.options.valueProcessors?be(Ne.options.valueProcessors,Qe[pe],Re):Qe[pe],Object.keys(Qe).length===1&&pe in Qe&&!Ne.EXPLICIT_CHARKEY&&(Qe=Qe[pe])),ye(Qe)&&(typeof Ne.options.emptyTag=="function"?Qe=Ne.options.emptyTag():Qe=Ne.options.emptyTag!==""?Ne.options.emptyTag:Te),Ne.options.validator!=null&&(ut="/"+function(){var ct,yt,_e;for(_e=[],ct=0,yt=we.length;ct<yt;ct++)Be=we[ct],_e.push(Be["#name"]);return _e}().concat(Re).join("/"),function(){var ct;try{return Qe=Ne.options.validator(ut,qe&&qe[Re],Qe)}catch(yt){return ct=yt,Ne.emit("error",ct)}}()),Ne.options.explicitChildren&&!Ne.options.mergeAttrs&&typeof Qe=="object"){if(!Ne.options.preserveChildrenOrder)Be={},Ne.options.attrkey in Qe&&(Be[Ne.options.attrkey]=Qe[Ne.options.attrkey],delete Qe[Ne.options.attrkey]),!Ne.options.charsAsChildren&&Ne.options.charkey in Qe&&(Be[Ne.options.charkey]=Qe[Ne.options.charkey],delete Qe[Ne.options.charkey]),Object.getOwnPropertyNames(Qe).length>0&&(Be[Ne.options.childkey]=Qe),Qe=Be;else if(qe){qe[Ne.options.childkey]=qe[Ne.options.childkey]||[],He={};for(Me in Qe)ae.call(Qe,Me)&&Ce(He,Me,Qe[Me]);qe[Ne.options.childkey].push(He),delete Qe["#name"],Object.keys(Qe).length===1&&pe in Qe&&!Ne.EXPLICIT_CHARKEY&&(Qe=Qe[pe])}}return we.length>0?Ne.assignOrPush(qe,Re,Qe):(Ne.options.explicitRoot&&($e=Qe,Qe={},Ce(Qe,Re,$e)),Ne.resultObject=Qe,Ne.saxParser.ended=!0,Ne.emit("end",Ne.resultObject))}}(this),Pe=function(Ne){return function(Ae){var Te,Me;if(Me=we[we.length-1],Me)return Me[pe]+=Ae,Ne.options.explicitChildren&&Ne.options.preserveChildrenOrder&&Ne.options.charsAsChildren&&(Ne.options.includeWhiteChars||Ae.replace(/\\n/g,"").trim()!=="")&&(Me[Ne.options.childkey]=Me[Ne.options.childkey]||[],Te={"#name":"__text__"},Te[pe]=Ae,Ne.options.normalize&&(Te[pe]=Te[pe].replace(/\s{2,}/g," ").trim()),Me[Ne.options.childkey].push(Te)),Me}}(this),this.saxParser.ontext=Pe,this.saxParser.oncdata=function(Ne){return function(Ae){var Te;if(Te=Pe(Ae),Te)return Te.cdata=!0}}(this)},le.prototype.parseString=function(ue,pe){var Pe;pe!=null&&typeof pe=="function"&&(this.on("end",function(we){return this.reset(),pe(null,we)}),this.on("error",function(we){return this.reset(),pe(we)}));try{return ue=ue.toString(),ue.trim()===""?(this.emit("end",null),!0):(ue=ve.stripBOM(ue),this.options.async?(this.remaining=ue,fe(this.processAsync),this.saxParser):this.saxParser.write(ue).close())}catch(we){if(Pe=we,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Pe}else return this.emit("error",Pe),this.saxParser.errThrown=!0}},le.prototype.parseStringPromise=function(ue){return new Promise(function(pe){return function(Pe,we){return pe.parseString(ue,function(Ne,Ae){return Ne?we(Ne):Pe(Ae)})}}(this))},le}(Ee),Oe.parseString=function(re,le,ue){var pe,Pe,we;return ue!=null?(typeof ue=="function"&&(pe=ue),typeof le=="object"&&(Pe=le)):(typeof le=="function"&&(pe=le),Pe={}),we=new Oe.Parser(Pe),we.parseString(re,pe)},Oe.parseStringPromise=function(re,le){var ue,pe;return typeof le=="object"&&(ue=le),pe=new Oe.Parser(ue),pe.parseStringPromise(re)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(oe,Ue,Oe){(function(){"use strict";var ve;ve=new RegExp(/(?!xmlns)^.*:/),Oe.normalize=function(ce){return ce.toLowerCase()},Oe.firstCharLowerCase=function(ce){return ce.charAt(0).toLowerCase()+ce.slice(1)},Oe.stripPrefix=function(ce){return ce.replace(ve,"")},Oe.parseNumbers=function(ce){return isNaN(ce)||(ce=ce%1===0?parseInt(ce,10):parseFloat(ce)),ce},Oe.parseBooleans=function(ce){return/^(?:true|false)$/i.test(ce)&&(ce=ce.toLowerCase()==="true"),ce}}).call(this)},{}],426:[function(oe,Ue,Oe){(function(){"use strict";var ve,ce,Ce,Ee,ye=function(me,xe){for(var fe in xe)be.call(xe,fe)&&(me[fe]=xe[fe]);function z(){this.constructor=me}return z.prototype=xe.prototype,me.prototype=new z,me.__super__=xe.prototype,me},be={}.hasOwnProperty;ce=oe("./defaults"),ve=oe("./builder"),Ce=oe("./parser"),Ee=oe("./processors"),Oe.defaults=ce.defaults,Oe.processors=Ee,Oe.ValidationError=function(me){ye(xe,me);function xe(fe){this.message=fe}return xe}(Error),Oe.Builder=ve.Builder,Oe.Parser=Ce.Parser,Oe.parseString=Ce.parseString,Oe.parseStringPromise=Ce.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(oe,Ue,Oe){(function(){Ue.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(oe,Ue,Oe){(function(){Ue.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(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee,ye,be,me,xe=[].slice,fe={}.hasOwnProperty;ve=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]"},be=function(z){var ee;return!!z&&((ee=typeof z)=="function"||ee==="object")},Ce=function(z){return ye(Array.isArray)?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"},Ee=function(z){var ee;if(Ce(z))return!z.length;for(ee in z)if(fe.call(z,ee))return!1;return!0},me=function(z){var ee,ae;return be(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},Ue.exports.assign=ve,Ue.exports.isFunction=ye,Ue.exports.isObject=be,Ue.exports.isArray=Ce,Ue.exports.isEmpty=Ee,Ue.exports.isPlainObject=me,Ue.exports.getValue=ce}).call(this)},{}],430:[function(oe,Ue,Oe){(function(){Ue.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(oe,Ue,Oe){(function(){var ve,ce,Ce;ve=oe("./NodeType"),Ce=oe("./XMLNode"),Ue.exports=ce=function(){function Ee(ye,be,me){if(this.parent=ye,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),be==null)throw new Error("Missing attribute name. "+this.debugInfo(be));this.name=this.stringify.name(be),this.value=this.stringify.attValue(me),this.type=ve.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(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee=function(be,me){for(var xe in me)ye.call(me,xe)&&(be[xe]=me[xe]);function fe(){this.constructor=be}return fe.prototype=me.prototype,be.prototype=new fe,be.__super__=me.prototype,be},ye={}.hasOwnProperty;ve=oe("./NodeType"),Ce=oe("./XMLCharacterData"),Ue.exports=ce=function(be){Ee(me,be);function me(xe,fe){if(me.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=ve.CData,this.value=this.stringify.cdata(fe)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return this.options.writer.cdata(this,this.options.writer.filterOptions(xe))},me}(Ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(oe,Ue,Oe){(function(){var ve,ce,Ce=function(ye,be){for(var me in be)Ee.call(be,me)&&(ye[me]=be[me]);function xe(){this.constructor=ye}return xe.prototype=be.prototype,ye.prototype=new xe,ye.__super__=be.prototype,ye},Ee={}.hasOwnProperty;ce=oe("./XMLNode"),Ue.exports=ve=function(ye){Ce(be,ye);function be(me){be.__super__.constructor.call(this,me),this.value=""}return Object.defineProperty(be.prototype,"data",{get:function(){return this.value},set:function(me){return this.value=me||""}}),Object.defineProperty(be.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(be.prototype,"textContent",{get:function(){return this.value},set:function(me){return this.value=me||""}}),be.prototype.clone=function(){return Object.create(this)},be.prototype.substringData=function(me,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.appendData=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.insertData=function(me,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.deleteData=function(me,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.replaceData=function(me,xe,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.isEqualNode=function(me){return!(!be.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.data!==this.data)},be}(ce)}).call(this)},{"./XMLNode":450}],434:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee=function(be,me){for(var xe in me)ye.call(me,xe)&&(be[xe]=me[xe]);function fe(){this.constructor=be}return fe.prototype=me.prototype,be.prototype=new fe,be.__super__=me.prototype,be},ye={}.hasOwnProperty;ve=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ue.exports=Ce=function(be){Ee(me,be);function me(xe,fe){if(me.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=ve.Comment,this.value=this.stringify.comment(fe)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return this.options.writer.comment(this,this.options.writer.filterOptions(xe))},me}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(oe,Ue,Oe){(function(){var ve,ce,Ce;ce=oe("./XMLDOMErrorHandler"),Ce=oe("./XMLDOMStringList"),Ue.exports=ve=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 Ce(Object.keys(this.defaultParams))}}),Ee.prototype.getParameter=function(ye){return this.params.hasOwnProperty(ye)?this.params[ye]:null},Ee.prototype.canSetParameter=function(ye,be){return!0},Ee.prototype.setParameter=function(ye,be){return be!=null?this.params[ye]=be:delete this.params[ye]},Ee}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(oe,Ue,Oe){(function(){var ve;Ue.exports=ve=function(){function ce(){}return ce.prototype.handleError=function(Ce){throw new Error(Ce)},ce}()}).call(this)},{}],437:[function(oe,Ue,Oe){(function(){var ve;Ue.exports=ve=function(){function ce(){}return ce.prototype.hasFeature=function(Ce,Ee){return!0},ce.prototype.createDocumentType=function(Ce,Ee,ye){throw new Error("This DOM method is not implemented.")},ce.prototype.createDocument=function(Ce,Ee,ye){throw new Error("This DOM method is not implemented.")},ce.prototype.createHTMLDocument=function(Ce){throw new Error("This DOM method is not implemented.")},ce.prototype.getFeature=function(Ce,Ee){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],438:[function(oe,Ue,Oe){(function(){var ve;Ue.exports=ve=function(){function ce(Ce){this.arr=Ce||[]}return Object.defineProperty(ce.prototype,"length",{get:function(){return this.arr.length}}),ce.prototype.item=function(Ce){return this.arr[Ce]||null},ce.prototype.contains=function(Ce){return this.arr.indexOf(Ce)!==-1},ce}()}).call(this)},{}],439:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee=function(be,me){for(var xe in me)ye.call(me,xe)&&(be[xe]=me[xe]);function fe(){this.constructor=be}return fe.prototype=me.prototype,be.prototype=new fe,be.__super__=me.prototype,be},ye={}.hasOwnProperty;Ce=oe("./XMLNode"),ve=oe("./NodeType"),Ue.exports=ce=function(be){Ee(me,be);function me(xe,fe,z,ee,ae,re){if(me.__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=ve.AttributeDeclaration,this.attributeName=this.stringify.name(z),this.attributeType=this.stringify.dtdAttType(ee),re&&(this.defaultValue=this.stringify.dtdAttDefault(re)),this.defaultValueType=ae}return me.prototype.toString=function(xe){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(xe))},me}(Ce)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee=function(be,me){for(var xe in me)ye.call(me,xe)&&(be[xe]=me[xe]);function fe(){this.constructor=be}return fe.prototype=me.prototype,be.prototype=new fe,be.__super__=me.prototype,be},ye={}.hasOwnProperty;Ce=oe("./XMLNode"),ve=oe("./NodeType"),Ue.exports=ce=function(be){Ee(me,be);function me(xe,fe,z){if(me.__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=ve.ElementDeclaration,this.value=this.stringify.dtdElementValue(z)}return me.prototype.toString=function(xe){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(xe))},me}(Ce)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee,ye=function(me,xe){for(var fe in xe)be.call(xe,fe)&&(me[fe]=xe[fe]);function z(){this.constructor=me}return z.prototype=xe.prototype,me.prototype=new z,me.__super__=xe.prototype,me},be={}.hasOwnProperty;Ee=oe("./Utility").isObject,Ce=oe("./XMLNode"),ve=oe("./NodeType"),Ue.exports=ce=function(me){ye(xe,me);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=ve.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}(Ce)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee=function(be,me){for(var xe in me)ye.call(me,xe)&&(be[xe]=me[xe]);function fe(){this.constructor=be}return fe.prototype=me.prototype,be.prototype=new fe,be.__super__=me.prototype,be},ye={}.hasOwnProperty;Ce=oe("./XMLNode"),ve=oe("./NodeType"),Ue.exports=ce=function(be){Ee(me,be);function me(xe,fe,z){if(me.__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=ve.NotationDeclaration,z.pubID!=null&&(this.pubID=this.stringify.dtdPubID(z.pubID)),z.sysID!=null&&(this.sysID=this.stringify.dtdSysID(z.sysID))}return Object.defineProperty(me.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(me.prototype,"systemId",{get:function(){return this.sysID}}),me.prototype.toString=function(xe){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(xe))},me}(Ce)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee,ye=function(me,xe){for(var fe in xe)be.call(xe,fe)&&(me[fe]=xe[fe]);function z(){this.constructor=me}return z.prototype=xe.prototype,me.prototype=new z,me.__super__=xe.prototype,me},be={}.hasOwnProperty;Ee=oe("./Utility").isObject,Ce=oe("./XMLNode"),ve=oe("./NodeType"),Ue.exports=ce=function(me){ye(xe,me);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=ve.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}(Ce)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee,ye,be,me,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=oe("./Utility").isObject,xe=oe("./XMLNode"),ve=oe("./NodeType"),ce=oe("./XMLDTDAttList"),Ee=oe("./XMLDTDEntity"),Ce=oe("./XMLDTDElement"),ye=oe("./XMLDTDNotation"),me=oe("./XMLNamedNodeMap"),Ue.exports=be=function(ae){z(re,ae);function re(le,ue,pe){var Pe,we,Ne,Ae,Te,Me;if(re.__super__.constructor.call(this,le),this.type=ve.DocType,le.children){for(Ae=le.children,we=0,Ne=Ae.length;we<Ne;we++)if(Pe=Ae[we],Pe.type===ve.Element){this.name=Pe.name;break}}this.documentObject=le,fe(ue)&&(Te=ue,ue=Te.pubID,pe=Te.sysID),pe==null&&(Me=[ue,pe],pe=Me[0],ue=Me[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,Pe,we;for(Pe={},we=this.children,ue=0,pe=we.length;ue<pe;ue++)le=we[ue],le.type===ve.EntityDeclaration&&!le.pe&&(Pe[le.name]=le);return new me(Pe)}}),Object.defineProperty(re.prototype,"notations",{get:function(){var le,ue,pe,Pe,we;for(Pe={},we=this.children,ue=0,pe=we.length;ue<pe;ue++)le=we[ue],le.type===ve.NotationDeclaration&&(Pe[le.name]=le);return new me(Pe)}}),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 Ce(this,le,ue),this.children.push(pe),this},re.prototype.attList=function(le,ue,pe,Pe,we){var Ne;return Ne=new ce(this,le,ue,pe,Pe,we),this.children.push(Ne),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,Pe,we){return this.attList(le,ue,pe,Pe,we)},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(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee,ye,be,me,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=oe("./Utility").isPlainObject,Ce=oe("./XMLDOMImplementation"),ce=oe("./XMLDOMConfiguration"),ye=oe("./XMLNode"),ve=oe("./NodeType"),me=oe("./XMLStringifier"),be=oe("./XMLStringWriter"),Ue.exports=Ee=function(ee){fe(ae,ee);function ae(re){ae.__super__.constructor.call(this,null),this.name="#document",this.type=ve.Document,this.documentURI=null,this.domConfig=new ce,re||(re={}),re.writer||(re.writer=new be),this.options=re,this.stringify=new me(re)}return Object.defineProperty(ae.prototype,"implementation",{value:new Ce}),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===ve.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===ve.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ae.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===ve.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ae.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===ve.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(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee,ye,be,me,xe,fe,z,ee,ae,re,le,ue,pe,Pe,we,Ne,Ae,Te,Me,Be,Re,Qe={}.hasOwnProperty;Re=oe("./Utility"),Me=Re.isObject,Te=Re.isFunction,Be=Re.isPlainObject,Ae=Re.getValue,ve=oe("./NodeType"),ae=oe("./XMLDocument"),le=oe("./XMLElement"),Ee=oe("./XMLCData"),ye=oe("./XMLComment"),pe=oe("./XMLRaw"),Ne=oe("./XMLText"),ue=oe("./XMLProcessingInstruction"),z=oe("./XMLDeclaration"),ee=oe("./XMLDocType"),be=oe("./XMLDTDAttList"),xe=oe("./XMLDTDEntity"),me=oe("./XMLDTDElement"),fe=oe("./XMLDTDNotation"),Ce=oe("./XMLAttribute"),we=oe("./XMLStringifier"),Pe=oe("./XMLStringWriter"),ce=oe("./WriterState"),Ue.exports=re=function(){function He($e,qe,ut){var ct;this.name="?xml",this.type=ve.Document,$e||($e={}),ct={},$e.writer?Be($e.writer)&&(ct=$e.writer,$e.writer=new Pe):$e.writer=new Pe,this.options=$e,this.writer=$e.writer,this.writerOptions=this.writer.filterOptions(ct),this.stringify=new we($e),this.onDataCallback=qe||function(){},this.onEndCallback=ut||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return He.prototype.createChildNode=function($e){var qe,ut,ct,yt,_e,st,pt,bt;switch($e.type){case ve.CData:this.cdata($e.value);break;case ve.Comment:this.comment($e.value);break;case ve.Element:ct={},pt=$e.attribs;for(ut in pt)Qe.call(pt,ut)&&(qe=pt[ut],ct[ut]=qe.value);this.node($e.name,ct);break;case ve.Dummy:this.dummy();break;case ve.Raw:this.raw($e.value);break;case ve.Text:this.text($e.value);break;case ve.ProcessingInstruction:this.instruction($e.target,$e.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+$e.constructor.name)}for(bt=$e.children,_e=0,st=bt.length;_e<st;_e++)yt=bt[_e],this.createChildNode(yt),yt.type===ve.Element&&this.up();return this},He.prototype.dummy=function(){return this},He.prototype.node=function($e,qe,ut){var ct;if($e==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($e));return this.openCurrent(),$e=Ae($e),qe==null&&(qe={}),qe=Ae(qe),Me(qe)||(ct=[qe,ut],ut=ct[0],qe=ct[1]),this.currentNode=new le(this,$e,qe),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,ut!=null&&this.text(ut),this},He.prototype.element=function($e,qe,ut){var ct,yt,_e,st,pt,bt;if(this.currentNode&&this.currentNode.type===ve.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray($e)||Me($e)||Te($e))for(st=this.options.noValidation,this.options.noValidation=!0,bt=new ae(this.options).element("TEMP_ROOT"),bt.element($e),this.options.noValidation=st,pt=bt.children,yt=0,_e=pt.length;yt<_e;yt++)ct=pt[yt],this.createChildNode(ct),ct.type===ve.Element&&this.up();else this.node($e,qe,ut);return this},He.prototype.attribute=function($e,qe){var ut,ct;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo($e));if($e!=null&&($e=Ae($e)),Me($e))for(ut in $e)Qe.call($e,ut)&&(ct=$e[ut],this.attribute(ut,ct));else Te(qe)&&(qe=qe.apply()),this.options.keepNullAttributes&&qe==null?this.currentNode.attribs[$e]=new Ce(this,$e,""):qe!=null&&(this.currentNode.attribs[$e]=new Ce(this,$e,qe));return this},He.prototype.text=function($e){var qe;return this.openCurrent(),qe=new Ne(this,$e),this.onData(this.writer.text(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},He.prototype.cdata=function($e){var qe;return this.openCurrent(),qe=new Ee(this,$e),this.onData(this.writer.cdata(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},He.prototype.comment=function($e){var qe;return this.openCurrent(),qe=new ye(this,$e),this.onData(this.writer.comment(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},He.prototype.raw=function($e){var qe;return this.openCurrent(),qe=new pe(this,$e),this.onData(this.writer.raw(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},He.prototype.instruction=function($e,qe){var ut,ct,yt,_e,st;if(this.openCurrent(),$e!=null&&($e=Ae($e)),qe!=null&&(qe=Ae(qe)),Array.isArray($e))for(ut=0,_e=$e.length;ut<_e;ut++)ct=$e[ut],this.instruction(ct);else if(Me($e))for(ct in $e)Qe.call($e,ct)&&(yt=$e[ct],this.instruction(ct,yt));else Te(qe)&&(qe=qe.apply()),st=new ue(this,$e,qe),this.onData(this.writer.processingInstruction(st,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},He.prototype.declaration=function($e,qe,ut){var ct;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ct=new z(this,$e,qe,ut),this.onData(this.writer.declaration(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},He.prototype.doctype=function($e,qe,ut){if(this.openCurrent(),$e==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,qe,ut),this.currentNode.rootNodeName=$e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},He.prototype.dtdElement=function($e,qe){var ut;return this.openCurrent(),ut=new me(this,$e,qe),this.onData(this.writer.dtdElement(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},He.prototype.attList=function($e,qe,ut,ct,yt){var _e;return this.openCurrent(),_e=new be(this,$e,qe,ut,ct,yt),this.onData(this.writer.dtdAttList(_e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},He.prototype.entity=function($e,qe){var ut;return this.openCurrent(),ut=new xe(this,!1,$e,qe),this.onData(this.writer.dtdEntity(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},He.prototype.pEntity=function($e,qe){var ut;return this.openCurrent(),ut=new xe(this,!0,$e,qe),this.onData(this.writer.dtdEntity(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},He.prototype.notation=function($e,qe){var ut;return this.openCurrent(),ut=new fe(this,$e,qe),this.onData(this.writer.dtdNotation(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},He.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},He.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},He.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},He.prototype.openNode=function($e){var qe,ut,ct,yt;if(!$e.isOpen){if(!this.root&&this.currentLevel===0&&$e.type===ve.Element&&(this.root=$e),ut="",$e.type===ve.Element){this.writerOptions.state=ce.OpenTag,ut=this.writer.indent($e,this.writerOptions,this.currentLevel)+"<"+$e.name,yt=$e.attribs;for(ct in yt)Qe.call(yt,ct)&&(qe=yt[ct],ut+=this.writer.attribute(qe,this.writerOptions,this.currentLevel));ut+=($e.children?">":"/>")+this.writer.endline($e,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.InsideTag}else this.writerOptions.state=ce.OpenTag,ut=this.writer.indent($e,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+$e.rootNodeName,$e.pubID&&$e.sysID?ut+=' PUBLIC "'+$e.pubID+'" "'+$e.sysID+'"':$e.sysID&&(ut+=' SYSTEM "'+$e.sysID+'"'),$e.children?(ut+=" [",this.writerOptions.state=ce.InsideTag):(this.writerOptions.state=ce.CloseTag,ut+=">"),ut+=this.writer.endline($e,this.writerOptions,this.currentLevel);return this.onData(ut,this.currentLevel),$e.isOpen=!0}},He.prototype.closeNode=function($e){var qe;if(!$e.isClosed)return qe="",this.writerOptions.state=ce.CloseTag,$e.type===ve.Element?qe=this.writer.indent($e,this.writerOptions,this.currentLevel)+"</"+$e.name+">"+this.writer.endline($e,this.writerOptions,this.currentLevel):qe=this.writer.indent($e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline($e,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.None,this.onData(qe,this.currentLevel),$e.isClosed=!0},He.prototype.onData=function($e,qe){return this.documentStarted=!0,this.onDataCallback($e,qe+1)},He.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},He.prototype.debugInfo=function($e){return $e==null?"":"node: <"+$e+">"},He.prototype.ele=function(){return this.element.apply(this,arguments)},He.prototype.nod=function($e,qe,ut){return this.node($e,qe,ut)},He.prototype.txt=function($e){return this.text($e)},He.prototype.dat=function($e){return this.cdata($e)},He.prototype.com=function($e){return this.comment($e)},He.prototype.ins=function($e,qe){return this.instruction($e,qe)},He.prototype.dec=function($e,qe,ut){return this.declaration($e,qe,ut)},He.prototype.dtd=function($e,qe,ut){return this.doctype($e,qe,ut)},He.prototype.e=function($e,qe,ut){return this.element($e,qe,ut)},He.prototype.n=function($e,qe,ut){return this.node($e,qe,ut)},He.prototype.t=function($e){return this.text($e)},He.prototype.d=function($e){return this.cdata($e)},He.prototype.c=function($e){return this.comment($e)},He.prototype.r=function($e){return this.raw($e)},He.prototype.i=function($e,qe){return this.instruction($e,qe)},He.prototype.att=function(){return this.currentNode&&this.currentNode.type===ve.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},He.prototype.a=function(){return this.currentNode&&this.currentNode.type===ve.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},He.prototype.ent=function($e,qe){return this.entity($e,qe)},He.prototype.pent=function($e,qe){return this.pEntity($e,qe)},He.prototype.not=function($e,qe){return this.notation($e,qe)},He}()}).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(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee=function(be,me){for(var xe in me)ye.call(me,xe)&&(be[xe]=me[xe]);function fe(){this.constructor=be}return fe.prototype=me.prototype,be.prototype=new fe,be.__super__=me.prototype,be},ye={}.hasOwnProperty;Ce=oe("./XMLNode"),ve=oe("./NodeType"),Ue.exports=ce=function(be){Ee(me,be);function me(xe){me.__super__.constructor.call(this,xe),this.type=ve.Dummy}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return""},me}(Ce)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee,ye,be,me,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=oe("./Utility"),xe=fe.isObject,me=fe.isFunction,be=fe.getValue,ye=oe("./XMLNode"),ve=oe("./NodeType"),ce=oe("./XMLAttribute"),Ee=oe("./XMLNamedNodeMap"),Ue.exports=Ce=function(ae){z(re,ae);function re(le,ue,pe){var Pe,we,Ne,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=ve.Element,this.attribs={},this.schemaTypeInfo=null,pe!=null&&this.attribute(pe),le.type===ve.Document&&(this.isRoot=!0,this.documentObject=le,le.rootObject=this,le.children)){for(Ae=le.children,we=0,Ne=Ae.length;we<Ne;we++)if(Pe=Ae[we],Pe.type===ve.DocType){Pe.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,Pe;pe=Object.create(this),pe.isRoot&&(pe.documentObject=null),pe.attribs={},Pe=this.attribs;for(ue in Pe)ee.call(Pe,ue)&&(le=Pe[ue],pe.attribs[ue]=le.clone());return pe.children=[],this.children.forEach(function(we){var Ne;return Ne=we.clone(),Ne.parent=pe,pe.children.push(Ne)}),pe},re.prototype.attribute=function(le,ue){var pe,Pe;if(le!=null&&(le=be(le)),xe(le))for(pe in le)ee.call(le,pe)&&(Pe=le[pe],this.attribute(pe,Pe));else me(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,Pe;if(le==null)throw new Error("Missing attribute name. "+this.debugInfo());if(le=be(le),Array.isArray(le))for(pe=0,Pe=le.length;pe<Pe;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,Pe;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,Pe=this.attribs.length-1;0<=Pe?pe<=Pe:pe>=Pe;ue=0<=Pe?++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(oe,Ue,Oe){(function(){var ve;Ue.exports=ve=function(){function ce(Ce){this.nodes=Ce}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(Ce){return this.nodes[Ce]},ce.prototype.setNamedItem=function(Ce){var Ee;return Ee=this.nodes[Ce.nodeName],this.nodes[Ce.nodeName]=Ce,Ee||null},ce.prototype.removeNamedItem=function(Ce){var Ee;return Ee=this.nodes[Ce],delete this.nodes[Ce],Ee||null},ce.prototype.item=function(Ce){return this.nodes[Object.keys(this.nodes)[Ce]]||null},ce.prototype.getNamedItemNS=function(Ce,Ee){throw new Error("This DOM method is not implemented.")},ce.prototype.setNamedItemNS=function(Ce){throw new Error("This DOM method is not implemented.")},ce.prototype.removeNamedItemNS=function(Ce,Ee){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],450:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee,ye,be,me,xe,fe,z,ee,ae,re,le,ue,pe,Pe,we,Ne,Ae={}.hasOwnProperty;Ne=oe("./Utility"),we=Ne.isObject,Pe=Ne.isFunction,pe=Ne.isEmpty,ue=Ne.getValue,xe=null,Ce=null,Ee=null,ye=null,be=null,re=null,le=null,ae=null,me=null,ce=null,ee=null,fe=null,ve=null,Ue.exports=z=function(){function Te(Me){this.parent=Me,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,xe||(xe=oe("./XMLElement"),Ce=oe("./XMLCData"),Ee=oe("./XMLComment"),ye=oe("./XMLDeclaration"),be=oe("./XMLDocType"),re=oe("./XMLRaw"),le=oe("./XMLText"),ae=oe("./XMLProcessingInstruction"),me=oe("./XMLDummy"),ce=oe("./NodeType"),ee=oe("./XMLNodeList"),fe=oe("./XMLNamedNodeMap"),ve=oe("./DocumentPosition"))}return Object.defineProperty(Te.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(Te.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Te.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(Te.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(Te.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ee(this.children)),this.childNodeList}}),Object.defineProperty(Te.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(Te.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(Te.prototype,"previousSibling",{get:function(){var Me;return Me=this.parent.children.indexOf(this),this.parent.children[Me-1]||null}}),Object.defineProperty(Te.prototype,"nextSibling",{get:function(){var Me;return Me=this.parent.children.indexOf(this),this.parent.children[Me+1]||null}}),Object.defineProperty(Te.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(Te.prototype,"textContent",{get:function(){var Me,Be,Re,Qe,He;if(this.nodeType===ce.Element||this.nodeType===ce.DocumentFragment){for(He="",Qe=this.children,Be=0,Re=Qe.length;Be<Re;Be++)Me=Qe[Be],Me.textContent&&(He+=Me.textContent);return He}else return null},set:function(Me){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Te.prototype.setParent=function(Me){var Be,Re,Qe,He,$e;for(this.parent=Me,Me&&(this.options=Me.options,this.stringify=Me.stringify),He=this.children,$e=[],Re=0,Qe=He.length;Re<Qe;Re++)Be=He[Re],$e.push(Be.setParent(this));return $e},Te.prototype.element=function(Me,Be,Re){var Qe,He,$e,qe,ut,ct,yt,_e,st,pt,bt;if(ct=null,Be===null&&Re==null&&(st=[{},null],Be=st[0],Re=st[1]),Be==null&&(Be={}),Be=ue(Be),we(Be)||(pt=[Be,Re],Re=pt[0],Be=pt[1]),Me!=null&&(Me=ue(Me)),Array.isArray(Me))for($e=0,yt=Me.length;$e<yt;$e++)He=Me[$e],ct=this.element(He);else if(Pe(Me))ct=this.element(Me.apply());else if(we(Me)){for(ut in Me)if(Ae.call(Me,ut))if(bt=Me[ut],Pe(bt)&&(bt=bt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ut.indexOf(this.stringify.convertAttKey)===0)ct=this.attribute(ut.substr(this.stringify.convertAttKey.length),bt);else if(!this.options.separateArrayItems&&Array.isArray(bt)&&pe(bt))ct=this.dummy();else if(we(bt)&&pe(bt))ct=this.element(ut);else if(!this.options.keepNullNodes&&bt==null)ct=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(bt))for(qe=0,_e=bt.length;qe<_e;qe++)He=bt[qe],Qe={},Qe[ut]=He,ct=this.element(Qe);else we(bt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ut.indexOf(this.stringify.convertTextKey)===0?ct=this.element(bt):(ct=this.element(ut),ct.element(bt)):ct=this.element(ut,bt)}else!this.options.keepNullNodes&&Re===null?ct=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Me.indexOf(this.stringify.convertTextKey)===0?ct=this.text(Re):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Me.indexOf(this.stringify.convertCDataKey)===0?ct=this.cdata(Re):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Me.indexOf(this.stringify.convertCommentKey)===0?ct=this.comment(Re):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Me.indexOf(this.stringify.convertRawKey)===0?ct=this.raw(Re):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Me.indexOf(this.stringify.convertPIKey)===0?ct=this.instruction(Me.substr(this.stringify.convertPIKey.length),Re):ct=this.node(Me,Be,Re);if(ct==null)throw new Error("Could not create any elements with: "+Me+". "+this.debugInfo());return ct},Te.prototype.insertBefore=function(Me,Be,Re){var Qe,He,$e,qe,ut;if(Me!=null&&Me.type)return $e=Me,qe=Be,$e.setParent(this),qe?(He=children.indexOf(qe),ut=children.splice(He),children.push($e),Array.prototype.push.apply(children,ut)):children.push($e),$e;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Me));return He=this.parent.children.indexOf(this),ut=this.parent.children.splice(He),Qe=this.parent.element(Me,Be,Re),Array.prototype.push.apply(this.parent.children,ut),Qe},Te.prototype.insertAfter=function(Me,Be,Re){var Qe,He,$e;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Me));return He=this.parent.children.indexOf(this),$e=this.parent.children.splice(He+1),Qe=this.parent.element(Me,Be,Re),Array.prototype.push.apply(this.parent.children,$e),Qe},Te.prototype.remove=function(){var Me,Be;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Me=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Me,Me-Me+1].concat(Be=[])),this.parent},Te.prototype.node=function(Me,Be,Re){var Qe,He;return Me!=null&&(Me=ue(Me)),Be||(Be={}),Be=ue(Be),we(Be)||(He=[Be,Re],Re=He[0],Be=He[1]),Qe=new xe(this,Me,Be),Re!=null&&Qe.text(Re),this.children.push(Qe),Qe},Te.prototype.text=function(Me){var Be;return we(Me)&&this.element(Me),Be=new le(this,Me),this.children.push(Be),this},Te.prototype.cdata=function(Me){var Be;return Be=new Ce(this,Me),this.children.push(Be),this},Te.prototype.comment=function(Me){var Be;return Be=new Ee(this,Me),this.children.push(Be),this},Te.prototype.commentBefore=function(Me){var Be,Re,Qe;return Re=this.parent.children.indexOf(this),Qe=this.parent.children.splice(Re),Be=this.parent.comment(Me),Array.prototype.push.apply(this.parent.children,Qe),this},Te.prototype.commentAfter=function(Me){var Be,Re,Qe;return Re=this.parent.children.indexOf(this),Qe=this.parent.children.splice(Re+1),Be=this.parent.comment(Me),Array.prototype.push.apply(this.parent.children,Qe),this},Te.prototype.raw=function(Me){var Be;return Be=new re(this,Me),this.children.push(Be),this},Te.prototype.dummy=function(){var Me;return Me=new me(this),Me},Te.prototype.instruction=function(Me,Be){var Re,Qe,He,$e,qe;if(Me!=null&&(Me=ue(Me)),Be!=null&&(Be=ue(Be)),Array.isArray(Me))for($e=0,qe=Me.length;$e<qe;$e++)Re=Me[$e],this.instruction(Re);else if(we(Me))for(Re in Me)Ae.call(Me,Re)&&(Qe=Me[Re],this.instruction(Re,Qe));else Pe(Be)&&(Be=Be.apply()),He=new ae(this,Me,Be),this.children.push(He);return this},Te.prototype.instructionBefore=function(Me,Be){var Re,Qe,He;return Qe=this.parent.children.indexOf(this),He=this.parent.children.splice(Qe),Re=this.parent.instruction(Me,Be),Array.prototype.push.apply(this.parent.children,He),this},Te.prototype.instructionAfter=function(Me,Be){var Re,Qe,He;return Qe=this.parent.children.indexOf(this),He=this.parent.children.splice(Qe+1),Re=this.parent.instruction(Me,Be),Array.prototype.push.apply(this.parent.children,He),this},Te.prototype.declaration=function(Me,Be,Re){var Qe,He;return Qe=this.document(),He=new ye(Qe,Me,Be,Re),Qe.children.length===0?Qe.children.unshift(He):Qe.children[0].type===ce.Declaration?Qe.children[0]=He:Qe.children.unshift(He),Qe.root()||Qe},Te.prototype.dtd=function(Me,Be){var Re,Qe,He,$e,qe,ut,ct,yt,_e,st;for(Qe=this.document(),He=new be(Qe,Me,Be),_e=Qe.children,$e=qe=0,ct=_e.length;qe<ct;$e=++qe)if(Re=_e[$e],Re.type===ce.DocType)return Qe.children[$e]=He,He;for(st=Qe.children,$e=ut=0,yt=st.length;ut<yt;$e=++ut)if(Re=st[$e],Re.isRoot)return Qe.children.splice($e,0,He),He;return Qe.children.push(He),He},Te.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},Te.prototype.root=function(){var Me;for(Me=this;Me;){if(Me.type===ce.Document)return Me.rootObject;if(Me.isRoot)return Me;Me=Me.parent}},Te.prototype.document=function(){var Me;for(Me=this;Me;){if(Me.type===ce.Document)return Me;Me=Me.parent}},Te.prototype.end=function(Me){return this.document().end(Me)},Te.prototype.prev=function(){var Me;if(Me=this.parent.children.indexOf(this),Me<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Me-1]},Te.prototype.next=function(){var Me;if(Me=this.parent.children.indexOf(this),Me===-1||Me===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Me+1]},Te.prototype.importDocument=function(Me){var Be;return Be=Me.root().clone(),Be.parent=this,Be.isRoot=!1,this.children.push(Be),this},Te.prototype.debugInfo=function(Me){var Be,Re;return Me=Me||this.name,Me==null&&!((Be=this.parent)!=null&&Be.name)?"":Me==null?"parent: <"+this.parent.name+">":(Re=this.parent)!=null&&Re.name?"node: <"+Me+">, parent: <"+this.parent.name+">":"node: <"+Me+">"},Te.prototype.ele=function(Me,Be,Re){return this.element(Me,Be,Re)},Te.prototype.nod=function(Me,Be,Re){return this.node(Me,Be,Re)},Te.prototype.txt=function(Me){return this.text(Me)},Te.prototype.dat=function(Me){return this.cdata(Me)},Te.prototype.com=function(Me){return this.comment(Me)},Te.prototype.ins=function(Me,Be){return this.instruction(Me,Be)},Te.prototype.doc=function(){return this.document()},Te.prototype.dec=function(Me,Be,Re){return this.declaration(Me,Be,Re)},Te.prototype.e=function(Me,Be,Re){return this.element(Me,Be,Re)},Te.prototype.n=function(Me,Be,Re){return this.node(Me,Be,Re)},Te.prototype.t=function(Me){return this.text(Me)},Te.prototype.d=function(Me){return this.cdata(Me)},Te.prototype.c=function(Me){return this.comment(Me)},Te.prototype.r=function(Me){return this.raw(Me)},Te.prototype.i=function(Me,Be){return this.instruction(Me,Be)},Te.prototype.u=function(){return this.up()},Te.prototype.importXMLBuilder=function(Me){return this.importDocument(Me)},Te.prototype.replaceChild=function(Me,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.removeChild=function(Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.appendChild=function(Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.hasChildNodes=function(){return this.children.length!==0},Te.prototype.cloneNode=function(Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.isSupported=function(Me,Be){return!0},Te.prototype.hasAttributes=function(){return this.attribs.length!==0},Te.prototype.compareDocumentPosition=function(Me){var Be,Re;return Be=this,Be===Me?0:this.document()!==Me.document()?(Re=ve.Disconnected|ve.ImplementationSpecific,Math.random()<.5?Re|=ve.Preceding:Re|=ve.Following,Re):Be.isAncestor(Me)?ve.Contains|ve.Preceding:Be.isDescendant(Me)?ve.Contains|ve.Following:Be.isPreceding(Me)?ve.Preceding:ve.Following},Te.prototype.isSameNode=function(Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.lookupPrefix=function(Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.isDefaultNamespace=function(Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.lookupNamespaceURI=function(Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.isEqualNode=function(Me){var Be,Re,Qe;if(Me.nodeType!==this.nodeType||Me.children.length!==this.children.length)return!1;for(Be=Re=0,Qe=this.children.length-1;0<=Qe?Re<=Qe:Re>=Qe;Be=0<=Qe?++Re:--Re)if(!this.children[Be].isEqualNode(Me.children[Be]))return!1;return!0},Te.prototype.getFeature=function(Me,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.setUserData=function(Me,Be,Re){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.getUserData=function(Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Te.prototype.contains=function(Me){return Me?Me===this||this.isDescendant(Me):!1},Te.prototype.isDescendant=function(Me){var Be,Re,Qe,He,$e;for($e=this.children,Qe=0,He=$e.length;Qe<He;Qe++)if(Be=$e[Qe],Me===Be||(Re=Be.isDescendant(Me),Re))return!0;return!1},Te.prototype.isAncestor=function(Me){return Me.isDescendant(this)},Te.prototype.isPreceding=function(Me){var Be,Re;return Be=this.treePosition(Me),Re=this.treePosition(this),Be===-1||Re===-1?!1:Be<Re},Te.prototype.isFollowing=function(Me){var Be,Re;return Be=this.treePosition(Me),Re=this.treePosition(this),Be===-1||Re===-1?!1:Be>Re},Te.prototype.treePosition=function(Me){var Be,Re;return Re=0,Be=!1,this.foreachTreeNode(this.document(),function(Qe){if(Re++,!Be&&Qe===Me)return Be=!0}),Be?Re:-1},Te.prototype.foreachTreeNode=function(Me,Be){var Re,Qe,He,$e,qe;for(Me||(Me=this.document()),$e=Me.children,Qe=0,He=$e.length;Qe<He;Qe++){if(Re=$e[Qe],qe=Be(Re))return qe;if(qe=this.foreachTreeNode(Re,Be),qe)return qe}},Te}()}).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(oe,Ue,Oe){(function(){var ve;Ue.exports=ve=function(){function ce(Ce){this.nodes=Ce}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(Ce){return this.nodes[Ce]||null},ce}()}).call(this)},{}],452:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee=function(be,me){for(var xe in me)ye.call(me,xe)&&(be[xe]=me[xe]);function fe(){this.constructor=be}return fe.prototype=me.prototype,be.prototype=new fe,be.__super__=me.prototype,be},ye={}.hasOwnProperty;ve=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ue.exports=Ce=function(be){Ee(me,be);function me(xe,fe,z){if(me.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=ve.ProcessingInstruction,this.target=this.stringify.insTarget(fe),this.name=this.target,z&&(this.value=this.stringify.insValue(z))}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(xe))},me.prototype.isEqualNode=function(xe){return!(!me.__super__.isEqualNode.apply(this,arguments).isEqualNode(xe)||xe.target!==this.target)},me}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee=function(be,me){for(var xe in me)ye.call(me,xe)&&(be[xe]=me[xe]);function fe(){this.constructor=be}return fe.prototype=me.prototype,be.prototype=new fe,be.__super__=me.prototype,be},ye={}.hasOwnProperty;ve=oe("./NodeType"),ce=oe("./XMLNode"),Ue.exports=Ce=function(be){Ee(me,be);function me(xe,fe){if(me.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=ve.Raw,this.value=this.stringify.raw(fe)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return this.options.writer.raw(this,this.options.writer.filterOptions(xe))},me}(ce)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee,ye=function(me,xe){for(var fe in xe)be.call(xe,fe)&&(me[fe]=xe[fe]);function z(){this.constructor=me}return z.prototype=xe.prototype,me.prototype=new z,me.__super__=xe.prototype,me},be={}.hasOwnProperty;ve=oe("./NodeType"),Ee=oe("./XMLWriterBase"),ce=oe("./WriterState"),Ue.exports=Ce=function(me){ye(xe,me);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,Pe,we,Ne;for(Pe=fe.children,ae=re=0,ue=Pe.length;re<ue;ae=++re)ee=Pe[ae],ee.isLastRootNode=ae===fe.children.length-1;for(z=this.filterOptions(z),we=fe.children,Ne=[],le=0,pe=we.length;le<pe;le++)ee=we[le],Ne.push(this.writeChildNode(ee,z,0));return Ne},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,Pe,we,Ne,Ae,Te;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(we in Ae)be.call(Ae,we)&&(ae=Ae[we],this.attribute(ae,z,ee));if(le=fe.children.length,ue=le===0?null:fe.children[0],le===0||fe.children.every(function(Me){return(Me.type===ve.Text||Me.type===ve.Raw)&&Me.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===ve.Text||ue.type===ve.Raw)&&ue.value!=null)this.stream.write(">"),z.state=ce.InsideTag,z.suppressPrettyCount++,Ne=!0,this.writeChildNode(ue,z,ee+1),z.suppressPrettyCount--,Ne=!1,z.state=ce.CloseTag,this.stream.write("</"+fe.name+">");else{for(this.stream.write(">"+this.endline(fe,z,ee)),z.state=ce.InsideTag,Te=fe.children,pe=0,Pe=Te.length;pe<Pe;pe++)re=Te[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(oe,Ue,Oe){(function(){var ve,ce,Ce=function(ye,be){for(var me in be)Ee.call(be,me)&&(ye[me]=be[me]);function xe(){this.constructor=ye}return xe.prototype=be.prototype,ye.prototype=new xe,ye.__super__=be.prototype,ye},Ee={}.hasOwnProperty;ce=oe("./XMLWriterBase"),Ue.exports=ve=function(ye){Ce(be,ye);function be(me){be.__super__.constructor.call(this,me)}return be.prototype.document=function(me,xe){var fe,z,ee,ae,re;for(xe=this.filterOptions(xe),ae="",re=me.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},be}(ce)}).call(this)},{"./XMLWriterBase":458}],456:[function(oe,Ue,Oe){(function(){var ve,ce=function(Ee,ye){return function(){return Ee.apply(ye,arguments)}},Ce={}.hasOwnProperty;Ue.exports=ve=function(){function Ee(ye){this.assertLegalName=ce(this.assertLegalName,this),this.assertLegalChar=ce(this.assertLegalChar,this);var be,me,xe;ye||(ye={}),this.options=ye,this.options.version||(this.options.version="1.0"),me=ye.stringify||{};for(be in me)Ce.call(me,be)&&(xe=me[be],this[be]=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 be,me;if(this.options.noValidation)return ye;if(be="",this.options.version==="1.0"){if(be=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=ye.match(be))throw new Error("Invalid character in string: "+ye+" at index "+me.index)}else if(this.options.version==="1.1"&&(be=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=ye.match(be)))throw new Error("Invalid character in string: "+ye+" at index "+me.index);return ye},Ee.prototype.assertLegalName=function(ye){var be;if(this.options.noValidation)return ye;if(this.assertLegalChar(ye),be=/^([: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(be))throw new Error("Invalid character in name");return ye},Ee.prototype.textEscape=function(ye){var be;return this.options.noValidation?ye:(be=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ye.replace(be,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},Ee.prototype.attEscape=function(ye){var be;return this.options.noValidation?ye:(be=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ye.replace(be,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},Ee}()}).call(this)},{}],457:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee=function(be,me){for(var xe in me)ye.call(me,xe)&&(be[xe]=me[xe]);function fe(){this.constructor=be}return fe.prototype=me.prototype,be.prototype=new fe,be.__super__=me.prototype,be},ye={}.hasOwnProperty;ve=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ue.exports=Ce=function(be){Ee(me,be);function me(xe,fe){if(me.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=ve.Text,this.value=this.stringify.text(fe)}return Object.defineProperty(me.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(me.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}}),me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return this.options.writer.text(this,this.options.writer.filterOptions(xe))},me.prototype.splitText=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.replaceWholeText=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee,ye,be,me,xe,fe,z,ee,ae,re,le,ue,pe,Pe,we={}.hasOwnProperty;Pe=oe("./Utility").assign,ve=oe("./NodeType"),fe=oe("./XMLDeclaration"),z=oe("./XMLDocType"),Ce=oe("./XMLCData"),Ee=oe("./XMLComment"),ae=oe("./XMLElement"),le=oe("./XMLRaw"),ue=oe("./XMLText"),re=oe("./XMLProcessingInstruction"),ee=oe("./XMLDummy"),ye=oe("./XMLDTDAttList"),be=oe("./XMLDTDElement"),me=oe("./XMLDTDEntity"),xe=oe("./XMLDTDNotation"),ce=oe("./WriterState"),Ue.exports=pe=function(){function Ne(Ae){var Te,Me,Be;Ae||(Ae={}),this.options=Ae,Me=Ae.writer||{};for(Te in Me)we.call(Me,Te)&&(Be=Me[Te],this["_"+Te]=this[Te],this[Te]=Be)}return Ne.prototype.filterOptions=function(Ae){var Te,Me,Be,Re,Qe,He,$e,qe;return Ae||(Ae={}),Ae=Pe({},this.options,Ae),Te={writer:this},Te.pretty=Ae.pretty||!1,Te.allowEmpty=Ae.allowEmpty||!1,Te.indent=(Me=Ae.indent)!=null?Me:" ",Te.newline=(Be=Ae.newline)!=null?Be:`
`,Te.offset=(Re=Ae.offset)!=null?Re:0,Te.dontPrettyTextNodes=(Qe=(He=Ae.dontPrettyTextNodes)!=null?He:Ae.dontprettytextnodes)!=null?Qe:0,Te.spaceBeforeSlash=($e=(qe=Ae.spaceBeforeSlash)!=null?qe:Ae.spacebeforeslash)!=null?$e:"",Te.spaceBeforeSlash===!0&&(Te.spaceBeforeSlash=" "),Te.suppressPrettyCount=0,Te.user={},Te.state=ce.None,Te},Ne.prototype.indent=function(Ae,Te,Me){var Be;return!Te.pretty||Te.suppressPrettyCount?"":Te.pretty&&(Be=(Me||0)+Te.offset+1,Be>0)?new Array(Be).join(Te.indent):""},Ne.prototype.endline=function(Ae,Te,Me){return!Te.pretty||Te.suppressPrettyCount?"":Te.newline},Ne.prototype.attribute=function(Ae,Te,Me){var Be;return this.openAttribute(Ae,Te,Me),Be=" "+Ae.name+'="'+Ae.value+'"',this.closeAttribute(Ae,Te,Me),Be},Ne.prototype.cdata=function(Ae,Te,Me){var Be;return this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,Be=this.indent(Ae,Te,Me)+"<![CDATA[",Te.state=ce.InsideTag,Be+=Ae.value,Te.state=ce.CloseTag,Be+="]]>"+this.endline(Ae,Te,Me),Te.state=ce.None,this.closeNode(Ae,Te,Me),Be},Ne.prototype.comment=function(Ae,Te,Me){var Be;return this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,Be=this.indent(Ae,Te,Me)+"<!-- ",Te.state=ce.InsideTag,Be+=Ae.value,Te.state=ce.CloseTag,Be+=" -->"+this.endline(Ae,Te,Me),Te.state=ce.None,this.closeNode(Ae,Te,Me),Be},Ne.prototype.declaration=function(Ae,Te,Me){var Be;return this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,Be=this.indent(Ae,Te,Me)+"<?xml",Te.state=ce.InsideTag,Be+=' version="'+Ae.version+'"',Ae.encoding!=null&&(Be+=' encoding="'+Ae.encoding+'"'),Ae.standalone!=null&&(Be+=' standalone="'+Ae.standalone+'"'),Te.state=ce.CloseTag,Be+=Te.spaceBeforeSlash+"?>",Be+=this.endline(Ae,Te,Me),Te.state=ce.None,this.closeNode(Ae,Te,Me),Be},Ne.prototype.docType=function(Ae,Te,Me){var Be,Re,Qe,He,$e;if(Me||(Me=0),this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,He=this.indent(Ae,Te,Me),He+="<!DOCTYPE "+Ae.root().name,Ae.pubID&&Ae.sysID?He+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(He+=' SYSTEM "'+Ae.sysID+'"'),Ae.children.length>0){for(He+=" [",He+=this.endline(Ae,Te,Me),Te.state=ce.InsideTag,$e=Ae.children,Re=0,Qe=$e.length;Re<Qe;Re++)Be=$e[Re],He+=this.writeChildNode(Be,Te,Me+1);Te.state=ce.CloseTag,He+="]"}return Te.state=ce.CloseTag,He+=Te.spaceBeforeSlash+">",He+=this.endline(Ae,Te,Me),Te.state=ce.None,this.closeNode(Ae,Te,Me),He},Ne.prototype.element=function(Ae,Te,Me){var Be,Re,Qe,He,$e,qe,ut,ct,yt,_e,st,pt,bt,wt;Me||(Me=0),_e=!1,st="",this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,st+=this.indent(Ae,Te,Me)+"<"+Ae.name,pt=Ae.attribs;for(yt in pt)we.call(pt,yt)&&(Be=pt[yt],st+=this.attribute(Be,Te,Me));if(Qe=Ae.children.length,He=Qe===0?null:Ae.children[0],Qe===0||Ae.children.every(function(mt){return(mt.type===ve.Text||mt.type===ve.Raw)&&mt.value===""}))Te.allowEmpty?(st+=">",Te.state=ce.CloseTag,st+="</"+Ae.name+">"+this.endline(Ae,Te,Me)):(Te.state=ce.CloseTag,st+=Te.spaceBeforeSlash+"/>"+this.endline(Ae,Te,Me));else if(Te.pretty&&Qe===1&&(He.type===ve.Text||He.type===ve.Raw)&&He.value!=null)st+=">",Te.state=ce.InsideTag,Te.suppressPrettyCount++,_e=!0,st+=this.writeChildNode(He,Te,Me+1),Te.suppressPrettyCount--,_e=!1,Te.state=ce.CloseTag,st+="</"+Ae.name+">"+this.endline(Ae,Te,Me);else{if(Te.dontPrettyTextNodes){for(bt=Ae.children,$e=0,ut=bt.length;$e<ut;$e++)if(Re=bt[$e],(Re.type===ve.Text||Re.type===ve.Raw)&&Re.value!=null){Te.suppressPrettyCount++,_e=!0;break}}for(st+=">"+this.endline(Ae,Te,Me),Te.state=ce.InsideTag,wt=Ae.children,qe=0,ct=wt.length;qe<ct;qe++)Re=wt[qe],st+=this.writeChildNode(Re,Te,Me+1);Te.state=ce.CloseTag,st+=this.indent(Ae,Te,Me)+"</"+Ae.name+">",_e&&Te.suppressPrettyCount--,st+=this.endline(Ae,Te,Me),Te.state=ce.None}return this.closeNode(Ae,Te,Me),st},Ne.prototype.writeChildNode=function(Ae,Te,Me){switch(Ae.type){case ve.CData:return this.cdata(Ae,Te,Me);case ve.Comment:return this.comment(Ae,Te,Me);case ve.Element:return this.element(Ae,Te,Me);case ve.Raw:return this.raw(Ae,Te,Me);case ve.Text:return this.text(Ae,Te,Me);case ve.ProcessingInstruction:return this.processingInstruction(Ae,Te,Me);case ve.Dummy:return"";case ve.Declaration:return this.declaration(Ae,Te,Me);case ve.DocType:return this.docType(Ae,Te,Me);case ve.AttributeDeclaration:return this.dtdAttList(Ae,Te,Me);case ve.ElementDeclaration:return this.dtdElement(Ae,Te,Me);case ve.EntityDeclaration:return this.dtdEntity(Ae,Te,Me);case ve.NotationDeclaration:return this.dtdNotation(Ae,Te,Me);default:throw new Error("Unknown XML node type: "+Ae.constructor.name)}},Ne.prototype.processingInstruction=function(Ae,Te,Me){var Be;return this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,Be=this.indent(Ae,Te,Me)+"<?",Te.state=ce.InsideTag,Be+=Ae.target,Ae.value&&(Be+=" "+Ae.value),Te.state=ce.CloseTag,Be+=Te.spaceBeforeSlash+"?>",Be+=this.endline(Ae,Te,Me),Te.state=ce.None,this.closeNode(Ae,Te,Me),Be},Ne.prototype.raw=function(Ae,Te,Me){var Be;return this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,Be=this.indent(Ae,Te,Me),Te.state=ce.InsideTag,Be+=Ae.value,Te.state=ce.CloseTag,Be+=this.endline(Ae,Te,Me),Te.state=ce.None,this.closeNode(Ae,Te,Me),Be},Ne.prototype.text=function(Ae,Te,Me){var Be;return this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,Be=this.indent(Ae,Te,Me),Te.state=ce.InsideTag,Be+=Ae.value,Te.state=ce.CloseTag,Be+=this.endline(Ae,Te,Me),Te.state=ce.None,this.closeNode(Ae,Te,Me),Be},Ne.prototype.dtdAttList=function(Ae,Te,Me){var Be;return this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,Be=this.indent(Ae,Te,Me)+"<!ATTLIST",Te.state=ce.InsideTag,Be+=" "+Ae.elementName+" "+Ae.attributeName+" "+Ae.attributeType,Ae.defaultValueType!=="#DEFAULT"&&(Be+=" "+Ae.defaultValueType),Ae.defaultValue&&(Be+=' "'+Ae.defaultValue+'"'),Te.state=ce.CloseTag,Be+=Te.spaceBeforeSlash+">"+this.endline(Ae,Te,Me),Te.state=ce.None,this.closeNode(Ae,Te,Me),Be},Ne.prototype.dtdElement=function(Ae,Te,Me){var Be;return this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,Be=this.indent(Ae,Te,Me)+"<!ELEMENT",Te.state=ce.InsideTag,Be+=" "+Ae.name+" "+Ae.value,Te.state=ce.CloseTag,Be+=Te.spaceBeforeSlash+">"+this.endline(Ae,Te,Me),Te.state=ce.None,this.closeNode(Ae,Te,Me),Be},Ne.prototype.dtdEntity=function(Ae,Te,Me){var Be;return this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,Be=this.indent(Ae,Te,Me)+"<!ENTITY",Te.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)),Te.state=ce.CloseTag,Be+=Te.spaceBeforeSlash+">"+this.endline(Ae,Te,Me),Te.state=ce.None,this.closeNode(Ae,Te,Me),Be},Ne.prototype.dtdNotation=function(Ae,Te,Me){var Be;return this.openNode(Ae,Te,Me),Te.state=ce.OpenTag,Be=this.indent(Ae,Te,Me)+"<!NOTATION",Te.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+'"'),Te.state=ce.CloseTag,Be+=Te.spaceBeforeSlash+">"+this.endline(Ae,Te,Me),Te.state=ce.None,this.closeNode(Ae,Te,Me),Be},Ne.prototype.openNode=function(Ae,Te,Me){},Ne.prototype.closeNode=function(Ae,Te,Me){},Ne.prototype.openAttribute=function(Ae,Te,Me){},Ne.prototype.closeAttribute=function(Ae,Te,Me){},Ne}()}).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(oe,Ue,Oe){(function(){var ve,ce,Ce,Ee,ye,be,me,xe,fe,z;z=oe("./Utility"),xe=z.assign,fe=z.isFunction,Ce=oe("./XMLDOMImplementation"),Ee=oe("./XMLDocument"),ye=oe("./XMLDocumentCB"),me=oe("./XMLStringWriter"),be=oe("./XMLStreamWriter"),ve=oe("./NodeType"),ce=oe("./WriterState"),Ue.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},Ue.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)},Ue.exports.stringWriter=function(ee){return new me(ee)},Ue.exports.streamWriter=function(ee,ae){return new be(ee,ae)},Ue.exports.implementation=new Ce,Ue.exports.nodeType=ve,Ue.exports.writerState=ce}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(oe,Ue,Oe){Ue.exports=ce;var ve=Object.prototype.hasOwnProperty;function ce(){for(var Ce={},Ee=0;Ee<arguments.length;Ee++){var ye=arguments[Ee];for(var be in ye)ve.call(ye,be)&&(Ce[be]=ye[be])}return Ce}},{}],461:[function(oe,Ue,Oe){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.array.slice.js");var ve=oe("buffer").Buffer,ce=oe("./sha"),Ce=oe("./md5"),Ee={sha1:ce,md5:Ce},ye=64,be=ve.alloc(ye);be.fill(0);function me(z,ee,ae){ve.isBuffer(ee)||(ee=ve.from(ee)),ve.isBuffer(ae)||(ae=ve.from(ae)),ee.length>ye?ee=z(ee):ee.length<ye&&(ee=ve.concat([ee,be],ye));for(var re=ve.alloc(ye),le=ve.alloc(ye),ue=0;ue<ye;ue++)re[ue]=ee[ue]^54,le[ue]=ee[ue]^92;var pe=z(ve.concat([re,ae]));return z(ve.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 ve.isBuffer(pe)||(pe=ve.from(pe)),re.push(pe),le+=pe.length,this},digest:function(pe){var Pe=ve.concat(re),we=ee?me(ae,ee,Pe):ae(Pe);return re=null,pe?we.toString(pe):we}}}function fe(){var z=[].slice.call(arguments).join(" ");throw new Error([z,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}Oe.createHash=function(z){return xe(z)},Oe.createHmac=function(z,ee){return xe(z,ee)},Oe.createCredentials=function(){fe("sorry,createCredentials is not implemented yet")},Oe.createCipher=function(){fe("sorry,createCipher is not implemented yet")},Oe.createCipheriv=function(){fe("sorry,createCipheriv is not implemented yet")},Oe.createDecipher=function(){fe("sorry,createDecipher is not implemented yet")},Oe.createDecipheriv=function(){fe("sorry,createDecipheriv is not implemented yet")},Oe.createSign=function(){fe("sorry,createSign is not implemented yet")},Oe.createVerify=function(){fe("sorry,createVerify is not implemented yet")},Oe.createDiffieHellman=function(){fe("sorry,createDiffieHellman is not implemented yet")},Oe.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(oe,Ue,Oe){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js");var ve=oe("buffer").Buffer,ce=4,Ce=ve.alloc(ce);Ce.fill(0);var Ee=8;function ye(xe,fe){if(xe.length%ce!==0){var z=xe.length+(ce-xe.length%ce);xe=ve.concat([xe,Ce],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 be(xe,fe,z){for(var ee=ve.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 me(xe,fe,z,ee){ve.isBuffer(xe)||(xe=ve.from(xe));var ae=fe(ye(xe,ee),xe.length*Ee);return be(ae,z,ee)}Ue.exports={hash:me}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(oe,Ue,Oe){"use strict";var ve=oe("./helpers");function ce(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function Ce(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,Pe=0;Pe<ee.length;Pe+=16){var we=re,Ne=le,Ae=ue,Te=pe;re=ye(re,le,ue,pe,ee[Pe+0],7,-680876936),pe=ye(pe,re,le,ue,ee[Pe+1],12,-389564586),ue=ye(ue,pe,re,le,ee[Pe+2],17,606105819),le=ye(le,ue,pe,re,ee[Pe+3],22,-1044525330),re=ye(re,le,ue,pe,ee[Pe+4],7,-176418897),pe=ye(pe,re,le,ue,ee[Pe+5],12,1200080426),ue=ye(ue,pe,re,le,ee[Pe+6],17,-1473231341),le=ye(le,ue,pe,re,ee[Pe+7],22,-45705983),re=ye(re,le,ue,pe,ee[Pe+8],7,1770035416),pe=ye(pe,re,le,ue,ee[Pe+9],12,-1958414417),ue=ye(ue,pe,re,le,ee[Pe+10],17,-42063),le=ye(le,ue,pe,re,ee[Pe+11],22,-1990404162),re=ye(re,le,ue,pe,ee[Pe+12],7,1804603682),pe=ye(pe,re,le,ue,ee[Pe+13],12,-40341101),ue=ye(ue,pe,re,le,ee[Pe+14],17,-1502002290),le=ye(le,ue,pe,re,ee[Pe+15],22,1236535329),re=be(re,le,ue,pe,ee[Pe+1],5,-165796510),pe=be(pe,re,le,ue,ee[Pe+6],9,-1069501632),ue=be(ue,pe,re,le,ee[Pe+11],14,643717713),le=be(le,ue,pe,re,ee[Pe+0],20,-373897302),re=be(re,le,ue,pe,ee[Pe+5],5,-701558691),pe=be(pe,re,le,ue,ee[Pe+10],9,38016083),ue=be(ue,pe,re,le,ee[Pe+15],14,-660478335),le=be(le,ue,pe,re,ee[Pe+4],20,-405537848),re=be(re,le,ue,pe,ee[Pe+9],5,568446438),pe=be(pe,re,le,ue,ee[Pe+14],9,-1019803690),ue=be(ue,pe,re,le,ee[Pe+3],14,-187363961),le=be(le,ue,pe,re,ee[Pe+8],20,1163531501),re=be(re,le,ue,pe,ee[Pe+13],5,-1444681467),pe=be(pe,re,le,ue,ee[Pe+2],9,-51403784),ue=be(ue,pe,re,le,ee[Pe+7],14,1735328473),le=be(le,ue,pe,re,ee[Pe+12],20,-1926607734),re=me(re,le,ue,pe,ee[Pe+5],4,-378558),pe=me(pe,re,le,ue,ee[Pe+8],11,-2022574463),ue=me(ue,pe,re,le,ee[Pe+11],16,1839030562),le=me(le,ue,pe,re,ee[Pe+14],23,-35309556),re=me(re,le,ue,pe,ee[Pe+1],4,-1530992060),pe=me(pe,re,le,ue,ee[Pe+4],11,1272893353),ue=me(ue,pe,re,le,ee[Pe+7],16,-155497632),le=me(le,ue,pe,re,ee[Pe+10],23,-1094730640),re=me(re,le,ue,pe,ee[Pe+13],4,681279174),pe=me(pe,re,le,ue,ee[Pe+0],11,-358537222),ue=me(ue,pe,re,le,ee[Pe+3],16,-722521979),le=me(le,ue,pe,re,ee[Pe+6],23,76029189),re=me(re,le,ue,pe,ee[Pe+9],4,-640364487),pe=me(pe,re,le,ue,ee[Pe+12],11,-421815835),ue=me(ue,pe,re,le,ee[Pe+15],16,530742520),le=me(le,ue,pe,re,ee[Pe+2],23,-995338651),re=xe(re,le,ue,pe,ee[Pe+0],6,-198630844),pe=xe(pe,re,le,ue,ee[Pe+7],10,1126891415),ue=xe(ue,pe,re,le,ee[Pe+14],15,-1416354905),le=xe(le,ue,pe,re,ee[Pe+5],21,-57434055),re=xe(re,le,ue,pe,ee[Pe+12],6,1700485571),pe=xe(pe,re,le,ue,ee[Pe+3],10,-1894986606),ue=xe(ue,pe,re,le,ee[Pe+10],15,-1051523),le=xe(le,ue,pe,re,ee[Pe+1],21,-2054922799),re=xe(re,le,ue,pe,ee[Pe+8],6,1873313359),pe=xe(pe,re,le,ue,ee[Pe+15],10,-30611744),ue=xe(ue,pe,re,le,ee[Pe+6],15,-1560198380),le=xe(le,ue,pe,re,ee[Pe+13],21,1309151649),re=xe(re,le,ue,pe,ee[Pe+4],6,-145523070),pe=xe(pe,re,le,ue,ee[Pe+11],10,-1120210379),ue=xe(ue,pe,re,le,ee[Pe+2],15,718787259),le=xe(le,ue,pe,re,ee[Pe+9],21,-343485551),re=fe(re,we),le=fe(le,Ne),ue=fe(ue,Ae),pe=fe(pe,Te)}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,Pe){return Ee(ae&re|~ae&le,ee,ae,ue,pe,Pe)}function be(ee,ae,re,le,ue,pe,Pe){return Ee(ae&le|re&~le,ee,ae,ue,pe,Pe)}function me(ee,ae,re,le,ue,pe,Pe){return Ee(ae^re^le,ee,ae,ue,pe,Pe)}function xe(ee,ae,re,le,ue,pe,Pe){return Ee(re^(ae|~le),ee,ae,ue,pe,Pe)}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}Ue.exports=function(ae){return ve.hash(ae,Ce,16)}},{"./helpers":462}],464:[function(oe,Ue,Oe){"use strict";var ve=oe("./helpers");function ce(me,xe){me[xe>>5]|=128<<24-xe%32,me[(xe+64>>9<<4)+15]=xe;for(var fe=Array(80),z=1732584193,ee=-271733879,ae=-1732584194,re=271733878,le=-1009589776,ue=0;ue<me.length;ue+=16){for(var pe=z,Pe=ee,we=ae,Ne=re,Ae=le,Te=0;Te<80;Te++){Te<16?fe[Te]=me[ue+Te]:fe[Te]=be(fe[Te-3]^fe[Te-8]^fe[Te-14]^fe[Te-16],1);var Me=ye(ye(be(z,5),Ce(Te,ee,ae,re)),ye(ye(le,fe[Te]),Ee(Te)));le=re,re=ae,ae=be(ee,30),ee=z,z=Me}z=ye(z,pe),ee=ye(ee,Pe),ae=ye(ae,we),re=ye(re,Ne),le=ye(le,Ae)}return Array(z,ee,ae,re,le)}function Ce(me,xe,fe,z){return me<20?xe&fe|~xe&z:me<40?xe^fe^z:me<60?xe&fe|xe&z|fe&z:xe^fe^z}function Ee(me){return me<20?1518500249:me<40?1859775393:me<60?-1894007588:-899497514}function ye(me,xe){var fe=(me&65535)+(xe&65535),z=(me>>16)+(xe>>16)+(fe>>16);return z<<16|fe&65535}function be(me,xe){return me<<xe|me>>>32-xe}Ue.exports=function(xe){return ve.hash(xe,ce,20,!0)}},{"./helpers":462}],465:[function(oe,Ue,Oe){"use strict";Ue.exports=function(){return function(){}}},{}],466:[function(oe,Ue,Oe){(function(ve){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),Ce=ce(oe("@babel/runtime/helpers/typeof")),Ee=oe("stream"),ye=Ee.Stream,be=oe("../lib/common/utils/isArray"),me=be.isArray;Ue.exports.string=function(z){return typeof z=="string"},Ue.exports.array=me,Ue.exports.buffer=ve.isBuffer;function xe(fe){return fe instanceof ye}Ue.exports.writableStream=function(z){return xe(z)&&typeof z._write=="function"&&(0,Ce.default)(z._writableState)==="object"}}).call(this)}).call(this,{isBuffer:oe("../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(oe,Ue,Oe){"use strict";var ve=oe("immediate"),ce=Ue.exports={};ce.nextTick=ve,ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={};function Ce(){}ce.on=Ce,ce.addListener=Ce,ce.once=Ce,ce.off=Ce,ce.removeListener=Ce,ce.removeAllListeners=Ce,ce.emit=Ce,ce.prependListener=Ce,ce.prependOnceListener=Ce,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(oe,Ue,Oe){(function(ve){(function(){"use strict";oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.search.js");var ce=oe("./lib/request"),Ce=oe("./lib/response"),Ee=oe("xtend"),ye=oe("builtin-status-codes"),be=oe("url"),me=Oe;me.request=function(xe,fe){typeof xe=="string"?xe=be.parse(xe):xe=Ee(xe);var z=ve.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},me.get=function(fe,z){var ee=me.request(fe,z);return ee.end(),ee},me.ClientRequest=ce,me.IncomingMessage=Ce.IncomingMessage,me.Agent=function(){},me.Agent.defaultMaxSockets=4,me.globalAgent=new me.Agent,me.STATUS_CODES=ye,me.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 mn!="undefined"?mn: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(oe,Ue,Oe){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array-buffer.constructor.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.array.slice.js"),Oe.fetch=me(ve.fetch)&&me(ve.ReadableStream),Oe.writableStream=me(ve.WritableStream),Oe.abortController=me(ve.AbortController),Oe.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Oe.blobConstructor=!0}catch(xe){}var ce;function Ce(){if(ce!==void 0)return ce;if(ve.XMLHttpRequest){ce=new ve.XMLHttpRequest;try{ce.open("GET",ve.XDomainRequest?"/":"https://example.com")}catch(xe){ce=null}}else ce=null;return ce}function Ee(xe){var fe=Ce();if(!fe)return!1;try{return fe.responseType=xe,fe.responseType===xe}catch(z){}return!1}var ye=typeof ve.ArrayBuffer!="undefined",be=ye&&me(ve.ArrayBuffer.prototype.slice);Oe.arraybuffer=Oe.fetch||ye&&Ee("arraybuffer"),Oe.msstream=!Oe.fetch&&be&&Ee("ms-stream"),Oe.mozchunkedarraybuffer=!Oe.fetch&&ye&&Ee("moz-chunked-arraybuffer"),Oe.overrideMimeType=Oe.fetch||(Ce()?me(Ce().overrideMimeType):!1),Oe.vbArray=me(ve.VBArray);function me(xe){return typeof xe=="function"}ce=null}).call(this)}).call(this,typeof mn!="undefined"?mn: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(oe,Ue,Oe){(function(ve,ce,Ce){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js");var Ee=oe("./capability"),ye=oe("inherits"),be=oe("./response"),me=oe("readable-stream"),xe=oe("to-arraybuffer"),fe=be.IncomingMessage,z=be.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=Ue.exports=function(ue){var pe=this;me.Writable.call(pe),pe._opts=ue,pe._body=[],pe._headers={},ue.auth&&pe.setHeader("Authorization","Basic "+new Ce(ue.auth).toString("base64")),Object.keys(ue.headers).forEach(function(Ne){pe.setHeader(Ne,ue.headers[Ne])});var Pe,we=!0;if(ue.mode==="disable-fetch"||"requestTimeout"in ue&&!Ee.abortController)we=!1,Pe=!0;else if(ue.mode==="prefer-streaming")Pe=!1;else if(ue.mode==="allow-wrong-content-type")Pe=!Ee.overrideMimeType;else if(!ue.mode||ue.mode==="default"||ue.mode==="prefer-fast")Pe=!0;else throw new Error("Invalid value for opts.mode");pe._mode=ee(Pe,we),pe._fetchTimer=null,pe.on("finish",function(){pe._onFinish()})};ye(ae,me.Writable),ae.prototype.setHeader=function(ue,pe){var Pe=this,we=ue.toLowerCase();le.indexOf(we)===-1&&(Pe._headers[we]={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,Pe=ue._headers,we=null;pe.method!=="GET"&&pe.method!=="HEAD"&&(Ee.arraybuffer?we=xe(Ce.concat(ue._body)):Ee.blobConstructor?we=new ce.Blob(ue._body.map(function(Re){return xe(Re)}),{type:(Pe["content-type"]||{}).value||""}):we=Ce.concat(ue._body).toString());var Ne=[];if(Object.keys(Pe).forEach(function(Re){var Qe=Pe[Re].name,He=Pe[Re].value;Array.isArray(He)?He.forEach(function($e){Ne.push([Qe,$e])}):Ne.push([Qe,He])}),ue._mode==="fetch"){var Ae=null,Te=null;if(Ee.abortController){var Me=new AbortController;Ae=Me.signal,ue._fetchAbortController=Me,"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:Ne,body:we||void 0,mode:"cors",credentials:pe.withCredentials?"include":"same-origin",signal:Ae}).then(function(Re){ue._fetchResponse=Re,ue._connect()},function(Re){ce.clearTimeout(ue._fetchTimer),ue._destroyed||ue.emit("error",Re)})}else{var Be=ue._xhr=new ce.XMLHttpRequest;try{Be.open(ue._opts.method,ue._opts.url,!0)}catch(Re){ve.nextTick(function(){ue.emit("error",Re)});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")}),Ne.forEach(function(Re){Be.setRequestHeader(Re[0],Re[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(we)}catch(Re){ve.nextTick(function(){ue.emit("error",Re)});return}}}};function re(ue){try{var pe=ue.status;return pe!==null&&pe!==0}catch(Pe){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,Pe){var we=this;we._body.push(ue),Pe()},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,Pe){var we=this;typeof ue=="function"&&(Pe=ue,ue=void 0),me.Writable.prototype.end.call(we,ue,pe,Pe)},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,oe("_process"),typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("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(oe,Ue,Oe){(function(ve,ce,Ce){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.string.match.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.typed-array.uint8-array.js"),oe("core-js/modules/es.typed-array.copy-within.js"),oe("core-js/modules/es.typed-array.every.js"),oe("core-js/modules/es.typed-array.fill.js"),oe("core-js/modules/es.typed-array.filter.js"),oe("core-js/modules/es.typed-array.find.js"),oe("core-js/modules/es.typed-array.find-index.js"),oe("core-js/modules/es.typed-array.for-each.js"),oe("core-js/modules/es.typed-array.includes.js"),oe("core-js/modules/es.typed-array.index-of.js"),oe("core-js/modules/es.typed-array.iterator.js"),oe("core-js/modules/es.typed-array.join.js"),oe("core-js/modules/es.typed-array.last-index-of.js"),oe("core-js/modules/es.typed-array.map.js"),oe("core-js/modules/es.typed-array.reduce.js"),oe("core-js/modules/es.typed-array.reduce-right.js"),oe("core-js/modules/es.typed-array.reverse.js"),oe("core-js/modules/es.typed-array.set.js"),oe("core-js/modules/es.typed-array.slice.js"),oe("core-js/modules/es.typed-array.some.js"),oe("core-js/modules/es.typed-array.sort.js"),oe("core-js/modules/es.typed-array.subarray.js"),oe("core-js/modules/es.typed-array.to-locale-string.js"),oe("core-js/modules/es.typed-array.to-string.js"),oe("core-js/modules/es.array.slice.js");var Ee=oe("./capability"),ye=oe("inherits"),be=oe("readable-stream"),me=Oe.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},xe=Oe.IncomingMessage=function(fe,z,ee,ae){var re=this;if(be.Readable.call(re),re._mode=ee,re.headers={},re.rawHeaders=[],re.trailers={},re.rawTrailers=[],re.on("end",function(){ve.nextTick(function(){re.emit("close")})}),ee==="fetch"){var le=function Ae(){pe.read().then(function(Te){if(!re._destroyed){if(Te.done){ce.clearTimeout(ae),re.push(null);return}re.push(new Ce(Te.value)),Ae()}}).catch(function(Te){ce.clearTimeout(ae),re._destroyed||re.emit("error",Te)})};if(re._fetchResponse=z,re.url=z.url,re.statusCode=z.status,re.statusMessage=z.statusText,z.headers.forEach(function(Ae,Te){re.headers[Te.toLowerCase()]=Ae,re.rawHeaders.push(Te,Ae)}),Ee.writableStream){var ue=new WritableStream({write:function(Te){return new Promise(function(Me,Be){re._destroyed?Be():re.push(new Ce(Te))?Me():re._resumeFetch=Me})},close:function(){ce.clearTimeout(ae),re._destroyed||re.push(null)},abort:function(Te){re._destroyed||re.emit("error",Te)}});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 Pe=fe.getAllResponseHeaders().split(/\r?\n/);if(Pe.forEach(function(Ae){var Te=Ae.match(/^([^:]+):\s*(.*)/);if(Te){var Me=Te[1].toLowerCase();Me==="set-cookie"?(re.headers[Me]===void 0&&(re.headers[Me]=[]),re.headers[Me].push(Te[2])):re.headers[Me]!==void 0?re.headers[Me]+=", "+Te[2]:re.headers[Me]=Te[2],re.rawHeaders.push(Te[1],Te[2])}}),re._charset="x-user-defined",!Ee.overrideMimeType){var we=re.rawHeaders["mime-type"];if(we){var Ne=we.match(/;\s*charset=([^;])(;|$)/);Ne&&(re._charset=Ne[1].toLowerCase())}re._charset||(re._charset="utf-8")}}};ye(xe,be.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!==me.DONE)break;try{ee=new ce.VBArray(z.responseBody).toArray()}catch(pe){}if(ee!==null){fe.push(new Ce(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 Ce(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!==me.DONE||!z.response)break;ee=z.response,fe.push(new Ce(new Uint8Array(ee)));break;case"moz-chunked-arraybuffer":if(ee=z.response,z.readyState!==me.LOADING||!ee)break;fe.push(new Ce(new Uint8Array(ee)));break;case"ms-stream":if(ee=z.response,z.readyState!==me.LOADING)break;var ue=new ce.MSStreamReader;ue.onprogress=function(){ue.result.byteLength>fe._pos&&(fe.push(new Ce(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===me.DONE&&fe._mode!=="ms-stream"&&fe.push(null)}}).call(this)}).call(this,oe("_process"),typeof mn!="undefined"?mn:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/helpers/typeof"));oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.search.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.string.match.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.splice.js");var Ce=oe("punycode"),Ee=oe("./util");Oe.parse=Te,Oe.resolve=Be,Oe.resolveObject=Re,Oe.format=Me,Oe.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 be=/^([a-z0-9.+-]+:)/i,me=/:[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})(.*)$/,Pe={javascript:!0,"javascript:":!0},we={javascript:!0,"javascript:":!0},Ne={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ae=oe("querystring");function Te(Qe,He,$e){if(Qe&&Ee.isObject(Qe)&&Qe instanceof ye)return Qe;var qe=new ye;return qe.parse(Qe,He,$e),qe}ye.prototype.parse=function(Qe,He,$e){if(!Ee.isString(Qe))throw new TypeError("Parameter 'url' must be a string, not "+(0,ce.default)(Qe));var qe=Qe.indexOf("?"),ut=qe!==-1&&qe<Qe.indexOf("#")?"?":"#",ct=Qe.split(ut),yt=/\\/g;ct[0]=ct[0].replace(yt,"/"),Qe=ct.join(ut);var _e=Qe;if(_e=_e.trim(),!$e&&Qe.split("#").length===1){var st=xe.exec(_e);if(st)return this.path=_e,this.href=_e,this.pathname=st[1],st[2]?(this.search=st[2],He?this.query=Ae.parse(this.search.substr(1)):this.query=this.search.substr(1)):He&&(this.search="",this.query={}),this}var pt=be.exec(_e);if(pt){pt=pt[0];var bt=pt.toLowerCase();this.protocol=bt,_e=_e.substr(pt.length)}if($e||pt||_e.match(/^\/\/[^@\/]+@[^@\/]+/)){var wt=_e.substr(0,2)==="//";wt&&!(pt&&we[pt])&&(_e=_e.substr(2),this.slashes=!0)}if(!we[pt]&&(wt||pt&&!Ne[pt])){for(var mt=-1,vt=0;vt<re.length;vt++){var St=_e.indexOf(re[vt]);St!==-1&&(mt===-1||St<mt)&&(mt=St)}var Nt,Ft;mt===-1?Ft=_e.lastIndexOf("@"):Ft=_e.lastIndexOf("@",mt),Ft!==-1&&(Nt=_e.slice(0,Ft),_e=_e.slice(Ft+1),this.auth=decodeURIComponent(Nt)),mt=-1;for(var vt=0;vt<ae.length;vt++){var St=_e.indexOf(ae[vt]);St!==-1&&(mt===-1||St<mt)&&(mt=St)}mt===-1&&(mt=_e.length),this.host=_e.slice(0,mt),_e=_e.slice(mt),this.parseHost(),this.hostname=this.hostname||"";var Kt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Kt)for(var Pt=this.hostname.split("."),vt=0,Et=Pt.length;vt<Et;vt++){var at=Pt[vt];if(at&&!at.match(ue)){for(var Ct="",nt=0,ht=at.length;nt<ht;nt++)at.charCodeAt(nt)>127?Ct+="x":Ct+=at[nt];if(!Ct.match(ue)){var Mt=Pt.slice(0,vt),gt=Pt.slice(vt+1),rt=at.match(pe);rt&&(Mt.push(rt[1]),gt.unshift(rt[2])),gt.length&&(_e="/"+gt.join(".")+_e),this.hostname=Mt.join(".");break}}}this.hostname.length>le?this.hostname="":this.hostname=this.hostname.toLowerCase(),Kt||(this.hostname=Ce.toASCII(this.hostname));var Je=this.port?":"+this.port:"",Xe=this.hostname||"";this.host=Xe+Je,this.href+=this.host,Kt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),_e[0]!=="/"&&(_e="/"+_e))}if(!Pe[bt])for(var vt=0,Et=ee.length;vt<Et;vt++){var Ve=ee[vt];if(_e.indexOf(Ve)!==-1){var tt=encodeURIComponent(Ve);tt===Ve&&(tt=escape(Ve)),_e=_e.split(Ve).join(tt)}}var Ze=_e.indexOf("#");Ze!==-1&&(this.hash=_e.substr(Ze),_e=_e.slice(0,Ze));var je=_e.indexOf("?");if(je!==-1?(this.search=_e.substr(je),this.query=_e.substr(je+1),He&&(this.query=Ae.parse(this.query)),_e=_e.slice(0,je)):He&&(this.search="",this.query={}),_e&&(this.pathname=_e),Ne[bt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Je=this.pathname||"",De=this.search||"";this.path=Je+De}return this.href=this.format(),this};function Me(Qe){return Ee.isString(Qe)&&(Qe=Te(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 He=this.protocol||"",$e=this.pathname||"",qe=this.hash||"",ut=!1,ct="";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&&(ct=Ae.stringify(this.query));var yt=this.search||ct&&"?"+ct||"";return He&&He.substr(-1)!==":"&&(He+=":"),this.slashes||(!He||Ne[He])&&ut!==!1?(ut="//"+(ut||""),$e&&$e.charAt(0)!=="/"&&($e="/"+$e)):ut||(ut=""),qe&&qe.charAt(0)!=="#"&&(qe="#"+qe),yt&&yt.charAt(0)!=="?"&&(yt="?"+yt),$e=$e.replace(/[?#]/g,function(_e){return encodeURIComponent(_e)}),yt=yt.replace("#","%23"),He+ut+$e+yt+qe};function Be(Qe,He){return Te(Qe,!1,!0).resolve(He)}ye.prototype.resolve=function(Qe){return this.resolveObject(Te(Qe,!1,!0)).format()};function Re(Qe,He){return Qe?Te(Qe,!1,!0).resolveObject(He):He}ye.prototype.resolveObject=function(Qe){if(Ee.isString(Qe)){var He=new ye;He.parse(Qe,!1,!0),Qe=He}for(var $e=new ye,qe=Object.keys(this),ut=0;ut<qe.length;ut++){var ct=qe[ut];$e[ct]=this[ct]}if($e.hash=Qe.hash,Qe.href==="")return $e.href=$e.format(),$e;if(Qe.slashes&&!Qe.protocol){for(var yt=Object.keys(Qe),_e=0;_e<yt.length;_e++){var st=yt[_e];st!=="protocol"&&($e[st]=Qe[st])}return Ne[$e.protocol]&&$e.hostname&&!$e.pathname&&($e.path=$e.pathname="/"),$e.href=$e.format(),$e}if(Qe.protocol&&Qe.protocol!==$e.protocol){if(!Ne[Qe.protocol]){for(var pt=Object.keys(Qe),bt=0;bt<pt.length;bt++){var wt=pt[bt];$e[wt]=Qe[wt]}return $e.href=$e.format(),$e}if($e.protocol=Qe.protocol,!Qe.host&&!we[Qe.protocol]){for(var Et=(Qe.pathname||"").split("/");Et.length&&!(Qe.host=Et.shift()););Qe.host||(Qe.host=""),Qe.hostname||(Qe.hostname=""),Et[0]!==""&&Et.unshift(""),Et.length<2&&Et.unshift(""),$e.pathname=Et.join("/")}else $e.pathname=Qe.pathname;if($e.search=Qe.search,$e.query=Qe.query,$e.host=Qe.host||"",$e.auth=Qe.auth,$e.hostname=Qe.hostname||Qe.host,$e.port=Qe.port,$e.pathname||$e.search){var mt=$e.pathname||"",vt=$e.search||"";$e.path=mt+vt}return $e.slashes=$e.slashes||Qe.slashes,$e.href=$e.format(),$e}var St=$e.pathname&&$e.pathname.charAt(0)==="/",Nt=Qe.host||Qe.pathname&&Qe.pathname.charAt(0)==="/",Ft=Nt||St||$e.host&&Qe.pathname,Kt=Ft,Pt=$e.pathname&&$e.pathname.split("/")||[],Et=Qe.pathname&&Qe.pathname.split("/")||[],at=$e.protocol&&!Ne[$e.protocol];if(at&&($e.hostname="",$e.port=null,$e.host&&(Pt[0]===""?Pt[0]=$e.host:Pt.unshift($e.host)),$e.host="",Qe.protocol&&(Qe.hostname=null,Qe.port=null,Qe.host&&(Et[0]===""?Et[0]=Qe.host:Et.unshift(Qe.host)),Qe.host=null),Ft=Ft&&(Et[0]===""||Pt[0]==="")),Nt)$e.host=Qe.host||Qe.host===""?Qe.host:$e.host,$e.hostname=Qe.hostname||Qe.hostname===""?Qe.hostname:$e.hostname,$e.search=Qe.search,$e.query=Qe.query,Pt=Et;else if(Et.length)Pt||(Pt=[]),Pt.pop(),Pt=Pt.concat(Et),$e.search=Qe.search,$e.query=Qe.query;else if(!Ee.isNullOrUndefined(Qe.search)){if(at){$e.hostname=$e.host=Pt.shift();var Ct=$e.host&&$e.host.indexOf("@")>0?$e.host.split("@"):!1;Ct&&($e.auth=Ct.shift(),$e.host=$e.hostname=Ct.shift())}return $e.search=Qe.search,$e.query=Qe.query,(!Ee.isNull($e.pathname)||!Ee.isNull($e.search))&&($e.path=($e.pathname?$e.pathname:"")+($e.search?$e.search:"")),$e.href=$e.format(),$e}if(!Pt.length)return $e.pathname=null,$e.search?$e.path="/"+$e.search:$e.path=null,$e.href=$e.format(),$e;for(var nt=Pt.slice(-1)[0],ht=($e.host||Qe.host||Pt.length>1)&&(nt==="."||nt==="..")||nt==="",Mt=0,gt=Pt.length;gt>=0;gt--)nt=Pt[gt],nt==="."?Pt.splice(gt,1):nt===".."?(Pt.splice(gt,1),Mt++):Mt&&(Pt.splice(gt,1),Mt--);if(!Ft&&!Kt)for(;Mt--;Mt)Pt.unshift("..");Ft&&Pt[0]!==""&&(!Pt[0]||Pt[0].charAt(0)!=="/")&&Pt.unshift(""),ht&&Pt.join("/").substr(-1)!=="/"&&Pt.push("");var rt=Pt[0]===""||Pt[0]&&Pt[0].charAt(0)==="/";if(at){$e.hostname=$e.host=rt?"":Pt.length?Pt.shift():"";var Ct=$e.host&&$e.host.indexOf("@")>0?$e.host.split("@"):!1;Ct&&($e.auth=Ct.shift(),$e.host=$e.hostname=Ct.shift())}return Ft=Ft||$e.host&&Pt.length,Ft&&!rt&&Pt.unshift(""),Pt.length?$e.pathname=Pt.join("/"):($e.pathname=null,$e.path=null),(!Ee.isNull($e.pathname)||!Ee.isNull($e.search))&&($e.path=($e.pathname?$e.pathname:"")+($e.search?$e.search:"")),$e.auth=Qe.auth||$e.auth,$e.slashes=$e.slashes||Qe.slashes,$e.href=$e.format(),$e},ye.prototype.parseHost=function(){var Qe=this.host,He=me.exec(Qe);He&&(He=He[0],He!==":"&&(this.port=He.substr(1)),Qe=Qe.substr(0,Qe.length-He.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(oe,Ue,Oe){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/helpers/typeof"));Ue.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(oe,Ue,Oe){"use strict";oe("core-js/modules/es.number.constructor.js"),Oe.encodeURIComponent=function(ve){try{return encodeURIComponent(ve)}catch(ce){return ve}},Oe.escape=oe("escape-html"),Oe.timestamp=function(ce){if(ce){var Ce=ce;return typeof Ce=="string"&&(Ce=Number(Ce)),String(ce).length===10&&(Ce*=1e3),new Date(Ce)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(oe,Ue,Oe){(function(ve,ce){(function(){"use strict";var Ce=oe("@babel/runtime/helpers/interopRequireDefault"),Ee=Ce(oe("@babel/runtime/helpers/typeof"));oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.array.concat.js");var ye=oe("util"),be=oe("url"),me=oe("http"),xe=oe("https"),fe=oe("debug")("urllib"),z=oe("humanize-ms"),ee=0,ae=Math.pow(2,31)-10,re=/^https?:\/\//i;function le(we,Ne){return we===void 0?Ne:we}function ue(we){return we?we.split(";")[0].trim().toLowerCase():""}function pe(we,Ne){return function(Ae,Te,Me){if(Ae)return Ne(Ae);we({data:Te,status:Me.statusCode,headers:Me.headers,res:Me})}}Oe.TIMEOUTS=[z("300s"),z("300s")];var Pe=["json","text"];Oe.request=function(Ne,Ae,Te){return arguments.length===2&&typeof Ae=="function"&&(Te=Ae,Ae=null),typeof Te=="function"?Oe.requestWithCallback(Ne,Ae,Te):new Promise(function(Me,Be){Oe.requestWithCallback(Ne,Ae,pe(Me,Be))})},Oe.requestWithCallback=function(Ne,Ae,Te){if(!Ne||typeof Ne!="string"&&(0,Ee.default)(Ne)!=="object"){var Me=ye.format("expect request url to be a string or a http request options, but got %j",Ne);throw new Error(Me)}arguments.length===2&&typeof Ae=="function"&&(Te=Ae,Ae=null),Ae=Ae||{},ee>=ae&&(ee=0);var Be=++ee;Ae.requestUrls=Ae.requestUrls||[];var Re={requestId:Be,url:Ne,args:Ae,ctx:Ae.ctx};Ae.emitter&&Ae.emitter.emit("request",Re),Ae.timeout=Ae.timeout||Oe.TIMEOUTS,Ae.maxRedirects=Ae.maxRedirects||10,Ae.streaming=Ae.streaming||Ae.customResponse;var Qe=Date.now(),He;typeof Ne=="string"?(re.test(Ne)||(Ne="https://"+Ne),He=be.parse(Ne)):He=Ne;var $e=(Ae.type||Ae.method||He.method||"GET").toUpperCase(),qe=He.port||80,ut=me,ct=le(Ae.agent,Oe.agent),yt=Ae.fixJSONCtlChars;He.protocol==="https:"&&(ut=xe,ct=le(Ae.httpsAgent,Oe.httpsAgent),He.port||(qe=443));var _e={host:He.hostname||He.host||"localhost",path:He.path||"/",method:$e,port:qe,agent:ct,headers:Ae.headers||{},lookup:Ae.lookup};Array.isArray(Ae.timeout)?_e.requestTimeout=Ae.timeout[Ae.timeout.length-1]:typeof Ae.timeout!="undefined"&&(_e.requestTimeout=Ae.timeout);var st=Ae.auth||He.auth;st&&(_e.auth=st);var pt=Ae.content||Ae.data,bt=$e==="GET"||$e==="HEAD"||Ae.dataAsQueryString;if(!Ae.content&&pt&&!(typeof pt=="string"||ce.isBuffer(pt)))if(bt)pt=Ae.nestedQuerystring?qs.stringify(pt):querystring.stringify(pt);else{var wt=_e.headers["Content-Type"]||_e.headers["content-type"];wt||(Ae.contentType==="json"?wt="application/json":wt="application/x-www-form-urlencoded",_e.headers["Content-Type"]=wt),ue(wt)==="application/json"?pt=JSON.stringify(pt):pt=Ae.nestedQuerystring?qs.stringify(pt):querystring.stringify(pt)}bt&&pt&&(_e.path+=(He.query?"&":"?")+pt,pt=null);var mt=0;if(pt){var vt=pt.length;ce.isBuffer(pt)||(vt=ce.byteLength(pt)),mt=_e.headers["Content-Length"]=vt}Ae.dataType==="json"&&(_e.headers.Accept="application/json"),typeof Ae.beforeRequest=="function"&&Ae.beforeRequest(_e);var St=null,Nt=null,Ft=null,Kt=!1,Pt=!1,Et=0,at=-1,Ct=!1,nt="",ht="",Mt=null;Ae.timing&&(Mt={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function gt(){St&&(clearTimeout(St),St=null)}function rt(){Nt&&(clearTimeout(Nt),Nt=null)}function Je(zt,_t,Ot){if(rt(),!Te){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Be,ve.pid,_e.method,Ne),zt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Be,ve.pid,zt.name,zt.message,zt.stack);return}var Vt=Te;Te=null;var en={};Ot&&(at=Ot.statusCode,en=Ot.headers);var on=Date.now()-Qe;Mt&&(Mt.contentDownload=on),fe("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",on,Et,at,_e.method,_e.host,_e.path,Pt,Mt);var fn={status:at,statusCode:at,headers:en,size:Et,aborted:Ct,rt:on,keepAliveSocket:Pt,data:_t,requestUrls:Ae.requestUrls,timing:Mt,remoteAddress:nt,remotePort:ht};if(zt){var jn="";ct&&typeof ct.getCurrentStatus=="function"&&(jn=", agent status: "+JSON.stringify(ct.getCurrentStatus())),zt.message+=", "+_e.method+" "+Ne+" "+at+" (connected: "+Kt+", keepalive socket: "+Pt+jn+`)
headers: `+JSON.stringify(en),zt.data=_t,zt.path=_e.path,zt.status=at,zt.headers=en,zt.res=fn}Vt(zt,_t,Ae.streaming?Ot:fn),Ae.emitter&&(Re.url=Ne,Re.socket=Ke&&Ke.connection,Re.options=_e,Re.size=mt,Ae.emitter.emit("response",{requestId:Be,error:zt,ctx:Ae.ctx,req:Re,res:fn}))}function Xe(zt){var _t=null;if(Ae.followRedirect&&statuses.redirect[zt.statusCode]){Ae._followRedirectCount=(Ae._followRedirectCount||0)+1;var Ot=zt.headers.location;if(!Ot)_t=new Error("Got statusCode "+zt.statusCode+" but cannot resolve next location from headers"),_t.name="FollowRedirectError";else if(Ae._followRedirectCount>Ae.maxRedirects)_t=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Ne),_t.name="MaxRedirectError";else{var Vt=Ae.formatRedirectUrl?Ae.formatRedirectUrl(Ne,Ot):be.resolve(Ne,Ot);fe("Request#%d %s: `redirected` from %s to %s",Be,_e.path,Ne,Vt),rt(),Ae.headers&&Ae.headers.Host&&re.test(Ot)&&(Ae.headers.Host=null);var en=Te;return Te=null,Oe.requestWithCallback(Vt,Ae,en),{redirect:!0,error:null}}}return{redirect:!1,error:_t}}Ae.gzip&&!_e.headers["Accept-Encoding"]&&!_e.headers["accept-encoding"]&&(_e.headers["Accept-Encoding"]="gzip");function Ve(zt,_t,Ot){var Vt=zt.headers["content-encoding"];return Ot(null,_t,Vt)}var tt=Ae.writeStream;fe("Request#%d %s %s with headers %j, options.path: %s",Be,$e,Ne,_e.headers,_e.path),Ae.requestUrls.push(Ne);function Ze(zt){if(Mt&&(Mt.waiting=Date.now()-Qe),fe("Request#%d %s `req response` event emit: status %d, headers: %j",Be,Ne,zt.statusCode,zt.headers),Ae.streaming){var _t=Xe(zt);if(_t.redirect){zt.resume();return}return _t.error?(zt.resume(),Je(_t.error,null,zt)):Je(null,null,zt)}if(zt.on("close",function(){fe("Request#%d %s: `res close` event emit, total size %d",Be,Ne,Et)}),zt.on("error",function(){fe("Request#%d %s: `res error` event emit, total size %d",Be,Ne,Et)}),zt.on("aborted",function(){Ct=!0,fe("Request#%d %s: `res aborted` event emit, total size %d",Be,Ne,Et)}),tt){var Ot=Xe(zt);if(Ot.redirect){zt.resume();return}return Ot.error?(zt.resume(),tt.end(),Je(Ot.error,null,zt)):(Ae.consumeWriteStream===!1?zt.on("end",Je.bind(null,null,null,zt)):tt.on("close",function(){fe("Request#%d %s: writeStream close event emitted",Be,Ne),Je(Ft||null,null,zt)}),zt.pipe(tt))}var Vt=[];zt.on("data",function(en){fe("Request#%d %s: `res data` event emit, size %d",Be,Ne,en.length),Et+=en.length,Vt.push(en)}),zt.on("end",function(){var en=ce.concat(Vt,Et);if(fe("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Be,Ne,Et,zt._dumped),Ft)return Je(Ft,en,zt);var on=Xe(zt);if(on.error)return Je(on.error,en,zt);on.redirect||Ve(zt,en,function(fn,jn,er){if(fn)return Je(fn,en,zt);if(!er&&Pe.indexOf(Ae.dataType)>=0){try{jn=decodeBodyByCharset(jn,zt)}catch(ur){return fe("decodeBodyByCharset error: %s",ur),Je(null,jn,zt)}if(Ae.dataType==="json")if(Et===0)jn=null;else{var tr=parseJSON(jn,yt);tr.error?fn=tr.error:jn=tr.data}}Ct&&fe("Request#%d %s: Remote socket was terminated before `response.end()` was called",Be,Ne),Je(fn,jn,zt)})})}var je,De;Array.isArray(Ae.timeout)?(je=z(Ae.timeout[0]),De=z(Ae.timeout[1])):je=De=z(Ae.timeout),fe("ConnectTimeout: %d, ResponseTimeout: %d",je,De);function Ye(){fe("Connect timer ticking, timeout: %d",je),St=setTimeout(function(){St=null,at===-1&&(at=-2);var zt="Connect timeout for "+je+"ms",_t="ConnectionTimeoutError";Ke.socket||(_t="SocketAssignTimeoutError",zt+=", working sockets is full"),Ft=new Error(zt),Ft.name=_t,Ft.requestId=Be,fe("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Be,Ne,Ft.name,zt,Kt),At()},je)}function dt(){fe("Response timer ticking, timeout: %d",De),Nt=setTimeout(function(){Nt=null;var zt="Response timeout for "+De+"ms",_t="ResponseTimeoutError";Ft=new Error(zt),Ft.name=_t,Ft.requestId=Be,fe("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Be,Ne,Ft.name,zt,Kt),At()},De)}var Ke;_e.mode=Ae.mode?Ae.mode:"";try{Ke=ut.request(_e,Ze)}catch(zt){return Je(zt)}typeof window=="undefined"?Ye():Ke.on("requestTimeout",function(){at===-1&&(at=-2);var zt="Connect timeout for "+je+"ms",_t="ConnectionTimeoutError";Ft=new Error(zt),Ft.name=_t,Ft.requestId=Be,At()});function At(){fe("Request#%d %s abort, connected: %s",Be,Ne,Kt),Ke.socket||(Ft.noSocket=!0,Je(Ft)),Ke.abort()}return Mt&&Ke.on("finish",function(){Mt.requestSent=Date.now()-Qe}),Ke.once("socket",function(zt){Mt&&(Mt.queuing=Date.now()-Qe);var _t=zt.readyState;if(_t==="opening"){zt.once("lookup",function(Ot,Vt,en){fe("Request#%d %s lookup: %s, %s, %s",Be,Ne,Ot,Vt,en),Mt&&(Mt.dnslookup=Date.now()-Qe),Vt&&(nt=Vt)}),zt.once("connect",function(){Mt&&(Mt.connected=Date.now()-Qe),gt(),dt(),fe("Request#%d %s new socket connected",Be,Ne),Kt=!0,nt||(nt=zt.remoteAddress),ht=zt.remotePort});return}fe("Request#%d %s reuse socket connected, readyState: %s",Be,Ne,_t),Kt=!0,Pt=!0,nt||(nt=zt.remoteAddress),ht=zt.remotePort,gt(),dt()}),Ke.on("error",function(zt){(zt.name==="Error"||zt.name==="TypeError")&&(zt.name=Kt?"ResponseError":"RequestError"),zt.message+=' (req "error")',fe("Request#%d %s `req error` event emit, %s: %s",Be,Ne,zt.name,zt.message),Je(Ft||zt)}),tt&&tt.once("error",function(zt){zt.message+=' (writeStream "error")',Ft=zt,fe("Request#%d %s `writeStream error` event emit, %s: %s",Be,Ne,zt.name,zt.message),At()}),Ae.stream?(Ae.stream.pipe(Ke),Ae.stream.once("error",function(zt){zt.message+=' (stream "error")',Ft=zt,fe("Request#%d %s `readStream error` event emit, %s: %s",Be,Ne,zt.name,zt.message),At()})):Ke.end(pt),Ke.requestId=Be,Ke}}).call(this)}).call(this,oe("_process"),oe("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(Nn,mn){"use strict";function ze(){const We=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let xt=1;xt<arguments.length;xt++){const oe=xt<0||arguments.length<=xt?void 0:arguments[xt];oe&&Object.keys(oe).forEach(Ue=>{const Oe=oe[Ue];Oe!==void 0&&(We[Ue]=Oe)})}return We}mn.Z=ze},13845:function(Nn,mn,ze){"use strict";ze.d(mn,{F:function(){return We},Z:function(){return xt}});function We(oe){return oe!=null&&oe===oe.window}function xt(oe,Ue){var Oe,ve;if(typeof window=="undefined")return 0;const ce=Ue?"scrollTop":"scrollLeft";let Ce=0;return We(oe)?Ce=oe[Ue?"pageYOffset":"pageXOffset"]:oe instanceof Document?Ce=oe.documentElement[ce]:(oe instanceof HTMLElement||oe)&&(Ce=oe[ce]),oe&&!We(oe)&&typeof Ce!="number"&&(Ce=(ve=((Oe=oe.ownerDocument)!==null&&Oe!==void 0?Oe:oe).documentElement)===null||ve===void 0?void 0:ve[ce]),Ce}},56762:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return xt}});var We=ze(59301);function xt(){const[,oe]=We.useReducer(Ue=>Ue+1,0);return oe}},68031:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ue}});var We=ze(16089);function xt(Oe,ve,ce,Ce){const Ee=ce-ve;return Oe/=Ce/2,Oe<1?Ee/2*Oe*Oe*Oe+ve:Ee/2*((Oe-=2)*Oe*Oe+2)+ve}var oe=ze(13845);function Ue(Oe){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ce=()=>window,callback:Ce,duration:Ee=450}=ve,ye=ce(),be=(0,oe.Z)(ye,!0),me=Date.now(),xe=()=>{const z=Date.now()-me,ee=xt(z>Ee?Ee:z,be,Oe,Ee);(0,oe.F)(ye)?ye.scrollTo(window.pageXOffset,ee):ye instanceof Document||ye.constructor.name==="HTMLDocument"?ye.documentElement.scrollTop=ee:ye.scrollTop=ee,z<Ee?(0,We.Z)(xe):typeof Ce=="function"&&Ce()};(0,We.Z)(xe)}},88522:function(Nn,mn,ze){"use strict";var We=ze(92310),xt=ze.n(We),oe=ze(11592),Ue=ze(2738),Oe=ze(59301),ve=ze(53487),ce=ze(92343),Ce=ze(36355),Ee=ze(57809);const{Option:ye}=Ee.default;function be(z){return z&&z.type&&(z.type.isSelectOption||z.type.isSelectOptGroup)}const me=(z,ee)=>{const{prefixCls:ae,className:re,popupClassName:le,dropdownClassName:ue,children:pe,dataSource:Pe}=z,we=(0,oe.Z)(pe);let Ne;we.length===1&&(0,ce.l$)(we[0])&&!be(we[0])&&([Ne]=we);const Ae=Ne?()=>Ne:void 0;let Te;we.length&&be(we[0])?Te=pe:Te=Pe?Pe.map(Re=>{if((0,ce.l$)(Re))return Re;switch(typeof Re){case"string":return Oe.createElement(ye,{key:Re,value:Re},Re);case"object":{const{value:Qe}=Re;return Oe.createElement(ye,{key:Qe,value:Qe},Re.text)}default:return}}):[];const{getPrefixCls:Me}=Oe.useContext(Ce.E_),Be=Me("select",ae);return Oe.createElement(Ee.default,Object.assign({ref:ee,suffixIcon:null},(0,Ue.Z)(z,["dataSource","dropdownClassName"]),{prefixCls:Be,popupClassName:le||ue,className:xt()(`${Be}-auto-complete`,re),mode:Ee.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:Ae}),Te)},xe=Oe.forwardRef(me),fe=(0,ve.Z)(xe);xe.Option=ye,xe._InternalPanelDoNotUseOrYouWillBeFired=fe,mn.Z=xe},66104:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return $e}});var We=ze(92310),xt=ze.n(We),oe=ze(11592),Ue=ze(26112),Oe=ze(59301),ve=ze(92343),ce=ze(36355),Ce=ze(84105),Ee=ze(91857);const ye=qe=>{let{children:ut}=qe;const{getPrefixCls:ct}=Oe.useContext(ce.E_),yt=ct("breadcrumb");return Oe.createElement("li",{className:`${yt}-separator`,"aria-hidden":"true"},ut===""?ut:ut||"/")};ye.__ANT_BREADCRUMB_SEPARATOR=!0;var be=ye,me=function(qe,ut){var ct={};for(var yt in qe)Object.prototype.hasOwnProperty.call(qe,yt)&&ut.indexOf(yt)<0&&(ct[yt]=qe[yt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,yt=Object.getOwnPropertySymbols(qe);_e<yt.length;_e++)ut.indexOf(yt[_e])<0&&Object.prototype.propertyIsEnumerable.call(qe,yt[_e])&&(ct[yt[_e]]=qe[yt[_e]]);return ct};function xe(qe,ut){if(qe.title===void 0||qe.title===null)return null;const ct=Object.keys(ut).join("|");return typeof qe.title=="object"?qe.title:String(qe.title).replace(new RegExp(`:(${ct})`,"g"),(yt,_e)=>ut[_e]||yt)}function fe(qe,ut,ct,yt){if(ct==null)return null;const{className:_e,onClick:st}=ut,pt=me(ut,["className","onClick"]),bt=Object.assign(Object.assign({},(0,Ue.Z)(pt,{data:!0,aria:!0})),{onClick:st});return yt!==void 0?Oe.createElement("a",Object.assign({},bt,{className:xt()(`${qe}-link`,_e),href:yt}),ct):Oe.createElement("span",Object.assign({},bt,{className:xt()(`${qe}-link`,_e)}),ct)}function z(qe,ut){return(yt,_e,st,pt,bt)=>{if(ut)return ut(yt,_e,st,pt);const wt=xe(yt,_e);return fe(qe,yt,wt,bt)}}var ee=function(qe,ut){var ct={};for(var yt in qe)Object.prototype.hasOwnProperty.call(qe,yt)&&ut.indexOf(yt)<0&&(ct[yt]=qe[yt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,yt=Object.getOwnPropertySymbols(qe);_e<yt.length;_e++)ut.indexOf(yt[_e])<0&&Object.prototype.propertyIsEnumerable.call(qe,yt[_e])&&(ct[yt[_e]]=qe[yt[_e]]);return ct};const ae=qe=>{const{prefixCls:ut,separator:ct="/",children:yt,menu:_e,overlay:st,dropdownProps:pt,href:bt}=qe,mt=(vt=>{if(_e||st){const St=Object.assign({},pt);if(_e){const Nt=_e||{},{items:Ft}=Nt,Kt=ee(Nt,["items"]);St.menu=Object.assign(Object.assign({},Kt),{items:Ft==null?void 0:Ft.map((Pt,Et)=>{var{key:at,title:Ct,label:nt,path:ht}=Pt,Mt=ee(Pt,["key","title","label","path"]);let gt=nt!=null?nt:Ct;return ht&&(gt=Oe.createElement("a",{href:`${bt}${ht}`},gt)),Object.assign(Object.assign({},Mt),{key:at!=null?at:Et,label:gt})})})}else st&&(St.overlay=st);return Oe.createElement(Ee.Z,Object.assign({placement:"bottom"},St),Oe.createElement("span",{className:`${ut}-overlay-link`},vt,Oe.createElement(Ce.Z,null)))}return vt})(yt);return mt!=null?Oe.createElement(Oe.Fragment,null,Oe.createElement("li",null,mt),ct&&Oe.createElement(be,null,ct)):null},re=qe=>{const{prefixCls:ut,children:ct,href:yt}=qe,_e=ee(qe,["prefixCls","children","href"]),{getPrefixCls:st}=Oe.useContext(ce.E_),pt=st("breadcrumb",ut);return Oe.createElement(ae,Object.assign({},_e,{prefixCls:pt}),fe(pt,_e,ct,yt))};re.__ANT_BREADCRUMB_ITEM=!0;var le=re,ue=ze(17313),pe=ze(83116),Pe=ze(37613);const we=qe=>{const{componentCls:ut,iconCls:ct}=qe;return{[ut]:Object.assign(Object.assign({},(0,ue.Wf)(qe)),{color:qe.itemColor,fontSize:qe.fontSize,[ct]:{fontSize:qe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:qe.linkColor,transition:`color ${qe.motionDurationMid}`,padding:`0 ${qe.paddingXXS}px`,borderRadius:qe.borderRadiusSM,height:qe.lineHeight*qe.fontSize,display:"inline-block",marginInline:-qe.marginXXS,"&:hover":{color:qe.linkHoverColor,backgroundColor:qe.colorBgTextHover}},(0,ue.Qy)(qe)),"li:last-child":{color:qe.lastItemColor},[`${ut}-separator`]:{marginInline:qe.separatorMargin,color:qe.separatorColor},[`${ut}-link`]:{[`
> ${ct} + span,
> ${ct} + a
`]:{marginInlineStart:qe.marginXXS}},[`${ut}-overlay-link`]:{borderRadius:qe.borderRadiusSM,height:qe.lineHeight*qe.fontSize,display:"inline-block",padding:`0 ${qe.paddingXXS}px`,marginInline:-qe.marginXXS,[`> ${ct}`]:{marginInlineStart:qe.marginXXS,fontSize:qe.fontSizeIcon},"&:hover":{color:qe.linkHoverColor,backgroundColor:qe.colorBgTextHover,a:{color:qe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${qe.componentCls}-rtl`]:{direction:"rtl"}})}};var Ne=(0,pe.Z)("Breadcrumb",qe=>{const ut=(0,Pe.TS)(qe,{});return[we(ut)]},qe=>({itemColor:qe.colorTextDescription,lastItemColor:qe.colorText,iconFontSize:qe.fontSize,linkColor:qe.colorTextDescription,linkHoverColor:qe.colorText,separatorColor:qe.colorTextDescription,separatorMargin:qe.marginXS})),Ae=function(qe,ut){var ct={};for(var yt in qe)Object.prototype.hasOwnProperty.call(qe,yt)&&ut.indexOf(yt)<0&&(ct[yt]=qe[yt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,yt=Object.getOwnPropertySymbols(qe);_e<yt.length;_e++)ut.indexOf(yt[_e])<0&&Object.prototype.propertyIsEnumerable.call(qe,yt[_e])&&(ct[yt[_e]]=qe[yt[_e]]);return ct};function Te(qe){const{breadcrumbName:ut,children:ct}=qe,yt=Ae(qe,["breadcrumbName","children"]),_e=Object.assign({title:ut},yt);return ct&&(_e.menu={items:ct.map(st=>{var{breadcrumbName:pt}=st,bt=Ae(st,["breadcrumbName"]);return Object.assign(Object.assign({},bt),{title:pt})})}),_e}function Me(qe,ut){return(0,Oe.useMemo)(()=>qe||(ut?ut.map(Te):null),[qe,ut])}var Be=function(qe,ut){var ct={};for(var yt in qe)Object.prototype.hasOwnProperty.call(qe,yt)&&ut.indexOf(yt)<0&&(ct[yt]=qe[yt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,yt=Object.getOwnPropertySymbols(qe);_e<yt.length;_e++)ut.indexOf(yt[_e])<0&&Object.prototype.propertyIsEnumerable.call(qe,yt[_e])&&(ct[yt[_e]]=qe[yt[_e]]);return ct};const Re=(qe,ut)=>{if(ut===void 0)return ut;let ct=(ut||"").replace(/^\//,"");return Object.keys(qe).forEach(yt=>{ct=ct.replace(`:${yt}`,qe[yt])}),ct},Qe=qe=>{const{prefixCls:ut,separator:ct="/",style:yt,className:_e,rootClassName:st,routes:pt,items:bt,children:wt,itemRender:mt,params:vt={}}=qe,St=Be(qe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Nt,direction:Ft,breadcrumb:Kt}=Oe.useContext(ce.E_);let Pt;const Et=Nt("breadcrumb",ut),[at,Ct]=Ne(Et),nt=Me(bt,pt),ht=z(Et,mt);if(nt&&nt.length>0){const rt=[],Je=bt||pt;Pt=nt.map((Xe,Ve)=>{const{path:tt,key:Ze,type:je,menu:De,overlay:Ye,onClick:dt,className:Ke,separator:At,dropdownProps:zt}=Xe,_t=Re(vt,tt);_t!==void 0&&rt.push(_t);const Ot=Ze!=null?Ze:Ve;if(je==="separator")return Oe.createElement(be,{key:Ot},At);const Vt={},en=Ve===nt.length-1;De?Vt.menu=De:Ye&&(Vt.overlay=Ye);let{href:on}=Xe;return rt.length&&_t!==void 0&&(on=`#/${rt.join("/")}`),Oe.createElement(ae,Object.assign({key:Ot},Vt,(0,Ue.Z)(Xe,{data:!0,aria:!0}),{className:Ke,dropdownProps:zt,href:on,separator:en?"":ct,onClick:dt,prefixCls:Et}),ht(Xe,vt,Je,rt,on))})}else if(wt){const rt=(0,oe.Z)(wt).length;Pt=(0,oe.Z)(wt).map((Je,Xe)=>{if(!Je)return Je;const Ve=Xe===rt-1;return(0,ve.Tm)(Je,{separator:Ve?"":ct,key:Xe})})}const Mt=xt()(Et,Kt==null?void 0:Kt.className,{[`${Et}-rtl`]:Ft==="rtl"},_e,st,Ct),gt=Object.assign(Object.assign({},Kt==null?void 0:Kt.style),yt);return at(Oe.createElement("nav",Object.assign({className:Mt,style:gt},St),Oe.createElement("ol",null,Pt)))};Qe.Item=le,Qe.Separator=be;var He=Qe,$e=He},19842:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return mi}});var We=ze(80702),xt=ze(59301),oe=ze(33853),Ue=ze(58617),Oe=ze(38819),ve=ze(92310),ce=ze.n(ve),Ce=ze(72308),Ee=ze(52487),ye=ze(74416),be=ze(77861),me=ze(17115),xe=ze(90782),fe=ze(6089),z=ze(18929),ee=xt.createContext(null),ae=ee,re=ze(62853),le=ze(49618),ue=ze(77321),pe="__rc_cascader_search_mark__",Pe=function(dr,ar,vr){var Jn=vr.label;return ar.some(function(zn){return String(zn[Jn]).toLowerCase().includes(dr.toLowerCase())})},we=function(dr,ar,vr,Jn){return ar.map(function(zn){return zn[Jn.label]}).join(" / ")},Ne=function(Tn,dr,ar,vr,Jn,zn){var $t=Jn.filter,Xt=$t===void 0?Pe:$t,Tt=Jn.render,sn=Tt===void 0?we:Tt,pn=Jn.limit,Yt=pn===void 0?50:pn,Bt=Jn.sort;return xt.useMemo(function(){var un=[];if(!Tn)return[];function bn(On,Zn){var Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;On.forEach(function(An){if(!(!Bt&&Yt!==!1&&Yt>0&&un.length>=Yt)){var Kn=[].concat((0,We.Z)(Zn),[An]),rr=An[ar.children],xn=Gt||An.disabled;if((!rr||rr.length===0||zn)&&Xt(Tn,Kn,{label:ar.label})){var Cn;un.push((0,ue.Z)((0,ue.Z)({},An),{},(Cn={disabled:xn},(0,le.Z)(Cn,ar.label,sn(Tn,Kn,vr,ar)),(0,le.Z)(Cn,pe,Kn),(0,le.Z)(Cn,ar.children,void 0),Cn)))}rr&&bn(An[ar.children],Kn,xn)}})}return bn(dr,[]),Bt&&un.sort(function(On,Zn){return Bt(On[pe],Zn[pe],Tn,ar)}),Yt!==!1&&Yt>0?un.slice(0,Yt):un},[Tn,dr,ar,vr,sn,zn,Xt,Bt,Yt])},Ae="__RC_CASCADER_SPLIT__",Te="SHOW_PARENT",Me="SHOW_CHILD";function Be(Tn){return Tn.join(Ae)}function Re(Tn){return Tn.map(Be)}function Qe(Tn){return Tn.split(Ae)}function He(Tn){var dr=Tn||{},ar=dr.label,vr=dr.value,Jn=dr.children,zn=vr||"value";return{label:ar||"label",value:zn,key:zn,children:Jn||"children"}}function $e(Tn,dr){var ar,vr;return(ar=Tn.isLeaf)!==null&&ar!==void 0?ar:!((vr=Tn[dr.children])!==null&&vr!==void 0&&vr.length)}function qe(Tn){var dr=Tn.parentElement;if(dr){var ar=Tn.offsetTop-dr.offsetTop;ar-dr.scrollTop<0?dr.scrollTo({top:ar}):ar+Tn.offsetHeight-dr.scrollTop>dr.offsetHeight&&dr.scrollTo({top:ar+Tn.offsetHeight-dr.offsetHeight})}}function ut(Tn,dr){return Tn.map(function(ar){var vr;return(vr=ar[pe])===null||vr===void 0?void 0:vr.map(function(Jn){return Jn[dr.value]})})}function ct(Tn,dr,ar){var vr=new Set(Tn),Jn=dr();return Tn.filter(function(zn){var $t=Jn[zn],Xt=$t?$t.parent:null,Tt=$t?$t.children:null;return $t&&$t.node.disabled?!0:ar===Me?!(Tt&&Tt.some(function(sn){return sn.key&&vr.has(sn.key)})):!(Xt&&!Xt.node.disabled&&vr.has(Xt.key))})}function yt(Tn,dr,ar){for(var vr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Jn=dr,zn=[],$t=function(){var sn,pn,Yt,Bt=Tn[Xt],un=(sn=Jn)===null||sn===void 0?void 0:sn.findIndex(function(On){var Zn=On[ar.value];return vr?String(Zn)===String(Bt):Zn===Bt}),bn=un!==-1?(pn=Jn)===null||pn===void 0?void 0:pn[un]:null;zn.push({value:(Yt=bn==null?void 0:bn[ar.value])!==null&&Yt!==void 0?Yt:Bt,index:un,option:bn}),Jn=bn==null?void 0:bn[ar.children]},Xt=0;Xt<Tn.length;Xt+=1)$t();return zn}var _e=function(Tn,dr,ar,vr,Jn){return xt.useMemo(function(){var zn=Jn||function($t){var Xt=vr?$t.slice(-1):$t,Tt=" / ";return Xt.every(function(sn){return["string","number"].includes((0,re.Z)(sn))})?Xt.join(Tt):Xt.reduce(function(sn,pn,Yt){var Bt=xt.isValidElement(pn)?xt.cloneElement(pn,{key:Yt}):pn;return Yt===0?[Bt]:[].concat((0,We.Z)(sn),[Tt,Bt])},[])};return Tn.map(function($t){var Xt,Tt,sn=yt($t,dr,ar),pn=zn(sn.map(function(Bt){var un,bn=Bt.option,On=Bt.value;return(un=bn==null?void 0:bn[ar.label])!==null&&un!==void 0?un:On}),sn.map(function(Bt){var un=Bt.option;return un})),Yt=Be($t);return{label:pn,value:Yt,key:Yt,valueCells:$t,disabled:(Xt=sn[sn.length-1])===null||Xt===void 0||(Tt=Xt.option)===null||Tt===void 0?void 0:Tt.disabled}})},[Tn,dr,ar,Jn,vr])},st=ze(71430),pt=function(Tn,dr){var ar=xt.useRef({options:null,info:null}),vr=xt.useCallback(function(){return ar.current.options!==Tn&&(ar.current.options=Tn,ar.current.info=(0,st.I8)(Tn,{fieldNames:dr,initWrapper:function(zn){return(0,ue.Z)((0,ue.Z)({},zn),{},{pathKeyEntities:{}})},processEntity:function(zn,$t){var Xt=zn.nodes.map(function(Tt){return Tt[dr.value]}).join(Ae);$t.pathKeyEntities[Xt]=zn,zn.key=Xt}})),ar.current.info.pathKeyEntities},[dr,Tn]);return vr},bt=function(Tn,dr){return xt.useCallback(function(ar){var vr=[],Jn=[];return ar.forEach(function(zn){var $t=yt(zn,Tn,dr);$t.every(function(Xt){return Xt.option})?Jn.push(zn):vr.push(zn)}),[Jn,vr]},[Tn,dr])},wt=ze(48736);function mt(Tn){return xt.useMemo(function(){if(!Tn)return[!1,{}];var dr={matchInputWidth:!0,limit:50};return Tn&&(0,re.Z)(Tn)==="object"&&(dr=(0,ue.Z)((0,ue.Z)({},dr),Tn)),dr.limit<=0&&delete dr.limit,[!0,dr]},[Tn])}var vt=xt.memo(function(Tn){var dr=Tn.children;return dr},function(Tn,dr){return!dr.open}),St=vt;function Nt(Tn){var dr,ar=Tn.prefixCls,vr=Tn.checked,Jn=Tn.halfChecked,zn=Tn.disabled,$t=Tn.onClick,Xt=Tn.disableCheckbox,Tt=xt.useContext(ae),sn=Tt.checkable,pn=typeof sn!="boolean"?sn:null;return xt.createElement("span",{className:ce()("".concat(ar),(dr={},(0,le.Z)(dr,"".concat(ar,"-checked"),vr),(0,le.Z)(dr,"".concat(ar,"-indeterminate"),!vr&&Jn),(0,le.Z)(dr,"".concat(ar,"-disabled"),zn||Xt),dr)),onClick:$t},pn)}var Ft="__cascader_fix_label__";function Kt(Tn){var dr=Tn.prefixCls,ar=Tn.multiple,vr=Tn.options,Jn=Tn.activeValue,zn=Tn.prevValuePath,$t=Tn.onToggleOpen,Xt=Tn.onSelect,Tt=Tn.onActive,sn=Tn.checkedSet,pn=Tn.halfCheckedSet,Yt=Tn.loadingKeys,Bt=Tn.isSelectable,un=Tn.searchValue,bn="".concat(dr,"-menu"),On="".concat(dr,"-menu-item"),Zn=xt.useContext(ae),Gt=Zn.fieldNames,An=Zn.changeOnSelect,Kn=Zn.expandTrigger,rr=Zn.expandIcon,xn=Zn.loadingIcon,Cn=Zn.dropdownMenuColumnStyle,tn=Kn==="hover",gn=xt.useMemo(function(){return vr.map(function(yn){var vn,Ln=yn.disabled,Fn=yn.disableCheckbox,Gn=yn[pe],Hn=(vn=yn[Ft])!==null&&vn!==void 0?vn:yn[Gt.label],gr=yn[Gt.value],dn=$e(yn,Gt),Dr=Gn?Gn.map(function(cr){return cr[Gt.value]}):[].concat((0,We.Z)(zn),[gr]),zr=Be(Dr),Qr=Yt.includes(zr),wn=sn.has(zr),Yn=pn.has(zr);return{disabled:Ln,label:Hn,value:gr,isLeaf:dn,isLoading:Qr,checked:wn,halfChecked:Yn,option:yn,disableCheckbox:Fn,fullPath:Dr,fullPathKey:zr}})},[vr,sn,Gt,pn,Yt,zn]);return xt.createElement("ul",{className:bn,role:"menu"},gn.map(function(yn){var vn,Ln=yn.disabled,Fn=yn.label,Gn=yn.value,Hn=yn.isLeaf,gr=yn.isLoading,dn=yn.checked,Dr=yn.halfChecked,zr=yn.option,Qr=yn.fullPath,wn=yn.fullPathKey,Yn=yn.disableCheckbox,cr=function(){if(!(Ln||un)){var Hr=(0,We.Z)(Qr);tn&&Hn&&Hr.pop(),Tt(Hr)}},Fr=function(){Bt(zr)&&Xt(Qr,Hn)},fr;return typeof zr.title=="string"?fr=zr.title:typeof Fn=="string"&&(fr=Fn),xt.createElement("li",{key:wn,className:ce()(On,(vn={},(0,le.Z)(vn,"".concat(On,"-expand"),!Hn),(0,le.Z)(vn,"".concat(On,"-active"),Jn===Gn||Jn===wn),(0,le.Z)(vn,"".concat(On,"-disabled"),Ln),(0,le.Z)(vn,"".concat(On,"-loading"),gr),vn)),style:Cn,role:"menuitemcheckbox",title:fr,"aria-checked":dn,"data-path-key":wn,onClick:function(){cr(),!Yn&&(!ar||Hn)&&Fr()},onDoubleClick:function(){An&&$t(!1)},onMouseEnter:function(){tn&&cr()},onMouseDown:function(Hr){Hr.preventDefault()}},ar&&xt.createElement(Nt,{prefixCls:"".concat(dr,"-checkbox"),checked:dn,halfChecked:Dr,disabled:Ln||Yn,disableCheckbox:Yn,onClick:function(Hr){Yn||(Hr.stopPropagation(),Fr())}}),xt.createElement("div",{className:"".concat(On,"-content")},Fn),!gr&&rr&&!Hn&&xt.createElement("div",{className:"".concat(On,"-expand-icon")},rr),gr&&xn&&xt.createElement("div",{className:"".concat(On,"-loading-icon")},xn))}))}var Pt=function(){var Tn=(0,be.lk)(),dr=Tn.multiple,ar=Tn.open,vr=xt.useContext(ae),Jn=vr.values,zn=xt.useState([]),$t=(0,Ee.Z)(zn,2),Xt=$t[0],Tt=$t[1];return xt.useEffect(function(){if(ar&&!dr){var sn=Jn[0];Tt(sn||[])}},[ar]),[Xt,Tt]},Et=ze(10228),at=function(Tn,dr,ar,vr,Jn,zn){var $t=(0,be.lk)(),Xt=$t.direction,Tt=$t.searchValue,sn=$t.toggleOpen,pn=$t.open,Yt=Xt==="rtl",Bt=xt.useMemo(function(){for(var Cn=-1,tn=dr,gn=[],yn=[],vn=vr.length,Ln=ut(dr,ar),Fn=function(zr){var Qr=tn.findIndex(function(wn,Yn){return(Ln[Yn]?Be(Ln[Yn]):wn[ar.value])===vr[zr]});if(Qr===-1)return"break";Cn=Qr,gn.push(Cn),yn.push(vr[zr]),tn=tn[Cn][ar.children]},Gn=0;Gn<vn&&tn;Gn+=1){var Hn=Fn(Gn);if(Hn==="break")break}for(var gr=dr,dn=0;dn<gn.length-1;dn+=1)gr=gr[gn[dn]][ar.children];return[yn,Cn,gr,Ln]},[vr,ar,dr]),un=(0,Ee.Z)(Bt,4),bn=un[0],On=un[1],Zn=un[2],Gt=un[3],An=function(tn){Jn(tn)},Kn=function(tn){var gn=Zn.length,yn=On;yn===-1&&tn<0&&(yn=gn);for(var vn=0;vn<gn;vn+=1){yn=(yn+tn+gn)%gn;var Ln=Zn[yn];if(Ln&&!Ln.disabled){var Fn=bn.slice(0,-1).concat(Gt[yn]?Be(Gt[yn]):Ln[ar.value]);An(Fn);return}}},rr=function(){if(bn.length>1){var tn=bn.slice(0,-1);An(tn)}else sn(!1)},xn=function(){var tn,gn=((tn=Zn[On])===null||tn===void 0?void 0:tn[ar.children])||[],yn=gn.find(function(Ln){return!Ln.disabled});if(yn){var vn=[].concat((0,We.Z)(bn),[yn[ar.value]]);An(vn)}};xt.useImperativeHandle(Tn,function(){return{onKeyDown:function(tn){var gn=tn.which;switch(gn){case Et.Z.UP:case Et.Z.DOWN:{var yn=0;gn===Et.Z.UP?yn=-1:gn===Et.Z.DOWN&&(yn=1),yn!==0&&Kn(yn);break}case Et.Z.LEFT:{if(Tt)break;Yt?xn():rr();break}case Et.Z.RIGHT:{if(Tt)break;Yt?rr():xn();break}case Et.Z.BACKSPACE:{Tt||rr();break}case Et.Z.ENTER:{if(bn.length){var vn=Zn[On],Ln=(vn==null?void 0:vn[pe])||[];Ln.length?zn(Ln.map(function(Fn){return Fn[ar.value]}),Ln[Ln.length-1]):zn(bn,Zn[On])}break}case Et.Z.ESC:sn(!1),pn&&tn.stopPropagation()}},onKeyUp:function(){}}})},Ct=xt.forwardRef(function(Tn,dr){var ar,vr,Jn,zn,$t=(0,be.lk)(),Xt=$t.prefixCls,Tt=$t.multiple,sn=$t.searchValue,pn=$t.toggleOpen,Yt=$t.notFoundContent,Bt=$t.direction,un=$t.open,bn=xt.useRef(),On=Bt==="rtl",Zn=xt.useContext(ae),Gt=Zn.options,An=Zn.values,Kn=Zn.halfValues,rr=Zn.fieldNames,xn=Zn.changeOnSelect,Cn=Zn.onSelect,tn=Zn.searchOptions,gn=Zn.dropdownPrefixCls,yn=Zn.loadData,vn=Zn.expandTrigger,Ln=gn||Xt,Fn=xt.useState([]),Gn=(0,Ee.Z)(Fn,2),Hn=Gn[0],gr=Gn[1],dn=function($r){if(!(!yn||sn)){var Xi=yt($r,Gt,rr),Oi=Xi.map(function(xi){var ki=xi.option;return ki}),Ir=Oi[Oi.length-1];if(Ir&&!$e(Ir,rr)){var jr=Be($r);gr(function(xi){return[].concat((0,We.Z)(xi),[jr])}),yn(Oi)}}};xt.useEffect(function(){Hn.length&&Hn.forEach(function(Ri){var $r=Qe(Ri),Xi=yt($r,Gt,rr,!0).map(function(Ir){var jr=Ir.option;return jr}),Oi=Xi[Xi.length-1];(!Oi||Oi[rr.children]||$e(Oi,rr))&&gr(function(Ir){return Ir.filter(function(jr){return jr!==Ri})})})},[Gt,Hn,rr]);var Dr=xt.useMemo(function(){return new Set(Re(An))},[An]),zr=xt.useMemo(function(){return new Set(Re(Kn))},[Kn]),Qr=Pt(),wn=(0,Ee.Z)(Qr,2),Yn=wn[0],cr=wn[1],Fr=function($r){cr($r),dn($r)},fr=function($r){var Xi=$r.disabled,Oi=$e($r,rr);return!Xi&&(Oi||xn||Tt)},br=function($r,Xi){var Oi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Cn($r),!Tt&&(Xi||xn&&(vn==="hover"||Oi))&&pn(!1)},Hr=xt.useMemo(function(){return sn?tn:Gt},[sn,tn,Gt]),Rr=xt.useMemo(function(){for(var Ri=[{options:Hr}],$r=Hr,Xi=ut($r,rr),Oi=function(){var ki=Yn[Ir],pr=$r.find(function(Li,ao){return(Xi[ao]?Be(Xi[ao]):Li[rr.value])===ki}),kt=pr==null?void 0:pr[rr.children];if(!(kt!=null&&kt.length))return"break";$r=kt,Ri.push({options:kt})},Ir=0;Ir<Yn.length;Ir+=1){var jr=Oi();if(jr==="break")break}return Ri},[Hr,Yn,rr]),Cr=function($r,Xi){fr(Xi)&&br($r,$e(Xi,rr),!0)};at(dr,Hr,rr,Yn,Fr,Cr),xt.useEffect(function(){for(var Ri=0;Ri<Yn.length;Ri+=1){var $r,Xi=Yn.slice(0,Ri+1),Oi=Be(Xi),Ir=($r=bn.current)===null||$r===void 0?void 0:$r.querySelector('li[data-path-key="'.concat(Oi.replace(/\\{0,2}"/g,'\\"'),'"]'));Ir&&qe(Ir)}},[Yn]);var Zr=!((ar=Rr[0])!==null&&ar!==void 0&&(vr=ar.options)!==null&&vr!==void 0&&vr.length),Dn=[(Jn={},(0,le.Z)(Jn,rr.value,"__EMPTY__"),(0,le.Z)(Jn,Ft,Yt),(0,le.Z)(Jn,"disabled",!0),Jn)],Ei=(0,ue.Z)((0,ue.Z)({},Tn),{},{multiple:!Zr&&Tt,onSelect:br,onActive:Fr,onToggleOpen:pn,checkedSet:Dr,halfCheckedSet:zr,loadingKeys:Hn,isSelectable:fr}),kn=Zr?[{options:Dn}]:Rr,ci=kn.map(function(Ri,$r){var Xi=Yn.slice(0,$r),Oi=Yn[$r];return xt.createElement(Kt,(0,Ce.Z)({key:$r},Ei,{searchValue:sn,prefixCls:Ln,options:Ri.options,prevValuePath:Xi,activeValue:Oi}))});return xt.createElement(St,{open:un},xt.createElement("div",{className:ce()("".concat(Ln,"-menus"),(zn={},(0,le.Z)(zn,"".concat(Ln,"-menu-empty"),Zr),(0,le.Z)(zn,"".concat(Ln,"-rtl"),On),zn)),ref:bn},ci))}),nt=Ct;function ht(Tn){var dr=Tn.onPopupVisibleChange,ar=Tn.popupVisible,vr=Tn.popupClassName,Jn=Tn.popupPlacement;warning(!dr,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(ar===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(vr===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Jn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Mt(Tn,dr){if(Tn){var ar=function vr(Jn){for(var zn=0;zn<Jn.length;zn++){var $t=Jn[zn];if($t[dr==null?void 0:dr.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray($t[dr==null?void 0:dr.children])&&vr($t[dr==null?void 0:dr.children]))return!0}};ar(Tn)}}var gt=null,rt=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Je(Tn){return Array.isArray(Tn)&&Array.isArray(Tn[0])}function Xe(Tn){return Tn?Je(Tn)?Tn:(Tn.length===0?[]:[Tn]).map(function(dr){return Array.isArray(dr)?dr:[dr]}):[]}var Ve=xt.forwardRef(function(Tn,dr){var ar=Tn.id,vr=Tn.prefixCls,Jn=vr===void 0?"rc-cascader":vr,zn=Tn.fieldNames,$t=Tn.defaultValue,Xt=Tn.value,Tt=Tn.changeOnSelect,sn=Tn.onChange,pn=Tn.displayRender,Yt=Tn.checkable,Bt=Tn.autoClearSearchValue,un=Bt===void 0?!0:Bt,bn=Tn.searchValue,On=Tn.onSearch,Zn=Tn.showSearch,Gt=Tn.expandTrigger,An=Tn.options,Kn=Tn.dropdownPrefixCls,rr=Tn.loadData,xn=Tn.popupVisible,Cn=Tn.open,tn=Tn.popupClassName,gn=Tn.dropdownClassName,yn=Tn.dropdownMenuColumnStyle,vn=Tn.popupPlacement,Ln=Tn.placement,Fn=Tn.onDropdownVisibleChange,Gn=Tn.onPopupVisibleChange,Hn=Tn.expandIcon,gr=Hn===void 0?">":Hn,dn=Tn.loadingIcon,Dr=Tn.children,zr=Tn.dropdownMatchSelectWidth,Qr=zr===void 0?!1:zr,wn=Tn.showCheckedStrategy,Yn=wn===void 0?Te:wn,cr=(0,ye.Z)(Tn,rt),Fr=(0,me.ZP)(ar),fr=!!Yt,br=(0,z.Z)($t,{value:Xt,postState:Xe}),Hr=(0,Ee.Z)(br,2),Rr=Hr[0],Cr=Hr[1],Zr=xt.useMemo(function(){return He(zn)},[JSON.stringify(zn)]),Dn=xt.useMemo(function(){return An||[]},[An]),Ei=pt(Dn,Zr),kn=xt.useCallback(function(lo){var Qi=Ei();return lo.map(function(Do){var Oo=Qi[Do].nodes;return Oo.map(function(oa){return oa[Zr.value]})})},[Ei,Zr]),ci=(0,z.Z)("",{value:bn,postState:function(Qi){return Qi||""}}),Ri=(0,Ee.Z)(ci,2),$r=Ri[0],Xi=Ri[1],Oi=function(Qi,Do){Xi(Qi),Do.source!=="blur"&&On&&On(Qi)},Ir=mt(Zn),jr=(0,Ee.Z)(Ir,2),xi=jr[0],ki=jr[1],pr=Ne($r,Dn,Zr,Kn||Jn,ki,Tt),kt=bt(Dn,Zr),Li=xt.useMemo(function(){var lo=kt(Rr),Qi=(0,Ee.Z)(lo,2),Do=Qi[0],Oo=Qi[1];if(!fr||!Rr.length)return[Do,[],Oo];var oa=Re(Do),la=Ei(),Ma=(0,xe.S)(oa,!0,la),Mn=Ma.checkedKeys,ha=Ma.halfCheckedKeys;return[kn(Mn),kn(ha),Oo]},[fr,Rr,Ei,kn,kt]),ao=(0,Ee.Z)(Li,3),Pi=ao[0],co=ao[1],wo=ao[2],ti=xt.useMemo(function(){var lo=Re(Pi),Qi=ct(lo,Ei,Yn);return[].concat((0,We.Z)(wo),(0,We.Z)(kn(Qi)))},[Pi,Ei,kn,wo,Yn]),hi=_e(ti,Dn,Zr,fr,pn),Fi=(0,fe.Z)(function(lo){if(Cr(lo),sn){var Qi=Xe(lo),Do=Qi.map(function(la){return yt(la,Dn,Zr).map(function(Ma){return Ma.option})}),Oo=fr?Qi:Qi[0],oa=fr?Do:Do[0];sn(Oo,oa)}}),wi=(0,fe.Z)(function(lo){if((!fr||un)&&Xi(""),!fr)Fi(lo);else{var Qi=Be(lo),Do=Re(Pi),Oo=Re(co),oa=Do.includes(Qi),la=wo.some(function(Ao){return Be(Ao)===Qi}),Ma=Pi,Mn=wo;if(la&&!oa)Mn=wo.filter(function(Ao){return Be(Ao)!==Qi});else{var ha=oa?Do.filter(function(Ao){return Ao!==Qi}):[].concat((0,We.Z)(Do),[Qi]),fu=Ei(),xs;if(oa){var bo=(0,xe.S)(ha,{checked:!1,halfCheckedKeys:Oo},fu);xs=bo.checkedKeys}else{var _i=(0,xe.S)(ha,!0,fu);xs=_i.checkedKeys}var da=ct(xs,Ei,Yn);Ma=kn(da)}Fi([].concat((0,We.Z)(Mn),(0,We.Z)(Ma)))}}),so=function(Qi,Do){if(Do.type==="clear"){Fi([]);return}var Oo=Do.values[0],oa=Oo.valueCells;wi(oa)},Po=Cn!==void 0?Cn:xn,Vr=gn||tn,Xr=Ln||vn,qn=function(Qi){Fn==null||Fn(Qi),Gn==null||Gn(Qi)},si=xt.useMemo(function(){return{options:Dn,fieldNames:Zr,values:Pi,halfValues:co,changeOnSelect:Tt,onSelect:wi,checkable:Yt,searchOptions:pr,dropdownPrefixCls:Kn,loadData:rr,expandTrigger:Gt,expandIcon:gr,loadingIcon:dn,dropdownMenuColumnStyle:yn}},[Dn,Zr,Pi,co,Tt,wi,Yt,pr,Kn,rr,Gt,gr,dn,yn]),qi=!($r?pr:Dn).length,Ro=$r&&ki.matchInputWidth||qi?{}:{minWidth:"auto"};return xt.createElement(ae.Provider,{value:si},xt.createElement(be.Ac,(0,Ce.Z)({},cr,{ref:dr,id:Fr,prefixCls:Jn,autoClearSearchValue:un,dropdownMatchSelectWidth:Qr,dropdownStyle:Ro,displayValues:hi,onDisplayValuesChange:so,mode:fr?"multiple":void 0,searchValue:$r,onSearch:Oi,showSearch:xi,OptionList:nt,emptyOptions:qi,open:Po,dropdownClassName:Vr,placement:Xr,onDropdownVisibleChange:qn,getRawInputElement:function(){return Dr}})))});Ve.SHOW_PARENT=Te,Ve.SHOW_CHILD=Me;var tt=Ve,Ze=tt,je=ze(2738),De=ze(62892),Ye=ze(53487),dt=ze(19080),Ke=ze(36355),At=ze(93891),zt=ze(1684),_t=ze(19716),Ot=ze(32441),Vt=ze(14154),en=ze(58582),on=ze(84443),fn=ze(66339),jn=ze(33234),er=ze(98447),tr=ze(17313),ur=ze(74207),Tr=ze(83116);const Lr=Tn=>{const{prefixCls:dr,componentCls:ar,antCls:vr}=Tn,Jn=`${ar}-menu-item`,zn=`
&${Jn}-expand ${Jn}-expand-icon,
${Jn}-loading-icon
`;return[{[ar]:{width:Tn.controlWidth}},{[`${ar}-dropdown`]:[(0,er.C2)(`${dr}-checkbox`,Tn),{[`&${vr}-select-dropdown`]:{padding:0}},{[ar]:{"&-checkbox":{top:0,marginInlineEnd:Tn.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${ar}-menu-empty`]:{[`${ar}-menu`]:{width:"100%",height:"auto",[Jn]:{color:Tn.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Tn.controlItemWidth,height:Tn.dropdownHeight,margin:0,padding:Tn.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Tn.lineWidth}px ${Tn.lineType} ${Tn.colorSplit}`},"&-item":Object.assign(Object.assign({},tr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Tn.optionPadding,lineHeight:Tn.lineHeight,cursor:"pointer",transition:`all ${Tn.motionDurationMid}`,borderRadius:Tn.borderRadiusSM,"&:hover":{background:Tn.controlItemBgHover},"&-disabled":{color:Tn.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[zn]:{color:Tn.colorTextDisabled}},[`&-active:not(${Jn}-disabled)`]:{"&, &:hover":{fontWeight:Tn.optionSelectedFontWeight,backgroundColor:Tn.optionSelectedBg}},"&-content":{flex:"auto"},[zn]:{marginInlineStart:Tn.paddingXXS,color:Tn.colorTextDescription,fontSize:Tn.fontSizeIcon},"&-keyword":{color:Tn.colorHighlight}})}}}]},{[`${ar}-dropdown-rtl`]:{direction:"rtl"}},(0,ur.c)(Tn)]};var Ar=(0,Tr.Z)("Cascader",Tn=>[Lr(Tn)],Tn=>{const dr=Math.round((Tn.controlHeight-Tn.fontSize*Tn.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Tn.controlItemBgActive,optionSelectedFontWeight:Tn.fontWeightStrong,optionPadding:`${dr}px ${Tn.paddingSM}px`,menuPadding:Tn.paddingXXS}}),Gr=function(Tn,dr){var ar={};for(var vr in Tn)Object.prototype.hasOwnProperty.call(Tn,vr)&&dr.indexOf(vr)<0&&(ar[vr]=Tn[vr]);if(Tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jn=0,vr=Object.getOwnPropertySymbols(Tn);Jn<vr.length;Jn++)dr.indexOf(vr[Jn])<0&&Object.prototype.propertyIsEnumerable.call(Tn,vr[Jn])&&(ar[vr[Jn]]=Tn[vr[Jn]]);return ar};const{SHOW_CHILD:Kr,SHOW_PARENT:Mr}=Ze;function fi(Tn,dr,ar){const vr=Tn.toLowerCase().split(dr).reduce(($t,Xt,Tt)=>Tt===0?[Xt]:[].concat((0,We.Z)($t),[dr,Xt]),[]),Jn=[];let zn=0;return vr.forEach(($t,Xt)=>{const Tt=zn+$t.length;let sn=Tn.slice(zn,Tt);zn=Tt,Xt%2===1&&(sn=xt.createElement("span",{className:`${ar}-menu-item-keyword`,key:`separator-${Xt}`},sn)),Jn.push(sn)}),Jn}const Jr=(Tn,dr,ar,vr)=>{const Jn=[],zn=Tn.toLowerCase();return dr.forEach(($t,Xt)=>{Xt!==0&&Jn.push(" / ");let Tt=$t[vr.label];const sn=typeof Tt;(sn==="string"||sn==="number")&&(Tt=fi(String(Tt),zn,ar)),Jn.push(Tt)}),Jn},it=xt.forwardRef((Tn,dr)=>{const{prefixCls:ar,size:vr,disabled:Jn,className:zn,rootClassName:$t,multiple:Xt,bordered:Tt=!0,transitionName:sn,choiceTransitionName:pn="",popupClassName:Yt,dropdownClassName:Bt,expandIcon:un,placement:bn,showSearch:On,allowClear:Zn=!0,notFoundContent:Gt,direction:An,getPopupContainer:Kn,status:rr,showArrow:xn,builtinPlacements:Cn,style:tn}=Tn,gn=Gr(Tn,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),yn=(0,je.Z)(gn,["suffixIcon"]),{getPopupContainer:vn,getPrefixCls:Ln,renderEmpty:Fn,direction:Gn,popupOverflow:Hn,cascader:gr}=xt.useContext(Ke.E_),dn=An||Gn,Dr=dn==="rtl",{status:zr,hasFeedback:Qr,isFormItemInput:wn,feedbackIcon:Yn}=xt.useContext(Ot.aM),cr=(0,dt.F)(zr,rr),Fr=Gt||(Fn==null?void 0:Fn("Cascader"))||xt.createElement(At.Z,{componentName:"Cascader"}),fr=Ln(),br=Ln("select",ar),Hr=Ln("cascader",ar),[Rr,Cr]=(0,Vt.Z)(br),[Zr]=Ar(Hr),{compactSize:Dn,compactItemClassnames:Ei}=(0,jn.ri)(br,An),kn=ce()(Yt||Bt,`${Hr}-dropdown`,{[`${Hr}-dropdown-rtl`]:dn==="rtl"},$t,Cr),ci=xt.useMemo(()=>{if(!On)return On;let wo={render:Jr};return typeof On=="object"&&(wo=Object.assign(Object.assign({},wo),On)),wo},[On]),Ri=(0,_t.Z)(wo=>{var ti;return(ti=vr!=null?vr:Dn)!==null&&ti!==void 0?ti:wo}),$r=xt.useContext(zt.Z),Xi=Jn!=null?Jn:$r;let Oi=un;un||(Oi=Dr?xt.createElement(oe.Z,null):xt.createElement(Oe.Z,null));const Ir=xt.createElement("span",{className:`${br}-menu-item-loading-icon`},xt.createElement(Ue.Z,{spin:!0})),jr=xt.useMemo(()=>Xt?xt.createElement("span",{className:`${Hr}-checkbox-inner`}):!1,[Xt]),xi=(0,on.Z)(Tn.suffixIcon,xn),{suffixIcon:ki,removeIcon:pr,clearIcon:kt}=(0,fn.Z)(Object.assign(Object.assign({},Tn),{hasFeedback:Qr,feedbackIcon:Yn,showSuffixIcon:xi,multiple:Xt,prefixCls:br,componentName:"Cascader"})),Li=xt.useMemo(()=>bn!==void 0?bn:Dr?"bottomRight":"bottomLeft",[bn,Dr]),ao=(0,en.Z)(Cn,Hn),Pi=Zn===!0?{clearIcon:kt}:Zn,co=xt.createElement(Ze,Object.assign({prefixCls:br,className:ce()(!ar&&Hr,{[`${br}-lg`]:Ri==="large",[`${br}-sm`]:Ri==="small",[`${br}-rtl`]:Dr,[`${br}-borderless`]:!Tt,[`${br}-in-form-item`]:wn},(0,dt.Z)(br,cr,Qr),Ei,gr==null?void 0:gr.className,zn,$t,Cr),disabled:Xi,style:Object.assign(Object.assign({},gr==null?void 0:gr.style),tn)},yn,{builtinPlacements:ao,direction:dn,placement:Li,notFoundContent:Fr,allowClear:Pi,showSearch:ci,expandIcon:Oi,suffixIcon:ki,removeIcon:pr,loadingIcon:Ir,checkable:jr,dropdownClassName:kn,dropdownPrefixCls:ar||Hr,choiceTransitionName:(0,De.m)(fr,"",pn),transitionName:(0,De.m)(fr,"slide-up",sn),getPopupContainer:Kn||vn,ref:dr}));return Zr(Rr(co))}),bi=(0,Ye.Z)(it);it.SHOW_PARENT=Mr,it.SHOW_CHILD=Kr,it._InternalPanelDoNotUseOrYouWillBeFired=bi;var mi=it},24905:function(Nn,mn,ze){"use strict";ze.d(mn,{default:function(){return Ne}});var We=ze(92310),xt=ze.n(We),oe=ze(5630),Ue=ze(59301),Oe=ze(36355),ve=ze(1684),ce=ze(32441),Ee=Ue.createContext(null),ye=ze(98447),be=ze(14088),me=ze(4572),xe=function(Ae,Te){var Me={};for(var Be in Ae)Object.prototype.hasOwnProperty.call(Ae,Be)&&Te.indexOf(Be)<0&&(Me[Be]=Ae[Be]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Be=Object.getOwnPropertySymbols(Ae);Re<Be.length;Re++)Te.indexOf(Be[Re])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Be[Re])&&(Me[Be[Re]]=Ae[Be[Re]]);return Me};const fe=(Ae,Te)=>{var Me;const{prefixCls:Be,className:Re,rootClassName:Qe,children:He,indeterminate:$e=!1,style:qe,onMouseEnter:ut,onMouseLeave:ct,skipGroup:yt=!1,disabled:_e}=Ae,st=xe(Ae,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:pt,direction:bt,checkbox:wt}=Ue.useContext(Oe.E_),mt=Ue.useContext(Ee),{isFormItemInput:vt}=Ue.useContext(ce.aM),St=Ue.useContext(ve.Z),Nt=(Me=(mt==null?void 0:mt.disabled)||_e)!==null&&Me!==void 0?Me:St,Ft=Ue.useRef(st.value);Ue.useEffect(()=>{mt==null||mt.registerValue(st.value)},[]),Ue.useEffect(()=>{if(!yt)return st.value!==Ft.current&&(mt==null||mt.cancelValue(Ft.current),mt==null||mt.registerValue(st.value),Ft.current=st.value),()=>mt==null?void 0:mt.cancelValue(st.value)},[st.value]);const Kt=pt("checkbox",Be),[Pt,Et]=(0,ye.ZP)(Kt),at=Object.assign({},st);mt&&!yt&&(at.onChange=function(){st.onChange&&st.onChange.apply(st,arguments),mt.toggleOption&&mt.toggleOption({label:He,value:st.value})},at.name=mt.name,at.checked=mt.value.includes(st.value));const Ct=xt()(`${Kt}-wrapper`,{[`${Kt}-rtl`]:bt==="rtl",[`${Kt}-wrapper-checked`]:at.checked,[`${Kt}-wrapper-disabled`]:Nt,[`${Kt}-wrapper-in-form-item`]:vt},wt==null?void 0:wt.className,Re,Qe,Et),nt=xt()({[`${Kt}-indeterminate`]:$e},me.A,Et),ht=$e?"mixed":void 0;return Pt(Ue.createElement(be.Z,{component:"Checkbox",disabled:Nt},Ue.createElement("label",{className:Ct,style:Object.assign(Object.assign({},wt==null?void 0:wt.style),qe),onMouseEnter:ut,onMouseLeave:ct},Ue.createElement(oe.Z,Object.assign({"aria-checked":ht},at,{prefixCls:Kt,className:nt,disabled:Nt,ref:Te})),He!==void 0&&Ue.createElement("span",null,He))))};var ee=Ue.forwardRef(fe),ae=ze(80702),re=ze(2738),le=function(Ae,Te){var Me={};for(var Be in Ae)Object.prototype.hasOwnProperty.call(Ae,Be)&&Te.indexOf(Be)<0&&(Me[Be]=Ae[Be]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Be=Object.getOwnPropertySymbols(Ae);Re<Be.length;Re++)Te.indexOf(Be[Re])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Be[Re])&&(Me[Be[Re]]=Ae[Be[Re]]);return Me};const ue=(Ae,Te)=>{const{defaultValue:Me,children:Be,options:Re=[],prefixCls:Qe,className:He,rootClassName:$e,style:qe,onChange:ut}=Ae,ct=le(Ae,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:yt,direction:_e}=Ue.useContext(Oe.E_),[st,pt]=Ue.useState(ct.value||Me||[]),[bt,wt]=Ue.useState([]);Ue.useEffect(()=>{"value"in ct&&pt(ct.value||[])},[ct.value]);const mt=Ue.useMemo(()=>Re.map(Mt=>typeof Mt=="string"||typeof Mt=="number"?{label:Mt,value:Mt}:Mt),[Re]),vt=Mt=>{wt(gt=>gt.filter(rt=>rt!==Mt))},St=Mt=>{wt(gt=>[].concat((0,ae.Z)(gt),[Mt]))},Nt=Mt=>{const gt=st.indexOf(Mt.value),rt=(0,ae.Z)(st);gt===-1?rt.push(Mt.value):rt.splice(gt,1),"value"in ct||pt(rt),ut==null||ut(rt.filter(Je=>bt.includes(Je)).sort((Je,Xe)=>{const Ve=mt.findIndex(Ze=>Ze.value===Je),tt=mt.findIndex(Ze=>Ze.value===Xe);return Ve-tt}))},Ft=yt("checkbox",Qe),Kt=`${Ft}-group`,[Pt,Et]=(0,ye.ZP)(Ft),at=(0,re.Z)(ct,["value","disabled"]),Ct=Re.length?mt.map(Mt=>Ue.createElement(ee,{prefixCls:Ft,key:Mt.value.toString(),disabled:"disabled"in Mt?Mt.disabled:ct.disabled,value:Mt.value,checked:st.includes(Mt.value),onChange:Mt.onChange,className:`${Kt}-item`,style:Mt.style,title:Mt.title},Mt.label)):Be,nt={toggleOption:Nt,value:st,disabled:ct.disabled,name:ct.name,registerValue:St,cancelValue:vt},ht=xt()(Kt,{[`${Kt}-rtl`]:_e==="rtl"},He,$e,Et);return Pt(Ue.createElement("div",Object.assign({className:ht,style:qe},at,{ref:Te}),Ue.createElement(Ee.Provider,{value:nt},Ct)))},pe=Ue.forwardRef(ue);var Pe=Ue.memo(pe);const we=ee;we.Group=Pe,we.__ANT_CHECKBOX=!0;var Ne=we},98447:function(Nn,mn,ze){"use strict";ze.d(mn,{C2:function(){return Oe}});var We=ze(17313),xt=ze(37613),oe=ze(83116);const Ue=ve=>{const{checkboxCls:ce}=ve,Ce=`${ce}-wrapper`;return[{[`${ce}-group`]:Object.assign(Object.assign({},(0,We.Wf)(ve)),{display:"inline-flex",flexWrap:"wrap",columnGap:ve.marginXS,[`> ${ve.antCls}-row`]:{flex:1}}),[Ce]:Object.assign(Object.assign({},(0,We.Wf)(ve)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ce}`]:{marginInlineStart:0},[`&${Ce}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ce]:Object.assign(Object.assign({},(0,We.Wf)(ve)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ve.borderRadiusSM,alignSelf:"center",[`${ce}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ce}-inner`]:Object.assign({},(0,We.oN)(ve))},[`${ce}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ve.checkboxSize,height:ve.checkboxSize,direction:"ltr",backgroundColor:ve.colorBgContainer,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusSM,borderCollapse:"separate",transition:`all ${ve.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ve.checkboxSize/14*5,height:ve.checkboxSize/14*8,border:`${ve.lineWidthBold}px solid ${ve.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ve.motionDurationFast} ${ve.motionEaseInBack}, opacity ${ve.motionDurationFast}`}},"& + span":{paddingInlineStart:ve.paddingXS,paddingInlineEnd:ve.paddingXS}})},{[`
${Ce}:not(${Ce}-disabled),
${ce}:not(${ce}-disabled)
`]:{[`&:hover ${ce}-inner`]:{borderColor:ve.colorPrimary}},[`${Ce}:not(${Ce}-disabled)`]:{[`&:hover ${ce}-checked:not(${ce}-disabled) ${ce}-inner`]:{backgroundColor:ve.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ce}-checked:not(${ce}-disabled):after`]:{borderColor:ve.colorPrimaryHover}}},{[`${ce}-checked`]:{[`${ce}-inner`]:{backgroundColor:ve.colorPrimary,borderColor:ve.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ve.motionDurationMid} ${ve.motionEaseOutBack} ${ve.motionDurationFast}`}}},[`
${Ce}-checked:not(${Ce}-disabled),
${ce}-checked:not(${ce}-disabled)
`]:{[`&:hover ${ce}-inner`]:{backgroundColor:ve.colorPrimaryHover,borderColor:"transparent"}}},{[ce]:{"&-indeterminate":{[`${ce}-inner`]:{backgroundColor:ve.colorBgContainer,borderColor:ve.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ve.fontSizeLG/2,height:ve.fontSizeLG/2,backgroundColor:ve.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ce}-disabled`]:{cursor:"not-allowed"},[`${ce}-disabled`]:{[`&, ${ce}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ce}-inner`]:{background:ve.colorBgContainerDisabled,borderColor:ve.colorBorder,"&:after":{borderColor:ve.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ve.colorTextDisabled},[`&${ce}-indeterminate ${ce}-inner::after`]:{background:ve.colorTextDisabled}}}]};function Oe(ve,ce){const Ce=(0,xt.TS)(ce,{checkboxCls:`.${ve}`,checkboxSize:ce.controlInteractiveSize});return[Ue(Ce)]}mn.ZP=(0,oe.Z)("Checkbox",(ve,ce)=>{let{prefixCls:Ce}=ce;return[Oe(Ce,ve)]})},93891:function(Nn,mn,ze){"use strict";var We=ze(59301),xt=ze(36355),oe=ze(64165);const Ue=Oe=>{const{componentName:ve}=Oe,{getPrefixCls:ce}=(0,We.useContext)(xt.E_),Ce=ce("empty");switch(ve){case"Table":case"List":return We.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return We.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ce}-small`});default:return We.createElement(oe.Z,null)}};mn.Z=Ue},28103:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return me}});var We=ze(92310),xt=ze.n(We),oe=ze(59301),Ue=ze(36355),Oe=ze(17313),ve=ze(83116),ce=ze(37613);const Ce=xe=>{const{componentCls:fe,sizePaddingEdgeHorizontal:z,colorSplit:ee,lineWidth:ae,textPaddingInline:re,orientationMargin:le,verticalMarginInline:ue}=xe;return{[fe]:Object.assign(Object.assign({},(0,Oe.Wf)(xe)),{borderBlockStart:`${ae}px solid ${ee}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ue,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ae}px solid ${ee}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${xe.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${fe}-with-text`]:{display:"flex",alignItems:"center",margin:`${xe.dividerHorizontalWithTextGutterMargin}px 0`,color:xe.colorTextHeading,fontWeight:500,fontSize:xe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ee}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ae}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${fe}-with-text-left`]:{"&::before":{width:`${le*100}%`},"&::after":{width:`${100-le*100}%`}},[`&-horizontal${fe}-with-text-right`]:{"&::before":{width:`${100-le*100}%`},"&::after":{width:`${le*100}%`}},[`${fe}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:re},"&-dashed":{background:"none",borderColor:ee,borderStyle:"dashed",borderWidth:`${ae}px 0 0`},[`&-horizontal${fe}-with-text${fe}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${fe}-dashed`]:{borderInlineStartWidth:ae,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${fe}-with-text`]:{color:xe.colorText,fontWeight:"normal",fontSize:xe.fontSize},[`&-horizontal${fe}-with-text-left${fe}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${fe}-inner-text`]:{paddingInlineStart:z}},[`&-horizontal${fe}-with-text-right${fe}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${fe}-inner-text`]:{paddingInlineEnd:z}}})}};var Ee=(0,ve.Z)("Divider",xe=>{const fe=(0,ce.TS)(xe,{dividerHorizontalWithTextGutterMargin:xe.margin,dividerHorizontalGutterMargin:xe.marginLG,sizePaddingEdgeHorizontal:0});return[Ce(fe)]},xe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:xe.marginXS})),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},me=xe=>{const{getPrefixCls:fe,direction:z,divider:ee}=oe.useContext(Ue.E_),{prefixCls:ae,type:re="horizontal",orientation:le="center",orientationMargin:ue,className:pe,rootClassName:Pe,children:we,dashed:Ne,plain:Ae,style:Te}=xe,Me=ye(xe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Be=fe("divider",ae),[Re,Qe]=Ee(Be),He=le.length>0?`-${le}`:le,$e=!!we,qe=le==="left"&&ue!=null,ut=le==="right"&&ue!=null,ct=xt()(Be,ee==null?void 0:ee.className,Qe,`${Be}-${re}`,{[`${Be}-with-text`]:$e,[`${Be}-with-text${He}`]:$e,[`${Be}-dashed`]:!!Ne,[`${Be}-plain`]:!!Ae,[`${Be}-rtl`]:z==="rtl",[`${Be}-no-default-orientation-margin-left`]:qe,[`${Be}-no-default-orientation-margin-right`]:ut},pe,Pe),yt=oe.useMemo(()=>typeof ue=="number"?ue:/^\d+$/.test(ue)?Number(ue):ue,[ue]),_e=Object.assign(Object.assign({},qe&&{marginLeft:yt}),ut&&{marginRight:yt});return Re(oe.createElement("div",Object.assign({className:ct,style:Object.assign(Object.assign({},ee==null?void 0:ee.style),Te)},Me,{role:"separator"}),we&&re!=="vertical"&&oe.createElement("span",{className:`${Be}-inner-text`,style:_e},we)))}},91857:function(Nn,mn,ze){"use strict";var We=ze(59301),xt=ze(38819),oe=ze(92310),Ue=ze.n(oe),Oe=ze(31561),ve=ze(70425),ce=ze(18929),Ce=ze(2738),Ee=ze(79676),ye=ze(53487),be=ze(92343),me=ze(36355),xe=ze(20834),fe=ze(40875),z=ze(88088),ee=ze(47211);const ae=null,re=Pe=>{const{menu:we,arrow:Ne,prefixCls:Ae,children:Te,trigger:Me,disabled:Be,dropdownRender:Re,getPopupContainer:Qe,overlayClassName:He,rootClassName:$e,open:qe,onOpenChange:ut,visible:ct,onVisibleChange:yt,mouseEnterDelay:_e=.15,mouseLeaveDelay:st=.1,autoAdjustOverflow:pt=!0,placement:bt="",overlay:wt,transitionName:mt}=Pe,{getPopupContainer:vt,getPrefixCls:St,direction:Nt}=We.useContext(me.E_),Ft=We.useMemo(()=>{const De=St();return mt!==void 0?mt:bt.includes("top")?`${De}-slide-down`:`${De}-slide-up`},[St,bt,mt]),Kt=We.useMemo(()=>bt?bt.includes("Center")?bt.slice(0,bt.indexOf("Center")):bt:Nt==="rtl"?"bottomRight":"bottomLeft",[bt,Nt]),Pt=St("dropdown",Ae),[Et,at]=(0,ee.Z)(Pt),[,Ct]=(0,z.Z)(),nt=We.Children.only(Te),ht=(0,be.Tm)(nt,{className:Ue()(`${Pt}-trigger`,{[`${Pt}-rtl`]:Nt==="rtl"},nt.props.className),disabled:Be}),Mt=Be?[]:Me;let gt;Mt&&Mt.includes("contextMenu")&&(gt=!0);const[rt,Je]=(0,ce.Z)(!1,{value:qe!=null?qe:ct}),Xe=(0,ve.useEvent)(De=>{ut==null||ut(De),yt==null||yt(De),Je(De)}),Ve=Ue()(He,$e,at,{[`${Pt}-rtl`]:Nt==="rtl"}),tt=(0,Ee.Z)({arrowPointAtCenter:typeof Ne=="object"&&Ne.pointAtCenter,autoAdjustOverflow:pt,offset:Ct.marginXXS,arrowWidth:Ne?Ct.sizePopupArrow:0,borderRadius:Ct.borderRadius}),Ze=We.useCallback(()=>{Je(!1)},[]),je=()=>{let De;return we!=null&&we.items?De=We.createElement(xe.default,Object.assign({},we)):typeof wt=="function"?De=wt():De=wt,Re&&(De=Re(De)),De=We.Children.only(typeof De=="string"?We.createElement("span",null,De):De),We.createElement(fe.J,{prefixCls:`${Pt}-menu`,expandIcon:We.createElement("span",{className:`${Pt}-menu-submenu-arrow`},We.createElement(xt.Z,{className:`${Pt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ze,validator:Ye=>{let{mode:dt}=Ye}},De)};return Et(We.createElement(Oe.Z,Object.assign({alignPoint:gt},(0,Ce.Z)(Pe,["rootClassName"]),{mouseEnterDelay:_e,mouseLeaveDelay:st,visible:rt,builtinPlacements:tt,arrow:!!Ne,overlayClassName:Ve,prefixCls:Pt,getPopupContainer:Qe||vt,transitionName:Ft,trigger:Mt,overlay:je,placement:Kt,onVisibleChange:Xe}),ht))};function le(Pe){return Object.assign(Object.assign({},Pe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ue=(0,ye.Z)(re,"dropdown",Pe=>Pe,le),pe=Pe=>We.createElement(ue,Object.assign({},Pe),We.createElement("span",null));re._InternalPanelDoNotUseOrYouWillBeFired=pe,mn.Z=re},38854:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return z}});var We=ze(91857),xt=ze(92310),oe=ze.n(xt),Ue=ze(59301),Oe=ze(18785),ve=ze(3113),ce=ze(36355),Ce=ze(81327),Ee=ze(33234),ye=ze(47211),be=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 me=ee=>{const{getPopupContainer:ae,getPrefixCls:re,direction:le}=Ue.useContext(ce.E_),{prefixCls:ue,type:pe="default",danger:Pe,disabled:we,loading:Ne,onClick:Ae,htmlType:Te,children:Me,className:Be,menu:Re,arrow:Qe,autoFocus:He,overlay:$e,trigger:qe,align:ut,open:ct,onOpenChange:yt,placement:_e,getPopupContainer:st,href:pt,icon:bt=Ue.createElement(Oe.Z,null),title:wt,buttonsRender:mt=je=>je,mouseEnterDelay:vt,mouseLeaveDelay:St,overlayClassName:Nt,overlayStyle:Ft,destroyPopupOnHide:Kt,dropdownRender:Pt}=ee,Et=be(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"]),at=re("dropdown",ue),Ct=`${at}-button`,[nt,ht]=(0,ye.Z)(at),Mt={menu:Re,arrow:Qe,autoFocus:He,align:ut,disabled:we,trigger:we?[]:qe,onOpenChange:yt,getPopupContainer:st||ae,mouseEnterDelay:vt,mouseLeaveDelay:St,overlayClassName:Nt,overlayStyle:Ft,destroyPopupOnHide:Kt,dropdownRender:Pt},{compactSize:gt,compactItemClassnames:rt}=(0,Ee.ri)(at,le),Je=oe()(Ct,rt,Be,ht);"overlay"in ee&&(Mt.overlay=$e),"open"in ee&&(Mt.open=ct),"placement"in ee?Mt.placement=_e:Mt.placement=le==="rtl"?"bottomLeft":"bottomRight";const Xe=Ue.createElement(ve.ZP,{type:pe,danger:Pe,disabled:we,loading:Ne,onClick:Ae,htmlType:Te,href:pt,title:wt},Me),Ve=Ue.createElement(ve.ZP,{type:pe,danger:Pe,icon:bt}),[tt,Ze]=mt([Xe,Ve]);return nt(Ue.createElement(Ce.Z.Compact,Object.assign({className:Je,size:gt,block:!0},Et),tt,Ue.createElement(We.Z,Object.assign({},Mt),Ze)))};me.__ANT_BUTTON=!0;var xe=me;const fe=We.Z;fe.Button=xe;var z=fe},47211:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return be}});var We=ze(17313),xt=ze(13826),oe=ze(92899),Ue=ze(29878),Oe=ze(19447),ve=ze(83116),ce=ze(37613),Ee=me=>{const{componentCls:xe,menuCls:fe,colorError:z,colorTextLightSolid:ee}=me,ae=`${fe}-item`;return{[`${xe}, ${xe}-menu-submenu`]:{[`${fe} ${ae}`]:{[`&${ae}-danger:not(${ae}-disabled)`]:{color:z,"&:hover":{color:ee,backgroundColor:z}}}}}};const ye=me=>{const{componentCls:xe,menuCls:fe,zIndexPopup:z,dropdownArrowDistance:ee,sizePopupArrow:ae,antCls:re,iconCls:le,motionDurationMid:ue,dropdownPaddingVertical:pe,fontSize:Pe,dropdownEdgeChildPadding:we,colorTextDisabled:Ne,fontSizeIcon:Ae,controlPaddingHorizontal:Te,colorBgElevated:Me}=me;return[{[xe]:Object.assign(Object.assign({},(0,We.Wf)(me)),{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:xt.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:xt.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:xt.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:xt.ly}})},(0,Oe.ZP)(me,{colorBg:Me,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:we,listStyleType:"none",backgroundColor:Me,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,We.Qy)(me)),{[`${fe}-item-group-title`]:{padding:`${pe}px ${Te}px`,color:me.colorTextDescription,transition:`all ${ue}`},[`${fe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${fe}-item-icon`]:{minWidth:Pe,marginInlineEnd:me.marginXS,fontSize:me.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 ${Te}px`,color:me.colorText,fontWeight:"normal",fontSize:Pe,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${ue}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,We.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:Ne,cursor:"not-allowed","&:hover":{color:Ne,backgroundColor:Me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:Ae,fontStyle:"normal"}}}),[`${fe}-item-group-list`]:{margin:`0 ${me.marginXS}px`,padding:0,listStyle:"none"},[`${fe}-submenu-title`]:{paddingInlineEnd:Te+me.fontSizeSM},[`${fe}-submenu-vertical`]:{position:"relative"},[`${fe}-submenu${fe}-submenu-disabled ${xe}-menu-submenu-title`]:{[`&, ${xe}-menu-submenu-arrow-icon`]:{color:Ne,backgroundColor:Me,cursor:"not-allowed"}},[`${fe}-submenu-selected ${xe}-menu-submenu-title`]:{color:me.colorPrimary}})}},[(0,xt.oN)(me,"slide-up"),(0,xt.oN)(me,"slide-down"),(0,oe.Fm)(me,"move-up"),(0,oe.Fm)(me,"move-down"),(0,Ue._y)(me,"zoom-big")]]};var be=(0,ve.Z)("Dropdown",(me,xe)=>{let{rootPrefixCls:fe}=xe;const{marginXXS:z,sizePopupArrow:ee,controlHeight:ae,fontSize:re,lineHeight:le,paddingXXS:ue,componentCls:pe,borderRadiusLG:Pe}=me,we=(ae-re*le)/2,{dropdownArrowOffset:Ne}=(0,Oe.fS)({contentRadius:Pe}),Ae=(0,ce.TS)(me,{menuCls:`${pe}-menu`,rootPrefixCls:fe,dropdownArrowDistance:ee/2+z,dropdownArrowOffset:Ne,dropdownPaddingVertical:we,dropdownEdgeChildPadding:ue});return[ye(Ae),Ee(Ae)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},64165:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return ue}});var We=ze(92310),xt=ze.n(We),oe=ze(59301),Ue=ze(36355),Oe=ze(9763),ve=ze(64993),ce=ze(88088),Ee=()=>{const[,pe]=(0,ce.Z)(),we=new ve.C(pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return oe.createElement("svg",{style:we,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{fill:"none",fillRule:"evenodd"},oe.createElement("g",{transform:"translate(24 31.67)"},oe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),oe.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"}),oe.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)"}),oe.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"}),oe.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"})),oe.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"}),oe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},oe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),oe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},be=()=>{const[,pe]=(0,ce.Z)(),{colorFill:Pe,colorFillTertiary:we,colorFillQuaternary:Ne,colorBgContainer:Ae}=pe,{borderColor:Te,shadowColor:Me,contentColor:Be}=(0,oe.useMemo)(()=>({borderColor:new ve.C(Pe).onBackground(Ae).toHexShortString(),shadowColor:new ve.C(we).onBackground(Ae).toHexShortString(),contentColor:new ve.C(Ne).onBackground(Ae).toHexShortString()}),[Pe,we,Ne,Ae]);return oe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},oe.createElement("ellipse",{fill:Me,cx:"32",cy:"33",rx:"32",ry:"7"}),oe.createElement("g",{fillRule:"nonzero",stroke:Te},oe.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"}),oe.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}))))},me=ze(83116),xe=ze(37613);const fe=pe=>{const{componentCls:Pe,margin:we,marginXS:Ne,marginXL:Ae,fontSize:Te,lineHeight:Me}=pe;return{[Pe]:{marginInline:Ne,fontSize:Te,lineHeight:Me,textAlign:"center",[`${Pe}-image`]:{height:pe.emptyImgHeight,marginBottom:Ne,opacity:pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Pe}-description`]:{color:pe.colorText},[`${Pe}-footer`]:{marginTop:we},"&-normal":{marginBlock:Ae,color:pe.colorTextDisabled,[`${Pe}-description`]:{color:pe.colorTextDisabled},[`${Pe}-image`]:{height:pe.emptyImgHeightMD}},"&-small":{marginBlock:Ne,color:pe.colorTextDisabled,[`${Pe}-image`]:{height:pe.emptyImgHeightSM}}}}};var z=(0,me.Z)("Empty",pe=>{const{componentCls:Pe,controlHeightLG:we}=pe,Ne=(0,xe.TS)(pe,{emptyImgCls:`${Pe}-img`,emptyImgHeight:we*2.5,emptyImgHeightMD:we,emptyImgHeightSM:we*.875});return[fe(Ne)]}),ee=function(pe,Pe){var we={};for(var Ne in pe)Object.prototype.hasOwnProperty.call(pe,Ne)&&Pe.indexOf(Ne)<0&&(we[Ne]=pe[Ne]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ne=Object.getOwnPropertySymbols(pe);Ae<Ne.length;Ae++)Pe.indexOf(Ne[Ae])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ne[Ae])&&(we[Ne[Ae]]=pe[Ne[Ae]]);return we};const ae=oe.createElement(Ee,null),re=oe.createElement(be,null),le=pe=>{var{className:Pe,rootClassName:we,prefixCls:Ne,image:Ae=ae,description:Te,children:Me,imageStyle:Be,style:Re}=pe,Qe=ee(pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:He,direction:$e,empty:qe}=oe.useContext(Ue.E_),ut=He("empty",Ne),[ct,yt]=z(ut),[_e]=(0,Oe.Z)("Empty"),st=typeof Te!="undefined"?Te:_e==null?void 0:_e.description,pt=typeof st=="string"?st:"empty";let bt=null;return typeof Ae=="string"?bt=oe.createElement("img",{alt:pt,src:Ae}):bt=Ae,ct(oe.createElement("div",Object.assign({className:xt()(yt,ut,qe==null?void 0:qe.className,{[`${ut}-normal`]:Ae===re,[`${ut}-rtl`]:$e==="rtl"},Pe,we),style:Object.assign(Object.assign({},qe==null?void 0:qe.style),Re)},Qe),oe.createElement("div",{className:`${ut}-image`,style:Be},bt),st&&oe.createElement("div",{className:`${ut}-description`},st),Me&&oe.createElement("div",{className:`${ut}-footer`},Me)))};le.PRESENTED_IMAGE_DEFAULT=ae,le.PRESENTED_IMAGE_SIMPLE=re;var ue=le},78241:function(Nn,mn,ze){"use strict";ze.d(mn,{default:function(){return Xt}});var We=ze(80702),xt=ze(92310),oe=ze.n(xt),Ue=ze(77900),Oe=ze(59301),ve=ze(62892),ce=ze(32441);function Ce(Tt){const[sn,pn]=Oe.useState(Tt);return Oe.useEffect(()=>{const Yt=setTimeout(()=>{pn(Tt)},Tt.length?0:10);return()=>{clearTimeout(Yt)}},[Tt]),sn}var Ee=ze(17313),ye=ze(29878),be=ze(8378),me=ze(37613),xe=ze(83116),z=Tt=>{const{componentCls:sn}=Tt,pn=`${sn}-show-help`,Yt=`${sn}-show-help-item`;return{[pn]:{transition:`opacity ${Tt.motionDurationSlow} ${Tt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Yt]:{overflow:"hidden",transition:`height ${Tt.motionDurationSlow} ${Tt.motionEaseInOut},
opacity ${Tt.motionDurationSlow} ${Tt.motionEaseInOut},
transform ${Tt.motionDurationSlow} ${Tt.motionEaseInOut} !important`,[`&${Yt}-appear, &${Yt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Yt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ee=Tt=>({legend:{display:"block",width:"100%",marginBottom:Tt.marginLG,padding:0,color:Tt.colorTextDescription,fontSize:Tt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Tt.lineWidth}px ${Tt.lineType} ${Tt.colorBorder}`},label:{fontSize:Tt.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 ${Tt.controlOutlineWidth}px ${Tt.controlOutline}`},output:{display:"block",paddingTop:15,color:Tt.colorText,fontSize:Tt.fontSize,lineHeight:Tt.lineHeight}}),ae=(Tt,sn)=>{const{formItemCls:pn}=Tt;return{[pn]:{[`${pn}-label > label`]:{height:sn},[`${pn}-control-input`]:{minHeight:sn}}}},re=Tt=>{const{componentCls:sn}=Tt;return{[Tt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ee.Wf)(Tt)),ee(Tt)),{[`${sn}-text`]:{display:"inline-block",paddingInlineEnd:Tt.paddingSM},"&-small":Object.assign({},ae(Tt,Tt.controlHeightSM)),"&-large":Object.assign({},ae(Tt,Tt.controlHeightLG))})}},le=Tt=>{const{formItemCls:sn,iconCls:pn,componentCls:Yt,rootPrefixCls:Bt,labelRequiredMarkColor:un,labelColor:bn,labelFontSize:On,labelHeight:Zn,labelColonMarginInlineStart:Gt,labelColonMarginInlineEnd:An,itemMarginBottom:Kn}=Tt;return{[sn]:Object.assign(Object.assign({},(0,Ee.Wf)(Tt)),{marginBottom:Kn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Bt}-row`]:{display:"none"},"&-has-warning":{[`${sn}-split`]:{color:Tt.colorError}},"&-has-error":{[`${sn}-split`]:{color:Tt.colorWarning}},[`${sn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Tt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Zn,color:bn,fontSize:On,[`> ${pn}`]:{fontSize:Tt.fontSize,verticalAlign:"top"},[`&${sn}-required:not(${sn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Tt.marginXXS,color:un,fontSize:Tt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Yt}-hide-required-mark &`]:{display:"none"}},[`${sn}-optional`]:{display:"inline-block",marginInlineStart:Tt.marginXXS,color:Tt.colorTextDescription,[`${Yt}-hide-required-mark &`]:{display:"none"}},[`${sn}-tooltip`]:{color:Tt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Tt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Gt,marginInlineEnd:An},[`&${sn}-no-colon::after`]:{content:'"\\a0"'}}},[`${sn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Bt}-col-'"]):not([class*="' ${Bt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Tt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[sn]:{"&-explain, &-extra":{clear:"both",color:Tt.colorTextDescription,fontSize:Tt.fontSize,lineHeight:Tt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Tt.controlHeightSM,transition:`color ${Tt.motionDurationMid} ${Tt.motionEaseOut}`},"&-explain":{"&-error":{color:Tt.colorError},"&-warning":{color:Tt.colorWarning}}},[`&-with-help ${sn}-explain`]:{height:"auto",opacity:1},[`${sn}-feedback-icon`]:{fontSize:Tt.fontSize,textAlign:"center",visibility:"visible",animationName:ye.kr,animationDuration:Tt.motionDurationMid,animationTimingFunction:Tt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Tt.colorSuccess},"&-error":{color:Tt.colorError},"&-warning":{color:Tt.colorWarning},"&-validating":{color:Tt.colorPrimary}}})}},ue=Tt=>{const{componentCls:sn,formItemCls:pn}=Tt;return{[`${sn}-horizontal`]:{[`${pn}-label`]:{flexGrow:0},[`${pn}-control`]:{flex:"1 1 0",minWidth:0},[`${pn}-label[class$='-24'], ${pn}-label[class*='-24 ']`]:{[`& + ${pn}-control`]:{minWidth:"unset"}}}}},pe=Tt=>{const{componentCls:sn,formItemCls:pn}=Tt;return{[`${sn}-inline`]:{display:"flex",flexWrap:"wrap",[pn]:{flex:"none",marginInlineEnd:Tt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${pn}-label,
> ${pn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${pn}-label`]:{flex:"none"},[`${sn}-text`]:{display:"inline-block"},[`${pn}-has-feedback`]:{display:"inline-block"}}}}},Pe=Tt=>({padding:Tt.verticalLabelPadding,margin:Tt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),we=Tt=>{const{componentCls:sn,formItemCls:pn,rootPrefixCls:Yt}=Tt;return{[`${pn} ${pn}-label`]:Pe(Tt),[sn]:{[pn]:{flexWrap:"wrap",[`${pn}-label, ${pn}-control`]:{[`&:not([class*=" ${Yt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ne=Tt=>{const{componentCls:sn,formItemCls:pn,rootPrefixCls:Yt}=Tt;return{[`${sn}-vertical`]:{[pn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${sn}-item-control`]:{width:"100%"}}},[`${sn}-vertical ${pn}-label,
.${Yt}-col-24${pn}-label,
.${Yt}-col-xl-24${pn}-label`]:Pe(Tt),[`@media (max-width: ${Tt.screenXSMax}px)`]:[we(Tt),{[sn]:{[`.${Yt}-col-xs-24${pn}-label`]:Pe(Tt)}}],[`@media (max-width: ${Tt.screenSMMax}px)`]:{[sn]:{[`.${Yt}-col-sm-24${pn}-label`]:Pe(Tt)}},[`@media (max-width: ${Tt.screenMDMax}px)`]:{[sn]:{[`.${Yt}-col-md-24${pn}-label`]:Pe(Tt)}},[`@media (max-width: ${Tt.screenLGMax}px)`]:{[sn]:{[`.${Yt}-col-lg-24${pn}-label`]:Pe(Tt)}}}},Ae=(Tt,sn)=>(0,me.TS)(Tt,{formItemCls:`${Tt.componentCls}-item`,rootPrefixCls:sn});var Te=(0,xe.Z)("Form",(Tt,sn)=>{let{rootPrefixCls:pn}=sn;const Yt=Ae(Tt,pn);return[re(Yt),le(Yt),z(Yt),ue(Yt),pe(Yt),Ne(Yt),(0,be.Z)(Yt),ye.kr]},Tt=>({labelRequiredMarkColor:Tt.colorError,labelColor:Tt.colorTextHeading,labelFontSize:Tt.fontSize,labelHeight:Tt.controlHeight,labelColonMarginInlineStart:Tt.marginXXS/2,labelColonMarginInlineEnd:Tt.marginXS,itemMarginBottom:Tt.marginLG,verticalLabelPadding:`0 0 ${Tt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Me=[];function Be(Tt,sn,pn){let Yt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Tt=="string"?Tt:`${sn}-${Yt}`,error:Tt,errorStatus:pn}}var Qe=Tt=>{let{help:sn,helpStatus:pn,errors:Yt=Me,warnings:Bt=Me,className:un,fieldId:bn,onVisibleChanged:On}=Tt;const{prefixCls:Zn}=Oe.useContext(ce.Rk),Gt=`${Zn}-item-explain`,[,An]=Te(Zn),Kn=(0,Oe.useMemo)(()=>(0,ve.Z)(Zn),[Zn]),rr=Ce(Yt),xn=Ce(Bt),Cn=Oe.useMemo(()=>sn!=null?[Be(sn,"help",pn)]:[].concat((0,We.Z)(rr.map((gn,yn)=>Be(gn,"error","error",yn))),(0,We.Z)(xn.map((gn,yn)=>Be(gn,"warning","warning",yn)))),[sn,pn,rr,xn]),tn={};return bn&&(tn.id=`${bn}_help`),Oe.createElement(Ue.default,{motionDeadline:Kn.motionDeadline,motionName:`${Zn}-show-help`,visible:!!Cn.length,onVisibleChanged:On},gn=>{const{className:yn,style:vn}=gn;return Oe.createElement("div",Object.assign({},tn,{className:oe()(Gt,yn,un,An),style:vn,role:"alert"}),Oe.createElement(Ue.CSSMotionList,Object.assign({keys:Cn},(0,ve.Z)(Zn),{motionName:`${Zn}-show-help-item`,component:!1}),Ln=>{const{key:Fn,error:Gn,errorStatus:Hn,className:gr,style:dn}=Ln;return Oe.createElement("div",{key:Fn,className:oe()(gr,{[`${Gt}-${Hn}`]:Hn}),style:dn},Gn)}))})},He=ze(95013),$e=ze(36355),qe=ze(1684),ut=ze(52946),ct=ze(19716),yt=ze(16722);const _e=["parentNode"],st="form_item";function pt(Tt){return Tt===void 0||Tt===!1?[]:Array.isArray(Tt)?Tt:[Tt]}function bt(Tt,sn){if(!Tt.length)return;const pn=Tt.join("_");return sn?`${sn}_${pn}`:_e.includes(pn)?`${st}_${pn}`:pn}function wt(Tt,sn,pn,Yt,Bt,un){let bn=Yt;return un!==void 0?bn=un:pn.validating?bn="validating":Tt.length?bn="error":sn.length?bn="warning":(pn.touched||Bt&&pn.validated)&&(bn="success"),bn}function mt(Tt){return pt(Tt).join("_")}function vt(Tt){const[sn]=(0,He.useForm)(),pn=Oe.useRef({}),Yt=Oe.useMemo(()=>Tt!=null?Tt:Object.assign(Object.assign({},sn),{__INTERNAL__:{itemRef:Bt=>un=>{const bn=mt(Bt);un?pn.current[bn]=un:delete pn.current[bn]}},scrollToField:function(Bt){let un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const bn=pt(Bt),On=bt(bn,Yt.__INTERNAL__.name),Zn=On?document.getElementById(On):null;Zn&&(0,yt.Z)(Zn,Object.assign({scrollMode:"if-needed",block:"nearest"},un))},getFieldInstance:Bt=>{const un=mt(Bt);return pn.current[un]}}),[Tt,sn]);return[Yt]}var St=ze(28726),Nt=function(Tt,sn){var pn={};for(var Yt in Tt)Object.prototype.hasOwnProperty.call(Tt,Yt)&&sn.indexOf(Yt)<0&&(pn[Yt]=Tt[Yt]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Yt=Object.getOwnPropertySymbols(Tt);Bt<Yt.length;Bt++)sn.indexOf(Yt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Yt[Bt])&&(pn[Yt[Bt]]=Tt[Yt[Bt]]);return pn};const Ft=(Tt,sn)=>{const pn=Oe.useContext(qe.Z),{getPrefixCls:Yt,direction:Bt,form:un}=Oe.useContext($e.E_),{prefixCls:bn,className:On,rootClassName:Zn,size:Gt,disabled:An=pn,form:Kn,colon:rr,labelAlign:xn,labelWrap:Cn,labelCol:tn,wrapperCol:gn,hideRequiredMark:yn,layout:vn="horizontal",scrollToFirstError:Ln,requiredMark:Fn,onFinishFailed:Gn,name:Hn,style:gr,feedbackIcons:dn}=Tt,Dr=Nt(Tt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),zr=(0,ct.Z)(Gt),Qr=Oe.useContext(St.Z),wn=(0,Oe.useMemo)(()=>Fn!==void 0?Fn:un&&un.requiredMark!==void 0?un.requiredMark:!yn,[yn,Fn,un]),Yn=rr!=null?rr:un==null?void 0:un.colon,cr=Yt("form",bn),[Fr,fr]=Te(cr),br=oe()(cr,`${cr}-${vn}`,{[`${cr}-hide-required-mark`]:wn===!1,[`${cr}-rtl`]:Bt==="rtl",[`${cr}-${zr}`]:zr},fr,un==null?void 0:un.className,On,Zn),[Hr]=vt(Kn),{__INTERNAL__:Rr}=Hr;Rr.name=Hn;const Cr=(0,Oe.useMemo)(()=>({name:Hn,labelAlign:xn,labelCol:tn,labelWrap:Cn,wrapperCol:gn,vertical:vn==="vertical",colon:Yn,requiredMark:wn,itemRef:Rr.itemRef,form:Hr,feedbackIcons:dn}),[Hn,xn,tn,gn,vn,Yn,wn,Hr,dn]);Oe.useImperativeHandle(sn,()=>Hr);const Zr=(Ei,kn)=>{if(Ei){let ci={block:"nearest"};typeof Ei=="object"&&(ci=Ei),Hr.scrollToField(kn,ci)}},Dn=Ei=>{if(Gn==null||Gn(Ei),Ei.errorFields.length){const kn=Ei.errorFields[0].name;if(Ln!==void 0){Zr(Ln,kn);return}un&&un.scrollToFirstError!==void 0&&Zr(un.scrollToFirstError,kn)}};return Fr(Oe.createElement(qe.n,{disabled:An},Oe.createElement(ut.q,{size:zr},Oe.createElement(ce.RV,Object.assign({},{validateMessages:Qr}),Oe.createElement(ce.q3.Provider,{value:Cr},Oe.createElement(He.default,Object.assign({id:Hn},Dr,{name:Hn,onFinishFailed:Dn,form:Hr,style:Object.assign(Object.assign({},un==null?void 0:un.style),gr),className:br})))))))};var Pt=Oe.forwardRef(Ft),Et=ze(41799),at=ze(8654),Ct=ze(92343),nt=ze(11592);function ht(Tt){if(typeof Tt=="function")return Tt;const sn=(0,nt.Z)(Tt);return sn.length<=1?sn[0]:sn}const Mt=()=>{const{status:Tt,errors:sn=[],warnings:pn=[]}=(0,Oe.useContext)(ce.aM);return{status:Tt,errors:sn,warnings:pn}};Mt.Context=ce.aM;var gt=Mt,rt=ze(16089);function Je(Tt){const[sn,pn]=Oe.useState(Tt),Yt=(0,Oe.useRef)(null),Bt=(0,Oe.useRef)([]),un=(0,Oe.useRef)(!1);Oe.useEffect(()=>(un.current=!1,()=>{un.current=!0,rt.Z.cancel(Yt.current),Yt.current=null}),[]);function bn(On){un.current||(Yt.current===null&&(Bt.current=[],Yt.current=(0,rt.Z)(()=>{Yt.current=null,pn(Zn=>{let Gt=Zn;return Bt.current.forEach(An=>{Gt=An(Gt)}),Gt})})),Bt.current.push(On))}return[sn,bn]}function Xe(){const{itemRef:Tt}=Oe.useContext(ce.q3),sn=Oe.useRef({});function pn(Yt,Bt){const un=Bt&&typeof Bt=="object"&&Bt.ref,bn=Yt.join("_");return(sn.current.name!==bn||sn.current.originRef!==un)&&(sn.current.name=bn,sn.current.originRef=un,sn.current.ref=(0,at.sQ)(Tt(Yt),un)),sn.current.ref}return pn}var Ve=ze(29194),tt=ze(34280),Ze=ze(2738),je=ze(27382),De=ze(37028);const Ye=Tt=>{const{formItemCls:sn}=Tt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${sn}-control`]:{display:"flex"}}}};var dt=(0,xe.b)(["Form","item-item"],(Tt,sn)=>{let{rootPrefixCls:pn}=sn;const Yt=Ae(Tt,pn);return[Ye(Yt)]}),At=Tt=>{const{prefixCls:sn,status:pn,wrapperCol:Yt,children:Bt,errors:un,warnings:bn,_internalItemRender:On,extra:Zn,help:Gt,fieldId:An,marginBottom:Kn,onErrorVisibleChanged:rr}=Tt,xn=`${sn}-item`,Cn=Oe.useContext(ce.q3),tn=Yt||Cn.wrapperCol||{},gn=oe()(`${xn}-control`,tn.className),yn=Oe.useMemo(()=>Object.assign({},Cn),[Cn]);delete yn.labelCol,delete yn.wrapperCol;const vn=Oe.createElement("div",{className:`${xn}-control-input`},Oe.createElement("div",{className:`${xn}-control-input-content`},Bt)),Ln=Oe.useMemo(()=>({prefixCls:sn,status:pn}),[sn,pn]),Fn=Kn!==null||un.length||bn.length?Oe.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Oe.createElement(ce.Rk.Provider,{value:Ln},Oe.createElement(Qe,{fieldId:An,errors:un,warnings:bn,help:Gt,helpStatus:pn,className:`${xn}-explain-connected`,onVisibleChanged:rr})),!!Kn&&Oe.createElement("div",{style:{width:0,height:Kn}})):null,Gn={};An&&(Gn.id=`${An}_extra`);const Hn=Zn?Oe.createElement("div",Object.assign({},Gn,{className:`${xn}-extra`}),Zn):null,gr=On&&On.mark==="pro_table_render"&&On.render?On.render(Tt,{input:vn,errorList:Fn,extra:Hn}):Oe.createElement(Oe.Fragment,null,vn,Fn,Hn);return Oe.createElement(ce.q3.Provider,{value:yn},Oe.createElement(De.Z,Object.assign({},tn,{className:gn}),gr),Oe.createElement(dt,{prefixCls:sn}))},zt=ze(61485),_t=ze(31724),Ot=ze(9763),Vt=ze(6848),en=function(Tt,sn){var pn={};for(var Yt in Tt)Object.prototype.hasOwnProperty.call(Tt,Yt)&&sn.indexOf(Yt)<0&&(pn[Yt]=Tt[Yt]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Yt=Object.getOwnPropertySymbols(Tt);Bt<Yt.length;Bt++)sn.indexOf(Yt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Yt[Bt])&&(pn[Yt[Bt]]=Tt[Yt[Bt]]);return pn};function on(Tt){return Tt?typeof Tt=="object"&&!Oe.isValidElement(Tt)?Tt:{title:Tt}:null}var jn=Tt=>{let{prefixCls:sn,label:pn,htmlFor:Yt,labelCol:Bt,labelAlign:un,colon:bn,required:On,requiredMark:Zn,tooltip:Gt}=Tt;var An;const[Kn]=(0,Ot.Z)("Form"),{vertical:rr,labelAlign:xn,labelCol:Cn,labelWrap:tn,colon:gn}=Oe.useContext(ce.q3);if(!pn)return null;const yn=Bt||Cn||{},vn=un||xn,Ln=`${sn}-item-label`,Fn=oe()(Ln,vn==="left"&&`${Ln}-left`,yn.className,{[`${Ln}-wrap`]:!!tn});let Gn=pn;const Hn=bn===!0||gn!==!1&&bn!==!1;Hn&&!rr&&typeof pn=="string"&&pn.trim()!==""&&(Gn=pn.replace(/[:|]\s*$/,""));const dn=on(Gt);if(dn){const{icon:wn=Oe.createElement(zt.Z,null)}=dn,Yn=en(dn,["icon"]),cr=Oe.createElement(Vt.Z,Object.assign({},Yn),Oe.cloneElement(wn,{className:`${sn}-item-tooltip`,title:""}));Gn=Oe.createElement(Oe.Fragment,null,Gn,cr)}const Dr=Zn==="optional",zr=typeof Zn=="function";zr?Gn=Zn(Gn,{required:!!On}):Dr&&!On&&(Gn=Oe.createElement(Oe.Fragment,null,Gn,Oe.createElement("span",{className:`${sn}-item-optional`,title:""},(Kn==null?void 0:Kn.optional)||((An=_t.Z.Form)===null||An===void 0?void 0:An.optional))));const Qr=oe()({[`${sn}-item-required`]:On,[`${sn}-item-required-mark-optional`]:Dr||zr,[`${sn}-item-no-colon`]:!Hn});return Oe.createElement(De.Z,Object.assign({},yn,{className:Fn}),Oe.createElement("label",{htmlFor:Yt,className:Qr,title:typeof pn=="string"?pn:""},Gn))},er=ze(29679),tr=ze(19248),ur=ze(96512),Tr=ze(58617);const Lr={success:er.Z,warning:ur.Z,error:tr.Z,validating:Tr.Z};function Ar(Tt){let{children:sn,errors:pn,warnings:Yt,hasFeedback:Bt,validateStatus:un,prefixCls:bn,meta:On,noStyle:Zn}=Tt;const Gt=`${bn}-item`,{feedbackIcons:An}=Oe.useContext(ce.q3),Kn=wt(pn,Yt,On,null,!!Bt,un),{isFormItemInput:rr,status:xn}=Oe.useContext(ce.aM),Cn=Oe.useMemo(()=>{var tn;let gn;if(Bt){const Ln=Bt!==!0&&Bt.icons||An,Fn=Kn&&((tn=Ln==null?void 0:Ln({status:Kn,errors:pn,warnings:Yt}))===null||tn===void 0?void 0:tn[Kn]),Gn=Kn&&Lr[Kn];gn=Fn!==!1&&Gn?Oe.createElement("span",{className:oe()(`${Gt}-feedback-icon`,`${Gt}-feedback-icon-${Kn}`)},Fn||Oe.createElement(Gn,null)):null}let yn=!0,vn=Kn||"";return Zn&&(yn=rr,vn=(Kn!=null?Kn:xn)||""),{status:vn,errors:pn,warnings:Yt,hasFeedback:!!Bt,feedbackIcon:gn,isFormItemInput:yn}},[Kn,Bt,Zn,rr,xn]);return Oe.createElement(ce.aM.Provider,{value:Cn},sn)}var Gr=function(Tt,sn){var pn={};for(var Yt in Tt)Object.prototype.hasOwnProperty.call(Tt,Yt)&&sn.indexOf(Yt)<0&&(pn[Yt]=Tt[Yt]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Yt=Object.getOwnPropertySymbols(Tt);Bt<Yt.length;Bt++)sn.indexOf(Yt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Yt[Bt])&&(pn[Yt[Bt]]=Tt[Yt[Bt]]);return pn};function Kr(Tt){const{prefixCls:sn,className:pn,rootClassName:Yt,style:Bt,help:un,errors:bn,warnings:On,validateStatus:Zn,meta:Gt,hasFeedback:An,hidden:Kn,children:rr,fieldId:xn,required:Cn,isRequired:tn,onSubItemMetaChange:gn}=Tt,yn=Gr(Tt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),vn=`${sn}-item`,{requiredMark:Ln}=Oe.useContext(ce.q3),Fn=Oe.useRef(null),Gn=Ce(bn),Hn=Ce(On),gr=un!=null,dn=!!(gr||bn.length||On.length),Dr=!!Fn.current&&(0,Ve.Z)(Fn.current),[zr,Qr]=Oe.useState(null);(0,tt.Z)(()=>{if(dn&&Fn.current){const fr=getComputedStyle(Fn.current);Qr(parseInt(fr.marginBottom,10))}},[dn,Dr]);const wn=fr=>{fr||Qr(null)},cr=function(){let fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const br=fr?Gn:Gt.errors,Hr=fr?Hn:Gt.warnings;return wt(br,Hr,Gt,"",!!An,Zn)}(),Fr=oe()(vn,pn,Yt,{[`${vn}-with-help`]:gr||Gn.length||Hn.length,[`${vn}-has-feedback`]:cr&&An,[`${vn}-has-success`]:cr==="success",[`${vn}-has-warning`]:cr==="warning",[`${vn}-has-error`]:cr==="error",[`${vn}-is-validating`]:cr==="validating",[`${vn}-hidden`]:Kn});return Oe.createElement("div",{className:Fr,style:Bt,ref:Fn},Oe.createElement(je.Z,Object.assign({className:`${vn}-row`},(0,Ze.Z)(yn,["_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"])),Oe.createElement(jn,Object.assign({htmlFor:xn},Tt,{requiredMark:Ln,required:Cn!=null?Cn:tn,prefixCls:sn})),Oe.createElement(At,Object.assign({},Tt,Gt,{errors:Gn,warnings:Hn,prefixCls:sn,status:cr,help:un,marginBottom:zr,onErrorVisibleChanged:wn}),Oe.createElement(ce.qI.Provider,{value:gn},Oe.createElement(Ar,{prefixCls:sn,meta:Gt,errors:Gt.errors,warnings:Gt.warnings,hasFeedback:An,validateStatus:cr},rr)))),!!zr&&Oe.createElement("div",{className:`${vn}-margin-offset`,style:{marginBottom:-zr}}))}const Mr="__SPLIT__",fi=null,Jr=Oe.memo(Tt=>{let{children:sn}=Tt;return sn},(Tt,sn)=>Tt.value===sn.value&&Tt.update===sn.update&&Tt.childProps.length===sn.childProps.length&&Tt.childProps.every((pn,Yt)=>pn===sn.childProps[Yt]));function it(Tt){return Tt!=null}function bi(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function mi(Tt){const{name:sn,noStyle:pn,className:Yt,dependencies:Bt,prefixCls:un,shouldUpdate:bn,rules:On,children:Zn,required:Gt,label:An,messageVariables:Kn,trigger:rr="onChange",validateTrigger:xn,hidden:Cn,help:tn}=Tt,{getPrefixCls:gn}=Oe.useContext($e.E_),{name:yn}=Oe.useContext(ce.q3),vn=ht(Zn),Ln=typeof vn=="function",Fn=Oe.useContext(ce.qI),{validateTrigger:Gn}=Oe.useContext(He.FieldContext),Hn=xn!==void 0?xn:Gn,gr=it(sn),dn=gn("form",un),[Dr,zr]=Te(dn),Qr=Oe.useContext(He.ListContext),wn=Oe.useRef(),[Yn,cr]=Je({}),[Fr,fr]=(0,Et.Z)(()=>bi()),br=kn=>{const ci=Qr==null?void 0:Qr.getKey(kn.name);if(fr(kn.destroy?bi():kn,!0),pn&&tn!==!1&&Fn){let Ri=kn.name;if(kn.destroy)Ri=wn.current||Ri;else if(ci!==void 0){const[$r,Xi]=ci;Ri=[$r].concat((0,We.Z)(Xi)),wn.current=Ri}Fn(kn,Ri)}},Hr=(kn,ci)=>{cr(Ri=>{const $r=Object.assign({},Ri),Oi=[].concat((0,We.Z)(kn.name.slice(0,-1)),(0,We.Z)(ci)).join(Mr);return kn.destroy?delete $r[Oi]:$r[Oi]=kn,$r})},[Rr,Cr]=Oe.useMemo(()=>{const kn=(0,We.Z)(Fr.errors),ci=(0,We.Z)(Fr.warnings);return Object.values(Yn).forEach(Ri=>{kn.push.apply(kn,(0,We.Z)(Ri.errors||[])),ci.push.apply(ci,(0,We.Z)(Ri.warnings||[]))}),[kn,ci]},[Yn,Fr.errors,Fr.warnings]),Zr=Xe();function Dn(kn,ci,Ri){return pn&&!Cn?Oe.createElement(Ar,{prefixCls:dn,hasFeedback:Tt.hasFeedback,validateStatus:Tt.validateStatus,meta:Fr,errors:Rr,warnings:Cr,noStyle:!0},kn):Oe.createElement(Kr,Object.assign({key:"row"},Tt,{className:oe()(Yt,zr),prefixCls:dn,fieldId:ci,isRequired:Ri,errors:Rr,warnings:Cr,meta:Fr,onSubItemMetaChange:Hr}),kn)}if(!gr&&!Ln&&!Bt)return Dr(Dn(vn));let Ei={};return typeof An=="string"?Ei.label=An:sn&&(Ei.label=String(sn)),Kn&&(Ei=Object.assign(Object.assign({},Ei),Kn)),Dr(Oe.createElement(He.Field,Object.assign({},Tt,{messageVariables:Ei,trigger:rr,validateTrigger:Hn,onMetaChange:br}),(kn,ci,Ri)=>{const $r=pt(sn).length&&ci?ci.name:[],Xi=bt($r,yn),Oi=Gt!==void 0?Gt:!!(On&&On.some(xi=>{if(xi&&typeof xi=="object"&&xi.required&&!xi.warningOnly)return!0;if(typeof xi=="function"){const ki=xi(Ri);return ki&&ki.required&&!ki.warningOnly}return!1})),Ir=Object.assign({},kn);let jr=null;if(Array.isArray(vn)&&gr)jr=vn;else if(!(Ln&&(!(bn||Bt)||gr))){if(!(Bt&&!Ln&&!gr))if((0,Ct.l$)(vn)){const xi=Object.assign(Object.assign({},vn.props),Ir);if(xi.id||(xi.id=Xi),tn||Rr.length>0||Cr.length>0||Tt.extra){const kt=[];(tn||Rr.length>0)&&kt.push(`${Xi}_help`),Tt.extra&&kt.push(`${Xi}_extra`),xi["aria-describedby"]=kt.join(" ")}Rr.length>0&&(xi["aria-invalid"]="true"),Oi&&(xi["aria-required"]="true"),(0,at.Yr)(vn)&&(xi.ref=Zr($r,vn)),new Set([].concat((0,We.Z)(pt(rr)),(0,We.Z)(pt(Hn)))).forEach(kt=>{xi[kt]=function(){for(var Li,ao,Pi,co,wo,ti=arguments.length,hi=new Array(ti),Fi=0;Fi<ti;Fi++)hi[Fi]=arguments[Fi];(Pi=Ir[kt])===null||Pi===void 0||(Li=Pi).call.apply(Li,[Ir].concat(hi)),(wo=(co=vn.props)[kt])===null||wo===void 0||(ao=wo).call.apply(ao,[co].concat(hi))}});const pr=[xi["aria-required"],xi["aria-invalid"],xi["aria-describedby"]];jr=Oe.createElement(Jr,{value:Ir[Tt.valuePropName||"value"],update:vn,childProps:pr},(0,Ct.Tm)(vn,xi))}else Ln&&(bn||Bt)&&!gr?jr=vn(Ri):jr=vn}return Dn(jr,Xi,Oi)}))}const Tn=mi;Tn.useStatus=gt;var dr=Tn,ar=function(Tt,sn){var pn={};for(var Yt in Tt)Object.prototype.hasOwnProperty.call(Tt,Yt)&&sn.indexOf(Yt)<0&&(pn[Yt]=Tt[Yt]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Yt=Object.getOwnPropertySymbols(Tt);Bt<Yt.length;Bt++)sn.indexOf(Yt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Yt[Bt])&&(pn[Yt[Bt]]=Tt[Yt[Bt]]);return pn},Jn=Tt=>{var{prefixCls:sn,children:pn}=Tt,Yt=ar(Tt,["prefixCls","children"]);const{getPrefixCls:Bt}=Oe.useContext($e.E_),un=Bt("form",sn),bn=Oe.useMemo(()=>({prefixCls:un,status:"error"}),[un]);return Oe.createElement(He.List,Object.assign({},Yt),(On,Zn,Gt)=>Oe.createElement(ce.Rk.Provider,{value:bn},pn(On.map(An=>Object.assign(Object.assign({},An),{fieldKey:An.key})),Zn,{errors:Gt.errors,warnings:Gt.warnings})))};function zn(){const{form:Tt}=(0,Oe.useContext)(ce.q3);return Tt}const $t=Pt;$t.Item=dr,$t.List=Jn,$t.ErrorList=Qe,$t.useForm=vt,$t.useFormInstance=zn,$t.useWatch=He.useWatch,$t.Provider=ce.RV,$t.create=()=>{};var Xt=$t},8628:function(Nn,mn,ze){"use strict";var We=ze(59301),xt=ze(34280),oe=ze(56762),Ue=ze(69507);function Oe(){let ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ce=(0,We.useRef)({}),Ce=(0,oe.Z)(),Ee=(0,Ue.ZP)();return(0,xt.Z)(()=>{const ye=Ee.subscribe(be=>{ce.current=be,ve&&Ce()});return()=>Ee.unsubscribe(ye)},[]),ce.current}mn.Z=Oe},9432:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return le},n:function(){return ae}});var We=ze(19248),xt=ze(92310),oe=ze.n(xt),Ue=ze(93681),Oe=ze(8654),ve=ze(59301),ce=ze(19080),Ce=ze(36355),Ee=ze(1684),ye=ze(19716),be=ze(32441),me=ze(33234),xe=ze(59412),fe=ze(9937);function z(ue){return!!(ue.prefix||ue.suffix||ue.allowClear)}var ee=function(ue,pe){var Pe={};for(var we in ue)Object.prototype.hasOwnProperty.call(ue,we)&&pe.indexOf(we)<0&&(Pe[we]=ue[we]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,we=Object.getOwnPropertySymbols(ue);Ne<we.length;Ne++)pe.indexOf(we[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ue,we[Ne])&&(Pe[we[Ne]]=ue[we[Ne]]);return Pe};function ae(ue,pe){if(!ue)return;ue.focus(pe);const{cursor:Pe}=pe||{};if(Pe){const we=ue.value.length;switch(Pe){case"start":ue.setSelectionRange(0,0);break;case"end":ue.setSelectionRange(we,we);break;default:ue.setSelectionRange(0,we);break}}}var le=(0,ve.forwardRef)((ue,pe)=>{var Pe;const{prefixCls:we,bordered:Ne=!0,status:Ae,size:Te,disabled:Me,onBlur:Be,onFocus:Re,suffix:Qe,allowClear:He,addonAfter:$e,addonBefore:qe,className:ut,style:ct,styles:yt,rootClassName:_e,onChange:st,classNames:pt}=ue,bt=ee(ue,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:wt,direction:mt,input:vt}=ve.useContext(Ce.E_),St=wt("input",we),Nt=(0,ve.useRef)(null),[Ft,Kt]=(0,fe.ZP)(St),{compactSize:Pt,compactItemClassnames:Et}=(0,me.ri)(St,mt),at=(0,ye.Z)(dt=>{var Ke;return(Ke=Te!=null?Te:Pt)!==null&&Ke!==void 0?Ke:dt}),Ct=ve.useContext(Ee.Z),nt=Me!=null?Me:Ct,{status:ht,hasFeedback:Mt,feedbackIcon:gt}=(0,ve.useContext)(be.aM),rt=(0,ce.F)(ht,Ae),Je=z(ue)||!!Mt,Xe=(0,ve.useRef)(Je);(0,ve.useEffect)(()=>{var dt;Je&&Xe.current,Xe.current=Je},[Je]);const Ve=(0,xe.Z)(Nt,!0),tt=dt=>{Ve(),Be==null||Be(dt)},Ze=dt=>{Ve(),Re==null||Re(dt)},je=dt=>{Ve(),st==null||st(dt)},De=(Mt||Qe)&&ve.createElement(ve.Fragment,null,Qe,Mt&&gt);let Ye;return typeof He=="object"&&(He!=null&&He.clearIcon)?Ye=He:He&&(Ye={clearIcon:ve.createElement(We.Z,null)}),Ft(ve.createElement(Ue.default,Object.assign({ref:(0,Oe.sQ)(pe,Nt),prefixCls:St,autoComplete:vt==null?void 0:vt.autoComplete},bt,{disabled:nt,onBlur:tt,onFocus:Ze,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),ct),styles:Object.assign(Object.assign({},vt==null?void 0:vt.styles),yt),suffix:De,allowClear:Ye,className:oe()(ut,_e,Et,vt==null?void 0:vt.className),onChange:je,addonAfter:$e&&ve.createElement(me.BR,null,ve.createElement(be.Ux,{override:!0,status:!0},$e)),addonBefore:qe&&ve.createElement(me.BR,null,ve.createElement(be.Ux,{override:!0,status:!0},qe)),classNames:Object.assign(Object.assign(Object.assign({},pt),vt==null?void 0:vt.classNames),{input:oe()({[`${St}-sm`]:at==="small",[`${St}-lg`]:at==="large",[`${St}-rtl`]:mt==="rtl",[`${St}-borderless`]:!Ne},!Je&&(0,ce.Z)(St,rt),pt==null?void 0:pt.input,(Pe=vt==null?void 0:vt.classNames)===null||Pe===void 0?void 0:Pe.input,Kt)}),classes:{affixWrapper:oe()({[`${St}-affix-wrapper-sm`]:at==="small",[`${St}-affix-wrapper-lg`]:at==="large",[`${St}-affix-wrapper-rtl`]:mt==="rtl",[`${St}-affix-wrapper-borderless`]:!Ne},(0,ce.Z)(`${St}-affix-wrapper`,rt,Mt),Kt),wrapper:oe()({[`${St}-group-rtl`]:mt==="rtl"},Kt),group:oe()({[`${St}-group-wrapper-sm`]:at==="small",[`${St}-group-wrapper-lg`]:at==="large",[`${St}-group-wrapper-rtl`]:mt==="rtl",[`${St}-group-wrapper-disabled`]:nt},(0,ce.Z)(`${St}-group-wrapper`,rt,Mt),Kt)}})))})},1643:function(Nn,mn,ze){"use strict";var We=ze(19248),xt=ze(92310),oe=ze.n(xt),Ue=ze(9296),Oe=ze(59301),ve=ze(19080),ce=ze(36355),Ce=ze(1684),Ee=ze(19716),ye=ze(32441),be=ze(9432),me=ze(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,Oe.forwardRef)((z,ee)=>{const{prefixCls:ae,bordered:re=!0,size:le,disabled:ue,status:pe,allowClear:Pe,showCount:we,classNames:Ne,rootClassName:Ae,className:Te}=z,Me=xe(z,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Be,direction:Re}=Oe.useContext(ce.E_),Qe=(0,Ee.Z)(le),He=Oe.useContext(Ce.Z),$e=ue!=null?ue:He,{status:qe,hasFeedback:ut,feedbackIcon:ct}=Oe.useContext(ye.aM),yt=(0,ve.F)(qe,pe),_e=Oe.useRef(null);Oe.useImperativeHandle(ee,()=>{var mt;return{resizableTextArea:(mt=_e.current)===null||mt===void 0?void 0:mt.resizableTextArea,focus:vt=>{var St,Nt;(0,be.n)((Nt=(St=_e.current)===null||St===void 0?void 0:St.resizableTextArea)===null||Nt===void 0?void 0:Nt.textArea,vt)},blur:()=>{var vt;return(vt=_e.current)===null||vt===void 0?void 0:vt.blur()}}});const st=Be("input",ae);let pt;typeof Pe=="object"&&(Pe!=null&&Pe.clearIcon)?pt=Pe:Pe&&(pt={clearIcon:Oe.createElement(We.Z,null)});const[bt,wt]=(0,me.ZP)(st);return bt(Oe.createElement(Ue.default,Object.assign({},Me,{disabled:$e,allowClear:pt,className:oe()(Te,Ae),classes:{affixWrapper:oe()(`${st}-textarea-affix-wrapper`,{[`${st}-affix-wrapper-rtl`]:Re==="rtl",[`${st}-affix-wrapper-borderless`]:!re,[`${st}-affix-wrapper-sm`]:Qe==="small",[`${st}-affix-wrapper-lg`]:Qe==="large",[`${st}-textarea-show-count`]:we},(0,ve.Z)(`${st}-affix-wrapper`,yt),wt)},classNames:Object.assign(Object.assign({},Ne),{textarea:oe()({[`${st}-borderless`]:!re,[`${st}-sm`]:Qe==="small",[`${st}-lg`]:Qe==="large"},(0,ve.Z)(st,yt),wt,Ne==null?void 0:Ne.textarea)}),prefixCls:st,suffix:ut&&Oe.createElement("span",{className:`${st}-textarea-suffix`},ct),showCount:we,ref:_e})))});mn.Z=fe},59412:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return xt}});var We=ze(59301);function xt(oe,Ue){const Oe=(0,We.useRef)([]),ve=()=>{Oe.current.push(setTimeout(()=>{var ce,Ce,Ee,ye;!((ce=oe.current)===null||ce===void 0)&&ce.input&&((Ce=oe.current)===null||Ce===void 0?void 0:Ce.input.getAttribute("type"))==="password"&&(!((Ee=oe.current)===null||Ee===void 0)&&Ee.input.hasAttribute("value"))&&((ye=oe.current)===null||ye===void 0||ye.input.removeAttribute("value"))}))};return(0,We.useEffect)(()=>(Ue&&ve(),()=>Oe.current.forEach(ce=>{ce&&clearTimeout(ce)})),[]),ve}},92832:function(Nn,mn,ze){"use strict";ze.d(mn,{default:function(){return Qe}});var We=ze(92310),xt=ze.n(We),oe=ze(59301),Ue=ze(36355),Oe=ze(32441),ve=ze(9937),Ce=He=>{const{getPrefixCls:$e,direction:qe}=(0,oe.useContext)(Ue.E_),{prefixCls:ut,className:ct}=He,yt=$e("input-group",ut),_e=$e("input"),[st,pt]=(0,ve.ZP)(_e),bt=xt()(yt,{[`${yt}-lg`]:He.size==="large",[`${yt}-sm`]:He.size==="small",[`${yt}-compact`]:He.compact,[`${yt}-rtl`]:qe==="rtl"},pt,ct),wt=(0,oe.useContext)(Oe.aM),mt=(0,oe.useMemo)(()=>Object.assign(Object.assign({},wt),{isFormItemInput:!1}),[wt]);return st(oe.createElement("span",{className:bt,style:He.style,onMouseEnter:He.onMouseEnter,onMouseLeave:He.onMouseLeave,onFocus:He.onFocus,onBlur:He.onBlur},oe.createElement(Oe.aM.Provider,{value:mt},He.children)))},Ee=ze(9432),ye=ze(73331),be=ze(15277),me=ze(2738),xe=ze(8654),fe=ze(59412),z=function(He,$e){var qe={};for(var ut in He)Object.prototype.hasOwnProperty.call(He,ut)&&$e.indexOf(ut)<0&&(qe[ut]=He[ut]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,ut=Object.getOwnPropertySymbols(He);ct<ut.length;ct++)$e.indexOf(ut[ct])<0&&Object.prototype.propertyIsEnumerable.call(He,ut[ct])&&(qe[ut[ct]]=He[ut[ct]]);return qe};const ee=He=>He?oe.createElement(be.Z,null):oe.createElement(ye.Z,null),ae={click:"onClick",hover:"onMouseOver"};var le=oe.forwardRef((He,$e)=>{const{visibilityToggle:qe=!0}=He,ut=typeof qe=="object"&&qe.visible!==void 0,[ct,yt]=(0,oe.useState)(()=>ut?qe.visible:!1),_e=(0,oe.useRef)(null);oe.useEffect(()=>{ut&&yt(qe.visible)},[ut,qe]);const st=(0,fe.Z)(_e),pt=()=>{const{disabled:nt}=He;nt||(ct&&st(),yt(ht=>{var Mt;const gt=!ht;return typeof qe=="object"&&((Mt=qe.onVisibleChange)===null||Mt===void 0||Mt.call(qe,gt)),gt}))},bt=nt=>{const{action:ht="click",iconRender:Mt=ee}=He,gt=ae[ht]||"",rt=Mt(ct),Je={[gt]:pt,className:`${nt}-icon`,key:"passwordIcon",onMouseDown:Xe=>{Xe.preventDefault()},onMouseUp:Xe=>{Xe.preventDefault()}};return oe.cloneElement(oe.isValidElement(rt)?rt:oe.createElement("span",null,rt),Je)},{className:wt,prefixCls:mt,inputPrefixCls:vt,size:St}=He,Nt=z(He,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ft}=oe.useContext(Ue.E_),Kt=Ft("input",vt),Pt=Ft("input-password",mt),Et=qe&&bt(Pt),at=xt()(Pt,wt,{[`${Pt}-${St}`]:!!St}),Ct=Object.assign(Object.assign({},(0,me.Z)(Nt,["suffix","iconRender","visibilityToggle"])),{type:ct?"text":"password",className:at,prefixCls:Kt,suffix:Et});return St&&(Ct.size=St),oe.createElement(Ee.Z,Object.assign({ref:(0,xe.sQ)($e,_e)},Ct))}),ue=ze(47472),pe=ze(92343),Pe=ze(3113),we=ze(19716),Ne=ze(33234),Ae=function(He,$e){var qe={};for(var ut in He)Object.prototype.hasOwnProperty.call(He,ut)&&$e.indexOf(ut)<0&&(qe[ut]=He[ut]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,ut=Object.getOwnPropertySymbols(He);ct<ut.length;ct++)$e.indexOf(ut[ct])<0&&Object.prototype.propertyIsEnumerable.call(He,ut[ct])&&(qe[ut[ct]]=He[ut[ct]]);return qe},Me=oe.forwardRef((He,$e)=>{const{prefixCls:qe,inputPrefixCls:ut,className:ct,size:yt,suffix:_e,enterButton:st=!1,addonAfter:pt,loading:bt,disabled:wt,onSearch:mt,onChange:vt,onCompositionStart:St,onCompositionEnd:Nt}=He,Ft=Ae(He,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Kt,direction:Pt}=oe.useContext(Ue.E_),Et=oe.useRef(!1),at=Kt("input-search",qe),Ct=Kt("input",ut),{compactSize:nt}=(0,Ne.ri)(at,Pt),ht=(0,we.Z)(At=>{var zt;return(zt=yt!=null?yt:nt)!==null&&zt!==void 0?zt:At}),Mt=oe.useRef(null),gt=At=>{At&&At.target&&At.type==="click"&&mt&&mt(At.target.value,At,{source:"clear"}),vt&&vt(At)},rt=At=>{var zt;document.activeElement===((zt=Mt.current)===null||zt===void 0?void 0:zt.input)&&At.preventDefault()},Je=At=>{var zt,_t;mt&&mt((_t=(zt=Mt.current)===null||zt===void 0?void 0:zt.input)===null||_t===void 0?void 0:_t.value,At,{source:"input"})},Xe=At=>{Et.current||bt||Je(At)},Ve=typeof st=="boolean"?oe.createElement(ue.Z,null):null,tt=`${at}-button`;let Ze;const je=st||{},De=je.type&&je.type.__ANT_BUTTON===!0;De||je.type==="button"?Ze=(0,pe.Tm)(je,Object.assign({onMouseDown:rt,onClick:At=>{var zt,_t;(_t=(zt=je==null?void 0:je.props)===null||zt===void 0?void 0:zt.onClick)===null||_t===void 0||_t.call(zt,At),Je(At)},key:"enterButton"},De?{className:tt,size:ht}:{})):Ze=oe.createElement(Pe.ZP,{className:tt,type:st?"primary":void 0,size:ht,disabled:wt,key:"enterButton",onMouseDown:rt,onClick:Je,loading:bt,icon:Ve},st),pt&&(Ze=[Ze,(0,pe.Tm)(pt,{key:"addonAfter"})]);const Ye=xt()(at,{[`${at}-rtl`]:Pt==="rtl",[`${at}-${ht}`]:!!ht,[`${at}-with-button`]:!!st},ct),dt=At=>{Et.current=!0,St==null||St(At)},Ke=At=>{Et.current=!1,Nt==null||Nt(At)};return oe.createElement(Ee.Z,Object.assign({ref:(0,xe.sQ)(Mt,$e),onPressEnter:Xe},Ft,{size:ht,onCompositionStart:dt,onCompositionEnd:Ke,prefixCls:Ct,addonAfter:Ze,suffix:_e,onChange:gt,className:Ye,disabled:wt}))}),Be=ze(1643);const Re=Ee.Z;Re.Group=Ce,Re.Search=Me,Re.TextArea=Be.Z,Re.Password=le;var Qe=Re},45818:function(Nn,mn,ze){"use strict";ze.d(mn,{D:function(){return ue},Z:function(){return we}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(Ae,Te){return xt.createElement(Oe.Z,(0,We.Z)({},Ae,{ref:Te,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce,Ee=ze(33853),ye=ze(38819),be=ze(92310),me=ze.n(be),xe=ze(2738),z=Ne=>!isNaN(parseFloat(Ne))&&isFinite(Ne),ee=ze(36355),ae=ze(84966),re=function(Ne,Ae){var Te={};for(var Me in Ne)Object.prototype.hasOwnProperty.call(Ne,Me)&&Ae.indexOf(Me)<0&&(Te[Me]=Ne[Me]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Me=Object.getOwnPropertySymbols(Ne);Be<Me.length;Be++)Ae.indexOf(Me[Be])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Me[Be])&&(Te[Me[Be]]=Ne[Me[Be]]);return Te};const le={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ue=xt.createContext({}),pe=(()=>{let Ne=0;return function(){let Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ne+=1,`${Ae}${Ne}`}})();var we=xt.forwardRef((Ne,Ae)=>{const{prefixCls:Te,className:Me,trigger:Be,children:Re,defaultCollapsed:Qe=!1,theme:He="dark",style:$e={},collapsible:qe=!1,reverseArrow:ut=!1,width:ct=200,collapsedWidth:yt=80,zeroWidthTriggerStyle:_e,breakpoint:st,onCollapse:pt,onBreakpoint:bt}=Ne,wt=re(Ne,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:mt}=(0,xt.useContext)(ae.Gs),[vt,St]=(0,xt.useState)("collapsed"in Ne?Ne.collapsed:Qe),[Nt,Ft]=(0,xt.useState)(!1);(0,xt.useEffect)(()=>{"collapsed"in Ne&&St(Ne.collapsed)},[Ne.collapsed]);const Kt=(ht,Mt)=>{"collapsed"in Ne||St(ht),pt==null||pt(ht,Mt)},Pt=(0,xt.useRef)();Pt.current=ht=>{Ft(ht.matches),bt==null||bt(ht.matches),vt!==ht.matches&&Kt(ht.matches,"responsive")},(0,xt.useEffect)(()=>{function ht(gt){return Pt.current(gt)}let Mt;if(typeof window!="undefined"){const{matchMedia:gt}=window;if(gt&&st&&st in le){Mt=gt(`(max-width: ${le[st]})`);try{Mt.addEventListener("change",ht)}catch(rt){Mt.addListener(ht)}ht(Mt)}}return()=>{try{Mt==null||Mt.removeEventListener("change",ht)}catch(gt){Mt==null||Mt.removeListener(ht)}}},[st]),(0,xt.useEffect)(()=>{const ht=pe("ant-sider-");return mt.addSider(ht),()=>mt.removeSider(ht)},[]);const Et=()=>{Kt(!vt,"clickTrigger")},{getPrefixCls:at}=(0,xt.useContext)(ee.E_),Ct=()=>{const ht=at("layout-sider",Te),Mt=(0,xe.Z)(wt,["collapsed"]),gt=vt?yt:ct,rt=z(gt)?`${gt}px`:String(gt),Je=parseFloat(String(yt||0))===0?xt.createElement("span",{onClick:Et,className:me()(`${ht}-zero-width-trigger`,`${ht}-zero-width-trigger-${ut?"right":"left"}`),style:_e},Be||xt.createElement(Ce,null)):null,tt={expanded:ut?xt.createElement(ye.Z,null):xt.createElement(Ee.Z,null),collapsed:ut?xt.createElement(Ee.Z,null):xt.createElement(ye.Z,null)}[vt?"collapsed":"expanded"],Ze=Be!==null?Je||xt.createElement("div",{className:`${ht}-trigger`,onClick:Et,style:{width:rt}},Be||tt):null,je=Object.assign(Object.assign({},$e),{flex:`0 0 ${rt}`,maxWidth:rt,minWidth:rt,width:rt}),De=me()(ht,`${ht}-${He}`,{[`${ht}-collapsed`]:!!vt,[`${ht}-has-trigger`]:qe&&Be!==null&&!Je,[`${ht}-below`]:!!Nt,[`${ht}-zero-width`]:parseFloat(rt)===0},Me);return xt.createElement("aside",Object.assign({className:De},Mt,{style:je,ref:Ae}),xt.createElement("div",{className:`${ht}-children`},Re),qe||Nt&&Je?Ze:null)},nt=xt.useMemo(()=>({siderCollapsed:vt}),[vt]);return xt.createElement(ue.Provider,{value:nt},Ct())})},84966:function(Nn,mn,ze){"use strict";ze.d(mn,{VY:function(){return ue},$_:function(){return le},h4:function(){return re},Gs:function(){return xe},ZP:function(){return pe}});var We=ze(80702),xt=ze(92310),oe=ze.n(xt),Ue=ze(2738),Oe=ze(59301),ve=ze(36355),ce=ze(83116),Ee=Pe=>{const{componentCls:we,bodyBg:Ne,lightSiderBg:Ae,lightTriggerBg:Te,lightTriggerColor:Me}=Pe;return{[`${we}-sider-light`]:{background:Ae,[`${we}-sider-trigger`]:{color:Me,background:Te},[`${we}-sider-zero-width-trigger`]:{color:Me,background:Te,border:`1px solid ${Ne}`,borderInlineStart:0}}}};const ye=Pe=>{const{antCls:we,componentCls:Ne,colorText:Ae,triggerColor:Te,footerBg:Me,triggerBg:Be,headerHeight:Re,headerPadding:Qe,headerColor:He,footerPadding:$e,triggerHeight:qe,zeroTriggerHeight:ut,zeroTriggerWidth:ct,motionDurationMid:yt,motionDurationSlow:_e,fontSize:st,borderRadius:pt,bodyBg:bt,headerBg:wt,siderBg:mt}=Pe;return{[Ne]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:bt,"&, *":{boxSizing:"border-box"},[`&${Ne}-has-sider`]:{flexDirection:"row",[`> ${Ne}, > ${Ne}-content`]:{width:0}},[`${Ne}-header, &${Ne}-footer`]:{flex:"0 0 auto"},[`${Ne}-sider`]:{position:"relative",minWidth:0,background:mt,transition:`all ${yt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${we}-menu${we}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:qe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:qe,color:Te,lineHeight:`${qe}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${yt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Re,insetInlineEnd:-ct,zIndex:1,width:ct,height:ut,color:Te,fontSize:Pe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:mt,borderStartStartRadius:0,borderStartEndRadius:pt,borderEndEndRadius:pt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${_e} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${_e}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ct,borderStartStartRadius:pt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:pt}}}}},Ee(Pe)),{"&-rtl":{direction:"rtl"}}),[`${Ne}-header`]:{height:Re,padding:Qe,color:He,lineHeight:`${Re}px`,background:wt,[`${we}-menu`]:{lineHeight:"inherit"}},[`${Ne}-footer`]:{padding:$e,color:Ae,fontSize:st,background:Me},[`${Ne}-content`]:{flex:"auto",minHeight:0}}};var be=(0,ce.Z)("Layout",Pe=>[ye(Pe)],Pe=>{const{colorBgLayout:we,controlHeight:Ne,controlHeightLG:Ae,colorText:Te,controlHeightSM:Me,marginXXS:Be,colorTextLightSolid:Re,colorBgContainer:Qe}=Pe,He=Ae*1.25;return{colorBgHeader:"#001529",colorBgBody:we,colorBgTrigger:"#002140",bodyBg:we,headerBg:"#001529",headerHeight:Ne*2,headerPadding:`0 ${He}px`,headerColor:Te,footerPadding:`${Me}px ${He}px`,footerBg:we,siderBg:"#001529",triggerHeight:Ae+Be*2,triggerBg:"#002140",triggerColor:Re,zeroTriggerWidth:Ae,zeroTriggerHeight:Ae,lightSiderBg:Qe,lightTriggerBg:Qe,lightTriggerColor:Te}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(Pe,we){var Ne={};for(var Ae in Pe)Object.prototype.hasOwnProperty.call(Pe,Ae)&&we.indexOf(Ae)<0&&(Ne[Ae]=Pe[Ae]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ae=Object.getOwnPropertySymbols(Pe);Te<Ae.length;Te++)we.indexOf(Ae[Te])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ae[Te])&&(Ne[Ae[Te]]=Pe[Ae[Te]]);return Ne};const xe=Oe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function fe(Pe){let{suffixCls:we,tagName:Ne,displayName:Ae}=Pe;return Te=>Oe.forwardRef((Be,Re)=>Oe.createElement(Te,Object.assign({ref:Re,suffixCls:we,tagName:Ne},Be)))}const z=Oe.forwardRef((Pe,we)=>{const{prefixCls:Ne,suffixCls:Ae,className:Te,tagName:Me}=Pe,Be=me(Pe,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Re}=Oe.useContext(ve.E_),Qe=Re("layout",Ne),[He,$e]=be(Qe),qe=Ae?`${Qe}-${Ae}`:Qe;return He(Oe.createElement(Me,Object.assign({className:oe()(Ne||qe,Te,$e),ref:we},Be)))}),ee=Oe.forwardRef((Pe,we)=>{const{direction:Ne}=Oe.useContext(ve.E_),[Ae,Te]=Oe.useState([]),{prefixCls:Me,className:Be,rootClassName:Re,children:Qe,hasSider:He,tagName:$e,style:qe}=Pe,ut=me(Pe,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ct=(0,Ue.Z)(ut,["suffixCls"]),{getPrefixCls:yt,layout:_e}=Oe.useContext(ve.E_),st=yt("layout",Me),[pt,bt]=be(st),wt=oe()(st,{[`${st}-has-sider`]:typeof He=="boolean"?He:Ae.length>0,[`${st}-rtl`]:Ne==="rtl"},_e==null?void 0:_e.className,Be,Re,bt),mt=Oe.useMemo(()=>({siderHook:{addSider:vt=>{Te(St=>[].concat((0,We.Z)(St),[vt]))},removeSider:vt=>{Te(St=>St.filter(Nt=>Nt!==vt))}}}),[]);return pt(Oe.createElement(xe.Provider,{value:mt},Oe.createElement($e,Object.assign({ref:we,className:wt,style:Object.assign(Object.assign({},_e==null?void 0:_e.style),qe)},ct),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(Nn,mn,ze){"use strict";ze.d(mn,{J:function(){return ve}});var We=ze(59301),xt=ze(33234),oe=ze(70425),Ue=function(ce,Ce){var Ee={};for(var ye in ce)Object.prototype.hasOwnProperty.call(ce,ye)&&Ce.indexOf(ye)<0&&(Ee[ye]=ce[ye]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,ye=Object.getOwnPropertySymbols(ce);be<ye.length;be++)Ce.indexOf(ye[be])<0&&Object.prototype.propertyIsEnumerable.call(ce,ye[be])&&(Ee[ye[be]]=ce[ye[be]]);return Ee};const Oe=We.createContext(null),ve=We.forwardRef((ce,Ce)=>{const{children:Ee}=ce,ye=Ue(ce,["children"]),be=We.useContext(Oe),me=We.useMemo(()=>Object.assign(Object.assign({},be),ye),[be,ye.prefixCls,ye.mode,ye.selectable]);return We.createElement(Oe.Provider,{value:me},We.createElement(xt.BR,null,(0,oe.supportNodeRef)(Ee)?We.cloneElement(Ee,{ref:Ce}):Ee))});mn.Z=Oe},20834:function(Nn,mn,ze){"use strict";ze.d(mn,{default:function(){return nt}});var We=ze(15285),xt=ze(59301),oe=ze(45818),Ue=ze(92310),Oe=ze.n(Ue),ve=ze(36355),ce=function(ht,Mt){var gt={};for(var rt in ht)Object.prototype.hasOwnProperty.call(ht,rt)&&Mt.indexOf(rt)<0&&(gt[rt]=ht[rt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,rt=Object.getOwnPropertySymbols(ht);Je<rt.length;Je++)Mt.indexOf(rt[Je])<0&&Object.prototype.propertyIsEnumerable.call(ht,rt[Je])&&(gt[rt[Je]]=ht[rt[Je]]);return gt},Ee=ht=>{const{prefixCls:Mt,className:gt,dashed:rt}=ht,Je=ce(ht,["prefixCls","className","dashed"]),{getPrefixCls:Xe}=xt.useContext(ve.E_),Ve=Xe("menu",Mt),tt=Oe()({[`${Ve}-item-divider-dashed`]:!!rt},gt);return xt.createElement(We.iz,Object.assign({className:tt},Je))},ye=ze(11592),be=ze(2738),me=ze(6848),xe=ze(92343),z=(0,xt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=ht=>{var Mt;const{className:gt,children:rt,icon:Je,title:Xe,danger:Ve}=ht,{prefixCls:tt,firstLevel:Ze,direction:je,disableMenuItemTitleTooltip:De,inlineCollapsed:Ye}=xt.useContext(z),dt=Vt=>{const en=xt.createElement("span",{className:`${tt}-title-content`},rt);return(!Je||(0,xe.l$)(rt)&&rt.type==="span")&&rt&&Vt&&Ze&&typeof rt=="string"?xt.createElement("div",{className:`${tt}-inline-collapsed-noicon`},rt.charAt(0)):en},{siderCollapsed:Ke}=xt.useContext(oe.D);let At=Xe;typeof Xe=="undefined"?At=Ze?rt:"":Xe===!1&&(At="");const zt={title:At};!Ke&&!Ye&&(zt.title=null,zt.open=!1);const _t=(0,ye.Z)(rt).length;let Ot=xt.createElement(We.ck,Object.assign({},(0,be.Z)(ht,["title","icon","danger"]),{className:Oe()({[`${tt}-item-danger`]:Ve,[`${tt}-item-only-child`]:(Je?_t+1:_t)===1},gt),title:typeof Xe=="string"?Xe:void 0}),(0,xe.Tm)(Je,{className:Oe()((0,xe.l$)(Je)?(Mt=Je.props)===null||Mt===void 0?void 0:Mt.className:"",`${tt}-item-icon`)}),dt(Ye));return De||(Ot=xt.createElement(me.Z,Object.assign({},zt,{placement:je==="rtl"?"left":"right",overlayClassName:`${tt}-inline-collapsed-tooltip`}),Ot)),Ot},le=ht=>{var Mt;const{popupClassName:gt,icon:rt,title:Je,theme:Xe}=ht,Ve=xt.useContext(z),{prefixCls:tt,inlineCollapsed:Ze,theme:je}=Ve,De=(0,We.Xl)();let Ye;if(!rt)Ye=Ze&&!De.length&&Je&&typeof Je=="string"?xt.createElement("div",{className:`${tt}-inline-collapsed-noicon`},Je.charAt(0)):xt.createElement("span",{className:`${tt}-title-content`},Je);else{const Ke=(0,xe.l$)(Je)&&Je.type==="span";Ye=xt.createElement(xt.Fragment,null,(0,xe.Tm)(rt,{className:Oe()((0,xe.l$)(rt)?(Mt=rt.props)===null||Mt===void 0?void 0:Mt.className:"",`${tt}-item-icon`)}),Ke?Je:xt.createElement("span",{className:`${tt}-title-content`},Je))}const dt=xt.useMemo(()=>Object.assign(Object.assign({},Ve),{firstLevel:!1}),[Ve]);return xt.createElement(z.Provider,{value:dt},xt.createElement(We.Wd,Object.assign({},(0,be.Z)(ht,["icon"]),{title:Ye,popupClassName:Oe()(tt,gt,`${tt}-${Xe||je}`)})))},ue=ze(18785),pe=ze(70425),Pe=ze(62892),we=ze(40875),Ne=function(ht,Mt){var gt={};for(var rt in ht)Object.prototype.hasOwnProperty.call(ht,rt)&&Mt.indexOf(rt)<0&&(gt[rt]=ht[rt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,rt=Object.getOwnPropertySymbols(ht);Je<rt.length;Je++)Mt.indexOf(rt[Je])<0&&Object.prototype.propertyIsEnumerable.call(ht,rt[Je])&&(gt[rt[Je]]=ht[rt[Je]]);return gt};function Ae(ht){return(ht||[]).map((Mt,gt)=>{if(Mt&&typeof Mt=="object"){const rt=Mt,{label:Je,children:Xe,key:Ve,type:tt}=rt,Ze=Ne(rt,["label","children","key","type"]),je=Ve!=null?Ve:`tmp-${gt}`;return Xe||tt==="group"?tt==="group"?xt.createElement(We.BW,Object.assign({key:je},Ze,{title:Je}),Ae(Xe)):xt.createElement(le,Object.assign({key:je},Ze,{title:Je}),Ae(Xe)):tt==="divider"?xt.createElement(Ee,Object.assign({key:je},Ze)):xt.createElement(ae,Object.assign({key:je},Ze),Je)}return null}).filter(Mt=>Mt)}function Te(ht){return xt.useMemo(()=>ht&&Ae(ht),[ht])}var Me=ze(64993),Be=ze(17313),Re=ze(8378),Qe=ze(13826),He=ze(29878),$e=ze(83116),qe=ze(37613),ct=ht=>{const{componentCls:Mt,motionDurationSlow:gt,horizontalLineHeight:rt,colorSplit:Je,lineWidth:Xe,lineType:Ve,itemPaddingInline:tt}=ht;return{[`${Mt}-horizontal`]:{lineHeight:rt,border:0,borderBottom:`${Xe}px ${Ve} ${Je}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Mt}-item, ${Mt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:tt},[`> ${Mt}-item:hover,
> ${Mt}-item-active,
> ${Mt}-submenu ${Mt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Mt}-item, ${Mt}-submenu-title`]:{transition:[`border-color ${gt}`,`background ${gt}`].join(",")},[`${Mt}-submenu-arrow`]:{display:"none"}}}},_e=ht=>{let{componentCls:Mt,menuArrowOffset:gt}=ht;return{[`${Mt}-rtl`]:{direction:"rtl"},[`${Mt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Mt}-rtl${Mt}-vertical,
${Mt}-submenu-rtl ${Mt}-vertical`]:{[`${Mt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${gt})`},"&::after":{transform:`rotate(45deg) translateY(${gt})`}}}}};const st=ht=>Object.assign({},(0,Be.oN)(ht));var bt=(ht,Mt)=>{const{componentCls:gt,itemColor:rt,itemSelectedColor:Je,groupTitleColor:Xe,itemBg:Ve,subMenuItemBg:tt,itemSelectedBg:Ze,activeBarHeight:je,activeBarWidth:De,activeBarBorderWidth:Ye,motionDurationSlow:dt,motionEaseInOut:Ke,motionEaseOut:At,itemPaddingInline:zt,motionDurationMid:_t,itemHoverColor:Ot,lineType:Vt,colorSplit:en,itemDisabledColor:on,dangerItemColor:fn,dangerItemHoverColor:jn,dangerItemSelectedColor:er,dangerItemActiveBg:tr,dangerItemSelectedBg:ur,itemHoverBg:Tr,itemActiveBg:Lr,menuSubMenuBg:Ar,horizontalItemSelectedColor:Gr,horizontalItemSelectedBg:Kr,horizontalItemBorderRadius:Mr,horizontalItemHoverBg:fi,popupBg:Jr}=ht;return{[`${gt}-${Mt}, ${gt}-${Mt} > ${gt}`]:{color:rt,background:Ve,[`&${gt}-root:focus-visible`]:Object.assign({},st(ht)),[`${gt}-item-group-title`]:{color:Xe},[`${gt}-submenu-selected`]:{[`> ${gt}-submenu-title`]:{color:Je}},[`${gt}-item-disabled, ${gt}-submenu-disabled`]:{color:`${on} !important`},[`${gt}-item:not(${gt}-item-selected):not(${gt}-submenu-selected)`]:{[`&:hover, > ${gt}-submenu-title:hover`]:{color:Ot}},[`&:not(${gt}-horizontal)`]:{[`${gt}-item:not(${gt}-item-selected)`]:{"&:hover":{backgroundColor:Tr},"&:active":{backgroundColor:Lr}},[`${gt}-submenu-title`]:{"&:hover":{backgroundColor:Tr},"&:active":{backgroundColor:Lr}}},[`${gt}-item-danger`]:{color:fn,[`&${gt}-item:hover`]:{[`&:not(${gt}-item-selected):not(${gt}-submenu-selected)`]:{color:jn}},[`&${gt}-item:active`]:{background:tr}},[`${gt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${gt}-item-selected`]:{color:Je,[`&${gt}-item-danger`]:{color:er},"a, a:hover":{color:"inherit"}},[`& ${gt}-item-selected`]:{backgroundColor:Ze,[`&${gt}-item-danger`]:{backgroundColor:ur}},[`${gt}-item, ${gt}-submenu-title`]:{[`&:not(${gt}-item-disabled):focus-visible`]:Object.assign({},st(ht))},[`&${gt}-submenu > ${gt}`]:{backgroundColor:Ar},[`&${gt}-popup > ${gt}`]:{backgroundColor:Jr},[`&${gt}-horizontal`]:Object.assign(Object.assign({},Mt==="dark"?{borderBottom:0}:{}),{[`> ${gt}-item, > ${gt}-submenu`]:{top:Ye,marginTop:-Ye,marginBottom:0,borderRadius:Mr,"&::after":{position:"absolute",insetInline:zt,bottom:0,borderBottom:`${je}px solid transparent`,transition:`border-color ${dt} ${Ke}`,content:'""'},"&:hover, &-active, &-open":{background:fi,"&::after":{borderBottomWidth:je,borderBottomColor:Gr}},"&-selected":{color:Gr,backgroundColor:Kr,"&:hover":{backgroundColor:Kr},"&::after":{borderBottomWidth:je,borderBottomColor:Gr}}}}),[`&${gt}-root`]:{[`&${gt}-inline, &${gt}-vertical`]:{borderInlineEnd:`${Ye}px ${Vt} ${en}`}},[`&${gt}-inline`]:{[`${gt}-sub${gt}-inline`]:{background:tt},[`${gt}-item, ${gt}-submenu-title`]:Ye&&De?{width:`calc(100% + ${Ye}px)`}:{},[`${gt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${De}px solid ${Je}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${_t} ${At}`,`opacity ${_t} ${At}`].join(","),content:'""'},[`&${gt}-item-danger`]:{"&::after":{borderInlineEndColor:er}}},[`${gt}-selected, ${gt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${_t} ${Ke}`,`opacity ${_t} ${Ke}`].join(",")}}}}}};const wt=ht=>{const{componentCls:Mt,itemHeight:gt,itemMarginInline:rt,padding:Je,menuArrowSize:Xe,marginXS:Ve,itemMarginBlock:tt}=ht,Ze=Je+Xe+Ve;return{[`${Mt}-item`]:{position:"relative",overflow:"hidden"},[`${Mt}-item, ${Mt}-submenu-title`]:{height:gt,lineHeight:`${gt}px`,paddingInline:Je,overflow:"hidden",textOverflow:"ellipsis",marginInline:rt,marginBlock:tt,width:`calc(100% - ${rt*2}px)`},[`> ${Mt}-item,
> ${Mt}-submenu > ${Mt}-submenu-title`]:{height:gt,lineHeight:`${gt}px`},[`${Mt}-item-group-list ${Mt}-submenu-title,
${Mt}-submenu-title`]:{paddingInlineEnd:Ze}}};var vt=ht=>{const{componentCls:Mt,iconCls:gt,itemHeight:rt,colorTextLightSolid:Je,dropdownWidth:Xe,controlHeightLG:Ve,motionDurationMid:tt,motionEaseOut:Ze,paddingXL:je,itemMarginInline:De,fontSizeLG:Ye,motionDurationSlow:dt,paddingXS:Ke,boxShadowSecondary:At,collapsedWidth:zt,collapsedIconSize:_t}=ht,Ot={height:rt,lineHeight:`${rt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Mt]:{"&-inline, &-vertical":Object.assign({[`&${Mt}-root`]:{boxShadow:"none"}},wt(ht))},[`${Mt}-submenu-popup`]:{[`${Mt}-vertical`]:Object.assign(Object.assign({},wt(ht)),{boxShadow:At})}},{[`${Mt}-submenu-popup ${Mt}-vertical${Mt}-sub`]:{minWidth:Xe,maxHeight:`calc(100vh - ${Ve*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Mt}-inline`]:{width:"100%",[`&${Mt}-root`]:{[`${Mt}-item, ${Mt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${dt}`,`background ${dt}`,`padding ${tt} ${Ze}`].join(","),[`> ${Mt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Mt}-sub${Mt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Mt}-submenu > ${Mt}-submenu-title`]:Ot,[`& ${Mt}-item-group-title`]:{paddingInlineStart:je}},[`${Mt}-item`]:Ot}},{[`${Mt}-inline-collapsed`]:{width:zt,[`&${Mt}-root`]:{[`${Mt}-item, ${Mt}-submenu ${Mt}-submenu-title`]:{[`> ${Mt}-inline-collapsed-noicon`]:{fontSize:Ye,textAlign:"center"}}},[`> ${Mt}-item,
> ${Mt}-item-group > ${Mt}-item-group-list > ${Mt}-item,
> ${Mt}-item-group > ${Mt}-item-group-list > ${Mt}-submenu > ${Mt}-submenu-title,
> ${Mt}-submenu > ${Mt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ye/2}px - ${De}px)`,textOverflow:"clip",[`
${Mt}-submenu-arrow,
${Mt}-submenu-expand-icon
`]:{opacity:0},[`${Mt}-item-icon, ${gt}`]:{margin:0,fontSize:_t,lineHeight:`${rt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Mt}-item-icon, ${gt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Mt}-item-icon, ${gt}`]:{display:"none"},"a, a:hover":{color:Je}},[`${Mt}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:Ke})}}]};const St=ht=>{const{componentCls:Mt,motionDurationSlow:gt,motionDurationMid:rt,motionEaseInOut:Je,motionEaseOut:Xe,iconCls:Ve,iconSize:tt,iconMarginInlineEnd:Ze}=ht;return{[`${Mt}-item, ${Mt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${gt}`,`background ${gt}`,`padding ${gt} ${Je}`].join(","),[`${Mt}-item-icon, ${Ve}`]:{minWidth:tt,fontSize:tt,transition:[`font-size ${rt} ${Xe}`,`margin ${gt} ${Je}`,`color ${gt}`].join(","),"+ span":{marginInlineStart:Ze,opacity:1,transition:[`opacity ${gt} ${Je}`,`margin ${gt}`,`color ${gt}`].join(",")}},[`${Mt}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${Mt}-item-only-child`]:{[`> ${Ve}, > ${Mt}-item-icon`]:{marginInlineEnd:0}}},[`${Mt}-item-disabled, ${Mt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Mt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Nt=ht=>{const{componentCls:Mt,motionDurationSlow:gt,motionEaseInOut:rt,borderRadius:Je,menuArrowSize:Xe,menuArrowOffset:Ve}=ht;return{[`${Mt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ht.margin,width:Xe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${gt} ${rt}, opacity ${gt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Xe*.6,height:Xe*.15,backgroundColor:"currentcolor",borderRadius:Je,transition:[`background ${gt} ${rt}`,`transform ${gt} ${rt}`,`top ${gt} ${rt}`,`color ${gt} ${rt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ve})`},"&::after":{transform:`rotate(-45deg) translateY(${Ve})`}}}}},Ft=ht=>{const{antCls:Mt,componentCls:gt,fontSize:rt,motionDurationSlow:Je,motionDurationMid:Xe,motionEaseInOut:Ve,paddingXS:tt,padding:Ze,colorSplit:je,lineWidth:De,zIndexPopup:Ye,borderRadiusLG:dt,subMenuItemBorderRadius:Ke,menuArrowSize:At,menuArrowOffset:zt,lineType:_t,menuPanelMaskInset:Ot,groupTitleLineHeight:Vt,groupTitleFontSize:en}=ht;return[{"":{[`${gt}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${gt}-submenu-hidden`]:{display:"none"}},{[gt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(ht)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:rt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Je} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${gt}-item`]:{flex:"none"}},[`${gt}-item, ${gt}-submenu, ${gt}-submenu-title`]:{borderRadius:ht.itemBorderRadius},[`${gt}-item-group-title`]:{padding:`${tt}px ${Ze}px`,fontSize:en,lineHeight:Vt,transition:`all ${Je}`},[`&-horizontal ${gt}-submenu`]:{transition:[`border-color ${Je} ${Ve}`,`background ${Je} ${Ve}`].join(",")},[`${gt}-submenu, ${gt}-submenu-inline`]:{transition:[`border-color ${Je} ${Ve}`,`background ${Je} ${Ve}`,`padding ${Xe} ${Ve}`].join(",")},[`${gt}-submenu ${gt}-sub`]:{cursor:"initial",transition:[`background ${Je} ${Ve}`,`padding ${Je} ${Ve}`].join(",")},[`${gt}-title-content`]:{transition:`color ${Je}`},[`${gt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${gt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:je,borderStyle:_t,borderWidth:0,borderTopWidth:De,marginBlock:De,padding:0,"&-dashed":{borderStyle:"dashed"}}}),St(ht)),{[`${gt}-item-group`]:{[`${gt}-item-group-list`]:{margin:0,padding:0,[`${gt}-item, ${gt}-submenu-title`]:{paddingInline:`${rt*2}px ${Ze}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ye,borderRadius:dt,boxShadow:"none",transformOrigin:"0 0",[`&${gt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ot}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ot},"\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:ht.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ht.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ht.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ht.paddingXS},[`> ${gt}`]:Object.assign(Object.assign(Object.assign({borderRadius:dt},St(ht)),Nt(ht)),{[`${gt}-item, ${gt}-submenu > ${gt}-submenu-title`]:{borderRadius:Ke},[`${gt}-submenu-title::after`]:{transition:`transform ${Je} ${Ve}`}})}}),Nt(ht)),{[`&-inline-collapsed ${gt}-submenu-arrow,
&-inline ${gt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${zt})`},"&::after":{transform:`rotate(45deg) translateX(-${zt})`}},[`${gt}-submenu-open${gt}-submenu-inline > ${gt}-submenu-title > ${gt}-submenu-arrow`]:{transform:`translateY(-${At*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${zt})`},"&::before":{transform:`rotate(45deg) translateX(${zt})`}}})},{[`${Mt}-layout-header`]:{[gt]:{lineHeight:"inherit"}}}]};var Kt=(ht,Mt)=>(0,$e.Z)("Menu",rt=>{if(Mt===!1)return[];const{colorBgElevated:Je,colorPrimary:Xe,colorTextLightSolid:Ve,controlHeightLG:tt,fontSize:Ze,darkItemColor:je,darkDangerItemColor:De,darkItemBg:Ye,darkSubMenuItemBg:dt,darkItemSelectedColor:Ke,darkItemSelectedBg:At,darkDangerItemSelectedBg:zt,darkItemHoverBg:_t,darkGroupTitleColor:Ot,darkItemHoverColor:Vt,darkItemDisabledColor:en,darkDangerItemHoverColor:on,darkDangerItemSelectedColor:fn,darkDangerItemActiveBg:jn}=rt,er=Ze/7*5,tr=(0,qe.TS)(rt,{menuArrowSize:er,menuHorizontalHeight:tt*1.15,menuArrowOffset:`${er*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Je}),ur=(0,qe.TS)(tr,{itemColor:je,itemHoverColor:Vt,groupTitleColor:Ot,itemSelectedColor:Ke,itemBg:Ye,popupBg:Ye,subMenuItemBg:dt,itemActiveBg:"transparent",itemSelectedBg:At,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:_t,itemDisabledColor:en,dangerItemColor:De,dangerItemHoverColor:on,dangerItemSelectedColor:fn,dangerItemActiveBg:jn,dangerItemSelectedBg:zt,menuSubMenuBg:dt,horizontalItemSelectedColor:Ve,horizontalItemSelectedBg:Xe});return[Ft(tr),ct(tr),vt(tr),bt(tr,"light"),bt(ur,"dark"),_e(tr),(0,Re.Z)(tr),(0,Qe.oN)(tr,"slide-up"),(0,Qe.oN)(tr,"slide-down"),(0,He._y)(tr,"zoom-big")]},rt=>{const{colorPrimary:Je,colorError:Xe,colorTextDisabled:Ve,colorErrorBg:tt,colorText:Ze,colorTextDescription:je,colorBgContainer:De,colorFillAlter:Ye,colorFillContent:dt,lineWidth:Ke,lineWidthBold:At,controlItemBgActive:zt,colorBgTextHover:_t,controlHeightLG:Ot,lineHeight:Vt,colorBgElevated:en,marginXXS:on,padding:fn,fontSize:jn,controlHeightSM:er,fontSizeLG:tr,colorTextLightSolid:ur,colorErrorHover:Tr}=rt,Lr=new Me.C(ur).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:rt.zIndexPopupBase+50,radiusItem:rt.borderRadiusLG,itemBorderRadius:rt.borderRadiusLG,radiusSubMenuItem:rt.borderRadiusSM,subMenuItemBorderRadius:rt.borderRadiusSM,colorItemText:Ze,itemColor:Ze,colorItemTextHover:Ze,itemHoverColor:Ze,colorItemTextHoverHorizontal:Je,horizontalItemHoverColor:Je,colorGroupTitle:je,groupTitleColor:je,colorItemTextSelected:Je,itemSelectedColor:Je,colorItemTextSelectedHorizontal:Je,horizontalItemSelectedColor:Je,colorItemBg:De,itemBg:De,colorItemBgHover:_t,itemHoverBg:_t,colorItemBgActive:dt,itemActiveBg:zt,colorSubItemBg:Ye,subMenuItemBg:Ye,colorItemBgSelected:zt,itemSelectedBg:zt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:At,activeBarHeight:At,colorActiveBarBorderSize:Ke,activeBarBorderWidth:Ke,colorItemTextDisabled:Ve,itemDisabledColor:Ve,colorDangerItemText:Xe,dangerItemColor:Xe,colorDangerItemTextHover:Xe,dangerItemHoverColor:Xe,colorDangerItemTextSelected:Xe,dangerItemSelectedColor:Xe,colorDangerItemBgActive:tt,dangerItemActiveBg:tt,colorDangerItemBgSelected:tt,dangerItemSelectedBg:tt,itemMarginInline:rt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ot,groupTitleLineHeight:Vt,collapsedWidth:Ot*2,popupBg:en,itemMarginBlock:on,itemPaddingInline:fn,horizontalLineHeight:`${Ot*1.15}px`,iconSize:jn,iconMarginInlineEnd:er-jn,collapsedIconSize:tr,groupTitleFontSize:jn,darkItemDisabledColor:new Me.C(ur).setAlpha(.25).toRgbString(),darkItemColor:Lr,darkDangerItemColor:Xe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ur,darkItemSelectedBg:Je,darkDangerItemSelectedBg:Xe,darkItemHoverBg:"transparent",darkGroupTitleColor:Lr,darkItemHoverColor:ur,darkDangerItemHoverColor:Tr,darkDangerItemSelectedColor:ur,darkDangerItemActiveBg:Xe}},{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"]]})(ht),Pt=function(ht,Mt){var gt={};for(var rt in ht)Object.prototype.hasOwnProperty.call(ht,rt)&&Mt.indexOf(rt)<0&&(gt[rt]=ht[rt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,rt=Object.getOwnPropertySymbols(ht);Je<rt.length;Je++)Mt.indexOf(rt[Je])<0&&Object.prototype.propertyIsEnumerable.call(ht,rt[Je])&&(gt[rt[Je]]=ht[rt[Je]]);return gt},at=(0,xt.forwardRef)((ht,Mt)=>{var gt,rt;const Je=xt.useContext(we.Z),Xe=Je||{},{getPrefixCls:Ve,getPopupContainer:tt,direction:Ze,menu:je}=xt.useContext(ve.E_),De=Ve(),{prefixCls:Ye,className:dt,style:Ke,theme:At="light",expandIcon:zt,_internalDisableMenuItemTitleTooltip:_t,inlineCollapsed:Ot,siderCollapsed:Vt,items:en,children:on,rootClassName:fn,mode:jn,selectable:er,onClick:tr,overflowedIndicatorPopupClassName:ur}=ht,Tr=Pt(ht,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Lr=(0,be.Z)(Tr,["collapsedWidth"]),Ar=Te(en)||on;(gt=Xe.validator)===null||gt===void 0||gt.call(Xe,{mode:jn});const Gr=(0,pe.useEvent)(function(){var vr;tr==null||tr.apply(void 0,arguments),(vr=Xe.onClick)===null||vr===void 0||vr.call(Xe)}),Kr=Xe.mode||jn,Mr=er!=null?er:Xe.selectable,fi=xt.useMemo(()=>Vt!==void 0?Vt:Ot,[Ot,Vt]),Jr={horizontal:{motionName:`${De}-slide-up`},inline:(0,Pe.Z)(De),other:{motionName:`${De}-zoom-big`}},it=Ve("menu",Ye||Xe.prefixCls),[bi,mi]=Kt(it,!Je),Tn=Oe()(`${it}-${At}`,je==null?void 0:je.className,dt);let dr;if(typeof zt=="function")dr=zt;else if(zt===null||zt===!1)dr=null;else if(Xe.expandIcon===null||Xe.expandIcon===!1)dr=null;else{const vr=zt!=null?zt:Xe.expandIcon;dr=(0,xe.Tm)(vr,{className:Oe()(`${it}-submenu-expand-icon`,(0,xe.l$)(vr)?(rt=vr.props)===null||rt===void 0?void 0:rt.className:"")})}const ar=xt.useMemo(()=>({prefixCls:it,inlineCollapsed:fi||!1,direction:Ze,firstLevel:!0,theme:At,mode:Kr,disableMenuItemTitleTooltip:_t}),[it,fi,Ze,_t,At]);return bi(xt.createElement(we.Z.Provider,{value:null},xt.createElement(z.Provider,{value:ar},xt.createElement(We.ZP,Object.assign({getPopupContainer:tt,overflowedIndicator:xt.createElement(ue.Z,null),overflowedIndicatorPopupClassName:Oe()(it,`${it}-${At}`,ur),mode:Kr,selectable:Mr,onClick:Gr},Lr,{inlineCollapsed:fi,style:Object.assign(Object.assign({},je==null?void 0:je.style),Ke),className:Tn,prefixCls:it,direction:Ze,defaultMotions:Jr,expandIcon:dr,ref:Mt,rootClassName:Oe()(fn,mi)}),Ar))))});const Ct=(0,xt.forwardRef)((ht,Mt)=>{const gt=(0,xt.useRef)(null),rt=xt.useContext(oe.D);return(0,xt.useImperativeHandle)(Mt,()=>({menu:gt.current,focus:Je=>{var Xe;(Xe=gt.current)===null||Xe===void 0||Xe.focus(Je)}})),xt.createElement(at,Object.assign({ref:gt},ht,rt))});Ct.Item=ae,Ct.SubMenu=le,Ct.Divider=Ee,Ct.ItemGroup=We.BW;var nt=Ct},58421:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Xe}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(tt,Ze){return xt.createElement(Oe.Z,(0,We.Z)({},tt,{ref:Ze,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce,Ee=ze(49198),ye=ze(33853),be=ze(38819),me=ze(92310),xe=ze.n(me),fe=ze(49618),z=ze(77321),ee=ze(96949),ae=ze(55090),re=ze(77205),le=ze(38793),ue=ze(26112),pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Pe=pe,we=ze(91735),Ne=function(Ve){(0,re.Z)(Ze,Ve);var tt=(0,le.Z)(Ze);function Ze(){var je;(0,ee.Z)(this,Ze);for(var De=arguments.length,Ye=new Array(De),dt=0;dt<De;dt++)Ye[dt]=arguments[dt];return je=tt.call.apply(tt,[this].concat(Ye)),je.state={goInputText:""},je.getValidValue=function(){var Ke=je.state.goInputText;return!Ke||Number.isNaN(Ke)?void 0:Number(Ke)},je.buildOptionText=function(Ke){return"".concat(Ke," ").concat(je.props.locale.items_per_page)},je.changeSize=function(Ke){je.props.changeSize(Number(Ke))},je.handleChange=function(Ke){je.setState({goInputText:Ke.target.value})},je.handleBlur=function(Ke){var At=je.props,zt=At.goButton,_t=At.quickGo,Ot=At.rootPrefixCls,Vt=je.state.goInputText;zt||Vt===""||(je.setState({goInputText:""}),!(Ke.relatedTarget&&(Ke.relatedTarget.className.indexOf("".concat(Ot,"-item-link"))>=0||Ke.relatedTarget.className.indexOf("".concat(Ot,"-item"))>=0))&&_t(je.getValidValue()))},je.go=function(Ke){var At=je.state.goInputText;At!==""&&(Ke.keyCode===Pe.ENTER||Ke.type==="click")&&(je.setState({goInputText:""}),je.props.quickGo(je.getValidValue()))},je}return(0,ae.Z)(Ze,[{key:"getPageSizeOptions",value:function(){var De=this.props,Ye=De.pageSize,dt=De.pageSizeOptions;return dt.some(function(Ke){return Ke.toString()===Ye.toString()})?dt:dt.concat([Ye.toString()]).sort(function(Ke,At){var zt=Number.isNaN(Number(Ke))?0:Number(Ke),_t=Number.isNaN(Number(At))?0:Number(At);return zt-_t})}},{key:"render",value:function(){var De=this,Ye=this.props,dt=Ye.pageSize,Ke=Ye.locale,At=Ye.rootPrefixCls,zt=Ye.changeSize,_t=Ye.quickGo,Ot=Ye.goButton,Vt=Ye.selectComponentClass,en=Ye.buildOptionText,on=Ye.selectPrefixCls,fn=Ye.disabled,jn=this.state.goInputText,er="".concat(At,"-options"),tr=Vt,ur=null,Tr=null,Lr=null;if(!zt&&!_t)return null;var Ar=this.getPageSizeOptions();if(zt&&tr){var Gr=Ar.map(function(Kr,Mr){return xt.createElement(tr.Option,{key:Mr,value:Kr.toString()},(en||De.buildOptionText)(Kr))});ur=xt.createElement(tr,{disabled:fn,prefixCls:on,showSearch:!1,className:"".concat(er,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(dt||Ar[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Mr){return Mr.parentNode},"aria-label":Ke.page_size,defaultOpen:!1},Gr)}return _t&&(Ot&&(Lr=typeof Ot=="boolean"?xt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:fn,className:"".concat(er,"-quick-jumper-button")},Ke.jump_to_confirm):xt.createElement("span",{onClick:this.go,onKeyUp:this.go},Ot)),Tr=xt.createElement("div",{className:"".concat(er,"-quick-jumper")},Ke.jump_to,xt.createElement("input",{disabled:fn,type:"text",value:jn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Ke.page}),Ke.page,Lr)),xt.createElement("li",{className:"".concat(er)},ur,Tr)}}]),Ze}(xt.Component);Ne.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ae=Ne,Te=function(tt){var Ze,je=tt.rootPrefixCls,De=tt.page,Ye=tt.active,dt=tt.className,Ke=tt.showTitle,At=tt.onClick,zt=tt.onKeyPress,_t=tt.itemRender,Ot="".concat(je,"-item"),Vt=xe()(Ot,"".concat(Ot,"-").concat(De),(Ze={},(0,fe.Z)(Ze,"".concat(Ot,"-active"),Ye),(0,fe.Z)(Ze,"".concat(Ot,"-disabled"),!De),(0,fe.Z)(Ze,tt.className,dt),Ze)),en=function(){At(De)},on=function(er){zt(er,At,De)},fn=_t(De,"page",xt.createElement("a",{rel:"nofollow"},De));return fn?xt.createElement("li",{title:Ke?De.toString():null,className:Vt,onClick:en,onKeyPress:on,tabIndex:0},fn):null},Me=Te;function Be(){}function Re(Ve){var tt=Number(Ve);return typeof tt=="number"&&!Number.isNaN(tt)&&isFinite(tt)&&Math.floor(tt)===tt}var Qe=function(tt,Ze,je){return je};function He(Ve,tt,Ze){var je=typeof Ve=="undefined"?tt.pageSize:Ve;return Math.floor((Ze.total-1)/je)+1}var $e=function(Ve){(0,re.Z)(Ze,Ve);var tt=(0,le.Z)(Ze);function Ze(je){var De;(0,ee.Z)(this,Ze),De=tt.call(this,je),De.paginationNode=xt.createRef(),De.getJumpPrevPage=function(){return Math.max(1,De.state.current-(De.props.showLessItems?3:5))},De.getJumpNextPage=function(){return Math.min(He(void 0,De.state,De.props),De.state.current+(De.props.showLessItems?3:5))},De.getItemIcon=function(zt,_t){var Ot=De.props.prefixCls,Vt=zt||xt.createElement("button",{type:"button","aria-label":_t,className:"".concat(Ot,"-item-link")});return typeof zt=="function"&&(Vt=xt.createElement(zt,(0,z.Z)({},De.props))),Vt},De.isValid=function(zt){var _t=De.props.total;return Re(zt)&&zt!==De.state.current&&Re(_t)&&_t>0},De.shouldDisplayQuickJumper=function(){var zt=De.props,_t=zt.showQuickJumper,Ot=zt.total,Vt=De.state.pageSize;return Ot<=Vt?!1:_t},De.handleKeyDown=function(zt){(zt.keyCode===Pe.ARROW_UP||zt.keyCode===Pe.ARROW_DOWN)&&zt.preventDefault()},De.handleKeyUp=function(zt){var _t=De.getValidValue(zt),Ot=De.state.currentInputValue;_t!==Ot&&De.setState({currentInputValue:_t}),zt.keyCode===Pe.ENTER?De.handleChange(_t):zt.keyCode===Pe.ARROW_UP?De.handleChange(_t-1):zt.keyCode===Pe.ARROW_DOWN&&De.handleChange(_t+1)},De.handleBlur=function(zt){var _t=De.getValidValue(zt);De.handleChange(_t)},De.changePageSize=function(zt){var _t=De.state.current,Ot=He(zt,De.state,De.props);_t=_t>Ot?Ot:_t,Ot===0&&(_t=De.state.current),typeof zt=="number"&&("pageSize"in De.props||De.setState({pageSize:zt}),"current"in De.props||De.setState({current:_t,currentInputValue:_t})),De.props.onShowSizeChange(_t,zt),"onChange"in De.props&&De.props.onChange&&De.props.onChange(_t,zt)},De.handleChange=function(zt){var _t=De.props,Ot=_t.disabled,Vt=_t.onChange,en=De.state,on=en.pageSize,fn=en.current,jn=en.currentInputValue;if(De.isValid(zt)&&!Ot){var er=He(void 0,De.state,De.props),tr=zt;return zt>er?tr=er:zt<1&&(tr=1),"current"in De.props||De.setState({current:tr}),tr!==jn&&De.setState({currentInputValue:tr}),Vt(tr,on),tr}return fn},De.prev=function(){De.hasPrev()&&De.handleChange(De.state.current-1)},De.next=function(){De.hasNext()&&De.handleChange(De.state.current+1)},De.jumpPrev=function(){De.handleChange(De.getJumpPrevPage())},De.jumpNext=function(){De.handleChange(De.getJumpNextPage())},De.hasPrev=function(){return De.state.current>1},De.hasNext=function(){return De.state.current<He(void 0,De.state,De.props)},De.runIfEnter=function(zt,_t){if(zt.key==="Enter"||zt.charCode===13){for(var Ot=arguments.length,Vt=new Array(Ot>2?Ot-2:0),en=2;en<Ot;en++)Vt[en-2]=arguments[en];_t.apply(void 0,Vt)}},De.runIfEnterPrev=function(zt){De.runIfEnter(zt,De.prev)},De.runIfEnterNext=function(zt){De.runIfEnter(zt,De.next)},De.runIfEnterJumpPrev=function(zt){De.runIfEnter(zt,De.jumpPrev)},De.runIfEnterJumpNext=function(zt){De.runIfEnter(zt,De.jumpNext)},De.handleGoTO=function(zt){(zt.keyCode===Pe.ENTER||zt.type==="click")&&De.handleChange(De.state.currentInputValue)},De.renderPrev=function(zt){var _t=De.props,Ot=_t.prevIcon,Vt=_t.itemRender,en=Vt(zt,"prev",De.getItemIcon(Ot,"prev page")),on=!De.hasPrev();return(0,xt.isValidElement)(en)?(0,xt.cloneElement)(en,{disabled:on}):en},De.renderNext=function(zt){var _t=De.props,Ot=_t.nextIcon,Vt=_t.itemRender,en=Vt(zt,"next",De.getItemIcon(Ot,"next page")),on=!De.hasNext();return(0,xt.isValidElement)(en)?(0,xt.cloneElement)(en,{disabled:on}):en};var Ye=je.onChange!==Be,dt="current"in je;dt&&!Ye&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ke=je.defaultCurrent;"current"in je&&(Ke=je.current);var At=je.defaultPageSize;return"pageSize"in je&&(At=je.pageSize),Ke=Math.min(Ke,He(At,void 0,je)),De.state={current:Ke,currentInputValue:Ke,pageSize:At},De}return(0,ae.Z)(Ze,[{key:"componentDidUpdate",value:function(De,Ye){var dt=this.props.prefixCls;if(Ye.current!==this.state.current&&this.paginationNode.current){var Ke=this.paginationNode.current.querySelector(".".concat(dt,"-item-").concat(Ye.current));if(Ke&&document.activeElement===Ke){var At;Ke==null||(At=Ke.blur)===null||At===void 0||At.call(Ke)}}}},{key:"getValidValue",value:function(De){var Ye=De.target.value,dt=He(void 0,this.state,this.props),Ke=this.state.currentInputValue,At;return Ye===""?At=Ye:Number.isNaN(Number(Ye))?At=Ke:Ye>=dt?At=dt:At=Number(Ye),At}},{key:"getShowSizeChanger",value:function(){var De=this.props,Ye=De.showSizeChanger,dt=De.total,Ke=De.totalBoundaryShowSizeChanger;return typeof Ye!="undefined"?Ye:dt>Ke}},{key:"render",value:function(){var De=this.props,Ye=De.prefixCls,dt=De.className,Ke=De.style,At=De.disabled,zt=De.hideOnSinglePage,_t=De.total,Ot=De.locale,Vt=De.showQuickJumper,en=De.showLessItems,on=De.showTitle,fn=De.showTotal,jn=De.simple,er=De.itemRender,tr=De.showPrevNextJumpers,ur=De.jumpPrevIcon,Tr=De.jumpNextIcon,Lr=De.selectComponentClass,Ar=De.selectPrefixCls,Gr=De.pageSizeOptions,Kr=this.state,Mr=Kr.current,fi=Kr.pageSize,Jr=Kr.currentInputValue;if(zt===!0&&_t<=fi)return null;var it=He(void 0,this.state,this.props),bi=[],mi=null,Tn=null,dr=null,ar=null,vr=null,Jn=Vt&&Vt.goButton,zn=en?1:2,$t=Mr-1>0?Mr-1:0,Xt=Mr+1<it?Mr+1:it,Tt=(0,ue.Z)(this.props,{aria:!0,data:!0}),sn=fn&&xt.createElement("li",{className:"".concat(Ye,"-total-text")},fn(_t,[_t===0?0:(Mr-1)*fi+1,Mr*fi>_t?_t:Mr*fi]));if(jn){Jn&&(typeof Jn=="boolean"?vr=xt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ot.jump_to_confirm):vr=xt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Jn),vr=xt.createElement("li",{title:on?"".concat(Ot.jump_to).concat(Mr,"/").concat(it):null,className:"".concat(Ye,"-simple-pager")},vr));var pn=this.renderPrev($t);return xt.createElement("ul",(0,We.Z)({className:xe()(Ye,"".concat(Ye,"-simple"),(0,fe.Z)({},"".concat(Ye,"-disabled"),At),dt),style:Ke,ref:this.paginationNode},Tt),sn,pn?xt.createElement("li",{title:on?Ot.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(Ye,"-prev"),(0,fe.Z)({},"".concat(Ye,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},pn):null,xt.createElement("li",{title:on?"".concat(Mr,"/").concat(it):null,className:"".concat(Ye,"-simple-pager")},xt.createElement("input",{type:"text",value:Jr,disabled:At,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),xt.createElement("span",{className:"".concat(Ye,"-slash")},"/"),it),xt.createElement("li",{title:on?Ot.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:xe()("".concat(Ye,"-next"),(0,fe.Z)({},"".concat(Ye,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Xt)),vr)}if(it<=3+zn*2){var Yt={locale:Ot,rootPrefixCls:Ye,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:on,itemRender:er};it||bi.push(xt.createElement(Me,(0,We.Z)({},Yt,{key:"noPager",page:1,className:"".concat(Ye,"-item-disabled")})));for(var Bt=1;Bt<=it;Bt+=1){var un=Mr===Bt;bi.push(xt.createElement(Me,(0,We.Z)({},Yt,{key:Bt,page:Bt,active:un})))}}else{var bn=en?Ot.prev_3:Ot.prev_5,On=en?Ot.next_3:Ot.next_5,Zn=er(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ur,"prev page")),Gt=er(this.getJumpNextPage(),"jump-next",this.getItemIcon(Tr,"next page"));tr&&(mi=Zn?xt.createElement("li",{title:on?bn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:xe()("".concat(Ye,"-jump-prev"),(0,fe.Z)({},"".concat(Ye,"-jump-prev-custom-icon"),!!ur))},Zn):null,Tn=Gt?xt.createElement("li",{title:on?On:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:xe()("".concat(Ye,"-jump-next"),(0,fe.Z)({},"".concat(Ye,"-jump-next-custom-icon"),!!Tr))},Gt):null),ar=xt.createElement(Me,{locale:Ot,last:!0,rootPrefixCls:Ye,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:it,page:it,active:!1,showTitle:on,itemRender:er}),dr=xt.createElement(Me,{locale:Ot,rootPrefixCls:Ye,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:on,itemRender:er});var An=Math.max(1,Mr-zn),Kn=Math.min(Mr+zn,it);Mr-1<=zn&&(Kn=1+zn*2),it-Mr<=zn&&(An=it-zn*2);for(var rr=An;rr<=Kn;rr+=1){var xn=Mr===rr;bi.push(xt.createElement(Me,{locale:Ot,rootPrefixCls:Ye,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:rr,page:rr,active:xn,showTitle:on,itemRender:er}))}Mr-1>=zn*2&&Mr!==3&&(bi[0]=(0,xt.cloneElement)(bi[0],{className:"".concat(Ye,"-item-after-jump-prev")}),bi.unshift(mi)),it-Mr>=zn*2&&Mr!==it-2&&(bi[bi.length-1]=(0,xt.cloneElement)(bi[bi.length-1],{className:"".concat(Ye,"-item-before-jump-next")}),bi.push(Tn)),An!==1&&bi.unshift(dr),Kn!==it&&bi.push(ar)}var Cn=!this.hasPrev()||!it,tn=!this.hasNext()||!it,gn=this.renderPrev($t),yn=this.renderNext(Xt);return xt.createElement("ul",(0,We.Z)({className:xe()(Ye,dt,(0,fe.Z)({},"".concat(Ye,"-disabled"),At)),style:Ke,ref:this.paginationNode},Tt),sn,gn?xt.createElement("li",{title:on?Ot.prev_page:null,onClick:this.prev,tabIndex:Cn?null:0,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(Ye,"-prev"),(0,fe.Z)({},"".concat(Ye,"-disabled"),Cn)),"aria-disabled":Cn},gn):null,bi,yn?xt.createElement("li",{title:on?Ot.next_page:null,onClick:this.next,tabIndex:tn?null:0,onKeyPress:this.runIfEnterNext,className:xe()("".concat(Ye,"-next"),(0,fe.Z)({},"".concat(Ye,"-disabled"),tn)),"aria-disabled":tn},yn):null,xt.createElement(Ae,{disabled:At,locale:Ot,rootPrefixCls:Ye,selectComponentClass:Lr,selectPrefixCls:Ar,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Mr,pageSize:fi,pageSizeOptions:Gr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Jn}))}}],[{key:"getDerivedStateFromProps",value:function(De,Ye){var dt={};if("current"in De&&(dt.current=De.current,De.current!==Ye.current&&(dt.currentInputValue=dt.current)),"pageSize"in De&&De.pageSize!==Ye.pageSize){var Ke=Ye.current,At=He(De.pageSize,Ye,De);Ke=Ke>At?At:Ke,"current"in De||(dt.current=Ke,dt.currentInputValue=Ke),dt.pageSize=De.pageSize}return dt}}]),Ze}(xt.Component);$e.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:we.Z,style:{},itemRender:Qe,totalBoundaryShowSizeChanger:50};var qe=$e,ut=ze(22075),ct=ze(36355),yt=ze(19716),_e=ze(8628),st=ze(9763),pt=ze(57809);const bt=Ve=>xt.createElement(pt.default,Object.assign({},Ve,{showSearch:!0,size:"small"})),wt=Ve=>xt.createElement(pt.default,Object.assign({},Ve,{showSearch:!0,size:"middle"}));bt.Option=pt.default.Option,wt.Option=pt.default.Option;var mt=ze(9937),vt=ze(17313),St=ze(83116),Nt=ze(37613);const Ft=Ve=>{const{componentCls:tt}=Ve;return{[`${tt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${tt}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${tt}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed"}}},[`&${tt}-disabled`]:{cursor:"not-allowed",[`${tt}-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}}},[`${tt}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${tt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${tt}-simple-pager`]:{color:Ve.colorTextDisabled},[`${tt}-jump-prev, ${tt}-jump-next`]:{[`${tt}-item-link-icon`]:{opacity:0},[`${tt}-item-ellipsis`]:{opacity:1}}},[`&${tt}-simple`]:{[`${tt}-prev, ${tt}-next`]:{[`&${tt}-disabled ${tt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Kt=Ve=>{const{componentCls:tt}=Ve;return{[`&${tt}-mini ${tt}-total-text, &${tt}-mini ${tt}-simple-pager`]:{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`},[`&${tt}-mini ${tt}-item`]:{minWidth:Ve.itemSizeSM,height:Ve.itemSizeSM,margin:0,lineHeight:`${Ve.itemSizeSM-2}px`},[`&${tt}-mini:not(${tt}-disabled) ${tt}-item:not(${tt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ve.colorBgTextHover},"&:active":{backgroundColor:Ve.colorBgTextActive}},[`&${tt}-mini ${tt}-prev, &${tt}-mini ${tt}-next`]:{minWidth:Ve.itemSizeSM,height:Ve.itemSizeSM,margin:0,lineHeight:`${Ve.itemSizeSM}px`},[`&${tt}-mini:not(${tt}-disabled)`]:{[`${tt}-prev, ${tt}-next`]:{[`&:hover ${tt}-item-link`]:{backgroundColor:Ve.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:Ve.colorBgTextActive},[`&${tt}-disabled:hover ${tt}-item-link`]:{backgroundColor:"transparent"}}},[`
&${tt}-mini ${tt}-prev ${tt}-item-link,
&${tt}-mini ${tt}-next ${tt}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`}},[`&${tt}-mini ${tt}-jump-prev, &${tt}-mini ${tt}-jump-next`]:{height:Ve.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ve.itemSizeSM}px`},[`&${tt}-mini ${tt}-options`]:{marginInlineStart:Ve.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ve.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,mt.x0)(Ve)),{width:Ve.paginationMiniQuickJumperInputWidth,height:Ve.controlHeightSM})}}}},Pt=Ve=>{const{componentCls:tt}=Ve;return{[`
&${tt}-simple ${tt}-prev,
&${tt}-simple ${tt}-next
`]:{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`,verticalAlign:"top",[`${tt}-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`}}},[`&${tt}-simple ${tt}-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"}}}}},Et=Ve=>{const{componentCls:tt}=Ve;return{[`${tt}-jump-prev, ${tt}-jump-next`]:{outline:0,[`${tt}-item-container`]:{position:"relative",[`${tt}-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"}},[`${tt}-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":{[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}}},[`
${tt}-prev,
${tt}-jump-prev,
${tt}-jump-next
`]:{marginInlineEnd:Ve.marginXS},[`
${tt}-prev,
${tt}-next,
${tt}-jump-prev,
${tt}-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}`},[`${tt}-prev, ${tt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ve.colorText,cursor:"pointer",userSelect:"none"},[`${tt}-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 ${tt}-item-link`]:{backgroundColor:Ve.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:Ve.colorBgTextActive},[`&${tt}-disabled:hover`]:{[`${tt}-item-link`]:{backgroundColor:"transparent"}}},[`${tt}-slash`]:{marginInlineEnd:Ve.paginationSlashMarginInlineEnd,marginInlineStart:Ve.paginationSlashMarginInlineStart},[`${tt}-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,mt.ik)(Ve)),{width:Ve.controlHeightLG*1.25,height:Ve.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ve.marginXS,marginInlineEnd:Ve.marginXS})}}}},at=Ve=>{const{componentCls:tt}=Ve;return{[`${tt}-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(${tt}-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}}}}},Ct=Ve=>{const{componentCls:tt}=Ve;return{[tt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,vt.Wf)(Ve)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${tt}-total-text`]:{display:"inline-block",height:Ve.itemSize,marginInlineEnd:Ve.marginXS,lineHeight:`${Ve.itemSize-2}px`,verticalAlign:"middle"}}),at(Ve)),Et(Ve)),Pt(Ve)),Kt(Ve)),Ft(Ve)),{[`@media only screen and (max-width: ${Ve.screenLG}px)`]:{[`${tt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ve.screenSM}px)`]:{[`${tt}-options`]:{display:"none"}}}),[`&${Ve.componentCls}-rtl`]:{direction:"rtl"}}},nt=Ve=>{const{componentCls:tt}=Ve;return{[`${tt}${tt}-disabled:not(${tt}-mini)`]:{"&, &:hover":{[`${tt}-item-link`]:{borderColor:Ve.colorBorder}},"&:focus-visible":{[`${tt}-item-link`]:{borderColor:Ve.colorBorder}},[`${tt}-item, ${tt}-item-link`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,[`&:hover:not(${tt}-item-active)`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,a:{color:Ve.colorTextDisabled}},[`&${tt}-item-active`]:{backgroundColor:Ve.itemActiveBgDisabled}},[`${tt}-prev, ${tt}-next`]:{"&:hover button":{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,color:Ve.colorTextDisabled},[`${tt}-item-link`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder}}},[`${tt}:not(${tt}-mini)`]:{[`${tt}-prev, ${tt}-next`]:{"&:hover button":{borderColor:Ve.colorPrimaryHover,backgroundColor:Ve.itemBg},[`${tt}-item-link`]:{backgroundColor:Ve.itemLinkBg,borderColor:Ve.colorBorder},[`&:hover ${tt}-item-link`]:{borderColor:Ve.colorPrimary,backgroundColor:Ve.itemBg,color:Ve.colorPrimary},[`&${tt}-disabled`]:{[`${tt}-item-link`]:{borderColor:Ve.colorBorder,color:Ve.colorTextDisabled}}},[`${tt}-item`]:{backgroundColor:Ve.itemBg,border:`${Ve.lineWidth}px ${Ve.lineType} ${Ve.colorBorder}`,[`&:hover:not(${tt}-item-active)`]:{borderColor:Ve.colorPrimary,backgroundColor:Ve.itemBg,a:{color:Ve.colorPrimary}},"&-active":{borderColor:Ve.colorPrimary}}}}},ht=Ve=>{const{componentCls:tt}=Ve;return{[`${tt}:not(${tt}-disabled)`]:{[`${tt}-item`]:Object.assign({},(0,vt.Qy)(Ve)),[`${tt}-jump-prev, ${tt}-jump-next`]:{"&:focus-visible":Object.assign({[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}},(0,vt.oN)(Ve))},[`${tt}-prev, ${tt}-next`]:{[`&:focus-visible ${tt}-item-link`]:Object.assign({},(0,vt.oN)(Ve))}}}};var Mt=(0,St.Z)("Pagination",Ve=>{const tt=(0,Nt.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,mt.e5)(Ve),(0,mt.TM)(Ve));return[Ct(tt),ht(tt),Ve.wireframe&&nt(tt)]},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})),gt=function(Ve,tt){var Ze={};for(var je in Ve)Object.prototype.hasOwnProperty.call(Ve,je)&&tt.indexOf(je)<0&&(Ze[je]=Ve[je]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,je=Object.getOwnPropertySymbols(Ve);De<je.length;De++)tt.indexOf(je[De])<0&&Object.prototype.propertyIsEnumerable.call(Ve,je[De])&&(Ze[je[De]]=Ve[je[De]]);return Ze},Je=Ve=>{const{prefixCls:tt,selectPrefixCls:Ze,className:je,rootClassName:De,style:Ye,size:dt,locale:Ke,selectComponentClass:At,responsive:zt,showSizeChanger:_t}=Ve,Ot=gt(Ve,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Vt}=(0,_e.Z)(zt),{getPrefixCls:en,direction:on,pagination:fn={}}=xt.useContext(ct.E_),jn=en("pagination",tt),[er,tr]=Mt(jn),ur=_t!=null?_t:fn.showSizeChanger,Tr=xt.useMemo(()=>{const it=xt.createElement("span",{className:`${jn}-item-ellipsis`},"\u2022\u2022\u2022"),bi=xt.createElement("button",{className:`${jn}-item-link`,type:"button",tabIndex:-1},on==="rtl"?xt.createElement(be.Z,null):xt.createElement(ye.Z,null)),mi=xt.createElement("button",{className:`${jn}-item-link`,type:"button",tabIndex:-1},on==="rtl"?xt.createElement(ye.Z,null):xt.createElement(be.Z,null)),Tn=xt.createElement("a",{className:`${jn}-item-link`},xt.createElement("div",{className:`${jn}-item-container`},on==="rtl"?xt.createElement(Ee.Z,{className:`${jn}-item-link-icon`}):xt.createElement(Ce,{className:`${jn}-item-link-icon`}),it)),dr=xt.createElement("a",{className:`${jn}-item-link`},xt.createElement("div",{className:`${jn}-item-container`},on==="rtl"?xt.createElement(Ce,{className:`${jn}-item-link-icon`}):xt.createElement(Ee.Z,{className:`${jn}-item-link-icon`}),it));return{prevIcon:bi,nextIcon:mi,jumpPrevIcon:Tn,jumpNextIcon:dr}},[on,jn]),[Lr]=(0,st.Z)("Pagination",ut.Z),Ar=Object.assign(Object.assign({},Lr),Ke),Gr=(0,yt.Z)(dt),Kr=Gr==="small"||!!(Vt&&!Gr&&zt),Mr=en("select",Ze),fi=xe()({[`${jn}-mini`]:Kr,[`${jn}-rtl`]:on==="rtl"},fn==null?void 0:fn.className,je,De,tr),Jr=Object.assign(Object.assign({},fn==null?void 0:fn.style),Ye);return er(xt.createElement(qe,Object.assign({},Tr,Ot,{style:Jr,prefixCls:jn,selectPrefixCls:Mr,className:fi,selectComponentClass:At||(Kr?bt:wt),locale:Ar,showSizeChanger:ur})))},Xe=Je},93948:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return _t}});var We=ze(59301),xt=ze(29679),oe=ze(40001),Ue=ze(19248),Oe=ze(99267),ve=ze(92310),ce=ze.n(ve),Ce=ze(2738),Ee=ze(36355),ye=ze(72308),be=ze(77321),me=ze(74416),xe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},fe=function(){var Vt=(0,We.useRef)([]),en=(0,We.useRef)(null);return(0,We.useEffect)(function(){var on=Date.now(),fn=!1;Vt.current.forEach(function(jn){if(jn){fn=!0;var er=jn.style;er.transitionDuration=".3s, .3s, .3s, .06s",en.current&&on-en.current<100&&(er.transitionDuration="0s, 0s")}}),fn&&(en.current=Date.now())}),Vt.current},z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Vt){var en=(0,be.Z)((0,be.Z)({},xe),Vt),on=en.className,fn=en.percent,jn=en.prefixCls,er=en.strokeColor,tr=en.strokeLinecap,ur=en.strokeWidth,Tr=en.style,Lr=en.trailColor,Ar=en.trailWidth,Gr=en.transition,Kr=(0,me.Z)(en,z);delete Kr.gapPosition;var Mr=Array.isArray(fn)?fn:[fn],fi=Array.isArray(er)?er:[er],Jr=fe(),it=ur/2,bi=100-ur/2,mi="M ".concat(tr==="round"?it:0,",").concat(it,`
L `).concat(tr==="round"?bi:100,",").concat(it),Tn="0 0 100 ".concat(ur),dr=0;return We.createElement("svg",(0,ye.Z)({className:ce()("".concat(jn,"-line"),on),viewBox:Tn,preserveAspectRatio:"none",style:Tr},Kr),We.createElement("path",{className:"".concat(jn,"-line-trail"),d:mi,strokeLinecap:tr,stroke:Lr,strokeWidth:Ar||ur,fillOpacity:"0"}),Mr.map(function(ar,vr){var Jn=1;switch(tr){case"round":Jn=1-ur/100;break;case"square":Jn=1-ur/2/100;break;default:Jn=1;break}var zn={strokeDasharray:"".concat(ar*Jn,"px, 100px"),strokeDashoffset:"-".concat(dr,"px"),transition:Gr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},$t=fi[vr]||fi[fi.length-1];return dr+=ar,We.createElement("path",{key:vr,className:"".concat(jn,"-line-path"),d:mi,strokeLinecap:tr,stroke:$t,strokeWidth:ur,fillOpacity:"0",ref:function(Tt){Jr[vr]=Tt},style:zn})}))},ae=ee,re=ze(62853),le=ze(52487),ue=ze(47273),pe=0,Pe=(0,ue.Z)();function we(){var Ot;return Pe?(Ot=pe,pe+=1):Ot="TEST_OR_SSR",Ot}var Ne=function(Ot){var Vt=We.useState(),en=(0,le.Z)(Vt,2),on=en[0],fn=en[1];return We.useEffect(function(){fn("rc_progress_".concat(we()))},[]),Ot||on},Ae=function(Vt){var en=Vt.bg,on=Vt.children;return We.createElement("div",{style:{width:"100%",height:"100%",background:en}},on)};function Te(Ot,Vt){return Object.keys(Ot).map(function(en){var on=parseFloat(en),fn="".concat(Math.floor(on*Vt),"%");return"".concat(Ot[en]," ").concat(fn)})}var Me=We.forwardRef(function(Ot,Vt){var en=Ot.prefixCls,on=Ot.color,fn=Ot.gradientId,jn=Ot.radius,er=Ot.style,tr=Ot.ptg,ur=Ot.strokeLinecap,Tr=Ot.strokeWidth,Lr=Ot.size,Ar=Ot.gapDegree,Gr=on&&(0,re.Z)(on)==="object",Kr=Gr?"#FFF":void 0,Mr=Lr/2,fi=We.createElement("circle",{className:"".concat(en,"-circle-path"),r:jn,cx:Mr,cy:Mr,stroke:Kr,strokeLinecap:ur,strokeWidth:Tr,opacity:tr===0?0:1,style:er,ref:Vt});if(!Gr)return fi;var Jr="".concat(fn,"-conic"),it=Ar?"".concat(180+Ar/2,"deg"):"0deg",bi=Te(on,(360-Ar)/360),mi=Te(on,1),Tn="conic-gradient(from ".concat(it,", ").concat(bi.join(", "),")"),dr="linear-gradient(to ".concat(Ar?"bottom":"top",", ").concat(mi.join(", "),")");return We.createElement(We.Fragment,null,We.createElement("mask",{id:Jr},fi),We.createElement("foreignObject",{x:0,y:0,width:Lr,height:Lr,mask:"url(#".concat(Jr,")")},We.createElement(Ae,{bg:dr},We.createElement(Ae,{bg:Tn}))))}),Be=Me,Re=100,Qe=function(Vt,en,on,fn,jn,er,tr,ur,Tr,Lr){var Ar=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Gr=on/100*360*((360-er)/360),Kr=er===0?0:{bottom:0,top:180,left:90,right:-90}[tr],Mr=(100-fn)/100*en;Tr==="round"&&fn!==100&&(Mr+=Lr/2,Mr>=en&&(Mr=en-.01));var fi=Re/2;return{stroke:typeof ur=="string"?ur:void 0,strokeDasharray:"".concat(en,"px ").concat(Vt),strokeDashoffset:Mr+Ar,transform:"rotate(".concat(jn+Gr+Kr,"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}},He=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function $e(Ot){var Vt=Ot!=null?Ot:[];return Array.isArray(Vt)?Vt:[Vt]}var qe=function(Vt){var en=(0,be.Z)((0,be.Z)({},xe),Vt),on=en.id,fn=en.prefixCls,jn=en.steps,er=en.strokeWidth,tr=en.trailWidth,ur=en.gapDegree,Tr=ur===void 0?0:ur,Lr=en.gapPosition,Ar=en.trailColor,Gr=en.strokeLinecap,Kr=en.style,Mr=en.className,fi=en.strokeColor,Jr=en.percent,it=(0,me.Z)(en,He),bi=Re/2,mi=Ne(on),Tn="".concat(mi,"-gradient"),dr=bi-er/2,ar=Math.PI*2*dr,vr=Tr>0?90+Tr/2:-90,Jn=ar*((360-Tr)/360),zn=(0,re.Z)(jn)==="object"?jn:{count:jn,space:2},$t=zn.count,Xt=zn.space,Tt=$e(Jr),sn=$e(fi),pn=sn.find(function(Gt){return Gt&&(0,re.Z)(Gt)==="object"}),Yt=pn&&(0,re.Z)(pn)==="object",Bt=Yt?"butt":Gr,un=Qe(ar,Jn,0,100,vr,Tr,Lr,Ar,Bt,er),bn=fe(),On=function(){var An=0;return Tt.map(function(Kn,rr){var xn=sn[rr]||sn[sn.length-1],Cn=Qe(ar,Jn,An,Kn,vr,Tr,Lr,xn,Bt,er);return An+=Kn,We.createElement(Be,{key:rr,color:xn,ptg:Kn,radius:dr,prefixCls:fn,gradientId:Tn,style:Cn,strokeLinecap:Bt,strokeWidth:er,gapDegree:Tr,ref:function(gn){bn[rr]=gn},size:Re})}).reverse()},Zn=function(){var An=Math.round($t*(Tt[0]/100)),Kn=100/$t,rr=0;return new Array($t).fill(null).map(function(xn,Cn){var tn=Cn<=An-1?sn[0]:Ar,gn=tn&&(0,re.Z)(tn)==="object"?"url(#".concat(Tn,")"):void 0,yn=Qe(ar,Jn,rr,Kn,vr,Tr,Lr,tn,"butt",er,Xt);return rr+=(Jn-yn.strokeDashoffset+Xt)*100/Jn,We.createElement("circle",{key:Cn,className:"".concat(fn,"-circle-path"),r:dr,cx:bi,cy:bi,stroke:gn,strokeWidth:er,opacity:1,style:yn,ref:function(Ln){bn[Cn]=Ln}})})};return We.createElement("svg",(0,ye.Z)({className:ce()("".concat(fn,"-circle"),Mr),viewBox:"0 0 ".concat(Re," ").concat(Re),style:Kr,id:on,role:"presentation"},it),!$t&&We.createElement("circle",{className:"".concat(fn,"-circle-trail"),r:dr,cx:bi,cy:bi,stroke:Ar,strokeLinecap:Bt,strokeWidth:tr||er,style:un}),$t?Zn():On())},ut=qe,ct={Line:ae,Circle:ut},yt=ze(6848),_e=ze(93398);function st(Ot){return!Ot||Ot<0?0:Ot>100?100:Ot}function pt(Ot){let{success:Vt,successPercent:en}=Ot,on=en;return Vt&&"progress"in Vt&&(on=Vt.progress),Vt&&"percent"in Vt&&(on=Vt.percent),on}const bt=Ot=>{let{percent:Vt,success:en,successPercent:on}=Ot;const fn=st(pt({success:en,successPercent:on}));return[fn,st(st(Vt)-fn)]},wt=Ot=>{let{success:Vt={},strokeColor:en}=Ot;const{strokeColor:on}=Vt;return[on||_e.presetPrimaryColors.green,en||null]},mt=(Ot,Vt,en)=>{var on,fn,jn,er;let tr=-1,ur=-1;if(Vt==="step"){const Tr=en.steps,Lr=en.strokeWidth;typeof Ot=="string"||typeof Ot=="undefined"?(tr=Ot==="small"?2:14,ur=Lr!=null?Lr:8):typeof Ot=="number"?[tr,ur]=[Ot,Ot]:[tr=14,ur=8]=Ot,tr*=Tr}else if(Vt==="line"){const Tr=en==null?void 0:en.strokeWidth;typeof Ot=="string"||typeof Ot=="undefined"?ur=Tr||(Ot==="small"?6:8):typeof Ot=="number"?[tr,ur]=[Ot,Ot]:[tr=-1,ur=8]=Ot}else(Vt==="circle"||Vt==="dashboard")&&(typeof Ot=="string"||typeof Ot=="undefined"?[tr,ur]=Ot==="small"?[60,60]:[120,120]:typeof Ot=="number"?[tr,ur]=[Ot,Ot]:(tr=(fn=(on=Ot[0])!==null&&on!==void 0?on:Ot[1])!==null&&fn!==void 0?fn:120,ur=(er=(jn=Ot[0])!==null&&jn!==void 0?jn:Ot[1])!==null&&er!==void 0?er:120));return[tr,ur]},vt=3,St=Ot=>vt/Ot*100;var Ft=Ot=>{const{prefixCls:Vt,trailColor:en=null,strokeLinecap:on="round",gapPosition:fn,gapDegree:jn,width:er=120,type:tr,children:ur,success:Tr,size:Lr=er}=Ot,[Ar,Gr]=mt(Lr,"circle");let{strokeWidth:Kr}=Ot;Kr===void 0&&(Kr=Math.max(St(Ar),6));const Mr={width:Ar,height:Gr,fontSize:Ar*.15+6},fi=We.useMemo(()=>{if(jn||jn===0)return jn;if(tr==="dashboard")return 75},[jn,tr]),Jr=fn||tr==="dashboard"&&"bottom"||void 0,it=Object.prototype.toString.call(Ot.strokeColor)==="[object Object]",bi=wt({success:Tr,strokeColor:Ot.strokeColor}),mi=ce()(`${Vt}-inner`,{[`${Vt}-circle-gradient`]:it}),Tn=We.createElement(ut,{percent:bt(Ot),strokeWidth:Kr,trailWidth:Kr,strokeColor:bi,strokeLinecap:on,trailColor:en,prefixCls:Vt,gapDegree:fi,gapPosition:Jr});return We.createElement("div",{className:mi,style:Mr},Ar<=20?We.createElement(yt.Z,{title:ur},We.createElement("span",null,Tn)):We.createElement(We.Fragment,null,Tn,ur))},Kt=function(Ot,Vt){var en={};for(var on in Ot)Object.prototype.hasOwnProperty.call(Ot,on)&&Vt.indexOf(on)<0&&(en[on]=Ot[on]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,on=Object.getOwnPropertySymbols(Ot);fn<on.length;fn++)Vt.indexOf(on[fn])<0&&Object.prototype.propertyIsEnumerable.call(Ot,on[fn])&&(en[on[fn]]=Ot[on[fn]]);return en};const Pt=Ot=>{let Vt=[];return Object.keys(Ot).forEach(en=>{const on=parseFloat(en.replace(/%/g,""));isNaN(on)||Vt.push({key:on,value:Ot[en]})}),Vt=Vt.sort((en,on)=>en.key-on.key),Vt.map(en=>{let{key:on,value:fn}=en;return`${fn} ${on}%`}).join(", ")},Et=(Ot,Vt)=>{const{from:en=_e.presetPrimaryColors.blue,to:on=_e.presetPrimaryColors.blue,direction:fn=Vt==="rtl"?"to left":"to right"}=Ot,jn=Kt(Ot,["from","to","direction"]);if(Object.keys(jn).length!==0){const er=Pt(jn);return{backgroundImage:`linear-gradient(${fn}, ${er})`}}return{backgroundImage:`linear-gradient(${fn}, ${en}, ${on})`}};var Ct=Ot=>{const{prefixCls:Vt,direction:en,percent:on,size:fn,strokeWidth:jn,strokeColor:er,strokeLinecap:tr="round",children:ur,trailColor:Tr=null,success:Lr}=Ot,Ar=er&&typeof er!="string"?Et(er,en):{backgroundColor:er},Gr=tr==="square"||tr==="butt"?0:void 0,Kr={backgroundColor:Tr||void 0,borderRadius:Gr},Mr=fn!=null?fn:[-1,jn||(fn==="small"?6:8)],[fi,Jr]=mt(Mr,"line",{strokeWidth:jn}),it=Object.assign({width:`${st(on)}%`,height:Jr,borderRadius:Gr},Ar),bi=pt(Ot),mi={width:`${st(bi)}%`,height:Jr,borderRadius:Gr,backgroundColor:Lr==null?void 0:Lr.strokeColor},Tn={width:fi<0?"100%":fi,height:Jr};return We.createElement(We.Fragment,null,We.createElement("div",{className:`${Vt}-outer`,style:Tn},We.createElement("div",{className:`${Vt}-inner`,style:Kr},We.createElement("div",{className:`${Vt}-bg`,style:it}),bi!==void 0?We.createElement("div",{className:`${Vt}-success-bg`,style:mi}):null)),ur)},ht=Ot=>{const{size:Vt,steps:en,percent:on=0,strokeWidth:fn=8,strokeColor:jn,trailColor:er=null,prefixCls:tr,children:ur}=Ot,Tr=Math.round(en*(on/100)),Lr=Vt==="small"?2:14,Ar=Vt!=null?Vt:[Lr,fn],[Gr,Kr]=mt(Ar,"step",{steps:en,strokeWidth:fn}),Mr=Gr/en,fi=new Array(en);for(let Jr=0;Jr<en;Jr++){const it=Array.isArray(jn)?jn[Jr]:jn;fi[Jr]=We.createElement("div",{key:Jr,className:ce()(`${tr}-steps-item`,{[`${tr}-steps-item-active`]:Jr<=Tr-1}),style:{backgroundColor:Jr<=Tr-1?it:er,width:Mr,height:Kr}})}return We.createElement("div",{className:`${tr}-steps-outer`},fi,ur)},Mt=ze(93083),gt=ze(17313),rt=ze(83116),Je=ze(37613);const Xe=Ot=>{const Vt=Ot?"100%":"-100%";return new Mt.Keyframes(`antProgress${Ot?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Vt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Vt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ve=Ot=>{const{componentCls:Vt,iconCls:en}=Ot;return{[Vt]:Object.assign(Object.assign({},(0,gt.Wf)(Ot)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ot.fontSize,marginInlineEnd:Ot.marginXS,marginBottom:Ot.marginXS},[`${Vt}-outer`]:{display:"inline-block",width:"100%"},[`&${Vt}-show-info`]:{[`${Vt}-outer`]:{marginInlineEnd:`calc(-2em - ${Ot.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Ot.paddingXS}px)`}},[`${Vt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Ot.remainingColor,borderRadius:Ot.lineBorderRadius},[`${Vt}-inner:not(${Vt}-circle-gradient)`]:{[`${Vt}-circle-path`]:{stroke:Ot.defaultColor}},[`${Vt}-success-bg, ${Vt}-bg`]:{position:"relative",backgroundColor:Ot.defaultColor,borderRadius:Ot.lineBorderRadius,transition:`all ${Ot.motionDurationSlow} ${Ot.motionEaseInOutCirc}`},[`${Vt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ot.colorSuccess},[`${Vt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Ot.marginXS,color:Ot.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[en]:{fontSize:Ot.fontSize}},[`&${Vt}-status-active`]:{[`${Vt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ot.colorBgContainer,borderRadius:Ot.lineBorderRadius,opacity:0,animationName:Xe(),animationDuration:Ot.progressActiveMotionDuration,animationTimingFunction:Ot.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Vt}-rtl${Vt}-status-active`]:{[`${Vt}-bg::before`]:{animationName:Xe(!0)}},[`&${Vt}-status-exception`]:{[`${Vt}-bg`]:{backgroundColor:Ot.colorError},[`${Vt}-text`]:{color:Ot.colorError}},[`&${Vt}-status-exception ${Vt}-inner:not(${Vt}-circle-gradient)`]:{[`${Vt}-circle-path`]:{stroke:Ot.colorError}},[`&${Vt}-status-success`]:{[`${Vt}-bg`]:{backgroundColor:Ot.colorSuccess},[`${Vt}-text`]:{color:Ot.colorSuccess}},[`&${Vt}-status-success ${Vt}-inner:not(${Vt}-circle-gradient)`]:{[`${Vt}-circle-path`]:{stroke:Ot.colorSuccess}}})}},tt=Ot=>{const{componentCls:Vt,iconCls:en}=Ot;return{[Vt]:{[`${Vt}-circle-trail`]:{stroke:Ot.remainingColor},[`&${Vt}-circle ${Vt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Vt}-circle ${Vt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ot.circleTextColor,fontSize:Ot.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[en]:{fontSize:`${Ot.fontSize/Ot.fontSizeSM}em`}},[`${Vt}-circle&-status-exception`]:{[`${Vt}-text`]:{color:Ot.colorError}},[`${Vt}-circle&-status-success`]:{[`${Vt}-text`]:{color:Ot.colorSuccess}}},[`${Vt}-inline-circle`]:{lineHeight:1,[`${Vt}-inner`]:{verticalAlign:"bottom"}}}},Ze=Ot=>{const{componentCls:Vt}=Ot;return{[Vt]:{[`${Vt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ot.progressStepMinWidth,marginInlineEnd:Ot.progressStepMarginInlineEnd,backgroundColor:Ot.remainingColor,transition:`all ${Ot.motionDurationSlow}`,"&-active":{backgroundColor:Ot.defaultColor}}}}}},je=Ot=>{const{componentCls:Vt,iconCls:en}=Ot;return{[Vt]:{[`${Vt}-small&-line, ${Vt}-small&-line ${Vt}-text ${en}`]:{fontSize:Ot.fontSizeSM}}}};var De=(0,rt.Z)("Progress",Ot=>{const Vt=Ot.marginXXS/2,en=(0,Je.TS)(Ot,{progressStepMarginInlineEnd:Vt,progressStepMinWidth:Vt,progressActiveMotionDuration:"2.4s"});return[Ve(en),tt(en),Ze(en),je(en)]},Ot=>({circleTextColor:Ot.colorText,defaultColor:Ot.colorInfo,remainingColor:Ot.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ye=function(Ot,Vt){var en={};for(var on in Ot)Object.prototype.hasOwnProperty.call(Ot,on)&&Vt.indexOf(on)<0&&(en[on]=Ot[on]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,on=Object.getOwnPropertySymbols(Ot);fn<on.length;fn++)Vt.indexOf(on[fn])<0&&Object.prototype.propertyIsEnumerable.call(Ot,on[fn])&&(en[on[fn]]=Ot[on[fn]]);return en};const dt=null,Ke=["normal","exception","active","success"];var zt=We.forwardRef((Ot,Vt)=>{const{prefixCls:en,className:on,rootClassName:fn,steps:jn,strokeColor:er,percent:tr=0,size:ur="default",showInfo:Tr=!0,type:Lr="line",status:Ar,format:Gr,style:Kr}=Ot,Mr=Ye(Ot,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),fi=We.useMemo(()=>{var Tt,sn;const pn=pt(Ot);return parseInt(pn!==void 0?(Tt=pn!=null?pn:0)===null||Tt===void 0?void 0:Tt.toString():(sn=tr!=null?tr:0)===null||sn===void 0?void 0:sn.toString(),10)},[tr,Ot.success,Ot.successPercent]),Jr=We.useMemo(()=>!Ke.includes(Ar)&&fi>=100?"success":Ar||"normal",[Ar,fi]),{getPrefixCls:it,direction:bi,progress:mi}=We.useContext(Ee.E_),Tn=it("progress",en),[dr,ar]=De(Tn),vr=We.useMemo(()=>{if(!Tr)return null;const Tt=pt(Ot);let sn;const pn=Gr||(Bt=>`${Bt}%`),Yt=Lr==="line";return Gr||Jr!=="exception"&&Jr!=="success"?sn=pn(st(tr),st(Tt)):Jr==="exception"?sn=Yt?We.createElement(Ue.Z,null):We.createElement(Oe.Z,null):Jr==="success"&&(sn=Yt?We.createElement(xt.Z,null):We.createElement(oe.Z,null)),We.createElement("span",{className:`${Tn}-text`,title:typeof sn=="string"?sn:void 0},sn)},[Tr,tr,fi,Jr,Lr,Tn,Gr]),Jn=Array.isArray(er)?er[0]:er,zn=typeof er=="string"||Array.isArray(er)?er:void 0;let $t;Lr==="line"?$t=jn?We.createElement(ht,Object.assign({},Ot,{strokeColor:zn,prefixCls:Tn,steps:jn}),vr):We.createElement(Ct,Object.assign({},Ot,{strokeColor:Jn,prefixCls:Tn,direction:bi}),vr):(Lr==="circle"||Lr==="dashboard")&&($t=We.createElement(Ft,Object.assign({},Ot,{strokeColor:Jn,prefixCls:Tn,progressStatus:Jr}),vr));const Xt=ce()(Tn,`${Tn}-status-${Jr}`,`${Tn}-${Lr==="dashboard"&&"circle"||jn&&"steps"||Lr}`,{[`${Tn}-inline-circle`]:Lr==="circle"&&mt(ur,"circle")[0]<=20,[`${Tn}-show-info`]:Tr,[`${Tn}-${ur}`]:typeof ur=="string",[`${Tn}-rtl`]:bi==="rtl"},mi==null?void 0:mi.className,on,fn,ar);return dr(We.createElement("div",Object.assign({ref:Vt,style:Object.assign(Object.assign({},mi==null?void 0:mi.style),Kr),className:Xt,role:"progressbar","aria-valuenow":fi},(0,Ce.Z)(Mr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),$t))}),_t=zt},13570:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return st}});var We=ze(72308),xt=ze(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Ue=oe,Oe=ze(7657),ve=function(bt,wt){return xt.createElement(Oe.Z,(0,We.Z)({},bt,{ref:wt,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce,Ee=ze(92310),ye=ze.n(Ee),be=ze(49618),me=ze(52487),xe=ze(74416),fe=ze(18929),z=ze(10228),ee=ze(26112);function ae(pt,bt){var wt=pt.disabled,mt=pt.prefixCls,vt=pt.character,St=pt.characterRender,Nt=pt.index,Ft=pt.count,Kt=pt.value,Pt=pt.allowHalf,Et=pt.focused,at=pt.onHover,Ct=pt.onClick,nt=function(tt){at(tt,Nt)},ht=function(tt){Ct(tt,Nt)},Mt=function(tt){tt.keyCode===z.Z.ENTER&&Ct(tt,Nt)},gt=Nt+1,rt=new Set([mt]);Kt===0&&Nt===0&&Et?rt.add("".concat(mt,"-focused")):Pt&&Kt+.5>=gt&&Kt<gt?(rt.add("".concat(mt,"-half")),rt.add("".concat(mt,"-active")),Et&&rt.add("".concat(mt,"-focused"))):(gt<=Kt?rt.add("".concat(mt,"-full")):rt.add("".concat(mt,"-zero")),gt===Kt&&Et&&rt.add("".concat(mt,"-focused")));var Je=typeof vt=="function"?vt(pt):vt,Xe=xt.createElement("li",{className:ye()(Array.from(rt)),ref:bt},xt.createElement("div",{onClick:wt?null:ht,onKeyDown:wt?null:Mt,onMouseMove:wt?null:nt,role:"radio","aria-checked":Kt>Nt?"true":"false","aria-posinset":Nt+1,"aria-setsize":Ft,tabIndex:wt?-1:0},xt.createElement("div",{className:"".concat(mt,"-first")},Je),xt.createElement("div",{className:"".concat(mt,"-second")},Je)));return St&&(Xe=St(Xe,pt)),Xe}var re=xt.forwardRef(ae);function le(){var pt=xt.useRef({});function bt(mt){return pt.current[mt]}function wt(mt){return function(vt){pt.current[mt]=vt}}return[bt,wt]}function ue(pt){var bt=pt.pageXOffset,wt="scrollLeft";if(typeof bt!="number"){var mt=pt.document;bt=mt.documentElement[wt],typeof bt!="number"&&(bt=mt.body[wt])}return bt}function pe(pt){var bt,wt,mt=pt.ownerDocument,vt=mt.body,St=mt&&mt.documentElement,Nt=pt.getBoundingClientRect();return bt=Nt.left,wt=Nt.top,bt-=St.clientLeft||vt.clientLeft||0,wt-=St.clientTop||vt.clientTop||0,{left:bt,top:wt}}function Pe(pt){var bt=pe(pt),wt=pt.ownerDocument,mt=wt.defaultView||wt.parentWindow;return bt.left+=ue(mt),bt.left}var we=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ne(pt,bt){var wt,mt=pt.prefixCls,vt=mt===void 0?"rc-rate":mt,St=pt.className,Nt=pt.defaultValue,Ft=pt.value,Kt=pt.count,Pt=Kt===void 0?5:Kt,Et=pt.allowHalf,at=Et===void 0?!1:Et,Ct=pt.allowClear,nt=Ct===void 0?!0:Ct,ht=pt.character,Mt=ht===void 0?"\u2605":ht,gt=pt.characterRender,rt=pt.disabled,Je=pt.direction,Xe=Je===void 0?"ltr":Je,Ve=pt.tabIndex,tt=Ve===void 0?0:Ve,Ze=pt.autoFocus,je=pt.onHoverChange,De=pt.onChange,Ye=pt.onFocus,dt=pt.onBlur,Ke=pt.onKeyDown,At=pt.onMouseLeave,zt=(0,xe.Z)(pt,we),_t=le(),Ot=(0,me.Z)(_t,2),Vt=Ot[0],en=Ot[1],on=xt.useRef(null),fn=function(){if(!rt){var Bt;(Bt=on.current)===null||Bt===void 0||Bt.focus()}};xt.useImperativeHandle(bt,function(){return{focus:fn,blur:function(){if(!rt){var Bt;(Bt=on.current)===null||Bt===void 0||Bt.blur()}}}});var jn=(0,fe.Z)(Nt||0,{value:Ft}),er=(0,me.Z)(jn,2),tr=er[0],ur=er[1],Tr=(0,fe.Z)(null),Lr=(0,me.Z)(Tr,2),Ar=Lr[0],Gr=Lr[1],Kr=function(Bt,un){var bn=Xe==="rtl",On=Bt+1;if(at){var Zn=Vt(Bt),Gt=Pe(Zn),An=Zn.clientWidth;(bn&&un-Gt>An/2||!bn&&un-Gt<An/2)&&(On-=.5)}return On},Mr=function(Bt){ur(Bt),De==null||De(Bt)},fi=xt.useState(!1),Jr=(0,me.Z)(fi,2),it=Jr[0],bi=Jr[1],mi=function(){bi(!0),Ye==null||Ye()},Tn=function(){bi(!1),dt==null||dt()},dr=xt.useState(null),ar=(0,me.Z)(dr,2),vr=ar[0],Jn=ar[1],zn=function(Bt,un){var bn=Kr(un,Bt.pageX);bn!==Ar&&(Jn(bn),Gr(null)),je==null||je(bn)},$t=function(Bt){rt||(Jn(null),Gr(null),je==null||je(void 0)),Bt&&(At==null||At(Bt))},Xt=function(Bt,un){var bn=Kr(un,Bt.pageX),On=!1;nt&&(On=bn===tr),$t(),Mr(On?0:bn),Gr(On?bn:null)},Tt=function(Bt){var un=Bt.keyCode,bn=Xe==="rtl",On=tr;un===z.Z.RIGHT&&On<Pt&&!bn?(at?On+=.5:On+=1,Mr(On),Bt.preventDefault()):un===z.Z.LEFT&&On>0&&!bn||un===z.Z.RIGHT&&On>0&&bn?(at?On-=.5:On-=1,Mr(On),Bt.preventDefault()):un===z.Z.LEFT&&On<Pt&&bn&&(at?On+=.5:On+=1,Mr(On),Bt.preventDefault()),Ke==null||Ke(Bt)};xt.useEffect(function(){Ze&&!rt&&fn()},[]);var sn=new Array(Pt).fill(0).map(function(Yt,Bt){return xt.createElement(re,{ref:en(Bt),index:Bt,count:Pt,disabled:rt,prefixCls:"".concat(vt,"-star"),allowHalf:at,value:vr===null?tr:vr,onClick:Xt,onHover:zn,key:Yt||Bt,character:Mt,characterRender:gt,focused:it})}),pn=ye()(vt,St,(wt={},(0,be.Z)(wt,"".concat(vt,"-disabled"),rt),(0,be.Z)(wt,"".concat(vt,"-rtl"),Xe==="rtl"),wt));return xt.createElement("ul",(0,We.Z)({className:pn,onMouseLeave:$t,tabIndex:rt?-1:tt,onFocus:rt?null:mi,onBlur:rt?null:Tn,onKeyDown:rt?null:Tt,ref:on,role:"radiogroup"},(0,ee.Z)(zt,{aria:!0,data:!0,attr:!0})),sn)}var Ae=xt.forwardRef(Ne),Te=Ae,Me=ze(36355),Be=ze(6848),Re=ze(17313),Qe=ze(83116),He=ze(37613);const $e=pt=>{const{componentCls:bt}=pt;return{[`${bt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:pt.marginXS},"> div":{transition:`all ${pt.motionDurationMid}, outline 0s`,"&:hover":{transform:pt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${pt.lineWidth}px dashed ${pt.starColor}`,transform:pt.starHoverScale}},"&-first, &-second":{color:pt.starBg,transition:`all ${pt.motionDurationMid}`,userSelect:"none",[pt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${bt}-star-first, &-half ${bt}-star-second`]:{opacity:1},[`&-half ${bt}-star-first, &-full ${bt}-star-second`]:{color:"inherit"}}}},qe=pt=>({[`&-rtl${pt.componentCls}`]:{direction:"rtl"}}),ut=pt=>{const{componentCls:bt}=pt;return{[bt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(pt)),{display:"inline-block",margin:0,padding:0,color:pt.starColor,fontSize:pt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${bt} ${bt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),$e(pt)),{[`+ ${bt}-text`]:{display:"inline-block",marginInlineStart:pt.marginXS,fontSize:pt.fontSize}}),qe(pt))}};var ct=(0,Qe.Z)("Rate",pt=>{const bt=(0,He.TS)(pt,{});return[ut(bt)]},pt=>({starColor:pt.yellow6,starSize:pt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:pt.colorFillContent})),yt=function(pt,bt){var wt={};for(var mt in pt)Object.prototype.hasOwnProperty.call(pt,mt)&&bt.indexOf(mt)<0&&(wt[mt]=pt[mt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,mt=Object.getOwnPropertySymbols(pt);vt<mt.length;vt++)bt.indexOf(mt[vt])<0&&Object.prototype.propertyIsEnumerable.call(pt,mt[vt])&&(wt[mt[vt]]=pt[mt[vt]]);return wt},st=xt.forwardRef((pt,bt)=>{const{prefixCls:wt,className:mt,rootClassName:vt,style:St,tooltips:Nt,character:Ft=xt.createElement(Ce,null)}=pt,Kt=yt(pt,["prefixCls","className","rootClassName","style","tooltips","character"]),Pt=(rt,Je)=>{let{index:Xe}=Je;return Nt?xt.createElement(Be.Z,{title:Nt[Xe]},rt):rt},{getPrefixCls:Et,direction:at,rate:Ct}=xt.useContext(Me.E_),nt=Et("rate",wt),[ht,Mt]=ct(nt),gt=Object.assign(Object.assign({},Ct==null?void 0:Ct.style),St);return ht(xt.createElement(Te,Object.assign({ref:bt,character:Ft,characterRender:Pt},Kt,{className:ye()(mt,vt,Mt,Ct==null?void 0:Ct.className),style:gt,prefixCls:nt,direction:at})))})},57809:function(Nn,mn,ze){"use strict";var We=ze(92310),xt=ze.n(We),oe=ze(77861),Ue=ze(2738),Oe=ze(59301),ve=ze(53487),ce=ze(62892),Ce=ze(19080),Ee=ze(36355),ye=ze(1684),be=ze(93891),me=ze(19716),xe=ze(32441),fe=ze(33234),z=ze(14154),ee=ze(58582),ae=ze(84443),re=ze(66339),le=function(Ne,Ae){var Te={};for(var Me in Ne)Object.prototype.hasOwnProperty.call(Ne,Me)&&Ae.indexOf(Me)<0&&(Te[Me]=Ne[Me]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Me=Object.getOwnPropertySymbols(Ne);Be<Me.length;Be++)Ae.indexOf(Me[Be])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Me[Be])&&(Te[Me[Be]]=Ne[Me[Be]]);return Te};const ue="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(Ne,Ae)=>{var Te,{prefixCls:Me,bordered:Be=!0,className:Re,rootClassName:Qe,getPopupContainer:He,popupClassName:$e,dropdownClassName:qe,listHeight:ut=256,placement:ct,listItemHeight:yt=24,size:_e,disabled:st,notFoundContent:pt,status:bt,builtinPlacements:wt,dropdownMatchSelectWidth:mt,popupMatchSelectWidth:vt,direction:St,style:Nt,allowClear:Ft}=Ne,Kt=le(Ne,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Pt,getPrefixCls:Et,renderEmpty:at,direction:Ct,virtual:nt,popupMatchSelectWidth:ht,popupOverflow:Mt,select:gt}=Oe.useContext(Ee.E_),rt=Et("select",Me),Je=Et(),Xe=St!=null?St:Ct,{compactSize:Ve,compactItemClassnames:tt}=(0,fe.ri)(rt,Xe),[Ze,je]=(0,z.Z)(rt),De=Oe.useMemo(()=>{const{mode:Jr}=Kt;if(Jr!=="combobox")return Jr===ue?"combobox":Jr},[Kt.mode]),Ye=De==="multiple"||De==="tags",dt=(0,ae.Z)(Kt.suffixIcon,Kt.showArrow),Ke=(Te=vt!=null?vt:mt)!==null&&Te!==void 0?Te:ht,{status:At,hasFeedback:zt,isFormItemInput:_t,feedbackIcon:Ot}=Oe.useContext(xe.aM),Vt=(0,Ce.F)(At,bt);let en;pt!==void 0?en=pt:De==="combobox"?en=null:en=(at==null?void 0:at("Select"))||Oe.createElement(be.Z,{componentName:"Select"});const{suffixIcon:on,itemIcon:fn,removeIcon:jn,clearIcon:er}=(0,re.Z)(Object.assign(Object.assign({},Kt),{multiple:Ye,hasFeedback:zt,feedbackIcon:Ot,showSuffixIcon:dt,prefixCls:rt,showArrow:Kt.showArrow,componentName:"Select"})),tr=Ft===!0?{clearIcon:er}:Ft,ur=(0,Ue.Z)(Kt,["suffixIcon","itemIcon"]),Tr=xt()($e||qe,{[`${rt}-dropdown-${Xe}`]:Xe==="rtl"},Qe,je),Lr=(0,me.Z)(Jr=>{var it;return(it=_e!=null?_e:Ve)!==null&&it!==void 0?it:Jr}),Ar=Oe.useContext(ye.Z),Gr=st!=null?st:Ar,Kr=xt()({[`${rt}-lg`]:Lr==="large",[`${rt}-sm`]:Lr==="small",[`${rt}-rtl`]:Xe==="rtl",[`${rt}-borderless`]:!Be,[`${rt}-in-form-item`]:_t},(0,Ce.Z)(rt,Vt,zt),tt,gt==null?void 0:gt.className,Re,Qe,je),Mr=Oe.useMemo(()=>ct!==void 0?ct:Xe==="rtl"?"bottomRight":"bottomLeft",[ct,Xe]),fi=(0,ee.Z)(wt,Mt);return Ze(Oe.createElement(oe.ZP,Object.assign({ref:Ae,virtual:nt,showSearch:gt==null?void 0:gt.showSearch},ur,{style:Object.assign(Object.assign({},gt==null?void 0:gt.style),Nt),dropdownMatchSelectWidth:Ke,builtinPlacements:fi,transitionName:(0,ce.m)(Je,"slide-up",Kt.transitionName),listHeight:ut,listItemHeight:yt,mode:De,prefixCls:rt,placement:Mr,direction:Xe,suffixIcon:on,menuItemSelectedIcon:fn,removeIcon:jn,allowClear:tr,notFoundContent:en,className:Kr,getPopupContainer:He||Pt,dropdownClassName:Tr,disabled:Gr})))},Pe=Oe.forwardRef(pe),we=(0,ve.Z)(Pe);Pe.SECRET_COMBOBOX_MODE_DO_NOT_USE=ue,Pe.Option=oe.Wx,Pe.OptGroup=oe.Xo,Pe._InternalPanelDoNotUseOrYouWillBeFired=we,mn.default=Pe},14154:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Pe}});var We=ze(17313),xt=ze(74207),oe=ze(37613),Ue=ze(83116),Oe=ze(13826),ve=ze(92899);const ce=we=>{const{optionHeight:Ne,optionFontSize:Ae,optionLineHeight:Te,optionPadding:Me}=we;return{position:"relative",display:"block",minHeight:Ne,padding:Me,color:we.colorText,fontWeight:"normal",fontSize:Ae,lineHeight:Te,boxSizing:"border-box"}};var Ee=we=>{const{antCls:Ne,componentCls:Ae}=we,Te=`${Ae}-item`,Me=`&${Ne}-slide-up-enter${Ne}-slide-up-enter-active`,Be=`&${Ne}-slide-up-appear${Ne}-slide-up-appear-active`,Re=`&${Ne}-slide-up-leave${Ne}-slide-up-leave-active`,Qe=`${Ae}-dropdown-placement-`;return[{[`${Ae}-dropdown`]:Object.assign(Object.assign({},(0,We.Wf)(we)),{position:"absolute",top:-9999,zIndex:we.zIndexPopup,boxSizing:"border-box",padding:we.paddingXXS,overflow:"hidden",fontSize:we.fontSize,fontVariant:"initial",backgroundColor:we.colorBgElevated,borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary,[`
${Me}${Qe}bottomLeft,
${Be}${Qe}bottomLeft
`]:{animationName:Oe.fJ},[`
${Me}${Qe}topLeft,
${Be}${Qe}topLeft,
${Me}${Qe}topRight,
${Be}${Qe}topRight
`]:{animationName:Oe.Qt},[`${Re}${Qe}bottomLeft`]:{animationName:Oe.Uw},[`
${Re}${Qe}topLeft,
${Re}${Qe}topRight
`]:{animationName:Oe.ly},"&-hidden":{display:"none"},[`${Te}`]:Object.assign(Object.assign({},ce(we)),{cursor:"pointer",transition:`background ${we.motionDurationSlow} ease`,borderRadius:we.borderRadiusSM,"&-group":{color:we.colorTextDescription,fontSize:we.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},We.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Te}-option-disabled)`]:{backgroundColor:we.optionActiveBg},[`&-selected:not(${Te}-option-disabled)`]:{color:we.optionSelectedColor,fontWeight:we.optionSelectedFontWeight,backgroundColor:we.optionSelectedBg,[`${Te}-option-state`]:{color:we.colorPrimary}},"&-disabled":{[`&${Te}-option-selected`]:{backgroundColor:we.colorBgContainerDisabled},color:we.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:we.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Oe.oN)(we,"slide-up"),(0,Oe.oN)(we,"slide-down"),(0,ve.Fm)(we,"move-up"),(0,ve.Fm)(we,"move-down")]};const ye=2,be=we=>{let{controlHeightSM:Ne,controlHeight:Ae,lineWidth:Te}=we;const Me=(Ae-Ne)/2-Te,Be=Math.ceil(Me/2);return[Me,Be]};function me(we,Ne){const{componentCls:Ae,iconCls:Te}=we,Me=`${Ae}-selection-overflow`,Be=we.multipleSelectItemHeight,[Re]=be(we),Qe=Ne?`${Ae}-${Ne}`:"";return{[`${Ae}-multiple${Qe}`]:{fontSize:we.fontSize,[Me]:{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:`${Re-ye}px ${ye*2}px`,borderRadius:we.borderRadius,[`${Ae}-show-search&`]:{cursor:"text"},[`${Ae}-disabled&`]:{background:we.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:we.fontSizeIcon+we.controlPaddingHorizontal},[`${Ae}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Be,marginTop:ye,marginBottom:ye,lineHeight:`${Be-we.lineWidth*2}px`,background:we.multipleItemBg,border:`${we.lineWidth}px ${we.lineType} ${we.multipleItemBorderColor}`,borderRadius:we.borderRadiusSM,cursor:"default",transition:`font-size ${we.motionDurationSlow}, line-height ${we.motionDurationSlow}, height ${we.motionDurationSlow}`,userSelect:"none",marginInlineEnd:ye*2,paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS/2,[`${Ae}-disabled&`]:{color:we.multipleItemColorDisabled,borderColor:we.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:we.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,We.Ro)()),{display:"inline-flex",alignItems:"center",color:we.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Te}`]:{verticalAlign:"-0.2em"},"&:hover":{color:we.colorIconHover}})},[`${Me}-item + ${Me}-item`]:{[`${Ae}-selection-search`]:{marginInlineStart:0}},[`${Ae}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:we.inputPaddingHorizontalBase-Re,"\n &-input,\n &-mirror\n ":{height:Be,fontFamily:we.fontFamily,lineHeight:`${Be}px`,transition:`all ${we.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:we.inputPaddingHorizontalBase,insetInlineEnd:we.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${we.motionDurationSlow}`}}}}var fe=we=>{const{componentCls:Ne}=we,Ae=(0,oe.TS)(we,{controlHeight:we.controlHeightSM,multipleSelectItemHeight:we.controlHeightXS,borderRadius:we.borderRadiusSM,borderRadiusSM:we.borderRadiusXS}),Te=(0,oe.TS)(we,{fontSize:we.fontSizeLG,controlHeight:we.controlHeightLG,multipleSelectItemHeight:we.multipleItemHeightLG,borderRadius:we.borderRadiusLG,borderRadiusSM:we.borderRadius}),[,Me]=be(we);return[me(we),me(Ae,"sm"),{[`${Ne}-multiple${Ne}-sm`]:{[`${Ne}-selection-placeholder`]:{insetInline:we.controlPaddingHorizontalSM-we.lineWidth},[`${Ne}-selection-search`]:{marginInlineStart:Me}}},me(Te,"lg")]};function z(we,Ne){const{componentCls:Ae,inputPaddingHorizontalBase:Te,borderRadius:Me}=we,Be=we.controlHeight-we.lineWidth*2,Re=Math.ceil(we.fontSize*1.25),Qe=Ne?`${Ae}-${Ne}`:"";return{[`${Ae}-single${Qe}`]:{fontSize:we.fontSize,[`${Ae}-selector`]:Object.assign(Object.assign({},(0,We.Wf)(we)),{display:"flex",borderRadius:Me,[`${Ae}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Te,insetInlineEnd:Te,bottom:0,"&-input":{width:"100%"}},[`
${Ae}-selection-item,
${Ae}-selection-placeholder
`]:{padding:0,lineHeight:`${Be}px`,transition:`all ${we.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:Re},[`&${Ae}-open ${Ae}-selection-item`]:{color:we.colorTextPlaceholder},[`&:not(${Ae}-customize-input)`]:{[`${Ae}-selector`]:{width:"100%",height:we.controlHeight,padding:`0 ${Te}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 ${Te}px`,"&:after":{display:"none"}}}}}}}function ee(we){const{componentCls:Ne}=we,Ae=we.controlPaddingHorizontalSM-we.lineWidth;return[z(we),z((0,oe.TS)(we,{controlHeight:we.controlHeightSM,borderRadius:we.borderRadiusSM}),"sm"),{[`${Ne}-single${Ne}-sm`]:{[`&:not(${Ne}-customize-input)`]:{[`${Ne}-selection-search`]:{insetInlineStart:Ae,insetInlineEnd:Ae},[`${Ne}-selector`]:{padding:`0 ${Ae}px`},[`&${Ne}-show-arrow ${Ne}-selection-search`]:{insetInlineEnd:Ae+we.fontSize*1.5},[`
&${Ne}-show-arrow ${Ne}-selection-item,
&${Ne}-show-arrow ${Ne}-selection-placeholder
`]:{paddingInlineEnd:we.fontSize*1.5}}}},z((0,oe.TS)(we,{controlHeight:we.singleItemHeightLG,fontSize:we.fontSizeLG,borderRadius:we.borderRadiusLG}),"lg")]}const ae=we=>{const{componentCls:Ne,selectorBg:Ae}=we;return{position:"relative",backgroundColor:Ae,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,transition:`all ${we.motionDurationMid} ${we.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ne}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ne}-disabled&`]:{color:we.colorTextDisabled,background:we.colorBgContainerDisabled,cursor:"not-allowed",[`${Ne}-multiple&`]:{background:we.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},re=function(we,Ne){let Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Te,borderHoverColor:Me,outlineColor:Be,antCls:Re}=Ne,Qe=Ae?{[`${Te}-selector`]:{borderColor:Me}}:{};return{[we]:{[`&:not(${Te}-disabled):not(${Te}-customize-input):not(${Re}-pagination-size-changer)`]:Object.assign(Object.assign({},Qe),{[`${Te}-focused& ${Te}-selector`]:{borderColor:Me,boxShadow:`0 0 0 ${Ne.controlOutlineWidth}px ${Be}`,outline:0},[`&:hover ${Te}-selector`]:{borderColor:Me}})}}},le=we=>{const{componentCls:Ne}=we;return{[`${Ne}-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=we=>{const{componentCls:Ne,inputPaddingHorizontalBase:Ae,iconCls:Te}=we;return{[Ne]:Object.assign(Object.assign({},(0,We.Wf)(we)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ne}-customize-input) ${Ne}-selector`]:Object.assign(Object.assign({},ae(we)),le(we)),[`${Ne}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},We.vS),[`${Ne}-selection-placeholder`]:Object.assign(Object.assign({},We.vS),{flex:1,color:we.colorTextPlaceholder,pointerEvents:"none"}),[`${Ne}-arrow`]:Object.assign(Object.assign({},(0,We.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,height:we.fontSizeIcon,marginTop:-we.fontSizeIcon/2,color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Te]:{verticalAlign:"top",transition:`transform ${we.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ne}-suffix)`]:{pointerEvents:"auto"}},[`${Ne}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ne}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,zIndex:1,display:"inline-block",width:we.fontSizeIcon,height:we.fontSizeIcon,marginTop:-we.fontSizeIcon/2,color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:we.clearBg,cursor:"pointer",opacity:0,transition:`color ${we.motionDurationMid} ease, opacity ${we.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:we.colorTextTertiary}},"&:hover":{[`${Ne}-clear`]:{opacity:1}}}),[`${Ne}-has-feedback`]:{[`${Ne}-clear`]:{insetInlineEnd:Ae+we.fontSize+we.paddingXS}}}},pe=we=>{const{componentCls:Ne}=we;return[{[Ne]:{[`&-borderless ${Ne}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ne}-in-form-item`]:{width:"100%"}}},ue(we),ee(we),fe(we),Ee(we),{[`${Ne}-rtl`]:{direction:"rtl"}},re(Ne,(0,oe.TS)(we,{borderHoverColor:we.colorPrimaryHover,outlineColor:we.controlOutline})),re(`${Ne}-status-error`,(0,oe.TS)(we,{borderHoverColor:we.colorErrorHover,outlineColor:we.colorErrorOutline}),!0),re(`${Ne}-status-warning`,(0,oe.TS)(we,{borderHoverColor:we.colorWarningHover,outlineColor:we.colorWarningOutline}),!0),(0,xt.c)(we,{borderElCls:`${Ne}-selector`,focusElCls:`${Ne}-focused`})]};var Pe=(0,Ue.Z)("Select",(we,Ne)=>{let{rootPrefixCls:Ae}=Ne;const Te=(0,oe.TS)(we,{rootPrefixCls:Ae,inputPaddingHorizontalBase:we.paddingSM-1,multipleSelectItemHeight:we.multipleItemHeight});return[pe(Te)]},we=>{const{fontSize:Ne,lineHeight:Ae,controlHeight:Te,controlPaddingHorizontal:Me,zIndexPopupBase:Be,colorText:Re,fontWeightStrong:Qe,controlItemBgActive:He,controlItemBgHover:$e,colorBgContainer:qe,colorFillSecondary:ut,controlHeightLG:ct,controlHeightSM:yt,colorBgContainerDisabled:_e,colorTextDisabled:st}=we;return{zIndexPopup:Be+50,optionSelectedColor:Re,optionSelectedFontWeight:Qe,optionSelectedBg:He,optionActiveBg:$e,optionPadding:`${(Te-Ne*Ae)/2}px ${Me}px`,optionFontSize:Ne,optionLineHeight:Ae,optionHeight:Te,selectorBg:qe,clearBg:qe,singleItemHeightLG:ct,multipleItemBg:ut,multipleItemBorderColor:"transparent",multipleItemHeight:yt,multipleItemHeightLG:Te,multipleSelectorBgDisabled:_e,multipleItemColorDisabled:st,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return xt}});const We=oe=>{const Oe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Oe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Oe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Oe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Oe),{points:["br","tr"],offset:[0,-4]})}};function xt(oe,Ue){return oe||We(Ue)}},84443:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return We}});function We(xt,oe){return oe!==void 0?oe:xt!==null}},66339:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});var We=ze(40001),xt=ze(19248),oe=ze(99267),Ue=ze(84105),Oe=ze(58617),ve=ze(47472),ce=ze(59301);function Ce(Ee){let{suffixIcon:ye,clearIcon:be,menuItemSelectedIcon:me,removeIcon:xe,loading:fe,multiple:z,hasFeedback:ee,prefixCls:ae,showSuffixIcon:re,feedbackIcon:le,showArrow:ue,componentName:pe}=Ee;const Pe=be!=null?be:ce.createElement(xt.Z,null),we=Me=>ye===null&&!ee&&!ue?null:ce.createElement(ce.Fragment,null,re!==!1&&Me,ee&&le);let Ne=null;if(ye!==void 0)Ne=we(ye);else if(fe)Ne=we(ce.createElement(Oe.Z,{spin:!0}));else{const Me=`${ae}-suffix`;Ne=Be=>{let{open:Re,showSearch:Qe}=Be;return we(Re&&Qe?ce.createElement(ve.Z,{className:Me}):ce.createElement(Ue.Z,{className:Me}))}}let Ae=null;me!==void 0?Ae=me:z?Ae=ce.createElement(We.Z,null):Ae=null;let Te=null;return xe!==void 0?Te=xe:Te=ce.createElement(oe.Z,null),{clearIcon:Pe,suffixIcon:Ne,itemIcon:Ae,removeIcon:Te}}},61621:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Mt}});var We=ze(92310),xt=ze.n(We),oe=ze(59301),Ue=ze(36355),Oe=ze(2738),ce=gt=>{const{prefixCls:rt,className:Je,style:Xe,size:Ve,shape:tt}=gt,Ze=xt()({[`${rt}-lg`]:Ve==="large",[`${rt}-sm`]:Ve==="small"}),je=xt()({[`${rt}-circle`]:tt==="circle",[`${rt}-square`]:tt==="square",[`${rt}-round`]:tt==="round"}),De=oe.useMemo(()=>typeof Ve=="number"?{width:Ve,height:Ve,lineHeight:`${Ve}px`}:{},[Ve]);return oe.createElement("span",{className:xt()(rt,Ze,je,Je),style:Object.assign(Object.assign({},De),Xe)})},Ce=ze(93083),Ee=ze(83116),ye=ze(37613);const be=new Ce.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),me=gt=>({height:gt,lineHeight:`${gt}px`}),xe=gt=>Object.assign({width:gt},me(gt)),fe=gt=>({background:gt.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:be,animationDuration:gt.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),z=gt=>Object.assign({width:gt*5,minWidth:gt*5},me(gt)),ee=gt=>{const{skeletonAvatarCls:rt,gradientFromColor:Je,controlHeight:Xe,controlHeightLG:Ve,controlHeightSM:tt}=gt;return{[`${rt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Je},xe(Xe)),[`${rt}${rt}-circle`]:{borderRadius:"50%"},[`${rt}${rt}-lg`]:Object.assign({},xe(Ve)),[`${rt}${rt}-sm`]:Object.assign({},xe(tt))}},ae=gt=>{const{controlHeight:rt,borderRadiusSM:Je,skeletonInputCls:Xe,controlHeightLG:Ve,controlHeightSM:tt,gradientFromColor:Ze}=gt;return{[`${Xe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ze,borderRadius:Je},z(rt)),[`${Xe}-lg`]:Object.assign({},z(Ve)),[`${Xe}-sm`]:Object.assign({},z(tt))}},re=gt=>Object.assign({width:gt},me(gt)),le=gt=>{const{skeletonImageCls:rt,imageSizeBase:Je,gradientFromColor:Xe,borderRadiusSM:Ve}=gt;return{[`${rt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Xe,borderRadius:Ve},re(Je*2)),{[`${rt}-path`]:{fill:"#bfbfbf"},[`${rt}-svg`]:Object.assign(Object.assign({},re(Je)),{maxWidth:Je*4,maxHeight:Je*4}),[`${rt}-svg${rt}-svg-circle`]:{borderRadius:"50%"}}),[`${rt}${rt}-circle`]:{borderRadius:"50%"}}},ue=(gt,rt,Je)=>{const{skeletonButtonCls:Xe}=gt;return{[`${Je}${Xe}-circle`]:{width:rt,minWidth:rt,borderRadius:"50%"},[`${Je}${Xe}-round`]:{borderRadius:rt}}},pe=gt=>Object.assign({width:gt*2,minWidth:gt*2},me(gt)),Pe=gt=>{const{borderRadiusSM:rt,skeletonButtonCls:Je,controlHeight:Xe,controlHeightLG:Ve,controlHeightSM:tt,gradientFromColor:Ze}=gt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Je}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ze,borderRadius:rt,width:Xe*2,minWidth:Xe*2},pe(Xe))},ue(gt,Xe,Je)),{[`${Je}-lg`]:Object.assign({},pe(Ve))}),ue(gt,Ve,`${Je}-lg`)),{[`${Je}-sm`]:Object.assign({},pe(tt))}),ue(gt,tt,`${Je}-sm`))},we=gt=>{const{componentCls:rt,skeletonAvatarCls:Je,skeletonTitleCls:Xe,skeletonParagraphCls:Ve,skeletonButtonCls:tt,skeletonInputCls:Ze,skeletonImageCls:je,controlHeight:De,controlHeightLG:Ye,controlHeightSM:dt,gradientFromColor:Ke,padding:At,marginSM:zt,borderRadius:_t,titleHeight:Ot,blockRadius:Vt,paragraphLiHeight:en,controlHeightXS:on,paragraphMarginTop:fn}=gt;return{[`${rt}`]:{display:"table",width:"100%",[`${rt}-header`]:{display:"table-cell",paddingInlineEnd:At,verticalAlign:"top",[`${Je}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ke},xe(De)),[`${Je}-circle`]:{borderRadius:"50%"},[`${Je}-lg`]:Object.assign({},xe(Ye)),[`${Je}-sm`]:Object.assign({},xe(dt))},[`${rt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Xe}`]:{width:"100%",height:Ot,background:Ke,borderRadius:Vt,[`+ ${Ve}`]:{marginBlockStart:dt}},[`${Ve}`]:{padding:0,"> li":{width:"100%",height:en,listStyle:"none",background:Ke,borderRadius:Vt,"+ li":{marginBlockStart:on}}},[`${Ve}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${rt}-content`]:{[`${Xe}, ${Ve} > li`]:{borderRadius:_t}}},[`${rt}-with-avatar ${rt}-content`]:{[`${Xe}`]:{marginBlockStart:zt,[`+ ${Ve}`]:{marginBlockStart:fn}}},[`${rt}${rt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Pe(gt)),ee(gt)),ae(gt)),le(gt)),[`${rt}${rt}-block`]:{width:"100%",[`${tt}`]:{width:"100%"},[`${Ze}`]:{width:"100%"}},[`${rt}${rt}-active`]:{[`
${Xe},
${Ve} > li,
${Je},
${tt},
${Ze},
${je}
`]:Object.assign({},fe(gt))}}};var Ne=(0,Ee.Z)("Skeleton",gt=>{const{componentCls:rt}=gt,Je=(0,ye.TS)(gt,{skeletonAvatarCls:`${rt}-avatar`,skeletonTitleCls:`${rt}-title`,skeletonParagraphCls:`${rt}-paragraph`,skeletonButtonCls:`${rt}-button`,skeletonInputCls:`${rt}-input`,skeletonImageCls:`${rt}-image`,imageSizeBase:gt.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${gt.gradientFromColor} 25%, ${gt.gradientToColor} 37%, ${gt.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[we(Je)]},gt=>{const{colorFillContent:rt,colorFill:Je}=gt,Xe=rt,Ve=Je;return{color:Xe,colorGradientEnd:Ve,gradientFromColor:Xe,gradientToColor:Ve,titleHeight:gt.controlHeight/2,blockRadius:gt.borderRadiusSM,paragraphMarginTop:gt.marginLG+gt.marginXXS,paragraphLiHeight:gt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Te=gt=>{const{prefixCls:rt,className:Je,rootClassName:Xe,active:Ve,shape:tt="circle",size:Ze="default"}=gt,{getPrefixCls:je}=oe.useContext(Ue.E_),De=je("skeleton",rt),[Ye,dt]=Ne(De),Ke=(0,Oe.Z)(gt,["prefixCls","className"]),At=xt()(De,`${De}-element`,{[`${De}-active`]:Ve},Je,Xe,dt);return Ye(oe.createElement("div",{className:At},oe.createElement(ce,Object.assign({prefixCls:`${De}-avatar`,shape:tt,size:Ze},Ke))))},Be=gt=>{const{prefixCls:rt,className:Je,rootClassName:Xe,active:Ve,block:tt=!1,size:Ze="default"}=gt,{getPrefixCls:je}=oe.useContext(Ue.E_),De=je("skeleton",rt),[Ye,dt]=Ne(De),Ke=(0,Oe.Z)(gt,["prefixCls"]),At=xt()(De,`${De}-element`,{[`${De}-active`]:Ve,[`${De}-block`]:tt},Je,Xe,dt);return Ye(oe.createElement("div",{className:At},oe.createElement(ce,Object.assign({prefixCls:`${De}-button`,size:Ze},Ke))))};const Re="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var He=gt=>{const{prefixCls:rt,className:Je,rootClassName:Xe,style:Ve,active:tt}=gt,{getPrefixCls:Ze}=oe.useContext(Ue.E_),je=Ze("skeleton",rt),[De,Ye]=Ne(je),dt=xt()(je,`${je}-element`,{[`${je}-active`]:tt},Je,Xe,Ye);return De(oe.createElement("div",{className:dt},oe.createElement("div",{className:xt()(`${je}-image`,Je),style:Ve},oe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${je}-image-svg`},oe.createElement("path",{d:Re,className:`${je}-image-path`})))))},qe=gt=>{const{prefixCls:rt,className:Je,rootClassName:Xe,active:Ve,block:tt,size:Ze="default"}=gt,{getPrefixCls:je}=oe.useContext(Ue.E_),De=je("skeleton",rt),[Ye,dt]=Ne(De),Ke=(0,Oe.Z)(gt,["prefixCls"]),At=xt()(De,`${De}-element`,{[`${De}-active`]:Ve,[`${De}-block`]:tt},Je,Xe,dt);return Ye(oe.createElement("div",{className:At},oe.createElement(ce,Object.assign({prefixCls:`${De}-input`,size:Ze},Ke))))},ut=ze(72308),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},yt=ct,_e=ze(7657),st=function(rt,Je){return oe.createElement(_e.Z,(0,ut.Z)({},rt,{ref:Je,icon:yt}))},pt=oe.forwardRef(st),bt=pt,mt=gt=>{const{prefixCls:rt,className:Je,rootClassName:Xe,style:Ve,active:tt,children:Ze}=gt,{getPrefixCls:je}=oe.useContext(Ue.E_),De=je("skeleton",rt),[Ye,dt]=Ne(De),Ke=xt()(De,`${De}-element`,{[`${De}-active`]:tt},dt,Je,Xe),At=Ze!=null?Ze:oe.createElement(bt,null);return Ye(oe.createElement("div",{className:Ke},oe.createElement("div",{className:xt()(`${De}-image`,Je),style:Ve},At)))},vt=ze(80702),Nt=gt=>{const rt=je=>{const{width:De,rows:Ye=2}=gt;if(Array.isArray(De))return De[je];if(Ye-1===je)return De},{prefixCls:Je,className:Xe,style:Ve,rows:tt}=gt,Ze=(0,vt.Z)(Array(tt)).map((je,De)=>oe.createElement("li",{key:De,style:{width:rt(De)}}));return oe.createElement("ul",{className:xt()(Je,Xe),style:Ve},Ze)},Kt=gt=>{let{prefixCls:rt,className:Je,width:Xe,style:Ve}=gt;return oe.createElement("h3",{className:xt()(rt,Je),style:Object.assign({width:Xe},Ve)})};function Pt(gt){return gt&&typeof gt=="object"?gt:{}}function Et(gt,rt){return gt&&!rt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function at(gt,rt){return!gt&&rt?{width:"38%"}:gt&&rt?{width:"50%"}:{}}function Ct(gt,rt){const Je={};return(!gt||!rt)&&(Je.width="61%"),!gt&&rt?Je.rows=3:Je.rows=2,Je}const nt=gt=>{const{prefixCls:rt,loading:Je,className:Xe,rootClassName:Ve,style:tt,children:Ze,avatar:je=!1,title:De=!0,paragraph:Ye=!0,active:dt,round:Ke}=gt,{getPrefixCls:At,direction:zt,skeleton:_t}=oe.useContext(Ue.E_),Ot=At("skeleton",rt),[Vt,en]=Ne(Ot);if(Je||!("loading"in gt)){const on=!!je,fn=!!De,jn=!!Ye;let er;if(on){const Tr=Object.assign(Object.assign({prefixCls:`${Ot}-avatar`},Et(fn,jn)),Pt(je));er=oe.createElement("div",{className:`${Ot}-header`},oe.createElement(ce,Object.assign({},Tr)))}let tr;if(fn||jn){let Tr;if(fn){const Ar=Object.assign(Object.assign({prefixCls:`${Ot}-title`},at(on,jn)),Pt(De));Tr=oe.createElement(Kt,Object.assign({},Ar))}let Lr;if(jn){const Ar=Object.assign(Object.assign({prefixCls:`${Ot}-paragraph`},Ct(on,fn)),Pt(Ye));Lr=oe.createElement(Nt,Object.assign({},Ar))}tr=oe.createElement("div",{className:`${Ot}-content`},Tr,Lr)}const ur=xt()(Ot,{[`${Ot}-with-avatar`]:on,[`${Ot}-active`]:dt,[`${Ot}-rtl`]:zt==="rtl",[`${Ot}-round`]:Ke},_t==null?void 0:_t.className,Xe,Ve,en);return Vt(oe.createElement("div",{className:ur,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),tt)},er,tr))}return typeof Ze!="undefined"?Ze:null};nt.Button=Be,nt.Avatar=Te,nt.Input=qe,nt.Image=He,nt.Node=mt;var ht=nt,Mt=ht},81327:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return ae}});var We=ze(59301),xt=ze(92310),oe=ze.n(xt),Ue=ze(11592),Oe=ze(36355),ve=ze(33234);const ce=We.createContext({latestIndex:0}),Ce=ce.Provider;var ye=re=>{let{className:le,index:ue,children:pe,split:Pe,style:we}=re;const{latestIndex:Ne}=We.useContext(ce);return pe==null?null:We.createElement(We.Fragment,null,We.createElement("div",{className:le,style:we},pe),ue<Ne&&Pe&&We.createElement("span",{className:`${le}-split`},Pe))},be=ze(2856);function me(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 Pe=0,pe=Object.getOwnPropertySymbols(re);Pe<pe.length;Pe++)le.indexOf(pe[Pe])<0&&Object.prototype.propertyIsEnumerable.call(re,pe[Pe])&&(ue[pe[Pe]]=re[pe[Pe]]);return ue};const ee=We.forwardRef((re,le)=>{var ue,pe;const{getPrefixCls:Pe,space:we,direction:Ne}=We.useContext(Oe.E_),{size:Ae=(we==null?void 0:we.size)||"small",align:Te,className:Me,rootClassName:Be,children:Re,direction:Qe="horizontal",prefixCls:He,split:$e,style:qe,wrap:ut=!1,classNames:ct,styles:yt}=re,_e=fe(re,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[st,pt]=Array.isArray(Ae)?Ae:[Ae,Ae],bt=me(pt),wt=me(st),mt=xe(pt),vt=xe(st),St=(0,Ue.Z)(Re,{keepEmpty:!0}),Nt=Te===void 0&&Qe==="horizontal"?"center":Te,Ft=Pe("space",He),[Kt,Pt]=(0,be.Z)(Ft),Et=oe()(Ft,we==null?void 0:we.className,Pt,`${Ft}-${Qe}`,{[`${Ft}-rtl`]:Ne==="rtl",[`${Ft}-align-${Nt}`]:Nt,[`${Ft}-gap-row-${pt}`]:bt,[`${Ft}-gap-col-${st}`]:wt},Me,Be),at=oe()(`${Ft}-item`,(ue=ct==null?void 0:ct.item)!==null&&ue!==void 0?ue:(pe=we==null?void 0:we.classNames)===null||pe===void 0?void 0:pe.item);let Ct=0;const nt=St.map((gt,rt)=>{var Je,Xe;gt!=null&&(Ct=rt);const Ve=gt&&gt.key||`${at}-${rt}`;return We.createElement(ye,{className:at,key:Ve,index:rt,split:$e,style:(Je=yt==null?void 0:yt.item)!==null&&Je!==void 0?Je:(Xe=we==null?void 0:we.styles)===null||Xe===void 0?void 0:Xe.item},gt)}),ht=We.useMemo(()=>({latestIndex:Ct}),[Ct]);if(St.length===0)return null;const Mt={};return ut&&(Mt.flexWrap="wrap"),!wt&&vt&&(Mt.columnGap=st),!bt&&mt&&(Mt.rowGap=pt),Kt(We.createElement("div",Object.assign({ref:le,className:Et,style:Object.assign(Object.assign(Object.assign({},Mt),we==null?void 0:we.style),qe)},_e),We.createElement(Ce,{value:ht},nt)))});ee.Compact=ve.ZP;var ae=ee},31797:function(Nn,mn,ze){"use strict";ze.d(mn,{default:function(){return Ne}});var We=ze(59301),xt=ze(56762),oe=ze(92343),Ue=ze(92310),Oe=ze.n(Ue),ve=ze(36355),ce=ze(61621),Ee=Ae=>{const{value:Te,formatter:Me,precision:Be,decimalSeparator:Re,groupSeparator:Qe="",prefixCls:He}=Ae;let $e;if(typeof Me=="function")$e=Me(Te);else{const qe=String(Te),ut=qe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ut||qe==="-")$e=qe;else{const ct=ut[1];let yt=ut[2]||"0",_e=ut[4]||"";yt=yt.replace(/\B(?=(\d{3})+(?!\d))/g,Qe),typeof Be=="number"&&(_e=_e.padEnd(Be,"0").slice(0,Be>0?Be:0)),_e&&(_e=`${Re}${_e}`),$e=[We.createElement("span",{key:"int",className:`${He}-content-value-int`},ct,yt),_e&&We.createElement("span",{key:"decimal",className:`${He}-content-value-decimal`},_e)]}}return We.createElement("span",{className:`${He}-content-value`},$e)},ye=ze(17313),be=ze(83116),me=ze(37613);const xe=Ae=>{const{componentCls:Te,marginXXS:Me,padding:Be,colorTextDescription:Re,titleFontSize:Qe,colorTextHeading:He,contentFontSize:$e,fontFamily:qe}=Ae;return{[`${Te}`]:Object.assign(Object.assign({},(0,ye.Wf)(Ae)),{[`${Te}-title`]:{marginBottom:Me,color:Re,fontSize:Qe},[`${Te}-skeleton`]:{paddingTop:Be},[`${Te}-content`]:{color:He,fontSize:$e,fontFamily:qe,[`${Te}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Te}-content-prefix, ${Te}-content-suffix`]:{display:"inline-block"},[`${Te}-content-prefix`]:{marginInlineEnd:Me},[`${Te}-content-suffix`]:{marginInlineStart:Me}}})}};var fe=(0,be.Z)("Statistic",Ae=>{const Te=(0,me.TS)(Ae,{});return[xe(Te)]},Ae=>{const{fontSizeHeading3:Te,fontSize:Me}=Ae;return{titleFontSize:Me,contentFontSize:Te}}),ee=Ae=>{const{prefixCls:Te,className:Me,rootClassName:Be,style:Re,valueStyle:Qe,value:He=0,title:$e,valueRender:qe,prefix:ut,suffix:ct,loading:yt=!1,onMouseEnter:_e,onMouseLeave:st,decimalSeparator:pt=".",groupSeparator:bt=","}=Ae,{getPrefixCls:wt,direction:mt,statistic:vt}=We.useContext(ve.E_),St=wt("statistic",Te),[Nt,Ft]=fe(St),Kt=We.createElement(Ee,Object.assign({decimalSeparator:pt,groupSeparator:bt,prefixCls:St},Ae,{value:He})),Pt=Oe()(St,{[`${St}-rtl`]:mt==="rtl"},vt==null?void 0:vt.className,Me,Be,Ft);return Nt(We.createElement("div",{className:Pt,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),Re),onMouseEnter:_e,onMouseLeave:st},$e&&We.createElement("div",{className:`${St}-title`},$e),We.createElement(ce.Z,{paragraph:!1,loading:yt,className:`${St}-skeleton`},We.createElement("div",{style:Qe,className:`${St}-content`},ut&&We.createElement("span",{className:`${St}-content-prefix`},ut),qe?qe(Kt):Kt,ct&&We.createElement("span",{className:`${St}-content-suffix`},ct)))))};const ae=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function re(Ae,Te){let Me=Ae;const Be=/\[[^\]]*]/g,Re=(Te.match(Be)||[]).map(qe=>qe.slice(1,-1)),Qe=Te.replace(Be,"[]"),He=ae.reduce((qe,ut)=>{let[ct,yt]=ut;if(qe.includes(ct)){const _e=Math.floor(Me/yt);return Me-=_e*yt,qe.replace(new RegExp(`${ct}+`,"g"),st=>{const pt=st.length;return _e.toString().padStart(pt,"0")})}return qe},Qe);let $e=0;return He.replace(Be,()=>{const qe=Re[$e];return $e+=1,qe})}function le(Ae,Te){const{format:Me=""}=Te,Be=new Date(Ae).getTime(),Re=Date.now(),Qe=Math.max(Be-Re,0);return re(Qe,Me)}const ue=1e3/30;function pe(Ae){return new Date(Ae).getTime()}const Pe=Ae=>{const{value:Te,format:Me="HH:mm:ss",onChange:Be,onFinish:Re}=Ae,Qe=(0,xt.Z)(),He=We.useRef(null),$e=()=>{Re==null||Re(),He.current&&(clearInterval(He.current),He.current=null)},qe=()=>{const yt=pe(Te);yt>=Date.now()&&(He.current=setInterval(()=>{Qe(),Be==null||Be(yt-Date.now()),yt<Date.now()&&$e()},ue))};We.useEffect(()=>(qe(),()=>{He.current&&(clearInterval(He.current),He.current=null)}),[Te]);const ut=(yt,_e)=>le(yt,Object.assign(Object.assign({},_e),{format:Me})),ct=yt=>(0,oe.Tm)(yt,{title:void 0});return We.createElement(ee,Object.assign({},Ae,{valueRender:ct,formatter:ut}))};var we=We.memo(Pe);ee.Countdown=we;var Ne=ee},15969:function(Nn,mn,ze){"use strict";ze.d(mn,{N:function(){return We}});const We=xt=>({color:xt.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${xt.motionDurationSlow}`,"&:focus, &:hover":{color:xt.colorLinkHover},"&:active":{color:xt.colorLinkActive}})},78673:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Qe}});var We=ze(58617),xt=ze(92310),oe=ze.n(xt),Ue=ze(72308),Oe=ze(49618),ve=ze(52487),ce=ze(74416),Ce=ze(59301),Ee=ze(18929),ye=ze(10228),be=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],me=Ce.forwardRef(function(He,$e){var qe,ut=He.prefixCls,ct=ut===void 0?"rc-switch":ut,yt=He.className,_e=He.checked,st=He.defaultChecked,pt=He.disabled,bt=He.loadingIcon,wt=He.checkedChildren,mt=He.unCheckedChildren,vt=He.onClick,St=He.onChange,Nt=He.onKeyDown,Ft=(0,ce.Z)(He,be),Kt=(0,Ee.Z)(!1,{value:_e,defaultValue:st}),Pt=(0,ve.Z)(Kt,2),Et=Pt[0],at=Pt[1];function Ct(gt,rt){var Je=Et;return pt||(Je=gt,at(Je),St==null||St(Je,rt)),Je}function nt(gt){gt.which===ye.Z.LEFT?Ct(!1,gt):gt.which===ye.Z.RIGHT&&Ct(!0,gt),Nt==null||Nt(gt)}function ht(gt){var rt=Ct(!Et,gt);vt==null||vt(rt,gt)}var Mt=oe()(ct,yt,(qe={},(0,Oe.Z)(qe,"".concat(ct,"-checked"),Et),(0,Oe.Z)(qe,"".concat(ct,"-disabled"),pt),qe));return Ce.createElement("button",(0,Ue.Z)({},Ft,{type:"button",role:"switch","aria-checked":Et,disabled:pt,className:Mt,ref:$e,onKeyDown:nt,onClick:ht}),bt,Ce.createElement("span",{className:"".concat(ct,"-inner")},Ce.createElement("span",{className:"".concat(ct,"-inner-checked")},wt),Ce.createElement("span",{className:"".concat(ct,"-inner-unchecked")},mt)))});me.displayName="Switch";var xe=me,fe=ze(14088),z=ze(36355),ee=ze(1684),ae=ze(19716),re=ze(64993),le=ze(17313),ue=ze(83116),pe=ze(37613);const Pe=He=>{const{componentCls:$e,trackHeightSM:qe,trackPadding:ut,trackMinWidthSM:ct,innerMinMarginSM:yt,innerMaxMarginSM:_e,handleSizeSM:st}=He,pt=`${$e}-inner`;return{[$e]:{[`&${$e}-small`]:{minWidth:ct,height:qe,lineHeight:`${qe}px`,[`${$e}-inner`]:{paddingInlineStart:_e,paddingInlineEnd:yt,[`${pt}-checked`]:{marginInlineStart:`calc(-100% + ${st+ut*2}px - ${_e*2}px)`,marginInlineEnd:`calc(100% - ${st+ut*2}px + ${_e*2}px)`},[`${pt}-unchecked`]:{marginTop:-qe,marginInlineStart:0,marginInlineEnd:0}},[`${$e}-handle`]:{width:st,height:st},[`${$e}-loading-icon`]:{top:(st-He.switchLoadingIconSize)/2,fontSize:He.switchLoadingIconSize},[`&${$e}-checked`]:{[`${$e}-inner`]:{paddingInlineStart:yt,paddingInlineEnd:_e,[`${pt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${pt}-unchecked`]:{marginInlineStart:`calc(100% - ${st+ut*2}px + ${_e*2}px)`,marginInlineEnd:`calc(-100% + ${st+ut*2}px - ${_e*2}px)`}},[`${$e}-handle`]:{insetInlineStart:`calc(100% - ${st+ut}px)`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${pt}`]:{[`${pt}-unchecked`]:{marginInlineStart:He.marginXXS/2,marginInlineEnd:-He.marginXXS/2}},[`&${$e}-checked ${pt}`]:{[`${pt}-checked`]:{marginInlineStart:-He.marginXXS/2,marginInlineEnd:He.marginXXS/2}}}}}}},we=He=>{const{componentCls:$e,handleSize:qe}=He;return{[$e]:{[`${$e}-loading-icon${He.iconCls}`]:{position:"relative",top:(qe-He.fontSize)/2,color:He.switchLoadingIconColor,verticalAlign:"top"},[`&${$e}-checked ${$e}-loading-icon`]:{color:He.switchColor}}}},Ne=He=>{const{componentCls:$e,motion:qe,trackPadding:ut,handleBg:ct,handleShadow:yt,handleSize:_e}=He,st=`${$e}-handle`;return{[$e]:{[st]:{position:"absolute",top:ut,insetInlineStart:ut,width:_e,height:_e,transition:`all ${He.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ct,borderRadius:_e/2,boxShadow:yt,transition:`all ${He.switchDuration} ease-in-out`,content:'""'}},[`&${$e}-checked ${st}`]:{insetInlineStart:`calc(100% - ${_e+ut}px)`},[`&:not(${$e}-disabled):active`]:qe?{[`${st}::before`]:{insetInlineEnd:He.switchHandleActiveInset,insetInlineStart:0},[`&${$e}-checked ${st}::before`]:{insetInlineEnd:0,insetInlineStart:He.switchHandleActiveInset}}:{}}}},Ae=He=>{const{componentCls:$e,trackHeight:qe,trackPadding:ut,innerMinMargin:ct,innerMaxMargin:yt,handleSize:_e}=He,st=`${$e}-inner`;return{[$e]:{[st]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:yt,paddingInlineEnd:ct,transition:`padding-inline-start ${He.switchDuration} ease-in-out, padding-inline-end ${He.switchDuration} ease-in-out`,[`${st}-checked, ${st}-unchecked`]:{display:"block",color:He.colorTextLightSolid,fontSize:He.fontSizeSM,transition:`margin-inline-start ${He.switchDuration} ease-in-out, margin-inline-end ${He.switchDuration} ease-in-out`,pointerEvents:"none"},[`${st}-checked`]:{marginInlineStart:`calc(-100% + ${_e+ut*2}px - ${yt*2}px)`,marginInlineEnd:`calc(100% - ${_e+ut*2}px + ${yt*2}px)`},[`${st}-unchecked`]:{marginTop:-qe,marginInlineStart:0,marginInlineEnd:0}},[`&${$e}-checked ${st}`]:{paddingInlineStart:ct,paddingInlineEnd:yt,[`${st}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${st}-unchecked`]:{marginInlineStart:`calc(100% - ${_e+ut*2}px + ${yt*2}px)`,marginInlineEnd:`calc(-100% + ${_e+ut*2}px - ${yt*2}px)`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${st}`]:{[`${st}-unchecked`]:{marginInlineStart:ut*2,marginInlineEnd:-ut*2}},[`&${$e}-checked ${st}`]:{[`${st}-checked`]:{marginInlineStart:-ut*2,marginInlineEnd:ut*2}}}}}},Te=He=>{const{componentCls:$e,trackHeight:qe,trackMinWidth:ut}=He;return{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)(He)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ut,height:qe,lineHeight:`${qe}px`,verticalAlign:"middle",background:He.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${He.motionDurationMid}`,userSelect:"none",[`&:hover:not(${$e}-disabled)`]:{background:He.colorTextTertiary}}),(0,le.Qy)(He)),{[`&${$e}-checked`]:{background:He.switchColor,[`&:hover:not(${$e}-disabled)`]:{background:He.colorPrimaryHover}},[`&${$e}-loading, &${$e}-disabled`]:{cursor:"not-allowed",opacity:He.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${$e}-rtl`]:{direction:"rtl"}})}};var Me=(0,ue.Z)("Switch",He=>{const $e=(0,pe.TS)(He,{switchDuration:He.motionDurationMid,switchColor:He.colorPrimary,switchDisabledOpacity:He.opacityLoading,switchLoadingIconSize:He.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${He.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Te($e),Ae($e),Ne($e),we($e),Pe($e)]},He=>{const{fontSize:$e,lineHeight:qe,controlHeight:ut,colorWhite:ct}=He,yt=$e*qe,_e=ut/2,st=2,pt=yt-st*2,bt=_e-st*2;return{trackHeight:yt,trackHeightSM:_e,trackMinWidth:pt*2+st*4,trackMinWidthSM:bt*2+st*2,trackPadding:st,handleBg:ct,handleSize:pt,handleSizeSM:bt,handleShadow:`0 2px 4px 0 ${new re.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:pt/2,innerMaxMargin:pt+st+st*2,innerMinMarginSM:bt/2,innerMaxMarginSM:bt+st+st*2}}),Be=function(He,$e){var qe={};for(var ut in He)Object.prototype.hasOwnProperty.call(He,ut)&&$e.indexOf(ut)<0&&(qe[ut]=He[ut]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,ut=Object.getOwnPropertySymbols(He);ct<ut.length;ct++)$e.indexOf(ut[ct])<0&&Object.prototype.propertyIsEnumerable.call(He,ut[ct])&&(qe[ut[ct]]=He[ut[ct]]);return qe};const Re=Ce.forwardRef((He,$e)=>{const{prefixCls:qe,size:ut,disabled:ct,loading:yt,className:_e,rootClassName:st,style:pt}=He,bt=Be(He,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:wt,direction:mt,switch:vt}=Ce.useContext(z.E_),St=Ce.useContext(ee.Z),Nt=(ct!=null?ct:St)||yt,Ft=wt("switch",qe),Kt=Ce.createElement("div",{className:`${Ft}-handle`},yt&&Ce.createElement(We.Z,{className:`${Ft}-loading-icon`})),[Pt,Et]=Me(Ft),at=(0,ae.Z)(ut),Ct=oe()(vt==null?void 0:vt.className,{[`${Ft}-small`]:at==="small",[`${Ft}-loading`]:yt,[`${Ft}-rtl`]:mt==="rtl"},_e,st,Et),nt=Object.assign(Object.assign({},vt==null?void 0:vt.style),pt);return Pt(Ce.createElement(fe.Z,{component:"Switch"},Ce.createElement(xe,Object.assign({},bt,{prefixCls:Ft,className:Ct,style:nt,disabled:Nt,ref:$e,loadingIcon:Kt}))))});Re.__ANT_SWITCH=!0;var Qe=Re},1710:function(Nn,mn,ze){"use strict";ze.d(mn,{default:function(){return Kp}});var We={},xt="rc-table-internal-hook",oe=ze(52487),Ue=ze(6089),Oe=ze(34280),ve=ze(13697),ce=ze(59301),Ce=ze(4676);function Ee(Wt){var Ut=ce.createContext(void 0),an=function(En){var Sn=En.value,Wn=En.children,Un=ce.useRef(Sn);Un.current=Sn;var In=ce.useState(function(){return{getValue:function(){return Un.current},listeners:new Set}}),nr=(0,oe.Z)(In,1),lr=nr[0];return(0,Oe.Z)(function(){(0,Ce.unstable_batchedUpdates)(function(){lr.listeners.forEach(function(or){or(Sn)})})},[Sn]),ce.createElement(Ut.Provider,{value:lr},Wn)};return{Context:Ut,Provider:an,defaultValue:Wt}}function ye(Wt,Ut){var an=(0,Ue.Z)(typeof Ut=="function"?Ut:function(or){if(Ut===void 0)return or;if(!Array.isArray(Ut))return or[Ut];var Br={};return Ut.forEach(function(Or){Br[Or]=or[Or]}),Br}),ln=ce.useContext(Wt==null?void 0:Wt.Context),En=ln||{},Sn=En.listeners,Wn=En.getValue,Un=ce.useRef();Un.current=an(ln?Wn():Wt==null?void 0:Wt.defaultValue);var In=ce.useState({}),nr=(0,oe.Z)(In,2),lr=nr[1];return(0,Oe.Z)(function(){if(!ln)return;function or(Br){var Or=an(Br);(0,ve.Z)(Un.current,Or,!0)||lr({})}return Sn.add(or),function(){Sn.delete(or)}},[ln]),Un.current}var be=ze(72308),me=ze(8654);function xe(){var Wt=ce.createContext(null);function Ut(){return ce.useContext(Wt)}function an(En,Sn){var Wn=(0,me.Yr)(En),Un=function(nr,lr){var or=Wn?{ref:lr}:{},Br=ce.useRef(0),Or=ce.useRef(nr),Sr=Ut();return Sr!==null?ce.createElement(En,(0,be.Z)({},nr,or)):((!Sn||Sn(Or.current,nr))&&(Br.current+=1),Or.current=nr,ce.createElement(Wt.Provider,{value:Br.current},ce.createElement(En,(0,be.Z)({},nr,or))))};return Wn?ce.forwardRef(Un):Un}function ln(En,Sn){var Wn=(0,me.Yr)(En),Un=function(nr,lr){var or=Wn?{ref:lr}:{};return Ut(),ce.createElement(En,(0,be.Z)({},nr,or))};return Wn?ce.memo(ce.forwardRef(Un),Sn):ce.memo(Un,Sn)}return{makeImmutable:an,responseImmutable:ln,useImmutableMark:Ut}}var fe=xe(),z=fe.makeImmutable,ee=fe.responseImmutable,ae=fe.useImmutableMark,re=xe(),le=re.makeImmutable,ue=re.responseImmutable,pe=re.useImmutableMark,Pe=Ee(),we=Pe;function Ne(Wt,Ut){var an=ce.useRef(0);an.current+=1;var ln=ce.useRef(Wt),En=[];Object.keys(Wt||{}).map(function(Wn){var Un;(Wt==null?void 0:Wt[Wn])!==((Un=ln.current)===null||Un===void 0?void 0:Un[Wn])&&En.push(Wn)}),ln.current=Wt;var Sn=ce.useRef([]);return En.length&&(Sn.current=En),ce.useDebugValue(an.current),ce.useDebugValue(Sn.current.join(", ")),Ut&&console.log("".concat(Ut,":"),an.current,Sn.current),an.current}var Ae=null,Te=ce.memo(function(){var Wt=Ne();return ce.createElement("h1",null,"Render Times: ",Wt)});Te.displayName="RenderBlock";var Me=ze(62853),Be=ze(77321),Re=ze(49618),Qe=ze(92310),He=ze.n(Qe),$e=ze(80547),qe=ze(97938),ut=ze(48736),ct=ce.createContext({renderWithProps:!1}),yt=ct,_e="RC_TABLE_KEY";function st(Wt){return Wt==null?[]:Array.isArray(Wt)?Wt:[Wt]}function pt(Wt){var Ut=[],an={};return Wt.forEach(function(ln){for(var En=ln||{},Sn=En.key,Wn=En.dataIndex,Un=Sn||st(Wn).join("-")||_e;an[Un];)Un="".concat(Un,"_next");an[Un]=!0,Ut.push(Un)}),Ut}function bt(Wt){return Wt!=null}function wt(Wt){return Wt&&(0,Me.Z)(Wt)==="object"&&!Array.isArray(Wt)&&!ce.isValidElement(Wt)}function mt(Wt,Ut,an,ln,En,Sn){var Wn=ce.useContext(yt),Un=pe(),In=(0,$e.Z)(function(){if(bt(ln))return[ln];var nr=Ut==null||Ut===""?[]:Array.isArray(Ut)?Ut:[Ut],lr=(0,qe.Z)(Wt,nr),or=lr,Br=void 0;if(En){var Or=En(lr,Wt,an);wt(Or)?(or=Or.children,Br=Or.props,Wn.renderWithProps=!0):or=Or}return[or,Br]},[Un,Wt,ln,Ut,En,an],function(nr,lr){if(Sn){var or=(0,oe.Z)(nr,2),Br=or[1],Or=(0,oe.Z)(lr,2),Sr=Or[1];return Sn(Sr,Br)}return Wn.renderWithProps?!0:!(0,ve.Z)(nr,lr,!0)});return In}function vt(Wt,Ut,an,ln){var En=Wt+Ut-1;return Wt<=ln&&En>=an}function St(Wt,Ut){return ye(we,function(an){var ln=vt(Wt,Ut||1,an.hoverStartRow,an.hoverEndRow);return[ln,an.onHover]})}var Nt=function(Ut){var an=Ut.ellipsis,ln=Ut.rowType,En=Ut.children,Sn,Wn=an===!0?{showTitle:!0}:an;return Wn&&(Wn.showTitle||ln==="header")&&(typeof En=="string"||typeof En=="number"?Sn=En.toString():ce.isValidElement(En)&&typeof En.props.children=="string"&&(Sn=En.props.children)),Sn};function Ft(Wt){var Ut,an,ln,En,Sn,Wn,Un,In,nr=Wt.component,lr=Wt.children,or=Wt.ellipsis,Br=Wt.scope,Or=Wt.prefixCls,Sr=Wt.className,ni=Wt.align,Pr=Wt.record,qr=Wt.render,_r=Wt.dataIndex,di=Wt.renderIndex,Ni=Wt.shouldCellUpdate,Ki=Wt.index,ii=Wt.rowType,Di=Wt.colSpan,mo=Wt.rowSpan,ui=Wt.fixLeft,Ai=Wt.fixRight,li=Wt.firstFixLeft,Ur=Wt.lastFixLeft,yi=Wt.firstFixRight,Wi=Wt.lastFixRight,$i=Wt.appendNode,to=Wt.additionalProps,oi=to===void 0?{}:to,yo=Wt.isSticky,Co="".concat(Or,"-cell"),qo=ye(we,["supportSticky","allColumnsFixedLeft"]),Io=qo.supportSticky,ka=qo.allColumnsFixedLeft,Ta=mt(Pr,_r,di,lr,qr,Ni),xo=(0,oe.Z)(Ta,2),Gi=xo[0],Xo=xo[1],Na={},wa=typeof ui=="number"&&Io,is=typeof Ai=="number"&&Io;wa&&(Na.position="sticky",Na.left=ui),is&&(Na.position="sticky",Na.right=Ai);var no=(Ut=(an=(ln=Xo==null?void 0:Xo.colSpan)!==null&&ln!==void 0?ln:oi.colSpan)!==null&&an!==void 0?an:Di)!==null&&Ut!==void 0?Ut:1,Yi=(En=(Sn=(Wn=Xo==null?void 0:Xo.rowSpan)!==null&&Wn!==void 0?Wn:oi.rowSpan)!==null&&Sn!==void 0?Sn:mo)!==null&&En!==void 0?En:1,ro=St(Ki,Yi),Bi=(0,oe.Z)(ro,2),Qo=Bi[0],Ii=Bi[1],vo=function(ts){var ps;Pr&&Ii(Ki,Ki+Yi-1),oi==null||(ps=oi.onMouseEnter)===null||ps===void 0||ps.call(oi,ts)},Ho=function(ts){var ps;Pr&&Ii(-1,-1),oi==null||(ps=oi.onMouseLeave)===null||ps===void 0||ps.call(oi,ts)};if(no===0||Yi===0)return null;var Uo=(Un=oi.title)!==null&&Un!==void 0?Un:Nt({rowType:ii,ellipsis:or,children:Gi}),Cs=He()(Co,Sr,(In={},(0,Re.Z)(In,"".concat(Co,"-fix-left"),wa&&Io),(0,Re.Z)(In,"".concat(Co,"-fix-left-first"),li&&Io),(0,Re.Z)(In,"".concat(Co,"-fix-left-last"),Ur&&Io),(0,Re.Z)(In,"".concat(Co,"-fix-left-all"),Ur&&ka&&Io),(0,Re.Z)(In,"".concat(Co,"-fix-right"),is&&Io),(0,Re.Z)(In,"".concat(Co,"-fix-right-first"),yi&&Io),(0,Re.Z)(In,"".concat(Co,"-fix-right-last"),Wi&&Io),(0,Re.Z)(In,"".concat(Co,"-ellipsis"),or),(0,Re.Z)(In,"".concat(Co,"-with-append"),$i),(0,Re.Z)(In,"".concat(Co,"-fix-sticky"),(wa||is)&&yo&&Io),(0,Re.Z)(In,"".concat(Co,"-row-hover"),!Xo&&Qo),In),oi.className,Xo==null?void 0:Xo.className),ls={};ni&&(ls.textAlign=ni);var Us=(0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)({},Na),oi.style),ls),Xo==null?void 0:Xo.style),ea=Gi;return(0,Me.Z)(ea)==="object"&&!Array.isArray(ea)&&!ce.isValidElement(ea)&&(ea=null),or&&(Ur||yi)&&(ea=ce.createElement("span",{className:"".concat(Co,"-content")},ea)),ce.createElement(nr,(0,be.Z)({},Xo,oi,{className:Cs,style:Us,title:Uo,scope:Br,onMouseEnter:vo,onMouseLeave:Ho,colSpan:no!==1?no:null,rowSpan:Yi!==1?Yi:null}),$i,ea)}var Kt=ce.memo(Ft);function Pt(Wt,Ut,an,ln,En,Sn){var Wn=an[Wt]||{},Un=an[Ut]||{},In,nr;Wn.fixed==="left"?In=ln.left[En==="rtl"?Ut:Wt]:Un.fixed==="right"&&(nr=ln.right[En==="rtl"?Wt:Ut]);var lr=!1,or=!1,Br=!1,Or=!1,Sr=an[Ut+1],ni=an[Wt-1],Pr=!(Sn!=null&&Sn.children);if(En==="rtl"){if(In!==void 0){var qr=ni&&ni.fixed==="left";Or=!qr&&Pr}else if(nr!==void 0){var _r=Sr&&Sr.fixed==="right";Br=!_r&&Pr}}else if(In!==void 0){var di=Sr&&Sr.fixed==="left";lr=!di&&Pr}else if(nr!==void 0){var Ni=ni&&ni.fixed==="right";or=!Ni&&Pr}return{fixLeft:In,fixRight:nr,lastFixLeft:lr,firstFixRight:or,lastFixRight:Br,firstFixLeft:Or,isSticky:ln.isSticky}}var Et=ce.createContext({}),at=Et;function Ct(Wt){var Ut=Wt.className,an=Wt.index,ln=Wt.children,En=Wt.colSpan,Sn=En===void 0?1:En,Wn=Wt.rowSpan,Un=Wt.align,In=ye(we,["prefixCls","direction"]),nr=In.prefixCls,lr=In.direction,or=ce.useContext(at),Br=or.scrollColumnIndex,Or=or.stickyOffsets,Sr=or.flattenColumns,ni=or.columns,Pr=an+Sn-1,qr=Pr+1===Br?Sn+1:Sn,_r=Pt(an,an+qr-1,Sr,Or,lr,ni==null?void 0:ni[an]);return ce.createElement(Kt,(0,be.Z)({className:Ut,index:an,component:"td",prefixCls:nr,record:null,dataIndex:null,align:Un,colSpan:qr,rowSpan:Wn,render:function(){return ln}},_r))}var nt=ze(74416),ht=["children"];function Mt(Wt){var Ut=Wt.children,an=(0,nt.Z)(Wt,ht);return ce.createElement("tr",an,Ut)}function gt(Wt){var Ut=Wt.children;return Ut}gt.Row=Mt,gt.Cell=Ct;var rt=gt;function Je(Wt){var Ut=Wt.children,an=Wt.stickyOffsets,ln=Wt.flattenColumns,En=Wt.columns,Sn=ye(we,"prefixCls"),Wn=ln.length-1,Un=ln[Wn],In=ce.useMemo(function(){return{stickyOffsets:an,flattenColumns:ln,scrollColumnIndex:Un!=null&&Un.scrollbar?Wn:null,columns:En}},[Un,ln,Wn,an,En]);return ce.createElement(at.Provider,{value:In},ce.createElement("tfoot",{className:"".concat(Sn,"-summary")},Ut))}var Xe=ue(Je),Ve=rt,tt=ze(70425),Ze=ze(29301),je=ze(29194),De=ze(24514),Ye=ze(75152),dt=ze(26112);function Ke(Wt,Ut,an,ln,En,Sn,Wn){Wt.push({record:Ut,indent:an,index:Wn});var Un=Sn(Ut),In=En==null?void 0:En.has(Un);if(Ut&&Array.isArray(Ut[ln])&&In)for(var nr=0;nr<Ut[ln].length;nr+=1)Ke(Wt,Ut[ln][nr],an+1,ln,En,Sn,nr)}function At(Wt,Ut,an,ln){var En=ce.useMemo(function(){if(an!=null&&an.size){for(var Sn=[],Wn=0;Wn<(Wt==null?void 0:Wt.length);Wn+=1){var Un=Wt[Wn];Ke(Sn,Un,0,Ut,an,ln,Wn)}return Sn}return Wt==null?void 0:Wt.map(function(In,nr){return{record:In,indent:0,index:nr}})},[Wt,Ut,an,ln]);return En}function zt(Wt){var Ut=Wt.prefixCls,an=Wt.children,ln=Wt.component,En=Wt.cellComponent,Sn=Wt.className,Wn=Wt.expanded,Un=Wt.colSpan,In=Wt.isEmpty,nr=ye(we,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),lr=nr.scrollbarSize,or=nr.fixHeader,Br=nr.fixColumn,Or=nr.componentWidth,Sr=nr.horizonScroll,ni=an;return(In?Sr&&Or:Br)&&(ni=ce.createElement("div",{style:{width:Or-(or?lr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ut,"-expanded-row-fixed")},ni)),ce.createElement(ln,{className:Sn,style:{display:Wn?null:"none"}},ce.createElement(Kt,{component:En,prefixCls:Ut,colSpan:Un},ni))}var _t=zt;function Ot(Wt,Ut,an,ln){var En=ye(we,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Sn=En.flattenColumns,Wn=En.expandableType,Un=En.expandedKeys,In=En.childrenColumnName,nr=En.onTriggerExpand,lr=En.rowExpandable,or=En.onRow,Br=En.expandRowByClick,Or=En.rowClassName,Sr=Wn==="nest",ni=Wn==="row"&&(!lr||lr(Wt)),Pr=ni||Sr,qr=Un&&Un.has(Ut),_r=In&&Wt&&Wt[In],di=(0,tt.useEvent)(nr),Ni=or==null?void 0:or(Wt,an),Ki=Ni==null?void 0:Ni.onClick,ii=function(Ai){Br&&Pr&&nr(Wt,Ai);for(var li=arguments.length,Ur=new Array(li>1?li-1:0),yi=1;yi<li;yi++)Ur[yi-1]=arguments[yi];Ki==null||Ki.apply(void 0,[Ai].concat(Ur))},Di;typeof Or=="string"?Di=Or:typeof Or=="function"&&(Di=Or(Wt,an,ln));var mo=pt(Sn);return(0,Be.Z)((0,Be.Z)({},En),{},{columnsKey:mo,nestExpandable:Sr,expanded:qr,hasNestChildren:_r,record:Wt,onTriggerExpand:di,rowSupportExpand:ni,expandable:Pr,rowProps:(0,Be.Z)((0,Be.Z)({},Ni),{},{className:He()(Di,Ni==null?void 0:Ni.className),onClick:ii})})}function Vt(Wt,Ut,an,ln,En){var Sn=Wt.record,Wn=Wt.prefixCls,Un=Wt.columnsKey,In=Wt.fixedInfoList,nr=Wt.expandIconColumnIndex,lr=Wt.nestExpandable,or=Wt.indentSize,Br=Wt.expandIcon,Or=Wt.expanded,Sr=Wt.hasNestChildren,ni=Wt.onTriggerExpand,Pr=Un[an],qr=In[an],_r;an===(nr||0)&&lr&&(_r=ce.createElement(ce.Fragment,null,ce.createElement("span",{style:{paddingLeft:"".concat(or*ln,"px")},className:"".concat(Wn,"-row-indent indent-level-").concat(ln)}),Br({prefixCls:Wn,expanded:Or,expandable:Sr,record:Sn,onExpand:ni})));var di;return Ut.onCell&&(di=Ut.onCell(Sn,En)),{key:Pr,fixedInfo:qr,appendCellNode:_r,additionalCellProps:di||{}}}function en(Wt){var Ut=Wt.className,an=Wt.style,ln=Wt.record,En=Wt.index,Sn=Wt.renderIndex,Wn=Wt.rowKey,Un=Wt.indent,In=Un===void 0?0:Un,nr=Wt.rowComponent,lr=Wt.cellComponent,or=Wt.scopeCellComponent,Br=Ot(ln,Wn,En,In),Or=Br.prefixCls,Sr=Br.flattenColumns,ni=Br.expandedRowClassName,Pr=Br.expandedRowRender,qr=Br.rowProps,_r=Br.expanded,di=Br.rowSupportExpand,Ni=ce.useState(!1),Ki=(0,oe.Z)(Ni,2),ii=Ki[0],Di=Ki[1];ce.useEffect(function(){_r&&Di(!0)},[_r]);var mo=ce.createElement(nr,(0,be.Z)({},qr,{"data-row-key":Wn,className:He()(Ut,"".concat(Or,"-row"),"".concat(Or,"-row-level-").concat(In),qr==null?void 0:qr.className),style:(0,Be.Z)((0,Be.Z)({},an),qr==null?void 0:qr.style)}),Sr.map(function(Ur,yi){var Wi=Ur.render,$i=Ur.dataIndex,to=Ur.className,oi=Vt(Br,Ur,yi,In,En),yo=oi.key,Co=oi.fixedInfo,qo=oi.appendCellNode,Io=oi.additionalCellProps;return ce.createElement(Kt,(0,be.Z)({className:to,ellipsis:Ur.ellipsis,align:Ur.align,scope:Ur.rowScope,component:Ur.rowScope?or:lr,prefixCls:Or,key:yo,record:ln,index:En,renderIndex:Sn,dataIndex:$i,render:Wi,shouldCellUpdate:Ur.shouldCellUpdate},Co,{appendNode:qo,additionalProps:Io}))})),ui;if(di&&(ii||_r)){var Ai=Pr(ln,En,In+1,_r),li=ni&&ni(ln,En,In);ui=ce.createElement(_t,{expanded:_r,className:He()("".concat(Or,"-expanded-row"),"".concat(Or,"-expanded-row-level-").concat(In+1),li),prefixCls:Or,component:nr,cellComponent:lr,colSpan:Sr.length,isEmpty:!1},Ai)}return ce.createElement(ce.Fragment,null,mo,ui)}en.displayName="BodyRow";var on=ue(en);function fn(Wt){var Ut=Wt.columnKey,an=Wt.onColumnResize,ln=ce.useRef();return ce.useEffect(function(){ln.current&&an(Ut,ln.current.offsetWidth)},[]),ce.createElement(Ze.Z,{data:Ut},ce.createElement("td",{ref:ln,style:{padding:0,border:0,height:0}},ce.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function jn(Wt){var Ut=Wt.prefixCls,an=Wt.columnsKey,ln=Wt.onColumnResize;return ce.createElement("tr",{"aria-hidden":"true",className:"".concat(Ut,"-measure-row"),style:{height:0,fontSize:0}},ce.createElement(Ze.Z.Collection,{onBatchResize:function(Sn){Sn.forEach(function(Wn){var Un=Wn.data,In=Wn.size;ln(Un,In.offsetWidth)})}},an.map(function(En){return ce.createElement(fn,{key:En,columnKey:En,onColumnResize:ln})})))}function er(Wt){var Ut=Wt.data,an=Wt.measureColumnWidth,ln=ye(we,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),En=ln.prefixCls,Sn=ln.getComponent,Wn=ln.onColumnResize,Un=ln.flattenColumns,In=ln.getRowKey,nr=ln.expandedKeys,lr=ln.childrenColumnName,or=ln.emptyNode,Br=At(Ut,lr,nr,In),Or=ce.useRef({renderWithProps:!1}),Sr=Sn(["body","wrapper"],"tbody"),ni=Sn(["body","row"],"tr"),Pr=Sn(["body","cell"],"td"),qr=Sn(["body","cell"],"th"),_r;Ut.length?_r=Br.map(function(Ni,Ki){var ii=Ni.record,Di=Ni.indent,mo=Ni.index,ui=In(ii,Ki);return ce.createElement(on,{key:ui,rowKey:ui,record:ii,index:Ki,renderIndex:mo,rowComponent:ni,cellComponent:Pr,scopeCellComponent:qr,getRowKey:In,indent:Di})}):_r=ce.createElement(_t,{expanded:!0,className:"".concat(En,"-placeholder"),prefixCls:En,component:ni,cellComponent:Pr,colSpan:Un.length,isEmpty:!0},or);var di=pt(Un);return ce.createElement(yt.Provider,{value:Or.current},ce.createElement(Sr,{className:"".concat(En,"-tbody")},an&&ce.createElement(jn,{prefixCls:En,columnsKey:di,onColumnResize:Wn}),_r))}er.displayName="Body";var tr=ue(er),ur=["expandable"],Tr="RC_TABLE_INTERNAL_COL_DEFINE";function Lr(Wt){var Ut=Wt.expandable,an=(0,nt.Z)(Wt,ur),ln;return"expandable"in Wt?ln=(0,Be.Z)((0,Be.Z)({},an),Ut):ln=an,ln.showExpandColumn===!1&&(ln.expandIconColumnIndex=-1),ln}var Ar=["columnType"];function Gr(Wt){for(var Ut=Wt.colWidths,an=Wt.columns,ln=Wt.columCount,En=[],Sn=ln||an.length,Wn=!1,Un=Sn-1;Un>=0;Un-=1){var In=Ut[Un],nr=an&&an[Un],lr=nr&&nr[Tr];if(In||lr||Wn){var or=lr||{},Br=or.columnType,Or=(0,nt.Z)(or,Ar);En.unshift(ce.createElement("col",(0,be.Z)({key:Un,style:{width:In}},Or))),Wn=!0}}return ce.createElement("colgroup",null,En)}var Kr=Gr,Mr=ze(80702),fi=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Jr(Wt,Ut){return(0,ce.useMemo)(function(){for(var an=[],ln=0;ln<Ut;ln+=1){var En=Wt[ln];if(En!==void 0)an[ln]=En;else return null}return an},[Wt.join("_"),Ut])}var it=ce.forwardRef(function(Wt,Ut){var an=Wt.className,ln=Wt.noData,En=Wt.columns,Sn=Wt.flattenColumns,Wn=Wt.colWidths,Un=Wt.columCount,In=Wt.stickyOffsets,nr=Wt.direction,lr=Wt.fixHeader,or=Wt.stickyTopOffset,Br=Wt.stickyBottomOffset,Or=Wt.stickyClassName,Sr=Wt.onScroll,ni=Wt.maxContentScroll,Pr=Wt.children,qr=(0,nt.Z)(Wt,fi),_r=ye(we,["prefixCls","scrollbarSize","isSticky"]),di=_r.prefixCls,Ni=_r.scrollbarSize,Ki=_r.isSticky,ii=Ki&&!lr?0:Ni,Di=ce.useRef(null),mo=ce.useCallback(function(to){(0,me.mH)(Ut,to),(0,me.mH)(Di,to)},[]);ce.useEffect(function(){var to;function oi(yo){var Co=yo,qo=Co.currentTarget,Io=Co.deltaX;Io&&(Sr({currentTarget:qo,scrollLeft:qo.scrollLeft+Io}),yo.preventDefault())}return(to=Di.current)===null||to===void 0||to.addEventListener("wheel",oi),function(){var yo;(yo=Di.current)===null||yo===void 0||yo.removeEventListener("wheel",oi)}},[]);var ui=ce.useMemo(function(){return Sn.every(function(to){return to.width})},[Sn]),Ai=Sn[Sn.length-1],li={fixed:Ai?Ai.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(di,"-cell-scrollbar")}}},Ur=(0,ce.useMemo)(function(){return ii?[].concat((0,Mr.Z)(En),[li]):En},[ii,En]),yi=(0,ce.useMemo)(function(){return ii?[].concat((0,Mr.Z)(Sn),[li]):Sn},[ii,Sn]),Wi=(0,ce.useMemo)(function(){var to=In.right,oi=In.left;return(0,Be.Z)((0,Be.Z)({},In),{},{left:nr==="rtl"?[].concat((0,Mr.Z)(oi.map(function(yo){return yo+ii})),[0]):oi,right:nr==="rtl"?to:[].concat((0,Mr.Z)(to.map(function(yo){return yo+ii})),[0]),isSticky:Ki})},[ii,In,Ki]),$i=Jr(Wn,Un);return ce.createElement("div",{style:(0,Be.Z)({overflow:"hidden"},Ki?{top:or,bottom:Br}:{}),ref:mo,className:He()(an,(0,Re.Z)({},Or,!!Or))},ce.createElement("table",{style:{tableLayout:"fixed",visibility:ln||$i?null:"hidden"}},(!ln||!ni||ui)&&ce.createElement(Kr,{colWidths:$i?[].concat((0,Mr.Z)($i),[ii]):[],columCount:Un+1,columns:yi}),Pr((0,Be.Z)((0,Be.Z)({},qr),{},{stickyOffsets:Wi,columns:Ur,flattenColumns:yi}))))});it.displayName="FixedHolder";var bi=ce.memo(it);function mi(Wt){var Ut=Wt.cells,an=Wt.stickyOffsets,ln=Wt.flattenColumns,En=Wt.rowComponent,Sn=Wt.cellComponent,Wn=Wt.tdCellComponent,Un=Wt.onHeaderRow,In=Wt.index,nr=ye(we,["prefixCls","direction"]),lr=nr.prefixCls,or=nr.direction,Br;Un&&(Br=Un(Ut.map(function(Sr){return Sr.column}),In));var Or=pt(Ut.map(function(Sr){return Sr.column}));return ce.createElement(En,Br,Ut.map(function(Sr,ni){var Pr=Sr.column,qr=Pt(Sr.colStart,Sr.colEnd,ln,an,or,Pr),_r;return Pr&&Pr.onHeaderCell&&(_r=Sr.column.onHeaderCell(Pr)),ce.createElement(Kt,(0,be.Z)({},Sr,{scope:Pr.title?Sr.colSpan>1?"colgroup":"col":null,ellipsis:Pr.ellipsis,align:Pr.align,component:Pr.title?Sn:Wn,prefixCls:lr,key:Or[ni]},qr,{additionalProps:_r,rowType:"header"}))}))}mi.displayName="HeaderRow";var Tn=mi;function dr(Wt){var Ut=[];function an(Wn,Un){var In=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ut[In]=Ut[In]||[];var nr=Un,lr=Wn.filter(Boolean).map(function(or){var Br={key:or.key,className:or.className||"",children:or.title,column:or,colStart:nr},Or=1,Sr=or.children;return Sr&&Sr.length>0&&(Or=an(Sr,nr,In+1).reduce(function(ni,Pr){return ni+Pr},0),Br.hasSubColumns=!0),"colSpan"in or&&(Or=or.colSpan),"rowSpan"in or&&(Br.rowSpan=or.rowSpan),Br.colSpan=Or,Br.colEnd=Br.colStart+Or-1,Ut[In].push(Br),nr+=Or,Or});return lr}an(Wt,0);for(var ln=Ut.length,En=function(Un){Ut[Un].forEach(function(In){!("rowSpan"in In)&&!In.hasSubColumns&&(In.rowSpan=ln-Un)})},Sn=0;Sn<ln;Sn+=1)En(Sn);return Ut}function ar(Wt){var Ut=Wt.stickyOffsets,an=Wt.columns,ln=Wt.flattenColumns,En=Wt.onHeaderRow,Sn=ye(we,["prefixCls","getComponent"]),Wn=Sn.prefixCls,Un=Sn.getComponent,In=ce.useMemo(function(){return dr(an)},[an]),nr=Un(["header","wrapper"],"thead"),lr=Un(["header","row"],"tr"),or=Un(["header","cell"],"th"),Br=Un(["header","cell"],"td");return ce.createElement(nr,{className:"".concat(Wn,"-thead")},In.map(function(Or,Sr){var ni=ce.createElement(Tn,{key:Sr,flattenColumns:ln,cells:Or,stickyOffsets:Ut,rowComponent:lr,cellComponent:or,tdCellComponent:Br,onHeaderRow:En,index:Sr});return ni}))}var vr=ue(ar),Jn=ze(11592);function zn(Wt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ut=="number"?Ut:Ut.endsWith("%")?Wt*parseFloat(Ut)/100:null}function $t(Wt,Ut){return ce.useMemo(function(){if(Ut&&Ut>0){var an=0,ln=0;Wt.forEach(function(nr){var lr=zn(Ut,nr.width);lr?an+=lr:ln+=1});var En=Ut-an,Sn=ln,Wn=En/ln,Un=0,In=Wt.map(function(nr){var lr=(0,Be.Z)({},nr),or=zn(Ut,lr.width);if(or)lr.width=or;else{var Br=Math.floor(Wn);lr.width=Sn===1?En:Br,En-=Br,Sn-=1}return Un+=lr.width,lr});return[In,Un]}return[Wt,Ut]},[Wt,Ut])}var Xt=["children"],Tt=["fixed"];function sn(Wt){return(0,Jn.Z)(Wt).filter(function(Ut){return ce.isValidElement(Ut)}).map(function(Ut){var an=Ut.key,ln=Ut.props,En=ln.children,Sn=(0,nt.Z)(ln,Xt),Wn=(0,Be.Z)({key:an},Sn);return En&&(Wn.children=sn(En)),Wn})}function pn(Wt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Wt.filter(function(an){return an&&(0,Me.Z)(an)==="object"}).reduce(function(an,ln,En){var Sn=ln.fixed,Wn=Sn===!0?"left":Sn,Un="".concat(Ut,"-").concat(En),In=ln.children;return In&&In.length>0?[].concat((0,Mr.Z)(an),(0,Mr.Z)(pn(In,Un).map(function(nr){return(0,Be.Z)({fixed:Wn},nr)}))):[].concat((0,Mr.Z)(an),[(0,Be.Z)((0,Be.Z)({key:Un},ln),{},{fixed:Wn})])},[])}function Yt(Wt){for(var Ut=!0,an=0;an<Wt.length;an+=1){var ln=Wt[an];if(Ut&&ln.fixed!=="left")Ut=!1;else if(!Ut&&ln.fixed==="left"){warning(!1,"Index ".concat(an-1," of `columns` missing `fixed='left'` prop."));break}}for(var En=!0,Sn=Wt.length-1;Sn>=0;Sn-=1){var Wn=Wt[Sn];if(En&&Wn.fixed!=="right")En=!1;else if(!En&&Wn.fixed==="right"){warning(!1,"Index ".concat(Sn+1," of `columns` missing `fixed='right'` prop."));break}}}function Bt(Wt){return Wt.map(function(Ut){var an=Ut.fixed,ln=(0,nt.Z)(Ut,Tt),En=an;return an==="left"?En="right":an==="right"&&(En="left"),(0,Be.Z)({fixed:En},ln)})}function un(Wt,Ut){var an=Wt.prefixCls,ln=Wt.columns,En=Wt.children,Sn=Wt.expandable,Wn=Wt.expandedKeys,Un=Wt.columnTitle,In=Wt.getRowKey,nr=Wt.onTriggerExpand,lr=Wt.expandIcon,or=Wt.rowExpandable,Br=Wt.expandIconColumnIndex,Or=Wt.direction,Sr=Wt.expandRowByClick,ni=Wt.columnWidth,Pr=Wt.fixed,qr=Wt.scrollWidth,_r=ce.useMemo(function(){return ln||sn(En)},[ln,En]),di=ce.useMemo(function(){if(Sn){var Ai,li=_r.slice();if(!li.includes(We)){var Ur=Br||0;Ur>=0&&li.splice(Ur,0,We)}var yi=li.indexOf(We);li=li.filter(function(oi,yo){return oi!==We||yo===yi});var Wi=_r[yi],$i;(Pr==="left"||Pr)&&!Br?$i="left":(Pr==="right"||Pr)&&Br===_r.length?$i="right":$i=Wi?Wi.fixed:null;var to=(Ai={},(0,Re.Z)(Ai,Tr,{className:"".concat(an,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Re.Z)(Ai,"title",Un),(0,Re.Z)(Ai,"fixed",$i),(0,Re.Z)(Ai,"className","".concat(an,"-row-expand-icon-cell")),(0,Re.Z)(Ai,"width",ni),(0,Re.Z)(Ai,"render",function(yo,Co,qo){var Io=In(Co,qo),ka=Wn.has(Io),Ta=or?or(Co):!0,xo=lr({prefixCls:an,expanded:ka,expandable:Ta,record:Co,onExpand:nr});return Sr?ce.createElement("span",{onClick:function(Xo){return Xo.stopPropagation()}},xo):xo}),Ai);return li.map(function(oi){return oi===We?to:oi})}return _r.filter(function(oi){return oi!==We})},[Sn,_r,In,Wn,lr,Or]),Ni=ce.useMemo(function(){var Ai=di;return Ut&&(Ai=Ut(Ai)),Ai.length||(Ai=[{render:function(){return null}}]),Ai},[Ut,di,Or]),Ki=ce.useMemo(function(){return Or==="rtl"?Bt(pn(Ni)):pn(Ni)},[Ni,Or,qr]),ii=$t(Ki,qr),Di=(0,oe.Z)(ii,2),mo=Di[0],ui=Di[1];return[Ni,mo,ui]}var bn=un;function On(Wt){var Ut,an=Wt.prefixCls,ln=Wt.record,En=Wt.onExpand,Sn=Wt.expanded,Wn=Wt.expandable,Un="".concat(an,"-row-expand-icon");if(!Wn)return ce.createElement("span",{className:He()(Un,"".concat(an,"-row-spaced"))});var In=function(lr){En(ln,lr),lr.stopPropagation()};return ce.createElement("span",{className:He()(Un,(Ut={},(0,Re.Z)(Ut,"".concat(an,"-row-expanded"),Sn),(0,Re.Z)(Ut,"".concat(an,"-row-collapsed"),!Sn),Ut)),onClick:In})}function Zn(Wt,Ut,an){var ln=[];function En(Sn){(Sn||[]).forEach(function(Wn,Un){ln.push(Ut(Wn,Un)),En(Wn[an])})}return En(Wt),ln}function Gt(Wt,Ut,an){var ln=Lr(Wt),En=ln.expandIcon,Sn=ln.expandedRowKeys,Wn=ln.defaultExpandedRowKeys,Un=ln.defaultExpandAllRows,In=ln.expandedRowRender,nr=ln.onExpand,lr=ln.onExpandedRowsChange,or=ln.childrenColumnName,Br=En||On,Or=or||"children",Sr=ce.useMemo(function(){return In?"row":Wt.expandable&&Wt.internalHooks===xt&&Wt.expandable.__PARENT_RENDER_ICON__||Ut.some(function(Ki){return Ki&&(0,Me.Z)(Ki)==="object"&&Ki[Or]})?"nest":!1},[!!In,Ut]),ni=ce.useState(function(){return Wn||(Un?Zn(Ut,an,Or):[])}),Pr=(0,oe.Z)(ni,2),qr=Pr[0],_r=Pr[1],di=ce.useMemo(function(){return new Set(Sn||qr||[])},[Sn,qr]),Ni=ce.useCallback(function(Ki){var ii=an(Ki,Ut.indexOf(Ki)),Di,mo=di.has(ii);mo?(di.delete(ii),Di=(0,Mr.Z)(di)):Di=[].concat((0,Mr.Z)(di),[ii]),_r(Di),nr&&nr(!mo,Ki),lr&&lr(Di)},[an,di,Ut,nr,lr]);return[ln,Sr,di,Br,Or,Ni]}function An(Wt,Ut,an,ln){var En=Wt.map(function(Sn,Wn){return Pt(Wn,Wn,Wt,Ut,an,ln==null?void 0:ln[Wn])});return(0,$e.Z)(function(){return En},[En],function(Sn,Wn){return!(0,ve.Z)(Sn,Wn)})}function Kn(Wt){var Ut=(0,ce.useRef)(Wt),an=(0,ce.useState)({}),ln=(0,oe.Z)(an,2),En=ln[1],Sn=(0,ce.useRef)(null),Wn=(0,ce.useRef)([]);function Un(In){Wn.current.push(In);var nr=Promise.resolve();Sn.current=nr,nr.then(function(){if(Sn.current===nr){var lr=Wn.current,or=Ut.current;Wn.current=[],lr.forEach(function(Br){Ut.current=Br(Ut.current)}),Sn.current=null,or!==Ut.current&&En({})}})}return(0,ce.useEffect)(function(){return function(){Sn.current=null}},[]),[Ut.current,Un]}function rr(Wt){var Ut=(0,ce.useRef)(Wt||null),an=(0,ce.useRef)();function ln(){window.clearTimeout(an.current)}function En(Wn){Ut.current=Wn,ln(),an.current=window.setTimeout(function(){Ut.current=null,an.current=void 0},100)}function Sn(){return Ut.current}return(0,ce.useEffect)(function(){return ln},[]),[En,Sn]}function xn(){var Wt=ce.useState(-1),Ut=(0,oe.Z)(Wt,2),an=Ut[0],ln=Ut[1],En=ce.useState(-1),Sn=(0,oe.Z)(En,2),Wn=Sn[0],Un=Sn[1],In=ce.useCallback(function(nr,lr){ln(nr),Un(lr)},[]);return[an,Wn,In]}var Cn=ze(47273),tn=(0,Cn.Z)()?window:null;function gn(Wt,Ut){var an=(0,Me.Z)(Wt)==="object"?Wt:{},ln=an.offsetHeader,En=ln===void 0?0:ln,Sn=an.offsetSummary,Wn=Sn===void 0?0:Sn,Un=an.offsetScroll,In=Un===void 0?0:Un,nr=an.getContainer,lr=nr===void 0?function(){return tn}:nr,or=lr()||tn;return ce.useMemo(function(){var Br=!!Wt;return{isSticky:Br,stickyClassName:Br?"".concat(Ut,"-sticky-holder"):"",offsetHeader:En,offsetSummary:Wn,offsetScroll:In,container:or}},[In,En,Wn,Ut,or])}function yn(Wt,Ut,an){var ln=(0,ce.useMemo)(function(){for(var En=[],Sn=[],Wn=0,Un=0,In=0;In<Ut;In+=1)if(an==="rtl"){Sn[In]=Un,Un+=Wt[In]||0;var nr=Ut-In-1;En[nr]=Wn,Wn+=Wt[nr]||0}else{En[In]=Wn,Wn+=Wt[In]||0;var lr=Ut-In-1;Sn[lr]=Un,Un+=Wt[lr]||0}return{left:En,right:Sn}},[Wt,Ut,an]);return ln}var vn=yn;function Ln(Wt){var Ut=Wt.className,an=Wt.children;return ce.createElement("div",{className:Ut},an)}var Fn=Ln,Gn=ze(8224),Hn=ze(55468),gr=function(Ut,an){var ln,En,Sn=Ut.scrollBodyRef,Wn=Ut.onScroll,Un=Ut.offsetScroll,In=Ut.container,nr=ye(we,"prefixCls"),lr=((ln=Sn.current)===null||ln===void 0?void 0:ln.scrollWidth)||0,or=((En=Sn.current)===null||En===void 0?void 0:En.clientWidth)||0,Br=lr&&or*(or/lr),Or=ce.useRef(),Sr=Kn({scrollLeft:0,isHiddenScrollBar:!1}),ni=(0,oe.Z)(Sr,2),Pr=ni[0],qr=ni[1],_r=ce.useRef({delta:0,x:0}),di=ce.useState(!1),Ni=(0,oe.Z)(di,2),Ki=Ni[0],ii=Ni[1],Di=function(){ii(!1)},mo=function(yi){yi.persist(),_r.current.delta=yi.pageX-Pr.scrollLeft,_r.current.x=0,ii(!0),yi.preventDefault()},ui=function(yi){var Wi,$i=yi||((Wi=window)===null||Wi===void 0?void 0:Wi.event),to=$i.buttons;if(!Ki||to===0){Ki&&ii(!1);return}var oi=_r.current.x+yi.pageX-_r.current.x-_r.current.delta;oi<=0&&(oi=0),oi+Br>=or&&(oi=or-Br),Wn({scrollLeft:oi/or*(lr+2)}),_r.current.x=yi.pageX},Ai=function(){if(Sn.current){var yi=(0,Hn.os)(Sn.current).top,Wi=yi+Sn.current.offsetHeight,$i=In===window?document.documentElement.scrollTop+window.innerHeight:(0,Hn.os)(In).top+In.clientHeight;Wi-(0,Ye.Z)()<=$i||yi>=$i-Un?qr(function(to){return(0,Be.Z)((0,Be.Z)({},to),{},{isHiddenScrollBar:!0})}):qr(function(to){return(0,Be.Z)((0,Be.Z)({},to),{},{isHiddenScrollBar:!1})})}},li=function(yi){qr(function(Wi){return(0,Be.Z)((0,Be.Z)({},Wi),{},{scrollLeft:yi/lr*or||0})})};return ce.useImperativeHandle(an,function(){return{setScrollLeft:li}}),ce.useEffect(function(){var Ur=(0,Gn.Z)(document.body,"mouseup",Di,!1),yi=(0,Gn.Z)(document.body,"mousemove",ui,!1);return Ai(),function(){Ur.remove(),yi.remove()}},[Br,Ki]),ce.useEffect(function(){var Ur=(0,Gn.Z)(In,"scroll",Ai,!1),yi=(0,Gn.Z)(window,"resize",Ai,!1);return function(){Ur.remove(),yi.remove()}},[In]),ce.useEffect(function(){Pr.isHiddenScrollBar||qr(function(Ur){var yi=Sn.current;return yi?(0,Be.Z)((0,Be.Z)({},Ur),{},{scrollLeft:yi.scrollLeft/yi.scrollWidth*yi.clientWidth}):Ur})},[Pr.isHiddenScrollBar]),lr<=or||!Br||Pr.isHiddenScrollBar?null:ce.createElement("div",{style:{height:(0,Ye.Z)(),width:or,bottom:Un},className:"".concat(nr,"-sticky-scroll")},ce.createElement("div",{onMouseDown:mo,ref:Or,className:He()("".concat(nr,"-sticky-scroll-bar"),(0,Re.Z)({},"".concat(nr,"-sticky-scroll-bar-active"),Ki)),style:{width:"".concat(Br,"px"),transform:"translate3d(".concat(Pr.scrollLeft,"px, 0, 0)")}}))},dn=ce.forwardRef(gr);function Dr(Wt){return null}var zr=Dr;function Qr(Wt){return null}var wn=Qr,Yn="rc-table",cr=[],Fr={};function fr(){return"No Data"}function br(Wt){var Ut,an=(0,Be.Z)({rowKey:"key",prefixCls:Yn,emptyText:fr},Wt),ln=an.prefixCls,En=an.className,Sn=an.rowClassName,Wn=an.style,Un=an.data,In=an.rowKey,nr=an.scroll,lr=an.tableLayout,or=an.direction,Br=an.title,Or=an.footer,Sr=an.summary,ni=an.caption,Pr=an.id,qr=an.showHeader,_r=an.components,di=an.emptyText,Ni=an.onRow,Ki=an.onHeaderRow,ii=an.internalHooks,Di=an.transformColumns,mo=an.internalRefs,ui=an.tailor,Ai=an.sticky,li=Un||cr,Ur=!!li.length,yi=ii===xt,Wi=ce.useCallback(function(na,Fa){return(0,qe.Z)(_r,na)||Fa},[_r]),$i=ce.useMemo(function(){return typeof In=="function"?In:function(na){var Fa=na&&na[In];return Fa}},[In]),to=Wi(["body"]),oi=xn(),yo=(0,oe.Z)(oi,3),Co=yo[0],qo=yo[1],Io=yo[2],ka=Gt(an,li,$i),Ta=(0,oe.Z)(ka,6),xo=Ta[0],Gi=Ta[1],Xo=Ta[2],Na=Ta[3],wa=Ta[4],is=Ta[5],no=nr==null?void 0:nr.x,Yi=ce.useState(0),ro=(0,oe.Z)(Yi,2),Bi=ro[0],Qo=ro[1],Ii=bn((0,Be.Z)((0,Be.Z)((0,Be.Z)({},an),xo),{},{expandable:!!xo.expandedRowRender,columnTitle:xo.columnTitle,expandedKeys:Xo,getRowKey:$i,onTriggerExpand:is,expandIcon:Na,expandIconColumnIndex:xo.expandIconColumnIndex,direction:or,scrollWidth:yi&&ui&&typeof no=="number"?no:null}),yi?Di:null),vo=(0,oe.Z)(Ii,3),Ho=vo[0],Uo=vo[1],Cs=vo[2],ls=Cs!=null?Cs:no,Us=ce.useMemo(function(){return{columns:Ho,flattenColumns:Uo}},[Ho,Uo]),ea=ce.useRef(),Ps=ce.useRef(),ts=ce.useRef(),ps=ce.useRef(),Ku=ce.useRef(),ta=ce.useState(!1),aa=(0,oe.Z)(ta,2),pa=aa[0],Qa=aa[1],gs=ce.useState(!1),ko=(0,oe.Z)(gs,2),va=ko[0],ms=ko[1],pl=Kn(new Map),Wl=(0,oe.Z)(pl,2),El=Wl[0],ql=Wl[1],eu=pt(Uo),Hl=eu.map(function(na){return El.get(na)}),ra=ce.useMemo(function(){return Hl},[Hl.join("_")]),Ms=vn(ra,Uo.length,or),Za=nr&&bt(nr.y),ya=nr&&bt(ls)||!!xo.fixed,Ul=ya&&Uo.some(function(na){var Fa=na.fixed;return Fa}),oc=ce.useRef(),tu=gn(Ai,ln),Mu=tu.isSticky,Vu=tu.offsetHeader,Al=tu.offsetSummary,_o=tu.offsetScroll,ba=tu.stickyClassName,us=tu.container,Ca=ce.useMemo(function(){return Sr==null?void 0:Sr(li)},[Sr,li]),Vo=(Za||Mu)&&ce.isValidElement(Ca)&&Ca.type===rt&&Ca.props.fixed,vs,gl,gu;Za&&(gl={overflowY:"scroll",maxHeight:nr.y}),ya&&(vs={overflowX:"auto"},Za||(gl={overflowY:"hidden"}),gu={width:ls===!0?"auto":ls,minWidth:"100%"});var cf=ce.useCallback(function(na,Fa){(0,je.Z)(ea.current)&&ql(function(Ns){if(Ns.get(na)!==Fa){var nu=new Map(Ns);return nu.set(na,Fa),nu}return Ns})},[]),cn=rr(null),Cc=(0,oe.Z)(cn,2),Xu=Cc[0],hf=Cc[1];function gh(na,Fa){Fa&&(typeof Fa=="function"?Fa(na):Fa.scrollLeft!==na&&(Fa.scrollLeft=na,Fa.scrollLeft!==na&&setTimeout(function(){Fa.scrollLeft=na},0)))}var Qc=(0,Ue.Z)(function(na){var Fa=na.currentTarget,Ns=na.scrollLeft,nu=or==="rtl",ru=typeof Ns=="number"?Ns:Fa.scrollLeft,Bd=Fa||Fr;if(!hf()||hf()===Bd){var Ac;Xu(Bd),gh(ru,Ps.current),gh(ru,ts.current),gh(ru,Ku.current),gh(ru,(Ac=oc.current)===null||Ac===void 0?void 0:Ac.setScrollLeft)}var Yh=Fa||Ps.current;if(Yh){var mu=Yh.scrollWidth,ac=Yh.clientWidth;if(mu===ac){Qa(!1),ms(!1);return}nu?(Qa(-ru<mu-ac),ms(-ru>0)):(Qa(ru>0),ms(ru<mu-ac))}}),Md=function(){ya&&ts.current?Qc({currentTarget:ts.current}):(Qa(!1),ms(!1))},Vp=function(Fa){var Ns=Fa.width;Ns!==Bi&&(Md(),Qo(ea.current?ea.current.offsetWidth:Ns))},Ls=ce.useRef(!1);ce.useEffect(function(){Ls.current&&Md()},[ya,Un,Ho.length]),ce.useEffect(function(){Ls.current=!0},[]);var Vh=ce.useState(0),Ld=(0,oe.Z)(Vh,2),Xh=Ld[0],df=Ld[1],Yf=ce.useState(!0),ff=(0,oe.Z)(Yf,2),Td=ff[0],Gl=ff[1];ce.useEffect(function(){(!ui||!yi)&&(ts.current instanceof Element?df((0,Ye.o)(ts.current).width):df((0,Ye.o)(ps.current).width)),Gl((0,De.G)("position","sticky"))},[]),ce.useEffect(function(){yi&&mo&&(mo.body.current=ts.current)});var mh=ce.useCallback(function(na){return ce.createElement(ce.Fragment,null,ce.createElement(vr,na),Vo==="top"&&ce.createElement(Xe,na,Ca))},[Vo,Ca]),pf=ce.useCallback(function(na){return ce.createElement(Xe,na,Ca)},[Ca]),Lu=Wi(["table"],"table"),Pc=ce.useMemo(function(){return lr||(Ul?ls==="max-content"?"auto":"fixed":Za||Mu||Uo.some(function(na){var Fa=na.ellipsis;return Fa})?"fixed":"auto")},[Za,Ul,Uo,lr,Mu]),vh,_c={colWidths:ra,columCount:Uo.length,stickyOffsets:Ms,onHeaderRow:Ki,fixHeader:Za,scroll:nr},ml=ce.useMemo(function(){return Ur?null:typeof di=="function"?di():di},[Ur,di]),Fd=ce.createElement(tr,{data:li,measureColumnWidth:Za||ya||Mu}),Dd=ce.createElement(Kr,{colWidths:Uo.map(function(na){var Fa=na.width;return Fa}),columns:Uo}),Zl=ni!=null?ce.createElement("caption",{className:"".concat(ln,"-caption")},ni):void 0,yh=(0,dt.Z)(an,{data:!0}),Od=(0,dt.Z)(an,{aria:!0});if(Za||Mu){var kd;typeof to=="function"?(kd=to(li,{scrollbarSize:Xh,ref:ts,onScroll:Qc}),_c.colWidths=Uo.map(function(na,Fa){var Ns=na.width,nu=Fa===Uo.length-1?Ns-Xh:Ns;return typeof nu=="number"&&!Number.isNaN(nu)?nu:0})):kd=ce.createElement("div",{style:(0,Be.Z)((0,Be.Z)({},vs),gl),onScroll:Qc,ref:ts,className:He()("".concat(ln,"-body"))},ce.createElement(Lu,(0,be.Z)({style:(0,Be.Z)((0,Be.Z)({},gu),{},{tableLayout:Pc})},Od),Zl,Dd,Fd,!Vo&&Ca&&ce.createElement(Xe,{stickyOffsets:Ms,flattenColumns:Uo,columns:Ho},Ca)));var Ec=(0,Be.Z)((0,Be.Z)((0,Be.Z)({noData:!li.length,maxContentScroll:ya&&ls==="max-content"},_c),Us),{},{direction:or,stickyClassName:ba,onScroll:Qc});vh=ce.createElement(ce.Fragment,null,qr!==!1&&ce.createElement(bi,(0,be.Z)({},Ec,{stickyTopOffset:Vu,className:"".concat(ln,"-header"),ref:Ps}),mh),kd,Vo&&Vo!=="top"&&ce.createElement(bi,(0,be.Z)({},Ec,{stickyBottomOffset:Al,className:"".concat(ln,"-summary"),ref:Ku}),pf),Mu&&ce.createElement(dn,{ref:oc,offsetScroll:_o,scrollBodyRef:ts,onScroll:Qc,container:us}))}else vh=ce.createElement("div",{style:(0,Be.Z)((0,Be.Z)({},vs),gl),className:He()("".concat(ln,"-content")),onScroll:Qc,ref:ts},ce.createElement(Lu,(0,be.Z)({style:(0,Be.Z)((0,Be.Z)({},gu),{},{tableLayout:Pc})},Od),Zl,Dd,qr!==!1&&ce.createElement(vr,(0,be.Z)({},_c,Us)),Fd,Ca&&ce.createElement(Xe,{stickyOffsets:Ms,flattenColumns:Uo,columns:Ho},Ca)));var ol=ce.createElement("div",(0,be.Z)({className:He()(ln,En,(Ut={},(0,Re.Z)(Ut,"".concat(ln,"-rtl"),or==="rtl"),(0,Re.Z)(Ut,"".concat(ln,"-ping-left"),pa),(0,Re.Z)(Ut,"".concat(ln,"-ping-right"),va),(0,Re.Z)(Ut,"".concat(ln,"-layout-fixed"),lr==="fixed"),(0,Re.Z)(Ut,"".concat(ln,"-fixed-header"),Za),(0,Re.Z)(Ut,"".concat(ln,"-fixed-column"),Ul),(0,Re.Z)(Ut,"".concat(ln,"-scroll-horizontal"),ya),(0,Re.Z)(Ut,"".concat(ln,"-has-fix-left"),Uo[0]&&Uo[0].fixed),(0,Re.Z)(Ut,"".concat(ln,"-has-fix-right"),Uo[Uo.length-1]&&Uo[Uo.length-1].fixed==="right"),Ut)),style:Wn,id:Pr,ref:ea},yh),Br&&ce.createElement(Fn,{className:"".concat(ln,"-title")},Br(li)),ce.createElement("div",{ref:ps,className:"".concat(ln,"-container")},vh),Or&&ce.createElement(Fn,{className:"".concat(ln,"-footer")},Or(li)));ya&&(ol=ce.createElement(Ze.Z,{onResize:Vp},ol));var Nd=An(Uo,Ms,or,Ho),cs=ce.useMemo(function(){return{scrollX:ls,prefixCls:ln,getComponent:Wi,scrollbarSize:Xh,direction:or,fixedInfoList:Nd,isSticky:Mu,supportSticky:Td,componentWidth:Bi,fixHeader:Za,fixColumn:Ul,horizonScroll:ya,tableLayout:Pc,rowClassName:Sn,expandedRowClassName:xo.expandedRowClassName,expandIcon:Na,expandableType:Gi,expandRowByClick:xo.expandRowByClick,expandedRowRender:xo.expandedRowRender,onTriggerExpand:is,expandIconColumnIndex:xo.expandIconColumnIndex,indentSize:xo.indentSize,allColumnsFixedLeft:Uo.every(function(na){return na.fixed==="left"}),emptyNode:ml,columns:Ho,flattenColumns:Uo,onColumnResize:cf,hoverStartRow:Co,hoverEndRow:qo,onHover:Io,rowExpandable:xo.rowExpandable,onRow:Ni,getRowKey:$i,expandedKeys:Xo,childrenColumnName:wa}},[ls,ln,Wi,Xh,or,Nd,Mu,Td,Bi,Za,Ul,ya,Pc,Sn,xo.expandedRowClassName,Na,Gi,xo.expandRowByClick,xo.expandedRowRender,is,xo.expandIconColumnIndex,xo.indentSize,ml,Ho,Uo,cf,Co,qo,Io,xo.rowExpandable,Ni,$i,Xo,wa]);return ce.createElement(we.Provider,{value:cs},ol)}function Hr(Wt){return le(br,Wt)}var Rr=Hr();Rr.EXPAND_COLUMN=We,Rr.INTERNAL_HOOKS=xt,Rr.Column=zr,Rr.ColumnGroup=wn,Rr.Summary=Ve;var Cr=Rr,Zr=ze(45680),Dn=Ee(null),Ei=Ee(null);function kn(Wt,Ut,an){var ln=Ut||1;return an[Wt+ln]-(an[Wt]||0)}function ci(Wt){var Ut=Wt.rowInfo,an=Wt.column,ln=Wt.colIndex,En=Wt.indent,Sn=Wt.index,Wn=Wt.renderIndex,Un=Wt.record,In=Wt.style,nr=Wt.className,lr=Wt.inverse,or=Wt.getHeight,Br=an.render,Or=an.dataIndex,Sr=an.className,ni=an.width,Pr=ye(Ei,["columnsOffset"]),qr=Pr.columnsOffset,_r=Vt(Ut,an,ln,En,Sn),di=_r.key,Ni=_r.fixedInfo,Ki=_r.appendCellNode,ii=_r.additionalCellProps,Di=ii.style,mo=ii.colSpan,ui=mo===void 0?1:mo,Ai=ii.rowSpan,li=Ai===void 0?1:Ai,Ur=ln-1,yi=kn(Ur,ui,qr),Wi=ui>1?ni-yi:0,$i=(0,Be.Z)((0,Be.Z)((0,Be.Z)({},Di),In),{},{flex:"0 0 ".concat(yi,"px"),width:"".concat(yi,"px"),marginRight:Wi,pointerEvents:"auto"}),to=ce.useMemo(function(){return lr?li<=1:ui===0||li===0||li>1},[li,ui,lr]);to?$i.visibility="hidden":lr&&($i.height=or==null?void 0:or(li));var oi=to?function(){return null}:Br,yo={};return(li===0||ui===0)&&(yo.rowSpan=1,yo.colSpan=1),ce.createElement(Kt,(0,be.Z)({className:He()(Sr,nr),ellipsis:an.ellipsis,align:an.align,scope:an.rowScope,component:"div",prefixCls:Ut.prefixCls,key:di,record:Un,index:Sn,renderIndex:Wn,dataIndex:Or,render:oi,shouldCellUpdate:an.shouldCellUpdate},Ni,{appendNode:Ki,additionalProps:(0,Be.Z)((0,Be.Z)({},ii),{},{style:$i},yo)}))}var Ri=ci,$r=["data","index","className","rowKey","style","extra","getHeight"],Xi=ce.forwardRef(function(Wt,Ut){var an=Wt.data,ln=Wt.index,En=Wt.className,Sn=Wt.rowKey,Wn=Wt.style,Un=Wt.extra,In=Wt.getHeight,nr=(0,nt.Z)(Wt,$r),lr=an.record,or=an.indent,Br=an.index,Or=ye(we,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Sr=Or.scrollX,ni=Or.flattenColumns,Pr=Or.prefixCls,qr=Or.fixColumn,_r=Or.componentWidth,di=Ot(lr,Sn,ln,or),Ni=di.rowSupportExpand,Ki=di.expanded,ii=di.rowProps,Di=di.expandedRowRender,mo=di.expandedRowClassName,ui;if(Ni&&Ki){var Ai=Di(lr,ln,or+1,Ki),li=mo==null?void 0:mo(lr,ln,or),Ur={};qr&&(Ur={style:(0,Re.Z)({},"--virtual-width","".concat(_r,"px"))});var yi="".concat(Pr,"-expanded-row-cell");ui=ce.createElement("div",{className:He()("".concat(Pr,"-expanded-row"),"".concat(Pr,"-expanded-row-level-").concat(or+1),li)},ce.createElement(Kt,{component:"div",prefixCls:Pr,className:He()(yi,(0,Re.Z)({},"".concat(yi,"-fixed"),qr)),additionalProps:Ur},Ai))}var Wi=(0,Be.Z)((0,Be.Z)({},Wn),{},{width:Sr});Un&&(Wi.position="absolute",Wi.pointerEvents="none");var $i=ce.createElement("div",(0,be.Z)({},ii,nr,{ref:Ni?null:Ut,className:He()(En,"".concat(Pr,"-row"),ii==null?void 0:ii.className,(0,Re.Z)({},"".concat(Pr,"-row-extra"),Un)),style:(0,Be.Z)((0,Be.Z)({},Wi),ii==null?void 0:ii.style)}),ni.map(function(to,oi){return ce.createElement(Ri,{key:oi,rowInfo:di,column:to,colIndex:oi,indent:or,index:ln,renderIndex:Br,record:lr,inverse:Un,getHeight:In})}));return Ni?ce.createElement("div",{ref:Ut},$i,ui):$i}),Oi=ue(Xi),Ir=Oi,jr=ce.forwardRef(function(Wt,Ut){var an=Wt.data,ln=Wt.onScroll,En=ye(we,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Sn=En.flattenColumns,Wn=En.onColumnResize,Un=En.getRowKey,In=En.expandedKeys,nr=En.prefixCls,lr=En.childrenColumnName,or=En.emptyNode,Br=En.scrollX,Or=ye(Dn),Sr=Or.scrollY,ni=Or.listItemHeight,Pr=ce.useRef(),qr=At(an,lr,In,Un),_r=ce.useMemo(function(){var ui=0;return Sn.map(function(Ai){var li=Ai.width,Ur=Ai.key;return ui+=li,[Ur,li,ui]})},[Sn]),di=ce.useMemo(function(){return _r.map(function(ui){return ui[2]})},[_r]);ce.useEffect(function(){_r.forEach(function(ui){var Ai=(0,oe.Z)(ui,2),li=Ai[0],Ur=Ai[1];Wn(li,Ur)})},[_r]),ce.useImperativeHandle(Ut,function(){var ui={};return Object.defineProperty(ui,"scrollLeft",{get:function(){var li;return((li=Pr.current)===null||li===void 0?void 0:li.getScrollInfo().x)||0},set:function(li){var Ur;(Ur=Pr.current)===null||Ur===void 0||Ur.scrollTo({left:li})}}),ui});var Ni=function(Ai,li){var Ur,yi=(Ur=qr[li])===null||Ur===void 0?void 0:Ur.record,Wi=Ai.onCell;if(Wi){var $i,to=Wi(yi,li);return($i=to==null?void 0:to.rowSpan)!==null&&$i!==void 0?$i:1}return 1},Ki=function(Ai){var li=Ai.start,Ur=Ai.end,yi=Ai.getSize,Wi=Ai.offsetY;if(Ur<0)return null;for(var $i=Sn.filter(function(no){return Ni(no,li)===0}),to=li,oi=function(Yi){if($i=$i.filter(function(ro){return Ni(ro,Yi)===0}),!$i.length)return to=Yi,"break"},yo=li;yo>=0;yo-=1){var Co=oi(yo);if(Co==="break")break}for(var qo=Sn.filter(function(no){return Ni(no,Ur)!==1}),Io=Ur,ka=function(Yi){if(qo=qo.filter(function(ro){return Ni(ro,Yi)!==1}),!qo.length)return Io=Math.max(Yi-1,Ur),"break"},Ta=Ur;Ta<qr.length;Ta+=1){var xo=ka(Ta);if(xo==="break")break}for(var Gi=[],Xo=function(Yi){var ro=qr[Yi];if(!ro)return"continue";Sn.some(function(Bi){return Ni(Bi,Yi)>1})&&Gi.push(Yi)},Na=to;Na<=Io;Na+=1)var wa=Xo(Na);var is=Gi.map(function(no){var Yi=qr[no],ro=Un(Yi.record,no),Bi=function(vo){var Ho=no+vo-1,Uo=Un(qr[Ho].record,Ho),Cs=yi(ro,Uo);return Cs.bottom-Cs.top},Qo=yi(ro);return ce.createElement(Ir,{key:no,data:Yi,rowKey:ro,index:no,style:{top:-Wi+Qo.top},extra:!0,getHeight:Bi})});return is},ii=ce.useMemo(function(){return{columnsOffset:di}},[di]),Di="".concat(nr,"-tbody"),mo;return qr.length?mo=ce.createElement(Zr.Z,{fullHeight:!1,ref:Pr,className:He()(Di,"".concat(Di,"-virtual")),height:Sr,itemHeight:ni||24,data:qr,itemKey:function(Ai){return Un(Ai.record)},scrollWidth:Br,onVirtualScroll:function(Ai){var li=Ai.x;ln({scrollLeft:li})},extraRender:Ki},function(ui,Ai,li){var Ur=Un(ui.record,Ai);return ce.createElement(Ir,(0,be.Z)({data:ui,rowKey:Ur,index:Ai},li))}):mo=ce.createElement("div",{className:He()("".concat(nr,"-placeholder"))},ce.createElement(Kt,{component:"div",prefixCls:nr},or)),ce.createElement(Ei.Provider,{value:ii},mo)}),xi=ue(jr),ki=xi,pr=function(Ut,an){var ln=an.ref,En=an.onScroll;return ce.createElement(ki,{ref:ln,data:Ut,onScroll:En})},kt=100;function Li(Wt){var Ut=Wt.columns,an=Wt.scroll,ln=Wt.prefixCls,En=ln===void 0?Yn:ln,Sn=Wt.className,Wn=Wt.listItemHeight,Un=an||{},In=Un.x,nr=Un.y;typeof In!="number"&&(In=((Ut||[]).length+1)*kt),typeof nr!="number"&&(nr=500);var lr=ce.useMemo(function(){return{scrollY:nr,listItemHeight:Wn}},[nr,Wn]);return ce.createElement(Dn.Provider,{value:lr},ce.createElement(Cr,(0,be.Z)({},Wt,{className:He()(Sn,"".concat(En,"-virtual")),scroll:(0,Be.Z)((0,Be.Z)({},an),{},{x:In}),components:{body:pr},columns:Ut,internalHooks:xt,tailor:!0})))}function ao(Wt){return le(Li,Wt)}var Pi=ao(),co=null;function wo(Wt){return null}var ti=wo;function hi(Wt){return null}var Fi=hi,wi=ze(2738),so=ze(68031),Po=ze(36355),Vr=ze(93891),Xr=ze(19716),qn=ze(8628),si=ze(31724),qi=ze(58421),Ro=ze(71418),lo=ze(88088);function Qi(Wt){return function(an){let{prefixCls:ln,onExpand:En,record:Sn,expanded:Wn,expandable:Un}=an;const In=`${ln}-row-expand-icon`;return ce.createElement("button",{type:"button",onClick:nr=>{En(Sn,nr),nr.stopPropagation()},className:He()(In,{[`${In}-spaced`]:!Un,[`${In}-expanded`]:Un&&Wn,[`${In}-collapsed`]:Un&&!Wn}),"aria-label":Wn?Wt.collapse:Wt.expand,"aria-expanded":Wn})}}var Do=Qi;function Oo(Wt,Ut){return"key"in Wt&&Wt.key!==void 0&&Wt.key!==null?Wt.key:Wt.dataIndex?Array.isArray(Wt.dataIndex)?Wt.dataIndex.join("."):Wt.dataIndex:Ut}function oa(Wt,Ut){return Ut?`${Ut}-${Wt}`:`${Wt}`}function la(Wt,Ut){return typeof Wt=="function"?Wt(Ut):Wt}function Ma(Wt,Ut){const an=la(Wt,Ut);return Object.prototype.toString.call(an)==="[object Object]"?"":an}var Mn={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"},ha=Mn,fu=ze(7657),xs=function(Ut,an){return ce.createElement(fu.Z,(0,be.Z)({},Ut,{ref:an,icon:ha}))},bo=ce.forwardRef(xs),_i=bo,da=ze(56762);function Ao(Wt){const Ut=ce.useRef(Wt),an=(0,da.Z)();return[()=>Ut.current,ln=>{Ut.current=ln,an()}]}var eo=ze(3113),Bo=ze(24905),ws=ze(38854),Ci=ze(64165),ho=ze(20834),oo=ze(40875),kr=ze(5112),za=ze(17574),Wa=ze(47472),Es=ze(92832);function Nl(Wt){let{value:Ut,onChange:an,filterSearch:ln,tablePrefixCls:En,locale:Sn}=Wt;return ln?ce.createElement("div",{className:`${En}-filter-dropdown-search`},ce.createElement(Es.default,{prefix:ce.createElement(Wa.Z,null),placeholder:Sn.filterSearchPlaceholder,onChange:an,value:Ut,htmlSize:1,className:`${En}-filter-dropdown-search-input`})):null}var $l=Nl,wr=ze(10228);const ua=Wt=>{const{keyCode:Ut}=Wt;Ut===wr.Z.ENTER&&Wt.stopPropagation()};var Cl=ce.forwardRef((Wt,Ut)=>ce.createElement("div",{className:Wt.className,onClick:an=>an.stopPropagation(),onKeyDown:ua,ref:Ut},Wt.children));function Bl(Wt){let Ut=[];return(Wt||[]).forEach(an=>{let{value:ln,children:En}=an;Ut.push(ln),En&&(Ut=[].concat((0,Mr.Z)(Ut),(0,Mr.Z)(Bl(En))))}),Ut}function Il(Wt){return Wt.some(Ut=>{let{children:an}=Ut;return an})}function zi(Wt,Ut){return typeof Ut=="string"||typeof Ut=="number"?Ut==null?void 0:Ut.toString().toLowerCase().includes(Wt.trim().toLowerCase()):!1}function mc(Wt){let{filters:Ut,prefixCls:an,filteredKeys:ln,filterMultiple:En,searchValue:Sn,filterSearch:Wn}=Wt;return Ut.map((Un,In)=>{const nr=String(Un.value);if(Un.children)return{key:nr||In,label:Un.text,popupClassName:`${an}-dropdown-submenu`,children:mc({filters:Un.children,prefixCls:an,filteredKeys:ln,filterMultiple:En,searchValue:Sn,filterSearch:Wn})};const lr=En?Bo.default:kr.ZP,or={key:Un.value!==void 0?nr:In,label:ce.createElement(ce.Fragment,null,ce.createElement(lr,{checked:ln.includes(nr)}),ce.createElement("span",null,Un.text))};return Sn.trim()?typeof Wn=="function"?Wn(Sn,Un)?or:null:zi(Sn,Un.text)?or:null:or})}function tl(Wt){var Ut,an;const{tablePrefixCls:ln,prefixCls:En,column:Sn,dropdownPrefixCls:Wn,columnKey:Un,filterMultiple:In,filterMode:nr="menu",filterSearch:lr=!1,filterState:or,triggerFilter:Br,locale:Or,children:Sr,getPopupContainer:ni}=Wt,{filterDropdownOpen:Pr,onFilterDropdownOpenChange:qr,filterResetToDefaultFilteredValue:_r,defaultFilteredValue:di,filterDropdownVisible:Ni,onFilterDropdownVisibleChange:Ki}=Sn,[ii,Di]=ce.useState(!1),mo=!!(or&&(!((Ut=or.filteredKeys)===null||Ut===void 0)&&Ut.length||or.forceFiltered)),ui=Ii=>{Di(Ii),qr==null||qr(Ii),Ki==null||Ki(Ii)},Ai=(an=Pr!=null?Pr:Ni)!==null&&an!==void 0?an:ii,li=or==null?void 0:or.filteredKeys,[Ur,yi]=Ao(li||[]),Wi=Ii=>{let{selectedKeys:vo}=Ii;yi(vo)},$i=(Ii,vo)=>{let{node:Ho,checked:Uo}=vo;Wi(In?{selectedKeys:Ii}:{selectedKeys:Uo&&Ho.key?[Ho.key]:[]})};ce.useEffect(()=>{ii&&Wi({selectedKeys:li||[]})},[li]);const[to,oi]=ce.useState([]),yo=Ii=>{oi(Ii)},[Co,qo]=ce.useState(""),Io=Ii=>{const{value:vo}=Ii.target;qo(vo)};ce.useEffect(()=>{ii||qo("")},[ii]);const ka=Ii=>{const vo=Ii&&Ii.length?Ii:null;if(vo===null&&(!or||!or.filteredKeys)||(0,ve.Z)(vo,or==null?void 0:or.filteredKeys,!0))return null;Br({column:Sn,key:Un,filteredKeys:vo})},Ta=()=>{ui(!1),ka(Ur())},xo=function(){let{confirm:Ii,closeDropdown:vo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ii&&ka([]),vo&&ui(!1),qo(""),yi(_r?(di||[]).map(Ho=>String(Ho)):[])},Gi=function(){let{closeDropdown:Ii}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ii&&ui(!1),ka(Ur())},Xo=Ii=>{Ii&&li!==void 0&&yi(li||[]),ui(Ii),!Ii&&!Sn.filterDropdown&&Ta()},Na=He()({[`${Wn}-menu-without-submenu`]:!Il(Sn.filters||[])}),wa=Ii=>{if(Ii.target.checked){const vo=Bl(Sn==null?void 0:Sn.filters).map(Ho=>String(Ho));yi(vo)}else yi([])},is=Ii=>{let{filters:vo}=Ii;return(vo||[]).map((Ho,Uo)=>{const Cs=String(Ho.value),ls={title:Ho.text,key:Ho.value!==void 0?Cs:Uo};return Ho.children&&(ls.children=is({filters:Ho.children})),ls})},no=Ii=>{var vo;return Object.assign(Object.assign({},Ii),{text:Ii.title,value:Ii.key,children:((vo=Ii.children)===null||vo===void 0?void 0:vo.map(Ho=>no(Ho)))||[]})};let Yi;if(typeof Sn.filterDropdown=="function")Yi=Sn.filterDropdown({prefixCls:`${Wn}-custom`,setSelectedKeys:Ii=>Wi({selectedKeys:Ii}),selectedKeys:Ur(),confirm:Gi,clearFilters:xo,filters:Sn.filters,visible:Ai,close:()=>{ui(!1)}});else if(Sn.filterDropdown)Yi=Sn.filterDropdown;else{const Ii=Ur()||[],vo=()=>(Sn.filters||[]).length===0?ce.createElement(Ci.Z,{image:Ci.Z.PRESENTED_IMAGE_SIMPLE,description:Or.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):nr==="tree"?ce.createElement(ce.Fragment,null,ce.createElement($l,{filterSearch:lr,value:Co,onChange:Io,tablePrefixCls:ln,locale:Or}),ce.createElement("div",{className:`${ln}-filter-dropdown-tree`},In?ce.createElement(Bo.default,{checked:Ii.length===Bl(Sn.filters).length,indeterminate:Ii.length>0&&Ii.length<Bl(Sn.filters).length,className:`${ln}-filter-dropdown-checkall`,onChange:wa},Or.filterCheckall):null,ce.createElement(za.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:In,checkStrictly:!In,className:`${Wn}-menu`,onCheck:$i,checkedKeys:Ii,selectedKeys:Ii,showIcon:!1,treeData:is({filters:Sn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Co.trim()?Uo=>typeof lr=="function"?lr(Co,no(Uo)):zi(Co,Uo.title):void 0}))):ce.createElement(ce.Fragment,null,ce.createElement($l,{filterSearch:lr,value:Co,onChange:Io,tablePrefixCls:ln,locale:Or}),ce.createElement(ho.default,{selectable:!0,multiple:In,prefixCls:`${Wn}-menu`,className:Na,onSelect:Wi,onDeselect:Wi,selectedKeys:Ii,getPopupContainer:ni,openKeys:to,onOpenChange:yo,items:mc({filters:Sn.filters||[],filterSearch:lr,prefixCls:En,filteredKeys:Ur(),filterMultiple:In,searchValue:Co})})),Ho=()=>_r?(0,ve.Z)((di||[]).map(Uo=>String(Uo)),Ii,!0):Ii.length===0;Yi=ce.createElement(ce.Fragment,null,vo(),ce.createElement("div",{className:`${En}-dropdown-btns`},ce.createElement(eo.ZP,{type:"link",size:"small",disabled:Ho(),onClick:()=>xo()},Or.filterReset),ce.createElement(eo.ZP,{type:"primary",size:"small",onClick:Ta},Or.filterConfirm)))}Sn.filterDropdown&&(Yi=ce.createElement(oo.J,{selectable:void 0},Yi));const ro=()=>ce.createElement(Cl,{className:`${En}-dropdown`},Yi);let Bi;typeof Sn.filterIcon=="function"?Bi=Sn.filterIcon(mo):Sn.filterIcon?Bi=Sn.filterIcon:Bi=ce.createElement(_i,null);const{direction:Qo}=ce.useContext(Po.E_);return ce.createElement("div",{className:`${En}-column`},ce.createElement("span",{className:`${ln}-column-title`},Sr),ce.createElement(ws.Z,{dropdownRender:ro,trigger:["click"],open:Ai,onOpenChange:Xo,getPopupContainer:ni,placement:Qo==="rtl"?"bottomLeft":"bottomRight"},ce.createElement("span",{role:"button",tabIndex:-1,className:He()(`${En}-trigger`,{active:mo}),onClick:Ii=>{Ii.stopPropagation()}},Bi)))}var nl=tl;function ks(Wt,Ut,an){let ln=[];return(Wt||[]).forEach((En,Sn)=>{var Wn;const Un=oa(Sn,an);if(En.filters||"filterDropdown"in En||"onFilter"in En)if("filteredValue"in En){let In=En.filteredValue;"filterDropdown"in En||(In=(Wn=In==null?void 0:In.map(String))!==null&&Wn!==void 0?Wn:In),ln.push({column:En,key:Oo(En,Un),filteredKeys:In,forceFiltered:En.filtered})}else ln.push({column:En,key:Oo(En,Un),filteredKeys:Ut&&En.defaultFilteredValue?En.defaultFilteredValue:void 0,forceFiltered:En.filtered});"children"in En&&(ln=[].concat((0,Mr.Z)(ln),(0,Mr.Z)(ks(En.children,Ut,Un))))}),ln}function Eu(Wt,Ut,an,ln,En,Sn,Wn,Un){return an.map((In,nr)=>{const lr=oa(nr,Un),{filterMultiple:or=!0,filterMode:Br,filterSearch:Or}=In;let Sr=In;if(Sr.filters||Sr.filterDropdown){const ni=Oo(Sr,lr),Pr=ln.find(qr=>{let{key:_r}=qr;return ni===_r});Sr=Object.assign(Object.assign({},Sr),{title:qr=>ce.createElement(nl,{tablePrefixCls:Wt,prefixCls:`${Wt}-filter`,dropdownPrefixCls:Ut,column:Sr,columnKey:ni,filterState:Pr,filterMultiple:or,filterMode:Br,filterSearch:Or,triggerFilter:Sn,locale:En,getPopupContainer:Wn},la(In.title,qr))})}return"children"in Sr&&(Sr=Object.assign(Object.assign({},Sr),{children:Eu(Wt,Ut,Sr.children,ln,En,Sn,Wn,lr)})),Sr})}function Ru(Wt){const Ut={};return Wt.forEach(an=>{let{key:ln,filteredKeys:En,column:Sn}=an;const{filters:Wn,filterDropdown:Un}=Sn;if(Un)Ut[ln]=En||null;else if(Array.isArray(En)){const In=Bl(Wn);Ut[ln]=In.filter(nr=>En.includes(String(nr)))}else Ut[ln]=null}),Ut}function Ws(Wt,Ut){return Ut.reduce((an,ln)=>{const{column:{onFilter:En,filters:Sn},filteredKeys:Wn}=ln;return En&&Wn&&Wn.length?an.filter(Un=>Wn.some(In=>{const nr=Bl(Sn),lr=nr.findIndex(Br=>String(Br)===String(In)),or=lr!==-1?nr[lr]:In;return En(or,Un)})):an},Wt)}const dl=Wt=>Wt.flatMap(Ut=>"children"in Ut?[Ut].concat((0,Mr.Z)(dl(Ut.children||[]))):[Ut]);function Hc(Wt){let{prefixCls:Ut,dropdownPrefixCls:an,mergedColumns:ln,onFilterChange:En,getPopupContainer:Sn,locale:Wn}=Wt;const Un=ce.useMemo(()=>dl(ln||[]),[ln]),[In,nr]=ce.useState(()=>ks(Un,!0)),lr=ce.useMemo(()=>{const Sr=ks(Un,!1);if(Sr.length===0)return Sr;let ni=!0,Pr=!0;if(Sr.forEach(qr=>{let{filteredKeys:_r}=qr;_r!==void 0?ni=!1:Pr=!1}),ni){const qr=(Un||[]).map((_r,di)=>Oo(_r,oa(di)));return In.filter(_r=>{let{key:di}=_r;return qr.includes(di)}).map(_r=>{const di=Un[qr.findIndex(Ni=>Ni===_r.key)];return Object.assign(Object.assign({},_r),{column:Object.assign(Object.assign({},_r.column),di),forceFiltered:di.filtered})})}return Sr},[Un,In]),or=ce.useMemo(()=>Ru(lr),[lr]),Br=Sr=>{const ni=lr.filter(Pr=>{let{key:qr}=Pr;return qr!==Sr.key});ni.push(Sr),nr(ni),En(Ru(ni),ni)};return[Sr=>Eu(Ut,an,Sr,lr,Wn,Br,Sn),lr,or]}var hh=Hc;function Uc(Wt,Ut,an){const ln=ce.useRef({});function En(Sn){if(!ln.current||ln.current.data!==Wt||ln.current.childrenColumnName!==Ut||ln.current.getRowKey!==an){let Un=function(In){In.forEach((nr,lr)=>{const or=an(nr,lr);Wn.set(or,nr),nr&&typeof nr=="object"&&Ut in nr&&Un(nr[Ut]||[])})};const Wn=new Map;Un(Wt),ln.current={data:Wt,childrenColumnName:Ut,kvMap:Wn,getRowKey:an}}return ln.current.kvMap.get(Sn)}return[En]}var Gh=ze(50371),Gc=function(Wt,Ut){var an={};for(var ln in Wt)Object.prototype.hasOwnProperty.call(Wt,ln)&&Ut.indexOf(ln)<0&&(an[ln]=Wt[ln]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,ln=Object.getOwnPropertySymbols(Wt);En<ln.length;En++)Ut.indexOf(ln[En])<0&&Object.prototype.propertyIsEnumerable.call(Wt,ln[En])&&(an[ln[En]]=Wt[ln[En]]);return an};const vc=10;function zu(Wt,Ut){const an={current:Wt.current,pageSize:Wt.pageSize};return Object.keys(Ut&&typeof Ut=="object"?Ut:{}).forEach(En=>{const Sn=Wt[En];typeof Sn!="function"&&(an[En]=Sn)}),an}function jl(Wt,Ut,an){const ln=an&&typeof an=="object"?an:{},{total:En=0}=ln,Sn=Gc(ln,["total"]),[Wn,Un]=(0,ce.useState)(()=>({current:"defaultCurrent"in Sn?Sn.defaultCurrent:1,pageSize:"defaultPageSize"in Sn?Sn.defaultPageSize:vc})),In=(0,Gh.Z)(Wn,Sn,{total:En>0?En:Wt}),nr=Math.ceil((En||Wt)/In.pageSize);In.current>nr&&(In.current=nr||1);const lr=(Br,Or)=>{Un({current:Br!=null?Br:1,pageSize:Or||In.pageSize})},or=(Br,Or)=>{var Sr;an&&((Sr=an.onChange)===null||Sr===void 0||Sr.call(an,Br,Or)),lr(Br,Or),Ut(Br,Or||(In==null?void 0:In.pageSize))};return an===!1?[{},()=>{}]:[Object.assign(Object.assign({},In),{onChange:or}),lr]}var dh=jl,Zc=ze(84105),yc=ze(35654),io=ze(90782),zo=ze(71430),As=ze(18929);const _a={},Ha="SELECT_ALL",ga="SELECT_INVERT",La="SELECT_NONE",Ya=[],Ua=(Wt,Ut)=>{let an=[];return(Ut||[]).forEach(ln=>{an.push(ln),ln&&typeof ln=="object"&&Wt in ln&&(an=[].concat((0,Mr.Z)(an),(0,Mr.Z)(Ua(Wt,ln[Wt]))))}),an};var Rl=(Wt,Ut)=>{const{preserveSelectedRowKeys:an,selectedRowKeys:ln,defaultSelectedRowKeys:En,getCheckboxProps:Sn,onChange:Wn,onSelect:Un,onSelectAll:In,onSelectInvert:nr,onSelectNone:lr,onSelectMultiple:or,columnWidth:Br,type:Or,selections:Sr,fixed:ni,renderCell:Pr,hideSelectAll:qr,checkStrictly:_r=!0}=Ut||{},{prefixCls:di,data:Ni,pageData:Ki,getRecordByKey:ii,getRowKey:Di,expandType:mo,childrenColumnName:ui,locale:Ai,getPopupContainer:li}=Wt,[Ur,yi]=(0,As.Z)(ln||En||Ya,{value:ln}),Wi=ce.useRef(new Map),$i=(0,ce.useCallback)(no=>{if(an){const Yi=new Map;no.forEach(ro=>{let Bi=ii(ro);!Bi&&Wi.current.has(ro)&&(Bi=Wi.current.get(ro)),Yi.set(ro,Bi)}),Wi.current=Yi}},[ii,an]);ce.useEffect(()=>{$i(Ur)},[Ur]);const{keyEntities:to}=(0,ce.useMemo)(()=>{if(_r)return{keyEntities:null};let no=Ni;if(an){const Yi=new Set(Ni.map((Bi,Qo)=>Di(Bi,Qo))),ro=Array.from(Wi.current).reduce((Bi,Qo)=>{let[Ii,vo]=Qo;return Yi.has(Ii)?Bi:Bi.concat(vo)},[]);no=[].concat((0,Mr.Z)(no),(0,Mr.Z)(ro))}return(0,zo.I8)(no,{externalGetKey:Di,childrenPropName:ui})},[Ni,Di,_r,ui,an]),oi=(0,ce.useMemo)(()=>Ua(ui,Ki),[ui,Ki]),yo=(0,ce.useMemo)(()=>{const no=new Map;return oi.forEach((Yi,ro)=>{const Bi=Di(Yi,ro),Qo=(Sn?Sn(Yi):null)||{};no.set(Bi,Qo)}),no},[oi,Di,Sn]),Co=(0,ce.useCallback)(no=>{var Yi;return!!(!((Yi=yo.get(Di(no)))===null||Yi===void 0)&&Yi.disabled)},[yo,Di]),[qo,Io]=(0,ce.useMemo)(()=>{if(_r)return[Ur||[],[]];const{checkedKeys:no,halfCheckedKeys:Yi}=(0,io.S)(Ur,!0,to,Co);return[no||[],Yi]},[Ur,_r,to,Co]),ka=(0,ce.useMemo)(()=>{const no=Or==="radio"?qo.slice(0,1):qo;return new Set(no)},[qo,Or]),Ta=(0,ce.useMemo)(()=>Or==="radio"?new Set:new Set(Io),[Io,Or]),[xo,Gi]=(0,ce.useState)(null);ce.useEffect(()=>{Ut||yi(Ya)},[!!Ut]);const Xo=(0,ce.useCallback)((no,Yi)=>{let ro,Bi;$i(no),an?(ro=no,Bi=no.map(Qo=>Wi.current.get(Qo))):(ro=[],Bi=[],no.forEach(Qo=>{const Ii=ii(Qo);Ii!==void 0&&(ro.push(Qo),Bi.push(Ii))})),yi(ro),Wn==null||Wn(ro,Bi,{type:Yi})},[yi,ii,Wn,an]),Na=(0,ce.useCallback)((no,Yi,ro,Bi)=>{if(Un){const Qo=ro.map(Ii=>ii(Ii));Un(ii(no),Yi,Qo,Bi)}Xo(ro,"single")},[Un,ii,Xo]),wa=(0,ce.useMemo)(()=>!Sr||qr?null:(Sr===!0?[Ha,ga,La]:Sr).map(Yi=>Yi===Ha?{key:"all",text:Ai.selectionAll,onSelect(){Xo(Ni.map((ro,Bi)=>Di(ro,Bi)).filter(ro=>{const Bi=yo.get(ro);return!(Bi!=null&&Bi.disabled)||ka.has(ro)}),"all")}}:Yi===ga?{key:"invert",text:Ai.selectInvert,onSelect(){const ro=new Set(ka);Ki.forEach((Qo,Ii)=>{const vo=Di(Qo,Ii),Ho=yo.get(vo);Ho!=null&&Ho.disabled||(ro.has(vo)?ro.delete(vo):ro.add(vo))});const Bi=Array.from(ro);nr&&nr(Bi),Xo(Bi,"invert")}}:Yi===La?{key:"none",text:Ai.selectNone,onSelect(){lr==null||lr(),Xo(Array.from(ka).filter(ro=>{const Bi=yo.get(ro);return Bi==null?void 0:Bi.disabled}),"none")}}:Yi).map(Yi=>Object.assign(Object.assign({},Yi),{onSelect:function(){for(var ro,Bi,Qo=arguments.length,Ii=new Array(Qo),vo=0;vo<Qo;vo++)Ii[vo]=arguments[vo];(Bi=Yi.onSelect)===null||Bi===void 0||(ro=Bi).call.apply(ro,[Yi].concat(Ii)),Gi(null)}})),[Sr,ka,Ki,Di,nr,Xo]);return[(0,ce.useCallback)(no=>{var Yi;if(!Ut)return no.filter(ta=>ta!==_a);let ro=(0,Mr.Z)(no);const Bi=new Set(ka),Qo=oi.map(Di).filter(ta=>!yo.get(ta).disabled),Ii=Qo.every(ta=>Bi.has(ta)),vo=Qo.some(ta=>Bi.has(ta)),Ho=()=>{const ta=[];Ii?Qo.forEach(pa=>{Bi.delete(pa),ta.push(pa)}):Qo.forEach(pa=>{Bi.has(pa)||(Bi.add(pa),ta.push(pa))});const aa=Array.from(Bi);In==null||In(!Ii,aa.map(pa=>ii(pa)),ta.map(pa=>ii(pa))),Xo(aa,"all"),Gi(null)};let Uo;if(Or!=="radio"){let ta;if(wa){const ko={getPopupContainer:li,items:wa.map((va,ms)=>{const{key:pl,text:Wl,onSelect:El}=va;return{key:pl!=null?pl:ms,onClick:()=>{El==null||El(Qo)},label:Wl}})};ta=ce.createElement("div",{className:`${di}-selection-extra`},ce.createElement(ws.Z,{menu:ko,getPopupContainer:li},ce.createElement("span",null,ce.createElement(Zc.Z,null))))}const aa=oi.map((ko,va)=>{const ms=Di(ko,va),pl=yo.get(ms)||{};return Object.assign({checked:Bi.has(ms)},pl)}).filter(ko=>{let{disabled:va}=ko;return va}),pa=!!aa.length&&aa.length===oi.length,Qa=pa&&aa.every(ko=>{let{checked:va}=ko;return va}),gs=pa&&aa.some(ko=>{let{checked:va}=ko;return va});Uo=!qr&&ce.createElement("div",{className:`${di}-selection`},ce.createElement(Bo.default,{checked:pa?Qa:!!oi.length&&Ii,indeterminate:pa?!Qa&&gs:!Ii&&vo,onChange:Ho,disabled:oi.length===0||pa,"aria-label":ta?"Custom selection":"Select all",skipGroup:!0}),ta)}let Cs;Or==="radio"?Cs=(ta,aa,pa)=>{const Qa=Di(aa,pa),gs=Bi.has(Qa);return{node:ce.createElement(kr.ZP,Object.assign({},yo.get(Qa),{checked:gs,onClick:ko=>ko.stopPropagation(),onChange:ko=>{Bi.has(Qa)||Na(Qa,!0,[Qa],ko.nativeEvent)}})),checked:gs}}:Cs=(ta,aa,pa)=>{var Qa;const gs=Di(aa,pa),ko=Bi.has(gs),va=Ta.has(gs),ms=yo.get(gs);let pl;return mo==="nest"?pl=va:pl=(Qa=ms==null?void 0:ms.indeterminate)!==null&&Qa!==void 0?Qa:va,{node:ce.createElement(Bo.default,Object.assign({},ms,{indeterminate:pl,checked:ko,skipGroup:!0,onClick:Wl=>Wl.stopPropagation(),onChange:Wl=>{let{nativeEvent:El}=Wl;const{shiftKey:ql}=El;let eu=-1,Hl=-1;if(ql&&_r){const ra=new Set([xo,gs]);Qo.some((Ms,Za)=>{if(ra.has(Ms))if(eu===-1)eu=Za;else return Hl=Za,!0;return!1})}if(Hl!==-1&&eu!==Hl&&_r){const ra=Qo.slice(eu,Hl+1),Ms=[];ko?ra.forEach(ya=>{Bi.has(ya)&&(Ms.push(ya),Bi.delete(ya))}):ra.forEach(ya=>{Bi.has(ya)||(Ms.push(ya),Bi.add(ya))});const Za=Array.from(Bi);or==null||or(!ko,Za.map(ya=>ii(ya)),Ms.map(ya=>ii(ya))),Xo(Za,"multiple")}else{const ra=qo;if(_r){const Ms=ko?(0,yc._5)(ra,gs):(0,yc.L0)(ra,gs);Na(gs,!ko,Ms,El)}else{const Ms=(0,io.S)([].concat((0,Mr.Z)(ra),[gs]),!0,to,Co),{checkedKeys:Za,halfCheckedKeys:ya}=Ms;let Ul=Za;if(ko){const oc=new Set(Za);oc.delete(gs),Ul=(0,io.S)(Array.from(oc),{checked:!1,halfCheckedKeys:ya},to,Co).checkedKeys}Na(gs,!ko,Ul,El)}}Gi(ko?null:gs)}})),checked:ko}};const ls=(ta,aa,pa)=>{const{node:Qa,checked:gs}=Cs(ta,aa,pa);return Pr?Pr(gs,aa,pa,Qa):Qa};if(!ro.includes(_a))if(ro.findIndex(ta=>{var aa;return((aa=ta[Tr])===null||aa===void 0?void 0:aa.columnType)==="EXPAND_COLUMN"})===0){const[ta,...aa]=ro;ro=[ta,_a].concat((0,Mr.Z)(aa))}else ro=[_a].concat((0,Mr.Z)(ro));const Us=ro.indexOf(_a);ro=ro.filter((ta,aa)=>ta!==_a||aa===Us);const ea=ro[Us-1],Ps=ro[Us+1];let ts=ni;ts===void 0&&((Ps==null?void 0:Ps.fixed)!==void 0?ts=Ps.fixed:(ea==null?void 0:ea.fixed)!==void 0&&(ts=ea.fixed)),ts&&ea&&((Yi=ea[Tr])===null||Yi===void 0?void 0:Yi.columnType)==="EXPAND_COLUMN"&&ea.fixed===void 0&&(ea.fixed=ts);const ps=He()(`${di}-selection-col`,{[`${di}-selection-col-with-dropdown`]:Sr&&Or==="checkbox"}),Ku={fixed:ts,width:Br,className:`${di}-selection-column`,title:Ut.columnTitle||Uo,render:ls,onCell:Ut.onCell,[Tr]:{className:ps}};return ro.map(ta=>ta===_a?Ku:ta)},[Di,oi,Ut,qo,ka,Ta,Br,wa,mo,xo,yo,or,Na,Co]),ka]},Da=ze(89489),wd=ze(59477),bd=ze(6848);const Kc="ascend",gi="descend";function fh(Wt){return typeof Wt.sorter=="object"&&typeof Wt.sorter.multiple=="number"?Wt.sorter.multiple:!1}function rn(Wt){return typeof Wt=="function"?Wt:Wt&&typeof Wt=="object"&&Wt.compare?Wt.compare:!1}function $n(Wt,Ut){return Ut?Wt[Wt.indexOf(Ut)+1]:Wt[0]}function Cd(Wt,Ut,an){let ln=[];function En(Sn,Wn){ln.push({column:Sn,key:Oo(Sn,Wn),multiplePriority:fh(Sn),sortOrder:Sn.sortOrder})}return(Wt||[]).forEach((Sn,Wn)=>{const Un=oa(Wn,an);Sn.children?("sortOrder"in Sn&&En(Sn,Un),ln=[].concat((0,Mr.Z)(ln),(0,Mr.Z)(Cd(Sn.children,Ut,Un)))):Sn.sorter&&("sortOrder"in Sn?En(Sn,Un):Ut&&Sn.defaultSortOrder&&ln.push({column:Sn,key:Oo(Sn,Un),multiplePriority:fh(Sn),sortOrder:Sn.defaultSortOrder}))}),ln}function af(Wt,Ut,an,ln,En,Sn,Wn,Un){return(Ut||[]).map((In,nr)=>{const lr=oa(nr,Un);let or=In;if(or.sorter){const Br=or.sortDirections||En,Or=or.showSorterTooltip===void 0?Wn:or.showSorterTooltip,Sr=Oo(or,lr),ni=an.find(mo=>{let{key:ui}=mo;return ui===Sr}),Pr=ni?ni.sortOrder:null,qr=$n(Br,Pr);let _r;if(In.sortIcon)_r=In.sortIcon({sortOrder:Pr});else{const mo=Br.includes(Kc)&&ce.createElement(wd.Z,{className:He()(`${Wt}-column-sorter-up`,{active:Pr===Kc})}),ui=Br.includes(gi)&&ce.createElement(Da.Z,{className:He()(`${Wt}-column-sorter-down`,{active:Pr===gi})});_r=ce.createElement("span",{className:He()(`${Wt}-column-sorter`,{[`${Wt}-column-sorter-full`]:!!(mo&&ui)})},ce.createElement("span",{className:`${Wt}-column-sorter-inner`,"aria-hidden":"true"},mo,ui))}const{cancelSort:di,triggerAsc:Ni,triggerDesc:Ki}=Sn||{};let ii=di;qr===gi?ii=Ki:qr===Kc&&(ii=Ni);const Di=typeof Or=="object"?Or:{title:ii};or=Object.assign(Object.assign({},or),{className:He()(or.className,{[`${Wt}-column-sort`]:Pr}),title:mo=>{const ui=ce.createElement("div",{className:`${Wt}-column-sorters`},ce.createElement("span",{className:`${Wt}-column-title`},la(In.title,mo)),_r);return Or?ce.createElement(bd.Z,Object.assign({},Di),ui):ui},onHeaderCell:mo=>{const ui=In.onHeaderCell&&In.onHeaderCell(mo)||{},Ai=ui.onClick,li=ui.onKeyDown;ui.onClick=Wi=>{ln({column:In,key:Sr,sortOrder:qr,multiplePriority:fh(In)}),Ai==null||Ai(Wi)},ui.onKeyDown=Wi=>{Wi.keyCode===wr.Z.ENTER&&(ln({column:In,key:Sr,sortOrder:qr,multiplePriority:fh(In)}),li==null||li(Wi))};const Ur=Ma(In.title,{}),yi=Ur==null?void 0:Ur.toString();return Pr?ui["aria-sort"]=Pr==="ascend"?"ascending":"descending":ui["aria-label"]=yi||"",ui.className=He()(ui.className,`${Wt}-column-has-sorters`),ui.tabIndex=0,In.ellipsis&&(ui.title=(Ur!=null?Ur:"").toString()),ui}})}return"children"in or&&(or=Object.assign(Object.assign({},or),{children:af(Wt,or.children,an,ln,En,Sn,Wn,lr)})),or})}function Hu(Wt){const{column:Ut,sortOrder:an}=Wt;return{column:Ut,order:an,field:Ut.dataIndex,columnKey:Ut.key}}function Uu(Wt){const Ut=Wt.filter(an=>{let{sortOrder:ln}=an;return ln}).map(Hu);return Ut.length===0&&Wt.length?Object.assign(Object.assign({},Hu(Wt[Wt.length-1])),{column:void 0}):Ut.length<=1?Ut[0]||{}:Ut}function ic(Wt,Ut,an){const ln=Ut.slice().sort((Wn,Un)=>Un.multiplePriority-Wn.multiplePriority),En=Wt.slice(),Sn=ln.filter(Wn=>{let{column:{sorter:Un},sortOrder:In}=Wn;return rn(Un)&&In});return Sn.length?En.sort((Wn,Un)=>{for(let In=0;In<Sn.length;In+=1){const nr=Sn[In],{column:{sorter:lr},sortOrder:or}=nr,Br=rn(lr);if(Br&&or){const Or=Br(Wn,Un,or);if(Or!==0)return or===Kc?Or:-Or}}return 0}).map(Wn=>{const Un=Wn[an];return Un?Object.assign(Object.assign({},Wn),{[an]:ic(Un,Ut,an)}):Wn}):En}function Pd(Wt){let{prefixCls:Ut,mergedColumns:an,onSorterChange:ln,sortDirections:En,tableLocale:Sn,showSorterTooltip:Wn}=Wt;const[Un,In]=ce.useState(Cd(an,!0)),nr=ce.useMemo(()=>{let Sr=!0;const ni=Cd(an,!1);if(!ni.length)return Un;const Pr=[];function qr(di){Sr?Pr.push(di):Pr.push(Object.assign(Object.assign({},di),{sortOrder:null}))}let _r=null;return ni.forEach(di=>{_r===null?(qr(di),di.sortOrder&&(di.multiplePriority===!1?Sr=!1:_r=!0)):(_r&&di.multiplePriority!==!1||(Sr=!1),qr(di))}),Pr},[an,Un]),lr=ce.useMemo(()=>{const Sr=nr.map(ni=>{let{column:Pr,sortOrder:qr}=ni;return{column:Pr,order:qr}});return{sortColumns:Sr,sortColumn:Sr[0]&&Sr[0].column,sortOrder:Sr[0]&&Sr[0].order}},[nr]);function or(Sr){let ni;Sr.multiplePriority===!1||!nr.length||nr[0].multiplePriority===!1?ni=[Sr]:ni=[].concat((0,Mr.Z)(nr.filter(Pr=>{let{key:qr}=Pr;return qr!==Sr.key})),[Sr]),In(ni),ln(Uu(ni),ni)}return[Sr=>af(Ut,Sr,nr,or,En,Sn,Wn),nr,lr,()=>Uu(nr)]}function ph(Wt,Ut){return Wt.map(an=>{const ln=Object.assign({},an);return ln.title=la(an.title,Ut),"children"in ln&&(ln.children=ph(ln.children,Ut)),ln})}function Ga(Wt){return[ce.useCallback(an=>ph(an,Wt),[Wt])]}var Zi=Hr((Wt,Ut)=>{const{_renderTimes:an}=Wt,{_renderTimes:ln}=Ut;return an!==ln}),rl=ao((Wt,Ut)=>{const{_renderTimes:an}=Wt,{_renderTimes:ln}=Ut;return an!==ln}),Hs=ze(64993),xa=ze(17313),Mo=ze(83116),ss=ze(37613),ma=Wt=>{const{componentCls:Ut}=Wt,an=`${Wt.lineWidth}px ${Wt.lineType} ${Wt.tableBorderColor}`,ln=(En,Sn,Wn)=>({[`&${Ut}-${En}`]:{[`> ${Ut}-container`]:{[`> ${Ut}-content, > ${Ut}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ut}-expanded-row-fixed`]:{margin:`-${Sn}px -${Wn+Wt.lineWidth}px`}}}}}});return{[`${Ut}-wrapper`]:{[`${Ut}${Ut}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ut}-title`]:{border:an,borderBottom:0},[`> ${Ut}-container`]:{borderInlineStart:an,borderTop:an,[`
> ${Ut}-content,
> ${Ut}-header,
> ${Ut}-body,
> ${Ut}-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:an},"> thead":{"> tr:not(:last-child) > th":{borderBottom:an},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ut}-cell-fix-right-first::after`]:{borderInlineEnd:an}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ut}-expanded-row-fixed`]:{margin:`-${Wt.tablePaddingVertical}px -${Wt.tablePaddingHorizontal+Wt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Wt.lineWidth,bottom:0,borderInlineEnd:an,content:'""'}}}}}},[`&${Ut}-scroll-horizontal`]:{[`> ${Ut}-container > ${Ut}-body`]:{"> table > tbody":{[`
> tr${Ut}-expanded-row,
> tr${Ut}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},ln("middle",Wt.tablePaddingVerticalMiddle,Wt.tablePaddingHorizontalMiddle)),ln("small",Wt.tablePaddingVerticalSmall,Wt.tablePaddingHorizontalSmall)),{[`> ${Ut}-footer`]:{border:an,borderTop:0}}),[`${Ut}-cell`]:{[`${Ut}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Wt.lineWidth}px 0 ${Wt.lineWidth}px ${Wt.tableHeaderBg}`}},[`${Ut}-bordered ${Ut}-cell-scrollbar`]:{borderInlineEnd:an}}}},bs=Wt=>{const{componentCls:Ut}=Wt;return{[`${Ut}-wrapper`]:{[`${Ut}-cell-ellipsis`]:Object.assign(Object.assign({},xa.vS),{wordBreak:"keep-all",[`
&${Ut}-cell-fix-left-last,
&${Ut}-cell-fix-right-first
`]:{overflow:"visible",[`${Ut}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ut}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Zo=Wt=>{const{componentCls:Ut}=Wt;return{[`${Ut}-wrapper`]:{[`${Ut}-tbody > tr${Ut}-placeholder`]:{textAlign:"center",color:Wt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Wt.colorBgContainer}}}}},il=ze(15969),fa=Wt=>{const{componentCls:Ut,antCls:an,controlInteractiveSize:ln,motionDurationSlow:En,lineWidth:Sn,paddingXS:Wn,lineType:Un,tableBorderColor:In,tableExpandIconBg:nr,tableExpandColumnWidth:lr,borderRadius:or,fontSize:Br,fontSizeSM:Or,lineHeight:Sr,tablePaddingVertical:ni,tablePaddingHorizontal:Pr,tableExpandedRowBg:qr,paddingXXS:_r}=Wt,di=ln/2-Sn,Ni=di*2+Sn*3,Ki=`${Sn}px ${Un} ${In}`,ii=_r-Sn;return{[`${Ut}-wrapper`]:{[`${Ut}-expand-icon-col`]:{width:lr},[`${Ut}-row-expand-icon-cell`]:{textAlign:"center",[`${Ut}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ut}-row-indent`]:{height:1,float:"left"},[`${Ut}-row-expand-icon`]:Object.assign(Object.assign({},(0,il.N)(Wt)),{position:"relative",float:"left",boxSizing:"border-box",width:Ni,height:Ni,padding:0,color:"inherit",lineHeight:`${Ni}px`,background:nr,border:Ki,borderRadius:or,transform:`scale(${ln/Ni})`,transition:`all ${En}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${En} ease-out`,content:'""'},"&::before":{top:di,insetInlineEnd:ii,insetInlineStart:ii,height:Sn},"&::after":{top:ii,bottom:ii,insetInlineStart:di,width:Sn,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"}}),[`${Ut}-row-indent + ${Ut}-row-expand-icon`]:{marginTop:(Br*Sr-Sn*3)/2-Math.ceil((Or*1.4-Sn*3)/2),marginInlineEnd:Wn},[`tr${Ut}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:qr}},[`${an}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ut}-expanded-row-fixed`]:{position:"relative",margin:`-${ni}px -${Pr}px`,padding:`${ni}px ${Pr}px`}}}},Ja=Wt=>{const{componentCls:Ut,antCls:an,iconCls:ln,tableFilterDropdownWidth:En,tableFilterDropdownSearchWidth:Sn,paddingXXS:Wn,paddingXS:Un,colorText:In,lineWidth:nr,lineType:lr,tableBorderColor:or,tableHeaderIconColor:Br,fontSizeSM:Or,tablePaddingHorizontal:Sr,borderRadius:ni,motionDurationSlow:Pr,colorTextDescription:qr,colorPrimary:_r,tableHeaderFilterActiveBg:di,colorTextDisabled:Ni,tableFilterDropdownBg:Ki,tableFilterDropdownHeight:ii,controlItemBgHover:Di,controlItemBgActive:mo,boxShadowSecondary:ui,filterDropdownMenuBg:Ai}=Wt,li=`${an}-dropdown`,Ur=`${Ut}-filter-dropdown`,yi=`${an}-tree`,Wi=`${nr}px ${lr} ${or}`;return[{[`${Ut}-wrapper`]:{[`${Ut}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ut}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Wn,marginInline:`${Wn}px ${-Sr/2}px`,padding:`0 ${Wn}px`,color:Br,fontSize:Or,borderRadius:ni,cursor:"pointer",transition:`all ${Pr}`,"&:hover":{color:qr,background:di},"&.active":{color:_r}}}},{[`${an}-dropdown`]:{[Ur]:Object.assign(Object.assign({},(0,xa.Wf)(Wt)),{minWidth:En,backgroundColor:Ki,borderRadius:ni,boxShadow:ui,overflow:"hidden",[`${li}-menu`]:{maxHeight:ii,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ai,"&:empty::after":{display:"block",padding:`${Un}px 0`,color:Ni,fontSize:Or,textAlign:"center",content:'"Not Found"'}},[`${Ur}-tree`]:{paddingBlock:`${Un}px 0`,paddingInline:Un,[yi]:{padding:0},[`${yi}-treenode ${yi}-node-content-wrapper:hover`]:{backgroundColor:Di},[`${yi}-treenode-checkbox-checked ${yi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:mo}}},[`${Ur}-search`]:{padding:Un,borderBottom:Wi,"&-input":{input:{minWidth:Sn},[ln]:{color:Ni}}},[`${Ur}-checkall`]:{width:"100%",marginBottom:Wn,marginInlineStart:Wn},[`${Ur}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Un-nr}px ${Un}px`,overflow:"hidden",borderTop:Wi}})}},{[`${an}-dropdown ${Ur}, ${Ur}-submenu`]:{[`${an}-checkbox-wrapper + span`]:{paddingInlineStart:Un,color:In},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Xc=Wt=>{const{componentCls:Ut,lineWidth:an,colorSplit:ln,motionDurationSlow:En,zIndexTableFixed:Sn,tableBg:Wn,zIndexTableSticky:Un}=Wt,In=ln;return{[`${Ut}-wrapper`]:{[`
${Ut}-cell-fix-left,
${Ut}-cell-fix-right
`]:{position:"sticky !important",zIndex:Sn,background:Wn},[`
${Ut}-cell-fix-left-first::after,
${Ut}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-an,width:30,transform:"translateX(100%)",transition:`box-shadow ${En}`,content:'""',pointerEvents:"none"},[`${Ut}-cell-fix-left-all::after`]:{display:"none"},[`
${Ut}-cell-fix-right-first::after,
${Ut}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-an,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${En}`,content:'""',pointerEvents:"none"},[`${Ut}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Un+1,width:30,transition:`box-shadow ${En}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ut}-ping-left`]:{[`&:not(${Ut}-has-fix-left) ${Ut}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${In}`}},[`
${Ut}-cell-fix-left-first::after,
${Ut}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${In}`},[`${Ut}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ut}-ping-right`]:{[`&:not(${Ut}-has-fix-right) ${Ut}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${In}`}},[`
${Ut}-cell-fix-right-first::after,
${Ut}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${In}`}}}}},Gf=Wt=>{const{componentCls:Ut,antCls:an}=Wt;return{[`${Ut}-wrapper`]:{[`${Ut}-pagination${an}-pagination`]:{margin:`${Wt.margin}px 0`},[`${Ut}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Wt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Zf=Wt=>{const{componentCls:Ut,tableRadius:an}=Wt;return{[`${Ut}-wrapper`]:{[Ut]:{[`${Ut}-title, ${Ut}-header`]:{borderRadius:`${an}px ${an}px 0 0`},[`${Ut}-title + ${Ut}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ut}-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:an,borderStartEndRadius:an,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:an},"> *:last-child":{borderStartEndRadius:an}}},"&-footer":{borderRadius:`0 0 ${an}px ${an}px`}}}}},Kh=Wt=>{const{componentCls:Ut}=Wt;return{[`${Ut}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ut}-pagination-left`]:{justifyContent:"flex-end"},[`${Ut}-pagination-right`]:{justifyContent:"flex-start"},[`${Ut}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ut}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ut}-row-indent`]:{float:"right"}}}}},Ed=Wt=>{const{componentCls:Ut,antCls:an,iconCls:ln,fontSizeIcon:En,padding:Sn,paddingXS:Wn,tableHeaderIconColor:Un,tableHeaderIconColorHover:In,tableSelectionColumnWidth:nr}=Wt;return{[`${Ut}-wrapper`]:{[`${Ut}-selection-col`]:{width:nr,[`&${Ut}-selection-col-with-dropdown`]:{width:nr+En+Sn/4}},[`${Ut}-bordered ${Ut}-selection-col`]:{width:nr+Wn*2,[`&${Ut}-selection-col-with-dropdown`]:{width:nr+En+Sn/4+Wn*2}},[`
table tr th${Ut}-selection-column,
table tr td${Ut}-selection-column
`]:{paddingInlineEnd:Wt.paddingXS,paddingInlineStart:Wt.paddingXS,textAlign:"center",[`${an}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ut}-selection-column${Ut}-cell-fix-left`]:{zIndex:Wt.zIndexTableFixed+1},[`table tr th${Ut}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ut}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ut}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Wt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Wt.tablePaddingHorizontal/4}px`,[ln]:{color:Un,fontSize:En,verticalAlign:"baseline","&:hover":{color:In}}}}}},Yc=Wt=>{const{componentCls:Ut}=Wt,an=(ln,En,Sn,Wn)=>({[`${Ut}${Ut}-${ln}`]:{fontSize:Wn,[`
${Ut}-title,
${Ut}-footer,
${Ut}-cell,
${Ut}-thead > tr > th,
${Ut}-tbody > tr > th,
${Ut}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${En}px ${Sn}px`},[`${Ut}-filter-trigger`]:{marginInlineEnd:`-${Sn/2}px`},[`${Ut}-expanded-row-fixed`]:{margin:`-${En}px -${Sn}px`},[`${Ut}-tbody`]:{[`${Ut}-wrapper:only-child ${Ut}`]:{marginBlock:`-${En}px`,marginInline:`${Wt.tableExpandColumnWidth-Sn}px -${Sn}px`}},[`${Ut}-selection-column`]:{paddingInlineStart:`${Sn/4}px`}}});return{[`${Ut}-wrapper`]:Object.assign(Object.assign({},an("middle",Wt.tablePaddingVerticalMiddle,Wt.tablePaddingHorizontalMiddle,Wt.tableFontSizeMiddle)),an("small",Wt.tablePaddingVerticalSmall,Wt.tablePaddingHorizontalSmall,Wt.tableFontSizeSmall))}},Gu=Wt=>{const{componentCls:Ut,marginXXS:an,fontSizeIcon:ln,tableHeaderIconColor:En,tableHeaderIconColorHover:Sn}=Wt;return{[`${Ut}-wrapper`]:{[`${Ut}-thead th${Ut}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Wt.motionDurationSlow}`,"&:hover":{background:Wt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Wt.colorPrimary},[`
&${Ut}-cell-fix-left:hover,
&${Ut}-cell-fix-right:hover
`]:{background:Wt.tableFixedHeaderSortActiveBg}},[`${Ut}-thead th${Ut}-column-sort`]:{background:Wt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ut}-column-sort`]:{background:Wt.tableBodySortBg},[`${Ut}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ut}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ut}-column-sorter`]:{marginInlineStart:an,color:En,fontSize:0,transition:`color ${Wt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:ln,"&.active":{color:Wt.colorPrimary}},[`${Ut}-column-sorter-up + ${Ut}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ut}-column-sorters:hover ${Ut}-column-sorter`]:{color:Sn}}}},Jc=Wt=>{const{componentCls:Ut,opacityLoading:an,tableScrollThumbBg:ln,tableScrollThumbBgHover:En,tableScrollThumbSize:Sn,tableScrollBg:Wn,zIndexTableSticky:Un,stickyScrollBarBorderRadius:In}=Wt,nr=`${Wt.lineWidth}px ${Wt.lineType} ${Wt.tableBorderColor}`;return{[`${Ut}-wrapper`]:{[`${Ut}-sticky`]:{"&-holder":{position:"sticky",zIndex:Un,background:Wt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Sn}px !important`,zIndex:Un,display:"flex",alignItems:"center",background:Wn,borderTop:nr,opacity:an,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Sn,backgroundColor:ln,borderRadius:In,transition:`all ${Wt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:En}}}}}}},Zu=Wt=>{const{componentCls:Ut,lineWidth:an,tableBorderColor:ln}=Wt,En=`${an}px ${Wt.lineType} ${ln}`;return{[`${Ut}-wrapper`]:{[`${Ut}-summary`]:{position:"relative",zIndex:Wt.zIndexTableFixed,background:Wt.tableBg,"> tr":{"> th, > td":{borderBottom:En}}},[`div${Ut}-summary`]:{boxShadow:`0 -${an}px 0 ${ln}`}}}},xc=Wt=>{const{componentCls:Ut}=Wt,an=`${Wt.lineWidth}px ${Wt.lineType} ${Wt.tableBorderColor}`,ln=`${Ut}-expanded-row-cell`;return{[`${Ut}-wrapper`]:{[`${Ut}-tbody-virtual`]:{[`${Ut}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ut}-cell`]:{borderBottom:an},[`${Ut}-expanded-row`]:{[`${ln}${ln}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Wt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ut}-bordered`]:{[`${Ut}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:an,position:"absolute"},[`${Ut}-cell`]:{borderInlineEnd:an,[`&${Ut}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Wt.lineWidth,borderInlineStart:an}}}}}}};const Au=Wt=>{const{componentCls:Ut,fontWeightStrong:an,tablePaddingVertical:ln,tablePaddingHorizontal:En,lineWidth:Sn,lineType:Wn,tableBorderColor:Un,tableFontSize:In,tableBg:nr,tableRadius:lr,tableHeaderTextColor:or,motionDurationMid:Br,tableHeaderBg:Or,tableHeaderCellSplitColor:Sr,tableRowHoverBg:ni,tableSelectedRowBg:Pr,tableSelectedRowHoverBg:qr,tableFooterTextColor:_r,tableFooterBg:di,paddingContentVerticalLG:Ni}=Wt,Ki=`${Sn}px ${Wn} ${Un}`;return{[`${Ut}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,xa.dF)()),{[Ut]:Object.assign(Object.assign({},(0,xa.Wf)(Wt)),{fontSize:In,background:nr,borderRadius:`${lr}px ${lr}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${lr}px ${lr}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Ut}-cell,
${Ut}-thead > tr > th,
${Ut}-tbody > tr > th,
${Ut}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Ni}px ${En}px`,overflowWrap:"break-word"},[`${Ut}-title`]:{padding:`${ln}px ${En}px`},[`${Ut}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:or,fontWeight:an,textAlign:"start",background:Or,borderBottom:Ki,transition:`background ${Br} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ut}-selection-column):not(${Ut}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Sr,transform:"translateY(-50%)",transition:`background-color ${Br}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ut}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Br}, border-color ${Br}`,borderBottom:Ki,[`
> ${Ut}-wrapper:only-child,
> ${Ut}-expanded-row-fixed > ${Ut}-wrapper:only-child
`]:{[Ut]:{marginBlock:`-${ln}px`,marginInline:`${Wt.tableExpandColumnWidth-En}px -${En}px`,[`${Ut}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:or,fontWeight:an,textAlign:"start",background:Or,borderBottom:Ki,transition:`background ${Br} ease`},[`
&${Ut}-row:hover > th,
&${Ut}-row:hover > td,
> th${Ut}-cell-row-hover,
> td${Ut}-cell-row-hover
`]:{background:ni},[`&${Ut}-row-selected`]:{"> th, > td":{background:Pr},"&:hover > th, &:hover > td":{background:qr}}}},[`${Ut}-footer`]:{padding:`${ln}px ${En}px`,color:_r,background:di}})}};var wc=(0,Mo.Z)("Table",Wt=>{const{colorTextHeading:Ut,colorSplit:an,colorIcon:ln,colorIconHover:En,opacityLoading:Sn,colorBgContainer:Wn,controlInteractiveSize:Un,headerBg:In,headerColor:nr,headerSortActiveBg:lr,headerSortHoverBg:or,bodySortBg:Br,rowHoverBg:Or,rowSelectedBg:Sr,rowSelectedHoverBg:ni,rowExpandedBg:Pr,cellPaddingBlock:qr,cellPaddingInline:_r,cellPaddingBlockMD:di,cellPaddingInlineMD:Ni,cellPaddingBlockSM:Ki,cellPaddingInlineSM:ii,borderColor:Di,footerBg:mo,footerColor:ui,headerBorderRadius:Ai,cellFontSize:li,cellFontSizeMD:Ur,cellFontSizeSM:yi,headerSplitColor:Wi,fixedHeaderSortActiveBg:$i,headerFilterHoverBg:to,filterDropdownBg:oi,expandIconBg:yo,selectionColumnWidth:Co,stickyScrollBarBg:qo}=Wt,Io=new Hs.C(ln),ka=new Hs.C(En),Ta=2,xo=(0,ss.TS)(Wt,{tableFontSize:li,tableBg:Wn,tableRadius:Ai,tablePaddingVertical:qr,tablePaddingHorizontal:_r,tablePaddingVerticalMiddle:di,tablePaddingHorizontalMiddle:Ni,tablePaddingVerticalSmall:Ki,tablePaddingHorizontalSmall:ii,tableBorderColor:Di,tableHeaderTextColor:nr,tableHeaderBg:In,tableFooterTextColor:ui,tableFooterBg:mo,tableHeaderCellSplitColor:Wi,tableHeaderSortBg:lr,tableHeaderSortHoverBg:or,tableHeaderIconColor:Io.clone().setAlpha(Io.getAlpha()*Sn).toRgbString(),tableHeaderIconColorHover:ka.clone().setAlpha(ka.getAlpha()*Sn).toRgbString(),tableBodySortBg:Br,tableFixedHeaderSortActiveBg:$i,tableHeaderFilterActiveBg:to,tableFilterDropdownBg:oi,tableRowHoverBg:Or,tableSelectedRowBg:Sr,tableSelectedRowHoverBg:ni,zIndexTableFixed:Ta,zIndexTableSticky:Ta+1,tableFontSizeMiddle:Ur,tableFontSizeSmall:yi,tableSelectionColumnWidth:Co,tableExpandIconBg:yo,tableExpandColumnWidth:Un+2*Wt.padding,tableExpandedRowBg:Pr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:qo,tableScrollThumbBgHover:Ut,tableScrollBg:an});return[Au(xo),Gf(xo),Zu(xo),Gu(xo),Ja(xo),ma(xo),Zf(xo),fa(xo),Zu(xo),Zo(xo),Ed(xo),Xc(xo),Jc(xo),bs(xo),Yc(xo),Kh(xo),xc(xo)]},Wt=>{const{colorFillAlter:Ut,colorBgContainer:an,colorTextHeading:ln,colorFillSecondary:En,colorFillContent:Sn,controlItemBgActive:Wn,controlItemBgActiveHover:Un,padding:In,paddingSM:nr,paddingXS:lr,colorBorderSecondary:or,borderRadiusLG:Br,fontSize:Or,controlHeight:Sr,colorTextPlaceholder:ni}=Wt,Pr=new Hs.C(En).onBackground(an).toHexShortString(),qr=new Hs.C(Sn).onBackground(an).toHexShortString(),_r=new Hs.C(Ut).onBackground(an).toHexShortString();return{headerBg:_r,headerColor:ln,headerSortActiveBg:Pr,headerSortHoverBg:qr,bodySortBg:_r,rowHoverBg:_r,rowSelectedBg:Wn,rowSelectedHoverBg:Un,rowExpandedBg:Ut,cellPaddingBlock:In,cellPaddingInline:In,cellPaddingBlockMD:nr,cellPaddingInlineMD:lr,cellPaddingBlockSM:lr,cellPaddingInlineSM:lr,borderColor:or,headerBorderRadius:Br,footerBg:_r,footerColor:ln,cellFontSize:Or,cellFontSizeMD:Or,cellFontSizeSM:Or,headerSplitColor:or,fixedHeaderSortActiveBg:Pr,headerFilterHoverBg:Sn,filterDropdownMenuBg:an,filterDropdownBg:an,expandIconBg:an,selectionColumnWidth:Sr,stickyScrollBarBg:ni,stickyScrollBarBorderRadius:100}});const Ad=[],lf=(Wt,Ut)=>{const{prefixCls:an,className:ln,rootClassName:En,style:Sn,size:Wn,bordered:Un,dropdownPrefixCls:In,dataSource:nr,pagination:lr,rowSelection:or,rowKey:Br="key",rowClassName:Or,columns:Sr,children:ni,childrenColumnName:Pr,onChange:qr,getPopupContainer:_r,loading:di,expandIcon:Ni,expandable:Ki,expandedRowRender:ii,expandIconColumnIndex:Di,indentSize:mo,scroll:ui,sortDirections:Ai,locale:li,showSorterTooltip:Ur=!0,virtual:yi}=Wt,Wi=ce.useMemo(()=>Sr||sn(ni),[Sr,ni]),$i=ce.useMemo(()=>Wi.some(_o=>_o.responsive),[Wi]),to=(0,qn.Z)($i),oi=ce.useMemo(()=>{const _o=new Set(Object.keys(to).filter(ba=>to[ba]));return Wi.filter(ba=>!ba.responsive||ba.responsive.some(us=>_o.has(us)))},[Wi,to]),yo=(0,wi.Z)(Wt,["className","style","columns"]),{locale:Co=si.Z,direction:qo,table:Io,renderEmpty:ka,getPrefixCls:Ta,getPopupContainer:xo}=ce.useContext(Po.E_),Gi=(0,Xr.Z)(Wn),Xo=Object.assign(Object.assign({},Co.Table),li),Na=nr||Ad,wa=Ta("table",an),is=Ta("dropdown",In),no=Object.assign({childrenColumnName:Pr,expandIconColumnIndex:Di},Ki),{childrenColumnName:Yi="children"}=no,ro=ce.useMemo(()=>Na.some(_o=>_o==null?void 0:_o[Yi])?"nest":ii||Ki&&Ki.expandedRowRender?"row":null,[Na]),Bi={body:ce.useRef()},Qo=ce.useMemo(()=>typeof Br=="function"?Br:_o=>_o==null?void 0:_o[Br],[Br]),[Ii]=Uc(Na,Yi,Qo),vo={},Ho=function(_o,ba){let us=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ca,Vo,vs;const gl=Object.assign(Object.assign({},vo),_o);us&&((Ca=vo.resetPagination)===null||Ca===void 0||Ca.call(vo),!((Vo=gl.pagination)===null||Vo===void 0)&&Vo.current&&(gl.pagination.current=1),lr&&lr.onChange&&lr.onChange(1,(vs=gl.pagination)===null||vs===void 0?void 0:vs.pageSize)),ui&&ui.scrollToFirstRowOnChange!==!1&&Bi.body.current&&(0,so.Z)(0,{getContainer:()=>Bi.body.current}),qr==null||qr(gl.pagination,gl.filters,gl.sorter,{currentDataSource:Ws(ic(Na,gl.sorterStates,Yi),gl.filterStates),action:ba})},Uo=(_o,ba)=>{Ho({sorter:_o,sorterStates:ba},"sort",!1)},[Cs,ls,Us,ea]=Pd({prefixCls:wa,mergedColumns:oi,onSorterChange:Uo,sortDirections:Ai||["ascend","descend"],tableLocale:Xo,showSorterTooltip:Ur}),Ps=ce.useMemo(()=>ic(Na,ls,Yi),[Na,ls]);vo.sorter=ea(),vo.sorterStates=ls;const ts=(_o,ba)=>{Ho({filters:_o,filterStates:ba},"filter",!0)},[ps,Ku,ta]=hh({prefixCls:wa,locale:Xo,dropdownPrefixCls:is,mergedColumns:oi,onFilterChange:ts,getPopupContainer:_r||xo}),aa=Ws(Ps,Ku);vo.filters=ta,vo.filterStates=Ku;const pa=ce.useMemo(()=>{const _o={};return Object.keys(ta).forEach(ba=>{ta[ba]!==null&&(_o[ba]=ta[ba])}),Object.assign(Object.assign({},Us),{filters:_o})},[Us,ta]),[Qa]=Ga(pa),gs=(_o,ba)=>{Ho({pagination:Object.assign(Object.assign({},vo.pagination),{current:_o,pageSize:ba})},"paginate")},[ko,va]=dh(aa.length,gs,lr);vo.pagination=lr===!1?{}:zu(ko,lr),vo.resetPagination=va;const ms=ce.useMemo(()=>{if(lr===!1||!ko.pageSize)return aa;const{current:_o=1,total:ba,pageSize:us=vc}=ko;return aa.length<ba?aa.length>us?aa.slice((_o-1)*us,_o*us):aa:aa.slice((_o-1)*us,_o*us)},[!!lr,aa,ko&&ko.current,ko&&ko.pageSize,ko&&ko.total]),[pl,Wl]=Rl({prefixCls:wa,data:aa,pageData:ms,getRowKey:Qo,getRecordByKey:Ii,expandType:ro,childrenColumnName:Yi,locale:Xo,getPopupContainer:_r||xo},or),El=(_o,ba,us)=>{let Ca;return typeof Or=="function"?Ca=He()(Or(_o,ba,us)):Ca=He()(Or),He()({[`${wa}-row-selected`]:Wl.has(Qo(_o,ba))},Ca)};no.__PARENT_RENDER_ICON__=no.expandIcon,no.expandIcon=no.expandIcon||Ni||Do(Xo),ro==="nest"&&no.expandIconColumnIndex===void 0?no.expandIconColumnIndex=or?1:0:no.expandIconColumnIndex>0&&or&&(no.expandIconColumnIndex-=1),typeof no.indentSize!="number"&&(no.indentSize=typeof mo=="number"?mo:15);const ql=ce.useCallback(_o=>Qa(pl(ps(Cs(_o)))),[Cs,ps,pl]);let eu,Hl;if(lr!==!1&&(ko!=null&&ko.total)){let _o;ko.size?_o=ko.size:_o=Gi==="small"||Gi==="middle"?"small":void 0;const ba=Vo=>ce.createElement(qi.Z,Object.assign({},ko,{className:He()(`${wa}-pagination ${wa}-pagination-${Vo}`,ko.className),size:_o})),us=qo==="rtl"?"left":"right",{position:Ca}=ko;if(Ca!==null&&Array.isArray(Ca)){const Vo=Ca.find(gu=>gu.includes("top")),vs=Ca.find(gu=>gu.includes("bottom")),gl=Ca.every(gu=>`${gu}`=="none");!Vo&&!vs&&!gl&&(Hl=ba(us)),Vo&&(eu=ba(Vo.toLowerCase().replace("top",""))),vs&&(Hl=ba(vs.toLowerCase().replace("bottom","")))}else Hl=ba(us)}let ra;typeof di=="boolean"?ra={spinning:di}:typeof di=="object"&&(ra=Object.assign({spinning:!0},di));const[Ms,Za]=wc(wa),[,ya]=(0,lo.Z)(),Ul=He()(`${wa}-wrapper`,Io==null?void 0:Io.className,{[`${wa}-wrapper-rtl`]:qo==="rtl"},ln,En,Za),oc=Object.assign(Object.assign({},Io==null?void 0:Io.style),Sn),tu=li&&li.emptyText||(ka==null?void 0:ka("Table"))||ce.createElement(Vr.Z,{componentName:"Table"}),Mu=yi?rl:Zi,Vu={},Al=ce.useMemo(()=>{const{fontSize:_o,lineHeight:ba,padding:us,paddingXS:Ca,paddingSM:Vo}=ya,vs=Math.floor(_o*ba);switch(Gi){case"large":return us*2+vs;case"small":return Ca*2+vs;default:return Vo*2+vs}},[ya,Gi]);return yi&&(Vu.listItemHeight=Al),Ms(ce.createElement("div",{ref:Ut,className:Ul,style:oc},ce.createElement(Ro.Z,Object.assign({spinning:!1},ra),eu,ce.createElement(Mu,Object.assign({},Vu,yo,{columns:oi,direction:qo,expandable:no,prefixCls:wa,className:He()({[`${wa}-middle`]:Gi==="middle",[`${wa}-small`]:Gi==="small",[`${wa}-bordered`]:Un,[`${wa}-empty`]:Na.length===0}),data:ms,rowKey:Qo,rowClassName:El,emptyText:tu,internalHooks:xt,internalRefs:Bi,transformColumns:ql})),Hl)))};var uf=ce.forwardRef(lf);const Xf=(Wt,Ut)=>{const an=ce.useRef(0);return an.current+=1,ce.createElement(uf,Object.assign({},Wt,{ref:Ut,_renderTimes:an.current}))},fl=ce.forwardRef(Xf);fl.SELECTION_COLUMN=_a,fl.EXPAND_COLUMN=We,fl.SELECTION_ALL=Ha,fl.SELECTION_INVERT=ga,fl.SELECTION_NONE=La,fl.Column=ti,fl.ColumnGroup=Fi,fl.Summary=Ve;var bc=fl,Kp=bc},17574:function(Nn,mn,ze){"use strict";ze.d(mn,{default:function(){return _e}});var We=ze(54844),xt=ze(80702),oe=ze(52671),Ue=ze(8657),Oe=ze(72308),ve=ze(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"},Ce=ce,Ee=ze(7657),ye=function(pt,bt){return ve.createElement(Ee.Z,(0,Oe.Z)({},pt,{ref:bt,icon:Ce}))},be=ve.forwardRef(ye),me=be,xe=ze(92310),fe=ze.n(xe),z=ze(35654),ee=ze(71430),ae=ze(36355),re=ze(56082),le=ze(62892),ue=ze(20648);const pe=4;function Pe(st){const{dropPosition:pt,dropLevelOffset:bt,prefixCls:wt,indent:mt,direction:vt="ltr"}=st,St=vt==="ltr"?"left":"right",Nt=vt==="ltr"?"right":"left",Ft={[St]:-bt*mt+pe,[Nt]:0};switch(pt){case-1:Ft.top=-3;break;case 1:Ft.bottom=-3;break;default:Ft.bottom=-3,Ft[St]=mt+pe;break}return ve.createElement("div",{style:Ft,className:`${wt}-drop-indicator`})}var we=ze(71997),Ae=ve.forwardRef((st,pt)=>{const{getPrefixCls:bt,direction:wt,virtual:mt,tree:vt}=ve.useContext(ae.E_),{prefixCls:St,className:Nt,showIcon:Ft=!1,showLine:Kt,switcherIcon:Pt,blockNode:Et=!1,children:at,checkable:Ct=!1,selectable:nt=!0,draggable:ht,motion:Mt,style:gt}=st,rt=bt("tree",St),Je=bt(),Xe=Mt!=null?Mt:Object.assign(Object.assign({},(0,le.Z)(Je)),{motionAppear:!1}),Ve=Object.assign(Object.assign({},st),{checkable:Ct,selectable:nt,showIcon:Ft,motion:Xe,blockNode:Et,showLine:!!Kt,dropIndicatorRender:Pe}),[tt,Ze]=(0,ue.ZP)(rt),je=ve.useMemo(()=>{if(!ht)return!1;let Ye={};switch(typeof ht){case"function":Ye.nodeDraggable=ht;break;case"object":Ye=Object.assign({},ht);break;default:break}return Ye.icon!==!1&&(Ye.icon=Ye.icon||ve.createElement(re.Z,null)),Ye},[ht]),De=Ye=>ve.createElement(we.Z,{prefixCls:rt,switcherIcon:Pt,treeNodeProps:Ye,showLine:Kt});return tt(ve.createElement(We.Z,Object.assign({itemHeight:20,ref:pt,virtual:mt},Ve,{style:Object.assign(Object.assign({},vt==null?void 0:vt.style),gt),prefixCls:rt,className:fe()({[`${rt}-icon-hide`]:!Ft,[`${rt}-block-node`]:Et,[`${rt}-unselectable`]:!nt,[`${rt}-rtl`]:wt==="rtl"},vt==null?void 0:vt.className,Nt,Ze),direction:wt,checkable:Ct&&ve.createElement("span",{className:`${rt}-checkbox-inner`}),selectable:nt,switcherIcon:De,draggable:je}),at))}),Te;(function(st){st[st.None=0]="None",st[st.Start=1]="Start",st[st.End=2]="End"})(Te||(Te={}));function Me(st,pt){function bt(wt){const{key:mt,children:vt}=wt;pt(mt,wt)!==!1&&Me(vt||[],pt)}st.forEach(bt)}function Be(st){let{treeData:pt,expandedKeys:bt,startKey:wt,endKey:mt}=st;const vt=[];let St=Te.None;if(wt&&wt===mt)return[wt];if(!wt||!mt)return[];function Nt(Ft){return Ft===wt||Ft===mt}return Me(pt,Ft=>{if(St===Te.End)return!1;if(Nt(Ft)){if(vt.push(Ft),St===Te.None)St=Te.Start;else if(St===Te.Start)return St=Te.End,!1}else St===Te.Start&&vt.push(Ft);return bt.includes(Ft)}),vt}function Re(st,pt){const bt=(0,xt.Z)(pt),wt=[];return Me(st,(mt,vt)=>{const St=bt.indexOf(mt);return St!==-1&&(wt.push(vt),bt.splice(St,1)),!!bt.length}),wt}var Qe=function(st,pt){var bt={};for(var wt in st)Object.prototype.hasOwnProperty.call(st,wt)&&pt.indexOf(wt)<0&&(bt[wt]=st[wt]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,wt=Object.getOwnPropertySymbols(st);mt<wt.length;mt++)pt.indexOf(wt[mt])<0&&Object.prototype.propertyIsEnumerable.call(st,wt[mt])&&(bt[wt[mt]]=st[wt[mt]]);return bt};function He(st){const{isLeaf:pt,expanded:bt}=st;return pt?ve.createElement(oe.Z,null):bt?ve.createElement(Ue.Z,null):ve.createElement(me,null)}function $e(st){let{treeData:pt,children:bt}=st;return pt||(0,ee.zn)(bt)}const qe=(st,pt)=>{var{defaultExpandAll:bt,defaultExpandParent:wt,defaultExpandedKeys:mt}=st,vt=Qe(st,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const St=ve.useRef(),Nt=ve.useRef(),Ft=()=>{const{keyEntities:je}=(0,ee.I8)($e(vt));let De;return bt?De=Object.keys(je):wt?De=(0,z.r7)(vt.expandedKeys||mt||[],je):De=vt.expandedKeys||mt,De},[Kt,Pt]=ve.useState(vt.selectedKeys||vt.defaultSelectedKeys||[]),[Et,at]=ve.useState(()=>Ft());ve.useEffect(()=>{"selectedKeys"in vt&&Pt(vt.selectedKeys)},[vt.selectedKeys]),ve.useEffect(()=>{"expandedKeys"in vt&&at(vt.expandedKeys)},[vt.expandedKeys]);const Ct=(je,De)=>{var Ye;return"expandedKeys"in vt||at(je),(Ye=vt.onExpand)===null||Ye===void 0?void 0:Ye.call(vt,je,De)},nt=(je,De)=>{var Ye;const{multiple:dt}=vt,{node:Ke,nativeEvent:At}=De,{key:zt=""}=Ke,_t=$e(vt),Ot=Object.assign(Object.assign({},De),{selected:!0}),Vt=(At==null?void 0:At.ctrlKey)||(At==null?void 0:At.metaKey),en=At==null?void 0:At.shiftKey;let on;dt&&Vt?(on=je,St.current=zt,Nt.current=on,Ot.selectedNodes=Re(_t,on)):dt&&en?(on=Array.from(new Set([].concat((0,xt.Z)(Nt.current||[]),(0,xt.Z)(Be({treeData:_t,expandedKeys:Et,startKey:zt,endKey:St.current}))))),Ot.selectedNodes=Re(_t,on)):(on=[zt],St.current=zt,Nt.current=on,Ot.selectedNodes=Re(_t,on)),(Ye=vt.onSelect)===null||Ye===void 0||Ye.call(vt,on,Ot),"selectedKeys"in vt||Pt(on)},{getPrefixCls:ht,direction:Mt}=ve.useContext(ae.E_),{prefixCls:gt,className:rt,showIcon:Je=!0,expandAction:Xe="click"}=vt,Ve=Qe(vt,["prefixCls","className","showIcon","expandAction"]),tt=ht("tree",gt),Ze=fe()(`${tt}-directory`,{[`${tt}-directory-rtl`]:Mt==="rtl"},rt);return ve.createElement(Ae,Object.assign({icon:He,ref:pt,blockNode:!0},Ve,{showIcon:Je,expandAction:Xe,prefixCls:tt,className:Ze,expandedKeys:Et,selectedKeys:Kt,onSelect:nt,onExpand:Ct}))};var ct=ve.forwardRef(qe);const yt=Ae;yt.DirectoryTree=ct,yt.TreeNode=We.O;var _e=yt},20648:function(Nn,mn,ze){"use strict";ze.d(mn,{TM:function(){return xe},Yk:function(){return me}});var We=ze(93083),xt=ze(98447),oe=ze(17313),Ue=ze(8378),Oe=ze(37613),ve=ze(83116);const ce=new We.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ce=(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,Pe=z.paddingXS;return{[ee]:Object.assign(Object.assign({},(0,oe.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,oe.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,oe.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({},Ce(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:Pe},[`${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`}}}}})}},be=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"}}}}}},me=(fe,z)=>{const ee=`.${fe}`,ae=`${ee}-treenode`,re=z.paddingXS/2,le=(0,Oe.TS)(z,{treeCls:ee,treeNodeCls:ae,treeNodePadding:re});return[ye(fe,le),be(le)]},xe=fe=>{const{controlHeightSM:z}=fe;return{titleHeight:z,nodeHoverBg:fe.controlItemBgHover,nodeSelectedBg:fe.controlItemBgActive}};mn.ZP=(0,ve.Z)("Tree",(fe,z)=>{let{prefixCls:ee}=z;return[{[fe.componentCls]:(0,xt.C2)(`${ee}-checkbox`,fe)},me(ee,fe),(0,Ue.Z)(fe)]},fe=>{const{colorTextLightSolid:z,colorPrimary:ee}=fe;return Object.assign(Object.assign({},xe(fe)),{directoryNodeSelectedColor:z,directoryNodeSelectedBg:ee})})},71997:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return ae}});var We=ze(72308),xt=ze(59301),oe={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"},Ue=oe,Oe=ze(7657),ve=function(le,ue){return xt.createElement(Oe.Z,(0,We.Z)({},le,{ref:ue,icon:Ue}))},ce=xt.forwardRef(ve),Ce=ce,Ee=ze(52671),ye=ze(58617),be=ze(15075),me=ze(43531),xe=ze(92310),fe=ze.n(xe),z=ze(92343),ae=re=>{const{prefixCls:le,switcherIcon:ue,treeNodeProps:pe,showLine:Pe}=re,{isLeaf:we,expanded:Ne,loading:Ae}=pe;if(Ae)return xt.createElement(ye.Z,{className:`${le}-switcher-loading-icon`});let Te;if(Pe&&typeof Pe=="object"&&(Te=Pe.showLeafIcon),we){if(!Pe)return null;if(typeof Te!="boolean"&&Te){const Re=typeof Te=="function"?Te(pe):Te,Qe=`${le}-switcher-line-custom-icon`;return(0,z.l$)(Re)?(0,z.Tm)(Re,{className:fe()(Re.props.className||"",Qe)}):Re}return Te?xt.createElement(Ee.Z,{className:`${le}-switcher-line-icon`}):xt.createElement("span",{className:`${le}-switcher-leaf-line`})}const Me=`${le}-switcher-icon`,Be=typeof ue=="function"?ue(pe):ue;return(0,z.l$)(Be)?(0,z.Tm)(Be,{className:fe()(Be.props.className||"",Me)}):Be!==void 0?Be:Pe?Ne?xt.createElement(be.Z,{className:`${le}-switcher-line-icon`}):xt.createElement(me.Z,{className:`${le}-switcher-line-icon`}):xt.createElement(Ce,{className:Me})}},54580:function(Nn,mn,ze){"use strict";ze.d(mn,{default:function(){return Cn}});var We=ze(59301),xt=ze(80702),oe=ze(92310),Ue=ze.n(oe),Oe=ze(72308),ve=ze(96949),ce=ze(55090),Ce=ze(77205),Ee=ze(38793),ye=ze(49618),be=ze(74416),me=ze(65736),xe=ze(62853),fe=ze(72633),z=ze(26112);function ee(tn,gn){var yn="cannot ".concat(tn.method," ").concat(tn.action," ").concat(gn.status,"'"),vn=new Error(yn);return vn.status=gn.status,vn.method=tn.method,vn.url=tn.action,vn}function ae(tn){var gn=tn.responseText||tn.response;if(!gn)return gn;try{return JSON.parse(gn)}catch(yn){return gn}}function re(tn){var gn=new XMLHttpRequest;tn.onProgress&&gn.upload&&(gn.upload.onprogress=function(Fn){Fn.total>0&&(Fn.percent=Fn.loaded/Fn.total*100),tn.onProgress(Fn)});var yn=new FormData;tn.data&&Object.keys(tn.data).forEach(function(Ln){var Fn=tn.data[Ln];if(Array.isArray(Fn)){Fn.forEach(function(Gn){yn.append("".concat(Ln,"[]"),Gn)});return}yn.append(Ln,Fn)}),tn.file instanceof Blob?yn.append(tn.filename,tn.file,tn.file.name):yn.append(tn.filename,tn.file),gn.onerror=function(Fn){tn.onError(Fn)},gn.onload=function(){return gn.status<200||gn.status>=300?tn.onError(ee(tn,gn),ae(gn)):tn.onSuccess(ae(gn),gn)},gn.open(tn.method,tn.action,!0),tn.withCredentials&&"withCredentials"in gn&&(gn.withCredentials=!0);var vn=tn.headers||{};return vn["X-Requested-With"]!==null&&gn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(vn).forEach(function(Ln){vn[Ln]!==null&&gn.setRequestHeader(Ln,vn[Ln])}),gn.send(yn),{abort:function(){gn.abort()}}}var le=+new Date,ue=0;function pe(){return"rc-upload-".concat(le,"-").concat(++ue)}var Pe=ze(48736),we=function(tn,gn){if(tn&&gn){var yn=Array.isArray(gn)?gn:gn.split(","),vn=tn.name||"",Ln=tn.type||"",Fn=Ln.replace(/\/.*$/,"");return yn.some(function(Gn){var Hn=Gn.trim();if(/^\*(\/\*)?$/.test(Gn))return!0;if(Hn.charAt(0)==="."){var gr=vn.toLowerCase(),dn=Hn.toLowerCase(),Dr=[dn];return(dn===".jpg"||dn===".jpeg")&&(Dr=[".jpg",".jpeg"]),Dr.some(function(zr){return gr.endsWith(zr)})}return/\/\*$/.test(Hn)?Fn===Hn.replace(/\/.*$/,""):Ln===Hn?!0:/^\w+$/.test(Hn)?((0,Pe.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Hn,"'.Skip for check.")),!0):!1})}return!0};function Ne(tn,gn){var yn=tn.createReader(),vn=[];function Ln(){yn.readEntries(function(Fn){var Gn=Array.prototype.slice.apply(Fn);vn=vn.concat(Gn);var Hn=!Gn.length;Hn?gn(vn):Ln()})}Ln()}var Ae=function(gn,yn,vn){var Ln=function Fn(Gn,Hn){Gn&&(Gn.path=Hn||"",Gn.isFile?Gn.file(function(gr){vn(gr)&&(Gn.fullPath&&!gr.webkitRelativePath&&(Object.defineProperties(gr,{webkitRelativePath:{writable:!0}}),gr.webkitRelativePath=Gn.fullPath.replace(/^\//,""),Object.defineProperties(gr,{webkitRelativePath:{writable:!1}})),yn([gr]))}):Gn.isDirectory&&Ne(Gn,function(gr){gr.forEach(function(dn){Fn(dn,"".concat(Hn).concat(Gn.name,"/"))})}))};gn.forEach(function(Fn){Ln(Fn.webkitGetAsEntry())})},Te=Ae,Me=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(tn){(0,Ce.Z)(yn,tn);var gn=(0,Ee.Z)(yn);function yn(){var vn;(0,ve.Z)(this,yn);for(var Ln=arguments.length,Fn=new Array(Ln),Gn=0;Gn<Ln;Gn++)Fn[Gn]=arguments[Gn];return vn=gn.call.apply(gn,[this].concat(Fn)),vn.state={uid:pe()},vn.reqs={},vn.fileInput=void 0,vn._isMounted=void 0,vn.onChange=function(Hn){var gr=vn.props,dn=gr.accept,Dr=gr.directory,zr=Hn.target.files,Qr=(0,xt.Z)(zr).filter(function(wn){return!Dr||we(wn,dn)});vn.uploadFiles(Qr),vn.reset()},vn.onClick=function(Hn){var gr=vn.fileInput;if(gr){var dn=Hn.target,Dr=vn.props.onClick;if(dn&&dn.tagName==="BUTTON"){var zr=gr.parentNode;zr.focus(),dn.blur()}gr.click(),Dr&&Dr(Hn)}},vn.onKeyDown=function(Hn){Hn.key==="Enter"&&vn.onClick(Hn)},vn.onFileDrop=function(Hn){var gr=vn.props.multiple;if(Hn.preventDefault(),Hn.type!=="dragover")if(vn.props.directory)Te(Array.prototype.slice.call(Hn.dataTransfer.items),vn.uploadFiles,function(Dr){return we(Dr,vn.props.accept)});else{var dn=(0,xt.Z)(Hn.dataTransfer.files).filter(function(Dr){return we(Dr,vn.props.accept)});gr===!1&&(dn=dn.slice(0,1)),vn.uploadFiles(dn)}},vn.uploadFiles=function(Hn){var gr=(0,xt.Z)(Hn),dn=gr.map(function(Dr){return Dr.uid=pe(),vn.processFile(Dr,gr)});Promise.all(dn).then(function(Dr){var zr=vn.props.onBatchStart;zr==null||zr(Dr.map(function(Qr){var wn=Qr.origin,Yn=Qr.parsedFile;return{file:wn,parsedFile:Yn}})),Dr.filter(function(Qr){return Qr.parsedFile!==null}).forEach(function(Qr){vn.post(Qr)})})},vn.processFile=function(){var Hn=(0,fe.Z)((0,me.Z)().mark(function gr(dn,Dr){var zr,Qr,wn,Yn,cr,Fr,fr,br,Hr;return(0,me.Z)().wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:if(zr=vn.props.beforeUpload,Qr=dn,!zr){Cr.next=14;break}return Cr.prev=3,Cr.next=6,zr(dn,Dr);case 6:Qr=Cr.sent,Cr.next=12;break;case 9:Cr.prev=9,Cr.t0=Cr.catch(3),Qr=!1;case 12:if(Qr!==!1){Cr.next=14;break}return Cr.abrupt("return",{origin:dn,parsedFile:null,action:null,data:null});case 14:if(wn=vn.props.action,typeof wn!="function"){Cr.next=21;break}return Cr.next=18,wn(dn);case 18:Yn=Cr.sent,Cr.next=22;break;case 21:Yn=wn;case 22:if(cr=vn.props.data,typeof cr!="function"){Cr.next=29;break}return Cr.next=26,cr(dn);case 26:Fr=Cr.sent,Cr.next=30;break;case 29:Fr=cr;case 30:return fr=((0,xe.Z)(Qr)==="object"||typeof Qr=="string")&&Qr?Qr:dn,fr instanceof File?br=fr:br=new File([fr],dn.name,{type:dn.type}),Hr=br,Hr.uid=dn.uid,Cr.abrupt("return",{origin:dn,data:Fr,parsedFile:Hr,action:Yn});case 35:case"end":return Cr.stop()}},gr,null,[[3,9]])}));return function(gr,dn){return Hn.apply(this,arguments)}}(),vn.saveFileInput=function(Hn){vn.fileInput=Hn},vn}return(0,ce.Z)(yn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ln){var Fn=this,Gn=Ln.data,Hn=Ln.origin,gr=Ln.action,dn=Ln.parsedFile;if(this._isMounted){var Dr=this.props,zr=Dr.onStart,Qr=Dr.customRequest,wn=Dr.name,Yn=Dr.headers,cr=Dr.withCredentials,Fr=Dr.method,fr=Hn.uid,br=Qr||re,Hr={action:gr,filename:wn,data:Gn,file:dn,headers:Yn,withCredentials:cr,method:Fr||"post",onProgress:function(Cr){var Zr=Fn.props.onProgress;Zr==null||Zr(Cr,dn)},onSuccess:function(Cr,Zr){var Dn=Fn.props.onSuccess;Dn==null||Dn(Cr,dn,Zr),delete Fn.reqs[fr]},onError:function(Cr,Zr){var Dn=Fn.props.onError;Dn==null||Dn(Cr,Zr,dn),delete Fn.reqs[fr]}};zr(Hn),this.reqs[fr]=br(Hr)}}},{key:"reset",value:function(){this.setState({uid:pe()})}},{key:"abort",value:function(Ln){var Fn=this.reqs;if(Ln){var Gn=Ln.uid?Ln.uid:Ln;Fn[Gn]&&Fn[Gn].abort&&Fn[Gn].abort(),delete Fn[Gn]}else Object.keys(Fn).forEach(function(Hn){Fn[Hn]&&Fn[Hn].abort&&Fn[Hn].abort(),delete Fn[Hn]})}},{key:"render",value:function(){var Ln=this.props,Fn=Ln.component,Gn=Ln.prefixCls,Hn=Ln.className,gr=Ln.disabled,dn=Ln.id,Dr=Ln.style,zr=Ln.multiple,Qr=Ln.accept,wn=Ln.capture,Yn=Ln.children,cr=Ln.directory,Fr=Ln.openFileDialogOnClick,fr=Ln.onMouseEnter,br=Ln.onMouseLeave,Hr=(0,be.Z)(Ln,Me),Rr=Ue()((0,ye.Z)((0,ye.Z)((0,ye.Z)({},Gn,!0),"".concat(Gn,"-disabled"),gr),Hn,Hn)),Cr=cr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Zr=gr?{}:{onClick:Fr?this.onClick:function(){},onKeyDown:Fr?this.onKeyDown:function(){},onMouseEnter:fr,onMouseLeave:br,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return We.createElement(Fn,(0,Oe.Z)({},Zr,{className:Rr,role:"button",style:Dr}),We.createElement("input",(0,Oe.Z)({},(0,z.Z)(Hr,{aria:!0,data:!0}),{id:dn,disabled:gr,type:"file",ref:this.saveFileInput,onClick:function(Ei){return Ei.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Qr},Cr,{multiple:zr,onChange:this.onChange},wn!=null?{capture:wn}:{})),Yn)}}]),yn}(We.Component),Re=Be;function Qe(){}var He=function(tn){(0,Ce.Z)(yn,tn);var gn=(0,Ee.Z)(yn);function yn(){var vn;(0,ve.Z)(this,yn);for(var Ln=arguments.length,Fn=new Array(Ln),Gn=0;Gn<Ln;Gn++)Fn[Gn]=arguments[Gn];return vn=gn.call.apply(gn,[this].concat(Fn)),vn.uploader=void 0,vn.saveUploader=function(Hn){vn.uploader=Hn},vn}return(0,ce.Z)(yn,[{key:"abort",value:function(Ln){this.uploader.abort(Ln)}},{key:"render",value:function(){return We.createElement(Re,(0,Oe.Z)({},this.props,{ref:this.saveUploader}))}}]),yn}(We.Component);He.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 $e=He,qe=$e,ut=ze(18929),ct=ze(4676),yt=ze(36355),_e=ze(1684),st=ze(9763),pt=ze(31724),bt={icon:function(gn,yn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:yn}},{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:gn}}]}},name:"file",theme:"twotone"},wt=bt,mt=ze(7657),vt=function(gn,yn){return We.createElement(mt.Z,(0,Oe.Z)({},gn,{ref:yn,icon:wt}))},St=We.forwardRef(vt),Nt=St,Ft=ze(58617),Kt={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"},Pt=Kt,Et=function(gn,yn){return We.createElement(mt.Z,(0,Oe.Z)({},gn,{ref:yn,icon:Pt}))},at=We.forwardRef(Et),Ct=at,nt={icon:function(gn,yn){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:gn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:yn}},{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:yn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:yn}},{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:gn}}]}},name:"picture",theme:"twotone"},ht=nt,Mt=function(gn,yn){return We.createElement(mt.Z,(0,Oe.Z)({},gn,{ref:yn,icon:ht}))},gt=We.forwardRef(Mt),rt=gt,Je=ze(77900),Xe=ze(56762),Ve=ze(62892),tt=ze(92343),Ze=ze(3113);function je(tn){return Object.assign(Object.assign({},tn),{lastModified:tn.lastModified,lastModifiedDate:tn.lastModifiedDate,name:tn.name,size:tn.size,type:tn.type,uid:tn.uid,percent:0,originFileObj:tn})}function De(tn,gn){const yn=(0,xt.Z)(gn),vn=yn.findIndex(Ln=>{let{uid:Fn}=Ln;return Fn===tn.uid});return vn===-1?yn.push(tn):yn[vn]=tn,yn}function Ye(tn,gn){const yn=tn.uid!==void 0?"uid":"name";return gn.filter(vn=>vn[yn]===tn[yn])[0]}function dt(tn,gn){const yn=tn.uid!==void 0?"uid":"name",vn=gn.filter(Ln=>Ln[yn]!==tn[yn]);return vn.length===gn.length?null:vn}const Ke=function(){const gn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),vn=gn[gn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(vn)||[""])[0]},At=tn=>tn.indexOf("image/")===0,zt=tn=>{if(tn.type&&!tn.thumbUrl)return At(tn.type);const gn=tn.thumbUrl||tn.url||"",yn=Ke(gn);return/^data:image\//.test(gn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(yn)?!0:!(/^data:/.test(gn)||yn)},_t=200;function Ot(tn){return new Promise(gn=>{if(!tn.type||!At(tn.type)){gn("");return}const yn=document.createElement("canvas");yn.width=_t,yn.height=_t,yn.style.cssText=`position: fixed; left: 0; top: 0; width: ${_t}px; height: ${_t}px; z-index: 9999; display: none;`,document.body.appendChild(yn);const vn=yn.getContext("2d"),Ln=new Image;if(Ln.onload=()=>{const{width:Fn,height:Gn}=Ln;let Hn=_t,gr=_t,dn=0,Dr=0;Fn>Gn?(gr=Gn*(_t/Fn),Dr=-(gr-Hn)/2):(Hn=Fn*(_t/Gn),dn=-(Hn-gr)/2),vn.drawImage(Ln,dn,Dr,Hn,gr);const zr=yn.toDataURL();document.body.removeChild(yn),window.URL.revokeObjectURL(Ln.src),gn(zr)},Ln.crossOrigin="anonymous",tn.type.startsWith("image/svg+xml")){const Fn=new FileReader;Fn.onload=()=>{Fn.result&&(Ln.src=Fn.result)},Fn.readAsDataURL(tn)}else if(tn.type.startsWith("image/gif")){const Fn=new FileReader;Fn.onload=()=>{Fn.result&&gn(Fn.result)},Fn.readAsDataURL(tn)}else Ln.src=window.URL.createObjectURL(tn)})}var Vt=ze(26227),en=ze(41464),on=ze(15277),fn=ze(93948),jn=ze(6848),tr=We.forwardRef((tn,gn)=>{let{prefixCls:yn,className:vn,style:Ln,locale:Fn,listType:Gn,file:Hn,items:gr,progress:dn,iconRender:Dr,actionIconRender:zr,itemRender:Qr,isImgUrl:wn,showPreviewIcon:Yn,showRemoveIcon:cr,showDownloadIcon:Fr,previewIcon:fr,removeIcon:br,downloadIcon:Hr,onPreview:Rr,onDownload:Cr,onClose:Zr}=tn;var Dn,Ei;const{status:kn}=Hn,[ci,Ri]=We.useState(kn);We.useEffect(()=>{kn!=="removed"&&Ri(kn)},[kn]);const[$r,Xi]=We.useState(!1);We.useEffect(()=>{const Po=setTimeout(()=>{Xi(!0)},300);return()=>{clearTimeout(Po)}},[]);const Oi=Dr(Hn);let Ir=We.createElement("div",{className:`${yn}-icon`},Oi);if(Gn==="picture"||Gn==="picture-card"||Gn==="picture-circle")if(ci==="uploading"||!Hn.thumbUrl&&!Hn.url){const Po=Ue()(`${yn}-list-item-thumbnail`,{[`${yn}-list-item-file`]:ci!=="uploading"});Ir=We.createElement("div",{className:Po},Oi)}else{const Po=wn!=null&&wn(Hn)?We.createElement("img",{src:Hn.thumbUrl||Hn.url,alt:Hn.name,className:`${yn}-list-item-image`,crossOrigin:Hn.crossOrigin}):Oi,Vr=Ue()(`${yn}-list-item-thumbnail`,{[`${yn}-list-item-file`]:wn&&!wn(Hn)});Ir=We.createElement("a",{className:Vr,onClick:Xr=>Rr(Hn,Xr),href:Hn.url||Hn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Po)}const jr=Ue()(`${yn}-list-item`,`${yn}-list-item-${ci}`),xi=typeof Hn.linkProps=="string"?JSON.parse(Hn.linkProps):Hn.linkProps,ki=cr?zr((typeof br=="function"?br(Hn):br)||We.createElement(Vt.Z,null),()=>Zr(Hn),yn,Fn.removeFile):null,pr=Fr&&ci==="done"?zr((typeof Hr=="function"?Hr(Hn):Hr)||We.createElement(en.Z,null),()=>Cr(Hn),yn,Fn.downloadFile):null,kt=Gn!=="picture-card"&&Gn!=="picture-circle"&&We.createElement("span",{key:"download-delete",className:Ue()(`${yn}-list-item-actions`,{picture:Gn==="picture"})},pr,ki),Li=Ue()(`${yn}-list-item-name`),ao=Hn.url?[We.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Li,title:Hn.name},xi,{href:Hn.url,onClick:Po=>Rr(Hn,Po)}),Hn.name),kt]:[We.createElement("span",{key:"view",className:Li,onClick:Po=>Rr(Hn,Po),title:Hn.name},Hn.name),kt],Pi={pointerEvents:"none",opacity:.5},co=Yn?We.createElement("a",{href:Hn.url||Hn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Hn.url||Hn.thumbUrl?void 0:Pi,onClick:Po=>Rr(Hn,Po),title:Fn.previewFile},typeof fr=="function"?fr(Hn):fr||We.createElement(on.Z,null)):null,wo=(Gn==="picture-card"||Gn==="picture-circle")&&ci!=="uploading"&&We.createElement("span",{className:`${yn}-list-item-actions`},co,ci==="done"&&pr,ki),{getPrefixCls:ti}=We.useContext(yt.E_),hi=ti(),Fi=We.createElement("div",{className:jr},Ir,ao,wo,$r&&We.createElement(Je.default,{motionName:`${hi}-fade`,visible:ci==="uploading",motionDeadline:2e3},Po=>{let{className:Vr}=Po;const Xr="percent"in Hn?We.createElement(fn.Z,Object.assign({},dn,{type:"line",percent:Hn.percent,"aria-label":Hn["aria-label"],"aria-labelledby":Hn["aria-labelledby"]})):null;return We.createElement("div",{className:Ue()(`${yn}-list-item-progress`,Vr)},Xr)})),wi=Hn.response&&typeof Hn.response=="string"?Hn.response:((Dn=Hn.error)===null||Dn===void 0?void 0:Dn.statusText)||((Ei=Hn.error)===null||Ei===void 0?void 0:Ei.message)||Fn.uploadError,so=ci==="error"?We.createElement(jn.Z,{title:wi,getPopupContainer:Po=>Po.parentNode},Fi):Fi;return We.createElement("div",{className:Ue()(`${yn}-list-item-container`,vn),style:Ln,ref:gn},Qr?Qr(so,Hn,gr,{download:Cr.bind(null,Hn),preview:Rr.bind(null,Hn),remove:Zr.bind(null,Hn)}):so)});const ur=(tn,gn)=>{const{listType:yn="text",previewFile:vn=Ot,onPreview:Ln,onDownload:Fn,onRemove:Gn,locale:Hn,iconRender:gr,isImageUrl:dn=zt,prefixCls:Dr,items:zr=[],showPreviewIcon:Qr=!0,showRemoveIcon:wn=!0,showDownloadIcon:Yn=!1,removeIcon:cr,previewIcon:Fr,downloadIcon:fr,progress:br={size:[-1,2],showInfo:!1},appendAction:Hr,appendActionVisible:Rr=!0,itemRender:Cr,disabled:Zr}=tn,Dn=(0,Xe.Z)(),[Ei,kn]=We.useState(!1);We.useEffect(()=>{yn!=="picture"&&yn!=="picture-card"&&yn!=="picture-circle"||(zr||[]).forEach(Pi=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Pi.originFileObj instanceof File||Pi.originFileObj instanceof Blob)||Pi.thumbUrl!==void 0||(Pi.thumbUrl="",vn&&vn(Pi.originFileObj).then(co=>{Pi.thumbUrl=co||"",Dn()}))})},[yn,zr,vn]),We.useEffect(()=>{kn(!0)},[]);const ci=(Pi,co)=>{if(Ln)return co==null||co.preventDefault(),Ln(Pi)},Ri=Pi=>{typeof Fn=="function"?Fn(Pi):Pi.url&&window.open(Pi.url)},$r=Pi=>{Gn==null||Gn(Pi)},Xi=Pi=>{if(gr)return gr(Pi,yn);const co=Pi.status==="uploading",wo=dn&&dn(Pi)?We.createElement(rt,null):We.createElement(Nt,null);let ti=co?We.createElement(Ft.Z,null):We.createElement(Ct,null);return yn==="picture"?ti=co?We.createElement(Ft.Z,null):wo:(yn==="picture-card"||yn==="picture-circle")&&(ti=co?Hn.uploading:wo),ti},Oi=(Pi,co,wo,ti)=>{const hi={type:"text",size:"small",title:ti,onClick:Fi=>{co(),(0,tt.l$)(Pi)&&Pi.props.onClick&&Pi.props.onClick(Fi)},className:`${wo}-list-item-action`,disabled:Zr};if((0,tt.l$)(Pi)){const Fi=(0,tt.Tm)(Pi,Object.assign(Object.assign({},Pi.props),{onClick:()=>{}}));return We.createElement(Ze.ZP,Object.assign({},hi,{icon:Fi}))}return We.createElement(Ze.ZP,Object.assign({},hi),We.createElement("span",null,Pi))};We.useImperativeHandle(gn,()=>({handlePreview:ci,handleDownload:Ri}));const{getPrefixCls:Ir}=We.useContext(yt.E_),jr=Ir("upload",Dr),xi=Ir(),ki=Ue()(`${jr}-list`,`${jr}-list-${yn}`),pr=(0,xt.Z)(zr.map(Pi=>({key:Pi.uid,file:Pi})));let Li={motionDeadline:2e3,motionName:`${jr}-${yn==="picture-card"||yn==="picture-circle"?"animate-inline":"animate"}`,keys:pr,motionAppear:Ei};const ao=We.useMemo(()=>{const Pi=Object.assign({},(0,Ve.Z)(xi));return delete Pi.onAppearEnd,delete Pi.onEnterEnd,delete Pi.onLeaveEnd,Pi},[xi]);return yn!=="picture-card"&&yn!=="picture-circle"&&(Li=Object.assign(Object.assign({},ao),Li)),We.createElement("div",{className:ki},We.createElement(Je.CSSMotionList,Object.assign({},Li,{component:!1}),Pi=>{let{key:co,file:wo,className:ti,style:hi}=Pi;return We.createElement(tr,{key:co,locale:Hn,prefixCls:jr,className:ti,style:hi,file:wo,items:zr,progress:br,listType:yn,isImgUrl:dn,showPreviewIcon:Qr,showRemoveIcon:wn,showDownloadIcon:Yn,removeIcon:cr,previewIcon:Fr,downloadIcon:fr,iconRender:Xi,actionIconRender:Oi,itemRender:Cr,onPreview:ci,onDownload:Ri,onClose:$r})}),Hr&&We.createElement(Je.default,Object.assign({},Li,{visible:Rr,forceRender:!0}),Pi=>{let{className:co,style:wo}=Pi;return(0,tt.Tm)(Hr,ti=>({className:Ue()(ti.className,co),style:Object.assign(Object.assign(Object.assign({},wo),{pointerEvents:co?"none":void 0}),ti.style)}))}))};var Lr=We.forwardRef(ur),Ar=ze(17313),Gr=ze(8378),Kr=ze(83116),Mr=ze(37613),Jr=tn=>{const{componentCls:gn,iconCls:yn}=tn;return{[`${gn}-wrapper`]:{[`${gn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:tn.colorFillAlter,border:`${tn.lineWidth}px dashed ${tn.colorBorder}`,borderRadius:tn.borderRadiusLG,cursor:"pointer",transition:`border-color ${tn.motionDurationSlow}`,[gn]:{padding:`${tn.padding}px 0`},[`${gn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${gn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${gn}-disabled):hover`]:{borderColor:tn.colorPrimaryHover},[`p${gn}-drag-icon`]:{marginBottom:tn.margin,[yn]:{color:tn.colorPrimary,fontSize:tn.uploadThumbnailSize}},[`p${gn}-text`]:{margin:`0 0 ${tn.marginXXS}px`,color:tn.colorTextHeading,fontSize:tn.fontSizeLG},[`p${gn}-hint`]:{color:tn.colorTextDescription,fontSize:tn.fontSize},[`&${gn}-disabled`]:{cursor:"not-allowed",[`p${gn}-drag-icon ${yn},
p${gn}-text,
p${gn}-hint
`]:{color:tn.colorTextDisabled}}}}}},bi=tn=>{const{componentCls:gn,antCls:yn,iconCls:vn,fontSize:Ln,lineHeight:Fn}=tn,Gn=`${gn}-list-item`,Hn=`${Gn}-actions`,gr=`${Gn}-action`,dn=Math.round(Ln*Fn);return{[`${gn}-wrapper`]:{[`${gn}-list`]:Object.assign(Object.assign({},(0,Ar.dF)()),{lineHeight:tn.lineHeight,[Gn]:{position:"relative",height:tn.lineHeight*Ln,marginTop:tn.marginXS,fontSize:Ln,display:"flex",alignItems:"center",transition:`background-color ${tn.motionDurationSlow}`,"&:hover":{backgroundColor:tn.controlItemBgHover},[`${Gn}-name`]:Object.assign(Object.assign({},Ar.vS),{padding:`0 ${tn.paddingXS}px`,lineHeight:Fn,flex:"auto",transition:`all ${tn.motionDurationSlow}`}),[Hn]:{[gr]:{opacity:0},[`${gr}${yn}-btn-sm`]:{height:dn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${gr}:focus-visible,
&.picture ${gr}
`]:{opacity:1},[vn]:{color:tn.actionsColor,transition:`all ${tn.motionDurationSlow}`},[`&:hover ${vn}`]:{color:tn.colorText}},[`${gn}-icon ${vn}`]:{color:tn.colorTextDescription,fontSize:Ln},[`${Gn}-progress`]:{position:"absolute",bottom:-tn.uploadProgressOffset,width:"100%",paddingInlineStart:Ln+tn.paddingXS,fontSize:Ln,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Gn}:hover ${gr}`]:{opacity:1,color:tn.colorText},[`${Gn}-error`]:{color:tn.colorError,[`${Gn}-name, ${gn}-icon ${vn}`]:{color:tn.colorError},[Hn]:{[`${vn}, ${vn}:hover`]:{color:tn.colorError},[gr]:{opacity:1}}},[`${gn}-list-item-container`]:{transition:`opacity ${tn.motionDurationSlow}, height ${tn.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},mi=ze(93083),Tn=ze(1950);const dr=new mi.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ar=new mi.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Jn=tn=>{const{componentCls:gn}=tn,yn=`${gn}-animate-inline`;return[{[`${gn}-wrapper`]:{[`${yn}-appear, ${yn}-enter, ${yn}-leave`]:{animationDuration:tn.motionDurationSlow,animationTimingFunction:tn.motionEaseInOutCirc,animationFillMode:"forwards"},[`${yn}-appear, ${yn}-enter`]:{animationName:dr},[`${yn}-leave`]:{animationName:ar}}},{[`${gn}-wrapper`]:(0,Tn.J$)(tn)},dr,ar]},zn=ze(93398),$t=ze(64993);const Xt=tn=>{const{componentCls:gn,iconCls:yn,uploadThumbnailSize:vn,uploadProgressOffset:Ln}=tn,Fn=`${gn}-list`,Gn=`${Fn}-item`;return{[`${gn}-wrapper`]:{[`
${Fn}${Fn}-picture,
${Fn}${Fn}-picture-card,
${Fn}${Fn}-picture-circle
`]:{[Gn]:{position:"relative",height:vn+tn.lineWidth*2+tn.paddingXS*2,padding:tn.paddingXS,border:`${tn.lineWidth}px ${tn.lineType} ${tn.colorBorder}`,borderRadius:tn.borderRadiusLG,"&:hover":{background:"transparent"},[`${Gn}-thumbnail`]:Object.assign(Object.assign({},Ar.vS),{width:vn,height:vn,lineHeight:`${vn+tn.paddingSM}px`,textAlign:"center",flex:"none",[yn]:{fontSize:tn.fontSizeHeading2,color:tn.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Gn}-progress`]:{bottom:Ln,width:`calc(100% - ${tn.paddingSM*2}px)`,marginTop:0,paddingInlineStart:vn+tn.paddingXS}},[`${Gn}-error`]:{borderColor:tn.colorError,[`${Gn}-thumbnail ${yn}`]:{[`svg path[fill='${zn.blue[0]}']`]:{fill:tn.colorErrorBg},[`svg path[fill='${zn.blue.primary}']`]:{fill:tn.colorError}}},[`${Gn}-uploading`]:{borderStyle:"dashed",[`${Gn}-name`]:{marginBottom:Ln}}},[`${Fn}${Fn}-picture-circle ${Gn}`]:{[`&, &::before, ${Gn}-thumbnail`]:{borderRadius:"50%"}}}}},Tt=tn=>{const{componentCls:gn,iconCls:yn,fontSizeLG:vn,colorTextLightSolid:Ln}=tn,Fn=`${gn}-list`,Gn=`${Fn}-item`,Hn=tn.uploadPicCardSize;return{[`
${gn}-wrapper${gn}-picture-card-wrapper,
${gn}-wrapper${gn}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Ar.dF)()),{display:"inline-block",width:"100%",[`${gn}${gn}-select`]:{width:Hn,height:Hn,marginInlineEnd:tn.marginXS,marginBottom:tn.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:tn.colorFillAlter,border:`${tn.lineWidth}px dashed ${tn.colorBorder}`,borderRadius:tn.borderRadiusLG,cursor:"pointer",transition:`border-color ${tn.motionDurationSlow}`,[`> ${gn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${gn}-disabled):hover`]:{borderColor:tn.colorPrimary}},[`${Fn}${Fn}-picture-card, ${Fn}${Fn}-picture-circle`]:{[`${Fn}-item-container`]:{display:"inline-block",width:Hn,height:Hn,marginBlock:`0 ${tn.marginXS}px`,marginInline:`0 ${tn.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Gn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${tn.paddingXS*2}px)`,height:`calc(100% - ${tn.paddingXS*2}px)`,backgroundColor:tn.colorBgMask,opacity:0,transition:`all ${tn.motionDurationSlow}`,content:'" "'}},[`${Gn}:hover`]:{[`&::before, ${Gn}-actions`]:{opacity:1}},[`${Gn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${tn.motionDurationSlow}`,[`${yn}-eye, ${yn}-download, ${yn}-delete`]:{zIndex:10,width:vn,margin:`0 ${tn.marginXXS}px`,fontSize:vn,cursor:"pointer",transition:`all ${tn.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Gn}-actions, ${Gn}-actions:hover`]:{[`${yn}-eye, ${yn}-download, ${yn}-delete`]:{color:new $t.C(Ln).setAlpha(.65).toRgbString(),"&:hover":{color:Ln}}},[`${Gn}-thumbnail, ${Gn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Gn}-name`]:{display:"none",textAlign:"center"},[`${Gn}-file + ${Gn}-name`]:{position:"absolute",bottom:tn.margin,display:"block",width:`calc(100% - ${tn.paddingXS*2}px)`},[`${Gn}-uploading`]:{[`&${Gn}`]:{backgroundColor:tn.colorFillAlter},[`&::before, ${yn}-eye, ${yn}-download, ${yn}-delete`]:{display:"none"}},[`${Gn}-progress`]:{bottom:tn.marginXL,width:`calc(100% - ${tn.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${gn}-wrapper${gn}-picture-circle-wrapper`]:{[`${gn}${gn}-select`]:{borderRadius:"50%"}}}};var pn=tn=>{const{componentCls:gn}=tn;return{[`${gn}-rtl`]:{direction:"rtl"}}};const Yt=tn=>{const{componentCls:gn,colorTextDisabled:yn}=tn;return{[`${gn}-wrapper`]:Object.assign(Object.assign({},(0,Ar.Wf)(tn)),{[gn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${gn}-select`]:{display:"inline-block"},[`${gn}-disabled`]:{color:yn,cursor:"not-allowed"}})}};var Bt=(0,Kr.Z)("Upload",tn=>{const{fontSizeHeading3:gn,fontSize:yn,lineHeight:vn,lineWidth:Ln,controlHeightLG:Fn}=tn,Gn=Math.round(yn*vn),Hn=(0,Mr.TS)(tn,{uploadThumbnailSize:gn*2,uploadProgressOffset:Gn/2+Ln,uploadPicCardSize:Fn*2.55});return[Yt(Hn),Jr(Hn),Xt(Hn),Tt(Hn),bi(Hn),Jn(Hn),pn(Hn),(0,Gr.Z)(Hn)]},tn=>({actionsColor:tn.colorTextDescription})),un=function(tn,gn,yn,vn){function Ln(Fn){return Fn instanceof yn?Fn:new yn(function(Gn){Gn(Fn)})}return new(yn||(yn=Promise))(function(Fn,Gn){function Hn(Dr){try{dn(vn.next(Dr))}catch(zr){Gn(zr)}}function gr(Dr){try{dn(vn.throw(Dr))}catch(zr){Gn(zr)}}function dn(Dr){Dr.done?Fn(Dr.value):Ln(Dr.value).then(Hn,gr)}dn((vn=vn.apply(tn,gn||[])).next())})};const bn=`__LIST_IGNORE_${Date.now()}__`,On=(tn,gn)=>{const{fileList:yn,defaultFileList:vn,onRemove:Ln,showUploadList:Fn=!0,listType:Gn="text",onPreview:Hn,onDownload:gr,onChange:dn,onDrop:Dr,previewFile:zr,disabled:Qr,locale:wn,iconRender:Yn,isImageUrl:cr,progress:Fr,prefixCls:fr,className:br,type:Hr="select",children:Rr,style:Cr,itemRender:Zr,maxCount:Dn,data:Ei={},multiple:kn=!1,action:ci="",accept:Ri="",supportServerRender:$r=!0,rootClassName:Xi}=tn,Oi=We.useContext(_e.Z),Ir=Qr!=null?Qr:Oi,[jr,xi]=(0,ut.Z)(vn||[],{value:yn,postState:bo=>bo!=null?bo:[]}),[ki,pr]=We.useState("drop"),kt=We.useRef(null);We.useMemo(()=>{const bo=Date.now();(yn||[]).forEach((_i,da)=>{!_i.uid&&!Object.isFrozen(_i)&&(_i.uid=`__AUTO__${bo}_${da}__`)})},[yn]);const Li=(bo,_i,da)=>{let Ao=(0,xt.Z)(_i),eo=!1;Dn===1?Ao=Ao.slice(-1):Dn&&(eo=Ao.length>Dn,Ao=Ao.slice(0,Dn)),(0,ct.flushSync)(()=>{xi(Ao)});const Bo={file:bo,fileList:Ao};da&&(Bo.event=da),(!eo||Ao.some(ws=>ws.uid===bo.uid))&&(0,ct.flushSync)(()=>{dn==null||dn(Bo)})},ao=(bo,_i)=>un(void 0,void 0,void 0,function*(){const{beforeUpload:da,transformFile:Ao}=tn;let eo=bo;if(da){const Bo=yield da(bo,_i);if(Bo===!1)return!1;if(delete bo[bn],Bo===bn)return Object.defineProperty(bo,bn,{value:!0,configurable:!0}),!1;typeof Bo=="object"&&Bo&&(eo=Bo)}return Ao&&(eo=yield Ao(eo)),eo}),Pi=bo=>{const _i=bo.filter(eo=>!eo.file[bn]);if(!_i.length)return;const da=_i.map(eo=>je(eo.file));let Ao=(0,xt.Z)(jr);da.forEach(eo=>{Ao=De(eo,Ao)}),da.forEach((eo,Bo)=>{let ws=eo;if(_i[Bo].parsedFile)eo.status="uploading";else{const{originFileObj:Ci}=eo;let ho;try{ho=new File([Ci],Ci.name,{type:Ci.type})}catch(oo){ho=new Blob([Ci],{type:Ci.type}),ho.name=Ci.name,ho.lastModifiedDate=new Date,ho.lastModified=new Date().getTime()}ho.uid=eo.uid,ws=ho}Li(ws,Ao)})},co=(bo,_i,da)=>{try{typeof bo=="string"&&(bo=JSON.parse(bo))}catch(Bo){}if(!Ye(_i,jr))return;const Ao=je(_i);Ao.status="done",Ao.percent=100,Ao.response=bo,Ao.xhr=da;const eo=De(Ao,jr);Li(Ao,eo)},wo=(bo,_i)=>{if(!Ye(_i,jr))return;const da=je(_i);da.status="uploading",da.percent=bo.percent;const Ao=De(da,jr);Li(da,Ao,bo)},ti=(bo,_i,da)=>{if(!Ye(da,jr))return;const Ao=je(da);Ao.error=bo,Ao.response=_i,Ao.status="error";const eo=De(Ao,jr);Li(Ao,eo)},hi=bo=>{let _i;Promise.resolve(typeof Ln=="function"?Ln(bo):Ln).then(da=>{var Ao;if(da===!1)return;const eo=dt(bo,jr);eo&&(_i=Object.assign(Object.assign({},bo),{status:"removed"}),jr==null||jr.forEach(Bo=>{const ws=_i.uid!==void 0?"uid":"name";Bo[ws]===_i[ws]&&!Object.isFrozen(Bo)&&(Bo.status="removed")}),(Ao=kt.current)===null||Ao===void 0||Ao.abort(_i),Li(_i,eo))})},Fi=bo=>{pr(bo.type),bo.type==="drop"&&(Dr==null||Dr(bo))};We.useImperativeHandle(gn,()=>({onBatchStart:Pi,onSuccess:co,onProgress:wo,onError:ti,fileList:jr,upload:kt.current}));const{getPrefixCls:wi,direction:so,upload:Po}=We.useContext(yt.E_),Vr=wi("upload",fr),Xr=Object.assign(Object.assign({onBatchStart:Pi,onError:ti,onProgress:wo,onSuccess:co},tn),{data:Ei,multiple:kn,action:ci,accept:Ri,supportServerRender:$r,prefixCls:Vr,disabled:Ir,beforeUpload:ao,onChange:void 0});delete Xr.className,delete Xr.style,(!Rr||Ir)&&delete Xr.id;const[qn,si]=Bt(Vr),[qi]=(0,st.Z)("Upload",pt.Z.Upload),{showRemoveIcon:Ro,showPreviewIcon:lo,showDownloadIcon:Qi,removeIcon:Do,previewIcon:Oo,downloadIcon:oa}=typeof Fn=="boolean"?{}:Fn,la=(bo,_i)=>Fn?We.createElement(Lr,{prefixCls:Vr,listType:Gn,items:jr,previewFile:zr,onPreview:Hn,onDownload:gr,onRemove:hi,showRemoveIcon:!Ir&&Ro,showPreviewIcon:lo,showDownloadIcon:Qi,removeIcon:Do,previewIcon:Oo,downloadIcon:oa,iconRender:Yn,locale:Object.assign(Object.assign({},qi),wn),isImageUrl:cr,progress:Fr,appendAction:bo,appendActionVisible:_i,itemRender:Zr,disabled:Ir}):bo,Ma=Ue()(`${Vr}-wrapper`,br,Xi,si,Po==null?void 0:Po.className,{[`${Vr}-rtl`]:so==="rtl",[`${Vr}-picture-card-wrapper`]:Gn==="picture-card",[`${Vr}-picture-circle-wrapper`]:Gn==="picture-circle"}),Mn=Object.assign(Object.assign({},Po==null?void 0:Po.style),Cr);if(Hr==="drag"){const bo=Ue()(si,Vr,`${Vr}-drag`,{[`${Vr}-drag-uploading`]:jr.some(_i=>_i.status==="uploading"),[`${Vr}-drag-hover`]:ki==="dragover",[`${Vr}-disabled`]:Ir,[`${Vr}-rtl`]:so==="rtl"});return qn(We.createElement("span",{className:Ma},We.createElement("div",{className:bo,style:Mn,onDrop:Fi,onDragOver:Fi,onDragLeave:Fi},We.createElement(qe,Object.assign({},Xr,{ref:kt,className:`${Vr}-btn`}),We.createElement("div",{className:`${Vr}-drag-container`},Rr))),la()))}const ha=Ue()(Vr,`${Vr}-select`,{[`${Vr}-disabled`]:Ir}),xs=(bo=>We.createElement("div",{className:ha,style:bo},We.createElement(qe,Object.assign({},Xr,{ref:kt}))))(Rr?void 0:{display:"none"});return qn(Gn==="picture-card"||Gn==="picture-circle"?We.createElement("span",{className:Ma},la(xs,!!Rr)):We.createElement("span",{className:Ma},xs,la()))};var Gt=We.forwardRef(On),An=function(tn,gn){var yn={};for(var vn in tn)Object.prototype.hasOwnProperty.call(tn,vn)&&gn.indexOf(vn)<0&&(yn[vn]=tn[vn]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ln=0,vn=Object.getOwnPropertySymbols(tn);Ln<vn.length;Ln++)gn.indexOf(vn[Ln])<0&&Object.prototype.propertyIsEnumerable.call(tn,vn[Ln])&&(yn[vn[Ln]]=tn[vn[Ln]]);return yn},rr=We.forwardRef((tn,gn)=>{var{style:yn,height:vn}=tn,Ln=An(tn,["style","height"]);return We.createElement(Gt,Object.assign({ref:gn},Ln,{type:"drag",style:Object.assign(Object.assign({},yn),{height:vn})}))});const xn=Gt;xn.Dragger=rr,xn.LIST_IGNORE=bn;var Cn=xn},99498:function(Nn,mn,ze){(function(We){We(ze(89780))})(function(We){We.defineOption("placeholder","",function(Ce,Ee,ye){var be=ye&&ye!=We.Init;if(Ee&&!be)Ce.on("blur",Oe),Ce.on("change",ve),Ce.on("swapDoc",ve),We.on(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose=function(){Ue(Ce)}),ve(Ce);else if(!Ee&&be){Ce.off("blur",Oe),Ce.off("change",ve),Ce.off("swapDoc",ve),We.off(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose),xt(Ce);var me=Ce.getWrapperElement();me.className=me.className.replace(" CodeMirror-empty","")}Ee&&!Ce.hasFocus()&&Oe(Ce)});function xt(Ce){Ce.state.placeholder&&(Ce.state.placeholder.parentNode.removeChild(Ce.state.placeholder),Ce.state.placeholder=null)}function oe(Ce){xt(Ce);var Ee=Ce.state.placeholder=document.createElement("pre");Ee.style.cssText="height: 0; overflow: visible",Ee.style.direction=Ce.getOption("direction"),Ee.className="CodeMirror-placeholder CodeMirror-line-like";var ye=Ce.getOption("placeholder");typeof ye=="string"&&(ye=document.createTextNode(ye)),Ee.appendChild(ye),Ce.display.lineSpace.insertBefore(Ee,Ce.display.lineSpace.firstChild)}function Ue(Ce){setTimeout(function(){var Ee=!1,ye=Ce.getInputField();ye.nodeName=="TEXTAREA"?Ee=!ye.value:Ce.lineCount()==1&&(Ee=!/[^\u200b]/.test(ye.querySelector(".CodeMirror-line").textContent)),Ee?oe(Ce):xt(Ce)},20)}function Oe(Ce){ce(Ce)&&oe(Ce)}function ve(Ce){var Ee=Ce.getWrapperElement(),ye=ce(Ce);Ee.className=Ee.className.replace(" CodeMirror-empty","")+(ye?" CodeMirror-empty":""),ye?oe(Ce):xt(Ce)}function ce(Ce){return Ce.lineCount()===1&&Ce.getLine(0)===""}})},25717:function(Nn,mn,ze){(function(We){We(ze(89780))})(function(We){var xt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},oe=We.Pos;We.defineOption("autoCloseBrackets",!1,function(z,ee,ae){ae&&ae!=We.Init&&(z.removeKeyMap(Oe),z.state.closeBrackets=null),ee&&(ve(Ue(ee,"pairs")),z.state.closeBrackets=ee,z.addKeyMap(Oe))});function Ue(z,ee){return ee=="pairs"&&typeof z=="string"?z:typeof z=="object"&&z[ee]!=null?z[ee]:xt[ee]}var Oe={Backspace:Ee,Enter:ye};function ve(z){for(var ee=0;ee<z.length;ee++){var ae=z.charAt(ee),re="'"+ae+"'";Oe[re]||(Oe[re]=ce(ae))}}ve(xt.pairs+"`");function ce(z){return function(ee){return me(ee,z)}}function Ce(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=Ce(z);if(!ee||z.getOption("disableInput"))return We.Pass;for(var ae=Ue(ee,"pairs"),re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return We.Pass;var ue=xe(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return We.Pass}for(var le=re.length-1;le>=0;le--){var pe=re[le].head;z.replaceRange("",oe(pe.line,pe.ch-1),oe(pe.line,pe.ch+1),"+delete")}}function ye(z){var ee=Ce(z),ae=ee&&Ue(ee,"explode");if(!ae||z.getOption("disableInput"))return We.Pass;for(var re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return We.Pass;var ue=xe(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return We.Pass}z.operation(function(){var pe=z.lineSeparator()||`
`;z.replaceSelection(pe+pe,null),z.execCommand("goCharLeft"),re=z.listSelections();for(var Pe=0;Pe<re.length;Pe++){var we=re[Pe].head.line;z.indentLine(we,null,!0),z.indentLine(we+1,null,!0)}})}function be(z){var ee=We.cmpPos(z.anchor,z.head)>0;return{anchor:new oe(z.anchor.line,z.anchor.ch+(ee?-1:1)),head:new oe(z.head.line,z.head.ch+(ee?1:-1))}}function me(z,ee){var ae=Ce(z);if(!ae||z.getOption("disableInput"))return We.Pass;var re=Ue(ae,"pairs"),le=re.indexOf(ee);if(le==-1)return We.Pass;for(var ue=Ue(ae,"closeBefore"),pe=Ue(ae,"triples"),Pe=re.charAt(le+1)==ee,we=z.listSelections(),Ne=le%2==0,Ae,Te=0;Te<we.length;Te++){var Me=we[Te],Be=Me.head,Re,Qe=z.getRange(Be,oe(Be.line,Be.ch+1));if(Ne&&!Me.empty())Re="surround";else if((Pe||!Ne)&&Qe==ee)Pe&&fe(z,Be)?Re="both":pe.indexOf(ee)>=0&&z.getRange(Be,oe(Be.line,Be.ch+3))==ee+ee+ee?Re="skipThree":Re="skip";else if(Pe&&Be.ch>1&&pe.indexOf(ee)>=0&&z.getRange(oe(Be.line,Be.ch-2),Be)==ee+ee){if(Be.ch>2&&/\bstring/.test(z.getTokenTypeAt(oe(Be.line,Be.ch-2))))return We.Pass;Re="addFour"}else if(Pe){var He=Be.ch==0?" ":z.getRange(oe(Be.line,Be.ch-1),Be);if(!We.isWordChar(Qe)&&He!=ee&&!We.isWordChar(He))Re="both";else return We.Pass}else if(Ne&&(Qe.length===0||/\s/.test(Qe)||ue.indexOf(Qe)>-1))Re="both";else return We.Pass;if(!Ae)Ae=Re;else if(Ae!=Re)return We.Pass}var $e=le%2?re.charAt(le-1):ee,qe=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 ct=z.getSelections(),ut=0;ut<ct.length;ut++)ct[ut]=$e+ct[ut]+qe;z.replaceSelections(ct,"around"),ct=z.listSelections().slice();for(var ut=0;ut<ct.length;ut++)ct[ut]=be(ct[ut]);z.setSelections(ct)}else Ae=="both"?(z.replaceSelection($e+qe,null),z.triggerElectric($e+qe),z.execCommand("goCharLeft")):Ae=="addFour"&&(z.replaceSelection($e+$e+$e+$e,"before"),z.execCommand("goCharRight"))})}function xe(z,ee){var ae=z.getRange(oe(ee.line,ee.ch-1),oe(ee.line,ee.ch+1));return ae.length==2?ae:null}function fe(z,ee){var ae=z.getTokenAt(oe(ee.line,ee.ch+1));return/\bstring/.test(ae.type)&&ae.start==ee.ch&&(ee.ch==0||!/\bstring/.test(z.getTokenTypeAt(ee)))}})},6313:function(Nn,mn,ze){(function(We){We(ze(89780),ze(32855))})(function(We){We.defineOption("autoCloseTags",!1,function(Ee,ye,be){if(be!=We.Init&&be&&Ee.removeKeyMap("autoCloseTags"),!!ye){var me={name:"autoCloseTags"};(typeof ye!="object"||ye.whenClosing!==!1)&&(me["'/'"]=function(xe){return ve(xe)}),(typeof ye!="object"||ye.whenOpening!==!1)&&(me["'>'"]=function(xe){return Ue(xe)}),Ee.addKeyMap(me)}});var xt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],oe=["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 Ue(Ee){if(Ee.getOption("disableInput"))return We.Pass;for(var ye=Ee.listSelections(),be=[],me=Ee.getOption("autoCloseTags"),xe=0;xe<ye.length;xe++){if(!ye[xe].empty())return We.Pass;var fe=ye[xe].head,z=Ee.getTokenAt(fe),ee=We.innerMode(Ee.getMode(),z.state),ae=ee.state,re=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(ae),le=re&&re.name;if(!le)return We.Pass;var ue=ee.mode.configuration=="html",pe=typeof me=="object"&&me.dontCloseTags||ue&&xt,Pe=typeof me=="object"&&me.indentTags||ue&&oe;z.end>fe.ch&&(le=le.slice(0,le.length-z.end+fe.ch));var we=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,we)>-1||Ce(Ee,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(ae)||[],le,fe,!0))return We.Pass;var Ne=typeof me=="object"&&me.emptyTags;if(Ne&&ce(Ne,le)>-1){be[xe]={text:"/>",newPos:We.Pos(fe.line,fe.ch+2)};continue}var Ae=Pe&&ce(Pe,we)>-1;be[xe]={indent:Ae,text:">"+(Ae?`
`:"")+"</"+le+">",newPos:Ae?We.Pos(fe.line+1,0):We.Pos(fe.line,fe.ch+1)}}for(var Te=typeof me=="object"&&me.dontIndentOnAutoClose,xe=ye.length-1;xe>=0;xe--){var Me=be[xe];Ee.replaceRange(Me.text,ye[xe].head,ye[xe].anchor,"+insert");var Be=Ee.listSelections().slice(0);Be[xe]={head:Me.newPos,anchor:Me.newPos},Ee.setSelections(Be),!Te&&Me.indent&&(Ee.indentLine(Me.newPos.line,null,!0),Ee.indentLine(Me.newPos.line+1,null,!0))}}function Oe(Ee,ye){for(var be=Ee.listSelections(),me=[],xe=ye?"/":"</",fe=Ee.getOption("autoCloseTags"),z=typeof fe=="object"&&fe.dontIndentOnSlash,ee=0;ee<be.length;ee++){if(!be[ee].empty())return We.Pass;var ae=be[ee].head,re=Ee.getTokenAt(ae),le=We.innerMode(Ee.getMode(),re.state),ue=le.state;if(ye&&(re.type=="string"||re.string.charAt(0)!="<"||re.start!=ae.ch-1))return We.Pass;var pe,Pe=le.mode.name!="xml"&&Ee.getMode().name=="htmlmixed";if(Pe&&le.mode.name=="javascript")pe=xe+"script";else if(Pe&&le.mode.name=="css")pe=xe+"style";else{var we=le.mode.xmlCurrentContext&&le.mode.xmlCurrentContext(ue);if(!we||we.length&&Ce(Ee,we,we[we.length-1],ae))return We.Pass;pe=xe+we[we.length-1]}Ee.getLine(ae.line).charAt(re.end)!=">"&&(pe+=">"),me[ee]=pe}if(Ee.replaceSelections(me),be=Ee.listSelections(),!z)for(var ee=0;ee<be.length;ee++)(ee==be.length-1||be[ee].head.line<be[ee+1].head.line)&&Ee.indentLine(be[ee].head.line)}function ve(Ee){return Ee.getOption("disableInput")?We.Pass:Oe(Ee,!0)}We.commands.closeTag=function(Ee){return Oe(Ee)};function ce(Ee,ye){if(Ee.indexOf)return Ee.indexOf(ye);for(var be=0,me=Ee.length;be<me;++be)if(Ee[be]==ye)return be;return-1}function Ce(Ee,ye,be,me,xe){if(!We.scanForClosingTag)return!1;var fe=Math.min(Ee.lastLine()+1,me.line+500),z=We.scanForClosingTag(Ee,me,null,fe);if(!z||z.tag!=be)return!1;for(var ee=xe?1:0,ae=ye.length-1;ae>=0&&ye[ae]==be;ae--)++ee;me=z.to;for(var ae=1;ae<ee;ae++){var re=We.scanForClosingTag(Ee,me,null,fe);if(!re||re.tag!=be)return!1;me=re.to}return!0}})},32855:function(Nn,mn,ze){(function(We){We(ze(89780))})(function(We){"use strict";var xt=We.Pos;function oe(ae,re){return ae.line-re.line||ae.ch-re.ch}var Ue="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Oe=Ue+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ve=new RegExp("<(/?)(["+Ue+"]["+Oe+"]*)","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 Ce(ae,re){var le=ae.cm.getTokenTypeAt(xt(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 be(ae){for(;;){var re=ae.text.indexOf(">",ae.ch);if(re==-1){if(Ee(ae))continue;return}if(!Ce(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 me(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf("<",ae.ch-1):-1;if(re==-1){if(ye(ae))continue;return}if(!Ce(ae,re+1)){ae.ch=re;continue}ve.lastIndex=re,ae.ch=re;var le=ve.exec(ae.text);if(le&&le.index==re)return le}}function xe(ae){for(;;){ve.lastIndex=ae.ch;var re=ve.exec(ae.text);if(!re){if(Ee(ae))continue;return}if(!Ce(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(!Ce(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,Pe=ae.line,we=ae.ch-(ue?ue[0].length:0);if(!ue||!(pe=be(ae)))return;if(pe!="selfClose")if(ue[1]){for(var Ne=le.length-1;Ne>=0;--Ne)if(le[Ne]==ue[2]){le.length=Ne;break}if(Ne<0&&(!re||re==ue[2]))return{tag:ue[2],from:xt(Pe,we),to:xt(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"){me(ae);continue}var pe=ae.line,Pe=ae.ch,we=me(ae);if(!we)return;if(we[1])le.push(we[2]);else{for(var Ne=le.length-1;Ne>=0;--Ne)if(le[Ne]==we[2]){le.length=Ne;break}if(Ne<0&&(!re||re==we[2]))return{tag:we[2],from:xt(ae.line,ae.ch),to:xt(pe,Pe)}}}}We.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=be(le);if(!pe)return;if(!ue[1]&&pe!="selfClose"){var Pe=xt(le.line,le.ch),we=z(le,ue[2]);return we&&oe(we.from,Pe)>0?{from:Pe,to:we.from}:null}}}),We.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=be(ue),Pe=pe&&xt(ue.line,ue.ch),we=pe&&me(ue);if(!(!pe||!we||oe(ue,re)>0)){var Ne={from:xt(ue.line,ue.ch),to:Pe,tag:we[2]};return pe=="selfClose"?{open:Ne,close:null,at:"open"}:we[1]?{open:ee(ue,we[2]),close:Ne,at:"close"}:(ue=new ce(ae,Pe.line,Pe.ch,le),{open:Ne,close:z(ue,we[2]),at:"open"})}}},We.findEnclosingTag=function(ae,re,le,ue){for(var pe=new ce(ae,re.line,re.ch,le);;){var Pe=ee(pe,ue);if(!Pe)break;var we=new ce(ae,re.line,re.ch,le),Ne=z(we,Pe.tag);if(Ne)return{open:Pe,close:Ne}}},We.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(Nn){(function(mn,ze){Nn.exports=ze()})(this,function(){"use strict";var mn=navigator.userAgent,ze=navigator.platform,We=/gecko\/\d/i.test(mn),xt=/MSIE \d/.test(mn),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(mn),Ue=/Edge\/(\d+)/.exec(mn),Oe=xt||oe||Ue,ve=Oe&&(xt?document.documentMode||6:+(Ue||oe)[1]),ce=!Ue&&/WebKit\//.test(mn),Ce=ce&&/Qt\/\d+\.\d+/.test(mn),Ee=!Ue&&/Chrome\//.test(mn),ye=/Opera\//.test(mn),be=/Apple Computer/.test(navigator.vendor),me=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(mn),xe=/PhantomJS/.test(mn),fe=!Ue&&/AppleWebKit/.test(mn)&&/Mobile\/\w+/.test(mn),z=/Android/.test(mn),ee=fe||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(mn),ae=fe||/Mac/.test(ze),re=/\bCrOS\b/.test(mn),le=/win/i.test(ze),ue=ye&&mn.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(ye=!1,ce=!0);var pe=ae&&(Ce||ye&&(ue==null||ue<12.11)),Pe=We||Oe&&ve>=9;function we(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ne=function(ie,de){var Fe=ie.className,Le=we(de).exec(Fe);if(Le){var Ie=Fe.slice(Le.index+Le[0].length);ie.className=Fe.slice(0,Le.index)+(Ie?Le[1]+Ie:"")}};function Ae(ie){for(var de=ie.childNodes.length;de>0;--de)ie.removeChild(ie.firstChild);return ie}function Te(ie,de){return Ae(ie).appendChild(de)}function Me(ie,de,Fe,Le){var Ie=document.createElement(ie);if(Fe&&(Ie.className=Fe),Le&&(Ie.style.cssText=Le),typeof de=="string")Ie.appendChild(document.createTextNode(de));else if(de)for(var lt=0;lt<de.length;++lt)Ie.appendChild(de[lt]);return Ie}function Be(ie,de,Fe,Le){var Ie=Me(ie,de,Fe,Le);return Ie.setAttribute("role","presentation"),Ie}var Re;document.createRange?Re=function(ie,de,Fe,Le){var Ie=document.createRange();return Ie.setEnd(Le||ie,Fe),Ie.setStart(ie,de),Ie}:Re=function(ie,de,Fe){var Le=document.body.createTextRange();try{Le.moveToElementText(ie.parentNode)}catch(Ie){return Le}return Le.collapse(!0),Le.moveEnd("character",Fe),Le.moveStart("character",de),Le};function Qe(ie,de){if(de.nodeType==3&&(de=de.parentNode),ie.contains)return ie.contains(de);do if(de.nodeType==11&&(de=de.host),de==ie)return!0;while(de=de.parentNode)}function He(){var ie;try{ie=document.activeElement}catch(de){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function $e(ie,de){var Fe=ie.className;we(de).test(Fe)||(ie.className+=(Fe?" ":"")+de)}function qe(ie,de){for(var Fe=ie.split(" "),Le=0;Le<Fe.length;Le++)Fe[Le]&&!we(Fe[Le]).test(de)&&(de+=" "+Fe[Le]);return de}var ut=function(ie){ie.select()};fe?ut=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Oe&&(ut=function(ie){try{ie.select()}catch(de){}});function ct(ie){var de=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,de)}}function yt(ie,de,Fe){de||(de={});for(var Le in ie)ie.hasOwnProperty(Le)&&(Fe!==!1||!de.hasOwnProperty(Le))&&(de[Le]=ie[Le]);return de}function _e(ie,de,Fe,Le,Ie){de==null&&(de=ie.search(/[^\s\u00a0]/),de==-1&&(de=ie.length));for(var lt=Le||0,Lt=Ie||0;;){var Rt=ie.indexOf(" ",lt);if(Rt<0||Rt>=de)return Lt+(de-lt);Lt+=Rt-lt,Lt+=Fe-Lt%Fe,lt=Rt+1}}var st=function(){this.id=null,this.f=null,this.time=0,this.handler=ct(this.onTimeout,this)};st.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},st.prototype.set=function(ie,de){this.f=de;var Fe=+new Date+ie;(!this.id||Fe<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=Fe)};function pt(ie,de){for(var Fe=0;Fe<ie.length;++Fe)if(ie[Fe]==de)return Fe;return-1}var bt=50,wt={toString:function(){return"CodeMirror.Pass"}},mt={scroll:!1},vt={origin:"*mouse"},St={origin:"+move"};function Nt(ie,de,Fe){for(var Le=0,Ie=0;;){var lt=ie.indexOf(" ",Le);lt==-1&&(lt=ie.length);var Lt=lt-Le;if(lt==ie.length||Ie+Lt>=de)return Le+Math.min(Lt,de-Ie);if(Ie+=lt-Le,Ie+=Fe-Ie%Fe,Le=lt+1,Ie>=de)return Le}}var Ft=[""];function Kt(ie){for(;Ft.length<=ie;)Ft.push(Pt(Ft)+" ");return Ft[ie]}function Pt(ie){return ie[ie.length-1]}function Et(ie,de){for(var Fe=[],Le=0;Le<ie.length;Le++)Fe[Le]=de(ie[Le],Le);return Fe}function at(ie,de,Fe){for(var Le=0,Ie=Fe(de);Le<ie.length&&Fe(ie[Le])<=Ie;)Le++;ie.splice(Le,0,de)}function Ct(){}function nt(ie,de){var Fe;return Object.create?Fe=Object.create(ie):(Ct.prototype=ie,Fe=new Ct),de&&yt(de,Fe),Fe}var ht=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Mt(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||ht.test(ie))}function gt(ie,de){return de?de.source.indexOf("\\w")>-1&&Mt(ie)?!0:de.test(ie):Mt(ie)}function rt(ie){for(var de in ie)if(ie.hasOwnProperty(de)&&ie[de])return!1;return!0}var Je=/[\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 Xe(ie){return ie.charCodeAt(0)>=768&&Je.test(ie)}function Ve(ie,de,Fe){for(;(Fe<0?de>0:de<ie.length)&&Xe(ie.charAt(de));)de+=Fe;return de}function tt(ie,de,Fe){for(var Le=de>Fe?-1:1;;){if(de==Fe)return de;var Ie=(de+Fe)/2,lt=Le<0?Math.ceil(Ie):Math.floor(Ie);if(lt==de)return ie(lt)?de:Fe;ie(lt)?Fe=lt:de=lt+Le}}function Ze(ie,de,Fe,Le){if(!ie)return Le(de,Fe,"ltr",0);for(var Ie=!1,lt=0;lt<ie.length;++lt){var Lt=ie[lt];(Lt.from<Fe&&Lt.to>de||de==Fe&&Lt.to==de)&&(Le(Math.max(Lt.from,de),Math.min(Lt.to,Fe),Lt.level==1?"rtl":"ltr",lt),Ie=!0)}Ie||Le(de,Fe,"ltr")}var je=null;function De(ie,de,Fe){var Le;je=null;for(var Ie=0;Ie<ie.length;++Ie){var lt=ie[Ie];if(lt.from<de&&lt.to>de)return Ie;lt.to==de&&(lt.from!=lt.to&&Fe=="before"?Le=Ie:je=Ie),lt.from==de&&(lt.from!=lt.to&&Fe!="before"?Le=Ie:je=Ie)}return Le!=null?Le:je}var Ye=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",de="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Fe(Qt){return Qt<=247?ie.charAt(Qt):1424<=Qt&&Qt<=1524?"R":1536<=Qt&&Qt<=1785?de.charAt(Qt-1536):1774<=Qt&&Qt<=2220?"r":8192<=Qt&&Qt<=8203?"w":Qt==8204?"b":"L"}var Le=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Ie=/[stwN]/,lt=/[LRr]/,Lt=/[Lb1n]/,Rt=/[1n]/;function It(Qt,Pn,nn){this.level=Qt,this.from=Pn,this.to=nn}return function(Qt,Pn){var nn=Pn=="ltr"?"L":"R";if(Qt.length==0||Pn=="ltr"&&!Le.test(Qt))return!1;for(var Vn=Qt.length,Rn=[],yr=0;yr<Vn;++yr)Rn.push(Fe(Qt.charCodeAt(yr)));for(var Er=0,Wr=nn;Er<Vn;++Er){var ai=Rn[Er];ai=="m"?Rn[Er]=Wr:Wr=ai}for(var Ti=0,Si=nn;Ti<Vn;++Ti){var Hi=Rn[Ti];Hi=="1"&&Si=="r"?Rn[Ti]="n":lt.test(Hi)&&(Si=Hi,Hi=="r"&&(Rn[Ti]="R"))}for(var So=1,vi=Rn[0];So<Vn-1;++So){var No=Rn[So];No=="+"&&vi=="1"&&Rn[So+1]=="1"?Rn[So]="1":No==","&&vi==Rn[So+1]&&(vi=="1"||vi=="n")&&(Rn[So]=vi),vi=No}for(var $a=0;$a<Vn;++$a){var Is=Rn[$a];if(Is==",")Rn[$a]="N";else if(Is=="%"){var os=void 0;for(os=$a+1;os<Vn&&Rn[os]=="%";++os);for(var Vl=$a&&Rn[$a-1]=="!"||os<Vn&&Rn[os]=="1"?"1":"N",vl=$a;vl<os;++vl)Rn[vl]=Vl;$a=os-1}}for(var Fs=0,iu=nn;Fs<Vn;++Fs){var al=Rn[Fs];iu=="L"&&al=="1"?Rn[Fs]="L":lt.test(al)&&(iu=al)}for(var Ds=0;Ds<Vn;++Ds)if(Ie.test(Rn[Ds])){var sa=void 0;for(sa=Ds+1;sa<Vn&&Ie.test(Rn[sa]);++sa);for(var hs=(Ds?Rn[Ds-1]:nn)=="L",Gs=(sa<Vn?Rn[sa]:nn)=="L",sl=hs==Gs?hs?"L":"R":nn,Yu=Ds;Yu<sa;++Yu)Rn[Yu]=sl;Ds=sa-1}for(var as=[],Tu,ys=0;ys<Vn;)if(Lt.test(Rn[ys])){var xf=ys;for(++ys;ys<Vn&&Lt.test(Rn[ys]);++ys);as.push(new It(0,xf,ys))}else{var vu=ys,ou=as.length,Xl=Pn=="rtl"?1:0;for(++ys;ys<Vn&&Rn[ys]!="L";++ys);for(var Ia=vu;Ia<ys;)if(Rt.test(Rn[Ia])){vu<Ia&&(as.splice(ou,0,new It(1,vu,Ia)),ou+=Xl);var Zs=Ia;for(++Ia;Ia<ys&&Rt.test(Rn[Ia]);++Ia);as.splice(ou,0,new It(2,Zs,Ia)),ou+=Xl,vu=Ia}else++Ia;vu<ys&&as.splice(ou,0,new It(1,vu,ys))}return Pn=="ltr"&&(as[0].level==1&&(Tu=Qt.match(/^\s+/))&&(as[0].from=Tu[0].length,as.unshift(new It(0,0,Tu[0].length))),Pt(as).level==1&&(Tu=Qt.match(/\s+$/))&&(Pt(as).to-=Tu[0].length,as.push(new It(0,Vn-Tu[0].length,Vn)))),Pn=="rtl"?as.reverse():as}}();function dt(ie,de){var Fe=ie.order;return Fe==null&&(Fe=ie.order=Ye(ie.text,de)),Fe}var Ke=[],At=function(ie,de,Fe){if(ie.addEventListener)ie.addEventListener(de,Fe,!1);else if(ie.attachEvent)ie.attachEvent("on"+de,Fe);else{var Le=ie._handlers||(ie._handlers={});Le[de]=(Le[de]||Ke).concat(Fe)}};function zt(ie,de){return ie._handlers&&ie._handlers[de]||Ke}function _t(ie,de,Fe){if(ie.removeEventListener)ie.removeEventListener(de,Fe,!1);else if(ie.detachEvent)ie.detachEvent("on"+de,Fe);else{var Le=ie._handlers,Ie=Le&&Le[de];if(Ie){var lt=pt(Ie,Fe);lt>-1&&(Le[de]=Ie.slice(0,lt).concat(Ie.slice(lt+1)))}}}function Ot(ie,de){var Fe=zt(ie,de);if(Fe.length)for(var Le=Array.prototype.slice.call(arguments,2),Ie=0;Ie<Fe.length;++Ie)Fe[Ie].apply(null,Le)}function Vt(ie,de,Fe){return typeof de=="string"&&(de={type:de,preventDefault:function(){this.defaultPrevented=!0}}),Ot(ie,Fe||de.type,ie,de),tr(de)||de.codemirrorIgnore}function en(ie){var de=ie._handlers&&ie._handlers.cursorActivity;if(de)for(var Fe=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),Le=0;Le<de.length;++Le)pt(Fe,de[Le])==-1&&Fe.push(de[Le])}function on(ie,de){return zt(ie,de).length>0}function fn(ie){ie.prototype.on=function(de,Fe){At(this,de,Fe)},ie.prototype.off=function(de,Fe){_t(this,de,Fe)}}function jn(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function er(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function tr(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function ur(ie){jn(ie),er(ie)}function Tr(ie){return ie.target||ie.srcElement}function Lr(ie){var de=ie.which;return de==null&&(ie.button&1?de=1:ie.button&2?de=3:ie.button&4&&(de=2)),ae&&ie.ctrlKey&&de==1&&(de=3),de}var Ar=function(){if(Oe&&ve<9)return!1;var ie=Me("div");return"draggable"in ie||"dragDrop"in ie}(),Gr;function Kr(ie){if(Gr==null){var de=Me("span","\u200B");Te(ie,Me("span",[de,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Gr=de.offsetWidth<=1&&de.offsetHeight>2&&!(Oe&&ve<8))}var Fe=Gr?Me("span","\u200B"):Me("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Fe.setAttribute("cm-text",""),Fe}var Mr;function fi(ie){if(Mr!=null)return Mr;var de=Te(ie,document.createTextNode("A\u062EA")),Fe=Re(de,0,1).getBoundingClientRect(),Le=Re(de,1,2).getBoundingClientRect();return Ae(ie),!Fe||Fe.left==Fe.right?!1:Mr=Le.right-Fe.right<3}var Jr=`
b`.split(/\n/).length!=3?function(ie){for(var de=0,Fe=[],Le=ie.length;de<=Le;){var Ie=ie.indexOf(`
`,de);Ie==-1&&(Ie=ie.length);var lt=ie.slice(de,ie.charAt(Ie-1)=="\r"?Ie-1:Ie),Lt=lt.indexOf("\r");Lt!=-1?(Fe.push(lt.slice(0,Lt)),de+=Lt+1):(Fe.push(lt),de=Ie+1)}return Fe}:function(ie){return ie.split(/\r\n?|\n/)},it=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(de){return!1}}:function(ie){var de;try{de=ie.ownerDocument.selection.createRange()}catch(Fe){}return!de||de.parentElement()!=ie?!1:de.compareEndPoints("StartToEnd",de)!=0},bi=function(){var ie=Me("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),mi=null;function Tn(ie){if(mi!=null)return mi;var de=Te(ie,Me("span","x")),Fe=de.getBoundingClientRect(),Le=Re(de,0,1).getBoundingClientRect();return mi=Math.abs(Fe.left-Le.left)>1}var dr={},ar={};function vr(ie,de){arguments.length>2&&(de.dependencies=Array.prototype.slice.call(arguments,2)),dr[ie]=de}function Jn(ie,de){ar[ie]=de}function zn(ie){if(typeof ie=="string"&&ar.hasOwnProperty(ie))ie=ar[ie];else if(ie&&typeof ie.name=="string"&&ar.hasOwnProperty(ie.name)){var de=ar[ie.name];typeof de=="string"&&(de={name:de}),ie=nt(de,ie),ie.name=de.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return zn("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return zn("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function $t(ie,de){de=zn(de);var Fe=dr[de.name];if(!Fe)return $t(ie,"text/plain");var Le=Fe(ie,de);if(Xt.hasOwnProperty(de.name)){var Ie=Xt[de.name];for(var lt in Ie)Ie.hasOwnProperty(lt)&&(Le.hasOwnProperty(lt)&&(Le["_"+lt]=Le[lt]),Le[lt]=Ie[lt])}if(Le.name=de.name,de.helperType&&(Le.helperType=de.helperType),de.modeProps)for(var Lt in de.modeProps)Le[Lt]=de.modeProps[Lt];return Le}var Xt={};function Tt(ie,de){var Fe=Xt.hasOwnProperty(ie)?Xt[ie]:Xt[ie]={};yt(de,Fe)}function sn(ie,de){if(de===!0)return de;if(ie.copyState)return ie.copyState(de);var Fe={};for(var Le in de){var Ie=de[Le];Ie instanceof Array&&(Ie=Ie.concat([])),Fe[Le]=Ie}return Fe}function pn(ie,de){for(var Fe;ie.innerMode&&(Fe=ie.innerMode(de),!(!Fe||Fe.mode==ie));)de=Fe.state,ie=Fe.mode;return Fe||{mode:ie,state:de}}function Yt(ie,de,Fe){return ie.startState?ie.startState(de,Fe):!0}var Bt=function(ie,de,Fe){this.pos=this.start=0,this.string=ie,this.tabSize=de||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Fe};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(ie){var de=this.string.charAt(this.pos),Fe;if(typeof ie=="string"?Fe=de==ie:Fe=de&&(ie.test?ie.test(de):ie(de)),Fe)return++this.pos,de},Bt.prototype.eatWhile=function(ie){for(var de=this.pos;this.eat(ie););return this.pos>de},Bt.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(ie){var de=this.string.indexOf(ie,this.pos);if(de>-1)return this.pos=de,!0},Bt.prototype.backUp=function(ie){this.pos-=ie},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=_e(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?_e(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return _e(this.string,null,this.tabSize)-(this.lineStart?_e(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(ie,de,Fe){if(typeof ie=="string"){var Le=function(Lt){return Fe?Lt.toLowerCase():Lt},Ie=this.string.substr(this.pos,ie.length);if(Le(Ie)==Le(ie))return de!==!1&&(this.pos+=ie.length),!0}else{var lt=this.string.slice(this.pos).match(ie);return lt&&lt.index>0?null:(lt&&de!==!1&&(this.pos+=lt[0].length),lt)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(ie,de){this.lineStart+=ie;try{return de()}finally{this.lineStart-=ie}},Bt.prototype.lookAhead=function(ie){var de=this.lineOracle;return de&&de.lookAhead(ie)},Bt.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function un(ie,de){if(de-=ie.first,de<0||de>=ie.size)throw new Error("There is no line "+(de+ie.first)+" in the document.");for(var Fe=ie;!Fe.lines;)for(var Le=0;;++Le){var Ie=Fe.children[Le],lt=Ie.chunkSize();if(de<lt){Fe=Ie;break}de-=lt}return Fe.lines[de]}function bn(ie,de,Fe){var Le=[],Ie=de.line;return ie.iter(de.line,Fe.line+1,function(lt){var Lt=lt.text;Ie==Fe.line&&(Lt=Lt.slice(0,Fe.ch)),Ie==de.line&&(Lt=Lt.slice(de.ch)),Le.push(Lt),++Ie}),Le}function On(ie,de,Fe){var Le=[];return ie.iter(de,Fe,function(Ie){Le.push(Ie.text)}),Le}function Zn(ie,de){var Fe=de-ie.height;if(Fe)for(var Le=ie;Le;Le=Le.parent)Le.height+=Fe}function Gt(ie){if(ie.parent==null)return null;for(var de=ie.parent,Fe=pt(de.lines,ie),Le=de.parent;Le;de=Le,Le=Le.parent)for(var Ie=0;Le.children[Ie]!=de;++Ie)Fe+=Le.children[Ie].chunkSize();return Fe+de.first}function An(ie,de){var Fe=ie.first;e:do{for(var Le=0;Le<ie.children.length;++Le){var Ie=ie.children[Le],lt=Ie.height;if(de<lt){ie=Ie;continue e}de-=lt,Fe+=Ie.chunkSize()}return Fe}while(!ie.lines);for(var Lt=0;Lt<ie.lines.length;++Lt){var Rt=ie.lines[Lt],It=Rt.height;if(de<It)break;de-=It}return Fe+Lt}function Kn(ie,de){return de>=ie.first&&de<ie.first+ie.size}function rr(ie,de){return String(ie.lineNumberFormatter(de+ie.firstLineNumber))}function xn(ie,de,Fe){if(Fe===void 0&&(Fe=null),!(this instanceof xn))return new xn(ie,de,Fe);this.line=ie,this.ch=de,this.sticky=Fe}function Cn(ie,de){return ie.line-de.line||ie.ch-de.ch}function tn(ie,de){return ie.sticky==de.sticky&&Cn(ie,de)==0}function gn(ie){return xn(ie.line,ie.ch)}function yn(ie,de){return Cn(ie,de)<0?de:ie}function vn(ie,de){return Cn(ie,de)<0?ie:de}function Ln(ie,de){return Math.max(ie.first,Math.min(de,ie.first+ie.size-1))}function Fn(ie,de){if(de.line<ie.first)return xn(ie.first,0);var Fe=ie.first+ie.size-1;return de.line>Fe?xn(Fe,un(ie,Fe).text.length):Gn(de,un(ie,de.line).text.length)}function Gn(ie,de){var Fe=ie.ch;return Fe==null||Fe>de?xn(ie.line,de):Fe<0?xn(ie.line,0):ie}function Hn(ie,de){for(var Fe=[],Le=0;Le<de.length;Le++)Fe[Le]=Fn(ie,de[Le]);return Fe}var gr=function(ie,de){this.state=ie,this.lookAhead=de},dn=function(ie,de,Fe,Le){this.state=de,this.doc=ie,this.line=Fe,this.maxLookAhead=Le||0,this.baseTokens=null,this.baseTokenPos=1};dn.prototype.lookAhead=function(ie){var de=this.doc.getLine(this.line+ie);return de!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),de},dn.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var de=this.baseTokens[this.baseTokenPos+1];return{type:de&&de.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},dn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},dn.fromSaved=function(ie,de,Fe){return de instanceof gr?new dn(ie,sn(ie.mode,de.state),Fe,de.lookAhead):new dn(ie,sn(ie.mode,de),Fe)},dn.prototype.save=function(ie){var de=ie!==!1?sn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gr(de,this.maxLookAhead):de};function Dr(ie,de,Fe,Le){var Ie=[ie.state.modeGen],lt={};Hr(ie,de.text,ie.doc.mode,Fe,function(Qt,Pn){return Ie.push(Qt,Pn)},lt,Le);for(var Lt=Fe.state,Rt=function(Qt){Fe.baseTokens=Ie;var Pn=ie.state.overlays[Qt],nn=1,Vn=0;Fe.state=!0,Hr(ie,de.text,Pn.mode,Fe,function(Rn,yr){for(var Er=nn;Vn<Rn;){var Wr=Ie[nn];Wr>Rn&&Ie.splice(nn,1,Rn,Ie[nn+1],Wr),nn+=2,Vn=Math.min(Rn,Wr)}if(yr)if(Pn.opaque)Ie.splice(Er,nn-Er,Rn,"overlay "+yr),nn=Er+2;else for(;Er<nn;Er+=2){var ai=Ie[Er+1];Ie[Er+1]=(ai?ai+" ":"")+"overlay "+yr}},lt),Fe.state=Lt,Fe.baseTokens=null,Fe.baseTokenPos=1},It=0;It<ie.state.overlays.length;++It)Rt(It);return{styles:Ie,classes:lt.bgClass||lt.textClass?lt:null}}function zr(ie,de,Fe){if(!de.styles||de.styles[0]!=ie.state.modeGen){var Le=Qr(ie,Gt(de)),Ie=de.text.length>ie.options.maxHighlightLength&&sn(ie.doc.mode,Le.state),lt=Dr(ie,de,Le);Ie&&(Le.state=Ie),de.stateAfter=Le.save(!Ie),de.styles=lt.styles,lt.classes?de.styleClasses=lt.classes:de.styleClasses&&(de.styleClasses=null),Fe===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return de.styles}function Qr(ie,de,Fe){var Le=ie.doc,Ie=ie.display;if(!Le.mode.startState)return new dn(Le,!0,de);var lt=Rr(ie,de,Fe),Lt=lt>Le.first&&un(Le,lt-1).stateAfter,Rt=Lt?dn.fromSaved(Le,Lt,lt):new dn(Le,Yt(Le.mode),lt);return Le.iter(lt,de,function(It){wn(ie,It.text,Rt);var Qt=Rt.line;It.stateAfter=Qt==de-1||Qt%5==0||Qt>=Ie.viewFrom&&Qt<Ie.viewTo?Rt.save():null,Rt.nextLine()}),Fe&&(Le.modeFrontier=Rt.line),Rt}function wn(ie,de,Fe,Le){var Ie=ie.doc.mode,lt=new Bt(de,ie.options.tabSize,Fe);for(lt.start=lt.pos=Le||0,de==""&&Yn(Ie,Fe.state);!lt.eol();)cr(Ie,lt,Fe.state),lt.start=lt.pos}function Yn(ie,de){if(ie.blankLine)return ie.blankLine(de);if(ie.innerMode){var Fe=pn(ie,de);if(Fe.mode.blankLine)return Fe.mode.blankLine(Fe.state)}}function cr(ie,de,Fe,Le){for(var Ie=0;Ie<10;Ie++){Le&&(Le[0]=pn(ie,Fe).mode);var lt=ie.token(de,Fe);if(de.pos>de.start)return lt}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Fr=function(ie,de,Fe){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=de||null,this.state=Fe};function fr(ie,de,Fe,Le){var Ie=ie.doc,lt=Ie.mode,Lt;de=Fn(Ie,de);var Rt=un(Ie,de.line),It=Qr(ie,de.line,Fe),Qt=new Bt(Rt.text,ie.options.tabSize,It),Pn;for(Le&&(Pn=[]);(Le||Qt.pos<de.ch)&&!Qt.eol();)Qt.start=Qt.pos,Lt=cr(lt,Qt,It.state),Le&&Pn.push(new Fr(Qt,Lt,sn(Ie.mode,It.state)));return Le?Pn:new Fr(Qt,Lt,It.state)}function br(ie,de){if(ie)for(;;){var Fe=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!Fe)break;ie=ie.slice(0,Fe.index)+ie.slice(Fe.index+Fe[0].length);var Le=Fe[1]?"bgClass":"textClass";de[Le]==null?de[Le]=Fe[2]:new RegExp("(?:^|\\s)"+Fe[2]+"(?:$|\\s)").test(de[Le])||(de[Le]+=" "+Fe[2])}return ie}function Hr(ie,de,Fe,Le,Ie,lt,Lt){var Rt=Fe.flattenSpans;Rt==null&&(Rt=ie.options.flattenSpans);var It=0,Qt=null,Pn=new Bt(de,ie.options.tabSize,Le),nn,Vn=ie.options.addModeClass&&[null];for(de==""&&br(Yn(Fe,Le.state),lt);!Pn.eol();){if(Pn.pos>ie.options.maxHighlightLength?(Rt=!1,Lt&&wn(ie,de,Le,Pn.pos),Pn.pos=de.length,nn=null):nn=br(cr(Fe,Pn,Le.state,Vn),lt),Vn){var Rn=Vn[0].name;Rn&&(nn="m-"+(nn?Rn+" "+nn:Rn))}if(!Rt||Qt!=nn){for(;It<Pn.start;)It=Math.min(Pn.start,It+5e3),Ie(It,Qt);Qt=nn}Pn.start=Pn.pos}for(;It<Pn.pos;){var yr=Math.min(Pn.pos,It+5e3);Ie(yr,Qt),It=yr}}function Rr(ie,de,Fe){for(var Le,Ie,lt=ie.doc,Lt=Fe?-1:de-(ie.doc.mode.innerMode?1e3:100),Rt=de;Rt>Lt;--Rt){if(Rt<=lt.first)return lt.first;var It=un(lt,Rt-1),Qt=It.stateAfter;if(Qt&&(!Fe||Rt+(Qt instanceof gr?Qt.lookAhead:0)<=lt.modeFrontier))return Rt;var Pn=_e(It.text,null,ie.options.tabSize);(Ie==null||Le>Pn)&&(Ie=Rt-1,Le=Pn)}return Ie}function Cr(ie,de){if(ie.modeFrontier=Math.min(ie.modeFrontier,de),!(ie.highlightFrontier<de-10)){for(var Fe=ie.first,Le=de-1;Le>Fe;Le--){var Ie=un(ie,Le).stateAfter;if(Ie&&(!(Ie instanceof gr)||Le+Ie.lookAhead<de)){Fe=Le+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,Fe)}}var Zr=!1,Dn=!1;function Ei(){Zr=!0}function kn(){Dn=!0}function ci(ie,de,Fe){this.marker=ie,this.from=de,this.to=Fe}function Ri(ie,de){if(ie)for(var Fe=0;Fe<ie.length;++Fe){var Le=ie[Fe];if(Le.marker==de)return Le}}function $r(ie,de){for(var Fe,Le=0;Le<ie.length;++Le)ie[Le]!=de&&(Fe||(Fe=[])).push(ie[Le]);return Fe}function Xi(ie,de){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([de]):[de],de.marker.attachLine(ie)}function Oi(ie,de,Fe){var Le;if(ie)for(var Ie=0;Ie<ie.length;++Ie){var lt=ie[Ie],Lt=lt.marker,Rt=lt.from==null||(Lt.inclusiveLeft?lt.from<=de:lt.from<de);if(Rt||lt.from==de&&Lt.type=="bookmark"&&(!Fe||!lt.marker.insertLeft)){var It=lt.to==null||(Lt.inclusiveRight?lt.to>=de:lt.to>de);(Le||(Le=[])).push(new ci(Lt,lt.from,It?null:lt.to))}}return Le}function Ir(ie,de,Fe){var Le;if(ie)for(var Ie=0;Ie<ie.length;++Ie){var lt=ie[Ie],Lt=lt.marker,Rt=lt.to==null||(Lt.inclusiveRight?lt.to>=de:lt.to>de);if(Rt||lt.from==de&&Lt.type=="bookmark"&&(!Fe||lt.marker.insertLeft)){var It=lt.from==null||(Lt.inclusiveLeft?lt.from<=de:lt.from<de);(Le||(Le=[])).push(new ci(Lt,It?null:lt.from-de,lt.to==null?null:lt.to-de))}}return Le}function jr(ie,de){if(de.full)return null;var Fe=Kn(ie,de.from.line)&&un(ie,de.from.line).markedSpans,Le=Kn(ie,de.to.line)&&un(ie,de.to.line).markedSpans;if(!Fe&&!Le)return null;var Ie=de.from.ch,lt=de.to.ch,Lt=Cn(de.from,de.to)==0,Rt=Oi(Fe,Ie,Lt),It=Ir(Le,lt,Lt),Qt=de.text.length==1,Pn=Pt(de.text).length+(Qt?Ie:0);if(Rt)for(var nn=0;nn<Rt.length;++nn){var Vn=Rt[nn];if(Vn.to==null){var Rn=Ri(It,Vn.marker);Rn?Qt&&(Vn.to=Rn.to==null?null:Rn.to+Pn):Vn.to=Ie}}if(It)for(var yr=0;yr<It.length;++yr){var Er=It[yr];if(Er.to!=null&&(Er.to+=Pn),Er.from==null){var Wr=Ri(Rt,Er.marker);Wr||(Er.from=Pn,Qt&&(Rt||(Rt=[])).push(Er))}else Er.from+=Pn,Qt&&(Rt||(Rt=[])).push(Er)}Rt&&(Rt=xi(Rt)),It&&It!=Rt&&(It=xi(It));var ai=[Rt];if(!Qt){var Ti=de.text.length-2,Si;if(Ti>0&&Rt)for(var Hi=0;Hi<Rt.length;++Hi)Rt[Hi].to==null&&(Si||(Si=[])).push(new ci(Rt[Hi].marker,null,null));for(var So=0;So<Ti;++So)ai.push(Si);ai.push(It)}return ai}function xi(ie){for(var de=0;de<ie.length;++de){var Fe=ie[de];Fe.from!=null&&Fe.from==Fe.to&&Fe.marker.clearWhenEmpty!==!1&&ie.splice(de--,1)}return ie.length?ie:null}function ki(ie,de,Fe){var Le=null;if(ie.iter(de.line,Fe.line+1,function(Rn){if(Rn.markedSpans)for(var yr=0;yr<Rn.markedSpans.length;++yr){var Er=Rn.markedSpans[yr].marker;Er.readOnly&&(!Le||pt(Le,Er)==-1)&&(Le||(Le=[])).push(Er)}}),!Le)return null;for(var Ie=[{from:de,to:Fe}],lt=0;lt<Le.length;++lt)for(var Lt=Le[lt],Rt=Lt.find(0),It=0;It<Ie.length;++It){var Qt=Ie[It];if(!(Cn(Qt.to,Rt.from)<0||Cn(Qt.from,Rt.to)>0)){var Pn=[It,1],nn=Cn(Qt.from,Rt.from),Vn=Cn(Qt.to,Rt.to);(nn<0||!Lt.inclusiveLeft&&!nn)&&Pn.push({from:Qt.from,to:Rt.from}),(Vn>0||!Lt.inclusiveRight&&!Vn)&&Pn.push({from:Rt.to,to:Qt.to}),Ie.splice.apply(Ie,Pn),It+=Pn.length-3}}return Ie}function pr(ie){var de=ie.markedSpans;if(de){for(var Fe=0;Fe<de.length;++Fe)de[Fe].marker.detachLine(ie);ie.markedSpans=null}}function kt(ie,de){if(de){for(var Fe=0;Fe<de.length;++Fe)de[Fe].marker.attachLine(ie);ie.markedSpans=de}}function Li(ie){return ie.inclusiveLeft?-1:0}function ao(ie){return ie.inclusiveRight?1:0}function Pi(ie,de){var Fe=ie.lines.length-de.lines.length;if(Fe!=0)return Fe;var Le=ie.find(),Ie=de.find(),lt=Cn(Le.from,Ie.from)||Li(ie)-Li(de);if(lt)return-lt;var Lt=Cn(Le.to,Ie.to)||ao(ie)-ao(de);return Lt||de.id-ie.id}function co(ie,de){var Fe=Dn&&ie.markedSpans,Le;if(Fe)for(var Ie=void 0,lt=0;lt<Fe.length;++lt)Ie=Fe[lt],Ie.marker.collapsed&&(de?Ie.from:Ie.to)==null&&(!Le||Pi(Le,Ie.marker)<0)&&(Le=Ie.marker);return Le}function wo(ie){return co(ie,!0)}function ti(ie){return co(ie,!1)}function hi(ie,de){var Fe=Dn&&ie.markedSpans,Le;if(Fe)for(var Ie=0;Ie<Fe.length;++Ie){var lt=Fe[Ie];lt.marker.collapsed&&(lt.from==null||lt.from<de)&&(lt.to==null||lt.to>de)&&(!Le||Pi(Le,lt.marker)<0)&&(Le=lt.marker)}return Le}function Fi(ie,de,Fe,Le,Ie){var lt=un(ie,de),Lt=Dn&&lt.markedSpans;if(Lt)for(var Rt=0;Rt<Lt.length;++Rt){var It=Lt[Rt];if(It.marker.collapsed){var Qt=It.marker.find(0),Pn=Cn(Qt.from,Fe)||Li(It.marker)-Li(Ie),nn=Cn(Qt.to,Le)||ao(It.marker)-ao(Ie);if(!(Pn>=0&&nn<=0||Pn<=0&&nn>=0)&&(Pn<=0&&(It.marker.inclusiveRight&&Ie.inclusiveLeft?Cn(Qt.to,Fe)>=0:Cn(Qt.to,Fe)>0)||Pn>=0&&(It.marker.inclusiveRight&&Ie.inclusiveLeft?Cn(Qt.from,Le)<=0:Cn(Qt.from,Le)<0)))return!0}}}function wi(ie){for(var de;de=wo(ie);)ie=de.find(-1,!0).line;return ie}function so(ie){for(var de;de=ti(ie);)ie=de.find(1,!0).line;return ie}function Po(ie){for(var de,Fe;de=ti(ie);)ie=de.find(1,!0).line,(Fe||(Fe=[])).push(ie);return Fe}function Vr(ie,de){var Fe=un(ie,de),Le=wi(Fe);return Fe==Le?de:Gt(Le)}function Xr(ie,de){if(de>ie.lastLine())return de;var Fe=un(ie,de),Le;if(!qn(ie,Fe))return de;for(;Le=ti(Fe);)Fe=Le.find(1,!0).line;return Gt(Fe)+1}function qn(ie,de){var Fe=Dn&&de.markedSpans;if(Fe){for(var Le=void 0,Ie=0;Ie<Fe.length;++Ie)if(Le=Fe[Ie],!!Le.marker.collapsed){if(Le.from==null)return!0;if(!Le.marker.widgetNode&&Le.from==0&&Le.marker.inclusiveLeft&&si(ie,de,Le))return!0}}}function si(ie,de,Fe){if(Fe.to==null){var Le=Fe.marker.find(1,!0);return si(ie,Le.line,Ri(Le.line.markedSpans,Fe.marker))}if(Fe.marker.inclusiveRight&&Fe.to==de.text.length)return!0;for(var Ie=void 0,lt=0;lt<de.markedSpans.length;++lt)if(Ie=de.markedSpans[lt],Ie.marker.collapsed&&!Ie.marker.widgetNode&&Ie.from==Fe.to&&(Ie.to==null||Ie.to!=Fe.from)&&(Ie.marker.inclusiveLeft||Fe.marker.inclusiveRight)&&si(ie,de,Ie))return!0}function qi(ie){ie=wi(ie);for(var de=0,Fe=ie.parent,Le=0;Le<Fe.lines.length;++Le){var Ie=Fe.lines[Le];if(Ie==ie)break;de+=Ie.height}for(var lt=Fe.parent;lt;Fe=lt,lt=Fe.parent)for(var Lt=0;Lt<lt.children.length;++Lt){var Rt=lt.children[Lt];if(Rt==Fe)break;de+=Rt.height}return de}function Ro(ie){if(ie.height==0)return 0;for(var de=ie.text.length,Fe,Le=ie;Fe=wo(Le);){var Ie=Fe.find(0,!0);Le=Ie.from.line,de+=Ie.from.ch-Ie.to.ch}for(Le=ie;Fe=ti(Le);){var lt=Fe.find(0,!0);de-=Le.text.length-lt.from.ch,Le=lt.to.line,de+=Le.text.length-lt.to.ch}return de}function lo(ie){var de=ie.display,Fe=ie.doc;de.maxLine=un(Fe,Fe.first),de.maxLineLength=Ro(de.maxLine),de.maxLineChanged=!0,Fe.iter(function(Le){var Ie=Ro(Le);Ie>de.maxLineLength&&(de.maxLineLength=Ie,de.maxLine=Le)})}var Qi=function(ie,de,Fe){this.text=ie,kt(this,de),this.height=Fe?Fe(this):1};Qi.prototype.lineNo=function(){return Gt(this)},fn(Qi);function Do(ie,de,Fe,Le){ie.text=de,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),pr(ie),kt(ie,Fe);var Ie=Le?Le(ie):1;Ie!=ie.height&&Zn(ie,Ie)}function Oo(ie){ie.parent=null,pr(ie)}var oa={},la={};function Ma(ie,de){if(!ie||/^\s*$/.test(ie))return null;var Fe=de.addModeClass?la:oa;return Fe[ie]||(Fe[ie]=ie.replace(/\S+/g,"cm-$&"))}function Mn(ie,de){var Fe=Be("span",null,null,ce?"padding-right: .1px":null),Le={pre:Be("pre",[Fe],"CodeMirror-line"),content:Fe,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};de.measure={};for(var Ie=0;Ie<=(de.rest?de.rest.length:0);Ie++){var lt=Ie?de.rest[Ie-1]:de.line,Lt=void 0;Le.pos=0,Le.addToken=fu,fi(ie.display.measure)&&(Lt=dt(lt,ie.doc.direction))&&(Le.addToken=bo(Le.addToken,Lt)),Le.map=[];var Rt=de!=ie.display.externalMeasured&&Gt(lt);da(lt,Le,zr(ie,lt,Rt)),lt.styleClasses&&(lt.styleClasses.bgClass&&(Le.bgClass=qe(lt.styleClasses.bgClass,Le.bgClass||"")),lt.styleClasses.textClass&&(Le.textClass=qe(lt.styleClasses.textClass,Le.textClass||""))),Le.map.length==0&&Le.map.push(0,0,Le.content.appendChild(Kr(ie.display.measure))),Ie==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 It=Le.content.lastChild;(/\bcm-tab\b/.test(It.className)||It.querySelector&&It.querySelector(".cm-tab"))&&(Le.content.className="cm-tab-wrap-hack")}return Ot(ie,"renderLine",ie,de.line,Le.pre),Le.pre.className&&(Le.textClass=qe(Le.pre.className,Le.textClass||"")),Le}function ha(ie){var de=Me("span","\u2022","cm-invalidchar");return de.title="\\u"+ie.charCodeAt(0).toString(16),de.setAttribute("aria-label",de.title),de}function fu(ie,de,Fe,Le,Ie,lt,Lt){if(de){var Rt=ie.splitSpaces?xs(de,ie.trailingSpace):de,It=ie.cm.state.specialChars,Qt=!1,Pn;if(!It.test(de))ie.col+=de.length,Pn=document.createTextNode(Rt),ie.map.push(ie.pos,ie.pos+de.length,Pn),Oe&&ve<9&&(Qt=!0),ie.pos+=de.length;else{Pn=document.createDocumentFragment();for(var nn=0;;){It.lastIndex=nn;var Vn=It.exec(de),Rn=Vn?Vn.index-nn:de.length-nn;if(Rn){var yr=document.createTextNode(Rt.slice(nn,nn+Rn));Oe&&ve<9?Pn.appendChild(Me("span",[yr])):Pn.appendChild(yr),ie.map.push(ie.pos,ie.pos+Rn,yr),ie.col+=Rn,ie.pos+=Rn}if(!Vn)break;nn+=Rn+1;var Er=void 0;if(Vn[0]==" "){var Wr=ie.cm.options.tabSize,ai=Wr-ie.col%Wr;Er=Pn.appendChild(Me("span",Kt(ai),"cm-tab")),Er.setAttribute("role","presentation"),Er.setAttribute("cm-text"," "),ie.col+=ai}else Vn[0]=="\r"||Vn[0]==`
`?(Er=Pn.appendChild(Me("span",Vn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Er.setAttribute("cm-text",Vn[0]),ie.col+=1):(Er=ie.cm.options.specialCharPlaceholder(Vn[0]),Er.setAttribute("cm-text",Vn[0]),Oe&&ve<9?Pn.appendChild(Me("span",[Er])):Pn.appendChild(Er),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Er),ie.pos++}}if(ie.trailingSpace=Rt.charCodeAt(de.length-1)==32,Fe||Le||Ie||Qt||lt||Lt){var Ti=Fe||"";Le&&(Ti+=Le),Ie&&(Ti+=Ie);var Si=Me("span",[Pn],Ti,lt);if(Lt)for(var Hi in Lt)Lt.hasOwnProperty(Hi)&&Hi!="style"&&Hi!="class"&&Si.setAttribute(Hi,Lt[Hi]);return ie.content.appendChild(Si)}ie.content.appendChild(Pn)}}function xs(ie,de){if(ie.length>1&&!/ /.test(ie))return ie;for(var Fe=de,Le="",Ie=0;Ie<ie.length;Ie++){var lt=ie.charAt(Ie);lt==" "&&Fe&&(Ie==ie.length-1||ie.charCodeAt(Ie+1)==32)&&(lt="\xA0"),Le+=lt,Fe=lt==" "}return Le}function bo(ie,de){return function(Fe,Le,Ie,lt,Lt,Rt,It){Ie=Ie?Ie+" cm-force-border":"cm-force-border";for(var Qt=Fe.pos,Pn=Qt+Le.length;;){for(var nn=void 0,Vn=0;Vn<de.length&&(nn=de[Vn],!(nn.to>Qt&&nn.from<=Qt));Vn++);if(nn.to>=Pn)return ie(Fe,Le,Ie,lt,Lt,Rt,It);ie(Fe,Le.slice(0,nn.to-Qt),Ie,lt,null,Rt,It),lt=null,Le=Le.slice(nn.to-Qt),Qt=nn.to}}}function _i(ie,de,Fe,Le){var Ie=!Le&&Fe.widgetNode;Ie&&ie.map.push(ie.pos,ie.pos+de,Ie),!Le&&ie.cm.display.input.needsContentAttribute&&(Ie||(Ie=ie.content.appendChild(document.createElement("span"))),Ie.setAttribute("cm-marker",Fe.id)),Ie&&(ie.cm.display.input.setUneditable(Ie),ie.content.appendChild(Ie)),ie.pos+=de,ie.trailingSpace=!1}function da(ie,de,Fe){var Le=ie.markedSpans,Ie=ie.text,lt=0;if(!Le){for(var Lt=1;Lt<Fe.length;Lt+=2)de.addToken(de,Ie.slice(lt,lt=Fe[Lt]),Ma(Fe[Lt+1],de.cm.options));return}for(var Rt=Ie.length,It=0,Qt=1,Pn="",nn,Vn,Rn=0,yr,Er,Wr,ai,Ti;;){if(Rn==It){yr=Er=Wr=Vn="",Ti=null,ai=null,Rn=1/0;for(var Si=[],Hi=void 0,So=0;So<Le.length;++So){var vi=Le[So],No=vi.marker;if(No.type=="bookmark"&&vi.from==It&&No.widgetNode)Si.push(No);else if(vi.from<=It&&(vi.to==null||vi.to>It||No.collapsed&&vi.to==It&&vi.from==It)){if(vi.to!=null&&vi.to!=It&&Rn>vi.to&&(Rn=vi.to,Er=""),No.className&&(yr+=" "+No.className),No.css&&(Vn=(Vn?Vn+";":"")+No.css),No.startStyle&&vi.from==It&&(Wr+=" "+No.startStyle),No.endStyle&&vi.to==Rn&&(Hi||(Hi=[])).push(No.endStyle,vi.to),No.title&&((Ti||(Ti={})).title=No.title),No.attributes)for(var $a in No.attributes)(Ti||(Ti={}))[$a]=No.attributes[$a];No.collapsed&&(!ai||Pi(ai.marker,No)<0)&&(ai=vi)}else vi.from>It&&Rn>vi.from&&(Rn=vi.from)}if(Hi)for(var Is=0;Is<Hi.length;Is+=2)Hi[Is+1]==Rn&&(Er+=" "+Hi[Is]);if(!ai||ai.from==It)for(var os=0;os<Si.length;++os)_i(de,0,Si[os]);if(ai&&(ai.from||0)==It){if(_i(de,(ai.to==null?Rt+1:ai.to)-It,ai.marker,ai.from==null),ai.to==null)return;ai.to==It&&(ai=!1)}}if(It>=Rt)break;for(var Vl=Math.min(Rt,Rn);;){if(Pn){var vl=It+Pn.length;if(!ai){var Fs=vl>Vl?Pn.slice(0,Vl-It):Pn;de.addToken(de,Fs,nn?nn+yr:yr,Wr,It+Fs.length==Rn?Er:"",Vn,Ti)}if(vl>=Vl){Pn=Pn.slice(Vl-It),It=Vl;break}It=vl,Wr=""}Pn=Ie.slice(lt,lt=Fe[Qt++]),nn=Ma(Fe[Qt++],de.cm.options)}}}function Ao(ie,de,Fe){this.line=de,this.rest=Po(de),this.size=this.rest?Gt(Pt(this.rest))-Fe+1:1,this.node=this.text=null,this.hidden=qn(ie,de)}function eo(ie,de,Fe){for(var Le=[],Ie,lt=de;lt<Fe;lt=Ie){var Lt=new Ao(ie.doc,un(ie.doc,lt),lt);Ie=lt+Lt.size,Le.push(Lt)}return Le}var Bo=null;function ws(ie){Bo?Bo.ops.push(ie):ie.ownsGroup=Bo={ops:[ie],delayedCallbacks:[]}}function Ci(ie){var de=ie.delayedCallbacks,Fe=0;do{for(;Fe<de.length;Fe++)de[Fe].call(null);for(var Le=0;Le<ie.ops.length;Le++){var Ie=ie.ops[Le];if(Ie.cursorActivityHandlers)for(;Ie.cursorActivityCalled<Ie.cursorActivityHandlers.length;)Ie.cursorActivityHandlers[Ie.cursorActivityCalled++].call(null,Ie.cm)}}while(Fe<de.length)}function ho(ie,de){var Fe=ie.ownsGroup;if(Fe)try{Ci(Fe)}finally{Bo=null,de(Fe)}}var oo=null;function kr(ie,de){var Fe=zt(ie,de);if(Fe.length){var Le=Array.prototype.slice.call(arguments,2),Ie;Bo?Ie=Bo.delayedCallbacks:oo?Ie=oo:(Ie=oo=[],setTimeout(za,0));for(var lt=function(Rt){Ie.push(function(){return Fe[Rt].apply(null,Le)})},Lt=0;Lt<Fe.length;++Lt)lt(Lt)}}function za(){var ie=oo;oo=null;for(var de=0;de<ie.length;++de)ie[de]()}function Wa(ie,de,Fe,Le){for(var Ie=0;Ie<de.changes.length;Ie++){var lt=de.changes[Ie];lt=="text"?wr(ie,de):lt=="gutter"?Xa(ie,de,Fe,Le):lt=="class"?ua(ie,de):lt=="widget"&&Cl(ie,de,Le)}de.changes=null}function Es(ie){return ie.node==ie.text&&(ie.node=Me("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Oe&&ve<8&&(ie.node.style.zIndex=2)),ie.node}function Nl(ie,de){var Fe=de.bgClass?de.bgClass+" "+(de.line.bgClass||""):de.line.bgClass;if(Fe&&(Fe+=" CodeMirror-linebackground"),de.background)Fe?de.background.className=Fe:(de.background.parentNode.removeChild(de.background),de.background=null);else if(Fe){var Le=Es(de);de.background=Le.insertBefore(Me("div",null,Fe),Le.firstChild),ie.display.input.setUneditable(de.background)}}function $l(ie,de){var Fe=ie.display.externalMeasured;return Fe&&Fe.line==de.line?(ie.display.externalMeasured=null,de.measure=Fe.measure,Fe.built):Mn(ie,de)}function wr(ie,de){var Fe=de.text.className,Le=$l(ie,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,ua(ie,de)):Fe&&(de.text.className=Fe)}function ua(ie,de){Nl(ie,de),de.line.wrapClass?Es(de).className=de.line.wrapClass:de.node!=de.text&&(de.node.className="");var Fe=de.textClass?de.textClass+" "+(de.line.textClass||""):de.line.textClass;de.text.className=Fe||""}function Xa(ie,de,Fe,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 Ie=Es(de);de.gutterBackground=Me("div",null,"CodeMirror-gutter-background "+de.line.gutterClass,"left: "+(ie.options.fixedGutter?Le.fixedPos:-Le.gutterTotalWidth)+"px; width: "+Le.gutterTotalWidth+"px"),ie.display.input.setUneditable(de.gutterBackground),Ie.insertBefore(de.gutterBackground,de.text)}var lt=de.line.gutterMarkers;if(ie.options.lineNumbers||lt){var Lt=Es(de),Rt=de.gutter=Me("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?Le.fixedPos:-Le.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(Rt),Lt.insertBefore(Rt,de.text),de.line.gutterClass&&(Rt.className+=" "+de.line.gutterClass),ie.options.lineNumbers&&(!lt||!lt["CodeMirror-linenumbers"])&&(de.lineNumber=Rt.appendChild(Me("div",rr(ie.options,Fe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+Le.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),lt)for(var It=0;It<ie.display.gutterSpecs.length;++It){var Qt=ie.display.gutterSpecs[It].className,Pn=lt.hasOwnProperty(Qt)&&lt[Qt];Pn&&Rt.appendChild(Me("div",[Pn],"CodeMirror-gutter-elt","left: "+Le.gutterLeft[Qt]+"px; width: "+Le.gutterWidth[Qt]+"px"))}}}function Cl(ie,de,Fe){de.alignable&&(de.alignable=null);for(var Le=we("CodeMirror-linewidget"),Ie=de.node.firstChild,lt=void 0;Ie;Ie=lt)lt=Ie.nextSibling,Le.test(Ie.className)&&de.node.removeChild(Ie);Il(ie,de,Fe)}function Bl(ie,de,Fe,Le){var Ie=$l(ie,de);return de.text=de.node=Ie.pre,Ie.bgClass&&(de.bgClass=Ie.bgClass),Ie.textClass&&(de.textClass=Ie.textClass),ua(ie,de),Xa(ie,de,Fe,Le),Il(ie,de,Le),de.node}function Il(ie,de,Fe){if(zi(ie,de.line,de,Fe,!0),de.rest)for(var Le=0;Le<de.rest.length;Le++)zi(ie,de.rest[Le],de,Fe,!1)}function zi(ie,de,Fe,Le,Ie){if(de.widgets)for(var lt=Es(Fe),Lt=0,Rt=de.widgets;Lt<Rt.length;++Lt){var It=Rt[Lt],Qt=Me("div",[It.node],"CodeMirror-linewidget"+(It.className?" "+It.className:""));It.handleMouseEvents||Qt.setAttribute("cm-ignore-events","true"),mc(It,Qt,Fe,Le),ie.display.input.setUneditable(Qt),Ie&&It.above?lt.insertBefore(Qt,Fe.gutter||Fe.text):lt.appendChild(Qt),kr(It,"redraw")}}function mc(ie,de,Fe,Le){if(ie.noHScroll){(Fe.alignable||(Fe.alignable=[])).push(de);var Ie=Le.wrapperWidth;de.style.left=Le.fixedPos+"px",ie.coverGutter||(Ie-=Le.gutterTotalWidth,de.style.paddingLeft=Le.gutterTotalWidth+"px"),de.style.width=Ie+"px"}ie.coverGutter&&(de.style.zIndex=5,de.style.position="relative",ie.noHScroll||(de.style.marginLeft=-Le.gutterTotalWidth+"px"))}function tl(ie){if(ie.height!=null)return ie.height;var de=ie.doc.cm;if(!de)return 0;if(!Qe(document.body,ie.node)){var Fe="position: relative;";ie.coverGutter&&(Fe+="margin-left: -"+de.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(Fe+="width: "+de.display.wrapper.clientWidth+"px;"),Te(de.display.measure,Me("div",[ie.node],null,Fe))}return ie.height=ie.node.parentNode.offsetHeight}function nl(ie,de){for(var Fe=Tr(de);Fe!=ie.wrapper;Fe=Fe.parentNode)if(!Fe||Fe.nodeType==1&&Fe.getAttribute("cm-ignore-events")=="true"||Fe.parentNode==ie.sizer&&Fe!=ie.mover)return!0}function ks(ie){return ie.lineSpace.offsetTop}function Eu(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function Ru(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var de=Te(ie.measure,Me("pre","x","CodeMirror-line-like")),Fe=window.getComputedStyle?window.getComputedStyle(de):de.currentStyle,Le={left:parseInt(Fe.paddingLeft),right:parseInt(Fe.paddingRight)};return!isNaN(Le.left)&&!isNaN(Le.right)&&(ie.cachedPaddingH=Le),Le}function Ws(ie){return bt-ie.display.nativeBarWidth}function dl(ie){return ie.display.scroller.clientWidth-Ws(ie)-ie.display.barWidth}function Hc(ie){return ie.display.scroller.clientHeight-Ws(ie)-ie.display.barHeight}function hh(ie,de,Fe){var Le=ie.options.lineWrapping,Ie=Le&&dl(ie);if(!de.measure.heights||Le&&de.measure.width!=Ie){var lt=de.measure.heights=[];if(Le){de.measure.width=Ie;for(var Lt=de.text.firstChild.getClientRects(),Rt=0;Rt<Lt.length-1;Rt++){var It=Lt[Rt],Qt=Lt[Rt+1];Math.abs(It.bottom-Qt.bottom)>2&&lt.push((It.bottom+Qt.top)/2-Fe.top)}}lt.push(Fe.bottom-Fe.top)}}function Uc(ie,de,Fe){if(ie.line==de)return{map:ie.measure.map,cache:ie.measure.cache};for(var Le=0;Le<ie.rest.length;Le++)if(ie.rest[Le]==de)return{map:ie.measure.maps[Le],cache:ie.measure.caches[Le]};for(var Ie=0;Ie<ie.rest.length;Ie++)if(Gt(ie.rest[Ie])>Fe)return{map:ie.measure.maps[Ie],cache:ie.measure.caches[Ie],before:!0}}function Gh(ie,de){de=wi(de);var Fe=Gt(de),Le=ie.display.externalMeasured=new Ao(ie.doc,de,Fe);Le.lineN=Fe;var Ie=Le.built=Mn(ie,Le);return Le.text=Ie.pre,Te(ie.display.lineMeasure,Ie.pre),Le}function Gc(ie,de,Fe,Le){return jl(ie,zu(ie,de),Fe,Le)}function vc(ie,de){if(de>=ie.display.viewFrom&&de<ie.display.viewTo)return ie.display.view[Hs(ie,de)];var Fe=ie.display.externalMeasured;if(Fe&&de>=Fe.lineN&&de<Fe.lineN+Fe.size)return Fe}function zu(ie,de){var Fe=Gt(de),Le=vc(ie,Fe);Le&&!Le.text?Le=null:Le&&Le.changes&&(Wa(ie,Le,Fe,Pd(ie)),ie.curOp.forceUpdate=!0),Le||(Le=Gh(ie,de));var Ie=Uc(Le,de,Fe);return{line:de,view:Le,rect:null,map:Ie.map,cache:Ie.cache,before:Ie.before,hasHeights:!1}}function jl(ie,de,Fe,Le,Ie){de.before&&(Fe=-1);var lt=Fe+(Le||""),Lt;return de.cache.hasOwnProperty(lt)?Lt=de.cache[lt]:(de.rect||(de.rect=de.view.text.getBoundingClientRect()),de.hasHeights||(hh(ie,de.view,de.rect),de.hasHeights=!0),Lt=io(ie,de,Fe,Le),Lt.bogus||(de.cache[lt]=Lt)),{left:Lt.left,right:Lt.right,top:Ie?Lt.rtop:Lt.top,bottom:Ie?Lt.rbottom:Lt.bottom}}var dh={left:0,right:0,top:0,bottom:0};function Zc(ie,de,Fe){for(var Le,Ie,lt,Lt,Rt,It,Qt=0;Qt<ie.length;Qt+=3)if(Rt=ie[Qt],It=ie[Qt+1],de<Rt?(Ie=0,lt=1,Lt="left"):de<It?(Ie=de-Rt,lt=Ie+1):(Qt==ie.length-3||de==It&&ie[Qt+3]>de)&&(lt=It-Rt,Ie=lt-1,de>=It&&(Lt="right")),Ie!=null){if(Le=ie[Qt+2],Rt==It&&Fe==(Le.insertLeft?"left":"right")&&(Lt=Fe),Fe=="left"&&Ie==0)for(;Qt&&ie[Qt-2]==ie[Qt-3]&&ie[Qt-1].insertLeft;)Le=ie[(Qt-=3)+2],Lt="left";if(Fe=="right"&&Ie==It-Rt)for(;Qt<ie.length-3&&ie[Qt+3]==ie[Qt+4]&&!ie[Qt+5].insertLeft;)Le=ie[(Qt+=3)+2],Lt="right";break}return{node:Le,start:Ie,end:lt,collapse:Lt,coverStart:Rt,coverEnd:It}}function yc(ie,de){var Fe=dh;if(de=="left")for(var Le=0;Le<ie.length&&(Fe=ie[Le]).left==Fe.right;Le++);else for(var Ie=ie.length-1;Ie>=0&&(Fe=ie[Ie]).left==Fe.right;Ie--);return Fe}function io(ie,de,Fe,Le){var Ie=Zc(de.map,Fe,Le),lt=Ie.node,Lt=Ie.start,Rt=Ie.end,It=Ie.collapse,Qt;if(lt.nodeType==3){for(var Pn=0;Pn<4;Pn++){for(;Lt&&Xe(de.line.text.charAt(Ie.coverStart+Lt));)--Lt;for(;Ie.coverStart+Rt<Ie.coverEnd&&Xe(de.line.text.charAt(Ie.coverStart+Rt));)++Rt;if(Oe&&ve<9&&Lt==0&&Rt==Ie.coverEnd-Ie.coverStart?Qt=lt.parentNode.getBoundingClientRect():Qt=yc(Re(lt,Lt,Rt).getClientRects(),Le),Qt.left||Qt.right||Lt==0)break;Rt=Lt,Lt=Lt-1,It="right"}Oe&&ve<11&&(Qt=zo(ie.display.measure,Qt))}else{Lt>0&&(It=Le="right");var nn;ie.options.lineWrapping&&(nn=lt.getClientRects()).length>1?Qt=nn[Le=="right"?nn.length-1:0]:Qt=lt.getBoundingClientRect()}if(Oe&&ve<9&&!Lt&&(!Qt||!Qt.left&&!Qt.right)){var Vn=lt.parentNode.getClientRects()[0];Vn?Qt={left:Vn.left,right:Vn.left+ic(ie.display),top:Vn.top,bottom:Vn.bottom}:Qt=dh}for(var Rn=Qt.top-de.rect.top,yr=Qt.bottom-de.rect.top,Er=(Rn+yr)/2,Wr=de.view.measure.heights,ai=0;ai<Wr.length-1&&!(Er<Wr[ai]);ai++);var Ti=ai?Wr[ai-1]:0,Si=Wr[ai],Hi={left:(It=="right"?Qt.right:Qt.left)-de.rect.left,right:(It=="left"?Qt.left:Qt.right)-de.rect.left,top:Ti,bottom:Si};return!Qt.left&&!Qt.right&&(Hi.bogus=!0),ie.options.singleCursorHeightPerLine||(Hi.rtop=Rn,Hi.rbottom=yr),Hi}function zo(ie,de){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Tn(ie))return de;var Fe=screen.logicalXDPI/screen.deviceXDPI,Le=screen.logicalYDPI/screen.deviceYDPI;return{left:de.left*Fe,right:de.right*Fe,top:de.top*Le,bottom:de.bottom*Le}}function As(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var de=0;de<ie.rest.length;de++)ie.measure.caches[de]={}}function _a(ie){ie.display.externalMeasure=null,Ae(ie.display.lineMeasure);for(var de=0;de<ie.display.view.length;de++)As(ie.display.view[de])}function Ha(ie){_a(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function ga(){return Ee&&z?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function La(){return Ee&&z?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ya(ie){var de=0;if(ie.widgets)for(var Fe=0;Fe<ie.widgets.length;++Fe)ie.widgets[Fe].above&&(de+=tl(ie.widgets[Fe]));return de}function Ua(ie,de,Fe,Le,Ie){if(!Ie){var lt=Ya(de);Fe.top+=lt,Fe.bottom+=lt}if(Le=="line")return Fe;Le||(Le="local");var Lt=qi(de);if(Le=="local"?Lt+=ks(ie.display):Lt-=ie.display.viewOffset,Le=="page"||Le=="window"){var Rt=ie.display.lineSpace.getBoundingClientRect();Lt+=Rt.top+(Le=="window"?0:La());var It=Rt.left+(Le=="window"?0:ga());Fe.left+=It,Fe.right+=It}return Fe.top+=Lt,Fe.bottom+=Lt,Fe}function Wu(ie,de,Fe){if(Fe=="div")return de;var Le=de.left,Ie=de.top;if(Fe=="page")Le-=ga(),Ie-=La();else if(Fe=="local"||!Fe){var lt=ie.display.sizer.getBoundingClientRect();Le+=lt.left,Ie+=lt.top}var Lt=ie.display.lineSpace.getBoundingClientRect();return{left:Le-Lt.left,top:Ie-Lt.top}}function Rl(ie,de,Fe,Le,Ie){return Le||(Le=un(ie.doc,de.line)),Ua(ie,Le,Gc(ie,Le,de.ch,Ie),Fe)}function Da(ie,de,Fe,Le,Ie,lt){Le=Le||un(ie.doc,de.line),Ie||(Ie=zu(ie,Le));function Lt(yr,Er){var Wr=jl(ie,Ie,yr,Er?"right":"left",lt);return Er?Wr.left=Wr.right:Wr.right=Wr.left,Ua(ie,Le,Wr,Fe)}var Rt=dt(Le,ie.doc.direction),It=de.ch,Qt=de.sticky;if(It>=Le.text.length?(It=Le.text.length,Qt="before"):It<=0&&(It=0,Qt="after"),!Rt)return Lt(Qt=="before"?It-1:It,Qt=="before");function Pn(yr,Er,Wr){var ai=Rt[Er],Ti=ai.level==1;return Lt(Wr?yr-1:yr,Ti!=Wr)}var nn=De(Rt,It,Qt),Vn=je,Rn=Pn(It,nn,Qt=="before");return Vn!=null&&(Rn.other=Pn(It,Vn,Qt!="before")),Rn}function wd(ie,de){var Fe=0;de=Fn(ie.doc,de),ie.options.lineWrapping||(Fe=ic(ie.display)*de.ch);var Le=un(ie.doc,de.line),Ie=qi(Le)+ks(ie.display);return{left:Fe,right:Fe,top:Ie,bottom:Ie+Le.height}}function bd(ie,de,Fe,Le,Ie){var lt=xn(ie,de,Fe);return lt.xRel=Ie,Le&&(lt.outside=Le),lt}function Kc(ie,de,Fe){var Le=ie.doc;if(Fe+=ie.display.viewOffset,Fe<0)return bd(Le.first,0,null,-1,-1);var Ie=An(Le,Fe),lt=Le.first+Le.size-1;if(Ie>lt)return bd(Le.first+Le.size-1,un(Le,lt).text.length,null,1,1);de<0&&(de=0);for(var Lt=un(Le,Ie);;){var Rt=$n(ie,Lt,Ie,de,Fe),It=hi(Lt,Rt.ch+(Rt.xRel>0||Rt.outside>0?1:0));if(!It)return Rt;var Qt=It.find(1);if(Qt.line==Ie)return Qt;Lt=un(Le,Ie=Qt.line)}}function gi(ie,de,Fe,Le){Le-=Ya(de);var Ie=de.text.length,lt=tt(function(Lt){return jl(ie,Fe,Lt-1).bottom<=Le},Ie,0);return Ie=tt(function(Lt){return jl(ie,Fe,Lt).top>Le},lt,Ie),{begin:lt,end:Ie}}function fh(ie,de,Fe,Le){Fe||(Fe=zu(ie,de));var Ie=Ua(ie,de,jl(ie,Fe,Le),"line").top;return gi(ie,de,Fe,Ie)}function rn(ie,de,Fe,Le){return ie.bottom<=Fe?!1:ie.top>Fe?!0:(Le?ie.left:ie.right)>de}function $n(ie,de,Fe,Le,Ie){Ie-=qi(de);var lt=zu(ie,de),Lt=Ya(de),Rt=0,It=de.text.length,Qt=!0,Pn=dt(de,ie.doc.direction);if(Pn){var nn=(ie.options.lineWrapping?af:Cd)(ie,de,Fe,lt,Pn,Le,Ie);Qt=nn.level!=1,Rt=Qt?nn.from:nn.to-1,It=Qt?nn.to:nn.from-1}var Vn=null,Rn=null,yr=tt(function(So){var vi=jl(ie,lt,So);return vi.top+=Lt,vi.bottom+=Lt,rn(vi,Le,Ie,!1)?(vi.top<=Ie&&vi.left<=Le&&(Vn=So,Rn=vi),!0):!1},Rt,It),Er,Wr,ai=!1;if(Rn){var Ti=Le-Rn.left<Rn.right-Le,Si=Ti==Qt;yr=Vn+(Si?0:1),Wr=Si?"after":"before",Er=Ti?Rn.left:Rn.right}else{!Qt&&(yr==It||yr==Rt)&&yr++,Wr=yr==0?"after":yr==de.text.length?"before":jl(ie,lt,yr-(Qt?1:0)).bottom+Lt<=Ie==Qt?"after":"before";var Hi=Da(ie,xn(Fe,yr,Wr),"line",de,lt);Er=Hi.left,ai=Ie<Hi.top?-1:Ie>=Hi.bottom?1:0}return yr=Ve(de.text,yr,1),bd(Fe,yr,Wr,ai,Le-Er)}function Cd(ie,de,Fe,Le,Ie,lt,Lt){var Rt=tt(function(nn){var Vn=Ie[nn],Rn=Vn.level!=1;return rn(Da(ie,xn(Fe,Rn?Vn.to:Vn.from,Rn?"before":"after"),"line",de,Le),lt,Lt,!0)},0,Ie.length-1),It=Ie[Rt];if(Rt>0){var Qt=It.level!=1,Pn=Da(ie,xn(Fe,Qt?It.from:It.to,Qt?"after":"before"),"line",de,Le);rn(Pn,lt,Lt,!0)&&Pn.top>Lt&&(It=Ie[Rt-1])}return It}function af(ie,de,Fe,Le,Ie,lt,Lt){var Rt=gi(ie,de,Le,Lt),It=Rt.begin,Qt=Rt.end;/\s/.test(de.text.charAt(Qt-1))&&Qt--;for(var Pn=null,nn=null,Vn=0;Vn<Ie.length;Vn++){var Rn=Ie[Vn];if(!(Rn.from>=Qt||Rn.to<=It)){var yr=Rn.level!=1,Er=jl(ie,Le,yr?Math.min(Qt,Rn.to)-1:Math.max(It,Rn.from)).right,Wr=Er<lt?lt-Er+1e9:Er-lt;(!Pn||nn>Wr)&&(Pn=Rn,nn=Wr)}}return Pn||(Pn=Ie[Ie.length-1]),Pn.from<It&&(Pn={from:It,to:Pn.to,level:Pn.level}),Pn.to>Qt&&(Pn={from:Pn.from,to:Qt,level:Pn.level}),Pn}var Hu;function Uu(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Hu==null){Hu=Me("pre",null,"CodeMirror-line-like");for(var de=0;de<49;++de)Hu.appendChild(document.createTextNode("x")),Hu.appendChild(Me("br"));Hu.appendChild(document.createTextNode("x"))}Te(ie.measure,Hu);var Fe=Hu.offsetHeight/50;return Fe>3&&(ie.cachedTextHeight=Fe),Ae(ie.measure),Fe||1}function ic(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var de=Me("span","xxxxxxxxxx"),Fe=Me("pre",[de],"CodeMirror-line-like");Te(ie.measure,Fe);var Le=de.getBoundingClientRect(),Ie=(Le.right-Le.left)/10;return Ie>2&&(ie.cachedCharWidth=Ie),Ie||10}function Pd(ie){for(var de=ie.display,Fe={},Le={},Ie=de.gutters.clientLeft,lt=de.gutters.firstChild,Lt=0;lt;lt=lt.nextSibling,++Lt){var Rt=ie.display.gutterSpecs[Lt].className;Fe[Rt]=lt.offsetLeft+lt.clientLeft+Ie,Le[Rt]=lt.clientWidth}return{fixedPos:ph(de),gutterTotalWidth:de.gutters.offsetWidth,gutterLeft:Fe,gutterWidth:Le,wrapperWidth:de.wrapper.clientWidth}}function ph(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function Ga(ie){var de=Uu(ie.display),Fe=ie.options.lineWrapping,Le=Fe&&Math.max(5,ie.display.scroller.clientWidth/ic(ie.display)-3);return function(Ie){if(qn(ie.doc,Ie))return 0;var lt=0;if(Ie.widgets)for(var Lt=0;Lt<Ie.widgets.length;Lt++)Ie.widgets[Lt].height&&(lt+=Ie.widgets[Lt].height);return Fe?lt+(Math.ceil(Ie.text.length/Le)||1)*de:lt+de}}function Zi(ie){var de=ie.doc,Fe=Ga(ie);de.iter(function(Le){var Ie=Fe(Le);Ie!=Le.height&&Zn(Le,Ie)})}function rl(ie,de,Fe,Le){var Ie=ie.display;if(!Fe&&Tr(de).getAttribute("cm-not-content")=="true")return null;var lt,Lt,Rt=Ie.lineSpace.getBoundingClientRect();try{lt=de.clientX-Rt.left,Lt=de.clientY-Rt.top}catch(nn){return null}var It=Kc(ie,lt,Lt),Qt;if(Le&&It.xRel>0&&(Qt=un(ie.doc,It.line).text).length==It.ch){var Pn=_e(Qt,Qt.length,ie.options.tabSize)-Qt.length;It=xn(It.line,Math.max(0,Math.round((lt-Ru(ie.display).left)/ic(ie.display))-Pn))}return It}function Hs(ie,de){if(de>=ie.display.viewTo||(de-=ie.display.viewFrom,de<0))return null;for(var Fe=ie.display.view,Le=0;Le<Fe.length;Le++)if(de-=Fe[Le].size,de<0)return Le}function xa(ie,de,Fe,Le){de==null&&(de=ie.doc.first),Fe==null&&(Fe=ie.doc.first+ie.doc.size),Le||(Le=0);var Ie=ie.display;if(Le&&Fe<Ie.viewTo&&(Ie.updateLineNumbers==null||Ie.updateLineNumbers>de)&&(Ie.updateLineNumbers=de),ie.curOp.viewChanged=!0,de>=Ie.viewTo)Dn&&Vr(ie.doc,de)<Ie.viewTo&&ss(ie);else if(Fe<=Ie.viewFrom)Dn&&Xr(ie.doc,Fe+Le)>Ie.viewFrom?ss(ie):(Ie.viewFrom+=Le,Ie.viewTo+=Le);else if(de<=Ie.viewFrom&&Fe>=Ie.viewTo)ss(ie);else if(de<=Ie.viewFrom){var lt=Pl(ie,Fe,Fe+Le,1);lt?(Ie.view=Ie.view.slice(lt.index),Ie.viewFrom=lt.lineN,Ie.viewTo+=Le):ss(ie)}else if(Fe>=Ie.viewTo){var Lt=Pl(ie,de,de,-1);Lt?(Ie.view=Ie.view.slice(0,Lt.index),Ie.viewTo=Lt.lineN):ss(ie)}else{var Rt=Pl(ie,de,de,-1),It=Pl(ie,Fe,Fe+Le,1);Rt&&It?(Ie.view=Ie.view.slice(0,Rt.index).concat(eo(ie,Rt.lineN,It.lineN)).concat(Ie.view.slice(It.index)),Ie.viewTo+=Le):ss(ie)}var Qt=Ie.externalMeasured;Qt&&(Fe<Qt.lineN?Qt.lineN+=Le:de<Qt.lineN+Qt.size&&(Ie.externalMeasured=null))}function Mo(ie,de,Fe){ie.curOp.viewChanged=!0;var Le=ie.display,Ie=ie.display.externalMeasured;if(Ie&&de>=Ie.lineN&&de<Ie.lineN+Ie.size&&(Le.externalMeasured=null),!(de<Le.viewFrom||de>=Le.viewTo)){var lt=Le.view[Hs(ie,de)];if(lt.node!=null){var Lt=lt.changes||(lt.changes=[]);pt(Lt,Fe)==-1&&Lt.push(Fe)}}}function ss(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Pl(ie,de,Fe,Le){var Ie=Hs(ie,de),lt,Lt=ie.display.view;if(!Dn||Fe==ie.doc.first+ie.doc.size)return{index:Ie,lineN:Fe};for(var Rt=ie.display.viewFrom,It=0;It<Ie;It++)Rt+=Lt[It].size;if(Rt!=de){if(Le>0){if(Ie==Lt.length-1)return null;lt=Rt+Lt[Ie].size-de,Ie++}else lt=Rt-de;de+=lt,Fe+=lt}for(;Vr(ie.doc,Fe)!=Fe;){if(Ie==(Le<0?0:Lt.length-1))return null;Fe+=Le*Lt[Ie-(Le<0?1:0)].size,Ie+=Le}return{index:Ie,lineN:Fe}}function ma(ie,de,Fe){var Le=ie.display,Ie=Le.view;Ie.length==0||de>=Le.viewTo||Fe<=Le.viewFrom?(Le.view=eo(ie,de,Fe),Le.viewFrom=de):(Le.viewFrom>de?Le.view=eo(ie,de,Le.viewFrom).concat(Le.view):Le.viewFrom<de&&(Le.view=Le.view.slice(Hs(ie,de))),Le.viewFrom=de,Le.viewTo<Fe?Le.view=Le.view.concat(eo(ie,Le.viewTo,Fe)):Le.viewTo>Fe&&(Le.view=Le.view.slice(0,Hs(ie,Fe)))),Le.viewTo=Fe}function zl(ie){for(var de=ie.display.view,Fe=0,Le=0;Le<de.length;Le++){var Ie=de[Le];!Ie.hidden&&(!Ie.node||Ie.changes)&&++Fe}return Fe}function bs(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Vc(ie,de){de===void 0&&(de=!0);for(var Fe=ie.doc,Le={},Ie=Le.cursors=document.createDocumentFragment(),lt=Le.selection=document.createDocumentFragment(),Lt=0;Lt<Fe.sel.ranges.length;Lt++)if(!(!de&&Lt==Fe.sel.primIndex)){var Rt=Fe.sel.ranges[Lt];if(!(Rt.from().line>=ie.display.viewTo||Rt.to().line<ie.display.viewFrom)){var It=Rt.empty();(It||ie.options.showCursorWhenSelecting)&&Zo(ie,Rt.head,Ie),It||Ko(ie,Rt,lt)}}return Le}function Zo(ie,de,Fe){var Le=Da(ie,de,"div",null,null,!ie.options.singleCursorHeightPerLine),Ie=Fe.appendChild(Me("div","\xA0","CodeMirror-cursor"));if(Ie.style.left=Le.left+"px",Ie.style.top=Le.top+"px",Ie.style.height=Math.max(0,Le.bottom-Le.top)*ie.options.cursorHeight+"px",Le.other){var lt=Fe.appendChild(Me("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));lt.style.display="",lt.style.left=Le.other.left+"px",lt.style.top=Le.other.top+"px",lt.style.height=(Le.other.bottom-Le.other.top)*.85+"px"}}function il(ie,de){return ie.top-de.top||ie.left-de.left}function Ko(ie,de,Fe){var Le=ie.display,Ie=ie.doc,lt=document.createDocumentFragment(),Lt=Ru(ie.display),Rt=Lt.left,It=Math.max(Le.sizerWidth,dl(ie)-Le.sizer.offsetLeft)-Lt.right,Qt=Ie.direction=="ltr";function Pn(Si,Hi,So,vi){Hi<0&&(Hi=0),Hi=Math.round(Hi),vi=Math.round(vi),lt.appendChild(Me("div",null,"CodeMirror-selected","position: absolute; left: "+Si+`px;
top: `+Hi+"px; width: "+(So==null?It-Si:So)+`px;
height: `+(vi-Hi)+"px"))}function nn(Si,Hi,So){var vi=un(Ie,Si),No=vi.text.length,$a,Is;function os(Fs,iu){return Rl(ie,xn(Si,Fs),"div",vi,iu)}function Vl(Fs,iu,al){var Ds=fh(ie,vi,null,Fs),sa=iu=="ltr"==(al=="after")?"left":"right",hs=al=="after"?Ds.begin:Ds.end-(/\s/.test(vi.text.charAt(Ds.end-1))?2:1);return os(hs,sa)[sa]}var vl=dt(vi,Ie.direction);return Ze(vl,Hi||0,So==null?No:So,function(Fs,iu,al,Ds){var sa=al=="ltr",hs=os(Fs,sa?"left":"right"),Gs=os(iu-1,sa?"right":"left"),sl=Hi==null&&Fs==0,Yu=So==null&&iu==No,as=Ds==0,Tu=!vl||Ds==vl.length-1;if(Gs.top-hs.top<=3){var ys=(Qt?sl:Yu)&&as,xf=(Qt?Yu:sl)&&Tu,vu=ys?Rt:(sa?hs:Gs).left,ou=xf?It:(sa?Gs:hs).right;Pn(vu,hs.top,ou-vu,hs.bottom)}else{var Xl,Ia,Zs,Mc;sa?(Xl=Qt&&sl&&as?Rt:hs.left,Ia=Qt?It:Vl(Fs,al,"before"),Zs=Qt?Rt:Vl(iu,al,"after"),Mc=Qt&&Yu&&Tu?It:Gs.right):(Xl=Qt?Vl(Fs,al,"before"):Rt,Ia=!Qt&&sl&&as?It:hs.right,Zs=!Qt&&Yu&&Tu?Rt:Gs.left,Mc=Qt?Vl(iu,al,"after"):It),Pn(Xl,hs.top,Ia-Xl,hs.bottom),hs.bottom<Gs.top&&Pn(Rt,hs.bottom,null,Gs.top),Pn(Zs,Gs.top,Mc-Zs,Gs.bottom)}(!$a||il(hs,$a)<0)&&($a=hs),il(Gs,$a)<0&&($a=Gs),(!Is||il(hs,Is)<0)&&(Is=hs),il(Gs,Is)<0&&(Is=Gs)}),{start:$a,end:Is}}var Vn=de.from(),Rn=de.to();if(Vn.line==Rn.line)nn(Vn.line,Vn.ch,Rn.ch);else{var yr=un(Ie,Vn.line),Er=un(Ie,Rn.line),Wr=wi(yr)==wi(Er),ai=nn(Vn.line,Vn.ch,Wr?yr.text.length+1:null).end,Ti=nn(Rn.line,Wr?0:null,Rn.ch).start;Wr&&(ai.top<Ti.top-2?(Pn(ai.right,ai.top,null,ai.bottom),Pn(Rt,Ti.top,Ti.left,Ti.bottom)):Pn(ai.right,ai.top,Ti.left-ai.right,ai.bottom)),ai.bottom<Ti.top&&Pn(Rt,ai.bottom,null,Ti.top)}Fe.appendChild(lt)}function fa(ie){if(ie.state.focused){var de=ie.display;clearInterval(de.blinker);var Fe=!0;de.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?de.blinker=setInterval(function(){ie.hasFocus()||Xc(ie),de.cursorDiv.style.visibility=(Fe=!Fe)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(de.cursorDiv.style.visibility="hidden")}}function Oa(ie){ie.state.focused||(ie.display.input.focus(),Yo(ie))}function Ja(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Xc(ie))},100)}function Yo(ie,de){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Ot(ie,"focus",ie,de),ie.state.focused=!0,$e(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),ce&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),fa(ie))}function Xc(ie,de){ie.state.delayingBlurEvent||(ie.state.focused&&(Ot(ie,"blur",ie,de),ie.state.focused=!1,Ne(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Ui(ie){for(var de=ie.display,Fe=de.lineDiv.offsetTop,Le=0;Le<de.view.length;Le++){var Ie=de.view[Le],lt=ie.options.lineWrapping,Lt=void 0,Rt=0;if(!Ie.hidden){if(Oe&&ve<8){var It=Ie.node.offsetTop+Ie.node.offsetHeight;Lt=It-Fe,Fe=It}else{var Qt=Ie.node.getBoundingClientRect();Lt=Qt.bottom-Qt.top,!lt&&Ie.text.firstChild&&(Rt=Ie.text.firstChild.getBoundingClientRect().right-Qt.left-1)}var Pn=Ie.line.height-Lt;if((Pn>.005||Pn<-.005)&&(Zn(Ie.line,Lt),Gf(Ie.line),Ie.rest))for(var nn=0;nn<Ie.rest.length;nn++)Gf(Ie.rest[nn]);if(Rt>ie.display.sizerWidth){var Vn=Math.ceil(Rt/ic(ie.display));Vn>ie.display.maxLineLength&&(ie.display.maxLineLength=Vn,ie.display.maxLine=Ie.line,ie.display.maxLineChanged=!0)}}}}function Gf(ie){if(ie.widgets)for(var de=0;de<ie.widgets.length;++de){var Fe=ie.widgets[de],Le=Fe.node.parentNode;Le&&(Fe.height=Le.offsetHeight)}}function Wo(ie,de,Fe){var Le=Fe&&Fe.top!=null?Math.max(0,Fe.top):ie.scroller.scrollTop;Le=Math.floor(Le-ks(ie));var Ie=Fe&&Fe.bottom!=null?Fe.bottom:Le+ie.wrapper.clientHeight,lt=An(de,Le),Lt=An(de,Ie);if(Fe&&Fe.ensure){var Rt=Fe.ensure.from.line,It=Fe.ensure.to.line;Rt<lt?(lt=Rt,Lt=An(de,qi(un(de,Rt))+ie.wrapper.clientHeight)):Math.min(It,de.lastLine())>=Lt&&(lt=An(de,qi(un(de,It))-ie.wrapper.clientHeight),Lt=It)}return{from:lt,to:Math.max(Lt,lt+1)}}function Zf(ie,de){if(!Vt(ie,"scrollCursorIntoView")){var Fe=ie.display,Le=Fe.sizer.getBoundingClientRect(),Ie=null;if(de.top+Le.top<0?Ie=!0:de.bottom+Le.top>(window.innerHeight||document.documentElement.clientHeight)&&(Ie=!1),Ie!=null&&!xe){var lt=Me("div","\u200B",null,`position: absolute;
top: `+(de.top-Fe.viewOffset-ks(ie.display))+`px;
height: `+(de.bottom-de.top+Ws(ie)+Fe.barHeight)+`px;
left: `+de.left+"px; width: "+Math.max(2,de.right-de.left)+"px;");ie.display.lineSpace.appendChild(lt),lt.scrollIntoView(Ie),ie.display.lineSpace.removeChild(lt)}}}function Zh(ie,de,Fe,Le){Le==null&&(Le=0);var Ie;!ie.options.lineWrapping&&de==Fe&&(de=de.ch?xn(de.line,de.sticky=="before"?de.ch-1:de.ch,"after"):de,Fe=de.sticky=="before"?xn(de.line,de.ch+1,"before"):de);for(var lt=0;lt<5;lt++){var Lt=!1,Rt=Da(ie,de),It=!Fe||Fe==de?Rt:Da(ie,Fe);Ie={left:Math.min(Rt.left,It.left),top:Math.min(Rt.top,It.top)-Le,right:Math.max(Rt.left,It.left),bottom:Math.max(Rt.bottom,It.bottom)+Le};var Qt=Kf(ie,Ie),Pn=ie.doc.scrollTop,nn=ie.doc.scrollLeft;if(Qt.scrollTop!=null&&(Jc(ie,Qt.scrollTop),Math.abs(ie.doc.scrollTop-Pn)>1&&(Lt=!0)),Qt.scrollLeft!=null&&(Zu(ie,Qt.scrollLeft),Math.abs(ie.doc.scrollLeft-nn)>1&&(Lt=!0)),!Lt)break}return Ie}function Kh(ie,de){var Fe=Kf(ie,de);Fe.scrollTop!=null&&Jc(ie,Fe.scrollTop),Fe.scrollLeft!=null&&Zu(ie,Fe.scrollLeft)}function Kf(ie,de){var Fe=ie.display,Le=Uu(ie.display);de.top<0&&(de.top=0);var Ie=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:Fe.scroller.scrollTop,lt=Hc(ie),Lt={};de.bottom-de.top>lt&&(de.bottom=de.top+lt);var Rt=ie.doc.height+Eu(Fe),It=de.top<Le,Qt=de.bottom>Rt-Le;if(de.top<Ie)Lt.scrollTop=It?0:de.top;else if(de.bottom>Ie+lt){var Pn=Math.min(de.top,(Qt?Rt:de.bottom)-lt);Pn!=Ie&&(Lt.scrollTop=Pn)}var nn=ie.options.fixedGutter?0:Fe.gutters.offsetWidth,Vn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:Fe.scroller.scrollLeft-nn,Rn=dl(ie)-Fe.gutters.offsetWidth,yr=de.right-de.left>Rn;return yr&&(de.right=de.left+Rn),de.left<10?Lt.scrollLeft=0:de.left<Vn?Lt.scrollLeft=Math.max(0,de.left+nn-(yr?0:10)):de.right>Rn+Vn-3&&(Lt.scrollLeft=de.right+(yr?0:10)-Rn),Lt}function Ed(ie,de){de!=null&&(Gu(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+de)}function Sc(ie){Gu(ie);var de=ie.getCursor();ie.curOp.scrollToPos={from:de,to:de,margin:ie.options.cursorScrollMargin}}function Yc(ie,de,Fe){(de!=null||Fe!=null)&&Gu(ie),de!=null&&(ie.curOp.scrollLeft=de),Fe!=null&&(ie.curOp.scrollTop=Fe)}function Jo(ie,de){Gu(ie),ie.curOp.scrollToPos=de}function Gu(ie){var de=ie.curOp.scrollToPos;if(de){ie.curOp.scrollToPos=null;var Fe=wd(ie,de.from),Le=wd(ie,de.to);sf(ie,Fe,Le,de.margin)}}function sf(ie,de,Fe,Le){var Ie=Kf(ie,{left:Math.min(de.left,Fe.left),top:Math.min(de.top,Fe.top)-Le,right:Math.max(de.right,Fe.right),bottom:Math.max(de.bottom,Fe.bottom)+Le});Yc(ie,Ie.scrollLeft,Ie.scrollTop)}function Jc(ie,de){Math.abs(ie.doc.scrollTop-de)<2||(We||qr(ie,{top:de}),Vf(ie,de,!0),We&&qr(ie),nr(ie,100))}function Vf(ie,de,Fe){de=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,de)),!(ie.display.scroller.scrollTop==de&&!Fe)&&(ie.doc.scrollTop=de,ie.display.scrollbars.setScrollTop(de),ie.display.scroller.scrollTop!=de&&(ie.display.scroller.scrollTop=de))}function Zu(ie,de,Fe,Le){de=Math.max(0,Math.min(de,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((Fe?de==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-de)<2)&&!Le)&&(ie.doc.scrollLeft=de,Ki(ie),ie.display.scroller.scrollLeft!=de&&(ie.display.scroller.scrollLeft=de),ie.display.scrollbars.setScrollLeft(de))}function pu(ie){var de=ie.display,Fe=de.gutters.offsetWidth,Le=Math.round(ie.doc.height+Eu(ie.display));return{clientHeight:de.scroller.clientHeight,viewHeight:de.wrapper.clientHeight,scrollWidth:de.scroller.scrollWidth,clientWidth:de.scroller.clientWidth,viewWidth:de.wrapper.clientWidth,barLeft:ie.options.fixedGutter?Fe:0,docHeight:Le,scrollHeight:Le+Ws(ie)+de.barHeight,nativeBarWidth:de.nativeBarWidth,gutterWidth:Fe}}var xc=function(ie,de,Fe){this.cm=Fe;var Le=this.vert=Me("div",[Me("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Ie=this.horiz=Me("div",[Me("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Le.tabIndex=Ie.tabIndex=-1,ie(Le),ie(Ie),At(Le,"scroll",function(){Le.clientHeight&&de(Le.scrollTop,"vertical")}),At(Ie,"scroll",function(){Ie.clientWidth&&de(Ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Oe&&ve<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xc.prototype.update=function(ie){var de=ie.scrollWidth>ie.clientWidth+1,Fe=ie.scrollHeight>ie.clientHeight+1,Le=ie.nativeBarWidth;if(Fe){this.vert.style.display="block",this.vert.style.bottom=de?Le+"px":"0";var Ie=ie.viewHeight-(de?Le:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+Ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(de){this.horiz.style.display="block",this.horiz.style.right=Fe?Le+"px":"0",this.horiz.style.left=ie.barLeft+"px";var lt=ie.viewWidth-ie.barLeft-(Fe?Le:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+lt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(Le==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Fe?Le:0,bottom:de?Le:0}},xc.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xc.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xc.prototype.zeroWidthHack=function(){var ie=ae&&!me?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new st,this.disableVert=new st},xc.prototype.enableZeroWidthBar=function(ie,de,Fe){ie.style.pointerEvents="auto";function Le(){var Ie=ie.getBoundingClientRect(),lt=Fe=="vert"?document.elementFromPoint(Ie.right-1,(Ie.top+Ie.bottom)/2):document.elementFromPoint((Ie.right+Ie.left)/2,Ie.bottom-1);lt!=ie?ie.style.pointerEvents="none":de.set(1e3,Le)}de.set(1e3,Le)},xc.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Au=function(){};Au.prototype.update=function(){return{bottom:0,right:0}},Au.prototype.setScrollLeft=function(){},Au.prototype.setScrollTop=function(){},Au.prototype.clear=function(){};function wc(ie,de){de||(de=pu(ie));var Fe=ie.display.barWidth,Le=ie.display.barHeight;Ad(ie,de);for(var Ie=0;Ie<4&&Fe!=ie.display.barWidth||Le!=ie.display.barHeight;Ie++)Fe!=ie.display.barWidth&&ie.options.lineWrapping&&Ui(ie),Ad(ie,pu(ie)),Fe=ie.display.barWidth,Le=ie.display.barHeight}function Ad(ie,de){var Fe=ie.display,Le=Fe.scrollbars.update(de);Fe.sizer.style.paddingRight=(Fe.barWidth=Le.right)+"px",Fe.sizer.style.paddingBottom=(Fe.barHeight=Le.bottom)+"px",Fe.heightForcer.style.borderBottom=Le.bottom+"px solid transparent",Le.right&&Le.bottom?(Fe.scrollbarFiller.style.display="block",Fe.scrollbarFiller.style.height=Le.bottom+"px",Fe.scrollbarFiller.style.width=Le.right+"px"):Fe.scrollbarFiller.style.display="",Le.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(Fe.gutterFiller.style.display="block",Fe.gutterFiller.style.height=Le.bottom+"px",Fe.gutterFiller.style.width=de.gutterWidth+"px"):Fe.gutterFiller.style.display=""}var lf={native:xc,null:Au};function uf(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ne(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new lf[ie.options.scrollbarStyle](function(de){ie.display.wrapper.insertBefore(de,ie.display.scrollbarFiller),At(de,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),de.setAttribute("cm-not-content","true")},function(de,Fe){Fe=="horizontal"?Zu(ie,de):Jc(ie,de)},ie),ie.display.scrollbars.addClass&&$e(ie.display.wrapper,ie.display.scrollbars.addClass)}var Xf=0;function fl(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.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:++Xf},ws(ie.curOp)}function bc(ie){var de=ie.curOp;de&&ho(de,function(Fe){for(var Le=0;Le<Fe.ops.length;Le++)Fe.ops[Le].cm.curOp=null;Kp(Fe)})}function Kp(ie){for(var de=ie.ops,Fe=0;Fe<de.length;Fe++)Wt(de[Fe]);for(var Le=0;Le<de.length;Le++)Ut(de[Le]);for(var Ie=0;Ie<de.length;Ie++)an(de[Ie]);for(var lt=0;lt<de.length;lt++)ln(de[lt]);for(var Lt=0;Lt<de.length;Lt++)En(de[Lt])}function Wt(ie){var de=ie.cm,Fe=de.display;Br(de),ie.updateMaxLine&&lo(de),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<Fe.viewFrom||ie.scrollToPos.to.line>=Fe.viewTo)||Fe.maxLineChanged&&de.options.lineWrapping,ie.update=ie.mustUpdate&&new or(de,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function Ut(ie){ie.updatedDisplay=ie.mustUpdate&&ni(ie.cm,ie.update)}function an(ie){var de=ie.cm,Fe=de.display;ie.updatedDisplay&&Ui(de),ie.barMeasure=pu(de),Fe.maxLineChanged&&!de.options.lineWrapping&&(ie.adjustWidthTo=Gc(de,Fe.maxLine,Fe.maxLine.text.length).left+3,de.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(Fe.scroller.clientWidth,Fe.sizer.offsetLeft+ie.adjustWidthTo+Ws(de)+de.display.barWidth),ie.maxScrollLeft=Math.max(0,Fe.sizer.offsetLeft+ie.adjustWidthTo-dl(de))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=Fe.input.prepareSelection())}function ln(ie){var de=ie.cm;ie.adjustWidthTo!=null&&(de.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<de.doc.scrollLeft&&Zu(de,Math.min(de.display.scroller.scrollLeft,ie.maxScrollLeft),!0),de.display.maxLineChanged=!1);var Fe=ie.focus&&ie.focus==He();ie.preparedSelection&&de.display.input.showSelection(ie.preparedSelection,Fe),(ie.updatedDisplay||ie.startHeight!=de.doc.height)&&wc(de,ie.barMeasure),ie.updatedDisplay&&Ni(de,ie.barMeasure),ie.selectionChanged&&fa(de),de.state.focused&&ie.updateInput&&de.display.input.reset(ie.typing),Fe&&Oa(ie.cm)}function En(ie){var de=ie.cm,Fe=de.display,Le=de.doc;if(ie.updatedDisplay&&Pr(de,ie.update),Fe.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(Fe.wheelStartX=Fe.wheelStartY=null),ie.scrollTop!=null&&Vf(de,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Zu(de,ie.scrollLeft,!0,!0),ie.scrollToPos){var Ie=Zh(de,Fn(Le,ie.scrollToPos.from),Fn(Le,ie.scrollToPos.to),ie.scrollToPos.margin);Zf(de,Ie)}var lt=ie.maybeHiddenMarkers,Lt=ie.maybeUnhiddenMarkers;if(lt)for(var Rt=0;Rt<lt.length;++Rt)lt[Rt].lines.length||Ot(lt[Rt],"hide");if(Lt)for(var It=0;It<Lt.length;++It)Lt[It].lines.length&&Ot(Lt[It],"unhide");Fe.wrapper.offsetHeight&&(Le.scrollTop=de.display.scroller.scrollTop),ie.changeObjs&&Ot(de,"changes",de,ie.changeObjs),ie.update&&ie.update.finish()}function Sn(ie,de){if(ie.curOp)return de();fl(ie);try{return de()}finally{bc(ie)}}function Wn(ie,de){return function(){if(ie.curOp)return de.apply(ie,arguments);fl(ie);try{return de.apply(ie,arguments)}finally{bc(ie)}}}function Un(ie){return function(){if(this.curOp)return ie.apply(this,arguments);fl(this);try{return ie.apply(this,arguments)}finally{bc(this)}}}function In(ie){return function(){var de=this.cm;if(!de||de.curOp)return ie.apply(this,arguments);fl(de);try{return ie.apply(this,arguments)}finally{bc(de)}}}function nr(ie,de){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(de,ct(lr,ie))}function lr(ie){var de=ie.doc;if(!(de.highlightFrontier>=ie.display.viewTo)){var Fe=+new Date+ie.options.workTime,Le=Qr(ie,de.highlightFrontier),Ie=[];de.iter(Le.line,Math.min(de.first+de.size,ie.display.viewTo+500),function(lt){if(Le.line>=ie.display.viewFrom){var Lt=lt.styles,Rt=lt.text.length>ie.options.maxHighlightLength?sn(de.mode,Le.state):null,It=Dr(ie,lt,Le,!0);Rt&&(Le.state=Rt),lt.styles=It.styles;var Qt=lt.styleClasses,Pn=It.classes;Pn?lt.styleClasses=Pn:Qt&&(lt.styleClasses=null);for(var nn=!Lt||Lt.length!=lt.styles.length||Qt!=Pn&&(!Qt||!Pn||Qt.bgClass!=Pn.bgClass||Qt.textClass!=Pn.textClass),Vn=0;!nn&&Vn<Lt.length;++Vn)nn=Lt[Vn]!=lt.styles[Vn];nn&&Ie.push(Le.line),lt.stateAfter=Le.save(),Le.nextLine()}else lt.text.length<=ie.options.maxHighlightLength&&wn(ie,lt.text,Le),lt.stateAfter=Le.line%5==0?Le.save():null,Le.nextLine();if(+new Date>Fe)return nr(ie,ie.options.workDelay),!0}),de.highlightFrontier=Le.line,de.modeFrontier=Math.max(de.modeFrontier,Le.line),Ie.length&&Sn(ie,function(){for(var lt=0;lt<Ie.length;lt++)Mo(ie,Ie[lt],"text")})}}var or=function(ie,de,Fe){var Le=ie.display;this.viewport=de,this.visible=Wo(Le,ie.doc,de),this.editorIsHidden=!Le.wrapper.offsetWidth,this.wrapperHeight=Le.wrapper.clientHeight,this.wrapperWidth=Le.wrapper.clientWidth,this.oldDisplayWidth=dl(ie),this.force=Fe,this.dims=Pd(ie),this.events=[]};or.prototype.signal=function(ie,de){on(ie,de)&&this.events.push(arguments)},or.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Ot.apply(null,this.events[ie])};function Br(ie){var de=ie.display;!de.scrollbarsClipped&&de.scroller.offsetWidth&&(de.nativeBarWidth=de.scroller.offsetWidth-de.scroller.clientWidth,de.heightForcer.style.height=Ws(ie)+"px",de.sizer.style.marginBottom=-de.nativeBarWidth+"px",de.sizer.style.borderRightWidth=Ws(ie)+"px",de.scrollbarsClipped=!0)}function Or(ie){if(ie.hasFocus())return null;var de=He();if(!de||!Qe(ie.display.lineDiv,de))return null;var Fe={activeElt:de};if(window.getSelection){var Le=window.getSelection();Le.anchorNode&&Le.extend&&Qe(ie.display.lineDiv,Le.anchorNode)&&(Fe.anchorNode=Le.anchorNode,Fe.anchorOffset=Le.anchorOffset,Fe.focusNode=Le.focusNode,Fe.focusOffset=Le.focusOffset)}return Fe}function Sr(ie){if(!(!ie||!ie.activeElt||ie.activeElt==He())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Qe(document.body,ie.anchorNode)&&Qe(document.body,ie.focusNode))){var de=window.getSelection(),Fe=document.createRange();Fe.setEnd(ie.anchorNode,ie.anchorOffset),Fe.collapse(!1),de.removeAllRanges(),de.addRange(Fe),de.extend(ie.focusNode,ie.focusOffset)}}function ni(ie,de){var Fe=ie.display,Le=ie.doc;if(de.editorIsHidden)return ss(ie),!1;if(!de.force&&de.visible.from>=Fe.viewFrom&&de.visible.to<=Fe.viewTo&&(Fe.updateLineNumbers==null||Fe.updateLineNumbers>=Fe.viewTo)&&Fe.renderedView==Fe.view&&zl(ie)==0)return!1;ii(ie)&&(ss(ie),de.dims=Pd(ie));var Ie=Le.first+Le.size,lt=Math.max(de.visible.from-ie.options.viewportMargin,Le.first),Lt=Math.min(Ie,de.visible.to+ie.options.viewportMargin);Fe.viewFrom<lt&&lt-Fe.viewFrom<20&&(lt=Math.max(Le.first,Fe.viewFrom)),Fe.viewTo>Lt&&Fe.viewTo-Lt<20&&(Lt=Math.min(Ie,Fe.viewTo)),Dn&&(lt=Vr(ie.doc,lt),Lt=Xr(ie.doc,Lt));var Rt=lt!=Fe.viewFrom||Lt!=Fe.viewTo||Fe.lastWrapHeight!=de.wrapperHeight||Fe.lastWrapWidth!=de.wrapperWidth;ma(ie,lt,Lt),Fe.viewOffset=qi(un(ie.doc,Fe.viewFrom)),ie.display.mover.style.top=Fe.viewOffset+"px";var It=zl(ie);if(!Rt&&It==0&&!de.force&&Fe.renderedView==Fe.view&&(Fe.updateLineNumbers==null||Fe.updateLineNumbers>=Fe.viewTo))return!1;var Qt=Or(ie);return It>4&&(Fe.lineDiv.style.display="none"),_r(ie,Fe.updateLineNumbers,de.dims),It>4&&(Fe.lineDiv.style.display=""),Fe.renderedView=Fe.view,Sr(Qt),Ae(Fe.cursorDiv),Ae(Fe.selectionDiv),Fe.gutters.style.height=Fe.sizer.style.minHeight=0,Rt&&(Fe.lastWrapHeight=de.wrapperHeight,Fe.lastWrapWidth=de.wrapperWidth,nr(ie,400)),Fe.updateLineNumbers=null,!0}function Pr(ie,de){for(var Fe=de.viewport,Le=!0;;Le=!1){if(!Le||!ie.options.lineWrapping||de.oldDisplayWidth==dl(ie)){if(Fe&&Fe.top!=null&&(Fe={top:Math.min(ie.doc.height+Eu(ie.display)-Hc(ie),Fe.top)}),de.visible=Wo(ie.display,ie.doc,Fe),de.visible.from>=ie.display.viewFrom&&de.visible.to<=ie.display.viewTo)break}else Le&&(de.visible=Wo(ie.display,ie.doc,Fe));if(!ni(ie,de))break;Ui(ie);var Ie=pu(ie);bs(ie),wc(ie,Ie),Ni(ie,Ie),de.force=!1}de.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(de.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function qr(ie,de){var Fe=new or(ie,de);if(ni(ie,Fe)){Ui(ie),Pr(ie,Fe);var Le=pu(ie);bs(ie),wc(ie,Le),Ni(ie,Le),Fe.finish()}}function _r(ie,de,Fe){var Le=ie.display,Ie=ie.options.lineNumbers,lt=Le.lineDiv,Lt=lt.firstChild;function Rt(yr){var Er=yr.nextSibling;return ce&&ae&&ie.display.currentWheelTarget==yr?yr.style.display="none":yr.parentNode.removeChild(yr),Er}for(var It=Le.view,Qt=Le.viewFrom,Pn=0;Pn<It.length;Pn++){var nn=It[Pn];if(!nn.hidden)if(!nn.node||nn.node.parentNode!=lt){var Vn=Bl(ie,nn,Qt,Fe);lt.insertBefore(Vn,Lt)}else{for(;Lt!=nn.node;)Lt=Rt(Lt);var Rn=Ie&&de!=null&&de<=Qt&&nn.lineNumber;nn.changes&&(pt(nn.changes,"gutter")>-1&&(Rn=!1),Wa(ie,nn,Qt,Fe)),Rn&&(Ae(nn.lineNumber),nn.lineNumber.appendChild(document.createTextNode(rr(ie.options,Qt)))),Lt=nn.node.nextSibling}Qt+=nn.size}for(;Lt;)Lt=Rt(Lt)}function di(ie){var de=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=de+"px"}function Ni(ie,de){ie.display.sizer.style.minHeight=de.docHeight+"px",ie.display.heightForcer.style.top=de.docHeight+"px",ie.display.gutters.style.height=de.docHeight+ie.display.barHeight+Ws(ie)+"px"}function Ki(ie){var de=ie.display,Fe=de.view;if(!(!de.alignWidgets&&(!de.gutters.firstChild||!ie.options.fixedGutter))){for(var Le=ph(de)-de.scroller.scrollLeft+ie.doc.scrollLeft,Ie=de.gutters.offsetWidth,lt=Le+"px",Lt=0;Lt<Fe.length;Lt++)if(!Fe[Lt].hidden){ie.options.fixedGutter&&(Fe[Lt].gutter&&(Fe[Lt].gutter.style.left=lt),Fe[Lt].gutterBackground&&(Fe[Lt].gutterBackground.style.left=lt));var Rt=Fe[Lt].alignable;if(Rt)for(var It=0;It<Rt.length;It++)Rt[It].style.left=lt}ie.options.fixedGutter&&(de.gutters.style.left=Le+Ie+"px")}}function ii(ie){if(!ie.options.lineNumbers)return!1;var de=ie.doc,Fe=rr(ie.options,de.first+de.size-1),Le=ie.display;if(Fe.length!=Le.lineNumChars){var Ie=Le.measure.appendChild(Me("div",[Me("div",Fe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),lt=Ie.firstChild.offsetWidth,Lt=Ie.offsetWidth-lt;return Le.lineGutter.style.width="",Le.lineNumInnerWidth=Math.max(lt,Le.lineGutter.offsetWidth-Lt)+1,Le.lineNumWidth=Le.lineNumInnerWidth+Lt,Le.lineNumChars=Le.lineNumInnerWidth?Fe.length:-1,Le.lineGutter.style.width=Le.lineNumWidth+"px",di(ie.display),!0}return!1}function Di(ie,de){for(var Fe=[],Le=!1,Ie=0;Ie<ie.length;Ie++){var lt=ie[Ie],Lt=null;if(typeof lt!="string"&&(Lt=lt.style,lt=lt.className),lt=="CodeMirror-linenumbers")if(de)Le=!0;else continue;Fe.push({className:lt,style:Lt})}return de&&!Le&&Fe.push({className:"CodeMirror-linenumbers",style:null}),Fe}function mo(ie){var de=ie.gutters,Fe=ie.gutterSpecs;Ae(de),ie.lineGutter=null;for(var Le=0;Le<Fe.length;++Le){var Ie=Fe[Le],lt=Ie.className,Lt=Ie.style,Rt=de.appendChild(Me("div",null,"CodeMirror-gutter "+lt));Lt&&(Rt.style.cssText=Lt),lt=="CodeMirror-linenumbers"&&(ie.lineGutter=Rt,Rt.style.width=(ie.lineNumWidth||1)+"px")}de.style.display=Fe.length?"":"none",di(ie)}function ui(ie){mo(ie.display),xa(ie),Ki(ie)}function Ai(ie,de,Fe,Le){var Ie=this;this.input=Fe,Ie.scrollbarFiller=Me("div",null,"CodeMirror-scrollbar-filler"),Ie.scrollbarFiller.setAttribute("cm-not-content","true"),Ie.gutterFiller=Me("div",null,"CodeMirror-gutter-filler"),Ie.gutterFiller.setAttribute("cm-not-content","true"),Ie.lineDiv=Be("div",null,"CodeMirror-code"),Ie.selectionDiv=Me("div",null,null,"position: relative; z-index: 1"),Ie.cursorDiv=Me("div",null,"CodeMirror-cursors"),Ie.measure=Me("div",null,"CodeMirror-measure"),Ie.lineMeasure=Me("div",null,"CodeMirror-measure"),Ie.lineSpace=Be("div",[Ie.measure,Ie.lineMeasure,Ie.selectionDiv,Ie.cursorDiv,Ie.lineDiv],null,"position: relative; outline: none");var lt=Be("div",[Ie.lineSpace],"CodeMirror-lines");Ie.mover=Me("div",[lt],null,"position: relative"),Ie.sizer=Me("div",[Ie.mover],"CodeMirror-sizer"),Ie.sizerWidth=null,Ie.heightForcer=Me("div",null,null,"position: absolute; height: "+bt+"px; width: 1px;"),Ie.gutters=Me("div",null,"CodeMirror-gutters"),Ie.lineGutter=null,Ie.scroller=Me("div",[Ie.sizer,Ie.heightForcer,Ie.gutters],"CodeMirror-scroll"),Ie.scroller.setAttribute("tabIndex","-1"),Ie.wrapper=Me("div",[Ie.scrollbarFiller,Ie.gutterFiller,Ie.scroller],"CodeMirror"),Oe&&ve<8&&(Ie.gutters.style.zIndex=-1,Ie.scroller.style.paddingRight=0),!ce&&!(We&&ee)&&(Ie.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(Ie.wrapper):ie(Ie.wrapper)),Ie.viewFrom=Ie.viewTo=de.first,Ie.reportedViewFrom=Ie.reportedViewTo=de.first,Ie.view=[],Ie.renderedView=null,Ie.externalMeasured=null,Ie.viewOffset=0,Ie.lastWrapHeight=Ie.lastWrapWidth=0,Ie.updateLineNumbers=null,Ie.nativeBarWidth=Ie.barHeight=Ie.barWidth=0,Ie.scrollbarsClipped=!1,Ie.lineNumWidth=Ie.lineNumInnerWidth=Ie.lineNumChars=null,Ie.alignWidgets=!1,Ie.cachedCharWidth=Ie.cachedTextHeight=Ie.cachedPaddingH=null,Ie.maxLine=null,Ie.maxLineLength=0,Ie.maxLineChanged=!1,Ie.wheelDX=Ie.wheelDY=Ie.wheelStartX=Ie.wheelStartY=null,Ie.shift=!1,Ie.selForContextMenu=null,Ie.activeTouch=null,Ie.gutterSpecs=Di(Le.gutters,Le.lineNumbers),mo(Ie),Fe.init(Ie)}var li=0,Ur=null;Oe?Ur=-.53:We?Ur=15:Ee?Ur=-.7:be&&(Ur=-1/3);function yi(ie){var de=ie.wheelDeltaX,Fe=ie.wheelDeltaY;return de==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(de=ie.detail),Fe==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?Fe=ie.detail:Fe==null&&(Fe=ie.wheelDelta),{x:de,y:Fe}}function Wi(ie){var de=yi(ie);return de.x*=Ur,de.y*=Ur,de}function $i(ie,de){var Fe=yi(de),Le=Fe.x,Ie=Fe.y,lt=ie.display,Lt=lt.scroller,Rt=Lt.scrollWidth>Lt.clientWidth,It=Lt.scrollHeight>Lt.clientHeight;if(Le&&Rt||Ie&&It){if(Ie&&ae&&ce){e:for(var Qt=de.target,Pn=lt.view;Qt!=Lt;Qt=Qt.parentNode)for(var nn=0;nn<Pn.length;nn++)if(Pn[nn].node==Qt){ie.display.currentWheelTarget=Qt;break e}}if(Le&&!We&&!ye&&Ur!=null){Ie&&It&&Jc(ie,Math.max(0,Lt.scrollTop+Ie*Ur)),Zu(ie,Math.max(0,Lt.scrollLeft+Le*Ur)),(!Ie||Ie&&It)&&jn(de),lt.wheelStartX=null;return}if(Ie&&Ur!=null){var Vn=Ie*Ur,Rn=ie.doc.scrollTop,yr=Rn+lt.wrapper.clientHeight;Vn<0?Rn=Math.max(0,Rn+Vn-50):yr=Math.min(ie.doc.height,yr+Vn+50),qr(ie,{top:Rn,bottom:yr})}li<20&&(lt.wheelStartX==null?(lt.wheelStartX=Lt.scrollLeft,lt.wheelStartY=Lt.scrollTop,lt.wheelDX=Le,lt.wheelDY=Ie,setTimeout(function(){if(lt.wheelStartX!=null){var Er=Lt.scrollLeft-lt.wheelStartX,Wr=Lt.scrollTop-lt.wheelStartY,ai=Wr&&lt.wheelDY&&Wr/lt.wheelDY||Er&&lt.wheelDX&&Er/lt.wheelDX;lt.wheelStartX=lt.wheelStartY=null,ai&&(Ur=(Ur*li+ai)/(li+1),++li)}},200)):(lt.wheelDX+=Le,lt.wheelDY+=Ie))}}var to=function(ie,de){this.ranges=ie,this.primIndex=de};to.prototype.primary=function(){return this.ranges[this.primIndex]},to.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var de=0;de<this.ranges.length;de++){var Fe=this.ranges[de],Le=ie.ranges[de];if(!tn(Fe.anchor,Le.anchor)||!tn(Fe.head,Le.head))return!1}return!0},to.prototype.deepCopy=function(){for(var ie=[],de=0;de<this.ranges.length;de++)ie[de]=new oi(gn(this.ranges[de].anchor),gn(this.ranges[de].head));return new to(ie,this.primIndex)},to.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},to.prototype.contains=function(ie,de){de||(de=ie);for(var Fe=0;Fe<this.ranges.length;Fe++){var Le=this.ranges[Fe];if(Cn(de,Le.from())>=0&&Cn(ie,Le.to())<=0)return Fe}return-1};var oi=function(ie,de){this.anchor=ie,this.head=de};oi.prototype.from=function(){return vn(this.anchor,this.head)},oi.prototype.to=function(){return yn(this.anchor,this.head)},oi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function yo(ie,de,Fe){var Le=ie&&ie.options.selectionsMayTouch,Ie=de[Fe];de.sort(function(Vn,Rn){return Cn(Vn.from(),Rn.from())}),Fe=pt(de,Ie);for(var lt=1;lt<de.length;lt++){var Lt=de[lt],Rt=de[lt-1],It=Cn(Rt.to(),Lt.from());if(Le&&!Lt.empty()?It>0:It>=0){var Qt=vn(Rt.from(),Lt.from()),Pn=yn(Rt.to(),Lt.to()),nn=Rt.empty()?Lt.from()==Lt.head:Rt.from()==Rt.head;lt<=Fe&&--Fe,de.splice(--lt,2,new oi(nn?Pn:Qt,nn?Qt:Pn))}}return new to(de,Fe)}function Co(ie,de){return new to([new oi(ie,de||ie)],0)}function qo(ie){return ie.text?xn(ie.from.line+ie.text.length-1,Pt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Io(ie,de){if(Cn(ie,de.from)<0)return ie;if(Cn(ie,de.to)<=0)return qo(de);var Fe=ie.line+de.text.length-(de.to.line-de.from.line)-1,Le=ie.ch;return ie.line==de.to.line&&(Le+=qo(de).ch-de.to.ch),xn(Fe,Le)}function ka(ie,de){for(var Fe=[],Le=0;Le<ie.sel.ranges.length;Le++){var Ie=ie.sel.ranges[Le];Fe.push(new oi(Io(Ie.anchor,de),Io(Ie.head,de)))}return yo(ie.cm,Fe,ie.sel.primIndex)}function Ta(ie,de,Fe){return ie.line==de.line?xn(Fe.line,ie.ch-de.ch+Fe.ch):xn(Fe.line+(ie.line-de.line),ie.ch)}function xo(ie,de,Fe){for(var Le=[],Ie=xn(ie.first,0),lt=Ie,Lt=0;Lt<de.length;Lt++){var Rt=de[Lt],It=Ta(Rt.from,Ie,lt),Qt=Ta(qo(Rt),Ie,lt);if(Ie=Rt.to,lt=Qt,Fe=="around"){var Pn=ie.sel.ranges[Lt],nn=Cn(Pn.head,Pn.anchor)<0;Le[Lt]=new oi(nn?Qt:It,nn?It:Qt)}else Le[Lt]=new oi(It,It)}return new to(Le,ie.sel.primIndex)}function Gi(ie){ie.doc.mode=$t(ie.options,ie.doc.modeOption),Xo(ie)}function Xo(ie){ie.doc.iter(function(de){de.stateAfter&&(de.stateAfter=null),de.styles&&(de.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,nr(ie,100),ie.state.modeGen++,ie.curOp&&xa(ie)}function Na(ie,de){return de.from.ch==0&&de.to.ch==0&&Pt(de.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function wa(ie,de,Fe,Le){function Ie(Ti){return Fe?Fe[Ti]:null}function lt(Ti,Si,Hi){Do(Ti,Si,Hi,Le),kr(Ti,"change",Ti,de)}function Lt(Ti,Si){for(var Hi=[],So=Ti;So<Si;++So)Hi.push(new Qi(Qt[So],Ie(So),Le));return Hi}var Rt=de.from,It=de.to,Qt=de.text,Pn=un(ie,Rt.line),nn=un(ie,It.line),Vn=Pt(Qt),Rn=Ie(Qt.length-1),yr=It.line-Rt.line;if(de.full)ie.insert(0,Lt(0,Qt.length)),ie.remove(Qt.length,ie.size-Qt.length);else if(Na(ie,de)){var Er=Lt(0,Qt.length-1);lt(nn,nn.text,Rn),yr&&ie.remove(Rt.line,yr),Er.length&&ie.insert(Rt.line,Er)}else if(Pn==nn)if(Qt.length==1)lt(Pn,Pn.text.slice(0,Rt.ch)+Vn+Pn.text.slice(It.ch),Rn);else{var Wr=Lt(1,Qt.length-1);Wr.push(new Qi(Vn+Pn.text.slice(It.ch),Rn,Le)),lt(Pn,Pn.text.slice(0,Rt.ch)+Qt[0],Ie(0)),ie.insert(Rt.line+1,Wr)}else if(Qt.length==1)lt(Pn,Pn.text.slice(0,Rt.ch)+Qt[0]+nn.text.slice(It.ch),Ie(0)),ie.remove(Rt.line+1,yr);else{lt(Pn,Pn.text.slice(0,Rt.ch)+Qt[0],Ie(0)),lt(nn,Vn+nn.text.slice(It.ch),Rn);var ai=Lt(1,Qt.length-1);yr>1&&ie.remove(Rt.line+1,yr-1),ie.insert(Rt.line+1,ai)}kr(ie,"change",ie,de)}function is(ie,de,Fe){function Le(Ie,lt,Lt){if(Ie.linked)for(var Rt=0;Rt<Ie.linked.length;++Rt){var It=Ie.linked[Rt];if(It.doc!=lt){var Qt=Lt&&It.sharedHist;Fe&&!Qt||(de(It.doc,Qt),Le(It.doc,Ie,Qt))}}}Le(ie,null,!0)}function no(ie,de){if(de.cm)throw new Error("This document is already in use.");ie.doc=de,de.cm=ie,Zi(ie),Gi(ie),Yi(ie),ie.options.lineWrapping||lo(ie),ie.options.mode=de.modeOption,xa(ie)}function Yi(ie){(ie.doc.direction=="rtl"?$e:Ne)(ie.display.lineDiv,"CodeMirror-rtl")}function ro(ie){Sn(ie,function(){Yi(ie),xa(ie)})}function Bi(ie){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=ie||1}function Qo(ie,de){var Fe={from:gn(de.from),to:qo(de),text:bn(ie,de.from,de.to)};return Us(ie,Fe,de.from.line,de.to.line+1),is(ie,function(Le){return Us(Le,Fe,de.from.line,de.to.line+1)},!0),Fe}function Ii(ie){for(;ie.length;){var de=Pt(ie);if(de.ranges)ie.pop();else break}}function vo(ie,de){if(de)return Ii(ie.done),Pt(ie.done);if(ie.done.length&&!Pt(ie.done).ranges)return Pt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),Pt(ie.done)}function Ho(ie,de,Fe,Le){var Ie=ie.history;Ie.undone.length=0;var lt=+new Date,Lt,Rt;if((Ie.lastOp==Le||Ie.lastOrigin==de.origin&&de.origin&&(de.origin.charAt(0)=="+"&&Ie.lastModTime>lt-(ie.cm?ie.cm.options.historyEventDelay:500)||de.origin.charAt(0)=="*"))&&(Lt=vo(Ie,Ie.lastOp==Le)))Rt=Pt(Lt.changes),Cn(de.from,de.to)==0&&Cn(de.from,Rt.to)==0?Rt.to=qo(de):Lt.changes.push(Qo(ie,de));else{var It=Pt(Ie.done);for((!It||!It.ranges)&&ls(ie.sel,Ie.done),Lt={changes:[Qo(ie,de)],generation:Ie.generation},Ie.done.push(Lt);Ie.done.length>Ie.undoDepth;)Ie.done.shift(),Ie.done[0].ranges||Ie.done.shift()}Ie.done.push(Fe),Ie.generation=++Ie.maxGeneration,Ie.lastModTime=Ie.lastSelTime=lt,Ie.lastOp=Ie.lastSelOp=Le,Ie.lastOrigin=Ie.lastSelOrigin=de.origin,Rt||Ot(ie,"historyAdded")}function Uo(ie,de,Fe,Le){var Ie=de.charAt(0);return Ie=="*"||Ie=="+"&&Fe.ranges.length==Le.ranges.length&&Fe.somethingSelected()==Le.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Cs(ie,de,Fe,Le){var Ie=ie.history,lt=Le&&Le.origin;Fe==Ie.lastSelOp||lt&&Ie.lastSelOrigin==lt&&(Ie.lastModTime==Ie.lastSelTime&&Ie.lastOrigin==lt||Uo(ie,lt,Pt(Ie.done),de))?Ie.done[Ie.done.length-1]=de:ls(de,Ie.done),Ie.lastSelTime=+new Date,Ie.lastSelOrigin=lt,Ie.lastSelOp=Fe,Le&&Le.clearRedo!==!1&&Ii(Ie.undone)}function ls(ie,de){var Fe=Pt(de);Fe&&Fe.ranges&&Fe.equals(ie)||de.push(ie)}function Us(ie,de,Fe,Le){var Ie=de["spans_"+ie.id],lt=0;ie.iter(Math.max(ie.first,Fe),Math.min(ie.first+ie.size,Le),function(Lt){Lt.markedSpans&&((Ie||(Ie=de["spans_"+ie.id]={}))[lt]=Lt.markedSpans),++lt})}function ea(ie){if(!ie)return null;for(var de,Fe=0;Fe<ie.length;++Fe)ie[Fe].marker.explicitlyCleared?de||(de=ie.slice(0,Fe)):de&&de.push(ie[Fe]);return de?de.length?de:null:ie}function Ps(ie,de){var Fe=de["spans_"+ie.id];if(!Fe)return null;for(var Le=[],Ie=0;Ie<de.text.length;++Ie)Le.push(ea(Fe[Ie]));return Le}function ts(ie,de){var Fe=Ps(ie,de),Le=jr(ie,de);if(!Fe)return Le;if(!Le)return Fe;for(var Ie=0;Ie<Fe.length;++Ie){var lt=Fe[Ie],Lt=Le[Ie];if(lt&&Lt)e:for(var Rt=0;Rt<Lt.length;++Rt){for(var It=Lt[Rt],Qt=0;Qt<lt.length;++Qt)if(lt[Qt].marker==It.marker)continue e;lt.push(It)}else Lt&&(Fe[Ie]=Lt)}return Fe}function ps(ie,de,Fe){for(var Le=[],Ie=0;Ie<ie.length;++Ie){var lt=ie[Ie];if(lt.ranges){Le.push(Fe?to.prototype.deepCopy.call(lt):lt);continue}var Lt=lt.changes,Rt=[];Le.push({changes:Rt});for(var It=0;It<Lt.length;++It){var Qt=Lt[It],Pn=void 0;if(Rt.push({from:Qt.from,to:Qt.to,text:Qt.text}),de)for(var nn in Qt)(Pn=nn.match(/^spans_(\d+)$/))&&pt(de,Number(Pn[1]))>-1&&(Pt(Rt)[nn]=Qt[nn],delete Qt[nn])}}return Le}function Ku(ie,de,Fe,Le){if(Le){var Ie=ie.anchor;if(Fe){var lt=Cn(de,Ie)<0;lt!=Cn(Fe,Ie)<0?(Ie=de,de=Fe):lt!=Cn(de,Fe)<0&&(de=Fe)}return new oi(Ie,de)}else return new oi(Fe||de,de)}function ta(ie,de,Fe,Le,Ie){Ie==null&&(Ie=ie.cm&&(ie.cm.display.shift||ie.extend)),va(ie,new to([Ku(ie.sel.primary(),de,Fe,Ie)],0),Le)}function aa(ie,de,Fe){for(var Le=[],Ie=ie.cm&&(ie.cm.display.shift||ie.extend),lt=0;lt<ie.sel.ranges.length;lt++)Le[lt]=Ku(ie.sel.ranges[lt],de[lt],null,Ie);var Lt=yo(ie.cm,Le,ie.sel.primIndex);va(ie,Lt,Fe)}function pa(ie,de,Fe,Le){var Ie=ie.sel.ranges.slice(0);Ie[de]=Fe,va(ie,yo(ie.cm,Ie,ie.sel.primIndex),Le)}function Qa(ie,de,Fe,Le){va(ie,Co(de,Fe),Le)}function gs(ie,de,Fe){var Le={ranges:de.ranges,update:function(Ie){this.ranges=[];for(var lt=0;lt<Ie.length;lt++)this.ranges[lt]=new oi(Fn(ie,Ie[lt].anchor),Fn(ie,Ie[lt].head))},origin:Fe&&Fe.origin};return Ot(ie,"beforeSelectionChange",ie,Le),ie.cm&&Ot(ie.cm,"beforeSelectionChange",ie.cm,Le),Le.ranges!=de.ranges?yo(ie.cm,Le.ranges,Le.ranges.length-1):de}function ko(ie,de,Fe){var Le=ie.history.done,Ie=Pt(Le);Ie&&Ie.ranges?(Le[Le.length-1]=de,ms(ie,de,Fe)):va(ie,de,Fe)}function va(ie,de,Fe){ms(ie,de,Fe),Cs(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,Fe)}function ms(ie,de,Fe){(on(ie,"beforeSelectionChange")||ie.cm&&on(ie.cm,"beforeSelectionChange"))&&(de=gs(ie,de,Fe));var Le=Fe&&Fe.bias||(Cn(de.primary().head,ie.sel.primary().head)<0?-1:1);pl(ie,El(ie,de,Le,!0)),!(Fe&&Fe.scroll===!1)&&ie.cm&&Sc(ie.cm)}function pl(ie,de){de.equals(ie.sel)||(ie.sel=de,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,en(ie.cm)),kr(ie,"cursorActivity",ie))}function Wl(ie){pl(ie,El(ie,ie.sel,null,!1))}function El(ie,de,Fe,Le){for(var Ie,lt=0;lt<de.ranges.length;lt++){var Lt=de.ranges[lt],Rt=de.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[lt],It=eu(ie,Lt.anchor,Rt&&Rt.anchor,Fe,Le),Qt=eu(ie,Lt.head,Rt&&Rt.head,Fe,Le);(Ie||It!=Lt.anchor||Qt!=Lt.head)&&(Ie||(Ie=de.ranges.slice(0,lt)),Ie[lt]=new oi(It,Qt))}return Ie?yo(ie.cm,Ie,de.primIndex):de}function ql(ie,de,Fe,Le,Ie){var lt=un(ie,de.line);if(lt.markedSpans)for(var Lt=0;Lt<lt.markedSpans.length;++Lt){var Rt=lt.markedSpans[Lt],It=Rt.marker,Qt="selectLeft"in It?!It.selectLeft:It.inclusiveLeft,Pn="selectRight"in It?!It.selectRight:It.inclusiveRight;if((Rt.from==null||(Qt?Rt.from<=de.ch:Rt.from<de.ch))&&(Rt.to==null||(Pn?Rt.to>=de.ch:Rt.to>de.ch))){if(Ie&&(Ot(It,"beforeCursorEnter"),It.explicitlyCleared))if(lt.markedSpans){--Lt;continue}else break;if(!It.atomic)continue;if(Fe){var nn=It.find(Le<0?1:-1),Vn=void 0;if((Le<0?Pn:Qt)&&(nn=Hl(ie,nn,-Le,nn&&nn.line==de.line?lt:null)),nn&&nn.line==de.line&&(Vn=Cn(nn,Fe))&&(Le<0?Vn<0:Vn>0))return ql(ie,nn,de,Le,Ie)}var Rn=It.find(Le<0?-1:1);return(Le<0?Qt:Pn)&&(Rn=Hl(ie,Rn,Le,Rn.line==de.line?lt:null)),Rn?ql(ie,Rn,de,Le,Ie):null}}return de}function eu(ie,de,Fe,Le,Ie){var lt=Le||1,Lt=ql(ie,de,Fe,lt,Ie)||!Ie&&ql(ie,de,Fe,lt,!0)||ql(ie,de,Fe,-lt,Ie)||!Ie&&ql(ie,de,Fe,-lt,!0);return Lt||(ie.cantEdit=!0,xn(ie.first,0))}function Hl(ie,de,Fe,Le){return Fe<0&&de.ch==0?de.line>ie.first?Fn(ie,xn(de.line-1)):null:Fe>0&&de.ch==(Le||un(ie,de.line)).text.length?de.line<ie.first+ie.size-1?xn(de.line+1,0):null:new xn(de.line,de.ch+Fe)}function ra(ie){ie.setSelection(xn(ie.firstLine(),0),xn(ie.lastLine()),mt)}function Ms(ie,de,Fe){var Le={canceled:!1,from:de.from,to:de.to,text:de.text,origin:de.origin,cancel:function(){return Le.canceled=!0}};return Fe&&(Le.update=function(Ie,lt,Lt,Rt){Ie&&(Le.from=Fn(ie,Ie)),lt&&(Le.to=Fn(ie,lt)),Lt&&(Le.text=Lt),Rt!==void 0&&(Le.origin=Rt)}),Ot(ie,"beforeChange",ie,Le),ie.cm&&Ot(ie.cm,"beforeChange",ie.cm,Le),Le.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:Le.from,to:Le.to,text:Le.text,origin:Le.origin}}function Za(ie,de,Fe){if(ie.cm){if(!ie.cm.curOp)return Wn(ie.cm,Za)(ie,de,Fe);if(ie.cm.state.suppressEdits)return}if(!((on(ie,"beforeChange")||ie.cm&&on(ie.cm,"beforeChange"))&&(de=Ms(ie,de,!0),!de))){var Le=Zr&&!Fe&&ki(ie,de.from,de.to);if(Le)for(var Ie=Le.length-1;Ie>=0;--Ie)ya(ie,{from:Le[Ie].from,to:Le[Ie].to,text:Ie?[""]:de.text,origin:de.origin});else ya(ie,de)}}function ya(ie,de){if(!(de.text.length==1&&de.text[0]==""&&Cn(de.from,de.to)==0)){var Fe=ka(ie,de);Ho(ie,de,Fe,ie.cm?ie.cm.curOp.id:NaN),tu(ie,de,Fe,jr(ie,de));var Le=[];is(ie,function(Ie,lt){!lt&&pt(Le,Ie.history)==-1&&(ba(Ie.history,de),Le.push(Ie.history)),tu(Ie,de,null,jr(Ie,de))})}}function Ul(ie,de,Fe){var Le=ie.cm&&ie.cm.state.suppressEdits;if(!(Le&&!Fe)){for(var Ie=ie.history,lt,Lt=ie.sel,Rt=de=="undo"?Ie.done:Ie.undone,It=de=="undo"?Ie.undone:Ie.done,Qt=0;Qt<Rt.length&&(lt=Rt[Qt],!(Fe?lt.ranges&&!lt.equals(ie.sel):!lt.ranges));Qt++);if(Qt!=Rt.length){for(Ie.lastOrigin=Ie.lastSelOrigin=null;;)if(lt=Rt.pop(),lt.ranges){if(ls(lt,It),Fe&&!lt.equals(ie.sel)){va(ie,lt,{clearRedo:!1});return}Lt=lt}else if(Le){Rt.push(lt);return}else break;var Pn=[];ls(Lt,It),It.push({changes:Pn,generation:Ie.generation}),Ie.generation=lt.generation||++Ie.maxGeneration;for(var nn=on(ie,"beforeChange")||ie.cm&&on(ie.cm,"beforeChange"),Vn=function(Er){var Wr=lt.changes[Er];if(Wr.origin=de,nn&&!Ms(ie,Wr,!1))return Rt.length=0,{};Pn.push(Qo(ie,Wr));var ai=Er?ka(ie,Wr):Pt(Rt);tu(ie,Wr,ai,ts(ie,Wr)),!Er&&ie.cm&&ie.cm.scrollIntoView({from:Wr.from,to:qo(Wr)});var Ti=[];is(ie,function(Si,Hi){!Hi&&pt(Ti,Si.history)==-1&&(ba(Si.history,Wr),Ti.push(Si.history)),tu(Si,Wr,null,ts(Si,Wr))})},Rn=lt.changes.length-1;Rn>=0;--Rn){var yr=Vn(Rn);if(yr)return yr.v}}}}function oc(ie,de){if(de!=0&&(ie.first+=de,ie.sel=new to(Et(ie.sel.ranges,function(Ie){return new oi(xn(Ie.anchor.line+de,Ie.anchor.ch),xn(Ie.head.line+de,Ie.head.ch))}),ie.sel.primIndex),ie.cm)){xa(ie.cm,ie.first,ie.first-de,de);for(var Fe=ie.cm.display,Le=Fe.viewFrom;Le<Fe.viewTo;Le++)Mo(ie.cm,Le,"gutter")}}function tu(ie,de,Fe,Le){if(ie.cm&&!ie.cm.curOp)return Wn(ie.cm,tu)(ie,de,Fe,Le);if(de.to.line<ie.first){oc(ie,de.text.length-1-(de.to.line-de.from.line));return}if(!(de.from.line>ie.lastLine())){if(de.from.line<ie.first){var Ie=de.text.length-1-(ie.first-de.from.line);oc(ie,Ie),de={from:xn(ie.first,0),to:xn(de.to.line+Ie,de.to.ch),text:[Pt(de.text)],origin:de.origin}}var lt=ie.lastLine();de.to.line>lt&&(de={from:de.from,to:xn(lt,un(ie,lt).text.length),text:[de.text[0]],origin:de.origin}),de.removed=bn(ie,de.from,de.to),Fe||(Fe=ka(ie,de)),ie.cm?Mu(ie.cm,de,Le):wa(ie,de,Le),ms(ie,Fe,mt),ie.cantEdit&&eu(ie,xn(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Mu(ie,de,Fe){var Le=ie.doc,Ie=ie.display,lt=de.from,Lt=de.to,Rt=!1,It=lt.line;ie.options.lineWrapping||(It=Gt(wi(un(Le,lt.line))),Le.iter(It,Lt.line+1,function(Rn){if(Rn==Ie.maxLine)return Rt=!0,!0})),Le.sel.contains(de.from,de.to)>-1&&en(ie),wa(Le,de,Fe,Ga(ie)),ie.options.lineWrapping||(Le.iter(It,lt.line+de.text.length,function(Rn){var yr=Ro(Rn);yr>Ie.maxLineLength&&(Ie.maxLine=Rn,Ie.maxLineLength=yr,Ie.maxLineChanged=!0,Rt=!1)}),Rt&&(ie.curOp.updateMaxLine=!0)),Cr(Le,lt.line),nr(ie,400);var Qt=de.text.length-(Lt.line-lt.line)-1;de.full?xa(ie):lt.line==Lt.line&&de.text.length==1&&!Na(ie.doc,de)?Mo(ie,lt.line,"text"):xa(ie,lt.line,Lt.line+1,Qt);var Pn=on(ie,"changes"),nn=on(ie,"change");if(nn||Pn){var Vn={from:lt,to:Lt,text:de.text,removed:de.removed,origin:de.origin};nn&&kr(ie,"change",ie,Vn),Pn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Vn)}ie.display.selForContextMenu=null}function Vu(ie,de,Fe,Le,Ie){var lt;Le||(Le=Fe),Cn(Le,Fe)<0&&(lt=[Le,Fe],Fe=lt[0],Le=lt[1]),typeof de=="string"&&(de=ie.splitLines(de)),Za(ie,{from:Fe,to:Le,text:de,origin:Ie})}function Al(ie,de,Fe,Le){Fe<ie.line?ie.line+=Le:de<ie.line&&(ie.line=de,ie.ch=0)}function _o(ie,de,Fe,Le){for(var Ie=0;Ie<ie.length;++Ie){var lt=ie[Ie],Lt=!0;if(lt.ranges){lt.copied||(lt=ie[Ie]=lt.deepCopy(),lt.copied=!0);for(var Rt=0;Rt<lt.ranges.length;Rt++)Al(lt.ranges[Rt].anchor,de,Fe,Le),Al(lt.ranges[Rt].head,de,Fe,Le);continue}for(var It=0;It<lt.changes.length;++It){var Qt=lt.changes[It];if(Fe<Qt.from.line)Qt.from=xn(Qt.from.line+Le,Qt.from.ch),Qt.to=xn(Qt.to.line+Le,Qt.to.ch);else if(de<=Qt.to.line){Lt=!1;break}}Lt||(ie.splice(0,Ie+1),Ie=0)}}function ba(ie,de){var Fe=de.from.line,Le=de.to.line,Ie=de.text.length-(Le-Fe)-1;_o(ie.done,Fe,Le,Ie),_o(ie.undone,Fe,Le,Ie)}function us(ie,de,Fe,Le){var Ie=de,lt=de;return typeof de=="number"?lt=un(ie,Ln(ie,de)):Ie=Gt(de),Ie==null?null:(Le(lt,Ie)&&ie.cm&&Mo(ie.cm,Ie,Fe),lt)}function Ca(ie){this.lines=ie,this.parent=null;for(var de=0,Fe=0;Fe<ie.length;++Fe)ie[Fe].parent=this,de+=ie[Fe].height;this.height=de}Ca.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,de){for(var Fe=ie,Le=ie+de;Fe<Le;++Fe){var Ie=this.lines[Fe];this.height-=Ie.height,Oo(Ie),kr(Ie,"delete")}this.lines.splice(ie,de)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,de,Fe){this.height+=Fe,this.lines=this.lines.slice(0,ie).concat(de).concat(this.lines.slice(ie));for(var Le=0;Le<de.length;++Le)de[Le].parent=this},iterN:function(ie,de,Fe){for(var Le=ie+de;ie<Le;++ie)if(Fe(this.lines[ie]))return!0}};function Vo(ie){this.children=ie;for(var de=0,Fe=0,Le=0;Le<ie.length;++Le){var Ie=ie[Le];de+=Ie.chunkSize(),Fe+=Ie.height,Ie.parent=this}this.size=de,this.height=Fe,this.parent=null}Vo.prototype={chunkSize:function(){return this.size},removeInner:function(ie,de){this.size-=de;for(var Fe=0;Fe<this.children.length;++Fe){var Le=this.children[Fe],Ie=Le.chunkSize();if(ie<Ie){var lt=Math.min(de,Ie-ie),Lt=Le.height;if(Le.removeInner(ie,lt),this.height-=Lt-Le.height,Ie==lt&&(this.children.splice(Fe--,1),Le.parent=null),(de-=lt)==0)break;ie=0}else ie-=Ie}if(this.size-de<25&&(this.children.length>1||!(this.children[0]instanceof Ca))){var Rt=[];this.collapse(Rt),this.children=[new Ca(Rt)],this.children[0].parent=this}},collapse:function(ie){for(var de=0;de<this.children.length;++de)this.children[de].collapse(ie)},insertInner:function(ie,de,Fe){this.size+=de.length,this.height+=Fe;for(var Le=0;Le<this.children.length;++Le){var Ie=this.children[Le],lt=Ie.chunkSize();if(ie<=lt){if(Ie.insertInner(ie,de,Fe),Ie.lines&&Ie.lines.length>50){for(var Lt=Ie.lines.length%25+25,Rt=Lt;Rt<Ie.lines.length;){var It=new Ca(Ie.lines.slice(Rt,Rt+=25));Ie.height-=It.height,this.children.splice(++Le,0,It),It.parent=this}Ie.lines=Ie.lines.slice(0,Lt),this.maybeSpill()}break}ie-=lt}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var de=ie.children.splice(ie.children.length-5,5),Fe=new Vo(de);if(ie.parent){ie.size-=Fe.size,ie.height-=Fe.height;var Ie=pt(ie.parent.children,ie);ie.parent.children.splice(Ie+1,0,Fe)}else{var Le=new Vo(ie.children);Le.parent=ie,ie.children=[Le,Fe],ie=Le}Fe.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,de,Fe){for(var Le=0;Le<this.children.length;++Le){var Ie=this.children[Le],lt=Ie.chunkSize();if(ie<lt){var Lt=Math.min(de,lt-ie);if(Ie.iterN(ie,Lt,Fe))return!0;if((de-=Lt)==0)break;ie=0}else ie-=lt}}};var vs=function(ie,de,Fe){if(Fe)for(var Le in Fe)Fe.hasOwnProperty(Le)&&(this[Le]=Fe[Le]);this.doc=ie,this.node=de};vs.prototype.clear=function(){var ie=this.doc.cm,de=this.line.widgets,Fe=this.line,Le=Gt(Fe);if(!(Le==null||!de)){for(var Ie=0;Ie<de.length;++Ie)de[Ie]==this&&de.splice(Ie--,1);de.length||(Fe.widgets=null);var lt=tl(this);Zn(Fe,Math.max(0,Fe.height-lt)),ie&&(Sn(ie,function(){gl(ie,Fe,-lt),Mo(ie,Le,"widget")}),kr(ie,"lineWidgetCleared",ie,this,Le))}},vs.prototype.changed=function(){var ie=this,de=this.height,Fe=this.doc.cm,Le=this.line;this.height=null;var Ie=tl(this)-de;Ie&&(qn(this.doc,Le)||Zn(Le,Le.height+Ie),Fe&&Sn(Fe,function(){Fe.curOp.forceUpdate=!0,gl(Fe,Le,Ie),kr(Fe,"lineWidgetChanged",Fe,ie,Gt(Le))}))},fn(vs);function gl(ie,de,Fe){qi(de)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&Ed(ie,Fe)}function gu(ie,de,Fe,Le){var Ie=new vs(ie,Fe,Le),lt=ie.cm;return lt&&Ie.noHScroll&&(lt.display.alignWidgets=!0),us(ie,de,"widget",function(Lt){var Rt=Lt.widgets||(Lt.widgets=[]);if(Ie.insertAt==null?Rt.push(Ie):Rt.splice(Math.min(Rt.length-1,Math.max(0,Ie.insertAt)),0,Ie),Ie.line=Lt,lt&&!qn(ie,Lt)){var It=qi(Lt)<ie.scrollTop;Zn(Lt,Lt.height+tl(Ie)),It&&Ed(lt,Ie.height),lt.curOp.forceUpdate=!0}return!0}),lt&&kr(lt,"lineWidgetAdded",lt,Ie,typeof de=="number"?de:Gt(de)),Ie}var cf=0,cn=function(ie,de){this.lines=[],this.type=de,this.doc=ie,this.id=++cf};cn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,de=ie&&!ie.curOp;if(de&&fl(ie),on(this,"clear")){var Fe=this.find();Fe&&kr(this,"clear",Fe.from,Fe.to)}for(var Le=null,Ie=null,lt=0;lt<this.lines.length;++lt){var Lt=this.lines[lt],Rt=Ri(Lt.markedSpans,this);ie&&!this.collapsed?Mo(ie,Gt(Lt),"text"):ie&&(Rt.to!=null&&(Ie=Gt(Lt)),Rt.from!=null&&(Le=Gt(Lt))),Lt.markedSpans=$r(Lt.markedSpans,Rt),Rt.from==null&&this.collapsed&&!qn(this.doc,Lt)&&ie&&Zn(Lt,Uu(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var It=0;It<this.lines.length;++It){var Qt=wi(this.lines[It]),Pn=Ro(Qt);Pn>ie.display.maxLineLength&&(ie.display.maxLine=Qt,ie.display.maxLineLength=Pn,ie.display.maxLineChanged=!0)}Le!=null&&ie&&this.collapsed&&xa(ie,Le,Ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Wl(ie.doc)),ie&&kr(ie,"markerCleared",ie,this,Le,Ie),de&&bc(ie),this.parent&&this.parent.clear()}},cn.prototype.find=function(ie,de){ie==null&&this.type=="bookmark"&&(ie=1);for(var Fe,Le,Ie=0;Ie<this.lines.length;++Ie){var lt=this.lines[Ie],Lt=Ri(lt.markedSpans,this);if(Lt.from!=null&&(Fe=xn(de?lt:Gt(lt),Lt.from),ie==-1))return Fe;if(Lt.to!=null&&(Le=xn(de?lt:Gt(lt),Lt.to),ie==1))return Le}return Fe&&{from:Fe,to:Le}},cn.prototype.changed=function(){var ie=this,de=this.find(-1,!0),Fe=this,Le=this.doc.cm;!de||!Le||Sn(Le,function(){var Ie=de.line,lt=Gt(de.line),Lt=vc(Le,lt);if(Lt&&(As(Lt),Le.curOp.selectionChanged=Le.curOp.forceUpdate=!0),Le.curOp.updateMaxLine=!0,!qn(Fe.doc,Ie)&&Fe.height!=null){var Rt=Fe.height;Fe.height=null;var It=tl(Fe)-Rt;It&&Zn(Ie,Ie.height+It)}kr(Le,"markerChanged",Le,ie)})},cn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var de=this.doc.cm.curOp;(!de.maybeHiddenMarkers||pt(de.maybeHiddenMarkers,this)==-1)&&(de.maybeUnhiddenMarkers||(de.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},cn.prototype.detachLine=function(ie){if(this.lines.splice(pt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var de=this.doc.cm.curOp;(de.maybeHiddenMarkers||(de.maybeHiddenMarkers=[])).push(this)}},fn(cn);function Cc(ie,de,Fe,Le,Ie){if(Le&&Le.shared)return hf(ie,de,Fe,Le,Ie);if(ie.cm&&!ie.cm.curOp)return Wn(ie.cm,Cc)(ie,de,Fe,Le,Ie);var lt=new cn(ie,Ie),Lt=Cn(de,Fe);if(Le&&yt(Le,lt,!1),Lt>0||Lt==0&&lt.clearWhenEmpty!==!1)return lt;if(lt.replacedWith&&(lt.collapsed=!0,lt.widgetNode=Be("span",[lt.replacedWith],"CodeMirror-widget"),Le.handleMouseEvents||lt.widgetNode.setAttribute("cm-ignore-events","true"),Le.insertLeft&&(lt.widgetNode.insertLeft=!0)),lt.collapsed){if(Fi(ie,de.line,de,Fe,lt)||de.line!=Fe.line&&Fi(ie,Fe.line,de,Fe,lt))throw new Error("Inserting collapsed marker partially overlapping an existing one");kn()}lt.addToHistory&&Ho(ie,{from:de,to:Fe,origin:"markText"},ie.sel,NaN);var Rt=de.line,It=ie.cm,Qt;if(ie.iter(Rt,Fe.line+1,function(nn){It&&lt.collapsed&&!It.options.lineWrapping&&wi(nn)==It.display.maxLine&&(Qt=!0),lt.collapsed&&Rt!=de.line&&Zn(nn,0),Xi(nn,new ci(lt,Rt==de.line?de.ch:null,Rt==Fe.line?Fe.ch:null)),++Rt}),lt.collapsed&&ie.iter(de.line,Fe.line+1,function(nn){qn(ie,nn)&&Zn(nn,0)}),lt.clearOnEnter&&At(lt,"beforeCursorEnter",function(){return lt.clear()}),lt.readOnly&&(Ei(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),lt.collapsed&&(lt.id=++cf,lt.atomic=!0),It){if(Qt&&(It.curOp.updateMaxLine=!0),lt.collapsed)xa(It,de.line,Fe.line+1);else if(lt.className||lt.startStyle||lt.endStyle||lt.css||lt.attributes||lt.title)for(var Pn=de.line;Pn<=Fe.line;Pn++)Mo(It,Pn,"text");lt.atomic&&Wl(It.doc),kr(It,"markerAdded",It,lt)}return lt}var Xu=function(ie,de){this.markers=ie,this.primary=de;for(var Fe=0;Fe<ie.length;++Fe)ie[Fe].parent=this};Xu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();kr(this,"clear")}},Xu.prototype.find=function(ie,de){return this.primary.find(ie,de)},fn(Xu);function hf(ie,de,Fe,Le,Ie){Le=yt(Le),Le.shared=!1;var lt=[Cc(ie,de,Fe,Le,Ie)],Lt=lt[0],Rt=Le.widgetNode;return is(ie,function(It){Rt&&(Le.widgetNode=Rt.cloneNode(!0)),lt.push(Cc(It,Fn(It,de),Fn(It,Fe),Le,Ie));for(var Qt=0;Qt<It.linked.length;++Qt)if(It.linked[Qt].isParent)return;Lt=Pt(lt)}),new Xu(lt,Lt)}function gh(ie){return ie.findMarks(xn(ie.first,0),ie.clipPos(xn(ie.lastLine())),function(de){return de.parent})}function Qc(ie,de){for(var Fe=0;Fe<de.length;Fe++){var Le=de[Fe],Ie=Le.find(),lt=ie.clipPos(Ie.from),Lt=ie.clipPos(Ie.to);if(Cn(lt,Lt)){var Rt=Cc(ie,lt,Lt,Le.primary,Le.primary.type);Le.markers.push(Rt),Rt.parent=Le}}}function Md(ie){for(var de=function(Le){var Ie=ie[Le],lt=[Ie.primary.doc];is(Ie.primary.doc,function(It){return lt.push(It)});for(var Lt=0;Lt<Ie.markers.length;Lt++){var Rt=Ie.markers[Lt];pt(lt,Rt.doc)==-1&&(Rt.parent=null,Ie.markers.splice(Lt--,1))}},Fe=0;Fe<ie.length;Fe++)de(Fe)}var Vp=0,Ls=function(ie,de,Fe,Le,Ie){if(!(this instanceof Ls))return new Ls(ie,de,Fe,Le,Ie);Fe==null&&(Fe=0),Vo.call(this,[new Ca([new Qi("",null)])]),this.first=Fe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=Fe;var lt=xn(Fe,0);this.sel=Co(lt),this.history=new Bi(null),this.id=++Vp,this.modeOption=de,this.lineSep=Le,this.direction=Ie=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),wa(this,{from:lt,to:lt,text:ie}),va(this,Co(lt),mt)};Ls.prototype=nt(Vo.prototype,{constructor:Ls,iter:function(ie,de,Fe){Fe?this.iterN(ie-this.first,de-ie,Fe):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,de){for(var Fe=0,Le=0;Le<de.length;++Le)Fe+=de[Le].height;this.insertInner(ie-this.first,de,Fe)},remove:function(ie,de){this.removeInner(ie-this.first,de)},getValue:function(ie){var de=On(this,this.first,this.first+this.size);return ie===!1?de:de.join(ie||this.lineSeparator())},setValue:In(function(ie){var de=xn(this.first,0),Fe=this.first+this.size-1;Za(this,{from:de,to:xn(Fe,un(this,Fe).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Yc(this.cm,0,0),va(this,Co(de),mt)}),replaceRange:function(ie,de,Fe,Le){de=Fn(this,de),Fe=Fe?Fn(this,Fe):de,Vu(this,ie,de,Fe,Le)},getRange:function(ie,de,Fe){var Le=bn(this,Fn(this,ie),Fn(this,de));return Fe===!1?Le:Le.join(Fe||this.lineSeparator())},getLine:function(ie){var de=this.getLineHandle(ie);return de&&de.text},getLineHandle:function(ie){if(Kn(this,ie))return un(this,ie)},getLineNumber:function(ie){return Gt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=un(this,ie)),wi(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Fn(this,ie)},getCursor:function(ie){var de=this.sel.primary(),Fe;return ie==null||ie=="head"?Fe=de.head:ie=="anchor"?Fe=de.anchor:ie=="end"||ie=="to"||ie===!1?Fe=de.to():Fe=de.from(),Fe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:In(function(ie,de,Fe){Qa(this,Fn(this,typeof ie=="number"?xn(ie,de||0):ie),null,Fe)}),setSelection:In(function(ie,de,Fe){Qa(this,Fn(this,ie),Fn(this,de||ie),Fe)}),extendSelection:In(function(ie,de,Fe){ta(this,Fn(this,ie),de&&Fn(this,de),Fe)}),extendSelections:In(function(ie,de){aa(this,Hn(this,ie),de)}),extendSelectionsBy:In(function(ie,de){var Fe=Et(this.sel.ranges,ie);aa(this,Hn(this,Fe),de)}),setSelections:In(function(ie,de,Fe){if(ie.length){for(var Le=[],Ie=0;Ie<ie.length;Ie++)Le[Ie]=new oi(Fn(this,ie[Ie].anchor),Fn(this,ie[Ie].head));de==null&&(de=Math.min(ie.length-1,this.sel.primIndex)),va(this,yo(this.cm,Le,de),Fe)}}),addSelection:In(function(ie,de,Fe){var Le=this.sel.ranges.slice(0);Le.push(new oi(Fn(this,ie),Fn(this,de||ie))),va(this,yo(this.cm,Le,Le.length-1),Fe)}),getSelection:function(ie){for(var de=this.sel.ranges,Fe,Le=0;Le<de.length;Le++){var Ie=bn(this,de[Le].from(),de[Le].to());Fe=Fe?Fe.concat(Ie):Ie}return ie===!1?Fe:Fe.join(ie||this.lineSeparator())},getSelections:function(ie){for(var de=[],Fe=this.sel.ranges,Le=0;Le<Fe.length;Le++){var Ie=bn(this,Fe[Le].from(),Fe[Le].to());ie!==!1&&(Ie=Ie.join(ie||this.lineSeparator())),de[Le]=Ie}return de},replaceSelection:function(ie,de,Fe){for(var Le=[],Ie=0;Ie<this.sel.ranges.length;Ie++)Le[Ie]=ie;this.replaceSelections(Le,de,Fe||"+input")},replaceSelections:In(function(ie,de,Fe){for(var Le=[],Ie=this.sel,lt=0;lt<Ie.ranges.length;lt++){var Lt=Ie.ranges[lt];Le[lt]={from:Lt.from(),to:Lt.to(),text:this.splitLines(ie[lt]),origin:Fe}}for(var Rt=de&&de!="end"&&xo(this,Le,de),It=Le.length-1;It>=0;It--)Za(this,Le[It]);Rt?ko(this,Rt):this.cm&&Sc(this.cm)}),undo:In(function(){Ul(this,"undo")}),redo:In(function(){Ul(this,"redo")}),undoSelection:In(function(){Ul(this,"undo",!0)}),redoSelection:In(function(){Ul(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,de=0,Fe=0,Le=0;Le<ie.done.length;Le++)ie.done[Le].ranges||++de;for(var Ie=0;Ie<ie.undone.length;Ie++)ie.undone[Ie].ranges||++Fe;return{undo:de,redo:Fe}},clearHistory:function(){var ie=this;this.history=new Bi(this.history.maxGeneration),is(this,function(de){return de.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:ps(this.history.done),undone:ps(this.history.undone)}},setHistory:function(ie){var de=this.history=new Bi(this.history.maxGeneration);de.done=ps(ie.done.slice(0),null,!0),de.undone=ps(ie.undone.slice(0),null,!0)},setGutterMarker:In(function(ie,de,Fe){return us(this,ie,"gutter",function(Le){var Ie=Le.gutterMarkers||(Le.gutterMarkers={});return Ie[de]=Fe,!Fe&&rt(Ie)&&(Le.gutterMarkers=null),!0})}),clearGutter:In(function(ie){var de=this;this.iter(function(Fe){Fe.gutterMarkers&&Fe.gutterMarkers[ie]&&us(de,Fe,"gutter",function(){return Fe.gutterMarkers[ie]=null,rt(Fe.gutterMarkers)&&(Fe.gutterMarkers=null),!0})})}),lineInfo:function(ie){var de;if(typeof ie=="number"){if(!Kn(this,ie)||(de=ie,ie=un(this,ie),!ie))return null}else if(de=Gt(ie),de==null)return null;return{line:de,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:In(function(ie,de,Fe){return us(this,ie,de=="gutter"?"gutter":"class",function(Le){var Ie=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass";if(!Le[Ie])Le[Ie]=Fe;else{if(we(Fe).test(Le[Ie]))return!1;Le[Ie]+=" "+Fe}return!0})}),removeLineClass:In(function(ie,de,Fe){return us(this,ie,de=="gutter"?"gutter":"class",function(Le){var Ie=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass",lt=Le[Ie];if(lt)if(Fe==null)Le[Ie]=null;else{var Lt=lt.match(we(Fe));if(!Lt)return!1;var Rt=Lt.index+Lt[0].length;Le[Ie]=lt.slice(0,Lt.index)+(!Lt.index||Rt==lt.length?"":" ")+lt.slice(Rt)||null}else return!1;return!0})}),addLineWidget:In(function(ie,de,Fe){return gu(this,ie,de,Fe)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,de,Fe){return Cc(this,Fn(this,ie),Fn(this,de),Fe,Fe&&Fe.type||"range")},setBookmark:function(ie,de){var Fe={replacedWith:de&&(de.nodeType==null?de.widget:de),insertLeft:de&&de.insertLeft,clearWhenEmpty:!1,shared:de&&de.shared,handleMouseEvents:de&&de.handleMouseEvents};return ie=Fn(this,ie),Cc(this,ie,ie,Fe,"bookmark")},findMarksAt:function(ie){ie=Fn(this,ie);var de=[],Fe=un(this,ie.line).markedSpans;if(Fe)for(var Le=0;Le<Fe.length;++Le){var Ie=Fe[Le];(Ie.from==null||Ie.from<=ie.ch)&&(Ie.to==null||Ie.to>=ie.ch)&&de.push(Ie.marker.parent||Ie.marker)}return de},findMarks:function(ie,de,Fe){ie=Fn(this,ie),de=Fn(this,de);var Le=[],Ie=ie.line;return this.iter(ie.line,de.line+1,function(lt){var Lt=lt.markedSpans;if(Lt)for(var Rt=0;Rt<Lt.length;Rt++){var It=Lt[Rt];!(It.to!=null&&Ie==ie.line&&ie.ch>=It.to||It.from==null&&Ie!=ie.line||It.from!=null&&Ie==de.line&&It.from>=de.ch)&&(!Fe||Fe(It.marker))&&Le.push(It.marker.parent||It.marker)}++Ie}),Le},getAllMarks:function(){var ie=[];return this.iter(function(de){var Fe=de.markedSpans;if(Fe)for(var Le=0;Le<Fe.length;++Le)Fe[Le].from!=null&&ie.push(Fe[Le].marker)}),ie},posFromIndex:function(ie){var de,Fe=this.first,Le=this.lineSeparator().length;return this.iter(function(Ie){var lt=Ie.text.length+Le;if(lt>ie)return de=ie,!0;ie-=lt,++Fe}),Fn(this,xn(Fe,de))},indexFromPos:function(ie){ie=Fn(this,ie);var de=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var Fe=this.lineSeparator().length;return this.iter(this.first,ie.line,function(Le){de+=Le.text.length+Fe}),de},copy:function(ie){var de=new Ls(On(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,ie&&(de.history.undoDepth=this.history.undoDepth,de.setHistory(this.getHistory())),de},linkedDoc:function(ie){ie||(ie={});var de=this.first,Fe=this.first+this.size;ie.from!=null&&ie.from>de&&(de=ie.from),ie.to!=null&&ie.to<Fe&&(Fe=ie.to);var Le=new Ls(On(this,de,Fe),ie.mode||this.modeOption,de,this.lineSep,this.direction);return ie.sharedHist&&(Le.history=this.history),(this.linked||(this.linked=[])).push({doc:Le,sharedHist:ie.sharedHist}),Le.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],Qc(Le,gh(this)),Le},unlinkDoc:function(ie){if(ie instanceof ia&&(ie=ie.doc),this.linked)for(var de=0;de<this.linked.length;++de){var Fe=this.linked[de];if(Fe.doc==ie){this.linked.splice(de,1),ie.unlinkDoc(this),Md(gh(this));break}}if(ie.history==this.history){var Le=[ie.id];is(ie,function(Ie){return Le.push(Ie.id)},!0),ie.history=new Bi(null),ie.history.done=ps(this.history.done,Le),ie.history.undone=ps(this.history.undone,Le)}},iterLinkedDocs:function(ie){is(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Jr(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:In(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(de){return de.order=null}),this.cm&&ro(this.cm))})}),Ls.prototype.eachLine=Ls.prototype.iter;var Vh=0;function Ld(ie){var de=this;if(Yf(de),!(Vt(de,ie)||nl(de.display,ie))){jn(ie),Oe&&(Vh=+new Date);var Fe=rl(de,ie,!0),Le=ie.dataTransfer.files;if(!(!Fe||de.isReadOnly()))if(Le&&Le.length&&window.FileReader&&window.File)for(var Ie=Le.length,lt=Array(Ie),Lt=0,Rt=function(){++Lt==Ie&&Wn(de,function(){Fe=Fn(de.doc,Fe);var Rn={from:Fe,to:Fe,text:de.doc.splitLines(lt.filter(function(yr){return yr!=null}).join(de.doc.lineSeparator())),origin:"paste"};Za(de.doc,Rn),ko(de.doc,Co(Fn(de.doc,Fe),Fn(de.doc,qo(Rn))))})()},It=function(Rn,yr){if(de.options.allowDropFileTypes&&pt(de.options.allowDropFileTypes,Rn.type)==-1){Rt();return}var Er=new FileReader;Er.onerror=function(){return Rt()},Er.onload=function(){var Wr=Er.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Wr)){Rt();return}lt[yr]=Wr,Rt()},Er.readAsText(Rn)},Qt=0;Qt<Le.length;Qt++)It(Le[Qt],Qt);else{if(de.state.draggingText&&de.doc.sel.contains(Fe)>-1){de.state.draggingText(ie),setTimeout(function(){return de.display.input.focus()},20);return}try{var Pn=ie.dataTransfer.getData("Text");if(Pn){var nn;if(de.state.draggingText&&!de.state.draggingText.copy&&(nn=de.listSelections()),ms(de.doc,Co(Fe,Fe)),nn)for(var Vn=0;Vn<nn.length;++Vn)Vu(de.doc,"",nn[Vn].anchor,nn[Vn].head,"drag");de.replaceSelection(Pn,"around","paste"),de.display.input.focus()}}catch(Rn){}}}}function Xh(ie,de){if(Oe&&(!ie.state.draggingText||+new Date-Vh<100)){ur(de);return}if(!(Vt(ie,de)||nl(ie.display,de))&&(de.dataTransfer.setData("Text",ie.getSelection()),de.dataTransfer.effectAllowed="copyMove",de.dataTransfer.setDragImage&&!be)){var Fe=Me("img",null,null,"position: fixed; left: 0; top: 0;");Fe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ye&&(Fe.width=Fe.height=1,ie.display.wrapper.appendChild(Fe),Fe._top=Fe.offsetTop),de.dataTransfer.setDragImage(Fe,0,0),ye&&Fe.parentNode.removeChild(Fe)}}function df(ie,de){var Fe=rl(ie,de);if(Fe){var Le=document.createDocumentFragment();Zo(ie,Fe,Le),ie.display.dragCursor||(ie.display.dragCursor=Me("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),Te(ie.display.dragCursor,Le)}}function Yf(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function ff(ie){if(document.getElementsByClassName){for(var de=document.getElementsByClassName("CodeMirror"),Fe=[],Le=0;Le<de.length;Le++){var Ie=de[Le].CodeMirror;Ie&&Fe.push(Ie)}Fe.length&&Fe[0].operation(function(){for(var lt=0;lt<Fe.length;lt++)ie(Fe[lt])})}}var Td=!1;function Gl(){Td||(mh(),Td=!0)}function mh(){var ie;At(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,ff(pf)},100))}),At(window,"blur",function(){return ff(Xc)})}function pf(ie){var de=ie.display;de.cachedCharWidth=de.cachedTextHeight=de.cachedPaddingH=null,de.scrollbarsClipped=!1,ie.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"},Pc=0;Pc<10;Pc++)Lu[Pc+48]=Lu[Pc+96]=String(Pc);for(var vh=65;vh<=90;vh++)Lu[vh]=String.fromCharCode(vh);for(var _c=1;_c<=12;_c++)Lu[_c+111]=Lu[_c+63235]="F"+_c;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 Fd(ie){var de=ie.split(/-(?!$)/);ie=de[de.length-1];for(var Fe,Le,Ie,lt,Lt=0;Lt<de.length-1;Lt++){var Rt=de[Lt];if(/^(cmd|meta|m)$/i.test(Rt))lt=!0;else if(/^a(lt)?$/i.test(Rt))Fe=!0;else if(/^(c|ctrl|control)$/i.test(Rt))Le=!0;else if(/^s(hift)?$/i.test(Rt))Ie=!0;else throw new Error("Unrecognized modifier name: "+Rt)}return Fe&&(ie="Alt-"+ie),Le&&(ie="Ctrl-"+ie),lt&&(ie="Cmd-"+ie),Ie&&(ie="Shift-"+ie),ie}function Dd(ie){var de={};for(var Fe in ie)if(ie.hasOwnProperty(Fe)){var Le=ie[Fe];if(/^(name|fallthrough|(de|at)tach)$/.test(Fe))continue;if(Le=="..."){delete ie[Fe];continue}for(var Ie=Et(Fe.split(" "),Fd),lt=0;lt<Ie.length;lt++){var Lt=void 0,Rt=void 0;lt==Ie.length-1?(Rt=Ie.join(" "),Lt=Le):(Rt=Ie.slice(0,lt+1).join(" "),Lt="...");var It=de[Rt];if(!It)de[Rt]=Lt;else if(It!=Lt)throw new Error("Inconsistent bindings for "+Rt)}delete ie[Fe]}for(var Qt in de)ie[Qt]=de[Qt];return ie}function Zl(ie,de,Fe,Le){de=Ec(de);var Ie=de.call?de.call(ie,Le):de[ie];if(Ie===!1)return"nothing";if(Ie==="...")return"multi";if(Ie!=null&&Fe(Ie))return"handled";if(de.fallthrough){if(Object.prototype.toString.call(de.fallthrough)!="[object Array]")return Zl(ie,de.fallthrough,Fe,Le);for(var lt=0;lt<de.fallthrough.length;lt++){var Lt=Zl(ie,de.fallthrough[lt],Fe,Le);if(Lt)return Lt}}}function yh(ie){var de=typeof ie=="string"?ie:Lu[ie.keyCode];return de=="Ctrl"||de=="Alt"||de=="Shift"||de=="Mod"}function Od(ie,de,Fe){var Le=ie;return de.altKey&&Le!="Alt"&&(ie="Alt-"+ie),(pe?de.metaKey:de.ctrlKey)&&Le!="Ctrl"&&(ie="Ctrl-"+ie),(pe?de.ctrlKey:de.metaKey)&&Le!="Mod"&&(ie="Cmd-"+ie),!Fe&&de.shiftKey&&Le!="Shift"&&(ie="Shift-"+ie),ie}function kd(ie,de){if(ye&&ie.keyCode==34&&ie.char)return!1;var Fe=Lu[ie.keyCode];return Fe==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(Fe=ie.code),Od(Fe,ie,de))}function Ec(ie){return typeof ie=="string"?ml[ie]:ie}function ol(ie,de){for(var Fe=ie.doc.sel.ranges,Le=[],Ie=0;Ie<Fe.length;Ie++){for(var lt=de(Fe[Ie]);Le.length&&Cn(lt.from,Pt(Le).to)<=0;){var Lt=Le.pop();if(Cn(Lt.from,lt.from)<0){lt.from=Lt.from;break}}Le.push(lt)}Sn(ie,function(){for(var Rt=Le.length-1;Rt>=0;Rt--)Vu(ie.doc,"",Le[Rt].from,Le[Rt].to,"+delete");Sc(ie)})}function Nd(ie,de,Fe){var Le=Ve(ie.text,de+Fe,Fe);return Le<0||Le>ie.text.length?null:Le}function cs(ie,de,Fe){var Le=Nd(ie,de.ch,Fe);return Le==null?null:new xn(de.line,Le,Fe<0?"after":"before")}function na(ie,de,Fe,Le,Ie){if(ie){de.doc.direction=="rtl"&&(Ie=-Ie);var lt=dt(Fe,de.doc.direction);if(lt){var Lt=Ie<0?Pt(lt):lt[0],Rt=Ie<0==(Lt.level==1),It=Rt?"after":"before",Qt;if(Lt.level>0||de.doc.direction=="rtl"){var Pn=zu(de,Fe);Qt=Ie<0?Fe.text.length-1:0;var nn=jl(de,Pn,Qt).top;Qt=tt(function(Vn){return jl(de,Pn,Vn).top==nn},Ie<0==(Lt.level==1)?Lt.from:Lt.to-1,Qt),It=="before"&&(Qt=Nd(Fe,Qt,1))}else Qt=Ie<0?Lt.to:Lt.from;return new xn(Le,Qt,It)}}return new xn(Le,Ie<0?Fe.text.length:0,Ie<0?"before":"after")}function Fa(ie,de,Fe,Le){var Ie=dt(de,ie.doc.direction);if(!Ie)return cs(de,Fe,Le);Fe.ch>=de.text.length?(Fe.ch=de.text.length,Fe.sticky="before"):Fe.ch<=0&&(Fe.ch=0,Fe.sticky="after");var lt=De(Ie,Fe.ch,Fe.sticky),Lt=Ie[lt];if(ie.doc.direction=="ltr"&&Lt.level%2==0&&(Le>0?Lt.to>Fe.ch:Lt.from<Fe.ch))return cs(de,Fe,Le);var Rt=function(ai,Ti){return Nd(de,ai instanceof xn?ai.ch:ai,Ti)},It,Qt=function(ai){return ie.options.lineWrapping?(It=It||zu(ie,de),fh(ie,de,It,ai)):{begin:0,end:de.text.length}},Pn=Qt(Fe.sticky=="before"?Rt(Fe,-1):Fe.ch);if(ie.doc.direction=="rtl"||Lt.level==1){var nn=Lt.level==1==Le<0,Vn=Rt(Fe,nn?1:-1);if(Vn!=null&&(nn?Vn<=Lt.to&&Vn<=Pn.end:Vn>=Lt.from&&Vn>=Pn.begin)){var Rn=nn?"before":"after";return new xn(Fe.line,Vn,Rn)}}var yr=function(ai,Ti,Si){for(var Hi=function($a,Is){return Is?new xn(Fe.line,Rt($a,1),"before"):new xn(Fe.line,$a,"after")};ai>=0&&ai<Ie.length;ai+=Ti){var So=Ie[ai],vi=Ti>0==(So.level!=1),No=vi?Si.begin:Rt(Si.end,-1);if(So.from<=No&&No<So.to||(No=vi?So.from:Rt(So.to,-1),Si.begin<=No&&No<Si.end))return Hi(No,vi)}},Er=yr(lt+Le,Le,Pn);if(Er)return Er;var Wr=Le>0?Pn.end:Rt(Pn.begin,-1);return Wr!=null&&!(Le>0&&Wr==de.text.length)&&(Er=yr(Le>0?0:Ie.length-1,Le,Qt(Wr)),Er)?Er:null}var Ns={selectAll:ra,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),mt)},killLine:function(ie){return ol(ie,function(de){if(de.empty()){var Fe=un(ie.doc,de.head.line).text.length;return de.head.ch==Fe&&de.head.line<ie.lastLine()?{from:de.head,to:xn(de.head.line+1,0)}:{from:de.head,to:xn(de.head.line,Fe)}}else return{from:de.from(),to:de.to()}})},deleteLine:function(ie){return ol(ie,function(de){return{from:xn(de.from().line,0),to:Fn(ie.doc,xn(de.to().line+1,0))}})},delLineLeft:function(ie){return ol(ie,function(de){return{from:xn(de.from().line,0),to:de.from()}})},delWrappedLineLeft:function(ie){return ol(ie,function(de){var Fe=ie.charCoords(de.head,"div").top+5,Le=ie.coordsChar({left:0,top:Fe},"div");return{from:Le,to:de.from()}})},delWrappedLineRight:function(ie){return ol(ie,function(de){var Fe=ie.charCoords(de.head,"div").top+5,Le=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Fe},"div");return{from:de.from(),to:Le}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(xn(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(xn(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(de){return nu(ie,de.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(de){return Bd(ie,de.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(de){return ru(ie,de.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(de){var Fe=ie.cursorCoords(de.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Fe},"div")},St)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(de){var Fe=ie.cursorCoords(de.head,"div").top+5;return ie.coordsChar({left:0,top:Fe},"div")},St)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(de){var Fe=ie.cursorCoords(de.head,"div").top+5,Le=ie.coordsChar({left:0,top:Fe},"div");return Le.ch<ie.getLine(Le.line).search(/\S/)?Bd(ie,de.head):Le},St)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var de=[],Fe=ie.listSelections(),Le=ie.options.tabSize,Ie=0;Ie<Fe.length;Ie++){var lt=Fe[Ie].from(),Lt=_e(ie.getLine(lt.line),lt.ch,Le);de.push(Kt(Le-Lt%Le))}ie.replaceSelections(de)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return Sn(ie,function(){for(var de=ie.listSelections(),Fe=[],Le=0;Le<de.length;Le++)if(de[Le].empty()){var Ie=de[Le].head,lt=un(ie.doc,Ie.line).text;if(lt){if(Ie.ch==lt.length&&(Ie=new xn(Ie.line,Ie.ch-1)),Ie.ch>0)Ie=new xn(Ie.line,Ie.ch+1),ie.replaceRange(lt.charAt(Ie.ch-1)+lt.charAt(Ie.ch-2),xn(Ie.line,Ie.ch-2),Ie,"+transpose");else if(Ie.line>ie.doc.first){var Lt=un(ie.doc,Ie.line-1).text;Lt&&(Ie=new xn(Ie.line,1),ie.replaceRange(lt.charAt(0)+ie.doc.lineSeparator()+Lt.charAt(Lt.length-1),xn(Ie.line-1,Lt.length-1),Ie,"+transpose"))}}Fe.push(new oi(Ie,Ie))}ie.setSelections(Fe)})},newlineAndIndent:function(ie){return Sn(ie,function(){for(var de=ie.listSelections(),Fe=de.length-1;Fe>=0;Fe--)ie.replaceRange(ie.doc.lineSeparator(),de[Fe].anchor,de[Fe].head,"+input");de=ie.listSelections();for(var Le=0;Le<de.length;Le++)ie.indentLine(de[Le].from().line,null,!0);Sc(ie)})},openLine:function(ie){return ie.replaceSelection(`
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function nu(ie,de){var Fe=un(ie.doc,de),Le=wi(Fe);return Le!=Fe&&(de=Gt(Le)),na(!0,ie,Le,de,1)}function ru(ie,de){var Fe=un(ie.doc,de),Le=so(Fe);return Le!=Fe&&(de=Gt(Le)),na(!0,ie,Fe,de,-1)}function Bd(ie,de){var Fe=nu(ie,de.line),Le=un(ie.doc,Fe.line),Ie=dt(Le,ie.doc.direction);if(!Ie||Ie[0].level==0){var lt=Math.max(Fe.ch,Le.text.search(/\S/)),Lt=de.line==Fe.line&&de.ch<=lt&&de.ch;return xn(Fe.line,Lt?0:lt,Fe.sticky)}return Fe}function Ac(ie,de,Fe){if(typeof de=="string"&&(de=Ns[de],!de))return!1;ie.display.input.ensurePolled();var Le=ie.display.shift,Ie=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Fe&&(ie.display.shift=!1),Ie=de(ie)!=wt}finally{ie.display.shift=Le,ie.state.suppressEdits=!1}return Ie}function Yh(ie,de,Fe){for(var Le=0;Le<ie.state.keyMaps.length;Le++){var Ie=Zl(de,ie.state.keyMaps[Le],Fe,ie);if(Ie)return Ie}return ie.options.extraKeys&&Zl(de,ie.options.extraKeys,Fe,ie)||Zl(de,ie.options.keyMap,Fe,ie)}var mu=new st;function ac(ie,de,Fe,Le){var Ie=ie.state.keySeq;if(Ie){if(yh(de))return"handled";if(/\'$/.test(de)?ie.state.keySeq=null:mu.set(50,function(){ie.state.keySeq==Ie&&(ie.state.keySeq=null,ie.display.input.reset())}),Jf(ie,Ie+" "+de,Fe,Le))return!0}return Jf(ie,de,Fe,Le)}function Jf(ie,de,Fe,Le){var Ie=Yh(ie,de,Le);return Ie=="multi"&&(ie.state.keySeq=de),Ie=="handled"&&kr(ie,"keyHandled",ie,de,Fe),(Ie=="handled"||Ie=="multi")&&(jn(Fe),fa(ie)),!!Ie}function Qf(ie,de){var Fe=kd(de,!0);return Fe?de.shiftKey&&!ie.state.keySeq?ac(ie,"Shift-"+Fe,de,function(Le){return Ac(ie,Le,!0)})||ac(ie,Fe,de,function(Le){if(typeof Le=="string"?/^go[A-Z]/.test(Le):Le.motion)return Ac(ie,Le)}):ac(ie,Fe,de,function(Le){return Ac(ie,Le)}):!1}function _f(ie,de,Fe){return ac(ie,"'"+Fe+"'",de,function(Le){return Ac(ie,Le,!0)})}var Jh=null;function Xp(ie){var de=this;if(!(ie.target&&ie.target!=de.display.input.getField())&&(de.curOp.focus=He(),!Vt(de,ie))){Oe&&ve<11&&ie.keyCode==27&&(ie.returnValue=!1);var Fe=ie.keyCode;de.display.shift=Fe==16||ie.shiftKey;var Le=Qf(de,ie);ye&&(Jh=Le?Fe:null,!Le&&Fe==88&&!bi&&(ae?ie.metaKey:ie.ctrlKey)&&de.replaceSelection("",null,"cut")),We&&!ae&&!Le&&Fe==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),Fe==18&&!/\bCodeMirror-crosshair\b/.test(de.display.lineDiv.className)&&Yp(de)}}function Yp(ie){var de=ie.display.lineDiv;$e(de,"CodeMirror-crosshair");function Fe(Le){(Le.keyCode==18||!Le.altKey)&&(Ne(de,"CodeMirror-crosshair"),_t(document,"keyup",Fe),_t(document,"mouseover",Fe))}At(document,"keyup",Fe),At(document,"mouseover",Fe)}function Jp(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Vt(this,ie)}function sc(ie){var de=this;if(!(ie.target&&ie.target!=de.display.input.getField())&&!(nl(de.display,ie)||Vt(de,ie)||ie.ctrlKey&&!ie.altKey||ae&&ie.metaKey)){var Fe=ie.keyCode,Le=ie.charCode;if(ye&&Fe==Jh){Jh=null,jn(ie);return}if(!(ye&&(!ie.which||ie.which<10)&&Qf(de,ie))){var Ie=String.fromCharCode(Le==null?Fe:Le);Ie!="\b"&&(_f(de,ie,Ie)||de.display.input.onKeyPress(ie))}}}var om=400,Qp=function(ie,de,Fe){this.time=ie,this.pos=de,this.button=Fe};Qp.prototype.compare=function(ie,de,Fe){return this.time+om>ie&&Cn(de,this.pos)==0&&Fe==this.button};var Id,Qh;function _p(ie,de){var Fe=+new Date;return Qh&&Qh.compare(Fe,ie,de)?(Id=Qh=null,"triple"):Id&&Id.compare(Fe,ie,de)?(Qh=new Qp(Fe,ie,de),Id=null,"double"):(Id=new Qp(Fe,ie,de),Qh=null,"single")}function lc(ie){var de=this,Fe=de.display;if(!(Vt(de,ie)||Fe.activeTouch&&Fe.input.supportsTouch())){if(Fe.input.ensurePolled(),Fe.shift=ie.shiftKey,nl(Fe,ie)){ce||(Fe.scroller.draggable=!1,setTimeout(function(){return Fe.scroller.draggable=!0},100));return}if(!ep(de,ie)){var Le=rl(de,ie),Ie=Lr(ie),lt=Le?_p(Le,Ie):"single";window.focus(),Ie==1&&de.state.selectingText&&de.state.selectingText(ie),!(Le&&$p(de,Ie,Le,lt,ie))&&(Ie==1?Le?am(de,Le,lt,ie):Tr(ie)==Fe.scroller&&jn(ie):Ie==2?(Le&&ta(de.doc,Le),setTimeout(function(){return Fe.input.focus()},20)):Ie==3&&(Pe?de.display.input.onContextMenu(ie):Ja(de)))}}}function $p(ie,de,Fe,Le,Ie){var lt="Click";return Le=="double"?lt="Double"+lt:Le=="triple"&&(lt="Triple"+lt),lt=(de==1?"Left":de==2?"Middle":"Right")+lt,ac(ie,Od(lt,Ie),Ie,function(Lt){if(typeof Lt=="string"&&(Lt=Ns[Lt]),!Lt)return!1;var Rt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Rt=Lt(ie,Fe)!=wt}finally{ie.state.suppressEdits=!1}return Rt})}function $f(ie,de,Fe){var Le=ie.getOption("configureMouse"),Ie=Le?Le(ie,de,Fe):{};if(Ie.unit==null){var lt=re?Fe.shiftKey&&Fe.metaKey:Fe.altKey;Ie.unit=lt?"rectangle":de=="single"?"char":de=="double"?"word":"line"}return(Ie.extend==null||ie.doc.extend)&&(Ie.extend=ie.doc.extend||Fe.shiftKey),Ie.addNew==null&&(Ie.addNew=ae?Fe.metaKey:Fe.ctrlKey),Ie.moveOnDrag==null&&(Ie.moveOnDrag=!(ae?Fe.altKey:Fe.ctrlKey)),Ie}function am(ie,de,Fe,Le){Oe?setTimeout(ct(Oa,ie),0):ie.curOp.focus=He();var Ie=$f(ie,Fe,Le),lt=ie.doc.sel,Lt;ie.options.dragDrop&&Ar&&!ie.isReadOnly()&&Fe=="single"&&(Lt=lt.contains(de))>-1&&(Cn((Lt=lt.ranges[Lt]).from(),de)<0||de.xRel>0)&&(Cn(Lt.to(),de)>0||de.xRel<0)?qp(ie,Le,de,Ie):n0(ie,Le,de,Ie)}function qp(ie,de,Fe,Le){var Ie=ie.display,lt=!1,Lt=Wn(ie,function(Qt){ce&&(Ie.scroller.draggable=!1),ie.state.draggingText=!1,_t(Ie.wrapper.ownerDocument,"mouseup",Lt),_t(Ie.wrapper.ownerDocument,"mousemove",Rt),_t(Ie.scroller,"dragstart",It),_t(Ie.scroller,"drop",Lt),lt||(jn(Qt),Le.addNew||ta(ie.doc,Fe,null,null,Le.extend),ce&&!be||Oe&&ve==9?setTimeout(function(){Ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),Ie.input.focus()},20):Ie.input.focus())}),Rt=function(Qt){lt=lt||Math.abs(de.clientX-Qt.clientX)+Math.abs(de.clientY-Qt.clientY)>=10},It=function(){return lt=!0};ce&&(Ie.scroller.draggable=!0),ie.state.draggingText=Lt,Lt.copy=!Le.moveOnDrag,Ie.scroller.dragDrop&&Ie.scroller.dragDrop(),At(Ie.wrapper.ownerDocument,"mouseup",Lt),At(Ie.wrapper.ownerDocument,"mousemove",Rt),At(Ie.scroller,"dragstart",It),At(Ie.scroller,"drop",Lt),Ja(ie),setTimeout(function(){return Ie.input.focus()},20)}function eg(ie,de,Fe){if(Fe=="char")return new oi(de,de);if(Fe=="word")return ie.findWordAt(de);if(Fe=="line")return new oi(xn(de.line,0),Fn(ie.doc,xn(de.line+1,0)));var Le=Fe(ie,de);return new oi(Le.from,Le.to)}function n0(ie,de,Fe,Le){var Ie=ie.display,lt=ie.doc;jn(de);var Lt,Rt,It=lt.sel,Qt=It.ranges;if(Le.addNew&&!Le.extend?(Rt=lt.sel.contains(Fe),Rt>-1?Lt=Qt[Rt]:Lt=new oi(Fe,Fe)):(Lt=lt.sel.primary(),Rt=lt.sel.primIndex),Le.unit=="rectangle")Le.addNew||(Lt=new oi(Fe,Fe)),Fe=rl(ie,de,!0,!0),Rt=-1;else{var Pn=eg(ie,Fe,Le.unit);Le.extend?Lt=Ku(Lt,Pn.anchor,Pn.head,Le.extend):Lt=Pn}Le.addNew?Rt==-1?(Rt=Qt.length,va(lt,yo(ie,Qt.concat([Lt]),Rt),{scroll:!1,origin:"*mouse"})):Qt.length>1&&Qt[Rt].empty()&&Le.unit=="char"&&!Le.extend?(va(lt,yo(ie,Qt.slice(0,Rt).concat(Qt.slice(Rt+1)),0),{scroll:!1,origin:"*mouse"}),It=lt.sel):pa(lt,Rt,Lt,vt):(Rt=0,va(lt,new to([Lt],0),vt),It=lt.sel);var nn=Fe;function Vn(Si){if(Cn(nn,Si)!=0)if(nn=Si,Le.unit=="rectangle"){for(var Hi=[],So=ie.options.tabSize,vi=_e(un(lt,Fe.line).text,Fe.ch,So),No=_e(un(lt,Si.line).text,Si.ch,So),$a=Math.min(vi,No),Is=Math.max(vi,No),os=Math.min(Fe.line,Si.line),Vl=Math.min(ie.lastLine(),Math.max(Fe.line,Si.line));os<=Vl;os++){var vl=un(lt,os).text,Fs=Nt(vl,$a,So);$a==Is?Hi.push(new oi(xn(os,Fs),xn(os,Fs))):vl.length>Fs&&Hi.push(new oi(xn(os,Fs),xn(os,Nt(vl,Is,So))))}Hi.length||Hi.push(new oi(Fe,Fe)),va(lt,yo(ie,It.ranges.slice(0,Rt).concat(Hi),Rt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Si)}else{var iu=Lt,al=eg(ie,Si,Le.unit),Ds=iu.anchor,sa;Cn(al.anchor,Ds)>0?(sa=al.head,Ds=vn(iu.from(),al.anchor)):(sa=al.anchor,Ds=yn(iu.to(),al.head));var hs=It.ranges.slice(0);hs[Rt]=sm(ie,new oi(Fn(lt,Ds),sa)),va(lt,yo(ie,hs,Rt),vt)}}var Rn=Ie.wrapper.getBoundingClientRect(),yr=0;function Er(Si){var Hi=++yr,So=rl(ie,Si,!0,Le.unit=="rectangle");if(So)if(Cn(So,nn)!=0){ie.curOp.focus=He(),Vn(So);var vi=Wo(Ie,lt);(So.line>=vi.to||So.line<vi.from)&&setTimeout(Wn(ie,function(){yr==Hi&&Er(Si)}),150)}else{var No=Si.clientY<Rn.top?-20:Si.clientY>Rn.bottom?20:0;No&&setTimeout(Wn(ie,function(){yr==Hi&&(Ie.scroller.scrollTop+=No,Er(Si))}),50)}}function Wr(Si){ie.state.selectingText=!1,yr=1/0,Si&&(jn(Si),Ie.input.focus()),_t(Ie.wrapper.ownerDocument,"mousemove",ai),_t(Ie.wrapper.ownerDocument,"mouseup",Ti),lt.history.lastSelOrigin=null}var ai=Wn(ie,function(Si){Si.buttons===0||!Lr(Si)?Wr(Si):Er(Si)}),Ti=Wn(ie,Wr);ie.state.selectingText=Ti,At(Ie.wrapper.ownerDocument,"mousemove",ai),At(Ie.wrapper.ownerDocument,"mouseup",Ti)}function sm(ie,de){var Fe=de.anchor,Le=de.head,Ie=un(ie.doc,Fe.line);if(Cn(Fe,Le)==0&&Fe.sticky==Le.sticky)return de;var lt=dt(Ie);if(!lt)return de;var Lt=De(lt,Fe.ch,Fe.sticky),Rt=lt[Lt];if(Rt.from!=Fe.ch&&Rt.to!=Fe.ch)return de;var It=Lt+(Rt.from==Fe.ch==(Rt.level!=1)?0:1);if(It==0||It==lt.length)return de;var Qt;if(Le.line!=Fe.line)Qt=(Le.line-Fe.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var Pn=De(lt,Le.ch,Le.sticky),nn=Pn-Lt||(Le.ch-Fe.ch)*(Rt.level==1?-1:1);Pn==It-1||Pn==It?Qt=nn<0:Qt=nn>0}var Vn=lt[It+(Qt?-1:0)],Rn=Qt==(Vn.level==1),yr=Rn?Vn.from:Vn.to,Er=Rn?"after":"before";return Fe.ch==yr&&Fe.sticky==Er?de:new oi(new xn(Fe.line,yr,Er),Le)}function qf(ie,de,Fe,Le){var Ie,lt;if(de.touches)Ie=de.touches[0].clientX,lt=de.touches[0].clientY;else try{Ie=de.clientX,lt=de.clientY}catch(Vn){return!1}if(Ie>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;Le&&jn(de);var Lt=ie.display,Rt=Lt.lineDiv.getBoundingClientRect();if(lt>Rt.bottom||!on(ie,Fe))return tr(de);lt-=Rt.top-Lt.viewOffset;for(var It=0;It<ie.display.gutterSpecs.length;++It){var Qt=Lt.gutters.childNodes[It];if(Qt&&Qt.getBoundingClientRect().right>=Ie){var Pn=An(ie.doc,lt),nn=ie.display.gutterSpecs[It];return Ot(ie,Fe,ie,Pn,nn.className,de),tr(de)}}}function ep(ie,de){return qf(ie,de,"gutterClick",!0)}function tp(ie,de){nl(ie.display,de)||lm(ie,de)||Vt(ie,de,"contextmenu")||Pe||ie.display.input.onContextMenu(de)}function lm(ie,de){return on(ie,"gutterContextMenu")?qf(ie,de,"gutterContextMenu",!1):!1}function np(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ha(ie)}var Sh={toString:function(){return"CodeMirror.Init"}},tg={},gf={};function um(ie){var de=ie.optionHandlers;function Fe(Le,Ie,lt,Lt){ie.defaults[Le]=Ie,lt&&(de[Le]=Lt?function(Rt,It,Qt){Qt!=Sh&&lt(Rt,It,Qt)}:lt)}ie.defineOption=Fe,ie.Init=Sh,Fe("value","",function(Le,Ie){return Le.setValue(Ie)},!0),Fe("mode",null,function(Le,Ie){Le.doc.modeOption=Ie,Gi(Le)},!0),Fe("indentUnit",2,Gi,!0),Fe("indentWithTabs",!1),Fe("smartIndent",!0),Fe("tabSize",4,function(Le){Xo(Le),Ha(Le),xa(Le)},!0),Fe("lineSeparator",null,function(Le,Ie){if(Le.doc.lineSep=Ie,!!Ie){var lt=[],Lt=Le.doc.first;Le.doc.iter(function(It){for(var Qt=0;;){var Pn=It.text.indexOf(Ie,Qt);if(Pn==-1)break;Qt=Pn+Ie.length,lt.push(xn(Lt,Pn))}Lt++});for(var Rt=lt.length-1;Rt>=0;Rt--)Vu(Le.doc,Ie,lt[Rt],xn(lt[Rt].line,lt[Rt].ch+Ie.length))}}),Fe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(Le,Ie,lt){Le.state.specialChars=new RegExp(Ie.source+(Ie.test(" ")?"":"| "),"g"),lt!=Sh&&Le.refresh()}),Fe("specialCharPlaceholder",ha,function(Le){return Le.refresh()},!0),Fe("electricChars",!0),Fe("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Fe("spellcheck",!1,function(Le,Ie){return Le.getInputField().spellcheck=Ie},!0),Fe("autocorrect",!1,function(Le,Ie){return Le.getInputField().autocorrect=Ie},!0),Fe("autocapitalize",!1,function(Le,Ie){return Le.getInputField().autocapitalize=Ie},!0),Fe("rtlMoveVisually",!le),Fe("wholeLineUpdateBefore",!0),Fe("theme","default",function(Le){np(Le),ui(Le)},!0),Fe("keyMap","default",function(Le,Ie,lt){var Lt=Ec(Ie),Rt=lt!=Sh&&Ec(lt);Rt&&Rt.detach&&Rt.detach(Le,Lt),Lt.attach&&Lt.attach(Le,Rt||null)}),Fe("extraKeys",null),Fe("configureMouse",null),Fe("lineWrapping",!1,cm,!0),Fe("gutters",[],function(Le,Ie){Le.display.gutterSpecs=Di(Ie,Le.options.lineNumbers),ui(Le)},!0),Fe("fixedGutter",!0,function(Le,Ie){Le.display.gutters.style.left=Ie?ph(Le.display)+"px":"0",Le.refresh()},!0),Fe("coverGutterNextToScrollbar",!1,function(Le){return wc(Le)},!0),Fe("scrollbarStyle","native",function(Le){uf(Le),wc(Le),Le.display.scrollbars.setScrollTop(Le.doc.scrollTop),Le.display.scrollbars.setScrollLeft(Le.doc.scrollLeft)},!0),Fe("lineNumbers",!1,function(Le,Ie){Le.display.gutterSpecs=Di(Le.options.gutters,Ie),ui(Le)},!0),Fe("firstLineNumber",1,ui,!0),Fe("lineNumberFormatter",function(Le){return Le},ui,!0),Fe("showCursorWhenSelecting",!1,bs,!0),Fe("resetSelectionOnContextMenu",!0),Fe("lineWiseCopyCut",!0),Fe("pasteLinesPerSelection",!0),Fe("selectionsMayTouch",!1),Fe("readOnly",!1,function(Le,Ie){Ie=="nocursor"&&(Xc(Le),Le.display.input.blur()),Le.display.input.readOnlyChanged(Ie)}),Fe("screenReaderLabel",null,function(Le,Ie){Ie=Ie===""?null:Ie,Le.display.input.screenReaderLabelChanged(Ie)}),Fe("disableInput",!1,function(Le,Ie){Ie||Le.display.input.reset()},!0),Fe("dragDrop",!0,rp),Fe("allowDropFileTypes",null),Fe("cursorBlinkRate",530),Fe("cursorScrollMargin",0),Fe("cursorHeight",1,bs,!0),Fe("singleCursorHeightPerLine",!0,bs,!0),Fe("workTime",100),Fe("workDelay",100),Fe("flattenSpans",!0,Xo,!0),Fe("addModeClass",!1,Xo,!0),Fe("pollInterval",100),Fe("undoDepth",200,function(Le,Ie){return Le.doc.history.undoDepth=Ie}),Fe("historyEventDelay",1250),Fe("viewportMargin",10,function(Le){return Le.refresh()},!0),Fe("maxHighlightLength",1e4,Xo,!0),Fe("moveInputWithCursor",!0,function(Le,Ie){Ie||Le.display.input.resetPosition()}),Fe("tabindex",null,function(Le,Ie){return Le.display.input.getField().tabIndex=Ie||""}),Fe("autofocus",null),Fe("direction","ltr",function(Le,Ie){return Le.doc.setDirection(Ie)},!0),Fe("phrases",null)}function rp(ie,de,Fe){var Le=Fe&&Fe!=Sh;if(!de!=!Le){var Ie=ie.display.dragFunctions,lt=de?At:_t;lt(ie.display.scroller,"dragstart",Ie.start),lt(ie.display.scroller,"dragenter",Ie.enter),lt(ie.display.scroller,"dragover",Ie.over),lt(ie.display.scroller,"dragleave",Ie.leave),lt(ie.display.scroller,"drop",Ie.drop)}}function cm(ie){ie.options.lineWrapping?($e(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ne(ie.display.wrapper,"CodeMirror-wrap"),lo(ie)),Zi(ie),xa(ie),Ha(ie),setTimeout(function(){return wc(ie)},100)}function ia(ie,de){var Fe=this;if(!(this instanceof ia))return new ia(ie,de);this.options=de=de?yt(de):{},yt(tg,de,!1);var Le=de.value;typeof Le=="string"?Le=new Ls(Le,de.mode,null,de.lineSeparator,de.direction):de.mode&&(Le.modeOption=de.mode),this.doc=Le;var Ie=new ia.inputStyles[de.inputStyle](this),lt=this.display=new Ai(ie,Le,Ie,de);lt.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 st,keySeq:null,specialChars:null},de.autofocus&&!ee&&lt.input.focus(),Oe&&ve<11&&setTimeout(function(){return Fe.display.input.reset(!0)},20),jd(this),Gl(),fl(this),this.curOp.forceUpdate=!0,no(this,Le),de.autofocus&&!ee||this.hasFocus()?setTimeout(function(){Fe.hasFocus()&&!Fe.state.focused&&Yo(Fe)},20):Xc(this);for(var Lt in gf)gf.hasOwnProperty(Lt)&&gf[Lt](this,de[Lt],Sh);ii(this),de.finishInit&&de.finishInit(this);for(var Rt=0;Rt<_h.length;++Rt)_h[Rt](this);bc(this),ce&&de.lineWrapping&&getComputedStyle(lt.lineDiv).textRendering=="optimizelegibility"&&(lt.lineDiv.style.textRendering="auto")}ia.defaults=tg,ia.optionHandlers=gf;function jd(ie){var de=ie.display;At(de.scroller,"mousedown",Wn(ie,lc)),Oe&&ve<11?At(de.scroller,"dblclick",Wn(ie,function(It){if(!Vt(ie,It)){var Qt=rl(ie,It);if(!(!Qt||ep(ie,It)||nl(ie.display,It))){jn(It);var Pn=ie.findWordAt(Qt);ta(ie.doc,Pn.anchor,Pn.head)}}})):At(de.scroller,"dblclick",function(It){return Vt(ie,It)||jn(It)}),At(de.scroller,"contextmenu",function(It){return tp(ie,It)}),At(de.input.getField(),"contextmenu",function(It){de.scroller.contains(It.target)||tp(ie,It)});var Fe,Le={end:0};function Ie(){de.activeTouch&&(Fe=setTimeout(function(){return de.activeTouch=null},1e3),Le=de.activeTouch,Le.end=+new Date)}function lt(It){if(It.touches.length!=1)return!1;var Qt=It.touches[0];return Qt.radiusX<=1&&Qt.radiusY<=1}function Lt(It,Qt){if(Qt.left==null)return!0;var Pn=Qt.left-It.left,nn=Qt.top-It.top;return Pn*Pn+nn*nn>20*20}At(de.scroller,"touchstart",function(It){if(!Vt(ie,It)&&!lt(It)&&!ep(ie,It)){de.input.ensurePolled(),clearTimeout(Fe);var Qt=+new Date;de.activeTouch={start:Qt,moved:!1,prev:Qt-Le.end<=300?Le:null},It.touches.length==1&&(de.activeTouch.left=It.touches[0].pageX,de.activeTouch.top=It.touches[0].pageY)}}),At(de.scroller,"touchmove",function(){de.activeTouch&&(de.activeTouch.moved=!0)}),At(de.scroller,"touchend",function(It){var Qt=de.activeTouch;if(Qt&&!nl(de,It)&&Qt.left!=null&&!Qt.moved&&new Date-Qt.start<300){var Pn=ie.coordsChar(de.activeTouch,"page"),nn;!Qt.prev||Lt(Qt,Qt.prev)?nn=new oi(Pn,Pn):!Qt.prev.prev||Lt(Qt,Qt.prev.prev)?nn=ie.findWordAt(Pn):nn=new oi(xn(Pn.line,0),Fn(ie.doc,xn(Pn.line+1,0))),ie.setSelection(nn.anchor,nn.head),ie.focus(),jn(It)}Ie()}),At(de.scroller,"touchcancel",Ie),At(de.scroller,"scroll",function(){de.scroller.clientHeight&&(Jc(ie,de.scroller.scrollTop),Zu(ie,de.scroller.scrollLeft,!0),Ot(ie,"scroll",ie))}),At(de.scroller,"mousewheel",function(It){return $i(ie,It)}),At(de.scroller,"DOMMouseScroll",function(It){return $i(ie,It)}),At(de.wrapper,"scroll",function(){return de.wrapper.scrollTop=de.wrapper.scrollLeft=0}),de.dragFunctions={enter:function(It){Vt(ie,It)||ur(It)},over:function(It){Vt(ie,It)||(df(ie,It),ur(It))},start:function(It){return Xh(ie,It)},drop:Wn(ie,Ld),leave:function(It){Vt(ie,It)||Yf(ie)}};var Rt=de.input.getField();At(Rt,"keyup",function(It){return Jp.call(ie,It)}),At(Rt,"keydown",Wn(ie,Xp)),At(Rt,"keypress",Wn(ie,sc)),At(Rt,"focus",function(It){return Yo(ie,It)}),At(Rt,"blur",function(It){return Xc(ie,It)})}var _h=[];ia.defineInitHook=function(ie){return _h.push(ie)};function Bs(ie,de,Fe,Le){var Ie=ie.doc,lt;Fe==null&&(Fe="add"),Fe=="smart"&&(Ie.mode.indent?lt=Qr(ie,de).state:Fe="prev");var Lt=ie.options.tabSize,Rt=un(Ie,de),It=_e(Rt.text,null,Lt);Rt.stateAfter&&(Rt.stateAfter=null);var Qt=Rt.text.match(/^\s*/)[0],Pn;if(!Le&&!/\S/.test(Rt.text))Pn=0,Fe="not";else if(Fe=="smart"&&(Pn=Ie.mode.indent(lt,Rt.text.slice(Qt.length),Rt.text),Pn==wt||Pn>150)){if(!Le)return;Fe="prev"}Fe=="prev"?de>Ie.first?Pn=_e(un(Ie,de-1).text,null,Lt):Pn=0:Fe=="add"?Pn=It+ie.options.indentUnit:Fe=="subtract"?Pn=It-ie.options.indentUnit:typeof Fe=="number"&&(Pn=It+Fe),Pn=Math.max(0,Pn);var nn="",Vn=0;if(ie.options.indentWithTabs)for(var Rn=Math.floor(Pn/Lt);Rn;--Rn)Vn+=Lt,nn+=" ";if(Vn<Pn&&(nn+=Kt(Pn-Vn)),nn!=Qt)return Vu(Ie,nn,xn(de,0),xn(de,Qt.length),"+input"),Rt.stateAfter=null,!0;for(var yr=0;yr<Ie.sel.ranges.length;yr++){var Er=Ie.sel.ranges[yr];if(Er.head.line==de&&Er.head.ch<Qt.length){var Wr=xn(de,Qt.length);pa(Ie,yr,new oi(Wr,Wr));break}}}var Kl=null;function $h(ie){Kl=ie}function mf(ie,de,Fe,Le,Ie){var lt=ie.doc;ie.display.shift=!1,Le||(Le=lt.sel);var Lt=+new Date-200,Rt=Ie=="paste"||ie.state.pasteIncoming>Lt,It=Jr(de),Qt=null;if(Rt&&Le.ranges.length>1)if(Kl&&Kl.text.join(`
`)==de){if(Le.ranges.length%Kl.text.length==0){Qt=[];for(var Pn=0;Pn<Kl.text.length;Pn++)Qt.push(lt.splitLines(Kl.text[Pn]))}}else It.length==Le.ranges.length&&ie.options.pasteLinesPerSelection&&(Qt=Et(It,function(ai){return[ai]}));for(var nn=ie.curOp.updateInput,Vn=Le.ranges.length-1;Vn>=0;Vn--){var Rn=Le.ranges[Vn],yr=Rn.from(),Er=Rn.to();Rn.empty()&&(Fe&&Fe>0?yr=xn(yr.line,yr.ch-Fe):ie.state.overwrite&&!Rt?Er=xn(Er.line,Math.min(un(lt,Er.line).text.length,Er.ch+Pt(It).length)):Rt&&Kl&&Kl.lineWise&&Kl.text.join(`
`)==It.join(`
`)&&(yr=Er=xn(yr.line,0)));var Wr={from:yr,to:Er,text:Qt?Qt[Vn%Qt.length]:It,origin:Ie||(Rt?"paste":ie.state.cutIncoming>Lt?"cut":"+input")};Za(ie.doc,Wr),kr(ie,"inputRead",ie,Wr)}de&&!Rt&&rg(ie,de),Sc(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=nn),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function ng(ie,de){var Fe=ie.clipboardData&&ie.clipboardData.getData("Text");if(Fe)return ie.preventDefault(),!de.isReadOnly()&&!de.options.disableInput&&Sn(de,function(){return mf(de,Fe,0,null,"paste")}),!0}function rg(ie,de){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var Fe=ie.doc.sel,Le=Fe.ranges.length-1;Le>=0;Le--){var Ie=Fe.ranges[Le];if(!(Ie.head.ch>100||Le&&Fe.ranges[Le-1].head.line==Ie.head.line)){var lt=ie.getModeAt(Ie.head),Lt=!1;if(lt.electricChars){for(var Rt=0;Rt<lt.electricChars.length;Rt++)if(de.indexOf(lt.electricChars.charAt(Rt))>-1){Lt=Bs(ie,Ie.head.line,"smart");break}}else lt.electricInput&&lt.electricInput.test(un(ie.doc,Ie.head.line).text.slice(0,Ie.head.ch))&&(Lt=Bs(ie,Ie.head.line,"smart"));Lt&&kr(ie,"electricInput",ie,Ie.head.line)}}}function ig(ie){for(var de=[],Fe=[],Le=0;Le<ie.doc.sel.ranges.length;Le++){var Ie=ie.doc.sel.ranges[Le].head.line,lt={anchor:xn(Ie,0),head:xn(Ie+1,0)};Fe.push(lt),de.push(ie.getRange(lt.anchor,lt.head))}return{text:de,ranges:Fe}}function og(ie,de,Fe,Le){ie.setAttribute("autocorrect",Fe?"":"off"),ie.setAttribute("autocapitalize",Le?"":"off"),ie.setAttribute("spellcheck",!!de)}function ag(){var ie=Me("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),de=Me("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ce?ie.style.width="1000px":ie.setAttribute("wrap","off"),fe&&(ie.style.border="1px solid black"),og(ie),de}function xh(ie){var de=ie.optionHandlers,Fe=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(Le,Ie){var lt=this.options,Lt=lt[Le];lt[Le]==Ie&&Le!="mode"||(lt[Le]=Ie,de.hasOwnProperty(Le)&&Wn(this,de[Le])(this,Ie,Lt),Ot(this,"optionChange",this,Le))},getOption:function(Le){return this.options[Le]},getDoc:function(){return this.doc},addKeyMap:function(Le,Ie){this.state.keyMaps[Ie?"push":"unshift"](Ec(Le))},removeKeyMap:function(Le){for(var Ie=this.state.keyMaps,lt=0;lt<Ie.length;++lt)if(Ie[lt]==Le||Ie[lt].name==Le)return Ie.splice(lt,1),!0},addOverlay:Un(function(Le,Ie){var lt=Le.token?Le:ie.getMode(this.options,Le);if(lt.startState)throw new Error("Overlays may not be stateful.");at(this.state.overlays,{mode:lt,modeSpec:Le,opaque:Ie&&Ie.opaque,priority:Ie&&Ie.priority||0},function(Lt){return Lt.priority}),this.state.modeGen++,xa(this)}),removeOverlay:Un(function(Le){for(var Ie=this.state.overlays,lt=0;lt<Ie.length;++lt){var Lt=Ie[lt].modeSpec;if(Lt==Le||typeof Le=="string"&&Lt.name==Le){Ie.splice(lt,1),this.state.modeGen++,xa(this);return}}}),indentLine:Un(function(Le,Ie,lt){typeof Ie!="string"&&typeof Ie!="number"&&(Ie==null?Ie=this.options.smartIndent?"smart":"prev":Ie=Ie?"add":"subtract"),Kn(this.doc,Le)&&Bs(this,Le,Ie,lt)}),indentSelection:Un(function(Le){for(var Ie=this.doc.sel.ranges,lt=-1,Lt=0;Lt<Ie.length;Lt++){var Rt=Ie[Lt];if(Rt.empty())Rt.head.line>lt&&(Bs(this,Rt.head.line,Le,!0),lt=Rt.head.line,Lt==this.doc.sel.primIndex&&Sc(this));else{var It=Rt.from(),Qt=Rt.to(),Pn=Math.max(lt,It.line);lt=Math.min(this.lastLine(),Qt.line-(Qt.ch?0:1))+1;for(var nn=Pn;nn<lt;++nn)Bs(this,nn,Le);var Vn=this.doc.sel.ranges;It.ch==0&&Ie.length==Vn.length&&Vn[Lt].from().ch>0&&pa(this.doc,Lt,new oi(It,Vn[Lt].to()),mt)}}}),getTokenAt:function(Le,Ie){return fr(this,Le,Ie)},getLineTokens:function(Le,Ie){return fr(this,xn(Le),Ie,!0)},getTokenTypeAt:function(Le){Le=Fn(this.doc,Le);var Ie=zr(this,un(this.doc,Le.line)),lt=0,Lt=(Ie.length-1)/2,Rt=Le.ch,It;if(Rt==0)It=Ie[2];else for(;;){var Qt=lt+Lt>>1;if((Qt?Ie[Qt*2-1]:0)>=Rt)Lt=Qt;else if(Ie[Qt*2+1]<Rt)lt=Qt+1;else{It=Ie[Qt*2+2];break}}var Pn=It?It.indexOf("overlay "):-1;return Pn<0?It:Pn==0?null:It.slice(0,Pn-1)},getModeAt:function(Le){var Ie=this.doc.mode;return Ie.innerMode?ie.innerMode(Ie,this.getTokenAt(Le).state).mode:Ie},getHelper:function(Le,Ie){return this.getHelpers(Le,Ie)[0]},getHelpers:function(Le,Ie){var lt=[];if(!Fe.hasOwnProperty(Ie))return lt;var Lt=Fe[Ie],Rt=this.getModeAt(Le);if(typeof Rt[Ie]=="string")Lt[Rt[Ie]]&&lt.push(Lt[Rt[Ie]]);else if(Rt[Ie])for(var It=0;It<Rt[Ie].length;It++){var Qt=Lt[Rt[Ie][It]];Qt&&lt.push(Qt)}else Rt.helperType&&Lt[Rt.helperType]?lt.push(Lt[Rt.helperType]):Lt[Rt.name]&&lt.push(Lt[Rt.name]);for(var Pn=0;Pn<Lt._global.length;Pn++){var nn=Lt._global[Pn];nn.pred(Rt,this)&&pt(lt,nn.val)==-1&&lt.push(nn.val)}return lt},getStateAfter:function(Le,Ie){var lt=this.doc;return Le=Ln(lt,Le==null?lt.first+lt.size-1:Le),Qr(this,Le+1,Ie).state},cursorCoords:function(Le,Ie){var lt,Lt=this.doc.sel.primary();return Le==null?lt=Lt.head:typeof Le=="object"?lt=Fn(this.doc,Le):lt=Le?Lt.from():Lt.to(),Da(this,lt,Ie||"page")},charCoords:function(Le,Ie){return Rl(this,Fn(this.doc,Le),Ie||"page")},coordsChar:function(Le,Ie){return Le=Wu(this,Le,Ie||"page"),Kc(this,Le.left,Le.top)},lineAtHeight:function(Le,Ie){return Le=Wu(this,{top:Le,left:0},Ie||"page").top,An(this.doc,Le+this.display.viewOffset)},heightAtLine:function(Le,Ie,lt){var Lt=!1,Rt;if(typeof Le=="number"){var It=this.doc.first+this.doc.size-1;Le<this.doc.first?Le=this.doc.first:Le>It&&(Le=It,Lt=!0),Rt=un(this.doc,Le)}else Rt=Le;return Ua(this,Rt,{top:0,left:0},Ie||"page",lt||Lt).top+(Lt?this.doc.height-qi(Rt):0)},defaultTextHeight:function(){return Uu(this.display)},defaultCharWidth:function(){return ic(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(Le,Ie,lt,Lt,Rt){var It=this.display;Le=Da(this,Fn(this.doc,Le));var Qt=Le.bottom,Pn=Le.left;if(Ie.style.position="absolute",Ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ie),It.sizer.appendChild(Ie),Lt=="over")Qt=Le.top;else if(Lt=="above"||Lt=="near"){var nn=Math.max(It.wrapper.clientHeight,this.doc.height),Vn=Math.max(It.sizer.clientWidth,It.lineSpace.clientWidth);(Lt=="above"||Le.bottom+Ie.offsetHeight>nn)&&Le.top>Ie.offsetHeight?Qt=Le.top-Ie.offsetHeight:Le.bottom+Ie.offsetHeight<=nn&&(Qt=Le.bottom),Pn+Ie.offsetWidth>Vn&&(Pn=Vn-Ie.offsetWidth)}Ie.style.top=Qt+"px",Ie.style.left=Ie.style.right="",Rt=="right"?(Pn=It.sizer.clientWidth-Ie.offsetWidth,Ie.style.right="0px"):(Rt=="left"?Pn=0:Rt=="middle"&&(Pn=(It.sizer.clientWidth-Ie.offsetWidth)/2),Ie.style.left=Pn+"px"),lt&&Kh(this,{left:Pn,top:Qt,right:Pn+Ie.offsetWidth,bottom:Qt+Ie.offsetHeight})},triggerOnKeyDown:Un(Xp),triggerOnKeyPress:Un(sc),triggerOnKeyUp:Jp,triggerOnMouseDown:Un(lc),execCommand:function(Le){if(Ns.hasOwnProperty(Le))return Ns[Le].call(null,this)},triggerElectric:Un(function(Le){rg(this,Le)}),findPosH:function(Le,Ie,lt,Lt){var Rt=1;Ie<0&&(Rt=-1,Ie=-Ie);for(var It=Fn(this.doc,Le),Qt=0;Qt<Ie&&(It=vf(this.doc,It,Rt,lt,Lt),!It.hitSide);++Qt);return It},moveH:Un(function(Le,Ie){var lt=this;this.extendSelectionsBy(function(Lt){return lt.display.shift||lt.doc.extend||Lt.empty()?vf(lt.doc,Lt.head,Le,Ie,lt.options.rtlMoveVisually):Le<0?Lt.from():Lt.to()},St)}),deleteH:Un(function(Le,Ie){var lt=this.doc.sel,Lt=this.doc;lt.somethingSelected()?Lt.replaceSelection("",null,"+delete"):ol(this,function(Rt){var It=vf(Lt,Rt.head,Le,Ie,!1);return Le<0?{from:It,to:Rt.head}:{from:Rt.head,to:It}})}),findPosV:function(Le,Ie,lt,Lt){var Rt=1,It=Lt;Ie<0&&(Rt=-1,Ie=-Ie);for(var Qt=Fn(this.doc,Le),Pn=0;Pn<Ie;++Pn){var nn=Da(this,Qt,"div");if(It==null?It=nn.left:nn.left=It,Qt=wh(this,nn,Rt,lt),Qt.hitSide)break}return Qt},moveV:Un(function(Le,Ie){var lt=this,Lt=this.doc,Rt=[],It=!this.display.shift&&!Lt.extend&&Lt.sel.somethingSelected();if(Lt.extendSelectionsBy(function(Pn){if(It)return Le<0?Pn.from():Pn.to();var nn=Da(lt,Pn.head,"div");Pn.goalColumn!=null&&(nn.left=Pn.goalColumn),Rt.push(nn.left);var Vn=wh(lt,nn,Le,Ie);return Ie=="page"&&Pn==Lt.sel.primary()&&Ed(lt,Rl(lt,Vn,"div").top-nn.top),Vn},St),Rt.length)for(var Qt=0;Qt<Lt.sel.ranges.length;Qt++)Lt.sel.ranges[Qt].goalColumn=Rt[Qt]}),findWordAt:function(Le){var Ie=this.doc,lt=un(Ie,Le.line).text,Lt=Le.ch,Rt=Le.ch;if(lt){var It=this.getHelper(Le,"wordChars");(Le.sticky=="before"||Rt==lt.length)&&Lt?--Lt:++Rt;for(var Qt=lt.charAt(Lt),Pn=gt(Qt,It)?function(nn){return gt(nn,It)}:/\s/.test(Qt)?function(nn){return/\s/.test(nn)}:function(nn){return!/\s/.test(nn)&&!gt(nn)};Lt>0&&Pn(lt.charAt(Lt-1));)--Lt;for(;Rt<lt.length&&Pn(lt.charAt(Rt));)++Rt}return new oi(xn(Le.line,Lt),xn(Le.line,Rt))},toggleOverwrite:function(Le){Le!=null&&Le==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$e(this.display.cursorDiv,"CodeMirror-overwrite"):Ne(this.display.cursorDiv,"CodeMirror-overwrite"),Ot(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==He()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Un(function(Le,Ie){Yc(this,Le,Ie)}),getScrollInfo:function(){var Le=this.display.scroller;return{left:Le.scrollLeft,top:Le.scrollTop,height:Le.scrollHeight-Ws(this)-this.display.barHeight,width:Le.scrollWidth-Ws(this)-this.display.barWidth,clientHeight:Hc(this),clientWidth:dl(this)}},scrollIntoView:Un(function(Le,Ie){Le==null?(Le={from:this.doc.sel.primary().head,to:null},Ie==null&&(Ie=this.options.cursorScrollMargin)):typeof Le=="number"?Le={from:xn(Le,0),to:null}:Le.from==null&&(Le={from:Le,to:null}),Le.to||(Le.to=Le.from),Le.margin=Ie||0,Le.from.line!=null?Jo(this,Le):sf(this,Le.from,Le.to,Le.margin)}),setSize:Un(function(Le,Ie){var lt=this,Lt=function(It){return typeof It=="number"||/^\d+$/.test(String(It))?It+"px":It};Le!=null&&(this.display.wrapper.style.width=Lt(Le)),Ie!=null&&(this.display.wrapper.style.height=Lt(Ie)),this.options.lineWrapping&&_a(this);var Rt=this.display.viewFrom;this.doc.iter(Rt,this.display.viewTo,function(It){if(It.widgets){for(var Qt=0;Qt<It.widgets.length;Qt++)if(It.widgets[Qt].noHScroll){Mo(lt,Rt,"widget");break}}++Rt}),this.curOp.forceUpdate=!0,Ot(this,"refresh",this)}),operation:function(Le){return Sn(this,Le)},startOperation:function(){return fl(this)},endOperation:function(){return bc(this)},refresh:Un(function(){var Le=this.display.cachedTextHeight;xa(this),this.curOp.forceUpdate=!0,Ha(this),Yc(this,this.doc.scrollLeft,this.doc.scrollTop),di(this.display),(Le==null||Math.abs(Le-Uu(this.display))>.5||this.options.lineWrapping)&&Zi(this),Ot(this,"refresh",this)}),swapDoc:Un(function(Le){var Ie=this.doc;return Ie.cm=null,this.state.selectingText&&this.state.selectingText(),no(this,Le),Ha(this),this.display.input.reset(),Yc(this,Le.scrollLeft,Le.scrollTop),this.curOp.forceScroll=!0,kr(this,"swapDoc",this,Ie),Ie}),phrase:function(Le){var Ie=this.options.phrases;return Ie&&Object.prototype.hasOwnProperty.call(Ie,Le)?Ie[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}},fn(ie),ie.registerHelper=function(Le,Ie,lt){Fe.hasOwnProperty(Le)||(Fe[Le]=ie[Le]={_global:[]}),Fe[Le][Ie]=lt},ie.registerGlobalHelper=function(Le,Ie,lt,Lt){ie.registerHelper(Le,Ie,Lt),Fe[Le]._global.push({pred:lt,val:Lt})}}function vf(ie,de,Fe,Le,Ie){var lt=de,Lt=Fe,Rt=un(ie,de.line),It=Ie&&ie.direction=="rtl"?-Fe:Fe;function Qt(){var Ti=de.line+It;return Ti<ie.first||Ti>=ie.first+ie.size?!1:(de=new xn(Ti,de.ch,de.sticky),Rt=un(ie,Ti))}function Pn(Ti){var Si;if(Le=="codepoint"){var Hi=Rt.text.charCodeAt(de.ch+(Le>0?0:-1));isNaN(Hi)?Si=null:Si=new xn(de.line,Math.max(0,Math.min(Rt.text.length,de.ch+Fe*(Hi>=55296&&Hi<56320?2:1))),-Fe)}else Ie?Si=Fa(ie.cm,Rt,de,Fe):Si=cs(Rt,de,Fe);if(Si==null)if(!Ti&&Qt())de=na(Ie,ie.cm,Rt,de.line,It);else return!1;else de=Si;return!0}if(Le=="char"||Le=="codepoint")Pn();else if(Le=="column")Pn(!0);else if(Le=="word"||Le=="group")for(var nn=null,Vn=Le=="group",Rn=ie.cm&&ie.cm.getHelper(de,"wordChars"),yr=!0;!(Fe<0&&!Pn(!yr));yr=!1){var Er=Rt.text.charAt(de.ch)||`
`,Wr=gt(Er,Rn)?"w":Vn&&Er==`
`?"n":!Vn||/\s/.test(Er)?null:"p";if(Vn&&!yr&&!Wr&&(Wr="s"),nn&&nn!=Wr){Fe<0&&(Fe=1,Pn(),de.sticky="after");break}if(Wr&&(nn=Wr),Fe>0&&!Pn(!yr))break}var ai=eu(ie,de,lt,Lt,!0);return tn(lt,ai)&&(ai.hitSide=!0),ai}function wh(ie,de,Fe,Le){var Ie=ie.doc,lt=de.left,Lt;if(Le=="page"){var Rt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),It=Math.max(Rt-.5*Uu(ie.display),3);Lt=(Fe>0?de.bottom:de.top)+Fe*It}else Le=="line"&&(Lt=Fe>0?de.bottom+3:de.top-3);for(var Qt;Qt=Kc(ie,lt,Lt),!!Qt.outside;){if(Fe<0?Lt<=0:Lt>=Ie.height){Qt.hitSide=!0;break}Lt+=Fe*5}return Qt}var Ba=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new st,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ba.prototype.init=function(ie){var de=this,Fe=this,Le=Fe.cm,Ie=Fe.div=ie.lineDiv;og(Ie,Le.options.spellcheck,Le.options.autocorrect,Le.options.autocapitalize);function lt(Rt){for(var It=Rt.target;It;It=It.parentNode){if(It==Ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(It.className))break}return!1}At(Ie,"paste",function(Rt){!lt(Rt)||Vt(Le,Rt)||ng(Rt,Le)||ve<=11&&setTimeout(Wn(Le,function(){return de.updateFromDOM()}),20)}),At(Ie,"compositionstart",function(Rt){de.composing={data:Rt.data,done:!1}}),At(Ie,"compositionupdate",function(Rt){de.composing||(de.composing={data:Rt.data,done:!1})}),At(Ie,"compositionend",function(Rt){de.composing&&(Rt.data!=de.composing.data&&de.readFromDOMSoon(),de.composing.done=!0)}),At(Ie,"touchstart",function(){return Fe.forceCompositionEnd()}),At(Ie,"input",function(){de.composing||de.readFromDOMSoon()});function Lt(Rt){if(!(!lt(Rt)||Vt(Le,Rt))){if(Le.somethingSelected())$h({lineWise:!1,text:Le.getSelections()}),Rt.type=="cut"&&Le.replaceSelection("",null,"cut");else if(Le.options.lineWiseCopyCut){var It=ig(Le);$h({lineWise:!0,text:It.text}),Rt.type=="cut"&&Le.operation(function(){Le.setSelections(It.ranges,0,mt),Le.replaceSelection("",null,"cut")})}else return;if(Rt.clipboardData){Rt.clipboardData.clearData();var Qt=Kl.text.join(`
`);if(Rt.clipboardData.setData("Text",Qt),Rt.clipboardData.getData("Text")==Qt){Rt.preventDefault();return}}var Pn=ag(),nn=Pn.firstChild;Le.display.lineSpace.insertBefore(Pn,Le.display.lineSpace.firstChild),nn.value=Kl.text.join(`
`);var Vn=document.activeElement;ut(nn),setTimeout(function(){Le.display.lineSpace.removeChild(Pn),Vn.focus(),Vn==Ie&&Fe.showPrimarySelection()},50)}}At(Ie,"copy",Lt),At(Ie,"cut",Lt)},Ba.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Ba.prototype.prepareSelection=function(){var ie=Vc(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Ba.prototype.showSelection=function(ie,de){!ie||!this.cm.display.view.length||((ie.focus||de)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Ba.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ba.prototype.showPrimarySelection=function(){var ie=this.getSelection(),de=this.cm,Fe=de.doc.sel.primary(),Le=Fe.from(),Ie=Fe.to();if(de.display.viewTo==de.display.viewFrom||Le.line>=de.display.viewTo||Ie.line<de.display.viewFrom){ie.removeAllRanges();return}var lt=yf(de,ie.anchorNode,ie.anchorOffset),Lt=yf(de,ie.focusNode,ie.focusOffset);if(!(lt&&!lt.bad&&Lt&&!Lt.bad&&Cn(vn(lt,Lt),Le)==0&&Cn(yn(lt,Lt),Ie)==0)){var Rt=de.display.view,It=Le.line>=de.display.viewFrom&&ip(de,Le)||{node:Rt[0].measure.map[2],offset:0},Qt=Ie.line<de.display.viewTo&&ip(de,Ie);if(!Qt){var Pn=Rt[Rt.length-1].measure,nn=Pn.maps?Pn.maps[Pn.maps.length-1]:Pn.map;Qt={node:nn[nn.length-1],offset:nn[nn.length-2]-nn[nn.length-3]}}if(!It||!Qt){ie.removeAllRanges();return}var Vn=ie.rangeCount&&ie.getRangeAt(0),Rn;try{Rn=Re(It.node,It.offset,Qt.offset,Qt.node)}catch(yr){}Rn&&(!We&&de.state.focused?(ie.collapse(It.node,It.offset),Rn.collapsed||(ie.removeAllRanges(),ie.addRange(Rn))):(ie.removeAllRanges(),ie.addRange(Rn)),Vn&&ie.anchorNode==null?ie.addRange(Vn):We&&this.startGracePeriod()),this.rememberSelection()}},Ba.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},Ba.prototype.showMultipleSelections=function(ie){Te(this.cm.display.cursorDiv,ie.cursors),Te(this.cm.display.selectionDiv,ie.selection)},Ba.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Ba.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var de=ie.getRangeAt(0).commonAncestorContainer;return Qe(this.div,de)},Ba.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ba.prototype.blur=function(){this.div.blur()},Ba.prototype.getField=function(){return this.div},Ba.prototype.supportsTouch=function(){return!0},Ba.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():Sn(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function de(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,de))}this.polling.set(this.cm.options.pollInterval,de)},Ba.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Ba.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),de=this.cm;if(z&&Ee&&this.cm.display.gutterSpecs.length&&sg(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Fe=yf(de,ie.anchorNode,ie.anchorOffset),Le=yf(de,ie.focusNode,ie.focusOffset);Fe&&Le&&Sn(de,function(){va(de.doc,Co(Fe,Le),mt),(Fe.bad||Le.bad)&&(de.curOp.selectionChanged=!0)})}}},Ba.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,de=ie.display,Fe=ie.doc.sel.primary(),Le=Fe.from(),Ie=Fe.to();if(Le.ch==0&&Le.line>ie.firstLine()&&(Le=xn(Le.line-1,un(ie.doc,Le.line-1).length)),Ie.ch==un(ie.doc,Ie.line).text.length&&Ie.line<ie.lastLine()&&(Ie=xn(Ie.line+1,0)),Le.line<de.viewFrom||Ie.line>de.viewTo-1)return!1;var lt,Lt,Rt;Le.line==de.viewFrom||(lt=Hs(ie,Le.line))==0?(Lt=Gt(de.view[0].line),Rt=de.view[0].node):(Lt=Gt(de.view[lt].line),Rt=de.view[lt-1].node.nextSibling);var It=Hs(ie,Ie.line),Qt,Pn;if(It==de.view.length-1?(Qt=de.viewTo-1,Pn=de.lineDiv.lastChild):(Qt=Gt(de.view[It+1].line)-1,Pn=de.view[It+1].node.previousSibling),!Rt)return!1;for(var nn=ie.doc.splitLines(zd(ie,Rt,Pn,Lt,Qt)),Vn=bn(ie.doc,xn(Lt,0),xn(Qt,un(ie.doc,Qt).text.length));nn.length>1&&Vn.length>1;)if(Pt(nn)==Pt(Vn))nn.pop(),Vn.pop(),Qt--;else if(nn[0]==Vn[0])nn.shift(),Vn.shift(),Lt++;else break;for(var Rn=0,yr=0,Er=nn[0],Wr=Vn[0],ai=Math.min(Er.length,Wr.length);Rn<ai&&Er.charCodeAt(Rn)==Wr.charCodeAt(Rn);)++Rn;for(var Ti=Pt(nn),Si=Pt(Vn),Hi=Math.min(Ti.length-(nn.length==1?Rn:0),Si.length-(Vn.length==1?Rn:0));yr<Hi&&Ti.charCodeAt(Ti.length-yr-1)==Si.charCodeAt(Si.length-yr-1);)++yr;if(nn.length==1&&Vn.length==1&&Lt==Le.line)for(;Rn&&Rn>Le.ch&&Ti.charCodeAt(Ti.length-yr-1)==Si.charCodeAt(Si.length-yr-1);)Rn--,yr++;nn[nn.length-1]=Ti.slice(0,Ti.length-yr).replace(/^\u200b+/,""),nn[0]=nn[0].slice(Rn).replace(/\u200b+$/,"");var So=xn(Lt,Rn),vi=xn(Qt,Vn.length?Pt(Vn).length-yr:0);if(nn.length>1||nn[0]||Cn(So,vi))return Vu(ie.doc,nn,So,vi,"+input"),!0},Ba.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ba.prototype.reset=function(){this.forceCompositionEnd()},Ba.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ba.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Ba.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&Sn(this.cm,function(){return xa(ie.cm)})},Ba.prototype.setUneditable=function(ie){ie.contentEditable="false"},Ba.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Wn(this.cm,mf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Ba.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Ba.prototype.onContextMenu=function(){},Ba.prototype.resetPosition=function(){},Ba.prototype.needsContentAttribute=!0;function ip(ie,de){var Fe=vc(ie,de.line);if(!Fe||Fe.hidden)return null;var Le=un(ie.doc,de.line),Ie=Uc(Fe,Le,de.line),lt=dt(Le,ie.doc.direction),Lt="left";if(lt){var Rt=De(lt,de.ch);Lt=Rt%2?"right":"left"}var It=Zc(Ie.map,de.ch,Lt);return It.offset=It.collapse=="right"?It.end:It.start,It}function sg(ie){for(var de=ie;de;de=de.parentNode)if(/CodeMirror-gutter-wrapper/.test(de.className))return!0;return!1}function Rd(ie,de){return de&&(ie.bad=!0),ie}function zd(ie,de,Fe,Le,Ie){var lt="",Lt=!1,Rt=ie.doc.lineSeparator(),It=!1;function Qt(Rn){return function(yr){return yr.id==Rn}}function Pn(){Lt&&(lt+=Rt,It&&(lt+=Rt),Lt=It=!1)}function nn(Rn){Rn&&(Pn(),lt+=Rn)}function Vn(Rn){if(Rn.nodeType==1){var yr=Rn.getAttribute("cm-text");if(yr){nn(yr);return}var Er=Rn.getAttribute("cm-marker"),Wr;if(Er){var ai=ie.findMarks(xn(Le,0),xn(Ie+1,0),Qt(+Er));ai.length&&(Wr=ai[0].find(0))&&nn(bn(ie.doc,Wr.from,Wr.to).join(Rt));return}if(Rn.getAttribute("contenteditable")=="false")return;var Ti=/^(pre|div|p|li|table|br)$/i.test(Rn.nodeName);if(!/^br$/i.test(Rn.nodeName)&&Rn.textContent.length==0)return;Ti&&Pn();for(var Si=0;Si<Rn.childNodes.length;Si++)Vn(Rn.childNodes[Si]);/^(pre|p)$/i.test(Rn.nodeName)&&(It=!0),Ti&&(Lt=!0)}else Rn.nodeType==3&&nn(Rn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Vn(de),de!=Fe;)de=de.nextSibling,It=!1;return lt}function yf(ie,de,Fe){var Le;if(de==ie.display.lineDiv){if(Le=ie.display.lineDiv.childNodes[Fe],!Le)return Rd(ie.clipPos(xn(ie.display.viewTo-1)),!0);de=null,Fe=0}else for(Le=de;;Le=Le.parentNode){if(!Le||Le==ie.display.lineDiv)return null;if(Le.parentNode&&Le.parentNode==ie.display.lineDiv)break}for(var Ie=0;Ie<ie.display.view.length;Ie++){var lt=ie.display.view[Ie];if(lt.node==Le)return hm(lt,de,Fe)}}function hm(ie,de,Fe){var Le=ie.text.firstChild,Ie=!1;if(!de||!Qe(Le,de))return Rd(xn(Gt(ie.line),0),!0);if(de==Le&&(Ie=!0,de=Le.childNodes[Fe],Fe=0,!de)){var lt=ie.rest?Pt(ie.rest):ie.line;return Rd(xn(Gt(lt),lt.text.length),Ie)}var Lt=de.nodeType==3?de:null,Rt=de;for(!Lt&&de.childNodes.length==1&&de.firstChild.nodeType==3&&(Lt=de.firstChild,Fe&&(Fe=Lt.nodeValue.length));Rt.parentNode!=Le;)Rt=Rt.parentNode;var It=ie.measure,Qt=It.maps;function Pn(Wr,ai,Ti){for(var Si=-1;Si<(Qt?Qt.length:0);Si++)for(var Hi=Si<0?It.map:Qt[Si],So=0;So<Hi.length;So+=3){var vi=Hi[So+2];if(vi==Wr||vi==ai){var No=Gt(Si<0?ie.line:ie.rest[Si]),$a=Hi[So]+Ti;return(Ti<0||vi!=Wr)&&($a=Hi[So+(Ti?1:0)]),xn(No,$a)}}}var nn=Pn(Lt,Rt,Fe);if(nn)return Rd(nn,Ie);for(var Vn=Rt.nextSibling,Rn=Lt?Lt.nodeValue.length-Fe:0;Vn;Vn=Vn.nextSibling){if(nn=Pn(Vn,Vn.firstChild,0),nn)return Rd(xn(nn.line,nn.ch-Rn),Ie);Rn+=Vn.textContent.length}for(var yr=Rt.previousSibling,Er=Fe;yr;yr=yr.previousSibling){if(nn=Pn(yr,yr.firstChild,-1),nn)return Rd(xn(nn.line,nn.ch+Er),Ie);Er+=yr.textContent.length}}var Ts=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new st,this.hasSelection=!1,this.composing=null};Ts.prototype.init=function(ie){var de=this,Fe=this,Le=this.cm;this.createField(ie);var Ie=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),fe&&(Ie.style.width="0px"),At(Ie,"input",function(){Oe&&ve>=9&&de.hasSelection&&(de.hasSelection=null),Fe.poll()}),At(Ie,"paste",function(Lt){Vt(Le,Lt)||ng(Lt,Le)||(Le.state.pasteIncoming=+new Date,Fe.fastPoll())});function lt(Lt){if(!Vt(Le,Lt)){if(Le.somethingSelected())$h({lineWise:!1,text:Le.getSelections()});else if(Le.options.lineWiseCopyCut){var Rt=ig(Le);$h({lineWise:!0,text:Rt.text}),Lt.type=="cut"?Le.setSelections(Rt.ranges,null,mt):(Fe.prevInput="",Ie.value=Rt.text.join(`
`),ut(Ie))}else return;Lt.type=="cut"&&(Le.state.cutIncoming=+new Date)}}At(Ie,"cut",lt),At(Ie,"copy",lt),At(ie.scroller,"paste",function(Lt){if(!(nl(ie,Lt)||Vt(Le,Lt))){if(!Ie.dispatchEvent){Le.state.pasteIncoming=+new Date,Fe.focus();return}var Rt=new Event("paste");Rt.clipboardData=Lt.clipboardData,Ie.dispatchEvent(Rt)}}),At(ie.lineSpace,"selectstart",function(Lt){nl(ie,Lt)||jn(Lt)}),At(Ie,"compositionstart",function(){var Lt=Le.getCursor("from");Fe.composing&&Fe.composing.range.clear(),Fe.composing={start:Lt,range:Le.markText(Lt,Le.getCursor("to"),{className:"CodeMirror-composing"})}}),At(Ie,"compositionend",function(){Fe.composing&&(Fe.poll(),Fe.composing.range.clear(),Fe.composing=null)})},Ts.prototype.createField=function(ie){this.wrapper=ag(),this.textarea=this.wrapper.firstChild},Ts.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Ts.prototype.prepareSelection=function(){var ie=this.cm,de=ie.display,Fe=ie.doc,Le=Vc(ie);if(ie.options.moveInputWithCursor){var Ie=Da(ie,Fe.sel.primary().head,"div"),lt=de.wrapper.getBoundingClientRect(),Lt=de.lineDiv.getBoundingClientRect();Le.teTop=Math.max(0,Math.min(de.wrapper.clientHeight-10,Ie.top+Lt.top-lt.top)),Le.teLeft=Math.max(0,Math.min(de.wrapper.clientWidth-10,Ie.left+Lt.left-lt.left))}return Le},Ts.prototype.showSelection=function(ie){var de=this.cm,Fe=de.display;Te(Fe.cursorDiv,ie.cursors),Te(Fe.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Ts.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var de=this.cm;if(de.somethingSelected()){this.prevInput="";var Fe=de.getSelection();this.textarea.value=Fe,de.state.focused&&ut(this.textarea),Oe&&ve>=9&&(this.hasSelection=Fe)}else ie||(this.prevInput=this.textarea.value="",Oe&&ve>=9&&(this.hasSelection=null))}},Ts.prototype.getField=function(){return this.textarea},Ts.prototype.supportsTouch=function(){return!1},Ts.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||He()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Ts.prototype.blur=function(){this.textarea.blur()},Ts.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ts.prototype.receivedFocus=function(){this.slowPoll()},Ts.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Ts.prototype.fastPoll=function(){var ie=!1,de=this;de.pollingFast=!0;function Fe(){var Le=de.poll();!Le&&!ie?(ie=!0,de.polling.set(60,Fe)):(de.pollingFast=!1,de.slowPoll())}de.polling.set(20,Fe)},Ts.prototype.poll=function(){var ie=this,de=this.cm,Fe=this.textarea,Le=this.prevInput;if(this.contextMenuPending||!de.state.focused||it(Fe)&&!Le&&!this.composing||de.isReadOnly()||de.options.disableInput||de.state.keySeq)return!1;var Ie=Fe.value;if(Ie==Le&&!de.somethingSelected())return!1;if(Oe&&ve>=9&&this.hasSelection===Ie||ae&&/[\uf700-\uf7ff]/.test(Ie))return de.display.input.reset(),!1;if(de.doc.sel==de.display.selForContextMenu){var lt=Ie.charCodeAt(0);if(lt==8203&&!Le&&(Le="\u200B"),lt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Lt=0,Rt=Math.min(Le.length,Ie.length);Lt<Rt&&Le.charCodeAt(Lt)==Ie.charCodeAt(Lt);)++Lt;return Sn(de,function(){mf(de,Ie.slice(Lt),Le.length-Lt,null,ie.composing?"*compose":null),Ie.length>1e3||Ie.indexOf(`
`)>-1?Fe.value=ie.prevInput="":ie.prevInput=Ie,ie.composing&&(ie.composing.range.clear(),ie.composing.range=de.markText(ie.composing.start,de.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ts.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ts.prototype.onKeyPress=function(){Oe&&ve>=9&&(this.hasSelection=null),this.fastPoll()},Ts.prototype.onContextMenu=function(ie){var de=this,Fe=de.cm,Le=Fe.display,Ie=de.textarea;de.contextMenuPending&&de.contextMenuPending();var lt=rl(Fe,ie),Lt=Le.scroller.scrollTop;if(!lt||ye)return;var Rt=Fe.options.resetSelectionOnContextMenu;Rt&&Fe.doc.sel.contains(lt)==-1&&Wn(Fe,va)(Fe.doc,Co(lt),mt);var It=Ie.style.cssText,Qt=de.wrapper.style.cssText,Pn=de.wrapper.offsetParent.getBoundingClientRect();de.wrapper.style.cssText="position: static",Ie.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(ie.clientY-Pn.top-5)+"px; left: "+(ie.clientX-Pn.left-5)+`px;
z-index: 1000; background: `+(Oe?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var nn;ce&&(nn=window.scrollY),Le.input.focus(),ce&&window.scrollTo(null,nn),Le.input.reset(),Fe.somethingSelected()||(Ie.value=de.prevInput=" "),de.contextMenuPending=Rn,Le.selForContextMenu=Fe.doc.sel,clearTimeout(Le.detectingSelectAll);function Vn(){if(Ie.selectionStart!=null){var Er=Fe.somethingSelected(),Wr="\u200B"+(Er?Ie.value:"");Ie.value="\u21DA",Ie.value=Wr,de.prevInput=Er?"":"\u200B",Ie.selectionStart=1,Ie.selectionEnd=Wr.length,Le.selForContextMenu=Fe.doc.sel}}function Rn(){if(de.contextMenuPending==Rn&&(de.contextMenuPending=!1,de.wrapper.style.cssText=Qt,Ie.style.cssText=It,Oe&&ve<9&&Le.scrollbars.setScrollTop(Le.scroller.scrollTop=Lt),Ie.selectionStart!=null)){(!Oe||Oe&&ve<9)&&Vn();var Er=0,Wr=function(){Le.selForContextMenu==Fe.doc.sel&&Ie.selectionStart==0&&Ie.selectionEnd>0&&de.prevInput=="\u200B"?Wn(Fe,ra)(Fe):Er++<10?Le.detectingSelectAll=setTimeout(Wr,500):(Le.selForContextMenu=null,Le.input.reset())};Le.detectingSelectAll=setTimeout(Wr,200)}}if(Oe&&ve>=9&&Vn(),Pe){ur(ie);var yr=function(){_t(window,"mouseup",yr),setTimeout(Rn,20)};At(window,"mouseup",yr)}else setTimeout(Rn,50)},Ts.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Ts.prototype.setUneditable=function(){},Ts.prototype.needsContentAttribute=!1;function dm(ie,de){if(de=de?yt(de):{},de.value=ie.value,!de.tabindex&&ie.tabIndex&&(de.tabindex=ie.tabIndex),!de.placeholder&&ie.placeholder&&(de.placeholder=ie.placeholder),de.autofocus==null){var Fe=He();de.autofocus=Fe==ie||ie.getAttribute("autofocus")!=null&&Fe==document.body}function Le(){ie.value=Rt.getValue()}var Ie;if(ie.form&&(At(ie.form,"submit",Le),!de.leaveSubmitMethodAlone)){var lt=ie.form;Ie=lt.submit;try{var Lt=lt.submit=function(){Le(),lt.submit=Ie,lt.submit(),lt.submit=Lt}}catch(It){}}de.finishInit=function(It){It.save=Le,It.getTextArea=function(){return ie},It.toTextArea=function(){It.toTextArea=isNaN,Le(),ie.parentNode.removeChild(It.getWrapperElement()),ie.style.display="",ie.form&&(_t(ie.form,"submit",Le),!de.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Ie))}},ie.style.display="none";var Rt=ia(function(It){return ie.parentNode.insertBefore(It,ie.nextSibling)},de);return Rt}function Wd(ie){ie.off=_t,ie.on=At,ie.wheelEventPixels=Wi,ie.Doc=Ls,ie.splitLines=Jr,ie.countColumn=_e,ie.findColumn=Nt,ie.isWordChar=Mt,ie.Pass=wt,ie.signal=Ot,ie.Line=Qi,ie.changeEnd=qo,ie.scrollbarModel=lf,ie.Pos=xn,ie.cmpPos=Cn,ie.modes=dr,ie.mimeModes=ar,ie.resolveMode=zn,ie.getMode=$t,ie.modeExtensions=Xt,ie.extendMode=Tt,ie.copyState=sn,ie.startState=Yt,ie.innerMode=pn,ie.commands=Ns,ie.keyMap=ml,ie.keyName=kd,ie.isModifierKey=yh,ie.lookupKey=Zl,ie.normalizeKeyMap=Dd,ie.StringStream=Bt,ie.SharedTextMarker=Xu,ie.TextMarker=cn,ie.LineWidget=vs,ie.e_preventDefault=jn,ie.e_stopPropagation=er,ie.e_stop=ur,ie.addClass=$e,ie.contains=Qe,ie.rmClass=Ne,ie.keyNames=Lu}um(ia),xh(ia);var $c="iter insert remove copy getEditor constructor".split(" ");for(var Sf in Ls.prototype)Ls.prototype.hasOwnProperty(Sf)&&pt($c,Sf)<0&&(ia.prototype[Sf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Ls.prototype[Sf]));return fn(Ls),ia.inputStyles={textarea:Ts,contenteditable:Ba},ia.defineMode=function(ie){!ia.defaults.mode&&ie!="null"&&(ia.defaults.mode=ie),vr.apply(this,arguments)},ia.defineMIME=Jn,ia.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),ia.defineMIME("text/plain","null"),ia.defineExtension=function(ie,de){ia.prototype[ie]=de},ia.defineDocExtension=function(ie,de){Ls.prototype[ie]=de},ia.fromTextArea=dm,Wd(ia),ia.version="5.58.2",ia})},25419:function(Nn,mn,ze){(function(We){We(ze(89780),ze(15525),ze(98101))})(function(We){"use strict";We.defineMode("markdown",function(xt,oe){var Ue=We.getMode(xt,"text/html"),Oe=Ue.name=="null";function ve(_e){if(We.findModeByName){var st=We.findModeByName(_e);st&&(_e=st.mime||st.mimes[0])}var pt=We.getMode(xt,_e);return pt.name=="null"?null:pt}oe.highlightFormatting===void 0&&(oe.highlightFormatting=!1),oe.maxBlockquoteDepth===void 0&&(oe.maxBlockquoteDepth=0),oe.taskLists===void 0&&(oe.taskLists=!1),oe.strikethrough===void 0&&(oe.strikethrough=!1),oe.emoji===void 0&&(oe.emoji=!1),oe.fencedCodeBlockHighlighting===void 0&&(oe.fencedCodeBlockHighlighting=!0),oe.fencedCodeBlockDefaultMode===void 0&&(oe.fencedCodeBlockDefaultMode="text/plain"),oe.xml===void 0&&(oe.xml=!0),oe.tokenTypeOverrides===void 0&&(oe.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 Ce in ce)ce.hasOwnProperty(Ce)&&oe.tokenTypeOverrides[Ce]&&(ce[Ce]=oe.tokenTypeOverrides[Ce]);var Ee=/^([*\-_])(?:\s*\1){2,}\s*$/,ye=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,be=/^\[(x| )\](?=\s)/i,me=oe.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(_e,st,pt){return st.f=st.inline=pt,pt(_e,st)}function ue(_e,st,pt){return st.f=st.block=pt,pt(_e,st)}function pe(_e){return!_e||!/\S/.test(_e.string)}function Pe(_e){if(_e.linkTitle=!1,_e.linkHref=!1,_e.linkText=!1,_e.em=!1,_e.strong=!1,_e.strikethrough=!1,_e.quote=0,_e.indentedCode=!1,_e.f==Ne){var st=Oe;if(!st){var pt=We.innerMode(Ue,_e.htmlState);st=pt.mode.name=="xml"&&pt.state.tagStart===null&&!pt.state.context&&pt.state.tokenize.isInText}st&&(_e.f=Be,_e.block=we,_e.htmlState=null)}return _e.trailingSpace=0,_e.trailingSpaceNewLine=!1,_e.prevLine=_e.thisLine,_e.thisLine={stream:null},null}function we(_e,st){var pt=_e.column()===st.indentation,bt=pe(st.prevLine.stream),wt=st.indentedCode,mt=st.prevLine.hr,vt=st.list!==!1,St=(st.listStack[st.listStack.length-1]||0)+3;st.indentedCode=!1;var Nt=st.indentation;if(st.indentationDiff===null&&(st.indentationDiff=st.indentation,vt)){for(st.list=null;Nt<st.listStack[st.listStack.length-1];)st.listStack.pop(),st.listStack.length?st.indentation=st.listStack[st.listStack.length-1]:st.list=!1;st.list!==!1&&(st.indentationDiff=Nt-st.listStack[st.listStack.length-1])}var Ft=!bt&&!mt&&!st.prevLine.header&&(!vt||!wt)&&!st.prevLine.fencedCodeEnd,Kt=(st.list===!1||mt||bt)&&st.indentation<=St&&_e.match(Ee),Pt=null;if(st.indentationDiff>=4&&(wt||st.prevLine.fencedCodeEnd||st.prevLine.header||bt))return _e.skipToEnd(),st.indentedCode=!0,ce.code;if(_e.eatSpace())return null;if(pt&&st.indentation<=St&&(Pt=_e.match(me))&&Pt[1].length<=6)return st.quote=0,st.header=Pt[1].length,st.thisLine.header=!0,oe.highlightFormatting&&(st.formatting="header"),st.f=st.inline,Te(st);if(st.indentation<=St&&_e.eat(">"))return st.quote=pt?1:st.quote+1,oe.highlightFormatting&&(st.formatting="quote"),_e.eatSpace(),Te(st);if(!Kt&&!st.setext&&pt&&st.indentation<=St&&(Pt=_e.match(ye))){var Et=Pt[1]?"ol":"ul";return st.indentation=Nt+_e.current().length,st.list=!0,st.quote=0,st.listStack.push(st.indentation),st.em=!1,st.strong=!1,st.code=!1,st.strikethrough=!1,oe.taskLists&&_e.match(be,!1)&&(st.taskList=!0),st.f=st.inline,oe.highlightFormatting&&(st.formatting=["list","list-"+Et]),Te(st)}else{if(pt&&st.indentation<=St&&(Pt=_e.match(z,!0)))return st.quote=0,st.fencedEndRE=new RegExp(Pt[1]+"+ *$"),st.localMode=oe.fencedCodeBlockHighlighting&&ve(Pt[2]||oe.fencedCodeBlockDefaultMode),st.localMode&&(st.localState=We.startState(st.localMode)),st.f=st.block=Ae,oe.highlightFormatting&&(st.formatting="code-block"),st.code=-1,Te(st);if(st.setext||(!Ft||!vt)&&!st.quote&&st.list===!1&&!st.code&&!Kt&&!ee.test(_e.string)&&(Pt=_e.lookAhead(1))&&(Pt=Pt.match(xe)))return st.setext?(st.header=st.setext,st.setext=0,_e.skipToEnd(),oe.highlightFormatting&&(st.formatting="header")):(st.header=Pt[0].charAt(0)=="="?1:2,st.setext=st.header),st.thisLine.header=!0,st.f=st.inline,Te(st);if(Kt)return _e.skipToEnd(),st.hr=!0,st.thisLine.hr=!0,ce.hr;if(_e.peek()==="[")return le(_e,st,qe)}return le(_e,st,st.inline)}function Ne(_e,st){var pt=Ue.token(_e,st.htmlState);if(!Oe){var bt=We.innerMode(Ue,st.htmlState);(bt.mode.name=="xml"&&bt.state.tagStart===null&&!bt.state.context&&bt.state.tokenize.isInText||st.md_inside&&_e.current().indexOf(">")>-1)&&(st.f=Be,st.block=we,st.htmlState=null)}return pt}function Ae(_e,st){var pt=st.listStack[st.listStack.length-1]||0,bt=st.indentation<pt,wt=pt+3;if(st.fencedEndRE&&st.indentation<=wt&&(bt||_e.match(st.fencedEndRE))){oe.highlightFormatting&&(st.formatting="code-block");var mt;return bt||(mt=Te(st)),st.localMode=st.localState=null,st.block=we,st.f=Be,st.fencedEndRE=null,st.code=0,st.thisLine.fencedCodeEnd=!0,bt?ue(_e,st,st.block):mt}else return st.localMode?st.localMode.token(_e,st.localState):(_e.skipToEnd(),ce.code)}function Te(_e){var st=[];if(_e.formatting){st.push(ce.formatting),typeof _e.formatting=="string"&&(_e.formatting=[_e.formatting]);for(var pt=0;pt<_e.formatting.length;pt++)st.push(ce.formatting+"-"+_e.formatting[pt]),_e.formatting[pt]==="header"&&st.push(ce.formatting+"-"+_e.formatting[pt]+"-"+_e.header),_e.formatting[pt]==="quote"&&(!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=_e.quote?st.push(ce.formatting+"-"+_e.formatting[pt]+"-"+_e.quote):st.push("error"))}if(_e.taskOpen)return st.push("meta"),st.length?st.join(" "):null;if(_e.taskClosed)return st.push("property"),st.length?st.join(" "):null;if(_e.linkHref?st.push(ce.linkHref,"url"):(_e.strong&&st.push(ce.strong),_e.em&&st.push(ce.em),_e.strikethrough&&st.push(ce.strikethrough),_e.emoji&&st.push(ce.emoji),_e.linkText&&st.push(ce.linkText),_e.code&&st.push(ce.code),_e.image&&st.push(ce.image),_e.imageAltText&&st.push(ce.imageAltText,"link"),_e.imageMarker&&st.push(ce.imageMarker)),_e.header&&st.push(ce.header,ce.header+"-"+_e.header),_e.quote&&(st.push(ce.quote),!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=_e.quote?st.push(ce.quote+"-"+_e.quote):st.push(ce.quote+"-"+oe.maxBlockquoteDepth)),_e.list!==!1){var bt=(_e.listStack.length-1)%3;bt?bt===1?st.push(ce.list2):st.push(ce.list3):st.push(ce.list1)}return _e.trailingSpaceNewLine?st.push("trailing-space-new-line"):_e.trailingSpace&&st.push("trailing-space-"+(_e.trailingSpace%2?"a":"b")),st.length?st.join(" "):null}function Me(_e,st){if(_e.match(fe,!0))return Te(st)}function Be(_e,st){var pt=st.text(_e,st);if(typeof pt!="undefined")return pt;if(st.list)return st.list=null,Te(st);if(st.taskList){var bt=_e.match(be,!0)[1]===" ";return bt?st.taskOpen=!0:st.taskClosed=!0,oe.highlightFormatting&&(st.formatting="task"),st.taskList=!1,Te(st)}if(st.taskOpen=!1,st.taskClosed=!1,st.header&&_e.match(/^#+$/,!0))return oe.highlightFormatting&&(st.formatting="header"),Te(st);var wt=_e.next();if(st.linkTitle){st.linkTitle=!1;var mt=wt;wt==="("&&(mt=")"),mt=(mt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var vt="^\\s*(?:[^"+mt+"\\\\]+|\\\\\\\\|\\\\.)"+mt;if(_e.match(new RegExp(vt),!0))return ce.linkHref}if(wt==="`"){var St=st.formatting;oe.highlightFormatting&&(st.formatting="code"),_e.eatWhile("`");var Nt=_e.current().length;if(st.code==0&&(!st.quote||Nt==1))return st.code=Nt,Te(st);if(Nt==st.code){var Ft=Te(st);return st.code=0,Ft}else return st.formatting=St,Te(st)}else if(st.code)return Te(st);if(wt==="\\"&&(_e.next(),oe.highlightFormatting)){var Kt=Te(st),Pt=ce.formatting+"-escape";return Kt?Kt+" "+Pt:Pt}if(wt==="!"&&_e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return st.imageMarker=!0,st.image=!0,oe.highlightFormatting&&(st.formatting="image"),Te(st);if(wt==="["&&st.imageMarker&&_e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return st.imageMarker=!1,st.imageAltText=!0,oe.highlightFormatting&&(st.formatting="image"),Te(st);if(wt==="]"&&st.imageAltText){oe.highlightFormatting&&(st.formatting="image");var Kt=Te(st);return st.imageAltText=!1,st.image=!1,st.inline=st.f=Qe,Kt}if(wt==="["&&!st.image)return st.linkText&&_e.match(/^.*?\]/)||(st.linkText=!0,oe.highlightFormatting&&(st.formatting="link")),Te(st);if(wt==="]"&&st.linkText){oe.highlightFormatting&&(st.formatting="link");var Kt=Te(st);return st.linkText=!1,st.inline=st.f=_e.match(/\(.*?\)| ?\[.*?\]/,!1)?Qe:Be,Kt}if(wt==="<"&&_e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){st.f=st.inline=Re,oe.highlightFormatting&&(st.formatting="link");var Kt=Te(st);return Kt?Kt+=" ":Kt="",Kt+ce.linkInline}if(wt==="<"&&_e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){st.f=st.inline=Re,oe.highlightFormatting&&(st.formatting="link");var Kt=Te(st);return Kt?Kt+=" ":Kt="",Kt+ce.linkEmail}if(oe.xml&&wt==="<"&&_e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Et=_e.string.indexOf(">",_e.pos);if(Et!=-1){var at=_e.string.substring(_e.start,Et);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(at)&&(st.md_inside=!0)}return _e.backUp(1),st.htmlState=We.startState(Ue),ue(_e,st,Ne)}if(oe.xml&&wt==="<"&&_e.match(/^\/\w*?>/))return st.md_inside=!1,"tag";if(wt==="*"||wt==="_"){for(var Ct=1,nt=_e.pos==1?" ":_e.string.charAt(_e.pos-2);Ct<3&&_e.eat(wt);)Ct++;var ht=_e.peek()||" ",Mt=!/\s/.test(ht)&&(!ae.test(ht)||/\s/.test(nt)||ae.test(nt)),gt=!/\s/.test(nt)&&(!ae.test(nt)||/\s/.test(ht)||ae.test(ht)),rt=null,Je=null;if(Ct%2&&(!st.em&&Mt&&(wt==="*"||!gt||ae.test(nt))?rt=!0:st.em==wt&&gt&&(wt==="*"||!Mt||ae.test(ht))&&(rt=!1)),Ct>1&&(!st.strong&&Mt&&(wt==="*"||!gt||ae.test(nt))?Je=!0:st.strong==wt&&gt&&(wt==="*"||!Mt||ae.test(ht))&&(Je=!1)),Je!=null||rt!=null){oe.highlightFormatting&&(st.formatting=rt==null?"strong":Je==null?"em":"strong em"),rt===!0&&(st.em=wt),Je===!0&&(st.strong=wt);var Ft=Te(st);return rt===!1&&(st.em=!1),Je===!1&&(st.strong=!1),Ft}}else if(wt===" "&&(_e.eat("*")||_e.eat("_"))){if(_e.peek()===" ")return Te(st);_e.backUp(1)}if(oe.strikethrough){if(wt==="~"&&_e.eatWhile(wt)){if(st.strikethrough){oe.highlightFormatting&&(st.formatting="strikethrough");var Ft=Te(st);return st.strikethrough=!1,Ft}else if(_e.match(/^[^\s]/,!1))return st.strikethrough=!0,oe.highlightFormatting&&(st.formatting="strikethrough"),Te(st)}else if(wt===" "&&_e.match(/^~~/,!0)){if(_e.peek()===" ")return Te(st);_e.backUp(2)}}if(oe.emoji&&wt===":"&&_e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){st.emoji=!0,oe.highlightFormatting&&(st.formatting="emoji");var Xe=Te(st);return st.emoji=!1,Xe}return wt===" "&&(_e.match(/^ +$/,!1)?st.trailingSpace++:st.trailingSpace&&(st.trailingSpaceNewLine=!0)),Te(st)}function Re(_e,st){var pt=_e.next();if(pt===">"){st.f=st.inline=Be,oe.highlightFormatting&&(st.formatting="link");var bt=Te(st);return bt?bt+=" ":bt="",bt+ce.linkInline}return _e.match(/^[^>]+/,!0),ce.linkInline}function Qe(_e,st){if(_e.eatSpace())return null;var pt=_e.next();return pt==="("||pt==="["?(st.f=st.inline=$e(pt==="("?")":"]"),oe.highlightFormatting&&(st.formatting="link-string"),st.linkHref=!0,Te(st)):"error"}var He={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function $e(_e){return function(st,pt){var bt=st.next();if(bt===_e){pt.f=pt.inline=Be,oe.highlightFormatting&&(pt.formatting="link-string");var wt=Te(pt);return pt.linkHref=!1,wt}return st.match(He[_e]),pt.linkHref=!0,Te(pt)}}function qe(_e,st){return _e.match(/^([^\]\\]|\\.)*\]:/,!1)?(st.f=ut,_e.next(),oe.highlightFormatting&&(st.formatting="link"),st.linkText=!0,Te(st)):le(_e,st,Be)}function ut(_e,st){if(_e.match(/^\]:/,!0)){st.f=st.inline=ct,oe.highlightFormatting&&(st.formatting="link");var pt=Te(st);return st.linkText=!1,pt}return _e.match(/^([^\]\\]|\\.)+/,!0),ce.linkText}function ct(_e,st){return _e.eatSpace()?null:(_e.match(/^[^\s]+/,!0),_e.peek()===void 0?st.linkTitle=!0:_e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),st.f=st.inline=Be,ce.linkHref+" url")}var yt={startState:function(){return{f:we,prevLine:{stream:null},thisLine:{stream:null},block:we,htmlState:null,indentation:0,inline:Be,text:Me,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(_e){return{f:_e.f,prevLine:_e.prevLine,thisLine:_e.thisLine,block:_e.block,htmlState:_e.htmlState&&We.copyState(Ue,_e.htmlState),indentation:_e.indentation,localMode:_e.localMode,localState:_e.localMode?We.copyState(_e.localMode,_e.localState):null,inline:_e.inline,text:_e.text,formatting:!1,linkText:_e.linkText,linkTitle:_e.linkTitle,linkHref:_e.linkHref,code:_e.code,em:_e.em,strong:_e.strong,strikethrough:_e.strikethrough,emoji:_e.emoji,header:_e.header,setext:_e.setext,hr:_e.hr,taskList:_e.taskList,list:_e.list,listStack:_e.listStack.slice(0),quote:_e.quote,indentedCode:_e.indentedCode,trailingSpace:_e.trailingSpace,trailingSpaceNewLine:_e.trailingSpaceNewLine,md_inside:_e.md_inside,fencedEndRE:_e.fencedEndRE}},token:function(_e,st){if(st.formatting=!1,_e!=st.thisLine.stream){if(st.header=0,st.hr=!1,_e.match(/^\s*$/,!0))return Pe(st),null;if(st.prevLine=st.thisLine,st.thisLine={stream:_e},st.taskList=!1,st.trailingSpace=0,st.trailingSpaceNewLine=!1,!st.localState&&(st.f=st.block,st.f!=Ne)){var pt=_e.match(/^\s*/,!0)[0].replace(/\t/g,re).length;if(st.indentation=pt,st.indentationDiff=null,pt>0)return null}}return st.f(_e,st)},innerMode:function(_e){return _e.block==Ne?{state:_e.htmlState,mode:Ue}:_e.localState?{state:_e.localState,mode:_e.localMode}:{state:_e,mode:yt}},indent:function(_e,st,pt){return _e.block==Ne&&Ue.indent?Ue.indent(_e.htmlState,st,pt):_e.localState&&_e.localMode.indent?_e.localMode.indent(_e.localState,st,pt):We.Pass},blankLine:Pe,getType:Te,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return yt},"xml"),We.defineMIME("text/markdown","markdown"),We.defineMIME("text/x-markdown","markdown")})},98101:function(Nn,mn,ze){(function(We){We(ze(89780))})(function(We){"use strict";We.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 xt=0;xt<We.modeInfo.length;xt++){var oe=We.modeInfo[xt];oe.mimes&&(oe.mime=oe.mimes[0])}We.findModeByMIME=function(Ue){Ue=Ue.toLowerCase();for(var Oe=0;Oe<We.modeInfo.length;Oe++){var ve=We.modeInfo[Oe];if(ve.mime==Ue)return ve;if(ve.mimes){for(var ce=0;ce<ve.mimes.length;ce++)if(ve.mimes[ce]==Ue)return ve}}if(/\+xml$/.test(Ue))return We.findModeByMIME("application/xml");if(/\+json$/.test(Ue))return We.findModeByMIME("application/json")},We.findModeByExtension=function(Ue){Ue=Ue.toLowerCase();for(var Oe=0;Oe<We.modeInfo.length;Oe++){var ve=We.modeInfo[Oe];if(ve.ext){for(var ce=0;ce<ve.ext.length;ce++)if(ve.ext[ce]==Ue)return ve}}},We.findModeByFileName=function(Ue){for(var Oe=0;Oe<We.modeInfo.length;Oe++){var ve=We.modeInfo[Oe];if(ve.file&&ve.file.test(Ue))return ve}var ce=Ue.lastIndexOf("."),Ce=ce>-1&&Ue.substring(ce+1,Ue.length);if(Ce)return We.findModeByExtension(Ce)},We.findModeByName=function(Ue){Ue=Ue.toLowerCase();for(var Oe=0;Oe<We.modeInfo.length;Oe++){var ve=We.modeInfo[Oe];if(ve.name.toLowerCase()==Ue)return ve;if(ve.alias){for(var ce=0;ce<ve.alias.length;ce++)if(ve.alias[ce].toLowerCase()==Ue)return ve}}}})},67549:function(Nn,mn,ze){(function(We){We(ze(89780))})(function(We){"use strict";We.defineMode("stex",function(xt,oe){"use strict";function Ue(fe,z){fe.cmdState.push(z)}function Oe(fe){return fe.cmdState.length>0?fe.cmdState[fe.cmdState.length-1]:null}function ve(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 Ce(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=Ce("importmodule","tag",["string","builtin"]),Ee.documentclass=Ce("documentclass","tag",["","atom"]),Ee.usepackage=Ce("usepackage","tag",["atom"]),Ee.begin=Ce("begin","tag",["atom"]),Ee.end=Ce("end","tag",["atom"]),Ee.label=Ce("label","tag",["atom"]),Ee.ref=Ce("ref","tag",["atom"]),Ee.eqref=Ce("eqref","tag",["atom"]),Ee.cite=Ce("cite","tag",["atom"]),Ee.bibitem=Ce("bibitem","tag",["atom"]),Ee.Bibitem=Ce("Bibitem","tag",["atom"]),Ee.RBibitem=Ce("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 be(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,Ue(z,ee),ye(z,xe),ee.style}if(fe.match(/^\\[$&%#{}_]/)||fe.match(/^\\[,;!\/\\]/))return"tag";if(fe.match("\\["))return ye(z,function(le,ue){return me(le,ue,"\\]")}),"keyword";if(fe.match("\\("))return ye(z,function(le,ue){return me(le,ue,"\\)")}),"keyword";if(fe.match("$$"))return ye(z,function(le,ue){return me(le,ue,"$$")}),"keyword";if(fe.match("$"))return ye(z,function(le,ue){return me(le,ue,"$")}),"keyword";var re=fe.next();if(re=="%")return fe.skipToEnd(),"comment";if(re=="}"||re=="]"){if(ee=Oe(z),ee)ee.closeBracket(re),ye(z,xe);else return"error";return"bracket"}else return re=="{"||re=="["?(ee=Ee.DEFAULT,ee=new ee,Ue(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 me(fe,z,ee){if(fe.eatSpace())return null;if(ee&&fe.match(ee))return ye(z,be),"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=Oe(z),ae.openBracket(ee),fe.eat(ee),ye(z,be),"bracket"):/[ \t\r]/.test(ee)?(fe.eat(ee),null):(ye(z,be),ve(z),be(fe,z))}return{startState:function(){var fe=oe.inMathMode?function(z,ee){return me(z,ee)}:be;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=be,fe.cmdState.length=0},lineComment:"%"}}),We.defineMIME("text/x-stex","stex"),We.defineMIME("text/x-latex","stex")})},15525:function(Nn,mn,ze){(function(We){We(ze(89780))})(function(We){"use strict";var xt={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},oe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};We.defineMode("xml",function(Ue,Oe){var ve=Ue.indentUnit,ce={},Ce=Oe.htmlMode?xt:oe;for(var Ee in Ce)ce[Ee]=Ce[Ee];for(var Ee in Oe)ce[Ee]=Oe[Ee];var ye,be;function me(Re,Qe){function He(ut){return Qe.tokenize=ut,ut(Re,Qe)}var $e=Re.next();if($e=="<")return Re.eat("!")?Re.eat("[")?Re.match("CDATA[")?He(z("atom","]]>")):null:Re.match("--")?He(z("comment","-->")):Re.match("DOCTYPE",!0,!0)?(Re.eatWhile(/[\w\._\-]/),He(ee(1))):null:Re.eat("?")?(Re.eatWhile(/[\w\._\-]/),Qe.tokenize=z("meta","?>"),"meta"):(ye=Re.eat("/")?"closeTag":"openTag",Qe.tokenize=xe,"tag bracket");if($e=="&"){var qe;return Re.eat("#")?Re.eat("x")?qe=Re.eatWhile(/[a-fA-F\d]/)&&Re.eat(";"):qe=Re.eatWhile(/[\d]/)&&Re.eat(";"):qe=Re.eatWhile(/[\w\.\-:]/)&&Re.eat(";"),qe?"atom":"error"}else return Re.eatWhile(/[^&<]/),null}me.isInText=!0;function xe(Re,Qe){var He=Re.next();if(He==">"||He=="/"&&Re.eat(">"))return Qe.tokenize=me,ye=He==">"?"endTag":"selfcloseTag","tag bracket";if(He=="=")return ye="equals",null;if(He=="<"){Qe.tokenize=me,Qe.state=ue,Qe.tagName=Qe.tagStart=null;var $e=Qe.tokenize(Re,Qe);return $e?$e+" tag error":"tag error"}else return/[\'\"]/.test(He)?(Qe.tokenize=fe(He),Qe.stringStartCol=Re.column(),Qe.tokenize(Re,Qe)):(Re.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function fe(Re){var Qe=function(He,$e){for(;!He.eol();)if(He.next()==Re){$e.tokenize=xe;break}return"string"};return Qe.isInAttribute=!0,Qe}function z(Re,Qe){return function(He,$e){for(;!He.eol();){if(He.match(Qe)){$e.tokenize=me;break}He.next()}return Re}}function ee(Re){return function(Qe,He){for(var $e;($e=Qe.next())!=null;){if($e=="<")return He.tokenize=ee(Re+1),He.tokenize(Qe,He);if($e==">")if(Re==1){He.tokenize=me;break}else return He.tokenize=ee(Re-1),He.tokenize(Qe,He)}return"meta"}}function ae(Re,Qe,He){this.prev=Re.context,this.tagName=Qe,this.indent=Re.indented,this.startOfLine=He,(ce.doNotIndent.hasOwnProperty(Qe)||Re.context&&Re.context.noIndent)&&(this.noIndent=!0)}function re(Re){Re.context&&(Re.context=Re.context.prev)}function le(Re,Qe){for(var He;;){if(!Re.context||(He=Re.context.tagName,!ce.contextGrabbers.hasOwnProperty(He)||!ce.contextGrabbers[He].hasOwnProperty(Qe)))return;re(Re)}}function ue(Re,Qe,He){return Re=="openTag"?(He.tagStart=Qe.column(),pe):Re=="closeTag"?Pe:ue}function pe(Re,Qe,He){return Re=="word"?(He.tagName=Qe.current(),be="tag",Ae):ce.allowMissingTagName&&Re=="endTag"?(be="tag bracket",Ae(Re,Qe,He)):(be="error",pe)}function Pe(Re,Qe,He){if(Re=="word"){var $e=Qe.current();return He.context&&He.context.tagName!=$e&&ce.implicitlyClosed.hasOwnProperty(He.context.tagName)&&re(He),He.context&&He.context.tagName==$e||ce.matchClosing===!1?(be="tag",we):(be="tag error",Ne)}else return ce.allowMissingTagName&&Re=="endTag"?(be="tag bracket",we(Re,Qe,He)):(be="error",Ne)}function we(Re,Qe,He){return Re!="endTag"?(be="error",we):(re(He),ue)}function Ne(Re,Qe,He){return be="error",we(Re,Qe,He)}function Ae(Re,Qe,He){if(Re=="word")return be="attribute",Te;if(Re=="endTag"||Re=="selfcloseTag"){var $e=He.tagName,qe=He.tagStart;return He.tagName=He.tagStart=null,Re=="selfcloseTag"||ce.autoSelfClosers.hasOwnProperty($e)?le(He,$e):(le(He,$e),He.context=new ae(He,$e,qe==He.indented)),ue}return be="error",Ae}function Te(Re,Qe,He){return Re=="equals"?Me:(ce.allowMissing||(be="error"),Ae(Re,Qe,He))}function Me(Re,Qe,He){return Re=="string"?Be:Re=="word"&&ce.allowUnquoted?(be="string",Ae):(be="error",Ae(Re,Qe,He))}function Be(Re,Qe,He){return Re=="string"?Be:Ae(Re,Qe,He)}return{startState:function(Re){var Qe={tokenize:me,state:ue,indented:Re||0,tagName:null,tagStart:null,context:null};return Re!=null&&(Qe.baseIndent=Re),Qe},token:function(Re,Qe){if(!Qe.tagName&&Re.sol()&&(Qe.indented=Re.indentation()),Re.eatSpace())return null;ye=null;var He=Qe.tokenize(Re,Qe);return(He||ye)&&He!="comment"&&(be=null,Qe.state=Qe.state(ye||He,Re,Qe),be&&(He=be=="error"?He+" error":be)),He},indent:function(Re,Qe,He){var $e=Re.context;if(Re.tokenize.isInAttribute)return Re.tagStart==Re.indented?Re.stringStartCol+1:Re.indented+ve;if($e&&$e.noIndent)return We.Pass;if(Re.tokenize!=xe&&Re.tokenize!=me)return He?He.match(/^(\s*)/)[0].length:0;if(Re.tagName)return ce.multilineTagIndentPastTag!==!1?Re.tagStart+Re.tagName.length+2:Re.tagStart+ve*(ce.multilineTagIndentFactor||1);if(ce.alignCDATA&&/<!\[CDATA\[/.test(Qe))return 0;var qe=Qe&&/^<(\/)?([\w_:\.-]*)/.exec(Qe);if(qe&&qe[1])for(;$e;)if($e.tagName==qe[2]){$e=$e.prev;break}else if(ce.implicitlyClosed.hasOwnProperty($e.tagName))$e=$e.prev;else break;else if(qe)for(;$e;){var ut=ce.contextGrabbers[$e.tagName];if(ut&&ut.hasOwnProperty(qe[2]))$e=$e.prev;else break}for(;$e&&$e.prev&&!$e.startOfLine;)$e=$e.prev;return $e?$e.indent+ve:Re.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ce.htmlMode?"html":"xml",helperType:ce.htmlMode?"html":"xml",skipAttribute:function(Re){Re.state==Me&&(Re.state=Ae)},xmlCurrentTag:function(Re){return Re.tagName?{name:Re.tagName,close:Re.type=="closeTag"}:null},xmlCurrentContext:function(Re){for(var Qe=[],He=Re.context;He;He=He.prev)He.tagName&&Qe.push(He.tagName);return Qe.reverse()}}}),We.defineMIME("text/xml","xml"),We.defineMIME("application/xml","xml"),We.mimeModes.hasOwnProperty("text/html")||We.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Nn,mn,ze){"use strict";ze.d(mn,{$u:function(){return Ee},BD:function(){return Ct},E9:function(){return Ce},FF:function(){return Gr},FJ:function(){return ue},Hn:function(){return le},KX:function(){return Pe},NB:function(){return Ze},S0:function(){return Pt},UL:function(){return ye},Vk:function(){return re},Vm:function(){return De},YI:function(){return Et},ZA:function(){return oe},Zt:function(){return be},al:function(){return rt},bn:function(){return gt},bx:function(){return nt},g2:function(){return at},h1:function(){return Me},hD:function(){return fn},l4:function(){return ve},rU:function(){return je},s_:function(){return ht},uz:function(){return tt},z6:function(){return me}}),Nn=ze.hmd(Nn),function(){var it;function bi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function mi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:bi(a)}}function Tn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var dr=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 vr;e:{var Jn={a:!0},zn={};try{zn.__proto__=Jn,vr=zn.a;break e}catch(a){}vr=!1}ar=vr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var $t=ar;function Xt(a,y){if(a.prototype=dr(y.prototype),a.prototype.constructor=a,$t)$t(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 Tt=typeof ze.g!="undefined"&&ze.g!=null?ze.g:self,sn=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},pn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Yt(a,y){if(y){var x=Tt;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&&pn(x,a,{writable:!0,value:y})}}Yt("Object.assign",function(a){return a||sn}),Yt("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 Bt=typeof globalThis=="object"&&globalThis||typeof ze.g=="object"&&ze.g.global===ze.g&&ze.g||typeof self=="object"&&self.self===self&&self||{};Bt.requestAnimationFrame===void 0&&(Bt.setImmediate===void 0?Bt.requestAnimationFrame=function(a){Bt.setTimeout(a,0)}:Bt.requestAnimationFrame=Bt.setImmediate);function un(){}function bn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Bt.clearTimeout(x),x=On(function(){x=-1,a.apply(b,E)},y)}}function On(a,y){return Bt.setTimeout(a,y)}function Zn(a){return Bt.document.createElement(a)}function Gt(a){throw Error(a)}function An(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Gt(a)}function Kn(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),Gt(x+" is not in the range "+y+": "+a)}function rr(a){Bt.console&&Bt.console.log(a)}function xn(a){return typeof a=="object"&&a!==null}function Cn(a){return Array.isArray(a)||Bt.NodeList&&a instanceof Bt.NodeList||Bt.HTMLCollection&&a instanceof Bt.HTMLCollection}function tn(a){return Array.prototype.slice.call(a)}function gn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Gt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function yn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Gt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function vn(){var a=Qr.pop();return a===void 0?[]:a}function Ln(a){a.length=0,Qr.push(a)}function Fn(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(xn(a)&&a.constructor)return Fn(a.constructor);return typeof a}function Gn(a){var y=a;return xn(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 Hn(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 gr(a,y,x){Object.defineProperty(Wo.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 Dr=Bt.navigator!==void 0&&0<Bt.navigator.userAgent.indexOf("Trident/7"),zr=Bt.navigator!==void 0&&Bt.navigator.platform!==void 0&&Bt.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Qr=[];Object.freeze([]),un.className="Util",un.Dx="32ab5ff3b26f42dc0ed90f21472913b5",un.adym="gojs.net",un.vfo="28e645fdb266",un.className="Util";function wn(a,y,x){ci(this),this.j=a,this.xa=y,this.o=x}wn.prototype.toString=function(){return"EnumValue."+this.xa};function Yn(a,y){return y==null||y===""?null:a[y]}Tt.Object.defineProperties(wn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),wn.className="EnumValue";function cr(){this.ew=[]}cr.prototype.toString=function(){return this.ew.join("")},cr.prototype.add=function(a){a!==""&&this.ew.push(a)},cr.className="StringBuilder";function Fr(){}Fr.className="PropertyCollection";var fr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Bt.console&&Bt.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 br(){}br.prototype.reset=function(){},br.prototype.next=function(){return!1},br.prototype.Ad=function(){return!1},br.prototype.first=function(){return null},br.prototype.any=function(){return!1},br.prototype.all=function(){return!0},br.prototype.each=function(){return this},br.prototype.map=function(){return this},br.prototype.filter=function(){return this},br.prototype.de=function(){},br.prototype.toString=function(){return"EmptyIterator"},Tt.Object.defineProperties(br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),br.prototype.first=br.prototype.first,br.prototype.hasNext=br.prototype.Ad,br.prototype.next=br.prototype.next,br.prototype.reset=br.prototype.reset;var Hr=null;br.className="EmptyIterator",Hr=new br;function Rr(a){this.key=-1,this.value=a}Rr.prototype.reset=function(){this.key=-1},Rr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Rr.prototype.Ad=function(){return this.next()},Rr.prototype.first=function(){return this.key=0,this.value},Rr.prototype.any=function(a){return this.key=-1,a(this.value)},Rr.prototype.all=function(a){return this.key=-1,a(this.value)},Rr.prototype.each=function(a){return this.key=-1,a(this.value),this},Rr.prototype.map=function(a){return new Rr(a(this.value))},Rr.prototype.filter=function(a){return a(this.value)?new Rr(this.value):Hr},Rr.prototype.de=function(){this.value=null},Rr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Tt.Object.defineProperties(Rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Rr.prototype.first=Rr.prototype.first,Rr.prototype.hasNext=Rr.prototype.Ad,Rr.prototype.next=Rr.prototype.next,Rr.prototype.reset=Rr.prototype.reset,Rr.className="SingletonIterator";function Cr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Cr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Cr.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},Cr.prototype.Ad=function(){return this.next()},Cr.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},Cr.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},Cr.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},Cr.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},Cr.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 Dn,a.s=x,a.xb(),a.iterator},Cr.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 Dn,a.s=x,a.xb(),a.iterator},Cr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Cr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Tt.Object.defineProperties(Cr.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}}}),Cr.prototype.first=Cr.prototype.first,Cr.prototype.hasNext=Cr.prototype.Ad,Cr.prototype.next=Cr.prototype.next,Cr.prototype.reset=Cr.prototype.reset,Cr.className="ListIterator";function Zr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Zr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Zr.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)},Zr.prototype.Ad=function(){return this.next()},Zr.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},Zr.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},Zr.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},Zr.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},Zr.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 Dn,a.s=x,a.xb(),a.iterator},Zr.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 Dn,a.s=x,a.xb(),a.iterator},Zr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Zr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Tt.Object.defineProperties(Zr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Zr.prototype.first=Zr.prototype.first,Zr.prototype.hasNext=Zr.prototype.Ad,Zr.prototype.next=Zr.prototype.next,Zr.prototype.reset=Zr.prototype.reset,Zr.className="ListIteratorBackwards";function Dn(a){ci(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Gt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=Dn.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"List()#"+$r(this)},it.add=function(a){return a===null?this:(this._isFrozen&&An(this,a),this.s.push(a),this.xb(),this)},it.push=function(a){this.add(a)},it.addAll=function(a){if(a===null)return this;this._isFrozen&&An(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},it.clear=function(){this._isFrozen&&An(this),this.s.length=0,this.xb()},it.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},it.has=function(a){return this.contains(a)},it.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},it.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Kn(a,"0 <= i < length",Dn,"elt:i"),y[a]},it.get=function(a){return this.M(a)},it.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Kn(a,"0 <= i < length",Dn,"setElt:i"),this._isFrozen&&An(this,a),x[a]=y},it.set=function(a,y){this.cd(a,y)},it.first=function(){var a=this.s;return a.length===0?null:a[0]},it.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},it.pop=function(){this._isFrozen&&An(this);var a=this.s;return 0<a.length?a.pop():null},Dn.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},Dn.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},Dn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Dn.prototype.map=function(a){for(var y=new Dn,x=[],b=this.s,E=b.length,te=0;te<E;te++)x.push(a(b[te]));return y.s=x,y.xb(),y},Dn.prototype.filter=function(a){for(var y=new Dn,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},it=Dn.prototype,it.Gb=function(a,y){0>a&&Kn(a,">= 0",Dn,"insertAt:i"),this._isFrozen&&An(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},it.remove=function(a){if(a===null)return!1;this._isFrozen&&An(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)},it.delete=function(a){return this.remove(a)},it.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Kn(a,"0 <= i < length",Dn,"removeAt:i"),this._isFrozen&&An(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},it.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&&An(this);for(var E=a,te=y+1;te<b;)x[E++]=x[te++];return x.length=b-(y-a+1),this.xb(),this},Dn.prototype.copy=function(){var a=new Dn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},it=Dn.prototype,it.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},it.Iv=function(){for(var a=new kn,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},it.sort=function(a){return this._isFrozen&&An(this),this.s.sort(a),this.xb(),this},it.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&An(this);var te=x-y;if(1>=te)return this;if((0>y||y>=E-1)&&Kn(y,"0 <= from < length",Dn,"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},it.reverse=function(){return this._isFrozen&&An(this),this.s.reverse(),this.xb(),this},Tt.Object.defineProperties(Dn.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 Hr;var a=this.Sa;return a!==null?(a.reset(),a):new Cr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Hr;var a=this.Hg;return a!==null?(a.reset(),a):new Zr(this)}}}),Dn.prototype.reverse=Dn.prototype.reverse,Dn.prototype.sortRange=Dn.prototype.zi,Dn.prototype.sort=Dn.prototype.sort,Dn.prototype.toSet=Dn.prototype.Iv,Dn.prototype.toArray=Dn.prototype.Fa,Dn.prototype.removeRange=Dn.prototype.removeRange,Dn.prototype.removeAt=Dn.prototype.mb,Dn.prototype.delete=Dn.prototype.delete,Dn.prototype.remove=Dn.prototype.remove,Dn.prototype.insertAt=Dn.prototype.Gb,Dn.prototype.pop=Dn.prototype.pop,Dn.prototype.last=Dn.prototype.jc,Dn.prototype.first=Dn.prototype.first,Dn.prototype.set=Dn.prototype.set,Dn.prototype.setElt=Dn.prototype.cd,Dn.prototype.get=Dn.prototype.get,Dn.prototype.elt=Dn.prototype.M,Dn.prototype.indexOf=Dn.prototype.indexOf,Dn.prototype.has=Dn.prototype.has,Dn.prototype.contains=Dn.prototype.contains,Dn.prototype.clear=Dn.prototype.clear,Dn.prototype.addAll=Dn.prototype.addAll,Dn.prototype.push=Dn.prototype.push,Dn.prototype.add=Dn.prototype.add,Dn.prototype.thaw=Dn.prototype.ka,Dn.prototype.freeze=Dn.prototype.freeze,Dn.className="List";function Ei(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ei.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Ei.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)},Ei.prototype.Ad=function(){return this.next()},Ei.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},Ei.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},Ei.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},Ei.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},Ei.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Ei.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Ei.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Ei.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Tt.Object.defineProperties(Ei.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Ei.prototype.first=Ei.prototype.first,Ei.prototype.hasNext=Ei.prototype.Ad,Ei.prototype.next=Ei.prototype.next,Ei.prototype.reset=Ei.prototype.reset,Ei.className="SetIterator";function kn(a){ci(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Gt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=kn.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"Set()#"+$r(this)},it.add=function(a){if(a===null)return this;this._isFrozen&&An(this,a);var y=a;return xn(a)&&(y=Ri(a)),this.Tb[y]===void 0&&(this.Sb++,a=new xi(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},it.addAll=function(a){if(a===null)return this;if(this._isFrozen&&An(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},it.contains=function(a){if(a===null)return!1;var y=a;return xn(a)&&(y=$r(a),y===void 0)?!1:this.Tb[y]!==void 0},it.has=function(a){return this.contains(a)},it.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},it.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},it.first=function(){var a=this.ea;return a===null?null:a.value},kn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},kn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},kn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},kn.prototype.map=function(a){for(var y=new kn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},kn.prototype.filter=function(a){for(var y=new kn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},it=kn.prototype,it.remove=function(a){if(a===null)return!1;this._isFrozen&&An(this,a);var y=a;if(xn(a)&&(y=$r(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},it.delete=function(a){return this.remove(a)},it.hp=function(a){if(a===null)return this;if(this._isFrozen&&An(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},it.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&An(this);var y=new kn;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},it.clear=function(){this._isFrozen&&An(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},kn.prototype.copy=function(){var a=new kn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},kn.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},kn.prototype.Hv=function(){var a=new Dn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function ci(a){a.__gohashid=Xi++}function Ri(a){var y=a.__gohashid;return y===void 0&&(y=Xi++,a.__gohashid=y),y}function $r(a){return a.__gohashid}Tt.Object.defineProperties(kn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Hr;var a=this.Sa;return a!==null?(a.reset(),a):new Ei(this)}}}),kn.prototype.toList=kn.prototype.Hv,kn.prototype.toArray=kn.prototype.Fa,kn.prototype.clear=kn.prototype.clear,kn.prototype.retainAll=kn.prototype.pA,kn.prototype.removeAll=kn.prototype.hp,kn.prototype.delete=kn.prototype.delete,kn.prototype.remove=kn.prototype.remove,kn.prototype.first=kn.prototype.first,kn.prototype.containsAny=kn.prototype.Ty,kn.prototype.containsAll=kn.prototype.Sy,kn.prototype.has=kn.prototype.has,kn.prototype.contains=kn.prototype.contains,kn.prototype.addAll=kn.prototype.addAll,kn.prototype.add=kn.prototype.add,kn.prototype.thaw=kn.prototype.ka,kn.prototype.freeze=kn.prototype.freeze;var Xi=1;kn.className="Set",kn.uniqueHash=ci,kn.hashIdUnique=Ri,kn.hashId=$r;function Oi(a){this.ma=a,this.qa=a.Ja,this.sa=null}Oi.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Oi.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)},Oi.prototype.Ad=function(){return this.next()},Oi.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},Oi.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},Oi.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},Oi.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},Oi.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Dn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Oi.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Dn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Oi.prototype.de=function(){this.value=this.key=null,this.qa=-1},Oi.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Tt.Object.defineProperties(Oi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Oi.prototype.first=Oi.prototype.first,Oi.prototype.hasNext=Oi.prototype.Ad,Oi.prototype.next=Oi.prototype.next,Oi.prototype.reset=Oi.prototype.reset,Oi.className="MapKeySetIterator";function Ir(a){kn.call(this),ci(this),this._isFrozen=!0,this.ma=a}Xt(Ir,kn),it=Ir.prototype,it.freeze=function(){return this},it.ka=function(){return this},it.toString=function(){return"MapKeySet("+this.ma.toString()+")"},it.add=function(){Gt("This Set is read-only: "+this.toString())},it.contains=function(a){return this.ma.contains(a)},it.has=function(a){return this.contains(a)},it.remove=function(){Gt("This Set is read-only: "+this.toString())},it.delete=function(a){return this.remove(a)},it.clear=function(){Gt("This Set is read-only: "+this.toString())},it.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ir.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ir.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ir.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ir.prototype.map=function(a){for(var y=new kn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ir.prototype.filter=function(a){for(var y=new kn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Ir.prototype.copy=function(){return new Ir(this.ma)},Ir.prototype.Iv=function(){var a=new kn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ir.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},Ir.prototype.Hv=function(){var a=new Dn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Tt.Object.defineProperties(Ir.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Hr:new Oi(this.ma)}}}),Ir.prototype.toList=Ir.prototype.Hv,Ir.prototype.toArray=Ir.prototype.Fa,Ir.prototype.toSet=Ir.prototype.Iv,Ir.prototype.first=Ir.prototype.first,Ir.prototype.clear=Ir.prototype.clear,Ir.prototype.delete=Ir.prototype.delete,Ir.prototype.remove=Ir.prototype.remove,Ir.prototype.has=Ir.prototype.has,Ir.prototype.contains=Ir.prototype.contains,Ir.prototype.add=Ir.prototype.add,Ir.prototype.thaw=Ir.prototype.ka,Ir.prototype.freeze=Ir.prototype.freeze,Ir.className="MapKeySet";function jr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}jr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},jr.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)},jr.prototype.Ad=function(){return this.next()},jr.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},jr.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},jr.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},jr.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},jr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Dn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},jr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Dn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},jr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},jr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Tt.Object.defineProperties(jr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),jr.prototype.first=jr.prototype.first,jr.prototype.hasNext=jr.prototype.Ad,jr.prototype.next=jr.prototype.next,jr.prototype.reset=jr.prototype.reset,jr.className="MapValueSetIterator";function xi(a,y){this.key=a,this.value=y,this.ll=this.va=null}xi.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},xi.className="KeyValuePair";function ki(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ki.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ki.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)},ki.prototype.Ad=function(){return this.next()},ki.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},ki.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},ki.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},ki.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},ki.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ki.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ki.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ki.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Tt.Object.defineProperties(ki.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ki.prototype.first=ki.prototype.first,ki.prototype.hasNext=ki.prototype.Ad,ki.prototype.next=ki.prototype.next,ki.prototype.reset=ki.prototype.reset,ki.className="MapIterator";function pr(a){ci(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"&&Gt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=pr.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"Map()#"+$r(this)},it.add=function(a,y){this._isFrozen&&An(this,a);var x=a;xn(a)&&(x=Ri(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new xi(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},it.set=function(a,y){return this.add(a,y)},it.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 pr)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},it.first=function(){return this.ea},pr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},pr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},pr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},pr.prototype.map=function(a){for(var y=new pr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},pr.prototype.filter=function(a){for(var y=new pr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},it=pr.prototype,it.contains=function(a){var y=a;return xn(a)&&(y=$r(a),y===void 0)?!1:this.Tb[y]!==void 0},it.has=function(a){return this.contains(a)},it.I=function(a){var y=a;return xn(a)&&(y=$r(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},it.get=function(a){return this.I(a)},it.remove=function(a){if(a===null)return!1;this._isFrozen&&An(this,a);var y=a;if(xn(a)&&(y=$r(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},it.delete=function(a){return this.remove(a)},it.clear=function(){this._isFrozen&&An(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()},pr.prototype.copy=function(){var a=new pr,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},pr.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 xi(E.key,E.value),x++}return y},pr.prototype.Lf=function(){return new Ir(this)},Tt.Object.defineProperties(pr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Hr;var a=this.Sa;return a!==null?(a.reset(),a):new ki(this)}},iteratorKeys:{get:function(){return 0>=this.count?Hr:new Oi(this)}},iteratorValues:{get:function(){if(0>=this.count)return Hr;var a=this.jf;return a!==null?(a.reset(),a):new jr(this)}}}),pr.prototype.toKeySet=pr.prototype.Lf,pr.prototype.toArray=pr.prototype.Fa,pr.prototype.clear=pr.prototype.clear,pr.prototype.delete=pr.prototype.delete,pr.prototype.remove=pr.prototype.remove,pr.prototype.get=pr.prototype.get,pr.prototype.getValue=pr.prototype.I,pr.prototype.has=pr.prototype.has,pr.prototype.contains=pr.prototype.contains,pr.prototype.first=pr.prototype.first,pr.prototype.addAll=pr.prototype.addAll,pr.prototype.set=pr.prototype.set,pr.prototype.add=pr.prototype.add,pr.prototype.thaw=pr.prototype.ka,pr.prototype.freeze=pr.prototype.freeze,pr.className="Map";function kt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Gt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Li,ao,Pi,co,wo;kt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},kt.prototype.h=function(a,y){return this.x=a,this.y=y,this},kt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},kt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},kt.prototype.copy=function(){var a=new kt;return a.x=this.x,a.y=this.y,a},it=kt.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Gt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ti(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 kt(x,E)}return new kt}function hi(a){return a.x.toString()+" "+a.y.toString()}it.toString=function(){return"Point("+this.x+","+this.y+")"},it.D=function(a){return a instanceof kt?this.x===a.x&&this.y===a.y:!1},it.hi=function(a,y){return this.x===a&&this.y===y},it.Xa=function(a){return rn.B(this.x,a.x)&&rn.B(this.y,a.y)},it.add=function(a){return this.x+=a.x,this.y+=a.y,this},it.re=function(a){return this.x-=a.x,this.y-=a.y,this},it.offset=function(a,y){return this.x+=a,this.y+=y,this},kt.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},it=kt.prototype,it.scale=function(a,y){return this.x*=a,this.y*=y,this},it.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},it.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},it.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},it.ab=function(a){return Fi(a.x-this.x,a.y-this.y)},it.direction=function(a,y){return Fi(a-this.x,y-this.y)};function Fi(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}it.Ry=function(a,y){return rn.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},it.fA=function(a,y,x,b){return rn.qh(a,y,x,b,this.x,this.y,this),this},it.gA=function(a,y){return rn.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},it.uA=function(a,y,x,b){return rn.No(this.x,this.y,a,y,x,b,this),this},it.vA=function(a,y){return rn.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},it.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},it.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},it.transform=function(a){return a.Ga(this),this};function wi(a,y){return y.Cd(a),a}function so(a,y,x,b,E,te){var ne=E-x,se=te-b,he=ne*ne+se*se;x-=a,b-=y;var ge=-x*ne-b*se;return 0>=ge||ge>=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 Po(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Vr(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)}it.w=function(){return isFinite(this.x)&&isFinite(this.y)},kt.alloc=function(){var a=Xr.pop();return a===void 0?new kt:a},kt.allocAt=function(a,y){var x=Xr.pop();return x===void 0?new kt(a,y):(x.x=a,x.y=y,x)},kt.free=function(a){Xr.push(a)},kt.prototype.isReal=kt.prototype.w,kt.prototype.setSpot=kt.prototype.yi,kt.prototype.setRectSpot=kt.prototype.xi,kt.prototype.snapToGridPoint=kt.prototype.vA,kt.prototype.snapToGrid=kt.prototype.uA,kt.prototype.projectOntoLineSegmentPoint=kt.prototype.gA,kt.prototype.projectOntoLineSegment=kt.prototype.fA,kt.intersectingLineSegments=function(a,y,x,b,E,te,ne,se){return rn.Rl(a,y,x,b,E,te,ne,se)},kt.prototype.compareWithLineSegmentPoint=kt.prototype.Ry,kt.compareWithLineSegment=function(a,y,x,b,E,te){return rn.Fl(a,y,x,b,E,te)},kt.prototype.direction=kt.prototype.direction,kt.prototype.directionPoint=kt.prototype.ab,kt.prototype.normalize=kt.prototype.normalize,kt.prototype.distanceSquared=kt.prototype.zd,kt.prototype.distanceSquaredPoint=kt.prototype.Bf,kt.prototype.scale=kt.prototype.scale,kt.prototype.rotate=kt.prototype.rotate,kt.prototype.offset=kt.prototype.offset,kt.prototype.subtract=kt.prototype.re,kt.prototype.add=kt.prototype.add,kt.prototype.equalsApprox=kt.prototype.Xa,kt.prototype.equalTo=kt.prototype.hi,kt.prototype.equals=kt.prototype.D,kt.prototype.set=kt.prototype.set,kt.prototype.setTo=kt.prototype.sg;var Xr=[];kt.className="Point",kt.parse=ti,kt.stringify=hi,kt.distanceLineSegmentSquared=so,kt.distanceSquared=Po,kt.direction=Vr,kt.Origin=Li=new kt(0,0).ja(),kt.InfiniteTopLeft=ao=new kt(-1/0,-1/0).ja(),kt.InfiniteBottomRight=Pi=new kt(1/0,1/0).ja(),kt.SixPoint=co=new kt(6,6).ja(),kt.NoPoint=wo=new kt(NaN,NaN).ja(),kt.parse=ti,kt.stringify=hi,kt.distanceLineSegmentSquared=so,kt.distanceSquared=Po,kt.direction=Vr;function qn(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):Gt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var si,qi,Ro,lo,Qi,Do,Oo;qn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},qn.prototype.h=function(a,y){return this.width=a,this.height=y,this},qn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},qn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},qn.prototype.copy=function(){var a=new qn;return a.width=this.width,a.height=this.height,a},it=qn.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Gt("cannot thaw constant: "+this),this._isFrozen=!1,this};function oa(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 qn(x,E)}return new qn}function la(a){return a.width.toString()+" "+a.height.toString()}it.toString=function(){return"Size("+this.width+","+this.height+")"},it.D=function(a){return a instanceof qn?this.width===a.width&&this.height===a.height:!1},it.hi=function(a,y){return this.width===a&&this.height===y},it.Xa=function(a){return rn.B(this.width,a.width)&&rn.B(this.height,a.height)},it.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},it.w=function(){return isFinite(this.width)&&isFinite(this.height)},qn.alloc=function(){var a=Ma.pop();return a===void 0?new qn:a},qn.free=function(a){Ma.push(a)},qn.prototype.isReal=qn.prototype.w,qn.prototype.inflate=qn.prototype.Bc,qn.prototype.equalsApprox=qn.prototype.Xa,qn.prototype.equalTo=qn.prototype.hi,qn.prototype.equals=qn.prototype.D,qn.prototype.set=qn.prototype.set,qn.prototype.setTo=qn.prototype.sg;var Ma=[];qn.className="Size",qn.parse=oa,qn.stringify=la,qn.ZeroSize=si=new qn(0,0).ja(),qn.OneSize=qi=new qn(1,1).ja(),qn.SixSize=Ro=new qn(6,6).ja(),qn.EightSize=lo=new qn(8,8).ja(),qn.TenSize=Qi=new qn(10,10).ja(),qn.InfiniteSize=Do=new qn(1/0,1/0).ja(),qn.NoSize=Oo=new qn(NaN,NaN).ja(),qn.parse=oa,qn.stringify=la;function Mn(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 kt?(x=a.x,a=a.y,y instanceof kt?(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 qn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Gt("Incorrect second argument supplied to Rect constructor "+y)):Gt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}it=Mn.prototype,it.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},it.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function ha(a,y,x){a.width=y,a.height=x}it.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},it.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},it.dd=function(a){return this.x=a.x,this.y=a.y,this},it.tA=function(a){return this.width=a.width,this.height=a.height,this},Mn.prototype.copy=function(){var a=new Mn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},it=Mn.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Gt("cannot thaw constant: "+this),this._isFrozen=!1,this};function fu(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 Mn(x,E,te,ne)}return new Mn}function xs(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}it.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},it.D=function(a){return a instanceof Mn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},it.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},it.Xa=function(a){return rn.B(this.x,a.x)&&rn.B(this.y,a.y)&&rn.B(this.width,a.width)&&rn.B(this.height,a.height)};function bo(a,y){return rn.$(a.x,y.x)&&rn.$(a.y,y.y)&&rn.$(a.width,y.width)&&rn.$(a.height,y.height)}it.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},it.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},it.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},it.offset=function(a,y){return this.x+=a,this.y+=y,this},it.Bc=function(a,y){return _i(this,y,a,y,a)},it.Co=function(a){return _i(this,a.top,a.right,a.bottom,a.left)},it.Fv=function(a){return _i(this,-a.top,-a.right,-a.bottom,-a.left)},it.Hz=function(a,y,x,b){return _i(this,a,y,x,b)};function _i(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}it.Ex=function(a){return da(this,a.x,a.y,a.width,a.height)},it.Uu=function(a,y,x,b){return da(this,a,y,x,b)};function da(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}it.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},it.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 Ao(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))}it.Ye=function(a){return eo(this,a.x,a.y,0,0)},it.ed=function(a){return eo(this,a.x,a.y,a.width,a.height)},it.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),eo(this,a,y,x,b)};function eo(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}it.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 Bo(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 ws(a,y,x,b,E,te,ne,se){return a>ne+E||E>x+a?!1:!(y>se+te||te>b+y)}it.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},it.Mz=function(){return this.width===0&&this.height===0},Mn.alloc=function(){var a=oo.pop();return a===void 0?new Mn:a},Mn.allocAt=function(a,y,x,b){var E=oo.pop();return E===void 0?new Mn(a,y,x,b):E.h(a,y,x,b)},Mn.free=function(a){oo.push(a)},Tt.Object.defineProperties(Mn.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 kt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new qn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new kt(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}}}),Mn.prototype.isEmpty=Mn.prototype.Mz,Mn.prototype.isReal=Mn.prototype.w,Mn.intersectsLineSegment=function(a,y,x,b,E,te,ne,se){return rn.Fx(a,y,x,b,E,te,ne,se)},Mn.prototype.setSpot=Mn.prototype.yi,Mn.prototype.union=Mn.prototype.Kv,Mn.prototype.unionRect=Mn.prototype.ed,Mn.prototype.unionPoint=Mn.prototype.Ye,Mn.prototype.intersects=Mn.prototype.Vu,Mn.prototype.intersectsRect=Mn.prototype.Yc,Mn.prototype.intersect=Mn.prototype.Uu,Mn.prototype.intersectRect=Mn.prototype.Ex,Mn.prototype.grow=Mn.prototype.Hz,Mn.prototype.subtractMargin=Mn.prototype.Fv,Mn.prototype.addMargin=Mn.prototype.Co,Mn.prototype.inflate=Mn.prototype.Bc,Mn.prototype.offset=Mn.prototype.offset,Mn.prototype.contains=Mn.prototype.contains,Mn.prototype.containsRect=Mn.prototype.Re,Mn.prototype.containsPoint=Mn.prototype.ca,Mn.prototype.equalsApprox=Mn.prototype.Xa,Mn.prototype.equalTo=Mn.prototype.hi,Mn.prototype.equals=Mn.prototype.D,Mn.prototype.setSize=Mn.prototype.tA,Mn.prototype.setPoint=Mn.prototype.dd,Mn.prototype.set=Mn.prototype.set,Mn.prototype.setTo=Mn.prototype.sg;var Ci=null,ho=null,oo=[];Mn.className="Rect",Mn.parse=fu,Mn.stringify=xs,Mn.contains=Bo,Mn.intersects=ws,Mn.ZeroRect=Ci=new Mn(0,0,0,0).ja(),Mn.NoRect=ho=new Mn(NaN,NaN,NaN,NaN).ja(),Mn.parse=fu,Mn.stringify=xs,Mn.contains=Bo,Mn.intersects=ws;function kr(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):Gt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}kr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},kr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},kr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},kr.prototype.copy=function(){var a=new kr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},it=kr.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Gt("cannot thaw constant: "+this),this._isFrozen=!1,this};function za(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 kr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new kr(x);for(var te=NaN;a[y]==="";)y++;if((b=a[y++])&&(te=parseFloat(b)),isNaN(te))return new kr(x,E);for(var ne=NaN;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),isNaN(ne)?new kr(x,E):new kr(x,E,te,ne)}return new kr}function Wa(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}it.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},it.D=function(a){return a instanceof kr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},it.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},it.Xa=function(a){return rn.B(this.top,a.top)&&rn.B(this.right,a.right)&&rn.B(this.bottom,a.bottom)&&rn.B(this.left,a.left)},it.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},kr.alloc=function(){var a=$l.pop();return a===void 0?new kr:a},kr.free=function(a){$l.push(a)},kr.prototype.isReal=kr.prototype.w,kr.prototype.equalsApprox=kr.prototype.Xa,kr.prototype.equalTo=kr.prototype.hi,kr.prototype.equals=kr.prototype.D,kr.prototype.set=kr.prototype.set,kr.prototype.setTo=kr.prototype.sg;var Es=null,Nl=null,$l=[];kr.className="Margin",kr.parse=za,kr.stringify=Wa,kr.ZeroMargin=Es=new kr(0,0,0,0).ja(),kr.TwoMargin=Nl=new kr(2,2,2,2).ja(),kr.parse=za,kr.stringify=Wa;function wr(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 ua,Xa,Cl,Bl,Il,zi,mc,tl,nl,ks,Eu,Ru,Ws,dl,Hc,hh,Uc,Gh,Gc,vc,zu,jl,dh,Zc,yc,io,zo,As,_a,Ha,ga,La,Ya,Ua,Wu,Rl;wr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},wr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},wr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},wr.prototype.copy=function(){var a=new wr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},it=wr.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Gt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Da(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 ua;if(a==="TopLeft")return Xa;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Cl;if(a==="TopRight")return Bl;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Il;if(a==="Center")return zi;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 ks;if(a==="TopSide")return Eu;if(a==="LeftSide")return Ru;if(a==="RightSide")return Ws;if(a==="BottomSide")return dl;if(a==="TopBottomSides")return Hc;if(a==="LeftRightSides")return hh;if(a==="TopLeftSides")return Uc;if(a==="TopRightSides")return Gh;if(a==="BottomLeftSides")return Gc;if(a==="BottomRightSides")return vc;if(a==="NotTopSide")return zu;if(a==="NotLeftSide")return jl;if(a==="NotRightSide")return dh;if(a==="NotBottomSide")return Zc;if(a==="AllSides")return yc;if(a==="Default")return io;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 wr(x,E,te,ne)}return new wr}function bd(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}it.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(ua)?"None":this.D(Xa)?"TopLeft":this.D(Cl)?"Top":this.D(Bl)?"TopRight":this.D(Il)?"Left":this.D(zi)?"Center":this.D(mc)?"Right":this.D(tl)?"BottomLeft":this.D(nl)?"Bottom":this.D(ks)?"BottomRight":this.D(Eu)?"TopSide":this.D(Ru)?"LeftSide":this.D(Ws)?"RightSide":this.D(dl)?"BottomSide":this.D(Hc)?"TopBottomSides":this.D(hh)?"LeftRightSides":this.D(Uc)?"TopLeftSides":this.D(Gh)?"TopRightSides":this.D(Gc)?"BottomLeftSides":this.D(vc)?"BottomRightSides":this.D(zu)?"NotTopSide":this.D(jl)?"NotLeftSide":this.D(dh)?"NotRightSide":this.D(Zc)?"NotBottomSide":this.D(yc)?"AllSides":this.D(io)?"Default":"None"},it.D=function(a){return a instanceof wr?(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},it.gv=function(){return new wr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},it.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(zo))a=Ru;else if(a.D(As))a=Ws;else if(a.D(_a))a=Eu;else if(a.D(Ha))a=dl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},it.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},it.Mc=function(){return isNaN(this.x)||isNaN(this.y)},it.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},it.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},it.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},wr.alloc=function(){var a=Kc.pop();return a===void 0?new wr:a},wr.free=function(a){Kc.push(a)},wr.prototype.isDefault=wr.prototype.Xb,wr.prototype.isNone=wr.prototype.ys,wr.prototype.isSide=wr.prototype.$c,wr.prototype.isNoSpot=wr.prototype.Mc,wr.prototype.isSpot=wr.prototype.sb,wr.prototype.includesSide=wr.prototype.Hf,wr.prototype.opposite=wr.prototype.gv,wr.prototype.equals=wr.prototype.D,wr.prototype.set=wr.prototype.set,wr.prototype.setTo=wr.prototype.sg;var Kc=[];wr.className="Spot",wr.parse=wd,wr.stringify=bd,wr.None=ua=Da(new wr(0,0,0,0),0).ja(),wr.Default=io=Da(new wr(0,0,-1,0),-1).ja(),wr.TopLeft=Xa=new wr(0,0,0,0).ja(),wr.TopCenter=Cl=new wr(.5,0,0,0).ja(),wr.TopRight=Bl=new wr(1,0,0,0).ja(),wr.LeftCenter=Il=new wr(0,.5,0,0).ja(),wr.Center=zi=new wr(.5,.5,0,0).ja(),wr.RightCenter=mc=new wr(1,.5,0,0).ja(),wr.BottomLeft=tl=new wr(0,1,0,0).ja(),wr.BottomCenter=nl=new wr(.5,1,0,0).ja(),wr.BottomRight=ks=new wr(1,1,0,0).ja(),wr.MiddleTop=ga=Cl,wr.MiddleLeft=La=Il,wr.MiddleRight=Ya=mc,wr.MiddleBottom=Ua=nl,wr.Top=_a=Cl,wr.Left=zo=Il,wr.Right=As=mc,wr.Bottom=Ha=nl,wr.TopSide=Eu=Da(new wr(0,0,1,1),1).ja(),wr.LeftSide=Ru=Da(new wr(0,0,1,2),1).ja(),wr.RightSide=Ws=Da(new wr(0,0,1,4),1).ja(),wr.BottomSide=dl=Da(new wr(0,0,1,8),1).ja(),wr.TopBottomSides=Hc=Da(new wr(0,0,1,9),1).ja(),wr.LeftRightSides=hh=Da(new wr(0,0,1,6),1).ja(),wr.TopLeftSides=Uc=Da(new wr(0,0,1,3),1).ja(),wr.TopRightSides=Gh=Da(new wr(0,0,1,5),1).ja(),wr.BottomLeftSides=Gc=Da(new wr(0,0,1,10),1).ja(),wr.BottomRightSides=vc=Da(new wr(0,0,1,12),1).ja(),wr.NotTopSide=zu=Da(new wr(0,0,1,14),1).ja(),wr.NotLeftSide=jl=Da(new wr(0,0,1,13),1).ja(),wr.NotRightSide=dh=Da(new wr(0,0,1,11),1).ja(),wr.NotBottomSide=Zc=Da(new wr(0,0,1,7),1).ja(),wr.AllSides=yc=Da(new wr(0,0,1,15),1).ja(),Wu=new wr(.156,.156).ja(),Rl=new wr(.844,.844).ja(),wr.parse=wd,wr.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},it=gi.prototype,it.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},it.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},it.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)},it.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))},it.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))},it.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,ge=this.dx,Se=this.dy,ke=y*te+x*se+ge,Ge=y*ne+x*he+Se,et=b*te+x*se+ge,ot=b*ne+x*he+Se;return x=y*te+E*se+ge,y=y*ne+E*he+Se,te=b*te+E*se+ge,b=b*ne+E*he+Se,E=Math.min(ke,et),ke=Math.max(ke,et),et=Math.min(Ge,ot),Ge=Math.max(Ge,ot),E=Math.min(E,x),ke=Math.max(ke,x),et=Math.min(et,y),Ge=Math.max(Ge,y),E=Math.min(E,te),ke=Math.max(ke,te),et=Math.min(et,b),Ge=Math.max(Ge,b),a.h(E,et,ke-E,Ge-et),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 rn={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=rn.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);rn.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 ge=y,Se=b;else ge=b,Se=y;if(a===x)return ge<=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,ge-=E,ge<=ne&&ne<=Se))if(he-se>Se-ge)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,ge,Se,ke){if(rn.Yb(a,y,ne,se,ke,x,b)&&rn.Yb(a,y,ne,se,ke,E,te))return rn.Yb(a,y,ne,se,ke,ge,Se);var Ge=(a+x)/2,et=(y+b)/2,ot=(x+E)/2,ft=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Ge+ot)/2,x=(et+ft)/2,ot=(ot+E)/2,ft=(ft+te)/2;var jt=(b+ot)/2,Dt=(x+ft)/2;return rn.cs(a,y,Ge,et,b,x,jt,Dt,he,ge,Se,ke)||rn.cs(jt,Dt,ot,ft,E,te,ne,se,he,ge,Se,ke)},ax:function(a,y,x,b,E,te,ne,se,he){var ge=(x+E)/2,Se=(b+te)/2;return he.h((((a+x)/2+ge)/2+(ge+(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,ge=(b+te)/2;return Vr(((a+x)/2+he)/2,((y+b)/2+ge)/2,(he+(E+ne)/2)/2,(ge+(te+se)/2)/2)},Dl:function(a,y,x,b,E,te,ne,se,he,ge){if(rn.Yb(a,y,ne,se,he,x,b)&&rn.Yb(a,y,ne,se,he,E,te))eo(ge,a,y,0,0),eo(ge,ne,se,0,0);else{var Se=(a+x)/2,ke=(y+b)/2,Ge=(x+E)/2,et=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Se+Ge)/2,x=(ke+et)/2,Ge=(Ge+E)/2,et=(et+te)/2;var ot=(b+Ge)/2,ft=(x+et)/2;rn.Dl(a,y,Se,ke,b,x,ot,ft,he,ge),rn.Dl(ot,ft,Ge,et,E,te,ne,se,he,ge)}return ge},Qe:function(a,y,x,b,E,te,ne,se,he,ge){if(rn.Yb(a,y,ne,se,he,x,b)&&rn.Yb(a,y,ne,se,he,E,te))ge.length===0&&(ge.push(a),ge.push(y)),ge.push(ne),ge.push(se);else{var Se=(a+x)/2,ke=(y+b)/2,Ge=(x+E)/2,et=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Se+Ge)/2,x=(ke+et)/2,Ge=(Ge+E)/2,et=(et+te)/2;var ot=(b+Ge)/2,ft=(x+et)/2;rn.Qe(a,y,Se,ke,b,x,ot,ft,he,ge),rn.Qe(ot,ft,Ge,et,E,te,ne,se,he,ge)}return ge},jv:function(a,y,x,b,E,te,ne,se,he,ge){if(rn.Yb(a,y,E,te,ge,x,b))return rn.Yb(a,y,E,te,ge,se,he);var Se=(a+x)/2,ke=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Ge=(Se+x)/2,et=(ke+b)/2;return rn.jv(a,y,Se,ke,Ge,et,ne,se,he,ge)||rn.jv(Ge,et,x,b,E,te,ne,se,he,ge)},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(rn.Yb(a,y,E,te,ne,x,b))eo(se,a,y,0,0),eo(se,E,te,0,0);else{var he=(a+x)/2,ge=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Se=(he+x)/2,ke=(ge+b)/2;rn.iv(a,y,he,ge,Se,ke,ne,se),rn.iv(Se,ke,x,b,E,te,ne,se)}return se},ep:function(a,y,x,b,E,te,ne,se){if(rn.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,ge=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Se=(he+x)/2,ke=(ge+b)/2;rn.ep(a,y,he,ge,Se,ke,ne,se),rn.ep(Se,ke,x,b,E,te,ne,se)}return se},Eo:function(a,y,x,b,E,te,ne,se,he,ge,Se,ke,Ge,et){if(rn.Yb(a,y,ne,se,Ge,x,b)&&rn.Yb(a,y,ne,se,Ge,E,te))return!rn.Rl(a,y,ne,se,he,ge,Se,ke)||(Ge=(a-ne)*(ge-ke)-(y-se)*(he-Se),Ge===0)?!1:(et.h(((a*se-y*ne)*(he-Se)-(a-ne)*(he*ke-ge*Se))/Ge,((a*se-y*ne)*(ge-ke)-(y-se)*(he*ke-ge*Se))/Ge),!0);var ot=(a+x)/2,ft=(y+b)/2,jt=(x+E)/2,Dt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(ot+jt)/2,x=(ft+Dt)/2,jt=(jt+E)/2,Dt=(Dt+te)/2;var Ht=(b+jt)/2,Zt=(x+Dt)/2,Jt=1/0,qt=!1,hn=0,ir=0;return rn.Eo(a,y,ot,ft,b,x,Ht,Zt,he,ge,Se,ke,Ge,et)&&(a=(et.x-he)*(et.x-he)+(et.y-ge)*(et.y-ge),a<Jt&&(Jt=a,qt=!0,hn=et.x,ir=et.y)),rn.Eo(Ht,Zt,jt,Dt,E,te,ne,se,he,ge,Se,ke,Ge,et)&&(et.x-he)*(et.x-he)+(et.y-ge)*(et.y-ge)<Jt&&(qt=!0,hn=et.x,ir=et.y),qt&&(et.x=hn,et.y=ir),qt},Fo:function(a,y,x,b,E,te,ne,se,he,ge,Se,ke,Ge){var et=0;if(rn.Yb(a,y,ne,se,Ge,x,b)&&rn.Yb(a,y,ne,se,Ge,E,te)){if(Ge=(a-ne)*(ge-ke)-(y-se)*(he-Se),Ge===0)return et;var ot=((a*se-y*ne)*(he-Se)-(a-ne)*(he*ke-ge*Se))/Ge,ft=((a*se-y*ne)*(ge-ke)-(y-se)*(he*ke-ge*Se))/Ge;if(ot>=Se)return et;if((he>Se?he-Se:Se-he)<(ge>ke?ge-ke:ke-ge)){if(y<se?(he=y,a=se):(he=se,a=y),ft<he||ft>a)return et}else if(a<ne?(he=a,a=ne):he=ne,ot<he||ot>a)return et;0<Ge?et++:0>Ge&&et--}else{ot=(a+x)/2,ft=(y+b)/2;var jt=(x+E)/2,Dt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(ot+jt)/2,x=(ft+Dt)/2,jt=(jt+E)/2,Dt=(Dt+te)/2;var Ht=(b+jt)/2,Zt=(x+Dt)/2;et+=rn.Fo(a,y,ot,ft,b,x,Ht,Zt,he,ge,Se,ke,Ge),et+=rn.Fo(Ht,Zt,jt,Dt,E,te,ne,se,he,ge,Se,ke,Ge)}return et},qh:function(a,y,x,b,E,te,ne){return rn.$(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)):rn.$(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 rn.B(a,x)&&rn.B(y,b)?(he.h(a,y),!1):rn.$(E,ne)?rn.$(a,x)?(rn.qh(a,y,x,b,E,te,he),!1):rn.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,he):(se=(se-te)/(ne-E),rn.$(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),rn.$(se,ne)?(rn.qh(a,y,x,b,E,te,he),!1):(E=(ne*a-se*E+te-y)/(ne-se),rn.$(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)):rn.qh(a,y,x,b,E,ne*(E-a)+y,he))))},MA:function(a,y,x,b,E){return rn.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,ge){function Se(jt,Dt){var Ht=(jt-a)*(jt-a)+(Dt-y)*(Dt-y);Ht<ke&&(ke=Ht,he.h(jt,Dt))}var ke=1/0;Se(he.x,he.y);var Ge=0,et=0,ot=0,ft=0;if(E<ne?(Ge=E,et=ne):(Ge=ne,et=E),te<se?(ot=E,ft=ne):(ot=ne,ft=E),Ge=(et-Ge)/2+ge,ge=(ft-ot)/2+ge,E=(E+ne)/2,te=(te+se)/2,Ge===0||ge===0)return he;if(.5>(x>a?x-a:a-x)){if(Ge=1-(x-E)*(x-E)/(Ge*Ge),0>Ge)return he;Ge=Math.sqrt(Ge),b=-ge*Ge+te,Se(x,ge*Ge+te),Se(x,b)}else{if(x=(b-y)/(x-a),b=1/(Ge*Ge)+x*x/(ge*ge),se=2*x*(y-x*a)/(ge*ge)-2*x*te/(ge*ge)-2*E/(Ge*Ge),Ge=se*se-4*b*(2*x*a*te/(ge*ge)-2*y*te/(ge*ge)+te*te/(ge*ge)+E*E/(Ge*Ge)-1+(y-x*a)*(y-x*a)/(ge*ge)),0>Ge)return he;Ge=Math.sqrt(Ge),ge=(-se+Ge)/(2*b),Se(ge,x*ge-x*a+y),Ge=(-se-Ge)/(2*b),Se(Ge,x*Ge-x*a+y)}return he},Ff:function(a,y,x,b,E,te,ne,se,he){var ge=1e21,Se=a,ke=y;if(rn.Ve(a,y,a,b,E,te,ne,se,he)){var Ge=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te);Ge<ge&&(ge=Ge,Se=he.x,ke=he.y)}return rn.Ve(x,y,x,b,E,te,ne,se,he)&&(Ge=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),Ge<ge&&(ge=Ge,Se=he.x,ke=he.y)),rn.Ve(a,y,x,y,E,te,ne,se,he)&&(y=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),y<ge&&(ge=y,Se=he.x,ke=he.y)),rn.Ve(a,b,x,b,E,te,ne,se,he)&&(a=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),a<ge&&(ge=a,Se=he.x,ke=he.y)),he.h(Se,ke),1e21>ge},us:function(a,y,x){return rn.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,ge=y+b;return E===ne?(te<se?(ne=te,te=se):ne=se,a<=E&&E<=he&&ne<=ge&&te>=y):te===se?(E<ne?(se=E,E=ne):se=ne,y<=te&&te<=ge&&se<=he&&E>=a):!!(Bo(a,y,x,b,E,te)||Bo(a,y,x,b,ne,se)||rn.Rl(a,y,he,y,E,te,ne,se)||rn.Rl(he,y,he,ge,E,te,ne,se)||rn.Rl(he,ge,a,ge,E,te,ne,se)||rn.Rl(a,ge,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>=rn.Fl(a,y,x,b,E,te)*rn.Fl(a,y,x,b,ne,se)&&0>=rn.Fl(E,te,ne,se,a,y)*rn.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,ge=b;if(b=Math.min(2*ne,Math.abs(E-b)),1e-5>b)return he=ge+se*Math.min(b,he),se=a+x*Math.cos(ge),ge=y+x*Math.sin(ge),a+=x*Math.cos(he),y+=x*Math.sin(he),x=(se+a)/2,he=(ge+y)/2,te.push([se,ge,x,he,x,he,a,y]),te;for(;1e-5<b;)E=ge+se*Math.min(b,he),te.push(rn.Vy(x,ge,E,a,y)),b-=Math.abs(E-ge),ge=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,ge=ne*ne+he*he,Se=ge+ne*ne+he*se;return ge=4/3*(Math.sqrt(2*ge*Se)-Se)/(ne*se-he*ne),se=ne-ge*he,ne=he+ge*ne,he=-ne,ge=te+y,te=Math.cos(ge),ge=Math.sin(ge),[b+a*Math.cos(y),E+a*Math.sin(y),b+se*te-ne*ge,E+se*ge+ne*te,b+se*te-he*ge,E+se*ge+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,ge=ne===0?x:b;return(ne===0?E:te)&&(ge=-ge),ne=se,x=ne===0?x:b,(ne===0?E:te)&&(x=-x),rn.az(he,ne===0?a:y,ge,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 ge=0;9999999999>ge&&(y=.5*(se+he),!(y===se||y===he));++ge){var Se=a/(y+E),ke=ne/(y+te);if(Se=Se*Se+ke*ke-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 Fr,um:new Fr,Mf:new Fr,Nf:0,vm:100};rn.za=rn.AA;function $n(a){ci(this),this.l=2,a===void 0&&(a=$n.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===$n.o?this.ee=new Dn:($n.V===null&&($n.V=new Dn().freeze()),this.ee=$n.V),this.aq=this.ee.Ja,this.Ip=new Mn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Xa,this.gg=ks,this.Rk=this.Sk=NaN,this.Uf=Vn}$n.prototype.copy=function(){var a=new $n;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===$n.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},$n.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},$n.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==$n.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},$n.prototype.ka=function(){if(Object.isFrozen(this)&&Gt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==$n.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},$n.prototype.Xa=function(a){if(!(a instanceof $n))return!1;if(this.type!==a.type)return this.type===$n.j&&a.type===$n.o?Cd(this,a):a.type===$n.j&&this.type===$n.o?Cd(a,this):!1;if(this.type===$n.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 rn.B(this.startX,a.startX)&&rn.B(this.startY,a.startY)&&rn.B(this.endX,a.endX)&&rn.B(this.endY,a.endY)};function Cd(a,y){return a.type!==$n.j||y.type!==$n.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&rn.B(a.startX,y.startX)&&rn.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Mo&&rn.B(a.endX,y.endX)&&rn.B(a.endY,y.endY))))}$n.ia=function(a){return a.toString()},$n.prototype.qb=function(a){a.classType===$n&&(this.type=a)},$n.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case $n.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 $n.u:var y=new Mn(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 $n.F:if(y=new Mn(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 $n.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()}},$n.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},$n.parse=function(a,y){function x(){return ft>=Jt-1?!0:ge[ft+1].match(qt)!==null}function b(){return ft++,ge[ft]}function E(ei){var Yr=parseFloat(b()),Ji=parseFloat(b());jt===jt.toLowerCase()&&(Yr=Zt.x+Yr,Ji=Zt.y+Ji),ei.h(Yr,Ji)}function te(){return E(Zt),Zt}function ne(){return E(Ht),Ht}function se(){var ei=Dt.toLowerCase();return ei!=="c"&&ei!=="s"&&ei!=="q"&&ei!=="t"?Zt:new kt(2*Zt.x-Ht.x,2*Zt.y-Ht.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 ge=a.split(" ");for(a=0;a<ge.length;a++){var Se=ge[a];if(Se.match(/(\.[0-9]*)(\.)/gm)!==null){he=vn();for(var ke="",Ge=!1,et=0;et<Se.length;et++){var ot=Se[et];ot!=="."||Ge?ot==="."?(he.push(ke),ke="."):ke+=ot:(Ge=!0,ke+=ot)}for(he.push(ke),ge.splice(a,1),Se=0;Se<he.length;Se++)ge.splice(a+Se,0,he[Se]);a+=he.length-1,Ln(he)}}var ft=-1,jt="",Dt="";he=new kt(0,0);var Ht=new kt(0,0),Zt=new kt(0,0),Jt=ge.length;a=D1(null),Ge=ke=Se=!1,et=!0,ot=null;for(var qt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ft>=Jt-1);)if(Dt=jt,jt=b(),jt!=="")switch(jt.toUpperCase()){case"X":et=!0,ke=Se=!1;break;case"M":for(ot=te(),a.mc===null||et===!0?(yp(a,ot.x,ot.y,Se,!ke,Ge),et=!1):a.moveTo(ot.x,ot.y),he.assign(Zt);!x();)ot=te(),a.lineTo(ot.x,ot.y);break;case"L":for(;!x();)ot=te(),a.lineTo(ot.x,ot.y);break;case"H":for(;!x();)Zt=new kt((jt===jt.toLowerCase()?Zt.x:0)+parseFloat(b()),Zt.y),a.lineTo(Zt.x,Zt.y);break;case"V":for(;!x();)Zt=new kt(Zt.x,(jt===jt.toLowerCase()?Zt.y:0)+parseFloat(b())),a.lineTo(Zt.x,Zt.y);break;case"C":for(;!x();){ot=new kt,E(ot);var hn=ne(),ir=te();Eh(a,ot.x,ot.y,hn.x,hn.y,ir.x,ir.y)}break;case"S":for(;!x();)ot=se(),hn=ne(),ir=te(),Eh(a,ot.x,ot.y,hn.x,hn.y,ir.x,ir.y);break;case"Q":for(;!x();)ot=ne(),hn=te(),Um(a,ot.x,ot.y,hn.x,hn.y);break;case"T":for(;!x();)Ht=ot=se(),hn=te(),Um(a,ot.x,ot.y,hn.x,hn.y);break;case"B":for(;!x();){ot=parseFloat(b()),hn=parseFloat(b()),ir=parseFloat(b());var mr=parseFloat(b()),hr=parseFloat(b()),Qn=hr,Bn=!1;x()||(Qn=parseFloat(b()),x()||(Bn=parseFloat(b())!==0)),jt===jt.toLowerCase()&&(ir+=Zt.x,mr+=Zt.y),a.arcTo(ot,hn,ir,mr,hr,Qn,Bn)}break;case"A":for(;!x();)ot=Math.abs(parseFloat(b())),hn=Math.abs(parseFloat(b())),ir=parseFloat(b()),hr=mr=!1,Bn=Qn=0,Qn=b(),Qn.length===1?(mr=!!parseFloat(Qn),hr=!!parseFloat(b()),Qn=parseFloat(b())):Qn.length===2?(mr=!!parseFloat(Qn[0]),hr=!!parseFloat(Qn[1]),Qn=parseFloat(b())):(mr=!!parseFloat(Qn[0]),hr=!!parseFloat(Qn[1]),Qn=parseFloat(Qn.slice(2))),Bn=parseFloat(b()),jt===jt.toLowerCase()&&(Qn=Zt.x+Qn,Bn=Zt.y+Bn),Zt.h(Qn,Bn),Cx(a,ot,hn,ir,mr,hr,Qn,Bn);break;case"Z":bx(a),Zt.assign(he);break;case"F":for(ot="",hn=1;ge[ft+hn];)if(ge[ft+hn]==="0")Ge=!0,hn++;else if(ge[ft+hn].match(/[Uu]/)!==null)hn++;else if(ge[ft+hn].match(qt)===null)hn++;else{ot=ge[ft+hn];break}ot.match(/[Mm]/)?Se=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(ot="",hn=1;ge[ft+hn];)if(ge[ft+hn].match(/[Ff]/)!==null)hn++;else if(ge[ft+hn].match(qt)===null)hn++;else{ot=ge[ft+hn];break}ot.match(/[Mm]/)?ke=!0:a.mc.isShadowed=!1}if(he=a.os,Gm=a,y)for(y=he.figures.iterator;y.next();)y.value.isFilled=!0;return he},$n.Ha=function(a,y){for(var x=a.length,b=kt.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}kt.free(b)},$n.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===$n.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},$n.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===$n.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),eo(a,0,0,0,0),a.freeze()},$n.prototype.ix=function(){var a=new Mn;return af(this,a,!0),a};function af(a,y,x){switch(a.type){case $n.j:case $n.u:case $n.F:x?y.h(a.od,a.pd,0,0):eo(y,a.od,a.pd,0,0),eo(y,a.Dc,a.Ec,0,0);break;case $n.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):eo(y,te.startX,te.startY,0,0);for(var ne=te.segments.s,se=ne.length,he=te.startX,ge=te.startY,Se=0;Se<se;Se++){var ke=ne[Se];switch(ke.type){case Mo:case xa:he=ke.endX,ge=ke.endY,eo(y,he,ge,0,0);break;case ss:rn.Dl(he,ge,ke.point1X,ke.point1Y,ke.point2X,ke.point2Y,ke.endX,ke.endY,.5,y),he=ke.endX,ge=ke.endY;break;case Pl:rn.iv(he,ge,ke.point1X,ke.point1Y,ke.endX,ke.endY,.5,y),he=ke.endX,ge=ke.endY;break;case ma:case zl:var Ge=ke.type===ma?rl(ke,te):Hs(ke,te,he,ge),et=Ge.length;if(et===0){he=ke.type===ma?ke.centerX:ke.endX,ge=ke.type===ma?ke.centerY:ke.endY,eo(y,he,ge,0,0);break}ke=null;for(var ot=0;ot<et;ot++)ke=Ge[ot],rn.Dl(ke[0],ke[1],ke[2],ke[3],ke[4],ke[5],ke[6],ke[7],.5,y);ke!==null&&(he=ke[6],ge=ke[7]);break;default:Gt("Unknown Segment type: "+ke.type)}}}break;default:Gt("Unknown Geometry type: "+a.type)}}$n.prototype.normalize=function(){this._isFrozen&&An(this);var a=this.ix();return this.offset(-a.x,-a.y),new kt(-a.x,-a.y)},$n.prototype.offset=function(a,y){return this._isFrozen&&An(this),this.transform(1,0,0,1,a,y),this},$n.prototype.scale=function(a,y){return this._isFrozen&&An(this),this.transform(a,0,0,y,0,0),this},$n.prototype.rotate=function(a,y,x){this._isFrozen&&An(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},it=$n.prototype,it.transform=function(a,y,x,b,E,te){switch(this.type){case $n.j:case $n.u:case $n.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 $n.o:for(var he=this.figures.s,ge=he.length,Se=0;Se<ge;Se++){var ke=he[Se];ne=ke.startX,se=ke.startY,ke.startX=ne*a+se*x+E,ke.startY=ne*y+se*b+te,ke=ke.segments.s;for(var Ge=ke.length,et=0;et<Ge;et++){var ot=ke[et];switch(ot.type){case Mo:case xa:ne=ot.endX,se=ot.endY,ot.endX=ne*a+se*x+E,ot.endY=ne*y+se*b+te;break;case ss:ne=ot.point1X,se=ot.point1Y,ot.point1X=ne*a+se*x+E,ot.point1Y=ne*y+se*b+te,ne=ot.point2X,se=ot.point2Y,ot.point2X=ne*a+se*x+E,ot.point2Y=ne*y+se*b+te,ne=ot.endX,se=ot.endY,ot.endX=ne*a+se*x+E,ot.endY=ne*y+se*b+te;break;case Pl:ne=ot.point1X,se=ot.point1Y,ot.point1X=ne*a+se*x+E,ot.point1Y=ne*y+se*b+te,ne=ot.endX,se=ot.endY,ot.endX=ne*a+se*x+E,ot.endY=ne*y+se*b+te;break;case ma:ne=ot.centerX,se=ot.centerY,ot.centerX=ne*a+se*x+E,ot.centerY=ne*y+se*b+te,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),ot.startAngle+=ne),0>a&&(ot.startAngle=180-ot.startAngle,ot.sweepAngle=-ot.sweepAngle),0>b&&(ot.startAngle=-ot.startAngle,ot.sweepAngle=-ot.sweepAngle),ot.radiusX*=Math.sqrt(a*a+x*x),ot.radiusY!==void 0&&(ot.radiusY*=Math.sqrt(y*y+b*b));break;case zl:if(ne=ot.endX,se=ot.endY,ot.endX=ne*a+se*x+E,ot.endY=ne*y+se*b+te,ot.radiusX===0||ot.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),ot.xAxisRotation+=ne),0>a&&(ot.xAxisRotation=180-ot.xAxisRotation,ot.isClockwiseArc=!ot.isClockwiseArc),0>b&&(ot.xAxisRotation=-ot.xAxisRotation,ot.isClockwiseArc=!ot.isClockwiseArc),ot.radiusX*=Math.sqrt(a*a+x*x),ot.radiusY*=Math.sqrt(y*y+b*b);break;default:Gt("Unknown Segment type: "+ot.type)}}}}return this._isInvalidBounds=!0,this},it.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 $n.j:return rn.Yb(x,b,E,te,y,a.x,a.y);case $n.u:var ne=Mn.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),Mn.free(ne),a;case $n.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 $n.o:return Hu(this,a,y,!0,!1);default:return!1}};function Hu(a,y,x,b,E){var te=y.x;y=y.y;for(var ne=a.bounds.x-20,se=0,he,ge,Se,ke,Ge=a.figures.s,et=Ge.length,ot=0;ot<et;ot++){var ft=Ge[ot],jt=!ft.isEvenOdd;if(ft.isFilled){if(b&&ft.ca(te,y,x))return!0;var Dt=ft.segments;he=ft.startX,ge=ft.startY;for(var Ht=he,Zt=ge,Jt=Dt.s,qt=0;qt<=Dt.length;qt++){var hn=void 0;if(qt!==Dt.length){hn=Jt[qt];var ir=hn.type;a=hn.endX,ke=hn.endY}else ir=Mo,a=Ht,ke=Zt;switch(ir){case xa:if(Ht=Uu(te,y,ne,y,he,ge,Ht,Zt),isNaN(Ht))return!0;se+=Ht,Ht=a,Zt=ke;break;case Mo:if(he=Uu(te,y,ne,y,he,ge,a,ke),isNaN(he))return!0;se+=he;break;case ss:Se=rn.Fo(he,ge,hn.point1X,hn.point1Y,hn.point2X,hn.point2Y,a,ke,ne,y,te,y,.5),se+=Se;break;case Pl:Se=rn.Fo(he,ge,(he+2*hn.point1X)/3,(ge+2*hn.point1Y)/3,(2*hn.point1X+a)/3,(2*hn.point1Y+ke)/3,a,ke,ne,y,te,y,.5),se+=Se;break;case ma:case zl:ir=hn.type===ma?rl(hn,ft):Hs(hn,ft,he,ge);var mr=ir.length;if(mr===0){if(he=Uu(te,y,ne,y,he,ge,hn.type===ma?hn.centerX:hn.endX,hn.type===ma?hn.centerY:hn.endY),isNaN(he))return!0;se+=he;break}hn=null;for(var hr=0;hr<mr;hr++){if(hn=ir[hr],hr===0){if(Se=Uu(te,y,ne,y,he,ge,hn[0],hn[1]),isNaN(Se))return!0;se+=Se}Se=rn.Fo(hn[0],hn[1],hn[2],hn[3],hn[4],hn[5],hn[6],hn[7],ne,y,te,y,.5),se+=Se}hn!==null&&(a=hn[6],ke=hn[7]);break;default:Gt("Unknown Segment type: "+hn.type)}he=a,ge=ke}if(jt){if(se!==0)return!0}else if(se%2!==0)return!0;se=0}else if(ft.ca(te,y,E?x:x+2))return!0}return!1}function Uu(a,y,x,b,E,te,ne,se){if(rn.Yb(E,te,ne,se,.05,a,y))return NaN;var he=(a-x)*(te-se);if(he===0)return 0;var ge=((a*b-y*x)*(E-ne)-(a-x)*(E*se-te*ne))/he;if(y=(a*b-y*x)*(te-se)/he,ge>=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(ge<E||ge>ne)return 0}else if(ge<ne||ge>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}it.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new kt),this.type===$n.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],ge=he.length;for(a=0;a<ge;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},it.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===$n.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 ge=se[a];if(te+ge>=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+=ge}}return NaN},it.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===$n.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],ge=he.length;for(a=0;a<ge;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},it.xx=function(a){if(this.type===$n.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=kt.alloc();return rn.qh(y,x,b,E,te,a,se),a=se.x,te=se.y,kt.free(se),Math.sqrt(((a-y)*(a-y)+(te-x)*(te-x))/ne)}}else if(this.type===$n.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 ge=Math.min(ne,he,se,E);if(ge===se)return b/te;if(ge===he)return(y+a)/te;if(ge===E)return(2*y+x-b)/te;if(ge===ne)return(2*y+2*x-a)/te}}else{y=this.flattenedSegments,x=this.flattenedLengths,te=this.flattenedTotalLength,b=kt.alloc(),E=1/0,se=ne=0,he=y.length;for(var Se=ge=0,ke=0;ke<he;ke++)for(var Ge=y[ke],et=x[ke],ot=Ge.length,ft=0;ft<ot;ft+=2){var jt=Ge[ft],Dt=Ge[ft+1];if(ft!==0){rn.qh(ge,Se,jt,Dt,a.x,a.y,b);var Ht=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Ht<E&&(E=Ht,ne=se,ne+=Math.sqrt((b.x-ge)*(b.x-ge)+(b.y-Se)*(b.y-Se))),se+=et[(ft-2)/2]}ge=jt,Se=Dt}return kt.free(b),a=ne/te,0>a?0:1<a?1:a}return 0};function Pd(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===$n.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===$n.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===$n.F){var te=new Ga;te.startX=a.endX,te.startY=(a.startY+a.endY)/2;var ne=new Zi(ma);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];rn.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 ge=E.segments.s,Se=ge.length,ke=0;ke<Se;ke++){var Ge=ge[ke];switch(Ge.type){case xa:4<=b.length&&(y.push(b),x.push(ph(b))),b=[],b.push(Ge.endX),b.push(Ge.endY),ne=Ge.endX,te=Ge.endY,se=ne,he=te;break;case Mo:b.push(Ge.endX),b.push(Ge.endY),ne=Ge.endX,te=Ge.endY;break;case ss:rn.Qe(ne,te,Ge.point1X,Ge.point1Y,Ge.point2X,Ge.point2Y,Ge.endX,Ge.endY,.5,b),ne=Ge.endX,te=Ge.endY;break;case Pl:rn.ep(ne,te,Ge.point1X,Ge.point1Y,Ge.endX,Ge.endY,.5,b),ne=Ge.endX,te=Ge.endY;break;case ma:var et=rl(Ge,E),ot=et.length;if(ot===0){b.push(Ge.centerX),b.push(Ge.centerY),ne=Ge.centerX,te=Ge.centerY;break}for(var ft=0;ft<ot;ft++){var jt=et[ft];rn.Qe(ne,te,jt[2],jt[3],jt[4],jt[5],jt[6],jt[7],.5,b),ne=jt[6],te=jt[7]}break;case zl:if(et=Hs(Ge,E,ne,te),ot=et.length,ft=Ge.endX,jt=Ge.endY,ot===0){b.push(ft),b.push(jt),ne=ft,te=jt;break}for(ft=0;ft<ot;ft++)jt=et[ft],rn.Qe(ne,te,jt[2],jt[3],jt[4],jt[5],jt[6],jt[7],.5,b),ne=jt[6],te=jt[7];break;default:Gt("Segment not of valid type: "+Ge.type)}Ge.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(Po(x,b,ne,se))),x=ne,b=se}return y}it.add=function(a){return this.ee.add(a),this},it.pm=function(a,y,x,b,E,te,ne,se){return this._isFrozen&&An(this),this.fg=new wr(a,y,E,te).freeze(),this.gg=new wr(x,b,ne,se).freeze(),this},Tt.Object.defineProperties($n.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 Pd(this),this.tk}},flattenedLengths:{get:function(){return Pd(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===$n.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===$n.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&&An(this,a),this.na=a,a===$n.o?this.ee=new Dn:($n.V===null&&($n.V=new Dn().freeze()),this.ee=$n.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&An(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&An(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&An(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&An(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&An(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&An(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&An(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&An(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),$n.prototype.setSpots=$n.prototype.pm,$n.prototype.add=$n.prototype.add,$n.prototype.getFractionForPoint=$n.prototype.xx,$n.prototype.getPointAndAngleAlongPath=$n.prototype.Qu,$n.prototype.getAngleAlongPath=$n.prototype.wx,$n.prototype.getPointAlongPath=$n.prototype.Pu,$n.prototype.containsPoint=$n.prototype.ca,$n.prototype.transform=$n.prototype.transform,$n.prototype.rotate=$n.prototype.rotate,$n.prototype.scale=$n.prototype.scale,$n.prototype.offset=$n.prototype.offset,$n.prototype.normalize=$n.prototype.normalize,$n.prototype.computeBoundsWithoutOrigin=$n.prototype.ix,$n.prototype.equalsApprox=$n.prototype.Xa,$n.className="Geometry",$n.j=new wn($n,"Line",0),$n.u=new wn($n,"Rectangle",1),$n.F=new wn($n,"Ellipse",2),$n.o=new wn($n,"Path",3),$n.V=null,$n.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",$n.className="Geometry",$n.stringify=$n.ia,$n.fillPath=$n.nb,$n.parse=$n.parse,$n.Line=$n.j,$n.Rectangle=$n.u,$n.Ellipse=$n.F,$n.Path=$n.o;function Ga(a,y,x,b,E){ci(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 Dn,this.sr=this.pl.Ja,this.fw=null}Ga.prototype.copy=function(){var a=new Ga;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},it=Ga.prototype,it.Xa=function(a){if(!(a instanceof Ga&&rn.B(this.startX,a.startX)&&rn.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},it.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},it.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},it.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},it.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},it.add=function(a){return this.pl.add(a),this},it.ca=function(a,y,x){for(var b=this.startX,E=this.startY,te=b,ne=E,se=this.segments.s,he=se.length,ge=0;ge<he;ge++){var Se=se[ge];switch(Se.type){case xa:te=Se.endX,ne=Se.endY,b=Se.endX,E=Se.endY;break;case Mo:if(rn.Yb(b,E,Se.endX,Se.endY,x,a,y))return!0;b=Se.endX,E=Se.endY;break;case ss:if(rn.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 Pl:if(rn.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 ma:case zl:var ke=Se.type===ma?rl(Se,this):Hs(Se,this,b,E),Ge=ke.length,et=Se.type===ma?Se.centerX:Se.endX,ot=Se.type===ma?Se.centerY:Se.endY;if(Ge===0){if(rn.Yb(b,E,et,ot,x,a,y))return!0;b=et,E=ot;break}for(et=null,ot=0;ot<Ge;ot++)if(et=ke[ot],ot===0&&rn.Yb(b,E,et[0],et[1],x,a,y)||rn.cs(et[0],et[1],et[2],et[3],et[4],et[5],et[6],et[7],.5,a,y,x))return!0;et!==null&&(b=et[6],E=et[7]);break;default:Gt("Unknown Segment type: "+Se.type)}if(Se.isClosed&&(b!==te||E!==ne)&&rn.Yb(b,E,te,ne,x,a,y))return!0}return!1},Tt.Object.defineProperties(Ga.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&&An(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&An(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&An(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&An(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&An(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&An(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Ga.prototype.add=Ga.prototype.add,Ga.prototype.equalsApprox=Ga.prototype.Xa,Ga.className="PathFigure";function Zi(a,y,x,b,E,te,ne,se){ci(this),a===void 0&&(a=Mo),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===zl?(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===ma&&(te=Math.max(te,0)),this.Wh=te,typeof ne=="number"?(a===ma&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}Zi.prototype.copy=function(){var a=new Zi;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},it=Zi.prototype,it.Xa=function(a){if(!(a instanceof Zi)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case xa:case Mo:return rn.B(this.endX,a.endX)&&rn.B(this.endY,a.endY);case ss:return rn.B(this.endX,a.endX)&&rn.B(this.endY,a.endY)&&rn.B(this.point1X,a.point1X)&&rn.B(this.point1Y,a.point1Y)&&rn.B(this.point2X,a.point2X)&&rn.B(this.point2Y,a.point2Y);case Pl:return rn.B(this.endX,a.endX)&&rn.B(this.endY,a.endY)&&rn.B(this.point1X,a.point1X)&&rn.B(this.point1Y,a.point1Y);case ma:return rn.B(this.startAngle,a.startAngle)&&rn.B(this.sweepAngle,a.sweepAngle)&&rn.B(this.centerX,a.centerX)&&rn.B(this.centerY,a.centerY)&&rn.B(this.radiusX,a.radiusX)&&rn.B(this.radiusY,a.radiusY);case zl:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&rn.B(this.xAxisRotation,a.xAxisRotation)&&rn.B(this.endX,a.endX)&&rn.B(this.endY,a.endY)&&rn.B(this.radiusX,a.radiusX)&&rn.B(this.radiusY,a.radiusY);default:return!1}},it.qb=function(a){a.classType===Zi&&(this.type=a)},it.toString=function(a){switch(a===void 0&&(a=-1),this.type){case xa:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Mo: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 Pl: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 ma: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 zl: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":"")},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.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=rn.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),$n.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 Hs(a,y,x,b){function E(ft,jt,Dt,Ht){return(ft*Ht<jt*Dt?-1:1)*Math.acos((ft*Dt+jt*Ht)/(Math.sqrt(ft*ft+jt*jt)*Math.sqrt(Dt*Dt+Ht*Ht)))}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,ge=a.Dc,Se=a.Ec,ke=Math.cos(ne),Ge=Math.sin(ne),et=ke*(x-ge)/2+Ge*(b-Se)/2;ne=-Ge*(x-ge)/2+ke*(b-Se)/2;var ot=et*et/(y*y)+ne*ne/(te*te);return 1<ot&&(y*=Math.sqrt(ot),te*=Math.sqrt(ot)),ot=(se===he?-1:1)*Math.sqrt((y*y*te*te-y*y*ne*ne-te*te*et*et)/(y*y*ne*ne+te*te*et*et)),isNaN(ot)&&(ot=0),se=ot*y*ne/te,ot=ot*-te*et/y,isNaN(se)&&(se=0),isNaN(ot)&&(ot=0),x=(x+ge)/2+ke*se-Ge*ot,b=(b+Se)/2+Ge*se+ke*ot,Se=E(1,0,(et-se)/y,(ne-ot)/te),ke=(et-se)/y,ge=(ne-ot)/te,et=(-et-se)/y,se=(-ne-ot)/te,ne=E(ke,ge,et,se),et=(ke*et+ge*se)/(Math.sqrt(ke*ke+ge*ge)*Math.sqrt(et*et+se*se)),-1>=et?ne=Math.PI:1<=et&&(ne=0),!he&&0<ne&&(ne-=2*Math.PI),he&&0>ne&&(ne+=2*Math.PI),he=y>te?1:y/te,et=y>te?te/y:1,y=rn.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,et),$n.Ha(y,te),gi.free(te),a.ae=y,a.ae}Tt.Object.defineProperties(Zi.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&&An(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&An(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&An(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&An(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&An(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&An(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&An(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&An(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&An(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Kn(a,">= zero",Zi,"radiusX"),this._isFrozen&&An(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Kn(a,">= zero",Zi,"radiusY"),this._isFrozen&&An(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&An(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&&An(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&&An(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&&An(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&&An(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Zi.prototype.equalsApprox=Zi.prototype.Xa;var xa=new wn(Zi,"Move",0),Mo=new wn(Zi,"Line",1),ss=new wn(Zi,"Bezier",2),Pl=new wn(Zi,"QuadraticBezier",3),ma=new wn(Zi,"Arc",4),zl=new wn(Zi,"SvgArc",4);Zi.className="PathSegment",Zi.Move=xa,Zi.Line=Mo,Zi.Bezier=ss,Zi.QuadraticBezier=Pl,Zi.Arc=ma,Zi.SvgArc=zl;function bs(){this.H=null,this.xu=new kt(0,0).freeze(),this.mt=new kt(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}bs.prototype.copy=function(){var a=new bs;return this.clone(a)},bs.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},bs.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},bs.prototype.So=function(a,y){var x=this.diagram;return x===null||Od(x,a,y),y},bs.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Od(x,a,y),y.assign(x.Ps(y))),y},Tt.Object.defineProperties(bs.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}}}),bs.prototype.getMultiTouchDocumentPoint=bs.prototype.Bz,bs.prototype.getMultiTouchViewPoint=bs.prototype.So,bs.className="InputEvent";function Vc(){this.H=null,this.xa="",this.ar=this.Lr=null}Vc.prototype.copy=function(){var a=new Vc;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Vc.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Tt.Object.defineProperties(Vc.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}}}),Vc.className="DiagramEvent";function Zo(){this.Fm=Ko,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Zo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Zo.prototype.copy=function(){var a=new Zo;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=xn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=xn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=xn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=xn(y)&&typeof y.J=="function"?y.J():y,a},Zo.prototype.qb=function(a){a.classType===Zo&&(this.change=a)},Zo.prototype.toString=function(){var a="";return a=this.change===il?a+"* ":this.change===Ko?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+=Gn(this.object)),this.oldValue!==null&&(a+=" old: "+Gn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Gn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Zo.prototype.I=function(a){return a?this.oldValue:this.newValue},Zo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Zo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Zo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Zo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Zo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Tt.Object.defineProperties(Zo.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}}}),Zo.prototype.redo=Zo.prototype.redo,Zo.prototype.canRedo=Zo.prototype.canRedo,Zo.prototype.undo=Zo.prototype.undo,Zo.prototype.canUndo=Zo.prototype.canUndo,Zo.prototype.getParam=Zo.prototype.Dz,Zo.prototype.getValue=Zo.prototype.I,Zo.prototype.clear=Zo.prototype.clear;var il=new wn(Zo,"Transaction",-1),Ko=new wn(Zo,"Property",0),fa=new wn(Zo,"Insert",1),Oa=new wn(Zo,"Remove",2);Zo.className="ChangedEvent",Zo.Transaction=il,Zo.Property=Ko,Zo.Insert=fa,Zo.Remove=Oa;function Ja(){this.o=new Dn().freeze(),this.xa="",this.j=!1}Ja.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},Ja.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()},Ja.prototype.canUndo=function(){return this.isComplete},Ja.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()}},Ja.prototype.canRedo=function(){return this.isComplete},Ja.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()}},Ja.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new pr,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Ko&&b.object){var E=y.get(b.object);E||(E=new pr,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()}},Tt.Object.defineProperties(Ja.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}}}),Ja.prototype.optimize=Ja.prototype.ak,Ja.prototype.redo=Ja.prototype.redo,Ja.prototype.canRedo=Ja.prototype.canRedo,Ja.prototype.undo=Ja.prototype.undo,Ja.prototype.canUndo=Ja.prototype.canUndo,Ja.prototype.clear=Ja.prototype.clear,Ja.className="Transaction";function Yo(){this.Pt=new kn,this.Jd=!1,this.u=new Dn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Dn().freeze(),this.hl=new Dn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Yo.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},Yo.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},Yo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},it=Yo.prototype,it.Xw=function(a){this.Pt.add(a)},it.Rx=function(a){this.Pt.remove(a)},it.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},it.eb=function(a){return a===void 0&&(a=""),Xc(this,!0,a)},it.Kf=function(){return Xc(this,!1,"")};function Xc(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&rr("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}it.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()}},Yo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Yo.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){rr("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Yo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Yo.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){rr("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Yo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Zo;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)},Yo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ja);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||rr("Change not within a transaction: "+x.toString()))}},Yo.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},Tt.Object.defineProperties(Yo.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}}}),Yo.prototype.handleChanged=Yo.prototype.Tu,Yo.prototype.redo=Yo.prototype.redo,Yo.prototype.undo=Yo.prototype.undo,Yo.prototype.canUndo=Yo.prototype.canUndo,Yo.prototype.discardHistoryAfterIndex=Yo.prototype.lx,Yo.prototype.rollbackTransaction=Yo.prototype.Kf,Yo.prototype.commitTransaction=Yo.prototype.eb,Yo.prototype.startTransaction=Yo.prototype.Ea,Yo.prototype.removeModel=Yo.prototype.Rx,Yo.prototype.addModel=Yo.prototype.Xw,Yo.prototype.clear=Yo.prototype.clear,Yo.className="UndoManager";function Ui(){ci(this),this.H=Xu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new bs,this.Zr=-1}Ui.prototype.toString=function(){return this.name!==""?this.name+" Tool":Fn(this.constructor)},Ui.prototype.updateAdornments=function(){},Ui.prototype.canStart=function(){return this.isEnabled},Ui.prototype.doStart=function(){},Ui.prototype.doActivate=function(){this.isActive=!0},Ui.prototype.doDeactivate=function(){this.isActive=!1},Ui.prototype.doStop=function(){},Ui.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ui.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Ui.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ui.prototype.doMouseMove=function(){},Ui.prototype.doMouseUp=function(){this.stopTool()},Ui.prototype.doMouseWheel=function(){},Ui.prototype.canStartMultiTouch=function(){return!0},Ui.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,kt.allocAt(NaN,NaN)),b=y.So(1,kt.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}kt.free(x),kt.free(b)},Ui.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,kt.allocAt(NaN,NaN)),b=y.So(1,kt.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 kt((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}kt.free(x),kt.free(b)},Ui.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ui.prototype.doKeyUp=function(){},Ui.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Ui.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Ui.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(zr?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||(zr?y.meta:y.control)||y.shift||a.clearSelection()}},Ui.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,Gf(a,b,x),b.handled};function Gf(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)}}}Ui.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}},Ui.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Ui.prototype.doCurrentObjectChanged=function(){},Ui.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===Kh&&!y.shift||E===Zh&&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===Kh&&y.shift||E===Zh&&!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)}}},Ui.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Ui.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=On(function(){x.doWaitAfter(b)},a)},Ui.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Bt.clearTimeout(this.Zr),this.Zr=-1},Ui.prototype.doWaitAfter=function(){},Ui.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Vi);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Ui.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},Tt.Object.defineProperties(Ui.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof cn&&(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}}}),Ui.prototype.startTransaction=Ui.prototype.Ea,Ui.className="Tool";function Wo(){Ui.call(this),this.name="ToolManager",this.hb=new Dn,this.ob=new Dn,this.Hb=new Dn,this.F=this.V=850,this.o=new qn(2,2).ja(),this.Ha=5e3,this.ia=Zh,this.u=Ed,this.Mp=this.j=null,this.zj=-1}Xt(Wo,Ui),Wo.prototype.initializeStandardTools=function(){},Wo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Vi&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Wo.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===Yc){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===Zh?this.mouseWheelBehavior=Kh:this.mouseWheelBehavior===Kh&&(this.mouseWheelBehavior=Zh)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Wo.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Yc){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}}Zf(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Zf(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Wo.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Vi&&(y===a||y.rg(a))||this.hideToolTip()},Wo.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()))},Wo.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)},Wo.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 Vi)||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()},Wo.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Vi){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 yi&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Bt.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=On(function(){E.hideToolTip()},a)}},Wo.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}},Wo.prototype.hideToolTip=function(){this.zj!==-1&&(Bt.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Vi?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof yi&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Wo.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()},Wo.prototype.doMouseWheel=function(){this.standardMouseWheel()},Wo.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Wo.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Wo.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},Wo.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},Wo.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)},Tt.Object.defineProperties(Wo.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 Vi?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}}}),Wo.prototype.replaceStandardTool=Wo.prototype.gb;var Zh=new wn(Wo,"WheelScroll",0),Kh=new wn(Wo,"WheelZoom",1),Kf=new wn(Wo,"WheelNone",2),Ed=new wn(Wo,"GestureZoom",3),Sc=new wn(Wo,"GestureCancel",4),Yc=new wn(Wo,"GestureNone",5);Wo.className="ToolManager",Wo.WheelScroll=Zh,Wo.WheelZoom=Kh,Wo.WheelNone=Kf,Wo.GestureZoom=Ed,Wo.GestureCancel=Sc,Wo.GestureNone=Yc;function Jo(){Ui.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 kt(NaN,NaN),this.Fr=new kt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new kn().freeze(),this.ia=new de,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Gu;Xt(Jo,Ui),Jo.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},Jo.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},Jo.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,(zr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Jo.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),ln=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&&Ls(a),_f(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,ln=this,En=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 _n?(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 Sr,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Jo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Jo.prototype.Pd=function(a){return a===void 0?new $c(Li):this.isGridSnapEnabled?new $c(new kt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new $c(a.copy())},Jo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Jc(this),Jh(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Gu.count){for(var y=Gu,x=y.length,b=0;b<x;b++){var E=y.M(b);xc(E),pu(E),Jc(E),E.diagram.ug()}y.clear()}xc(this),this.tl.h(NaN,NaN),En!==null&&(En.currentCursor=""),ln=En=null,pu(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Vh(a,!0)},Jo.prototype.stopTransaction=function(){var a=this.diagram,y=Ui.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Jc(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,lf(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Vf(){var a=ln;pu(a),wc(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Jo.prototype.doCancel=function(){pu(this),wc(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Jo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Jo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Zu(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 pr,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 _n&&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 _n&&(x.value.point=new kt(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 Au(a,y,x){var b=a.diagram,E=a.startPoint,te=kt.alloc();te.assign(b.lastInput.documentPoint),a.moveParts(y,te.re(E),x),kt.free(te),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Ls(b),b.hk())}Jo.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 _n&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Lh(b,-E.x,-E.y)}y.bd()}}function Ad(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&&ln===null)return;var se=b!==null?b.part:null;if(se===null||x.handlesDragDropForTopLevelParts&&se.isTopLevel&&!(se instanceof ri)){var he=x.mouseDragOver;he!==null&&(he(E),ne=!0)}if(!a.isActive&&ln===null||(a.doDragOver(y,b),!a.isActive&&ln===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)}Jo.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 Vi||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Jo.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&&ln===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 Nr&&!(a instanceof ri)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Xf(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ge){return b.findValidLinkablePort(ge,x)});a=kt.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(zi,a);he=y.Bf(he),he<te&&(ne=se,te=he)}}return kt.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=Xf(a,x.i(0),!1),te!==null&&(ne=te.part));var se=null,he=null;x.toNode===null&&(se=Xf(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)):ni(E,ne,te,he,se):ni(E,null,null,null,null)}}}}Jo.prototype.doDragOver=function(){};function bc(a,y){var x=a.diagram;a.dragsLink&&fl(a,!0),Jc(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;Kp(a,E,te),te=uf(te)}}else te=x.mouseDrop,te!==null&&te(E);if(a.isActive||ln!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)te=E.key,te instanceof sr&&te.linksConnected.each(function(se){se.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||ln!==null){for(a=Mn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof sr&&Wt(x,b,a);Mn.free(a)}}}function Kp(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof ri||(x=a.mouseDrop,x!==null&&x(y))}function Wt(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 _n},!0,function(E){return E instanceof _n},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Jo.prototype.doDropOnto=function(){},Jo.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()?(Zu(this,!1),_f(a,this.copiedParts),Au(this,this.copiedParts,!1),Jh(a,this.copiedParts)):this.mayMove()?(pu(this),Au(this,this.draggedParts,!0)):this.mayDragOut()?(Zu(this,!1),Au(this,this.copiedParts,!1)):pu(this),Ad(this,a.lastInput.documentPoint))}},Jo.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),Zu(this,!0),_f(a,this.copiedParts),Au(this,this.copiedParts,!1),Jh(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()&&(Au(this,this.draggedParts,!0),Ad(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&&Ut(this),a.Ya(),Jh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Jo.prototype.simulatedMouseMove=function(a,y,x){if(ln===null)return!1;var b=ln.diagram;x instanceof cn||(x=null);var E=En;return x!==E&&(E!==null&&E!==b&&(E.ug(),ln.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),En=x,x!==null&&x!==b&&(Vf(),E=x.toolManager.findTool("Dragging"),E!==null&&(Gu.contains(E)||Gu.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)},Jo.prototype.simulatedMouseUp=function(a,y,x){if(ln===null)return!1;var b=En,E=ln.diagram;if(x===null)return ln.doCancel(),!0;if(x!==b){var te=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&te!==null)return b.ug(),ln.isDragOutStarted=!1,te.doSimulatedDragLeave(),!1;En=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Vf(),Gu.contains(b)||Gu.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 kt),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=ln,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Ut(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof sr&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Jo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(zr?!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())},Jo.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())},Jo.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())},Jo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Jo.prototype.Az=function(){return ln},Jo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=ln;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Jo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),ol(a),a.animationManager.Cc(),a=ln,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Jo.prototype.doSimulatedDragLeave=function(){var a=ln;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Jo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=ln;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;an(this,y.draggedParts.Lf(),!1,a.firstInput),Au(this,this.copiedParts,!1),Ad(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Jo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=ln;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"),an(this,y.draggedParts.Lf(),!0,a.lastInput),Au(this,this.copiedParts,!1);var b=new kn;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 an(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=Mn.alloc();E=b=1/0;for(var ne=-1/0,se=-1/0,he=y.iterator;he.next();){var ge=he.value;if(ge.isVisible()){var Se=ge.location;ge=Se.x,Se=Se.y,isNaN(ge)||isNaN(Se)||(ge<b&&(b=ge),Se<E&&(E=Se),ge>ne&&(ne=ge),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,Mn.free(te),te=a.Fr,ne=new pr,se=kt.alloc(),he=y.iterator;he.next();)ge=he.value,ge instanceof _n&&ge.canCopy()&&(Se=x.I(ge),Se!==null&&(Se.points=ge.points,Lh(Se,te.x-b,te.y-E),Se.suspendsRouting=!0,ne.add(Se,a.Pd())));for(y=y.iterator;y.next();)ge=y.value,ge.Zc()&&ge.canCopy()&&(he=x.I(ge),he!==null&&(ge=ge.location,se.h(te.x-(b-ge.x),te.y-(E-ge.y)),he.location=se,he.Va(),ne.add(he,a.Pd(se))));kt.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)}}}Jo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Jo.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new kt},Tt.Object.defineProperties(Jo.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}}}),Jo.prototype.getDraggingSource=Jo.prototype.Az;var ln=null,En=null;Jo.className="DraggingTool",Gu=new Dn,gr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Wo.prototype.doCancel=function(){ln!==null&&ln.doCancel(),Ui.prototype.doCancel.call(this)};function Sn(){Ui.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new _n,y=new pi;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new pi,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new sr,y=new pi,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 sr,y=new pi,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 pr,this.Of=this.gj=this.Pf=null}Xt(Sn,Ui),Sn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Sn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var te=y.Df(),ne=qn.alloc();ne.width=y.naturalBounds.width*te,ne.height=y.naturalBounds.height*te,b.desiredSize=ne,qn.free(ne),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=zi,te=kt.alloc(),x.location=y.ga(zi,te),kt.free(te),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},Sn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=qi,y.fromSpot=ua,y.toSpot=ua),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Sn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Sn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof sr){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)}},Sn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof sr))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof sr)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Sn.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(ke){return E.findValidLinkablePort(ke,a)},null,!0);for(b=1/0,y=null,te=te.iterator;te.next();){var ne=te.value,se=ne.part;if(se instanceof sr){var he=ne.ga(zi,kt.alloc()),ge=x.x-he.x,Se=x.y-he.y;kt.free(he),he=ge*ge+Se*Se,he<b&&(ge=this.validPortsCache.I(ne),ge!==null?ge&&(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 sr&&(x.layer===null||x.layer.allowLink))?y:null},Sn.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},Sn.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},Sn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Sn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof sr))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof sr))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},Sn.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)},Sn.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 kn;return b.add(a),Wn(this,x,y,b)};function Wn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Wn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Wn(a,y.labeledLink,x,b))))}Sn.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!Un(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!Un(this,a,y,x,!0)}if(b===ng)return a===y?a=!0:(b=new kn,b.add(y),a=In(this,b,a,y,x)),!a;if(b===rg)return!Un(this,a,y,x,!1);if(b===ig)return a===y?a=!0:(b=new kn,b.add(y),a=nr(this,b,a,y,x)),!a}return!0};function Un(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&&Un(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 nr(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&&nr(a,y,se,b,E))return!0}}return!1}Tt.Object.defineProperties(Sn.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}}}),Sn.className="LinkingBaseTool";function lr(){Sn.call(this),this.name="Linking",this.V={},this.F=null,this.K=or,this.Xd=null}Xt(lr,Sn),lr.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},lr.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 sr)))return null;var x=this.direction;if(x===or||x===Br){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===or||x===Or)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},lr.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 sr&&(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 sr&&(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)},lr.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()},lr.prototype.doStop=function(){Sn.prototype.doStop.call(this),this.startObject=null},lr.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 sr&&(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)}}},lr.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof _n)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)},lr.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},lr.prototype.doNoLink=function(){},Tt.Object.defineProperties(lr.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 or=new wn(lr,"Either",0),Br=new wn(lr,"ForwardsOnly",0),Or=new wn(lr,"BackwardsOnly",0);lr.className="LinkingTool",lr.Either=or,lr.ForwardsOnly=Br,lr.BackwardsOnly=Or;function Sr(){Sn.call(this),this.name="Relinking";var a=new pi;a.figure="Diamond",a.desiredSize=lo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new pi,a.figure="Diamond",a.desiredSize=lo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Mn}Xt(Sr,Sn),Sr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof _n){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)}},Sr.prototype.makeAdornment=function(a,y){var x=new Vi;return x.type=Xn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Sr.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},Sr.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 Vi&&x.adornedPart instanceof _n))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=si),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=si),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},Sr.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===Th)&&(x=Xs),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}},Sr.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()},Sr.prototype.doStop=function(){Sn.prototype.doStop.call(this),this.handle=null},Sr.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 sr&&(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()}}},Sr.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},Sr.prototype.doNoRelink=function(){};function ni(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)}Tt.Object.defineProperties(Sr.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 Vi))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Sr.className="RelinkingTool",gr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),gr("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Pr(){Ui.call(this),this.name="LinkReshaping";var a=new pi;a.figure="Rectangle",a.desiredSize=Ro,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new pi,a.figure="Diamond",a.desiredSize=lo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new kt,this.Yq=new Dn}Xt(Pr,Ui),Pr.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:_r},Pr.prototype.om=function(a,y){a.reshapingBehavior=y},Pr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof _n){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)}},Pr.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Vi,E.type=Xn.Link,x=y.firstPickIndex;var te=y.lastPickIndex,ne=b?1:0;if(y.resegmentable&&y.computeCurve()!==Jl)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 ge=y.i(x+1);rn.B(he.x,ge.x)&&rn.B(he.y,ge.y)&&(ge=y.i(x-1)),rn.B(he.x,ge.x)?(this.om(se,Ni),se.cursor="n-resize"):rn.B(he.y,ge.y)&&(this.om(se,di),se.cursor="w-resize")}else ne===te-1&&b?(he=y.i(te-1),ge=y.i(te),rn.B(he.x,ge.x)&&rn.B(he.y,ge.y)&&(he=y.i(te+1)),rn.B(he.x,ge.x)?(this.om(se,Ni),se.cursor="n-resize"):rn.B(he.y,ge.y)&&(this.om(se,di),se.cursor="w-resize")):ne!==te&&(this.om(se,Ki),se.cursor="move");E.add(se)}E.adornedObject=a}return E},Pr.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Pr.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Pr.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},Pr.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 _n){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}}},Pr.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Pr.prototype.stopTransaction=function(){var a=this.diagram,y=Ui.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Pr.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Pr.prototype.getResegmentingPoint=function(){return this.handle.ga(zi)},Pr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Pr.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&&(qr(this,ne,b,E,te,!0)||qr(this,ne,b,E,te,!1))){var se=y.points.copy();qr(this,ne,b,E,te,!0)?(se.cd(x-2,new kt(ne.x,(te.y+ne.y)/2)),se.cd(x+1,new kt(te.x,(te.y+ne.y)/2))):(se.cd(x-2,new kt((te.x+ne.x)/2,ne.y)),se.cd(x+1,new kt((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&&(qr(this,b,E,te,ne,!0)||qr(this,b,E,te,ne,!1))&&(se=y.points.copy(),qr(this,b,E,te,ne,!0)?(se.cd(x-1,new kt(b.x,(b.y+ne.y)/2)),se.cd(x+2,new kt(ne.x,(b.y+ne.y)/2))):(se.cd(x-1,new kt((b.x+ne.x)/2,b.y)),se.cd(x+2,new kt((b.x+ne.x)/2,ne.y))),se.mb(x+1),se.mb(x),y.points=se,y.Wb())}}else ne=kt.alloc(),rn.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()),kt.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function qr(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}Pr.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===Ni?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===di&&(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===Ni?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===di&&(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);rn.B(te.x,E.x)&&rn.B(E.y,ne.y)?(rn.B(te.x,y.i(b-2).x)&&!rn.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),rn.B(ne.y,y.i(b+2).y)&&!rn.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)):rn.B(te.y,E.y)&&rn.B(E.x,ne.x)?(rn.B(te.y,y.i(b-2).y)&&!rn.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),rn.B(ne.x,y.i(b+2).x)&&!rn.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):rn.B(te.x,E.x)&&rn.B(E.x,ne.x)?(rn.B(te.x,y.i(b-2).x)&&!rn.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),rn.B(ne.x,y.i(b+2).x)&&!rn.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):rn.B(te.y,E.y)&&rn.B(E.y,ne.y)&&(rn.B(te.y,y.i(b-2).y)&&!rn.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),rn.B(ne.y,y.i(b+2).y)&&!rn.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(zi,kt.alloc()),b=y.getLinkPointFromPoint(b,E,te,a,!0,kt.alloc()),y.L(0,b.x,b.y),kt.free(te),kt.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(zi,kt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,kt.alloc()),y.L(y.pointsCount-1,a.x,a.y),kt.free(x),kt.free(a));y.zf()},Pr.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Ki:return a;case Ni:return new kt(y.i(x).x,a.y);case di:return new kt(a.x,y.i(x).y);default:case _r:return y.i(x)}},Tt.Object.defineProperties(Pr.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 Vi))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}}}),Pr.prototype.setReshapingBehavior=Pr.prototype.om,Pr.prototype.getReshapingBehavior=Pr.prototype.Ru;var _r=new wn(Pr,"None",0),di=new wn(Pr,"Horizontal",1),Ni=new wn(Pr,"Vertical",2),Ki=new wn(Pr,"All",3);Pr.className="LinkReshapingTool",Pr.None=_r,Pr.Horizontal=di,Pr.Vertical=Ni,Pr.All=Ki,gr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ii(){Ui.call(this),this.name="Resizing",this.o=new qn(1,1).freeze(),this.j=new qn(9999,9999).freeze(),this.yg=new qn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new pi;a.alignmentFocus=zi,a.figure="Rectangle",a.desiredSize=Ro,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new kt,this.Dw=new qn,this.Tn=new kt,this.rt=new qn(0,0),this.qt=new qn(1/0,1/0),this.pt=new qn(1,1)}Xt(ii,Ui),ii.prototype.updateAdornments=function(a){if(!(a===null||a instanceof _n)){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)}},ii.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Vi,y.type=Xn.Spot,y.locationSpot=zi;var x=new Vs;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Xa)),y.add(this.makeHandle(a,Bl)),y.add(this.makeHandle(a,ks)),y.add(this.makeHandle(a,tl)),y.add(this.makeHandle(a,ga)),y.add(this.makeHandle(a,Ya)),y.add(this.makeHandle(a,Ua)),y.add(this.makeHandle(a,La))}else if(Su(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ii.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ii.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=zi),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 Xn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ii.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},ii.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))},ii.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ii.prototype.stopTransaction=function(){var a=this.diagram,y=Ui.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ii.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ii.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,kt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),a.bd(),kt.free(E)}},ii.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,kt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),kt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ii.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 ri){var b=new Dn;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()}},ii.prototype.computeResize=function(a,y,x,b,E,te){y.Mc()&&(y=zi);var ne=this.adornedObject.naturalBounds,se=ne.x,he=ne.y,ge=ne.x+ne.width,Se=ne.y+ne.height,ke=1;if(!te){ke=ne.width;var Ge=ne.height;0>=ke&&(ke=1),0>=Ge&&(Ge=1),ke=Ge/ke}return Ge=kt.alloc(),rn.No(a.x,a.y,se,he,E.width,E.height,Ge),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ge.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=Math.max(ge-a.x,x.width),a.y=Math.max(Ge.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(ke*a.width,b.height),x.height),a.width=a.height/ke):(a.width=Math.max(Math.min(a.height/ke,b.width),x.width),a.height=ke*a.width),a.x=ge-a.width,a.y=Se-a.height)):1<=y.y?(a.x=Math.max(Ge.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=Math.max(ge-a.x,x.width),a.height=Math.max(Math.min(Ge.y-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(ke*a.width,b.height),x.height),a.width=a.height/ke):(a.width=Math.max(Math.min(a.height/ke,b.width),x.width),a.height=ke*a.width),a.x=ge-a.width)):(a.x=Math.max(Ge.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=ge-a.x,te||(a.height=Math.max(Math.min(ke*a.width,b.height),x.height),a.width=a.height/ke,a.y=he+.5*(Se-he-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ge.x-se,b.width),x.width),a.y=Math.max(Ge.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(ke*a.width,b.height),x.height),a.width=a.height/ke):(a.width=Math.max(Math.min(a.height/ke,b.width),x.width),a.height=ke*a.width),a.y=Se-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ge.x-se,b.width),x.width),a.height=Math.max(Math.min(Ge.y-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(ke*a.width,b.height),x.height),a.width=a.height/ke):(a.width=Math.max(Math.min(a.height/ke,b.width),x.width),a.height=ke*a.width))):(a.width=Math.max(Math.min(Ge.x-se,b.width),x.width),te||(a.height=Math.max(Math.min(ke*a.width,b.height),x.height),a.width=a.height/ke,a.y=he+.5*(Se-he-a.height))):0>=y.y?(a.y=Math.max(Ge.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/ke,b.width),x.width),a.height=ke*a.width,a.x=se+.5*(ge-se-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ge.y-he,b.height),x.height),te||(a.width=Math.max(Math.min(a.height/ke,b.width),x.width),a.height=ke*a.width,a.x=se+.5*(ge-se-a.width))),kt.free(Ge),a},ii.prototype.computeReshape=function(){var a=Rn;return this.adornedObject instanceof pi&&(a=E0(this.adornedObject)),!(a===yr||this.diagram.lastInput.shift)},ii.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},ii.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},ii.prototype.computeCellSize=function(){var a=new qn(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},Tt.Object.defineProperties(ii.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 Vi))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 Vi)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}}}),ii.className="ResizingTool",gr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Di(){Ui.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new kt,this.ue=null;var a=new pi;a.figure="Ellipse",a.desiredSize=lo,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new kt(NaN,NaN),this.u=0,this.F=50}Xt(Di,Ui),Di.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)}},Di.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Vi,y.type=Xn.Position,y.locationSpot=zi;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},Di.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},Di.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)},Di.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(zi)},Di.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)},Di.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new kt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Di.prototype.stopTransaction=function(){var a=this.diagram,y=Ui.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Di.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Di.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Di.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()},Di.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()}},Di.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},Tt.Object.defineProperties(Di.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 Vi))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 Vi)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}}}),Di.className="RotatingTool",gr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function mo(){Ui.call(this),this.name="ClickSelecting"}Xt(mo,Ui),mo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},mo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},mo.className="ClickSelectingTool";function ui(){Ui.call(this),this.name="Action",this.pk=null}Xt(ui,Ui),ui.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},ui.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()},ui.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))}},ui.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()},ui.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())},ui.prototype.doStop=function(){this.pk=null},ui.className="ActionTool";function Ai(){Ui.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new kt(0,0)}Xt(Ai,Ui),Ai.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)},Ai.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Ai.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 Nr)x.Zc()&&(Su(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);xn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var te=kt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Qf(this.diagram,b,a,te),b.location=te,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),kt.free(te)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Tt.Object.defineProperties(Ai.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}}}),Ai.className="ClickCreatingTool";function li(){Ui.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Nr;a.layerName="Tool",a.selectable=!1;var y=new pi;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Xt(li,Ui),li.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))},li.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},li.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},li.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=qn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),qn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},li.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()},li.prototype.computeBoxBounds=function(){var a=this.diagram;return new Mn(a.firstInput.documentPoint,a.lastInput.documentPoint)},li.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),zr?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 Dn,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)}},Tt.Object.defineProperties(li.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}}}),li.className="DragSelectingTool";function Ur(){Ui.call(this),this.name="Panning",this.Xt=new kt,this.xy=new kt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Bt.document,"scroll",a.Kw,!1),a.stopTool()}}Xt(Ur,Ui),Ur.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())},Ur.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Bt.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Ur.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Ur.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Ur.prototype.doMouseMove=function(){this.move()},Ur.prototype.doMouseUp=function(){this.move(),this.stopTool()},Ur.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)}},Tt.Object.defineProperties(Ur.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Ur.className="PanningTool",gr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),gr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),gr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),gr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),gr("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function yi(){this.F=this.u=this.j=this.o=null}Tt.Object.defineProperties(yi.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}}}),yi.className="HTMLInfo";function Wi(a,y,x){this.text=a,this.hx=y,this.visible=x}Wi.className="ContextMenuButtonInfo";function $i(){Ui.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new kt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Xt($i,Ui);function to(a){var y=new yi;y.show=function(E,te,ne){ne.showDefaultContextMenu()},y.hide=function(E,te){te.hideDefaultContextMenu()},Io=y,a.tu=function(){a.stopTool()},y=Zn("div");var x=Zn("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=Zn("style");Bt.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",oi,!1),b.addEventListener(y,"selectstart",oi,!1),b.addEventListener(x,"contextmenu",oi,!1)),y.className="goCXforeground",x.className="goCXbackground",Bt.document.body&&(Bt.document.body.appendChild(y),Bt.document.body.appendChild(x)),xo=y,Ta=x,ka=!0}function oi(a){return a.preventDefault(),!1}$i.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)},$i.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},$i.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},$i.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof cn||(a instanceof nn?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},$i.prototype.doActivate=function(){},$i.prototype.doMouseDown=function(){if(Ui.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Vi){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&yo(this)},$i.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Vi){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}yo(this)};function yo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof yi||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Co(a,!0),a.isActive||a.stopTool())}$i.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Co(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=Io,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof nn?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Vi&&!a.currentContextMenu.visible&&a.stopTool()}}$i.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},$i.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Vi){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 yi&&a.show(y,x,this);this.currentContextMenu=a},$i.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}},$i.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Vi?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof yi&&(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 Dn;return y.add(new Wi("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Wi("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Wi("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Wi("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Wi("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Wi("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Wi("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Wi("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Wi("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Wi("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Wi("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Wi("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Wi("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}$i.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=qo(this)),xo.innerHTML="",Ta.addEventListener("pointerdown",this.tu,!1);var y=this,x=Zn("ul");x.className="goCXul",xo.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=Zn("li"),te.className="goCXli";var ne=Zn("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)}}xo.style.display="block",Ta.style.display="block"},$i.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Io){xo.style.display="none",Ta.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Ta,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Tt.Object.defineProperties($i.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Vi?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return ka===!1&&Io===null&&ia&&to(this),Io},set:function(a){a===null&&(ka=!0),Io=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Io=null,ka=!1,Ta=null,xo=null;$i.className="ContextMenuTool",gr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Gi(){Ui.call(this),this.name="TextEditing",this.Zh=new Lo,this.ia=null,this.V=Bi,this.vj=null,this.qa=Ii,this.u=1,this.F=!0,this.o=null,this.j=new yi,this.kt=null,Xo(this,this.j)}Xt(Gi,Ui);function Xo(a,y){if(ia){var x=Zn("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(Yi)):E==="Tab"?(a.acceptText(no),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ii){var b=a.kt;a.qa===vo&&(a.qa=Ho),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ii){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 Lo&&te instanceof Gi)if(te.state===Cs)x.style.border="3px solid red",x.focus();else{var ne=b.ga(zi),se=E.position,he=E.scale,ge=b.Df()*he;ge<te.minimumEditorScale&&(ge=te.minimumEditorScale);var Se=b.naturalBounds.width*ge+6,ke=b.naturalBounds.height*ge+2,Ge=(ne.x-se.x)*he;ne=(ne.y-se.y)*he,se=b.verticalAlignment,he=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ge,ke=se.y*ke-se.y*he+se.offsetY-(.5*ke-.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*ge+"%",x.style.lineHeight="normal",x.style.width=Se+"px",x.style.left=(Ge-Se/2|0)-1+"px",x.style.top=(ne+ke|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=ge,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||Us&&Us!==this&&(Us.acceptText(is),Us&&Us!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Lo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Bi&&!y.isSelected||this.starting===Qo&&2>a.lastInput.clickCount)):!1},Gi.prototype.doStart=function(){Us=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 Lo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=vo;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new Mn(this.textBlock.ga(Xa),this.textBlock.ga(ks));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===vo||this.qa===Cs||this.qa===Ho)&&(this.qa=Uo,Na(this));break;case wa:case Yi:case no:(Yi!==a||this.textBlock.isMultiline!==!0)&&(this.qa===vo||this.qa===Cs||this.qa===Ho)&&(this.qa=Uo,Na(this))}};function Na(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=Cs,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=Ii,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Gi.prototype.doStop=function(){Us=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},Tt.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 wa=new wn(Gi,"LostFocus",0),is=new wn(Gi,"MouseDown",1),no=new wn(Gi,"Tab",2),Yi=new wn(Gi,"Enter",3),ro=new wn(Gi,"SingleClick",0),Bi=new wn(Gi,"SingleClickSelected",1),Qo=new wn(Gi,"DoubleClick",2),Ii=new wn(Gi,"StateNone",0),vo=new wn(Gi,"StateActive",1),Ho=new wn(Gi,"StateEditing",2),Uo=new wn(Gi,"StateValidating",3),Cs=new wn(Gi,"StateInvalid",4),ls=new wn(Gi,"StateValidated",5),Us=null;Gi.className="TextEditingTool",Gi.LostFocus=wa,Gi.MouseDown=is,Gi.Tab=no,Gi.Enter=Yi,Gi.SingleClick=ro,Gi.SingleClickSelected=Bi,Gi.DoubleClick=Qo,Gi.StateNone=Ii,Gi.StateActive=vo,Gi.StateEditing=Ho,Gi.StateValidating=Uo,Gi.StateInvalid=Cs,Gi.StateValidated=ls,gr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ea(a){El||(pl(),El=!0),this.H=Xu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=ql,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new kn,this.ce=new ra,this.ce.Yd=this,this.Ei=new kn,this.pu=new kn,this.Sr=new kn,this.pr=new kn,a&&Object.assign(this,a)}ea.prototype.Xe=function(a){this.H=a},ea.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===ql?(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===Hl&&y.vc.clear(),a.Qw=!!(a.Pk===eu&&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(),Ms(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Bs&&b!==null&&(delete b.start.scale,delete b.end.scale),Bt.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ls(x),Ld(x),a.zb=!1,y.start(),y.bc&&(pa(a),x.Ya(),oc(y,0),ol(x,!0),Qa(a),x.R("AnimationStarting",a)))}))}}function ps(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Ku(a,y,x,b){a.isTicking||ps(a)||y instanceof _n&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}it=ea.prototype,it.fv=function(a){return this.ce.fv(a)},it.Xu=function(a){return this.ce.Xu(a)};function ta(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 nn&&he.diagram!==null||he instanceof cn){se=!0;break e}}se=!1}se?Ul(ne,!1):ne.Xk=!0}}E.pu.clear(),E.bc!==!1&&(pa(E),ol(E.H),Qa(E)),Bt.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Bt.requestAnimationFrame(function(){x()}))}function aa(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function pa(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 Qa(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}it.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(),Ms(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Ms(y,this.H)},it.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))},it.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),va(this,a))},it.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Za(this.ce,y,"position",y.position,y.position),va(this,a))};function gs(a,y,x){!a.zb||y.D(x)||ps(a)||(a.H.pi||(y=x.copy()),Za(a.ce,a.H,"position",y,x))}function ko(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function va(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],ge=y[1],Se=y[2];return y=y[3],se===0||se===100?(te=he,ne=ge):(Se===0||Se===100)&&(he=te,ge=ne),180<Math.abs(he-te)&&(he>te?te+=360:he+=360),te=E(x,te,he-te,b)%360,ne=E(x,ne,ge-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 kt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}var y=new pr;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 kt(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 kt(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 kt(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,ge=E.actualBounds;E=ge.x+ge.width/2-he.width/2,he=ge.y+ge.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 kt(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 Mn(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)}),Wl=y}Tt.Object.defineProperties(ea.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&&Kn(a,">= 1",ea,"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}}}),ea.prototype.stopAnimation=ea.prototype.Cc;var Wl=null,El=!1,ql=new wn(ea,"Default",1),eu=new wn(ea,"AnimateLocations",2),Hl=new wn(ea,"None",3);ea.className="AnimationManager",ea.defineAnimationEffect=function(a,y){El||(pl(),El=!0),Wl.add(a,y)},ea.Default=ql,ea.AnimateLocations=eu,ea.None=Hl;function ra(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=tu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Li,this.vc=new pr,this.Tt=new pr,this.yl=new kn,this.Ut=new kn,this.dw=xh,a&&Object.assign(this,a)}ra.prototype.suspend=function(){this.Xk=!0},ra.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Ul(this,!0),pa(this.Yd),ol(this.H),Qa(this.Yd),this.H.redraw()};function Ms(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}it=ra.prototype,it.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 cn?a=x:x instanceof nn&&(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===ql&&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),pa(y),this.yl.each(function(b){b.data=null,a.add(b)}),Qa(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ta(y,this),this)},it.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},it.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof cn?this.H=a:a instanceof nn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Nr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Za(this,a,y,x,b,E),this};function Za(a,y,x,b,E,te){var ne=a.vc;if(y instanceof cn&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(eh(b),s0(),b=[Yl.j,Yl.u,Yl.o,Yl.F],eh(E),s0(),E=[Yl.j,Yl.u,Yl.o,Yl.F]),ne.contains(y)){var se=ne.I(y),he=se.start,ge=se.end;he[x]===void 0&&(he[x]=ya(b)),ge[x]=ya(E)}else he={},ge={},he[x]=ya(b),ge[x]=ya(E),se=he.position,y instanceof nn&&se instanceof kt&&!se.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&se.assign(ge.position),se=new Vu(he,ge,te),ne.add(y,se);ne=he[x],ne instanceof kt&&!ne.w()&&ne.assign(a.o),te&&x.indexOf("position:")===0&&y instanceof Nr?se.Ku.location=ya(y.location):te&&(se.Ku[x]=ya(b))}function ya(a){return a instanceof kt||a instanceof qn?a.copy():a}it.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},it.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Ul(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),pa(x),oc(a,E),ol(a.H,!0),Qa(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 nn&&te.diagram===null)){var ne=b.value,se=E?ne.end:ne.start;ne=E?ne.start:ne.end;var he=Wl,ge;for(ge in ne)ge==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||he.get(ge)===null||he.get(ge)(te,se[ge],ne[ge],a.Lp,y,x,a)}}}it.stop=function(){return this.bc?(this.Ml(!0),this):this},it.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,pa(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=Wl;b.next();){var ne=b.key,se=b.value,he=E?se.end:se.start,ge=E?se.start:se.end,Se=se.Ku,ke;for(ke in ge)if(te.get(ke)!==null){var Ge=ke;!se.Hu||Ge!=="position:nodeCollapse"&&Ge!=="position:placeholder"||(Ge="position"),te.get(Ge)(ne,he[ke],Se[ke]!==void 0?Se[ke]:se.Hu?he[ke]:ge[ke],this.Lp,this.Gd,this.Gd,this)}se.Hu&&Se.location!==void 0&&ne instanceof Nr&&(ne.location=Se.location),se.nv&&ne instanceof Nr&&ne.Zb(!1)}if(y.As.clear(),Vh(y,!1),y.Ya(),y.N(),ol(y,!0),x.defaultAnimation===this){for(ke=x.pr.iterator;ke.next();)E=ke.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}ol(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Qa(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ms(this,null),x.Ml(this),y.$b())}},it.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof ri&&(b=y.placeholder),b!==null?(x=b.ga(Xa),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new kt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof ri)for(a=a.memberParts;a.next();)b=a.value,b instanceof sr&&this.Cj(b,y)},it.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof ri&&(x=y.placeholder),x!==null){var b=x.ga(Xa);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 ri)for(a=a.memberParts;a.next();)b=a.value,b instanceof sr&&this.Aj(b,y)}},it.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Tt.Object.defineProperties(ra.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Kn(a,">= 1",ra,"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:Gt("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}}}),ra.prototype.getTemporaryState=ra.prototype.Ez,ra.prototype.stop=ra.prototype.stop,ra.prototype.add=ra.prototype.add,ra.prototype.addTemporaryPart=ra.prototype.Iy;function tu(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}ra.className="Animation",ra.EaseLinear=function(a,y,x,b){return x*a/b+y},ra.EaseInOutQuad=tu,ra.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},ra.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},ra.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},ra.EaseOutExpo=Mu;function Vu(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Vu.className="AnimationState";function Al(a,y,x){this.xd=null,this.rf=a,this.so=x||ba,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=us))}Al.prototype.copy=function(){var a=new Al(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 _o(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))}Tt.Object.defineProperties(Al.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 ba=new wn(Al,"Default",1),us=new wn(Al,"Immediate",2),Ca=new wn(Al,"Bundled",3);Al.className="AnimationTrigger",Al.Default=ba,Al.Immediate=us,Al.Bundled=Ca;function Vo(a){ci(this),this.H=null,this.Pa=new Dn,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)}it=Vo.prototype,it.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Ds(x)}a.clear(),this.Zq.length=0},it.Xe=function(a){this.H=a},it.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 ri?E++:he instanceof sr?b++:he instanceof _n?te++:he instanceof Vi?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&&$r(b)&&(se+=" #"+$r(b)),x instanceof sr?se+=" "+Gn(b):x instanceof _n&&(se+=" "+Gn(x.fromNode)+" "+Gn(x.toNode));return y+" "+this.Pa.count+": "+se},it.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=kt.alloc(),te=this.Pa.s,ne=te.length;ne--;){var se=te[ne];if((b!==!0||td(se)!==!1)&&se.isVisible()&&(E.assign(a),wi(E,se.oe),se=se.ic(E,y,x),se!==null&&(y!==null&&(se=y(se)),se!==null&&(x===null||x(se)))))return kt.free(E),se}return kt.free(E),null},it.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Dn||b instanceof kn||(b=new kn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var te=kt.alloc(),ne=this.Pa.s,se=ne.length;se--;){var he=ne[se];if((E!==!0||td(he)!==!1)&&he.isVisible()){te.assign(a),wi(te,he.oe);var ge=he;he.ji(te,y,x,b)&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||b.add(ge))}}return kt.free(te),b},it.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 Dn||E instanceof kn||(E=new kn),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 ge=he;he.Cf(a,y,x,b,E)&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||E.add(ge))}}return E},it.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 ge=se[he];if((ne!==!0||td(ge)!==!1)&&te(ge)&&ge.isVisible()){var Se=ge;ge.Cf(a,y,x,b,E)&&(y!==null&&(Se=y(Se)),Se===null||x!==null&&!x(Se)||E.add(Se))}}return E},it.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 Dn||E instanceof kn)&&(te=E),E=!0),te instanceof Dn||te instanceof kn||(te=new kn),this.Uh===!1)return te;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var se=kt.alloc(),he=kt.alloc(),ge=this.Pa.s,Se=ge.length;Se--;){var ke=ge[Se];if((ne!==!0||td(ke)!==!1)&&ke.isVisible()){se.assign(a),wi(se,ke.oe),he.h(a.x+y,a.y),wi(he,ke.oe);var Ge=ke;ke.og(se,he,x,b,E,te)&&(x!==null&&(Ge=x(Ge)),Ge===null||b!==null&&!b(Ge)||te.add(Ge))}}return kt.free(se),kt.free(he),te},it.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=vn();for(var E=vn(),te=0;te<b;te++){var ne=x[te];if(ne.vw=te,ne instanceof _n){if(ne.fd===!1)continue}else if(ne instanceof Vi&&ne.adornedPart!==null)continue;var se=ne.actualBounds;ne.isVisible()&&Ao(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],I0(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++)I0(E[y]);Ln(a),Ln(E)}}};function vs(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}it.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=Mn.alloc(),he=0;he<b;he++)this.Oj(a,x[he],y,te,ne,se,!0);if(Mn.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,ge=Mn.alloc(),Se=0;Se<te;Se++){var ke=E[Se];b.contains(ke)&&a.Oj(y,ke,x,se,he,ge,!1)}Mn.free(ge),y.globalAlpha=ne}}}it.Oj=function(a,y,x,b,E,te,ne){if(ne&&!td(y))a.Hs(y);else{if(b!==null&&y instanceof _n&&(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&&(sa(y,a,y.areaBackground,!0,!0,te,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(sa(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),sa(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))}},it.g=function(a,y,x,b,E){var te=this.diagram;te!==null&&te.cb(Ko,a,this,y,x,b,E)},it.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Ds(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},it.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,Ds(y),a};function gu(a,y,x){if(y=cf(a,y,x),x instanceof ri&&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}Tt.Object.defineProperties(Vo.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===""&&Gt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Gt("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)&&Kn(a,"0 <= value <= 1",Vo,"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))}}}),Vo.prototype.findObjectsNear=Vo.prototype.og,Vo.prototype.findObjectsIn=Vo.prototype.Cf,Vo.prototype.findObjectsAt=Vo.prototype.ji,Vo.prototype.findObjectAt=Vo.prototype.ic,Vo.className="Layer";function cn(a,y){if(hm||(Ts(),hm=!0),ci(this),Xu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ia){var x=this,b=function(){x.removeEventListener(Bt.document,"DOMContentLoaded",b,!1),x.setRTL()};Bt.document.body!==null?this.setRTL():x.addEventListener(Bt.document,"DOMContentLoaded",b,!1)}this.ol=null,rp.add("Model",fo);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===Ko&&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,Xh(this),this.layout=new Go,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"||Bt.Element&&a instanceof Element?Md(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Cc,Xu;function hf(a){a.Yd=new ea,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Dn,a.pj=new pr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new kt(NaN,NaN).freeze(),a.du=new kt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new kt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new gi,a.zu=new kt(NaN,NaN).freeze(),a.ut=new Mn(NaN,NaN,NaN,NaN).freeze(),a.rj=new kr(0,0,0,0).freeze(),a.sj=xh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Bs,a.zk=io,a.Fg=Bs,a.pq=io,a.yt=Xa,a.Bt=Xa,a.Fc=!0,a.pn=!1,a.De=new kn,a.Eh=new pr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new kr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new bs,a.bq.diagram=a,a.Qg=new bs,a.Qg.diagram=a,a.cj=new bs,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,n0(a),a.ai=new kn,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 pr,a.Xn=new Dn,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 kr(5).freeze(),a.Hw=new kn().freeze(),a.Nt=999999999,a.nw=new kn().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 kn,a.ow=new kn,a.Xh=null,a.aw=new qn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new kt,bounds:new Mn,Py:new qn,bA:new qn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Mn(NaN,NaN,NaN,NaN).freeze(),a.wo=new qn(NaN,NaN).freeze(),a.Sp=new Mn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new pr;var y=new sr,x=new Lo;x.bind(new Pa("text","",Gn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new sr,x=new Lo,x.stroke="brown",x.bind(new Pa("text","",Gn)),y.add(x),a.Lg.add("Comment",y),y=new sr,y.selectable=!1,y.avoidable=!1,x=new pi,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new qn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new pr,y=new ri,y.selectionObjectName="GROUPPANEL",y.type=Xn.Vertical,x=new Lo,x.font="bold 12pt sans-serif",x.bind(new Pa("text","",Gn)),y.add(x),x=new Xn(Xn.Auto),x.name="GROUPPANEL";var b=new pi;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Vs,b.padding=new kr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new pr,y=new _n,x=new pi,x.isPanelMain=!0,y.add(x),x=new pi,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new _n,x=new pi,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Vi,y.type=Xn.Auto,x=new pi,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Vs,x.margin=new kr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Vi,y.type=Xn.Link,x=new pi,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 fo,a.toolManager=new Wo,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=Qc(),a.eq=null,a.fq=wo,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 kt,a.zy=500,a.wp=new kt,a.wq=!1}cn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),jd=null,_h="",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 kn().freeze(),a.nw=new kn().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(),Qr=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),te}function Qc(){return null}cn.prototype.reset=function(){this.clear(),this.vb=!0,hf(this),lc(this),this.Wg=!0,Xh(this),this.layout=new Go,this.Wg=!1,this.model=hy(),this.model.undoManager=new Yo,this.vb=this.rn=!1,this.N()},cn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Bt.document.body);var y=Zn("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},cn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Bt.document.body);var y=0;if(ia){var x=cm;y=Cc,x===null&&(x=cm=Zn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Cc=Zn("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||zr||(y=11)}this.Db=y,this.Gw=!0},cn.prototype.qb=function(a){a.classType===cn&&(this.autoScale=a)},cn.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(ia){if(y!=null||Gt("Diagram setup requires an argument DIV."),a.Ka!==null&&Gt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Bt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Gt("No DIV or DIV id supplied: "+y),a.Ka===null&&Gt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Gt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Bt.ResizeObserver){var x=bn(function(){a.$b()},250);a.ol=new Bt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Bt.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=Bt.go;var E=new yu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Bt.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),Bd(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,ia){E=Zn("div");var te=Zn("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=Yf,E.addEventListener("pointerdown",ff),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=te}a.hk=bn(function(){a.Yh=null,a.N()},300),a.Ov=bn(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,ge=0;se.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(he=0<ne.deltaX?1:-1),ne.deltaY!==0&&(ge=0<ne.deltaY?1:-1),se.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-he:-ge):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(he=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(ge=0<ne.wheelDeltaY?-1:1),se.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-he:-ge):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(se.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),Zl(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 ge=he;he=Dd(a,ne,!0,!1,!0,ge),yh(a,ne,he),he.targetDiagram=Fd(ne,ne.target),he.targetObject=null,ge||he.clone(a.bq),ge=a.uw,se=se?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(ge.x-ne.screenX)>se||Math.abs(ge.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():Zl(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=Dd(a,ne,!1,!1,!1,se[1]!==null);var he=Bt.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 ge=a,Se=ne;he&&he.H&&(Se=ne,ge=he.H),se.targetDiagram=ge,yh(a,Se,se),se.targetObject=null,a.doMouseMove(),Zl(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=Dd(a,ne,!1,!0,!0,!1);var ge=Bt.document.elementFromPoint(ne.clientX,ne.clientY)||null;ge!==null&&ge.shadowRoot!==void 0&&ge.shadowRoot!==null&&(ge=ge.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),ge!==null&&ge.H instanceof cn&&ge.H!==a&&yh(ge.H,ne,he),ge===null&&(ge=ne.target),yh(a,ne,he),he.clickCount=a.yq,he.targetDiagram=Fd(ne,ge),he.targetObject=null,a.doMouseUp(),Zl(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"+zd.slice(1,5)]["b"+kx.slice(1,y)](b.Z,yf,y,y),b.Vc(!0),Vp(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}cn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},cn.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function Vp(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(Bt,"resize",a.Ov,!1)}function Ls(a){30<a.Sq&&(a.Yh=1)}function Vh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),fr&&fr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}cn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Bt.devicePixelRatio||1},cn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},cn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},cn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},cn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},cn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},cn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},cn.prototype.doFocus=function(){this.focus()},cn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Bt.scrollX||Bt.pageXOffset,y=Bt.scrollY||Bt.pageYOffset;this.ta.focus(),Bt.scrollTo(a,y)}},cn.prototype.Oy=function(){this.H.R("GainedFocus")},cn.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===Bs&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Xh(a){var y=new Vo;y.name="Background",a.Al(y),y=new Vo,y.name="",a.Al(y),y=new Vo,y.name="Foreground",a.Al(y),y=new Vo,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Vo,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Vo,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 Xn(Xn.Grid);y.name="GRID";var x=new pi;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new pi,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new pi,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new pi,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new pi,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new pi,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Nr,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 Yf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Ac(this.H)}function ff(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Ac(this.H)}cn.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,ge=b.height+te.top+te.bottom,Se=b.right+te.right;te=b.bottom+te.bottom;var ke=E.x;b=E.y;var Ge=E.width,et=E.height,ot=E.right,ft=E.bottom;E=this.scale;var jt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":jt=jt+a.scrollWidth-a.clientWidth;break;case"reverse":jt=a.scrollWidth-jt-a.clientWidth}var Dt=jt;Ge<he||et<ge?(jt=kt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Dt&&(jt.x=Dt/E+ne,this.ju=Dt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(jt.y=a.scrollTop/E+se,this.lu=a.scrollTop),this.position=jt,kt.free(jt),this.Ee=this.qr=!1):(jt=kt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<ke&&(this.position=jt.h(Dt+ne,this.position.y)),Se>ot&&(this.position=jt.h(-(y.scrollWidth-this.Aa)+Dt-this.Aa/E+Se,this.position.y))),a.vy&&this.allowVerticalScroll&&(se<b&&(this.position=jt.h(this.position.x,a.scrollTop+se)),te>ft&&(this.position=jt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+te))),kt.free(jt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,Se=b.right,ot=E.right,te=b.bottom,ft=E.bottom,ne=b.x,ke=E.x,se=b.y,b=E.y,Ge>=he&&ne>=ke&&Se<=ot&&(x.style.width="1px"),et>=ge&&se>=b&&te<=ft&&(x.style.height="1px"))}},cn.prototype.computeBounds=function(a){return a===void 0&&(a=new Mn),cs(this),Td(this,a)};function Td(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 ge=ne[he];ge.isInDocumentBounds&&ge.isVisible()&&(ge=ge.actualBounds,ge.w()&&(x?(x=!1,y.assign(ge)):y.ed(ge)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}cn.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 _n||(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 _n||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new Mn(NaN,NaN,0,0):x};function Gl(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=kt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Mn.allocAt(0,0,b.width,b.height);var E=kt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Mn.free(b),kt.free(E),kt.free(x)}x=a.yh,y&&a.Fg!==Bs&&(x=a.Fg);var te=x!==Bs?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()?zi:he),pf(a,a.documentBounds,E,ne,se,y),y=a.scale,a.scale=te,a.vb=!1,te=a.viewportBounds,rn.B(te.x,x)&&rn.B(te.y,b)&&rn.B(te.width,E)&&rn.B(te.height,ne)||a.onViewportBoundsChanged(new Mn(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===Kl?(y=Math.min(he,se),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===$h?(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}cn.prototype.zoomToFit=function(){var a=this.sj;this.sj=xh,this.scale=mh(this,Kl),a!==xh&&(Gl(this,!1),pf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},it=cn.prototype,it.BA=function(a,y){y===void 0&&(y=Kl);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Kl||y===$h)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===$h?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 kt(a.x,a.y)}},it.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new kt(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))},it.zz=function(a){if(a instanceof nn){this.eq=a;var y=kt.alloc();this.fq=this.op(a.ga(Xa,y)),kt.free(y)}else this.eq=null,this.fq=wo};function pf(a,y,x,b,E,te){var ne=kt.allocAt(a.pa.x,a.pa.y),se=ne.x,he=ne.y;if(a.eq!==null){var ge=kt.alloc();ge=a.eq.ga(Xa,ge),se=ge.x-a.fq.x/a.scale,he=ge.y-a.fq.y/a.scale,E=ua,kt.free(ge)}(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),kt.free(ne)}it.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 Nr)return a}else if(a=Lu(this,a,function(x){return x.part}),a instanceof Nr)return a;return null},it.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}it.lz=function(a,y,x){return y===void 0&&(y=!0),Pc(this,a,function(b){return b.part},y?function(b){return b instanceof Nr&&b.canSelect()}:null,x)};function Pc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Dn||E instanceof kn||(E=new kn),cs(a),a=a.Wa.iteratorBackwards;a.next();){var te=a.value;te.visible&&!te.isTemporary&&te.ji(y,x,b,E)}return E}it.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Dn||b instanceof kn||(b=new kn),cs(this);for(var E=this.Wa.iteratorBackwards;E.next();){var te=E.value;te.visible&&te.ji(a,y,x,b)}return b},it.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 Nr&&(!x||E.canSelect())},y,b)},it.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Dn||E instanceof kn||(E=new kn),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},it.Nu=function(a,y,x,b,E,te){var ne=new kn;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 Dn||E instanceof kn||(E=new kn),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}it.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),_c(this,a,y,function(te){return te instanceof Nr&&(!b||te.canSelect())},x,E)},it.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 Dn||E instanceof kn)&&(te=E),E=!0),te instanceof Dn||te instanceof kn||(te=new kn),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 _c(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 Dn||E instanceof kn)&&(te=E),E=!0),te instanceof Dn||te instanceof kn||(te=new kn),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}cn.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),zr&&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=Fd(y,y.target),b.targetObject=null,b}function Fd(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 Dd(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,zr&&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 Zl(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}cn.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(),Zl(x,a)},cn.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(),Zl(x,a)},cn.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(),Zl(x,a)},cn.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),Zl(x,a)},cn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new kt(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?wi(new kt(y,a),this.Ab):new kt(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=kt.allocAt(ne,se),a.Ab.Cd(y),x.documentPoint.assign(y),kt.free(y)):x.documentPoint.h(ne,se)}function Od(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))}}cn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function kd(a){a.ld||cs(a),a.Va()}cn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},it=cn.prototype,it.Pz=function(){return this.kg},it.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 kt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&On(function(){b.ld=!1,Ps(y,"Model"),a(b)},1)},it.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Bt.requestAnimationFrame(function(){y.kg&&y.bd()})}},it.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||Ac(a)||(y&&cs(a),x&&Gl(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||kd(a),Ec(a,!0,!1),ne=!1,te?(x=Mn.alloc(),x.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Nd(a)),a.R("LayoutCompleted"),Ec(a,!0,!1),Mn.free(x)):x.Ok&&x.Qw&&(a.Fg!==Bs?a.scale=mh(a,a.Fg):a.yh!==Bs?a.scale=mh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Gl(a,!0)),te&&ne&&a.eb("Initial Layout"),cs(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Nd(a){if(a.Fg!==Bs)a.scale=mh(a,a.Fg);else if(a.yh!==Bs)a.scale=mh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Gl(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 kn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof ri&&b.U&65536&&(b.U=b.U^65536)})}}it.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof ri||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof ri&&x.isVisible()&&na(this,x);for(a.reset();a.next();)x=a.value,x instanceof _n&&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 Vi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function na(a,y){for(var x=vn(),b=vn(),E=y.memberParts;E.next();){var te=E.value;te.isVisible()&&(te instanceof ri?(Xl(te)||Zs(te)||ed(te))&&na(a,te):te instanceof _n?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(Ln(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();Ln(b)}it.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},it.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Gt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){ru(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,Jy(a,se.m11,se.m12,se.m21,se.m22,se.dx,se.dy),this.pb!==1&&(a.globalAlpha=this.pb),Ns(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?Wd(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,ru(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,ge=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(-ge,-Se),a.setTransform(ne,0,0,ne,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Ns(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?Wd(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=fr&&fr.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 Fa(a,y,x,b,E,te,ne,se,he,ge){if(a.Ka!==null){a.ta===null&&Gt("No canvas specified"),ne===void 0&&(ne=null),se===void 0&&(se=null),he===void 0&&(he=!1),ge===void 0&&(ge=!1),ru(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var Se=a.Ca;a.Ca=E;var ke=a.Wa.s,Ge=ke.length;try{var et=new Mn(te.x,te.y,b.width/E,b.height/E),ot=et.copy();ot.Co(x),sc(a,ot),cs(a),a.Fd(ke,Ge,a,et),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 ft=a.Mb;y.scale(ft,ft);var jt=gi.alloc();jt.reset(),jt.translate(x.left,x.top),jt.scale(E),te.x===0&&te.y===0||jt.translate(-te.x,-te.y),y.setTransform(jt.m11,jt.m12,jt.m21,jt.m22,jt.dx,jt.dy),y.yc(),y instanceof Ml&&Jy(y,jt.m11,jt.m12,jt.m21,jt.m22,jt.dx,jt.dy),gi.free(jt),Ns(a,y),y.globalAlpha=a.pb;var Dt=a.Qj("Grid");if(ne){var Ht=new kn,Zt=ne.iterator;for(Zt.reset();Zt.next();){var Jt=Zt.value;Jt instanceof Nr&&(ge||Jt.layer!==Dt)&&(Jt.Gj(),Ht.add(Jt))}for(ge=0;ge<Ge;ge++)gl(ke[ge],y,a,Ht,he);Ht.each(function(hn){return hn.Gj()})}else for(Ht=0;Ht<Ge;Ht++){var qt=ke[Ht];qt===Dt?ge&&qt.gc(y,a,!0):qt.gc(y,a,he)}a.$i=!1,a.Yf&&Wd(a.Yf,a)&&a.Vp()}finally{a.Ca=Se,a.ib.Vc(!0),a.vd=!0,a.Fd(ke,Ge,a,a.viewportBounds),sc(a),a.ib instanceof Ml&&(a.ib.Nj.PA(),a.redraw())}}}it.Gf=function(a){return this.Rg[a]},it.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},it.Tx=function(){this.Rg=new Fr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(zr||Dr),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ns(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}it.Ql=function(a){return this.on[a]},it.sA=function(a,y){this.on[a]=y},it.Sx=function(){this.on=new Fr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},it.set=function(a){return Object.assign(this,a),this},it.Du=function(a){return this.nm(a)},it.nm=function(a){return nu(this,a),this};function nu(a,y){var x=a instanceof Xn,b=a instanceof cn,E;for(E in y){E===""&&Gt("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])),xn(te)?ne=E.substr(se+1):Gt("Unable to find object named: "+he+" in "+a.toString()+" when trying to set property: "+E)}}if(ne[0]!=="_"&&!Hn(te,ne))if(b&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(b&&ne==="Changed"){a.Pe(y[ne]);continue}else if(b&&Hn(a.toolManager,ne))te=a.toolManager;else if(b&&sm(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof xr&&ne==="Changed"){a.Pe(y[ne]);continue}else Gt('Trying to set undefined property "'+ne+'" on object: '+te.toString());te[ne]=y[E],ne[0]==="_"&&te instanceof nn&&te.Vw(ne)}}it.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new pr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},it.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")},cn.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=Mn.alloc(),$p(this,this.computeBounds(b)),Mn.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 ge=70*ne,Se=Math.max(te,0),ke=Math.max(y,0),Ge=Math.floor(E-Se),et=Math.floor(se-ke);a.drawImage(b.Oa,Se,ke,Ge,et,0,0,Ge,et),Wd(this.Yf,this)&&a.clearRect(0,0,he,ge),b=vn(),a=vn(),et=Math.abs(te),Ge=Math.abs(y);var ot=Se===0?0:E-et;Se=kt.allocAt(ot,0),et=kt.allocAt(et+ot,se),a.push(new Mn(Math.min(Se.x,et.x),Math.min(Se.y,et.y),Math.abs(Se.x-et.x),Math.abs(Se.y-et.y)));var ft=this.Ab;if(ft.reset(),ft.scale(ne,ne),this.Ca!==1&&ft.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&ft.translate(-ne.x,-ne.y),wi(Se,ft),wi(et,ft),b.push(new Mn(Math.min(Se.x,et.x),Math.min(Se.y,et.y),Math.abs(Se.x-et.x),Math.abs(Se.y-et.y))),ot=ke===0?0:se-Ge,Se.h(0,ot),et.h(E,Ge+ot),a.push(new Mn(Math.min(Se.x,et.x),Math.min(Se.y,et.y),Math.abs(Se.x-et.x),Math.abs(Se.y-et.y))),wi(Se,ft),wi(et,ft),b.push(new Mn(Math.min(Se.x,et.x),Math.min(Se.y,et.y),Math.abs(Se.x-et.x),Math.abs(Se.y-et.y))),Wd(this.Yf,this)&&(E=0<te?0:-te,se=0<y?0:-y,Se.h(E,se),et.h(he+E,ge+se),a.push(new Mn(Math.min(Se.x,et.x),Math.min(Se.y,et.y),Math.abs(Se.x-et.x),Math.abs(Se.y-et.y))),wi(Se,ft),wi(et,ft),b.push(new Mn(Math.min(Se.x,et.x),Math.min(Se.y,et.y),Math.abs(Se.x-et.x),Math.abs(Se.y-et.y)))),kt.free(Se),kt.free(et),Ec(this,!1,!0),this.Ka===null&&Gt("No div specified"),this.ta===null&&Gt("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(ru(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,ge=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,-ge),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),Ns(this,E),E.globalAlpha=this.pb,se=0;se<te;se++)if(ne=y[se],he=b,ne.visible&&ne.pb!==0){ge=vs(ne,E),ke=ne.Zq,ke.length=0,Se=this.scale,Ge=Mn.alloc(),et=ne.Pa.s,ft=et.length,ot=he.length;for(var jt=0;jt<ft;jt++){var Dt=et[jt],Ht=Xd(Dt,Dt.actualBounds);e:{for(var Zt=2/Se,Jt=4/Se,qt=0;qt<ot;qt++){var hn=he[qt];if(hn.width!==0&&hn.height!==0&&Ht.Vu(hn.x-Zt,hn.y-Zt,hn.width+Jt,hn.height+Jt)){Ht=!0;break e}}Ht=!1}Ht&&ne.Oj(E,Dt,this,ke,Se,Ge,!0)}Mn.free(Ge),E.globalAlpha=ge}E.restore(),E.Vc(!0),this.Yf&&Wd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Ln(b),Ln(a),this.ld=!1}}else this.bd();x&&(Ls(this),this.bd(),Vh(this,!0))}else x?(Ls(this),this.bd(),Vh(this,!0)):this.bd()}};function ru(a){a.pn!==!1&&(a.pn=!1,Bd(a,a.Aa,a.ya))}function Bd(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 Ac(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,ge=E.clientHeight||b+se,Se=a.viewportBounds;E=Se.x;var ke=Se.y,Ge=Se.width,et=Se.height;if((he!==x+ne||ge!==b+se)&&(a.gf=!1,a.Be=!1,se=ne=0,a.Aa=he,a.ya=ge,te=a.pn=!0,lc(a)),!a.hf||!a.viewportBounds.w())return!0;var ot=a.ku,ft=a.hu;if(a.Ee=!1,!(te||a.gf||a.Be||a.mn||a.nn))return!0;var jt=a.documentBounds,Dt=0,Ht=0,Zt=0,Jt=0,qt=Se.width,hn=Se.height,ir=a.rj;a.contentAlignment.sb()?(jt.width>qt&&(Dt=ir.left,Ht=ir.right),jt.height>hn&&(Zt=ir.top,Jt=ir.bottom)):(Dt=ir.left,Ht=ir.right,Zt=ir.top,Jt=ir.bottom);var mr=jt.width+Dt+Ht,hr=jt.height+Zt+Jt;ir=a.scale;var Qn=mr>he/ir,Bn=hr>ge/ir;if(!(te||a.gf||a.Be||Qn||Bn))return!0;Dt=jt.x-Dt,he=Se.x,Ht=jt.right+Ht,ge=Se.right+ne,Zt=jt.y-Zt;var ei=Se.y;jt=jt.bottom+Jt,Se=Se.bottom+se;var Yr="1px";if(Jt="1px",a.scrollMode===xh&&(Qn||Bn)&&(Qn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Qn=1,Dt+1<he&&(Qn=Math.max((he-Dt)*ir+a.Aa,Qn)),Ht>ge+1&&(Qn=Math.max((Ht-ge)*ir+a.Aa,Qn)),qt+ne+1<mr&&(Qn=Math.max((mr-qt)*ir+a.Aa,Qn)),Yr=Qn.toString()+"px"),Bn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Qn=1,Zt+1<ei&&(Qn=Math.max((ei-Zt)*ir+a.ya,Qn)),jt>Se+1&&(Qn=Math.max((jt-Se)*ir+a.ya,Qn)),hn+se+1<hr&&(Qn=Math.max((hr-hn)*ir+a.ya,Qn)),Jt=Qn.toString()+"px")),Qn=Yr!=="1px",Bn=Jt!=="1px",Qn&&Bn||!Qn&&!Bn||(Bn&&(ge-=a.Db),Qn&&(Se-=a.Db),mr<qt+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,Dt+1<he&&(ne=Math.max((he-Dt)*ir+a.Aa,ne)),Ht>ge+1&&(ne=Math.max((Ht-ge)*ir+a.Aa,ne)),qt+1<mr&&(ne=Math.max((mr-qt)*ir+a.Aa,ne)),Yr=ne.toString()+"px"),Qn=Yr!=="1px",ne=a.ya,Qn!==a.Be&&(ne=Qn?a.ya-a.Db:a.ya+a.Db),hr<hn+se||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(se=1,Zt+1<ei&&(se=Math.max((ei-Zt)*ir+ne,se)),jt>Se+1&&(se=Math.max((jt-Se)*ir+ne,se)),hn+1<hr&&(se=Math.max((hr-hn)*ir+ne,se)),Jt=se.toString()+"px"),Bn=Jt!=="1px"),a.qr&&Qn===a.Be&&Bn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Qn!==a.Be&&(Yr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),te=!0),a.Be=Qn,ft.style.width=Yr,Bn!==a.gf&&(Jt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),te=!0,a.tn&&(se=kt.alloc(),Bn?(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)),kt.free(se))),te&&lc(a),a.gf=Bn,ft.style.height=Jt,a.gu=!0,te&&(a.pn=!0),y=ot.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(qt+1<mr?y=(a.position.x-Dt)*ir:Dt+1<he?y=ot.scrollWidth-ot.clientWidth:Ht>ge+1&&(y=a.position.x*ir)),a.tn)switch(a.bu){case"negative":y=-(ot.scrollWidth-y-ot.clientWidth);break;case"reverse":y=ot.scrollWidth-y-ot.clientWidth}return ot.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(hn+1<hr?ot.scrollTop=(a.position.y-Zt)*ir:Zt+1<ei?ot.scrollTop=ot.scrollHeight-ot.clientHeight:jt>Se+1&&(ot.scrollTop=a.position.y*ir)),he=a.Aa,ge=a.ya,ot.style.width=he+(a.gf?a.Db:0)+"px",ot.style.height=ge+(a.Be?a.Db:0)+"px",x!==he||b!==ge||a.animationManager.zb?(x=Mn.allocAt(E,ke,Ge,et),a.onViewportBoundsChanged(x,a.viewportBounds,ir,te),Mn.free(x),!1):!0}it=cn.prototype,it.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Gt("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&&Gt('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(fa,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},it.oi=function(a){this.partManager.oi(a);var y=this;Zd(a,function(x){Id(y,x)}),(a instanceof Vi||a instanceof ri&&a.placeholder!==null)&&a.v(),a.data!==null&&Zd(a,function(x){ly(y.partManager,x)}),Zs(a)!==!0&&ed(a)!==!0||this.De.add(a),R1(a,!0,this),W1(a)?(a.actualBounds.w()&&this.N(Xd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Xd(a,a.actualBounds)),this.$b()},it.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Zd(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),W1(a)?(a.actualBounds.w()&&this.N(Xd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Xd(a,a.actualBounds)),this.$b()},it.remove=function(a){Yh(this,a,!0)};function Yh(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))}it.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 kn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},it.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},cn.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Jf(this)),this.toolManager!==null){var E=new pr;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=Jf(a)),x instanceof sr){if(y.add(x,a.Pd(E,x,x.location)),x instanceof ri&&(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 _n)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)mu(a,y,x.value,b,E);else x instanceof Vi||y.add(x,a.Pd(E,x,x.location))}function ac(a,y,x,b,E){if(y!==null&&y.count!==0){var te=kt.alloc(),ne=kt.alloc();ne.assign(x),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(x=a.Mr)||_f(a,y);for(var se=vn(),he=vn(),ge=y.iterator,Se=kt.alloc();ge.next();){var ke=ge.key,Ge=ge.value;if(ke.Zc()){var et=Xp(a,ke,y);et!==null?se.push(new ie(ke,Ge,et)):(!E||ke.canMove())&&(et=Ge.point,te.assign(et),a.computeMove(ke,te.add(ne),b,Se),ke.location=Se,Ge.shifted===void 0&&(Ge.shifted=new kt),Ge.shifted.assign(Se.re(et)))}else ge.key instanceof _n&&he.push(ge.sa)}for(kt.free(Se),E=se.length,ge=0;ge<E;ge++)ke=se[ge],te.assign(ke.info.point),ke.Su.shifted===void 0&&(ke.Su.shifted=new kt),ke.node.location=te.add(ke.Su.shifted);for(E=kt.alloc(),ge=kt.alloc(),ke=he.length,Ge=0;Ge<ke;Ge++){var ot=he[Ge];if(et=ot.key,et instanceof _n)if(et.suspendsRouting){et.Tg=null,Se=et.fromNode;var ft=et.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ft=ot.value.point,et.dragComputation===null)y.add(et,a.Pd(b,et,ne)),Lh(et,ne.x-ft.x,ne.y-ft.y);else{ot=kt.allocAt(0,0),(Se=et.i(0))&&Se.w()&&ot.assign(Se);var jt=Se=kt.alloc().assign(ot).add(ne);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(jt=kt.alloc(),Qf(a,et,Se,jt,b)),Se.assign(et.dragComputation(et,Se,jt)).re(ot),y.add(et,a.Pd(b,et,Se)),Lh(et,Se.x-ft.x,Se.y-ft.y),kt.free(ot),kt.free(Se),jt!==Se&&kt.free(jt)}else Se!==null&&(E.assign(Se.location),jt=y.I(Se),jt!==null&&E.re(jt.point)),ft!==null&&(ge.assign(ft.location),jt=y.I(ft),jt!==null&&ge.re(jt.point)),Se!==null&&ft!==null?E.Xa(ge)?(Se=ot.value.point,ft=te,ft.assign(E),ft.re(Se),y.add(et,a.Pd(b,et,E)),Lh(et,ft.x,ft.y)):(et.suspendsRouting=!1,et.bb()):(ot=ot.value.point,Se=Se!==null?E:ft!==null?ge:ne,y.add(et,a.Pd(b,et,Se)),Lh(et,Se.x-ot.x,Se.y-ot.y))}else(et.fromNode===null||et.toNode===null)&&(Se=ot.value.point,y.add(et,a.Pd(b,et,ne)),Lh(et,ne.x-Se.x,ne.y-Se.y))}kt.free(te),kt.free(ne),kt.free(E),kt.free(ge),Ln(se),Ln(he),x||(cs(a),Jh(a,y))}}cn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new kt),b.assign(y),a===null)return b;var E=y,te=x.isGridSnapEnabled;te&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=kt.alloc(),Qf(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,ge=he.x;return isNaN(ge)&&(ge=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,ge)),Math.max(ne,Math.min(x.y,he))),E!==y&&kt.free(E),b};function Jf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Qf(a,y,x,b,E){if(E===void 0&&(E=Jf(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=kt.allocAt(0,0),te.yi(0,0,a,y,E),rn.No(x.x,x.y,se+te.x,ne+te.y,a,y,b),kt.free(te)}}function _f(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof _n&&(y.suspendsRouting=!0)}function Jh(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof _n&&(x.suspendsRouting=!1,Y0(x)&&x.bb())}a.Mr=!1}}function Xp(a,y,x){return y=y.containingGroup,y!==null&&(a=Xp(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}it=cn.prototype,it.Pd=function(a,y,x){if(x===void 0)return new $c(Li);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new $c(new kt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new $c(x.copy())};function Yp(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Gt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Gt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Gt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Gt("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&&Gt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}it.Al=function(a){Yp(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(fa,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},it.Ww=function(a,y){Yp(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(fa,"layers",this,null,a,null,te),this.N(),0>b&&this.Ya(),this},it.Cy=function(a,y){Yp(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(fa,"layers",this,null,a,null,te+1),this.N(),0>b&&this.Ya(),this},it.kA=function(a){if(a.diagram!==this&&Gt("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()}}},it.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},it.Yw=function(a){return this.pf===null&&(this.pf=new Dn),this.pf.add(a),this.model.Pe(a),this},it.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},it.Pe=function(a){return this.zg===null&&(this.zg=new Dn),this.zg.add(a),this},it.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},it.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)},it.cb=function(a,y,x,b,E,te,ne){te===void 0&&(te=null),ne===void 0&&(ne=null);var se=new Zo;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)},it.g=function(a,y,x,b,E){this.cb(Ko,a,this,y,x,b,E)},cn.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===Ko){var E=a.object;if(jo(E,a.propertyName,a.I(y)),E instanceof nn){var te=E.part;te!==null&&te.Wb()}this.isModified=!0}else if(b===fa){var ne=a.object,se=a.newParam,he=a.newValue;if(ne instanceof Xn)if(typeof se=="number"&&he instanceof nn){y?ne.pc(se):ne.Gb(se,he);var ge=ne.part;ge!==null&&ge.Wb()}else typeof se=="number"&&he instanceof ja&&(he.isRow?h1(ne,se,y?void 0:he):d1(ne,se,y?void 0:he));else if(ne instanceof Vo){var Se=a.oldParam===!0;typeof se=="number"&&he instanceof Nr&&(y?(he.isSelected=!1,he.isHighlighted=!1,he.Wb(),ne.pc(Se?se:-1,he,Se)):ne.oi(se,he,Se))}else ne instanceof cn?typeof se=="number"&&he instanceof Vo&&(y?this.Wa.mb(se):(he.Xe(this),this.Wa.Gb(se,he))):Gt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Oa){var ke=a.object,Ge=a.oldParam,et=a.oldValue;if(ke instanceof Xn)typeof Ge=="number"&&et instanceof nn?y?ke.Gb(Ge,et):ke.pc(Ge):typeof Ge=="number"&&et instanceof ja&&(et.isRow?h1(ke,Ge,y?et:void 0):d1(ke,Ge,y?et:void 0));else if(ke instanceof Vo){var ot=a.newParam===!0;typeof Ge=="number"&&et instanceof Nr&&(y?0>ke.Pa.indexOf(et)&&ke.oi(Ge,et,ot):(et.isSelected=!1,et.isHighlighted=!1,et.Wb(),ke.pc(ot?Ge:-1,et,ot)))}else ke instanceof cn?typeof Ge=="number"&&et instanceof Vo&&(y?(et.Xe(this),this.Wa.Gb(Ge,et)):this.Wa.mb(Ge)):Gt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==il&&Gt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},cn.prototype.Ea=function(a){return this.undoManager.Ea(a)},cn.prototype.eb=function(a){return this.undoManager.eb(a)},cn.prototype.Kf=function(){return this.undoManager.Kf()},cn.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}},cn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},cn.prototype.rp=function(){this.partManager.rp()};function Jp(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,ge=a.contentAlignment;isNaN(se)&&(ge.$c()?ge.Hf(Ru)?se=0:ge.Hf(Ws)&&(se=te-1):se=ge.sb()?ge.x*(te-1):te/2),isNaN(he)&&(ge.$c()?ge.Hf(Eu)?he=0:ge.Hf(dl)&&(he=ne-1):he=ge.sb()?ge.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=kt.allocAt(a.pa.x+se/y-se/x,a.pa.y+he/y-he/x),a.position=te,kt.free(te),a.Ca=x,lc(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Gl(a,!1),b.zb&&(ps(b)||b.ce.add(b.H,"scale",y,a.Ca))}}cn.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!==Bs||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Wo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Zf(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=qn.alloc(),E=1,te=1,ne=x.O.s,se=ne.length,he=0;he<se;he++){var ge=ne[he],Se=Math.abs(ge.interval);2>Se||(m0(ge.figure)?te=te*Se/rn.vx(te,Se):E=E*Se/rn.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=Mn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Mn.free(y);return}E=y.width,te=y.height,a=y.x,ne=y.y,Mn.free(y)}x.width=E+2*b.width,x.height=te+2*b.height,y=kt.alloc(),rn.No(a,ne,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),qn.free(b),x.part.location=y,kt.free(y)}}cn.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)}},cn.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))},cn.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 Nr||Gt("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 Nr||Gt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},cn.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()}},it=cn.prototype,it.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},it.Jz=function(a){a=new kn().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 Nr||Gt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},it.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,te=kt.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)),kt.free(te);return}Gt("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):Gt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),kt.free(te)},it.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)},it.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},it.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)},it.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,ge=y.m22,Se=y.dx,ke=y.dy,Ge=x*ne+b*he+Se;y=x*se+b*ge+ke;var et=E*ne+b*he+Se;return a=E*se+b*ge+ke,b=x*ne+te*he+Se,x=x*se+te*ge+ke,ne=E*ne+te*he+Se,E=E*se+te*ge+ke,te=Math.min(Ge,et),Ge=Math.max(Ge,et),et=Math.min(y,a),y=Math.max(y,a),te=Math.min(te,b),Ge=Math.max(Ge,b),et=Math.min(et,x),y=Math.max(y,x),te=Math.min(te,ne),Ge=Math.max(Ge,ne),et=Math.min(et,E),y=Math.max(y,E),new Mn(te,et,Ge-te,y-et)},it.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),wi(a.copy(),this.Ab)};function om(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Qp(a){return a=rp.get(a),a!==null?new a:new fo}cn.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(),aa(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var se=this;On(function(){se.currentTool.standardMouseOver(),se.Rt=!1},10)}}}finally{this.aa=!0}}}};function Id(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Qh(a,y[b])}function Qh(a,y){if(y instanceof ul){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof kn&&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 _p(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 kn&&x.Bg.remove(a),mp(b));break}}}}}cn.prototype.Wd=function(){this.partManager.Wd()},cn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},cn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},cn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},cn.prototype.Vb=function(a){return this.partManager.Vb(a)},cn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},it=cn.prototype,it.Lc=function(a){return this.partManager.Lc(a)},it.ii=function(a){return this.partManager.ii(a)},it.Kc=function(a){return this.partManager.Kc(a)},it.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:Tn(mi(y)))},it.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:Tn(mi(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 $p(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Gl(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}it.Va=function(){if(this.Zi){var a=Mn.alloc();$p(this,this.computeBounds(a)),Mn.free(a)}},it.rz=function(){for(var a=new kn,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},it.qz=function(){return this.ai.iterator},it.Uz=function(a){cs(this),a&&$f(this,!0),this.ld?qp(this,!1):(this.Jk=!0,ol(this))};function $f(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),na(a,y),E.isValidLayout=!0):a.xh=!0)}}it.yz=function(){for(var a=new Dn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function n0(a){function y(E){var te=E.toLowerCase(),ne=new Dn;x.add(E,ne),x.add(te,ne),b.add(E,E),b.add(te,E)}var x=new pr,b=new pr;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;Gt("Unknown DiagramEvent name: "+y)}it.Bj=function(a,y){return a=qf(this,a),a!==null&&a.add(y),this},it.am=function(a,y){a=qf(this,a),a!==null&&a.remove(y)},it.R=function(a,y,x){var b=qf(this,a),E=new Vc;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}it.Yj=function(a,y){return tp(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},cn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Td(this,a):a.assign(this.documentBounds)};function tp(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new Tg(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=Mn.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)}Mn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=Mn.alloc(),te=x.memberParts;te.next();)ne=te.value,ne instanceof sr&&np(a,ne,b,y);Mn.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(Fh,x,y+1);else for(var ne=x;ne<=y;ne++)te[ne]=Fh}else if(y instanceof ri)for(y=y.memberParts;y.next();)E=y.value,E instanceof sr&&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)}cn.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=On(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=Mn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),$p(a,y),Mn.free(y),a.Fc=!0,a.bd(),tg(a))}},a.vp))}cn.prototype.ug=function(){this.vk!==-1&&(Bt.clearTimeout(this.vk),this.vk=-1)},cn.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=Mn.allocAt(0,0,b.width*E,b.height*E);var te=kt.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(Li)||(y=new kt(y.x+te.x/E,y.y+te.y/E)),Mn.free(b),kt.free(te),y},it=cn.prototype,it.Cs=function(){return null},it.av=function(){return null},it.bs=function(a,y){this.pj.add(a,y)},it.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof ri&&(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-ge>he?y(x,E,se):Bt.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,ge=+new Date;return Bt.requestAnimationFrame(function(){b()}),null}it.Wz=function(a){return ia?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},it.Jx=function(a){return a===void 0&&(a={}),gf(this,this.Xz,a)},it.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 zd+"data":E=b.getImageData(0,0,x.width,x.height);break;case zd:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Gt('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"&&Gt("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 qn(1/0,1/0):new qn(2e3,2e3));var se=y.position||null,he=y.parts||null,ge=y.padding===void 0?1:y.padding,Se=y.background||null,ke=y.omitTemporary;ke===void 0&&(ke=!0);var Ge=y.document||document,et=y.elementFinished||null,ot=y.showTemporary;ot===void 0&&(ot=!ke),y=y.showGrid,y===void 0&&(y=ot),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ge=="number"?ge=new kr(ge):ge instanceof kr||Gt("MakeImage padding must be a Margin or a number."),ge.left=Math.max(ge.left,0),ge.right=Math.max(ge.right,0),ge.top=Math.max(ge.top,0),ge.bottom=Math.max(ge.bottom,0),a.ib.Vc(!0),ke=new yu(null,Ge,void 0,!0);var ft=ke.context;if(!(E||te||he||se))return ke.width=a.Aa+Math.ceil(ge.left+ge.right),ke.height=a.ya+Math.ceil(ge.top+ge.bottom),x==="SVG"?b===null?null:(b.resize(ke.width,ke.height,ke.width,ke.height),b.ownerDocument=Ge,b.hs=et,Fa(a,b.context,ge,new qn(ke.width,ke.height),a.Ca,a.pa,he,Se,ot,y),b.context):(a.Xm=!1,Fa(a,ft,ge,new qn(ke.width,ke.height),a.Ca,a.pa,he,Se,ot,y),a.Xm=!0,ke.context);var jt=a.Pp,Dt=a.documentBounds.copy();if(Dt.Fv(a.yb),ot)for(var Ht=a.Wa.s,Zt=Ht.length,Jt=0;Jt<Zt;Jt++){var qt=Ht[Jt];if(qt.visible&&qt.isTemporary){qt=qt.Pa.s;for(var hn=qt.length,ir=0;ir<hn;ir++){var mr=qt[ir];mr.isInDocumentBounds&&mr.isVisible()&&(mr=mr.actualBounds,mr.w()&&Dt.ed(mr))}}}if(Ht=new kt(Dt.x,Dt.y),he!==null){for(Zt=new Mn(0,0,0,0),Jt=!0,qt=he.iterator,qt.reset();qt.next();)hn=qt.value,hn instanceof Nr&&(ir=hn.layer,ir!==null&&!ir.visible||ir!==null&&!ot&&ir.isTemporary||!hn.isVisible()||(hn=hn.actualBounds,hn.w()&&(Jt?(Jt=!1,Zt.assign(hn)):Zt.ed(hn))));Dt.width=Zt.width,Dt.height=Zt.height,Ht.x=Zt.x,Ht.y=Zt.y}return se!==null&&se.w()&&(Ht=se,te||(te=jt)),Zt=se=0,ge!==null&&(se=ge.left+ge.right,Zt=ge.top+ge.bottom),Jt=qt=0,E!==null&&(qt=E.width,Jt=E.height,isFinite(qt)&&(qt=Math.max(0,qt-se)),isFinite(Jt)&&(Jt=Math.max(0,Jt-Zt))),E!==null&&te!==null?(te==="NaN"&&(te=jt),E.w()?(E=qt,Dt=Jt):isNaN(Jt)?(E=qt,Dt=Dt.height*te):(E=Dt.width*te,Dt=Jt)):E!==null?E.w()?(te=Math.min(qt/Dt.width,Jt/Dt.height),E=qt,Dt=Jt):isNaN(Jt)?(te=qt/Dt.width,E=qt,Dt=Dt.height*te):(te=Jt/Dt.height,E=Dt.width*te,Dt=Jt):te!==null?te==="NaN"&&ne.w()?(te=Math.min((ne.width-se)/Dt.width,(ne.height-Zt)/Dt.height),te>jt?(te=jt,E=Dt.width,Dt=Dt.height):(E=ne.width,Dt=ne.height)):(E=Dt.width*te,Dt=Dt.height*te):(te=jt,E=Dt.width,Dt=Dt.height),ge!==null?(E+=se,Dt+=Zt):ge=new kr(0),ne!==null&&(jt=ne.width,ne=ne.height,isNaN(jt)&&(jt=2e3),isNaN(ne)&&(ne=2e3),isFinite(jt)&&(E=Math.min(E,jt)),isFinite(ne)&&(Dt=Math.min(Dt,ne))),ke.width=Math.ceil(E),ke.height=Math.ceil(Dt),x==="SVG"?b===null?null:(b.resize(ke.width,ke.height,ke.width,ke.height),b.ownerDocument=Ge,b.hs=et,Fa(a,b.context,ge,new qn(Math.ceil(E),Math.ceil(Dt)),te,Ht,he,Se,ot,y),b.context):(a.Xm=!1,Fa(a,ft,ge,new qn(Math.ceil(E),Math.ceil(Dt)),te,Ht,he,Se,ot,y),a.Xm=!0,ke.context)}Tt.Object.defineProperties(cn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Ie||(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,Bt.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,Bt.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(Bt,"resize",this.Ov,!1),this.removeEventListener(Bt,"wheel",this.$j,!0),Xu===this&&(Xu=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)&&Kn(a,"0 <= value <= 1",cn,"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),Gl(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),Gl(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),Gl(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),Gl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Kn(a,">= 0",cn,"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&&Kn(a,">= 0",cn,"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 Kn(a,">= 0",cn,"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&&Gt("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=Qp(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(Bt,"pointermove",this.dk,!0),this.addEventListener(Bt,"pointerdown",this.ui,!0),this.addEventListener(Bt,"pointerup",this.fk,!0),this.addEventListener(Bt,"pointerout",this.ek,!0),this.addEventListener(Bt,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Bt,"wheel",this.$j,!0),this.addEventListener(Bt,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Bt,"pointermove",this.dk,!0),this.removeEventListener(Bt,"pointerdown",this.ui,!0),this.removeEventListener(Bt,"pointerup",this.fk,!0),this.removeEventListener(Bt,"pointerout",this.ek,!0),this.removeEventListener(Bt,"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(Bt,"wheel",this.$j,!0),this.removeEventListener(Bt,"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=kt.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)}kt.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!==Xn.Grid&&Gt("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||Gt("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 kr(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&&Gl(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,Gl(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,Jp(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&&Jp(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!==Bs&&Gl(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()||Gt("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()||Gt("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)):Kn(a,"> 0",cn,"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)):Kn(a,"> 0",cn,"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),Gl(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 kr(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&&Gt("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!==Ba&&a!==ip&&Gt("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 qn(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 kr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Tt.Object.defineProperties(cn,{licenseKey:{get:function(){return sg.jc()},set:function(a){sg.add(a.replace(/\s/g,""))}},version:{get:function(){return Rd}}}),cn.prototype.makeImageData=cn.prototype.Jx,cn.prototype.makeImage=cn.prototype.Wz,cn.prototype.cacheGroupExternalLinks=cn.prototype.Fu,cn.prototype.addRenderer=cn.prototype.bs,cn.prototype.makeSVG=cn.prototype.av,cn.prototype.makeSvg=cn.prototype.Cs,cn.prototype.stopAutoScroll=cn.prototype.ug,cn.prototype.doAutoScroll=cn.prototype.gs,cn.prototype.isUnoccupied=cn.prototype.Yj,cn.prototype.raiseDiagramEvent=cn.prototype.R,cn.prototype.removeDiagramListener=cn.prototype.am,cn.prototype.addDiagramListener=cn.prototype.Bj,cn.prototype.findTreeRoots=cn.prototype.yz,cn.prototype.layoutDiagram=cn.prototype.Uz,cn.prototype.findTopLevelGroups=cn.prototype.qz,cn.prototype.findTopLevelNodesAndLinks=cn.prototype.rz,cn.prototype.ensureBounds=cn.prototype.Va,cn.prototype.findLinksByExample=cn.prototype.ls,cn.prototype.findNodesByExample=cn.prototype.ms,cn.prototype.findLinkForData=cn.prototype.Kc,cn.prototype.findNodeForData=cn.prototype.ii,cn.prototype.findPartForData=cn.prototype.Lc,cn.prototype.findLinkForKey=cn.prototype.findLinkForKey,cn.prototype.findNodeForKey=cn.prototype.Vb,cn.prototype.findPartForKey=cn.prototype.findPartForKey,cn.prototype.rebuildParts=cn.prototype.Wd,cn.prototype.transformViewToDoc=cn.prototype.Ps,cn.prototype.transformRectDocToView=cn.prototype.zA,cn.prototype.transformDocToView=cn.prototype.op,cn.prototype.centerRect=cn.prototype.es,cn.prototype.scrollToRect=cn.prototype.tv,cn.prototype.scroll=cn.prototype.scroll,cn.prototype.highlightCollection=cn.prototype.Jz,cn.prototype.highlight=cn.prototype.Iz,cn.prototype.selectCollection=cn.prototype.rA,cn.prototype.select=cn.prototype.select,cn.prototype.updateAllRelationshipsFromData=cn.prototype.rp,cn.prototype.updateAllTargetBindings=cn.prototype.updateAllTargetBindings,cn.prototype.commit=cn.prototype.commit,cn.prototype.rollbackTransaction=cn.prototype.Kf,cn.prototype.commitTransaction=cn.prototype.eb,cn.prototype.startTransaction=cn.prototype.Ea,cn.prototype.raiseChanged=cn.prototype.g,cn.prototype.raiseChangedEvent=cn.prototype.cb,cn.prototype.removeChangedListener=cn.prototype.ik,cn.prototype.addChangedListener=cn.prototype.Pe,cn.prototype.removeModelChangedListener=cn.prototype.mA,cn.prototype.addModelChangedListener=cn.prototype.Yw,cn.prototype.findLayer=cn.prototype.Qj,cn.prototype.removeLayer=cn.prototype.kA,cn.prototype.addLayerAfter=cn.prototype.Cy,cn.prototype.addLayerBefore=cn.prototype.Ww,cn.prototype.addLayer=cn.prototype.Al,cn.prototype.moveParts=cn.prototype.moveParts,cn.prototype.copyParts=cn.prototype.Kj,cn.prototype.removeParts=cn.prototype.Is,cn.prototype.remove=cn.prototype.remove,cn.prototype.add=cn.prototype.add,cn.prototype.clearDelayedGeometries=cn.prototype.bx,cn.prototype.setProperties=cn.prototype.nm,cn.prototype.attach=cn.prototype.Du,cn.prototype.set=cn.prototype.set,cn.prototype.resetInputOptions=cn.prototype.Sx,cn.prototype.setInputOption=cn.prototype.sA,cn.prototype.getInputOption=cn.prototype.Ql,cn.prototype.resetRenderingHints=cn.prototype.Tx,cn.prototype.setRenderingHint=cn.prototype.Xx,cn.prototype.getRenderingHint=cn.prototype.Gf,cn.prototype.maybeUpdate=cn.prototype.bd,cn.prototype.requestUpdate=cn.prototype.$b,cn.prototype.delayInitialization=cn.prototype.Xy,cn.prototype.isUpdateRequested=cn.prototype.Pz,cn.prototype.invalidateDocumentBounds=cn.prototype.Ya,cn.prototype.findObjectsNear=cn.prototype.og,cn.prototype.findPartsNear=cn.prototype.mz,cn.prototype.findObjectsIn=cn.prototype.Cf,cn.prototype.findPartsIn=cn.prototype.ux,cn.prototype.findObjectsAt=cn.prototype.ji,cn.prototype.findPartsAt=cn.prototype.lz,cn.prototype.findObjectAt=cn.prototype.ic,cn.prototype.findPartAt=cn.prototype.Ol,cn.prototype.focusObject=cn.prototype.zz,cn.prototype.alignDocument=cn.prototype.Jy,cn.prototype.zoomToRect=cn.prototype.BA,cn.prototype.zoomToFit=cn.prototype.zoomToFit,cn.prototype.diagramScroll=cn.prototype.kx,cn.prototype.focus=cn.prototype.focus;var rp=new pr,cm=null,ia=Bt.document!==void 0,jd=null,_h="",Bs=new wn(cn,"None",0),Kl=new wn(cn,"Uniform",1),$h=new wn(cn,"UniformToFill",2),mf=new wn(cn,"CycleAll",10),ng=new wn(cn,"CycleNotDirected",11),rg=new wn(cn,"CycleNotDirectedFast",12),ig=new wn(cn,"CycleNotUndirected",13),og=new wn(cn,"CycleDestinationTree",14),ag=new wn(cn,"CycleSourceTree",15),xh=new wn(cn,"DocumentScroll",1),vf=new wn(cn,"InfiniteScroll",2),wh=new wn(cn,"TreeParentCollapsed",21),Ba=new wn(cn,"AllParentsCollapsed",22),ip=new wn(cn,"AnyParentsCollapsed",23),sg=new Dn,Rd="2.3.10",zd="image",yf=null,hm=!1;function Ts(){if(ia){var a=Bt.document.createElement("canvas"),y=a.getContext("2d"),x=dn("7ca11abfd022028846");y[x]=dn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",un.Dx+"4ae6247590da4bb21c324ba3a84e385776",gi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",rn.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}}cn.className="Diagram",cn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Bt.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof cn?y.H:null},cn.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},cn.useDOM=function(a){ia=a?Bt.document!==void 0:!1},cn.isUsingDOM=function(){return ia},cn.None=Bs,cn.Uniform=Kl,cn.UniformToFill=$h,cn.CycleAll=mf,cn.CycleNotDirected=ng,cn.CycleNotDirectedFast=rg,cn.CycleNotUndirected=ig,cn.CycleDestinationTree=og,cn.CycleSourceTree=ag,cn.DocumentScroll=xh,cn.InfiniteScroll=vf,cn.TreeParentCollapsed=wh,cn.AllParentsCollapsed=Ba,cn.AnyParentsCollapsed=ip;function dm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Wd(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=Bt[dn("76a715b2f73f148a")][dn("72ba13b5")]||"";if(a.Rc=!0,ia){var b=cn[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(un[dn("6cae19")]).split(".");if(te[0]>ne[0]||te[0]===ne[0]&&te[1]>=ne[1]){var se=Bt[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=Bt[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=Bt.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,Bt.document[dn("78a712aa")]){Bt.document[dn("78a712aa")][dn("7bb806b6ed32388c4a875b")](ne),he=Bt.getComputedStyle(ne).getPropertyValue(dn("78a704b7e62456904c9b12701b6532a8"));var ge=Bt.getComputedStyle(ne).getPropertyValue(dn("75b817b0ea2202"));if(Bt.document[dn("78a712aa")][dn("68ad1bbcf533388c4a875b")](ne),he){if(ne=Bt[dn("77a902b0eb1b1e804a8a")],ge==="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 $c(a){this.j=a===void 0?new kt:a,this.o=new kt}Tt.Object.defineProperties($c.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";$c.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function de(){this.reset()}de.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new qn(NaN,NaN).freeze(),this.gridSnapCellSpot=Xa,this.gridSnapOrigin=new kt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},de.className="DraggingOptions";function Fe(a,y){if(typeof a=="string"||Bt.Element&&a instanceof Element)var x=cn.call(this,a)||this;else x=cn.call(this)||this,y=a;return Le(x),y&&x.nm(y),x}Xt(Fe,cn);function Le(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Cl,a.layout=new ds}Fe.prototype.reset=function(){cn.prototype.reset.call(this),Le(this)},Fe.className="Palette";function Ie(a,y){if(typeof a=="string"||Bt.Element&&a instanceof Element)var x=cn.call(this,a)||this;else x=cn.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 Nr;var E=new pi;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 kr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Rt,x.toolManager.mouseMoveTools),x.click=function(){var te=b.observed;if(te!==null){var ne=te.viewportBounds,se=b.lastInput.documentPoint;te.position=new kt(se.x-ne.width/2,se.y-ne.height/2)}},x.Pf=function(){b.Ya(),Lt(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&&Lt(b)},x.autoScale=Kl,x.vb=!1,y&&Object.assign(x,y),x}Xt(Ie,cn),Ie.prototype.computePixelRatio=function(){return 1},Ie.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(ru(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),lt(this)}finally{this.ta=a,this.ib=y}}}cn.prototype.redraw.call(this)},Ie.prototype.gc=function(){if(this.Ka===null&&Gt("No div specified"),this.ta===null&&Gt("No canvas specified"),!(this.ta instanceof uc)&&(I0(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){ru(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?lt(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 lt(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=Mn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),sc(y,E),Mn.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 ge=se.diagram.grid.part;if(!x&&se.isTemporary)b&&ge.layer===se&&(se=vs(se,E),ge.gc(E,he),E.globalAlpha=se);else{for(var Se=vs(se,E),ke=he.scale,Ge=Mn.alloc(),et=se.Pa.s,ot=et.length,ft=0;ft<ot;ft++){var jt=et[ft];(b||jt!==ge)&&se.Oj(E,jt,he,null,ke,Ge,!1)}Mn.free(Ge),E.globalAlpha=Se}}}}}function Lt(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=qn.alloc();E.h(x.width,x.height),b.desiredSize=E,qn.free(E),a=2/a.scale,b instanceof pi&&(b.strokeWidth=a),y.location=new kt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Ie.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Ci;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Ie.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Ie.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Lt(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))},Tt.Object.defineProperties(Ie.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Ie&&Gt("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),Lt(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),Lt(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)}}}),Ie.className="Overview";function Rt(){Jo.call(this),this.j=null}Xt(Rt,Jo),Rt.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 kt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new kt(a.x-this.j.x,a.y-this.j.y)),!0)},Rt.prototype.doActivate=function(){this.j=null,Jo.prototype.doActivate.call(this)},Rt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Rt.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 kt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new kt(a.x-this.j.x,a.y-this.j.y)}}},Rt.className="OverviewDraggingTool";function It(){ci(this),this.H=Xu,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=Ci,this.hb=!0,this.cg=null,this.ob=200}It.prototype.toString=function(){return"CommandHandler"},It.prototype.Xe=function(a){this.H=a},It.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=zr?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()},It.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},It.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Wo&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},It.prototype.canStopCommand=function(){return!0},It.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=""}},It.prototype.canSelectAll=function(){return this.diagram.allowSelect},It.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 kn,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=""}},It.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},It.prototype.copySelection=function(){var a=this.diagram,y=new kn;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)},It.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},It.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},It.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},It.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)jd=null,_h="";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 Dn,x.addAll(te),jd=x,_h=y.model.dataFormat}}y.R("ClipboardChanged",x)},It.prototype.pasteFromClipboard=function(){var a=new kn,y=jd;if(y===null)return a;var x=this.diagram;if(_h!==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},It.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 kt(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=""}},It.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||jd===null||jd.count===0||_h!==a.model.dataFormat)},It.prototype.undo=function(){this.diagram.undoManager.undo()},It.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},It.prototype.redo=function(){this.diagram.undoManager.redo()},It.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},It.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Bs&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},It.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Bs?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},It.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Bs&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},It.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Bs?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},It.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},It.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},It.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=Ci):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ts(y)},It.prototype.canZoomToFit=function(){return this.diagram.allowZoom},It.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=Qt(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 sr&&he.isTreeExpanded&&(!(he instanceof ri)||he.isSubGraphExpanded);)he=E.pop();0<E.length?(he instanceof Nr&&y.tv(he.actualBounds),he instanceof sr&&!he.isTreeExpanded&&(he.isTreeExpanded=!0),he instanceof ri&&!he.isSubGraphExpanded&&(he.isSubGraphExpanded=!0)):(he instanceof Nr&&y.es(he.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){On(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 Qt(a,y,x){if(y.isVisible())return x;if(y instanceof Vi)Qt(a,y.adornedPart,x);else if(y instanceof _n){var b=y.fromNode;b!==null&&Qt(a,b,x),y=y.toNode,y!==null&&Qt(a,y,x)}else y instanceof sr&&(b=y.labeledLink,b!==null&&Qt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Qt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Qt(a,y,x));return x}It.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Nr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},It.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 Dn;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 sr&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},It.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof sr&&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 sr&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},It.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 Dn;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 sr&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},It.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof sr)||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 sr&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},It.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 Dn,te=a.selection.iterator;te.next();){var ne=te.value;ne.Zc()&&ne.canGroup()&&E.add(ne)}for(var se=new Dn,he=E.iterator;he.next();){var ge=he.value;te=!1;for(var Se=E.iterator;Se.next();)if(ge.Td(Se.value)){te=!0;break}te||se.add(ge)}if(0<se.count){var ke=se.first().containingGroup;if(ke!==null)for(;ke!==null;){E=!1;for(var Ge=se.iterator;Ge.next();)if(!Ge.value.Td(ke)){E=!0;break}if(E)ke=ke.containingGroup;else break}if(x instanceof ri)Su(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var et=y.copyNodeData(x);xn(et)&&(y.xf(et),b=a.ii(et))}if(b!==null){ke!==null&&this.isValidMember(ke,b)&&(b.containingGroup=ke);for(var ot=se.iterator;ot.next();){var ft=ot.value;this.isValidMember(b,ft)&&(ft.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},It.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 Pn(a){var y=vn();for(a=a.iterator;a.next();){var x=a.value;x instanceof _n||y.push(x)}a=new kn,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 Ln(y),a}It.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof _n)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},It.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 Dn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var te=E.value;te instanceof ri&&te.canUngroup()&&b.add(te)}var ne=new Dn;if(0<b.count){y.clearSelection(!0);for(var se=b.iterator;se.next();){var he=se.value;he.expandSubGraph();var ge=he.containingGroup,Se=ge!==null&&ge.data!==null?x.wa(ge.data):void 0;ne.addAll(he.memberParts);for(var ke=ne.iterator;ke.next();){var Ge=ke.value;if(Ge.isSelected=!0,!(Ge instanceof _n)){var et=Ge.data;et!==null?x.mp(et,Se):Ge.containingGroup=ge}}y.remove(he)}}y.R("SelectionUngrouped",b,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},It.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 ri))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ri&&y.canUngroup())return!0;return!1},It.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Pn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},It.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 Dn;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 ri&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},It.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof ri&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ri&&y.isSubGraphExpanded)return!0;return!1},It.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 Dn;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 ri&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},It.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof ri&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ri&&!y.isSubGraphExpanded)return!0;return!1},It.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 Lo&&te.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},It.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 Lo))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 Lo&&x.editable}),a!==null))return!0;return!1},It.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 nn?E=a.ga(zi):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new kt(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,Co(x,!1,a)}},It.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)},It.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 pr,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 _n&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Tt.Object.defineProperties(It.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||Gt("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}}}),It.className="CommandHandler",Qc=function(){return new It};function nn(){ci(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new kt(NaN,NaN).freeze(),this.jd=Oo,this.Ab=new gi,this.wh=new gi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Es,this.uc=new Mn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Mn(NaN,NaN,NaN,NaN).freeze(),this.dc=new Mn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=io,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 Vn,Rn,yr,Er,Wr,ai,Ti,Si,Hi,So;nn.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=tn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},nn.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)},nn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},nn.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},nn.prototype.copy=function(){return this.clone()},it=nn.prototype,it.qb=function(a){a.classType===_n?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Gt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===nn&&(this.stretch=a)},it.toString=function(){return Fn(this.constructor)+"#"+$r(this)},it.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())}it.Xc=function(){if(this.ba===null){var a=new lg;a.Xi=ua,a.yj=ua,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},it.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===Ko&&ys(this)&&No(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 pr),ne=te.undoManager.transactionLevel===0,a.startCondition===us?ne=!0:a.startCondition===Ca&&(ne=!1),ne?(te=new ra,_o(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 Xn&&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 Xn&&Zd(se,function(he){he.data!==null&&he.l&16777216&&he.La(y)})};function No(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))}}it.ks=function(a){return this.bindingId===a?this:null},it.g=function(a,y,x){this.cb(Ko,a,this,y,x)},it.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 $a(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}it.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?so(a.x,a.y,0,0,0,b.height)<=y||so(a.x,a.y,0,b.height,b.width,b.height)<=y||so(a.x,a.y,b.width,b.height,b.width,0)<=y||so(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},it.se=function(){return!0},it.ca=function(a){var y=kt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return kt.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=Bo(x.x-ne*he,x.y-ne*he,x.width+te*he,x.height+te*he,y.x,y.y),kt.free(y),a}return E=!1,(this instanceof Vi||this instanceof pi?Bo(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)),kt.free(y),E},it.gh=function(a){var y=this.naturalBounds;return Bo(0,0,y.width,y.height,a.x,a.y)},it.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Mn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=kt.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)))),kt.free(E),Mn.free(y),b},it.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=kt.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)))),kt.free(E),b},it.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=kt.allocAt(0,0),E=kt.allocAt(0,x.height),te=kt.allocAt(x.width,x.height),ne=kt.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=Mn.allocAt(0,0,x.width,x.height);var he=kt.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)))),kt.free(he),Mn.free(x),!se&&(rn.us(a,b,E)||rn.us(a,E,te)||rn.us(a,te,ne)||rn.us(a,ne,b))&&(se=!0)}return kt.free(b),kt.free(E),kt.free(te),kt.free(ne),se},it.ga=function(a,y){if(y===void 0&&(y=new kt),a instanceof wr){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},it.mi=function(a){a===void 0&&(a=new Mn);var y=this.naturalBounds,x=this.oe,b=kt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),eo(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),eo(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),eo(a,b.x,b.y,0,0),kt.free(b),a},it.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},it.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},it.qs=function(a,y){return y===void 0&&(y=new kt),y.assign(a),this.oe.Cd(y),y},it.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},it.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,ge=-te.m21*ne,Se=te.m11*ne,ke=ne*(te.m21*te.dy-te.m22*te.dx),Ge=ne*(te.m12*te.dx-te.m11*te.dy);return this.areaBackground!==null?(te=this.actualBounds,rn.Ff(te.left,te.top,te.right,te.bottom,a,y,x,b,E)):(ne=a*se+y*ge+ke,a=a*he+y*Se+Ge,y=x*se+b*ge+ke,x=x*he+b*Se+Ge,E.h(0,0),b=this.naturalBounds,x=rn.Ff(0,0,b.width,b.height,ne,a,y,x,E),E.transform(te),x)},nn.prototype.measure=function(a,y,x,b){if(Xl(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 Xn;switch(sl(this,!0)){case Rn:ne=E=0,se&&(y=a=1/0);break;case Vn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ne=y);break;case Er:isFinite(a)&&a>x&&(E=a),ne=0,se&&(y=1/0);break;case Wr: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()||Gt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ia(this,!1)}},nn.prototype.Wl=function(){},nn.prototype.Dd=function(){return!1},nn.prototype.arrange=function(a,y,x,b,E){this.Uk();var te=Mn.alloc();te.assign(this.Ib),this.Ib.ka(),Zs(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&&Ph(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 Lo&&(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()||Gt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(te,this.Ib),Mc(this,!1),Mn.free(te)},it=nn.prototype,it.eh=function(){};function Is(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=Rn),y){case Rn:(x>b||te>E)&&(Ia(a,!0),a.measure(x>b?b:x,te>E?E:te,0,0));break;case Vn:Ia(a,!0),a.measure(b,E,0,0);break;case Er:Ia(a,!0),a.measure(b,te,0,0);break;case Wr:Ia(a,!0),a.measure(x,E,0,0)}}}it.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||z0(x,!0),this.N(),bo(a,y)||(x.oh(),this.Pn(x)))},it.Pn=function(a){this.portId!==null&&(z0(a,!0),a instanceof sr&&Z1(a,this))},it.gc=function(a,y){if(!iu(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 Xn&&Ph(this),ne=this.Ib;if(te){var se=this.Ib,he=this.dc,ge=this.areaBackground,Se=this.Ma;ge===null&&Se===null||a.yc(),ge!==null&&(sa(this,a,ge,!0,!0,he,se),ge instanceof uo&&ge.type===su?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(ge)):a.fillRect(se.x,se.y,se.width,se.height)),Se!==null&&(sa(this,a,Se,!0,!1,he,se),Se instanceof uo&&Se.type===su?(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),ge=this.part,he=!1;var ke=0;ge&&y.Gf("drawShadows")&&(he=ge.isShadowed)&&(Se=ge.shadowOffset,ke=Math.max(Se.y,Se.x)*y.scale*y.Mb),Se=this.Dd();var Ge;if(!(Ge=y.$i||!Se)){var et=this.naturalBounds;Ge=this.wh;var ot=Ge.m11,ft=Ge.m21,jt=Ge.dx,Dt=Ge.m12,Ht=Ge.m22,Zt=Ge.dy,Jt,qt=Jt=0;Ge=Jt*ot+qt*ft+jt;var hn=Jt*Dt+qt*Ht+Zt;Jt=et.width+ke,qt=0;var ir=Jt*ot+qt*ft+jt;Jt=Jt*Dt+qt*Ht+Zt,qt=Math.min(Ge,ir);var mr=Math.min(hn,Jt),hr=Math.max(Ge+0,ir)-qt,Qn=Math.max(hn+0,Jt)-mr;Ge=qt,hn=mr,Jt=et.width+ke,qt=et.height+ke,ir=Jt*ot+qt*ft+jt,Jt=Jt*Dt+qt*Ht+Zt,qt=Math.min(Ge,ir),mr=Math.min(hn,Jt),hr=Math.max(Ge+hr,ir)-qt,Qn=Math.max(hn+Qn,Jt)-mr,Ge=qt,hn=mr,Jt=0,qt=et.height+ke,ir=Jt*ot+qt*ft+jt,Jt=Jt*Dt+qt*Ht+Zt,qt=Math.min(Ge,ir),mr=Math.min(hn,Jt),hr=Math.max(Ge+hr,ir)-qt,Qn=Math.max(hn+Qn,Jt)-mr,Ge=qt,hn=mr,ke=y.viewportBounds,et=ke.x,ot=ke.y,Ge=!(Ge>ke.width+et||et>hr+Ge||hn>ke.height+ot||ot>Qn+hn)}if(Ge){if(Ge=(this.l&256)!==0,a.clipInsteadOfFill&&(Ge=!1),this instanceof Lo&&(a.font=this.font),Ge){if(hn=se.se()?se.naturalBounds:se.actualBounds,hr=Math.max(ne.x,hn.x),Qn=Math.max(ne.y,hn.y),ke=Math.min(ne.right,hn.right)-hr,et=Math.min(ne.bottom,hn.bottom)-Qn,ot=this.tb,ot!==null&&(hr=ot.x,Qn=ot.y,ke=ot.width,et=ot.height),hr>ne.width+ne.x||ne.x>hn.width+hn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(hr,Qn,ke,et),a.clip()}if(Se){if(!ge.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}he&&(hn=ge.shadowOffset,a.Ev(hn.x*y.scale*this.scale*y.Mb,hn.y*y.scale*this.scale*y.Mb,ge.shadowBlur),qc(a),a.shadowColor=ge.shadowColor)}he&&this.shadowVisible===!0?qc(a):he&&this.shadowVisible===!1&&Lc(a),ge=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Vl(this,a,ge,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,ge,ne)),he&&(this.Ma!==null||this.areaBackground!==null||os(this,se))?(Tu(this,!0),this.shadowVisible===null&&Lc(a)):Tu(this,!1),this.hh(a,y),he&&this.l&512&&qc(a),Se&&he&&Lc(a),Ge&&(a.restore(),a.Vc(this instanceof Xn)),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:(Ph(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Xn.Auto||y.type===Xn.Spot)&&y.Pb()!==a)}it.Dv=function(){};function Vl(a,y,x,b){sa(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof uo&&a.areaBackground.type===su?(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;sa(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof uo&&a.Ma.type===su?(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 Fs(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===Xn.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 iu(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&&Fs(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 Lo&&(y.font=a.font),y.yd=null;var ne=a.transform;te=a instanceof Xn;var se=a instanceof Xn?Ph(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 ge=ne.copy().Vj();y.rb.ha=[ge.m11,ge.m12,ge.m21,ge.m22,ge.dx,ge.dy],Vl(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&&(ge=x.computePixelRatio(),ge="drop-shadow("+y.shadowOffsetX/ge+"px "+y.shadowOffsetY/ge+"px "+y.shadowBlur/ge/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",ge),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",ge)),se&&(a.Ma!==null||a.areaBackground!==null||os(a,E))?(Tu(a,!0),a.shadowVisible===null&&Lc(y)):Tu(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,ge=a.svg,!te&&ge!==null&&se!==ge&&ge.parentNode===a.panel.svg?(a.svg.replaceWith(se),a.svg=se,se!==null&&a.$o(y,b,he,se),al(y,ge),!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&&Fs(a,b,se),ne!==null&&ne(a,se)),!0)}it.$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"+Xi++,se=a.Ud("clipPath",{id:te}),y=a.Ud("rect",{x:y,y:E,width:ne,height:x}),this instanceof Xn&&(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 Ds(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=mi(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()}}it.hh=function(){},it.lv=function(){this.Uc=!0},it.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 Xn?Ph(this):!1;if(!(this instanceof Xn&&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&&Qy(a,te[0],te[1],te[2],te[3],te[4],te[5],te[6],te[7]),x?y.lastElementChild.setAttributeNS(null,"transform",_y(a)):y.setAttributeNS(null,"transform",_y(a))}else if(!x||this instanceof Xn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof pi){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],Vl(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 Xn))&&(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},it.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 sa(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===Ch)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ge=a.kq();if(se=te.width,he=te.height,E?(se=ne.width,he=ne.height):b||(se+=ge,he+=ge),(te=y instanceof Gd)&&x.xe&&(x.type===hp||x.yk===se&&x.ft===he))var Se=x.xe;else{var ke=0,Ge=0,et=0,ot=0,ft=0,jt=0;if(jt=ft=0,E?(ft=ne.x,jt=ne.y):b||(ft-=ge/2,jt-=ge/2),ke=x.start.x*se+x.start.offsetX,Ge=x.start.y*he+x.start.offsetY,et=x.end.x*se+x.end.offsetX,ot=x.end.y*he+x.end.offsetY,ke+=ft,et+=ft,Ge+=jt,ot+=jt,x.type===th)Se=y.createLinearGradient(ke,Ge,et,ot);else if(x.type===su)jt=isNaN(x.endRadius)?Math.max(se,he)/2:x.endRadius,isNaN(x.startRadius)?(ft=0,jt=Math.max(se,he)/2):ft=x.startRadius,Se=y.createRadialGradient(ke,Ge,ft,et,ot,jt);else if(x.type===hp)try{Se=y.createPattern(x.pattern,"repeat")}catch(Ht){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 Dt=a.diagram;Dt!==null&&x.yk===-1&&On(function(){Dt.redraw()},600)}}b?y.fillStyle=Se:y.strokeStyle=Se}}}it.rg=function(a){if(a instanceof Xn)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},it.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},it.If=function(){for(var a=this instanceof Xn?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),ou(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,ou(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,ou(a,!1)))}it.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=kt.alloc();te.yi(y,x,b,E,zi),a.rotate(this.Kb,te.x,te.y),kt.free(te)}},it.v=function(a){if(!Xl(this)){a===void 0&&(a=!1),Ia(this,!0),Mc(this,!0);var y=this.panel;y===null||a||y.v()}},it.Uj=function(){Xl(this)||(Ia(this,!0),Mc(this,!0))};function Gs(a){if(!Zs(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof sr&&a.Bd(),y.$b())),Mc(a,!0)}}it.Uk=function(){!(this.l&2048)&&(vu(this,!0),ou(this,!0))},it.Wu=function(){ou(this,!0)},it.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===Xn.Table?Yu(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Xn.Auto&&b.Pb()===a?as(a,Vn,y):x===ai?b!==null?b.type===Xn.Spot&&b.Pb()===a?as(a,Vn,y):(x=b.defaultStretch,x===ai?as(a,Rn,y):as(a,x,y)):as(a,Rn,y):as(a,x,y)}function Yu(a,y,x,b){var E=a.stretch;if(E!==ai)return as(a,E,b);var te=E=null;switch(y.stretch){case Wr:te=!0;break;case Vn:te=!0}switch(x.stretch){case Er:E=!0;break;case Vn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Er||y===Vn),te===null&&(te=y===Wr||y===Vn),E===!0&&te===!0?as(a,Vn,b):E===!0?as(a,Er,b):te===!0?as(a,Wr,b):as(a,Rn,b)}function as(a,y,x){if(x)return y;if(y===Rn||(x=a.desiredSize,x.w()))return Rn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Er)return Rn;if(y===Vn)return Wr}else{if(y===Wr)return Rn;if(y===Vn)return Er}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Wr)return Rn;if(y===Vn)return Er}else{if(y===Er)return Rn;if(y===Vn)return Wr}return y}function Tu(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 ou(a,y){a.l=y?a.l|4096:a.l&-4097}function Xl(a){return(a.l&8192)!==0}function Ia(a,y){a.l=y?a.l|8192:a.l&-8193}function Zs(a){return(a.l&16384)!==0}function Mc(a,y){a.l=y?a.l|16384:a.l&-16385}it.Gj=function(){this.svg=null},it.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},it.Av=function(){},it.zv=function(a){return this.pa=a,Gs(this),!0},it.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},it.kq=function(){return 0};function Hd(a){var y=a.part;if(y instanceof sr&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||Z1(y,a)}}function Yy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Xn?a instanceof sr?a.Bd():a.qm(a,function(x){Hd(x)}):Hd(a))}it.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Pa(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&f1(a)&&Gt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Dn),this.localBindings.add(E),this},it.set=function(a){return Object.assign(this,a),this},it.Du=function(a){return r0(this,a),this},it.apply=function(a){return a(this),this},it.nm=function(a){return nu(this,a),this},it.pz=function(){return this.ih()},it.ih=function(){for(var a=this instanceof Xn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},it.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new pr),this.animationTriggers.add(a.propertyName,a),this};function au(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=tn(arguments),b=te(x),xn(b)||Gt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Bt.go[a]}if(b===null&&(E!=null&&E.constructor||Gt("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 cn&&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?Gt("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):r0(b,te);return b}function r0(a,y){if(typeof y=="string")if(a instanceof Lo)a.text=y;else if(a instanceof pi)a.figure=y;else if(a instanceof ul)a.source=y;else if(a instanceof Xn)y=Fu.I(y),y!==null&&(a.type=y);else if(a instanceof uo){var x=Yn(uo,y);x!==null?a.type=x:Gt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof $n?(y=Yn($n,y),y!==null&&(a.type=y)):a instanceof Zi&&(y=Yn(Zi,y),y!==null&&(a.type=y));else if(y instanceof nn)a instanceof Xn||Gt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof ja){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 ja?Dm(b,y):Gt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof wn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ka)a.type=y;else if(y instanceof Pa)a instanceof nn||a instanceof ja?a.bind(y):Gt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Al)a instanceof nn?a.Jv(y):Gt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Ga)a instanceof $n&&a.type===$n.o?a.figures.add(y):Gt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Zi)a instanceof Ga?a.segments.add(y):Gt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Go)a instanceof cn||a instanceof ri?a.layout=y:Gt("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++)r0(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof uo){x=new Fr;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);nu(a,x)}else if(a instanceof ja){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Gt("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)&&Gt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Fr;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);nu(a,E)}else nu(a,y);else Gt('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}Tt.Object.defineProperties(nn.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:Xs},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===Xs&&(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:Li},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:ai},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)&&Kn(a,"0 <= value <= 1",nn,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Xd(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(Xd(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(),Yy(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&&Cf(a,"GraphObject.areaBackground"),a instanceof uo&&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&&Cf(a,"GraphObject.background"),a instanceof uo&&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 Nr)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 kt(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&&Gt("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,Yy(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 pi&&this.qc(),this.g("desiredSize",b,a),ys(this)&&(a=this.part,a!==null&&(No(this,a,"width"),No(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 qn(a,this.jd.height).freeze(),this.v(),this instanceof pi&&this.qc(),this.g("desiredSize",y,a),ys(this)&&(a=this.part,a!==null&&No(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 qn(this.jd.width,a).freeze(),this.v(),this instanceof pi&&this.qc(),this.g("desiredSize",y,a),ys(this)&&(a=this.part,a!==null&&No(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:si},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:Do},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 kr(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:Rn},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()&&Gt("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&&Kn(a,">= 0",nn,"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&&Kn(a,">= 1",nn,"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&&Kn(a,">= 0",nn,"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&&Kn(a,">= 1",nn,"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 sr||Gt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&G0(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,X1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ua},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Hd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Kn(a,">= 0",nn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Hd(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),Hd(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&&Kn(a,">= 0",nn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ua},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Hd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Kn(a,">= 0",nn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Hd(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),Hd(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&&Kn(a,">= 0",nn,"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))}}}),nn.prototype.trigger=nn.prototype.Jv,nn.prototype.findBindingPanel=nn.prototype.ih,nn.prototype.findTemplateBinder=nn.prototype.pz,nn.prototype.setProperties=nn.prototype.nm,nn.prototype.apply=nn.prototype.apply,nn.prototype.attach=nn.prototype.Du,nn.prototype.set=nn.prototype.set,nn.prototype.isEnabledObject=nn.prototype.If,nn.prototype.isVisibleObject=nn.prototype.Ed,nn.prototype.isContainedBy=nn.prototype.rg,nn.prototype.getNearestIntersectionPoint=nn.prototype.rs,nn.prototype.getLocalPoint=nn.prototype.qs,nn.prototype.getDocumentScale=nn.prototype.Df,nn.prototype.getDocumentAngle=nn.prototype.li,nn.prototype.getDocumentBounds=nn.prototype.mi,nn.prototype.getDocumentPoint=nn.prototype.ga,nn.prototype.intersectsRect=nn.prototype.Yc,nn.prototype.containedInRect=nn.prototype.fh,nn.prototype.containsRect=nn.prototype.Re,nn.prototype.containsPoint=nn.prototype.ca,nn.prototype.raiseChanged=nn.prototype.g,nn.prototype.raiseChangedEvent=nn.prototype.cb,nn.prototype.addCopyProperty=nn.prototype.Vw;var op=null;nn.className="GraphObject",op=new pr,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=au(Xn,Xn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Xn){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"},au(pi,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new wr(0,0,2.76142374915397,2.761423749153969),spot2:new wr(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 Xn&&(x=b.fb("ButtonBorder"),x instanceof pi)){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 Xn&&(x=b.fb("ButtonBorder"),x instanceof pi&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Xn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof pi){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 Xn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof pi){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 Xn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof pi){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 Xn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof pi))){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=au("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},au(pi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:lo},new Pa("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Pa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Vi&&(x=x.adornedPart),x instanceof sr){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=au("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},au(pi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:lo},new Pa("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 Vi&&(x=x.adornedPart),x instanceof ri){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 au(Vi,Xn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new kt(0,3),shadowBlur:5},au(pi,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new wr(0,0,4,6),spot2:new wr(1,1,-4,-4)}))}),bh("ContextMenu",function(){return au(Vi,Xn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new kt(0,3),shadowBlur:5},new Pa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),bh("ContextMenuButton",function(){var a=au("Button");a.stretch=Er;var y=a.fb("ButtonBorder");return y instanceof pi&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new wr(0,0,2,3),y.spot2=new wr(1,1,-2,-2)),a}),bh("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),x=au("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},au(pi,{name:"ButtonIcon",strokeWidth:2},new Pa("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof pi&&(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=au("Button",{desiredSize:new qn(14,14)},au(pi,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Vn,geometryStretch:yr,visible:!1},y!==""?new Pa("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Xn){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=au("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new kr(0,1,0,0)});var y=au(Xn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new kr(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}),nn.None=Rn=new wn(nn,"None",0),nn.Default=ai=new wn(nn,"Default",0),nn.Vertical=Wr=new wn(nn,"Vertical",4),nn.Horizontal=Er=new wn(nn,"Horizontal",5),nn.Fill=Vn=new wn(nn,"Fill",3),nn.Uniform=yr=new wn(nn,"Uniform",1),nn.UniformToFill=Ti=new wn(nn,"UniformToFill",2),nn.FlipVertical=Si=new wn(nn,"FlipVertical",1),nn.FlipHorizontal=Hi=new wn(nn,"FlipHorizontal",2),nn.FlipBoth=So=new wn(nn,"FlipBoth",3),nn.make=au,nn.getBuilders=function(){var a=new pr,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},nn.defineBuilder=bh,nn.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 nn))return y&&b.set(y),b;Gt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},nn.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=si,this.o=Do,this.hg=ai,this.ob=this.Bi=1,this.Pf=Rn,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=Li,this.rr=Xs,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=io,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 Ud(){this.ha=[1,0,0,1,0,0]}Ud.prototype.copy=function(){var a=new Ud;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},Ud.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},Ud.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Ud.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)}},Ud.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?Bt.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),xn(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},Tt.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 Ud,this.j=pm(this),this.Nj=pm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Xi++,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 Jy(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+")")}it=Ml.prototype,it.arc=function(a,y,x,b,E,te,ne,se){var he=2*Math.PI,ge=he-1e-6,Se=x*Math.cos(b),ke=x*Math.sin(b),Ge=a+Se,et=y+ke,ot=te?0:1;b=te?b-E:E-b,(1e-6<Math.abs(ne-Ge)||1e-6<Math.abs(se-et))&&this.path.push(["L",Ge,+et]),0>b&&(b=b%he+he),b>ge?(this.path.push(["A",x,x,0,1,ot,a-Se,y-ke]),this.path.push(["A",x,x,0,1,ot,Ge,et])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),ot,a+x*Math.cos(E),y+x*Math.sin(E)])},it.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},it.Se=function(a){this.addPath(this.path,this.rb,a||0)},it.bezierCurveTo=function(a,y,x,b,E,te){this.path.push(["C",a,y,x,b,E,te])},it.clearRect=function(){},it.clip=function(){this.Yl.clipPath=!0},it.closePath=function(){this.path.push(["z"])},it.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},it.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"+Xi++,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(zd,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},it.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 Qy(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)}it.drawImage=function(a,y,x,b,E,te,ne,se,he){var ge="";a instanceof HTMLCanvasElement&&(ge=a.toDataURL()),a instanceof HTMLImageElement&&(ge=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,Qy(this,y,x,b,E,te||0,ne||0,se,he),te={x:0,y:0,width:Se||b,height:a||E,href:ge},rn.$(b,se)&&rn.$(E,he)?ge.toLowerCase().indexOf(".svg")===-1&&ge.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,zd,te,this.rb),this.addElement(zd,te)},it.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),i0(this,this.Yl)},it.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},it.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)},it.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},ap(this,"fill",a,this.rb),i0(this,a),this.svg.prepend(this.Ud("rect",a))},it.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])},it.lineTo=function(a,y){this.path.push(["L",a,y])},it.moveTo=function(a,y){this.path.push(["M",a,y])},it.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},it.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"])},it.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},it.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())},it.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 _y(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}it.scale=function(a,y){this.rb.scale(a,y)},it.translate=function(a,y){this.rb.translate(a,y)},it.transform=function(){},it.yc=function(){},it.stroke=function(){qy(this,this.Yl)},it.jk=function(){this.clipInsteadOfFill||this.stroke()},it.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},it.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"?i0(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 i0(a,y){a.fillStyle instanceof bf?y.fill=o0(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 $y(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof bf?y.setAttributeNS(null,"fill",o0(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=o0(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 o0(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"+Xi++,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(ge,Se){return ge.offset>Se.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",te[E]));return a.svg.appendChild(x),"url(#"+b+")"}it.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var te=tn(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 Ud;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}it.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}it.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},it.fs=function(){this.Ct=!1},it.Vc=function(){},it.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",cn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new uc(this,Bt.document));var y=new uc(this,Bt.document,!0);a===void 0&&(a=new Fr);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)},cn.prototype.makeSvg=cn.prototype.Cs,cn.prototype.av=function(a){return this.Cs(a)},cn.prototype.makeSVG=cn.prototype.av;function yu(a,y,x,b){this.ownerDocument=y=y===void 0?Bt.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Gd(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},Tt.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 Gd(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Gt("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}it=Gd.prototype,it.Wx=function(a){this.Z.imageSmoothingEnabled=a},it.arc=function(a,y,x,b,E,te){this.Z.arc(a,y,x,b,E,te)},it.beginPath=function(){this.Z.beginPath()},it.Se=function(){},it.bezierCurveTo=function(a,y,x,b,E,te){this.Z.bezierCurveTo(a,y,x,b,E,te)},it.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},it.clip=function(){this.Z.clip()},it.closePath=function(){this.Z.closePath()},it.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},it.createPattern=function(a,y){return this.Z.createPattern(a,y)},it.createRadialGradient=function(a,y,x,b,E,te){return this.Z.createRadialGradient(a,y,x,b,E,te)},it.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)},it.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},it.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},it.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},it.fillText=function(a,y,x){this.Z.fillText(a,y,x)},it.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},it.lineTo=function(a,y){this.Z.lineTo(a,y)},it.measureText=function(a){return this.Z.measureText(a)},it.moveTo=function(a,y){this.Z.moveTo(a,y)},it.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},it.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},it.restore=function(){this.Z.restore()},it.save=function(){this.yc(),this.Z.save()},Gd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},it=Gd.prototype,it.setTransform=function(a,y,x,b,E,te){this.El.setTransform(a,y,x,b,E,te)},it.scale=function(a,y){this.El.scale(a,y)},it.translate=function(a,y){this.El.translate(a,y)},it.stroke=function(){this.Z.stroke()},it.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}},it.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},it.ng=function(a,y){if(a instanceof uo&&a.type===su){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)},it.jk=function(){this.Hm||this.stroke()},it.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},it.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},it.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},it.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},it.Hs=function(){},Tt.Object.defineProperties(Gd.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([]);Gd.className="CanvasSurfaceContext";function cg(){this.F=this.o=this.u=this.j=0}cg.className="ColorNumbers";function uo(a,y){cp||(h0(),cp=!0),ci(this),this._isFrozen=!1,a===void 0?(this.na=Ch,this.xk="black"):typeof a=="string"?(this.na=Ch,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===th?(this.Qd=Cl,this.Lk=nl):this.Lk=a===su?this.Qd=zi:this.Qd=ua,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}uo.prototype.copy=function(){var a=new uo;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},it=uo.prototype,it.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},it.ka=function(){return Object.isFrozen(this)&&Gt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},it.qb=function(a){a.classType===uo&&(this.type=a)},it.toString=function(){var a="Brush(";if(this.type===Ch)a+=this.color;else if(a=this.type===th?a+"Linear ":this.type===su?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+")"},it.addColorStop=function(a,y){return this._isFrozen&&An(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Kn(a,"0 <= loc <= 1",uo,"addColorStop:loc"),this.we===null&&(this.we=new pr),this.we.add(a,y),this.na===Ch&&(this.type=th),this.xe=null,this},it.Vz=function(a,y){if(this._isFrozen&&An(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dp:y,this.type===Ch)eh(this.color),this.color=lp(a,y);else if((this.type===th||this.type===su)&&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)}it.Wy=function(a,y){if(this._isFrozen&&An(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dp:y,this.type===Ch)eh(this.color),this.color=lp(-a,y);else if((this.type===th||this.type===su)&&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 a0(a,y,x){eh(a),a=Fo.j;var b=Fo.u,E=Fo.o,te=Fo.F;return eh(y),x===void 0&&(x=.5),"rgba("+Math.round((Fo.j-a)*x+a)+", "+Math.round((Fo.u-b)*x+b)+", "+Math.round((Fo.o-E)*x+E)+", "+Math.round((Fo.F-te)*x+te)+")"}it.Gx=function(){if(this.type===Ch)return sp(this.color);if((this.type===th||this.type===su)&&this.colorStops!==null){var a=this.colorStops;if(this.type===su)return sp(a.first().value);if(a.get(.5)!==null)return sp(a.get(.5));if(a.count===2)return a=a.Fa(),sp(a0(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(a0(a.get(x),a.get(b),1-te/E))}return!1};function sp(a){return a?a instanceof uo?a.Gx():(eh(a),128>(299*Fo.j+587*Fo.u+114*Fo.o)/1e3):!1}function lp(a,y){switch(y){case dp:y=100*l0(Fo.j);var x=100*l0(Fo.u),b=100*l0(Fo.o);return Ks.j=.4124564*y+.3575761*x+.1804375*b,Ks.u=.2126729*y+.7151522*x+.072175*b,Ks.o=.0193339*y+.119192*x+.9503041*b,Ks.F=Fo.F,y=c0(Ks.j/up[0]),x=c0(Ks.u/up[1]),b=c0(Ks.o/up[2]),Tc.j=116*x-16,Tc.u=500*(y-x),Tc.o=200*(x-b),Tc.F=Ks.F,Tc.j=Math.min(100,Math.max(0,Tc.j+100*a)),a=(Tc.j+16)/116,y=a-Tc.o/200,Ks.j=up[0]*n1(Tc.u/500+a),Ks.u=up[1]*(Tc.j>mm*d0?Math.pow(a,3):Tc.j/mm),Ks.o=up[2]*n1(y),Ks.F=Tc.F,a=-.969266*Ks.j+1.8760108*Ks.u+.041556*Ks.o,y=.0556434*Ks.j+-.2040259*Ks.u+1.0572252*Ks.o,Fo.j=255*u0((3.2404542*Ks.j+-1.5371385*Ks.u+-.4985314*Ks.o)/100),Fo.u=255*u0(a/100),Fo.o=255*u0(y/100),Fo.F=Ks.F,Fo.j=Math.round(Fo.j),255<Fo.j?Fo.j=255:0>Fo.j&&(Fo.j=0),Fo.u=Math.round(Fo.u),255<Fo.u?Fo.u=255:0>Fo.u&&(Fo.u=0),Fo.o=Math.round(Fo.o),255<Fo.o?Fo.o=255:0>Fo.o&&(Fo.o=0),"rgba("+Fo.j+", "+Fo.u+", "+Fo.o+", "+Fo.F+")";case r1:return s0(),Yl.o=Math.min(100,Math.max(0,Yl.o+100*a)),"hsla("+Yl.j+", "+Yl.u+"%, "+Yl.o+"%, "+Yl.F+")";default:Gt("Unknown color space: "+y)}}function eh(a){cp||(h0(),cp=!0);var y=f0;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,Fo.j=a[0],Fo.u=a[1],Fo.o=a[2],Fo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Fo.j=0,Fo.u=0,Fo.o=0,Fo.F=1)}}function s0(){var a=Fo.j/255,y=Fo.u/255,x=Fo.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))}Yl.j=Math.round(ne),Yl.u=Math.round(100*a),Yl.o=Math.round(100*E),Yl.F=Fo.F}function l0(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function u0(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function c0(a){return a>d0?Math.pow(a,1/3):(mm*a+16)/116}function n1(a){var y=a*a*a;return y>d0?y:(116*a-16)/mm}function Cf(a,y){typeof a!="string"&&(a instanceof uo||Gt("Value for "+y+" must be a color string or a Brush, not "+a))}function h0(){f0=ia?new yu(null,void 0,{willReadFrequently:!0}).context:null}Tt.Object.defineProperties(uo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&An(this,a),this.na=a,this.start.Mc()&&(a===th?this.start=Cl:a===su&&(this.start=zi)),this.end.Mc()&&(a===th?this.end=nl:a===su&&(this.end=zi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&An(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&An(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&An(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&An(this,a),0>a&&Kn(a,">= zero",uo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&An(this,a),0>a&&Kn(a,">= zero",uo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&An(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&An(this,a),this.cr=a,this.xe=null}}}),uo.prototype.isDark=uo.prototype.Gx,uo.prototype.darkenBy=uo.prototype.Wy,uo.prototype.lightenBy=uo.prototype.Vz,uo.prototype.addColorStop=uo.prototype.addColorStop;var d0=216/24389,mm=24389/27,up=[95.047,100,108.883],f0=null,Fo=new cg,Yl=new cg,Ks=new cg,Tc=new cg,cp=!1;uo.className="Brush";var Ch;uo.Solid=Ch=new wn(uo,"Solid",0);var th;uo.Linear=th=new wn(uo,"Linear",1);var su;uo.Radial=su=new wn(uo,"Radial",2);var hp;uo.Pattern=hp=new wn(uo,"Pattern",4);var dp;uo.Lab=dp=new wn(uo,"Lab",5);var r1;uo.HSL=r1=new wn(uo,"HSL",6),uo.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},uo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;cp||(h0(),cp=!0);var y=f0;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)},uo.lighten=function(a){return e1(a)},uo.lightenBy=e1,uo.darken=function(a){return t1(a)},uo.darkenBy=t1,uo.mix=a0,uo.isDark=sp;function Ka(){this.xa="Base"}Ka.prototype.measure=function(){},Ka.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Ka.prototype.arrange=function(){},Ka.prototype.Ly=function(a,y,x,b,E,te){a.arrange(y,x,b,E,te)},Ka.prototype.iA=function(a){a.Uj()},Ka.prototype.gc=function(){},Tt.Object.defineProperties(Ka.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Xn}}}),Ka.prototype.remeasureObject=Ka.prototype.iA,Ka.prototype.arrangeElement=Ka.prototype.Ly,Ka.prototype.measureElement=Ka.prototype.Yz,Ka.className="PanelLayout";function vm(){this.xa="Base"}Xt(vm,Ka),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 ge=b[he];if(ge.visible||ge===a){var Se=ge.margin,ke=Se.right+Se.left;Se=Se.top+Se.bottom,ge.measure(y,x,te,ne);var Ge=ge.measuredBounds;ke=Math.max(Ge.width+ke,0),Se=Math.max(Ge.height+Se,0),Ge=ge.position.x;var et=ge.position.y;isFinite(Ge)||(Ge=0),isFinite(et)||(et=0),ge instanceof pi&&ge.isGeometryPositioned&&(ge=ge.strokeWidth/2,Ge-=ge,et-=ge),eo(E,Ge,et,ke,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,ge=te.position.y;if(he=isNaN(he)?-a:he-a,ge=isNaN(ge)?-x:ge-x,te instanceof pi&&te.isGeometryPositioned){var Se=te.strokeWidth/2;he-=Se,ge-=Se}te.visible&&te.arrange(he+se.left,ge+se.top,ne.width,ne.height)}};function ym(){this.xa="Base"}Xt(ym,Ka),ym.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;y=vn(),te=nh(a);for(var he=0;he<se;he++){var ge=b[he];if(ge.visible||ge===te){var Se=sl(ge,!1);if(Se!==Rn&&Se!==Er)y.push(ge);else{ge.measure(1/0,x,0,ne),Se=ge.margin,ge=ge.measuredBounds;var ke=Math.max(ge.height+Se.top+Se.bottom,0);E.width+=Math.max(ge.width+Se.right+Se.left,0),E.height=Math.max(E.height,ke)}}}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));Ln(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 ge=te,Se=y[he];if(Se.visible){var ke=Se.measuredBounds,Ge=Se.margin,et=Ge.top+Ge.bottom,ot=te+E.bottom,ft=ke.height,jt=sl(Se,!1);(isNaN(Se.desiredSize.height)&&jt===Vn||jt===Wr)&&(ft=Math.max(x.height-et-ot,0)),et=ft+et+ot,ot=Se.alignment,ot.Xb()&&(ot=a.defaultAlignment),ot.sb()||(ot=zi),ne&&(se-=ke.width+Ge.left+Ge.right),Se.arrange(se+ot.offsetX+Ge.left,ge+ot.offsetY+Ge.top+(x.height*ot.y-et*ot.y),ke.width,ft),ne||(se+=ke.width+Ge.left+Ge.right)}}};function Sm(){this.xa="Base"}Xt(Sm,Ka),Sm.prototype.measure=function(a,y,x,b,E,te){var ne=b.length;x=vn();for(var se=nh(a),he=0;he<ne;he++){var ge=b[he];if(ge.visible||ge===se){var Se=sl(ge,!1);if(Se!==Rn&&Se!==Wr)x.push(ge);else{var ke=ge.margin;Se=ke.right+ke.left,ke=ke.top+ke.bottom,ge.measure(y,1/0,te,0),ge=ge.measuredBounds,ha(E,Math.max(E.width,Math.max(ge.width+Se,0)),E.height+Math.max(ge.height+ke,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)&&(ge=he.margin,ne=ge.right+ge.left,ge=ge.top+ge.bottom,he.measure(y,1/0,te,0),he=he.measuredBounds,ge=Math.max(he.height+ge,0),E.width=Math.max(E.width,Math.max(he.width+ne,0)),E.height+=ge);Ln(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 ge=te,Se=y[he];if(Se.visible){var ke=Se.measuredBounds,Ge=Se.margin,et=Ge.left+Ge.right,ot=te+E.right,ft=ke.width,jt=sl(Se,!1);(isNaN(Se.desiredSize.width)&&jt===Vn||jt===Er)&&(ft=Math.max(x.width-et-ot,0)),et=ft+et+ot,ot=Se.alignment,ot.Xb()&&(ot=a.defaultAlignment),ot.sb()||(ot=zi),ne&&(se-=ke.height+Ge.bottom+Ge.top),Se.arrange(ge+ot.offsetX+Ge.left+(x.width*ot.x-et*ot.x),se+ot.offsetY+Ge.top,ft,ke.height),ne||(se+=ke.height+Ge.bottom+Ge.top)}}};function xm(){this.xa="Base"}Xt(xm,Ka),xm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,he=a.Pb(),ge=he.margin,Se=ge.right+ge.left,ke=ge.top+ge.bottom;he.measure(y,x,te,ne);var Ge=he.measuredBounds;te=Ge.width,ne=Ge.height;var et=Math.max(te+Se,0),ot=Math.max(ne+ke,0),ft=a.isClipping,jt=Mn.allocAt(-ge.left,-ge.top,et,ot),Dt=Mn.allocAt(0,0,te,ne);p0(he,Dt,!0),te=Dt.width,ne=Dt.height;for(var Ht=!0,Zt=nh(a),Jt=0;Jt<se;Jt++){var qt=b[Jt];Ge=y;var hn=x;if(qt!==he&&(qt.visible||qt===Zt)){ge=qt.margin;var ir=ge.left,mr=ge.top;switch(et=ge.right+ge.left,ot=ge.top+ge.bottom,ge=sl(qt,!1),ge){case Vn:Ge=te,hn=ne,mr=ir=ot=et=0;break;case Er:Ge=te,ir=et=0;break;case Wr:hn=ne,mr=ot=0}qt.measure(Ge,hn,0,0),Ge=qt.measuredBounds,et=Math.max(Ge.width+et,0),ot=Math.max(Ge.height+ot,0),ge=qt.alignment,ge.Xb()&&(ge=a.defaultAlignment),ge.sb()||(ge=zi);var hr=qt.alignmentFocus;if(hr.Xb()&&(hr=zi),hn=null,qt instanceof Xn&&qt.$e!==""&&(hn=qt.fb(qt.$e),hn===qt&&(hn=null)),ir=Dt.x-ir,mr=Dt.y-mr,hn!==null){for(qt.arrange(0,0,Ge.width,Ge.height),Ge=hn.actualBounds,Ge=kt.allocAt(Ge.x+(hr.x*Ge.width-hr.offsetX),Ge.y+(hr.y*Ge.height-hr.offsetY)),hn=hn.panel;hn!==qt;)hn.transform.Ga(Ge),hn=hn.panel;ir+=ge.x*te+ge.offsetX-Ge.x,mr+=ge.y*ne+ge.offsetY-Ge.y,kt.free(Ge)}else ir+=ge.x*te+ge.offsetX-(hr.x*Ge.width+hr.offsetX),mr+=ge.y*ne+ge.offsetY-(hr.y*Ge.height+hr.offsetY);Ht?(Ht=!1,E.h(ir,mr,et,ot)):eo(E,ir,mr,et,ot)}}switch(Ht?E.assign(jt):ft?E.Uu(Dt.x,Dt.y,Dt.width,Dt.height):eo(E,jt.x,jt.y,jt.width,jt.height),Mn.free(jt),Mn.free(Dt),ge=he.stretch,ge===ai&&(ge=sl(he,!1)),ge){case Rn:return;case Vn:if(!isFinite(y)&&!isFinite(x))return;break;case Er:if(!isFinite(y))return;break;case Wr:if(!isFinite(x))return}for(Ge=he.measuredBounds,te=Ge.width,ne=Ge.height,et=Math.max(te+Se,0),ot=Math.max(ne+ke,0),ge=he.margin,Dt=Mn.allocAt(-ge.left,-ge.top,et,ot),p0(he,Dt,!0),te=Dt.width,ne=Dt.height,y=0;y<se;y++)x=b[y],x===he||!x.visible&&x!==Zt||(ge=x.margin,et=ge.right+ge.left,ot=ge.top+ge.bottom,Ge=x.measuredBounds,et=Math.max(Ge.width+et,0),ot=Math.max(Ge.height+ot,0),Se=x.alignment,Se.Xb()&&(Se=a.defaultAlignment),Se.sb()||(Se=zi),x=x.alignmentFocus,x.Xb()&&(x=zi),Ht?(Ht=!1,E.h(Se.x*te+Se.offsetX-(x.x*Ge.width+x.offsetX)-ge.left,Se.y*ne+Se.offsetY-(x.y*Ge.height+x.offsetY)-ge.top,et,ot)):eo(E,Se.x*te+Se.offsetX-(x.x*Ge.width+x.offsetX)-ge.left,Se.y*ne+Se.offsetY-(x.y*Ge.height+x.offsetY)-ge.top,et,ot));Ht?E.assign(jt):ft?E.Uu(Dt.x,Dt.y,Dt.width,Dt.height):eo(E,jt.x,jt.y,jt.width,jt.height),Mn.free(Dt)},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 ge=te-x.x,Se=he-x.y;for(E.arrange(ge,Se,ne,se),ne=Mn.allocAt(0,0,ne,se),p0(E,ne,!1),se=0;se<b;se++){var ke=y[se];if(ke!==E){ge=ke.measuredBounds;var Ge=ge.width,et=ge.height;Se=ke.alignment,Se.Xb()&&(Se=a.defaultAlignment),Se.sb()||(Se=zi);var ot=ke.alignmentFocus;if(ot.Xb()&&(ot=zi),ge=null,ke instanceof Xn&&ke.$e!==""&&(ge=ke.fb(ke.$e),ge===ke&&(ge=null)),ge!==null){var ft=ge.actualBounds;for(ot=kt.allocAt(ft.x+(ot.x*ft.width-ot.offsetX),ft.y+(ot.y*ft.height-ot.offsetY)),ge=ge.panel;ge!==ke;)ge.transform.Ga(ot),ge=ge.panel;ge=Se.x*ne.width+Se.offsetX-ot.x,Se=Se.y*ne.height+Se.offsetY-ot.y,kt.free(ot)}else ge=Se.x*ne.width+Se.offsetX-(ot.x*Ge+ot.offsetX),Se=Se.y*ne.height+Se.offsetY-(ot.y*et+ot.offsetY);ge+=ne.x-x.x,Se+=ne.y-x.y,ke.visible&&ke.arrange(te+ge,he+Se,Ge,et)}}Mn.free(ne)};function p0(a,y,x){var b=null;if(a instanceof Xn&&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"}Xt(wm,Ka),wm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,he=a.Pb(),ge=he.margin,Se=y,ke=x,Ge=ge.right+ge.left,et=ge.top+ge.bottom;he.measure(y,x,te,ne),ge=he.measuredBounds;var ot=0,ft=null;he instanceof pi&&(ft=he,ot=ft.strokeWidth*ft.scale);var jt=Math.max(ge.width+Ge,0);ge=Math.max(ge.height+et,0);var Dt=y0(he),Ht=Dt.x*jt+Dt.offsetX;Dt=Dt.y*ge+Dt.offsetY;var Zt=S0(he),Jt=Zt.x*jt+Zt.offsetX;for(Zt=Zt.y*ge+Zt.offsetY,isFinite(y)&&(Se=Math.max(Math.abs(Ht-Jt)-ot,0)),isFinite(x)&&(ke=Math.max(Math.abs(Dt-Zt)-ot,0)),ot=qn.alloc(),ot.h(0,0),a=nh(a),Zt=0;Zt<se;Zt++)Dt=b[Zt],Dt===he||!Dt.visible&&Dt!==a||(ge=Dt.margin,jt=ge.right+ge.left,Ht=ge.top+ge.bottom,Dt.measure(Se,ke,0,0),ge=Dt.measuredBounds,jt=Math.max(ge.width+jt,0),ge=Math.max(ge.height+Ht,0),ot.h(Math.max(jt,ot.width),Math.max(ge,ot.height)));if(se===1)E.width=jt,E.height=ge,qn.free(ot);else{switch(Dt=y0(he),Zt=S0(he),se=b=0,Zt.x!==Dt.x&&Zt.y!==Dt.y&&(b=ot.width/Math.abs(Zt.x-Dt.x),se=ot.height/Math.abs(Zt.y-Dt.y)),qn.free(ot),ot=0,ft!==null&&(ot=ft.strokeWidth*ft.scale,E0(ft)===yr&&(b=se=Math.max(b,se))),b+=Math.abs(Dt.offsetX)+Math.abs(Zt.offsetX)+ot,se+=Math.abs(Dt.offsetY)+Math.abs(Zt.offsetY)+ot,ft=he.stretch,ft===ai&&(ft=sl(he,!1)),ft){case Rn:ne=te=0;break;case Vn:isFinite(y)&&(b=y),isFinite(x)&&(se=x);break;case Er:isFinite(y)&&(b=y),ne=0;break;case Wr:te=0,isFinite(x)&&(se=x)}he.Uj(),he.measure(b,se,te,ne),E.width=he.measuredBounds.width+Ge,E.height=he.measuredBounds.height+et}},wm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,te=Mn.alloc();te.h(0,0,1,1);var ne=b.margin,se=ne.left;ne=ne.top;var he=a.padding,ge=he.left;he=he.top,b.arrange(ge+se,he+ne,E.width,E.height);var Se=y0(b),ke=S0(b),Ge=Se.y*E.height+Se.offsetY,et=ke.x*E.width+ke.offsetX;for(ke=ke.y*E.height+ke.offsetY,te.x=Se.x*E.width+Se.offsetX,te.y=Ge,eo(te,et,ke,0,0),te.x+=se+ge,te.y+=ne+he,E=0;E<x;E++)se=y[E],se!==b&&(ge=se.measuredBounds,ne=se.margin,he=Math.max(ge.width+ne.right+ne.left,0),Se=Math.max(ge.height+ne.top+ne.bottom,0),Ge=se.alignment,Ge.Xb()&&(Ge=a.defaultAlignment),Ge.sb()||(Ge=zi),he=te.width*Ge.x+Ge.offsetX-he*Ge.x+ne.left+te.x,ne=te.height*Ge.y+Ge.offsetY-Se*Ge.y+ne.top+te.y,se.visible&&(Bo(te.x,te.y,te.width,te.height,he,ne,ge.width,ge.height)?se.arrange(he,ne,ge.width,ge.height):se.arrange(he,ne,ge.width,ge.height,new Mn(te.x,te.y,te.width,te.height))));Mn.free(te)};function bm(){this.xa="Base",this.name="Table"}Xt(bm,Ka),bm.prototype.measure=function(a,y,x,b,E){for(var te=b.length,ne=vn(),se=vn(),he=0;he<te;he++){var ge=b[he],Se=ge instanceof Xn?ge:null;if(Se!==null&&Ph(Se)&&ge.visible){se.push(Se);for(var ke=Se.O.s,Ge=ke.length,et=0;et<Ge;et++){var ot=ke[et];Se.type===Xn.TableRow?ot.row=ge.row:Se.type===Xn.TableColumn&&(ot.column=ge.column),ne.push(ot)}}else ne.push(ge)}te=ne.length,te===0&&(a.Fb(0),a.Eb(0));for(var ft=[],jt=0;jt<te;jt++){var Dt=ne[jt];Dt.visible&&(Ia(Dt,!0),Mc(Dt,!0),ft[Dt.row]||(ft[Dt.row]=[]),ft[Dt.row][Dt.column]||(ft[Dt.row][Dt.column]=[]),ft[Dt.row][Dt.column].push(Dt))}Ln(ne);var Ht=vn(),Zt=vn(),Jt=vn(),qt={count:0},hn={count:0},ir=y,mr=x,hr=a.rowDefs,Qn=a.colDefs,Bn=null;te=hr.length;for(var ei=0;ei<te;ei++)Bn=hr[ei],Bn!==void 0&&(Bn.actual=0);te=Qn.length;for(var Yr=0;Yr<te;Yr++)Bn=Qn[Yr],Bn!==void 0&&(Bn.actual=0);for(var Ji=ft.length,Eo=0,qa=0;qa<Ji;qa++)ft[qa]&&(Eo=Math.max(Eo,ft[qa].length));var rs=Math.min(a.topIndex,Ji-1),js=Math.min(a.leftIndex,Eo-1),es=0;Ji=ft.length;for(var Nh=nh(a),Ea=0;Ea<Ji;Ea++)if(ft[Ea]){Eo=ft[Ea].length;var qu=a.Fb(Ea);qu.actual=0;for(var Rs=qu.oc=0;Rs<Eo;Rs++)if(ft[Ea][Rs]){var Bh=a.Eb(Rs);Ht[Rs]===void 0&&(Bh.actual=0,Bh.oc=0,Ht[Rs]=!0);for(var _l=ft[Ea][Rs],bu=_l.length,Fl=0;Fl<bu;Fl++){var Sl=_l[Fl];if(Sl.visible||Sl===Nh){var fd=1<Sl.rowSpan||1<Sl.columnSpan;fd&&(Ea<rs||Rs<js||Zt.push(Sl));var ec=Sl.margin,Bp=ec.right+ec.left,Dl=ec.top+ec.bottom,zs=Yu(Sl,qu,Bh,!1),_g=Sl.desiredSize,Bf=!isNaN(_g.height),dc=!isNaN(_g.width)&&Bf;if(fd||zs===Rn||dc||Ea<rs||Rs<js||(qt[Rs]!==void 0||zs!==Vn&&zs!==Er||(qt[Rs]=-1,qt.count++),hn[Ea]!==void 0||zs!==Vn&&zs!==Wr||(hn[Ea]=-1,hn.count++),Jt.push(Sl)),Sl.measure(1/0,1/0,0,0),!(Ea<rs||Rs<js)){var xl=Sl.measuredBounds,$d=Math.max(xl.width+Bp,0),Ol=Math.max(xl.height+Dl,0);if(Sl.rowSpan===1&&(zs===Rn||zs===Er)){Bn=a.Fb(Ea);var pd=Bn.Wc();es=Math.max(Ol-Bn.actual,0),es+pd>mr&&(es=Math.max(mr-pd,0));var Kv=Bn.oa===0;Bn.oc=Bn.oc+es,Bn.actual=Bn.oa+es,mr=Math.max(mr-(es+(Kv?pd:0)),0)}if(Sl.columnSpan===1&&(zs===Rn||zs===Wr)){Bn=a.Eb(Rs);var $g=Bn.Wc();es=Math.max($d-Bn.actual,0),es+$g>ir&&(es=Math.max(ir-$g,0));var Hy=Bn.oa===0;Bn.oc=Bn.oc+es,Bn.actual=Bn.oa+es,ir=Math.max(ir-(es+(Hy?$g:0)),0)}fd&&Sl.Uj()}}}}}Ln(Ht);var Rc=0,oh=0;te=a.columnCount;for(var If=0;If<te;If++){var gd=Qn[If];gd!==void 0&&(Rc+=isNaN(gd.Hc)?gd.oc:gd.Hc,gd.oc!==0&&(Rc+=gd.Wc()))}te=a.rowCount;for(var Ip=0;Ip<te;Ip++){var md=hr[Ip];md!==void 0&&(oh+=isNaN(md.Hc)?md.oc:md.Hc,md.oc!==0&&(oh+=md.Wc()))}ir=Math.max(y-Rc,0);var zc=mr=Math.max(x-oh,0),Ih=ir;te=Jt.length;for(var wl=0;wl<te;wl++){var fc=Jt[wl],Vv=a.Fb(fc.row),ah=a.Eb(fc.column),jp=fc.measuredBounds,tc=fc.margin,qd=tc.right+tc.left,pc=tc.top+tc.bottom;qt[fc.column]=ah.oc===0&&qt[fc.column]!==void 0?Math.max(jp.width+qd,qt[fc.column]):null,hn[fc.row]=Vv.oc===0&&hn[fc.row]!==void 0?Math.max(jp.height+pc,hn[fc.row]):null}var jf=0,Rp=0,Iu;for(Iu in hn)Iu!=="count"&&(jf+=hn[Iu]);for(Iu in qt)Iu!=="count"&&(Rp+=qt[Iu]);for(var fs=qn.alloc(),qg=0;qg<te;qg++){var $s=Jt[qg];if($s.visible||$s===Nh){var Aa=a.Fb($s.row),el=a.Eb($s.column),sh=0;isFinite(el.width)?sh=el.width:(isFinite(ir)&&qt[$s.column]!==null?Rp===0?sh=el.actual+ir:sh=qt[$s.column]/Rp*Ih:qt[$s.column]!==null?sh=ir:sh=el.actual||ir,sh=Math.max(0,sh-el.Wc()));var jh=0;switch(isFinite(Aa.height)?jh=Aa.height:(isFinite(mr)&&hn[$s.row]!==null?jf===0?jh=Aa.actual+mr:jh=hn[$s.row]/jf*zc:hn[$s.row]!==null?jh=mr:jh=Aa.actual||mr,jh=Math.max(0,jh-Aa.Wc())),fs.h(Math.max(el.minimum,Math.min(sh,el.maximum)),Math.max(Aa.minimum,Math.min(jh,Aa.maximum))),zs=Yu($s,Aa,el,!1),zs){case Er:fs.height=Math.max(fs.height,Aa.actual+mr);break;case Wr:fs.width=Math.max(fs.width,el.actual+ir)}var ef=$s.margin,Uy=ef.right+ef.left,Xv=ef.top+ef.bottom;$s.Uj(),$s.measure(fs.width,fs.height,el.minimum,Aa.minimum);var zp=$s.measuredBounds,tf=Math.max(zp.width+Uy,0),Rf=Math.max(zp.height+Xv,0);isFinite(ir)&&(tf=Math.min(tf,fs.width)),isFinite(mr)&&(Rf=Math.min(Rf,fs.height));var bl=0;bl=Aa.actual,Aa.actual=Math.max(Aa.actual,Rf),Aa.oc=Math.max(Aa.oc,Rf),es=Aa.actual-bl,mr=Math.max(mr-es,0),hn[$s.row]===null&&(zc=Math.max(zc-es,0)),bl=el.actual,el.actual=Math.max(el.actual,tf),el.oc=Math.max(el.oc,tf),es=el.actual-bl,ir=Math.max(ir-es,0),qt[$s.column]===null&&(Ih=Math.max(Ih-es,0))}}Ln(Jt);var lh=qn.alloc(),nc=vn(),du=vn();if(te=Zt.length,te!==0){for(var vd=0;vd<Ji;vd++)if(ft[vd]){Eo=ft[vd].length;var Wp=a.Fb(vd);nc[vd]=Wp.actual;for(var yd=0;yd<Eo;yd++)if(ft[vd][yd]){var Yv=a.Eb(yd);du[yd]=Yv.actual}}}for(var Hp=0;Hp<te;Hp++){var ca=Zt[Hp];if(ca.visible||ca===Nh){var ju=a.Fb(ca.row),Cu=a.Eb(ca.column);switch(fs.h(Math.max(Cu.minimum,Math.min(y,Cu.maximum)),Math.max(ju.minimum,Math.min(x,ju.maximum))),zs=Yu(ca,ju,Cu,!1),zs){case Vn:du[Cu.index]!==0&&(fs.width=Math.min(fs.width,du[Cu.index])),nc[ju.index]!==0&&(fs.height=Math.min(fs.height,nc[ju.index]));break;case Er:du[Cu.index]!==0&&(fs.width=Math.min(fs.width,du[Cu.index]));break;case Wr:nc[ju.index]!==0&&(fs.height=Math.min(fs.height,nc[ju.index]))}isFinite(Cu.width)&&(fs.width=Cu.width),isFinite(ju.height)&&(fs.height=ju.height),lh.h(0,0);for(var Jv=Cu.minimum,kl=ju.minimum,Rh=1;Rh<ca.rowSpan&&!(ca.row+Rh>=a.rowCount);Rh++)Bn=a.Fb(ca.row+Rh),es=0,es=zs===Vn||zs===Wr?Math.max(Bn.minimum,nc[ca.row+Rh]===0?Bn.maximum:Math.min(nc[ca.row+Rh],Bn.maximum)):Math.max(Bn.minimum,isNaN(Bn.Hc)?Bn.maximum:Math.min(Bn.Hc,Bn.maximum)),lh.height+=es,kl+=Bn.minimum;for(var Pu=1;Pu<ca.columnSpan&&!(ca.column+Pu>=a.columnCount);Pu++)Bn=a.Eb(ca.column+Pu),es=0,es=zs===Vn||zs===Er?Math.max(Bn.minimum,du[ca.column+Pu]===0?Bn.maximum:Math.min(du[ca.column+Pu],Bn.maximum)):Math.max(Bn.minimum,isNaN(Bn.Hc)?Bn.maximum:Math.min(Bn.Hc,Bn.maximum)),lh.width+=es,Jv+=Bn.minimum;fs.width+=lh.width,fs.height+=lh.height;var Up=ca.margin,Sd=Up.right+Up.left,em=Up.top+Up.bottom;ca.measure(fs.width,fs.height,Jv,kl);for(var Gp=ca.measuredBounds,gc=Math.max(Gp.width+Sd,0),nf=Math.max(Gp.height+em,0),xd=0,Zp=0;Zp<ca.rowSpan&&!(ca.row+Zp>=a.rowCount);Zp++)Bn=a.Fb(ca.row+Zp),xd+=Bn.total||0;if(xd<nf){var zh=nf-xd,Wc=nf-xd;if(ca.spanAllocation!==null)for(var Wh=ca.spanAllocation,uh=0;uh<ca.rowSpan&&!(0>=zh)&&!(ca.row+uh>=a.rowCount);uh++){Bn=a.Fb(ca.row+uh);var Hh=Bn.oa||0,rf=Wh(ca,Bn,Wc);Bn.actual=Math.min(Bn.maximum,Hh+rf),Bn.oa!==Hh&&(zh-=Bn.oa-Hh)}for(;0<zh;){var rc=Bn.oa||0;if(isNaN(Bn.height)&&Bn.maximum>rc&&(Bn.actual=Math.min(Bn.maximum,rc+zh),Bn.oa!==rc&&(zh-=Bn.oa-rc)),Bn.index===0)break;Bn=a.Fb(Bn.index-1)}}for(var zf=0,Uh=0;Uh<ca.columnSpan&&!(ca.column+Uh>=a.columnCount);Uh++)Bn=a.Eb(ca.column+Uh),zf+=Bn.total||0;if(zf<gc){var Wf=gc-zf,Gy=gc-zf;if(ca.spanAllocation!==null)for(var ch=ca.spanAllocation,of=0;of<ca.columnSpan&&!(0>=Wf)&&!(ca.column+of>=a.columnCount);of++){Bn=a.Eb(ca.column+of);var tm=Bn.oa||0,Zy=ch(ca,Bn,Gy);Bn.actual=Math.min(Bn.maximum,tm+Zy),Bn.oa!==tm&&(Wf-=Bn.oa-tm)}for(;0<Wf;){var Qv=Bn.oa||0;if(isNaN(Bn.width)&&Bn.maximum>Qv&&(Bn.actual=Math.min(Bn.maximum,Qv+Wf),Bn.oa!==Qv&&(Wf-=Bn.oa-Qv)),Bn.index===0)break;Bn=a.Eb(Bn.index-1)}}}}Ln(Zt),qn.free(lh),qn.free(fs),nc!==void 0&&Ln(nc),du!==void 0&&Ln(du);var Hf=0,Uf=0,_v=a.desiredSize,gx=a.maxSize;zs=sl(a,!0);var nm=oh=Rc=0,rm=0;te=a.columnCount;for(var $v=0;$v<te;$v++)Qn[$v]!==void 0&&(Bn=a.Eb($v),isFinite(Bn.width)?(nm+=Bn.width,nm+=Bn.Wc()):Om(Bn)===pg?(nm+=Bn.oa,nm+=Bn.Wc()):Bn.oa!==0&&(Rc+=Bn.oa,Rc+=Bn.Wc()));isFinite(_v.width)?Hf=Math.min(_v.width,gx.width):Hf=zs!==Rn&&isFinite(y)?y:Rc,Hf=Math.max(Hf,a.minSize.width),Hf=Math.max(Hf-nm,0);for(var $x=Rc===0?1:Math.max(Hf/Rc,1),qv=0;qv<te;qv++)Qn[qv]!==void 0&&(Bn=a.Eb(qv),isFinite(Bn.width)||Om(Bn)===pg||(Bn.actual=Bn.oa*$x),Bn.position=E.width,Bn.oa!==0&&(E.width+=Bn.oa,E.width+=Bn.Wc()));te=a.rowCount;for(var e0=0;e0<te;e0++)hr[e0]!==void 0&&(Bn=a.Fb(e0),isFinite(Bn.height)?(rm+=Bn.height,rm+=Bn.Wc()):Om(Bn)===pg?(rm+=Bn.oa,rm+=Bn.Wc()):Bn.oa!==0&&(oh+=Bn.oa,oh+=Bn.Wc()));isFinite(_v.height)?Uf=Math.min(_v.height,gx.height):Uf=zs!==Rn&&isFinite(x)?x:oh,Uf=Math.max(Uf,a.minSize.height),Uf=Math.max(Uf-rm,0);for(var qx=oh===0?1:Math.max(Uf/oh,1),t0=0;t0<te;t0++)hr[t0]!==void 0&&(Bn=a.Fb(t0),isFinite(Bn.height)||Om(Bn)===pg||(Bn.actual=Bn.oa*qx),Bn.position=E.height,Bn.oa!==0&&(E.height+=Bn.oa,E.height+=Bn.Wc()));te=se.length;for(var Ky=0;Ky<te;Ky++){var im=se[Ky],Vy=0,Xy=0;im.type===Xn.TableRow?(Vy=E.width,Bn=a.Fb(im.row),Xy=Bn.actual):(Bn=a.Eb(im.column),Vy=Bn.actual,Xy=E.height),im.measuredBounds.h(0,0,Vy,Xy),Ia(im,!1)}Ln(se),a.inRowsCols=ft},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,ge=ne.length,Se=0,ke=0;ke<ge;ke++)ne[ke]&&(Se=Math.max(Se,ne[ke].length));he=a.rowDefs,se=a.colDefs;var Ge=ke=0,et=Math.min(a.topIndex,ge-1);if(0<he.length){for(;et!==ge&&(he[et]===void 0||he[et].oa===0);)et++;et=Math.max(Math.min(et,ge-1),0),ke=-he[et].position}var ot=Math.min(a.leftIndex,Se-1);if(0<se.length){for(;ot!==Se&&(se[ot]===void 0||se[ot].oa===0);)ot++;ot=Math.max(Math.min(ot,Se-1),0),Ge=-se[ot].position}for(var ft=0,jt=0;ft!==ge&&he[ft]===void 0;)ft++;for(;jt!==ge&&se[jt]===void 0;)jt++;Se=a.part,a.Fb(ft),a.Eb(jt);for(var Dt=0;Dt<y.length;Dt++){var Ht=y[Dt];if(Ht instanceof Xn&&Ht.visible&&Ph(Ht)){if(Ht.type===Xn.TableRow){se=a.Fb(Ht.row);var Zt=a.Eb(jt)}else se=a.Fb(ft),Zt=a.Eb(Ht.column);he=se.position+ke+E,se.oa!==0&&(he+=se.Io(Math.max(ft,et))),se=Zt.position+Ge+te,Zt.oa!==0&&(se+=Zt.Io(Math.max(jt,ot))),Zt=Ht.measuredBounds,Ht.Uk(),Ht.actualBounds.ka();var Jt=Ht.actualBounds,qt=Mn.allocAt(Jt.x,Jt.y,Jt.width,Jt.height);Jt.x=Ht.type===Xn.TableRow?te:se,Jt.y=Ht.type===Xn.TableColumn?E:he,Jt.width=Zt.width,Jt.height=Zt.height,Ht.actualBounds.freeze(),Mc(Ht,!1),bo(qt,Jt)||Se===null||(Se.oh(),Ht.Pn(Se)),Mn.free(qt)}}for(Dt=qn.alloc(),Ht=0;Ht<ge;Ht++)if(ne[Ht]){for(Se=ne[Ht].length,Zt=a.Fb(Ht),he=Zt.position+ke+E,Zt.oa!==0&&(he+=Zt.Io(Math.max(ft,et))),Jt=0;Jt<Se;Jt++)if(ne[Ht][Jt]){qt=a.Eb(Jt),se=qt.position+Ge+te,qt.oa!==0&&(se+=qt.Io(Math.max(jt,ot)));for(var hn=ne[Ht][Jt],ir=hn.length,mr=0;mr<ir;mr++){var hr=hn[mr],Qn=hr.measuredBounds;Dt.h(0,0);for(var Bn=1;Bn<hr.rowSpan&&!(Ht+Bn>=a.rowCount);Bn++){var ei=a.Fb(Ht+Bn);ei.oa!==0&&(Dt.height+=ei.total)}for(Bn=1;Bn<hr.columnSpan&&!(Jt+Bn>=a.columnCount);Bn++)ei=a.Eb(Jt+Bn),ei.oa!==0&&(Dt.width+=ei.total);var Yr=qt.oa+Dt.width,Ji=Zt.oa+Dt.height;Bn=se,ei=he;var Eo=Yr,qa=Ji,rs=se,js=he,es=Yr,Nh=Ji;se+Yr>x.width&&(es=Math.max(x.width-se,0)),he+Ji>x.height&&(Nh=Math.max(x.height-he,0));var Ea=hr.alignment;if(Ea.Xb()){Ea=a.defaultAlignment,Ea.sb()||(Ea=zi);var qu=Ea.x,Rs=Ea.y,Bh=Ea.offsetX;Ea=Ea.offsetY;var _l=qt.alignment,bu=Zt.alignment;_l.sb()&&(qu=_l.x,Bh=_l.offsetX),bu.sb()&&(Rs=bu.y,Ea=bu.offsetY)}else qu=Ea.x,Rs=Ea.y,Bh=Ea.offsetX,Ea=Ea.offsetY;(isNaN(qu)||isNaN(Rs))&&(Rs=qu=.5,Ea=Bh=0),_l=Qn.width,bu=Qn.height;var Fl=hr.margin,Sl=Fl.left+Fl.right,fd=Fl.top+Fl.bottom,ec=Yu(hr,Zt,qt,!1);!isNaN(hr.desiredSize.width)||ec!==Vn&&ec!==Er||(_l=Math.max(Yr-Sl,0)),!isNaN(hr.desiredSize.height)||ec!==Vn&&ec!==Wr||(bu=Math.max(Ji-fd,0)),Yr=hr.maxSize,Ji=hr.minSize,_l=Math.min(Yr.width,_l),bu=Math.min(Yr.height,bu),_l=Math.max(Ji.width,_l),bu=Math.max(Ji.height,bu),Yr=bu+fd,Bn+=Eo*qu-(_l+Sl)*qu+Bh+Fl.left,ei+=qa*Rs-Yr*Rs+Ea+Fl.top,hr.visible&&(Bo(rs,js,es,Nh,Bn,ei,Qn.width,Qn.height)?hr.arrange(Bn,ei,_l,bu):hr.arrange(Bn,ei,_l,bu,new Mn(rs,js,es,Nh)))}}}for(qn.free(Dt),a=0;a<b;a++)x=y[a],te=x instanceof Xn?x:null,te!==null&&Ph(te)&&(te=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,te.width,te.height),x.naturalBounds.freeze())}};function Cm(){this.xa="Base"}Xt(Cm,Ka),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Pm(){this.xa="Base"}Xt(Pm,Ka),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Em(){this.xa="Base"}Xt(Em,Ka),Em.prototype.measure=function(a,y,x,b,E,te,ne){1<b.length&&Gt("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,ge=he.right+he.left;if(he=he.top+he.bottom,isFinite(y)||isFinite(x)){var Se=b.scale,ke=se.width;se=se.height;var Ge=Math.max(y-ge,0),et=Math.max(x-he,0),ot=1;a.viewboxStretch===yr?ke!==0&&se!==0&&(ot=Math.min(Ge/ke,et/se)):ke!==0&&se!==0&&(ot=Math.max(Ge/ke,et/se)),ot===0&&(ot=1e-4),b.Ca*=ot,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+ge,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=zi),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"}Xt(hg,Ka),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,ge=Math.ceil(se/E),Se=Math.ceil(he/b),ke=a.gridOrigin,Ge=ke.x;ke=ke.y,y.save(),y.beginPath(),y.rect(0,0,se,he),y.clip(),y.Se();for(var et=[],ot=a.O.s,ft=ot.length,jt=0;jt<ft;jt++){var Dt=ot[jt],Ht=[];if(et.push(Ht),Dt.visible){var Zt=Dt.interval;if(!(0>Zt)){Dt=m0(Dt.figure);for(var Jt=0;Jt<ft;Jt++)if(Jt!==jt){var qt=ot[Jt];qt.visible&&m0(qt.figure)===Dt&&(qt=qt.interval,qt>Zt&&Ht.push(qt))}}}}for(ot=a.O.s,ft=ot.length,jt=0;jt<ft;jt++){var hn=ot[jt];if(hn.visible&&(Ht=hn.interval||1,Dt=Math.abs(Ht),!(2>E*Dt*x))){if(Zt=hn.segmentIndex,(!isFinite(Zt)||isNaN(Zt))&&(Zt=0),0>Zt&&(Zt=Dt-Math.min(-Zt,Dt)),Zt=Math.round(Zt%Dt),Dt=hn.opacity,Jt=1,Dt!==1){if(Dt===0)continue;Jt=y.globalAlpha,y.globalAlpha=Jt*Dt}qt=et[jt];var ir=!1,mr=hn.strokeDashArray;if(mr!==null&&(ir=!0,y.js(mr,hn.strokeDashOffset)),hn.figure==="LineV"&&hn.stroke!==null&&0<hn.strokeWidth){for(y.lineWidth=hn.strokeWidth,sa(a,y,hn.stroke,!1,!1,te,ne),y.beginPath(),mr=hn=Math.floor((Ge-E)/E);mr<=hn+ge;mr++){var hr=mr*E+Ge;0<=hr&&hr<=se&&Am(mr,Ht,Zt,qt)&&(y.moveTo(hr,0),y.lineTo(hr,he))}y.stroke(),y.Se()}else if(hn.figure==="LineH"&&hn.stroke!==null&&0<hn.strokeWidth){for(y.lineWidth=hn.strokeWidth,sa(a,y,hn.stroke,!1,!1,te,ne),y.beginPath(),mr=hn=Math.floor((ke-b)/b);mr<=hn+Se;mr++)hr=mr*b+ke,0<=hr&&hr<=he&&Am(mr,Ht,Zt,qt)&&(y.moveTo(0,hr),y.lineTo(se,hr));y.stroke(),y.Se()}else if(hn.figure==="BarV"&&hn.fill!==null)for(sa(a,y,hn.fill,!0,!1,te,ne),hn=hn.width,isNaN(hn)&&(hn=E),hr=mr=Math.floor((Ge-E)/E);hr<=mr+ge;hr++){var Qn=hr*E+Ge;0<=Qn+hn&&Qn<=se&&Am(hr,Ht,Zt,qt)&&y.fillRect(Qn,0,hn,he)}else if(hn.figure==="BarH"&&hn.fill!==null)for(sa(a,y,hn.fill,!0,!1,te,ne),hn=hn.height,isNaN(hn)&&(hn=b),hr=mr=Math.floor((ke-b)/b);hr<=mr+Se;hr++)Qn=hr*b+ke,0<=Qn+hn&&Qn<=he&&Am(hr,Ht,Zt,qt)&&y.fillRect(0,Qn,se,hn);ir&&y.fs(),Dt!==1&&(y.globalAlpha=Jt)}}y.restore(),y.Vc(!1)};function Am(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"}Xt(Mm,Ka),Mm.prototype.measure=function(a,y,x,b,E){var te=b.length;if(a instanceof Vi||a instanceof _n){var ne=null,se=null;if(a instanceof _n&&(ne=a),a instanceof Vi&&(se=a,ne=se.adornedPart,a.j===null&&(a.j=[])),ne instanceof _n){var he=ne;if(te===0)ha(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ge=a instanceof Vi?null:ne.path;y=ne.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var Se=he.points,ke=ne.pointsCount;se!==null?se.Ul(!1):ne!==null&&ne.Ul(!1),se=y.width;var Ge=y.height,et=a.j;if(et.length=0,ge!==null){i1(a,se,Ge,ge);var ot=ge.measuredBounds;x.ed(ot),et.push(ot)}ot=gi.alloc();for(var ft=kt.alloc(),jt=kt.alloc(),Dt=0;Dt<te;Dt++){var Ht=b[Dt];if(Ht!==ge)if(Ht.isPanelMain&&Ht instanceof pi){i1(a,se,Ge,Ht);var Zt=Ht.measuredBounds;x.ed(Zt),et.push(Zt)}else if(2>ke)Ht.measure(1/0,1/0,0,0),Zt=Ht.measuredBounds,x.ed(Zt),et.push(Zt);else{var Jt=Ht.segmentIndex,qt=Ht.segmentFraction,hn=Ht.alignmentFocus;hn.Mc()&&(hn=zi);var ir=Ht.segmentOrientation,mr=Ht.segmentOffset;if(isNaN(Jt)){var hr=he.ua;Zt=vn(),hr.Qu(qt,Zt);var Qn=kt.allocAt(Zt[0],Zt[1]);if(Qn.add(he.i(0)),hr.type===$n.j?Qn.offset(-hr.startX,-hr.startY):(hr=hr.figures.first(),hr!==null&&Qn.offset(-hr.startX,-hr.startY)),hr=Zt[2],ir!==Xs){var Bn=he.computeAngle(Ht,ir,hr);Ht.Kb=Bn}Bn=Qn.x-y.x;var ei=Qn.y-y.y;kt.free(Qn),Ln(Zt)}else if(Jt<-ke||Jt>=ke)Zt=kt.alloc(),he.vg(),he.computeMidPoint(Zt),hr=he.midAngle,ir!==Xs&&(Bn=he.computeAngle(Ht,ir,hr),Ht.Kb=Bn),Bn=Zt.x-y.x,ei=Zt.y-y.y,kt.free(Zt);else{if(Bn=0,0<=Jt?(ei=Se.M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.y=Ji?Eo:mr.x,rs?0<=Jt||isNaN(Jt)&&.5>qt||!Ji||(jt.y=-Eo):js&&((0<=Jt||isNaN(Jt)&&.5>qt)&&Ji&&(jt.y=-Eo),qa&&(jt.x=-Yr))):(Ji&&(jt.x=0<=Jt||isNaN(Jt)&&.5>qt?Yr:-Yr),qa&&(jt.y=-Eo),jt.rotate(hr))}else jt.rotate(hr);Bn+=jt.x,ei+=jt.y,Qn.set(Zt),Qn.h(Bn+hn,ei+Ht,Zt.width,Zt.height),et.push(Qn),x.ed(Qn)}}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),ha(E,x.width||0,x.height||0),gi.free(ot),kt.free(ft),kt.free(jt)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Vi||a instanceof _n){var b=a,E=null;a instanceof Vi&&(E=a,b=E.adornedPart);var te=a instanceof Vi?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 ge=y[he];if(ge!==te&&se<ne.length){var Se=ne[se];se++,ge.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 _n)for(te=a.labelNodes;te.next();){var ke=a;ne=te.value,se=ne.segmentIndex,he=ne.segmentFraction;var Ge=ne.alignmentFocus;if(ge=ne.segmentOrientation,Se=ne.segmentOffset,isNaN(se)){var et=ke.ua,ot=vn();et.Qu(he,ot);var ft=kt.allocAt(ot[0],ot[1]);ft.add(ke.i(0)),et.type===$n.j||(et=et.figures.first()),ft.offset(-et.startX,-et.startY),et=ot[2],ge!==Xs&&(ke=ke.computeAngle(ne,ge,et),ne.angle=ke),ke=ft.x;var jt=ft.y;kt.free(ft),Ln(ot)}else if(se<-x||se>=x)ot=kt.alloc(),et=ke,jt=ot,et.vg(),et.computeMidPoint(jt),et=ke.midAngle,ge!==Xs&&(ke=ke.computeAngle(ne,ge,et),ne.angle=ke),ke=ot.x,jt=ot.y,kt.free(ot);else{if(ft=0,0<=se?(ot=y.s[se],jt=se<x-1?y.s[se+1]:ot):(ft=x+se,ot=y.s[ft],jt=0<ft?y.s[ft-1]:ot),ot.Xa(jt)){0<=se?(et=0<se?y.s[se-1]:ot,ft=se<x-2?y.s[se+2]:jt):(et=ft<x-1?y.s[ft+1]:ot,ft=1<ft?y.s[ft-2]:jt);var Dt=et.Bf(ot),Ht=jt.Bf(ft);et=Dt>Ht+10?0<=se?et.ab(ot):ot.ab(et):Ht>Dt+10?0<=se?jt.ab(ft):ft.ab(jt):0<=se?et.ab(ft):ft.ab(et)}else et=0<=se?ot.ab(jt):jt.ab(ot);ge!==Xs&&(ke=ke.computeAngle(ne,ge,et),ne.angle=ke),ke=ot.x+(jt.x-ot.x)*he,jt=ot.y+(jt.y-ot.y)*he}if(Ge.ys())ne.location=new kt(ke,jt);else{Ge.Mc()&&(Ge=zi),ot=gi.alloc(),ot.reset(),ot.scale(ne.scale,ne.scale),ot.rotate(ne.angle,0,0);var Zt=ne.naturalBounds;ft=Mn.allocAt(0,0,Zt.width,Zt.height),Dt=kt.alloc(),Dt.xi(ft,Ge),ot.Ga(Dt),Ge=-Dt.x,Ht=-Dt.y;var Jt=Zt.width,qt=Zt.height;Zt=kt.alloc(),Zt.assign(Se);var hn=isNaN(Se.x),ir=isNaN(Se.y);if(hn||ir){Jt=Jt/2+3,qt=qt/2+3;var mr=45<=et&&135>=et,hr=225<=et&&315>=et;ge===Xs&&(mr||hr)?(Zt.x=ir?Jt:Se.y,Zt.y=hn?qt:Se.x,mr?0<=se||isNaN(se)&&.5>he||!hn||(Zt.y=-qt):hr&&((0<=se||isNaN(se)&&.5>he)&&hn&&(Zt.y=-qt),ir&&(Zt.x=-Jt))):(hn&&(Zt.x=0<=se||isNaN(se)&&.5>he?Jt:-Jt),ir&&(Zt.y=-qt),Zt.rotate(et))}else Zt.rotate(et);ke+=Zt.x,jt+=Zt.y,ot.pp(ft),Ge+=ft.x,Ht+=ft.y,se=kt.allocAt(ke+Ge,jt+Ht),ne.move(se),kt.free(se),kt.free(Zt),kt.free(Dt),Mn.free(ft),gi.free(ot)}}E!==null?E.Ul(!1):b.Ul(!1),b=k1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),kt.free(b)}};function i1(a,y,x,b){if(Xl(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Vi&&a.type===Xn.Link&&a.adornedObject instanceof pi&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof _n&&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 Vi&&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"}Xt(dg,Ka),dg.prototype.measure=function(a,y,x,b,E,te,ne){var se=a.Pb();a.graduatedBounds=[];var he=se.margin,ge=he.right+he.left,Se=he.top+he.bottom;se.measure(y,x,te,ne);var ke=se.measuredBounds,Ge=new Mn(-he.left,-he.top,Math.max(ke.width+ge,0),Math.max(ke.height+Se,0));a.graduatedBounds.push(Ge),E.assign(Ge);for(var et=se.geometry,ot=se.strokeWidth,ft=et.flattenedSegments,jt=et.flattenedLengths,Dt=et.flattenedTotalLength,Ht=ft.length,Zt=0,Jt=0,qt=vn(),hn=0;hn<Ht;hn++){var ir=ft[hn],mr=[];Jt=Zt=0;for(var hr=ir.length,Qn=0;Qn<hr;Qn+=2){var Bn=ir[Qn],ei=ir[Qn+1];if(Qn!==0){var Yr=180*Math.atan2(ei-Jt,Bn-Zt)/Math.PI;0>Yr&&(Yr+=360),mr.push(Yr)}Zt=Bn,Jt=ei}qt.push(mr)}if(a.graduatedIntervals===null){for(var Ji=[],Eo=a.O.s,qa=Eo.length,rs=0;rs<qa;rs++){var js=Eo[rs],es=[];if(Ji.push(es),js.visible){var Nh=js.interval;if(!(0>Nh)){for(var Ea=0;Ea<qa;Ea++)if(Ea!==rs){var qu=Eo[Ea];if(qu.visible&&js.constructor===qu.constructor){var Rs=qu.interval;Rs>Nh&&es.push(Rs)}}}}}a.graduatedIntervals=Ji}var Bh=a.graduatedIntervals,_l=a.O.s,bu=_l.length,Fl=0,Sl=0,fd=Dt;a.graduatedMarks=[];for(var ec,Bp=0;Bp<bu;Bp++){var Dl=_l[Bp];if(ec=[],Dl.visible&&Dl!==se){var zs=Math.abs(Dl.interval),_g=a.graduatedTickUnit;if(!(2>_g*zs*Dt/a.graduatedRange&&Dl.graduatedSkip===null)){var Bf=jt[0][0],dc=0,xl=0;Sl=Dt*Dl.graduatedStart-1e-4,fd=Dt*Dl.graduatedEnd+1e-4;var $d=_g*zs,Ol=a.graduatedTickBase;if(Ol<a.graduatedMin){var pd=(a.graduatedMin-Ol)/$d;pd=pd%1===0?pd:Math.floor(pd+1),Ol+=pd*$d}else Ol>a.graduatedMin+$d&&(Ol-=Math.floor((Ol-a.graduatedMin)/$d)*$d);for(var Kv=Bh[Bp],$g=Ol,Hy=1e-6*a.graduatedMax,Rc=1;Ol<=a.graduatedMax+Hy;Rc++){e:{for(var oh=Kv.length,If=0;If<oh;If++){var gd=(Ol-a.graduatedTickBase)%(Kv[If]*a.graduatedTickUnit),Ip=1e-6*a.graduatedTickUnit;if(gd<Ip&&gd>-Ip){var md=!1;break e}}md=!0}if(md&&(Ol>a.graduatedMax&&(Ol=a.graduatedMax),Dl.graduatedSkip===null||Dl instanceof Lo&&!Dl.graduatedSkip(Ol,Dl)||Dl instanceof pi&&!Dl.graduatedSkip(Ol,Dl))&&(Fl=(Ol-a.graduatedMin)*Dt/a.graduatedRange,Fl>Dt&&(Fl=Dt),Sl<=Fl&&Fl<=fd)){for(var zc=qt[dc][xl],Ih=jt[dc][xl];dc<jt.length;){for(;Fl>Bf&&xl<jt[dc].length-1;)xl++,zc=qt[dc][xl],Ih=jt[dc][xl],Bf+=Ih;if(Fl<=Bf)break;dc++,xl=0,zc=qt[dc][xl],Ih=jt[dc][xl],Bf+=Ih}var wl=ft[dc],fc=wl[2*xl],Vv=wl[2*xl+1],ah=(Fl-(Bf-Ih))/Ih,jp=new kt(fc+(wl[2*xl+2]-fc)*ah+ot/2-et.bounds.x,Vv+(wl[2*xl+3]-Vv)*ah+ot/2-et.bounds.y);jp.scale(se.scale,se.scale);e:{var tc=zc,qd=qt[dc];if(!(.5005>ah&&.4995<ah)){var pc=tc;if(.5>ah?0<xl?pc=qd[xl-1]:rn.$(wl[0],wl[wl.length-2])&&rn.$(wl[1],wl[wl.length-1])&&(pc=qd[qd.length-1]):.5<ah&&(xl+1<qd.length?pc=qd[xl+1]:rn.$(wl[0],wl[wl.length-2])&&rn.$(wl[1],wl[wl.length-1])&&(pc=qd[0])),tc!==pc){var jf=Math.abs(tc-pc);if(180<jf&&(tc<pc?tc+=360:pc+=360,jf=Math.abs(tc-pc)),5e-4>ah||.9995<ah){zc=(tc+pc)/2%360;break e}if(10>jf){var Rp=1-Math.abs(.5-ah);zc=(tc*Rp+pc*(1-Rp))%360;break e}}}zc=tc}if(Dl instanceof Lo){var Iu="";Dl.graduatedFunction!==null?(Iu=Dl.graduatedFunction(Ol,Dl),Iu=Iu!=null?Iu.toString():""):Iu=(+Ol.toFixed(2)).toString(),Iu!==""&&ec.push({$l:jp,angle:zc,text:Iu})}else ec.push({$l:jp,angle:zc})}Ol=$g+Rc*$d}}}a.graduatedMarks.push(ec)}Ln(qt);var fs=a.graduatedMarks;if(fs!==null)for(var qg=b.length,$s=0;$s<qg;$s++){var Aa=b[$s],el=fs[$s];if(Aa.visible&&Aa!==se&&el.length!==0){if(Aa instanceof pi){var sh=a,jh=E,ef=Aa.alignmentFocus;ef.Mc()&&(ef=Cl);var Uy=Aa.angle;Aa.Kb=0,Aa.measure(1/0,1/0,0,0),Aa.Kb=Uy;var Xv=Aa.measuredBounds,zp=Xv.width,tf=Xv.height,Rf=Mn.allocAt(0,0,zp,tf),bl=kt.alloc();bl.xi(Rf,ef),Mn.free(Rf);for(var lh=-bl.x,nc=-bl.y,du=new Mn,vd=el.length,Wp=0;Wp<vd;Wp++)for(var yd=el[Wp],Yv=yd.$l.x,Hp=yd.$l.y,ca=yd.angle,ju=0;4>ju;ju++){switch(ju){case 0:bl.h(lh,nc);break;case 1:bl.h(lh+zp,nc);break;case 2:bl.h(lh,nc+tf);break;case 3:bl.h(lh+zp,nc+tf)}bl.rotate(ca+Aa.angle),bl.offset(Yv,Hp),Wp===0&&ju===0?du.h(bl.x,bl.y,0,0):du.Ye(bl),bl.offset(-Yv,-Hp),bl.rotate(-ca-Aa.angle)}kt.free(bl),sh.graduatedBounds!==null&&sh.graduatedBounds.push(du),eo(jh,du.x,du.y,du.width,du.height)}else if(Aa instanceof Lo){var Cu=a,Jv=E;Cu.temporaryTextBlock===null&&(Cu.temporaryTextBlock=new Lo);var kl=Cu.temporaryTextBlock;S1(kl,Aa);var Rh=Aa.alignmentFocus;Rh.Mc()&&(Rh=Cl);for(var Pu=Aa.segmentOrientation,Up=Aa.segmentOffset,Sd=new Mn,em=0,Gp=0,gc=0,nf=0,xd=0,Zp=el.length,zh=0;zh<Zp;zh++){var Wc=el[zh];em=Wc.$l.x,Gp=Wc.$l.y,gc=Wc.angle,xd=nf=Aa.angle,Pu!==Xs&&(xd=Pu===Cg||Pu===nv?gc+Aa.angle:gc,nf=_n.computeAngle(Pu,xd)),kl.Kb=nf,kl.text=Wc.text||"",kl.measure(1/0,1/0,0,0);var Wh=kl.measuredBounds,uh=kl.naturalBounds,Hh=uh.width,rf=uh.height,rc=gi.alloc();rc.reset(),rc.translate(-Wh.x,-Wh.y),rc.scale(kl.scale,kl.scale),rc.rotate(xd,Hh/2,rf/2),Pu!==Pg&&Pu!==Ag||rc.rotate(90,Hh/2,rf/2),Pu!==Eg&&Pu!==Mg||rc.rotate(-90,Hh/2,rf/2),Pu===rv&&(45<gc&&135>gc||225<gc&&315>gc)&&rc.rotate(-gc,Hh/2,rf/2);var zf=Mn.allocAt(0,0,Hh,rf),Uh=kt.alloc();Uh.xi(zf,Rh),rc.Ga(Uh);var Wf=-Uh.x,Gy=-Uh.y,ch=kt.alloc();ch.assign(Up),isNaN(ch.x)&&(ch.x=Hh/2+3),isNaN(ch.y)&&(ch.y=-(rf/2+3)),ch.rotate(gc),em+=ch.x+Wf,Gp+=ch.y+Gy;var of=new Mn(em,Gp,Wh.width,Wh.height),tm=new Mn(Wh.x,Wh.y,Wh.width,Wh.height),Zy=new Mn(uh.x,uh.y,uh.width,uh.height);Wc.Sz=nf,Wc.lineCount=kl.lineCount,Wc.lines=[kl.Cb,kl.Ih,kl.df,kl.Le,kl.Qc,kl.Qb,kl.ze],Wc.actualBounds=of,Wc.measuredBounds=tm,Wc.naturalBounds=Zy,zh===0?Sd.assign(of):Sd.ed(of),kt.free(ch),kt.free(Uh),Mn.free(zf),gi.free(rc)}Cu.graduatedBounds!==null&&Cu.graduatedBounds.push(Sd),eo(Jv,Sd.x,Sd.y,Sd.width,Sd.height)}Ia(Aa,!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,ge=0;ge<he;ge++){var Se=y[ge];se=E[ge],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,ge=a.graduatedMarks,Se=he.length,ke=0;ke<Se;ke++){var Ge=he[ke],et=ge[ke],ot=et.length;if(Ge.visible&&Ge!==te&&et.length!==0){if(Ge instanceof pi){if(!(2>a.graduatedTickUnit*Ge.interval*te.geometry.flattenedTotalLength/a.graduatedRange*ne&&Ge.graduatedSkip===null)){var ft=Ge.measuredBounds,jt=Ge.strokeWidth*Ge.scale,Dt=Ge.alignmentFocus;Dt.Mc()&&(Dt=Cl);for(var Ht=0;Ht<ot;Ht++){var Zt=et[Ht].$l,Jt=et[Ht].angle,qt=Dt,hn=Ge.Ab;hn.reset(),hn.translate(Zt.x+se.x,Zt.y+se.y),hn.rotate(Jt+Ge.angle,0,0),hn.translate(-ft.width*qt.x+qt.offsetX+jt/2,-ft.height*qt.y+qt.offsetY+jt/2),hn.scale(Ge.scale,Ge.scale),vu(Ge,!1),Ge.wh.set(Ge.Ab),Ge.Kk=Ge.scale,ou(Ge,!1),Ge.gc(y,x),E&&(a.svg.appendChild(Ge.svg),Ge.svg=null),Ge.Ab.reset()}}}else if(Ge instanceof Lo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Lo),ft=a.temporaryTextBlock,S1(ft,Ge),jt=0;jt<ot;jt++)Dt=et[jt],Dt.actualBounds&&Dt.measuredBounds&&Dt.naturalBounds&&(ft.ec=Dt.text||"",ft.Kb=Dt.Sz||0,ft.Gc=Dt.lineCount||0,Ht=Dt.lines,Ht!==void 0&&(ft.Cb=Ht[0],ft.Ih=Ht[1],ft.df=Ht[2],ft.Le=Ht[3],ft.Qc=Ht[4],ft.Qb=Ht[5],ft.ze=Ht[6]),Dt.naturalBounds&&(ft.dc=Dt.naturalBounds),Dt.actualBounds&&(Ht=Dt.actualBounds,ft.arrange(Ht.x,Ht.y,Ht.width,Ht.height)),Ht=Dt.actualBounds,ft.arrange(Ht.x,Ht.y,Ht.width,Ht.height),Zt=Dt.measuredBounds,Dt=Dt.naturalBounds,Jt=ft.Ab,Jt.reset(),Jt.translate(Ht.x+se.x,Ht.y+se.y),Jt.translate(-Zt.x,-Zt.y),ft.no(Jt,Dt.x,Dt.y,Dt.width,Dt.height),vu(ft,!1),ft.wh.set(ft.Ab),ft.Kk=ft.scale,ou(ft,!1),ft.Ng=Ge.part,ft.Me=Ge.panel,ft.gc(y,x),ft.Me=null,ft.Ng=null,E&&(a.svg.appendChild(ft.svg),ft.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Xn(a,y){if(nn.call(this),this.na=null,a===void 0)this.na=Xn.Position;else if(typeof a=="string"){var x=Fu.I(a);x!==null&&(this.na=x)}else a instanceof Ka?this.na=a:a&&(this.na=Xn.Position,y=a);this.na===null&&Gt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Xn.Grid?1048576:0),this.O=new Dn,this.yb=Es,this.Tm=io,this.Uf=ai,this.$g=null,this.$e="",this.jg=new Mn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=yr,this.jn=Qi,this.kn=Li,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Xt(Xn,nn),Xn.prototype.cloneProtected=function(a){nn.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},Xn.prototype.Af=function(a){nn.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},Xn.prototype.copy=function(){var a=nn.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 sr&&(te.Te=!0);var se=a.diagram;se!==null&&se.undoManager.isUndoingRedoing||te.cb(fa,"elements",a,null,E,null,ne)}}return a}return null},it=Xn.prototype,it.toString=function(){return"Panel("+this.type.name+")#"+$r(this)},it.Pn=function(a){nn.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},it.hh=function(a,y){if(this.na===Xn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Xn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Xn.Table)if(a.yc(),a instanceof Ml){var x=a.yd;a.yd=pm(a,"gojs-ts"),g0(this,a),a.nh.pop(),a.yd=x}else g0(this,a);(x=this.isClipping&&this.na===Xn.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 g0(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 ge=b[he];if(ge!==void 0&&ge.actual!==0)if(se)se=!1;else{if(x){if(ge.position>ne.height)continue}else if(ge.position>ne.width)continue;var Se=ge.separatorStrokeWidth;isNaN(Se)&&(Se=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ke=ge.separatorStroke;if(ke===null&&(ke=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),Se!==0&&ke!==null){sa(a,y,ke,!1,!1,ne,te),ke=!1;var Ge=ge.separatorDashArray;Ge===null&&(Ge=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ge!==null&&(ke=!0,y.js(Ge,0)),y.beginPath(),Ge=ge.position+Se,x?Ge>ne.height&&(Se-=Ge-ne.height):Ge>ne.width&&(Se-=Ge-ne.width),ge=ge.position+Se/2,y.lineWidth=Se,Se=a.yb,x?(ge+=Se.top,Ge=ne.width-Se.right,y.moveTo(Se.left,ge),y.lineTo(Ge,ge)):(ge+=Se.left,Ge=ne.height-Se.bottom,y.moveTo(ge,Se.top),y.lineTo(ge,Ge)),y.stroke(),y.Se(),ke&&y.fs()}}}}function Lm(a,y,x,b,E){for(var te=b.length,ne=a.actualBounds,se=a.naturalBounds,he=a1(a,!0),ge=a1(a,!1),Se=0;Se<te;Se++){var ke=b[Se];if(ke!==void 0&&ke.background!==null&&ke.coversSeparators!==E&&ke.actual!==0){var Ge=x?ne.height:ne.width;if(!(ke.position>Ge)){var et=ke.Wc(),ot=ke.separatorStrokeWidth;isNaN(ot)&&(ot=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=ke.separatorStroke;ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ft===null||ke.index===(x?he:ge))&&(ot=0),et-=ot,ot=ke.position+ot,et+=ke.actual,ot+et>Ge&&(et=Ge-ot),0>=et||(Ge=a.yb,sa(a,y,ke.background,!0,!1,se,ne),x?y.fillRect(Ge.left,ot+Ge.top,ne.width-(Ge.left+Ge.right),et):y.fillRect(ot+Ge.left,Ge.top,et,ne.height-(Ge.top+Ge.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 m0(a){return a==="LineV"||a==="BarV"}it.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},it.kk=function(a,y,x){if(!nn.prototype.kk.call(this,a,y,x))return!1;if(this.type===Xn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,g0(this,a),a.yd=null;else if(this.na===Xn.Grid||this.na===Xn.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},it.nk=function(){return!0},it.$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 nn.prototype.$o.call(this,a,y,x,b)},it.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,ge=-ne.m12*se,Se=-ne.m21*se,ke=ne.m11*se,Ge=se*(ne.m21*ne.dy-ne.m22*ne.dx),et=se*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,rn.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,x,b,E);if(this.background!==null)return te=a*he+y*Se+Ge,se=a*ge+y*ke+et,a=x*he+b*Se+Ge,he=x*ge+b*ke+et,E.h(0,0),x=this.naturalBounds,te=rn.Ff(0,0,x.width,x.height,te,se,a,he,E),E.transform(ne),te;te||(he=1,Se=ge=0,ke=1,et=Ge=0),se=a*he+y*Se+Ge,a=a*ge+y*ke+et,he=x*he+b*Se+Ge,x=x*ge+b*ke+et,E.h(he,x),b=(he-se)*(he-se)+(x-a)*(x-a),ge=!1,ke=this.O.s,et=ke.length,Se=kt.alloc(),Ge=null,y=1/0;var ot=null,ft=this.isClipping&&this.na===Xn.Spot;ft&&(ot=kt.alloc(),Ge=this.Pb(),(ge=Ge.Sj(se,a,he,x,ot))&&(y=(se-ot.x)*(se-ot.x)+(a-ot.y)*(a-ot.y)));for(var jt=0;jt<et;jt++){var Dt=ke[jt];Dt.visible&&Dt!==Ge&&Dt.Sj(se,a,he,x,Se)&&(ge=!0,Dt=(se-Se.x)*(se-Se.x)+(a-Se.y)*(a-Se.y),Dt<b&&(b=Dt,E.set(Se)))}return ft&&(y>b&&E.set(ot),kt.free(ot)),kt.free(Se),te&&E.transform(ne),ge},it.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();nn.prototype.Gj.call(this)},it.v=function(a){if(!Xl(this)){nn.prototype.v.call(this,a),a=null,(this.na===Xn.Auto||this.na===Xn.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 Vs||E instanceof Xn||E instanceof Lo||te!==Rn)&&E.v(!0)}}}},it.Uj=function(){if(!Xl(this)){Ia(this,!0),Mc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},it.Uk=function(){if(!(this.l&2048)){vu(this,!0),ou(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},it.Wu=function(){ou(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},it.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 ge=this.O.s;ge.length!==0&&this.na.measure(this,a,y,ge,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),ha(E,a,he),ha(this.naturalBounds,a,he),this.Ge(0,0,a,he)},it.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}it.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=Rn),a){case Rn:(y>x||te>b)&&(this.v(),this.measure(y>x?x:y,te>b?b:te,0,0));break;case Vn:this.v(!0),this.measure(x+se,b+ne,0,0);break;case Er:this.v(!0),this.measure(x+se,te+ne,0,0);break;case Wr:this.v(!0),this.measure(y+se,b+ne,0,0)}}this.na.arrange(this,E,this.jg)}},it.gh=function(a){var y=this.naturalBounds,x=nh(this);if(Bo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=kt.allocAt(0,0);b--;){var te=y[b];if((te.visible||te===x)&&(wi(E.set(a),te.transform),te.ca(E)))return kt.free(E),!0}return kt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},it.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},it.qm=function(a,y){if(y(this,a),a instanceof Xn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Zd(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 Xn&&s1(a,te,x)}}function yx(a,y){l1(a,a,y)}function l1(a,y,x){if(x(y),y instanceof Xn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)l1(a,y[E],x)}}it.Nl=function(a){return u1(this,this,a)};function u1(a,y,x){if(x(y))return y;if(y instanceof Xn){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}it.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 Xn){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 Xn?x=Math.max(x,c1(E)):E instanceof pi&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}it.se=function(){return!(this.type===Xn.TableRow||this.type===Xn.TableColumn)};function Ph(a){return a.type===Xn.TableRow||a.type===Xn.TableColumn}it.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Zs(this)))return null;var b=this.naturalBounds,E=1/this.Df(),te=this.se(),ne=te?a:wi(kt.allocAt(a.x,a.y),this.transform),se=this.diagram,he=10,ge=5;if(se!==null&&(he=se.Ql("extraTouchArea"),ge=he/2),Bo(-(ge*E),-(ge*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=kt.alloc(),ge=(he=this.isClipping&&this.na===Xn.Spot)?this.Pb():null,he&&(ge.se()?wi(se.set(a),ge.transform):se.set(a),!ge.ca(se)))return kt.free(se),te||kt.free(ne),null;for(var ke=nh(this);Se--;){var Ge=E[Se];if((Ge.visible||Ge===ke)&&(Ge.se()?wi(se.set(a),Ge.transform):se.set(a),!he||Ge!==ge)){var et=null;if(Ge instanceof Xn?et=Ge.ic(se,y,x):Ge.pickable===!0&&Ge.ca(se)&&(et=Ge),et!==null&&(y!==null&&(et=y(et)),et!==null&&(x===null||x(et))))return kt.free(se),te||kt.free(ne),et}}kt.free(se)}return this.background===null&&this.areaBackground===null?(te||kt.free(ne),null):(a=Bo(0,0,b.width,b.height,ne.x,ne.y)?this:null,te||kt.free(ne),a)}return te||kt.free(ne),null},it.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:wi(kt.allocAt(a.x,a.y),this.transform);if(E=Bo(0,0,E.width,E.height,ne.x,ne.y),Ph(this)||E){if(!this.isAtomic){for(var se=this.O.s,he=se.length,ge=kt.alloc(),Se=nh(this);he--;){var ke=se[he];if(ke.visible||ke===Se){ke.se()?wi(ge.set(a),ke.transform):ge.set(a);var Ge=ke;ke=ke instanceof Xn?ke:null,(ke!==null?ke.ji(ge,y,x,b):Ge.ca(ge))&&Ge.pickable!==!1&&(y!==null&&(Ge=y(Ge)),Ge===null||x!==null&&!x(Ge)||b.add(Ge))}}kt.free(ge)}return te||kt.free(ne),E&&(this.background!==null||this.areaBackground!==null)}return te||kt.free(ne),!1},it.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 v0(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,ge=he.length;ge--;){var Se=he[ge];if(Se.visible||Se===se){var ke=Se.actualBounds,Ge=this.naturalBounds;ke.x>Ge.width||ke.y>Ge.height||0>ke.x+ke.width||0>ke.y+ke.height||(ke=Se,Se=Se instanceof Xn?Se:null,Ge=gi.alloc(),Ge.set(ne),(Se!==null?Se.Cf(a,y,x,b,E,Ge):$a(ke,a,b,Ge))&&(y!==null&&(ke=y(ke)),ke===null||x!==null&&!x(ke)||E.add(ke)),gi.free(Ge))}}return te===void 0&&gi.free(ne),b}return te===void 0&&gi.free(ne),!1};function v0(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 Xn&&v0(ne,y,x,b),y!==null&&(ne=y(ne)),ne===null||x!==null&&!x(ne)||b.add(ne))}}}it.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:wi(kt.allocAt(a.x,a.y),this.transform),ge=se?y:wi(kt.allocAt(y.x,y.y),this.transform),Se=he.Bf(ge),ke=0<he.x&&he.x<ne.width&&0<he.y&&he.y<ne.height||so(he.x,he.y,0,0,0,ne.height)<=Se||so(he.x,he.y,0,ne.height,ne.width,ne.height)<=Se||so(he.x,he.y,ne.width,ne.height,ne.width,0)<=Se||so(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||(kt.free(he),kt.free(ge)),ke){if(!this.isAtomic){he=kt.alloc(),ge=kt.alloc(),Se=nh(this);for(var Ge=this.O.s,et=Ge.length;et--;){var ot=Ge[et];if(ot.visible||ot===Se){var ft=ot.actualBounds,jt=this.naturalBounds;(!se||!(ft.x>jt.width||ft.y>jt.height||0>ft.x+ft.width||0>ft.y+ft.height))&&(ot.se()?(ft=ot.transform,wi(he.set(a),ft),wi(ge.set(y),ft)):(he.set(a),ge.set(y)),ft=ot,ot=ot instanceof Xn?ot:null,(ot!==null?ot.og(he,ge,x,b,E,te):ft.tx(he,ge,E))&&(x!==null&&(ft=x(ft)),ft===null||b!==null&&!b(ft)||te.add(ft)))}}kt.free(he),kt.free(ge)}return E?ke:ne}return!1};function y0(a){var y=null;return a instanceof pi&&(y=a.spot1,y===io&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Xa),y}function S0(a){var y=null;return a instanceof pi&&(y=a.spot2,y===io&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ks),y}it.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},it.M=function(a){return this.O.M(a)},it.Gb=function(a,y){y instanceof Nr&&Gt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Gt("Cannot make a Panel contain itself: "+this.toString()),Gt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Gt("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!==Xn.Grid||y instanceof pi||Gt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Xn.Graduated||y instanceof pi||y instanceof Lo||Gt("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 pr),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 Gt("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),Xl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Xn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Fm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof sr&&(x.Te=!0),x.Te&&x instanceof sr&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Oa,"elements",this,y,null,b,null),x.cb(fa,"elements",this,null,y,null,a)))};function x0(a,y){a.l=y?a.l|16777216:a.l&-16777217}it.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)},it.mb=function(a){0<=a&&this.pc(a,!0)},it.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 sr&&(b instanceof Xn?b.qm(b,function(ne,se){G0(te,se,y)}):G0(te,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||te.cb(Oa,"elements",this,b,null,a,null))},it.Fb=function(a){0>a&&Kn(a,">= 0",Xn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new ja;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(fa,"rowdefs",this,null,x,null,a)}return y[a]},it.oA=function(a){if(0>a&&Kn(a,">= 0",Xn,"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 ja?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}it.Eb=function(a){0>a&&Kn(a,">= 0",Xn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new ja;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(fa,"coldefs",this,null,x,null,a)}return y[a]},it.jA=function(a){if(0>a&&Kn(a,">= 0",Xn,"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 ja?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}it.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Dm(y,a),this},it.Hy=function(a,y){return(a=this.Fb(a))&&Dm(a,new ja(y)),this},it.By=function(a,y){return(a=this.Eb(a))&&Dm(a,new ja(y)),this},it.nz=function(a){if(0>a||this.type!==Xn.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},it.fz=function(a){if(0>a||this.type!==Xn.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},it.Fz=function(a,y){if(y===void 0&&(y=new kt(NaN,NaN)),this.type!==Xn.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)},it.Gz=function(a){if(this.type!==Xn.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&&Gt("Template cannot have .data be non-null: "+a),a.allBindings=y=new Dn;else if(y._isFrozen)return;var x=new Dn;x0(a,!1),a.qm(a,function(ge,Se){Se.th();var ke=Se.localBindings;if(ke!==null)for(xf(Se,!1),ke=ke.iterator;ke.next();){var Ge=ke.value;Ge.mode===Bg&&xf(Se,!0);var et=Ge.sourceName;et!==null&&(et==="/"&&x0(ge,!0),et=MS(Ge,ge,Se),et!==null&&(x.add(et),et.srcBindings===null&&(et.srcBindings=new Dn),et.srcBindings.add(Ge))),y.add(Ge)}if(Se instanceof Xn&&Se.type===Xn.Table){if(0<Se.rowCount){for(ge=Se.rowDefs,ke=ge.length,Ge=0;Ge<ke;Ge++)if(et=ge[Ge],et!==void 0&&et.be!==null)for(var ot=et.be.iterator;ot.next();){var ft=ot.value;ft.xd=et,ft.to=2,ft.wl=et.index,y.add(ft)}}if(0<Se.columnCount){for(Se=Se.colDefs,ge=Se.length,ke=0;ke<ge;ke++)if(Ge=Se[ke],Ge!==void 0&&Ge.be!==null)for(et=Ge.be.iterator;et.next();)ot=et.value,ot.xd=Ge,ot.to=1,ot.wl=Ge.index,y.add(ot)}}});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 Dn),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 Xn&&(ne=se.substring(0,he),se=se.substr(he+1),he=te.fb(ne),he!==null?(te=he,E.targetProperty=se):rr('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+E.toString())),te instanceof ja?(ne=$r(te.panel),E.Ai=ne===void 0?-1:ne,te.panel.bindingId=E.Ai):te instanceof nn?(ne=$r(te),E.Ai=ne===void 0?-1:ne,te.bindingId=E.Ai):Gt("Unknown type of binding target: "+te)}y.freeze(),a instanceof Nr&&a.Zc()&&a.Va()}it.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return yx(y,function(x){x instanceof Xn&&(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},it.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 Xn))continue;E===1?te=te.Eb(x.wl):E===2&&(te=te.Fb(x.wl))}te!==void 0&&x.Mv(te,b)}}},it.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 Xn&&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 Xn)||te.data!==y[ne])return!0;E++,ne++}return!1}function fg(a){if(a.type===Xn.Spot||a.type===Xn.Auto)return Math.min(a.O.length,1);if(a.type===Xn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof pi&&b.isPanelMain))break}return x}return a.type===Xn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Xn&&Ph(a))?1:0}it.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++)Tm(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 Xn){if(ne.data!==te){var se=b0(a,ne.data),he=b0(a,te),ge=he!==se;ge||(se=C0(a,se),ge=C0(a,he)!==se),ge?(a.pc(b,!1),Tm(a,te,E,!1)):ne.data=te}}else Tm(a,te,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,w0(a,x,0),Xl(a)||a.v(),a.graduatedIntervals=null,a.If()||Fm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof sr&&(y.Te=!0),y.Te&&y instanceof sr&&(y.wc=null))}}function Tm(a,y,x,b){if(!(y==null||0>x)){var E=b0(a,y);if(E=C0(a,E),E!==null){if(Su(E),E=E.copy(),E.l&16777216){var te=a.ih();te!==null&&x0(te,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new pr),a.ge.add(y,E)),te=x+fg(a),a.Gb(te,E),b&&(E.ub=y,w0(a,te,x),E.ub=null),E.data=y}}}function w0(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Xn){var E=y,te=x;b.type===Xn.TableRow?b.row=E:b.type===Xn.TableColumn&&(b.column=E),b.itemIndex=te}y++,x++}}function b0(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=Sa(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Gt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function C0(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,rr('No item template Panel found for category "'+y+'" on '+a),rr(" Using default item template."),a=new Xn,y=new Lo,y.bind(new Pa("text","",Gn)),a.add(y),m1=a),b=m1)),b}function Fm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Xn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var te=y[E];x&&te instanceof Xn&&!te.isEnabled||Fm(a,te,x)}}}function cc(a,y){y.name=a,Fu.add(a,y)}Tt.Object.defineProperties(Xn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Xn.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&&Kn(a,">= 0",Xn,"padding"),a=new kr(a)):(0>a.left&&Kn(a.left,">= 0",Xn,"padding:value.left"),0>a.right&&Kn(a.right,">= 0",Xn,"padding:value.right"),0>a.top&&Kn(a.top,">= 0",Xn,"padding:value.top"),0>a.bottom&&Kn(a.bottom,">= 0",Xn,"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:Es},set:function(a){typeof a=="number"&&(a=new kr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new lu),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 uo)&&(a instanceof uo&&a.freeze(),this.T===null&&(this.T=new lu),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 lu),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)||Gt("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 lu),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 uo)&&(a instanceof uo&&a.freeze(),this.T===null&&(this.T=new lu),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 lu),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)||Gt("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 lu),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 lu),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||Gt("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()||Gt("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&&No(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&&No(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 lu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new lu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:km},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new lu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:km},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new lu),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)&&Gt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new lu),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)&&Gt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new lu),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 Nr&&!(this instanceof Vi);Su(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof _n?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Nr&&(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 pr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Nr||a.isPanelMain)&&Gt("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 ri&&(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&&Fm(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))}}}),Tt.Object.defineProperties(Xn,{Position:{get:function(){return Fu.I("Position")}},Horizontal:{get:function(){return Fu.I("Horizontal")}},Vertical:{get:function(){return Fu.I("Vertical")}},Spot:{get:function(){return Fu.I("Spot")}},Auto:{get:function(){return Fu.I("Auto")}},Table:{get:function(){return Fu.I("Table")}},Viewbox:{get:function(){return Fu.I("Viewbox")}},TableRow:{get:function(){return Fu.I("TableRow")}},TableColumn:{get:function(){return Fu.I("TableColumn")}},Link:{get:function(){return Fu.I("Link")}},Grid:{get:function(){return Fu.I("Grid")}},Graduated:{get:function(){return Fu.I("Graduated")}}}),Xn.prototype.rebuildItemElements=Xn.prototype.mv,Xn.prototype.findItemPanelForData=Xn.prototype.sx,Xn.prototype.updateTargetBindings=Xn.prototype.La,Xn.prototype.copyTemplate=Xn.prototype.Uy,Xn.prototype.graduatedValueForPoint=Xn.prototype.Gz,Xn.prototype.graduatedPointForValue=Xn.prototype.Fz,Xn.prototype.findColumnForLocalX=Xn.prototype.fz,Xn.prototype.findRowForLocalY=Xn.prototype.nz,Xn.prototype.addColumnDefinition=Xn.prototype.By,Xn.prototype.addRowDefinition=Xn.prototype.Hy,Xn.prototype.addRowColumnDefinition=Xn.prototype.Gy,Xn.prototype.removeColumnDefinition=Xn.prototype.jA,Xn.prototype.getColumnDefinition=Xn.prototype.Eb,Xn.prototype.removeRowDefinition=Xn.prototype.oA,Xn.prototype.getRowDefinition=Xn.prototype.Fb,Xn.prototype.removeAt=Xn.prototype.mb,Xn.prototype.remove=Xn.prototype.remove,Xn.prototype.insertAt=Xn.prototype.Gb,Xn.prototype.elt=Xn.prototype.M,Xn.prototype.add=Xn.prototype.add,Xn.prototype.findObject=Xn.prototype.fb,Xn.prototype.findInVisualTree=Xn.prototype.Nl,Xn.prototype.walkVisualTreeFrom=Xn.prototype.qm,Xn.prototype.findMainElement=Xn.prototype.Pb;var g1=!1,m1=null,Fu=new pr;Xn.className="Panel",Xn.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 lu(){this.Pc=[],this.Oc=[],this.j=this.ob=km,this.hb=this.Hb=0,this.Qp=Es,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}lu.prototype.copy=function(a){for(var y=new lu,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},lu.className="TablePanelSettings";function ja(a){ci(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=io,this.pa=this.oc=this.oa=0,this.be=null,this.oo=P0,this.hg=ai,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))}ja.prototype.copy=function(){var a=new ja;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=tn(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Dm(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=tn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}it=ja.prototype,it.qb=function(a){a.classType===ja&&(this.sizing=a)},it.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+$r(this)},it.wi=function(a){this.Me=a},it.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)},it.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Xn.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)},it.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Ko,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 Om(a){if(a.sizing===P0){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}it.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Pa(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&f1(y)&&Gt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Dn),this.be.add(E),this},Tt.Object.defineProperties(ja.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&&Kn(a,">= 0",ja,"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&&Kn(a,">= 0",ja,"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))&&Kn(a,">= 0",ja,"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&&Kn(a,">= 0",ja,"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 kr(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&&Cf(a,"RowColumnDefinition.separatorStroke"),a instanceof uo&&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)||Gt("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&&Cf(a,"RowColumnDefinition.background"),a instanceof uo&&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}}}),ja.prototype.computeEffectiveSpacing=ja.prototype.Wc,ja.prototype.computeEffectiveSpacingTop=ja.prototype.Io;var P0=new wn(ja,"Default",0),pg=new wn(ja,"None",1),km=new wn(ja,"ProportionalExtra",2);ja.className="RowColumnDefinition",ja.Default=P0,ja.None=pg,ja.ProportionalExtra=km;function pi(a,y){nn.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)}Xt(pi,nn),pi.prototype.cloneProtected=function(a){nn.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=tn(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 Kd(a){a.Na===null?a.Na=new M0:a.Na.nc&&(a.Na=a.Na.copy())}it=pi.prototype,it.th=function(){nn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},it.qb=function(a){a===Rn||a===yr||a===Ti||a===ai?this.geometryStretch=a:nn.prototype.qb.call(this,a)},it.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+$r(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],ge,Se,ke,Ge,et,ot,ft=0,jt=vn(),Dt=2;Dt<E;Dt+=2)ge=x[Dt],Se=x[Dt+1],ke=ge-se,se=Se-he,ke===0&&(ke=.001),Ge=se/ke,et=Math.atan2(se,ke),ot=Math.sqrt(ke*ke+se*se),jt.push([ke,et,Ge,ot]),ft+=ot,se=ge,he=Se;se=x[0],he=x[1],ke=b.measuredBounds.width,b instanceof pi&&(ke-=b.strokeWidth),1>ke&&(ke=1),E=x=ke,ge=ne/2,Se=ge!==0,Dt=0,ot=jt[Dt],ke=ot[0],et=ot[1],Ge=ot[2],ot=ot[3];for(var Ht=0;.1<=ft;){if(Ht===0&&(Se?(E=x,E-=ge,ft-=ge,Se=!1):E=x,E===0&&(E=1)),E>ft){Ln(jt);return}E>ot?(Ht=E-ot,E=ot):Ht=0;var Zt=Math.sqrt(E*E/(1+Ge*Ge));if(0>ke&&(Zt=-Zt),se+=Zt,he+=Ge*Zt,a.translate(se,he),a.rotate(et),a.translate(-(ne/2),-(te/2)),Ht===0&&b.hh(a,y),a.translate(ne/2,te/2),a.rotate(-et),a.translate(-se,-he),ft-=E,ot-=E,Ht!==0){if(Dt++,Dt===jt.length){Ln(jt);return}ot=jt[Dt],ke=ot[0],et=ot[1],Ge=ot[2],ot=ot[3],E=Ht}}Ln(jt)}}it.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&&sa(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===Xn.Link&&se instanceof Vi&&se.category==="Selection"&&se.adornedObject instanceof pi&&se.adornedPart.Pb()===se.adornedObject?se.adornedObject.strokeWidth:0),he===0&&(x=null),x!==null&&he!==0&&(sa(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===$n.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===$n.u){var ge=E.startX;he=E.startY;var Se=E.endX,ke=E.endY;E=Math.min(ge,Se);var Ge=Math.min(he,ke);ge=Math.abs(Se-ge),he=Math.abs(ke-he),a.beginPath(),a.rect(E,Ge,ge,he),b!==null&&a.ng(b),x!==null&&(se&&te&&Lc(a),a.jk(),se&&te&&qc(a)),a.Se()}else if(E.type===$n.F)ge=E.startX,he=E.startY,Se=E.endX,ke=E.endY,E=Math.abs(Se-ge)/2,Ge=Math.abs(ke-he)/2,ge=Math.min(ge,Se)+E,he=Math.min(he,ke)+Ge,a.beginPath(),a.moveTo(ge,he-Ge),a.bezierCurveTo(ge+rn.wg*E,he-Ge,ge+E,he-rn.wg*Ge,ge+E,he),a.bezierCurveTo(ge+E,he+rn.wg*Ge,ge+rn.wg*E,he+Ge,ge,he+Ge),a.bezierCurveTo(ge-rn.wg*E,he+Ge,ge-E,he+rn.wg*Ge,ge-E,he),a.bezierCurveTo(ge-E,he-rn.wg*Ge,ge-rn.wg*E,he-Ge,ge,he-Ge),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===$n.o)for(E=E.figures,he=E.length,Ge=0;Ge<he;Ge++){ge=E.s[Ge],a.beginPath(),a.moveTo(ge.startX,ge.startY),Se=ge.segments.s,ke=Se.length;for(var et=null,ot=0;ot<ke;ot++){var ft=Se[ot];switch(ft.type){case xa:a.moveTo(ft.endX,ft.endY);break;case Mo:a.lineTo(ft.endX,ft.endY);break;case ss:a.bezierCurveTo(ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY);break;case Pl:a.quadraticCurveTo(ft.point1X,ft.point1Y,ft.endX,ft.endY);break;case ma:if(ft.radiusX===ft.radiusY){var jt=Math.PI/180;a.arc(ft.point1X,ft.point1Y,ft.radiusX,ft.startAngle*jt,(ft.startAngle+ft.sweepAngle)*jt,0>ft.sweepAngle,et!==null?et.endX:ge.startX,et!==null?et.endY:ge.startY)}else if(et=rl(ft,ge),jt=et.length,jt===0)a.lineTo(ft.centerX,ft.centerY);else for(var Dt=0;Dt<jt;Dt++){var Ht=et[Dt];Dt===0&&a.lineTo(Ht[0],Ht[1]),a.bezierCurveTo(Ht[2],Ht[3],Ht[4],Ht[5],Ht[6],Ht[7])}break;case zl:if(Dt=jt=0,et!==null&&et.type===ma){if(et=rl(et,ge),Ht=et.length,Ht===0){a.lineTo(ft.endX,ft.endY);break}et=et[Ht-1]||null,et!==null&&(jt=et[6],Dt=et[7])}else jt=et!==null?et.endX:ge.startX,Dt=et!==null?et.endY:ge.startY;if(et=Hs(ft,ge,jt,Dt),jt=et.length,jt===0){a.lineTo(ft.endX,ft.endY);break}for(Dt=0;Dt<jt;Dt++)Ht=et[Dt],a.bezierCurveTo(Ht[2],Ht[3],Ht[4],Ht[5],Ht[6],Ht[7]);break;default:Gt("Segment not of valid type: "+ft.type)}ft.isClosed&&a.closePath(),et=ft}Se=ge.isFilled,te?ge.isShadowed?(Se===!0&&b!=="transparent"&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&(Se&&se&&Lc(a),a.jk(),Se&&se&&qc(a))):(Lc(a),Se&&b!=="transparent"&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&a.jk(),qc(a)):(Se&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&a.jk()),a.Se(Ge)}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=vn(),te.type===$n.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===$n.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,Ge=E,ge=se.segments.s,Se=ge.length,ke=0;ke<Se;ke++){switch(ot=ge[ke],ot.type){case xa:fp(a,y,b,x),b.length=0,b.push(ot.endX),b.push(ot.endY),ne=ot.endX,E=ot.endY,he=ne,Ge=E;break;case Mo:b.push(ot.endX),b.push(ot.endY),ne=ot.endX,E=ot.endY;break;case ss:rn.Qe(ne,E,ot.point1X,ot.point1Y,ot.point2X,ot.point2Y,ot.endX,ot.endY,.5,b),ne=ot.endX,E=ot.endY;break;case Pl:rn.ep(ne,E,ot.point1X,ot.point1Y,ot.endX,ot.endY,.5,b),ne=ot.endX,E=ot.endY;break;case ma:if(ft=rl(ot,se),et=ft.length,et===0){b.push(ot.centerX),b.push(ot.centerY),ne=ot.centerX,E=ot.centerY;break}for(jt=0;jt<et;jt++)Dt=ft[jt],rn.Qe(ne,E,Dt[2],Dt[3],Dt[4],Dt[5],Dt[6],Dt[7],.5,b),ne=Dt[6],E=Dt[7];break;case zl:if(ft=Hs(ot,se,ne,E),et=ft.length,et===0){b.push(ot.endX),b.push(ot.endY),ne=ot.endX,E=ot.endY;break}for(jt=0;jt<et;jt++)Dt=ft[jt],rn.Qe(ne,E,Dt[2],Dt[3],Dt[4],Dt[5],Dt[6],Dt[7],.5,b),ne=Dt[6],E=Dt[7];break;default:Gt("Segment not of valid type: "+ot.type)}ot.isClosed&&(b.push(he),b.push(Ge),fp(a,y,b,x))}fp(a,y,b,x)}else if(te.type===$n.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===$n.F){if(E=new Ga,E.startX=te.endX,E.startY=(te.startY+te.endY)/2,ne=new Zi(ma),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++)Ge=te[he],rn.Qe(ne,E,Ge[2],Ge[3],Ge[4],Ge[5],Ge[6],Ge[7],.5,b),ne=Ge[6],E=Ge[7];fp(a,y,b,x)}Ln(b),a.restore(),a.Vc(!1)}}}},it.kk=function(a,y,x){return!nn.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)},it.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:nn.prototype.nk.call(this,a)},it.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)}},it.ga=function(a,y){if(y===void 0&&(y=new kt),a instanceof wr){a.Mc()&&Gt("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},it.mi=function(a){a===void 0&&(a=new Mn);var y=this.naturalBounds,x=this.oe;y=Mn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=kt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),eo(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),eo(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),eo(a,b.x,b.y,0,0),Mn.free(y),kt.free(b),a},it.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!==$n.j||y||(E+=2);var te=Mn.alloc();if(te.assign(b),te.Bc(E+2,E+2),!te.ca(a))return Mn.free(te),!1;if(b=E+1e-4,x.type===$n.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:(Mn.free(te),rn.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===$n.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 Mn.free(te),!1;te.Bc(b,b)}return this.stroke!==null&&te.Bc(E,E),a=te.ca(a),Mn.free(te),a}if(x.type===$n.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 Mn.free(te),!1;ne+=b,E+=b}return this.stroke!==null&&(ne+=b,E+=b),Mn.free(te),0>=ne||0>=E?!1:1>=x*x/(ne*ne)+y*y/(E*E)}if(x.type===$n.o)return Mn.free(te),this.fill===null?ic(x,a.x,a.y,E):Hu(x,a,E,1<this.strokeWidth,y);Gt("Unknown Geometry type: "+x.type)},it.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=A0[se];if(he===void 0){var ge=rn.Ze[se];typeof ge=="string"&&(ge=rn.Ze[ge]),typeof ge=="function"?(he=ge(null,100,100),A0[se]=he):Gt("Unsupported Figure: "+se)}ne=he.bounds}se=ne.width,he=ne.height,ge=ne.width;var Se=ne.height;switch(sl(this,!0)){case Rn:b=x=0;break;case Vn:ge=Math.max(a-te,0),Se=Math.max(y-te,0);break;case Er:ge=Math.max(a-te,0),b=0;break;case Wr:x=0,Se=Math.max(y-te,0)}isFinite(E.width)&&(ge=E.width),isFinite(E.height)&&(Se=E.height);var ke=this.maxSize,Ge=this.minSize;switch(x=Math.max(x-te,Ge.width),b=Math.max(b-te,Ge.height),ge=Math.min(ke.width,ge),Se=Math.min(ke.height,Se),ge=isFinite(ge)?Math.max(x,ge):Math.max(se,x),Se=isFinite(Se)?Math.max(b,Se):Math.max(he,b),x=E0(this),x){case Rn:break;case Vn:se=ge,he=Se;break;case yr:x=Math.min(ge/se,Se/he),isFinite(x)||(x=1),se*=x,he*=x;break;default:Gt(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&&rn.$(this.ua.Sk,a-te)&&rn.$(this.ua.Rk,y-te)||(this.ua=pi.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),ge+te,Se+te),E.w()?(ge=E.width,Se=E.height,ge=Math.min(ke.width,ge),Se=Math.min(ke.height,Se),ge=Math.max(Ge.width,ge),Se=Math.max(Ge.height,Se),this.dc.h(0,0,ge,Se)):this.dc.assign(ne)};function E0(a){var y=a.geometryStretch;return a.Rd!==null?y===ai?Vn:y:y===ai?A0[a.figure].defaultStretch:y}it.eh=function(a,y,x,b){Is(this,a,y,x,b)},it.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},it.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,ge=-te.m21*ne,Se=te.m11*ne,ke=ne*(te.m21*te.dy-te.m22*te.dx),Ge=ne*(te.m12*te.dx-te.m11*te.dy);te=a*se+y*ge+ke,ne=a*he+y*Se+Ge,se=x*se+b*ge+ke,he=x*he+b*Se+Ge,ke=this.ig/2,ge=this.ua,ge===null&&(this.measure(1/0,1/0),ge=this.ua);var et=ge.bounds;if(Se=!1,ge.type===$n.j)if(1.5>=this.strokeWidth)Se=rn.Ve(ge.startX,ge.startY,ge.endX,ge.endY,te,ne,se,he,E);else{if(ge.startX===ge.endX?(b=ke,Se=0):(y=(ge.endY-ge.startY)/(ge.endX-ge.startX),Se=ke/Math.sqrt(1+y*y),b=Se*y),y=vn(),a=new kt,rn.Ve(ge.startX+b,ge.startY+Se,ge.endX+b,ge.endY+Se,te,ne,se,he,a)&&y.push(a),a=new kt,rn.Ve(ge.startX-b,ge.startY-Se,ge.endX-b,ge.endY-Se,te,ne,se,he,a)&&y.push(a),a=new kt,rn.Ve(ge.startX+b,ge.startY+Se,ge.startX-b,ge.startY-Se,te,ne,se,he,a)&&y.push(a),a=new kt,rn.Ve(ge.endX+b,ge.endY+Se,ge.endX-b,ge.endY-Se,te,ne,se,he,a)&&y.push(a),se=y.length,se===0)return Ln(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);Ln(y)}else if(ge.type===$n.u)Se=rn.Ff(et.x-ke,et.y-ke,et.x+et.width+ke,et.y+et.height+ke,te,ne,se,he,E);else if(ge.type===$n.F){y=Mn.allocAt(et.x,et.y,et.width,et.height).Bc(ke,ke);e:if(y.width===0)Se=rn.Ve(y.x,y.y,y.x,y.y+y.height,te,ne,se,he,E);else if(y.height===0)Se=rn.Ve(y.x,y.y,y.x+y.width,y.y,te,ne,se,he,E);else{if(a=y.width/2,ge=y.height/2,b=y.x+a,Se=y.y+ge,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+ge*ge-he*he){E.x=NaN,E.y=NaN,Se=!1;break e}ke=Math.sqrt(a*a*x*x+ge*ge-he*he),se=(-(a*a*x*he)+a*ge*ke)/(ge*ge+a*a*x*x)+b,a=(-(a*a*x*he)-a*ge*ke)/(ge*ge+a*a*x*x)+b,ge=x*(se-b)+he+Se,he=x*(a-b)+he+Se,Math.abs((te-se)*(te-se))+Math.abs((ne-ge)*(ne-ge))<Math.abs((te-a)*(te-a))+Math.abs((ne-he)*(ne-he))?(E.x=se,E.y=ge):(E.x=a,E.y=he)}else{if(se=ge*ge,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}Mn.free(y)}else if(ge.type===$n.o){Ge=kt.alloc();var ot=se-te,ft=he-ne,jt=ot*ot+ft*ft,Dt=te,Ht=ne;if(0<jt&&et.contains(Dt,Ht)&&(Ge.x=Dt,Ge.y=Ht,this.ca(Ge)))for(ot!==0&&.5>Math.abs(ot)?(ft*=.5/ot,ot=.5):ft!==0&&.5>Math.abs(ft)&&(ot*=.5/ft,ft=.5),Dt-=ot,Ht-=ft;et.contains(Dt,Ht);)Dt-=ot,Ht-=ft;for(E.x=se,E.y=he,ft=0;ft<ge.figures.count;ft++){var Zt=ge.figures.s[ft],Jt=Zt.isFilled?Dt:te,qt=Zt.isFilled?Ht:ne,hn=Zt.segments;et=Zt.startX,ot=Zt.startY;for(var ir=et,mr=ot,hr=0;hr<hn.count;hr++){var Qn=hn.s[hr],Bn=Qn.type,ei=Qn.endX,Yr=Qn.endY,Ji=!1;switch(Bn){case xa:ir=ei,mr=Yr;break;case Mo:Ji=Bm(et,ot,ei,Yr,Jt,qt,se,he,Ge);break;case ss:Ji=rn.Eo(et,ot,Qn.point1X,Qn.point1Y,Qn.point2X,Qn.point2Y,ei,Yr,Jt,qt,se,he,.6,Ge);break;case Pl:Ji=rn.Eo(et,ot,et+2/3*(Qn.point1X-et),ot+2/3*(Qn.point1Y-ot),ei+2/3*(Qn.point1X-ei),Yr+2/3*(Qn.point1Y-Yr),ei,Yr,Jt,qt,se,he,.6,Ge);break;case ma:case zl:Bn=Qn.type===ma?rl(Qn,Zt):Hs(Qn,Zt,et,ot);var Eo=Bn.length;if(Eo===0){Ji=Bm(et,ot,Qn.type===ma?Qn.centerX:Qn.endX,Qn.type===ma?Qn.centerY:Qn.endY,Jt,qt,se,he,Ge);break}for(Yr=null,ei=0;ei<Eo;ei++){if(Yr=Bn[ei],ei===0&&Bm(et,ot,Yr[0],Yr[1],Jt,qt,se,he,Ge)){var qa=Nm(Jt,qt,Ge,jt,E);qa<jt&&(jt=qa,Se=!0)}rn.Eo(Yr[0],Yr[1],Yr[2],Yr[3],Yr[4],Yr[5],Yr[6],Yr[7],Jt,qt,se,he,.6,Ge)&&(qa=Nm(Jt,qt,Ge,jt,E),qa<jt&&(jt=qa,Se=!0))}ei=Yr[6],Yr=Yr[7];break;default:Gt("Unknown Segment type: "+Bn)}et=ei,ot=Yr,Ji&&(Ji=Nm(Jt,qt,Ge,jt,E),Ji<jt&&(jt=Ji,Se=!0)),Qn.isClosed&&(ei=ir,Yr=mr,Bm(et,ot,ei,Yr,Jt,qt,se,he,Ge)&&(Qn=Nm(Jt,qt,Ge,jt,E),Qn<jt&&(jt=Qn,Se=!0)))}}te=x-a,ne=b-y,se=Math.sqrt(te*te+ne*ne),se!==0&&(te/=se,ne/=se),E.x-=te*ke,E.y-=ne*ke,kt.free(Ge)}else Gt("Unknown Geometry type: "+ge.type);return Se?(this.transform.Ga(E),!0):!1};function Nm(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 Bm(a,y,x,b,E,te,ne,se,he){if(rn.$(a,x)&&rn.$(y,b)||rn.$(E,ne)&&rn.$(te,se))return!1;var ge=!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||rn.$(he.y,a))&&(he.y<y||rn.$(he.y,y))&&(ge=!0)):(y=a<x?a:x,a=a<x?x:a,(he.x>y||rn.$(he.x,y))&&(he.x<a||rn.$(he.x,a))&&(ge=!0)),ge)}it.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=kt.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)))),kt.free(te),E},it.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=kt.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 kt.free(ne),!0;var se=kt.alloc(),he=kt.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,Vd(this,ne,se,he)?y=!0:(ne.x=E,ne.y=a,ne.transform(x),Vd(this,ne,se,he)?y=!0:(se.x=b,se.y=a,se.transform(x),Vd(this,ne,se,he)?y=!0:(ne.x=b,ne.y=te,ne.transform(x),Vd(this,ne,se,he)&&(y=!0)))),kt.free(ne),gi.free(x),kt.free(se),kt.free(he),y};function Vd(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)}it.tx=function(a,y,x){function b(jt,Dt){for(var Ht=jt.length,Zt=0;Zt<Ht;Zt+=2)if(Dt.zd(jt[Zt],jt[Zt+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,ge=ne.x+ne.width;if(ne=ne.y+ne.height,Po(a.x,a.y,se,he)<=E&&Po(a.x,a.y,ge,he)<=E&&Po(a.x,a.y,se,ne)<=E&&Po(a.x,a.y,ge,ne)<=E)return!0}if(se=y.startX,he=y.startY,ge=y.endX,ne=y.endY,y.type===$n.j){if(x=(se-ge)*(a.x-ge)+(he-ne)*(a.y-ne),so(a.x,a.y,se,he,ge,ne)<=(0<=(ge-se)*(a.x-se)+(ne-he)*(a.y-he)&&0<=x?E:te))return!0}else{if(y.type===$n.u)return y=!1,x&&(y=so(a.x,a.y,se,he,se,ne)<=E||so(a.x,a.y,se,he,ge,he)<=E||so(a.x,a.y,ge,he,ge,ne)<=E||so(a.x,a.y,se,ne,ge,ne)<=E),y;if(y.type===$n.F){y=a.x-(se+ge)/2,te=a.y-(he+ne)/2;var Se=Math.abs(ge-se)/2,ke=Math.abs(ne-he)/2;if(Se===0||ke===0)return so(a.x,a.y,se,he,ge,ne)<=E;if(x){if(a=rn.$y(Se,ke,y,te),a*a<=E)return!0}else return!(Po(y,te,-Se,0)>=E||Po(y,te,0,-ke)>=E||Po(y,te,0,ke)>=E||Po(y,te,Se,0)>=E)}else if(y.type===$n.o){if(ge=y.bounds,te=ge.x,se=ge.y,he=ge.x+ge.width,ge=ge.y+ge.height,a.x>he&&a.x<te&&a.y>ge&&a.y<se&&so(a.x,a.y,te,se,te,ge)>E&&so(a.x,a.y,te,se,he,se)>E&&so(a.x,a.y,he,ge,te,ge)>E&&so(a.x,a.y,he,ge,he,se)>E)return!1;if(te=Math.sqrt(E),x){if(this.fill===null?ic(y,a.x,a.y,te):Hu(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,ge=0;ge<he;ge++)switch(ke=se[ge],ke.type){case xa:case Mo:if(ne=ke.endX,Se=ke.endY,a.zd(ne,Se)>E)return!1;break;case ss:var Ge=vn();if(rn.Qe(ne,Se,ke.point1X,ke.point1Y,ke.point2X,ke.point2Y,ke.endX,ke.endY,.8,Ge),ne=b(Ge,a),Ln(Ge),ne||(ne=ke.endX,Se=ke.endY,a.zd(ne,Se)>E))return!1;break;case Pl:if(Ge=vn(),rn.ep(ne,Se,ke.point1X,ke.point1Y,ke.endX,ke.endY,.8,Ge),ne=b(Ge,a),Ln(Ge),ne||(ne=ke.endX,Se=ke.endY,a.zd(ne,Se)>E))return!1;break;case ma:case zl:Ge=ke.type===ma?rl(ke,te):Hs(ke,te,ne,Se);var et=Ge.length;if(et===0){if(ne=ke.type===ma?ke.centerX:ke.endX,Se=ke.type===ma?ke.centerY:ke.endY,a.zd(ne,Se)>E)return!1;break}ke=null;for(var ot=vn(),ft=0;ft<et;ft++)if(ke=Ge[ft],ot.length=0,rn.Qe(ke[0],ke[1],ke[2],ke[3],ke[4],ke[5],ke[6],ke[7],.8,ot),b(ot,a))return Ln(ot),!1;Ln(ot),ke!==null&&(ne=ke[6],Se=ke[7]);break;default:Gt("Unknown Segment type: "+ke.type)}}return!0}}}return!1},it.qc=function(){this.ua=null},it.kq=function(){return this.ig};function v1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Cg,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ya):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new wr(1-Ya.x,Ya.y)))}pi.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Fc[a.toArrow];else a.fromArrow!=="None"?b=Fc[a.fromArrow]:(b=rn.Ze[a.figure],typeof b=="string"&&(b=rn.Ze[b]),b===void 0&&Gt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=rn.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function y1(a){var y=Fc[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Fc[x],y===void 0){var b=null,E;for(E in rn.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=$n.parse(rn.um[b],!1),Fc[b]=a,x!==b&&(Fc[x]=b),b}}return typeof y=="string"?y:y instanceof $n?a:null}Tt.Object.defineProperties(pi.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&&No(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=$n.parse(a);var y=a.normalize();this.geometry=a,this.position=a=kt.allocAt(-y.x,-y.y),kt.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&&Cf(a,"Shape.fill"),a instanceof uo&&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&&Cf(a,"Shape.stroke"),a instanceof uo&&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 Kn(a,"value >= 0",pi,"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"?Kn(a,'"butt", "round", or "square"',pi,"strokeCap"):(Kd(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"?Kn(a,'"miter", "bevel", or "round"',pi,"strokeJoin"):(Kd(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){Kd(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)||Gt("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&&(Kd(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=rn.Ze[a];typeof x=="function"?x=a:(x=rn.Ze[a.toLowerCase()])||Gt("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?Gt("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?Gt("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:io},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Kd(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:io},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Kd(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&&(Kd(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:ai},set:function(a){var y=this.geometryStretch;y!==a&&(Kd(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 Dc),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 Dc),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 Dc),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 Dc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),pi.prototype.intersectsRect=pi.prototype.Yc,pi.prototype.containedInRect=pi.prototype.fh,pi.prototype.getNearestIntersectionPoint=pi.prototype.rs,pi.prototype.getDocumentBounds=pi.prototype.mi,pi.prototype.getDocumentPoint=pi.prototype.ga;var Fc=new Fr,A0=new Fr;pi.className="Shape",pi.getFigureGenerators=function(){var a=new pr,y;for(y in rn.Ze)y!==y.toLowerCase()&&a.add(y,rn.Ze[y]);return a.freeze(),a},pi.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=rn.Ze;b[a]=y,b[x]=a},pi.getArrowheadGeometries=function(){var a=new pr;for(b in rn.um)if(Fc[b]===void 0){var y=$n.parse(rn.um[b],!1);Fc[b]=y,y=b.toLowerCase(),y!==b&&(Fc[y]=b)}for(var x in Fc)if(x!==x.toLowerCase()){var b=Fc[x];b instanceof $n&&a.add(x,b)}return a.freeze(),a},pi.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=$n.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Gt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Fc;b[a]=x,b[y]=a};function M0(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=ai,this.gg=this.fg=io}M0.prototype.copy=function(){var a=new M0;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 Lo(a,y){return nn.call(this),Wm||(ll=ia?new yu(null).context:null,Wm=!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}Xt(Lo,nn),Lo.prototype.cloneProtected=function(a){nn.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 N0:a.da.nc&&(a.da=a.da.copy())}it=Lo.prototype,it.th=function(){nn.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}it.qb=function(a){a.classType===Lo?this.wrap=a:nn.prototype.qb.call(this,a)},it.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},it.v=function(){nn.prototype.v.call(this)},it.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 ge=this.isStrikethrough;sa(this,a,this.xc,!0,!1,x,b),(he||ge)&&sa(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var Se=this.oe,ke=Se.dx-(ne*Se.m21+Se.dx);Se=Se.dy-(ne*Se.m22+Se.dy);var Ge=y.scale;switch(8>(ke*ke+Se*Se)*Ge*Ge&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ml&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ke=this.spacingBelow,this.flip){case Hi:a.translate(E,0),a.scale(-1,1);break;case Si:a.translate(0,te),a.scale(1,-1);break;case So:a.translate(E,te),a.scale(-1,-1)}if(a.yc(),Se=this.Gc,Ge=(y+ne+ke)*Se,te>Ge&&(b=this.verticalAlignment,b=b.y*te-b.y*Ge+b.offsetY),Se===1&&this.ze!==null)ke=this.Cb,ke>E&&(ke=E),this.Oj(this.ze,a,0,b+y,E,ne,ke,x,se,he,ge);else if(this.Qc!==null&&this.Qb!==null)for(Ge=0;Ge<Se;Ge++){var et=this.Qc[Ge];et>E&&(et=E),b+=y,this.Oj(this.Qb[Ge],a,0,b,E,ne,et,x,se,he,ge),b+=ne+ke}switch(this.flip){case Hi:a.scale(-1,1),a.translate(-E,0);break;case Si:a.scale(1,-1),a.translate(0,-te);break;case So:a.scale(-1,-1),a.translate(-E,-te)}}},it.Oj=function(a,y,x,b,E,te,ne,se,he,ge,Se){var ke=0;if(se)he==="left"?ke=0:he==="right"?ke=E-ne:he==="center"&&(ke=(E-ne)/2),y.fillRect(x+ke,b+.25*te,ne,1);else{if(he==="left"?ke=0:he==="right"?ke=E:he==="center"&&(ke=E/2),E=Im!==null?Im(this,te):.75*te,y.fillText(a,x+ke,b+E),a=te/20|0,a===0&&(a=1),he==="right"?ke-=ne:he==="center"&&(ke-=ne/2),ge){se=jm!==null?jm(this,te):.8*te,he=x+ke,ge=b+se,E=x+ke+ne,se=b+se;var Ge=a;y.beginPath(),y.lineWidth=Ge,y.moveTo(he,ge),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+ke,te=Se,x=x+ke+ne,ne=Se,ke=a,y.beginPath(),y.lineWidth=ke,y.moveTo(b,te),y.lineTo(x,ne),y.stroke(),y.Se(),y instanceof Ml&&y.ad.classList.add("gojs-td"))}},it.kk=function(a,y,x){if(!nn.prototype.kk.call(this,a,y,x))return!1;if(sa(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++)$y(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,$y(a,y,!0);return!0},it.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:nn.prototype.nk.call(this,a)},it.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)}},it.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var te=this.Ae;ll!==null&&A1!==te&&(A1=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 ge=te.indexOf(`
`,se);ge===-1&&(ge=te.length,he=!0),se=te.substr(se,ge-se),this.formatting===vg&&(se=se.trim()),ne=Math.max(ne,Du(se)),se=ge+1}te=ne}else ne=te.indexOf(`
`,0),0<=ne&&(te=te.substr(0,ne)),te=Du(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,ge=this.spacingAbove+this.spacingBelow,ge=Math.max(0,mg(this)+ge),he=Math.min(this.maxLines-1,Math.max(Math.floor(he/ge+.01)-1,0)),!(he+1>=this.Qb.length))){for(this.l|=16777216,ge=this.Qb[he],y=Math.max(1,a-y);Du(ge)>y&&1<ge.length;)ge=ge.substr(0,ge.length-1);ge+=yg,y=Du(ge),this.Qb[he]=ge,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),ha(this.dc,te,ne),this.Ge(0,0,te,ne),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},it.eh=function(a,y,x,b){Is(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 L0(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===T0){a.Le=1;var ge=Du(y);if(he===0||ge<=x)a.Cb=Math.max(a.Cb,ge),gg(a,y,a.Cb),b!==null&&b.h(ge,se);else{for(te=pp(a,ne),ne=ne.substr(te.length),y=pp(a,ne),ge=Du(te+y);0<y.length&&ge<=x;)te+=y,ne=ne.substr(y.length),y=pp(a,ne),ge=te+y,E&&(ge=ge.trim()),ge=Du(ge);for(E&&(y=y.trim()),te+=y,x=Math.max(1,x-he);Du(te)>x&&1<te.length;)te=te.substr(0,te.length-1);a.l|=16777216,te+=yg;var Se=Du(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);Du(y)>x;){var ke=1;for(ge=Du(y.substr(0,ke)),Se=0;ge<=x;)ke++,Se=ge,ge=Du(y.substr(0,ke));if(ke===1){var Ge=ge;te=Math.max(te,ge)}else Ge=Se,te=Math.max(te,Se);if(ke--,1>ke&&(ke=1),gg(a,y.substr(0,ke),Ge),he++,y=y.substr(ke),a.Gc+he>a.maxLines)break}for(Se=pp(a,ne),ge=Du(y+Se);0<Se.length&&ge<=x;)y+=Se,ne=ne.substr(Se.length),Se=pp(a,ne),ge=y+Se,E&&(ge=ge.trim()),ge=Du(ge);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),Se.length===0?(ke=ge,te=Math.max(te,ge)):(ke=Se=Du(y),te=Math.max(te,Se)),gg(a,y,ke),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===C1)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===P1&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Du(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 O0[y]!==void 0&&5e3>E1?x=O0[y]:(x=1.3*ll.measureText("M").width,O0[y]=x,E1++),a.df=x}function x1(a){if(ll===null)return 6;if(zm[a]!==void 0&&5e3>k0)var y=zm[a];else y=ll.measureText(yg).width,zm[a]=y,k0++;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!==T0){a.Le=0;var he=qn.alloc();L0(a,te,y,he),E+=he.height,qn.free(he),a.Gc+=a.Le}else L0(a,te,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(se=!0)}te=ne+1}return a.Lq=E}Tt.Object.defineProperties(Lo.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:Rn},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:_a},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=qn.alloc();L0(this,this.ec,999999,a);var y=a.width;qn.free(a),a=w1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),ha(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:F0},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:D0},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&&Cf(a,"TextBlock.stroke"),a instanceof uo&&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 Dc),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 Dc),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 Dc),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 Dc),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 Dc),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&&Kn(a,"> 0",Lo,"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 Im=null,jm=null,T0=new wn(Lo,"None",0),b1=new wn(Lo,"WrapFit",1),F0=new wn(Lo,"WrapDesiredSize",2),C1=new wn(Lo,"WrapBreakAll",3),D0=new wn(Lo,"OverflowClip",0),Rm=new wn(Lo,"OverflowEllipsis",1),vg=new wn(Lo,"FormatTrim",0),P1=new wn(Lo,"FormatNone",0),xx=/[ \u200b\u00ad]/,O0=new Fr,E1=0,zm=new Fr,k0=0,yg="...",A1="",ll=null,Wm=!1;Lo.className="TextBlock";function N0(){this.nc=!1,this.Hd=null,this.Xf=Rn,this.gq=vg,this.Jq=1/0,this.$q=D0,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=_a,this.$r=F0}N0.prototype.copy=function(){var a=new N0;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},Lo.getEllipsis=function(){return yg},Lo.setEllipsis=function(a){yg=a,zm=new Fr,k0=0},Lo.getBaseline=function(){return Im},Lo.setBaseline=function(a){Im=a},Lo.getUnderline=function(){return jm},Lo.setUnderline=function(a){jm=a},Lo.isValidFont=function(a){if(Wm||(ll=ia?new yu(null).context:null,Wm=!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},Lo.FormatNone=P1,Lo.FormatTrim=vg,Lo.None=T0,Lo.OverflowClip=D0,Lo.OverflowEllipsis=Rm,Lo.WrapBreakAll=C1,Lo.WrapDesiredSize=F0,Lo.WrapFit=b1;function Dc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Dc.prototype.copy=function(){var a=new Dc;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Dc.className="GradElementSettings";function ul(a,y){nn.call(this),this.Eg=null,this.qo="",this.Xg=ho,this.Nk=Vn,this.Zg=this.Hd=null,this.Mk=zi,this.Xf=Rn,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;Xt(ul,nn),ul.prototype.cloneProtected=function(a){nn.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===Rn||a===yr||a===Ti?this.imageStretch=a:nn.prototype.qb.call(this,a)},ul.prototype.toString=function(){return"Picture("+this.source+")#"+$r(this)};function mp(a){a===void 0&&(a=""),a!==""?gp[a]&&(delete gp[a],Hm--):(gp=new Fr,Hm=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=vn();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);Ln(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 Gd)){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 ge=he,Se=se;this.sourceRect.w()&&(te=this.Xg.x,ne=this.Xg.y,he=this.Xg.width,se=this.Xg.height);var ke=he,Ge=se,et=this.Nk,ot=this.Mk;switch(et){case Rn:if(this.sourceRect.w())break;ke>=b.width&&(te=te+ot.offsetX+(ke*ot.x-b.width*ot.x)),Ge>=b.height&&(ne=ne+ot.offsetY+(Ge*ot.y-b.height*ot.y)),he=Math.min(b.width,ke),se=Math.min(b.height,Ge);break;case Vn:ke=b.width,Ge=b.height;break;case yr:case Ti:et===yr?(et=Math.min(b.height/Ge,b.width/ke),ke*=et,Ge*=et):et===Ti&&(et=Math.max(b.height/Ge,b.width/ke),ke*=et,Ge*=et,ke>=b.width&&(te=(te+ot.offsetX+(ke*ot.x-b.width*ot.x)/ke)*he),Ge>=b.height&&(ne=(ne+ot.offsetY+(Ge*ot.y-b.height*ot.y)/Ge)*se),he*=1/(ke/b.width),se*=1/(Ge/b.height),ke=b.width,Ge=b.height)}et=this.Df()*y.scale;var ft=ke*et*Ge*et,jt=he*se/ft,Dt=x.__goCache;et=null;var Ht=wx;if(!E){if(x.sq&&Dt!==void 0&&4<ft&&jt>Ht*Ht)for(Dt.gi===null&&(T1(Dt,4,ge,Se,x),T1(Dt,16,ge,Se,x)),E=Dt.gi,ge=E.length,Se=0;Se<ge&&E[Se].ratio*E[Se].ratio<jt;Se++)et=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(Zt){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Zt){this.vl=!0}}if(this.vl)return}}switch(E=ke<b.width?ot.offsetX+(b.width*ot.x-ke*ot.x):0,ot=Ge<b.height?ot.offsetY+(b.height*ot.y-Ge*ot.y):0,this.flip){case Hi:a.translate(Math.min(b.width,ke),0),a.scale(-1,1);break;case Si:a.translate(0,Math.min(b.height,Ge)),a.scale(1,-1);break;case So:a.translate(Math.min(b.width,ke),Math.min(b.height,Ge)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Dt!==void 0&&et!==null&&et.ratio!==1){a.save(),y=et.ratio;try{a.drawImage(et.source,te/y,ne/y,Math.min(et.source.width,he/y),Math.min(et.source.height,se/y),E,ot,Math.min(b.width,ke),Math.min(b.height,Ge)),a instanceof Ml&&(this.bt=[te/y,ne/y,Math.min(et.source.width,he/y),Math.min(et.source.height,se/y),E,ot,Math.min(b.width,ke),Math.min(b.height,Ge)])}catch(Zt){this.en=!1}a.restore()}else try{a.drawImage(x,te,ne,he,se,E,ot,Math.min(b.width,ke),Math.min(b.height,Ge)),a instanceof Ml&&(this.bt=[te,ne,he,se,E,ot,Math.min(b.width,ke),Math.min(b.height,Ge)])}catch(Zt){this.en=!1}switch(this.flip){case Hi:a.scale(-1,1),a.translate(-Math.min(b.width,ke),0);break;case Si:a.scale(1,-1),a.translate(0,-Math.min(b.height,Ge));break;case So:a.scale(-1,-1),a.translate(-Math.min(b.width,ke),-Math.min(b.height,Ge))}}}}},ul.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,te=sl(this,!0),ne=this.Eg,se=this.qn,he=0,ge=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,ge=se?+ne.height:ne.naturalHeight),isFinite(E.width)||te===Vn||te===Er?(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===Vn||te===Wr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=ge)),b=0):ne!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ge),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)),ha(this.dc,a,y),this.Ge(0,0,a,y)},ul.prototype.eh=function(a,y,x,b){Is(this,a,y,x,b)},Tt.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||Gt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&_p(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new kn),b!==null&&x&&Qh(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(ia){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Hm&&(mp(),x=gp),b=Zn("img"),b.hn=!0,M1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Hm++}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 Hm=0,wx=4;ul.className="Picture",gp=new Fr,ul.clearCache=mp;function L1(){this.gi=null}function T1(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 F1(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 F1(a,y){this.source=a,this.ratio=y}F1.className="PictureCacheInstance";function vp(){this.os=new $n,this.mc=null}vp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new $n,this.mc=null};function yp(a,y,x,b,E,te){a.mc=new Ga,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 Zi(xa);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 Zi(Mo);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 Zi(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 Um(a,y,x,b,E){var te;te===void 0&&(te=!1);var ne=new Zi(Pl);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 Zi(ma);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 Cx(a,y,x,b,E,te,ne,se){var he;he===void 0&&(he=!1),y=new Zi(zl,ne,se,y,x,b,E,te),he&&y.close(),a.mc.segments.add(y)}function D1(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new vp,y.reset(a),y)}var Gm=null;vp.className="StreamGeometryContext";function Os(a,y){var x=a.toLowerCase(),b=rn.Ze;b[a]=y,b[x]=a}Os("Rectangle",function(a,y,x){a="r"+y+","+x;var b=rn.Mf[a];return b!==void 0||(b=new $n($n.u),b.endX=y,b.endY=x,rn.Nf<rn.vm&&(rn.Mf[a]=b,rn.Nf++)),b}),Os("Square",function(a,y,x){a="s"+y+","+x;var b=rn.Mf[a];return b!==void 0||(b=new $n($n.u),b.endX=y,b.endY=x,b.defaultStretch=yr,rn.Nf<rn.vm&&(rn.Mf[a]=b,rn.Nf++)),b}),Os("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=rn.Mf[b];if(E!==void 0)return E;var te=a*rn.wg;return E=new $n().add(new Ga(a,0,!0).add(new Zi(Mo,y-a,0)).add(new Zi(ss,y,a,y-te,0,y,te)).add(new Zi(Mo,y,x-a)).add(new Zi(ss,y-a,x,y,x-te,y-te,x)).add(new Zi(Mo,a,x)).add(new Zi(ss,0,x-a,te,x,0,x-te)).add(new Zi(Mo,0,a)).add(new Zi(ss,a,0,0,te,te,0).close())),1<te&&(E.spot1=new wr(0,0,te,te),E.spot2=new wr(1,1,-te,-te)),rn.Nf<rn.vm&&(rn.Mf[b]=E,rn.Nf++),E}),Os("Border","RoundedRectangle"),Os("Ellipse",function(a,y,x){a="e"+y+","+x;var b=rn.Mf[a];return b!==void 0||(b=new $n($n.F),b.endX=y,b.endY=x,b.spot1=Wu,b.spot2=Rl,rn.Nf<rn.vm&&(rn.Mf[a]=b,rn.Nf++)),b}),Os("Circle",function(a,y,x){a="c"+y+","+x;var b=rn.Mf[a];return b!==void 0||(b=new $n($n.F),b.endX=y,b.endY=x,b.spot1=Wu,b.spot2=Rl,b.defaultStretch=yr,rn.Nf<rn.vm&&(rn.Mf[a]=b,rn.Nf++)),b}),Os("TriangleRight",function(a,y,x){return new $n().add(new Ga(0,0).add(new Zi(Mo,y,.5*x)).add(new Zi(Mo,0,x).close())).pm(0,.25,.5,.75)}),Os("TriangleDown",function(a,y,x){return new $n().add(new Ga(0,0).add(new Zi(Mo,y,0)).add(new Zi(Mo,.5*y,x).close())).pm(.25,0,.75,.5)}),Os("TriangleLeft",function(a,y,x){return new $n().add(new Ga(y,x).add(new Zi(Mo,0,.5*x)).add(new Zi(Mo,y,0).close())).pm(.5,.25,1,.75)}),Os("TriangleUp",function(a,y,x){return new $n().add(new Ga(y,x).add(new Zi(Mo,0,x)).add(new Zi(Mo,.5*y,0).close())).pm(.25,.5,.75,1)}),Os("Triangle","TriangleUp"),Os("Diamond",function(a,y,x){return new $n().add(new Ga(.5*y,0).add(new Zi(Mo,0,.5*x)).add(new Zi(Mo,.5*y,x)).add(new Zi(Mo,y,.5*x).close())).pm(.25,.25,.75,.75)}),Os("LineH",function(a,y,x){return a=new $n($n.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Os("LineV",function(a,y,x){return a=new $n($n.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Os("None","Rectangle"),Os("BarH","Rectangle"),Os("BarV","Rectangle"),Os("MinusLine","LineH"),Os("PlusLine",function(a,y,x){return new $n().add(new Ga(0,x/2,!1).add(new Zi(Mo,y,x/2)).add(new Zi(xa,y/2,0)).add(new Zi(Mo,y/2,x)))}),Os("XLine",function(a,y,x){return new $n().add(new Ga(0,x,!1).add(new Zi(Mo,y,0)).add(new Zi(xa,0,0)).add(new Zi(Mo,y,x)))}),Os("LineRight",function(a,y,x){return new $n().add(new Ga(.25*y,0,!1).add(new Zi(Mo,.75*y,.5*x)).add(new Zi(Mo,.25*y,x)))}),Os("LineDown",function(a,y,x){return new $n().add(new Ga(0,.25*x,!1).add(new Zi(Mo,.5*y,.75*x)).add(new Zi(Mo,y,.25*x)))}),Os("LineLeft",function(a,y,x){return new $n().add(new Ga(.75*y,0,!1).add(new Zi(Mo,.25*y,.5*x)).add(new Zi(Mo,.75*y,x)))}),Os("LineUp",function(a,y,x){return new $n().add(new Ga(0,.75*x,!1).add(new Zi(Mo,.5*y,.25*x)).add(new Zi(Mo,y,.75*x)))}),rn.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 B0(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Oo,this.ir=null,this.jr="",this.lr=io,this.Gq="",this.Hq=Xa,this.Pq=ao,this.Kq=Pi,this.Up=null,this.Cq=127,this.zr=co,this.yr="gray",this.Vg=4}B0.prototype.copy=function(){var a=new B0;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 Nr(a,y){a===void 0||a instanceof Ka||typeof a=="string"?Xn.call(this,a):(Xn.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 kt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Mn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Xt(Nr,Xn),Nr.prototype.cloneProtected=function(a){Xn.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},it=Nr.prototype,it.Af=function(a){Xn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},it.toString=function(){var a=Fn(this.constructor)+"#"+$r(this);return this.data!==null&&(a+="("+Gn(this.data)+")"),a};function cl(a){a.P===null?a.P=new B0:a.P.nc&&(a.P=a.P.copy())}it.th=function(){Xn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},it.gk=function(a,y,x,b,E,te,ne){var se=this.diagram;se!==null&&(a===fa&&y==="elements"?E instanceof Xn?Zd(E,function(he){ly(se.partManager,he),Id(se,he)}):Qh(se,E):a===Oa&&y==="elements"&&(E instanceof Xn?Zd(E,function(he){uy(se.partManager,he,se)}):_p(se,E)),se.cb(a,y,x,b,E,te,ne))},it.La=function(a){if(Xn.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 Xn&&Zd(E,function(te){te.data!==null&&te.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Nr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Nr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Nr.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 pr),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)))}}},Nr.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)}},Nr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=vn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Ln(y)}},Nr.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 ri?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Vi))break e;Su(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Xn.Link),x.adornedObject=y)}if(x!==null){x.type===Xn.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Px(this,a),y=this.adornments;y.next();)y.value.La()}},Nr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function I0(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Px(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Zm(a){if(ed(a)===!1){R0(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function O1(a){if(a.G|=2097152,ed(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||B1(a,y,x),x=a.Ib;var b=Mn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),Mn.free(b),R0(a,!1)}}Nr.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)},Nr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=zi;this.locationSpot.sb()&&(te=this.locationSpot);var ne=kt.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),kt.free(ne)}},Nr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Nr.prototype.moveTo=function(a,y,x){a=kt.allocAt(a,y),this.move(a,x),kt.free(a)},Nr.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())},Nr.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())},Nr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new pr),y.I(a)!==null)return y.I(a);var x=Xn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Ah(a,y,x,b){b===void 0&&(b=new kt),x=x.Mc()?zi: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}Nr.prototype.mi=function(a){return a===void 0&&(a=new Mn),a.assign(this.actualBounds)},Nr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function k1(a){var y=kt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof pi?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 Xd(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}Nr.prototype.arrange=function(){if(Zs(this)===!1)O1(this);else{Mc(this,!1);var a=this.Ib,y=Mn.alloc();y.assign(a);var x=td(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;B1(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()||rn.B(y.width,a.width)&&rn.B(y.height,a.height)||0<=this.vw&&this.C(16),Mn.free(y),R0(this,!1)}},it=Nr.prototype,it.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=Mn.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),Mn.free(E)}!(this.G&65536)&&a.D(y)||R1(this,b,x),x.N(),!a.w()&&!y.w()||bo(a,y)||(this instanceof sr&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},it.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&N1(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 kt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),ed(this)===!1&&Zs(this)===!1&&(Zm(this),O1(this)),!0};function N1(a,y,x,b,E){y===null||a instanceof Vi||(y=y.animationManager,y.zb&&Ku(y,a,new kt(b,E),x))}it.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;ed(this)||Zs(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)}Zm(this)},it.Av=function(){this.G&=-2097153,Zm(this)};function B1(a,y,x){var b=k1(a),E=a.diagram,te=x.w(),ne=y.w();te&&ne?a.G&2097152?I1(a,y,x,E,b):j1(a,y,x,E,b):te?I1(a,y,x,E,b):ne&&j1(a,y,x,E,b),a.G|=2097152,kt.free(b),a.Uk()}function I1(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 Vi||Ku(x,a,new kt(te,ne),y),b||y.x===te&&y.y===ne||a.g("position",new kt(te,ne),y.copy()))}function j1(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){z0(a,!1),a instanceof sr&&Sh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?td(a)?(Ao(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}it.si=function(){return!0},it.Zc=function(){return!0},it.ph=function(){return!1},it.Dd=function(){return!0};function j0(a,y,x,b){y.constructor===a.constructor||H1||(H1=!0,rr('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),rr(" Old class: "+Fn(a.constructor)+", new class: "+Fn(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,ge=!1;a instanceof sr&&(se=a.isTreeLeaf,he=a.isTreeExpanded,ge=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 sr&&(a.U=se?a.U|4:a.U&-5,a.U=he?a.U|1:a.U&-2,a.U=ge?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)}Nr.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},Nr.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},Nr.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},Nr.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},Nr.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},Nr.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},Nr.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},Nr.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},Nr.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 R0(a,y){a.G=y?a.G|32768:a.G&-32769}function z0(a,y){a.G=y?a.G|65536:a.G&-65537}function td(a){return(a.G&131072)!==0}it=Nr.prototype,it.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Km(a,y){a.G=y?a.G|1048576:a.G&-1048577}it.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},it.N=function(){var a=this.diagram;a!==null&&!Zs(this)&&!ed(this)&&this.isVisible()&&this.Ib.w()&&a.N(Xd(this,this.Ib))},it.v=function(){Xn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof sr&&this.labeledLink!==null&&Gs(this.labeledLink),a.$b(!0))},it.Vo=function(a){a||(a=this.Ah,a!==null&&K0(a,this))},it.Wo=function(a){a||(a=this.Ah,a!==null&&V0(a,this))},it.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},it.oz=function(){return W0(this,this)};function W0(a,y){var x=y.containingGroup;return x!==null?1+W0(a,x):y instanceof sr&&(y=y.labeledLink,y!==null)?W0(a,y):0}it.sz=function(){return z1(this,this)};function z1(a,y){var x=y.containingGroup;return x!==null||y instanceof sr&&(x=y.labeledLink,x!==null)?z1(a,x):y}it.Td=function(a){return a instanceof ri?H0(this,this,a):!1};function H0(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!H0(a,b,x)?y instanceof sr&&(y=y.labeledLink,y!==null)?H0(a,y,x):!1:!0}it.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof ri&&Km(y,!0),y instanceof sr){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 sr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof ri&&Km(y,!1),y instanceof sr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Nr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof sr&&this.isLinkLabel)},Nr.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 sr&&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 W1(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 Vi)){if(a.add(y),y instanceof sr){if(x&&y instanceof ri)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,ge=se.toNode;he=he===null||a.contains(he),ge=ge===null||a.contains(ge),(E?he&&ge:he||ge)&&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 _n)for(y=y.labelNodes;y.next();)nd(a,y.value,x,b,E,te)}}Tt.Object.defineProperties(Nr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Hr: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(fa,"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 Vi?this.type!==Xn.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:ao},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:Pi},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:Xa},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,Zs(this)===!1&&(Zm(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)),N1(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 Vi)){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 Vi?this instanceof Vi&&(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&&j0(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 _n||(b=this.location.copy(),j0(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){j0(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 _n?(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:Oo},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:io},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&&Gt("Cannot make a Group a member of itself: "+this.toString()),Gt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?V0(y,this):this instanceof ri&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?K0(a,this):this instanceof ri&&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 ri){for(x=new kn,nd(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof sr)for(b=b.linksConnected;b.next();)Sp(b.value)}if(this instanceof sr){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 Gt("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 sr&&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:co},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))}}}),Nr.prototype.invalidateLayout=Nr.prototype.C,Nr.prototype.findCommonContainingGroup=Nr.prototype.px,Nr.prototype.isMemberOf=Nr.prototype.Td,Nr.prototype.findTopLevelPart=Nr.prototype.sz,Nr.prototype.findSubGraphLevel=Nr.prototype.oz,Nr.prototype.ensureBounds=Nr.prototype.Va,Nr.prototype.getDocumentBounds=Nr.prototype.mi,Nr.prototype.findObject=Nr.prototype.fb,Nr.prototype.moveTo=Nr.prototype.moveTo,Nr.prototype.invalidateAdornments=Nr.prototype.Wb,Nr.prototype.clearAdornments=Nr.prototype.Ej,Nr.prototype.removeAdornment=Nr.prototype.Jf,Nr.prototype.addAdornment=Nr.prototype.bh,Nr.prototype.findAdornment=Nr.prototype.Pj,Nr.prototype.updateTargetBindings=Nr.prototype.La;var H1=!1;Nr.className="Part",Nr.LayoutNone=0,Nr.LayoutAdded=1,Nr.LayoutRemoved=2,Nr.LayoutShown=4,Nr.LayoutHidden=8,Nr.LayoutNodeSized=16,Nr.LayoutGroupLayout=32,Nr.LayoutNodeReplaced=64,Nr.LayoutStandard=127,Nr.LayoutAll=16777215;function Vi(a,y){a===void 0||a instanceof Ka||typeof a=="string"?Nr.call(this,a):(Nr.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)}Xt(Vi,Nr),Vi.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Vi.prototype.updateRelationshipsFromData=function(){},Vi.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof _n&&y instanceof pi){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 pi&&(E.ua=a)}}},Vi.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Zs(a))},Vi.prototype.Zc=function(){return!1},Vi.prototype.gk=function(a,y,x,b,E,te,ne){if(a===fa&&y==="elements"){if(E instanceof Vs)this.$a===null&&(this.$a=E);else if(E instanceof Xn){var se=E.Nl(function(he){return he instanceof Vs});se instanceof Vs&&this.$a===null&&(this.$a=se)}}else a===Oa&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Xn&&this.$a.rg(b)&&(this.$a=null));Nr.prototype.gk.call(this,a,y,x,b,E,te,ne)},Vi.prototype.updateAdornments=function(){},Vi.prototype.Lj=function(){},Tt.Object.defineProperties(Vi.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}}}),Vi.className="Adornment";function U0(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Nl,this.er=Ym,this.Kr=this.ij=this.Nq=this.Mq=null}U0.prototype.copy=function(){var a=new U0;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 sr(a,y){a===void 0||a instanceof Ka||typeof a=="string"?Nr.call(this,a):(Nr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Dn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Xt(sr,Nr),sr.prototype.cloneProtected=function(a){Nr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},it=sr.prototype,it.Af=function(a){Nr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Mh(a){a.Ba===null?a.Ba=new U0:a.Ba.nc&&(a.Ba=a.Ba.copy())}it.th=function(){Nr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function U1(a,y){y!==null&&(a.af===null&&(a.af=new kn),a.af.add(y))}function G1(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}it.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=G1(this,a,y,x),a!==null&&a.Sl()},it.gk=function(a,y,x,b,E,te,ne){a===fa&&y==="elements"?this.wc=null:a===Oa&&y==="elements"&&(this.wc=null),Nr.prototype.gk.call(this,a,y,x,b,E,te,ne)},it.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 Z1(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)}}it.si=function(){return!0},sr.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},sr.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},sr.prototype.isVisible=function(){if(!Nr.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===Ba){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},sr.prototype.Zb=function(a){Nr.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)}},sr.prototype.qx=function(){var a=new kn,y=new kn;return K1(this,this,a,y),y.iterator};function K1(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)&&K1(a,E?ne.toNode:ne.fromNode,x,b):b.add(ne)})}}sr.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Cr(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},it=sr.prototype,it.Mo=function(a){a===void 0&&(a=null);var y=new Cr(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},it.Sd=function(a){a===void 0&&(a=null);var y=new Cr(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},it.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 kn,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 kn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Rr(x):Hr},it.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 kn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Rr(x):Hr},it.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 kn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Rr(x):Hr},it.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Cr(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},it.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Cr(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 Vm(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 Xm(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}}}sr.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},it=sr.prototype,it.Vo=function(a){Nr.prototype.Vo.call(this,a),a||(Sg(this),a=this.Yk,a!==null&&eS(a,this))},it.Wo=function(a){Nr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},it.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,Nr.prototype.Lj.call(this)},it.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;V1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function V1(a){a.wc===null?a.wc=new pr:a.wc.clear(),a.qm(a,function(y,x){X1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function X1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function G0(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=vn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Ln(x)}}}it.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},it.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}},it.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Km(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;)Km(y,!1),y=y.pg();return x},it.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},it.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof sr)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},it.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 kn;return a(this,y),y},it.uz=function(){return Y1(this,this)};function Y1(a,y){return y=y.pg(),y===null?0:1+Y1(a,y)}it.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Cr(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},it.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 Dn,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 Dn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Rr(x):Hr},it.wz=function(a){a===void 0&&(a=1/0);var y=new kn;return nd(y,this,!1,a,!0),y},sr.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 kn;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){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),J1(he,y,x,b-1,E,te,ne)))}else Q1(a,y,x,E,te,ne)}function Q1(a,y,x,b,E,te){for(var ne=E===a?!0:a.isTreeExpanded,se=x?a.Mo():a.Sd(),he={};se.next();){var ge=se.value;if(ge.isTreeLink&&(ge=ge.To(a),ge!==null&&ge!==a)){var Se=y.contains(ge);if(Se||y.add(ge),ne){var ke=x?ge.Oo():ge.Po();he.uv=a,ke.all(function(Ge){return function(et){return et===Ge.uv||!et.isTreeExpanded}}(he))&&b.Aj(ge,E),ge.oh(),ge.Zb(!1)}ge.isTreeExpanded&&(ge.wasTreeExpanded=ge.isTreeExpanded,Se||Q1(ge,y,x,b,E,te))}he={uv:he.uv}}a.isTreeExpanded=!1}sr.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 kn;x.add(this),_1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===wh),y.Ue=!1}};function _1(a,y,x,b,E,te,ne){for(var se=te===a?!1:a.isTreeExpanded,he=x?a.Mo():a.Sd(),ge={};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 ke=x?Se.Oo():Se.Po();ge.vv=a,ke.all(function(Ge){return function(et){return et===Ge.vv||!et.isTreeExpanded}}(ge))&&E.Cj(Se,te)}(2<b||Se.wasTreeExpanded)&&(Se.wasTreeExpanded=!1,_1(Se,y,x,b-1,E,te,ne))}ge={vv:ge.vv}}a.isTreeExpanded=!0}Tt.Object.defineProperties(sr.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Ym},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:Nl},set:function(a){typeof a=="number"&&(a=new kr(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&&V1(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))}}}),sr.prototype.expandTree=sr.prototype.expandTree,sr.prototype.collapseTree=sr.prototype.collapseTree,sr.prototype.findTreeParts=sr.prototype.wz,sr.prototype.findTreeChildrenNodes=sr.prototype.Ou,sr.prototype.findTreeChildrenLinks=sr.prototype.Qo,sr.prototype.findTreeLevel=sr.prototype.uz,sr.prototype.findTreeParentChain=sr.prototype.vz,sr.prototype.findTreeParentNode=sr.prototype.pg,sr.prototype.findTreeParentLink=sr.prototype.kh,sr.prototype.findCommonTreeParent=sr.prototype.gz,sr.prototype.findTreeRoot=sr.prototype.xz,sr.prototype.isInTreeOf=sr.prototype.Nz,sr.prototype.findPort=sr.prototype.ns,sr.prototype.findLinksTo=sr.prototype.kz,sr.prototype.findLinksBetween=sr.prototype.jz,sr.prototype.findNodesInto=sr.prototype.Oo,sr.prototype.findNodesOutOf=sr.prototype.Po,sr.prototype.findNodesConnected=sr.prototype.Mu,sr.prototype.findLinksInto=sr.prototype.Sd,sr.prototype.findLinksOutOf=sr.prototype.Mo,sr.prototype.findExternalTreeLinksConnected=sr.prototype.qx,sr.prototype.invalidateConnectedLinks=sr.prototype.Bd,sr.prototype.invalidateLinkBundle=sr.prototype.Lz;var Ex=new wn(sr,"SpreadingNone",10),Ym=new wn(sr,"SpreadingEvenly",11),Z0=new wn(sr,"SpreadingPacked",12);sr.className="Node",sr.SpreadingNone=Ex,sr.SpreadingEvenly=Ym,sr.SpreadingPacked=Z0;function ri(a,y){a===void 0||a instanceof Ka||typeof a=="string"?sr.call(this,a):(sr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new kn,this.$a=null,this.Sc=new Go,this.Sc.group=this,this.gl=new kn,this.tb=this.$p=null,y&&Object.assign(this,y)}Xt(ri,sr),ri.prototype.cloneProtected=function(a){sr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Vs});y instanceof Vs?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())},it=ri.prototype,it.Af=function(a){sr.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 sr)x.Bd(y);else if(x instanceof _n)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},it.gk=function(a,y,x,b,E,te,ne){if(a===fa&&y==="elements"){if(E instanceof Vs)this.$a===null?this.$a=E:this.$a!==E&&Gt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Xn){var se=E.Nl(function(he){return he instanceof Vs});se instanceof Vs&&(this.$a===null?this.$a=se:this.$a!==se&&Gt("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 Xn&&this.$a.rg(b)&&(this.$a=null));sr.prototype.gk.call(this,a,y,x,b,E,te,ne)},it.Xl=function(a,y){sr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Xn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Xn&&(a=a.Pb()),this.tb===null&&(this.tb=new Mn),a.mi(this.tb),a instanceof pi&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},it.eh=function(a,y,x,b){this.nf=this.$a,sr.prototype.eh.call(this,a,y,x,b)},it.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof _n||y.Va()}),sr.prototype.Va.call(this)},it.si=function(){if(!sr.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof sr){if(y.isVisible()&&Zs(y))return!1}else if(y instanceof _n&&y.isVisible()&&Zs(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function K0(a,y){if(a.Gn.add(y)){y instanceof ri&&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 _n&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function V0(a,y){if(a.Gn.remove(y)){y instanceof ri&&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 _n&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}it.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)}sr.prototype.Lj.call(this)},ri.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Pn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},ri.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=Pn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},ri.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))},it=ri.prototype,it.Bd=function(a){var y=(this.U&65536)!==0;if(sr.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()))}}},it.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 kn,b=y.iterator;b.next();){var E=b.value;if(E instanceof sr)for(E=E.linksConnected;E.next();){var te=E.value;y.contains(te)||x.add(te)}}return a&&(this.$p=x),x.iterator},it.iz=function(){var a=this.Rj();a.add(this);for(var y=new kn,x=a.iterator;x.next();){var b=x.value;if(b instanceof sr)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},it.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new kn;return a(this,y),y},it.Rj=function(){var a=new kn;return nd(a,this,!0,0,!0),a.remove(this),a},it.Zb=function(a){sr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},ri.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();$1(this,y,a,this),a.Ue=!1}};function $1(a,y,x,b){for(var E=a.memberParts;E.next();){var te=E.value;if(te.Zb(!1),te instanceof ri&&te.isSubGraphExpanded&&(te.wasSubGraphExpanded=te.isSubGraphExpanded,$1(te,y,x,b)),te instanceof sr)te.Bd(y),x.Aj(te,b);else if(te instanceof _n)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!1}ri.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 ri&&te.wasSubGraphExpanded&&(te.wasSubGraphExpanded=!1,q1(te,y,x,b)),te instanceof sr)te.Bd(y),x.Cj(te,b);else if(te instanceof _n)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!0}ri.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=kt.alloc(),sr.prototype.move.call(this,a,y),a=new kn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof _n&&(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 sr&&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 _n&&(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(),Y0(E)&&E.bb());kt.free(te)}},Tt.Object.defineProperties(ri.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&&Gt("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)}}}),ri.prototype.expandSubGraph=ri.prototype.expandSubGraph,ri.prototype.collapseSubGraph=ri.prototype.collapseSubGraph,ri.prototype.findSubGraphParts=ri.prototype.Rj,ri.prototype.findContainingGroupChain=ri.prototype.hz,ri.prototype.findExternalNodesConnected=ri.prototype.iz,ri.prototype.findExternalLinksConnected=ri.prototype.Lu,ri.prototype.ensureBounds=ri.prototype.Va,ri.className="Group";function Vs(a){nn.call(this),this.yb=Es,this.ko=new Mn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Xt(Vs,nn),Vs.prototype.cloneProtected=function(a){nn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Vs.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Bo(0,0,y.width,y.height,a.x,a.y)},Vs.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof ri||a instanceof Vi)||Gt("Placeholder is not inside a Group or Adornment."),a instanceof ri){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(ha(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=kt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),kt.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 pi&&(ne=te.strokeWidth);var se=te.Df(),he=te.naturalBounds,ge=(he.width+ne)*se;ne=(he.height+ne)*se,a.type!==Xn.Link&&(se=te.ga(a.category==="Selection"?Xa:a.locationSpot,kt.alloc()),a.location=se,kt.free(se)),isNaN(ge)||isNaN(ne)?(a=te.ga(Xa,kt.alloc()),ge=Mn.allocAt(a.x,a.y,0,0),ge.Ye(te.ga(ks,a)),ge.Ye(te.ga(Bl,a)),ge.Ye(te.ga(tl,a)),ha(y,ge.width+b||0,ge.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),kt.free(a),Mn.free(ge)):(ha(y,ge+b||0,ne+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Vs.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Vs.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof ri&&!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=Mn.alloc(),E=this.computeMemberBounds(x);var te=this.yb;return y instanceof ri&&!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)),Mn.free(x),b&&y instanceof ri&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Vs.prototype.computeMemberBounds=function(a){if(!(this.part instanceof ri))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 _n&&(!y.computesBoundsIncludingLinks||Xl(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},Tt.Object.defineProperties(Vs.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new kr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Vs.className="Placeholder";function _n(a){Nr.call(this,Xn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Xs,this.Om=0,this.Qm=Xs,this.Rm=NaN,this.qj=_0,this.po=.5,this.wd=null,this.Nb=new Dn().freeze(),this.Tg=this.Mg=null,this.ml=new Mn,this.ua=new $n,this.u=this.o=this.Sf=this.Wf=null,this.su=new kt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Xt(_n,Nr),_n.prototype.cloneProtected=function(a){Nr.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())},it=_n.prototype,it.Af=function(a){Nr.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)},it.qb=function(a){a.classType===_n?(a.value&2)===2?this.routing=a:a===Jl||a===Th||a===wp?this.curve=a:a===bg||a===ev||a===tv?this.adjusting=a:a!==_0&&a!==Xs&&Gt("Unknown Link enum value for a Link property: "+a):Nr.prototype.qb.call(this,a)},it.Xc=function(){this.ba===null&&(this.ba=new lg)},it.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Zs(a)||ed(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Zs(a)||ed(a)))},it.zv=function(){return!1},it.Av=function(){},it.Zc=function(){return!1},_n.prototype.computeAngle=function(a,y,x){return _n.computeAngle(y,x)},_n.computeAngle=function(a,y){switch(a){default:case Xs:a=0;break;case Cg:a=y;break;case Pg:a=y+90;break;case Eg:a=y-90;break;case $0:a=y+180;break;case nv:a=rn.bp(y),90<a&&270>a&&(a-=180);break;case Ag:a=rn.bp(y+90),90<a&&270>a&&(a-=180);break;case Mg:a=rn.bp(y-90),90<a&&270>a&&(a-=180);break;case rv:if(a=rn.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return rn.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&&V0(x,a),a.Ah=y,y!==null&&K0(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}it=_n.prototype,it.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Nr.prototype.oh.call(this)},it.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},it.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function eS(a,y){a.wd===null&&(a.wd=new kn),a.wd.add(y),a.v()}it.Vo=function(a){if(Nr.prototype.Vo.call(this,a),Yd(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)}xg(this)}},it.Wo=function(a){if(Nr.prototype.Wo.call(this,a),Yd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Xm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Xm(x,this,b)}wg(this)}},it.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))},_n.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},_n.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?Nr.prototype.move.call(this,a,!1):(a=kt.allocAt(x.x+b,x.y+E),Nr.prototype.move.call(this,a,!1),kt.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)},_n.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},_n.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},_n.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(wo),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()===Jl))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()===Jl){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return rn.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),rn.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},_n.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()===Jl))return this.ua.wx(.5);if(this.computeCurve()===Jl&&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),rn.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)},it=_n.prototype,it.i=function(a){return this.Nb.s[a]},it.dd=function(a,y){this.Nb.cd(a,y)},it.L=function(a,y,x){this.Nb.cd(a,new kt(y,x))},it.Kz=function(a,y){this.Nb.Gb(a,y)},it.m=function(a,y,x){this.Nb.Gb(a,new kt(y,x))},it.ne=function(a){this.Nb.add(a)},it.yf=function(a,y){this.Nb.add(new kt(a,y))},it.pv=function(a){this.Nb.mb(a)},it.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 Dn,te=a.Nb.iterator;te.next();){var ne=te.value;E.add(new kt(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?Jm(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)}}it.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},it.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,ge=he.length,Se=0;Se<ge;Se++){var ke=he[Se];ne=Math.min(ke.x,ne),se=Math.min(ke.y,se),ke.freeze()}if(y.freeze(),ge===te){for(te=0;te<ge;te++)if(Se=E[te],ke=he[te],Se.x-x!==ke.x-ne||Se.y-b!==ke.y-se){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&ko(x.animationManager,this,y),Jm(this),this.g("points",a,y)}},it.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Jm(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))}it.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())}},it.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()}}},_n.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Af||(Af=new sr,Af.desiredSize=si,Af.Va()),this.defaultFromPoint&&(Af.location=this.defaultFromPoint,Af.Va(),y=a=Af)):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 sr,Mf.desiredSize=si,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),ge=y===E&&y!==null,Se=this.isOrthogonal,ke=this.curve===Jl;this.Wf=ge&&!Se?ke=!0:!1;var Ge=this.computeAdjusting()===Xs||ge;if(!Se&&!ge&&se&&he){if(se=!1,!Ge&&3<=te&&(Ge=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),se=this.adjustPoints(0,Ge,te-1,he))&&(Ge=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Ge,te-1,he)),!se)if(this.Fj(),ke){te=this.getLinkPoint(a,y,ne,!0,!1,b,E),Ge=this.getLinkPoint(b,E,x,!1,!1,a,y),se=Ge.x-te.x,he=Ge.y-te.y,ge=this.computeCurviness(),ke=Se=0;var et=te.x+se/3,ot=te.y+he/3,ft=et,jt=ot;rn.B(he,0)?jt=0<se?jt-ge:jt+ge:(Se=-se/he,ke=Math.sqrt(ge*ge/(Se*Se+1)),0>ge&&(ke=-ke),ft=(0>he?-1:1)*ke+et,jt=Se*(ft-et)+ot),et=te.x+2*se/3,ot=te.y+2*he/3;var Dt=et,Ht=ot;rn.B(he,0)?Ht=0<se?Ht-ge:Ht+ge:(Dt=(0>he?-1:1)*ke+et,Ht=Se*(Dt-et)+ot),this.Fj(),this.ne(te),this.yf(ft,jt),this.yf(Dt,Ht),this.ne(Ge),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,Ge=E,b=this.getLinkPoint(a,y,ne,!0,!1,te,Ge),E=this.getLinkPoint(te,Ge,x,!1,!1,a,y),this.hasCurviness()?(Ge=E.x-b.x,x=E.y-b.y,ne=this.computeCurviness(),a=b.x+Ge/2,y=b.y+x/2,te=a,se=y,rn.B(x,0)?se=0<Ge?se-ne:se+ne:(Ge=-Ge/x,te=Math.sqrt(ne*ne/(Ge*Ge+1)),0>ne&&(te=-te),te=(0>x?-1:1)*te+a,se=Ge*(te-a)+y),this.ne(b),this.yf(te,se),this.ne(E)):(this.ne(b),this.ne(E),se=Mn.alloc(),y.mi(se),he=se.ca(E),Ge.mi(se),ge=se.ca(b),(he||ge)&&(ne=y.ga(_m(ne),new kt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,E,!0,ne)),x=Ge.ga(_m(x),new kt),this.dd(1,this.getLinkPointFromPoint(te,Ge,x,b,!1,x))),Mn.free(se))}else{ke=this.isAvoiding,Ge&&(Se&&ke||ge)&&this.Fj();var Zt=ge?this.computeCurviness():0;ke=this.getLinkPoint(a,y,ne,!0,Se,b,E),et=ft=ot=0,(Se||!se||ge)&&(jt=this.computeEndSegmentLength(a,y,ne,!0),et=this.getLinkDirection(a,y,ke,ne,!0,Se,b,E),ge&&(se||ne.D(x)||!Se&&ne.x+x.x===1&&ne.y+x.y===1)&&(et-=Se?90:30,0>Zt&&(et-=180)),0>et?et+=360:360<=et&&(et-=360),ge&&(jt+=Math.abs(Zt)*(Se?1:2)),et===0?ot=jt:et===90?ft=jt:et===180?ot=-jt:et===270?ft=-jt:(ot=jt*Math.cos(et*Math.PI/180),ft=jt*Math.sin(et*Math.PI/180)),ne.Mc()&&ge&&(jt=y.ga(zi,kt.alloc()),Dt=kt.allocAt(jt.x+1e3*ot,jt.y+1e3*ft),this.getLinkPointFromPoint(a,y,jt,Dt,!0,ke),kt.free(jt),kt.free(Dt))),jt=this.getLinkPoint(b,E,x,!1,Se,a,y);var Jt=Ht=Dt=0;if(Se||!he||ge){var qt=this.computeEndSegmentLength(b,E,x,!1);Jt=this.getLinkDirection(b,E,jt,x,!1,Se,a,y),ge&&(he||ne.D(x)||!Se&&ne.x+x.x===1&&ne.y+x.y===1)&&(Jt+=Se?0:30,0>Zt&&(Jt+=180)),0>Jt?Jt+=360:360<=Jt&&(Jt-=360),ge&&(qt+=Math.abs(Zt)*(Se?1:2)),Jt===0?Dt=qt:Jt===90?Ht=qt:Jt===180?Dt=-qt:Jt===270?Ht=-qt:(Dt=qt*Math.cos(Jt*Math.PI/180),Ht=qt*Math.sin(Jt*Math.PI/180)),x.Mc()&&ge&&(x=E.ga(zi,kt.alloc()),ne=kt.allocAt(x.x+1e3*Dt,x.y+1e3*Ht),this.getLinkPointFromPoint(b,E,x,ne,!1,jt),kt.free(x),kt.free(ne))}x=ke,(Se||!se||ge)&&(x=new kt(ke.x+ot,ke.y+ft)),ne=jt,(Se||!he||ge)&&(ne=new kt(jt.x+Dt,jt.y+Ht)),!Ge&&!Se&&se&&3<te&&this.adjustPoints(0,ke,te-2,ne)?this.dd(te-1,jt):!Ge&&!Se&&he&&3<te&&this.adjustPoints(1,x,te-1,jt)?this.dd(0,ke):!Ge&&(Se?6<=te:4<te)&&this.adjustPoints(1,x,te-2,ne)?(this.dd(0,ke),this.dd(te-1,jt)):(this.Fj(),this.ne(ke),(Se||!se||ge)&&this.ne(x),Se&&this.addOrthoPoints(x,et,ne,Jt,a,b),(Se||!he||ge)&&this.ne(ne),this.ne(jt))}return!0};function X0(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}_n.prototype.getLinkPointFromPoint=function(a,y,x,b,E,te){if(te===void 0&&(te=new kt),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,ge=a.m11*E,Se=E*(a.m21*a.dy-a.m22*a.dx),ke=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ne+b.y*he+Se,b=b.x*se+b.y*ge+ke,ne=x.x*ne+x.y*he+Se,x=x.x*se+x.y*ge+ke}return y.Sj(E,b,ne,x,te),a!==null&&te.transform(a),te};function Qm(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)}_n.prototype.getLinkPoint=function(a,y,x,b,E,te,ne,se){if(se===void 0&&(se=new kt),x.sb()&&!xp(x))return y.ga(x,se),se;if(x.$c()){var he=Qm(this,y);if(he!==null){if(se.assign(he.Zo),E&&this.routing===nS){var ge=Qm(this,ne);if(ge!==null&&he.Gl<ge.Gl){he=kt.alloc(),ge=kt.alloc();var Se=new Mn(y.ga(Xa,he),y.ga(ks,ge)),ke=this.computeSpot(!b,ne);a=this.getLinkPoint(te,ne,ke,!b,E,a,y,ge),(x.Hf(Ru)||x.Hf(Ws))&&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),kt.free(he),kt.free(ge)}}return se}}return x=y.ga(_m(x),kt.alloc()),this.pointsCount>(E?6:2)?(ne=b?this.i(1):this.i(this.pointsCount-2),E&&(ne=X0(x,ne.copy()))):(he=this.computeSpot(!b,ne),te=kt.alloc(),ne=ne.ga(_m(he),te),E&&(ne=X0(x,ne)),kt.free(te)),this.getLinkPointFromPoint(a,y,x,ne,b,se),kt.free(x),se},_n.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=Qm(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(zi,kt.alloc()),this.pointsCount>(te?6:2)?(se=E?this.i(1):this.i(this.pointsCount-2),se=te?X0(he,se.copy()):x):(x=kt.alloc(),se=se.ga(zi,x),kt.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,kt.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},_n.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Qm(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)},_n.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=zi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===io?ua:y)):(a=y||this.toPort,a===null?a=zi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===io?ua:y)),a};function xp(a){return a===ua||a.x===.5&&a.y===.5}function _m(a){return a.x===.5&&a.y===.5?a:zi}_n.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Xs&&4<this.pointsCount?this.computeMidPoint(new kt):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(zi))},_n.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},_n.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 v0(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,ge=he.length;ge--;){var Se=he[ge];if(Se.visible||Se===this.locationObject){var ke=Se.actualBounds,Ge=this.naturalBounds;if(!(ke.x>Ge.width||ke.y>Ge.height||0>ke.x+ke.width||0>ke.y+ke.height)){if(ke=gi.alloc(),ke.set(ne),Se instanceof Xn)se=Se.Cf(a,y,x,b,E,ke);else if(this.path===Se){if(Se instanceof pi)if(se=a,Ge=b,Se.pickable===!1)se=!1;else if(ke.multiply(Se.transform),Ge)e:{var et=se,ot=ke;if(Se.fh(et,ot))se=!0;else{if(ot===void 0&&(ot=Se.transform,et.Re(Se.actualBounds))){se=!0;break e}se=et.left,Ge=et.right;var ft=et.top;et=et.bottom;var jt=kt.alloc(),Dt=kt.alloc(),Ht=kt.alloc(),Zt=gi.alloc();Zt.set(ot),Zt.bv(Se.transform),Zt.Vj(),Dt.x=Ge,Dt.y=ft,Dt.transform(Zt),jt.x=se,jt.y=ft,jt.transform(Zt),ot=!1,Vd(Se,jt,Dt,Ht)?ot=!0:(jt.x=Ge,jt.y=et,jt.transform(Zt),Vd(Se,jt,Dt,Ht)?ot=!0:(Dt.x=se,Dt.y=et,Dt.transform(Zt),Vd(Se,jt,Dt,Ht)?ot=!0:(jt.x=se,jt.y=ft,jt.transform(Zt),Vd(Se,jt,Dt,Ht)&&(ot=!0)))),gi.free(Zt),kt.free(jt),kt.free(Dt),kt.free(Ht),se=ot}}else se=Se.fh(se,ke)}else se=$a(Se,a,b,ke);se&&(Ge=Se,y!==null&&(Ge=y(Se)),Ge&&(x===null||x(Ge))&&E.add(Ge)),gi.free(ke)}}}return te===void 0&&gi.free(ne),se||this.background!==null||this.areaBackground!==null}return te===void 0&&gi.free(ne),!1},_n.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?Jl:this.curve},_n.prototype.computeCorner=function(){if(this.curve===Jl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},_n.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},_n.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===Cg||b===nv||b===$0?a=Math.max(a,E):b===Eg||b===Mg||b===Pg||b===Ag?a=Math.max(a,ne):(y=y.ga(zi).ab(x.ga(zi))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*E)+1)),this.curve===Jl&&(a*=1.333)}}return a},_n.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Xs&&x.bb()}},_n.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=rS;var y=this.Sf;if(y!==null){for(var x=vn(),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),Ln(x)}}return a},_n.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},_n.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},_n.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===ev)return!1;E===tv&&(E=bg)}switch(E){case ev: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,ge=Math.sqrt(se*se+he*he);if(!rn.$(ge,0)){if(rn.$(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 ke=y.y;se=b.x-ne;var Ge=b.y-ke;for(he=Math.sqrt(se*se+Ge*Ge),rn.$(se,0)?Ge=0>Ge?-Math.PI/2:Math.PI/2:(Ge=Math.atan(Ge/Math.abs(se)),0>se&&(Ge=Math.PI-Ge)),ge=he/ge,Se=Ge-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),rn.$(y,0)||(rn.$(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*=ge,this.L(a,ne+y*Math.cos(se),ke+y*Math.sin(se)));this.dd(x,b)}}return!0;case tv:if(te=this.i(a),ke=this.i(x),!te.Xa(y)||!ke.Xa(b)){E=te.x,te=te.y,ne=ke.x,ke=ke.y,ge=(ne-E)*(ne-E)+(ke-te)*(ke-te),se=y.x,Se=y.y,he=b.x,Ge=b.y;var et=1;if(he-se!==0){var ot=(Ge-Se)/(he-se);et=Math.sqrt(1+1/(ot*ot))}else ot=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ft=y.x,jt=y.y,Dt=.5;ge!==0&&(Dt=((E-ft)*(E-ne)+(te-jt)*(te-ke))/ge);var Ht=E+Dt*(ne-E),Zt=te+Dt*(ke-te);y=Math.sqrt((ft-Ht)*(ft-Ht)+(jt-Zt)*(jt-Zt)),jt<ot*(ft-Ht)+Zt&&(y=-y),0<ot&&(y=-y),ft=se+Dt*(he-se),Dt=Se+Dt*(Ge-Se),ot!==0?(y=ft+y/et,this.L(a,y,Dt-(y-ft)/ot)):this.L(a,ft,Dt+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,ke=se,ge=Se,rn.B(E.y,te.y)?rn.B(te.x,ne.x)?Se=y.y:rn.B(te.y,ne.y)&&(se=y.x):rn.B(E.x,te.x)&&(rn.B(te.y,ne.y)?se=y.x:rn.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,Ge=Se,rn.B(E.y,te.y)?rn.B(te.x,ne.x)?Se=b.y:rn.B(te.y,ne.y)&&(se=b.x):rn.B(E.x,te.x)&&(rn.B(te.y,ne.y)?se=b.x:rn.B(te.x,ne.x)&&(Se=b.y)),this.L(x-1,se,Se),Y0(this))){this.L(a+1,ke,ge),this.L(x-1,he,Ge),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},_n.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 ge=kt.alloc(),Se=kt.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?(ge.h(x.x,a.y),Se.h(x.x,(a.y+x.y)/2),b===180?(ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),Se.x=ge.x,Se.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ge.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=ge.x,Se.y=x.y):b===0&&a.x<he.left&&a.y>he.top&&a.y<he.bottom&&(ge.x=a.x,ge.y=a.y<x.y?Math.min(x.y,he.top):Math.max(x.y,he.bottom),Se.y=ge.y)):(ge.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))?ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ge.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,he.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ge.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,he.top),!0)),Se.x=x.x,Se.y=ge.y),ge.y>se.top&&ge.y<se.bottom&&(x.x>=se.left&&x.x<=a.x||a.x<=he.right&&a.x>=x.x?(b===90||b===270)&&(ge.h(Math.max((a.x+x.x)/2,a.x),a.y),Se.h(ge.x,x.y)):(ge.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=ge.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?(ge.h(x.x,a.y),Se.h(x.x,(a.y+x.y)/2),b===0?(ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),Se.x=ge.x,Se.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ge.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=ge.x,Se.y=x.y):b===180&&a.x>he.right&&a.y>he.top&&a.y<he.bottom&&(ge.x=a.x,ge.y=a.y<x.y?Math.min(x.y,he.top):Math.max(x.y,he.bottom),Se.y=ge.y)):(ge.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))?ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ge.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,he.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ge.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,he.top),!0)),Se.x=x.x,Se.y=ge.y),ge.y>se.top&&ge.y<se.bottom&&(x.x<=se.right&&x.x>=a.x||a.x>=he.left&&a.x<=x.x?(b===90||b===270)&&(ge.h(Math.min((a.x+x.x)/2,a.x),a.y),Se.h(ge.x,x.y)):(ge.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=ge.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?(ge.h(a.x,x.y),Se.h((a.x+x.x)/2,x.y),b===270?(ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),Se.x=x.x,Se.y=ge.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ge.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=ge.y):b===90&&a.y<he.top&&a.x>he.left&&a.x<he.right&&(ge.x=a.x<x.x?Math.min(x.x,he.left):Math.max(x.x,he.right),ge.y=a.y,Se.x=ge.x)):(ge.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))?ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ge.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,he.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ge.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,he.left),x.y,!1)),Se.x=ge.x,Se.y=x.y),ge.x>se.left&&ge.x<se.right&&(x.y>=se.top&&x.y<=a.y||a.y<=he.bottom&&a.y>=x.y?(b===0||b===180)&&(ge.h(a.x,Math.max((a.y+x.y)/2,a.y)),Se.h(x.x,ge.y)):(ge.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=ge.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?(ge.h(a.x,x.y),Se.h((a.x+x.x)/2,x.y),b===90?(ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),Se.x=x.x,Se.y=ge.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ge.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=ge.y):b===270&&a.y>he.bottom&&a.x>he.left&&a.x<he.right&&(ge.x=a.x<x.x?Math.min(x.x,he.left):Math.max(x.x,he.right),ge.y=a.y,Se.x=ge.x)):(ge.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))?ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ge.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,he.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ge.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,he.left),x.y,!1)),Se.x=ge.x,Se.y=x.y),ge.x>se.left&&ge.x<se.right&&(x.y<=se.bottom&&x.y>=a.y||a.y>=he.top&&a.y<=x.y?(b===0||b===180)&&(ge.h(a.x,Math.min((a.y+x.y)/2,a.y)),Se.h(x.x,ge.y)):(ge.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=ge.x,Se.y=x.y)));var ke=x;if(this.isAvoiding){var Ge=this.diagram;if(Ge===null||E===te||this.layer.isTemporary||!ep(Ge)||se.ca(ke)&&!te.Td(E)||he.ca(a)&&!E.Td(te))y=!1;else{var et=tp(Ge,!0,this.containingGroup,null);if(this.segmentIndex!==17&&et.Yj(Math.min(a.x,ge.x),Math.min(a.y,ge.y),Math.abs(a.x-ge.x),Math.abs(a.y-ge.y))&&et.Yj(Math.min(ge.x,Se.x),Math.min(ge.y,Se.y),Math.abs(ge.x-Se.x),Math.abs(ge.y-Se.y))&&et.Yj(Math.min(Se.x,ke.x),Math.min(Se.y,ke.y),Math.abs(Se.x-ke.x),Math.abs(Se.y-ke.y)))y=!1;else{E=a,te=ke;var ot=x=null;if(Ge.isVirtualized){Ge=et.bounds.copy(),Ge.Bc(-et.Ho,-et.Go);var ft=kt.alloc();bp(et,a.x,a.y)||(rn.Ff(Ge.x,Ge.y,Ge.x+Ge.width,Ge.y+Ge.height,a.x,a.y,ge.x,ge.y,ft)?(x=a=ft.copy(),y=ft.ab(ge)):rn.Ff(Ge.x,Ge.y,Ge.x+Ge.width,Ge.y+Ge.height,ge.x,ge.y,Se.x,Se.y,ft)?(x=a=ft.copy(),y=ft.ab(Se)):rn.Ff(Ge.x,Ge.y,Ge.x+Ge.width,Ge.y+Ge.height,Se.x,Se.y,ke.x,ke.y,ft)&&(x=a=ft.copy(),y=ft.ab(ke))),bp(et,ke.x,ke.y)||(rn.Ff(Ge.x,Ge.y,Ge.x+Ge.width,Ge.y+Ge.height,ke.x,ke.y,Se.x,Se.y,ft)?(ot=ke=ft.copy(),b=Se.ab(ft)):rn.Ff(Ge.x,Ge.y,Ge.x+Ge.width,Ge.y+Ge.height,Se.x,Se.y,ge.x,ge.y,ft)?(ot=ke=ft.copy(),b=ge.ab(ft)):rn.Ff(Ge.x,Ge.y,Ge.x+Ge.width,Ge.y+Ge.height,ge.x,ge.y,a.x,a.y,ft)&&(ot=ke=ft.copy(),b=a.ab(ft))),kt.free(ft)}se=se.copy().ed(he),se.Bc(et.Ho*et.Os,et.Go*et.Os),aS(et,a,y,ke,b,se,!0),he=Oc(et,ke.x,ke.y),!et.abort&&he>=Cp&&(oS(et),se.Bc(et.Ho*et.Hx,et.Go*et.Ix),aS(et,a,y,ke,b,se,!1),he=Oc(et,ke.x,ke.y)),!et.abort&&he<Cp&&Oc(et,ke.x,ke.y)!==Fh?(J0(this,et,ke.x,ke.y,b,!0,ne),se=this.i(2),4>this.pointsCount?(y===0||y===180?(se.x=a.x,se.y=ke.y):(se.x=ke.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?rn.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)):rn.B(se.y,ne.y)?(Math.abs(a.y-se.y)<=et.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)&&(rn.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)):rn.B(se.x,ne.x)?(Math.abs(a.x-se.x)<=et.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)),ot!==null&&(b===0||b===180?this.yf(te.x,ot.y):this.yf(ot.x,te.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ge.copy()),this.ne(Se.copy())),kt.free(ge),kt.free(Se)}},_n.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 Y0(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 J0(a,y,x,b,E,te,ne){var se=y.Ho,he=y.Go,ge=Oc(y,x,b),Se=x,ke=b;for(E===0?Se+=se:E===90?ke+=he:E===180?Se-=se:ke-=he,E!==ne&&ge>Jd&&Oc(y,Se,ke)!==ge-1&&(Oc(y,x-se,b)===ge-1?(E=180,Se=x-se,ke=b):Oc(y,x+se,b)===ge-1?(E=0,Se=x+se,ke=b):Oc(y,x,b-he)===ge-1?(E=270,Se=x,ke=b-he):Oc(y,x,b+he)===ge-1&&(E=90,Se=x,ke=b+he));ge>Jd&&Oc(y,Se,ke)===ge-1;)x=Se,b=ke,E===0?Se+=se:E===90?ke+=he:E===180?Se-=se:ke-=he,--ge;te?ge>Jd&&(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),ge>Jd&&(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),Oc(y,ne,Se)===ge-1?J0(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),Oc(y,ne,Se)===ge-1&&J0(a,y,ne,Se,te,!1,te))),a.yf(x,b)}_n.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=so(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=so(y,a,b.x,b.y,x.x,x.y);b=x,se<E&&(te=ne,E=se)}return te},_n.prototype.qc=function(){this.lk=!1,this.v()},_n.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 pi&&(E.ua=this.ua)}}},_n.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Yd(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===Jl&&3<=y&&!rn.$(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||Yd(this)){if(a.type=$n.o,se=D1(a),this.computeShortLength(!0)!==0&&(E=Pf(this,E,!0,te)),yp(se,E.x,E.y,!1),ne===Jl&&3<=y&&!rn.$(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=Pf(this,E,!1,te)),Eh(se,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=kt.allocAt(b,he),x=kt.alloc(),x.assign(this.i(1)),te=kt.allocAt(b,he),E=kt.allocAt(b,he),ne=this.i(0);for(var ge,Se=this.smoothness/3,ke=1;ke<this.pointsCount-1;ke++){ge=this.i(ke);var Ge=ne,et=ge,ot=this.i(Q0(this,ge,ke,!1));if((!rn.$(Ge.x,et.x)||!rn.$(et.x,ot.x))&&(!rn.$(Ge.y,et.y)||!rn.$(et.y,ot.y))){var ft=Se;isNaN(ft)&&(ft=this.smoothness/3);var jt=Ge.x;Ge=Ge.y;var Dt=et.x;et=et.y;var Ht=ot.x;ot=ot.y;var Zt=ft*$m(jt,Ge,Dt,et);ft*=$m(Dt,et,Ht,ot),rn.$(Ge,et)&&rn.$(Dt,Ht)&&(Dt>jt?ot>et?(te.x=Dt-Zt,te.y=et-Zt,E.x=Dt+ft,E.y=et+ft):(te.x=Dt-Zt,te.y=et+Zt,E.x=Dt+ft,E.y=et-ft):ot>et?(te.x=Dt+Zt,te.y=et-Zt,E.x=Dt-ft,E.y=et+ft):(te.x=Dt+Zt,te.y=et+Zt,E.x=Dt-ft,E.y=et-ft)),rn.$(jt,Dt)&&rn.$(et,ot)&&(et>Ge?(Ht>Dt?(te.x=Dt-Zt,te.y=et-Zt,E.x=Dt+ft):(te.x=Dt+Zt,te.y=et-Zt,E.x=Dt-ft),E.y=et+ft):(Ht>Dt?(te.x=Dt-Zt,te.y=et+Zt,E.x=Dt+ft):(te.x=Dt+Zt,te.y=et+Zt,E.x=Dt-ft),E.y=et-ft)),(rn.$(jt,Dt)&&rn.$(Dt,Ht)||rn.$(Ge,et)&&rn.$(et,ot))&&(jt=.5*(jt+Ht),Ge=.5*(Ge+ot),te.x=jt,te.y=Ge,E.x=jt,E.y=Ge),(ke===1||ke===2&&rn.$(ne.x,this.i(0).x)&&rn.$(ne.y,this.i(0).y))&&(x.x=.5*(ne.x+ge.x),x.y=.5*(ne.y+ge.y)),Eh(se,x.x-b,x.y-he,te.x-b,te.y-he,ge.x-b,ge.y-he),y.set(te),x.set(E),ne=ge}}ge=ne.x,ne=ne.y,Se=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(Se=Pf(this,Se.copy(),!1,Li)),ge=.5*(ge+Se.x),ne=.5*(ne+Se.y),Eh(se,E.x-b,E.y-he,ge-b,ne-he,Se.x-b,Se.y-he),kt.free(y),kt.free(x),kt.free(te),kt.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=Pf(this,ne.copy(),!1,Li)),Eh(se,te.x-b,te.y-he,E.x-b,E.y-he,ne.x-b,ne.y-he);else{for(te=kt.alloc(),te.assign(this.i(0)),E=kt.alloc(),E.assign(te),ne=this.computeCorner(),ke=1,ge=0;ke<y;){if(ke=Q0(this,te,ke,1<ke),Se=this.i(ke),ke>=y-1){if(!te.D(Se))this.computeShortLength(!1)!==0&&(Se=Pf(this,Se.copy(),!1,Li)),Ef(this,se,-b,-he,te,Se,x);else if(ge===0)for(ke=1;ke<y;)E.assign(te),Se=this.i(ke++),Ef(this,se,-b,-he,te,Se,x),te.assign(Se);break}if(ge=Q0(this,Se,ke+1,ke<y-3),ke=-b,jt=-he,Ge=Se,Dt=this.i(ge),ft=x,rn.B(te.y,Ge.y)&&rn.B(Ge.x,Dt.x))if(ot=Math.min(ne,Math.abs(Ge.x-E.x)/2),ot=Zt=Math.min(ot,Math.abs(Dt.y-Ge.y)/2),rn.B(ot,0))Ef(this,se,ke,jt,te,Ge,ft),te.assign(Ge);else{var Jt=Ge.x,qt=Ge.y;et=Jt,Ht=qt,Ge.x>te.x?Jt=Ge.x-ot:Jt=Ge.x+ot,Dt.y>Ge.y?Ht=Ge.y+Zt:Ht=Ge.y-Zt,Dt=kt.allocAt(Jt,qt),Ef(this,se,ke,jt,te,Dt,ft),kt.free(Dt),Um(se,Ge.x+ke,Ge.y+jt,et+ke,Ht+jt),te.h(et,Ht)}else rn.B(te.x,Ge.x)&&rn.B(Ge.y,Dt.y)?(ot=Math.min(ne,Math.abs(Ge.y-E.y)/2),ot=Zt=Math.min(ot,Math.abs(Dt.x-Ge.x)/2),rn.B(Zt,0)?(Ef(this,se,ke,jt,te,Ge,ft),te.assign(Ge)):(Jt=Ge.x,qt=Ge.y,et=Jt,Ht=qt,Ge.y>te.y?qt=Ge.y-ot:qt=Ge.y+ot,Dt.x>Ge.x?et=Ge.x+Zt:et=Ge.x-Zt,Dt=kt.allocAt(Jt,qt),Ef(this,se,ke,jt,te,Dt,ft),kt.free(Dt),Um(se,Ge.x+ke,Ge.y+jt,et+ke,Ht+jt),te.h(et,Ht))):(Ef(this,se,ke,jt,te,Ge,ft),te.assign(Ge));E.assign(Se),ke=ge}kt.free(te)}Gm=se}else se=this.i(1).copy(),se.x-=b,se.y-=he,this.computeShortLength(!0)!==0&&(E=Pf(this,E,!0,te)),this.computeShortLength(!1)!==0&&(se=Pf(this,se,!1,te)),a.type=$n.j,a.startX=E.x,a.startY=E.y,a.endX=se.x,a.endY=se.y;return this.lk=!0,a};function $m(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),rn.$(a,0)?y:rn.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Pf(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=$m(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=$m(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 Q0(a,y,x,b){for(var E=a.pointsCount,te=y;rn.$(y.x,te.x)&&rn.$(y.y,te.y);){if(x>=E)return E-1;te=a.i(x++)}if(!rn.$(y.x,te.x)&&!rn.$(y.y,te.y))return x-1;for(var ne=te;rn.$(y.x,te.x)&&rn.$(te.x,ne.x)&&(!b||(y.y>=te.y?te.y>=ne.y:te.y<=ne.y))||rn.$(y.y,te.y)&&rn.$(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}_n.prototype.computeJumpLength=function(){return 10};function Ef(a,y,x,b,E,te,ne){if(!ne&&Yd(a)){ne=a.computeJumpLength();var se=ne/2,he=[],ge=0;if(a.isVisible()&&(ge=Ax(a,E,te,he)),0<ge){if(rn.B(E.y,te.y))if(E.x<te.x)for(var Se=0;Se<ge;){var ke=Math.max(E.x,Math.min(he[Se++]-se,te.x-ne));y.lineTo(ke+x,te.y+b);for(var Ge=ke+x,et=Math.min(ke+ne,te.x);Se<ge&&(ke=he[Se],ke<et+ne);)Se++,et=Math.min(ke+se,te.x);ke=te.y-ne+b,et+=x;var ot=te.y+b;a.curve===Th?yp(y,et,ot,!1):Eh(y,Ge,ke,et,ke,et,ot)}else for(--ge;0<=ge;){for(Se=Math.min(E.x,Math.max(he[ge--]+se,te.x+ne)),y.lineTo(Se+x,te.y+b),Ge=Se+x,ke=Math.max(Se-ne,te.x);0<=ge&&(Se=he[ge],Se>ke-ne);)ge--,ke=Math.max(Se-se,te.x);Se=te.y-ne+b,ke+=x,et=te.y+b,a.curve===Th?yp(y,ke,et,!1):Eh(y,Ge,Se,ke,Se,ke,et)}else if(rn.B(E.x,te.x))if(E.y<te.y)for(Se=0;Se<ge;){for(ke=Math.max(E.y,Math.min(he[Se++]-se,te.y-ne)),y.lineTo(te.x+x,ke+b),Ge=ke+b,ke=Math.min(ke+ne,te.y);Se<ge&&(et=he[Se],et<ke+ne);)Se++,ke=Math.min(et+se,te.y);et=te.x-ne+x,ot=te.x+x,ke+=b,a.curve===Th?yp(y,ot,ke,!1):Eh(y,et,Ge,et,ke,ot,ke)}else for(--ge;0<=ge;){for(Se=Math.min(E.y,Math.max(he[ge--]+se,te.y+ne)),y.lineTo(te.x+x,Se+b),Ge=Se+b,Se=Math.max(Se-ne,te.y);0<=ge&&(ke=he[ge],ke>Se-ne);)ge--,Se=Math.max(ke-se,te.y);ke=te.x-ne+x,et=te.x+x,Se+=b,a.curve===Th?yp(y,et,Se,!1):Eh(y,ke,Ge,ke,Se,et,Se)}}}y.lineTo(te.x+x,te.y+b)}function Ax(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 _n){if(he===a)return 0<b.length&&b.sort(function(Se,ke){return Se-ke}),b.length;if(he.isVisible()&&Yd(he)){var ge=he.routeBounds;ge.w()&&a.routeBounds.Yc(ge)&&!a.usesSamePort(he)&&(ge=he.path,ge!==null&&ge.Ed()&&Mx(y,x,b,he))}}}}}return 0<b.length&&b.sort(function(Se,ke){return Se-ke}),b.length}function Mx(a,y,x,b){for(var E=rn.B(a.y,y.y),te=b.pointsCount,ne=b.i(0),se=kt.alloc(),he=1;he<te;he++){var ge=b.i(he);if(he<te-1){var Se=b.i(he+1);if(ne.y===ge.y&&ge.y===Se.y){if(ge.x>ne.x&&Se.x>=ge.x||ge.x<ne.x&&Se.x<=ge.x)continue}else if(ne.x===ge.x&&ge.x===Se.x&&(ge.y>ne.y&&Se.y>=ge.y||ge.y<ne.y&&Se.y<=ge.y))continue}e:{Se=a.x;var ke=a.y,Ge=y.x,et=y.y,ot=ne.x;ne=ne.y;var ft=ge.x,jt=ge.y;if(rn.B(Se,Ge)){if(!rn.B(ke,et)&&rn.B(ne,jt)&&Math.min(ke,et)<ne&&Math.max(ke,et)>ne&&Math.min(ot,ft)<Se&&Math.max(ot,ft)>Se&&!rn.B(ot,ft)){se.x=Se,se.y=ne,Se=!0;break e}}else if(rn.B(ke,et)&&rn.B(ot,ft)&&Math.min(Se,Ge)<ot&&Math.max(Se,Ge)>ot&&Math.min(ne,jt)<ke&&Math.max(ne,jt)>ke&&!rn.B(ne,jt)){se.x=ot,se.y=ke,Se=!0;break e}se.x=0,se.y=0,Se=!1}Se&&(E?x.push(se.x):x.push(se.y)),ne=ge}kt.free(se)}function Yd(a){return a=a.curve,a===wp||a===Th}function qm(a,y){(y||Yd(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()))}_n.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 _n&&(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 _n&&tS(this,se,a)}}}}};function tS(a,y,x){if(y!==null&&y.lk&&y.fd&&Yd(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}_n.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},_n.prototype.isVisible=function(){if(!Nr.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},_n.prototype.Zb=function(a){if(Nr.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)},_n.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 ge=ne[he];(ge.ef===y&&ge.ff===b&&ge.uf===x&&ge.vf===E||ge.ef===x&&ge.ff===E&&ge.uf===y&&ge.vf===b)&&(te===null?te=ge:(a===null&&(a=[],a.push(te)),a.push(ge)))}if(a!==null){for(te=G1(y,x,b,E),te===null&&(te=new iv(y,b,x,E),U1(y,te),U1(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&&(yn(y.links,a),y.Sl()))}_n.prototype.ph=function(){return!0},Tt.Object.defineProperties(_n.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&&Xm(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&&Vm(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&&Xm(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&&Vm(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:io},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&&Kn(a,">= 0",_n,"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:io},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&&Kn(a,">= 0",_n,"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?Hr: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 pi?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()===Jl&&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),rn.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);rn.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 kt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Jm(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);rn.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):rn.$(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 Dn,b=0;b<a.length/2;b++)E=new kt(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(!xn(te)||typeof te.x!="number"||isNaN(te.x)||typeof te.y!="number"||isNaN(te.y)){b=!1;break}}if(b)for(x=new Dn,b=0;b<a.length;b++)E=a[b],x.add(new kt(E.x,E.y).freeze())}}else if(a instanceof Dn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Gt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Jm(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===Th||y===wp||a===Th||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)}}}),_n.prototype.invalidateOtherJumpOvers=_n.prototype.Xo,_n.prototype.findClosestSegment=_n.prototype.ez,_n.prototype.updateRoute=_n.prototype.vg,_n.prototype.invalidateRoute=_n.prototype.bb,_n.prototype.rollbackRoute=_n.prototype.rv,_n.prototype.commitRoute=_n.prototype.zf,_n.prototype.startRoute=_n.prototype.uh,_n.prototype.clearPoints=_n.prototype.Fj,_n.prototype.removePoint=_n.prototype.pv,_n.prototype.addPointAt=_n.prototype.yf,_n.prototype.addPoint=_n.prototype.ne,_n.prototype.insertPointAt=_n.prototype.m,_n.prototype.insertPoint=_n.prototype.Kz,_n.prototype.setPointAt=_n.prototype.L,_n.prototype.setPoint=_n.prototype.dd,_n.prototype.getPoint=_n.prototype.i,_n.prototype.getOtherPort=_n.prototype.Cz,_n.prototype.getOtherNode=_n.prototype.To;var Af=null,Mf=null,_0=new wn(_n,"Normal",1),Lx=new wn(_n,"Orthogonal",2),Tx=new wn(_n,"AvoidsNodes",6),nS=new wn(_n,"AvoidsNodesStraight",7),Xs=new wn(_n,"None",0),Jl=new wn(_n,"Bezier",9),Th=new wn(_n,"JumpGap",10),wp=new wn(_n,"JumpOver",11),bg=new wn(_n,"End",17),ev=new wn(_n,"Scale",18),tv=new wn(_n,"Stretch",19),Cg=new wn(_n,"OrientAlong",21),Pg=new wn(_n,"OrientPlus90",22),Eg=new wn(_n,"OrientMinus90",23),$0=new wn(_n,"OrientOpposite",24),nv=new wn(_n,"OrientUpright",25),Ag=new wn(_n,"OrientPlus90Upright",26),Mg=new wn(_n,"OrientMinus90Upright",27),rv=new wn(_n,"OrientUpright45",28),rS=16,iS=14,Lg=8;_n.className="Link",_n.Normal=_0,_n.Orthogonal=Lx,_n.AvoidsNodes=Tx,_n.AvoidsNodesStraight=nS,_n.None=Xs,_n.Bezier=Jl,_n.JumpGap=Th,_n.JumpOver=wp,_n.End=bg,_n.Scale=ev,_n.Stretch=tv,_n.OrientAlong=Cg,_n.OrientPlus90=Pg,_n.OrientMinus90=Eg,_n.OrientOpposite=$0,_n.OrientUpright=nv,_n.OrientPlus90Upright=Ag,_n.OrientMinus90Upright=Mg,_n.OrientUpright45=rv,_n.EndSegmentStep=8,_n.CurvinessStart=rS,_n.SpacingMin=iS,_n.OrthoShortCut=Lg;function iv(a,y,x,b){ci(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}iv.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},iv.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))}},iv.className="LinkBundle";function Tg(a){ci(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}Tg.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=q0,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 Oc(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]):q0}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]>=Jd&&(x[b]=q0)}Tg.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]===Fh)return!1}return!0};function kc(a,y,x,b,E,te,ne,se,he){if(!(y<te||y>ne||x<se||x>he)){var ge=y|0,Se=x|0,ke=a.ac[ge][Se];if(ke>=Jd&&ke<Cp)for(E?Se+=b:ge+=b,ke+=1;te<=ge&&ge<=ne&&se<=Se&&Se<=he&&!(ke>=a.ac[ge][Se]);)a.ac[ge][Se]=ke,ke+=1,E?Se+=b:ge+=b;if(ge=E?Se:ge,E)if(0<b)for(x+=b;x<ge;x+=b)kc(a,y,x,1,!E,te,ne,se,he),kc(a,y,x,-1,!E,te,ne,se,he);else for(x+=b;x>ge;x+=b)kc(a,y,x,1,!E,te,ne,se,he),kc(a,y,x,-1,!E,te,ne,se,he);else if(0<b)for(y+=b;y<ge;y+=b)kc(a,y,x,1,!E,te,ne,se,he),kc(a,y,x,-1,!E,te,ne,se,he);else for(y+=b;y>ge;y+=b)kc(a,y,x,1,!E,te,ne,se,he),kc(a,y,x,-1,!E,te,ne,se,he)}}function ov(a,y,x,b,E,te,ne,se,he){y|=0,x|=0;var ge=Fh,Se=Jd;for(a.ac[y][x]=Se;ge===Fh&&y>te&&y<ne&&x>se&&x<he;)Se+=1,a.ac[y][x]=Se,E?x+=b:y+=b,ge=a.ac[y][x]}function av(a,y,x,b,E,te,ne,se,he){y|=0,x|=0;var ge=Fh,Se=Cp;for(a.ac[y][x]=Se;ge===Fh&&y>te&&y<ne&&x>se&&x<he;)a.ac[y][x]=Se,E?x+=b:y+=b,ge=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 ge=b.x,Se=b.y;if(bp(a,ge,Se))if(ge-=a.Nd,ge/=a.rc,Se-=a.Od,Se/=a.sc,1>=Math.abs(se-ge)&&1>=Math.abs(he-Se))a.abort=!0;else{var ke=te.x;b=te.y,y=te.x+te.width;var Ge=te.y+te.height;ke-=a.Nd,ke/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Ge-=a.Od,Ge/=a.sc,te=Math.max(0,Math.min(a.di,ke|0)),y=Math.min(a.di,Math.max(0,y|0)),ke=Math.max(0,Math.min(a.ei,b|0)),Ge=Math.min(a.ei,Math.max(0,Ge|0)),b=a.ac,se|=0,he|=0,ge|=0,Se|=0;var et=x===0||x===90?1:-1;if(x=x===90||x===270,b[se][he]===Fh?(ov(a,se,he,et,x,te,y,ke,Ge),ov(a,se,he,1,!x,te,y,ke,Ge),ov(a,se,he,-1,!x,te,y,ke,Ge)):ov(a,se,he,et,x,se,he,se,he),b[ge][Se]===Fh?(av(a,ge,Se,E===0||E===90?1:-1,E===90||E===270,te,y,ke,Ge),av(a,ge,Se,1,!(E===90||E===270),te,y,ke,Ge),av(a,ge,Se,-1,!(E===90||E===270),te,y,ke,Ge)):av(a,ge,Se,et,x,ge,Se,ge,Se),x=vn(),ne&&sS(a,ge,Se,E,se,he,x))for((x[0]!==ge||x[1]!==Se)&&(x.unshift(Se),x.unshift(ge)),(x[x.length-2]!==se||x[x.length-1]!==he)&&(x.push(se),x.push(he)),a=Jd,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],ge=x[te+1];y>E?E++:y<E?E--:ge>ne?ne++:ge<ne&&ne--,b[E][ne]=a++,E!==y||ne!==ge;);else kc(a,se,he,1,!1,te,y,ke,Ge),kc(a,se,he,-1,!1,te,y,ke,Ge),kc(a,se,he,1,!0,te,y,ke,Ge),kc(a,se,he,-1,!0,te,y,ke,Ge);Ln(x)}}}}function sS(a,y,x,b,E,te,ne){for(var se=a.ac,he=y,ge=x;;){if(he===E&&ge===te)return!0;var Se=he,ke=ge;if(b===0)if(Se<E)Se++;else break;else if(b===90)if(ke<te)ke++;else break;else if(b===180)if(Se>E)Se--;else break;else if(ke>te)ke--;else break;var Ge=se[Se][ke];if(Ge===0||Ge===ey)break;he=Se,ge=ke}for(;;){if(Se=b,ke=he,Ge=ge,b===0?Ge<te?(Se=90,Ge++):Ge>te&&(Se=270,Ge--):b===90?ke<E?(Se=0,ke++):ke>E&&(Se=180,ke--):b===180?Ge<te?(Se=90,Ge++):Ge>te&&(Se=270,Ge--):ke<E?(Se=0,ke++):ke>E&&(Se=180,ke--),ke=se[ke][Ge],Se!==b&&ke!==0&&ke!==ey){if(ne.push(he),ne.push(ge),sS(a,he,ge,Se,E,te,ne))return!0;ne.pop(),ne.pop()}if(se[he][ge]=ey,b===0){if(he===y)return!1;he--}else if(b===90){if(ge===x)return!1;ge--}else if(b===180){if(he===y)return!1;he++}else{if(ge===x)return!1;ge++}}}Tt.Object.defineProperties(Tg.prototype,{bounds:{get:function(){return new Mn(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 Fh=0,Jd=1,Cp=999999,q0=Cp+1,ey=Cp+2;Tg.className="PositionArray";function Lf(){ci(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 Fx(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 ri?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(Xa,kt.alloc()),he=a.port.ga(ks,kt.alloc());for(E=Mn.allocAt(se.x,se.y,0,0),E.Ye(he),kt.free(se),kt.free(he),se=kt.allocAt(E.x+E.width/2,E.y+E.height/2),he=a.port.li(),ne=ne.iterator;ne.next();){var ge=ne.value;if(ge.isVisible()&&ge.fromPort!==ge.toPort){var Se=ge.fromPort===a.port||ge.fromNode!==null&&ge.fromNode.Td(b),ke=ge.computeSpot(Se,a.port);if(ke.$c()&&(Se=Se?ge.toPort:ge.fromPort,Se!==null)){var Ge=Se.part;if(Ge!==null){var et=Ge.findVisibleNode();et!==null&&et!==Ge&&(Ge=et,Se=Ge.port),Se=ge.computeOtherPoint(Ge,Se),Ge=se.ab(Se),Ge-=he,0>Ge?Ge+=360:360<=Ge&&(Ge-=360),ke=Fx(E,ke,Ge,ge.isOrthogonal),ke===0?(ke=4,180<Ge&&(Ge-=360)):ke===90?(ke=8,270<Ge&&(Ge-=360)):ke===180?ke=2:(ke=1,90>Ge&&(Ge+=360)),et=a.pe[te],et===void 0?(et=new ty(ge,Ge,ke),a.pe[te]=et):(et.link=ge,et.angle=Ge,et.Nc=ke),et.hv.set(Se),te++}}}}for(kt.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,ke=a.port,b=a.node.portSpreading,se=kt.alloc(),he=kt.alloc(),ne=kt.alloc(),ge=kt.alloc(),ke.ga(Xa,se),ke.ga(Bl,he),ke.ga(ks,ne),ke.ga(tl,ge),et=Ge=Se=ke=0,b===Z0)for(var ot=0;ot<te.length;ot++){var ft=te[ot];if(ft!==null){var jt=ft.link.computeThickness();switch(ft.Nc){case 8:Ge+=jt;break;case 2:et+=jt;break;case 1:ke+=jt;break;default:case 4:Se+=jt}}}var Dt=ot=0,Ht=1,Zt=ft=0;for(jt=0;jt<te.length;jt++){var Jt=te[jt];if(Jt!==null){if(ot!==Jt.Nc){switch(ot=Jt.Nc,ot){case 8:var qt=ne;Dt=ge;break;case 2:qt=ge,Dt=se;break;case 1:qt=se,Dt=he;break;default:case 4:qt=he,Dt=ne}switch(ft=Dt.x-qt.x,Zt=Dt.y-qt.y,ot){case 8:Ge>Math.abs(ft)?(Ht=Math.abs(ft)/Ge,Ge=Math.abs(ft)):Ht=1;break;case 2:et>Math.abs(Zt)?(Ht=Math.abs(Zt)/et,et=Math.abs(Zt)):Ht=1;break;case 1:ke>Math.abs(ft)?(Ht=Math.abs(ft)/ke,ke=Math.abs(ft)):Ht=1;break;default:case 4:Se>Math.abs(Zt)?(Ht=Math.abs(Zt)/Se,Se=Math.abs(Zt)):Ht=1}Dt=0}var hn=Jt.Zo;if(b===Z0){switch(Jt=Jt.link.computeThickness(),Jt*=Ht,hn.set(qt),ot){case 8:hn.x=qt.x+ft/2+Ge/2-Dt-Jt/2;break;case 2:hn.y=qt.y+Zt/2+et/2-Dt-Jt/2;break;case 1:hn.x=qt.x+ft/2-ke/2+Dt+Jt/2;break;default:case 4:hn.y=qt.y+Zt/2-Se/2+Dt+Jt/2}Dt+=Jt}else{var ir=.5;b===Ym&&(ir=(Jt.Uo+1)/(Jt.Gl+1)),hn.x=qt.x+ft*ir,hn.y=qt.y+Zt*ir}}}for(kt.free(se),kt.free(he),kt.free(ne),kt.free(ge),qt=a.pe,te=0;te<qt.length;te++)b=qt[te],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,Mn.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,ua,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 kt,this.Gl=this.Uo=0,this.Zo=new kt,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 Go(a){ci(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new kt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Go.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},Go.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Go.prototype.qb=function(){},Go.prototype.toString=function(){var a=Fn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Go.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())}}},Go.prototype.createNetwork=function(){return new To(this)},Go.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof cn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof ri?y.lg(a.memberParts):y.lg(a.iterator),y},Go.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")}},Go.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()}},Go.prototype.doLayout=function(a){var y=new kn;a instanceof cn?(rd(this,y,a.nodes,!0,this.rh,!0,!1,!0),rd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof ri?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},Go.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;Fg(se);var he=se.measuredBounds,ge=he.width;he=he.height,se.moveTo(b,E),se instanceof ri&&(se.rh=!1),b+=Math.max(ge,50)+20,ne=Math.max(ne,Math.max(he,50)),te>=y-1?(te=0,b=x,E+=ne+20,ne=0):te++}},Go.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 _n)&&(Fg(se),this.rh(se))){var he=se.measuredBounds,ge=he.width;he=he.height,se.moveTo(x,b),se instanceof ri&&(se.rh=!1),x+=Math.max(ge,50)+20,te=Math.max(te,Math.max(he,50)),E>=a-1?(E=0,x=y,b+=te+20,te=0):E++}}},Go.prototype.rh=function(a){return!!(!a.location.w()||a instanceof ri&&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 sr?he.isLinkLabel||(he instanceof ri&&he.layout===null?rd(a,y,he.memberParts,!1,E,te,ne,se):(Fg(he),y.add(he))):ne&&he instanceof _n?y.add(he):!se||!he.Zc()||he instanceof sr||(Fg(he),y.add(he)))}}function Fg(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Go.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Mn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Go.prototype.ex=function(a){var y=new kn;return a instanceof cn?(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 ri?rd(this,y,a.memberParts,!1,null,!0,!0,!0):rd(this,y,a.iterator,!1,null,!0,!0,!0),y},Go.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(Xa),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Tt.Object.defineProperties(Go.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())}}}),Go.prototype.collectParts=Go.prototype.ex,Go.prototype.getLayoutBounds=Go.prototype.ni,Go.prototype.invalidateLayout=Go.prototype.C,Go.className="Layout";function To(a){ci(this),this.Sc=a,this.wf=new kn,this.ye=new kn,this.Es=new pr,this.zs=new pr}To.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 kn,this.ye=new kn,this.Es=new pr,this.zs=new pr},To.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},To.prototype.createVertex=function(){return new Va(this)},To.prototype.createEdge=function(){return new Tl(this)},To.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 sr)return!ne.isLinkLabel;if(ne instanceof _n){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 sr&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof ri&&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 _n&&(!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))}}},To.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},it=To.prototype,it.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},it.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},it.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}it.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},it.ki=function(a){return a===null?null:this.Es.I(a)},it.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}}it.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},it.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))}it.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},it.Lo=function(a){return a===null?null:this.zs.I(a)},it.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},it.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))}},it.Ko=function(){for(var a=vn(),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]);Ln(a)},To.prototype.deleteArtificialVertexes=function(){for(var a=vn(),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=vn(),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]);Ln(a),Ln(y)};function Dx(a){for(var y=vn(),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]);Ln(y)}To.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Dx(this),this.Ko()),a=new Dn;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))}}To.prototype.dz=function(){for(var a=new kn,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},Tt.Object.defineProperties(To.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}}}),To.prototype.findAllParts=To.prototype.dz,To.prototype.splitIntoSubNetworks=To.prototype.Zx,To.prototype.deleteSelfEdges=To.prototype.Ko,To.prototype.reverseEdge=To.prototype.gm,To.prototype.linkVertexes=To.prototype.Zj,To.prototype.findEdge=To.prototype.Lo,To.prototype.deleteLink=To.prototype.Yy,To.prototype.deleteEdge=To.prototype.Mj,To.prototype.addLink=To.prototype.Dy,To.prototype.addEdge=To.prototype.Bo,To.prototype.findVertex=To.prototype.ki,To.prototype.deleteNode=To.prototype.Zy,To.prototype.deleteVertex=To.prototype.Iu,To.prototype.addNode=To.prototype.Bl,To.prototype.addVertex=To.prototype.dh,To.prototype.addParts=To.prototype.lg,To.className="LayoutNetwork";function Va(a){ci(this),this.ob=a,this.j=new Mn(0,0,10,10).freeze(),this.o=new kt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Dn,this.mg=new Dn}Va.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Dn,this.mg=new Dn},Va.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+$r(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},Va.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;xn(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 ri)){x=Mn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(zi);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),Mn.free(x);return}Mn.free(x)}a.moveTo(y.x,y.y)}},Va.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Va.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Va.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Va.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}Tt.Object.defineProperties(Va.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=Mn.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),Mn.free(x),!(a instanceof ri)&&(a=a.locationObject.ga(zi),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 kn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new kn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new kn,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 Dn,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}}}),Va.prototype.deleteDestinationEdge=Va.prototype.Jl,Va.prototype.addDestinationEdge=Va.prototype.zl,Va.prototype.deleteSourceEdge=Va.prototype.Kl,Va.prototype.addSourceEdge=Va.prototype.Cl,Va.className="LayoutVertex",Va.standardComparer=oy,Va.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 Tl(a){ci(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Tl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Tl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+$r(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},Tl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Tl.prototype.commit=function(){},Tl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Tt.Object.defineProperties(Tl.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)}}}),Tl.prototype.getOtherVertex=Tl.prototype.Ax,Tl.className="LayoutEdge";function ds(a){Go.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new qn(NaN,NaN).freeze(),this.tf=new qn(10,10).freeze(),this.Jb=Dg,this.Rb=lv,this.nd=Og,this.hd=cS,a&&Object.assign(this,a)}Xt(ds,Go),ds.prototype.cloneProtected=function(a){Go.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===Og||a===cv||a===ay||a===uv?this.sorting=a:a===lv||a===Ju?this.arrangement=a:a===Dg||a===sv?this.alignment=a:Gt("Unknown enum value: "+a):Go.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 ri)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 uv:E.reverse();break;case Og:E.sort(this.comparer);break;case cv: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 sv:var se=y,he=x,ge=Mn.alloc(),Se=Math.max(this.cellSize.width,1);if(!isFinite(Se))for(var ke=Se=0;ke<E.length;ke++){var Ge=this.ni(E[ke],ge);Se=Math.max(Se,Ge.width)}if(Se=Math.max(Se+se,1),ke=Math.max(this.cellSize.height,1),!isFinite(ke))for(Ge=ke=0;Ge<E.length;Ge++){var et=this.ni(E[Ge],ge);ke=Math.max(ke,et.height)}ke=Math.max(ke+he,1),Ge=this.arrangement;for(var ot=et=this.arrangementOrigin.x,ft=this.arrangementOrigin.y,jt=0,Dt=0,Ht=0;Ht<E.length;Ht++){var Zt=E[Ht],Jt=this.ni(Zt,ge),qt=Math.ceil((Jt.width+se)/Se)*Se,hn=Math.ceil((Jt.height+he)/ke)*ke;switch(Ge){case Ju:var ir=Math.abs(ot-Jt.width);break;default:ir=ot+Jt.width}switch((0<te&&jt>te-1||0<ne&&0<jt&&ir-et>ne)&&(b.push(new Mn(0,ft,ne+se,Dt)),jt=0,ot=et,ft+=Dt,Dt=0),Dt=Math.max(Dt,hn),Ge){case Ju:Jt=-Jt.width;break;default:Jt=0}switch(Zt.moveTo(ot+Jt,ft),Ge){case Ju:ot-=qt;break;default:ot+=qt}jt++}b.push(new Mn(0,ft,ne+se,Dt)),Mn.free(ge);break;case Dg:for(he=ne,Se=te,ke=y,Ge=x,ne=Mn.alloc(),et=Math.max(this.cellSize.width,1),te=ft=ge=0,se=kt.alloc(),ot=0;ot<E.length;ot++)Dt=E[ot],jt=this.ni(Dt,ne),Dt=Ah(Dt,Dt.locationObject,Dt.locationSpot,se),ge=Math.max(ge,Dt.x),ft=Math.max(ft,jt.width-Dt.x),te=Math.max(te,Dt.y);switch(ot=this.arrangement,ot){case Ju:ge+=ke;break;default:ft+=ke}et=isFinite(et)?Math.max(et+ke,1):Math.max(ge+ft,1);var mr=Dt=this.arrangementOrigin.x;for(Ht=this.arrangementOrigin.y,ft=0,he>=ge&&(he-=ge),ge=Zt=0,qt=Math.max(this.cellSize.height,1),Jt=te=0,hn=!0,jt=kt.alloc(),ir=0;ir<E.length;ir++){var hr=E[ir],Qn=this.ni(hr,ne),Bn=Ah(hr,hr.locationObject,hr.locationSpot,se);if(0<ft)switch(ot){case Ju:mr=(mr-Dt-(Qn.width-Bn.x))/et,mr=rn.$(Math.round(mr),mr)?Math.round(mr):Math.floor(mr),mr=mr*et+Dt;break;default:mr=(mr-Dt+Bn.x)/et,mr=rn.$(Math.round(mr),mr)?Math.round(mr):Math.ceil(mr),mr=mr*et+Dt}else switch(ot){case Ju:Zt=mr+Bn.x+Qn.width;break;default:Zt=mr-Bn.x}switch(ot){case Ju:var ei=-(mr+Bn.x)+Zt;break;default:ei=mr+Qn.width-Bn.x-Zt}if(0<Se&&ft>Se-1||0<he&&0<ft&&ei>he){for(b.push(new Mn(0,hn?Ht-te:Ht,he+ke,Jt+te+Ge)),mr=0;mr<ft&&ir!==ft;mr++){ei=E[ir-ft+mr];var Yr=Ah(ei,ei.locationObject,ei.locationSpot,jt);ei.moveTo(ei.position.x,ei.position.y+te-Yr.y)}Jt+=Ge,Ht=hn?Ht+Jt:Ht+(Jt+te),ft=Jt=te=0,mr=Dt,hn=!1}switch(mr===Dt&&(ge=ot===Ju?Math.max(ge,Qn.width-Bn.x):Math.min(ge,-Bn.x)),te=Math.max(te,Bn.y),Jt=Math.max(Jt,Qn.height-Bn.y),isFinite(qt)&&(Jt=Math.max(Jt,Math.max(Qn.height,qt)-Bn.y)),hn?hr.moveTo(mr-Bn.x,Ht-Bn.y):hr.moveTo(mr-Bn.x,Ht),ot){case Ju:mr-=Bn.x+ke;break;default:mr+=Qn.width-Bn.x+ke}ft++}if(b.push(new Mn(0,Ht,he+ke,(hn?Jt:Jt+te)+Ge)),E.length!==ft)for(he=0;he<ft;he++)Se=E[E.length-ft+he],ke=Ah(Se,Se.locationObject,Se.locationSpot,se),Se.moveTo(Se.position.x,Se.position.y+te-ke.y);if(kt.free(se),kt.free(jt),ot===Ju)for(E=0;E<b.length;E++)te=b[E],te.width+=ge,te.x-=ge;else for(E=0;E<b.length;E++)te=b[E],te.x>ge&&(te.width+=te.x-ge,te.x=ge);Mn.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===Ju?this.commitLayers(b,new kt(E+y/2-(te+E),ne-x/2)):this.commitLayers(b,new kt(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}Tt.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!==Dg&&a!==sv||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==lv&&a!==Ju||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ay&&a!==uv&&a!==Og&&a!==cv||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var sv=new wn(ds,"Position",0),Dg=new wn(ds,"Location",1),lv=new wn(ds,"LeftToRight",2),Ju=new wn(ds,"RightToLeft",3),ay=new wn(ds,"Forward",4),uv=new wn(ds,"Reverse",5),Og=new wn(ds,"Ascending",6),cv=new wn(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=sv,ds.Location=Dg,ds.LeftToRight=lv,ds.RightToLeft=Ju,ds.Forward=ay,ds.Reverse=uv,ds.Ascending=Og,ds.Descending=cv;function fo(){this.On=new kn,this.Dn=new kn,this.Pa=new kn,this.cf=new pr,this.bf=new pr,this.aj=new pr,this.H=null,this.tp=!1}it=fo.prototype,it.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},it.Xe=function(a){this.H=a},it.oi=function(a){if(a instanceof sr){if(this.On.add(a),a instanceof ri){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 _n?this.Dn.add(a):a instanceof Vi||this.Pa.add(a);y=a.data,y===null||a instanceof Vi||(a instanceof _n?this.bf.add(y,a):this.cf.add(y,a))},it.pc=function(a){if(a.Ej(),a instanceof sr){if(this.On.remove(a),a instanceof ri){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 _n?this.Dn.remove(a):a instanceof Vi||this.Pa.remove(a);y=a.data,y===null||a instanceof Vi||(a instanceof _n?this.bf.remove(y):this.cf.remove(y))},it.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 ri)&&Gt('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 ri||Gt('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 _n||Gt('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=vn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=vn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=vn(),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]);Ln(y),Ln(x),Ln(a)}},fo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},fo.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&&$f(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)}}fo.prototype.insertLink=function(){return null},fo.prototype.resolveReferencesForData=function(){},fo.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,rr('No Group template found for category "'+x+'"'),rr(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(pS||(pS=!0,rr('No Node template found for category "'+x+'"'),rr(" Using default node template")),y=a.ny))),y}fo.prototype.getLinkCategoryForData=function(){return""},fo.prototype.setLinkCategoryForData=function(){},fo.prototype.setFromNodeForLink=function(){},fo.prototype.setToNodeForLink=function(){},fo.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,rr('No Link template found for category "'+a+'"'),rr(" Using default link template")),x=y.my)),x},fo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},fo.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},fo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Yh(this.diagram,a,!1),this.unresolveReferencesForPart(a))},fo.prototype.unresolveReferencesForPart=function(){},fo.prototype.removeDataForLink=function(){},fo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},fo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof sr?a:null)},fo.prototype.findLinkForKey=function(){return null},it=fo.prototype,it.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},it.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof sr?a:null)},it.Kc=function(a){return a===null?null:this.bf.I(a)},it.ms=function(a){for(var y=0;y<arguments.length;++y);y=new kn;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(xn(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator},it.ls=function(a){for(var y=0;y<arguments.length;++y);y=new kn;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(xn(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(xn(y)&&xn(x)){if(!sy(a,y,x))return!1}else if(y!==x)return!1;return!0}fo.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===Ko){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===fa){var ne=a.newValue;b==="nodeDataArray"&&xn(ne)&&hS(this,ne),y.isModified=!0}else if(x===Oa){var se=a.oldValue;b==="nodeDataArray"&&xn(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===Ko){var he=a.propertyName,ge=a.object;ge===y.model?(he==="nodeKeyProperty"||he==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ge,he),y.isModified=!0}else if(x===fa||x===Oa){var Se=a.change===fa,ke=Se?a.newParam:a.oldParam,Ge=Se?a.newValue:a.oldValue,et=this.aj.I(a.object);if(Array.isArray(et))for(a=0;a<et.length;a++){var ot=et[a];if(Se)Tm(ot,Ge,ke,!0);else if(!(0>ke)){var ft=ke+fg(ot);ot.pc(ft,!0),w0(ot,ft,ke)}}y.isModified=!0}}finally{y.aa=!0}}}}},fo.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)},fo.prototype.rp=function(){for(var a=this.H.model,y=new kn,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&&PS(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()},fo.prototype.refreshDataBoundLinks=function(){},fo.prototype.updateRelationshipsFromData=function(){},fo.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=vn()),x.push(ne))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);Ln(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){Zd(y,function(ne){ne=ne.O.s;for(var se=ne.length,he=0;he<se;he++)_p(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}}}}fo.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new pr;if(Cn(a))for(var E=0;E<a.length;E++)hv(this,a[E],y,b,x);else for(a=a.iterator;a.next();)hv(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 kn;for(var te=new pr,ne=b.iterator;ne.next();){var se=ne.value;if(se instanceof _n)a||se.fromNode!==null&&se.toNode!==null||E.add(se);else if(se instanceof sr&&se.data!==null&&x.Tl()){var he=se;se=ne.key;var ge=se.pg();ge!==null&&(ge=b.I(ge),ge!==null?(x.qe(he.data,x.wa(ge.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 pr;b.each(function(ke){ke.key.data!==null&&Se.add(ke.key.data,ke.value.data)}),x(Se,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function hv(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 Nr))return null;if(te.isSelected=!1,te.isHighlighted=!1,b.add(y,te),y instanceof sr){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 ri&&te instanceof ri)for(y=y.memberParts;y.next();)ne=hv(a,y.value,x,b,E),ne instanceof _n||ne===null||(ne.containingGroup=te)}else if(y instanceof _n&&te instanceof _n)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=hv(a,y.value,x,b,E),ne!==null&&ne instanceof sr&&(ne.labeledLink=te);return te}fo.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof _n||(b=E.copyNodeData(b),xn(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 _n||(E=y.copyNodeData(b)),xn(E)&&(x.data=E)));return x},Tt.Object.defineProperties(fo.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}}}),fo.prototype.updateAllRelationshipsFromData=fo.prototype.rp,fo.prototype.findLinksByExample=fo.prototype.ls,fo.prototype.findNodesByExample=fo.prototype.ms,fo.prototype.findLinkForData=fo.prototype.Kc,fo.prototype.findNodeForData=fo.prototype.ii,fo.prototype.findPartForData=fo.prototype.Lc,fo.prototype.findNodeForKey=fo.prototype.Vb,fo.prototype.removeModeledPart=fo.prototype.ip,fo.prototype.removeModeledParts=fo.prototype.Gs,fo.prototype.rebuildParts=fo.prototype.Wd;var pS=!1,gS=!1,mS=!1;fo.className="PartManager";function ns(a){fo.apply(this,arguments)}Xt(ns,fo),ns.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},ns.prototype.addModeledParts=function(a){for(fo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Sp(a.value);$f(this.diagram,!1)};function vS(a,y){y.forEach(function(x){yS(a,x)}),$f(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=gv(x,y,!0);te!==""&&(E.fromPortId=te),te=Ql(x,y,!0),te!==void 0&&(te=a.Vb(te),te instanceof sr&&(E.fromNode=te)),te=gv(x,y,!1),te!==""&&(E.toPortId=te),te=Ql(x,y,!1),te!==void 0&&(te=a.Vb(te),te instanceof sr&&(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=fo.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(fo.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===Ko){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 ge=this.Kc(a.object);if(ge!==null){var Se=a.newValue;typeof Se=="string"&&(ge.fromPortId=Se)}}else if(E==="linkToPortId"){var ke=this.Kc(a.object);if(ke!==null){var Ge=a.newValue;typeof Ge=="string"&&(ke.toPortId=Ge)}}else if(E==="nodeGroupKey"){var et=this.Lc(a.object);if(et!==null){var ot=a.newValue;if(ot!==void 0){var ft=this.Vb(ot);ft instanceof ri?et.containingGroup=ft:et.containingGroup=null}else et.containingGroup=null}}else if(E==="linkLabelKeys"){var jt=this.Kc(a.object);if(jt!==null){var Dt=a.oldValue,Ht=a.newValue;Array.isArray(Dt)&&Dt.forEach(function(Bn){0<=Ht.indexOf(Bn)||(Bn=y.Vb(Bn),Bn!==null&&(Bn.labeledLink=null))}),Array.isArray(Ht)&&Ht.forEach(function(Bn){Bn=y.Vb(Bn),Bn!==null&&(Bn.labeledLink=jt)})}}else if(E==="linkCategory"){var Zt=this.Kc(a.object),Jt=a.newValue;Zt!==null&&typeof Jt=="string"&&(Zt.category=Jt)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===fa){var qt=a.newValue;if(E==="linkDataArray"&&typeof qt=="object"&&qt!==null)yS(this,qt);else if(E==="linkLabelKeys"&&od(qt)){var hn=this.Kc(a.object),ir=this.Vb(qt);hn!==null&&ir!==null&&(ir.labeledLink=hn)}x.isModified=!0}else if(b===Oa){var mr=a.oldValue;if(E==="linkDataArray"&&typeof mr=="object"&&mr!==null)this.ip(mr);else if(E==="linkLabelKeys"&&od(mr)){var hr=this.Vb(mr);hr!==null&&(hr.labeledLink=null)}x.isModified=!0}}else if(b===Ko){var Qn=a.propertyName;a.object!==x.model||Qn!=="linkFromKeyProperty"&&Qn!=="linkToKeyProperty"&&Qn!=="linkFromPortIdProperty"&&Qn!=="linkToPortIdProperty"&&Qn!=="linkLabelKeysProperty"&&Qn!=="nodeIsGroupProperty"&&Qn!=="nodeGroupKeyProperty"&&Qn!=="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 kn,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){DS(y,te,!1)}),b.forEach(function(te){a.Kc(te)===null&&FS(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 _n){var E=Ql(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Ql(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 kn().addAll(y);var ne=new kn;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 Vi)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof ri)&&(a.containingGroup=y)}}},ns.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=kg(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 ri&&y.lh(ne)===x&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=E)):(te.link=this.Kc(ne),te.link!==null&&E instanceof sr&&(Ql(y,ne,!0)===x&&(te.link.fromNode=E),Ql(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}}_u(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof ri&&(E.containingGroup=a))}},ns.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof sr){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Qu(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Qu(y,x,b.data)),a instanceof ri)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&Qu(y,x,b)}}},ns.prototype.copyPartData=function(a,y){var x=fo.prototype.copyPartData.call(this,a,y);if(a instanceof _n)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 _n){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 sr&&(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),Ap(te,b,se,!0),x!==null&&Ep(te,b,te.wa(x.data),!1),Ap(te,b,y,!1),te.fi(b),a=ne.archetypeLabelNodeData,a===null||a instanceof sr||(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 uu(){fo.apply(this,arguments),this.Sg=null}Xt(uu,fo);function dv(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||!Un(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}}}uu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},uu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},uu.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}},uu.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))},uu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},uu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},uu.prototype.doModelChanged=function(a){if(fo.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===Ko){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:dv(this,te,ne)}}else if(b==="parentLinkCategory"){var he=this.ii(a.object),ge=a.newValue;if(he!==null&&typeof ge=="string"){var Se=he.kh();Se!==null&&(Se.category=ge)}}y.isModified=!0}}else if(x===Ko){var ke=a.propertyName;a.object===y.model&&ke==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},uu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof sr&&(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:dv(this,y,a):b!==null&&Yh(x,b,!1)))}}},uu.prototype.updateDataBindings=function(a,y){fo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},uu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=kg(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 sr&&y.mh(te)===x&&dv(this,E,this.ii(te))}_u(y,x)}a=y.mh(a),a!==void 0&&E instanceof sr&&(a=this.Vb(a),dv(this,a,E))}},uu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof sr){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)&&Qu(y,x,E)}},uu.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},uu.prototype.findLinkForKey=uu.prototype.findLinkForKey,uu.className="TreePartManager";function xr(a,y){this.kl=new kn,this.il=new kn,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,ci(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new pr,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 pr,this.Lt=new Dn,this.Wg=!1,this.o=null,this.undoManager=new Yo,a!==void 0&&(Cn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}xr.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},xr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},xr.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},xr.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)+":"+Gn(E)}}return y},xr.prototype.xA=function(a){a.change!==il&&Gt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ja?(wS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},xr.prototype.Qv=function(a,y){var x=this,b=!1,E=new kn,te=new kn,ne=new kn,se=this.vh;a.changes.each(function(ke){ke.model===x&&(ke.modelChange==="nodeDataArray"?ke.change===fa?E.add(ke.newValue):ke.change===Oa&&ne.add(ke.oldValue):x.lb(ke.object)?te.add(ke.object):ke.change!==Ko||x.modelData!==ke.object&&ke.propertyName!=="modelData"?ke.object!==null&&(se&&se.contains(ke.object)?se.get(ke.object).each(function(Ge){x.lb(Ge)&&te.add(Ge)}):ke.object instanceof xr||x.ri()&&x.Jc(ke.object)||bS(x,ke.object).each(function(Ge){te.add(Ge)})):b=!0)});var he=this.il;he.clear(),E.each(function(ke){he.add(x.wa(ke)),y||te.add(ke)});var ge=this.kl;ge.clear(),ne.each(function(ke){ge.add(x.wa(ke)),y&&te.add(ke)}),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<ge.count&&(Se===null&&(Se={}),y?Se.insertedNodeKeys=ge.Fa():Se.removedNodeKeys=ge.Fa()),ge.clear(),he.clear(),Se},xr.prototype.cloneDeep=function(a){return Pp(this,a,!0)};function Pp(a,y,x,b,E,te){function ne(ke,Ge){se?(ke.__gohashid===void 0&&te.push(ke),b.set(ke,Ge)):(ke=Xi++,b.set(ke,Ge),E.set(ke,y))}if(!xn(y))return y;te||(te=[]);var se=Object.isExtensible(y);if(b||(b=new pr),se){var he=b.get(y);if(he)return he}else for(E||(E=new pr),he=E.iterator;he.next();){var ge=he.key;if(he.value===y&&(ge=b.get(ge)))return ge}if(Array.isArray(y)){he=[],ne(y,he);for(var Se=0;Se<y.length;Se++)he.push(Pp(a,y[Se],!1,b,E,te))}else if(y instanceof kt||y instanceof qn||y instanceof Mn||y instanceof kr||y instanceof wr)he=y.copy(),ne(y,he);else{if(y instanceof uo||y instanceof $n||y instanceof wn)return y;if(y instanceof Dn)he=new Dn().addAll(Pp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof kn)he=new kn().addAll(Pp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof pr)he=new pr().addAll(Pp(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]=Pp(a,y[Se],!1,b,E,te))}return x&&te.forEach(function(ke){delete ke.__gohashid}),he}it=xr.prototype,it.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},it.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},it.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,xn(y)&&(a.dm(y),a.modelData=y)}it.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!CS(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+cy(this,this.modelData)),a+`,
"nodeDataArray": `+id(this,this.nodeDataArray,!0)},it.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 kn,ne.add(te),b.add(E,ne)):ne.add(te)}}var b=a.vh;b===null&&(b=new pr,y.changes.each(function(E){if(E.diagram!==null){var te=E.change;te===Ko?(E=E.object.panel)&&(te=E.data)&&x(te,E):(te===fa||te===Oa)&&(E=E.object,(te=E.itemArray)&&x(te,E))}}),a.vh=b)}function bS(a,y){for(var x=new kn,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];fv(a,y,E,E,x)}return x}function fv(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(fv(a,y,ne,b,E))return!0}else if(xn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(te in x){if(ne=x[te],ne===y)return E.add(b),!0;if(fv(a,y,ne,b,E))return!0}return!1}it.Pv=function(a,y){var x=this,b=!1,E=new kn,te=new kn,ne=new kn,se=this.vh;a.changes.each(function(Se){Se.model===x&&(Se.modelChange==="nodeDataArray"?Se.change===fa?E.add(Se.newValue):Se.change===Oa&&ne.add(Se.oldValue):x.lb(Se.object)?te.add(Se.object):Se.change!==Ko||x.modelData!==Se.object&&Se.propertyName!=="modelData"?Se.object!==null&&(se&&se.contains(Se.object)?se.get(Se.object).each(function(ke){x.lb(ke)&&te.add(ke)}):Se.object instanceof xr||x.ri()&&x.Jc(Se.object)||bS(x,Se.object).each(function(ke){te.add(ke)})):b=!0)});var he=this.il;he.clear(),E.each(function(Se){he.add(x.wa(Se)),y||te.add(Se)});var ge=this.kl;return ge.clear(),ne.each(function(Se){ge.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<ge.count&&(a+=(y?this.Wv:this.Yv)+id(this,ge.Fa(),!0)),ge.clear(),he.clear(),a},it.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)&&Gt("applyIncrementalJson cannot change Model properties"),xS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new pr;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)},it.$x=function(a,y){a.change!==il&&Gt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ja?(y===void 0&&(y=Ng(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 }'},it.yA=function(a,y){return this.$x(a,y)},it.np=function(a){return a===void 0&&(a=Ng(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},it.toJSON=function(a){return this.np(a)},it.Zw=function(a){var y=null;if(typeof a=="string")try{y=Bt.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Gt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Gt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},it.Ky=function(a){return this.Zw(a)},xr.constructGraphLinksModel=function(){return new xr},it=xr.prototype,it.dm=function(a){if(Cn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(xn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Gt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(xn(a)){for(y in a)if(x=a[y],xn(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 Dn,b=0;b<x.length/2;b++)E.add(new kt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Ox(a)}return a},it.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):xn(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 cr;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 CS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Ys(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function cy(a,y){var x=y;if(x instanceof kt)y={class:"go.Point",x:Ys(x.x),y:Ys(x.y)};else if(x instanceof qn)y={class:"go.Size",width:Ys(x.width),height:Ys(x.height)};else if(x instanceof Mn)y={class:"go.Rect",x:Ys(x.x),y:Ys(x.y),width:Ys(x.width),height:Ys(x.height)};else if(x instanceof kr)y={class:"go.Margin",top:Ys(x.top),right:Ys(x.right),bottom:Ys(x.bottom),left:Ys(x.left)};else if(x instanceof wr)x.sb()?y={class:"go.Spot",x:Ys(x.x),y:Ys(x.y),offsetX:Ys(x.offsetX),offsetY:Ys(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof uo){if(y={class:"go.Brush",type:x.type.name},x.type===Ch?y.color=x.color:(x.type===th||x.type===su)&&(y.start=x.start,y.end=x.end,x.type===su&&(x.startRadius!==0&&(y.startRadius=Ys(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Ys(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 $n?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Ys(x.startX)),x.startY!==0&&(y.startY=Ys(x.startY)),x.endX!==0&&(y.endX=Ys(x.endX)),x.endY!==0&&(y.endY=Ys(x.endY)),x.spot1.D(Xa)||(y.spot1=x.spot1),x.spot2.D(ks)||(y.spot2=x.spot2),x.type===$n.o&&(y.path=$n.ia(x))):x instanceof wn&&(y={class:"go.EnumValue",classType:Ng(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var te=Sa(y,E);if(!CS(E,te))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&te instanceof Dn){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 Js(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Ox(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 kt(Js(a.x),Js(a.y));else if(y==="Size")x=new qn(Js(a.width),Js(a.height));else if(y==="Rect")x=new Mn(Js(a.x),Js(a.y),Js(a.width),Js(a.height));else if(y==="Margin")x=new kr(Js(a.top),Js(a.right),Js(a.bottom),Js(a.left));else if(y==="Spot")typeof a.enum=="string"?x=wd(a.enum):x=new wr(Js(a.x),Js(a.y),Js(a.offsetX),Js(a.offsetY));else if(y==="Brush"){if(x=new uo,x.type=Yn(uo,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof wr&&(x.start=a.start),a.end instanceof wr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Js(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Js(a.endRadius)),a=a.colorStops,xn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=$n.parse(a.path):x=new $n,x.type=Yn($n,a.type),typeof a.startX=="number"&&(x.startX=Js(a.startX)),typeof a.startY=="number"&&(x.startY=Js(a.startY)),typeof a.endX=="number"&&(x.endX=Js(a.endX)),typeof a.endY=="number"&&(x.endY=Js(a.endY)),a.spot1 instanceof wr&&(x.spot1=a.spot1),a.spot2 instanceof wr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=Yn(b,a.name)));return x}it.Pe=function(a){return this.Lt.add(a),this},it.ik=function(a){this.Lt.remove(a)},it.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)},it.cb=function(a,y,x,b,E,te,ne){Ra(this,"",a,y,x,b,E,te,ne)},it.g=function(a,y,x,b,E){Ra(this,"",Ko,a,this,y,x,b,E)},it.Fs=function(a,y,x,b,E,te){Ra(this,"",Ko,y,a,x,b,E,te)};function Ra(a,y,x,b,E,te,ne,se,he){se===void 0&&(se=null),he===void 0&&(he=null);var ge=new Zo;ge.model=a,ge.change=x,ge.modelChange=y,ge.propertyName=b,ge.object=E,ge.oldValue=te,ge.oldParam=se,ge.newValue=ne,ge.newParam=he,a.ds(ge)}xr.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Ko){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===fa?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,xn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&yn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&gn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Cn(b)&&a.propertyName&&(b=Sa(a.object,a.propertyName)),Cn(b)&&typeof x=="number"&&(a=a.newValue,y?yn(b,x):gn(b,x,a))):Gt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Oa?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,xn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&gn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&yn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!Cn(b)&&a.propertyName&&(b=Sa(a.object,a.propertyName)),Cn(b)&&typeof x=="number"&&(a=a.oldValue,y?gn(b,x,a):yn(b,x))):Gt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==il&&Gt("unknown ChangedEvent: "+a.toString())},xr.prototype.Ea=function(a){return this.undoManager.Ea(a)},xr.prototype.eb=function(a){return this.undoManager.eb(a)},xr.prototype.Kf=function(){return this.undoManager.Kf()},xr.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}},it=xr.prototype,it.La=function(a,y){y===void 0&&(y=""),Ra(this,"SourceChanged",il,y,a,null,null)},it.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Sa(a,y),y!==void 0)){if(od(y))return y;Gt("Key value for node data "+a+" is not a number or a string: "+y)}}},it.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=Sa(a,x);b!==y&&this.hc(y)===null&&(jo(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Ra(this,"nodeKey",Ko,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"}it.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},it.hc=function(a){return a===null&&Gt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&od(a)?this.kb.I(a):null},it.$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)}}}}},it.xf=function(a){a!==null&&(Ri(a),this.lb(a)||PS(this,a,!0))};function PS(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&&Gt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,gn(a.Tc,b,y)),Ra(a,"nodeDataArray",fa,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}it.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)},it.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;yn(a.Tc,b)}Ra(a,"nodeDataArray",Oa,"nodeDataArray",a,y,null,b,null),a.qp(y)}it.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)},it.$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()}},it.jp=function(a,y){y!==void 0&&(a=kg(this,a),a instanceof kn&&this.Vf.add(y,a))},it.Lv=function(){},it.fm=function(){},it.em=function(){},it.qp=function(){};function Qu(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new kn,a.Vf.add(y,b)),b.add(x)}}function _u(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof kn&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function kg(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof kn?a:null)}it.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},xr.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):pv(this,a,!0),xn(a)&&ci(a),a};function pv(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=pv(a,y[x],a.copiesArrayObjects);b.push(E)}return ci(b),b}if(x&&xn(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=Sa(y,b),ne=Ng(a,te);ne==="GraphObject"||ne==="Diagram"||ne==="Layer"||ne==="RowColumnDefinition"||ne==="AnimationManager"||ne==="Tool"||ne==="CommandHandler"||ne==="Layout"||ne==="InputEvent"||ne==="DiagramEvent"||te instanceof xr||te instanceof Yo||te instanceof Ja||te instanceof Zo||(te=pv(a,te,!1)),jo(x,b,te)}return ci(x),x}return y instanceof kt||y instanceof qn||y instanceof Mn||y instanceof wr||y instanceof kr?y.copy():y}xr.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!AS&&a instanceof nn&&(AS=!0,rr('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),rr(" Is that really your intent?"));var b=Sa(a,y);b!==x&&(jo(a,y,x),this.Fs(a,y,b,x))},it=xr.prototype,it.set=function(a,y,x){this.setDataProperty(a,y,x)},it.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])}},it.Ay=function(a,y){this.ts(a,-1,y)},it.ts=function(a,y,x){0>y&&(y=a.length),gn(a,y,x),Ra(this,"",fa,"",a,null,x,null,y)},it.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Gt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];yn(a,y),Ra(this,"",Oa,"",a,x,null,y,null)},it.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Sa(a,y),y===void 0))return"";if(typeof y=="string")return y;Gt("getCategoryForNodeData found a non-string category for "+a+": "+y)},it.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Sa(a,x);b===void 0&&(b=""),b!==y&&(jo(a,x,y),Ra(this,"nodeCategory",Ko,x,a,b,y))}else jo(a,x,y)}},it.lm=function(a,y){this.jm(y,this.Ro(a))},it.Tl=function(){return!1},it.Wj=function(){return!1},it.ri=function(){return!1},it.xs=function(){return!1},it.Xj=function(){return!1};function hy(){return new xr}function Ng(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 Ng(a,y.constructor);return typeof y}function dy(a){return Ou[a]?Ou[a]:Bt.go!==void 0&&Bt.go[a]?Bt.go[a]:null}function Sa(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){}}Tt.Object.defineProperties(xr.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===""&&Gt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Gt("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];xn(E)||Gt("Model.nodeDataArray must only contain Objects, not: "+E),Ri(E)}for(this.Tc=a,b=new Dn,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(Ra(this,"nodeDataArray",Ko,"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"}}}),xr.prototype.setCategoryForNodeData=xr.prototype.jm,xr.prototype.getCategoryForNodeData=xr.prototype.Ro,xr.prototype.removeArrayItem=xr.prototype.ov,xr.prototype.insertArrayItem=xr.prototype.ts,xr.prototype.addArrayItem=xr.prototype.Ay,xr.prototype.assignAllDataProperties=xr.prototype.Do,xr.prototype.set=xr.prototype.set,xr.prototype.clearUnresolvedReferences=xr.prototype.Qy,xr.prototype.mergeNodeDataArray=xr.prototype.$z,xr.prototype.removeNodeDataCollection=xr.prototype.nA,xr.prototype.removeNodeData=xr.prototype.cm,xr.prototype.addNodeDataCollection=xr.prototype.Fy,xr.prototype.addNodeData=xr.prototype.xf,xr.prototype.makeNodeDataKeyUnique=xr.prototype.$u,xr.prototype.findNodeDataForKey=xr.prototype.hc,xr.prototype.containsNodeData=xr.prototype.lb,xr.prototype.setKeyForNodeData=xr.prototype.km,xr.prototype.getKeyForNodeData=xr.prototype.wa,xr.prototype.updateTargetBindings=xr.prototype.La,xr.prototype.commit=xr.prototype.commit,xr.prototype.rollbackTransaction=xr.prototype.Kf,xr.prototype.commitTransaction=xr.prototype.eb,xr.prototype.startTransaction=xr.prototype.Ea,xr.prototype.raiseDataChanged=xr.prototype.Fs,xr.prototype.raiseChanged=xr.prototype.g,xr.prototype.raiseChangedEvent=xr.prototype.cb,xr.prototype.removeChangedListener=xr.prototype.ik,xr.prototype.addChangedListener=xr.prototype.Pe,xr.prototype.writeJsonValue=xr.prototype.sm,xr.prototype.replaceJsonObjects=xr.prototype.dm,xr.prototype.applyIncrementalJSON=xr.prototype.Ky,xr.prototype.applyIncrementalJson=xr.prototype.Zw,xr.prototype.toJSON=xr.prototype.toJSON,xr.prototype.toJson=xr.prototype.np,xr.prototype.toIncrementalJSON=xr.prototype.yA,xr.prototype.toIncrementalJson=xr.prototype.$x,xr.prototype.toIncrementalData=xr.prototype.xA,xr.prototype.clear=xr.prototype.clear;var AS=!1,Ou={};xr.className="Model",xr.fromJSON=xr.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Bt.JSON.parse(a)}catch(te){}else typeof a=="object"?x=a:Gt("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=Bt[b])),typeof E=="function"&&(a=new E)}catch(te){}a===null||a instanceof xr?y=a:Gt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=xr.constructGraphLinksModel()),y.gp(x),y.kv(x),y},xr.safePropertyValue=Sa,xr.safePropertySet=jo,Ou.Brush=uo,Ou.ChangedEvent=Zo,Ou.Geometry=$n,Ou.Margin=kr,Ou.Panel=Xn,Ou.Point=kt,Ou.Rect=Mn,Ou.Size=qn,Ou.Spot=wr,Ou.Transaction=Ja,Ou.UndoManager=Yo;function Pa(a,y,x,b){ci(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=Bg,this.wk=b),this.st=new kn}Pa.prototype.copy=function(){var a=new Pa;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},it=Pa.prototype,it.qb=function(a){a.classType===Pa&&(this.mode=a)},it.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.Kx=function(a){return a===void 0&&(a=null),this.mode=Bg,this.backConverter=a,this},it.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},it.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)}it.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==="")rr("Binding error: target property is the empty string: "+this.toString());else{var te=y;if(b!==""&&(te=Sa(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){}}}},it.sp=function(a,y,x,b){if(this.el===Bg){var E=this.xl;if(x===void 0||E===x){x=this.sl;var te=this.wk,ne=a;if(E!==""&&(ne=Sa(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 ge=b.itemIndex,Se=b.panel.itemArray;he.ov(Se,ge),he.ts(Se,ge,ne)}}else try{if(x!==""){var ke=te(ne,y,he);he!==null?he.setDataProperty(y,x,ke):jo(y,x,ke)}else{var Ge=te(ne,y,he);if(Ge!==void 0&&he!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var et=b.itemIndex,ot=b.panel.itemArray;he.ov(ot,et),he.ts(ot,et,Ge)}}}catch(ft){}}finally{this.st.remove(a)}}}},Tt.Object.defineProperties(Pa.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&An(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&An(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&An(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&An(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&An(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&An(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&An(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&An(this),this.el=a}}}),Pa.prototype.updateSource=Pa.prototype.sp,Pa.prototype.updateTarget=Pa.prototype.Mv,Pa.prototype.ofModel=Pa.prototype.dA,Pa.prototype.ofObject=Pa.prototype.cp,Pa.prototype.makeTwoWay=Pa.prototype.Kx;var kx="Binding",LS=new wn(Pa,"OneWay",1),Bg=new wn(Pa,"TwoWay",2);Pa.className="Binding",Pa.parseEnum=function(a,y){return function(x){return x=Yn(a,x),x===null?y:x}},Pa.toString=Gn,Pa.OneWay=LS,Pa.TwoWay=Bg;function ji(a,y,x){xr.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new kn,this.wb=new pr,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))}Xt(ji,xr),ji.constructGraphLinksModel=xr.constructGraphLinksModel,ji.prototype.cloneProtected=function(a){xr.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},it=ji.prototype,it.clear=function(){xr.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},it.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)+":"+Gn(E)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Ql(this,E,!0)+"-->"+Ql(this,E,!1)}return y},it.Qv=function(a,y){this.linkKeyProperty===""&&Gt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=xr.prototype.Qv.call(this,a,y),b=this,E=new kn,te=new kn,ne=new kn,se=this.vh;a.changes.each(function(Se){Se.model===b&&(Se.modelChange==="linkDataArray"?Se.change===fa?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(ke){b.Jc(ke)&&te.add(ke)}):Se.object instanceof xr||b.lb(Se.object)||TS(b,Se.object).each(function(ke){te.add(ke)})))});var he=this.il;he.clear(),E.each(function(Se){he.add(b.Ac(Se)),y||te.add(Se)});var ge=this.kl;return ge.clear(),ne.each(function(Se){ge.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<ge.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ge.Fa():x.removedLinkKeys=ge.Fa()),ge.clear(),he.clear(),x},it.rm=function(){var a=xr.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},it.gp=function(a){xr.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)},it.Rv=function(){var a=xr.prototype.Rv.call(this),y=`,
"linkDataArray": `+id(this,this.linkDataArray,!0);return a+y},it.kv=function(a){xr.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function TS(a,y){for(var x=new kn,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];fv(a,y,E,E,x)}return x}it.Pv=function(a,y){this.linkKeyProperty===""&&Gt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=xr.prototype.Pv.call(this,a,y),b=this,E=new kn,te=new kn,ne=new kn,se=this.vh;a.changes.each(function(Se){Se.model===b&&(Se.modelChange==="linkDataArray"?Se.change===fa?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(ke){b.Jc(ke)&&te.add(ke)}):Se.object instanceof xr||b.lb(Se.object)||TS(b,Se.object).each(function(ke){te.add(ke)})))});var he=this.il;he.clear(),E.each(function(Se){he.add(b.Ac(Se)),y||te.add(Se)});var ge=this.kl;return ge.clear(),ne.each(function(Se){ge.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<ge.count&&(a+=(y?this.Vv:this.Xv)+id(this,ge.Fa(),!0)),ge.clear(),he.clear(),a},it.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)&&Gt("applyIncrementalJson cannot change Model properties"),xr.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]);OS(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===Ko){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===fa){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,xn(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,xn(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}}xr.prototype.changeState.call(this,a,y)}},it=ji.prototype,it.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}},it.yx=function(a){return Ql(this,a,!0)},it.wv=function(a,y){Ep(this,a,y,!0)},it.Bx=function(a){return Ql(this,a,!1)},it.Bv=function(a,y){Ep(this,a,y,!1)};function Ql(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Sa(y,a),a!==void 0))){if(od(a))return a;Gt((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=Sa(y,E);te!==x&&(_u(a,te,y),jo(y,E,x),a.hc(x)===null&&Qu(a,x,y),Ra(a,b?"linkFromKey":"linkToKey",Ko,E,y,te,x),typeof E=="string"&&a.La(y,E))}else jo(y,E,x)}}it.zx=function(a){return gv(this,a,!0)},it.xv=function(a,y){Ap(this,a,y,!0)},it.Cx=function(a){return gv(this,a,!1)},it.Cv=function(a,y){Ap(this,a,y,!1)};function gv(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Sa(y,a),y===void 0?"":y)}function Ap(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var te=Sa(y,E);te===void 0&&(te=""),te!==x&&(jo(y,E,x),Ra(a,b?"linkFromPortId":"linkToPortId",Ko,E,y,te,x),typeof E=="string"&&a.La(y,E))}else jo(y,E,x)}}it.Ef=function(a){if(a===null)return mv;var y=this.je;return y===""?mv:(a=Sa(a,y),a===void 0?mv:a)},it.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Sa(a,x);if(b===void 0&&(b=mv),b!==y){if(Array.isArray(b))for(var E=b.length,te=0;te<E;te++)_u(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&&Qu(this,ne,a)}Ra(this,"linkLabelKeys",Ko,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else jo(a,x,y)}},it.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Sa(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&&Qu(this,y,a),Ra(this,"linkLabelKeys",fa,x,a,null,y,null,E)))}else Gt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},it.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Sa(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(_u(this,y,a),Ra(this,"linkLabelKeys",Oa,x,a,y,null,E,null)))}else b!==void 0&&Gt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},it.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Sa(a,y),y!==void 0)){if(od(y))return y;Gt("Key value for link data "+a+" is not a number or a string: "+y)}}},it.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Sa(a,x);b!==y&&this.jh(y)===null&&(jo(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Ra(this,"linkKey",Ko,x,a,b,y),typeof x=="string"&&this.La(a,x))}else jo(a,x,y)}},it.jh=function(a){return a===null&&Gt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&od(a)?this.wb.I(a):null},it.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)}}}}},it.Jc=function(a){return a===null?!1:this.$f.contains(a)},it.fi=function(a){a!==null&&(Ri(a),this.Jc(a)||FS(this,a,!0))};function FS(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&&Gt("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)),Ra(a,"linkDataArray",fa,"linkDataArray",a,null,y,null,b),fy(a,y)}it.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)},it.bm=function(a){a!==null&&DS(this,a,!0)};function DS(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(Ra(a,"linkDataArray",Oa,"linkDataArray",a,y,null,b,null),x=Ql(a,y,!0),_u(a,x,y),x=Ql(a,y,!1),_u(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,te=0;te<E;te++)x=b[te],_u(a,x,y)}it.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)},it.Zz=function(a){if(this.linkKeyProperty===""&&Gt("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),OS(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=Ql(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Qu(a,x,y),x=Ql(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Qu(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&&Qu(a,x,y)}it.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):pv(this,a,!0),xn(a)&&(ci(a),this.lf!==""&&jo(a,this.lf,void 0),this.mf!==""&&jo(a,this.mf,void 0),this.je!==""&&jo(a,this.je,[])),a},it.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Sa(a,y)},it.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Sa(a,y),y!==void 0)){if(od(y))return y;Gt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},it.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=Sa(a,x);b!==y&&(_u(this,b,a),jo(a,x,y),this.hc(y)===null&&Qu(this,y,a),Ra(this,"nodeGroupKey",Ko,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=xr.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Sa(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){Ap(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Ap(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=Sa(a,y);b!==x&&(jo(a,y,x),this.Fs(a,y,b,x))},it=ji.prototype,it.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&&Sa(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},it.jp=function(a,y){xr.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(Ql(this,b,!0)===E){var ne=this.lf;jo(b,ne,te),Ra(this,"linkFromKey",Ko,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)}if(Ql(this,b,!1)===E&&(ne=this.mf,jo(b,ne,te),Ra(this,"linkToKey",Ko,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,ge=0;ge<se;ge++)ne[ge]===E&&(ne[ge]=te,Ra(this,"linkLabelKeys",fa,he,b,E,te,ge,ge))}},it.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;jo(a,b,x),Ra(this,"nodeGroupKey",Ko,b,a,y,x),typeof b=="string"&&this.La(a,b)}},it.Lv=function(){xr.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},it.fm=function(a){xr.prototype.fm.call(this,a),a=this.wa(a);var y=kg(this,a);if(y!==null){var x=vn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Ra(this,"nodeGroupKey",Ko,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Ql(this,b,!0)===a&&(E=this.lf,Ra(this,"linkFromKey",Ko,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Ql(this,b,!1)===a&&(E=this.mf,Ra(this,"linkToKey",Ko,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&&(Ra(this,"linkLabelKeys",fa,ne,b,a,a,se,se),x.push(b))}for(y=0;y<x.length;y++)_u(this,a,x[y]);Ln(x)}},it.em=function(a){xr.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Qu(this,y,a)},it.qp=function(a){xr.prototype.qp.call(this,a);var y=this.lh(a);_u(this,y,a)},it.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Sa(a,y),y===void 0))return"";if(typeof y=="string")return y;Gt("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=Sa(a,x);b===void 0&&(b=""),b!==y&&(jo(a,x,y),Ra(this,"linkCategory",Ko,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)},it=ji.prototype,it.lm=function(a,y){xr.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function OS(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))}it.Wj=function(){return!0},it.ri=function(){return!0},it.xs=function(){return!0},it.Xj=function(){return!0},Tt.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];xn(E)||Gt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),Ri(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Dn,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 kn,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Ra(this,"linkDataArray",Ko,"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 mv=Object.freeze([]);ji.className="GraphLinksModel",Ou.GraphLinksModel=ji,xr.constructGraphLinksModel=xr.constructGraphLinksModel=function(){return new ji},xr.initDiagramModel=hy=function(){return new ji};function Qs(a,y){xr.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))}Xt(Qs,xr),Qs.constructGraphLinksModel=xr.constructGraphLinksModel,Qs.prototype.cloneProtected=function(a){xr.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},it=Qs.prototype,it.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)+":"+Gn(E)}}return y},it.rm=function(){var a=xr.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},it.gp=function(a){xr.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},it.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Gt("applyIncrementalJson cannot change Model properties"),xr.prototype.fp.call(this,a)},it.Vl=function(a){return a},it.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Sa(a,y),y!==void 0)){if(od(y))return y;Gt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},it.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=Sa(a,x);b!==y&&(_u(this,b,a),jo(a,x,y),this.hc(y)===null&&Qu(this,y,a),Ra(this,"nodeParentKey",Ko,x,a,b,y),typeof x=="string"&&this.La(a,x))}else jo(a,x,y)}},it.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Sa(a,y),y===void 0)?"":typeof y=="string"?y:(Gt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Qs.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Qs.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=Sa(a,x);b===void 0&&(b=""),b!==y&&(jo(a,x,y),Ra(this,"parentLinkCategory",Ko,x,a,b,y),typeof x=="string"&&this.La(a,x))}else jo(a,x,y)}},Qs.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Qs.prototype.copyNodeData=function(a){return a===null?null:(a=xr.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Sa(a,this.Ke)===void 0||jo(a,this.Ke,void 0),a)},Qs.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=Sa(a,y);b!==x&&(jo(a,y,x),this.Fs(a,y,b,x))},it=Qs.prototype,it.jp=function(a,y){xr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},it.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;jo(a,b,x),Ra(this,"nodeParentKey",Ko,b,a,y,x),typeof b=="string"&&this.La(a,b)}},it.fm=function(a){xr.prototype.fm.call(this,a),a=this.wa(a);var y=kg(this,a);if(y!==null){var x=vn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Ra(this,"nodeParentKey",Ko,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)_u(this,a,x[y]);Ln(x)}},it.em=function(a){xr.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Qu(this,y,a)},it.qp=function(a){xr.prototype.qp.call(this,a);var y=this.mh(a);_u(this,y,a)},it.lm=function(a,y){xr.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},it.Tl=function(){return!0},it.xs=function(){return!0},Tt.Object.defineProperties(Qs.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"}}}),Qs.prototype.setParentLinkCategoryForNodeData=Qs.prototype.Ms,Qs.prototype.getParentLinkCategoryForNodeData=Qs.prototype.ss,Qs.prototype.setParentKeyForNodeData=Qs.prototype.qe,Qs.prototype.getParentKeyForNodeData=Qs.prototype.mh,Qs.className="TreeModel",Ou.TreeModel=Qs;function $o(a){Go.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ku,this.Ti=0,this.Zv=new kt,this.Jp=this.me=0,this.Xr=new zg,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ku,this.K=_s,this.nd=Lp,this.hd=oy,this.tf=6,this.Nn=Cv,a&&Object.assign(this,a)}Xt($o,Go),$o.prototype.cloneProtected=function(a){Go.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},$o.prototype.qb=function(a){a.classType===$o?a===wv||a===bv||a===Sv||a===xv||a===Lp?this.sorting=a:a===Qd||a===Mp||a===_s||a===sd?this.direction=a:a===Dh||a===ad||a===ku||a===Nu?this.arrangement=a:(a===Tf||a===Cv)&&(this.nodeDiameterFormula=a):Go.prototype.qb.call(this,a)},$o.prototype.createNetwork=function(){return new Tp(this)},$o.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 Dn;y.addAll(a.iterator),a=new Dn;var x=new Dn,b=this.sort(y),E,te,ne=this.Jp,se=this.arrangement,he=this.nodeDiameterFormula,ge=this.radius;(!isFinite(ge)||0>=ge)&&(ge=NaN);var Se=this.aspectRatio;(!isFinite(Se)||0>=Se)&&(Se=1);var ke=this.startAngle;isFinite(ke)||(ke=0);var Ge=this.sweepAngle;if((!isFinite(Ge)||360<Ge||1>Ge)&&(Ge=360),y=this.spacing,isFinite(y)||(y=NaN),se===Nu&&he===Tf?se=ku:se===Nu&&he!==Tf&&(se=this.arrangement),(this.direction===Qd||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===Qd?(this.arrangement===Nu&&a.reverse(),b=new Dn,b.addAll(a),b.addAll(x)):(this.arrangement===Nu&&x.reverse(),b=new Dn,b.addAll(x),b.addAll(a))}he=b.length;for(var et=te=E=0;et<b.length;et++){var ot=ke+Ge*te*(this.direction===_s?1:-1)/he,ft=b.M(et).diameter;isNaN(ft)&&(ft=ld(b.M(et),ot)),360>Ge&&(et===0||et===b.length-1)&&(ft/=2),E+=ft,te++}if(isNaN(ge)||se===Nu){if(isNaN(y)&&(y=6),se!==ku&&se!==Nu){for(te=-1/0,ne=0;ne<he;ne++)et=b.M(ne),E=b.M(ne===he-1?0:ne+1),isNaN(et.diameter)&&ld(et,0),isNaN(E.diameter)&&ld(E,0),te=Math.max(te,(et.diameter+E.diameter)/2);ne=te+y,se===Dh?ge=(te+y)/(2*Math.PI/he):ge=vv(this,ne*(360<=Ge?he:he-1),Se,ke*Math.PI/180,Ge*Math.PI/180)}else ge=vv(this,E+(360<=Ge?he:he-1)*(se!==Nu?y:1.6*y),Se,ke*Math.PI/180,Ge*Math.PI/180);te=ge*Se}else if(te=ge*Se,et=py(this,ge,te,ke*Math.PI/180,Ge*Math.PI/180),isNaN(y))(se===ku||se===Nu)&&(y=(et-E)/(360<=Ge?he:he-1));else if(se===ku||se===Nu)et=(et-E)/(360<=Ge?he:he-1),et<y?(ge=vv(this,E+y*(360<=Ge?he:he-1),Se,ke*Math.PI/180,Ge*Math.PI/180),te=ge*Se):y=et;else{for(ne=-1/0,E=0;E<he;E++)ot=b.M(E),ft=b.M(E===he-1?0:E+1),isNaN(ot.diameter)&&ld(ot,0),isNaN(ft.diameter)&&ld(ft,0),ne=Math.max(ne,(ot.diameter+ft.diameter)/2);ne+=y,E=vv(this,ne*(360<=Ge?he:he-1),Se,ke*Math.PI/180,Ge*Math.PI/180),E>ge?(ge=E,te=ge*Se):ne=et/(360<=Ge?he:he-1)}if(this.kw=se,this.lc=ge,this.Zm=Se,this.lw=ke,this.Wp=Ge,this.Ti=y,this.me=te,this.Jp=ne,y=b,b=this.kw,se=this.lc,ge=this.lw,Se=this.Wp,ke=this.Ti,Ge=this.me,he=this.Jp,this.direction!==Qd&&this.direction!==Mp||b!==Nu)if(this.direction===Qd||this.direction===Mp){switch(ne=0,b){case ad:ne=180*yv(this,se,Ge,ge,he)/Math.PI;break;case ku: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*yv(this,se,Ge,ge,ke+(y+he)/2)/Math.PI;break;case Dh:ne=Se/y.length}if(this.direction===Qd){switch(b){case ad:Rg(this,a,ge,sd);break;case ku:jg(this,a,ge,sd);break;case Dh:Ig(this,a,Se/2,ge,sd)}switch(b){case ad:Rg(this,x,ge+ne,_s);break;case ku:jg(this,x,ge+ne,_s);break;case Dh:Ig(this,x,Se/2,ge+ne,_s)}}else{switch(b){case ad:Rg(this,x,ge,sd);break;case ku:jg(this,x,ge,sd);break;case Dh:Ig(this,x,Se/2,ge,sd)}switch(b){case ad:Rg(this,a,ge+ne,_s);break;case ku:jg(this,a,ge+ne,_s);break;case Dh:Ig(this,a,Se/2,ge+ne,_s)}}}else switch(b){case ad:Rg(this,y,ge,this.direction);break;case ku:jg(this,y,ge,this.direction);break;case Dh:Ig(this,y,Se,ge,this.direction);break;case Nu:kS(this,y,Se,ge,this.direction)}else kS(this,y,Se,ge-Se/2,_s)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Ig(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 ge=b+(E===_s?he*x/(360<=te?se:se-1):-(he*x)/se),Se=y.M(he),ke=ne*Math.tan(ge)/a;ke=Math.sqrt((ne*ne+a*a*ke*ke)/(1+ke*ke)),Se.centerX=ke*Math.cos(ge),Se.centerY=ke*Math.sin(ge),Se.actualAngle=180*ge/Math.PI}}function jg(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 ge=y.M(he),Se=y.M(he===se-1?0:he+1),ke=te*Math.sin(x);ge.centerX=E*Math.cos(x),ge.centerY=ke,ge.actualAngle=180*x/Math.PI,isNaN(ge.diameter)&&ld(ge,0),isNaN(Se.diameter)&&ld(Se,0),ge=yv(a,E,te,b===_s?x:-x,(ge.diameter+Se.diameter)/2+ne),x+=b===_s?ge:-ge}}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 ge=y.M(he);ge.centerX=E*Math.cos(x),ge.centerY=te*Math.sin(x),ge.actualAngle=180*x/Math.PI,ge=yv(a,E,te,b===_s?x:-x,ne),x+=b===_s?ge:-ge}}function kS(a,y,x,b,E){var te=a.Wp;if(a.mj=0,a.Xr=new zg,360>x){for(te=b+(E===_s?te:-te);0>te;)te+=360;te%=360,180<te&&(te-=360),te*=Math.PI/180,a.gt=te,BS(a,y,x,b,E)}else NS(a,y,x,b,E);a.Xr.commit(y)}function NS(a,y,x,b,E){var te=a.lc,ne=a.Ti,se=a.Zm,he=te*Math.cos(b*Math.PI/180),ge=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=kt.alloc();for(var ke=0;ke<Se.length&&(Se[ke].centerX=he,Se[ke].centerY=ge,!(ke>=Se.length-1));ke++)IS(a,he,ge,Se,ke,E,te)||jS(a,he,ge,Se,ke,E,te),he=te.x,ge=te.y;if(kt.free(te),a.mj++,!(23<a.mj)){he=Se[0].centerX,ge=Se[0].centerY,te=Se[Se.length-1].centerX,ke=Se[Se.length-1].centerY;var Ge=Math.abs(he-te)-((Se[0].width+Se[Se.length-1].width)/2+ne),et=Math.abs(ge-ke)-((Se[0].height+Se[Se.length-1].height)/2+ne);ne=0,1>Math.abs(et)?Math.abs(he-te)<(Se[0].width+Se[Se.length-1].width)/2&&(ne=0):ne=0<et?et:1>Math.abs(Ge)?0:Ge,he=Math.abs(te)>Math.abs(ke)?0<te!=ge>ke:0<ke!=he<te,(he=E===_s?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,NS(a,y,x,b,E))}}}function BS(a,y,x,b,E){for(var te=a.lc,ne=a.me,se=a.Zm,he=te*Math.cos(b*Math.PI/180),ge=ne*Math.sin(b*Math.PI/180),Se=kt.alloc(),ke=y.Fa(),Ge=0;Ge<ke.length&&(ke[Ge].centerX=he,ke[Ge].centerY=ge,!(Ge>=ke.length-1));Ge++)IS(a,he,ge,ke,Ge,E,Se)||jS(a,he,ge,ke,Ge,E,Se),he=Se.x,ge=Se.y;if(kt.free(Se),a.mj++,!(23<a.mj)){if(he=Math.atan2(ge,he),he=E===_s?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<ke.length;he++)ne.mk[he]=ke[he].bounds.x,ne.tm[he]=ke[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,BS(a,y,x,b,E))}}function IS(a,y,x,b,E,te,ne){var se=a.lc,he=a.me,ge=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var Se=!1;if(0<=x!=(te===_s)){if(te=y+a,te>se){if(te=y-a,te<-se)return ne.x=te,ne.y=ge,!1;Se=!0}}else if(te=y-a,te<-se){if(te=y+a,te>se)return ne.x=te,ne.y=ge,!1;Se=!0}return ge=Math.sqrt(1-Math.min(1,te*te/(se*se)))*he,0>x!==Se&&(ge=-ge),Math.abs(x-ge)>(b[E].height+b[E+1].height)/2?(ne.x=te,ne.y=ge,!1):(ne.x=te,ne.y=ge,!0)}function jS(a,y,x,b,E,te,ne){var se=a.lc,he=a.me,ge=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(te===_s)){if(te=x-a,te<-he){if(te=x+a,te>he){ne.x=ge,ne.y=te;return}b=!0}}else if(te=x+a,te>he){if(te=x-a,te<-he){ne.x=ge,ne.y=te;return}b=!0}ge=Math.sqrt(1-Math.min(1,te*te/(he*he)))*se,0>y!==b&&(ge=-ge),ne.x=ge,ne.y=te}$o.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},$o.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 kt(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))},$o.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,ge=0;ge<=te;ge++){b!==void 0&&E!==void 0?he=b+ge*E/te:he=ge*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 vv(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?py(a,1,x,b,E):py(a,1,x))}function yv(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}}$o.prototype.sort=function(a){switch(this.sorting){case Sv:break;case xv:a.reverse();break;case wv:a.sort(this.comparer);break;case bv:a.sort(this.comparer),a.reverse();break;case Lp:return this.ak(Nx(a));default:Gt("Invalid sorting type.")}return a};function Nx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Dn;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}$o.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 Dn;for(var he=0,ge=0;ge<y.length;ge++){var Se=y[ge].length;if(Se===1)b.push(ge);else if(Se===0)E.add(a.M(ge));else{if(he===0)x.push(ge);else{for(var ke=Se=1/0,Ge=-1,et=[],ot=0;ot<x.length;ot++)0>y[x[ot]].indexOf(x[ot===x.length-1?0:ot+1])&&et.push(ot===x.length-1?0:ot+1);if(et.length===0)for(ot=0;ot<x.length;ot++)et.push(ot);for(ot=0;ot<et.length;ot++){for(var ft=et[ot],jt=y[ge],Dt=0,Ht=0;Ht<ne.length;Ht++){var Zt=te[ne[Ht]],Jt=te[se[Ht]];if(Zt<Jt){var qt=Zt;Zt=Jt}else qt=Jt;if(qt<ft&&ft<=Zt)for(Jt=0;Jt<jt.length;Jt++){var hn=jt[Jt];0>x.indexOf(hn)||qt<te[hn]&&te[hn]<Zt||qt===te[hn]||Zt===te[hn]||Dt++}else for(Jt=0;Jt<jt.length;Jt++)hn=jt[Jt],0>x.indexOf(hn)||qt<te[hn]&&te[hn]<Zt&&qt!==te[hn]&&Zt!==te[hn]&&Dt++}for(jt=Dt,Ht=Dt=0;Ht<y[ge].length;Ht++)qt=x.indexOf(y[ge][Ht]),0<=qt&&(qt=Math.abs(ft-(qt>=ft?qt+1:qt)),Dt+=qt<x.length+1-qt?qt:x.length+1-qt);for(Ht=0;Ht<ne.length;Ht++)qt=te[ne[Ht]],Zt=te[se[Ht]],qt>=ft&&qt++,Zt>=ft&&Zt++,qt>Zt&&(Jt=Zt,Zt=qt,qt=Jt),Zt-qt<(x.length+2)/2==(qt<ft&&ft<=Zt)&&Dt++;(jt<Se||jt===Se&&Dt<ke)&&(Se=jt,ke=Dt,Ge=ft)}for(x.splice(Ge,0,ge),Se=0;Se<x.length;Se++)te[x[Se]]=Se;for(Se=0;Se<y[ge].length;Se++)ke=y[ge][Se],0<=x.indexOf(ke)&&(ne.push(ge),se.push(ke))}he++}}for(ne=x.length;;){for(te=!0,se=0;se<b.length;se++)if(he=b[se],ge=y[he][0],Se=x.indexOf(ge),0<=Se){for(Ge=ke=0;Ge<y[ge].length;Ge++)et=x.indexOf(y[ge][Ge]),0>et||et===Se||(ot=et>Se?et-Se:Se-et,ke+=et<Se!=ot>ne-ot?1:-1);x.splice(0>ke?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},Tt.Object.defineProperties($o.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!==Nu&&a!==ku&&a!==ad&&a!==Dh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==_s&&a!==sd&&a!==Qd&&a!==Mp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Sv&&a!==xv&&a!==wv&&!bv&&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!==Cv&&a!==Tf||(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 ku=new wn($o,"ConstantSpacing",0),ad=new wn($o,"ConstantDistance",1),Dh=new wn($o,"ConstantAngle",2),Nu=new wn($o,"Packed",3),_s=new wn($o,"Clockwise",4),sd=new wn($o,"Counterclockwise",5),Qd=new wn($o,"BidirectionalLeft",6),Mp=new wn($o,"BidirectionalRight",7),Sv=new wn($o,"Forwards",8),xv=new wn($o,"Reverse",9),wv=new wn($o,"Ascending",10),bv=new wn($o,"Descending",11),Lp=new wn($o,"Optimized",12),Cv=new wn($o,"Pythagorean",13),Tf=new wn($o,"Circular",14);$o.className="CircularLayout",$o.ConstantSpacing=ku,$o.ConstantDistance=ad,$o.ConstantAngle=Dh,$o.Packed=Nu,$o.Clockwise=_s,$o.Counterclockwise=sd,$o.BidirectionalLeft=Qd,$o.BidirectionalRight=Mp,$o.Forwards=Sv,$o.Reverse=xv,$o.Ascending=wv,$o.Descending=bv,$o.Optimized=Lp,$o.Pythagorean=Cv,$o.Circular=Tf;function zg(){this.Pl=-1/0,this.tm=this.mk=null}zg.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},zg.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]}},zg.className="VertexArrangement";function Tp(a){To.call(this,a)}Xt(Tp,To),Tp.prototype.createVertex=function(){return new Wg(this)},Tp.prototype.createEdge=function(){return new Pv(this)},Tp.className="CircularNetwork";function Wg(a){Va.call(this,a),this.u=this.Si=NaN}Xt(Wg,Va);function ld(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Nu)if(x.nodeDiameterFormula===Tf)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===Tf?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Tt.Object.defineProperties(Wg.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)}}}),Wg.className="CircularVertex";function Pv(a){Tl.call(this,a)}Xt(Pv,Tl),Pv.className="CircularEdge";function Ss(a){Go.call(this),this.ah=null,this.An=0,this.$d=new qn(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)}Xt(Ss,Go),Ss.prototype.cloneProtected=function(a){Go.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 Ff(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 ge=vn(),Se=0;Se<se+y.vertexes.count+2;Se++)ge[Se]=null;se=0,ne.reset();for(var ke=Mn.alloc();ne.next();)if(Se=ne.value,this.computeBounds(Se,ke),he)he=!1,E=ke.x+ke.width/2,te=ke.y+ke.height/2,ge[0]=new kt(ke.x+ke.width+b.width,ke.y),ge[1]=new kt(ke.x,ke.y+ke.height+b.height),se=2;else{var Ge=zS(ge,se,E,te,ke.width,ke.height,b),et=ge[Ge],ot=new kt(et.x+ke.width+b.width,et.y),ft=new kt(et.x,et.y+ke.height+b.height);for(Ge+1<se&&ge.splice(Ge+1,0,null),ge[Ge]=ot,ge[Ge+1]=ft,se++,Ge=et.x-ke.x,et=et.y-ke.y,Se=Se.vertexes.iterator;Se.next();)ot=Se.value,ot.centerX+=Ge,ot.centerY+=et}for(Mn.free(ke),Se=y.vertexes.iterator;Se.next();)ne=Se.value,Ge=ne.bounds,2>se?(E=Ge.x+Ge.width/2,te=Ge.y+Ge.height/2,ge[0]=new kt(Ge.x+Ge.width+b.width,Ge.y),ge[1]=new kt(Ge.x,Ge.y+Ge.height+b.height),se=2):(he=zS(ge,se,E,te,Ge.width,Ge.height,b),ke=ge[he],et=new kt(ke.x+Ge.width+b.width,ke.y),Ge=new kt(ke.x,ke.y+Ge.height+b.height),he+1<se&&ge.splice(he+1,0,null),ge[he]=et,ge[he+1]=Ge,se++,ne.centerX=ke.x+ne.width/2,ne.centerY=ke.y+ne.height/2);for(Ln(ge),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)}}HS(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(Bx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Ix(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),HS(a,te),jx(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 Bx(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 Ix(a,y){for(var x=a.network,b=new Ff(a),E=0;E<a.ah.length;E++){var te=a.ah[E];if(1<te.Vd){b.dh(te);var ne=new US;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 Dn),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 Dn,E.Hj=se),se.add(ne),E.Vd--,E.sh+=ne.sh):ne.network===b&&(se=ne.Hj,se===null&&(se=new Dn,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,rn.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 ge=se=0,Se=he.count-ne;Se<he.count;Se++){var ke=he.M(Se),Ge=null;for(te=ke.edges.iterator;te.next();){var et=te.value;if(et.Ax(ke)===E){Ge=et;break}}Ge!==null&&(ge+=Ge.length,se+=ke.width*ke.height)}te=E.centerX,he=E.centerY,Se=E.width,ke=E.height,Ge=E.focus,et=Se*ke,1>et&&(et=1),se=rn.sqrt((se+et+ge*ge*4/(ne*ne))/et),ne=(se-1)*Se/2,se=(se-1)*ke/2,E.bounds=new Mn(te-Ge.x-ne,he-Ge.y-se,Se+2*ne,ke+2*se),E.focus=new kt(Ge.x+ne,Ge.y+se)}}return a.network=b,x}function jx(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 Mn(b.centerX-te,b.centerY-ne,E.Ss,E.Qs),b.focus=new kt(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=rn.sqrt(te*te+ne*ne)/2;for(var se=!1,he=ne=0,ge=0,Se=y.vertexes.iterator;Se.next();){var ke=Se.value;1>=ke.Vd?he++:(se=!0,ge++,ne+=Math.atan2(y.centerY-ke.centerY,y.centerX-ke.centerX))}if(he!==0){for(0<ge&&(ne/=ge),ge=y=0,y=se?2*Math.PI/(he+1):2*Math.PI/he,he%2===0&&(ge=y/2),1<x.count&&x.sort(function(et,ot){return et===null||ot===null||et===ot?0:ot.width*ot.height-et.width*et.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,ke=he.edges.iterator;ke.next();){Se=ke.value;break}ke=he.width;var Ge=he.height;ke=rn.sqrt(ke*ke+Ge*Ge)/2,Se=te+Se.length+ke,ke=ne+(y*(se/2>>1)+ge)*(se%2===0?1:-1),he.centerX=b+Se*Math.cos(ke),he.centerY=E+Se*Math.sin(ke),se++}}}}function zS(a,y,x,b,E,te,ne){var se=9e19,he=-1,ge=0;e:for(;ge<y;ge++){var Se=a[ge],ke=Se.x-x,Ge=Se.y-b;if(ke=ke*ke+Ge*Ge,ke<se){for(Ge=ge-1;0<=Ge;Ge--)if(a[Ge].y>Se.y&&a[Ge].x-Se.x<E+ne.width)continue e;for(Ge=ge+1;Ge<y;Ge++)if(a[Ge].x>Se.x&&a[Ge].y-Se.y<te+ne.height)continue e;he=ge,se=ke}}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 WS(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,rn.sqrt(x*x+a*a)):a+x<y?(b=b+E-ne,a=a+x-y,rn.sqrt(b*b+a*a)):ne-(b+E):b>ne+se?a>y+te?(x=b-ne-se,a=a-y-te,rn.sqrt(x*x+a*a)):a+x<y?(b=b-ne-se,a=a+x-y,rn.sqrt(b*b+a*a)):b-(ne+se):a>y+te?a-(y+te):a+x<y?y-(a+x):.1}function HS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,zx(a)););a.ah=null}function zx(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(ft,jt){return ft===null||jt===null||ft===jt?0:ft.centerX-jt.centerX}):y.sort(function(ft,jt){return ft===null||jt===null||ft===jt?0:ft.centerY-jt.centerY}),x=a.Zf;var ge=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),ge=ne.charge*a.electricalFieldY(he,Se),b+=ne.mass*a.gravitationalFieldX(he,Se),ge+=ne.mass*a.gravitationalFieldY(he,Se),ne.forceX+=b,ne.forceY+=ge;for(var ke=te+1;ke<y.length;ke++){var Ge=y[ke];if(Ge!==ne){b=Ge.bounds,se=Ge.focus,ge=b.x+se.x;var et=b.y+se.y;if(he-ge>x||ge-he>x){if(E)break}else if(Se-et>x||et-Se>x){if(!E)break}else{var ot=WS(ne,Ge);1>ot?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new Ev),ot=b.random(),se=b.random(),he>ge?(b=Math.abs(Ge.bounds.right-ne.bounds.x),b=(1+b)*ot):he<ge?(b=Math.abs(Ge.bounds.x-ne.bounds.right),b=-(1+b)*ot):(b=Math.max(Ge.width,ne.width),b=(1+b)*ot-b/2),Se>et?(ge=Math.abs(Ge.bounds.bottom-ne.bounds.y),ge=(1+ge)*se):he<ge?(ge=Math.abs(Ge.bounds.y-ne.bounds.bottom),ge=-(1+ge)*se):(ge=Math.max(Ge.height,ne.height),ge=(1+ge)*se-ge/2)):(se=-(ne.charge*Ge.charge)/(ot*ot),b=(ge-he)/ot*se,ge=(et-Se)/ot*se),ne.forceX+=b,ne.forceY+=ge,Ge.forceX-=b,Ge.forceY-=ge}}}}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,ke=te.focus,he=Se.x+ke.x,Se=Se.y+ke.y,ke=WS(x,te),1>ke?(ke=a.randomNumberGenerator,ke===null&&(a.randomNumberGenerator=ke=new Ev),se=ke.random(),ke=ke.random(),b=(b>he?1:-1)*(1+(te.width>x.width?te.width:x.width))*se,ge=(ne>Se?1:-1)*(1+(te.height>x.height?te.height:x.height))*ke):(se=se.stiffness*(ke-se.length),b=(he-b)/ke*se,ge=(Se-ne)/ke*se),x.forceX+=b,x.forceY+=ge,te.forceX-=b,te.forceY-=ge;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=io,y.toSpot=io)}},Ss.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Mn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Mn.free(x)}x=Mn.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()}Mn.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},Tt.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"&&Gt('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 US(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}US.className="ForceDirectedSubnet";function Ff(a){To.call(this,a)}Xt(Ff,To),Ff.prototype.createVertex=function(){return new Hg(this)},Ff.prototype.createEdge=function(){return new Ug(this)},Ff.className="ForceDirectedNetwork";function Hg(a){Va.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}Xt(Hg,Va),Tt.Object.defineProperties(Hg.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)}}}),Hg.className="ForceDirectedVertex";function Ug(a){Tl.call(this,a),this.j=this.o=NaN}Xt(Ug,Tl),Tt.Object.defineProperties(Ug.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)}}}),Ug.className="ForceDirectedEdge";function Ev(){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()}Ev.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},Ev.className="RandomNumberGenerator";function po(a){Go.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Fv,this.Zk=Dv,this.Qk=Ov,this.bj=4,this.rk=kv,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 kt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Xt(po,Go),po.prototype.cloneProtected=function(a){Go.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},po.prototype.qb=function(a){a.classType===po?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:Gt("Unknown enum value: "+a):Go.prototype.qb.call(this,a)},po.prototype.createNetwork=function(){return new Dp(this)},po.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!==Zg&&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===Zg&&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,ge=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 ke=se.fromNode;he=se.toNode;for(var Ge=se.fromPort;Ge!==null&&!Ge.Ed();)Ge=Ge.panel;for(se=se.toPort;se!==null&&!se.Ed();)se=se.panel;if(b.rev){ge=ke;var et=Ge;ke=he,Ge=se,he=ge,se=et}var ot=E.focus;ge=te.focus;var ft=b.rev?te.bounds:E.bounds;et=kt.alloc(),Se!==ke?ft.w()&&ke.isVisible()?ke.actualBounds.w()?(Ah(ke,Ge,zi,et),et.x+=ke.actualBounds.x-ft.x,et.y+=ke.actualBounds.y-ft.y):(Ah(ke,Ge,zi,et),et.w()||et.assign(ot)):et.assign(ot):ft.w()?(Ah(ke,Ge,zi,et),et.w()||et.assign(ot)):et.assign(ot),ke=b.rev?E.bounds:te.bounds,Se=kt.alloc(),ne!==he?ke.w()&&he.isVisible()?he.actualBounds.w()?(Ah(he,se,zi,Se),Se.x+=he.actualBounds.x-ke.x,Se.y+=he.actualBounds.y-ke.y):(Ah(he,se,zi,Se),Se.w()||Se.assign(ge)):Se.assign(ge):ke.w()?(Ah(he,se,zi,Se),Se.w()||Se.assign(ge)):Se.assign(ge),this.K===90||this.K===270?(ne=Math.round((et.x-ot.x)/this.kc),he=et.x,se=Math.round((Se.x-ge.x)/this.kc),ge=Se.x):(ne=Math.round((et.y-ot.y)/this.kc),he=et.y,se=Math.round((Se.y-ge.y)/this.kc),ge=Se.y),kt.free(et),kt.free(Se),b.portFromColOffset=ne,b.portFromPos=he,b.portToColOffset=se,b.portToPos=ge}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(et=E.layer,Se=te.layer,ke=0,ft=b.link,ft!==null){var jt=ft.fromPort,Dt=ft.toPort;if(jt!==null&&Dt!==null){var Ht=ft.fromNode;if(Ge=ft.toNode,Ht!==null&&Ge!==null){var Zt=Tv(this,!0),Jt=Tv(this,!1),qt=this.setsPortSpots?Zt:ft.computeSpot(!0,jt);ot=this.setsPortSpots?Jt:ft.computeSpot(!1,Dt);var hn=ft.isOrthogonal;qt.$c()&&qt.Hf(Jt)&&ot.$c()&&ot.Hf(Zt)?ke=0:(Zt=ft.getLinkPoint(Ht,jt,qt,!0,hn,Ge,Dt,kt.alloc()),Jt=ft.getLinkDirection(Ht,jt,Zt,qt,!0,hn,Ge,Dt),kt.free(Zt),qt.ys()||Jt!==_S(this,b,!0)?this.setsPortSpots&&Ht!==null&&Ht.ports.count===1&&b.rev&&(ke+=1):ke+=1,qt=ft.getLinkPoint(Ge,Dt,ot,!1,hn,Ht,jt,kt.alloc()),ft=ft.getLinkDirection(Ge,Dt,qt,ot,!1,hn,Ht,jt),kt.free(qt),ot.ys()||ft!==_S(this,b,!1)?this.setsPortSpots&&Ge!==null&&Ge.ports.count===1&&b.rev&&(ke+=2):ke+=2)}}}if(Ge=ke,ke=Ge===1||Ge===3,(Ge=Ge===2||Ge===3)&&(ot=a.createVertex(),ot.node=null,ot.Dj=1,ot.layer=et,ot.near=E,a.dh(ot),E=a.Zj(E,ot,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ne,E.portToColOffset=0,E.portFromPos=he,E.portToPos=0,E=ot),ft=1,ke&&ft--,et-Se>ft&&0<et){for(b.valid=!1,ot=a.createVertex(),ot.node=null,ot.Dj=2,ot.layer=et-1,a.dh(ot),E=a.Zj(E,ot,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Ge?0:ne,E.portToColOffset=0,E.portFromPos=Ge?0:he,E.portToPos=0,E=ot,et--;et-Se>ft&&0<et;)ot=a.createVertex(),ot.node=null,ot.Dj=3,ot.layer=et-1,a.dh(ot),E=a.Zj(E,ot,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=ot,et--;E=a.Zj(ot,te,b.link),E.valid=!ke,ke&&(ot.near=te),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=se,E.portFromPos=0,E.portToPos=ge}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},po.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}po.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},po.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 cu(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 GS(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],ge=he.near;if(ge!==null&&ge.layer===he.layer)if(he=ge.index,he>ne)for(var Se=ne+1;Se<he;Se++){var ke=b[Se];ke.near===ge&&ke.Dj===ge.Dj||se++}else for(Se=ne-1;Se>he;Se--)ke=b[Se],ke.near===ge&&ke.Dj===ge.Dj||se++;var Ge;if(0<=x)for(he=b[ne].sourceEdgesArrayAccess,ge=0;ge<he.length;ge++){var et=he[ge];if(et.valid&&et.fromVertex.layer!==y)for(ke=et.fromVertex.index,Se=et.portToPos,et=et.portFromPos,Ge=ge+1;Ge<he.length;Ge++){var ot=he[Ge];if(ot.valid&&ot.fromVertex.layer!==y){var ft=ot.fromVertex.index,jt=ot.portToPos;ot=ot.portFromPos,Se<jt&&(ke>ft||ke===ft&&et>ot)&&se++,jt<Se&&(ft>ke||ft===ke&&ot>et)&&se++}}}if(0>=x){for(he=b[ne].destinationEdgesArrayAccess,ge=0;ge<he.length;ge++)if(et=he[ge],et.valid&&et.toVertex.layer!==y)for(ke=et.toVertex.index,Se=et.portToPos,et=et.portFromPos,Ge=ge+1;Ge<he.length;Ge++)ot=he[Ge],ot.valid&&ot.toVertex.layer!==y&&(ft=ot.toVertex.index,jt=ot.portToPos,ot=ot.portFromPos,et<ot&&(ke>ft||ke===ft&&Se>jt)&&se++,ot<et&&(ft>ke||ft===ke&&jt>Se)&&se++)}for(te[ne*E+ne]=se,he=ne+1;he<E;he++){var Dt=0,Ht=0;if(0<=x){se=b[ne].sourceEdgesArrayAccess;var Zt=b[he].sourceEdgesArrayAccess;for(ge=0;ge<se.length;ge++)if(et=se[ge],et.valid&&et.fromVertex.layer!==y)for(ke=et.fromVertex.index,et=et.portFromPos,Ge=0;Ge<Zt.length;Ge++)ot=Zt[Ge],ot.valid&&ot.fromVertex.layer!==y&&(ft=ot.fromVertex.index,ot=ot.portFromPos,(ke<ft||ke===ft&&et<ot)&&Ht++,(ft<ke||ft===ke&&ot<et)&&Dt++)}if(0>=x){for(se=b[ne].destinationEdgesArrayAccess,Zt=b[he].destinationEdgesArrayAccess,ge=0;ge<se.length;ge++)if(et=se[ge],et.valid&&et.toVertex.layer!==y)for(ke=et.toVertex.index,Se=et.portToPos,Ge=0;Ge<Zt.length;Ge++)ot=Zt[Ge],ot.valid&&ot.toVertex.layer!==y&&(ft=ot.toVertex.index,jt=ot.portToPos,(ke<ft||ke===ft&&Se<jt)&&Ht++,(ft<ke||ft===ke&&jt<Se)&&Dt++)}te[ne*E+he]=Dt,te[he*E+ne]=Ht}}return cd(a,y,b),te}po.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=GS(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 Av(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 ge=te[he].destinationEdgesArrayAccess;if(ge!==null)for(var Se=0;Se<ge.length;Se++){var ke=ge[Se];if(ke.valid&&ke.toVertex.layer!==E){var Ge=ke.fromVertex.column+ke.portFromColOffset,et=ke.toVertex.column+ke.portToColOffset;se+=(Math.abs(Ge-et)+1)*gy(ke)}}}cd(b,E,te),y+=se}return y}po.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 ge=null;0<=x&&(ge=se.destinationEdgesArrayAccess);var Se=0,ke=0,Ge=se.near;if(Ge!==null&&Ge.layer===se.layer&&(Se+=Ge.column-1,ke++),he!==null)for(Ge=0;Ge<he.length;Ge++){se=he[Ge];var et=se.fromVertex;se.valid&&!se.rev&&et.layer!==y&&(Se+=et.column,ke++)}if(ge!==null)for(he=0;he<ge.length;he++)se=ge[he],Ge=se.toVertex,se.valid&&!se.rev&&Ge.layer!==y&&(Se+=Ge.column,ke++);te[ne]=ke===0?-1:Se/ke}return cd(a,y,b),te}function ZS(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 ge=null;0<=x&&(ge=se.destinationEdgesArrayAccess);var Se=0,ke=[],Ge=se.near;if(Ge!==null&&Ge.layer===se.layer&&(ke[Se]=Ge.column-1,Se++),se=void 0,he!==null)for(Ge=0;Ge<he.length;Ge++){se=he[Ge];var et=se.fromVertex;se.valid&&!se.rev&&et.layer!==y&&(ke[Se]=et.column+se.portFromColOffset,Se++)}if(ge!==null)for(he=0;he<ge.length;he++)se=ge[he],Ge=se.toVertex,se.valid&&!se.rev&&Ge.layer!==y&&(ke[Se]=Ge.column+se.portToColOffset,Se++);Se===0?te[ne]=-1:(ke.sort(function(ot,ft){return ot-ft}),ge=Se>>1,te[ne]=Se&1?ke[ge]:ke[ge-1]+ke[ge]>>1)}return cd(a,y,b),te}function Gg(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,ge=y.layer-he.layer;se=a.linkMinLength(se),ge===se&&Gg(a,he,x,b,E,te)}if(te)for(ne=y.sourceEdges;ne.next();)se=ne.value,he=se.fromVertex,ge=he.layer-y.layer,se=a.linkMinLength(se),ge===se&&Gg(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)}}po.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(;Wx(a)!==null;){for(E=KS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=KS(a);for(E=VS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=VS(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,ge=se.destinationEdges;ge.next();)ge.value.toVertex.valid&&he++;ge=0;for(var Se=se.sourceEdges;Se.next();)Se.value.fromVertex.valid&&ge++;(E===null||te<he-ge)&&(E=se,te=he-ge)}}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 Fv: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 Zg: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 Wx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)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.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function VS(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++}po.prototype.assignLayers=function(){switch(this.Zk){case wy:XS(this);break;case by:for(var a,y=this.network.vertexes.iterator;y.next();)a=JS(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 Dv:for(XS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&QS(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 XS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=YS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function YS(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,YS(a,te)+E)}y.layer=x}else x=y.layer;return x}function JS(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,JS(a,te)+E)}y.layer=x}else x=y.layer;return x}function QS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)QS(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&&Gg(a,se,0,-1,!0,!1)}for(Gg(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 ge=ne.value;if(ge.component===1){var Se=0,ke=!1,Ge=ge.sourceEdgesArrayAccess;E=Ge.length;for(var et=0;et<E;et++){var ot=Ge[et],ft=ot.fromVertex;Se+=1,ft.component!==1&&(te+=1,ft=ft.layer-ge.layer,ot=a.linkMinLength(ot),b=Math.min(b,ft-ot))}for(Ge=ge.destinationEdgesArrayAccess,E=Ge.length,et=0;et<E;et++)ot=Ge[et].toVertex,--Se,ot.component!==1?--te:ke=!0;(he===null||Se<se)&&!ke&&(he=ge,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(Gg(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(ge=0,Se=!1,Ge=ne.sourceEdgesArrayAccess,ke=Ge.length,et=0;et<ke;et++)ot=Ge[et].fromVertex,ge+=1,ot.component!==1?b+=1:Se=!0;for(Ge=ne.destinationEdgesArrayAccess,ke=Ge.length,et=0;et<ke;et++)ot=Ge[et],ft=ot.toVertex,--ge,ft.component!==1&&(--b,ft=ne.layer-ft.layer,ot=a.linkMinLength(ot),E=Math.min(E,ft-ot));(se===null||ge>te)&&!Se&&(se=ne,te=ge)}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 _S(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}po.prototype.initializeIndices=function(){switch(this.Qk){default:case Py: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 Ov: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&&$S(this,x);break;case Cy: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 $S(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&&$S(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))}po.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++)Mv(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--)Mv(this,b,-1),xu(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=hl(this))}for(cu(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)Mv(this,b,0),xu(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=hl(this)),b=this.Ia;0<=b;b--)Mv(this,b,0),xu(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=hl(this))}cu(this,y);var te,ne,se;switch(this.rk){case Ey:break;case Ay: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?cu(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?cu(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?cu(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?cu(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?cu(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?cu(this,y):(a=E,y=hl(this))}break;default:case kv: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?cu(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?cu(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?cu(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?cu(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?cu(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?cu(this,y):(a=E,y=hl(this))}}cu(this,y)};function Mv(a,y,x){var b=ud(a,y),E=a.tc[y],te=ZS(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=GS(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,ge=!0;ge;)for(ge=!1,te=0;te<E-1;te++){var Se=x[b[te].index*E+b[te+1].index],ke=x[b[te+1].index*E+b[te].index],Ge=0,et=0,ot=b[te].column,ft=b[te+1].column,jt=a.nodeMinColumnSpace(b[te],!0),Dt=a.nodeMinColumnSpace(b[te],!1),Ht=a.nodeMinColumnSpace(b[te+1],!0),Zt=a.nodeMinColumnSpace(b[te+1],!1);jt=ot-jt+Ht,Dt=ft-Dt+Zt;var Jt=b[te].sourceEdges.iterator;for(Jt.reset();Jt.next();)if(Ht=Jt.value,Zt=Ht.fromVertex,Ht.valid&&Zt.layer===y){for(Ht=0;b[Ht]!==Zt;)Ht++;Ht<te&&(Ge+=2*(te-Ht),et+=2*(te+1-Ht)),Ht===te+1&&(Ge+=1),Ht>te+1&&(Ge+=4*(Ht-te),et+=4*(Ht-(te+1)))}for(Jt=b[te].destinationEdges.iterator,Jt.reset();Jt.next();)if(Ht=Jt.value,Zt=Ht.toVertex,Ht.valid&&Zt.layer===y){for(Ht=0;b[Ht]!==Zt;)Ht++;Ht===te+1&&(et+=1)}for(Jt=b[te+1].sourceEdges.iterator,Jt.reset();Jt.next();)if(Ht=Jt.value,Zt=Ht.fromVertex,Ht.valid&&Zt.layer===y){for(Ht=0;b[Ht]!==Zt;)Ht++;Ht<te&&(Ge+=2*(te+1-Ht),et+=2*(te-Ht)),Ht===te&&(et+=1),Ht>te+1&&(Ge+=4*(Ht-(te+1)),et+=4*(Ht-te))}for(Jt=b[te+1].destinationEdges.iterator,Jt.reset();Jt.next();)if(Ht=Jt.value,Zt=Ht.toVertex,Ht.valid&&Zt.layer===y){for(Ht=0;b[Ht]!==Zt;)Ht++;Ht===te&&(Ge+=1)}Ht=Zt=0,Jt=ne[b[te].index];var qt=se[b[te].index],hn=ne[b[te+1].index],ir=se[b[te+1].index];Jt!==-1&&(Zt+=Math.abs(Jt-ot),Ht+=Math.abs(Jt-Dt)),qt!==-1&&(Zt+=Math.abs(qt-ot),Ht+=Math.abs(qt-Dt)),hn!==-1&&(Zt+=Math.abs(hn-ft),Ht+=Math.abs(hn-jt)),ir!==-1&&(Zt+=Math.abs(ir-ft),Ht+=Math.abs(ir-jt)),(et<Ge-.5||et===Ge&&ke<Se-.5||et===Ge&&ke===Se&&Ht<Zt-.5)&&(ge=he=!0,b[te].column=Dt,b[te+1].column=jt,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}po.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Yx)!==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=Fp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Fp(this,y,-1)||x;x=Fp(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=Fp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Fp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Fp(this,y,0)||x}}else Zx(this)};function Fp(a,y,x){for(var b=!1;Hx(a,y,x);)b=!0;return b}function Hx(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,ge=!0;ge;)for(ge=!1,b=0;b<te;b++){var Se=E[b].column,ke=a.nodeMinColumnSpace(E[b],!0),Ge=a.nodeMinColumnSpace(E[b],!1),et=0;0>b-1||Se-E[b-1].column-1>ke+a.nodeMinColumnSpace(E[b-1],!1)?et=Se-1:et=Se,ke=b+1>=te||E[b+1].column-Se-1>Ge+a.nodeMinColumnSpace(E[b+1],!0)?Se+1:Se;var ot=Ge=0,ft=0;if(0>=x)for(var jt=E[b].sourceEdges.iterator;jt.next();){var Dt=jt.value,Ht=Dt.fromVertex;if(Dt.valid&&Ht.layer!==y){var Zt=gy(Dt),Jt=Dt.portFromColOffset;Dt=Dt.portToColOffset,Ht=Ht.column,Ge+=(Math.abs(Se+Dt-(Ht+Jt))+1)*Zt,ot+=(Math.abs(et+Dt-(Ht+Jt))+1)*Zt,ft+=(Math.abs(ke+Dt-(Ht+Jt))+1)*Zt}}if(0<=x)for(jt=E[b].destinationEdges.iterator;jt.next();)Dt=jt.value,Ht=Dt.toVertex,Dt.valid&&Ht.layer!==y&&(Zt=gy(Dt),Jt=Dt.portFromColOffset,Dt=Dt.portToColOffset,Ht=Ht.column,Ge+=(Math.abs(Se+Jt-(Ht+Dt))+1)*Zt,ot+=(Math.abs(et+Jt-(Ht+Dt))+1)*Zt,ft+=(Math.abs(ke+Jt-(Ht+Dt))+1)*Zt);Dt=Jt=Zt=0,jt=ne[E[b].index],Ht=se[E[b].index],jt!==-1&&(Zt+=Math.abs(jt-Se),Jt+=Math.abs(jt-et),Dt+=Math.abs(jt-ke)),Ht!==-1&&(Zt+=Math.abs(Ht-Se),Jt+=Math.abs(Ht-et),Dt+=Math.abs(Ht-ke)),ot<Ge||ot===Ge&&Jt<Zt?(ge=he=!0,E[b].column=et):(ft<Ge||ft===Ge&&Dt<Zt)&&(ge=he=!0,E[b].column=ke)}return cd(a,y,E),a.normalize(),he}function Sy(a,y,x){var b=ud(a,y),E=a.tc[y],te=ZS(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),ge=a.nodeMinColumnSpace(b[x],!1),Se=0;if(ne[x]===-1)if(x===0&&x===E-1)Se=se;else if(x===0){var ke=b[x+1].column;ke-se===ge+a.nodeMinColumnSpace(b[x+1],!0)?Se=se-1:Se=se}else x===E-1?(ke=b[x-1].column,Se=se-ke===he+a.nodeMinColumnSpace(b[x-1],!1)?se+1:se):(ke=b[x-1].column,he=ke+a.nodeMinColumnSpace(b[x-1],!1)+he+1,ke=b[x+1].column,ge=ke-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,Se=(he+ge)/2|0);else x===0&&x===E-1?Se=ne[x]:x===0?(ke=b[x+1].column,ge=ke-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,Se=Math.min(ne[x],ge)):x===E-1?(ke=b[x-1].column,he=ke+a.nodeMinColumnSpace(b[x-1],!1)+he+1,Se=Math.max(ne[x],he)):(ke=b[x-1].column,he=ke+a.nodeMinColumnSpace(b[x-1],!1)+he+1,ke=b[x+1].column,ge=ke-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,he<ne[x]&&ne[x]<ge?Se=ne[x]:he>=ne[x]?Se=he:ge<=ne[x]&&(Se=ge));Se!==se&&(te=!0,b[x].column=Se)}cd(a,y,b),a.normalize()}function Ux(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 Gx(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(;Ux(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Gx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=hl(a),te=Av(a);for(b=te+1;te<b;){b=te,tx(a,x,1);var ne=Av(a);ne>te?cu(a,E):ne<te&&(te=ne,E=hl(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=hl(a),te=Av(a),b=te+1;te<b;)b=te,tx(a,x,-1),ne=Av(a),ne>te?cu(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 Zx(a){for(var y=vn(),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 kn,Kx(y,x);var te=null,ne=null,se=null,he=null,ge=(a.ve&1)!==0,Se=(a.ve&2)!==0,ke=(a.ve&4)!==0,Ge=(a.ve&8)!==0;for(ge&&(a.verticalAlignment(y,x,!0),te=Lv(a,y,!0,!1)),y.reverse(),ke&&(a.verticalAlignment(y,x,!1),se=Lv(a,y,!1,!1)),b=mi(y),E=b.next();!E.done;E=b.next())E.value.reverse();Ge&&(a.verticalAlignment(y,x,!1),he=Lv(a,y,!1,!0)),y.reverse(),Se&&(a.verticalAlignment(y,x,!0),ne=Lv(a,y,!0,!0)),Ln(y),a.u(te,ne,se,he),a.network.vertexes.each(function(et){var ot=vn();ge&&ot.push(te.get(et)),Se&&ot.push(ne.get(et)),ke&&ot.push(se.get(et)),Ge&&ot.push(he.get(et)),ot.sort(function(jt,Dt){return jt-Dt});var ft=ot.length;ft=(ot[Math.floor((ft-1)/2)]+ot[Math.ceil((ft-1)/2)])/2,Ln(ot),et.zc=ft})}function Kx(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 ge=se[he];e:{if(ge.node===null){var Se=My(ge);if(0<Se.length){Se=Se[0].node===null;break e}}Se=!1}var ke=Se;if(he===se.length-1||ke){for(Se=ne.length-1,ke&&(Se=My(ge)[0].index);te<=he;){if(ge=se[te],!ge.bo){ke=[];for(var Ge=mi(ge.sourceEdgesArrayAccess),et=Ge.next();!et.done;et=Ge.next())et=et.value,et.valid&&ke.push(et);ge.bo=ke}for(ge=mi(ge.bo),ke=ge.next();!ke.done;ke=ge.next())ke=ke.value,Ge=ke.fromVertex.index,(Ge<E||Ge>Se)&&y.add(ke);te++}E=Se}}}po.prototype.verticalAlignment=function(a,y,x){Vx(a),a=mi(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=mi(b.value);for(var te=b.next();!te.done;te=b.next()){te=te.value;var ne=x?My(te):Jx(te),se=ne.length;if(0<se){ne.sort(function(ke,Ge){return ke.vi-Ge.vi});var he=(se-1)/2;for(se=Math.floor(he),he=Math.ceil(he);se<=he;se++)if(te.align===te){var ge=ne[se],Se=void 0;Se=x?Nv(ge,te):Nv(te,ge),!y.contains(Se)&&E<ge.vi&&(ge.align=te,te.root=ge.root,te.align=ge.root,E=ge.vi)}}}}};function Vx(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 Lv(a,y,x,b){for(var E=a.K===90||a.K===270,te=mi(y),ne=te.next();!ne.done;ne=te.next()){var se=mi(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=mi(y),se=te.next();!se.done;se=te.next()){se=mi(se.value);for(var he=se.next();!he.done;he=se.next())if(he=he.value,he.root===he){for(var ge=0,Se=he;Se.align!==he;){var ke=Se.align,Ge=ne?Se.width:Se.height,et=ne?ke.width:ke.height;if(x){var ot=Nv(Se,ke),ft=ot.portFromPos,jt=ot.portToPos;ot.link!==null&&(Se.node&&Se.node!==ot.link.fromNode&&(ft=ne?Se.focusX:Se.focusY),ke.node&&ke.node!==ot.link.toNode&&(jt=ne?ke.focusX:ke.focusY))}else ot=Nv(ke,Se),ft=ot.portToPos,jt=ot.portFromPos,ot.link!==null&&(Se.node&&Se.node!==ot.link.toNode&&(ft=ne?Se.focusX:Se.focusY),ke.node&&ke.node!==ot.link.fromNode&&(jt=ne?ke.focusX:ke.focusY));Ge=b?Se.qg+(Ge-ft)-(et-jt):Se.qg+ft-jt,ke.qg=Ge,ge=Math.min(ge,Ge),Se=Se.align}Se=he;do Se.qg=Se.qg-ge,Se=Se.align;while(Se!==he)}}for(x=mi(y),ne=x.next();!ne.done;ne=x.next())for(te=mi(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 pr,y=mi(y),ne=y.next();!ne.done;ne=y.next())for(x=mi(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&&Gt("Could not determine previous vertex in layer"),y[x][a-1]}po.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=vn(),E=vn(),te=1/0,ne=0;4>ne;ne++)if(y[ne]){var se=Xx(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(ge){ge.value+=he.delta}}(te)));Ln(b),Ln(E)};function Xx(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}po.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Tv(this,!0),y=Tv(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 Tv(a,y){return a.K===270?y?ga:Ua:a.K===90?y?Ua:ga:a.K===180?y?La:Ya:y?Ya:La}po.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,ge=he.layer,Se=he.column|0;b?(ne=y.x+this.kc*Se,ge=this.Kd[ge]):(ne=this.Kd[ge],ge=y.y+this.kc*Se),he.centerX=ne,he.centerY=ge,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 kt(x&&b?0:te,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=te,x.y+=y,x.commit()},po.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 Mn(0,0,x,Math.abs(this.Ta[0]))):y.push(new Mn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new Mn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Mn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new Mn(0,0,Math.abs(this.Ta[0]),x)):y.push(new Mn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new Mn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Mn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},po.prototype.commitLayers=function(){},po.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 ge=y.computeSpot(!0,ne);he=y.computeSpot(!1,se);var Se=x.fromVertex,ke=x.toVertex;if(x.valid)y.curve===Jl&&y.pointsCount===4&&(Se.column===ke.column&&this.alignOption===0?(x=y.getLinkPoint(E,ne,ge,!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&&ge===ua&&(b=!0),se!==null&&he===ua&&(x=!0),(b||x)&&(he=null,b&&(he=y.getLinkPointFromPoint(E,ne,ne.ga(zi),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(zi),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===ke.layer)y.zf();else{var Ge=!1,et=!1,ot=this.ie,ft=y.firstPickIndex+1;if(y.isOrthogonal){et=!0;var jt=y.pointsCount;4<jt&&y.points.removeRange(2,jt-3)}else if(y.curve===Jl)Ge=!0,jt=y.pointsCount,4<jt&&y.points.removeRange(2,jt-3),jt===4&&(ft=2);else{jt=y.pointsCount;var Dt=ge===ua,Ht=he===ua;2<jt&&Dt&&Ht?y.points.removeRange(1,jt-2):3<jt&&Dt&&!Ht?y.points.removeRange(1,jt-3):3<jt&&!Dt&&Ht?y.points.removeRange(2,jt-2):4<jt&&!Dt&&!Ht&&y.points.removeRange(2,jt-3)}if(x.rev){for(;ke!==null&&Se!==ke;){var Zt=jt=null;for(Dt=ke.sourceEdges.iterator;Dt.next()&&(Ht=Dt.value,Ht.link!==x.link||(jt=Ht.fromVertex,Zt=Ht.toVertex,jt.node!==null)););if(jt===null)break;if(jt!==Se){Dt=y.i(ft-1).x,Ht=y.i(ft-1).y;var Jt=jt.centerX,qt=jt.centerY;if(et)this.K===180||this.K===0?ft===y.firstPickIndex+1?(y.m(ft++,Dt,Ht),y.m(ft++,Dt,qt)):(Zt!==null?Zt.centerY:Ht)!==qt&&(Zt=this.Ta[jt.layer-1]+this.Rf.x,y.m(ft++,Zt,Ht),y.m(ft++,Zt,qt)):ft===y.firstPickIndex+1?(y.m(ft++,Dt,Ht),y.m(ft++,Jt,Ht)):(Zt!==null?Zt.centerX:Dt)!==Jt&&(Zt=this.Ta[jt.layer-1]+this.Rf.y,y.m(ft++,Dt,Zt),y.m(ft++,Jt,Zt));else if(ft===y.firstPickIndex+1){Zt=Math.max(10,this.he[ke.layer]);var hn=Math.max(10,this.Ld[ke.layer]);if(Ge)this.K===180?Jt<=ke.bounds.x?(ke=ke.bounds.x,y.m(ft++,ke-Zt,qt),y.m(ft++,ke,qt),y.m(ft++,ke+hn,qt)):(y.m(ft++,Jt-Zt,qt),y.m(ft++,Jt,qt),y.m(ft++,Jt+hn,qt)):this.K===90?qt>=ke.bounds.bottom?(ke=ke.bounds.y+ke.bounds.height,y.m(ft++,Jt,ke+hn),y.m(ft++,Jt,ke),y.m(ft++,Jt,ke-Zt)):(y.m(ft++,Jt,qt+hn),y.m(ft++,Jt,qt),y.m(ft++,Jt,qt-Zt)):this.K===270?qt<=ke.bounds.y?(ke=ke.bounds.y,y.m(ft++,Jt,ke-Zt),y.m(ft++,Jt,ke),y.m(ft++,Jt,ke+hn)):(y.m(ft++,Jt,qt-Zt),y.m(ft++,Jt,qt),y.m(ft++,Jt,qt+hn)):this.K===0&&(Jt>=ke.bounds.right?(ke=ke.bounds.x+ke.bounds.width,y.m(ft++,ke+hn,qt),y.m(ft++,ke,qt),y.m(ft++,ke-Zt,qt)):(y.m(ft++,Jt+hn,qt),y.m(ft++,Jt,qt),y.m(ft++,Jt-Zt,qt)));else{y.m(ft++,Dt,Ht);var ir=0;this.K===180||this.K===0?((this.K===180?Jt>=ke.bounds.right:Jt<=ke.bounds.x)&&(ir=(this.K===0?-Zt:hn)/2),y.m(ft++,Dt+ir,qt)):((this.K===270?qt>=ke.bounds.bottom:qt<=ke.bounds.y)&&(ir=(this.K===90?-Zt:hn)/2),y.m(ft++,Jt,Ht+ir)),y.m(ft++,Jt,qt)}}else Zt=Math.max(10,this.he[jt.layer]),hn=Math.max(10,this.Ld[jt.layer]),Ge?this.K===180?(y.m(ft++,Jt-Zt-ot,qt),y.m(ft++,Math.min(Jt-Zt+ot/2,Jt),qt),y.m(ft++,Jt,qt),y.m(ft++,Jt,qt),y.m(ft++,Math.max(Jt+hn-ot/2,Jt),qt),y.m(ft++,Jt+hn+ot,qt)):this.K===90?(y.m(ft++,Jt,qt+hn+ot),y.m(ft++,Jt,Math.max(qt+hn-ot/2,qt)),y.m(ft++,Jt,qt),y.m(ft++,Jt,qt),y.m(ft++,Jt,Math.min(qt-Zt+ot/2,qt)),y.m(ft++,Jt,qt-Zt-ot)):this.K===270?(y.m(ft++,Jt,qt-Zt-ot),y.m(ft++,Jt,Math.min(qt-Zt+ot/2,qt)),y.m(ft++,Jt,qt),y.m(ft++,Jt,qt),y.m(ft++,Jt,Math.max(qt+hn-ot/2,qt)),y.m(ft++,Jt,qt+hn+ot)):(y.m(ft++,Jt+hn+ot,qt),y.m(ft++,Math.max(Jt+hn-ot/2,Jt),qt),y.m(ft++,Jt,qt),y.m(ft++,Jt,qt),y.m(ft++,Math.min(Jt-Zt+ot/2,Jt),qt),y.m(ft++,Jt-Zt-ot,qt)):y.m(ft++,Jt,qt)}ke=jt}(se===null||ge!==ua||et)&&(Dt=y.i(ft-1).x,Ht=y.i(ft-1).y,Jt=y.i(ft).x,qt=y.i(ft).y,et?(ot=this.Ld[Se.layer],this.K===180||this.K===0?(et=Ht,et>=Se.bounds.y&&et<=Se.bounds.bottom&&(this.K===180?Jt>=Se.bounds.x:Jt<=Se.bounds.right)&&(ke=Se.centerX+(this.K===180?-ot:ot),et<Se.bounds.y+Se.bounds.height/2?et=Se.bounds.y-this.kc/2:et=Se.bounds.bottom+this.kc/2,y.m(ft++,ke,Ht),y.m(ft++,ke,et)),y.m(ft++,Jt,et)):(et=Dt,et>=Se.bounds.x&&et<=Se.bounds.right&&(this.K===270?qt>=Se.bounds.y:qt<=Se.bounds.bottom)&&(ke=Se.centerY+(this.K===270?-ot:ot),et<Se.bounds.x+Se.bounds.width/2?et=Se.bounds.x-this.kc/2:et=Se.bounds.right+this.kc/2,y.m(ft++,Dt,ke),y.m(ft++,et,ke)),y.m(ft++,et,qt)),y.m(ft++,Jt,qt)):Ge?(Zt=Math.max(10,this.he[Se.layer]),hn=Math.max(10,this.Ld[Se.layer]),this.K===180&&Jt>=Se.bounds.x?(ke=Se.bounds.x+Se.bounds.width,y.L(ft-2,ke,Ht),y.L(ft-1,ke+hn,Ht)):this.K===90&&qt<=Se.bounds.bottom?(ke=Se.bounds.y,y.L(ft-2,Dt,ke),y.L(ft-1,Dt,ke-Zt)):this.K===270&&qt>=Se.bounds.y?(ke=Se.bounds.y+Se.bounds.height,y.L(ft-2,Dt,ke),y.L(ft-1,Dt,ke+hn)):this.K===0&&Jt<=Se.bounds.right&&(ke=Se.bounds.x,y.L(ft-2,ke,Ht),y.L(ft-1,ke-Zt,Ht))):(Zt=Math.max(10,this.he[Se.layer]),hn=Math.max(10,this.Ld[Se.layer]),et=0,this.K===180||this.K===0?((this.K===180?Jt<=Se.bounds.x:Jt>=Se.bounds.right)&&(et=(this.K===0?hn:-Zt)/2),y.m(ft++,Jt+et,Ht)):((this.K===270?qt<=Se.bounds.y:qt>=Se.bounds.bottom)&&(et=(this.K===90?hn:-Zt)/2),y.m(ft++,Dt,qt+et)),y.m(ft++,Jt,qt)))}else{for(;Se!==null&&Se!==ke;){for(Zt=jt=null,Se=Se.destinationEdges.iterator;Se.next()&&(Dt=Se.value,Dt.link!==x.link||(jt=Dt.toVertex,Zt=Dt.fromVertex,Zt.node!==null&&(Zt=null),jt.node!==null)););if(jt===null)break;jt!==ke&&(Dt=y.i(ft-1).x,Ht=y.i(ft-1).y,Jt=jt.centerX,qt=jt.centerY,et?this.K===180||this.K===0?(Zt!==null?Zt.centerY:Ht)!==qt&&(Zt=this.Ta[jt.layer]+this.Rf.x,ft===y.firstPickIndex+1&&(Zt=this.K===0?Math.max(Zt,Dt):Math.min(Zt,Dt)),y.m(ft++,Zt,Ht),y.m(ft++,Zt,qt)):(Zt!==null?Zt.centerX:Dt)!==Jt&&(Zt=this.Ta[jt.layer]+this.Rf.y,ft===y.firstPickIndex+1&&(Zt=this.K===90?Math.max(Zt,Ht):Math.min(Zt,Ht)),y.m(ft++,Dt,Zt),y.m(ft++,Jt,Zt)):(Zt=Math.max(10,this.he[jt.layer]),hn=Math.max(10,this.Ld[jt.layer]),Ge?this.K===180?(y.m(ft++,Jt+hn+ot,qt),y.m(ft++,Math.max(Jt+hn-ot/2,Jt),qt),y.m(ft++,Jt,qt),y.m(ft++,Jt,qt),y.m(ft++,Math.min(Jt-Zt+ot/2,Jt),qt),y.m(ft++,Jt-Zt-ot,qt)):this.K===90?(y.m(ft++,Jt,qt-Zt-ot),y.m(ft++,Jt,Math.min(qt-Zt+ot/2,qt)),y.m(ft++,Jt,qt),y.m(ft++,Jt,qt),y.m(ft++,Jt,Math.max(qt+hn-ot/2,qt)),y.m(ft++,Jt,qt+hn+ot)):this.K===270?(y.m(ft++,Jt,qt+hn+ot),y.m(ft++,Jt,Math.max(qt+hn-ot/2,qt)),y.m(ft++,Jt,qt),y.m(ft++,Jt,qt),y.m(ft++,Jt,Math.min(qt-Zt+ot/2,qt)),y.m(ft++,Jt,qt-Zt-ot)):(y.m(ft++,Jt-Zt-ot,qt),y.m(ft++,Math.min(Jt-Zt+ot/2,Jt),qt),y.m(ft++,Jt,qt),y.m(ft++,Jt,qt),y.m(ft++,Math.max(Jt+hn-ot/2,Jt),qt),y.m(ft++,Jt+hn+ot,qt)):this.K===180?(y.m(ft++,Jt+hn,qt),y.m(ft++,Jt-Zt,qt)):this.K===90?(y.m(ft++,Jt,qt-Zt),y.m(ft++,Jt,qt+hn)):this.K===270?(y.m(ft++,Jt,qt+hn),y.m(ft++,Jt,qt-Zt)):(y.m(ft++,Jt-Zt,qt),y.m(ft++,Jt+hn,qt)))),Se=jt}et&&(Dt=y.i(ft-1).x,Ht=y.i(ft-1).y,Jt=y.i(ft).x,qt=y.i(ft).y,this.K===180||this.K===0?Ht!==qt&&(Zt=this.K===0?Math.min(Math.max((Jt+Dt)/2,this.Ta[ke.layer]+this.Rf.x),Jt):Math.max(Math.min((Jt+Dt)/2,this.Ta[ke.layer]+this.Rf.x),Jt),y.m(ft++,Zt,Ht),y.m(ft++,Zt,qt)):Dt!==Jt&&(Zt=this.K===90?Math.min(Math.max((qt+Ht)/2,this.Ta[ke.layer]+this.Rf.y),qt):Math.max(Math.min((qt+Ht)/2,this.Ta[ke.layer]+this.Rf.y),qt),y.m(ft++,Dt,Zt),y.m(ft++,Jt,Zt)))}b!==null&&Ge&&4<=y.pointsCount&&(ne!==null&&(ne=ge===ua?y.getLinkPointFromPoint(E,ne,ne.ga(zi),y.i(3),!0):y.i(0),ge===ua&&(ge=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+ge.x)/2,ge.y),y.L(2,b.x,(ge.y+b.y)/2)):(y.L(1,ge.x,(ne.y+ge.y)/2),y.L(2,(ge.x+b.x)/2,b.y))),ne.w()||ne.set(E.actualBounds.center),y.L(0,ne.x,ne.y)),se!==null&&(E=he===ua?y.getLinkPointFromPoint(te,se,se.ga(zi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),he===ua&&(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()},po.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Dn,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),ge=b.i(b.pointsCount-1);if(se.first=he.x*he.x+he.y,se.jc=ge.x*ge.x+ge.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),ge=b.i(E+2);var Se=0;he.y<te.y?Se=ge.y<te.y?3:te.x<ne.x?2:1:he.y>te.y&&(Se=ge.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++)ge=x[he],ge.jc!==se&&(Se++,se=ge.jc);this.zi(x,this.Ux,te,te+ne);var ke=1;for(se=x[te].first,he=te;he<E;he++)ge=x[he],ge.first!==se&&(ke++,se=ge.first);for(he=!0,ge=ke,Se<ke?(he=!1,ge=Se,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,Se=0,ke=te;ke<E;ke++){var Ge=x[ke];(he?Ge.first:Ge.jc)!==se&&(Se++,se=he?Ge.first:Ge.jc);var et=Ge.link;te=et.i(Ge.index),ne=et.i(Ge.index+1);var ot=this.linkSpacing*(Se-(ge-1)/2);y++,et.uh(),et.L(Ge.index,te.x,te.y+ot),et.L(Ge.index+1,ne.x,ne.y+ot),et.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),ge=b.i(b.pointsCount-1),se.first=he.x+he.y*he.y,se.jc=ge.x+ge.y*ge.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),ge=b.i(E+2),Se=0,he.x<te.x?Se=ge.x<te.x?3:te.y<ne.y?2:1:he.x>te.x&&(Se=ge.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++)ge=x[he],ge.jc!==se&&(Se++,se=ge.jc);for(this.zi(x,this.Ux,te,te+ne),ke=1,se=x[te].first,he=te;he<E;he++)ge=x[he],ge.first!==se&&(ke++,se=ge.first);for(he=!0,ge=ke,Se<ke?(he=!1,ge=Se,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,Se=0,ke=te;ke<E;ke++)Ge=x[ke],(he?Ge.first:Ge.jc)!==se&&(Se++,se=he?Ge.first:Ge.jc),et=Ge.link,te=et.i(Ge.index),ne=et.i(Ge.index+1),ot=this.linkSpacing*(Se-(ge-1)/2),y++,et.uh(),et.L(Ge.index,te.x+ot,te.y),et.L(Ge.index+1,ne.x+ot,ne.y),et.zf()}te=E}a=b}}}},it=po.prototype,it.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},it.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},it.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},it.B=function(a,y){return a-=y,-1<a&&1>a},it.zi=function(a,y,x,b){var E=a.length,te=b-x;if(!(1>=te))if((0>x||x>=E-1)&&Gt("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}Tt.Object.defineProperties(po.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()):Gt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==xy&&a!==Fv&&a!==Zg||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==Dv&&a!==wy&&a!==by||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Ov&&a!==Cy&&a!==Py||(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!==kv&&a!==Ay||(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 Fv=new wn(po,"CycleDepthFirst",0),xy=new wn(po,"CycleGreedy",1),Zg=new wn(po,"CycleFromLayers",2),Dv=new wn(po,"LayerOptimalLinkLength",0),wy=new wn(po,"LayerLongestPathSink",1),by=new wn(po,"LayerLongestPathSource",2),Ov=new wn(po,"InitDepthFirstOut",0),Cy=new wn(po,"InitDepthFirstIn",1),Py=new wn(po,"InitNaive",2),Ey=new wn(po,"AggressiveNone",0),kv=new wn(po,"AggressiveLess",1),Ay=new wn(po,"AggressiveMore",2),Yx=8;po.className="LayeredDigraphLayout",po.CycleDepthFirst=Fv,po.CycleGreedy=xy,po.CycleFromLayers=Zg,po.LayerOptimalLinkLength=Dv,po.LayerLongestPathSink=wy,po.LayerLongestPathSource=by,po.InitDepthFirstOut=Ov,po.InitDepthFirstIn=Cy,po.InitNaive=Py,po.AggressiveNone=Ey,po.AggressiveLess=kv,po.AggressiveMore=Ay,po.PackNone=0,po.PackExpand=1,po.PackStraighten=2,po.PackMedian=4,po.PackAll=15,po.AlignNone=0,po.AlignUpperLeft=1,po.AlignUpperRight=2,po.AlignLowerLeft=4,po.AlignLowerRight=8,po.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 Dp(a){To.call(this,a)}Xt(Dp,To),Dp.prototype.createVertex=function(){return new hu(this)},Dp.prototype.createEdge=function(){return new Kg(this)},Dp.className="LayeredDigraphNetwork";function hu(a){Va.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}Xt(hu,Va);function ix(a,y){return a.index-y.index}function Nv(a,y){if(!a.$n){for(var x=[],b=mi(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=mi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Gt("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=mi(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 Jx(a){if(!a.ao){for(var y=[],x=mi(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}hu.prototype.Cl=function(a){Va.prototype.Cl.call(this,a),this.bo=this.co=null},hu.prototype.Kl=function(a){Va.prototype.Kl.call(this,a),this.bo=this.co=null},hu.prototype.zl=function(a){Va.prototype.zl.call(this,a),this.$n=this.ao=null},hu.prototype.Jl=function(a){Va.prototype.Jl.call(this,a),this.$n=this.ao=null},Tt.Object.defineProperties(hu.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)}}}),hu.prototype.deleteDestinationEdge=hu.prototype.Jl,hu.prototype.addDestinationEdge=hu.prototype.zl,hu.prototype.deleteSourceEdge=hu.prototype.Kl,hu.prototype.addSourceEdge=hu.prototype.Cl,hu.className="LayeredDigraphVertex";function Kg(a){Tl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Xt(Kg,Tl),Tt.Object.defineProperties(Kg.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)}}}),Kg.className="LayeredDigraphEdge";function Mi(a){Go.call(this),this.Ub=new kn,this.Wn=Rv,this.ud=Nc,this.vo=Wv,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=Hv,this.$d=new qn(10,10).freeze();var y=new Nf(this);this.W=new wu(y),this.Y=new wu(y),this.ru=[],a&&Object.assign(this,a)}Xt(Mi,Go),Mi.prototype.cloneProtected=function(a){Go.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)},Mi.prototype.qb=function(a){a.classType===Mi?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:Gt("Unknown enum value: "+a):Go.prototype.qb.call(this,a)},Mi.prototype.createNetwork=function(){return new Nf(this)},Mi.prototype.makeNetwork=function(a){function y(b){if(b instanceof sr)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof _n){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 cn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof ri?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Mi.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Uv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof cn&&(y=a),this.path===Rv&&y!==null?this.ud=y.isTreePathToChildren?Nc:Of:this.ud=this.path===Rv?Nc: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 kn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof sr?(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=Qx(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===Gv){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===zy)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 kn,this.isValidLayout=!0};function Qx(a){var y=new kn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Mi.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Nc:x.sourceEdges.count===0&&this.Ub.add(x);break;case Of:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Gt("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 Nc:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Of:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:Gt("Unhandled path value "+a.ud.toString())}}return b}function Ly(a,y){if(y!==null){switch(a.ud){case Nc:if(0<y.destinationEdges.count){for(var x=new Dn,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 Of:if(0<y.sourceEdges.count){for(x=new Dn,b=y.sourceVertexes;b.next();)E=b.value,ax(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Gt("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}Mi.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===jc&&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 _x(a,y){switch(a.vo){default:case Wv:return y.parent!==null?y.parent:a.W;case Iy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ny: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}}Mi.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(_x(this,a)),a.parent!==null&&a.parent.alignment===jc){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])}}Mi.prototype.assignTreeVertexValues=function(){};function ux(a,y){if(y!==null){y.alignment!==jc&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ux(a,y[b])}}Mi.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Op:break;case Xg:a.children.reverse();break;case Yg:a.children.sort(a.comparer);break;case Jg:a.children.sort(a.comparer),a.children.reverse();break;default:Gt("Unhandled sorting value "+a.sorting.toString())}},Mi.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Mi.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 ge=a.node.Mu();ge.next();){var Se=ge.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=Mn.allocAt(0,0,a.bounds.width+te,a.bounds.height+ne),a.bounds=E,Mn.free(E))};function dd(a){return a===Oh||a===jc||a===kh||a===ih}function Vg(a){return a===Oh||a===jc}function Ty(a){var y=a.parent;if(y!==null){var x=y.alignment;if(dd(x)){if(Vg(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===kh)return!0}}return!1}Mi.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=Ty(a),he=0,ge=a.comments,Se=ge.length,ke=kt.alloc(),Ge=0;Ge<Se;Ge++){var et=ge[Ge],ot=et.measuredBounds;if(b&&!ne||!te&&!x&&ne||te&&x&&ne){if(135<E&&!te||x&&se)if(0<=a.commentMargin)for(ke.h(a.bounds.x-a.commentMargin-ot.width,a.bounds.y+he),et.move(ke),et=et.Sd();et.next();){var ft=et.value;ft.fromSpot=La,ft.toSpot=Ya}else for(ke.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+he),et.move(ke),et=et.Sd();et.next();)ft=et.value,ft.fromSpot=Ya,ft.toSpot=La;else if(0<=a.commentMargin)for(ke.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+he),et.move(ke),et=et.Sd();et.next();)ft=et.value,ft.fromSpot=Ya,ft.toSpot=La;else for(ke.h(a.bounds.x+a.commentMargin-ot.width,a.bounds.y+he),et.move(ke),et=et.Sd();et.next();)ft=et.value,ft.fromSpot=La,ft.toSpot=Ya;he=0<=a.commentSpacing?he+(ot.height+a.commentSpacing):he+(a.commentSpacing-ot.height)}else{if(135<E&&!te||!x&&se)if(0<=a.commentMargin)for(ke.h(a.bounds.x+he,a.bounds.y-a.commentMargin-ot.height),et.move(ke),et=et.Sd();et.next();)ft=et.value,ft.fromSpot=ga,ft.toSpot=Ua;else for(ke.h(a.bounds.x+he,a.bounds.y+2*a.focus.y-a.commentMargin),et.move(ke),et=et.Sd();et.next();)ft=et.value,ft.fromSpot=Ua,ft.toSpot=ga;else if(0<=a.commentMargin)for(ke.h(a.bounds.x+he,a.bounds.y+2*a.focus.y+a.commentMargin),et.move(ke),et=et.Sd();et.next();)ft=et.value,ft.fromSpot=Ua,ft.toSpot=ga;else for(ke.h(a.bounds.x+he,a.bounds.y+a.commentMargin-ot.height),et.move(ke),et=et.Sd();et.next();)ft=et.value,ft.fromSpot=ga,ft.toSpot=Ua;he=0<=a.commentSpacing?he+(ot.width+a.commentSpacing):he+(a.commentSpacing-ot.width)}}if(kt.free(ke),y=he-a.commentSpacing-(b?y.height:y.width),this.ud===Nc)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)}},Mi.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 zv:cx(this,a);break;case Qg:if(a.alignment===jc)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=Ty(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=Bu(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===Bc;var ge=he===Ic,Se=dd(he),ke=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ge=a.nodeSpacing,et=this.computeNodeIndent(a),ot=a.rowSpacing,ft=0;(b||ge||a.hm||a.im&&a.maxGenerationCount===1)&&(ft=Math.max(0,a.rowIndent)),b=a.width;var jt=a.height,Dt=0,Ht=0,Zt=0,Jt=null,qt=null,hn=0,ir=0,mr=0,hr=0,Qn=0,Bn=0,ei=0,Yr=0;if(Se&&!Vg(he)&&135<E&&ne.reverse(),Vg(he))if(1<se)for(var Ji=0;Ji<se;Ji++)Ji%2===0&&Ji!==se-1&&(Yr=Math.max(Yr,y?ne[Ji].Da.width:ne[Ji].Da.height));else se===1&&(Yr=y?ne[0].Da.width:ne[0].Da.height);if(Se){switch(he){case Oh:Ht=135>E?hx(this,a,ne,Yr,Dt,Ht):dx(this,a,ne,Yr,Dt,Ht),Yr=Ht.x,Dt=Ht.width,Ht=Ht.height;break;case kh:for(Jt=0;Jt<se;Jt++)qt=ne[Jt],ke=qt.Da,Zt=Bn===0?0:ot,y?(qt.S.h(te-ke.width,hr+Zt),Dt=Math.max(Dt,ke.width),Ht=Math.max(Ht,hr+Zt+ke.height),hr+=Zt+ke.height):(qt.S.h(mr+Zt,te-ke.height),Dt=Math.max(Dt,mr+Zt+ke.width),Ht=Math.max(Ht,ke.height),mr+=Zt+ke.width),Bn++;break;case ih:for(Jt=0;Jt<se;Jt++)qt=ne[Jt],te=qt.Da,ke=Bn===0?0:ot,y?(qt.S.h(Ge/2+a.focus.x,hr+ke),Dt=Math.max(Dt,te.width),Ht=Math.max(Ht,hr+ke+te.height),hr+=ke+te.height):(qt.S.h(mr+ke,Ge/2+a.focus.y),Dt=Math.max(Dt,mr+ke+te.width),Ht=Math.max(Ht,te.height),mr+=ke+te.width),Bn++}Jt=yl(this,2),qt=yl(this,2),y?(Jt[0].h(0,0),Jt[1].h(0,Ht),qt[0].h(Dt,0)):(Jt[0].h(0,0),Jt[1].h(Dt,0),qt[0].h(0,Ht)),qt[1].h(Dt,Ht)}else for(Ji=0;Ji<se;Ji++){var Eo=ne[Ji],qa=Eo.Da;if(y){0<ke&&0<Bn&&mr+Ge+qa.width>ke&&(mr<te&&_d(a,he,te-mr,0,ei,Ji-1),Qn++,Bn=0,ei=Ji,Zt=Ht,mr=0,hr=135<E?-Ht-ot:Ht+ot),Iv(this,Eo,0,hr);var rs=0;if(Bn===0)Jt=Eo.Yo,qt=Eo.kp,hn=qa.width,ir=qa.height,(Jt===null||qt===null||E!==Bu(Eo))&&(Jt=yl(this,2),qt=yl(this,2),Jt[0].h(0,0),Jt[1].h(0,ir),qt[0].h(hn,0),qt[1].h(hn,ir));else{var js=vn();ir=fx(this,a,Eo,Jt,qt,hn,ir,js),rs=ir.x,Jt=js[0],qt=js[1],hn=ir.width,ir=ir.height,Ln(js),mr<qa.width&&0>rs&&(Df(a,-rs,0,ei,Ji-1),jv(Jt,-rs,0),jv(qt,-rs,0),rs=0)}Eo.S.h(rs,hr),Dt=Math.max(Dt,hn),Ht=Math.max(Ht,Zt+(Qn===0?0:ot)+qa.height),mr=hn}else 0<ke&&0<Bn&&hr+Ge+qa.height>ke&&(hr<te&&_d(a,he,0,te-hr,ei,Ji-1),Qn++,Bn=0,ei=Ji,Zt=Dt,hr=0,mr=135<E?-Dt-ot:Dt+ot),Iv(this,Eo,mr,0),rs=0,Bn===0?(Jt=Eo.Yo,qt=Eo.kp,hn=qa.width,ir=qa.height,(Jt===null||qt===null||E!==Bu(Eo))&&(Jt=yl(this,2),qt=yl(this,2),Jt[0].h(0,0),Jt[1].h(hn,0),qt[0].h(0,ir),qt[1].h(hn,ir))):(js=vn(),ir=fx(this,a,Eo,Jt,qt,hn,ir,js),rs=ir.x,Jt=js[0],qt=js[1],hn=ir.width,ir=ir.height,Ln(js),hr<qa.height&&0>rs&&(Df(a,0,-rs,ei,Ji-1),jv(Jt,0,-rs),jv(qt,0,-rs),rs=0)),Eo.S.h(mr,rs),Ht=Math.max(Ht,ir),Dt=Math.max(Dt,Zt+(Qn===0?0:ot)+qa.width),hr=ir;Bn++}switch(0<Qn&&(y?(Ht+=Math.max(0,x),mr<Dt&&_d(a,he,Dt-mr,0,ei,se-1),0<ft&&(ge||Df(a,ft,0,0,se-1),Dt+=ft)):(Dt+=Math.max(0,x),hr<Ht&&_d(a,he,0,Ht-hr,ei,se-1),0<ft&&(ge||Df(a,0,ft,0,se-1),Ht+=ft))),ft=ge=0,he){case kp:y?ge+=Dt/2-a.focus.x-et/2:ft+=Ht/2-a.focus.y-et/2;break;case kf:0<Qn?y?ge+=Dt/2-a.focus.x-et/2:ft+=Ht/2-a.focus.y-et/2:y?(Yr=ne[0].S.x+ne[0].la.x,ge+=Yr+(ne[se-1].S.x+ne[se-1].la.x+2*ne[se-1].focus.x-Yr)/2-a.focus.x-et/2):(Yr=ne[0].S.y+ne[0].la.y,ft+=Yr+(ne[se-1].S.y+ne[se-1].la.y+2*ne[se-1].focus.y-Yr)/2-a.focus.y-et/2);break;case Bc:y?(ge-=et,Dt+=et):(ft-=et,Ht+=et);break;case Ic:y?(ge+=Dt-a.width+et,Dt+=et):(ft+=Ht-a.height+et,Ht+=et);break;case Oh:y?1<se?ge+=Yr+Ge/2-a.focus.x:ge+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<se?ft+=Yr+Ge/2-a.focus.y:ft+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case kh:y?ge+=Dt+Ge/2-a.focus.x:ft+=Ht+Ge/2-a.focus.y;break;case ih:break;default:Ht=this.customAlignment(a,ge,ft,Dt,Ht),ge=Ht[0],ft=Ht[1],Dt=Ht[2],Ht=Ht[3]}for(et=0;et<se;et++)Yr=ne[et],y?Yr.S.h(Yr.S.x+Yr.la.x-ge,Yr.S.y+(135<E?(Se?-Ht:-Yr.Da.height)+Yr.la.y-x:jt+x+Yr.la.y)):Yr.S.h(Yr.S.x+(135<E?(Se?-Dt:-Yr.Da.width)+Yr.la.x-x:b+x+Yr.la.x),Yr.S.y+Yr.la.y-ft);if(se=ne=0,Se?y?(Dt=Fy(a,Dt,ge),0>ge&&(ge=0),135<E&&(ft+=Ht+x),Ht+=jt+x,he===ih&&(ne+=Ge/2+a.focus.x),se+=jt+x):(135<E&&(ge+=Dt+x),Dt+=b+x,Ht=Dy(a,Ht,ft),0>ft&&(ft=0),he===ih&&(se+=Ge/2+a.focus.y),ne+=b+x):y?(a.comments===null?b>Dt&&(Dt=Oy(he,b-Dt,0),ne=Dt.x,se=Dt.y,Dt=b,ge=0):Dt=Fy(a,Dt,ge),0>ge&&(ne-=ge,ge=0),135<E&&(ft+=Ht+x),Ht=Math.max(Math.max(Ht,jt),Ht+jt+x),se+=jt+x):(135<E&&(ge+=Dt+x),Dt=Math.max(Math.max(Dt,b),Dt+b+x),a.comments===null?jt>Ht&&(Ht=Oy(he,0,jt-Ht),ne=Ht.x,se=Ht.y,Ht=jt,ft=0):Ht=Dy(a,Ht,ft),0>ft&&(se-=ft,ft=0),ne+=b+x),0<Qn)E=yl(this,4),Qn=yl(this,4),y?(E[2].h(0,jt+x),E[3].h(E[2].x,Ht),Qn[2].h(Dt,E[2].y),Qn[3].h(Qn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Dt,E[2].y),Qn[2].h(E[2].x,Ht),Qn[3].h(E[3].x,Qn[2].y));else{for(E=yl(this,Jt.length+2),Qn=yl(this,qt.length+2),he=0;he<Jt.length;he++)Se=Jt[he],E[he+2].h(Se.x+ne,Se.y+se);for(he=0;he<qt.length;he++)Se=qt[he],Qn[he+2].h(Se.x+ne,Se.y+se)}y?(E[0].h(ge,0),E[1].h(E[0].x,jt),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])),Qn[0].h(ge+b,0),Qn[1].h(Qn[0].x,jt),Qn[2].y<Qn[1].y&&(Qn[2].x<Qn[0].x?Qn[2].assign(Qn[1]):Qn[1].assign(Qn[2])),Qn[3].y<Qn[2].y&&(Qn[3].x<Qn[0].x?Qn[3].assign(Qn[2]):Qn[2].assign(Qn[3])),E[2].y-=x/2,Qn[2].y-=x/2):(E[0].h(0,ft),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])),Qn[0].h(0,ft+jt),Qn[1].h(b,Qn[0].y),Qn[2].x<Qn[1].x&&(Qn[2].y<Qn[0].y?Qn[2].assign(Qn[1]):Qn[1].assign(Qn[2])),Qn[3].x<Qn[2].x&&(Qn[3].y<Qn[0].y?Qn[3].assign(Qn[2]):Qn[2].assign(Qn[3])),E[2].x-=x/2,Qn[2].x-=x/2),$u(this,Jt),$u(this,qt),a.Yo=E,a.kp=Qn,a.la.h(ge,ft),a.Da.h(Dt,Ht)}break;default:Gt("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=Ty(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=Bu(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 ge=y.alignment,Se=ge===Bc,ke=ge===Ic;se=dd(ge);var Ge=Math.max(0,y.breadthLimit);he=a.computeLayerSpacing(y);var et=y.nodeSpacing,ot=a.computeNodeIndent(y),ft=Se||ke?0:ot/2,jt=y.rowSpacing,Dt=0;(Se||ke||y.hm||y.im&&y.maxGenerationCount===1)&&(Dt=Math.max(0,y.rowIndent)),Se=y.width;var Ht=y.height,Zt=0,Jt=0,qt=0,hn=0,ir=0,mr=0,hr=0,Qn=0,Bn=0,ei=0;if(se&&!Vg(ge)&&135<b&&E.reverse(),Vg(ge))if(1<ne)for(var Yr=0;Yr<ne;Yr++){var Ji=E[Yr],Eo=Ji.Da;Yr%2===0&&Yr!==ne-1?Bn=Math.max(Bn,(x?Eo.width:Eo.height)+a.computeBusNodeSpacing(Ji)-et):Yr%2!==0&&(ei=Math.max(ei,(x?Eo.width:Eo.height)+a.computeBusNodeSpacing(Ji)-et))}else ne===1&&(Bn=x?E[0].Da.width:E[0].Da.height);if(se)switch(ge){case Oh:case jc:Jt=135>b?hx(a,y,E,Bn,Zt,Jt):dx(a,y,E,Bn,Zt,Jt),Bn=Jt.x,Zt=Jt.width,Jt=Jt.height;break;case kh:for(Ge=0;Ge<ne;Ge++)ft=E[Ge],qt=ft.Da,ei=hr===0?0:jt,x?(ft.S.h(te-qt.width,ir+ei),Zt=Math.max(Zt,qt.width),Jt=Math.max(Jt,ir+ei+qt.height),ir+=ei+qt.height):(ft.S.h(hn+ei,te-qt.height),Zt=Math.max(Zt,hn+ei+qt.width),Jt=Math.max(Jt,qt.height),hn+=ei+qt.width),hr++;break;case ih:for(te=0;te<ne;te++)Ge=E[te],ft=Ge.Da,qt=hr===0?0:jt,x?(Ge.S.h(et/2+y.focus.x,ir+qt),Zt=Math.max(Zt,ft.width),Jt=Math.max(Jt,ir+qt+ft.height),ir+=qt+ft.height):(Ge.S.h(hn+qt,et/2+y.focus.y),Zt=Math.max(Zt,hn+qt+ft.width),Jt=Math.max(Jt,ft.height),hn+=qt+ft.width),hr++}else for(ei=0;ei<ne;ei++)Yr=E[ei],Ji=Yr.Da,x?(0<Ge&&0<hr&&hn+et+Ji.width>Ge&&(hn<te&&_d(y,ge,te-hn,0,Qn,ei-1),mr++,hr=0,Qn=ei,qt=Jt,hn=0,ir=135<b?-Jt-jt:Jt+jt),Eo=hr===0?ft:et,Iv(a,Yr,0,ir),Yr.S.h(hn+Eo,ir),Zt=Math.max(Zt,hn+Eo+Ji.width),Jt=Math.max(Jt,qt+(mr===0?0:jt)+Ji.height),hn+=Eo+Ji.width):(0<Ge&&0<hr&&ir+et+Ji.height>Ge&&(ir<te&&_d(y,ge,0,te-ir,Qn,ei-1),mr++,hr=0,Qn=ei,qt=Zt,ir=0,hn=135<b?-Zt-jt:Zt+jt),Eo=hr===0?ft:et,Iv(a,Yr,hn,0),Yr.S.h(hn,ir+Eo),Jt=Math.max(Jt,ir+Eo+Ji.height),Zt=Math.max(Zt,qt+(mr===0?0:jt)+Ji.width),ir+=Eo+Ji.height),hr++;switch(0<mr&&(x?(Jt+=Math.max(0,he),hn<Zt&&_d(y,ge,Zt-hn,0,Qn,ne-1),0<Dt&&(ke||Df(y,Dt,0,0,ne-1),Zt+=Dt)):(Zt+=Math.max(0,he),ir<Jt&&_d(y,ge,0,Jt-ir,Qn,ne-1),0<Dt&&(ke||Df(y,0,Dt,0,ne-1),Jt+=Dt))),Dt=ke=0,ge){case kp:x?ke+=Zt/2-y.focus.x-ot/2:Dt+=Jt/2-y.focus.y-ot/2;break;case kf:0<mr?x?ke+=Zt/2-y.focus.x-ot/2:Dt+=Jt/2-y.focus.y-ot/2:x?(a=E[0].S.x+E[0].la.x,ke+=a+(E[ne-1].S.x+E[ne-1].la.x+2*E[ne-1].focus.x-a)/2-y.focus.x-ot/2):(a=E[0].S.y+E[0].la.y,Dt+=a+(E[ne-1].S.y+E[ne-1].la.y+2*E[ne-1].focus.y-a)/2-y.focus.y-ot/2);break;case Bc:x?(ke-=ot,Zt+=ot):(Dt-=ot,Jt+=ot);break;case Ic:x?(ke+=Zt-y.width+ot,Zt+=ot):(Dt+=Jt-y.height+ot,Jt+=ot);break;case Oh:case jc:x?1<ne?ke+=Bn+et/2-y.focus.x:ke+=E[0].focus.x-y.focus.x+E[0].la.x:1<ne?Dt+=Bn+et/2-y.focus.y:Dt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case kh:x?ke+=Zt+et/2-y.focus.x:Dt+=Jt+et/2-y.focus.y;break;case ih:break;default:a=a.customAlignment(y,ke,Dt,Zt,Jt),ke=a[0],Dt=a[1],Zt=a[2],Jt=a[3]}for(a=0;a<ne;a++)ot=E[a],x?ot.S.h(ot.S.x+ot.la.x-ke,ot.S.y+(135<b?(se?-Jt:-ot.Da.height)+ot.la.y-he:Ht+he+ot.la.y)):ot.S.h(ot.S.x+(135<b?(se?-Zt:-ot.Da.width)+ot.la.x-he:Se+he+ot.la.x),ot.S.y+ot.la.y-Dt);x?(Zt=Fy(y,Zt,ke),0>ke&&(ke=0),135<b&&(Dt+=Jt+he),Jt=Math.max(Math.max(Jt,Ht),Jt+Ht+he)):(135<b&&(ke+=Zt+he),Zt=Math.max(Math.max(Zt,Se),Zt+Se+he),Jt=Dy(y,Jt,Dt),0>Dt&&(Dt=0)),y.la.h(ke,Dt),y.Da.h(Zt,Jt)}}Mi.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 Mn(b,0,E,te);if(ne===1)return y=x[0],E=y.Da.width,te=y.Da.height,new Mn(b,0,E,te);for(var se=y.nodeSpacing,he=y.rowSpacing,ge=Bu(y)===90,Se=0,ke=0,Ge=0,et=0;et<ne;et++)if(!(et%2!==0||1<ne&&et===ne-1)){var ot=x[et],ft=ot.Da,jt=Se===0?0:he;if(ge){var Dt=a.computeBusNodeSpacing(ot)-se;ot.S.h(b-(ft.width+Dt),Ge+jt),E=Math.max(E,ft.width+Dt),te=Math.max(te,Ge+jt+ft.height),Ge+=jt+ft.height}else Dt=a.computeBusNodeSpacing(ot)-se,ot.S.h(ke+jt,b-(ft.height+Dt)),te=Math.max(te,ft.height+Dt),E=Math.max(E,ke+jt+ft.width),ke+=jt+ft.width;Se++}for(Se=0,ot=ke,et=Ge,ge?(ke=b+se,Ge=0):(ke=0,Ge=b+se),ft=0;ft<ne;ft++)if(ft%2!==0){jt=x[ft],Dt=jt.Da;var Ht=Se===0?0:he;if(ge){var Zt=a.computeBusNodeSpacing(jt)-se;jt.S.h(ke+Zt,Ge+Ht),E=Math.max(E,ke+Dt.width+Zt),te=Math.max(te,Ge+Ht+Dt.height),Ge+=Ht+Dt.height}else Zt=a.computeBusNodeSpacing(jt)-se,jt.S.h(ke+Ht,Ge+Zt),E=Math.max(E,ke+Ht+Dt.width),te=Math.max(te,Ge+Dt.height+Zt),ke+=Ht+Dt.width;Se++}return 1<ne&&ne%2===1&&(x=x[ne-1],ne=x.Da,a=a.computeBusLastRowSpacing(x,ge?Math.max(Math.abs(et),Math.abs(Ge)):Math.max(Math.abs(ot),Math.abs(ke))),ge?(x.S.h(b+se/2-x.focus.x-x.la.x,te+a),ge=b+se/2-x.focus.x-x.la.x,E=Math.max(E,ge+ne.width),0>ge&&(E-=ge),te=Math.max(te,Math.max(et,Ge)+a+ne.height),0>x.S.x&&(b=Bv(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(ot,ke)+a+ne.width),Ge=b+se/2-x.focus.y-x.la.y,te=Math.max(te,Ge+ne.height),0>Ge&&(te-=Ge),0>x.S.y&&(b=Bv(y,x.S.y,!0,b,se)))),new Mn(b,0,E,te)}function dx(a,y,x,b,E,te){var ne=x.length;if(ne===0)return new Mn(b,0,E,te);if(ne===1)return x=x[0],E=x.Da.width,te=x.Da.height,new Mn(b,0,E,te);for(var se=y.nodeSpacing,he=y.rowSpacing,ge=Bu(y)===270,Se=0,ke=0,Ge=0,et=0;et<ne;et++)if(!(et%2!==0||1<ne&&et===ne-1)){var ot=x[et],ft=ot.Da,jt=Se===0?0:he;if(ge){var Dt=a.computeBusNodeSpacing(ot)-se;Ge-=jt+ft.height,ot.S.h(b-(ft.width+Dt),Ge),E=Math.max(E,ft.width+Dt),te=Math.max(te,Math.abs(Ge))}else Dt=a.computeBusNodeSpacing(ot)-se,ke-=jt+ft.width,ot.S.h(ke,b-(ft.height+Dt)),te=Math.max(te,ft.height+Dt),E=Math.max(E,Math.abs(ke));Se++}for(Se=0,ot=ke,et=Ge,ge?(ke=b+se,Ge=0):(ke=0,Ge=b+se),ft=0;ft<ne;ft++)if(ft%2!==0){jt=x[ft],Dt=jt.Da;var Ht=Se===0?0:he;if(ge){var Zt=a.computeBusNodeSpacing(jt)-se;Ge-=Ht+Dt.height,jt.S.h(ke+Zt,Ge),E=Math.max(E,ke+Dt.width+Zt),te=Math.max(te,Math.abs(Ge))}else Zt=a.computeBusNodeSpacing(jt)-se,ke-=Ht+Dt.width,jt.S.h(ke,Ge+Zt),te=Math.max(te,Ge+Dt.height+Zt),E=Math.max(E,Math.abs(ke));Se++}for(1<ne&&ne%2===1&&(he=x[ne-1],Se=he.Da,a=a.computeBusLastRowSpacing(he,ge?Math.max(Math.abs(et),Math.abs(Ge)):Math.max(Math.abs(ot),Math.abs(ke))),ge?(he.S.h(b+se/2-he.focus.x-he.la.x,-te-Se.height-a),ke=b+se/2-he.focus.x-he.la.x,E=Math.max(E,ke+Se.width),0>ke&&(E-=ke),te=Math.max(te,Math.abs(Math.min(et,Ge))+a+Se.height),0>he.S.x&&(b=Bv(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(ot,ke))+a+Se.width),Ge=b+se/2-he.focus.y-he.la.y,te=Math.max(te,Ge+Se.height),0>Ge&&(te-=Ge),0>he.S.y&&(b=Bv(y,he.S.y,!0,b,se)))),y=0;y<ne;y++)se=x[y],ge?se.S.h(se.S.x,se.S.y+te):se.S.h(se.S.x+E,se.S.y);return new Mn(b,0,E,te)}Mi.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Mi.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Bv(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 Fy(a,y,x){switch(a.alignment){case kf:case kp:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Bc:return a.width>y?a.width:y;case Ic:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Oh:case jc:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case kh: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 Dy(a,y,x){switch(a.alignment){case kf:case kp:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Bc:return a.height>y?a.height:y;case Ic:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Oh:case jc:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case kh: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 Oy(a,y,x){switch(a){case kp:y/=2,x/=2;break;case kf:y/=2,x/=2;break;case Bc:x=y=0;break;case Ic:break;default:Gt("Unhandled alignment value "+a.toString())}return new kt(y,x)}function _d(a,y,x,b,E,te){y=Oy(y,x,b),Df(a,y.x,y.y,E,te)}function Df(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 Iv(a,y,x,b){var E=y.parent;switch(a.ud){case Nc:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Of:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Gt("Unhandled path value "+a.ud.toString())}}function jv(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=Bu(y),ge=he===90||he===270,Se=y.nodeSpacing;y=b;var ke=E;b=te;var Ge=ne,et=x.Yo,ot=x.kp;ne=x.Da;var ft=ge?Math.max(Ge,ne.height):Math.max(b,ne.width);if((et===null||he!==Bu(x))&&(et=yl(a,2),ot=yl(a,2),ge?(et[0].h(0,0),et[1].h(0,ne.height),ot[0].h(ne.width,0),ot[1].h(ot[0].x,et[1].y)):(et[0].h(0,0),et[1].h(ne.width,0),ot[0].h(0,ne.height),ot[1].h(et[1].x,ot[0].y))),ge){if(Ge=9999999,!(ke===null||2>ke.length||et===null||2>et.length))for(E=x=0;x<ke.length&&E<et.length;){te=ke[x];var jt=et[E];he=jt.x,ge=jt.y,he+=b;var Dt=te;x+1<ke.length&&(Dt=ke[x+1]);var Ht=jt;jt=Ht.x,Ht=Ht.y,E+1<et.length&&(Ht=et[E+1],jt=Ht.x,Ht=Ht.y,jt+=b);var Zt=Ge;te.y===ge?Zt=he-te.x:te.y>ge&&te.y<Ht?Zt=he+(te.y-ge)/(Ht-ge)*(jt-he)-te.x:ge>te.y&&ge<Dt.y&&(Zt=he-(te.x+(ge-te.y)/(Dt.y-te.y)*(Dt.x-te.x))),Zt<Ge&&(Ge=Zt),Dt.y<=te.y?x++:Ht<=ge?E++:(Dt.y<=Ht&&x++,Ht<=Dt.y&&E++)}if(Ge=b-Ge,Ge+=Se,x=et,E=Ge,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;)ge=x[te++],Se[b++].h(ge.x+E,ge.y);for(;he<y.length;)ge=y[he++],Se[b++].h(ge.x,ge.y);for(he=y[y.length-1].y;te<x.length&&x[te].y<=he;)te++;for(;te<x.length&&x[te].y>he;)ge=x[te++],Se[b++].h(ge.x+E,ge.y);for(x=yl(a,b),he=0;he<b;he++)x[he].assign(Se[he]);$u(a,Se),b=x}if(te=ot,he=Ge,ke===null||2>ke.length||te===null||2>te.length)E=null;else{for(Se=yl(a,ke.length+te.length),E=ge=x=0;x<ke.length&&ke[x].y<te[0].y;)Dt=ke[x++],Se[E++].h(Dt.x,Dt.y);for(;ge<te.length;)Dt=te[ge++],Se[E++].h(Dt.x+he,Dt.y);for(te=te[te.length-1].y;x<ke.length&&ke[x].y<=te;)x++;for(;x<ke.length&&ke[x].y>te;)he=ke[x++],Se[E++].h(he.x,he.y);for(te=yl(a,E),x=0;x<E;x++)te[x].assign(Se[x]);$u(a,Se),E=te}return te=Math.max(0,Ge)+ne.width,ne=ft,$u(a,y),$u(a,et),$u(a,ke),$u(a,ot),se[0]=b,se[1]=E,new Mn(Ge,0,te,ne)}if(b=9999999,!(ke===null||2>ke.length||et===null||2>et.length))for(E=x=0;x<ke.length&&E<et.length;)te=ke[x],jt=et[E],he=jt.x,ge=jt.y,ge+=Ge,Dt=te,x+1<ke.length&&(Dt=ke[x+1]),Ht=jt,jt=Ht.x,Ht=Ht.y,E+1<et.length&&(Ht=et[E+1],jt=Ht.x,Ht=Ht.y,Ht+=Ge),Zt=b,te.x===he?Zt=ge-te.y:te.x>he&&te.x<jt?Zt=ge+(te.x-he)/(jt-he)*(Ht-ge)-te.y:he>te.x&&he<Dt.x&&(Zt=ge-(te.y+(he-te.x)/(Dt.x-te.x)*(Dt.y-te.y))),Zt<b&&(b=Zt),Dt.x<=te.x?x++:jt<=he?E++:(Dt.x<=jt&&x++,jt<=Dt.x&&E++);if(Ge-=b,Ge+=Se,x=et,E=Ge,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;)ge=x[te++],Se[b++].h(ge.x,ge.y+E);for(;he<y.length;)ge=y[he++],Se[b++].h(ge.x,ge.y);for(he=y[y.length-1].x;te<x.length&&x[te].x<=he;)te++;for(;te<x.length&&x[te].x>he;)ge=x[te++],Se[b++].h(ge.x,ge.y+E);for(x=yl(a,b),he=0;he<b;he++)x[he].assign(Se[he]);$u(a,Se),b=x}if(te=ot,he=Ge,ke===null||2>ke.length||te===null||2>te.length)E=null;else{for(Se=yl(a,ke.length+te.length),E=ge=x=0;x<ke.length&&ke[x].x<te[0].x;)Dt=ke[x++],Se[E++].h(Dt.x,Dt.y);for(;ge<te.length;)Dt=te[ge++],Se[E++].h(Dt.x,Dt.y+he);for(te=te[te.length-1].x;x<ke.length&&ke[x].x<=te;)x++;for(;x<ke.length&&ke[x].x>te;)he=ke[x++],Se[E++].h(he.x,he.y);for(te=yl(a,E),x=0;x<E;x++)te[x].assign(Se[x]);$u(a,Se),E=te}return te=ft,ne=Math.max(0,Ge)+ne.height,$u(a,y),$u(a,et),$u(a,ke),$u(a,ot),se[0]=b,se[1]=E,new Mn(Ge,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 kt;return a}function $u(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Mi.prototype.arrangeTrees=function(){if(this.Rb===Uv)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),ky(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 Op:break;case Xg:a.reverse();break;case Yg:a.sort(this.comparer);break;case Jg:a.sort(this.comparer),a.reverse();break;default:Gt("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(ky(this,E,y+E.la.x,x+E.la.y),this.Rb){case Hv:x+=E.Da.height+this.$d.height;break;case jy:y+=E.Da.width+this.$d.width;break;default:Gt("Unhandled arrangement value "+this.Rb.toString())}}}};function ky(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];ky(a,ne,x+ne.S.x,b+ne.S.y)}}}Mi.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Mi.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Mi.prototype.Gu=function(){if(this.layerStyle===Gv){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 kt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new kt(-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 Mn(0,te,x,se))):this.angle===90?(E.push(new Mn(0,te,x,se)),te+=se):this.angle===180?(te-=se,E.push(new Mn(te,0,se,x))):(E.push(new Mn(te,0,se,x)),te+=se)}this.commitLayers(E,b)}},Mi.prototype.commitLayers=function(){},Mi.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Mi.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])}}Mi.prototype.setPortSpots=function(a){var y=a.alignment;if(dd(y)){var x=this.ud===Nc,b=Bu(a);switch(b){case 0:var E=Ya;break;case 90:E=Ua;break;case 180:E=La;break;default:E=ga}var te=a.children,ne=te.length;switch(y){case Oh:case jc: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?La:ga;if(ne===1||y===ne-1&&ne%2===1)switch(b){case 0:he=La;break;case 90:he=ga;break;case 180:he=Ya;break;default:he=Ua}else y%2===0&&(he=b===90||b===270?Ya:Ua);x?(a.setsPortSpot&&(se.fromSpot=E),a.setsChildPortSpot&&(se.toSpot=he)):(a.setsPortSpot&&(se.fromSpot=he),a.setsChildPortSpot&&(se.toSpot=E))}}break;case kh:for(b=b===90||b===270?Ya:Ua,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?La:ga,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=Bu(a),this.ud===Nc){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=Ya;break;case 90:b.fromSpot=Ua;break;case 180:b.fromSpot=La;break;default:b.fromSpot=ga}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=La;break;case 90:b.toSpot=ga;break;case 180:b.toSpot=Ya;break;default:b.toSpot=Ua}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=Ya;break;case 90:b.toSpot=Ua;break;case 180:b.toSpot=La;break;default:b.toSpot=ga}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=La;break;case 90:b.fromSpot=ga;break;case 180:b.fromSpot=Ya;break;default:b.fromSpot=Ua}else b.fromSpot=a.childPortSpot}};function Bu(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Mi.prototype.computeLayerSpacing=function(a){var y=Bu(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},Mi.prototype.computeNodeIndent=function(a){var y=Bu(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)},Tt.Object.defineProperties(Mi.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!==Wv&&a!==By&&a!==Ny&&a!==Iy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==zy&&a!==Gv||(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!==Hv&&a!==jy&&a!==Uv||(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!==Op&&a!==Xg&&a!==Yg&&!Jg||(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()):Gt("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!==zv&&a!==Qg||(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!==Op&&a!==Xg&&a!==Yg&&!Jg||(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!==zv&&a!==Qg||(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 Rv=new wn(Mi,"PathDefault",-1),Nc=new wn(Mi,"PathDestination",0),Of=new wn(Mi,"PathSource",1),Op=new wn(Mi,"SortingForwards",10),Xg=new wn(Mi,"SortingReverse",11),Yg=new wn(Mi,"SortingAscending",12),Jg=new wn(Mi,"SortingDescending",13),kp=new wn(Mi,"AlignmentCenterSubtrees",20),kf=new wn(Mi,"AlignmentCenterChildren",21),Bc=new wn(Mi,"AlignmentStart",22),Ic=new wn(Mi,"AlignmentEnd",23),Oh=new wn(Mi,"AlignmentBus",24),jc=new wn(Mi,"AlignmentBusBranching",25),kh=new wn(Mi,"AlignmentTopLeftBus",26),ih=new wn(Mi,"AlignmentBottomRightBus",27),zv=new wn(Mi,"CompactionNone",30),Qg=new wn(Mi,"CompactionBlock",31),Wv=new wn(Mi,"StyleLayered",40),Ny=new wn(Mi,"StyleLastParents",41),By=new wn(Mi,"StyleAlternating",42),Iy=new wn(Mi,"StyleRootOnly",43),Hv=new wn(Mi,"ArrangementVertical",50),jy=new wn(Mi,"ArrangementHorizontal",51),Uv=new wn(Mi,"ArrangementFixedRoots",52),Ry=new wn(Mi,"LayerIndividual",60),zy=new wn(Mi,"LayerSiblings",61),Gv=new wn(Mi,"LayerUniform",62);Mi.className="TreeLayout",Mi.PathDefault=Rv,Mi.PathDestination=Nc,Mi.PathSource=Of,Mi.SortingForwards=Op,Mi.SortingReverse=Xg,Mi.SortingAscending=Yg,Mi.SortingDescending=Jg,Mi.AlignmentCenterSubtrees=kp,Mi.AlignmentCenterChildren=kf,Mi.AlignmentStart=Bc,Mi.AlignmentEnd=Ic,Mi.AlignmentBus=Oh,Mi.AlignmentBusBranching=jc,Mi.AlignmentTopLeftBus=kh,Mi.AlignmentBottomRightBus=ih,Mi.CompactionNone=zv,Mi.CompactionBlock=Qg,Mi.StyleLayered=Wv,Mi.StyleLastParents=Ny,Mi.StyleAlternating=By,Mi.StyleRootOnly=Iy,Mi.ArrangementVertical=Hv,Mi.ArrangementHorizontal=jy,Mi.ArrangementFixedRoots=Uv,Mi.LayerIndividual=Ry,Mi.LayerSiblings=zy,Mi.LayerUniform=Gv;function Nf(a){To.call(this,a)}Xt(Nf,To),Nf.prototype.createVertex=function(){return new wu(this)},Nf.prototype.createEdge=function(){return new Np(this)},Nf.className="TreeNetwork";function wu(a){Va.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 kt(0,0),this.Da=new qn(0,0),this.la=new kt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Op,this.hd=oy,this.Kb=0,this.Jb=kf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Qg,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=io,this.wr=!0,this.Dp=io}Xt(wu,Va),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)},Tt.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 Np(a){Tl.call(this,a),this.$t=new kt(0,0)}Xt(Np,Tl),Np.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 Nc:x=this.fromVertex,b=this.toVertex;break;case Of:x=this.toVertex,b=this.fromVertex;break;default:Gt("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=Bu(x),ne=y.computeLayerSpacing(x),se=x.rowSpacing;a.vg();var he=a.curve===Jl,ge=a.isOrthogonal,Se;if(a.uh(),ge||he){for(Se=2;4<a.pointsCount;)a.pv(2);var ke=a.i(1),Ge=a.i(2)}else{for(Se=1;3<a.pointsCount;)a.pv(1);ke=a.i(0),Ge=a.i(a.pointsCount-1)}var et=a.i(a.pointsCount-1);te===0?(x.alignment===Ic?(te=b.bottom+E.y,E.y===0&&ke.y>et.y+x.rowIndent&&(te=Math.min(te,Math.max(ke.y,te-y.computeNodeIndent(x))))):x.alignment===Bc?(te=b.top+E.y,E.y===0&&ke.y<et.y-x.rowIndent&&(te=Math.max(te,Math.min(ke.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,ke.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,Ge.x,te)):(ge&&(a.m(Se,b.right+ne/2,ke.y),Se++),a.m(Se,b.right+ne/2,te),Se++,a.m(Se,b.right+ne+E.x-(ge?se/2:se),te),Se++,ge&&a.m(Se,a.i(Se-1).x,Ge.y))):te===90?(x.alignment===Ic?(te=b.right+E.x,E.x===0&&ke.x>et.x+x.rowIndent&&(te=Math.min(te,Math.max(ke.x,te-y.computeNodeIndent(x))))):x.alignment===Bc?(te=b.left+E.x,E.x===0&&ke.x<et.x-x.rowIndent&&(te=Math.max(te,Math.min(ke.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,ke.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,Ge.y)):(ge&&(a.m(Se,ke.x,b.bottom+ne/2),Se++),a.m(Se,te,b.bottom+ne/2),Se++,a.m(Se,te,b.bottom+ne+E.y-(ge?se/2:se)),Se++,ge&&a.m(Se,Ge.x,a.i(Se-1).y))):te===180?(x.alignment===Ic?(te=b.bottom+E.y,E.y===0&&ke.y>et.y+x.rowIndent&&(te=Math.min(te,Math.max(ke.y,te-y.computeNodeIndent(x))))):x.alignment===Bc?(te=b.top+E.y,E.y===0&&ke.y<et.y-x.rowIndent&&(te=Math.max(te,Math.min(ke.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,ke.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,Ge.x,te)):(ge&&(a.m(Se,b.left-ne/2,ke.y),Se++),a.m(Se,b.left-ne/2,te),Se++,a.m(Se,b.left-ne+E.x+(ge?se/2:se),te),Se++,ge&&a.m(Se,a.i(Se-1).x,Ge.y))):te===270?(x.alignment===Ic?(te=b.right+E.x,E.x===0&&ke.x>et.x+x.rowIndent&&(te=Math.min(te,Math.max(ke.x,te-y.computeNodeIndent(x))))):x.alignment===Bc?(te=b.left+E.x,E.x===0&&ke.x<et.x-x.rowIndent&&(te=Math.max(te,Math.min(ke.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,ke.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,Ge.y)):(ge&&(a.m(Se,ke.x,b.top-ne/2),Se++),a.m(Se,te,b.top-ne/2),Se++,a.m(Se,te,b.top-ne+E.y+(ge?se/2:se)),Se++,ge&&a.m(Se,Ge.x,a.i(Se-1).y))):Gt("Invalid angle "+te),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Bu(x),y!==Bu(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===Jl,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()))}}},Tt.Object.defineProperties(Np.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)}}}),Np.className="TreeEdge",Wo.prototype.initializeStandardTools=function(){this.gb("Action",new ui,this.mouseDownTools),this.gb("Relinking",new Sr,this.mouseDownTools),this.gb("LinkReshaping",new Pr,this.mouseDownTools),this.gb("Rotating",new Di,this.mouseDownTools),this.gb("Resizing",new ii,this.mouseDownTools),this.gb("Linking",new lr,this.mouseMoveTools),this.gb("Dragging",new Jo,this.mouseMoveTools),this.gb("DragSelecting",new li,this.mouseMoveTools),this.gb("Panning",new Ur,this.mouseMoveTools),this.gb("ContextMenu",new $i,this.mouseUpTools),this.gb("TextEditing",new Gi,this.mouseUpTools),this.gb("ClickCreating",new Ai,this.mouseUpTools),this.gb("ClickSelecting",new mo,this.mouseUpTools)},cc("Horizontal",new ym),cc("Spot",new xm),cc("Table",new bm),cc("Viewbox",new Em),cc("TableRow",new Cm),cc("TableColumn",new Pm),cc("Graduated",new dg),cc("Grid",new hg),rp.add("GraphLinksModel",ns),rp.add("TreeModel",uu);var Zv=Bt.go,Wy={get licenseKey(){return cn.licenseKey},set licenseKey(a){cn.licenseKey=a},get version(){return cn.version},Group:ri,EnumValue:wn,List:Dn,Set:kn,Map:pr,Point:kt,Size:qn,Rect:Mn,Margin:kr,Spot:wr,Geometry:$n,PathFigure:Ga,PathSegment:Zi,InputEvent:bs,DiagramEvent:Vc,ChangedEvent:Zo,Model:xr,GraphLinksModel:ji,TreeModel:Qs,Binding:Pa,Transaction:Ja,UndoManager:Yo,CommandHandler:It,Tool:Ui,DraggingTool:Jo,DraggingInfo:$c,DraggingOptions:de,LinkingBaseTool:Sn,LinkingTool:lr,RelinkingTool:Sr,LinkReshapingTool:Pr,ResizingTool:ii,RotatingTool:Di,ClickSelectingTool:mo,ActionTool:ui,ClickCreatingTool:Ai,HTMLInfo:yi,ContextMenuTool:$i,DragSelectingTool:li,PanningTool:Ur,TextEditingTool:Gi,ToolManager:Wo,Animation:ra,AnimationManager:ea,AnimationTrigger:Al,Layer:Vo,Diagram:cn,Palette:Fe,Overview:Ie,Brush:uo,GraphObject:nn,Panel:Xn,RowColumnDefinition:ja,Shape:pi,TextBlock:Lo,Picture:ul,Part:Nr,Adornment:Vi,Node:sr,Link:_n,Placeholder:Vs,Layout:Go,LayoutNetwork:To,LayoutVertex:Va,LayoutEdge:Tl,GridLayout:ds,PanelLayout:Ka,CircularLayout:$o,CircularNetwork:Tp,CircularVertex:Wg,CircularEdge:Pv,ForceDirectedLayout:Ss,ForceDirectedNetwork:Ff,ForceDirectedVertex:Hg,ForceDirectedEdge:Ug,LayeredDigraphLayout:po,LayeredDigraphNetwork:Dp,LayeredDigraphVertex:hu,LayeredDigraphEdge:Kg,TreeLayout:Mi,TreeNetwork:Nf,TreeVertex:wu,TreeEdge:Np};typeof Zv=="object"&&Zv.version&&rr("WARNING: a `go` object on the root object is already defined. "+("Debug"in Zv?"debug ":"")+"version: "+Zv.version+", replaced with version: "+Wy.version),cn.prototype.go=Wy,Bt.go=Wy,typeof Nn.exports=="object"&&(Nn.exports=typeof ze.g!="undefined"?ze.g.go:self.go)}();var We=typeof ze.g!="undefined"?ze.g.go:self.go;const xt=typeof ze.g!="undefined"?ze.g.go:self.go,oe=xt.Group,Ue=xt.EnumValue,Oe=xt.List,ve=xt.Set,ce=xt.Map,Ce=xt.Point,Ee=xt.Size,ye=xt.Rect,be=xt.Margin,me=xt.Spot,xe=xt.Geometry,fe=xt.PathFigure,z=xt.PathSegment,ee=xt.InputEvent,ae=xt.DiagramEvent,re=xt.ChangedEvent,le=xt.Model,ue=xt.GraphLinksModel,pe=xt.TreeModel,Pe=xt.Binding,we=xt.Transaction,Ne=xt.UndoManager,Ae=xt.CommandHandler,Te=xt.Tool,Me=xt.DraggingTool,Be=xt.DraggingInfo,Re=xt.LinkingBaseTool,Qe=xt.LinkingTool,He=xt.RelinkingTool,$e=xt.LinkReshapingTool,qe=xt.ResizingTool,ut=xt.RotatingTool,ct=xt.ClickSelectingTool,yt=xt.ActionTool,_e=xt.ClickCreatingTool,st=xt.HTMLInfo,pt=xt.ContextMenuTool,bt=xt.DragSelectingTool,wt=xt.PanningTool,mt=xt.TextEditingTool,vt=xt.ToolManager,St=xt.Animation,Nt=xt.AnimationManager,Ft=xt.AnimationTrigger,Kt=xt.Layer,Pt=xt.Diagram,Et=xt.Palette,at=xt.Overview,Ct=xt.Brush,nt=xt.GraphObject,ht=xt.Panel,Mt=xt.RowColumnDefinition,gt=xt.Shape,rt=xt.TextBlock,Je=xt.TextBlockMetrics,Xe=xt.Picture,Ve=xt.Part,tt=xt.Adornment,Ze=xt.Node,je=xt.Link,De=xt.Placeholder,Ye=xt.Layout,dt=xt.LayoutNetwork,Ke=xt.LayoutVertex,At=xt.LayoutEdge,zt=xt.GridLayout,_t=xt.PanelLayout,Ot=xt.CircularLayout,Vt=xt.CircularNetwork,en=xt.CircularVertex,on=xt.CircularEdge,fn=xt.ForceDirectedLayout,jn=xt.ForceDirectedNetwork,er=xt.ForceDirectedVertex,tr=xt.ForceDirectedEdge,ur=xt.LayeredDigraphLayout,Tr=xt.LayeredDigraphNetwork,Lr=xt.LayeredDigraphVertex,Ar=xt.LayeredDigraphEdge,Gr=xt.TreeLayout,Kr=xt.TreeNetwork,Mr=xt.TreeVertex,fi=xt.TreeEdge,Jr=xt.version},17115:function(Nn,mn,ze){"use strict";ze.d(mn,{ZP:function(){return ce}});var We=ze(52487),xt=ze(59301),oe=ze(47273),Ue=0,Oe=(0,oe.Z)();function ve(){var Ce;return Oe?(Ce=Ue,Ue+=1):Ce="TEST_OR_SSR",Ce}function ce(Ce){var Ee=xt.useState(),ye=(0,We.Z)(Ee,2),be=ye[0],me=ye[1];return xt.useEffect(function(){me("rc_select_".concat(ve()))},[]),Ce||be}},77861:function(Nn,mn,ze){"use strict";ze.d(mn,{Ac:function(){return Ye},Xo:function(){return tr},Wx:function(){return Tr},ZP:function(){return pn},lk:function(){return pe}});var We=ze(72308),xt=ze(80702),oe=ze(49618),Ue=ze(77321),Oe=ze(52487),ve=ze(74416),ce=ze(62853),Ce=ze(18929),Ee=ze(48736),ye=ze(59301),be=ze(92310),me=ze.n(be),xe=ze(34280),fe=ze(49658),z=ze(10228),ee=ze(8654),ae=function(Bt){var un=Bt.className,bn=Bt.customizeIcon,On=Bt.customizeIconProps,Zn=Bt.onMouseDown,Gt=Bt.onClick,An=Bt.children,Kn;return typeof bn=="function"?Kn=bn(On):Kn=bn,ye.createElement("span",{className:un,onMouseDown:function(xn){xn.preventDefault(),Zn&&Zn(xn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Gt,"aria-hidden":!0},Kn!==void 0?Kn:ye.createElement("span",{className:me()(un.split(/\s+/).map(function(rr){return"".concat(rr,"-icon")}))},An))},re=ae;function le(Yt,Bt,un,bn,On){var Zn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Gt=arguments.length>6?arguments[6]:void 0,An=arguments.length>7?arguments[7]:void 0,Kn=ye.useMemo(function(){if((0,ce.Z)(bn)==="object")return bn.clearIcon;if(On)return On},[bn,On]),rr=ye.useMemo(function(){return!!(!Zn&&bn&&(un.length||Gt)&&!(An==="combobox"&&Gt===""))},[bn,Zn,un.length,Gt,An]);return{allowClear:rr,clearIcon:ye.createElement(re,{className:"".concat(Yt,"-clear"),onMouseDown:Bt,customizeIcon:Kn},"\xD7")}}var ue=ye.createContext(null);function pe(){return ye.useContext(ue)}function Pe(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Bt=ye.useState(!1),un=(0,Oe.Z)(Bt,2),bn=un[0],On=un[1],Zn=ye.useRef(null),Gt=function(){window.clearTimeout(Zn.current)};ye.useEffect(function(){return Gt},[]);var An=function(rr,xn){Gt(),Zn.current=window.setTimeout(function(){On(rr),xn&&xn()},Yt)};return[bn,An,Gt]}function we(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Bt=ye.useRef(null),un=ye.useRef(null);ye.useEffect(function(){return function(){window.clearTimeout(un.current)}},[]);function bn(On){(On||Bt.current===null)&&(Bt.current=On),window.clearTimeout(un.current),un.current=window.setTimeout(function(){Bt.current=null},Yt)}return[function(){return Bt.current},bn]}function Ne(Yt,Bt,un,bn){var On=ye.useRef(null);On.current={open:Bt,triggerOpen:un,customizedTrigger:bn},ye.useEffect(function(){function Zn(Gt){var An;if(!((An=On.current)!==null&&An!==void 0&&An.customizedTrigger)){var Kn=Gt.target;Kn.shadowRoot&&Gt.composed&&(Kn=Gt.composedPath()[0]||Kn),On.current.open&&Yt().filter(function(rr){return rr}).every(function(rr){return!rr.contains(Kn)&&rr!==Kn})&&On.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Zn),function(){return window.removeEventListener("mousedown",Zn)}},[])}var Ae=ze(26112),Te=ze(11780),Me=function(Bt,un){var bn,On,Zn=Bt.prefixCls,Gt=Bt.id,An=Bt.inputElement,Kn=Bt.disabled,rr=Bt.tabIndex,xn=Bt.autoFocus,Cn=Bt.autoComplete,tn=Bt.editable,gn=Bt.activeDescendantId,yn=Bt.value,vn=Bt.maxLength,Ln=Bt.onKeyDown,Fn=Bt.onMouseDown,Gn=Bt.onChange,Hn=Bt.onPaste,gr=Bt.onCompositionStart,dn=Bt.onCompositionEnd,Dr=Bt.open,zr=Bt.attrs,Qr=An||ye.createElement("input",null),wn=Qr,Yn=wn.ref,cr=wn.props,Fr=cr.onKeyDown,fr=cr.onChange,br=cr.onMouseDown,Hr=cr.onCompositionStart,Rr=cr.onCompositionEnd,Cr=cr.style;return(0,Ee.Kp)(!("maxLength"in Qr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Qr=ye.cloneElement(Qr,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({type:"search"},cr),{},{id:Gt,ref:(0,ee.sQ)(un,Yn),disabled:Kn,tabIndex:rr,autoComplete:Cn||"off",autoFocus:xn,className:me()("".concat(Zn,"-selection-search-input"),(bn=Qr)===null||bn===void 0||(On=bn.props)===null||On===void 0?void 0:On.className),role:"combobox","aria-label":"Search","aria-expanded":Dr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Gt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Gt,"_list"),"aria-activedescendant":Dr?gn:void 0},zr),{},{value:tn?yn:"",maxLength:vn,readOnly:!tn,unselectable:tn?null:"on",style:(0,Ue.Z)((0,Ue.Z)({},Cr),{},{opacity:tn?null:0}),onKeyDown:function(Dn){Ln(Dn),Fr&&Fr(Dn)},onMouseDown:function(Dn){Fn(Dn),br&&br(Dn)},onChange:function(Dn){Gn(Dn),fr&&fr(Dn)},onCompositionStart:function(Dn){gr(Dn),Hr&&Hr(Dn)},onCompositionEnd:function(Dn){dn(Dn),Rr&&Rr(Dn)},onPaste:Hn})),Qr},Be=ye.forwardRef(Me);Be.displayName="Input";var Re=Be;function Qe(Yt){return Array.isArray(Yt)?Yt:Yt!==void 0?[Yt]:[]}var He=typeof window!="undefined"&&window.document&&window.document.documentElement,$e=He;function qe(Yt){return Yt!=null}function ut(Yt){return!Yt&&Yt!==0}function ct(Yt){return["string","number"].includes((0,ce.Z)(Yt))}function yt(Yt){var Bt=void 0;return Yt&&(ct(Yt.title)?Bt=Yt.title.toString():ct(Yt.label)&&(Bt=Yt.label.toString())),Bt}function _e(Yt,Bt){$e?ye.useLayoutEffect(Yt,Bt):ye.useEffect(Yt,Bt)}function st(Yt){var Bt;return(Bt=Yt.key)!==null&&Bt!==void 0?Bt:Yt.value}var pt=function(Bt){Bt.preventDefault(),Bt.stopPropagation()},bt=function(Bt){var un=Bt.id,bn=Bt.prefixCls,On=Bt.values,Zn=Bt.open,Gt=Bt.searchValue,An=Bt.autoClearSearchValue,Kn=Bt.inputRef,rr=Bt.placeholder,xn=Bt.disabled,Cn=Bt.mode,tn=Bt.showSearch,gn=Bt.autoFocus,yn=Bt.autoComplete,vn=Bt.activeDescendantId,Ln=Bt.tabIndex,Fn=Bt.removeIcon,Gn=Bt.maxTagCount,Hn=Bt.maxTagTextLength,gr=Bt.maxTagPlaceholder,dn=gr===void 0?function(Li){return"+ ".concat(Li.length," ...")}:gr,Dr=Bt.tagRender,zr=Bt.onToggleOpen,Qr=Bt.onRemove,wn=Bt.onInputChange,Yn=Bt.onInputPaste,cr=Bt.onInputKeyDown,Fr=Bt.onInputMouseDown,fr=Bt.onInputCompositionStart,br=Bt.onInputCompositionEnd,Hr=ye.useRef(null),Rr=(0,ye.useState)(0),Cr=(0,Oe.Z)(Rr,2),Zr=Cr[0],Dn=Cr[1],Ei=(0,ye.useState)(!1),kn=(0,Oe.Z)(Ei,2),ci=kn[0],Ri=kn[1],$r="".concat(bn,"-selection"),Xi=Zn||Cn==="multiple"&&An===!1||Cn==="tags"?Gt:"",Oi=Cn==="tags"||Cn==="multiple"&&An===!1||tn&&(Zn||ci);_e(function(){Dn(Hr.current.scrollWidth)},[Xi]);function Ir(Li,ao,Pi,co,wo){return ye.createElement("span",{className:me()("".concat($r,"-item"),(0,oe.Z)({},"".concat($r,"-item-disabled"),Pi)),title:yt(Li)},ye.createElement("span",{className:"".concat($r,"-item-content")},ao),co&&ye.createElement(re,{className:"".concat($r,"-item-remove"),onMouseDown:pt,onClick:wo,customizeIcon:Fn},"\xD7"))}function jr(Li,ao,Pi,co,wo){var ti=function(Fi){pt(Fi),zr(!Zn)};return ye.createElement("span",{onMouseDown:ti},Dr({label:ao,value:Li,disabled:Pi,closable:co,onClose:wo}))}function xi(Li){var ao=Li.disabled,Pi=Li.label,co=Li.value,wo=!xn&&!ao,ti=Pi;if(typeof Hn=="number"&&(typeof Pi=="string"||typeof Pi=="number")){var hi=String(ti);hi.length>Hn&&(ti="".concat(hi.slice(0,Hn),"..."))}var Fi=function(so){so&&so.stopPropagation(),Qr(Li)};return typeof Dr=="function"?jr(co,ti,ao,wo,Fi):Ir(Li,ti,ao,wo,Fi)}function ki(Li){var ao=typeof dn=="function"?dn(Li):dn;return Ir({title:ao},ao,!1)}var pr=ye.createElement("div",{className:"".concat($r,"-search"),style:{width:Zr},onFocus:function(){Ri(!0)},onBlur:function(){Ri(!1)}},ye.createElement(Re,{ref:Kn,open:Zn,prefixCls:bn,id:un,inputElement:null,disabled:xn,autoFocus:gn,autoComplete:yn,editable:Oi,activeDescendantId:vn,value:Xi,onKeyDown:cr,onMouseDown:Fr,onChange:wn,onPaste:Yn,onCompositionStart:fr,onCompositionEnd:br,tabIndex:Ln,attrs:(0,Ae.Z)(Bt,!0)}),ye.createElement("span",{ref:Hr,className:"".concat($r,"-search-mirror"),"aria-hidden":!0},Xi,"\xA0")),kt=ye.createElement(Te.Z,{prefixCls:"".concat($r,"-overflow"),data:On,renderItem:xi,renderRest:ki,suffix:pr,itemKey:st,maxCount:Gn});return ye.createElement(ye.Fragment,null,kt,!On.length&&!Xi&&ye.createElement("span",{className:"".concat($r,"-placeholder")},rr))},wt=bt,mt=function(Bt){var un=Bt.inputElement,bn=Bt.prefixCls,On=Bt.id,Zn=Bt.inputRef,Gt=Bt.disabled,An=Bt.autoFocus,Kn=Bt.autoComplete,rr=Bt.activeDescendantId,xn=Bt.mode,Cn=Bt.open,tn=Bt.values,gn=Bt.placeholder,yn=Bt.tabIndex,vn=Bt.showSearch,Ln=Bt.searchValue,Fn=Bt.activeValue,Gn=Bt.maxLength,Hn=Bt.onInputKeyDown,gr=Bt.onInputMouseDown,dn=Bt.onInputChange,Dr=Bt.onInputPaste,zr=Bt.onInputCompositionStart,Qr=Bt.onInputCompositionEnd,wn=Bt.title,Yn=ye.useState(!1),cr=(0,Oe.Z)(Yn,2),Fr=cr[0],fr=cr[1],br=xn==="combobox",Hr=br||vn,Rr=tn[0],Cr=Ln||"";br&&Fn&&!Fr&&(Cr=Fn),ye.useEffect(function(){br&&fr(!1)},[br,Fn]);var Zr=xn!=="combobox"&&!Cn&&!vn?!1:!!Cr,Dn=wn===void 0?yt(Rr):wn,Ei=function(){if(Rr)return null;var ci=Zr?{visibility:"hidden"}:void 0;return ye.createElement("span",{className:"".concat(bn,"-selection-placeholder"),style:ci},gn)};return ye.createElement(ye.Fragment,null,ye.createElement("span",{className:"".concat(bn,"-selection-search")},ye.createElement(Re,{ref:Zn,prefixCls:bn,id:On,open:Cn,inputElement:un,disabled:Gt,autoFocus:An,autoComplete:Kn,editable:Hr,activeDescendantId:rr,value:Cr,onKeyDown:Hn,onMouseDown:gr,onChange:function(ci){fr(!0),dn(ci)},onPaste:Dr,onCompositionStart:zr,onCompositionEnd:Qr,tabIndex:yn,attrs:(0,Ae.Z)(Bt,!0),maxLength:br?Gn:void 0})),!br&&Rr?ye.createElement("span",{className:"".concat(bn,"-selection-item"),title:Dn,style:Zr?{visibility:"hidden"}:void 0},Rr.label):null,Ei())},vt=mt;function St(Yt){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(Yt)}var Nt=function(Bt,un){var bn=(0,ye.useRef)(null),On=(0,ye.useRef)(!1),Zn=Bt.prefixCls,Gt=Bt.open,An=Bt.mode,Kn=Bt.showSearch,rr=Bt.tokenWithEnter,xn=Bt.autoClearSearchValue,Cn=Bt.onSearch,tn=Bt.onSearchSubmit,gn=Bt.onToggleOpen,yn=Bt.onInputKeyDown,vn=Bt.domRef;ye.useImperativeHandle(un,function(){return{focus:function(){bn.current.focus()},blur:function(){bn.current.blur()}}});var Ln=we(0),Fn=(0,Oe.Z)(Ln,2),Gn=Fn[0],Hn=Fn[1],gr=function(Cr){var Zr=Cr.which;(Zr===z.Z.UP||Zr===z.Z.DOWN)&&Cr.preventDefault(),yn&&yn(Cr),Zr===z.Z.ENTER&&An==="tags"&&!On.current&&!Gt&&(tn==null||tn(Cr.target.value)),St(Zr)&&gn(!0)},dn=function(){Hn(!0)},Dr=(0,ye.useRef)(null),zr=function(Cr){Cn(Cr,!0,On.current)!==!1&&gn(!0)},Qr=function(){On.current=!0},wn=function(Cr){On.current=!1,An!=="combobox"&&zr(Cr.target.value)},Yn=function(Cr){var Zr=Cr.target.value;if(rr&&Dr.current&&/[\r\n]/.test(Dr.current)){var Dn=Dr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Zr=Zr.replace(Dn,Dr.current)}Dr.current=null,zr(Zr)},cr=function(Cr){var Zr=Cr.clipboardData,Dn=Zr.getData("text");Dr.current=Dn},Fr=function(Cr){var Zr=Cr.target;if(Zr!==bn.current){var Dn=document.body.style.msTouchAction!==void 0;Dn?setTimeout(function(){bn.current.focus()}):bn.current.focus()}},fr=function(Cr){var Zr=Gn();Cr.target!==bn.current&&!Zr&&An!=="combobox"&&Cr.preventDefault(),(An!=="combobox"&&(!Kn||!Zr)||!Gt)&&(Gt&&xn!==!1&&Cn("",!0,!1),gn())},br={inputRef:bn,onInputKeyDown:gr,onInputMouseDown:dn,onInputChange:Yn,onInputPaste:cr,onInputCompositionStart:Qr,onInputCompositionEnd:wn},Hr=An==="multiple"||An==="tags"?ye.createElement(wt,(0,We.Z)({},Bt,br)):ye.createElement(vt,(0,We.Z)({},Bt,br));return ye.createElement("div",{ref:vn,className:"".concat(Zn,"-selector"),onClick:Fr,onMouseDown:fr},Hr)},Ft=ye.forwardRef(Nt);Ft.displayName="Selector";var Kt=Ft,Pt=ze(35593),Et=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],at=function(Bt){var un=Bt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"}}},Ct=function(Bt,un){var bn=Bt.prefixCls,On=Bt.disabled,Zn=Bt.visible,Gt=Bt.children,An=Bt.popupElement,Kn=Bt.animation,rr=Bt.transitionName,xn=Bt.dropdownStyle,Cn=Bt.dropdownClassName,tn=Bt.direction,gn=tn===void 0?"ltr":tn,yn=Bt.placement,vn=Bt.builtinPlacements,Ln=Bt.dropdownMatchSelectWidth,Fn=Bt.dropdownRender,Gn=Bt.dropdownAlign,Hn=Bt.getPopupContainer,gr=Bt.empty,dn=Bt.getTriggerDOMNode,Dr=Bt.onPopupVisibleChange,zr=Bt.onPopupMouseEnter,Qr=(0,ve.Z)(Bt,Et),wn="".concat(bn,"-dropdown"),Yn=An;Fn&&(Yn=Fn(An));var cr=ye.useMemo(function(){return vn||at(Ln)},[vn,Ln]),Fr=Kn?"".concat(wn,"-").concat(Kn):rr,fr=typeof Ln=="number",br=ye.useMemo(function(){return fr?null:Ln===!1?"minWidth":"width"},[Ln,fr]),Hr=xn;fr&&(Hr=(0,Ue.Z)((0,Ue.Z)({},Hr),{},{width:Ln}));var Rr=ye.useRef(null);return ye.useImperativeHandle(un,function(){return{getPopupElement:function(){return Rr.current}}}),ye.createElement(Pt.Z,(0,We.Z)({},Qr,{showAction:Dr?["click"]:[],hideAction:Dr?["click"]:[],popupPlacement:yn||(gn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:cr,prefixCls:wn,popupTransitionName:Fr,popup:ye.createElement("div",{ref:Rr,onMouseEnter:zr},Yn),stretch:br,popupAlign:Gn,popupVisible:Zn,getPopupContainer:Hn,popupClassName:me()(Cn,(0,oe.Z)({},"".concat(wn,"-empty"),gr)),popupStyle:Hr,getTriggerDOMNode:dn,onPopupVisibleChange:Dr}),Gt)},nt=ye.forwardRef(Ct);nt.displayName="SelectTrigger";var ht=nt,Mt=ze(68413);function gt(Yt,Bt){var un=Yt.key,bn;return"value"in Yt&&(bn=Yt.value),un!=null?un:bn!==void 0?bn:"rc-index-key-".concat(Bt)}function rt(Yt,Bt){var un=Yt||{},bn=un.label,On=un.value,Zn=un.options,Gt=un.groupLabel,An=bn||(Bt?"children":"label");return{label:An,value:On||"value",options:Zn||"options",groupLabel:Gt||An}}function Je(Yt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},un=Bt.fieldNames,bn=Bt.childrenAsData,On=[],Zn=rt(un,!1),Gt=Zn.label,An=Zn.value,Kn=Zn.options,rr=Zn.groupLabel;function xn(Cn,tn){Cn.forEach(function(gn){if(tn||!(Kn in gn)){var yn=gn[An];On.push({key:gt(gn,On.length),groupOption:tn,data:gn,label:gn[Gt],value:yn})}else{var vn=gn[rr];vn===void 0&&bn&&(vn=gn.label),On.push({key:gt(gn,On.length),group:!0,data:gn,label:vn}),xn(gn[Kn],!0)}})}return xn(Yt,!1),On}function Xe(Yt){var Bt=(0,Ue.Z)({},Yt);return"props"in Bt||Object.defineProperty(Bt,"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`."),Bt}}),Bt}function Ve(Yt,Bt){if(!Bt||!Bt.length)return null;var un=!1;function bn(Zn,Gt){var An=(0,Mt.Z)(Gt),Kn=An[0],rr=An.slice(1);if(!Kn)return[Zn];var xn=Zn.split(Kn);return un=un||xn.length>1,xn.reduce(function(Cn,tn){return[].concat((0,xt.Z)(Cn),(0,xt.Z)(bn(tn,rr)))},[]).filter(function(Cn){return Cn})}var On=bn(Yt,Bt);return un?On:null}var tt=["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"],Ze=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function je(Yt){return Yt==="tags"||Yt==="multiple"}var De=ye.forwardRef(function(Yt,Bt){var un,bn,On=Yt.id,Zn=Yt.prefixCls,Gt=Yt.className,An=Yt.showSearch,Kn=Yt.tagRender,rr=Yt.direction,xn=Yt.omitDomProps,Cn=Yt.displayValues,tn=Yt.onDisplayValuesChange,gn=Yt.emptyOptions,yn=Yt.notFoundContent,vn=yn===void 0?"Not Found":yn,Ln=Yt.onClear,Fn=Yt.mode,Gn=Yt.disabled,Hn=Yt.loading,gr=Yt.getInputElement,dn=Yt.getRawInputElement,Dr=Yt.open,zr=Yt.defaultOpen,Qr=Yt.onDropdownVisibleChange,wn=Yt.activeValue,Yn=Yt.onActiveValueChange,cr=Yt.activeDescendantId,Fr=Yt.searchValue,fr=Yt.autoClearSearchValue,br=Yt.onSearch,Hr=Yt.onSearchSplit,Rr=Yt.tokenSeparators,Cr=Yt.allowClear,Zr=Yt.suffixIcon,Dn=Yt.clearIcon,Ei=Yt.OptionList,kn=Yt.animation,ci=Yt.transitionName,Ri=Yt.dropdownStyle,$r=Yt.dropdownClassName,Xi=Yt.dropdownMatchSelectWidth,Oi=Yt.dropdownRender,Ir=Yt.dropdownAlign,jr=Yt.placement,xi=Yt.builtinPlacements,ki=Yt.getPopupContainer,pr=Yt.showAction,kt=pr===void 0?[]:pr,Li=Yt.onFocus,ao=Yt.onBlur,Pi=Yt.onKeyUp,co=Yt.onKeyDown,wo=Yt.onMouseDown,ti=(0,ve.Z)(Yt,tt),hi=je(Fn),Fi=(An!==void 0?An:hi)||Fn==="combobox",wi=(0,Ue.Z)({},ti);Ze.forEach(function(io){delete wi[io]}),xn==null||xn.forEach(function(io){delete wi[io]});var so=ye.useState(!1),Po=(0,Oe.Z)(so,2),Vr=Po[0],Xr=Po[1];ye.useEffect(function(){Xr((0,fe.Z)())},[]);var qn=ye.useRef(null),si=ye.useRef(null),qi=ye.useRef(null),Ro=ye.useRef(null),lo=ye.useRef(null),Qi=Pe(),Do=(0,Oe.Z)(Qi,3),Oo=Do[0],oa=Do[1],la=Do[2];ye.useImperativeHandle(Bt,function(){var io,zo;return{focus:(io=Ro.current)===null||io===void 0?void 0:io.focus,blur:(zo=Ro.current)===null||zo===void 0?void 0:zo.blur,scrollTo:function(_a){var Ha;return(Ha=lo.current)===null||Ha===void 0?void 0:Ha.scrollTo(_a)}}});var Ma=ye.useMemo(function(){var io;if(Fn!=="combobox")return Fr;var zo=(io=Cn[0])===null||io===void 0?void 0:io.value;return typeof zo=="string"||typeof zo=="number"?String(zo):""},[Fr,Fn,Cn]),Mn=Fn==="combobox"&&typeof gr=="function"&&gr()||null,ha=typeof dn=="function"&&dn(),fu=(0,ee.x1)(si,ha==null||(un=ha.props)===null||un===void 0?void 0:un.ref),xs=ye.useState(!1),bo=(0,Oe.Z)(xs,2),_i=bo[0],da=bo[1];(0,xe.Z)(function(){da(!0)},[]);var Ao=(0,Ce.Z)(!1,{defaultValue:zr,value:Dr}),eo=(0,Oe.Z)(Ao,2),Bo=eo[0],ws=eo[1],Ci=_i?Bo:!1,ho=!vn&&gn;(Gn||ho&&Ci&&Fn==="combobox")&&(Ci=!1);var oo=ho?!1:Ci,kr=ye.useCallback(function(io){var zo=io!==void 0?io:!Ci;Gn||(ws(zo),Ci!==zo&&(Qr==null||Qr(zo)))},[Gn,Ci,ws,Qr]),za=ye.useMemo(function(){return(Rr||[]).some(function(io){return[`
`,`\r
`].includes(io)})},[Rr]),Wa=function(zo,As,_a){var Ha=!0,ga=zo;Yn==null||Yn(null);var La=_a?null:Ve(zo,Rr);return Fn!=="combobox"&&La&&(ga="",Hr==null||Hr(La),kr(!1),Ha=!1),br&&Ma!==ga&&br(ga,{source:As?"typing":"effect"}),Ha},Es=function(zo){!zo||!zo.trim()||br(zo,{source:"submit"})};ye.useEffect(function(){!Ci&&!hi&&Fn!=="combobox"&&Wa("",!1,!1)},[Ci]),ye.useEffect(function(){Bo&&Gn&&ws(!1),Gn&&oa(!1)},[Gn]);var Nl=we(),$l=(0,Oe.Z)(Nl,2),wr=$l[0],ua=$l[1],Xa=function(zo){var As=wr(),_a=zo.which;if(_a===z.Z.ENTER&&(Fn!=="combobox"&&zo.preventDefault(),Ci||kr(!0)),ua(!!Ma),_a===z.Z.BACKSPACE&&!As&&hi&&!Ma&&Cn.length){for(var Ha=(0,xt.Z)(Cn),ga=null,La=Ha.length-1;La>=0;La-=1){var Ya=Ha[La];if(!Ya.disabled){Ha.splice(La,1),ga=Ya;break}}ga&&tn(Ha,{type:"remove",values:[ga]})}for(var Ua=arguments.length,Wu=new Array(Ua>1?Ua-1:0),Rl=1;Rl<Ua;Rl++)Wu[Rl-1]=arguments[Rl];if(Ci&&lo.current){var Da;(Da=lo.current).onKeyDown.apply(Da,[zo].concat(Wu))}co==null||co.apply(void 0,[zo].concat(Wu))},Cl=function(zo){for(var As=arguments.length,_a=new Array(As>1?As-1:0),Ha=1;Ha<As;Ha++)_a[Ha-1]=arguments[Ha];if(Ci&&lo.current){var ga;(ga=lo.current).onKeyUp.apply(ga,[zo].concat(_a))}Pi==null||Pi.apply(void 0,[zo].concat(_a))},Bl=function(zo){var As=Cn.filter(function(_a){return _a!==zo});tn(As,{type:"remove",values:[zo]})},Il=ye.useRef(!1),zi=function(){oa(!0),Gn||(Li&&!Il.current&&Li.apply(void 0,arguments),kt.includes("focus")&&kr(!0)),Il.current=!0},mc=function(){oa(!1,function(){Il.current=!1,kr(!1)}),!Gn&&(Ma&&(Fn==="tags"?br(Ma,{source:"submit"}):Fn==="multiple"&&br("",{source:"blur"})),ao&&ao.apply(void 0,arguments))},tl=[];ye.useEffect(function(){return function(){tl.forEach(function(io){return clearTimeout(io)}),tl.splice(0,tl.length)}},[]);var nl=function(zo){var As,_a=zo.target,Ha=(As=qi.current)===null||As===void 0?void 0:As.getPopupElement();if(Ha&&Ha.contains(_a)){var ga=setTimeout(function(){var Wu=tl.indexOf(ga);if(Wu!==-1&&tl.splice(Wu,1),la(),!Vr&&!Ha.contains(document.activeElement)){var Rl;(Rl=Ro.current)===null||Rl===void 0||Rl.focus()}});tl.push(ga)}for(var La=arguments.length,Ya=new Array(La>1?La-1:0),Ua=1;Ua<La;Ua++)Ya[Ua-1]=arguments[Ua];wo==null||wo.apply(void 0,[zo].concat(Ya))},ks=ye.useState({}),Eu=(0,Oe.Z)(ks,2),Ru=Eu[1];function Ws(){Ru({})}var dl;ha&&(dl=function(zo){kr(zo)}),Ne(function(){var io;return[qn.current,(io=qi.current)===null||io===void 0?void 0:io.getPopupElement()]},oo,kr,!!ha);var Hc=ye.useMemo(function(){return(0,Ue.Z)((0,Ue.Z)({},Yt),{},{notFoundContent:vn,open:Ci,triggerOpen:oo,id:On,showSearch:Fi,multiple:hi,toggleOpen:kr})},[Yt,vn,oo,Ci,On,Fi,hi,kr]),hh=!!Zr||Hn,Uc;hh&&(Uc=ye.createElement(re,{className:me()("".concat(Zn,"-arrow"),(0,oe.Z)({},"".concat(Zn,"-arrow-loading"),Hn)),customizeIcon:Zr,customizeIconProps:{loading:Hn,searchValue:Ma,open:Ci,focused:Oo,showSearch:Fi}}));var Gh=function(){var zo;Ln==null||Ln(),(zo=Ro.current)===null||zo===void 0||zo.focus(),tn([],{type:"clear",values:Cn}),Wa("",!1,!1)},Gc=le(Zn,Gh,Cn,Cr,Dn,Gn,Ma,Fn),vc=Gc.allowClear,zu=Gc.clearIcon,jl=ye.createElement(Ei,{ref:lo}),dh=me()(Zn,Gt,(bn={},(0,oe.Z)(bn,"".concat(Zn,"-focused"),Oo),(0,oe.Z)(bn,"".concat(Zn,"-multiple"),hi),(0,oe.Z)(bn,"".concat(Zn,"-single"),!hi),(0,oe.Z)(bn,"".concat(Zn,"-allow-clear"),Cr),(0,oe.Z)(bn,"".concat(Zn,"-show-arrow"),hh),(0,oe.Z)(bn,"".concat(Zn,"-disabled"),Gn),(0,oe.Z)(bn,"".concat(Zn,"-loading"),Hn),(0,oe.Z)(bn,"".concat(Zn,"-open"),Ci),(0,oe.Z)(bn,"".concat(Zn,"-customize-input"),Mn),(0,oe.Z)(bn,"".concat(Zn,"-show-search"),Fi),bn)),Zc=ye.createElement(ht,{ref:qi,disabled:Gn,prefixCls:Zn,visible:oo,popupElement:jl,animation:kn,transitionName:ci,dropdownStyle:Ri,dropdownClassName:$r,direction:rr,dropdownMatchSelectWidth:Xi,dropdownRender:Oi,dropdownAlign:Ir,placement:jr,builtinPlacements:xi,getPopupContainer:ki,empty:gn,getTriggerDOMNode:function(){return si.current},onPopupVisibleChange:dl,onPopupMouseEnter:Ws},ha?ye.cloneElement(ha,{ref:fu}):ye.createElement(Kt,(0,We.Z)({},Yt,{domRef:si,prefixCls:Zn,inputElement:Mn,ref:Ro,id:On,showSearch:Fi,autoClearSearchValue:fr,mode:Fn,activeDescendantId:cr,tagRender:Kn,values:Cn,open:Ci,onToggleOpen:kr,activeValue:wn,searchValue:Ma,onSearch:Wa,onSearchSubmit:Es,onRemove:Bl,tokenWithEnter:za}))),yc;return ha?yc=Zc:yc=ye.createElement("div",(0,We.Z)({className:dh},wi,{ref:qn,onMouseDown:nl,onKeyDown:Xa,onKeyUp:Cl,onFocus:zi,onBlur:mc}),Oo&&!Ci&&ye.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Cn.map(function(io){var zo=io.label,As=io.value;return["number","string"].includes((0,ce.Z)(zo))?zo:As}).join(", "))),Zc,Uc,vc&&zu),ye.createElement(ue.Provider,{value:Hc},yc)}),Ye=De,dt=function(Yt,Bt){var un=ye.useRef({values:new Map,options:new Map}),bn=ye.useMemo(function(){var Zn=un.current,Gt=Zn.values,An=Zn.options,Kn=Yt.map(function(Cn){if(Cn.label===void 0){var tn;return(0,Ue.Z)((0,Ue.Z)({},Cn),{},{label:(tn=Gt.get(Cn.value))===null||tn===void 0?void 0:tn.label})}return Cn}),rr=new Map,xn=new Map;return Kn.forEach(function(Cn){rr.set(Cn.value,Cn),xn.set(Cn.value,Bt.get(Cn.value)||An.get(Cn.value))}),un.current.values=rr,un.current.options=xn,Kn},[Yt,Bt]),On=ye.useCallback(function(Zn){return Bt.get(Zn)||un.current.options.get(Zn)},[Bt]);return[bn,On]};function Ke(Yt,Bt){return Qe(Yt).join("").toUpperCase().includes(Bt)}var At=function(Yt,Bt,un,bn,On){return ye.useMemo(function(){if(!un||bn===!1)return Yt;var Zn=Bt.options,Gt=Bt.label,An=Bt.value,Kn=[],rr=typeof bn=="function",xn=un.toUpperCase(),Cn=rr?bn:function(gn,yn){return On?Ke(yn[On],xn):yn[Zn]?Ke(yn[Gt!=="children"?Gt:"label"],xn):Ke(yn[An],xn)},tn=rr?function(gn){return Xe(gn)}:function(gn){return gn};return Yt.forEach(function(gn){if(gn[Zn]){var yn=Cn(un,tn(gn));if(yn)Kn.push(gn);else{var vn=gn[Zn].filter(function(Ln){return Cn(un,tn(Ln))});vn.length&&Kn.push((0,Ue.Z)((0,Ue.Z)({},gn),{},(0,oe.Z)({},Zn,vn)))}return}Cn(un,tn(gn))&&Kn.push(gn)}),Kn},[Yt,bn,On,un,Bt])},zt=ze(17115),_t=ze(11592),Ot=["children","value"],Vt=["children"];function en(Yt){var Bt=Yt,un=Bt.key,bn=Bt.props,On=bn.children,Zn=bn.value,Gt=(0,ve.Z)(bn,Ot);return(0,Ue.Z)({key:un,value:Zn!==void 0?Zn:un,children:On},Gt)}function on(Yt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,_t.Z)(Yt).map(function(un,bn){if(!ye.isValidElement(un)||!un.type)return null;var On=un,Zn=On.type.isSelectOptGroup,Gt=On.key,An=On.props,Kn=An.children,rr=(0,ve.Z)(An,Vt);return Bt||!Zn?en(un):(0,Ue.Z)((0,Ue.Z)({key:"__RC_SELECT_GRP__".concat(Gt===null?bn:Gt,"__"),label:Gt},rr),{},{options:on(Kn)})}).filter(function(un){return un})}function fn(Yt,Bt,un,bn,On){return ye.useMemo(function(){var Zn=Yt,Gt=!Yt;Gt&&(Zn=on(Bt));var An=new Map,Kn=new Map,rr=function(tn,gn,yn){yn&&typeof yn=="string"&&tn.set(gn[yn],gn)};function xn(Cn){for(var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gn=0;gn<Cn.length;gn+=1){var yn=Cn[gn];!yn[un.options]||tn?(An.set(yn[un.value],yn),rr(Kn,yn,un.label),rr(Kn,yn,bn),rr(Kn,yn,On)):xn(yn[un.options],!0)}}return xn(Zn),{options:Zn,valueOptions:An,labelOptions:Kn}},[Yt,Bt,un,bn,On])}function jn(Yt){var Bt=ye.useRef();Bt.current=Yt;var un=ye.useCallback(function(){return Bt.current.apply(Bt,arguments)},[]);return un}var er=function(){return null};er.isSelectOptGroup=!0;var tr=er,ur=function(){return null};ur.isSelectOption=!0;var Tr=ur,Lr=ze(80547),Ar=ze(2738),Gr=ze(45680),Kr=ye.createContext(null),Mr=Kr;function fi(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Jr=["disabled","title","children","style","className"];function it(Yt){return typeof Yt=="string"||typeof Yt=="number"}var bi=function(Bt,un){var bn=pe(),On=bn.prefixCls,Zn=bn.id,Gt=bn.open,An=bn.multiple,Kn=bn.mode,rr=bn.searchValue,xn=bn.toggleOpen,Cn=bn.notFoundContent,tn=bn.onPopupScroll,gn=ye.useContext(Mr),yn=gn.flattenOptions,vn=gn.onActiveValue,Ln=gn.defaultActiveFirstOption,Fn=gn.onSelect,Gn=gn.menuItemSelectedIcon,Hn=gn.rawValues,gr=gn.fieldNames,dn=gn.virtual,Dr=gn.direction,zr=gn.listHeight,Qr=gn.listItemHeight,wn="".concat(On,"-item"),Yn=(0,Lr.Z)(function(){return yn},[Gt,yn],function(Ir,jr){return jr[0]&&Ir[1]!==jr[1]}),cr=ye.useRef(null),Fr=function(jr){jr.preventDefault()},fr=function(jr){cr.current&&cr.current.scrollTo(typeof jr=="number"?{index:jr}:jr)},br=function(jr){for(var xi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ki=Yn.length,pr=0;pr<ki;pr+=1){var kt=(jr+pr*xi+ki)%ki,Li=Yn[kt],ao=Li.group,Pi=Li.data;if(!ao&&!Pi.disabled)return kt}return-1},Hr=ye.useState(function(){return br(0)}),Rr=(0,Oe.Z)(Hr,2),Cr=Rr[0],Zr=Rr[1],Dn=function(jr){var xi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Zr(jr);var ki={source:xi?"keyboard":"mouse"},pr=Yn[jr];if(!pr){vn(null,-1,ki);return}vn(pr.value,jr,ki)};(0,ye.useEffect)(function(){Dn(Ln!==!1?br(0):-1)},[Yn.length,rr]);var Ei=ye.useCallback(function(Ir){return Hn.has(Ir)&&Kn!=="combobox"},[Kn,(0,xt.Z)(Hn).toString(),Hn.size]);(0,ye.useEffect)(function(){var Ir=setTimeout(function(){if(!An&&Gt&&Hn.size===1){var xi=Array.from(Hn)[0],ki=Yn.findIndex(function(pr){var kt=pr.data;return kt.value===xi});ki!==-1&&(Dn(ki),fr(ki))}});if(Gt){var jr;(jr=cr.current)===null||jr===void 0||jr.scrollTo(void 0)}return function(){return clearTimeout(Ir)}},[Gt,rr,yn.length]);var kn=function(jr){jr!==void 0&&Fn(jr,{selected:!Hn.has(jr)}),An||xn(!1)};if(ye.useImperativeHandle(un,function(){return{onKeyDown:function(jr){var xi=jr.which,ki=jr.ctrlKey;switch(xi){case z.Z.N:case z.Z.P:case z.Z.UP:case z.Z.DOWN:{var pr=0;if(xi===z.Z.UP?pr=-1:xi===z.Z.DOWN?pr=1:fi()&&ki&&(xi===z.Z.N?pr=1:xi===z.Z.P&&(pr=-1)),pr!==0){var kt=br(Cr+pr,pr);fr(kt),Dn(kt,!0)}break}case z.Z.ENTER:{var Li=Yn[Cr];Li&&!Li.data.disabled?kn(Li.value):kn(void 0),Gt&&jr.preventDefault();break}case z.Z.ESC:xn(!1),Gt&&jr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(jr){fr(jr)}}}),Yn.length===0)return ye.createElement("div",{role:"listbox",id:"".concat(Zn,"_list"),className:"".concat(wn,"-empty"),onMouseDown:Fr},Cn);var ci=Object.keys(gr).map(function(Ir){return gr[Ir]}),Ri=function(jr){return jr.label};function $r(Ir,jr){var xi=Ir.group;return{role:xi?"presentation":"option",id:"".concat(Zn,"_list_").concat(jr)}}var Xi=function(jr){var xi=Yn[jr];if(!xi)return null;var ki=xi.data||{},pr=ki.value,kt=xi.group,Li=(0,Ae.Z)(ki,!0),ao=Ri(xi);return xi?ye.createElement("div",(0,We.Z)({"aria-label":typeof ao=="string"&&!kt?ao:null},Li,{key:jr},$r(xi,jr),{"aria-selected":Ei(pr)}),pr):null},Oi={role:"listbox",id:"".concat(Zn,"_list")};return ye.createElement(ye.Fragment,null,dn&&ye.createElement("div",(0,We.Z)({},Oi,{style:{height:0,width:0,overflow:"hidden"}}),Xi(Cr-1),Xi(Cr),Xi(Cr+1)),ye.createElement(Gr.Z,{itemKey:"key",ref:cr,data:Yn,height:zr,itemHeight:Qr,fullHeight:!1,onMouseDown:Fr,onScroll:tn,virtual:dn,direction:Dr,innerProps:dn?null:Oi},function(Ir,jr){var xi,ki=Ir.group,pr=Ir.groupOption,kt=Ir.data,Li=Ir.label,ao=Ir.value,Pi=kt.key;if(ki){var co,wo=(co=kt.title)!==null&&co!==void 0?co:it(Li)?Li.toString():void 0;return ye.createElement("div",{className:me()(wn,"".concat(wn,"-group")),title:wo},Li!==void 0?Li:Pi)}var ti=kt.disabled,hi=kt.title,Fi=kt.children,wi=kt.style,so=kt.className,Po=(0,ve.Z)(kt,Jr),Vr=(0,Ar.Z)(Po,ci),Xr=Ei(ao),qn="".concat(wn,"-option"),si=me()(wn,qn,so,(xi={},(0,oe.Z)(xi,"".concat(qn,"-grouped"),pr),(0,oe.Z)(xi,"".concat(qn,"-active"),Cr===jr&&!ti),(0,oe.Z)(xi,"".concat(qn,"-disabled"),ti),(0,oe.Z)(xi,"".concat(qn,"-selected"),Xr),xi)),qi=Ri(Ir),Ro=!Gn||typeof Gn=="function"||Xr,lo=typeof qi=="number"?qi:qi||ao,Qi=it(lo)?lo.toString():void 0;return hi!==void 0&&(Qi=hi),ye.createElement("div",(0,We.Z)({},(0,Ae.Z)(Vr),dn?{}:$r(Ir,jr),{"aria-selected":Xr,className:si,title:Qi,onMouseMove:function(){Cr===jr||ti||Dn(jr)},onClick:function(){ti||kn(ao)},style:wi}),ye.createElement("div",{className:"".concat(qn,"-content")},lo),ye.isValidElement(Gn)||Xr,Ro&&ye.createElement(re,{className:"".concat(wn,"-option-state"),customizeIcon:Gn,customizeIconProps:{isSelected:Xr}},Xr?"\u2713":null))}))},mi=ye.forwardRef(bi);mi.displayName="OptionList";var Tn=mi;function dr(Yt){var Bt=Yt.mode,un=Yt.options,bn=Yt.children,On=Yt.backfill,Zn=Yt.allowClear,Gt=Yt.placeholder,An=Yt.getInputElement,Kn=Yt.showSearch,rr=Yt.onSearch,xn=Yt.defaultOpen,Cn=Yt.autoFocus,tn=Yt.labelInValue,gn=Yt.value,yn=Yt.inputValue,vn=Yt.optionLabelProp,Ln=isMultiple(Bt),Fn=Kn!==void 0?Kn:Ln||Bt==="combobox",Gn=un||convertChildrenToData(bn);if(warning(Bt!=="tags"||Gn.every(function(Dr){return!Dr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Bt==="tags"||Bt==="combobox"){var Hn=Gn.some(function(Dr){return Dr.options?Dr.options.some(function(zr){return typeof("value"in zr?zr.value:zr.key)=="number"}):typeof("value"in Dr?Dr.value:Dr.key)=="number"});warning(!Hn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Bt!=="combobox"||!vn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Bt==="combobox"||!On,"`backfill` only works with `combobox` mode."),warning(Bt==="combobox"||!An,"`getInputElement` only work with `combobox` mode."),noteOnce(Bt!=="combobox"||!An||!Zn||!Gt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),rr&&!Fn&&Bt!=="combobox"&&Bt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!xn||Cn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),gn!=null){var gr=toArray(gn);warning(!tn||gr.every(function(Dr){return _typeof(Dr)==="object"&&("key"in Dr||"value"in Dr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ln||Array.isArray(gn),"`value` should be array when `mode` is `multiple` or `tags`")}if(bn){var dn=null;toNodeArray(bn).some(function(Dr){if(!React.isValidElement(Dr)||!Dr.type)return!1;var zr=Dr,Qr=zr.type;if(Qr.isSelectOption)return!1;if(Qr.isSelectOptGroup){var wn=toNodeArray(Dr.props.children).every(function(Yn){return!React.isValidElement(Yn)||!Dr.type||Yn.type.isSelectOption?!0:(dn=Yn.type,!1)});return!wn}return dn=Qr,!0}),dn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(dn.displayName||dn.name||dn,"`.")),warning(yn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ar(Yt,Bt){if(Yt){var un=function bn(On){for(var Zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gt=0;Gt<On.length;Gt++){var An=On[Gt];if(An[Bt==null?void 0:Bt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Zn&&Array.isArray(An[Bt==null?void 0:Bt.options])&&bn(An[Bt==null?void 0:Bt.options],!0))break}};un(Yt)}}var vr=null,Jn=["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"],zn=["inputValue"];function $t(Yt){return!Yt||(0,ce.Z)(Yt)!=="object"}var Xt=ye.forwardRef(function(Yt,Bt){var un=Yt.id,bn=Yt.mode,On=Yt.prefixCls,Zn=On===void 0?"rc-select":On,Gt=Yt.backfill,An=Yt.fieldNames,Kn=Yt.inputValue,rr=Yt.searchValue,xn=Yt.onSearch,Cn=Yt.autoClearSearchValue,tn=Cn===void 0?!0:Cn,gn=Yt.onSelect,yn=Yt.onDeselect,vn=Yt.dropdownMatchSelectWidth,Ln=vn===void 0?!0:vn,Fn=Yt.filterOption,Gn=Yt.filterSort,Hn=Yt.optionFilterProp,gr=Yt.optionLabelProp,dn=Yt.options,Dr=Yt.children,zr=Yt.defaultActiveFirstOption,Qr=Yt.menuItemSelectedIcon,wn=Yt.virtual,Yn=Yt.direction,cr=Yt.listHeight,Fr=cr===void 0?200:cr,fr=Yt.listItemHeight,br=fr===void 0?20:fr,Hr=Yt.value,Rr=Yt.defaultValue,Cr=Yt.labelInValue,Zr=Yt.onChange,Dn=(0,ve.Z)(Yt,Jn),Ei=(0,zt.ZP)(un),kn=je(bn),ci=!!(!dn&&Dr),Ri=ye.useMemo(function(){return Fn===void 0&&bn==="combobox"?!1:Fn},[Fn,bn]),$r=ye.useMemo(function(){return rt(An,ci)},[JSON.stringify(An),ci]),Xi=(0,Ce.Z)("",{value:rr!==void 0?rr:Kn,postState:function(ho){return ho||""}}),Oi=(0,Oe.Z)(Xi,2),Ir=Oi[0],jr=Oi[1],xi=fn(dn,Dr,$r,Hn,gr),ki=xi.valueOptions,pr=xi.labelOptions,kt=xi.options,Li=ye.useCallback(function(Ci){var ho=Qe(Ci);return ho.map(function(oo){var kr,za,Wa,Es,Nl;if($t(oo))kr=oo;else{var $l;Wa=oo.key,za=oo.label,kr=($l=oo.value)!==null&&$l!==void 0?$l:Wa}var wr=ki.get(kr);if(wr){var ua;if(za===void 0&&(za=wr==null?void 0:wr[gr||$r.label]),Wa===void 0&&(Wa=(ua=wr==null?void 0:wr.key)!==null&&ua!==void 0?ua:kr),Es=wr==null?void 0:wr.disabled,Nl=wr==null?void 0:wr.title,0)var Xa}return{label:za,value:kr,key:Wa,disabled:Es,title:Nl}})},[$r,gr,ki]),ao=(0,Ce.Z)(Rr,{value:Hr}),Pi=(0,Oe.Z)(ao,2),co=Pi[0],wo=Pi[1],ti=ye.useMemo(function(){var Ci,ho=Li(co);return bn==="combobox"&&ut((Ci=ho[0])===null||Ci===void 0?void 0:Ci.value)?[]:ho},[co,Li,bn]),hi=dt(ti,ki),Fi=(0,Oe.Z)(hi,2),wi=Fi[0],so=Fi[1],Po=ye.useMemo(function(){if(!bn&&wi.length===1){var Ci=wi[0];if(Ci.value===null&&(Ci.label===null||Ci.label===void 0))return[]}return wi.map(function(ho){var oo;return(0,Ue.Z)((0,Ue.Z)({},ho),{},{label:(oo=ho.label)!==null&&oo!==void 0?oo:ho.value})})},[bn,wi]),Vr=ye.useMemo(function(){return new Set(wi.map(function(Ci){return Ci.value}))},[wi]);ye.useEffect(function(){if(bn==="combobox"){var Ci,ho=(Ci=wi[0])===null||Ci===void 0?void 0:Ci.value;jr(qe(ho)?String(ho):"")}},[wi]);var Xr=jn(function(Ci,ho){var oo,kr=ho!=null?ho:Ci;return oo={},(0,oe.Z)(oo,$r.value,Ci),(0,oe.Z)(oo,$r.label,kr),oo}),qn=ye.useMemo(function(){if(bn!=="tags")return kt;var Ci=(0,xt.Z)(kt),ho=function(kr){return ki.has(kr)};return(0,xt.Z)(wi).sort(function(oo,kr){return oo.value<kr.value?-1:1}).forEach(function(oo){var kr=oo.value;ho(kr)||Ci.push(Xr(kr,oo.label))}),Ci},[Xr,kt,ki,wi,bn]),si=At(qn,$r,Ir,Ri,Hn),qi=ye.useMemo(function(){return bn!=="tags"||!Ir||si.some(function(Ci){return Ci[Hn||"value"]===Ir})||si.some(function(Ci){return Ci[$r.value]===Ir})?si:[Xr(Ir)].concat((0,xt.Z)(si))},[Xr,Hn,bn,si,Ir,$r]),Ro=ye.useMemo(function(){return Gn?(0,xt.Z)(qi).sort(function(Ci,ho){return Gn(Ci,ho)}):qi},[qi,Gn]),lo=ye.useMemo(function(){return Je(Ro,{fieldNames:$r,childrenAsData:ci})},[Ro,$r,ci]),Qi=function(ho){var oo=Li(ho);if(wo(oo),Zr&&(oo.length!==wi.length||oo.some(function(Wa,Es){var Nl;return((Nl=wi[Es])===null||Nl===void 0?void 0:Nl.value)!==(Wa==null?void 0:Wa.value)}))){var kr=Cr?oo:oo.map(function(Wa){return Wa.value}),za=oo.map(function(Wa){return Xe(so(Wa.value))});Zr(kn?kr:kr[0],kn?za:za[0])}},Do=ye.useState(null),Oo=(0,Oe.Z)(Do,2),oa=Oo[0],la=Oo[1],Ma=ye.useState(0),Mn=(0,Oe.Z)(Ma,2),ha=Mn[0],fu=Mn[1],xs=zr!==void 0?zr:bn!=="combobox",bo=ye.useCallback(function(Ci,ho){var oo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},kr=oo.source,za=kr===void 0?"keyboard":kr;fu(ho),Gt&&bn==="combobox"&&Ci!==null&&za==="keyboard"&&la(String(Ci))},[Gt,bn]),_i=function(ho,oo,kr){var za=function(){var Il,zi=so(ho);return[Cr?{label:zi==null?void 0:zi[$r.label],value:ho,key:(Il=zi==null?void 0:zi.key)!==null&&Il!==void 0?Il:ho}:ho,Xe(zi)]};if(oo&&gn){var Wa=za(),Es=(0,Oe.Z)(Wa,2),Nl=Es[0],$l=Es[1];gn(Nl,$l)}else if(!oo&&yn&&kr!=="clear"){var wr=za(),ua=(0,Oe.Z)(wr,2),Xa=ua[0],Cl=ua[1];yn(Xa,Cl)}},da=jn(function(Ci,ho){var oo,kr=kn?ho.selected:!0;kr?oo=kn?[].concat((0,xt.Z)(wi),[Ci]):[Ci]:oo=wi.filter(function(za){return za.value!==Ci}),Qi(oo),_i(Ci,kr),bn==="combobox"?la(""):(!je||tn)&&(jr(""),la(""))}),Ao=function(ho,oo){Qi(ho);var kr=oo.type,za=oo.values;(kr==="remove"||kr==="clear")&&za.forEach(function(Wa){_i(Wa.value,!1,kr)})},eo=function(ho,oo){if(jr(ho),la(null),oo.source==="submit"){var kr=(ho||"").trim();if(kr){var za=Array.from(new Set([].concat((0,xt.Z)(Vr),[kr])));Qi(za),_i(kr,!0),jr("")}return}oo.source!=="blur"&&(bn==="combobox"&&Qi(ho),xn==null||xn(ho))},Bo=function(ho){var oo=ho;bn!=="tags"&&(oo=ho.map(function(za){var Wa=pr.get(za);return Wa==null?void 0:Wa.value}).filter(function(za){return za!==void 0}));var kr=Array.from(new Set([].concat((0,xt.Z)(Vr),(0,xt.Z)(oo))));Qi(kr),kr.forEach(function(za){_i(za,!0)})},ws=ye.useMemo(function(){var Ci=wn!==!1&&Ln!==!1;return(0,Ue.Z)((0,Ue.Z)({},xi),{},{flattenOptions:lo,onActiveValue:bo,defaultActiveFirstOption:xs,onSelect:da,menuItemSelectedIcon:Qr,rawValues:Vr,fieldNames:$r,virtual:Ci,direction:Yn,listHeight:Fr,listItemHeight:br,childrenAsData:ci})},[xi,lo,bo,xs,da,Qr,Vr,$r,wn,Ln,Fr,br,ci]);return ye.createElement(Mr.Provider,{value:ws},ye.createElement(Ye,(0,We.Z)({},Dn,{id:Ei,prefixCls:Zn,ref:Bt,omitDomProps:zn,mode:bn,displayValues:Po,onDisplayValuesChange:Ao,direction:Yn,searchValue:Ir,onSearch:eo,autoClearSearchValue:tn,onSearchSplit:Bo,dropdownMatchSelectWidth:Ln,OptionList:Tn,emptyOptions:!lo.length,activeValue:oa,activeDescendantId:"".concat(Ei,"_list_").concat(ha)})))}),Tt=Xt;Tt.Option=Tr,Tt.OptGroup=tr;var sn=Tt,pn=sn},9296:function(Nn,mn,ze){"use strict";ze.r(mn),ze.d(mn,{ResizableTextArea:function(){return Be},default:function(){return ut}});var We=ze(72308),xt=ze(77321),oe=ze(49618),Ue=ze(62853),Oe=ze(52487),ve=ze(74416),ce=ze(80702),Ce=ze(92310),Ee=ze.n(Ce),ye=ze(93681),be=ze(5643),me=ze(18929),xe=ze(59301),fe=ze(29301),z=ze(34280),ee=ze(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(ct){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=ct.getAttribute("id")||ct.getAttribute("data-reactid")||ct.getAttribute("name");if(yt&&le[_e])return le[_e];var st=window.getComputedStyle(ct),pt=st.getPropertyValue("box-sizing")||st.getPropertyValue("-moz-box-sizing")||st.getPropertyValue("-webkit-box-sizing"),bt=parseFloat(st.getPropertyValue("padding-bottom"))+parseFloat(st.getPropertyValue("padding-top")),wt=parseFloat(st.getPropertyValue("border-bottom-width"))+parseFloat(st.getPropertyValue("border-top-width")),mt=re.map(function(St){return"".concat(St,":").concat(st.getPropertyValue(St))}).join(";"),vt={sizingStyle:mt,paddingSize:bt,borderSize:wt,boxSizing:pt};return yt&&_e&&(le[_e]=vt),vt}function Pe(ct){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,st=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)),ct.getAttribute("wrap")?ue.setAttribute("wrap",ct.getAttribute("wrap")):ue.removeAttribute("wrap");var pt=pe(ct,yt),bt=pt.paddingSize,wt=pt.borderSize,mt=pt.boxSizing,vt=pt.sizingStyle;ue.setAttribute("style","".concat(vt,";").concat(ae)),ue.value=ct.value||ct.placeholder||"";var St=void 0,Nt=void 0,Ft,Kt=ue.scrollHeight;if(mt==="border-box"?Kt+=wt:mt==="content-box"&&(Kt-=bt),_e!==null||st!==null){ue.value=" ";var Pt=ue.scrollHeight-bt;_e!==null&&(St=Pt*_e,mt==="border-box"&&(St=St+bt+wt),Kt=Math.max(St,Kt)),st!==null&&(Nt=Pt*st,mt==="border-box"&&(Nt=Nt+bt+wt),Ft=Kt>Nt?"":"hidden",Kt=Math.min(Nt,Kt))}var Et={height:Kt,overflowY:Ft,resize:"none"};return St&&(Et.minHeight=St),Nt&&(Et.maxHeight=Nt),Et}var we=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ne=0,Ae=1,Te=2,Me=xe.forwardRef(function(ct,yt){var _e=ct,st=_e.prefixCls,pt=_e.onPressEnter,bt=_e.defaultValue,wt=_e.value,mt=_e.autoSize,vt=_e.onResize,St=_e.className,Nt=_e.style,Ft=_e.disabled,Kt=_e.onChange,Pt=_e.onInternalAutoSize,Et=(0,ve.Z)(_e,we),at=(0,me.Z)(bt,{value:wt,postState:function(tr){return tr!=null?tr:""}}),Ct=(0,Oe.Z)(at,2),nt=Ct[0],ht=Ct[1],Mt=function(tr){ht(tr.target.value),Kt==null||Kt(tr)},gt=xe.useRef();xe.useImperativeHandle(yt,function(){return{textArea:gt.current}});var rt=xe.useMemo(function(){return mt&&(0,Ue.Z)(mt)==="object"?[mt.minRows,mt.maxRows]:[]},[mt]),Je=(0,Oe.Z)(rt,2),Xe=Je[0],Ve=Je[1],tt=!!mt,Ze=function(){try{if(document.activeElement===gt.current){var tr=gt.current,ur=tr.selectionStart,Tr=tr.selectionEnd,Lr=tr.scrollTop;gt.current.setSelectionRange(ur,Tr),gt.current.scrollTop=Lr}}catch(Ar){}},je=xe.useState(Te),De=(0,Oe.Z)(je,2),Ye=De[0],dt=De[1],Ke=xe.useState(),At=(0,Oe.Z)(Ke,2),zt=At[0],_t=At[1],Ot=function(){dt(Ne)};(0,z.Z)(function(){tt&&Ot()},[wt,Xe,Ve,tt]),(0,z.Z)(function(){if(Ye===Ne)dt(Ae);else if(Ye===Ae){var er=Pe(gt.current,!1,Xe,Ve);dt(Te),_t(er)}else Ze()},[Ye]);var Vt=xe.useRef(),en=function(){ee.Z.cancel(Vt.current)},on=function(tr){Ye===Te&&(vt==null||vt(tr),mt&&(en(),Vt.current=(0,ee.Z)(function(){Ot()})))};xe.useEffect(function(){return en},[]);var fn=tt?zt:null,jn=(0,xt.Z)((0,xt.Z)({},Nt),fn);return(Ye===Ne||Ye===Ae)&&(jn.overflowY="hidden",jn.overflowX="hidden"),xe.createElement(fe.Z,{onResize:on,disabled:!(mt||vt)},xe.createElement("textarea",(0,We.Z)({},Et,{ref:gt,style:jn,className:Ee()(st,St,(0,oe.Z)({},"".concat(st,"-disabled"),Ft)),disabled:Ft,value:nt,onChange:Mt})))}),Be=Me,Re=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Qe(ct,yt){return(0,ce.Z)(ct||"").slice(0,yt).join("")}function He(ct,yt,_e,st){var pt=_e;return ct?pt=Qe(_e,st):(0,ce.Z)(yt||"").length<_e.length&&(0,ce.Z)(_e||"").length>st&&(pt=yt),pt}var $e=xe.forwardRef(function(ct,yt){var _e,st=ct.defaultValue,pt=ct.value,bt=ct.onFocus,wt=ct.onBlur,mt=ct.onChange,vt=ct.allowClear,St=ct.maxLength,Nt=ct.onCompositionStart,Ft=ct.onCompositionEnd,Kt=ct.suffix,Pt=ct.prefixCls,Et=Pt===void 0?"rc-textarea":Pt,at=ct.classes,Ct=ct.showCount,nt=ct.className,ht=ct.style,Mt=ct.disabled,gt=ct.hidden,rt=ct.classNames,Je=ct.styles,Xe=ct.onResize,Ve=(0,ve.Z)(ct,Re),tt=(0,me.Z)(st,{value:pt,defaultValue:st}),Ze=(0,Oe.Z)(tt,2),je=Ze[0],De=Ze[1],Ye=(0,xe.useRef)(null),dt=xe.useState(!1),Ke=(0,Oe.Z)(dt,2),At=Ke[0],zt=Ke[1],_t=xe.useState(!1),Ot=(0,Oe.Z)(_t,2),Vt=Ot[0],en=Ot[1],on=xe.useRef(),fn=xe.useRef(0),jn=xe.useState(null),er=(0,Oe.Z)(jn,2),tr=er[0],ur=er[1],Tr=function(){var $t;($t=Ye.current)===null||$t===void 0||$t.textArea.focus()};(0,xe.useImperativeHandle)(yt,function(){return{resizableTextArea:Ye.current,focus:Tr,blur:function(){var $t;($t=Ye.current)===null||$t===void 0||$t.textArea.blur()}}}),(0,xe.useEffect)(function(){zt(function(zn){return!Mt&&zn})},[Mt]);var Lr=Number(St)>0,Ar=function($t){en(!0),on.current=je,fn.current=$t.currentTarget.selectionStart,Nt==null||Nt($t)},Gr=function($t){en(!1);var Xt=$t.currentTarget.value;if(Lr){var Tt,sn=fn.current>=St+1||fn.current===((Tt=on.current)===null||Tt===void 0?void 0:Tt.length);Xt=He(sn,on.current,Xt,St)}Xt!==je&&(De(Xt),(0,be.rJ)($t.currentTarget,$t,mt,Xt)),Ft==null||Ft($t)},Kr=function($t){var Xt=$t.target.value;if(!Vt&&Lr){var Tt=$t.target.selectionStart>=St+1||$t.target.selectionStart===Xt.length||!$t.target.selectionStart;Xt=He(Tt,je,Xt,St)}De(Xt),(0,be.rJ)($t.currentTarget,$t,mt,Xt)},Mr=function($t){var Xt=Ve.onPressEnter,Tt=Ve.onKeyDown;$t.key==="Enter"&&Xt&&Xt($t),Tt==null||Tt($t)},fi=function($t){zt(!0),bt==null||bt($t)},Jr=function($t){zt(!1),wt==null||wt($t)},it=function($t){var Xt;De(""),Tr(),(0,be.rJ)((Xt=Ye.current)===null||Xt===void 0?void 0:Xt.textArea,$t,mt)},bi=(0,be.D7)(je);!Vt&&Lr&&pt==null&&(bi=Qe(bi,St));var mi=Kt,Tn;if(Ct){var dr=(0,ce.Z)(bi).length;(0,Ue.Z)(Ct)==="object"?Tn=Ct.formatter({value:bi,count:dr,maxLength:St}):Tn="".concat(dr).concat(Lr?" / ".concat(St):""),mi=xe.createElement(xe.Fragment,null,mi,xe.createElement("span",{className:Ee()("".concat(Et,"-data-count"),rt==null?void 0:rt.count),style:Je==null?void 0:Je.count},Tn))}var ar=function($t){var Xt;Xe==null||Xe($t),(Xt=Ye.current)!==null&&Xt!==void 0&&Xt.textArea.style.height&&ur(!0)},vr=!Ve.autoSize&&!Ct&&!vt,Jn=xe.createElement(ye.BaseInput,{value:bi,allowClear:vt,handleReset:it,suffix:mi,prefixCls:Et,classes:{affixWrapper:Ee()(at==null?void 0:at.affixWrapper,(_e={},(0,oe.Z)(_e,"".concat(Et,"-show-count"),Ct),(0,oe.Z)(_e,"".concat(Et,"-textarea-allow-clear"),vt),_e))},disabled:Mt,focused:At,className:nt,style:(0,xt.Z)((0,xt.Z)({},ht),tr&&!vr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Tn=="string"?Tn:void 0}},hidden:gt,inputElement:xe.createElement(Be,(0,We.Z)({},Ve,{onKeyDown:Mr,onChange:Kr,onFocus:fi,onBlur:Jr,onCompositionStart:Ar,onCompositionEnd:Gr,className:rt==null?void 0:rt.textarea,style:(0,xt.Z)((0,xt.Z)({},Je==null?void 0:Je.textarea),{},{resize:ht==null?void 0:ht.resize}),disabled:Mt,prefixCls:Et,onResize:ar,ref:Ye}))});return Jn}),qe=$e,ut=qe},39417:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ae}});var We=ze(72308),xt=ze(49618),oe=ze(74416),Ue=ze(77321),Oe=ze(96949),ve=ze(55090),ce=ze(80237),Ce=ze(77205),Ee=ze(38793),ye=ze(92310),be=ze.n(ye),me=ze(26112),xe=ze(59301),fe=ze(39378),z=function(Me){for(var Be=Me.prefixCls,Re=Me.level,Qe=Me.isStart,He=Me.isEnd,$e="".concat(Be,"-indent-unit"),qe=[],ut=0;ut<Re;ut+=1){var ct;qe.push(xe.createElement("span",{key:ut,className:be()($e,(ct={},(0,xt.Z)(ct,"".concat($e,"-start"),Qe[ut]),(0,xt.Z)(ct,"".concat($e,"-end"),He[ut]),ct))}))}return xe.createElement("span",{"aria-hidden":"true",className:"".concat(Be,"-indent")},qe)},ee=xe.memo(z),ae=ze(67841),re=ze(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",Pe="---",we=function(Te){(0,Ce.Z)(Be,Te);var Me=(0,Ee.Z)(Be);function Be(){var Re;(0,Oe.Z)(this,Be);for(var Qe=arguments.length,He=new Array(Qe),$e=0;$e<Qe;$e++)He[$e]=arguments[$e];return Re=Me.call.apply(Me,[this].concat(He)),Re.state={dragNodeHighlight:!1},Re.selectHandle=void 0,Re.cacheIndent=void 0,Re.onSelectorClick=function(qe){var ut=Re.props.context.onNodeClick;ut(qe,(0,re.F)(Re.props)),Re.isSelectable()?Re.onSelect(qe):Re.onCheck(qe)},Re.onSelectorDoubleClick=function(qe){var ut=Re.props.context.onNodeDoubleClick;ut(qe,(0,re.F)(Re.props))},Re.onSelect=function(qe){if(!Re.isDisabled()){var ut=Re.props.context.onNodeSelect;ut(qe,(0,re.F)(Re.props))}},Re.onCheck=function(qe){if(!Re.isDisabled()){var ut=Re.props,ct=ut.disableCheckbox,yt=ut.checked,_e=Re.props.context.onNodeCheck;if(!(!Re.isCheckable()||ct)){var st=!yt;_e(qe,(0,re.F)(Re.props),st)}}},Re.onMouseEnter=function(qe){var ut=Re.props.context.onNodeMouseEnter;ut(qe,(0,re.F)(Re.props))},Re.onMouseLeave=function(qe){var ut=Re.props.context.onNodeMouseLeave;ut(qe,(0,re.F)(Re.props))},Re.onContextMenu=function(qe){var ut=Re.props.context.onNodeContextMenu;ut(qe,(0,re.F)(Re.props))},Re.onDragStart=function(qe){var ut=Re.props.context.onNodeDragStart;qe.stopPropagation(),Re.setState({dragNodeHighlight:!0}),ut(qe,(0,ce.Z)(Re));try{qe.dataTransfer.setData("text/plain","")}catch(ct){}},Re.onDragEnter=function(qe){var ut=Re.props.context.onNodeDragEnter;qe.preventDefault(),qe.stopPropagation(),ut(qe,(0,ce.Z)(Re))},Re.onDragOver=function(qe){var ut=Re.props.context.onNodeDragOver;qe.preventDefault(),qe.stopPropagation(),ut(qe,(0,ce.Z)(Re))},Re.onDragLeave=function(qe){var ut=Re.props.context.onNodeDragLeave;qe.stopPropagation(),ut(qe,(0,ce.Z)(Re))},Re.onDragEnd=function(qe){var ut=Re.props.context.onNodeDragEnd;qe.stopPropagation(),Re.setState({dragNodeHighlight:!1}),ut(qe,(0,ce.Z)(Re))},Re.onDrop=function(qe){var ut=Re.props.context.onNodeDrop;qe.preventDefault(),qe.stopPropagation(),Re.setState({dragNodeHighlight:!1}),ut(qe,(0,ce.Z)(Re))},Re.onExpand=function(qe){var ut=Re.props,ct=ut.loading,yt=ut.context.onNodeExpand;ct||yt(qe,(0,re.F)(Re.props))},Re.setSelectHandle=function(qe){Re.selectHandle=qe},Re.getNodeState=function(){var qe=Re.props.expanded;return Re.isLeaf()?null:qe?ue:pe},Re.hasChildren=function(){var qe=Re.props.eventKey,ut=Re.props.context.keyEntities,ct=(0,ae.Z)(ut,qe)||{},yt=ct.children;return!!(yt||[]).length},Re.isLeaf=function(){var qe=Re.props,ut=qe.isLeaf,ct=qe.loaded,yt=Re.props.context.loadData,_e=Re.hasChildren();return ut===!1?!1:ut||!yt&&!_e||yt&&ct&&!_e},Re.isDisabled=function(){var qe=Re.props.disabled,ut=Re.props.context.disabled;return!!(ut||qe)},Re.isCheckable=function(){var qe=Re.props.checkable,ut=Re.props.context.checkable;return!ut||qe===!1?!1:ut},Re.syncLoadData=function(qe){var ut=qe.expanded,ct=qe.loading,yt=qe.loaded,_e=Re.props.context,st=_e.loadData,pt=_e.onNodeLoad;ct||st&&ut&&!Re.isLeaf()&&!Re.hasChildren()&&!yt&&pt((0,re.F)(Re.props))},Re.isDraggable=function(){var qe=Re.props,ut=qe.data,ct=qe.context.draggable;return!!(ct&&(!ct.nodeDraggable||ct.nodeDraggable(ut)))},Re.renderDragHandler=function(){var qe=Re.props.context,ut=qe.draggable,ct=qe.prefixCls;return ut!=null&&ut.icon?xe.createElement("span",{className:"".concat(ct,"-draggable-icon")},ut.icon):null},Re.renderSwitcherIconDom=function(qe){var ut=Re.props.switcherIcon,ct=Re.props.context.switcherIcon,yt=ut||ct;return typeof yt=="function"?yt((0,Ue.Z)((0,Ue.Z)({},Re.props),{},{isLeaf:qe})):yt},Re.renderSwitcher=function(){var qe=Re.props.expanded,ut=Re.props.context.prefixCls;if(Re.isLeaf()){var ct=Re.renderSwitcherIconDom(!0);return ct!==!1?xe.createElement("span",{className:be()("".concat(ut,"-switcher"),"".concat(ut,"-switcher-noop"))},ct):null}var yt=be()("".concat(ut,"-switcher"),"".concat(ut,"-switcher_").concat(qe?ue:pe)),_e=Re.renderSwitcherIconDom(!1);return _e!==!1?xe.createElement("span",{onClick:Re.onExpand,className:yt},_e):null},Re.renderCheckbox=function(){var qe=Re.props,ut=qe.checked,ct=qe.halfChecked,yt=qe.disableCheckbox,_e=Re.props.context.prefixCls,st=Re.isDisabled(),pt=Re.isCheckable();if(!pt)return null;var bt=typeof pt!="boolean"?pt:null;return xe.createElement("span",{className:be()("".concat(_e,"-checkbox"),ut&&"".concat(_e,"-checkbox-checked"),!ut&&ct&&"".concat(_e,"-checkbox-indeterminate"),(st||yt)&&"".concat(_e,"-checkbox-disabled")),onClick:Re.onCheck},bt)},Re.renderIcon=function(){var qe=Re.props.loading,ut=Re.props.context.prefixCls;return xe.createElement("span",{className:be()("".concat(ut,"-iconEle"),"".concat(ut,"-icon__").concat(Re.getNodeState()||"docu"),qe&&"".concat(ut,"-icon_loading"))})},Re.renderSelector=function(){var qe=Re.state.dragNodeHighlight,ut=Re.props,ct=ut.title,yt=ct===void 0?Pe:ct,_e=ut.selected,st=ut.icon,pt=ut.loading,bt=ut.data,wt=Re.props.context,mt=wt.prefixCls,vt=wt.showIcon,St=wt.icon,Nt=wt.loadData,Ft=wt.titleRender,Kt=Re.isDisabled(),Pt="".concat(mt,"-node-content-wrapper"),Et;if(vt){var at=st||St;Et=at?xe.createElement("span",{className:be()("".concat(mt,"-iconEle"),"".concat(mt,"-icon__customize"))},typeof at=="function"?at(Re.props):at):Re.renderIcon()}else Nt&&pt&&(Et=Re.renderIcon());var Ct;typeof yt=="function"?Ct=yt(bt):Ft?Ct=Ft(bt):Ct=yt;var nt=xe.createElement("span",{className:"".concat(mt,"-title")},Ct);return xe.createElement("span",{ref:Re.setSelectHandle,title:typeof yt=="string"?yt:"",className:be()("".concat(Pt),"".concat(Pt,"-").concat(Re.getNodeState()||"normal"),!Kt&&(_e||qe)&&"".concat(mt,"-node-selected")),onMouseEnter:Re.onMouseEnter,onMouseLeave:Re.onMouseLeave,onContextMenu:Re.onContextMenu,onClick:Re.onSelectorClick,onDoubleClick:Re.onSelectorDoubleClick},Et,nt,Re.renderDropIndicator())},Re.renderDropIndicator=function(){var qe=Re.props,ut=qe.disabled,ct=qe.eventKey,yt=Re.props.context,_e=yt.draggable,st=yt.dropLevelOffset,pt=yt.dropPosition,bt=yt.prefixCls,wt=yt.indent,mt=yt.dropIndicatorRender,vt=yt.dragOverNodeKey,St=yt.direction,Nt=!!_e,Ft=!ut&&Nt&&vt===ct,Kt=wt!=null?wt:Re.cacheIndent;return Re.cacheIndent=wt,Ft?mt({dropPosition:pt,dropLevelOffset:st,indent:Kt,prefixCls:bt,direction:St}):null},Re}return(0,ve.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,He=this.props.context.selectable;return typeof Qe=="boolean"?Qe:He}},{key:"render",value:function(){var Qe,He=this.props,$e=He.eventKey,qe=He.className,ut=He.style,ct=He.dragOver,yt=He.dragOverGapTop,_e=He.dragOverGapBottom,st=He.isLeaf,pt=He.isStart,bt=He.isEnd,wt=He.expanded,mt=He.selected,vt=He.checked,St=He.halfChecked,Nt=He.loading,Ft=He.domRef,Kt=He.active,Pt=He.data,Et=He.onMouseMove,at=He.selectable,Ct=(0,oe.Z)(He,le),nt=this.props.context,ht=nt.prefixCls,Mt=nt.filterTreeNode,gt=nt.keyEntities,rt=nt.dropContainerKey,Je=nt.dropTargetKey,Xe=nt.draggingNodeKey,Ve=this.isDisabled(),tt=(0,me.Z)(Ct,{aria:!0,data:!0}),Ze=(0,ae.Z)(gt,$e)||{},je=Ze.level,De=bt[bt.length-1],Ye=this.isDraggable(),dt=!Ve&&Ye,Ke=Xe===$e,At=at!==void 0?{"aria-selected":!!at}:void 0;return xe.createElement("div",(0,We.Z)({ref:Ft,className:be()(qe,"".concat(ht,"-treenode"),(Qe={},(0,xt.Z)(Qe,"".concat(ht,"-treenode-disabled"),Ve),(0,xt.Z)(Qe,"".concat(ht,"-treenode-switcher-").concat(wt?"open":"close"),!st),(0,xt.Z)(Qe,"".concat(ht,"-treenode-checkbox-checked"),vt),(0,xt.Z)(Qe,"".concat(ht,"-treenode-checkbox-indeterminate"),St),(0,xt.Z)(Qe,"".concat(ht,"-treenode-selected"),mt),(0,xt.Z)(Qe,"".concat(ht,"-treenode-loading"),Nt),(0,xt.Z)(Qe,"".concat(ht,"-treenode-active"),Kt),(0,xt.Z)(Qe,"".concat(ht,"-treenode-leaf-last"),De),(0,xt.Z)(Qe,"".concat(ht,"-treenode-draggable"),Ye),(0,xt.Z)(Qe,"dragging",Ke),(0,xt.Z)(Qe,"drop-target",Je===$e),(0,xt.Z)(Qe,"drop-container",rt===$e),(0,xt.Z)(Qe,"drag-over",!Ve&&ct),(0,xt.Z)(Qe,"drag-over-gap-top",!Ve&&yt),(0,xt.Z)(Qe,"drag-over-gap-bottom",!Ve&&_e),(0,xt.Z)(Qe,"filter-node",Mt&&Mt((0,re.F)(this.props))),Qe)),style:ut,draggable:dt,"aria-grabbed":Ke,onDragStart:dt?this.onDragStart:void 0,onDragEnter:Ye?this.onDragEnter:void 0,onDragOver:Ye?this.onDragOver:void 0,onDragLeave:Ye?this.onDragLeave:void 0,onDrop:Ye?this.onDrop:void 0,onDragEnd:Ye?this.onDragEnd:void 0,onMouseMove:Et},At,tt),xe.createElement(ee,{prefixCls:ht,level:je,isStart:pt,isEnd:bt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Be}(xe.Component),Ne=function(Me){return xe.createElement(fe.k.Consumer,null,function(Be){return xe.createElement(we,(0,We.Z)({},Me,{context:Be}))})};Ne.displayName="TreeNode",Ne.isTreeNode=1;var Ae=Ne},39378:function(Nn,mn,ze){"use strict";ze.d(mn,{k:function(){return xt}});var We=ze(59301),xt=We.createContext(null)},54844:function(Nn,mn,ze){"use strict";ze.d(mn,{O:function(){return Ae.Z},Z:function(){return nt}});var We=ze(72308),xt=ze(49618),oe=ze(62853),Ue=ze(77321),Oe=ze(80702),ve=ze(96949),ce=ze(55090),Ce=ze(80237),Ee=ze(77205),ye=ze(38793),be=ze(92310),me=ze.n(be),xe=ze(10228),fe=ze(26112),z=ze(48736),ee=ze(59301),ae=ze(39378);function re(ht){var Mt=ht.dropPosition,gt=ht.dropLevelOffset,rt=ht.indent,Je={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Mt){case-1:Je.top=0,Je.left=-gt*rt;break;case 1:Je.bottom=0,Je.left=-gt*rt;break;case 0:Je.bottom=0,Je.left=rt;break}return ee.createElement("div",{style:Je})}function le(ht){if(ht==null)throw new TypeError("Cannot destructure "+ht)}var ue=ze(52487),pe=ze(74416),Pe=ze(34280),we=ze(45680),Ne=ze(77900),Ae=ze(39417);function Te(ht,Mt){var gt=ee.useState(!1),rt=(0,ue.Z)(gt,2),Je=rt[0],Xe=rt[1];ee.useLayoutEffect(function(){if(Je)return ht(),function(){Mt()}},[Je]),ee.useLayoutEffect(function(){return Xe(!0),function(){Xe(!1)}},[])}var Me=ze(71430),Be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Re=function(Mt,gt){var rt=Mt.className,Je=Mt.style,Xe=Mt.motion,Ve=Mt.motionNodes,tt=Mt.motionType,Ze=Mt.onMotionStart,je=Mt.onMotionEnd,De=Mt.active,Ye=Mt.treeNodeRequiredProps,dt=(0,pe.Z)(Mt,Be),Ke=ee.useState(!0),At=(0,ue.Z)(Ke,2),zt=At[0],_t=At[1],Ot=ee.useContext(ae.k),Vt=Ot.prefixCls,en=Ve&&tt!=="hide";(0,Pe.Z)(function(){Ve&&en!==zt&&_t(en)},[Ve]);var on=function(){Ve&&Ze()},fn=ee.useRef(!1),jn=function(){Ve&&!fn.current&&(fn.current=!0,je())};Te(on,jn);var er=function(ur){en===ur&&jn()};return Ve?ee.createElement(Ne.default,(0,We.Z)({ref:gt,visible:zt},Xe,{motionAppear:tt==="show",onVisibleChanged:er}),function(tr,ur){var Tr=tr.className,Lr=tr.style;return ee.createElement("div",{ref:ur,className:me()("".concat(Vt,"-treenode-motion"),Tr),style:Lr},Ve.map(function(Ar){var Gr=(0,We.Z)({},(le(Ar.data),Ar.data)),Kr=Ar.title,Mr=Ar.key,fi=Ar.isStart,Jr=Ar.isEnd;delete Gr.children;var it=(0,Me.H8)(Mr,Ye);return ee.createElement(Ae.Z,(0,We.Z)({},Gr,it,{title:Kr,active:De,data:Ar.data,key:Mr,isStart:fi,isEnd:Jr}))}))}):ee.createElement(Ae.Z,(0,We.Z)({domRef:gt,className:rt,style:Je},dt,{active:De}))};Re.displayName="MotionTreeNode";var Qe=ee.forwardRef(Re),He=Qe;function $e(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],gt=ht.length,rt=Mt.length;if(Math.abs(gt-rt)!==1)return{add:!1,key:null};function Je(Xe,Ve){var tt=new Map;Xe.forEach(function(je){tt.set(je,!0)});var Ze=Ve.filter(function(je){return!tt.has(je)});return Ze.length===1?Ze[0]:null}return gt<rt?{add:!0,key:Je(ht,Mt)}:{add:!1,key:Je(Mt,ht)}}function qe(ht,Mt,gt){var rt=ht.findIndex(function(tt){return tt.key===gt}),Je=ht[rt+1],Xe=Mt.findIndex(function(tt){return tt.key===gt});if(Je){var Ve=Mt.findIndex(function(tt){return tt.key===Je.key});return Mt.slice(Xe+1,Ve)}return Mt.slice(Xe+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"],ct={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},yt=function(){},_e="RC_TREE_MOTION_".concat(Math.random()),st={key:_e},pt={key:_e,level:0,index:0,pos:"0",node:st,nodes:[st]},bt={parent:null,children:[],pos:pt.pos,data:st,title:null,key:_e,isStart:[],isEnd:[]};function wt(ht,Mt,gt,rt){return Mt===!1||!gt?ht:ht.slice(0,Math.ceil(gt/rt)+1)}function mt(ht){var Mt=ht.key,gt=ht.pos;return(0,Me.km)(Mt,gt)}function vt(ht){for(var Mt=String(ht.data.key),gt=ht;gt.parent;)gt=gt.parent,Mt="".concat(gt.data.key," > ").concat(Mt);return Mt}var St=ee.forwardRef(function(ht,Mt){var gt=ht.prefixCls,rt=ht.data,Je=ht.selectable,Xe=ht.checkable,Ve=ht.expandedKeys,tt=ht.selectedKeys,Ze=ht.checkedKeys,je=ht.loadedKeys,De=ht.loadingKeys,Ye=ht.halfCheckedKeys,dt=ht.keyEntities,Ke=ht.disabled,At=ht.dragging,zt=ht.dragOverNodeKey,_t=ht.dropPosition,Ot=ht.motion,Vt=ht.height,en=ht.itemHeight,on=ht.virtual,fn=ht.focusable,jn=ht.activeItem,er=ht.focused,tr=ht.tabIndex,ur=ht.onKeyDown,Tr=ht.onFocus,Lr=ht.onBlur,Ar=ht.onActiveChange,Gr=ht.onListChangeStart,Kr=ht.onListChangeEnd,Mr=(0,pe.Z)(ht,ut),fi=ee.useRef(null),Jr=ee.useRef(null);ee.useImperativeHandle(Mt,function(){return{scrollTo:function(Cn){fi.current.scrollTo(Cn)},getIndentWidth:function(){return Jr.current.offsetWidth}}});var it=ee.useState(Ve),bi=(0,ue.Z)(it,2),mi=bi[0],Tn=bi[1],dr=ee.useState(rt),ar=(0,ue.Z)(dr,2),vr=ar[0],Jn=ar[1],zn=ee.useState(rt),$t=(0,ue.Z)(zn,2),Xt=$t[0],Tt=$t[1],sn=ee.useState([]),pn=(0,ue.Z)(sn,2),Yt=pn[0],Bt=pn[1],un=ee.useState(null),bn=(0,ue.Z)(un,2),On=bn[0],Zn=bn[1],Gt=ee.useRef(rt);Gt.current=rt;function An(){var xn=Gt.current;Jn(xn),Tt(xn),Bt([]),Zn(null),Kr()}(0,Pe.Z)(function(){Tn(Ve);var xn=$e(mi,Ve);if(xn.key!==null)if(xn.add){var Cn=vr.findIndex(function(Fn){var Gn=Fn.key;return Gn===xn.key}),tn=wt(qe(vr,rt,xn.key),on,Vt,en),gn=vr.slice();gn.splice(Cn+1,0,bt),Tt(gn),Bt(tn),Zn("show")}else{var yn=rt.findIndex(function(Fn){var Gn=Fn.key;return Gn===xn.key}),vn=wt(qe(rt,vr,xn.key),on,Vt,en),Ln=rt.slice();Ln.splice(yn+1,0,bt),Tt(Ln),Bt(vn),Zn("hide")}else vr!==rt&&(Jn(rt),Tt(rt))},[Ve,rt]),ee.useEffect(function(){At||An()},[At]);var Kn=Ot?Xt:rt,rr={expandedKeys:Ve,selectedKeys:tt,loadedKeys:je,loadingKeys:De,checkedKeys:Ze,halfCheckedKeys:Ye,dragOverNodeKey:zt,dropPosition:_t,keyEntities:dt};return ee.createElement(ee.Fragment,null,er&&jn&&ee.createElement("span",{style:ct,"aria-live":"assertive"},vt(jn)),ee.createElement("div",null,ee.createElement("input",{style:ct,disabled:fn===!1||Ke,tabIndex:fn!==!1?tr:null,onKeyDown:ur,onFocus:Tr,onBlur:Lr,value:"",onChange:yt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(gt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(gt,"-indent")},ee.createElement("div",{ref:Jr,className:"".concat(gt,"-indent-unit")}))),ee.createElement(we.Z,(0,We.Z)({},Mr,{data:Kn,itemKey:mt,height:Vt,fullHeight:!1,virtual:on,itemHeight:en,prefixCls:"".concat(gt,"-list"),ref:fi,onVisibleChange:function(Cn,tn){var gn=new Set(Cn),yn=tn.filter(function(vn){return!gn.has(vn)});yn.some(function(vn){return mt(vn)===_e})&&An()}}),function(xn){var Cn=xn.pos,tn=(0,We.Z)({},(le(xn.data),xn.data)),gn=xn.title,yn=xn.key,vn=xn.isStart,Ln=xn.isEnd,Fn=(0,Me.km)(yn,Cn);delete tn.key,delete tn.children;var Gn=(0,Me.H8)(Fn,rr);return ee.createElement(He,(0,We.Z)({},tn,Gn,{title:gn,active:!!jn&&yn===jn.key,pos:Cn,data:xn.data,isStart:vn,isEnd:Ln,motion:Ot,motionNodes:yn===_e?Yt:null,motionType:On,onMotionStart:Gr,onMotionEnd:An,treeNodeRequiredProps:rr,onMouseMove:function(){Ar(null)}}))}))});St.displayName="NodeList";var Nt=St,Ft=ze(35654),Kt=ze(90782),Pt=ze(67841),Et=10,at=function(ht){(0,Ee.Z)(gt,ht);var Mt=(0,ye.Z)(gt);function gt(){var rt;(0,ve.Z)(this,gt);for(var Je=arguments.length,Xe=new Array(Je),Ve=0;Ve<Je;Ve++)Xe[Ve]=arguments[Ve];return rt=Mt.call.apply(Mt,[this].concat(Xe)),rt.destroyed=!1,rt.delayedDragEnterLogic=void 0,rt.loadingRetryTimes={},rt.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,Me.w$)()},rt.dragStartMousePosition=null,rt.dragNode=void 0,rt.currentMouseOverDroppableNodeKey=null,rt.listRef=ee.createRef(),rt.onNodeDragStart=function(tt,Ze){var je=rt.state,De=je.expandedKeys,Ye=je.keyEntities,dt=rt.props.onDragStart,Ke=Ze.props.eventKey;rt.dragNode=Ze,rt.dragStartMousePosition={x:tt.clientX,y:tt.clientY};var At=(0,Ft._5)(De,Ke);rt.setState({draggingNodeKey:Ke,dragChildrenKeys:(0,Ft.wA)(Ke,Ye),indent:rt.listRef.current.getIndentWidth()}),rt.setExpandedKeys(At),window.addEventListener("dragend",rt.onWindowDragEnd),dt==null||dt({event:tt,node:(0,Me.F)(Ze.props)})},rt.onNodeDragEnter=function(tt,Ze){var je=rt.state,De=je.expandedKeys,Ye=je.keyEntities,dt=je.dragChildrenKeys,Ke=je.flattenNodes,At=je.indent,zt=rt.props,_t=zt.onDragEnter,Ot=zt.onExpand,Vt=zt.allowDrop,en=zt.direction,on=Ze.props,fn=on.pos,jn=on.eventKey,er=(0,Ce.Z)(rt),tr=er.dragNode;if(rt.currentMouseOverDroppableNodeKey!==jn&&(rt.currentMouseOverDroppableNodeKey=jn),!tr){rt.resetDragState();return}var ur=(0,Ft.OM)(tt,tr,Ze,At,rt.dragStartMousePosition,Vt,Ke,Ye,De,en),Tr=ur.dropPosition,Lr=ur.dropLevelOffset,Ar=ur.dropTargetKey,Gr=ur.dropContainerKey,Kr=ur.dropTargetPos,Mr=ur.dropAllowed,fi=ur.dragOverNodeKey;if(dt.indexOf(Ar)!==-1||!Mr){rt.resetDragState();return}if(rt.delayedDragEnterLogic||(rt.delayedDragEnterLogic={}),Object.keys(rt.delayedDragEnterLogic).forEach(function(Jr){clearTimeout(rt.delayedDragEnterLogic[Jr])}),tr.props.eventKey!==Ze.props.eventKey&&(tt.persist(),rt.delayedDragEnterLogic[fn]=window.setTimeout(function(){if(rt.state.draggingNodeKey!==null){var Jr=(0,Oe.Z)(De),it=(0,Pt.Z)(Ye,Ze.props.eventKey);it&&(it.children||[]).length&&(Jr=(0,Ft.L0)(De,Ze.props.eventKey)),"expandedKeys"in rt.props||rt.setExpandedKeys(Jr),Ot==null||Ot(Jr,{node:(0,Me.F)(Ze.props),expanded:!0,nativeEvent:tt.nativeEvent})}},800)),tr.props.eventKey===Ar&&Lr===0){rt.resetDragState();return}rt.setState({dragOverNodeKey:fi,dropPosition:Tr,dropLevelOffset:Lr,dropTargetKey:Ar,dropContainerKey:Gr,dropTargetPos:Kr,dropAllowed:Mr}),_t==null||_t({event:tt,node:(0,Me.F)(Ze.props),expandedKeys:De})},rt.onNodeDragOver=function(tt,Ze){var je=rt.state,De=je.dragChildrenKeys,Ye=je.flattenNodes,dt=je.keyEntities,Ke=je.expandedKeys,At=je.indent,zt=rt.props,_t=zt.onDragOver,Ot=zt.allowDrop,Vt=zt.direction,en=(0,Ce.Z)(rt),on=en.dragNode;if(on){var fn=(0,Ft.OM)(tt,on,Ze,At,rt.dragStartMousePosition,Ot,Ye,dt,Ke,Vt),jn=fn.dropPosition,er=fn.dropLevelOffset,tr=fn.dropTargetKey,ur=fn.dropContainerKey,Tr=fn.dropAllowed,Lr=fn.dropTargetPos,Ar=fn.dragOverNodeKey;De.indexOf(tr)!==-1||!Tr||(on.props.eventKey===tr&&er===0?rt.state.dropPosition===null&&rt.state.dropLevelOffset===null&&rt.state.dropTargetKey===null&&rt.state.dropContainerKey===null&&rt.state.dropTargetPos===null&&rt.state.dropAllowed===!1&&rt.state.dragOverNodeKey===null||rt.resetDragState():jn===rt.state.dropPosition&&er===rt.state.dropLevelOffset&&tr===rt.state.dropTargetKey&&ur===rt.state.dropContainerKey&&Lr===rt.state.dropTargetPos&&Tr===rt.state.dropAllowed&&Ar===rt.state.dragOverNodeKey||rt.setState({dropPosition:jn,dropLevelOffset:er,dropTargetKey:tr,dropContainerKey:ur,dropTargetPos:Lr,dropAllowed:Tr,dragOverNodeKey:Ar}),_t==null||_t({event:tt,node:(0,Me.F)(Ze.props)}))}},rt.onNodeDragLeave=function(tt,Ze){rt.currentMouseOverDroppableNodeKey===Ze.props.eventKey&&!tt.currentTarget.contains(tt.relatedTarget)&&(rt.resetDragState(),rt.currentMouseOverDroppableNodeKey=null);var je=rt.props.onDragLeave;je==null||je({event:tt,node:(0,Me.F)(Ze.props)})},rt.onWindowDragEnd=function(tt){rt.onNodeDragEnd(tt,null,!0),window.removeEventListener("dragend",rt.onWindowDragEnd)},rt.onNodeDragEnd=function(tt,Ze){var je=rt.props.onDragEnd;rt.setState({dragOverNodeKey:null}),rt.cleanDragState(),je==null||je({event:tt,node:(0,Me.F)(Ze.props)}),rt.dragNode=null,window.removeEventListener("dragend",rt.onWindowDragEnd)},rt.onNodeDrop=function(tt,Ze){var je,De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ye=rt.state,dt=Ye.dragChildrenKeys,Ke=Ye.dropPosition,At=Ye.dropTargetKey,zt=Ye.dropTargetPos,_t=Ye.dropAllowed;if(_t){var Ot=rt.props.onDrop;if(rt.setState({dragOverNodeKey:null}),rt.cleanDragState(),At!==null){var Vt=(0,Ue.Z)((0,Ue.Z)({},(0,Me.H8)(At,rt.getTreeNodeRequiredProps())),{},{active:((je=rt.getActiveItem())===null||je===void 0?void 0:je.key)===At,data:(0,Pt.Z)(rt.state.keyEntities,At).node}),en=dt.indexOf(At)!==-1;(0,z.ZP)(!en,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var on=(0,Ft.yx)(zt),fn={event:tt,node:(0,Me.F)(Vt),dragNode:rt.dragNode?(0,Me.F)(rt.dragNode.props):null,dragNodesKeys:[rt.dragNode.props.eventKey].concat(dt),dropToGap:Ke!==0,dropPosition:Ke+Number(on[on.length-1])};De||Ot==null||Ot(fn),rt.dragNode=null}}},rt.cleanDragState=function(){var tt=rt.state.draggingNodeKey;tt!==null&&rt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),rt.dragStartMousePosition=null,rt.currentMouseOverDroppableNodeKey=null},rt.triggerExpandActionExpand=function(tt,Ze){var je=rt.state,De=je.expandedKeys,Ye=je.flattenNodes,dt=Ze.expanded,Ke=Ze.key,At=Ze.isLeaf;if(!(At||tt.shiftKey||tt.metaKey||tt.ctrlKey)){var zt=Ye.filter(function(Ot){return Ot.key===Ke})[0],_t=(0,Me.F)((0,Ue.Z)((0,Ue.Z)({},(0,Me.H8)(Ke,rt.getTreeNodeRequiredProps())),{},{data:zt.data}));rt.setExpandedKeys(dt?(0,Ft._5)(De,Ke):(0,Ft.L0)(De,Ke)),rt.onNodeExpand(tt,_t)}},rt.onNodeClick=function(tt,Ze){var je=rt.props,De=je.onClick,Ye=je.expandAction;Ye==="click"&&rt.triggerExpandActionExpand(tt,Ze),De==null||De(tt,Ze)},rt.onNodeDoubleClick=function(tt,Ze){var je=rt.props,De=je.onDoubleClick,Ye=je.expandAction;Ye==="doubleClick"&&rt.triggerExpandActionExpand(tt,Ze),De==null||De(tt,Ze)},rt.onNodeSelect=function(tt,Ze){var je=rt.state.selectedKeys,De=rt.state,Ye=De.keyEntities,dt=De.fieldNames,Ke=rt.props,At=Ke.onSelect,zt=Ke.multiple,_t=Ze.selected,Ot=Ze[dt.key],Vt=!_t;Vt?zt?je=(0,Ft.L0)(je,Ot):je=[Ot]:je=(0,Ft._5)(je,Ot);var en=je.map(function(on){var fn=(0,Pt.Z)(Ye,on);return fn?fn.node:null}).filter(function(on){return on});rt.setUncontrolledState({selectedKeys:je}),At==null||At(je,{event:"select",selected:Vt,node:Ze,selectedNodes:en,nativeEvent:tt.nativeEvent})},rt.onNodeCheck=function(tt,Ze,je){var De=rt.state,Ye=De.keyEntities,dt=De.checkedKeys,Ke=De.halfCheckedKeys,At=rt.props,zt=At.checkStrictly,_t=At.onCheck,Ot=Ze.key,Vt,en={event:"check",node:Ze,checked:je,nativeEvent:tt.nativeEvent};if(zt){var on=je?(0,Ft.L0)(dt,Ot):(0,Ft._5)(dt,Ot),fn=(0,Ft._5)(Ke,Ot);Vt={checked:on,halfChecked:fn},en.checkedNodes=on.map(function(Lr){return(0,Pt.Z)(Ye,Lr)}).filter(function(Lr){return Lr}).map(function(Lr){return Lr.node}),rt.setUncontrolledState({checkedKeys:on})}else{var jn=(0,Kt.S)([].concat((0,Oe.Z)(dt),[Ot]),!0,Ye),er=jn.checkedKeys,tr=jn.halfCheckedKeys;if(!je){var ur=new Set(er);ur.delete(Ot);var Tr=(0,Kt.S)(Array.from(ur),{checked:!1,halfCheckedKeys:tr},Ye);er=Tr.checkedKeys,tr=Tr.halfCheckedKeys}Vt=er,en.checkedNodes=[],en.checkedNodesPositions=[],en.halfCheckedKeys=tr,er.forEach(function(Lr){var Ar=(0,Pt.Z)(Ye,Lr);if(Ar){var Gr=Ar.node,Kr=Ar.pos;en.checkedNodes.push(Gr),en.checkedNodesPositions.push({node:Gr,pos:Kr})}}),rt.setUncontrolledState({checkedKeys:er},!1,{halfCheckedKeys:tr})}_t==null||_t(Vt,en)},rt.onNodeLoad=function(tt){var Ze=tt.key,je=new Promise(function(De,Ye){rt.setState(function(dt){var Ke=dt.loadedKeys,At=Ke===void 0?[]:Ke,zt=dt.loadingKeys,_t=zt===void 0?[]:zt,Ot=rt.props,Vt=Ot.loadData,en=Ot.onLoad;if(!Vt||At.indexOf(Ze)!==-1||_t.indexOf(Ze)!==-1)return null;var on=Vt(tt);return on.then(function(){var fn=rt.state.loadedKeys,jn=(0,Ft.L0)(fn,Ze);en==null||en(jn,{event:"load",node:tt}),rt.setUncontrolledState({loadedKeys:jn}),rt.setState(function(er){return{loadingKeys:(0,Ft._5)(er.loadingKeys,Ze)}}),De()}).catch(function(fn){if(rt.setState(function(er){return{loadingKeys:(0,Ft._5)(er.loadingKeys,Ze)}}),rt.loadingRetryTimes[Ze]=(rt.loadingRetryTimes[Ze]||0)+1,rt.loadingRetryTimes[Ze]>=Et){var jn=rt.state.loadedKeys;(0,z.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),rt.setUncontrolledState({loadedKeys:(0,Ft.L0)(jn,Ze)}),De()}Ye(fn)}),{loadingKeys:(0,Ft.L0)(_t,Ze)}})});return je.catch(function(){}),je},rt.onNodeMouseEnter=function(tt,Ze){var je=rt.props.onMouseEnter;je==null||je({event:tt,node:Ze})},rt.onNodeMouseLeave=function(tt,Ze){var je=rt.props.onMouseLeave;je==null||je({event:tt,node:Ze})},rt.onNodeContextMenu=function(tt,Ze){var je=rt.props.onRightClick;je&&(tt.preventDefault(),je({event:tt,node:Ze}))},rt.onFocus=function(){var tt=rt.props.onFocus;rt.setState({focused:!0});for(var Ze=arguments.length,je=new Array(Ze),De=0;De<Ze;De++)je[De]=arguments[De];tt==null||tt.apply(void 0,je)},rt.onBlur=function(){var tt=rt.props.onBlur;rt.setState({focused:!1}),rt.onActiveChange(null);for(var Ze=arguments.length,je=new Array(Ze),De=0;De<Ze;De++)je[De]=arguments[De];tt==null||tt.apply(void 0,je)},rt.getTreeNodeRequiredProps=function(){var tt=rt.state,Ze=tt.expandedKeys,je=tt.selectedKeys,De=tt.loadedKeys,Ye=tt.loadingKeys,dt=tt.checkedKeys,Ke=tt.halfCheckedKeys,At=tt.dragOverNodeKey,zt=tt.dropPosition,_t=tt.keyEntities;return{expandedKeys:Ze||[],selectedKeys:je||[],loadedKeys:De||[],loadingKeys:Ye||[],checkedKeys:dt||[],halfCheckedKeys:Ke||[],dragOverNodeKey:At,dropPosition:zt,keyEntities:_t}},rt.setExpandedKeys=function(tt){var Ze=rt.state,je=Ze.treeData,De=Ze.fieldNames,Ye=(0,Me.oH)(je,tt,De);rt.setUncontrolledState({expandedKeys:tt,flattenNodes:Ye},!0)},rt.onNodeExpand=function(tt,Ze){var je=rt.state.expandedKeys,De=rt.state,Ye=De.listChanging,dt=De.fieldNames,Ke=rt.props,At=Ke.onExpand,zt=Ke.loadData,_t=Ze.expanded,Ot=Ze[dt.key];if(!Ye){var Vt=je.indexOf(Ot),en=!_t;if((0,z.ZP)(_t&&Vt!==-1||!_t&&Vt===-1,"Expand state not sync with index check"),en?je=(0,Ft.L0)(je,Ot):je=(0,Ft._5)(je,Ot),rt.setExpandedKeys(je),At==null||At(je,{node:Ze,expanded:en,nativeEvent:tt.nativeEvent}),en&&zt){var on=rt.onNodeLoad(Ze);on&&on.then(function(){var fn=(0,Me.oH)(rt.state.treeData,je,dt);rt.setUncontrolledState({flattenNodes:fn})}).catch(function(){var fn=rt.state.expandedKeys,jn=(0,Ft._5)(fn,Ot);rt.setExpandedKeys(jn)})}}},rt.onListChangeStart=function(){rt.setUncontrolledState({listChanging:!0})},rt.onListChangeEnd=function(){setTimeout(function(){rt.setUncontrolledState({listChanging:!1})})},rt.onActiveChange=function(tt){var Ze=rt.state.activeKey,je=rt.props.onActiveChange;Ze!==tt&&(rt.setState({activeKey:tt}),tt!==null&&rt.scrollTo({key:tt}),je==null||je(tt))},rt.getActiveItem=function(){var tt=rt.state,Ze=tt.activeKey,je=tt.flattenNodes;return Ze===null?null:je.find(function(De){var Ye=De.key;return Ye===Ze})||null},rt.offsetActiveKey=function(tt){var Ze=rt.state,je=Ze.flattenNodes,De=Ze.activeKey,Ye=je.findIndex(function(At){var zt=At.key;return zt===De});Ye===-1&&tt<0&&(Ye=je.length),Ye=(Ye+tt+je.length)%je.length;var dt=je[Ye];if(dt){var Ke=dt.key;rt.onActiveChange(Ke)}else rt.onActiveChange(null)},rt.onKeyDown=function(tt){var Ze=rt.state,je=Ze.activeKey,De=Ze.expandedKeys,Ye=Ze.checkedKeys,dt=Ze.fieldNames,Ke=rt.props,At=Ke.onKeyDown,zt=Ke.checkable,_t=Ke.selectable;switch(tt.which){case xe.Z.UP:{rt.offsetActiveKey(-1),tt.preventDefault();break}case xe.Z.DOWN:{rt.offsetActiveKey(1),tt.preventDefault();break}}var Ot=rt.getActiveItem();if(Ot&&Ot.data){var Vt=rt.getTreeNodeRequiredProps(),en=Ot.data.isLeaf===!1||!!(Ot.data[dt.children]||[]).length,on=(0,Me.F)((0,Ue.Z)((0,Ue.Z)({},(0,Me.H8)(je,Vt)),{},{data:Ot.data,active:!0}));switch(tt.which){case xe.Z.LEFT:{en&&De.includes(je)?rt.onNodeExpand({},on):Ot.parent&&rt.onActiveChange(Ot.parent.key),tt.preventDefault();break}case xe.Z.RIGHT:{en&&!De.includes(je)?rt.onNodeExpand({},on):Ot.children&&Ot.children.length&&rt.onActiveChange(Ot.children[0].key),tt.preventDefault();break}case xe.Z.ENTER:case xe.Z.SPACE:{zt&&!on.disabled&&on.checkable!==!1&&!on.disableCheckbox?rt.onNodeCheck({},on,!Ye.includes(je)):!zt&&_t&&!on.disabled&&on.selectable!==!1&&rt.onNodeSelect({},on);break}}}At==null||At(tt)},rt.setUncontrolledState=function(tt){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!rt.destroyed){var De=!1,Ye=!0,dt={};Object.keys(tt).forEach(function(Ke){if(Ke in rt.props){Ye=!1;return}De=!0,dt[Ke]=tt[Ke]}),De&&(!Ze||Ye)&&rt.setState((0,Ue.Z)((0,Ue.Z)({},dt),je))}},rt.scrollTo=function(tt){rt.listRef.current.scrollTo(tt)},rt}return(0,ce.Z)(gt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Je=this.props.activeKey;Je!==void 0&&Je!==this.state.activeKey&&(this.setState({activeKey:Je}),Je!==null&&this.scrollTo({key:Je}))}},{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 Je,Xe=this.state,Ve=Xe.focused,tt=Xe.flattenNodes,Ze=Xe.keyEntities,je=Xe.draggingNodeKey,De=Xe.activeKey,Ye=Xe.dropLevelOffset,dt=Xe.dropContainerKey,Ke=Xe.dropTargetKey,At=Xe.dropPosition,zt=Xe.dragOverNodeKey,_t=Xe.indent,Ot=this.props,Vt=Ot.prefixCls,en=Ot.className,on=Ot.style,fn=Ot.showLine,jn=Ot.focusable,er=Ot.tabIndex,tr=er===void 0?0:er,ur=Ot.selectable,Tr=Ot.showIcon,Lr=Ot.icon,Ar=Ot.switcherIcon,Gr=Ot.draggable,Kr=Ot.checkable,Mr=Ot.checkStrictly,fi=Ot.disabled,Jr=Ot.motion,it=Ot.loadData,bi=Ot.filterTreeNode,mi=Ot.height,Tn=Ot.itemHeight,dr=Ot.virtual,ar=Ot.titleRender,vr=Ot.dropIndicatorRender,Jn=Ot.onContextMenu,zn=Ot.onScroll,$t=Ot.direction,Xt=Ot.rootClassName,Tt=Ot.rootStyle,sn=(0,fe.Z)(this.props,{aria:!0,data:!0}),pn;return Gr&&((0,oe.Z)(Gr)==="object"?pn=Gr:typeof Gr=="function"?pn={nodeDraggable:Gr}:pn={}),ee.createElement(ae.k.Provider,{value:{prefixCls:Vt,selectable:ur,showIcon:Tr,icon:Lr,switcherIcon:Ar,draggable:pn,draggingNodeKey:je,checkable:Kr,checkStrictly:Mr,disabled:fi,keyEntities:Ze,dropLevelOffset:Ye,dropContainerKey:dt,dropTargetKey:Ke,dropPosition:At,dragOverNodeKey:zt,indent:_t,direction:$t,dropIndicatorRender:vr,loadData:it,filterTreeNode:bi,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:me()(Vt,en,Xt,(Je={},(0,xt.Z)(Je,"".concat(Vt,"-show-line"),fn),(0,xt.Z)(Je,"".concat(Vt,"-focused"),Ve),(0,xt.Z)(Je,"".concat(Vt,"-active-focused"),De!==null),Je)),style:Tt},ee.createElement(Nt,(0,We.Z)({ref:this.listRef,prefixCls:Vt,style:on,data:tt,disabled:fi,selectable:ur,checkable:!!Kr,motion:Jr,dragging:je!==null,height:mi,itemHeight:Tn,virtual:dr,focusable:jn,focused:Ve,tabIndex:tr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Jn,onScroll:zn},this.getTreeNodeRequiredProps(),sn))))}}],[{key:"getDerivedStateFromProps",value:function(Je,Xe){var Ve=Xe.prevProps,tt={prevProps:Je};function Ze(jn){return!Ve&&jn in Je||Ve&&Ve[jn]!==Je[jn]}var je,De=Xe.fieldNames;if(Ze("fieldNames")&&(De=(0,Me.w$)(Je.fieldNames),tt.fieldNames=De),Ze("treeData")?je=Je.treeData:Ze("children")&&((0,z.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),je=(0,Me.zn)(Je.children)),je){tt.treeData=je;var Ye=(0,Me.I8)(je,{fieldNames:De});tt.keyEntities=(0,Ue.Z)((0,xt.Z)({},_e,pt),Ye.keyEntities)}var dt=tt.keyEntities||Xe.keyEntities;if(Ze("expandedKeys")||Ve&&Ze("autoExpandParent"))tt.expandedKeys=Je.autoExpandParent||!Ve&&Je.defaultExpandParent?(0,Ft.r7)(Je.expandedKeys,dt):Je.expandedKeys;else if(!Ve&&Je.defaultExpandAll){var Ke=(0,Ue.Z)({},dt);delete Ke[_e],tt.expandedKeys=Object.keys(Ke).map(function(jn){return Ke[jn].key})}else!Ve&&Je.defaultExpandedKeys&&(tt.expandedKeys=Je.autoExpandParent||Je.defaultExpandParent?(0,Ft.r7)(Je.defaultExpandedKeys,dt):Je.defaultExpandedKeys);if(tt.expandedKeys||delete tt.expandedKeys,je||tt.expandedKeys){var At=(0,Me.oH)(je||Xe.treeData,tt.expandedKeys||Xe.expandedKeys,De);tt.flattenNodes=At}if(Je.selectable&&(Ze("selectedKeys")?tt.selectedKeys=(0,Ft.BT)(Je.selectedKeys,Je):!Ve&&Je.defaultSelectedKeys&&(tt.selectedKeys=(0,Ft.BT)(Je.defaultSelectedKeys,Je))),Je.checkable){var zt;if(Ze("checkedKeys")?zt=(0,Ft.E6)(Je.checkedKeys)||{}:!Ve&&Je.defaultCheckedKeys?zt=(0,Ft.E6)(Je.defaultCheckedKeys)||{}:je&&(zt=(0,Ft.E6)(Je.checkedKeys)||{checkedKeys:Xe.checkedKeys,halfCheckedKeys:Xe.halfCheckedKeys}),zt){var _t=zt,Ot=_t.checkedKeys,Vt=Ot===void 0?[]:Ot,en=_t.halfCheckedKeys,on=en===void 0?[]:en;if(!Je.checkStrictly){var fn=(0,Kt.S)(Vt,!0,dt);Vt=fn.checkedKeys,on=fn.halfCheckedKeys}tt.checkedKeys=Vt,tt.halfCheckedKeys=on}}return Ze("loadedKeys")&&(tt.loadedKeys=Je.loadedKeys),tt}}]),gt}(ee.Component);at.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},at.TreeNode=Ae.Z;var Ct=at,nt=Ct},35654:function(Nn,mn,ze){"use strict";ze.d(mn,{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 me},yx:function(){return be}});var We=ze(80702),xt=ze(62853),oe=ze(48736),Ue=ze(59301),Oe=ze(39417),ve=ze(67841),ce=ze(71430),Ce=null;function Ee(pe,Pe){if(!pe)return[];var we=pe.slice(),Ne=we.indexOf(Pe);return Ne>=0&&we.splice(Ne,1),we}function ye(pe,Pe){var we=(pe||[]).slice();return we.indexOf(Pe)===-1&&we.push(Pe),we}function be(pe){return pe.split("-")}function me(pe,Pe){var we=[],Ne=(0,ve.Z)(Pe,pe);function Ae(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Te.forEach(function(Me){var Be=Me.key,Re=Me.children;we.push(Be),Ae(Re)})}return Ae(Ne.children),we}function xe(pe){if(pe.parent){var Pe=be(pe.pos);return Number(Pe[Pe.length-1])===pe.parent.children.length-1}return!1}function fe(pe){var Pe=be(pe.pos);return Number(Pe[Pe.length-1])===0}function z(pe,Pe,we,Ne,Ae,Te,Me,Be,Re,Qe){var He,$e=pe.clientX,qe=pe.clientY,ut=pe.target.getBoundingClientRect(),ct=ut.top,yt=ut.height,_e=(Qe==="rtl"?-1:1)*(((Ae==null?void 0:Ae.x)||0)-$e),st=(_e-12)/Ne,pt=(0,ve.Z)(Be,we.props.eventKey);if(qe<ct+yt/2){var bt=Me.findIndex(function(nt){return nt.key===pt.key}),wt=bt<=0?0:bt-1,mt=Me[wt].key;pt=(0,ve.Z)(Be,mt)}var vt=pt.key,St=pt,Nt=pt.key,Ft=0,Kt=0;if(!Re.includes(vt))for(var Pt=0;Pt<st&&xe(pt);Pt+=1)pt=pt.parent,Kt+=1;var Et=Pe.props.data,at=pt.node,Ct=!0;return fe(pt)&&pt.level===0&&qe<ct+yt/2&&Te({dragNode:Et,dropNode:at,dropPosition:-1})&&pt.key===we.props.eventKey?Ft=-1:(St.children||[]).length&&Re.includes(Nt)?Te({dragNode:Et,dropNode:at,dropPosition:0})?Ft=0:Ct=!1:Kt===0?st>-1.5?Te({dragNode:Et,dropNode:at,dropPosition:1})?Ft=1:Ct=!1:Te({dragNode:Et,dropNode:at,dropPosition:0})?Ft=0:Te({dragNode:Et,dropNode:at,dropPosition:1})?Ft=1:Ct=!1:Te({dragNode:Et,dropNode:at,dropPosition:1})?Ft=1:Ct=!1,{dropPosition:Ft,dropLevelOffset:Kt,dropTargetKey:pt.key,dropTargetPos:pt.pos,dragOverNodeKey:Nt,dropContainerKey:Ft===0?null:((He=pt.parent)===null||He===void 0?void 0:He.key)||null,dropAllowed:Ct}}function ee(pe,Pe){if(pe){var we=Pe.multiple;return we?pe.slice():pe.length?[pe[0]]:pe}}var ae=function(Pe){return Pe};function re(pe,Pe){if(!pe)return[];var we=Pe||{},Ne=we.processProps,Ae=Ne===void 0?ae:Ne,Te=Array.isArray(pe)?pe:[pe];return Te.map(function(Me){var Be=Me.children,Re=_objectWithoutProperties(Me,Ce),Qe=re(Be,Pe);return React.createElement(TreeNode,_extends({key:Re.key},Ae(Re)),Qe)})}function le(pe){if(!pe)return null;var Pe;if(Array.isArray(pe))Pe={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,xt.Z)(pe)==="object")Pe={checkedKeys:pe.checked||void 0,halfCheckedKeys:pe.halfChecked||void 0};else return(0,oe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Pe}function ue(pe,Pe){var we=new Set;function Ne(Ae){if(!we.has(Ae)){var Te=(0,ve.Z)(Pe,Ae);if(Te){we.add(Ae);var Me=Te.parent,Be=Te.node;Be.disabled||Me&&Ne(Me.key)}}}return(pe||[]).forEach(function(Ae){Ne(Ae)}),(0,We.Z)(we)}},90782:function(Nn,mn,ze){"use strict";ze.d(mn,{S:function(){return ce}});var We=ze(48736),xt=ze(67841);function oe(Ce,Ee){var ye=new Set;return Ce.forEach(function(be){Ee.has(be)||ye.add(be)}),ye}function Ue(Ce){var Ee=Ce||{},ye=Ee.disabled,be=Ee.disableCheckbox,me=Ee.checkable;return!!(ye||be)||me===!1}function Oe(Ce,Ee,ye,be){for(var me=new Set(Ce),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,Pe=le.children,we=Pe===void 0?[]:Pe;me.has(ue)&&!be(pe)&&we.filter(function(Ne){return!be(Ne.node)}).forEach(function(Ne){me.add(Ne.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(!(be(pe)||!le.parent||ee.has(le.parent.key))){if(be(le.parent.node)){ee.add(ue.key);return}var Pe=!0,we=!1;(ue.children||[]).filter(function(Ne){return!be(Ne.node)}).forEach(function(Ne){var Ae=Ne.key,Te=me.has(Ae);Pe&&!Te&&(Pe=!1),!we&&(Te||xe.has(Ae))&&(we=!0)}),Pe&&me.add(ue.key),we&&xe.add(ue.key),ee.add(ue.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(oe(xe,me))}}function ve(Ce,Ee,ye,be,me){for(var xe=new Set(Ce),fe=new Set(Ee),z=0;z<=be;z+=1){var ee=ye.get(z)||new Set;ee.forEach(function(ue){var pe=ue.key,Pe=ue.node,we=ue.children,Ne=we===void 0?[]:we;!xe.has(pe)&&!fe.has(pe)&&!me(Pe)&&Ne.filter(function(Ae){return!me(Ae.node)}).forEach(function(Ae){xe.delete(Ae.key)})})}fe=new Set;for(var ae=new Set,re=be;re>=0;re-=1){var le=ye.get(re)||new Set;le.forEach(function(ue){var pe=ue.parent,Pe=ue.node;if(!(me(Pe)||!ue.parent||ae.has(ue.parent.key))){if(me(ue.parent.node)){ae.add(pe.key);return}var we=!0,Ne=!1;(pe.children||[]).filter(function(Ae){return!me(Ae.node)}).forEach(function(Ae){var Te=Ae.key,Me=xe.has(Te);we&&!Me&&(we=!1),!Ne&&(Me||fe.has(Te))&&(Ne=!0)}),we||xe.delete(pe.key),Ne&&fe.add(pe.key),ae.add(pe.key)}})}return{checkedKeys:Array.from(xe),halfCheckedKeys:Array.from(oe(fe,xe))}}function ce(Ce,Ee,ye,be){var me=[],xe;be?xe=be:xe=Ue;var fe=new Set(Ce.filter(function(re){var le=!!(0,xt.Z)(ye,re);return le||me.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,We.ZP)(!me.length,"Tree missing follow keys: ".concat(me.slice(0,100).map(function(re){return"'".concat(re,"'")}).join(", ")));var ae;return Ee===!0?ae=Oe(fe,z,ee,xe):ae=ve(fe,Ee.halfCheckedKeys,z,ee,xe),ae}},67841:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return We}});function We(xt,oe){return xt[oe]}},71430:function(Nn,mn,ze){"use strict";ze.d(mn,{F:function(){return ue},H8:function(){return le},I8:function(){return re},km:function(){return me},oH:function(){return ee},w$:function(){return xe},zn:function(){return z}});var We=ze(62853),xt=ze(80702),oe=ze(77321),Ue=ze(74416),Oe=ze(11592),ve=ze(2738),ce=ze(48736),Ce=ze(67841),Ee=["children"];function ye(pe,Pe){return"".concat(pe,"-").concat(Pe)}function be(pe){return pe&&pe.type&&pe.type.isTreeNode}function me(pe,Pe){return pe!=null?pe:Pe}function xe(pe){var Pe=pe||{},we=Pe.title,Ne=Pe._title,Ae=Pe.key,Te=Pe.children,Me=we||"title";return{title:Me,_title:Ne||[Me],key:Ae||"key",children:Te||"children"}}function fe(pe,Pe){var we=new Map;function Ne(Ae){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ae||[]).forEach(function(Me){var Be=Me[Pe.key],Re=Me[Pe.children];warning(Be!=null,"Tree node must have a certain key: [".concat(Te).concat(Be,"]"));var Qe=String(Be);warning(!we.has(Qe)||Be===null||Be===void 0,"Same 'key' exist in the Tree: ".concat(Qe)),we.set(Qe,!0),Ne(Re,"".concat(Te).concat(Qe," > "))})}Ne(pe)}function z(pe){function Pe(we){var Ne=(0,Oe.Z)(we);return Ne.map(function(Ae){if(!be(Ae))return(0,ce.ZP)(!Ae,"Tree/TreeNode can only accept TreeNode as children."),null;var Te=Ae.key,Me=Ae.props,Be=Me.children,Re=(0,Ue.Z)(Me,Ee),Qe=(0,oe.Z)({key:Te},Re),He=Pe(Be);return He.length&&(Qe.children=He),Qe}).filter(function(Ae){return Ae})}return Pe(pe)}function ee(pe,Pe,we){var Ne=xe(we),Ae=Ne._title,Te=Ne.key,Me=Ne.children,Be=new Set(Pe===!0?[]:Pe),Re=[];function Qe(He){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return He.map(function(qe,ut){for(var ct=ye($e?$e.pos:"0",ut),yt=me(qe[Te],ct),_e,st=0;st<Ae.length;st+=1){var pt=Ae[st];if(qe[pt]!==void 0){_e=qe[pt];break}}var bt=(0,oe.Z)((0,oe.Z)({},(0,ve.Z)(qe,[].concat((0,xt.Z)(Ae),[Te,Me]))),{},{title:_e,key:yt,parent:$e,pos:ct,children:null,data:qe,isStart:[].concat((0,xt.Z)($e?$e.isStart:[]),[ut===0]),isEnd:[].concat((0,xt.Z)($e?$e.isEnd:[]),[ut===He.length-1])});return Re.push(bt),Pe===!0||Be.has(yt)?bt.children=Qe(qe[Me]||[],bt):bt.children=[],bt})}return Qe(pe),Re}function ae(pe,Pe,we){var Ne={};(0,We.Z)(we)==="object"?Ne=we:Ne={externalGetKey:we},Ne=Ne||{};var Ae=Ne,Te=Ae.childrenPropName,Me=Ae.externalGetKey,Be=Ae.fieldNames,Re=xe(Be),Qe=Re.key,He=Re.children,$e=Te||He,qe;Me?typeof Me=="string"?qe=function(yt){return yt[Me]}:typeof Me=="function"&&(qe=function(yt){return Me(yt)}):qe=function(yt,_e){return me(yt[Qe],_e)};function ut(ct,yt,_e,st){var pt=ct?ct[$e]:pe,bt=ct?ye(_e.pos,yt):"0",wt=ct?[].concat((0,xt.Z)(st),[ct]):[];if(ct){var mt=qe(ct,bt),vt={node:ct,index:yt,pos:bt,key:mt,parentPos:_e.node?_e.pos:null,level:_e.level+1,nodes:wt};Pe(vt)}pt&&pt.forEach(function(St,Nt){ut(St,Nt,{node:ct,pos:bt,level:_e?_e.level+1:-1},wt)})}ut(null)}function re(pe){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=Pe.initWrapper,Ne=Pe.processEntity,Ae=Pe.onProcessFinished,Te=Pe.externalGetKey,Me=Pe.childrenPropName,Be=Pe.fieldNames,Re=arguments.length>2?arguments[2]:void 0,Qe=Te||Re,He={},$e={},qe={posEntities:He,keyEntities:$e};return we&&(qe=we(qe)||qe),ae(pe,function(ut){var ct=ut.node,yt=ut.index,_e=ut.pos,st=ut.key,pt=ut.parentPos,bt=ut.level,wt=ut.nodes,mt={node:ct,nodes:wt,index:yt,key:st,pos:_e,level:bt},vt=me(st,_e);He[_e]=mt,$e[vt]=mt,mt.parent=He[pt],mt.parent&&(mt.parent.children=mt.parent.children||[],mt.parent.children.push(mt)),Ne&&Ne(mt,qe)},{externalGetKey:Qe,childrenPropName:Me,fieldNames:Be}),Ae&&Ae(qe),qe}function le(pe,Pe){var we=Pe.expandedKeys,Ne=Pe.selectedKeys,Ae=Pe.loadedKeys,Te=Pe.loadingKeys,Me=Pe.checkedKeys,Be=Pe.halfCheckedKeys,Re=Pe.dragOverNodeKey,Qe=Pe.dropPosition,He=Pe.keyEntities,$e=(0,Ce.Z)(He,pe),qe={eventKey:pe,expanded:we.indexOf(pe)!==-1,selected:Ne.indexOf(pe)!==-1,loaded:Ae.indexOf(pe)!==-1,loading:Te.indexOf(pe)!==-1,checked:Me.indexOf(pe)!==-1,halfChecked:Be.indexOf(pe)!==-1,pos:String($e?$e.pos:""),dragOver:Re===pe&&Qe===0,dragOverGapTop:Re===pe&&Qe===-1,dragOverGapBottom:Re===pe&&Qe===1};return qe}function ue(pe){var Pe=pe.data,we=pe.expanded,Ne=pe.selected,Ae=pe.checked,Te=pe.loaded,Me=pe.loading,Be=pe.halfChecked,Re=pe.dragOver,Qe=pe.dragOverGapTop,He=pe.dragOverGapBottom,$e=pe.pos,qe=pe.active,ut=pe.eventKey,ct=(0,oe.Z)((0,oe.Z)({},Pe),{},{expanded:we,selected:Ne,checked:Ae,loaded:Te,loading:Me,halfChecked:Be,dragOver:Re,dragOverGapTop:Qe,dragOverGapBottom:He,pos:$e,active:qe,key:ut});return"props"in ct||Object.defineProperty(ct,"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}}),ct}},8224:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return xt}});var We=ze(4676);function xt(oe,Ue,Oe,ve){var ce=We.unstable_batchedUpdates?function(Ee){We.unstable_batchedUpdates(Oe,Ee)}:Oe;return oe!=null&&oe.addEventListener&&oe.addEventListener(Ue,ce,ve),{remove:function(){oe!=null&&oe.removeEventListener&&oe.removeEventListener(Ue,ce,ve)}}}},55468:function(Nn,mn,ze){"use strict";ze.d(mn,{g1:function(){return be},os:function(){return xe}});var We=/margin|padding|width|height|max|min|offset/,xt={left:!0,top:!0},oe={cssFloat:1,styleFloat:1,float:1};function Ue(fe){return fe.nodeType===1?fe.ownerDocument.defaultView.getComputedStyle(fe,null):{}}function Oe(fe,z,ee){if(z=z.toLowerCase(),ee==="auto"){if(z==="height")return fe.offsetHeight;if(z==="width")return fe.offsetWidth}return z in xt||(xt[z]=We.test(z)),xt[z]?parseFloat(ee)||0:ee}function ve(fe,z){var ee=arguments.length,ae=Ue(fe);return z=oe[z]?"cssFloat"in fe.style?"cssFloat":"styleFloat":z,ee===1?ae:Oe(fe,z,ae[z]||fe.style[z])}function ce(fe,z,ee){var ae=arguments.length;if(z=oe[z]?"cssFloat"in fe.style?"cssFloat":"styleFloat":z,ae===3)return typeof ee=="number"&&We.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 Ue(fe)}function Ce(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 be(){var fe=document.documentElement.clientWidth,z=window.innerHeight||document.documentElement.clientHeight;return{width:fe,height:z}}function me(){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(Nn,mn,ze){"use strict";ze.d(mn,{G:function(){return Ue}});var We=ze(47273),xt=function(ve){if((0,We.Z)()&&window.document.documentElement){var ce=Array.isArray(ve)?ve:[ve],Ce=window.document.documentElement;return ce.some(function(Ee){return Ee in Ce.style})}return!1},oe=function(ve,ce){if(!xt(ve))return!1;var Ce=document.createElement("div"),Ee=Ce.style[ve];return Ce.style[ve]=ce,Ce.style[ve]!==Ee};function Ue(Oe,ve){return!Array.isArray(Oe)&&ve!==void 0?oe(Oe,ve):xt(Oe)}},45680:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return at}});var We=ze(72308),xt=ze(62853),oe=ze(77321),Ue=ze(49618),Oe=ze(52487),ve=ze(74416),ce=ze(92310),Ce=ze.n(ce),Ee=ze(29301),ye=ze(70425),be=ze(34280),me=ze(59301),xe=ze(4676),fe=me.forwardRef(function(Ct,nt){var ht=Ct.height,Mt=Ct.offsetY,gt=Ct.offsetX,rt=Ct.children,Je=Ct.prefixCls,Xe=Ct.onInnerResize,Ve=Ct.innerProps,tt=Ct.rtl,Ze=Ct.extra,je={},De={display:"flex",flexDirection:"column"};return Mt!==void 0&&(je={height:ht,position:"relative",overflow:"hidden"},De=(0,oe.Z)((0,oe.Z)({},De),{},(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({transform:"translateY(".concat(Mt,"px)")},tt?"marginRight":"marginLeft",-gt),"position","absolute"),"left",0),"right",0),"top",0))),me.createElement("div",{style:je},me.createElement(Ee.Z,{onResize:function(dt){var Ke=dt.offsetHeight;Ke&&Xe&&Xe()}},me.createElement("div",(0,We.Z)({style:De,className:Ce()((0,Ue.Z)({},"".concat(Je,"-holder-inner"),Je)),ref:nt},Ve),rt,Ze)))});fe.displayName="Filler";var z=fe;function ee(Ct){var nt=Ct.children,ht=Ct.setRef,Mt=me.useCallback(function(gt){ht(gt)},[]);return me.cloneElement(nt,{ref:Mt})}function ae(Ct,nt,ht,Mt,gt,rt,Je,Xe){var Ve=Xe.getKey;return Ct.slice(nt,ht+1).map(function(tt,Ze){var je=nt+Ze,De=Je(tt,je,{style:{width:Mt},offsetX:gt}),Ye=Ve(tt);return me.createElement(ee,{key:Ye,setRef:function(Ke){return rt(tt,Ke)}},De)})}function re(Ct,nt,ht,Mt){var gt=ht-Ct,rt=nt-ht,Je=Math.min(gt,rt)*2;if(Mt<=Je){var Xe=Math.floor(Mt/2);return Mt%2?ht+Xe+1:ht-Xe}return gt>rt?ht-(Mt-rt):ht+(Mt-gt)}function le(Ct,nt,ht){var Mt=Ct.length,gt=nt.length,rt,Je;if(Mt===0&&gt===0)return null;Mt<gt?(rt=Ct,Je=nt):(rt=nt,Je=Ct);var Xe={__EMPTY_ITEM__:!0};function Ve(dt){return dt!==void 0?ht(dt):Xe}for(var tt=null,Ze=Math.abs(Mt-gt)!==1,je=0;je<Je.length;je+=1){var De=Ve(rt[je]),Ye=Ve(Je[je]);if(De!==Ye){tt=je,Ze=Ze||De!==Ve(Je[je+1]);break}}return tt===null?null:{index:tt,multiple:Ze}}function ue(Ct,nt,ht){var Mt=me.useState(Ct),gt=(0,Oe.Z)(Mt,2),rt=gt[0],Je=gt[1],Xe=me.useState(null),Ve=(0,Oe.Z)(Xe,2),tt=Ve[0],Ze=Ve[1];return me.useEffect(function(){var je=le(rt||[],Ct||[],nt);(je==null?void 0:je.index)!==void 0&&(ht==null||ht(je.index),Ze(Ct[je.index])),Je(Ct)},[Ct]),[tt]}var pe=ze(16089),Pe=(typeof navigator=="undefined"?"undefined":(0,xt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),we=Pe,Ne=function(Ct,nt,ht,Mt){var gt=(0,me.useRef)(!1),rt=(0,me.useRef)(null);function Je(){clearTimeout(rt.current),gt.current=!0,rt.current=setTimeout(function(){gt.current=!1},50)}var Xe=(0,me.useRef)({top:Ct,bottom:nt,left:ht,right:Mt});return Xe.current.top=Ct,Xe.current.bottom=nt,Xe.current.left=ht,Xe.current.right=Mt,function(Ve,tt){var Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,je=Ve?tt<0&&Xe.current.left||tt>0&&Xe.current.right:tt<0&&Xe.current.top||tt>0&&Xe.current.bottom;return Ze&&je?(clearTimeout(rt.current),gt.current=!1):(!je||gt.current)&&Je(),!gt.current&&je}};function Ae(Ct,nt,ht,Mt,gt,rt,Je){var Xe=(0,me.useRef)(0),Ve=(0,me.useRef)(null),tt=(0,me.useRef)(null),Ze=(0,me.useRef)(!1),je=Ne(nt,ht,Mt,gt);function De(_t,Ot){if(pe.Z.cancel(Ve.current),!je(!1,Ot)){var Vt=_t;if(!Vt._virtualHandled)Vt._virtualHandled=!0;else return;Xe.current+=Ot,tt.current=Ot,we||Vt.preventDefault(),Ve.current=(0,pe.Z)(function(){var en=Ze.current?10:1;Je(Xe.current*en,!1),Xe.current=0})}}function Ye(_t,Ot){Je(Ot,!0),we||_t.preventDefault()}var dt=(0,me.useRef)(null),Ke=(0,me.useRef)(null);function At(_t){if(Ct){pe.Z.cancel(Ke.current),Ke.current=(0,pe.Z)(function(){dt.current=null},2);var Ot=_t.deltaX,Vt=_t.deltaY,en=_t.shiftKey,on=Ot,fn=Vt;(dt.current==="sx"||!dt.current&&en&&Vt&&!Ot)&&(on=Vt,fn=0,dt.current="sx");var jn=Math.abs(on),er=Math.abs(fn);dt.current===null&&(dt.current=rt&&jn>er?"x":"y"),dt.current==="y"?De(_t,fn):Ye(_t,on)}}function zt(_t){Ct&&(Ze.current=_t.detail===tt.current)}return[At,zt]}function Te(Ct,nt,ht,Mt){var gt=me.useMemo(function(){return[new Map,[]]},[Ct,ht.id,Mt]),rt=(0,Oe.Z)(gt,2),Je=rt[0],Xe=rt[1],Ve=function(Ze){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ze,De=Je.get(Ze),Ye=Je.get(je);if(De===void 0||Ye===void 0)for(var dt=Ct.length,Ke=Xe.length;Ke<dt;Ke+=1){var At,zt=Ct[Ke],_t=nt(zt);Je.set(_t,Ke);var Ot=(At=ht.get(_t))!==null&&At!==void 0?At:Mt;if(Xe[Ke]=(Xe[Ke-1]||0)+Ot,_t===Ze&&(De=Ke),_t===je&&(Ye=Ke),De!==void 0&&Ye!==void 0)break}return{top:Xe[De-1]||0,bottom:Xe[Ye]}};return Ve}var Me=ze(96949),Be=ze(55090),Re=function(){function Ct(){(0,Me.Z)(this,Ct),(0,Ue.Z)(this,"maps",void 0),(0,Ue.Z)(this,"id",0),(0,Ue.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Be.Z)(Ct,[{key:"set",value:function(ht,Mt){this.maps[ht]=Mt,this.id+=1,this.diffKeys.add(ht)}},{key:"get",value:function(ht){return this.maps[ht]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Ct}(),Qe=Re;function He(Ct){var nt=parseFloat(Ct);return isNaN(nt)?0:nt}function $e(Ct,nt,ht){var Mt=me.useState(0),gt=(0,Oe.Z)(Mt,2),rt=gt[0],Je=gt[1],Xe=(0,me.useRef)(new Map),Ve=(0,me.useRef)(new Qe),tt=(0,me.useRef)(0);function Ze(){tt.current+=1}function je(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ze();var dt=function(){var zt=!1;Xe.current.forEach(function(_t,Ot){if(_t&&_t.offsetParent){var Vt=_t.offsetHeight,en=getComputedStyle(_t),on=en.marginTop,fn=en.marginBottom,jn=He(on),er=He(fn),tr=Vt+jn+er;Ve.current.get(Ot)!==tr&&(Ve.current.set(Ot,tr),zt=!0)}}),zt&&Je(function(_t){return _t+1})};if(Ye)dt();else{tt.current+=1;var Ke=tt.current;Promise.resolve().then(function(){Ke===tt.current&&dt()})}}function De(Ye,dt){var Ke=Ct(Ye),At=Xe.current.get(Ke);dt?(Xe.current.set(Ke,dt),je()):Xe.current.delete(Ke),!At!=!dt&&(dt?nt==null||nt(Ye):ht==null||ht(Ye))}return(0,me.useEffect)(function(){return Ze},[]),[De,je,Ve.current,rt]}var qe=14/15;function ut(Ct,nt,ht){var Mt=(0,me.useRef)(!1),gt=(0,me.useRef)(0),rt=(0,me.useRef)(0),Je=(0,me.useRef)(null),Xe=(0,me.useRef)(null),Ve,tt=function(Ye){if(Mt.current){var dt=Math.ceil(Ye.touches[0].pageX),Ke=Math.ceil(Ye.touches[0].pageY),At=gt.current-dt,zt=rt.current-Ke,_t=Math.abs(At)>Math.abs(zt);_t?gt.current=dt:rt.current=Ke;var Ot=ht(_t,_t?At:zt,!1,Ye);Ot&&Ye.preventDefault(),clearInterval(Xe.current),Ot&&(Xe.current=setInterval(function(){_t?At*=qe:zt*=qe;var Vt=Math.floor(_t?At:zt);(!ht(_t,Vt,!0)||Math.abs(Vt)<=.1)&&clearInterval(Xe.current)},16))}},Ze=function(){Mt.current=!1,Ve()},je=function(Ye){Ve(),Ye.touches.length===1&&!Mt.current&&(Mt.current=!0,gt.current=Math.ceil(Ye.touches[0].pageX),rt.current=Math.ceil(Ye.touches[0].pageY),Je.current=Ye.target,Je.current.addEventListener("touchmove",tt,{passive:!1}),Je.current.addEventListener("touchend",Ze,{passive:!0}))};Ve=function(){Je.current&&(Je.current.removeEventListener("touchmove",tt),Je.current.removeEventListener("touchend",Ze))},(0,be.Z)(function(){return Ct&&nt.current.addEventListener("touchstart",je,{passive:!0}),function(){var De;(De=nt.current)===null||De===void 0||De.removeEventListener("touchstart",je),Ve(),clearInterval(Xe.current)}},[Ct])}function ct(Ct){return Math.floor(Math.pow(Ct,.5))}function yt(Ct,nt){var ht="touches"in Ct?Ct.touches[0]:Ct;return ht[nt?"pageX":"pageY"]-window[nt?"scrollX":"scrollY"]}function _e(Ct,nt,ht){me.useEffect(function(){var Mt=nt.current;if(Ct&&Mt){var gt=!1,rt,Je,Xe=function(){pe.Z.cancel(rt)},Ve=function De(){Xe(),rt=(0,pe.Z)(function(){ht(Je),De()})},tt=function(Ye){if(!(Ye.target.draggable||Ye.button!==0)){var dt=Ye;dt._virtualHandled||(dt._virtualHandled=!0,gt=!0)}},Ze=function(){gt=!1,Xe()},je=function(Ye){if(gt){var dt=yt(Ye,!1),Ke=Mt.getBoundingClientRect(),At=Ke.top,zt=Ke.bottom;if(dt<=At){var _t=At-dt;Je=-ct(_t),Ve()}else if(dt>=zt){var Ot=dt-zt;Je=ct(Ot),Ve()}else Xe()}};return Mt.addEventListener("mousedown",tt),Mt.ownerDocument.addEventListener("mouseup",Ze),Mt.ownerDocument.addEventListener("mousemove",je),function(){Mt.removeEventListener("mousedown",tt),Mt.ownerDocument.removeEventListener("mouseup",Ze),Mt.ownerDocument.removeEventListener("mousemove",je),Xe()}}},[Ct])}var st=10;function pt(Ct,nt,ht,Mt,gt,rt,Je,Xe){var Ve=me.useRef(),tt=me.useState(null),Ze=(0,Oe.Z)(tt,2),je=Ze[0],De=Ze[1];return(0,be.Z)(function(){if(je&&je.times<st){if(!Ct.current){De(function(Jr){return(0,oe.Z)({},Jr)});return}rt();var Ye=je.targetAlign,dt=je.originAlign,Ke=je.index,At=je.offset,zt=Ct.current.clientHeight,_t=!1,Ot=Ye,Vt=null;if(zt){for(var en=Ye||dt,on=0,fn=0,jn=0,er=Math.min(nt.length-1,Ke),tr=0;tr<=er;tr+=1){var ur=gt(nt[tr]);fn=on;var Tr=ht.get(ur);jn=fn+(Tr===void 0?Mt:Tr),on=jn}for(var Lr=en==="top"?At:zt-At,Ar=er;Ar>=0;Ar-=1){var Gr=gt(nt[Ar]),Kr=ht.get(Gr);if(Kr===void 0){_t=!0;break}if(Lr-=Kr,Lr<=0)break}switch(en){case"top":Vt=fn-At;break;case"bottom":Vt=jn-zt+At;break;default:{var Mr=Ct.current.scrollTop,fi=Mr+zt;fn<Mr?Ot="top":jn>fi&&(Ot="bottom")}}Vt!==null&&Je(Vt),Vt!==je.lastTop&&(_t=!0)}_t&&De((0,oe.Z)((0,oe.Z)({},je),{},{times:je.times+1,targetAlign:Ot,lastTop:Vt}))}},[je,Ct.current]),function(Ye){if(Ye==null){Xe();return}if(pe.Z.cancel(Ve.current),typeof Ye=="number")Je(Ye);else if(Ye&&(0,xt.Z)(Ye)==="object"){var dt,Ke=Ye.align;"index"in Ye?dt=Ye.index:dt=nt.findIndex(function(_t){return gt(_t)===Ye.key});var At=Ye.offset,zt=At===void 0?0:At;De({times:0,index:dt,offset:zt,originAlign:Ke})}}}var bt=me.forwardRef(function(Ct,nt){var ht=Ct.prefixCls,Mt=Ct.rtl,gt=Ct.scrollOffset,rt=Ct.scrollRange,Je=Ct.onStartMove,Xe=Ct.onStopMove,Ve=Ct.onScroll,tt=Ct.horizontal,Ze=Ct.spinSize,je=Ct.containerSize,De=Ct.style,Ye=Ct.thumbStyle,dt=Ct.showScrollBar,Ke=me.useState(!1),At=(0,Oe.Z)(Ke,2),zt=At[0],_t=At[1],Ot=me.useState(null),Vt=(0,Oe.Z)(Ot,2),en=Vt[0],on=Vt[1],fn=me.useState(null),jn=(0,Oe.Z)(fn,2),er=jn[0],tr=jn[1],ur=!Mt,Tr=me.useRef(),Lr=me.useRef(),Ar=me.useState(dt),Gr=(0,Oe.Z)(Ar,2),Kr=Gr[0],Mr=Gr[1],fi=me.useRef(),Jr=function(){dt===!0||dt===!1||(clearTimeout(fi.current),Mr(!0),fi.current=setTimeout(function(){Mr(!1)},3e3))},it=rt-je||0,bi=je-Ze||0,mi=me.useMemo(function(){if(gt===0||it===0)return 0;var Tt=gt/it;return Tt*bi},[gt,it,bi]),Tn=function(sn){sn.stopPropagation(),sn.preventDefault()},dr=me.useRef({top:mi,dragging:zt,pageY:en,startTop:er});dr.current={top:mi,dragging:zt,pageY:en,startTop:er};var ar=function(sn){_t(!0),on(yt(sn,tt)),tr(dr.current.top),Je(),sn.stopPropagation(),sn.preventDefault()};me.useEffect(function(){var Tt=function(Bt){Bt.preventDefault()},sn=Tr.current,pn=Lr.current;return sn.addEventListener("touchstart",Tt,{passive:!1}),pn.addEventListener("touchstart",ar,{passive:!1}),function(){sn.removeEventListener("touchstart",Tt),pn.removeEventListener("touchstart",ar)}},[]);var vr=me.useRef();vr.current=it;var Jn=me.useRef();Jn.current=bi,me.useEffect(function(){if(zt){var Tt,sn=function(Bt){var un=dr.current,bn=un.dragging,On=un.pageY,Zn=un.startTop;pe.Z.cancel(Tt);var Gt=Tr.current.getBoundingClientRect(),An=je/(tt?Gt.width:Gt.height);if(bn){var Kn=(yt(Bt,tt)-On)*An,rr=Zn;!ur&&tt?rr-=Kn:rr+=Kn;var xn=vr.current,Cn=Jn.current,tn=Cn?rr/Cn:0,gn=Math.ceil(tn*xn);gn=Math.max(gn,0),gn=Math.min(gn,xn),Tt=(0,pe.Z)(function(){Ve(gn,tt)})}},pn=function(){_t(!1),Xe()};return window.addEventListener("mousemove",sn,{passive:!0}),window.addEventListener("touchmove",sn,{passive:!0}),window.addEventListener("mouseup",pn,{passive:!0}),window.addEventListener("touchend",pn,{passive:!0}),function(){window.removeEventListener("mousemove",sn),window.removeEventListener("touchmove",sn),window.removeEventListener("mouseup",pn),window.removeEventListener("touchend",pn),pe.Z.cancel(Tt)}}},[zt]),me.useEffect(function(){return Jr(),function(){clearTimeout(fi.current)}},[gt]),me.useImperativeHandle(nt,function(){return{delayHidden:Jr}});var zn="".concat(ht,"-scrollbar"),$t={position:"absolute",visibility:Kr?null:"hidden"},Xt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return tt?($t.height=8,$t.left=0,$t.right=0,$t.bottom=0,Xt.height="100%",Xt.width=Ze,ur?Xt.left=mi:Xt.right=mi):($t.width=8,$t.top=0,$t.bottom=0,ur?$t.right=0:$t.left=0,Xt.width="100%",Xt.height=Ze,Xt.top=mi),me.createElement("div",{ref:Tr,className:Ce()(zn,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(zn,"-horizontal"),tt),"".concat(zn,"-vertical"),!tt),"".concat(zn,"-visible"),Kr)),style:(0,oe.Z)((0,oe.Z)({},$t),De),onMouseDown:Tn,onMouseMove:Jr},me.createElement("div",{ref:Lr,className:Ce()("".concat(zn,"-thumb"),(0,Ue.Z)({},"".concat(zn,"-thumb-moving"),zt)),style:(0,oe.Z)((0,oe.Z)({},Xt),Ye),onMouseDown:ar}))}),wt=bt,mt=20;function vt(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ht=Ct/nt*Ct;return isNaN(ht)&&(ht=0),ht=Math.max(ht,mt),Math.floor(ht)}var St=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Nt=[],Ft={overflowY:"auto",overflowAnchor:"none"};function Kt(Ct,nt){var ht=Ct.prefixCls,Mt=ht===void 0?"rc-virtual-list":ht,gt=Ct.className,rt=Ct.height,Je=Ct.itemHeight,Xe=Ct.fullHeight,Ve=Xe===void 0?!0:Xe,tt=Ct.style,Ze=Ct.data,je=Ct.children,De=Ct.itemKey,Ye=Ct.virtual,dt=Ct.direction,Ke=Ct.scrollWidth,At=Ct.component,zt=At===void 0?"div":At,_t=Ct.onScroll,Ot=Ct.onVirtualScroll,Vt=Ct.onVisibleChange,en=Ct.innerProps,on=Ct.extraRender,fn=Ct.styles,jn=Ct.showScrollBar,er=jn===void 0?"optional":jn,tr=(0,ve.Z)(Ct,St),ur=me.useCallback(function(ti){return typeof De=="function"?De(ti):ti==null?void 0:ti[De]},[De]),Tr=$e(ur,null,null),Lr=(0,Oe.Z)(Tr,4),Ar=Lr[0],Gr=Lr[1],Kr=Lr[2],Mr=Lr[3],fi=!!(Ye!==!1&&rt&&Je),Jr=me.useMemo(function(){return Object.values(Kr.maps).reduce(function(ti,hi){return ti+hi},0)},[Kr.id,Kr.maps]),it=fi&&Ze&&(Math.max(Je*Ze.length,Jr)>rt||!!Ke),bi=dt==="rtl",mi=Ce()(Mt,(0,Ue.Z)({},"".concat(Mt,"-rtl"),bi),gt),Tn=Ze||Nt,dr=(0,me.useRef)(),ar=(0,me.useRef)(),vr=(0,me.useRef)(),Jn=(0,me.useState)(0),zn=(0,Oe.Z)(Jn,2),$t=zn[0],Xt=zn[1],Tt=(0,me.useState)(0),sn=(0,Oe.Z)(Tt,2),pn=sn[0],Yt=sn[1],Bt=(0,me.useState)(!1),un=(0,Oe.Z)(Bt,2),bn=un[0],On=un[1],Zn=function(){On(!0)},Gt=function(){On(!1)},An={getKey:ur};function Kn(ti){Xt(function(hi){var Fi;typeof ti=="function"?Fi=ti(hi):Fi=ti;var wi=br(Fi);return dr.current.scrollTop=wi,wi})}var rr=(0,me.useRef)({start:0,end:Tn.length}),xn=(0,me.useRef)(),Cn=ue(Tn,ur),tn=(0,Oe.Z)(Cn,1),gn=tn[0];xn.current=gn;var yn=me.useMemo(function(){if(!fi)return{scrollHeight:void 0,start:0,end:Tn.length-1,offset:void 0};if(!it){var ti;return{scrollHeight:((ti=ar.current)===null||ti===void 0?void 0:ti.offsetHeight)||0,start:0,end:Tn.length-1,offset:void 0}}for(var hi=0,Fi,wi,so,Po=Tn.length,Vr=0;Vr<Po;Vr+=1){var Xr=Tn[Vr],qn=ur(Xr),si=Kr.get(qn),qi=hi+(si===void 0?Je:si);qi>=$t&&Fi===void 0&&(Fi=Vr,wi=hi),qi>$t+rt&&so===void 0&&(so=Vr),hi=qi}return Fi===void 0&&(Fi=0,wi=0,so=Math.ceil(rt/Je)),so===void 0&&(so=Tn.length-1),so=Math.min(so+1,Tn.length-1),{scrollHeight:hi,start:Fi,end:so,offset:wi}},[it,fi,$t,Tn,Mr,rt]),vn=yn.scrollHeight,Ln=yn.start,Fn=yn.end,Gn=yn.offset;rr.current.start=Ln,rr.current.end=Fn,me.useLayoutEffect(function(){var ti=Kr.getRecord();if(ti.size===1){var hi=Array.from(ti)[0],Fi=Tn[Ln];if(Fi){var wi=ur(Fi);if(wi===hi){var so=Kr.get(hi),Po=so-Je;Kn(function(Vr){return Vr+Po})}}}Kr.resetRecord()},[vn]);var Hn=me.useState({width:0,height:rt}),gr=(0,Oe.Z)(Hn,2),dn=gr[0],Dr=gr[1],zr=function(hi){Dr({width:hi.offsetWidth,height:hi.offsetHeight})},Qr=(0,me.useRef)(),wn=(0,me.useRef)(),Yn=me.useMemo(function(){return vt(dn.width,Ke)},[dn.width,Ke]),cr=me.useMemo(function(){return vt(dn.height,vn)},[dn.height,vn]),Fr=vn-rt,fr=(0,me.useRef)(Fr);fr.current=Fr;function br(ti){var hi=ti;return Number.isNaN(fr.current)||(hi=Math.min(hi,fr.current)),hi=Math.max(hi,0),hi}var Hr=$t<=0,Rr=$t>=Fr,Cr=pn<=0,Zr=pn>=Ke,Dn=Ne(Hr,Rr,Cr,Zr),Ei=function(){return{x:bi?-pn:pn,y:$t}},kn=(0,me.useRef)(Ei()),ci=(0,ye.useEvent)(function(ti){if(Ot){var hi=(0,oe.Z)((0,oe.Z)({},Ei()),ti);(kn.current.x!==hi.x||kn.current.y!==hi.y)&&(Ot(hi),kn.current=hi)}});function Ri(ti,hi){var Fi=ti;hi?((0,xe.flushSync)(function(){Yt(Fi)}),ci()):Kn(Fi)}function $r(ti){var hi=ti.currentTarget.scrollTop;hi!==$t&&Kn(hi),_t==null||_t(ti),ci()}var Xi=function(hi){var Fi=hi,wi=Ke?Ke-dn.width:0;return Fi=Math.max(Fi,0),Fi=Math.min(Fi,wi),Fi},Oi=(0,ye.useEvent)(function(ti,hi){hi?((0,xe.flushSync)(function(){Yt(function(Fi){var wi=Fi+(bi?-ti:ti);return Xi(wi)})}),ci()):Kn(function(Fi){var wi=Fi+ti;return wi})}),Ir=Ae(fi,Hr,Rr,Cr,Zr,!!Ke,Oi),jr=(0,Oe.Z)(Ir,2),xi=jr[0],ki=jr[1];ut(fi,dr,function(ti,hi,Fi,wi){var so=wi;return Dn(ti,hi,Fi)?!1:!so||!so._virtualHandled?(so&&(so._virtualHandled=!0),xi({preventDefault:function(){},deltaX:ti?hi:0,deltaY:ti?0:hi}),!0):!1}),_e(it,dr,function(ti){Kn(function(hi){return hi+ti})}),(0,be.Z)(function(){function ti(Fi){var wi=Hr&&Fi.detail<0,so=Rr&&Fi.detail>0;fi&&!wi&&!so&&Fi.preventDefault()}var hi=dr.current;return hi.addEventListener("wheel",xi,{passive:!1}),hi.addEventListener("DOMMouseScroll",ki,{passive:!0}),hi.addEventListener("MozMousePixelScroll",ti,{passive:!1}),function(){hi.removeEventListener("wheel",xi),hi.removeEventListener("DOMMouseScroll",ki),hi.removeEventListener("MozMousePixelScroll",ti)}},[fi,Hr,Rr]),(0,be.Z)(function(){if(Ke){var ti=Xi(pn);Yt(ti),ci({x:ti})}},[dn.width,Ke]);var pr=function(){var hi,Fi;(hi=Qr.current)===null||hi===void 0||hi.delayHidden(),(Fi=wn.current)===null||Fi===void 0||Fi.delayHidden()},kt=pt(dr,Tn,Kr,Je,ur,function(){return Gr(!0)},Kn,pr);me.useImperativeHandle(nt,function(){return{nativeElement:vr.current,getScrollInfo:Ei,scrollTo:function(hi){function Fi(wi){return wi&&(0,xt.Z)(wi)==="object"&&("left"in wi||"top"in wi)}Fi(hi)?(hi.left!==void 0&&Yt(Xi(hi.left)),kt(hi.top)):kt(hi)}}}),(0,be.Z)(function(){if(Vt){var ti=Tn.slice(Ln,Fn+1);Vt(ti,Tn)}},[Ln,Fn,Tn]);var Li=Te(Tn,ur,Kr,Je),ao=on==null?void 0:on({start:Ln,end:Fn,virtual:it,offsetX:pn,offsetY:Gn,rtl:bi,getSize:Li}),Pi=ae(Tn,Ln,Fn,Ke,pn,Ar,je,An),co=null;rt&&(co=(0,oe.Z)((0,Ue.Z)({},Ve?"height":"maxHeight",rt),Ft),fi&&(co.overflowY="hidden",Ke&&(co.overflowX="hidden"),bn&&(co.pointerEvents="none")));var wo={};return bi&&(wo.dir="rtl"),me.createElement("div",(0,We.Z)({ref:vr,style:(0,oe.Z)((0,oe.Z)({},tt),{},{position:"relative"}),className:mi},wo,tr),me.createElement(Ee.Z,{onResize:zr},me.createElement(zt,{className:"".concat(Mt,"-holder"),style:co,ref:dr,onScroll:$r,onMouseEnter:pr},me.createElement(z,{prefixCls:Mt,height:vn,offsetX:pn,offsetY:Gn,scrollWidth:Ke,onInnerResize:Gr,ref:ar,innerProps:en,rtl:bi,extra:ao},Pi))),it&&vn>rt&&me.createElement(wt,{ref:Qr,prefixCls:Mt,scrollOffset:$t,scrollRange:vn,rtl:bi,onScroll:Ri,onStartMove:Zn,onStopMove:Gt,spinSize:cr,containerSize:dn.height,style:fn==null?void 0:fn.verticalScrollBar,thumbStyle:fn==null?void 0:fn.verticalScrollBarThumb,showScrollBar:er}),it&&Ke>dn.width&&me.createElement(wt,{ref:wn,prefixCls:Mt,scrollOffset:pn,scrollRange:Ke,rtl:bi,onScroll:Ri,onStartMove:Zn,onStopMove:Gt,spinSize:Yn,containerSize:dn.width,horizontal:!0,style:fn==null?void 0:fn.horizontalScrollBar,thumbStyle:fn==null?void 0:fn.horizontalScrollBarThumb,showScrollBar:er}))}var Pt=me.forwardRef(Kt);Pt.displayName="List";var Et=Pt,at=Et},25510:function(Nn){"use strict";Nn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAgKBAWCAkGBnUyBACw7mXvR96BAUCAoEB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NnTXbRsydZ8d+81u21VZb2wpvfasdcMD+dtIpPwoxLJMmTwrbp595/Anb7O1vt2223Mq+9pWv2siJE+33l15iJ//0p/brs39jy660oj14/73hbKQVV1jBPrznXnbAgQeGocAVRF+gr790rnUBLAWwtCsOC2DJp1wBLAWw5HNNB54ogKUZsMjCcuXlV9hvzzrHvnPccTZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7de//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3Hjxtn4CRPt5ptvtQsvvMj++7+/attsu7Udc8yxtu5664YTnIl1OeHbJ9hpp/3S7pvxF9t3n31svWlr28GHHWIPPPhX22STje1HJ59iyyy7jL362iy7//4HbM899rQHH3jIDj/kkHAMwJ9uucWOOPLwEEczdcmpNmWJKSGe56Hnnrbnn3zSll1iKfvYHh+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CXc5bSLPXClvz33Xdf0SNQJ9St5JoXzvPArETuWcrOCzMcgIrdi0suHH6JAy2X7YIckKfkgocJCc7Lds1rDOwi97JitpRnCXUB2PcYASNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Nn,mn,ze){"use strict";Nn.exports=ze.p+"static/AssistantCode3.a8740efb.j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oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Nn,mn,ze){"use strict";ze.d(mn,{Z:function(){return Ce}});const We=Ee=>typeof Ee=="object"&&Ee!=null&&Ee.nodeType===1,xt=(Ee,ye)=>(!ye||Ee!=="hidden")&&Ee!=="visible"&&Ee!=="clip",oe=(Ee,ye)=>{if(Ee.clientHeight<Ee.scrollHeight||Ee.clientWidth<Ee.scrollWidth){const be=getComputedStyle(Ee,null);return xt(be.overflowY,ye)||xt(be.overflowX,ye)||(me=>{const xe=(fe=>{if(!fe.ownerDocument||!fe.ownerDocument.defaultView)return null;try{return fe.ownerDocument.defaultView.frameElement}catch(z){return null}})(me);return!!xe&&(xe.clientHeight<me.scrollHeight||xe.clientWidth<me.scrollWidth)})(Ee)}return!1},Ue=(Ee,ye,be,me,xe,fe,z,ee)=>fe<Ee&&z>ye||fe>Ee&&z<ye?0:fe<=Ee&&ee<=be||z>=ye&&ee>=be?fe-Ee-me:z>ye&&ee<be||fe<Ee&&ee>be?z-ye+xe:0,Oe=Ee=>{const ye=Ee.parentElement;return ye==null?Ee.getRootNode().host||null:ye},ve=(Ee,ye)=>{var be,me,xe,fe;if(typeof document=="undefined")return[];const{scrollMode:z,block:ee,inline:ae,boundary:re,skipOverflowHiddenElements:le}=ye,ue=typeof re=="function"?re:wt=>wt!==re;if(!We(Ee))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,Pe=[];let we=Ee;for(;We(we)&&ue(we);){if(we=Oe(we),we===pe){Pe.push(we);break}we!=null&&we===document.body&&oe(we)&&!oe(document.documentElement)||we!=null&&oe(we,le)&&Pe.push(we)}const Ne=(me=(be=window.visualViewport)==null?void 0:be.width)!=null?me:innerWidth,Ae=(fe=(xe=window.visualViewport)==null?void 0:xe.height)!=null?fe:innerHeight,{scrollX:Te,scrollY:Me}=window,{height:Be,width:Re,top:Qe,right:He,bottom:$e,left:qe}=Ee.getBoundingClientRect(),{top:ut,right:ct,bottom:yt,left:_e}=(wt=>{const mt=window.getComputedStyle(wt);return{top:parseFloat(mt.scrollMarginTop)||0,right:parseFloat(mt.scrollMarginRight)||0,bottom:parseFloat(mt.scrollMarginBottom)||0,left:parseFloat(mt.scrollMarginLeft)||0}})(Ee);let st=ee==="start"||ee==="nearest"?Qe-ut:ee==="end"?$e+yt:Qe+Be/2-ut+yt,pt=ae==="center"?qe+Re/2-_e+ct:ae==="end"?He+ct:qe-_e;const bt=[];for(let wt=0;wt<Pe.length;wt++){const mt=Pe[wt],{height:vt,width:St,top:Nt,right:Ft,bottom:Kt,left:Pt}=mt.getBoundingClientRect();if(z==="if-needed"&&Qe>=0&&qe>=0&&$e<=Ae&&He<=Ne&&(mt===pe&&!oe(mt)||Qe>=Nt&&$e<=Kt&&qe>=Pt&&He<=Ft))return bt;const Et=getComputedStyle(mt),at=parseInt(Et.borderLeftWidth,10),Ct=parseInt(Et.borderTopWidth,10),nt=parseInt(Et.borderRightWidth,10),ht=parseInt(Et.borderBottomWidth,10);let Mt=0,gt=0;const rt="offsetWidth"in mt?mt.offsetWidth-mt.clientWidth-at-nt:0,Je="offsetHeight"in mt?mt.offsetHeight-mt.clientHeight-Ct-ht:0,Xe="offsetWidth"in mt?mt.offsetWidth===0?0:St/mt.offsetWidth:0,Ve="offsetHeight"in mt?mt.offsetHeight===0?0:vt/mt.offsetHeight:0;if(pe===mt)Mt=ee==="start"?st:ee==="end"?st-Ae:ee==="nearest"?Ue(Me,Me+Ae,Ae,Ct,ht,Me+st,Me+st+Be,Be):st-Ae/2,gt=ae==="start"?pt:ae==="center"?pt-Ne/2:ae==="end"?pt-Ne:Ue(Te,Te+Ne,Ne,at,nt,Te+pt,Te+pt+Re,Re),Mt=Math.max(0,Mt+Me),gt=Math.max(0,gt+Te);else{Mt=ee==="start"?st-Nt-Ct:ee==="end"?st-Kt+ht+Je:ee==="nearest"?Ue(Nt,Kt,vt,Ct,ht+Je,st,st+Be,Be):st-(Nt+vt/2)+Je/2,gt=ae==="start"?pt-Pt-at:ae==="center"?pt-(Pt+St/2)+rt/2:ae==="end"?pt-Ft+nt+rt:Ue(Pt,Ft,St,at,nt+rt,pt,pt+Re,Re);const{scrollLeft:tt,scrollTop:Ze}=mt;Mt=Ve===0?0:Math.max(0,Math.min(Ze+Mt/Ve,mt.scrollHeight-vt/Ve+Je)),gt=Xe===0?0:Math.max(0,Math.min(tt+gt/Xe,mt.scrollWidth-St/Xe+rt)),st+=Ze-Mt,pt+=tt-gt}bt.push({el:mt,top:Mt,left:gt})}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 Ce(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 be=(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(ve(Ee,ye));const me=typeof ye=="boolean"||ye==null?void 0:ye.behavior;for(const{el:xe,top:fe,left:z}of ve(Ee,ce(ye))){const ee=fe-be.top+be.bottom,ae=z-be.left+be.right;xe.scroll({top:ee,left:ae,behavior:me})}}}}]);