|
|
(self.webpackChunk=self.webpackChunk||[]).push([[5534],{89489:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},59477:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},40001:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},26227:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},49198:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},41464:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},87169:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},73331:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},15277:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},52671:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},8657:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},56082:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},61481:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},33853:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},15075:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},43531:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},61485:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},38819:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},47472:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(ye,De){return mt.createElement(Ne.Z,(0,He.Z)({},ye,{ref:De,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce},78780:function(){"use strict"},19136:function(){"use strict"},11570:function(kn,fn){"use strict";fn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},8361:function(kn,fn){"use strict";fn.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"}},71119:function(kn,fn){"use strict";fn.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"}},29277:function(){"use strict";function kn(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(kn.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(kn.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(kn.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(kn.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 kn))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 fn=[];function We(fe,z){var ee=fn.pop();return ee===void 0?new go.Point(fe,z):(ee.x=fe,ee.y=z,ee)}function He(){var fe=fn.pop();return fe===void 0?new go.Point:fe}function mt(fe){fn.push(fe)}function oe(fe,z,ee,ae,re,le,ue,pe,Ee){Ee||(Ee=new go.Point);var be=fe-ee,Ie=re-ue,Le=NaN,Fe=NaN;if(be===0)if(Ie===0)fe===ee&&(Le=fe,Fe=z);else{var Oe=(le-pe)/Ie,je=le-Oe*re;Le=fe,Fe=Oe*Le+je}else if(Ie===0){var ze=(z-ae)/be,_e=z-ze*fe;Le=re,Fe=ze*Le+_e}else{var ze=(z-ae)/be,Oe=(le-pe)/Ie,_e=z-ze*fe,je=le-Oe*re;Le=(je-_e)/(ze-Oe),Fe=ze*Le+_e}return Ee.x=Le,Ee.y=Fe,Ee}function Ze(fe,z,ee,ae,re,le,ue,pe,Ee,be,Ie,Le,Fe,Oe){var je=1-Ee,ze=Ee,_e=fe*je+ee*ze,Ue=z*je+ae*ze,$e=ee*je+re*ze,et=ae*je+le*ze,lt=re*je+ue*ze,ut=le*je+pe*ze,yt=_e*je+$e*ze,qe=Ue*je+et*ze,ot=$e*je+lt*ze,dt=et*je+ut*ze,St=yt*je+ot*ze,xt=qe*je+dt*ze;be.x=_e,be.y=Ue,Ie.x=yt,Ie.y=qe,Le.x=St,Le.y=xt,Fe.x=ot,Fe.y=dt,Oe.x=lt,Oe.y=ut}var Ne=new go.Spot(.156,.156),ge=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new kn("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=Ne,re.spot2=ge,re.defaultStretch=go.GraphObject.Uniform,re}),go.Shape.defineFigureGenerator("Line1",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=0,ae.endX=z,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Line2",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z,ae.startY=0,ae.endX=0,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Curve1",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,ce*z,0,z,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,0,ce*ee,(1-ce)*z,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,ce*ee,ce*z,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-ce)*z,0,0,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new kn("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 kn("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 kn("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 kn("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 kn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=10:ae<-z?ae=-z/2:ae>z&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())):le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}});var Pe=[];function Ae(){var fe=Pe.pop();return fe===void 0?[]:fe}function ye(fe){fe.length=0,Pe.push(fe)}function De(fe){for(var z=Ae(),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=we(fe),ee=Ae();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 we(fe){for(var z=De(fe),ee=Ae(),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],Ee=z[ue+1],be=z[(ae+ue-1)%re],Ie=z[(ae+ue+le)%re];ee[ue*2]=pe,ee[ue*2+1]=oe(pe.x,pe.y,be.x,be.y,Ee.x,Ee.y,Ie.x,Ie.y,new go.Point)}return ee[ee.length]=ee[0],ye(z),ee}go.Shape.defineFigureGenerator("Pentagon",function(fe,z,ee){var ae=De(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=De(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=De(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=De(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=De(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=De(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=De(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=we(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=we(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=we(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=we(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=we(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=we(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 kn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new kn("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 kn("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=Ne,le.spot2=ge,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Cloud",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.08034461*z,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*z,.05349299*ee,-.09239631*z,.07836421*ee,.1406031*z,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*z,.074219*ee,.2450511*z,-.00697547*ee,.3776197*z,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*z,.07004196*ee,.4539471*z,0,.6066018*z,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*z,.08370865*ee,.6914277*z,-.01904177*ee,.8921095*z,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*z,.3194596*ee,1.036446*z,.04105738*ee,1.020377*z,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*z,.562044*ee,1.04448*z,.360238*ee,.992256*z,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*z,.8217117*ee,1.032337*z,.5771781*ee,1.018411*z,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*z,.9156953*ee,1.028411*z,.9571472*ee,.8556702*z,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*z,.9310455*ee,.7431877*z,1.009325*ee,.5624123*z,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*z,.9344623*ee,.4820677*z,1.031761*ee,.3030112*z,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.870098*ee,.2329994*z,1.01518*ee,.03213784*z,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*z,.6545475*ee,-.02812061*z,.9032597*ee,-.01205169*z,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*z,.4265613*ee,-.01812061*z,.6089503*ee,-.00606892*z,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.1944299*ee,-.01606892*z,.3892545*ee,-.01205169*z,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(fe,z,ee){var ae=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ae*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close())).setSpots(ae/2,ae/2,1-ae/2,1-ae/2)}),go.Shape.setFigureParameter("Pie",0,new kn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new kn("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 kn("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 kn("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 kn("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),Ee=ae-Math.min(Math.cos(pe)*ae/2,le),be=ae-Math.min(Math.sin(pe)*ae/2,ue),re=new go.Geometry,Ie=new go.PathFigure(Ee,0,!0);return re.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,z-Ee,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,z,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,z,ee-be)),Ie.add(new go.PathSegment(go.PathSegment.Line,z-Ee,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,Ee,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,ee-be)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),re}}),go.Shape.setFigureParameter("ThinX",0,new kn("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 kn("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 kn("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,Ee=le*ce;return re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ee+pe)*ee,(.5-Ee+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Ee+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Ee+pe)*ee,(.5+Ee+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-Ee+ue)*z,(.5-le+pe)*ee,(.5-le+ue+.05)*z,(.5-Ee+pe-.02)*ee)),le=.2,ue=0,pe=-.3,Ee=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Ee+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Ee+pe)*ee,(.5+Ee+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Ee+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ee+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ee+pe)*ee,(.5-Ee+ue)*z,(.5+le+pe)*ee)),le=.2,ue=-.3,pe=0,Ee=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue-.05)*z,(.5-Ee+pe-.02)*ee,(.5+Ee+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Ee+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ee+pe)*ee,(.5-Ee+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+Ee+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ee+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,Ee=new go.PathFigure(ue*z,(pe-le)*ee);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.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 be=He(),Ie=He(),Le=He(),Fe=He();Ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.42,be,Ie,Le,Fe,Fe);var Oe=He(),je=He(),ze=He();Ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.58,Fe,Fe,ze,Oe,je);var _e=He(),Ue=He(),$e=He();Ze(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.42,_e,Ue,$e,Fe,Fe);var et=He(),lt=He(),ut=He();return Ze(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.58,Fe,Fe,ut,et,lt),Ee.add(new go.PathSegment(go.PathSegment.Move,ut.x*z,ut.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,et.x*z,et.y*ee,lt.x*z,lt.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*z,Le.y*ee,be.x*z,be.y*ee,Ie.x*z,Ie.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,ut.x*z,ut.y*ee).close()),Ee.add(new go.PathSegment(go.PathSegment.Move,$e.x*z,$e.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,ze.x*z,ze.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Oe.x*z,Oe.y*ee,je.x*z,je.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,$e.x*z,$e.y*ee,_e.x*z,_e.y*ee,Ue.x*z,Ue.y*ee).close()),mt(be),mt(Ie),mt(Le),mt(Fe),mt(Oe),mt(je),mt(ze),mt(_e),mt(Ue),mt($e),mt(et),mt(lt),mt(ut),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 kn("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,Ee=He(),be=He(),Ie=He(),Le=He(),Fe=new go.PathFigure((ue-le)*z,pe*ee,!1);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.44,Ie,Le,be,Ee,Ee),Fe.add(new go.PathSegment(go.PathSegment.Bezier,be.x*z,be.y*ee,Ie.x*z,Ie.y*ee,Le.x*z,Le.y*ee));var Oe=We(be.x,be.y);Ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.56,Ee,Ee,be,Ie,Le);var je=We(be.x,be.y);Fe.add(new go.PathSegment(go.PathSegment.Line,(Oe.x*.1+.95*.9)*z,Oe.y*.1*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,.85*z,Oe.y*.1*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.9)*z,.15*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.9)*z,(je.y*.1+.05*.9)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,je.x*z,je.y*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ie.x*z,Ie.y*ee,Le.x*z,Le.y*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),le=.35,re=ce*.35;var ze=new go.PathFigure(ue*z,(pe-le)*ee,!1);ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee));var _e=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(_e),mt(Ee),mt(be),mt(Ie),mt(Le),mt(Oe),mt(je),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,Ee=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);ae.add(Ee),Ee.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)),Ee.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)),Ee.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)),Ee.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)),Ee.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),re=.325,le=0,ue=-.125,pe=re*ce;var Ee=new go.PathFigure((1-.5+re+le)*z,(.5+ue)*ee,!1);ae.add(Ee),Ee.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)),Ee.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)),Ee.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)),Ee.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 Ee=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);return ae.add(Ee),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 kn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new kn("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,Ee=new go.Geometry,be=new go.PathFigure(0,ue,!0);Ee.add(be),be.add(new go.PathSegment(go.PathSegment.Line,le,ue)),be.add(new go.PathSegment(go.PathSegment.Line,le,0)),be.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,le,ee)),be.add(new go.PathSegment(go.PathSegment.Line,le,pe)),be.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Ee.spot1=new go.Spot(0,ue/ee);var Ie=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,He());return Ee.spot2=new go.Spot(Ie.x,Ie.y),mt(Ie),Ee}),go.Shape.setFigureParameter("Arrow2",0,new kn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new kn("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,Ee=new go.Geometry,be=new go.PathFigure(0,ue,!0);Ee.add(be),be.add(new go.PathSegment(go.PathSegment.Line,le,ue)),be.add(new go.PathSegment(go.PathSegment.Line,le,0)),be.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,le,ee)),be.add(new go.PathSegment(go.PathSegment.Line,le,pe)),be.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Ee.spot1=new go.Spot(0,ue/ee);var Ie=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,He());return Ee.spot2=new go.Spot(Ie.x,Ie.y),mt(Ie),Ee}),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 kn("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 Ee=oe(0,.5,.3,0,0,re/ee,.1,re/ee,He());return ue.spot1=new go.Spot(Ee.x,Ee.y),Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,Ee),ue.spot2=new go.Spot(Ee.x,Ee.y),mt(Ee),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new kn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new kn("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,Ee=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Ee=ee):(le=0,ue=ee,pe=0,Ee=ee));var be=new go.Geometry,Ie=new go.PathFigure(z,.5*ee,!0);be.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,Ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,Ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var Le=oe(0,.5,.3,pe/ee,0,le/ee,1,le/ee,He());return be.spot1=new go.Spot(Le.x,Le.y),Le=oe(.7,Ee/ee,1,.5,0,ue/ee,1,ue/ee,Le),be.spot2=new go.Spot(Le.x,Le.y),mt(Le),be}),go.Shape.setFigureParameter("IBeamArrow",0,new kn("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 Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,He());return ue.spot2=new go.Spot(Ee.x,Ee.y),mt(Ee),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new kn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new kn("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,Ee=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Ee=ee):(le=0,ue=ee,pe=0,Ee=ee));var be=new go.Geometry,Ie=new go.PathFigure(z,.5*ee,!0);be.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,Ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,Ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),be.spot1=new go.Spot(0,le/ee);var Le=oe(.7,Ee/ee,1,.5,0,ue/ee,1,ue/ee,He());return be.spot2=new go.Spot(Le.x,Le.y),mt(Le),be}),go.Shape.setFigureParameter("Pointer",0,new kn("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,He());return re.spot2=new go.Spot(ue.x,ue.y),mt(ue),re}),go.Shape.setFigureParameter("RoundedPointer",0,new kn("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,He());return re.spot2=new go.Spot(ue.x,ue.y),mt(ue),re}),go.Shape.setFigureParameter("SplitEndArrow",0,new kn("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 Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,He());return ue.spot2=new go.Spot(Ee.x,Ee.y),mt(Ee),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new kn("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 Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,He());return ue.spot2=new go.Spot(Ee.x,Ee.y),mt(Ee),ue}),go.Shape.setFigureParameter("SquareArrow",0,new kn("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,Ee=.5,be=.1,Ie=new go.PathFigure(Ee*z,(be+le)*ee,!0);ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-re)*z,be*ee,(Ee-ue)*z,(be+le)*ee,(Ee-re)*z,(be+pe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-le)*ee,(Ee-re)*z,(be-pe)*ee,(Ee-ue)*z,(be-le)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+re)*z,be*ee,(Ee+ue)*z,(be-le)*ee,(Ee+re)*z,(be-pe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be+le)*ee,(Ee+re)*z,(be+pe)*ee,(Ee+ue)*z,(be+le)*ee));var Le=.05,Fe=ce*Le;Ee=.05,be=.25;var Oe=new go.PathFigure(.5*z,.2*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),Ee=.95,be=.25,Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+Le)*z,be*ee,(Ee+Fe)*z,(be-Le)*ee,(Ee+Le)*z,(be-Fe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),Le=.025,Fe=ce*Le,Ee=.825,be=.35,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-Le)*ee,(Ee+Le)*z,(be-Fe)*ee,(Ee+Fe)*z,(be-Le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-Le)*z,be*ee,(Ee-Fe)*z,(be-Le)*ee,(Ee-Le)*z,(be-Fe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),Le=.05,Fe=ce*Le,Ee=.5,be=.7,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-Le)*ee,(Ee+Le)*z,(be-Fe)*ee,(Ee+Fe)*z,(be-Le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-Le)*z,be*ee,(Ee-Fe)*z,(be-Le)*ee,(Ee-Le)*z,(be-Fe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),Le=.025,Fe=ce*Le,Ee=.175,be=.35,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-Le)*ee,(Ee+Le)*z,(be-Fe)*ee,(Ee+Fe)*z,(be-Le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-Le)*z,be*ee,(Ee-Fe)*z,(be-Le)*ee,(Ee-Le)*z,(be-Fe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),Le=.05,Fe=ce*Le,Ee=.05,be=.25,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-Le)*ee,(Ee-Le)*z,(be-Fe)*ee,(Ee-Fe)*z,(be-Le)*ee)),Oe.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 kn("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,Ee=new go.PathFigure(z,pe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,ee,z,(pe+ue)*ee,(pe+ue)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-ue)*z,ee,0,(pe+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,0,0,(pe-ue)*ee,(pe-ue)*z,0)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z,pe*ee,(pe+ue)*z,0,z,(pe-ue)*ee));var be=new go.PathFigure((le+re)*z,(le+re)*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,le*z,le*ee)),be.add(new go.PathSegment(go.PathSegment.Move,le*z,(le+re)*ee)),be.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 Ee=new go.PathFigure(.8*z,.75*ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),Ee.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,Ee=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee));var be=new go.PathFigure((ue+le)*z,pe*ee,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),be.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,Ee=.9,be=.5,Ie=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+re)*z,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+re)*z,0,.8*z,(.5-le)*ee));var Le=new go.PathFigure((Ee+pe)*z,be*ee,!0);return ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be+pe)*ee,(Ee+pe)*z,(be+ue)*ee,(Ee+ue)*z,(be+pe)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z,be*ee,(Ee-ue)*z,(be+pe)*ee,(Ee-pe)*z,(be+ue)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-pe)*ee,(Ee-pe)*z,(be-ue)*ee,(Ee-ue)*z,(be-pe)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z,be*ee,(Ee+ue)*z,(be-pe)*ee,(Ee+pe)*z,(be-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,Ee=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),Ee.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 be=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.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,Ee=new go.PathFigure(0,0,!0);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le+le)*z,(pe-re)*ee,.8*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(pe+le)*ee,(ue+le+le)*z,(pe+re)*ee)),Ee.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,Ee=new go.PathFigure(.1*z,0,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var be=new go.PathFigure(.8*z,.5*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee)),be.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 Ie=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ie.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,Ee=new go.PathFigure(.1*z,0,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var be=new go.PathFigure(.2*z,0,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le)*z,(pe-re)*ee,.9*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.9*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.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,Ee=new go.PathFigure((ue-re*.5)*z,ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.3,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.5,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.7,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.9,Ee.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,Ee=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,(ue-le+.1)*z,pe*ee)),Ee.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,Ee=0,be=.5,Ie=(re-z)/2,Le=(le-ee)/2,Fe=new go.PathFigure(Ee*z+Ie,(be+pe)*ee+Le,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z+Ie,be*ee+Le,(Ee-ue)*z+Ie,(be+pe)*ee+Le,(Ee-pe)*z+Ie,(be+ue)*ee+Le)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ie,(be-pe)*ee+Le,(Ee-pe)*z+Ie,(be-ue)*ee+Le,(Ee-ue)*z+Ie,(be-pe)*ee+Le)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe+ue*.5)*z+Ie,be*ee+Le,Ee*z+Ie,(be-pe)*ee+Le,(Ee-pe+ue*.5)*z+Ie,(be-ue)*ee+Le)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ie,(be+pe)*ee+Le,(Ee-pe+ue*.5)*z+Ie,(be+ue)*ee+Le,Ee*z+Ie,(be+pe)*ee+Le).close()),ue=ce*.4,pe=.4,Ee=.2,be=.5;var Oe=new go.PathFigure(Ee*z+Ie,(be+pe)*ee+Le,!0);ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z+Ie,be*ee+Le,(Ee-ue)*z+Ie,(be+pe)*ee+Le,(Ee-pe)*z+Ie,(be+ue)*ee+Le)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ie,(be-pe)*ee+Le,(Ee-pe)*z+Ie,(be-ue)*ee+Le,(Ee-ue)*z+Ie,(be-pe)*ee+Le)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe+ue*.5)*z+Ie,be*ee+Le,Ee*z+Ie,(be-pe)*ee+Le,(Ee-pe+ue*.5)*z+Ie,(be-ue)*ee+Le)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ie,(be+pe)*ee+Le,(Ee-pe+ue*.5)*z+Ie,(be+ue)*ee+Le,Ee*z+Ie,(be+pe)*ee+Le).close()),ue=ce*.2,pe=.2,Ee=.5,be=.5;var je=new go.PathFigure((Ee-pe)*z+Ie,be*ee+Le,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ie,(be-pe)*ee+Le,(Ee-pe)*z+Ie,(be-ue)*ee+Le,(Ee-ue)*z+Ie,(be-pe)*ee+Le)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z+Ie,be*ee+Le,(Ee+ue)*z+Ie,(be-pe)*ee+Le,(Ee+pe)*z+Ie,(be-ue)*ee+Le)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ie,(be+pe)*ee+Le,(Ee+pe)*z+Ie,(be+ue)*ee+Le,(Ee+ue)*z+Ie,(be+pe)*ee+Le)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z+Ie,be*ee+Le,(Ee-ue)*z+Ie,(be+pe)*ee+Le,(Ee-pe)*z+Ie,(be+ue)*ee+Le)),ue=ce*.4,pe=.4,Ee=.8,be=.5;var ze=new go.PathFigure(Ee*z+Ie,(be-pe)*ee+Le,!0);ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z+Ie,be*ee+Le,(Ee+ue)*z+Ie,(be-pe)*ee+Le,(Ee+pe)*z+Ie,(be-ue)*ee+Le)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ie,(be+pe)*ee+Le,(Ee+pe)*z+Ie,(be+ue)*ee+Le,(Ee+ue)*z+Ie,(be+pe)*ee+Le)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe-ue*.5)*z+Ie,be*ee+Le,Ee*z+Ie,(be+pe)*ee+Le,(Ee+pe-ue*.5)*z+Ie,(be+ue)*ee+Le)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ie,(be-pe)*ee+Le,(Ee+pe-ue*.5)*z+Ie,(be-ue)*ee+Le,Ee*z+Ie,(be-pe)*ee+Le).close()),ue=ce*.8,pe=.8,Ee=1,be=.5;var _e=new go.PathFigure(Ee*z+Ie,(be-pe)*ee+Le,!0);return ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z+Ie,be*ee+Le,(Ee+ue)*z+Ie,(be-pe)*ee+Le,(Ee+pe)*z+Ie,(be-ue)*ee+Le)),_e.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ie,(be+pe)*ee+Le,(Ee+pe)*z+Ie,(be+ue)*ee+Le,(Ee+ue)*z+Ie,(be+pe)*ee+Le)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe-ue*.5)*z+Ie,be*ee+Le,Ee*z+Ie,(be+pe)*ee+Le,(Ee+pe-ue*.5)*z+Ie,(be+ue)*ee+Le)),_e.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ie,(be-pe)*ee+Le,(Ee+pe-ue*.5)*z+Ie,(be-ue)*ee+Le,Ee*z+Ie,(be-pe)*ee+Le).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,Ee=He(),be=He(),Ie=He(),Le=He();Ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Ee,Ee,be,Ie,Le);var Fe=We(be.x,be.y),Oe=new go.PathFigure(be.x*z,be.y*ee,!0);ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ie.x*z,Ie.y*ee,Le.x*z,Le.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ze(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Ie,Le,be,Ee,Ee),Oe.add(new go.PathSegment(go.PathSegment.Bezier,be.x*z,be.y*ee,Ie.x*z,Ie.y*ee,Le.x*z,Le.y*ee)),re=ce*.3,le=.3,Ze(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Ie,Le,be,Ee,Ee),Oe.add(new go.PathSegment(go.PathSegment.Line,be.x*z,be.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Le.x*z,Le.y*ee,Ie.x*z,Ie.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Ee,Ee,be,Ie,Le),Oe.add(new go.PathSegment(go.PathSegment.Bezier,be.x*z,be.y*ee,Le.x*z,Le.y*ee,Ie.x*z,Ie.y*ee).close());var Oe=new go.PathFigure(.45*z,0,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),mt(Ee),mt(be),mt(Ie),mt(Le),mt(Fe),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,Ee){ue.add(new go.PathSegment(go.PathSegment.Move,(.3+pe)*z,(.8+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.5+pe)*z,(.5+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.1+pe)*z,(.5+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.3+pe)*z,(.8+Ee)*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,Ee=.4*Math.SQRT2/2+.5,be=.5-.5*Math.SQRT2/2,Ie=1,Le=.5,Fe=.5,Oe=0,je=new go.PathFigure(Ee*z,(1-be)*ee,!1);return ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,Le*ee,Ie*z,.7*ee,Ie*z,Le*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+le)*z,(Oe+le)*ee,(.5+re+le)*z,(.5-pe+le)*ee,(.5+pe+le)*z,(.5-re+le)*ee)),je.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)),je.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)),je.add(new go.PathSegment(go.PathSegment.Move,(.25+le)*z,.8*ee)),je.add(new go.PathSegment(go.PathSegment.Line,(.35+le)*z,.9*ee)),je.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,Ee=ue,be=Math.PI/4,Ie=4*(1-Math.cos(be))/(3*Math.sin(be)),Le=Ie*.5,Fe=ue,Oe=ue,je=Ie*Fe,ze=Ie*Oe;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-Fe)*z,Ee*ee,(pe-(je+Fe)/2)*z,(Ee+(Oe+ze)/2)*ee,(pe-Fe)*z,(Ee+ze)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(Ee-Oe)*ee,(pe-Fe)*z,(Ee-ze)*ee,(pe-je)*z,(Ee-Oe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+Fe)*z,Ee*ee,(pe+je)*z,(Ee-Oe)*ee,(pe+Fe)*z,(Ee-ze)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+Fe)*z,(Ee+ze)*ee,(pe+(je+Fe)/2)*z,(Ee+(Oe+ze)/2)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee));var _e=new go.PathFigure(.2*z,ee,!1);ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*ee));var Ue=new go.PathFigure(.8*z,ee,!1);return ae.add(Ue),Ue.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,Ee=.2,be=.9,Ie=new go.PathFigure((Ee-ue)*z,be*ee,!0);ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-ue)*ee,(Ee-ue)*z,(be-pe)*ee,(Ee-pe)*z,(be-ue)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ue)*z,be*ee,(Ee+pe)*z,(be-ue)*ee,(Ee+ue)*z,(be-pe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be+ue)*ee,(Ee+ue)*z,(be+pe)*ee,(Ee+pe)*z,(be+ue)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ue)*z,be*ee,(Ee-pe)*z,(be+ue)*ee,(Ee-ue)*z,(be+pe)*ee).close()),ue=.1,pe=ce*.1,Ee=.8,be=.9;var Le=new go.PathFigure((Ee-ue)*z,be*ee,!0);return ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-ue)*ee,(Ee-ue)*z,(be-pe)*ee,(Ee-pe)*z,(be-ue)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ue)*z,be*ee,(Ee+pe)*z,(be-ue)*ee,(Ee+ue)*z,(be-pe)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be+ue)*ee,(Ee+ue)*z,(be+pe)*ee,(Ee+pe)*z,(be+ue)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ue)*z,be*ee,(Ee-pe)*z,(be+ue)*ee,(Ee-ue)*z,(be+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 Ee=.1,be=ce*.1,Ie=.1,Le=.9,Fe=new go.PathFigure((Ie-Ee)*z,Le*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Le-Ee)*ee,(Ie-Ee)*z,(Le-be)*ee,(Ie-be)*z,(Le-Ee)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Ee)*z,Le*ee,(Ie+be)*z,(Le-Ee)*ee,(Ie+Ee)*z,(Le-be)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Le+Ee)*ee,(Ie+Ee)*z,(Le+be)*ee,(Ie+be)*z,(Le+Ee)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Ee)*z,Le*ee,(Ie-be)*z,(Le+Ee)*ee,(Ie-Ee)*z,(Le+be)*ee)),Ee=.1,be=ce*.1,Ie=.4,Le=.9;var Oe=new go.PathFigure((Ie-Ee)*z,Le*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Le-Ee)*ee,(Ie-Ee)*z,(Le-be)*ee,(Ie-be)*z,(Le-Ee)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Ee)*z,Le*ee,(Ie+be)*z,(Le-Ee)*ee,(Ie+Ee)*z,(Le-be)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Le+Ee)*ee,(Ie+Ee)*z,(Le+be)*ee,(Ie+be)*z,(Le+Ee)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Ee)*z,Le*ee,(Ie-be)*z,(Le+Ee)*ee,(Ie-Ee)*z,(Le+be)*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 Ie=.05,Le=ce*.05,Fe=.175,Oe=.95,pe=new go.PathFigure((Fe-Ie)*z,Oe*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Oe-Ie)*ee,(Fe-Ie)*z,(Oe-Le)*ee,(Fe-Le)*z,(Oe-Ie)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Ie)*z,Oe*ee,(Fe+Le)*z,(Oe-Ie)*ee,(Fe+Ie)*z,(Oe-Le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Oe+Ie)*ee,(Fe+Ie)*z,(Oe+Le)*ee,(Fe+Le)*z,(Oe+Ie)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ie)*z,Oe*ee,(Fe-Le)*z,(Oe+Ie)*ee,(Fe-Ie)*z,(Oe+Le)*ee));var Ie=.05,Le=ce*.05,Fe=.375,Oe=.95,Ee=new go.PathFigure((Fe-Ie)*z,Oe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Oe-Ie)*ee,(Fe-Ie)*z,(Oe-Le)*ee,(Fe-Le)*z,(Oe-Ie)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Ie)*z,Oe*ee,(Fe+Le)*z,(Oe-Ie)*ee,(Fe+Ie)*z,(Oe-Le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Oe+Ie)*ee,(Fe+Ie)*z,(Oe+Le)*ee,(Fe+Le)*z,(Oe+Ie)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ie)*z,Oe*ee,(Fe-Le)*z,(Oe+Ie)*ee,(Fe-Ie)*z,(Oe+Le)*ee));var Ie=.05,Le=ce*.05,Fe=.625,Oe=.95,be=new go.PathFigure((Fe-Ie)*z,Oe*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Oe-Ie)*ee,(Fe-Ie)*z,(Oe-Le)*ee,(Fe-Le)*z,(Oe-Ie)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Ie)*z,Oe*ee,(Fe+Le)*z,(Oe-Ie)*ee,(Fe+Ie)*z,(Oe-Le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Oe+Ie)*ee,(Fe+Ie)*z,(Oe+Le)*ee,(Fe+Le)*z,(Oe+Ie)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ie)*z,Oe*ee,(Fe-Le)*z,(Oe+Ie)*ee,(Fe-Ie)*z,(Oe+Le)*ee));var Ie=.05,Le=ce*.05,Fe=.825,Oe=.95,je=new go.PathFigure((Fe-Ie)*z,Oe*ee,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Oe-Ie)*ee,(Fe-Ie)*z,(Oe-Le)*ee,(Fe-Le)*z,(Oe-Ie)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Ie)*z,Oe*ee,(Fe+Le)*z,(Oe-Ie)*ee,(Fe+Ie)*z,(Oe-Le)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Oe+Ie)*ee,(Fe+Ie)*z,(Oe+Le)*ee,(Fe+Le)*z,(Oe+Ie)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ie)*z,Oe*ee,(Fe-Le)*z,(Oe+Ie)*ee,(Fe-Ie)*z,(Oe+Le)*ee).close());var ze=new go.PathFigure(0,ee,!1);return ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Warehouse",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(.15*z,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee).close());var pe=.05,Ee=ce*.05,be=.35,Ie=.775,Le=new go.PathFigure((be-pe)*z,Ie*ee,!0);return ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ie-pe)*ee,(be-pe)*z,(Ie-Ee)*ee,(be-Ee)*z,(Ie-pe)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z,Ie*ee,(be+Ee)*z,(Ie-pe)*ee,(be+pe)*z,(Ie-Ee)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ie+pe)*ee,(be+pe)*z,(Ie+Ee)*ee,(be+Ee)*z,(Ie+pe)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z,Ie*ee,(be-Ee)*z,(Ie+pe)*ee,(be-pe)*z,(Ie+Ee)*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,Ee=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.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 be=new go.PathFigure(0,.7*ee,!1);return ae.add(be),be.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,Ee=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.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 be=new go.PathFigure(.15*z,.5*ee,!1);return ae.add(be),be.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,Ee=new go.PathFigure((ue-re)*z,pe*ee,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.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 be=new go.PathFigure((ue-re)*z,pe*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.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()),be.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,.75*z,.475*ee,.75*z,.225*ee)),be.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 Ee=new go.PathFigure(.5*z,.1*ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),Ee.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 Ee=new go.PathFigure(z*.816,ee,!0);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),Ee.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),Ee.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 Ee=new go.PathFigure(z*1,0,!0);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),Ee.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 Ee=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),Ee.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 Ee=new go.PathFigure(z*.83,ee*1,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*1).close());var be=new go.PathFigure(z*.78,ee*.05,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.05)),be.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.25)),be.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")},5559: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 kn={},fn="5.0",We={},He=null,mt=!1,oe=!1,Ze=null,Ne=!1,ge=null,ce=null,Pe=0;Pe<arguments.length;Pe++){var Ae=arguments[Pe];if(Ae!==null)switch(typeof Ae){case"number":fn=Ae.toFixed(1);break;case"string":Ae.match(new RegExp("^[0-9]\\.[0-9]+$"))?fn=Ae:Ze=Ae;break;case"object":typeof Ae.is3D!="undefined"?He=Ae:We=Ae;break;case"boolean":mt=Ae,oe=!0;break}}He===null&&(He={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},We.material_id!==void 0&&!oe&&(mt=!0)),Ze!==null&&We.id===void 0&&(We.id=Ze);var ye="",De="",me=!1,we=null,fe=null,z=null,ee=!1,ae=null,re=null,le=null,ue=null,pe=null;We.height!==void 0&&(We.height=Math.round(We.height)),We.width!==void 0&&(We.width=Math.round(We.width));var Ee=function(ft){return parseFloat(ft)>4?parseFloat(ft):5};kn.setHTML5Codebase=function(ft,gt){ce=ft,dt(ft,gt)},kn.setJavaCodebase=kn.setJavaCodebaseVersion=kn.isCompiledInstalled=kn.setPreCompiledScriptPath=kn.setPreCompiledResourcePath=function(){},kn.setHTML5CodebaseVersion=function(ft,gt){var vt=parseFloat(ft);if(vt!==NaN&&vt<5){console.log("The GeoGebra HTML5 codebase version "+vt+" is deprecated. Using version latest instead.");return}ge=ft,ot(ft,gt)},kn.getHTML5CodebaseVersion=function(){return fe},kn.getParameters=function(){return We},kn.setFontsCSSURL=function(ft){ue=ft},kn.setGiacJSURL=function(ft){},kn.setJNLPFile=function(ft){ye=ft},kn.setJNLPBaseDir=function(ft){},kn.inject=function(){function ft(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var gt="auto",vt=We.id,Tt,Et=!1,Zt=0;Zt<arguments.length;Zt++){var wt=arguments[Zt];typeof wt=="string"?(wt=wt.toLowerCase(),wt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?gt=wt:vt=arguments[Zt]):typeof wt=="boolean"?Et=wt:wt instanceof HTMLElement&&(Tt=wt)}bt();function bt(){if(!Ne){setTimeout(bt,200);return}gt=yt(gt);var it=Tt||document.getElementById(vt);if(!it){console.log("possibly bug on ajax loading? ");return}if(kn.removeExistingApplet(it,!1),We.width===void 0&&it.clientWidth&&(We.width=it.clientWidth),We.height===void 0&&it.clientHeight&&(We.height=it.clientHeight),!(We.width&&We.height)&>==="html5"&&(delete We.width,delete We.height),we=gt,gt==="screenshot")Ue(it,We);else{var nt=!1;We.hasOwnProperty("playButton")&&We.playButton||We.hasOwnProperty("clickToLoad")&&We.clickToLoad?nt=!0:We.hasOwnProperty("playButtonAutoDecide")&&We.playButtonAutoDecide&&(nt=(!be()||ft())&&Ie()),nt?(we="screenshot",et(it,We,Et,gt)):_e(it,We,Et)}}};function be(){try{return window.self!==window.top}catch(ft){return!0}}function Ie(){return We.hasOwnProperty("screenshotGenerator")&&We.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}kn.getViews=function(){return He},kn.isJavaInstalled=function(){return!1};var Le=function(ft){var gt=function(Zt){var wt=JSON.parse(Zt),bt=function(xe){return xe.type=="G"||xe.type=="E"},it=wt.elements?wt.elements.filter(bt)[0]:wt;if(!it||!it.url){vt();return}We.fileName=it.url,Fe(it.settings||{}),He.is3D=!0;var nt="https://www.geogebra.org/images/";kn.setPreviewImage(ae||it.previewUrl,nt+"GeoGebra_loading.png",nt+"applet_play.png"),ft()},vt=function(){We.onError&&We.onError(),St("Error: Fetching material (id "+We.material_id+") failed.",We)},Tt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Et="/materials/"+We.material_id+"?scope=basic";Oe("https://"+Tt+"/api/proxy.php?path="+encodeURIComponent(Et),gt,vt)};function Fe(ft){var gt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(vt){ft[vt]=!!ft[vt]}),gt.forEach(function(vt){We[vt]===void 0&&ft[vt]!==void 0&&(We[vt]=ft[vt])}),We.showToolBarHelp===void 0&&(We.showToolBarHelp=We.showToolBar)}function Oe(ft,gt,vt){var Tt=new XMLHttpRequest;Tt.open("GET",ft),Tt.onload=function(){gt(Tt.responseText)},Tt.onerror=vt,Tt.send()}kn.isHTML5Installed=function(){return!0},kn.getLoadedAppletType=function(){return we},kn.setPreviewImage=function(ft,gt,vt){ae=ft,re=gt,le=vt},kn.removeExistingApplet=function(ft,gt){var vt;typeof ft=="string"&&(ft=document.getElementById(ft)),we=null;var Tt=null;for(vt=0;vt<ft.childNodes.length;vt++){var Et=ft.childNodes[vt],Zt=Et.className;Zt==="applet_screenshot"?gt?(Et.style.display="block",we="screenshot"):Et.style.display="none":Zt!=="applet_scaler prerender"&&(ft.removeChild(Et),Tt=Zt&&Zt.indexOf("appletParameters")!=-1?Et.id:null,vt--)}var wt=We.id!==void 0?We.id:Tt,bt=window[wt];bt&&typeof bt.getBase64=="function"&&(bt.remove(),window[wt]=null)},kn.refreshHitPoints=function(){if(Ee(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ft=kn.getAppletObject();return ft&&typeof ft.recalculateEnvironments=="function"?(ft.recalculateEnvironments(),!0):!1},kn.startAnimation=function(){var ft=kn.getAppletObject();return ft&&typeof ft.startAnimation=="function"?(ft.startAnimation(),!0):!1},kn.stopAnimation=function(){var ft=kn.getAppletObject();return ft&&typeof ft.stopAnimation=="function"?(ft.stopAnimation(),!0):!1},kn.getAppletObject=function(){var ft=We.id!==void 0?We.id:"ggbApplet";return window[ft]},kn.resize=function(){};var je=function(ft,gt,vt){var Tt=document.createElement("param");Tt.setAttribute("name",gt),Tt.setAttribute("value",vt),ft.appendChild(Tt)},ze=function(ft){return ft&&ft!=="false"},_e=function(ft,gt,vt){Ee(fe)<=4.2&&(vt=!0);var Tt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Tt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Et=document.createElement("div");Et.classList.add("appletParameters","notranslate");var Zt=gt.width,wt=gt.height;if(gt.disableAutoScale=gt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():gt.disableAutoScale,gt.width!==void 0)if(Ee(fe)<=4.4)ze(gt.showToolBar)&&(gt.height-=7),ze(gt.showAlgebraInput)&&(gt.height-=37),gt.width<605&&ze(gt.showToolBar)&&(gt.width=605,Zt=605);else{var bt=100;(ze(gt.showToolBar)||ze(gt.showMenuBar))&&(gt.hasOwnProperty("customToolBar")&&(gt.customToolbar=gt.customToolBar),bt=ze(gt.showMenuBar)?245:155),Zt<bt&&(gt.width=bt,Zt=bt)}Et.style.border="none",Et.style.display="inline-block";for(var it in gt)gt.hasOwnProperty(it)&&it!=="appletOnLoad"&&Et.setAttribute("data-param-"+it,gt[it]);ue&&Et.setAttribute("data-param-fontscssurl",ue),kn.resize=function(){GGBAppletUtils.responsiveResize(ft,gt)},window.addEventListener("resize",function(pt){kn.resize()});var nt=typeof gt.appletOnLoad=="function"?gt.appletOnLoad:function(){};if(!vt&>.width!==void 0){gt.hasOwnProperty("showSplash")||Et.setAttribute("data-param-showSplash","false");var xe=ft.querySelector(".applet_scaler.prerender"),Ce=xe!==null;if(Ce)var Ye=xe.querySelector(".ggb_preview");else{var Ye=ut(Zt,wt,gt.borderColor,!1);xe=document.createElement("div"),xe.className="applet_scaler",xe.style.position="relative",xe.style.display="block",xe.style.width=Zt+"px",xe.style.height=wt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(xe,"66%"),Ee(fe)>=5?(gt.appletOnLoad=function(pt){var Ot=ft.querySelector(".ggb_preview");Ot&&Ot.parentNode.removeChild(Ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(xe),window.GGBT_wsf_view&&$(window).trigger("resize"),nt(pt)},Ce||xe.appendChild(Ye)):Et.appendChild(Ye),xe.appendChild(Et),Ce||ft.appendChild(xe),setTimeout(function(){kn.resize()},1)}else{var Je=document.createElement("div");Je.className="applet_scaler",Je.style.position="relative",Je.style.display="block",Je.appendChild(Et),ft.appendChild(Je),gt.appletOnLoad=function(pt){kn.resize(),nt(pt)}}function Me(pt,Ot){Ot&&typeof Ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(pt,Ot.appletOnLoad):renderGGBElement(pt),St("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ot)}function Ge(pt,Ot){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:pt,params:Ot}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Kt){Me(Kt.article,Kt.params)}),html5AppletsToProcess=null)},Ee(fe)<5&&(pt.className+=" geogebraweb")):Me(pt,Ot)}if(Tt){scriptLoadStarted=!0;for(var Ke=0;Ke<Et.childNodes.length;Ke++){var Ve=Et.childNodes[Ke].tagName;Ve==="TABLE"&&(Et.removeChild(Et.childNodes[Ke]),Ke--)}if(ggbHTML5LoadedScript!==null){var Qe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Qe!=null&&Qe.parentNode.removeChild(Qe)}var ht=document.createElement("script"),At=function(){Ge(Et,gt)};ht.src=De+z,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=fe,ggbHTML5LoadedScript=ht.src,St("GeoGebra HTML5 codebase loaded: '"+De+"'.",gt),!ce&&(!ge||ge=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),At()):De.requirejs?__webpack_require__.e(777).then(function(){var pt=[__webpack_require__(70777)];At.apply(null,pt)}.bind(this)).catch(__webpack_require__.oe):(ht.onload=At,ft.appendChild(ht))}else Ge(Et,gt);gt.height=wt,gt.width=Zt},Ue=function(ft,gt,vt){var Tt=ut(gt.width,gt.height,gt.borderColor,vt),Et=document.createElement("div");Et.style.position="relative",Et.style.display="block",Et.style.width=gt.width+"px",Et.style.height=gt.height+"px",Et.className="applet_screenshot applet_scaler"+(vt?" applet_screenshot_play":""),Et.appendChild(Tt);var Zt=GGBAppletUtils.getScale(gt,ft,vt);vt?(ft.appendChild(lt()),window.GGBT_wsf_view||(ft.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Et,"66%"),ft.appendChild(Et),Zt!==1&&!isNaN(Zt)&&(GGBAppletUtils.scaleElement(Et,Zt),Et.style.width=gt.width+"px",Et.style.height=gt.height+"px",Et.parentNode.style.width=gt.width*Zt+"px",Et.parentNode.style.height=gt.height*Zt+"px"),kn.resize=function(){$e(ft,Tt,Et,vt)},window.addEventListener("resize",function(wt){kn.resize()}),kn.resize()};function $e(ft,gt,vt,Tt){if(ft.contains(gt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ft.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ft)}var Et=GGBAppletUtils.getScale(We,ft,Tt);vt.parentNode!==null&&(!isNaN(Et)&&Et!==1?(GGBAppletUtils.scaleElement(vt,Et),vt.parentNode.style.width=We.width*Et+"px",vt.parentNode.style.height=We.height*Et+"px"):(GGBAppletUtils.scaleElement(vt,1),vt.parentNode.style.width=We.width+"px",vt.parentNode.style.height=We.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ft),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}kn.onExitFullscreen=function(ft,gt){gt.appendChild(ft)};var et=function(ft,gt,vt,Tt){Ue(ft,gt,!0);for(var Et=function(){var bt=[];for(wt=0;wt<ft.childNodes.length;wt++)bt.push(ft.childNodes[wt]);if(window.GGBT_wsf_view){var it=window.GGBT_wsf_view.renderFullScreen(ft,gt.id),nt=document.getElementById("fullscreencontainer"),xe=jQuery(ft).find(".fullscreencontent");xe.length>0?(it.remove(),xe.attr("id","fullscreencontent").show(),jQuery(nt).append(xe),window.dispatchEvent(new Event("resize"))):_e(it,gt,!1),window.GGBT_wsf_view.launchFullScreen(nt)}else we=Tt,_e(ft,gt,!1);if(!window.GGBT_wsf_view)for(wt=0;wt<bt.length;wt++)ft.removeChild(bt[wt])},Zt=ft.getElementsByClassName("ggb_preview_play"),wt=0;wt<Zt.length;wt++)Zt[wt].addEventListener("click",Et,!1),Zt[wt].addEventListener("ontouchstart",Et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ft),Ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},lt=function(){var ft=document.createElement("div");if(ft.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var gt='.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");}',vt=document.createElement("style");vt.styleSheet?vt.styleSheet.cssText=gt:vt.appendChild(document.createTextNode(gt)),document.getElementsByTagName("head")[0].appendChild(vt)}return ft},ut=function(ft,gt,vt,Tt){var Et=document.createElement("div");Et.className="ggb_preview",Et.style.position="absolute",Et.style.zIndex="90",Et.style.width=ft-2+"px",Et.style.height=gt-2+"px",Et.style.top="0px",Et.style.left="0px",Et.style.overflow="hidden",Et.style.backgroundColor="white";var Zt="lightgrey";vt!==void 0&&(vt==="none"?Zt="transparent":Zt=vt),Et.style.border="1px solid "+Zt;var wt=document.createElement("img");if(wt.style.position="relative",wt.style.zIndex="1000",wt.style.top="-1px",wt.style.left="-1px",ae!==null&&wt.setAttribute("src",ae),wt.style.opacity=.7,re!==null){var bt,it,nt;if(!Tt){bt=document.createElement("img"),bt.style.position="absolute",bt.style.zIndex="1001",bt.style.opacity=1,wt.style.opacity=.3,it=360,it>ft/4*3&&(it=ft/4*3),nt=it/5.8,bt.setAttribute("src",re),bt.setAttribute("width",it),bt.setAttribute("height",nt);var xe=(ft-it)/2,Ce=(gt-nt)/2;bt.style.left=xe+"px",bt.style.top=Ce+"px",Et.appendChild(bt)}}return Et.appendChild(wt),Et},yt=function(ft){return ft=ft.toLowerCase(),ft==="html5"||ft==="screenshot"?ft:"html5"},qe=["web","webSimple","web3d","tablet","tablet3d","phone"],ot=function(ft,gt){if(fe=ft,gt){dt(fe,!0);return}var vt=!mt;if(vt){var Tt=Ee(fe);!isNaN(Tt)&&Tt<4.4&&(vt=!1)}var Et,Zt;window.location.protocol.substr(0,4)==="http"?Et=window.location.protocol:Et="http:";var wt=fe.indexOf("//");wt>0?Zt=fe:wt===0?Zt=Et+fe:Zt="https://www.geogebra.org/apps/5.2.814.0/";for(var bt in qe)if(fe.slice(qe[bt].length*-1)===qe[bt]||fe.slice((qe[bt].length+1)*-1)===qe[bt]+"/"){dt(Zt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&vt&&!He.is3D&&!He.AV&&!He.SV&&!He.CV&&!He.EV2&&!He.CP&&!He.PC&&!He.DA&&!He.FI&&!He.PV&&!ze(We.showToolBar)&&!ze(We.showMenuBar)&&!ze(We.showAlgebraInput)&&!ze(We.enableRightClick)&&(!We.appName||We.appName=="classic")?Zt+="webSimple/":Zt+="web3d/",dt(Zt,!1)},dt=function(ft,gt){if(ft.requirejs){De=ft;return}ft.slice(-1)!=="/"&&(ft+="/"),De=ft,gt===null&&(gt=ft.indexOf("http")===-1),me=gt,z="web.nocache.js",ee=!1;var vt=De.split("/");vt.length>1&&(!gt&&vt[vt.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):qe.indexOf(vt[vt.length-2])>=0&&(z=vt[vt.length-2]+".nocache.js")),vt=ft.split("/"),fe=vt[vt.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 Tt=parseFloat(fe);Tt!==NaN&&Tt<5&&ft.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Tt+" is deprecated. Using version latest instead."),ot("5.0",gt))},St=function(ft,gt){window.console&&window.console.log&&(!gt||typeof gt.showLogging=="undefined"||gt.showLogging&>.showLogging!=="false")&&console.log(ft)};We.material_id!==void 0?Le(xt):xt();function xt(){var ft=fn;ge!==null?ft=ge:parseFloat(ft)<5&&(ft="5.0"),ot(ft,!1),ce!==null&&dt(ce,me),Ne=!0}return kn},GGBAppletUtils=function(){"use strict";function kn(){return window.GGBT_wsf_edit!==void 0}function fn(Ne,ge){ge!=1?(Ne.style.transformOrigin="0% 0% 0px",Ne.style.webkitTransformOrigin="0% 0% 0px",Ne.style.transform="scale("+ge+","+ge+")",Ne.style.webkitTransform="scale("+ge+","+ge+")",Ne.style.maxWidth="initial",Ne.querySelector(".ggb_preview")!==null&&(Ne.querySelector(".ggb_preview").style.maxWidth="initial"),Ne.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ne.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ne.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ne.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ne.style.transform="none",Ne.style.webkitTransform="none")}function We(Ne,ge,ce,Pe,Ae,ye){var De=null;if(ye!=null&&ye!="")for(var me=Ne.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+ye+" ")>-1){De=me;break}else me=me.parentNode;var we=0,fe=0,z=0,ee=0,ae=0,re=0,le=0;if(De)we=De.offsetWidth,fe=Math.max(Pe?De.offsetWidth:0,De.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(we=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),z=we):(we=window.innerWidth,fe=window.innerHeight,z=window.innerWidth),Ne){var ue=Ne.getBoundingClientRect();ue.left>0&&ue.left<=we&&(Ae===void 0||!Ae)&&(document.dir==="rtl"?(ae=we-ue.width-ue.left,re=z<=480?10:30):(re=ue.left,ae=z<=480?10:30),ee=re+ae)}if(Ne&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=Ne.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return Ne&&((ce===void 0||!ce)&&ge>0&&ge+ee<we?we=ge:we-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(fe-=le)),{width:we,height:fe}}function He(Ne,ge,ce,Pe,Ae){if(Ne.isScreenshoGenerator)return 1;var ye=Pe!==void 0&&Pe,De=Ne.noScaleMargin!=null&&Ne.noScaleMargin,me=function(pe){return pe&&pe!=="false"},we=me(Ne.autoHeight),fe=We(ge,Ne.width,ce,we,ye&&window.GGBT_wsf_view||De,Ae),z=parseInt(fe.width),ee=Ne.width,ae=Ne.height;if(ee===void 0){var re=ge.querySelector(".appletParameters");re&&(ee=re.offsetWidth,ae=re.offsetHeight)}var le=z/ee,ue=ye?1:fe.height/ae;return ce!==void 0&&!ce&&(le=Math.min(1,le),ue=Math.min(1,ue)),Math.min(le,ue)}function mt(Ne,ge,ce){var Pe=1,Ae,ye=!1;if(Ne.hasOwnProperty("allowUpscale")&&(ye=Ne.allowUpscale),Ne.hasOwnProperty("scale")&&(Pe=parseFloat(Ne.scale),(isNaN(Pe)||Pe===null||Pe===0)&&(Pe=1),Pe>1&&(ye=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ye=!0),!(Ne.hasOwnProperty("disableAutoScale")&&Ne.disableAutoScale))Ae=He(Ne,ge,ye,ce,Ne.scaleContainerClass);else return Pe;return ye&&(!Ne.hasOwnProperty("scale")||Pe===1)?Ae:Math.min(Pe,Ae)}function oe(Ne){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),Pe=Ne.getBoundingClientRect(),Ae=(ge-Pe.width)/2,ye=(ce-Pe.height)/2;ye<0&&(ye=0),Ne.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ae<40?Ne.style.left="40px":Ne.style.left=Ae+"px",Ne.style.top=ye+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ye<40?Ne.style.top="40px":Ne.style.top=ye+"px",Ne.style.left=Ae+"px")}function Ze(Ne,ge){var ce=Ne.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ne)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var Pe=mt(ge,Ne);kn()&&ce.setAttribute("data-param-scale",Pe);for(var Ae=null,ye=0;ye<Ne.childNodes.length;ye++)if(Ne.childNodes[ye].className!==void 0&&Ne.childNodes[ye].className.match(/^applet_scaler/)){Ae=Ne.childNodes[ye];break}if(Ae!==null&&Ae.querySelector(".noscale")!==null)return;var De=ge.id!==void 0?ge.id:"ggbApplet",me=window[De];(me==null||!me.recalculateEnvironments)&&Ae!==null&&!Ae.className.match(/fullscreen/)&&(Ae.parentNode.style.transform="",!isNaN(Pe)&&Pe!==1?(Ae.parentNode.style.width=ge.width*Pe+"px",Ae.parentNode.style.height=ge.height*Pe+"px",fn(Ae,Pe)):(fn(Ae,1),Ae.parentNode.style.width=ge.width+"px",Ae.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&oe(Ne),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:Ze,isFlexibleWorksheetEditor:kn,positionCenter:oe,getScale:mt,scaleElement:fn}}();__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 kn=n.location.search;return kn.indexOf(J)!=-1||kn.indexOf(K)!=-1}function q(kn,fn){}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(kn){var fn=s[L].bindings;s[L].bindings=function(){for(var We=fn?fn():{},He=kn[webModule.__softPermutationId],mt=O;mt<He.length;mt++){var oe=He[mt];We[oe[O]]=oe[P]}return We}};var t;function u(){return v(),t}function v(){if(!t){var kn=o.createElement(Q);if(kn.id=L,kn.style.cssText=R+S,kn.tabIndex=-1,o.body.appendChild(kn),t=kn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var fn=document.compatMode==U?V:W;t.write(fn+X),t.close()}}}function w(kn){function fn(He){function mt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var oe=mt();if(oe){He();return}function Ze(){if(!oe){if(!mt())return;oe=!0,He(),o.removeEventListener&&o.removeEventListener(Z,Ze,!1),Ne&&clearInterval(Ne)}}o.addEventListener&&o.addEventListener(Z,Ze,!1);var Ne=setInterval(function(){Ze()},$)}function We(He){var mt=u(),oe=mt.body,Ze=mt.createElement(_);Ze.language=ab,Ze.crossOrigin=W,Ze.src=He,webModule.__errFn&&(Ze.onerror=function(){webModule.__errFn(L,new Error(bb+He))}),oe.appendChild(Ze)}fn(function(){We(kn)})}webModule.__startLoadingFragment=function(kn){return C(kn)},webModule.__installRunAsyncCode=function(kn){var fn=u(),We=fn.body,He=fn.createElement(_);He.language=ab,He.text=kn,We.appendChild(He),We.removeChild(He)};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(kn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(kn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(kn){var fn=c[kn];return fn==null?null:fn},r=d,webModule.__errFn=e}function B(){function kn(Ne){var ge=Ne.lastIndexOf(rb);ge==-1&&(ge=Ne.length);var ce=Ne.indexOf(sb);ce==-1&&(ce=Ne.length);var Pe=Ne.lastIndexOf(tb,Math.min(ce,ge));return Pe>=O?Ne.substring(O,Pe+P):W}function fn(Ne){if(!Ne.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=Ne+vb,Ne=kn(ge.src)}return Ne}function We(){var Ne=__gwt_getMetaProperty(wb);return Ne!=null?Ne:W}function He(){for(var Ne=o.getElementsByTagName(_),ge=O;ge<Ne.length;++ge)if(Ne[ge].src.indexOf(xb)!=-1)return kn(Ne[ge].src);return W}function mt(){var Ne=o.getElementsByTagName(yb);return Ne.length>O?Ne[Ne.length-P].href:W}function oe(){var Ne=o.location;return Ne.href==Ne.protocol+zb+Ne.host+Ne.pathname+Ne.search+Ne.hash}var Ze=We();return Ze==W&&(Ze=He()),Ze==W&&(Ze=mt()),Ze==W&&oe()&&(Ze=kn(o.location.href)),Ze=fn(Ze),Ze}function C(kn){return kn.match(/^\//)||kn.match(/^[a-zA-Z]+:\/\//)?kn:webModule.__moduleBase+kn}function D(){var kn=[],fn=O,We=[],He=[];function mt(Ne){var ge=He[Ne](),ce=We[Ne];if(ge in ce)return ge;var Pe=[];for(var Ae in ce)Pe[ce[Ae]]=Ae;throw r&&r(Ne,Pe,ge),null}if(__gwt_isKnownPropertyValue=function(Ne,ge){return ge in We[Ne]},webModule.__getPropMap=function(){var Ne={};for(var ge in We)We.hasOwnProperty(ge)&&(Ne[ge]=mt(ge));return Ne},webModule.__computePropValue=mt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var oe;try{oe=Cb;var Ze=oe.indexOf(Db);Ze!=-1&&(fn=parseInt(oe.substring(Ze+P),$),oe=oe.substring(O,Ze))}catch(Ne){}return webModule.__softPermutationId=fn,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})()},49291:function(kn,fn,We){"use strict";We.d(fn,{Ax:function(){return Ze},Ds:function(){return Ne},KI:function(){return ce},SI:function(){return oe},f1:function(){return mt}});var He=We(38446);function mt(Pe){let Ae=!0;if(Pe.length>0){for(let ye=0;ye<Pe.length;ye++)if(Pe[ye].compile_success==0||!Pe[ye].compile_success){Ae=!1;break}}else Ae=!1;return Ae}function oe(Pe,Ae=""){let ye=[];for(let De=0;De<Pe.length;De++){let me=Pe[De],we=Ae?`${Ae}/${me.name}`:`${me.name}`;ye.push({title:me.name,type:me.type,isLeaf:me.type!=="tree",key:we})}return ye}function Ze(Pe,Ae,ye){for(let De=0;De<Pe.length;De++){let me=Pe[De];if(me.key===Ae){me.children=ye;break}me.children&&Ze(me.children,Ae,ye)}return Pe}function Ne(Pe,Ae,ye){let De;return function(){let me=this,we=arguments,fe=function(){De=null,ye||Pe.apply(me,we)},z=ye&&!De;clearTimeout(De),De=setTimeout(fe,Ae),z&&Pe.apply(me,we)}}const ge=!0,ce=He.Z.API_SERVER},51736:function(kn,fn,We){"use strict";var He=We(59301),mt=We(24459),oe=We(92832),Ze=We(78241),Ne=We(8591),ge=We(43418),ce=We(1710),Pe=We(7660),Ae=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,De=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&&Ae)for(var le of Ae(ee))ae.indexOf(le)<0&&De.call(ee,le)&&(re[le]=ee[le]);return re},we=(ee,ae,re)=>new Promise((le,ue)=>{var pe=Ie=>{try{be(re.next(Ie))}catch(Le){ue(Le)}},Ee=Ie=>{try{be(re.throw(Ie))}catch(Le){ue(Le)}},be=Ie=>Ie.done?le(Ie.value):Promise.resolve(Ie.value).then(pe,Ee);be((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:Ee,departmentName:be,visible:Ie,onClose:Le=()=>{},onSuccess:Fe=()=>{}}=ae,Oe=me(ae,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]);const[je]=Ze.default.useForm(),ze=(0,He.useRef)(),[_e,Ue]=(0,He.useState)(!1);(0,He.useEffect)(()=>{ze.current=Oe.schoolId},[Oe.schoolId]),(0,He.useEffect)(()=>{je.setFieldsValue({department:be})},[be]);const $e=et=>we(void 0,null,function*(){var lt,ut,yt;const{department:qe,remarks:ot}=et||{};Ue(!0);const dt=yield(0,Pe.ZP)("/api/add_department_applies/inspect.json",{method:"get",params:{name:qe,school_id:ze.current}});Ue(!1);const St=()=>we(void 0,null,function*(){const xt=yield pe({type:"account/appplyDepartment",payload:{school_id:ze.current,name:qe,remarks:ot}});(xt==null?void 0:xt.status)===0&&(Ne.ZP.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),Fe(qe),Le())});if((dt==null?void 0:dt.status)===0){if((lt=dt==null?void 0:dt.data)!=null&<.name){ge.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:He.createElement("div",null,He.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"),He.createElement(ce.default,{rowKey:"name",columns:[{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"name"},{title:"\u7528\u6237\u6570",dataIndex:"size"}],dataSource:[{name:(ut=dt==null?void 0:dt.data)==null?void 0:ut.name,size:(yt=dt==null?void 0:dt.data)==null?void 0:yt.size}],pagination:!1})),onOk:()=>{Fe(qe),Le()}});return}St()}});return He.createElement(ge.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Ie,title:"\u7533\u8BF7\u6DFB\u52A0\u90E8\u95E8\u540D\u79F0",width:"600px",onCancel:Le,onOk:()=>je.submit(),confirmLoading:_e},He.createElement(Ze.default,{form:je,labelCol:{span:4},wrapperCol:{span:20},onFinish:$e},He.createElement(Ze.default.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},Ee),He.createElement(Ze.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"}]},He.createElement(oe.default,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),He.createElement(Ze.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks",style:{marginBottom:0}},He.createElement(fe,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"}))))};fn.Z=(0,mt.connect)(({account:ee,loading:ae,globalSetting:re})=>({account:ee,globalSetting:re,loading:ae.effects}))(z)},75872:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return fe}});var He=We(3113),mt=We(59301),oe=Object.defineProperty,Ze=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Ae=(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)&&Ae(z,ae,ee[ae]);if(ge)for(var ae of ge(ee))Pe.call(ee,ae)&&Ae(z,ae,ee[ae]);return z},De=(z,ee)=>Ze(z,Ne(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&&ge)for(var re of ge(z))ee.indexOf(re)<0&&Pe.call(z,re)&&(ae[re]=z[re]);return ae},we=(z,ee,ae)=>new Promise((re,le)=>{var ue=be=>{try{Ee(ae.next(be))}catch(Ie){le(Ie)}},pe=be=>{try{Ee(ae.throw(be))}catch(Ie){le(Ie)}},Ee=be=>be.done?re(be.value):Promise.resolve(be.value).then(ue,pe);Ee((ae=ae.apply(z,ee)).next())});const fe=z=>{var ee=z,{children:ae}=ee,re=me(ee,["children"]);const[le,ue]=(0,mt.useState)(!1);return mt.createElement(He.ZP,De(ye({},re),{loading:le,onClick:pe=>we(void 0,null,function*(){try{ue(!0),yield re.onClick(pe),ue(!1)}catch(Ee){console.error(Ee),ue(!1)}})}),ae)}},49812:function(kn,fn,We){"use strict";var He=We(59301),mt=We(24459),oe=We(43418),Ze=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ce=(Ae,ye)=>{var De={};for(var me in Ae)Ne.call(Ae,me)&&ye.indexOf(me)<0&&(De[me]=Ae[me]);if(Ae!=null&&Ze)for(var me of Ze(Ae))ye.indexOf(me)<0&&ge.call(Ae,me)&&(De[me]=Ae[me]);return De};const Pe=Ae=>{var ye=Ae,{shixunsDetail:De,globalSetting:me,loading:we,dispatch:fe}=ye,z=ce(ye,["shixunsDetail","globalSetting","loading","dispatch"]);return He.createElement(oe.default,{centered:!0,keyboard:!1,closable:!1,zIndex:6666,title:"\u63D0\u793A",open:De.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:{}})}},He.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",He.createElement("br",null),"\u8BF7\u95EE\u662F\u5426\u524D\u5F80\u8FDB\u884C\u8BA4\u8BC1\uFF1F"))};fn.Z=(0,mt.connect)(({shixunsDetail:Ae,loading:ye,globalSetting:De})=>({shixunsDetail:Ae,globalSetting:De,loading:ye.models.index}))(Pe)},14573:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return De}});var He=We(59301),mt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},oe=We(92310),Ze=We.n(oe),Ne=We(71418),ge=We(2859),ce=We(7660),Pe=We(88230),Ae=(me,we,fe)=>new Promise((z,ee)=>{var ae=ue=>{try{le(fe.next(ue))}catch(pe){ee(pe)}},re=ue=>{try{le(fe.throw(ue))}catch(pe){ee(pe)}},le=ue=>ue.done?z(ue.value):Promise.resolve(ue.value).then(ae,re);le((fe=fe.apply(me,we)).next())}),De=({data:me,className:we,fullWidth:fe,style:z={},onClose:ee,onOk:ae,showFullTools:re,noAssociationId:le})=>{const ue=(0,He.useRef)(null),pe=(0,He.useRef)(null),Ee=(0,He.useRef)(null),be=(0,He.useRef)(null),[Ie,Le]=(0,He.useState)(!1),[Fe,Oe]=(0,He.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,He.useEffect)(()=>{Ee.current||(Ee.current=document.createElement("style"),document.head.appendChild(Ee.current)),me!=null&&me.visible?(document.body.setAttribute("data-custom","y-hidden"),Ee.current.innerHTML=" html { overflow-y: hidden; }",me!=null&&me.src&&je()):(document.body.removeAttribute("data-custom"),Ee.current&&(document.head.removeChild(Ee.current),Ee.current=null))},[me==null?void 0:me.visible]);const je=()=>Ae(void 0,null,function*(){Le(!0),Oe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const $e=yield(0,Pe.ZJ)(me==null?void 0:me.src);ue.current.src="",ue.current.src=$e,ue.current.onload=function(){Ue()},Le(!1),Oe("")}),ze=$e=>Ae(void 0,null,function*(){Le(!0),Oe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const et=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:me.title,file:$e.dataUrl}});et!=null&&et.id&&!le?(yield(0,ce.ZP)(`/api/attachments/${me.id}/add_subitem.json`,{method:"post",body:{subitem_id:et==null?void 0:et.id,settings:JSON.stringify($e.state)}})).status===0&&ae():et!=null&&et.id&&ae(et),Le(!1),Oe("")}),_e=()=>{const $e=document.querySelector('a[href="https://markerjs.com/"]');$e&&$e.parentNode&&($e.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(lt=>{const ut=document.querySelector(lt.name);ut&&ut.setAttribute("title",lt.title)})},Ue=()=>{pe.current=new ge.hP(ue.current),pe.current.targetRoot=be.current,pe.current.addEventListener("render",ze),pe.current.addEventListener("beforeclose",ee),re&&(pe.current.availableMarkerTypes=pe.current.ALL_MARKER_TYPES,pe.current.uiStyleSettings.redoButtonVisible=!0,pe.current.uiStyleSettings.notesButtonVisible=!0,pe.current.uiStyleSettings.zoomButtonVisible=!0,pe.current.uiStyleSettings.zoomOutButtonVisible=!0,pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pe.current.uiStyleSettings,pe.current.show(),me!=null&&me.snapshotData&&pe.current.restoreState(me.snapshotData),setTimeout(()=>{window.scrollTo(0,0),_e()},300)};return He.createElement(He.Fragment,null,(me==null?void 0:me.visible)&&He.createElement(Ne.Z,{spinning:Ie,tip:Fe,style:{position:"absolute"}},He.createElement("div",{ref:be,className:Ze()(mt.imageDimensions,we,fe?mt.fullWidth:""),style:z},He.createElement("img",{className:mt.img,ref:ue}))))}},46531:function(kn,fn,We){"use strict";var He=We(59301),mt=We(95237),oe=We(43604),Ze=We(99313),Ne=We(3113),ge=We(99325),ce=We(11570),Pe=We(48136),Ae=We(59301);const ye=(0,He.forwardRef)(({callback:De,showSaveButton:me,value:we=""},fe)=>{const z=(0,He.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:Ae.createElement(mt.Z,{className:ce.Z.lists,gutter:[10,10]},ee.map((pe,Ee)=>Ae.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Ae.createElement("div",null,Ae.createElement(ge.Z,{value:`$$${pe.value}$$`}),pe.name),Ae.createElement("div",{className:ce.Z.children},pe.children.map((be,Ie)=>Ae.createElement("div",{key:Ie},Ae.createElement("h1",null,be.name),Ae.createElement(mt.Z,{gutter:[10,10]},be.data.map((Le,Fe)=>Ae.createElement(oe.Z,{key:Fe,onClick:()=>re(Le),className:ce.Z.diamond},Ae.createElement(ge.Z,{value:"`$$"+Le.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ae.createElement(mt.Z,{className:ce.Z.lists,gutter:[10,10]},ae.map((pe,Ee)=>Ae.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Ae.createElement("div",null,Ae.createElement(ge.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Ae.createElement("div",{className:ce.Z.children},pe.children.map((be,Ie)=>Ae.createElement("div",{key:Ie},be.name&&Ae.createElement("h1",null,be.name),Ae.createElement(mt.Z,{gutter:[10,10]},be.data.map((Le,Fe)=>Ae.createElement(oe.Z,{key:Fe,onClick:()=>re(Le),className:ce.Z.diamond},Ae.createElement(ge.Z,{value:"`$$"+Le.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var Ee=pe.innerText;return De&&De(Ee),Ee};return(0,He.useImperativeHandle)(fe,()=>({getData:ue})),Ae.createElement("div",{className:ce.Z.mathWrap},Ae.createElement(Ze.default,{defaultActiveKey:"1",items:le}),Ae.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}},we||""),me&&Ae.createElement("div",{className:ce.Z.button},Ae.createElement(Ne.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});fn.Z=ye},57816:function(kn,fn,We){"use strict";var He=We(59301),mt=We(93314),oe=We(3113),Ze=Object.defineProperty,Ne=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ye=(fe,z,ee)=>z in fe?Ze(fe,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):fe[z]=ee,De=(fe,z)=>{for(var ee in z||(z={}))Pe.call(z,ee)&&ye(fe,ee,z[ee]);if(ce)for(var ee of ce(z))Ae.call(z,ee)&&ye(fe,ee,z[ee]);return fe},me=(fe,z)=>Ne(fe,ge(z));const we=({img:fe,buttonProps:z={},styles:ee={},customText:ae,ButtonText:re,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:Ee,loading:be=!1})=>He.createElement("section",{className:"tc animated fadeIn",style:De(De({},{color:"#999",margin:"100px auto",visibility:be?"hidden":"visible"}),ee)},He.createElement("img",{src:fe||mt,style:me(De({},Ee),{pointerEvents:"none",userSelect:"none"})}),He.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),re&&He.createElement(oe.ZP,De({className:ue,onClick:le},z),re),pe&&pe);fn.Z=we},90853:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return ue}});var He=We(59301),mt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=We(3113),Ze=We(70557),Ne=We(57800),ge=We(6848),ce=We(88230),Pe=We(30897),Ae=We(57816),ye=We(38446),De=We(89282),me=We(59301),we=Object.defineProperty,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(pe,Ee,be)=>Ee in pe?we(pe,Ee,{enumerable:!0,configurable:!0,writable:!0,value:be}):pe[Ee]=be,re=(pe,Ee)=>{for(var be in Ee||(Ee={}))z.call(Ee,be)&&ae(pe,be,Ee[be]);if(fe)for(var be of fe(Ee))ee.call(Ee,be)&&ae(pe,be,Ee[be]);return pe},le=(pe,Ee,be)=>new Promise((Ie,Le)=>{var Fe=ze=>{try{je(be.next(ze))}catch(_e){Le(_e)}},Oe=ze=>{try{je(be.throw(ze))}catch(_e){Le(_e)}},je=ze=>ze.done?Ie(ze.value):Promise.resolve(ze.value).then(Fe,Oe);je((be=be.apply(pe,Ee)).next())}),ue=({editOffice:pe="view",data:Ee,theme:be,type:Ie,filename:Le,monacoEditor:Fe,className:Oe,style:je,close:ze,onClose:_e,hasMask:Ue,disabledDownload:$e,onImgDimensions:et,showNodata:lt,recordInfo:ut})=>{const[yt,qe]=(0,He.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ot,dt]=(0,He.useState)(""),[St,xt]=(0,He.useState)(),ft=window.ENV==="build"?"/react/build":"",gt=location.host.startsWith("localhost")?ye.Z.PROXY_SERVER:ye.Z.API_SERVER,Tt=10*(1024*1024),Et=(0,He.useRef)();Ee!=null&&Ee.startsWith("/api")&&Ie!=="txt"&&(Ee=ye.Z.API_SERVER+Ee);const Zt=nt=>nt.substring(nt.lastIndexOf("/")+1).split(".").pop();Le&&Fe&&(Fe.filename=Le),(0,He.useEffect)(()=>{var nt,xe;const Ce=(xe=(nt=document.cookie)==null?void 0:nt.replace(/\s/g,""))==null?void 0:xe.split(";");Ce==null||Ce.map(Ye=>{let Je=Ye.split("=");Je[0]==="_educoder_session"&&dt(Je[1])})},[]),(0,He.useEffect)(()=>{Ie==="office"&&(Ee.indexOf("bigfilescdn.")>-1||Ee.indexOf("bigfiles1")>-1?xt({url:Ee,fileType:Zt(Ee),model:Ee.indexOf("model=edit")?"edit":"view"}):wt())},[Ie,Ee]);const wt=()=>le(void 0,null,function*(){console.log("data:",Ee);let nt=Ee;Ee.startsWith("http")||(nt=location.origin+nt);let xe=new URL(nt).pathname.split("/").pop();const Ce=yield(0,Pe.gJ)({attachment_id:xe});Ce.url=gt+Ce.url,xt(Ce)}),bt=()=>{if(Ee.startsWith("http")||Ee.startsWith("blob:")){it();return}(0,ce.Sv)(Le||"educoder",Ee,Le)},it=()=>{ut&&(0,De.fc)({id:ut==null?void 0:ut.id,watch_type:1,course_id:ut==null?void 0:ut.course_id}),(0,ce.Nd)(Le||"educoder",decodeURIComponent(Ee))};return me.createElement("div",{style:re({},je||{}),className:`${Ue&&mt.bgBlack} ${Ie?mt.wrp:"hide"}`},ze&&me.createElement("div",{className:mt.close,ref:Et},!!et&&me.createElement(ge.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Et.current},me.createElement("span",{onClick:()=>{_e(),et()}},me.createElement("i",{className:"icon-yulanpizhu"}))),!$e&&me.createElement(ge.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Et.current},me.createElement("span",{onClick:it},me.createElement("i",{className:"icon-quxiaozhiding"}))),me.createElement(ge.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Et.current},me.createElement("span",{className:"",onClick:_e},me.createElement("i",{className:"icon-guanbi1"})))),me.createElement("div",{className:`${mt[Oe]} ${Oe} ${mt.monaco} ${Ie==="txt"?"show":"hide"}`},Ie==="txt"&&me.createElement(me.Fragment,null,me.createElement(Ne.ZP,re({},Fe)))),Ie==="audio"&&me.createElement("audio",{src:`${(Ee==null?void 0:Ee.indexOf("http://"))>-1||(Ee==null?void 0:Ee.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ee}`,autoPlay:!0}),Ie==="video"&&me.createElement(me.Fragment,null,(Ee==null?void 0:Ee.indexOf("http"))>-1?me.createElement("video",{controls:!0,src:`${Ee}`,autoPlay:!0}):me.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ee}`,autoPlay:!0})),Ie==="office"&&St&&me.createElement("iframe",{src:`${ft}/office.html?key=${St.key}&url=${btoa(St.url)}&callbackUrl=${gt+(St.callbackUrl||"")}&fileType=${St.fileType}&title=${St.title||""}&model=${pe}&officeServer=${ye.Z.ONLYOFFICE}&disabledDownload=${!!$e}`}),Ie==="html"&&me.createElement("iframe",{src:Ee+"&disposition=inline"}),Ie==="pdf"&&me.createElement("iframe",{src:`${ft}/js/pdfview/index.html?filename=${Le||"educoder.pdf"}&url=${encodeURIComponent(Ee)}&disabledDownload=${!!$e}`}),Ie==="image"&&me.createElement("img",{src:`${(Ee==null?void 0:Ee.indexOf("http://"))>-1||(Ee==null?void 0:Ee.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ee}`}),(Ie==="other"||Ie==="download")&&me.createElement(me.Fragment,null,lt?me.createElement(Ae.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:bt,disabled:$e},"\u4E0B\u8F7D")}):me.createElement(oe.ZP,{type:"primary",size:"middle",onClick:bt,disabled:$e},me.createElement(Ze.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},99325:function(kn,fn,We){"use strict";We.d(fn,{z:function(){return Ie},Z:function(){return Le}});var He=We(59301),mt=We(2878),oe=We(85187),Ze=We(64018),Ne=We(40846),ge=We(38446),ce=We(88230),Pe=We(15342),Ae=We(1012),ye=We(90853),De=We(59301),we=({html:Fe})=>{const Oe=(0,He.useRef)(null),je=(0,He.useRef)(null),ze=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 36px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,He.useEffect)(()=>{const _e=Oe.current.attachShadow({mode:"open"});je.current=document.createElement("div"),je.current.className="markdown-body",je.current.innerHTML=Fe,_e.appendChild(je.current);const Ue=document.createElement("style");return Ue.textContent=ze,_e.appendChild(Ue),()=>{_e.innerHTML=""}},[]),(0,He.useEffect)(()=>{je.current&&(je.current.innerHTML=Fe)},[Fe]),De.createElement("div",{ref:Oe})},fe=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,re=(Fe,Oe,je)=>Oe in Fe?fe(Fe,Oe,{enumerable:!0,configurable:!0,writable:!0,value:je}):Fe[Oe]=je,le=(Fe,Oe)=>{for(var je in Oe||(Oe={}))ee.call(Oe,je)&&re(Fe,je,Oe[je]);if(z)for(var je of z(Oe))ae.call(Oe,je)&&re(Fe,je,Oe[je]);return Fe};const ue="@\u2581\u2581@",pe="@\u2581@",Ee=/<pre[^>]*>/g;function be(Fe){let Oe=document.createElement("div");return Oe.innerHTML=Fe,Oe.childNodes.length===0?"":Oe.childNodes[0].nodeValue}const Ie=(Fe,Oe)=>{Fe=Fe||"";const je=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,_e=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ue=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Oe?Fe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(je,($e,et,lt,ut,yt,qe,ot)=>{const dt=et||ut||qe,St=lt||yt||ot||"?";return ge.Z.API_SERVER+"/api/attachments/"+dt+St+"&t="+(0,ce.Jn)(dt,Date.now())+($e.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Fe=Fe.replace(Ue,($e,et,lt,ut,yt,qe,ot)=>{const dt=et||ut||qe,St=lt||yt||ot||"?";return ge.Z.API_SERVER+"/attachments/download/"+dt+St+"&t="+(0,ce.Jn)(dt,Date.now())+($e.indexOf(")")>-1?")":"&")}).replace(je,($e,et,lt,ut,yt,qe,ot)=>{const dt=et||ut||qe,St=lt||yt||ot||"?";return ge.Z.API_SERVER+"/api/attachments/"+dt+St+"&t="+(0,ce.Jn)(dt,Date.now())+($e.indexOf(")")>-1?")":"&")}).replace(ze,($e,et,lt,ut,yt)=>{const qe=et||ut,ot=lt||yt||"";return'"'+ge.Z.API_SERVER+"/api/attachments/"+qe+ot+qe+ot+"&t="+(0,ce.Jn)(qe,Date.now())}).replace(_e,($e,et,lt,ut,yt)=>{const qe=et||ut,ot=lt||yt||"";return"("+ge.Z.API_SERVER+"/files/uploads/"+qe+ot+qe+ot+"&t="+(0,ce.Jn)(qe,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,`
|
|
|
`),Fe)};var Le=({value:Fe="",className:Oe,showTextOnly:je,showLines:ze,style:_e={},stylesPrev:Ue={},highlightKeywords:$e,showProgramFill:et,isProgramFill:lt,disabledFill:ut=!1,programFillValue:yt,onFillChange:qe=St=>{},onFillBlur:ot=()=>{},onFillFocus:dt=()=>{}})=>{let St=String(Fe);const[xt,ft]=(0,He.useState)(""),[gt,vt]=(0,He.useState)("office"),[Tt,Et]=(0,He.useState)([]),Zt=(0,He.useRef)("a"+(0,Ae.Z)()),wt={},bt=(ht,At,pt)=>{const Ot=document.createElement(ht===pe?"input":"textarea");Ot.style.width="100%",Ot.style.height=ht===pe?"40px":"151px",Ot.rows=5,Ot.spellcheck=!1,Ot.name="edu-program-fill",Ot.placeholder="\u8BF7\u8F93\u5165",Ot.dataset.id=At;const Kt=Object.keys(wt).length;return wt[Kt]=Ot,`<span class="edu-program-fill-wrap ${ht===pe?"":"show"}" style="width:${ht===pe?"400px":"100%"}" title=${pt||""}><span>${Ot.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function it(ht){return ht=ht.replace(/!\[.*?\]\(.*?\)/g,""),ht=ht.replace(/\[.*?\]\(.*?\)/g,""),ht=ht.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ht=ht.replace(/<embed.*?>/g,""),ht=ht.replace(/<img.*?>/g,""),ht=ht.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ht=ht.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ht=ht.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ht=ht.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ht}const nt=ht=>ht.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(At,pt){let Ot=pt.replace(/(\n|\r)/g,"").split("}"),Kt=[];return Ot.map(jt=>{jt!=""&&Kt.push(`.${Zt.current} ${jt}`)}),`<style>${Kt.join("}")}</style>`}),xe=(0,He.useMemo)(()=>{try{const Ot=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Kt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,jt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Rt=/\(\/attachments\/download\//g;St=St.replace(Rt,"("+ge.Z.API_SERVER+"/attachments/download/").replace(Ot,"("+ge.Z.API_SERVER+"/api/attachments/").replace(Kt,'"'+ge.Z.API_SERVER+"/api/attachments/").replace(jt,'"'+ge.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`)}catch(Ot){}if(et){let Ot=-1;return St=St.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Kt,jt,Rt){var Xt;return++Ot,bt(Kt,Ot,(Xt=yt==null?void 0:yt[Ot])==null?void 0:Xt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${nt(St||"")}</pre>`}let ht=nt(St);ht=(0,oe.ZP)(ht);const At=(0,oe.ez)();St.match(/\[TOC\]/)&&(ht=ht.replace("<p>[TOC]</p>",(0,oe.Qv)()),(0,oe.Iy)()),ht=ht.replace(/(__special_katext_id_\d+__)/g,(Ot,Kt)=>{const{type:jt,expression:Rt}=At[Kt];return(0,Pe.renderToString)(be(Rt)||"",{displayMode:jt==="block",throwOnError:!1,output:"html"})}),ht=ht.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const pt=document.createElement("div");if(pt.innerHTML=ht,je)return pt.innerText;if($e){const Ot=$e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Me(pt,Ot),pt.innerHTML}return setTimeout(()=>Ve(),500),pt.innerHTML},[St,$e]);(0,He.useEffect)(()=>{Ge.current&&Ge.current.querySelectorAll(["input","textarea"]).forEach(At=>{At.oninput=Ce,At.onblur=Ye,At.onfocus=Je})},[Tt]),(0,He.useEffect)(()=>{var ht,At,pt,Ot,Kt;if(yt!=null&&yt.length)try{const jt=Ge.current.querySelectorAll(".edu-program-fill-score"),Rt=Ge.current.querySelectorAll('[name="edu-program-fill"]');for(const[Xt,sn]of Rt.entries())sn.value=((ht=yt==null?void 0:yt[Xt])==null?void 0:ht.value)||"",((At=yt==null?void 0:yt[Xt])==null?void 0:At.type)==="warning"?sn.className="program-fill-warning":((pt=yt==null?void 0:yt[Xt])==null?void 0:pt.type)==="success"?sn.className="program-fill-success":sn.className="";for(const[Xt,sn]of jt.entries())sn.innerHTML=(Ot=yt==null?void 0:yt[Xt])!=null&&Ot.score?`${(Kt=yt==null?void 0:yt[Xt])==null?void 0:Kt.score}\u5206`:"";Et(yt)}catch(jt){console.log(jt,"error")}},[yt]);const Ce=ht=>{Tt[ht.target.dataset.id]=Tt[ht.target.dataset.id]||{},Tt[ht.target.dataset.id].value=ht.target.value,Et([...Tt]),qe(Tt,ht.target.dataset.id)},Ye=ht=>{Tt[ht.target.dataset.id]=Tt[ht.target.dataset.id]||{},Tt[ht.target.dataset.id].value=ht.target.value,Et([...Tt]),ot(Tt,ht.target.dataset.id)},Je=ht=>{Tt[ht.target.dataset.id]=Tt[ht.target.dataset.id]||{},Tt[ht.target.dataset.id].value=ht.target.value,Et([...Tt]),dt(Tt,ht.target.dataset.id)};function Me(ht,At){return ht.childNodes.forEach(pt=>{var Ot;if(pt.childNodes.length>0)Me(pt,At);else if(pt.nodeName!=="IMG")if(pt.innerHTML)pt.innerHTML=(Ot=pt.innerHTML)==null?void 0:Ot.replace(new RegExp(At,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Kt=document.createElement("span");Kt.innerHTML=pt.textContent.replace(new RegExp(At,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),pt.replaceWith(Kt)}})}const Ge=(0,He.useRef)();oe.jb.WebkitLineClamp=ze,ze&&(_e=le(le({},_e),oe.jb));function Ke(ht){let At=ht.target;if(At.tagName.toUpperCase()==="A"){let pt=At.getAttribute("href");if(pt.indexOf("office")>-1)ht.preventDefault(),ft(pt),vt("office");else if(pt.indexOf("application/pdf")>-1)ht.preventDefault(),ft(pt),vt("pdf");else if(pt.indexOf("text/html")>-1)ht.preventDefault(),ft(pt),vt("html");else if(pt.startsWith("#")){ht.preventDefault();let Ot=document.getElementById(pt.replace("#",""));Ot&&Ot.scrollIntoView(!0)}}}const Ve=()=>{var ht;const At=(ht=Ge.current)==null?void 0:ht.querySelectorAll("video");At==null||At.forEach(pt=>{if(pt.oncontextmenu=()=>!1,pt.src.indexOf(".m3u8")>-1&&!pt.canPlayType("application/vnd.apple.mpegurl")){if(Ne.ZP.isSupported()){var Ot=new Ne.ZP;Ot.loadSource(pt.src),Ot.attachMedia(pt)}}})};(0,He.useEffect)(()=>{if(Ge.current&&xe&&xe.match(Ee)&&window.PR.prettyPrint(),Ge.current)return Ge.current.addEventListener("click",Ke),()=>{var ht;(ht=Ge.current)==null||ht.removeEventListener("click",Ke),(0,oe.AL)(),(0,oe.Iy)()}},[xe,Ge.current,Ke]),(0,He.useEffect)(()=>{var ht;const At=pt=>{pt.preventDefault(),pt.clipboardData.setData("text",window.getSelection().toString())};return(ht=Ge.current)==null||ht.addEventListener("copy",At),()=>{var pt;(pt=Ge.current)==null||pt.removeEventListener("copy",At)}},[Ge.current]);const Qe=ht=>/<style[\s\S]*?>/i.test(ht||"");return He.createElement(He.Fragment,null,je&&He.createElement("div",{ref:Ge},xe),!je&&!Qe(xe)&&He.createElement("div",{ref:Ge,style:le({},_e),className:`${Oe||""} ${ut?"disabled-fill":""} markdown-body ${Zt.current}`,dangerouslySetInnerHTML:{__html:xe}}),!je&&Qe(xe)&&He.createElement(we,{html:xe}),He.createElement(ye.Z,{close:!0,data:xt,type:xt!=null&&xt.length?gt:"",style:le({},Ue),onClose:()=>ft("")}))}},49894:function(kn,fn,We){"use strict";We.d(fn,{cT:function(){return Fe},pe:function(){return be}});var He=We(59301),mt=We(54580),oe=We(8591),Ze=We(7660),Ne=We(28209),ge=We.n(Ne),ce=We(1012),Pe=We(24459),Ae=We(47257),ye=We.n(Ae),De=Object.defineProperty,me=Object.defineProperties,we=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(je,ze,_e)=>ze in je?De(je,ze,{enumerable:!0,configurable:!0,writable:!0,value:_e}):je[ze]=_e,re=(je,ze)=>{for(var _e in ze||(ze={}))z.call(ze,_e)&&ae(je,_e,ze[_e]);if(fe)for(var _e of fe(ze))ee.call(ze,_e)&&ae(je,_e,ze[_e]);return je},le=(je,ze)=>me(je,we(ze)),ue=(je,ze)=>{var _e={};for(var Ue in je)z.call(je,Ue)&&ze.indexOf(Ue)<0&&(_e[Ue]=je[Ue]);if(je!=null&&fe)for(var Ue of fe(je))ze.indexOf(Ue)<0&&ee.call(je,Ue)&&(_e[Ue]=je[Ue]);return _e},pe=(je,ze,_e)=>new Promise((Ue,$e)=>{var et=yt=>{try{ut(_e.next(yt))}catch(qe){$e(qe)}},lt=yt=>{try{ut(_e.throw(yt))}catch(qe){$e(qe)}},ut=yt=>yt.done?Ue(yt.value):Promise.resolve(yt.value).then(et,lt);ut((_e=_e.apply(je,ze)).next())});const{Dragger:Ee}=mt.default,be=je=>{const ze="bf3c199c2470cb477d907b1e0917c17b",_e="5183666c72eec9e4";var Ue=ge().enc.Utf8.parse(ze);let $e=ge().enc.Utf8.parse(_e);var et=ge().AES.decrypt(je,Ue,{iv:$e,mode:ge().mode.CBC});return et.toString(ge().enc.Utf8)};let Ie;const Le=je=>pe(void 0,[je],function*({identifier:ze,oldFilename:_e,newFilename:Ue}){var $e,et,lt,ut,yt,qe;const ot=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});ot.data=JSON.parse(be(ot.data));const dt=new OSS({endpoint:($e=ot==null?void 0:ot.data)==null?void 0:$e.end_point,region:(et=ot==null?void 0:ot.data)==null?void 0:et.region,accessKeyId:(lt=ot==null?void 0:ot.data)==null?void 0:lt.access_key_id,accessKeySecret:(ut=ot==null?void 0:ot.data)==null?void 0:ut.access_key_secret,bucket:(yt=ot==null?void 0:ot.data)==null?void 0:yt.bucket,stsToken:(qe=ot==null?void 0:ot.data)==null?void 0:qe.security_token});return new Promise((St,xt)=>{console.log(11111,`${ze}/${_e}`,`${ze}/${Ue}`,ot.data),dt.copy(`/${ze}/${_e}`,`/${ze}/${Ue}`).then(ft=>{console.log("\u62F7\u8D1D\u6210\u529F",ft)}).catch(ft=>{console.log(ft)})})}),Fe=(je,ze,_e)=>pe(void 0,null,function*(){var Ue,$e,et,lt,ut,yt;ze.file_name=je.name;const qe=yield(0,Ze.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",be(qe.data)),qe.data=JSON.parse(be(qe.data));const ot=je.name.split(".");ot.pop();const dt=ze.realFileName?ot.join(""):(0,ce.Z)(),St=new(ye())({endpoint:(Ue=qe==null?void 0:qe.data)==null?void 0:Ue.end_point,region:($e=qe==null?void 0:qe.data)==null?void 0:$e.region,accessKeyId:(et=qe==null?void 0:qe.data)==null?void 0:et.access_key_id,accessKeySecret:(lt=qe==null?void 0:qe.data)==null?void 0:lt.access_key_secret,bucket:(ut=qe==null?void 0:qe.data)==null?void 0:ut.bucket,stsToken:(yt=qe==null?void 0:qe.data)==null?void 0:yt.security_token});return new Promise((xt,ft)=>{var gt;St.multipartUpload(`${dt}`,new Blob([je],{type:je.type}),le(re({timeout:200*1e3,partSize:102400},_e),{callback:{url:(gt=qe==null?void 0:qe.data)==null?void 0:gt.callback_url,host:qe==null?void 0:qe.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ze.rz)(ze)}})).then(function(vt){var Tt;je.response=(Tt=vt.data)==null?void 0:Tt.data,xt(vt==null?void 0:vt.data)}).catch(function(vt){ft(vt),console.log("err:",vt)})})}),Oe=je=>{var ze=je,{user:_e,cancelUpload:Ue}=ze,$e=ue(ze,["user","cancelUpload"]);const[et,lt]=(0,He.useState)([]);let[ut,yt]=(0,He.useState)();const qe={onRemove:dt=>{lt([...et.filter(St=>St.name!==dt.name)]),$e.onChange(et.filter(St=>St.name!==dt.name))},disabled:$e.disabled,multiple:!0,fileList:et==null?void 0:et.map(dt=>dt.file),customRequest:()=>{},beforeUpload:dt=>pe(void 0,null,function*(){let St=$e.maxSize||1073741824;if(et.filter(xt=>xt.name===dt.name).length){oe.ZP.info(`${dt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(dt==null?void 0:dt.size)>St?(oe.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${St/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(et.push({name:dt.name,file:dt}),lt([...et]),$e.onChange(et),!1)})},ot=(dt,St)=>pe(void 0,null,function*(){var xt,ft,gt,vt,Tt,Et;St.file_name=dt.name;const Zt=dt.name,wt=yield(0,Ze.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(wt.data=JSON.parse(be(wt.data)),(wt==null?void 0:wt.status)!==0){et[et.findIndex(nt=>nt.name===Zt)].status="error",et[et.findIndex(nt=>nt.name===Zt)].file.status="error",$e.onChange(et),oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}ut=new(ye())({endpoint:(xt=wt==null?void 0:wt.data)==null?void 0:xt.end_point,region:(ft=wt==null?void 0:wt.data)==null?void 0:ft.region,accessKeyId:(gt=wt==null?void 0:wt.data)==null?void 0:gt.access_key_id,accessKeySecret:(vt=wt==null?void 0:wt.data)==null?void 0:vt.access_key_secret,bucket:(Tt=wt==null?void 0:wt.data)==null?void 0:Tt.bucket,stsToken:(Et=wt==null?void 0:wt.data)==null?void 0:Et.security_token}),console.log(dt,"file"),yt(ut);const bt=dt.name.split(".");bt.pop();const it=Zt.indexOf(".")>-1?St.realFileName?bt.join("."):(0,ce.Z)():Zt;return new Promise((nt,xe)=>{var Ce;try{ut.multipartUpload(`${$e.identifier}/${it}${Zt.indexOf(".")>-1?"."+Zt.split(".").pop():""}`,new Blob([dt.file],{type:dt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ye,Je,Me)=>{try{console.log("\u8FDB\u5EA6",Ye,Je,Me);const Ge=et.findIndex(Ke=>Ke.name===Zt);et[Ge].file.percent=Ye*100,et[Ge].tempCheckpoint=Je,lt([...et])}catch(Ge){}},checkpoint:et[et.findIndex(Ye=>Ye.name===Zt)].tempCheckpoint,callback:{customValue:{id:Zt+""},url:(Ce=wt==null?void 0:wt.data)==null?void 0:Ce.callback_url,host:wt==null?void 0:wt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ze.rz)(St)}}).then(function(Ye){var Je,Me,Ge;const Ke=et.findIndex(Qe=>Qe.name===Zt);let Ve="done";if(((Je=Ye.data)==null?void 0:Je.status)===0){dt.response=(Me=Ye.data)==null?void 0:Me.data;const Qe=et.findIndex(ht=>ht.name===Zt);et[Qe].status="done",et[Qe].file.status="done"}else oe.ZP.warning((Ge=Ye.data)==null?void 0:Ge.message),Ve="error";et[Ke].status=Ve,et[Ke].file.status=Ve,$e.onChange(et),nt(Ye==null?void 0:Ye.data)}).catch(function(Ye){et[et.findIndex(Je=>Je.name===Zt)].status="error",et[et.findIndex(Je=>Je.name===Zt)].file.status="error",oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),lt([...et]),$e.onChange(et),xe(Ye),console.log("err:",Ye)})}catch(Ye){}})});return(0,He.useEffect)(()=>{et.every(dt=>dt==="done"||dt==="error")&&$e.onComplete(et)},[et]),(0,He.useEffect)(()=>{Ue&&(ut==null||ut.cancel())},[Ue]),(0,He.useEffect)(()=>{$e.uploading&&et.map(dt=>pe(void 0,null,function*(){var St;if((!dt.status||dt.status==="error")&&!Ue){dt.status="uploading",dt.file.status="uploading";const xt=yield ot(dt,{login:(St=_e==null?void 0:_e.userInfo)==null?void 0:St.login,container_type:$e.container_type,container_id:$e.container_id,description:$e.description,realFileName:$e.realFileName})}}))},[$e.uploading]),He.createElement(Ee,le(re({},qe),{height:$e.height,className:$e.className}),He.createElement("p",{className:"ant-upload-hint"},$e.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};fn.ZP=(0,Pe.connect)(({loading:je,globalSetting:ze,user:_e})=>({globalSetting:ze,loading:je.models.competitions,user:_e}))(Oe)},73278:function(kn,fn,We){"use strict";We.d(fn,{h:function(){return pe}});var He=We(59301),mt=We(57809),oe=We(78241),Ze=We(3113),Ne=We(89780),ge=We.n(Ne),ce=We(78780),Pe=We(19136),Ae=Object.defineProperty,ye=Object.defineProperties,De=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,z=(Ee,be,Ie)=>be in Ee?Ae(Ee,be,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Ee[be]=Ie,ee=(Ee,be)=>{for(var Ie in be||(be={}))we.call(be,Ie)&&z(Ee,Ie,be[Ie]);if(me)for(var Ie of me(be))fe.call(be,Ie)&&z(Ee,Ie,be[Ie]);return Ee},ae=(Ee,be)=>ye(Ee,De(be));const re=mt.default.Option,le={labelCol:{span:4},wrapperCol:{span:20}},ue={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};fn.Z=({callback:Ee,onCancel:be})=>{const[Ie,Le]=(0,He.useState)("python");function Fe(je){Le(ue[je][1])}function Oe(je){Ee(je)}return He.createElement(oe.default,ae(ee({},le),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Oe,style:{width:500}}),He.createElement(oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},He.createElement(mt.default,{getPopupContainer:je=>je.parentNode,onChange:Fe},Object.keys(ue).map(je=>He.createElement(re,{key:je,value:je},ue[je][0])))),He.createElement(oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},He.createElement(pe,{mode:Ie})),He.createElement("div",{className:"flex-container flex-end"},He.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(Ze.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))};function pe({value:Ee,onChange:be,mode:Ie,options:Le={}}){const Fe=(0,He.useRef)(),[Oe,je]=(0,He.useState)();return(0,He.useEffect)(()=>{if(Oe){let ze=function(_e){const Ue=_e.getValue();be&&be(Ue)};return Oe.on("change",ze),()=>{Oe.off("change",ze)}}},[Oe,be]),(0,He.useEffect)(()=>{Oe&&Oe.setOption("mode",Ie)},[Oe,Ie]),(0,He.useEffect)(()=>{Oe&&(Ee!==Oe.getValue()||Ee==="")&&setTimeout(()=>{Oe.setValue(Ee||"")},300)},[Oe,Ee]),(0,He.useEffect)(()=>{if(Fe.current&&!Oe){const ze=ge().fromTextArea(Fe.current,ee({mode:Ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Le));je(ze)}},[Fe.current,Oe]),He.createElement("div",{className:"my-codemirror-container"},He.createElement("textarea",{ref:Fe}))}},64726:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Jn}});var He=We(59301),mt=We(89780),oe=We.n(mt),Ze=We(76374),Ne=We(78780),ge=We(6313),ce=We(25717),Pe=We(99498),Ae=We(25419),ye=We(67549),De=We(99325),me=({value:_t="",className:Gt,showTextOnly:Pt,showLines:ln,style:pn={}})=>{const Vt=(0,He.useMemo)(()=>"",[_t]);return He.createElement(He.Fragment,null,He.createElement("div",{dangerouslySetInnerHTML:{__html:Vt}}))},we=We(59301),fe=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=(_t,Gt,Pt)=>Gt in _t?fe(_t,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):_t[Gt]=Pt,pe=(_t,Gt)=>{for(var Pt in Gt||(Gt={}))re.call(Gt,Pt)&&ue(_t,Pt,Gt[Pt]);if(ae)for(var Pt of ae(Gt))le.call(Gt,Pt)&&ue(_t,Pt,Gt[Pt]);return _t},Ee=(_t,Gt)=>z(_t,ee(Gt));let be=[{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 Ie({onActionCallback:_t,title:Gt,icon:Pt,actionName:ln,className:pn="",children:Vt}){function Dt(){_t(ln)}return we.createElement("a",{title:Gt,className:pn,onClick:Dt},we.createElement("i",{className:`${Pt}`}),Vt)}var Le=({watch:_t,showNullButton:Gt,showNullProgramButton:Pt,onActionCallback:ln,fullScreen:pn,insertTemp:Vt,hidetoolBar:Dt,extraUse:cn})=>{const xn=[...be,{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 we.createElement("ul",{className:"markdown-toolbar-container"},!Dt&&xn.map((Nn,Zn)=>we.createElement("li",{key:Zn},Nn.actionName?we.createElement(Ie,Ee(pe({},Nn),{onActionCallback:ln})):we.createElement("span",{className:"v-line"}))),Gt?we.createElement("li",null,we.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ln},we.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pt?we.createElement(we.Fragment,null,we.createElement("li",null,we.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ln},we.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),we.createElement("li",null,we.createElement(Ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ln},we.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Vt&&we.createElement("li",null,we.createElement(Ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Vt}`,onActionCallback:ln},we.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),cn&&we.createElement("li",null,cn),we.createElement("li",{className:"btn-full-screen"},we.createElement(Ie,{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:ln})))},Fe=We(19647),Oe=We(78241),je=We(92832),ze=We(3113),_e=Object.defineProperty,Ue=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,yt=(_t,Gt,Pt)=>Gt in _t?_e(_t,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):_t[Gt]=Pt,qe=(_t,Gt)=>{for(var Pt in Gt||(Gt={}))lt.call(Gt,Pt)&&yt(_t,Pt,Gt[Pt]);if(et)for(var Pt of et(Gt))ut.call(Gt,Pt)&&yt(_t,Pt,Gt[Pt]);return _t},ot=(_t,Gt)=>Ue(_t,$e(Gt));const dt={labelCol:{span:4},wrapperCol:{span:20}};var St=({callback:_t,onCancel:Gt})=>{function Pt(ln){_t(ln)}return He.createElement(Oe.default,ot(qe({},dt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pt,style:{width:500}}),He.createElement(Oe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},He.createElement(je.default,null)),He.createElement(Oe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},He.createElement(je.default,null)),He.createElement("div",{className:"flex-container flex-end"},He.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(ze.ZP,{type:"ghost",onClick:Gt},"\u53D6\u6D88")))},xt=We(73278),ft=We(56030),gt=We(43418),vt=We(95237),Tt=We(14573),Et=We(59301),Zt=({callback:_t,onCancel:Gt})=>{const Pt=document.createElement("canvas"),ln=Pt.getContext("2d");Pt.width=1e3,Pt.height=800,ln.fillStyle="#ffffff",ln.fillRect(0,0,Pt.width,Pt.height);const pn=Pt.toDataURL("image/png");return Et.createElement(gt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Et.createElement(vt.Z,{style:{height:"100vh"}},Et.createElement(Tt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pn,visible:!0,title:String(Date.now())},onOk:Vt=>{_t({src:Vt.url})},onClose:Gt})))},wt=We(12378);function bt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(bt,go.CommandHandler),bt.prototype.canAlignSelection=function(){var _t=this.diagram;return!(_t===null||_t.isReadOnly||_t.isModelReadOnly||_t.selection.count<2)},bt.prototype.alignLeft=function(){var _t=this.diagram;_t.startTransaction("aligning left");var Gt=1/0;_t.selection.each(function(Pt){Pt instanceof go.Link||(Gt=Math.min(Pt.position.x,Gt))}),_t.selection.each(function(Pt){Pt instanceof go.Link||Pt.move(new go.Point(Gt,Pt.position.y))}),_t.commitTransaction("aligning left")},bt.prototype.alignRight=function(){var _t=this.diagram;_t.startTransaction("aligning right");var Gt=-1/0;_t.selection.each(function(Pt){if(!(Pt instanceof go.Link)){var ln=Pt.actualBounds.x+Pt.actualBounds.width;Gt=Math.max(ln,Gt)}}),_t.selection.each(function(Pt){Pt instanceof go.Link||Pt.move(new go.Point(Gt-Pt.actualBounds.width,Pt.position.y))}),_t.commitTransaction("aligning right")},bt.prototype.alignTop=function(){var _t=this.diagram;_t.startTransaction("alignTop");var Gt=1/0;_t.selection.each(function(Pt){Pt instanceof go.Link||(Gt=Math.min(Pt.position.y,Gt))}),_t.selection.each(function(Pt){Pt instanceof go.Link||Pt.move(new go.Point(Pt.position.x,Gt))}),_t.commitTransaction("alignTop")},bt.prototype.alignBottom=function(){var _t=this.diagram;_t.startTransaction("aligning bottom");var Gt=-1/0;_t.selection.each(function(Pt){if(!(Pt instanceof go.Link)){var ln=Pt.actualBounds.y+Pt.actualBounds.height;Gt=Math.max(ln,Gt)}}),_t.selection.each(function(Pt){Pt instanceof go.Link||Pt.move(new go.Point(Pt.actualBounds.x,Gt-Pt.actualBounds.height))}),_t.commitTransaction("aligning bottom")},bt.prototype.alignCenterX=function(){var _t=this.diagram,Gt=_t.selection.first();if(Gt){_t.startTransaction("aligning Center X");var Pt=Gt.actualBounds.x+Gt.actualBounds.width/2;_t.selection.each(function(ln){ln instanceof go.Link||ln.move(new go.Point(Pt-ln.actualBounds.width/2,ln.actualBounds.y))}),_t.commitTransaction("aligning Center X")}},bt.prototype.alignCenterY=function(){var _t=this.diagram,Gt=_t.selection.first();if(Gt){_t.startTransaction("aligning Center Y");var Pt=Gt.actualBounds.y+Gt.actualBounds.height/2;_t.selection.each(function(ln){ln instanceof go.Link||ln.move(new go.Point(ln.actualBounds.x,Pt-ln.actualBounds.height/2))}),_t.commitTransaction("aligning Center Y")}},bt.prototype.alignColumn=function(_t){var Gt=this.diagram;Gt.startTransaction("align Column"),_t===void 0&&(_t=0),_t=parseFloat(_t);var Pt=new Array;Gt.selection.each(function(cn){cn instanceof go.Link||Pt.push(cn)});for(var ln=0;ln<Pt.length-1;ln++){var pn=Pt[ln],Vt=pn.actualBounds.y+pn.actualBounds.height+_t,Dt=Pt[ln+1];Dt.move(new go.Point(pn.actualBounds.x,Vt))}Gt.commitTransaction("align Column")},bt.prototype.alignRow=function(_t){_t===void 0&&(_t=0),_t=parseFloat(_t);var Gt=this.diagram;Gt.startTransaction("align Row");var Pt=new Array;Gt.selection.each(function(cn){cn instanceof go.Link||Pt.push(cn)});for(var ln=0;ln<Pt.length-1;ln++){var pn=Pt[ln],Vt=pn.actualBounds.x+pn.actualBounds.width+_t,Dt=Pt[ln+1];Dt.move(new go.Point(Vt,pn.actualBounds.y))}Gt.commitTransaction("align Row")},bt.prototype.canRotate=function(_t){var Gt=this.diagram;return!(Gt===null||Gt.isReadOnly||Gt.isModelReadOnly||Gt.selection.count<1)},bt.prototype.rotate=function(_t){_t===void 0&&(_t=90);var Gt=this.diagram;Gt.startTransaction("rotate "+_t.toString());var Gt=this.diagram;Gt.selection.each(function(Pt){Pt instanceof go.Link||Pt instanceof go.Group||(Pt.angle+=_t)}),Gt.commitTransaction("rotate "+_t.toString())},bt.prototype.pullToFront=function(){var _t=this.diagram;_t.startTransaction("pullToFront");var Gt=new go.Map;_t.selection.each(function(Pt){Gt.set(Pt.layer,0)}),Gt.iteratorKeys.each(function(Pt){var ln=0;Pt.parts.each(function(pn){if(!pn.isSelected){var Vt=pn.zOrder;isNaN(Vt)?pn.zOrder=0:ln=Math.max(ln,Vt)}}),Gt.set(Pt,ln)}),_t.selection.each(function(Pt){bt._assignZOrder(Pt,Gt.get(Pt.layer)+1)}),_t.commitTransaction("pullToFront")},bt.prototype.pushToBack=function(){var _t=this.diagram;_t.startTransaction("pushToBack");var Gt=new go.Map;_t.selection.each(function(Pt){Gt.set(Pt.layer,0)}),Gt.iteratorKeys.each(function(Pt){var ln=0;Pt.parts.each(function(pn){if(!pn.isSelected){var Vt=pn.zOrder;isNaN(Vt)?pn.zOrder=0:ln=Math.min(ln,Vt)}}),Gt.set(Pt,ln)}),_t.selection.each(function(Pt){bt._assignZOrder(Pt,Gt.get(Pt.layer)-1-bt._findGroupDepth(Pt))}),_t.commitTransaction("pushToBack")},bt._assignZOrder=function(_t,Gt,Pt){Pt===void 0&&(Pt=_t),_t.layer===Pt.layer&&(_t.zOrder=Gt),_t instanceof go.Group&&_t.memberParts.each(function(ln){bt._assignZOrder(ln,Gt+1,Pt)})},bt._findGroupDepth=function(_t){if(_t instanceof go.Group){var Gt=0;return _t.memberParts.each(function(Pt){Gt=Math.max(Gt,bt._findGroupDepth(Pt))}),Gt+1}else return 0},bt.prototype.doKeyDown=function(){var _t=this.diagram;if(_t!==null){var Gt=_t.lastInput;if(Gt.key==="Up"||Gt.key==="Down"||Gt.key==="Left"||Gt.key==="Right"){var Pt=this.arrowKeyBehavior;if(Pt==="none")return;if(Pt==="select"){this._arrowKeySelect();return}else if(Pt==="move"){this._arrowKeyMove();return}else if(Pt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},bt.prototype._getAllParts=function(){var _t=new Array;return this.diagram.nodes.each(function(Gt){_t.push(Gt)}),this.diagram.parts.each(function(Gt){_t.push(Gt)}),_t},bt.prototype._arrowKeyMove=function(){var _t=this.diagram,Gt=_t.lastInput,Pt=0,ln=0;if(Gt.control||Gt.meta)Pt=1,ln=1;else if(_t.grid!==null){var pn=_t.grid.gridCellSize;ln=pn.width,Pt=pn.height}_t.startTransaction("arrowKeyMove"),_t.selection.each(function(Vt){Gt.key==="Up"?Vt.move(new go.Point(Vt.actualBounds.x,Vt.actualBounds.y-Pt)):Gt.key==="Down"?Vt.move(new go.Point(Vt.actualBounds.x,Vt.actualBounds.y+Pt)):Gt.key==="Left"?Vt.move(new go.Point(Vt.actualBounds.x-ln,Vt.actualBounds.y)):Gt.key==="Right"&&Vt.move(new go.Point(Vt.actualBounds.x+ln,Vt.actualBounds.y))}),_t.commitTransaction("arrowKeyMove")},bt.prototype._arrowKeySelect=function(){var _t=this.diagram,Gt=_t.lastInput,Pt=null;Gt.key==="Up"?Pt=this._findNearestPartTowards(270):Gt.key==="Down"?Pt=this._findNearestPartTowards(90):Gt.key==="Left"?Pt=this._findNearestPartTowards(180):Gt.key==="Right"&&(Pt=this._findNearestPartTowards(0)),Pt!==null&&(Gt.shift?Pt.isSelected=!0:Gt.control||Gt.meta?Pt.isSelected=!Pt.isSelected:_t.select(Pt))},bt.prototype._findNearestPartTowards=function(_t){var Gt=this.diagram.selection.first();if(Gt===null)return null;for(var Pt=Gt.actualBounds.center,ln=this._getAllParts(),pn=1/0,Vt=Gt,Dt=0;Dt<ln.length;Dt++){var cn=ln[Dt];if(cn!==Gt&&cn.canSelect()){var xn=cn.actualBounds.center,Nn=Pt.directionPoint(xn),Zn=this._angleCloseness(Nn,_t);if(Zn<=45){var Ht=Pt.distanceSquaredPoint(xn);Ht*=1+Math.sin(Zn*Math.PI/180),Ht<pn&&(pn=Ht,Vt=cn)}}}return Vt},bt.prototype._angleCloseness=function(_t,Gt){return Math.min(Math.abs(Gt-_t),Math.min(Math.abs(Gt+360-_t),Math.abs(Gt-360-_t)))},bt.prototype._arrowKeyTree=function(){var _t=this.diagram,Gt=_t.selection.first();if(Gt instanceof go.Node){var Pt=_t.lastInput;if(Pt.key==="Right"){if(!Gt.isTreeLeaf)if(!Gt.isTreeExpanded)_t.commandHandler.canExpandTree(Gt)&&_t.commandHandler.expandTree(Gt);else{var ln=this._sortTreeChildrenByY(Gt).first();ln!==null&&_t.select(ln)}}else if(Pt.key==="Left")if(!Gt.isTreeLeaf&&Gt.isTreeExpanded)_t.commandHandler.canCollapseTree(Gt)&&_t.commandHandler.collapseTree(Gt);else{var pn=Gt.findTreeParentNode();pn!==null&&_t.select(pn)}else if(Pt.key==="Up"){var pn=Gt.findTreeParentNode();if(pn!==null){var Vt=this._sortTreeChildrenByY(pn),Dt=Vt.indexOf(Gt);if(Dt>0){for(var cn=Vt.elt(Dt-1);cn!==null&&cn.isTreeExpanded&&!cn.isTreeLeaf;){var xn=this._sortTreeChildrenByY(cn);cn=xn.last()}cn!==null&&_t.select(cn)}else _t.select(pn)}}else if(Pt.key==="Down")if(Gt.isTreeExpanded&&!Gt.isTreeLeaf){var ln=this._sortTreeChildrenByY(Gt).first();ln!==null&&_t.select(ln)}else for(;Gt!==null;){var pn=Gt.findTreeParentNode();if(pn===null)break;var Vt=this._sortTreeChildrenByY(pn),Dt=Vt.indexOf(Gt);if(Dt<Vt.length-1){_t.select(Vt.elt(Dt+1));break}else Gt=pn}var Nn=_t.selection.first();Nn!==null&&_t.scrollToRect(Nn.actualBounds)}},bt.prototype._sortTreeChildrenByY=function(_t){var Gt=new go.List().addAll(_t.findTreeChildrenNodes());return Gt.sort(function(Pt,ln){var pn=Pt.location,Vt=ln.location;return pn.y<Vt.y?-1:pn.y>Vt.y?1:pn.x<Vt.x?-1:pn.x>Vt.x?1:0}),Gt},bt.prototype.copyToClipboard=function(_t){go.CommandHandler.prototype.copyToClipboard.call(this,_t),this._lastPasteOffset.set(this.pasteOffset)},bt.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(bt.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(bt.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 it=bt,nt=We(29277),xe=We(43604),Ce=We(7660),Ye={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Je=We(73898),Me=We(59301),Ge=(_t,Gt,Pt)=>new Promise((ln,pn)=>{var Vt=xn=>{try{cn(Pt.next(xn))}catch(Nn){pn(Nn)}},Dt=xn=>{try{cn(Pt.throw(xn))}catch(Nn){pn(Nn)}},cn=xn=>xn.done?ln(xn.value):Promise.resolve(xn.value).then(Vt,Dt);cn((Pt=Pt.apply(_t,Gt)).next())});function Ke({onCancel:_t,callback:Gt}){let Pt=(0,He.useRef)(),ln=(0,He.useRef)(),pn=(0,He.useRef)(),Vt=(0,He.useRef)(!1);const Dt=(0,He.useRef)(!1),[cn,xn]=(0,He.useState)(0);function Nn(){const Ht=wt.bx.make,En={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"};Pt.current=new wt.S0(ln.current,{padding:20,grid:Ht(wt.s_,"Grid",Ht(wt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ht(wt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Yn=>{var dr=Yn.diagram.commandHandler.addTopLevelParts(Yn.diagram.selection,!0);dr||Yn.diagram.currentTool.doCancel()},commandHandler:Ht(it),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Yn=>{var dr=Yn.subject;dr.location=dr.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 dr=Yn.subject;setTimeout(()=>{Yn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Yn=>{var dr=Yn.parameter.part;dr.invalidateConnectedLinks();var Fr=Yn.subject;Yn.diagram.toolManager.linkingTool.isForwards?Fr.toNode.invalidateConnectedLinks():Fr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pt.current.nodeTemplate=Ht(wt.NB,"Auto",{locationSpot:wt.z6.Center,locationObjectName:"SHAPE",desiredSize:new wt.$u(120,60),minSize:new wt.$u(40,40),resizable:!0,resizeCellSize:new wt.$u(10,10),rotatable:!0},new wt.KX("location","loc",wt.E9.parse).makeTwoWay(wt.E9.stringify),new wt.KX("desiredSize","size",wt.$u.parse).makeTwoWay(wt.$u.stringify),Ht(wt.bn,{name:"SHAPE",fill:En.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:wt.z6.AllSides,toSpot:wt.z6.AllSides},new wt.KX("figure"),new wt.KX("fill"),new wt.KX("stroke","borderColor"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),Ht(wt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ht(wt.al,{margin:1,textAlign:"center",overflow:wt.al.OverflowEllipsis,editable:!0},new wt.KX("text").makeTwoWay(),new wt.KX("stroke","color"))),Pt.current.nodeTemplate.toolTip=Ht("ToolTip",Ht(wt.s_,"Vertical",{maxSize:new wt.$u(200,NaN)},Ht(wt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new wt.KX("text")),Ht(wt.al,{font:"10pt sans-serif",textAlign:"center"},new wt.KX("text","details"))));function Kn(Yn,dr){var Fr=(fr,Ir)=>{fr.handled=!0,fr.diagram.model.commit(Zr=>{var zr=Ir.part.adornedPart,Er=new wt.E9().setRectSpot(zr.actualBounds,Yn);Er.subtract(zr.location),Er.scale(2,2),Er.x+=Math.sign(Er.x)*130,Er.y+=Math.sign(Er.y)*130,Er.add(zr.location),Er.snapToGridPoint(fr.diagram.grid.gridOrigin,fr.diagram.grid.gridCellSize);var Vr=Zr.copyNodeData(zr.data);Zr.setGroupKeyForNodeData(Vr,Zr.getGroupKeyForNodeData(zr.data)),Zr.addNodeData(Vr);var Fn={from:zr.key,to:Zr.getKeyForNodeData(Vr)};Zr.addLinkData(Fn);var Mi=fr.diagram.findNodeForData(Vr);Mi.location=Er,fr.diagram.select(Mi),setTimeout(()=>{fr.diagram.commandHandler.editTextBlock()},20)})};return Ht(wt.bn,{figure:dr,alignment:Yn,alignmentFocus:Yn.opposite(),width:Yn.equals(wt.z6.Top)||Yn.equals(wt.z6.Bottom)?25:18,height:Yn.equals(wt.z6.Top)||Yn.equals(wt.z6.Bottom)?18:25,fill:"orange",stroke:En.white,strokeWidth:4,mouseEnter:(fr,Ir)=>Ir.fill="dodgerblue",mouseLeave:(fr,Ir)=>Ir.fill="orange",isActionable:!0,click:Fr,contextClick:Fr})}function nr(Yn){return Ht(wt.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(dr,Fr)=>Fr.fill="dodgerblue",mouseLeave:(dr,Fr)=>Fr.fill="orange",click:(dr,Fr)=>{dr.diagram.commandHandler.showContextMenu(Fr.part.adornedPart)}},Yn||{})}Pt.current.nodeTemplate.selectionAdornmentTemplate=Ht(wt.uz,"Spot",Ht(wt.Vm,{padding:10}),Kn(wt.z6.Top,"TriangleUp"),Kn(wt.z6.Left,"TriangleLeft"),Kn(wt.z6.Right,"TriangleRight"),Kn(wt.z6.Bottom,"TriangleDown"),nr({alignment:new wt.z6(.75,0)}));function rn(Yn,dr){return(Fr,fr)=>{Fr.handled=!0,Fr.diagram.model.commit(Ir=>{Ir.set(fr.part.adornedPart.data,Yn,dr)})}}function bn(Yn,dr){return dr||(dr="color"),Ht(wt.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:rn(dr,Yn),contextClick:rn(dr,Yn)})}function nn(){return[Ht("ContextMenuButton",Ht(wt.s_,"Horizontal",bn(En.white,"fill"),bn(En.beige,"fill"),bn(En.extralightblue,"fill"),bn(En.extralightred,"fill"))),Ht("ContextMenuButton",Ht(wt.s_,"Horizontal",bn(En.lightgray,"fill"),bn(En.lightgreen,"fill"),bn(En.lightblue,"fill"),bn(En.lightred,"fill")))]}function wn(){return[Ht("ContextMenuButton",Ht(wt.s_,"Horizontal",bn(En.black),bn(En.green),bn(En.blue),bn(En.red))),Ht("ContextMenuButton",Ht(wt.s_,"Horizontal",bn(En.white),bn(En.magenta),bn(En.purple),bn(En.orange)))]}function gn(Yn,dr){return dr||(dr="thickness"),Ht(wt.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:rn(dr,Yn),contextClick:rn(dr,Yn)})}function yn(Yn,dr){return dr||(dr="dash"),Ht(wt.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:rn(dr,Yn),contextClick:rn(dr,Yn)})}function Ln(){return[Ht("ContextMenuButton",Ht(wt.s_,"Horizontal",gn(1),gn(2),gn(3),gn(4))),Ht("ContextMenuButton",Ht(wt.s_,"Horizontal",yn(null),yn([2,4]),yn([4,4])))]}function Tn(Yn,dr){return dr||(dr="figure"),Ht(wt.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:rn(dr,Yn),contextClick:rn(dr,Yn)})}Pt.current.nodeTemplate.contextMenu=Ht("ContextMenu",Ht("ContextMenuButton",Ht(wt.s_,"Horizontal",Tn("Rectangle"),Tn("RoundedRectangle"),Tn("Ellipse"),Tn("Diamond"))),Ht("ContextMenuButton",Ht(wt.s_,"Horizontal",Tn("Parallelogram2"),Tn("ManualOperation"),Tn("Procedure"),Tn("Cylinder1"))),Ht("ContextMenuButton",Ht(wt.s_,"Horizontal",Tn("Terminator"),Tn("CreateRequest"),Tn("Document"),Tn("TriangleDown"))),nn(),wn(),Ln()),Pt.current.groupTemplate=Ht(wt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:wt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Yn,dr)=>{var Fr=dr.addMembers(dr.diagram.selection,!0);Fr||dr.diagram.currentTool.doCancel()},avoidable:!1},new wt.KX("location","loc",wt.E9.parse).makeTwoWay(wt.E9.stringify),Ht(wt.s_,"Auto",{name:"BODY"},Ht(wt.bn,{parameter1:10,fill:En.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:wt.z6.AllSides,toSpot:wt.z6.AllSides},new wt.KX("fill"),new wt.KX("stroke","color"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),Ht(wt.Vm,{background:"transparent",margin:20})),Ht(wt.al,{alignment:wt.z6.Top,alignmentFocus:wt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new wt.KX("text"),new wt.KX("stroke","color"))),Pt.current.groupTemplate.selectionAdornmentTemplate=Ht(wt.uz,"Spot",Ht(wt.s_,"Auto",Ht(wt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ht(wt.Vm,{margin:1.5})),nr({alignment:wt.z6.TopRight,alignmentFocus:wt.z6.BottomRight})),Pt.current.groupTemplate.contextMenu=Ht("ContextMenu",nn(),wn(),Ln()),Pt.current.linkTemplate=Ht(wt.rU,{layerName:"Foreground",routing:wt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new wt.KX("fromSpot","fromSpot",wt.z6.parse),new wt.KX("toSpot","toSpot",wt.z6.parse),new wt.KX("fromShortLength","dir",Yn=>Yn>=1?10:0),new wt.KX("toShortLength","dir",Yn=>Yn>=1?10:0),new wt.KX("points").makeTwoWay(),Ht(wt.bn,{strokeWidth:2},new wt.KX("stroke","color"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),Ht(wt.bn,{segmentIndex:0,segmentOffset:new wt.E9(15,0),segmentOrientation:wt.rU.OrientAlong,alignmentFocus:wt.z6.Right,figure:"circle",width:10,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Yn=>Yn===1)),Ht(wt.bn,{segmentIndex:-1,segmentOffset:new wt.E9(-10,6),segmentOrientation:wt.rU.OrientPlus90,alignmentFocus:wt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Yn=>Yn>=1),new wt.KX("width","thickness",Yn=>7+3*Yn),new wt.KX("height","thickness",Yn=>7+3*Yn),new wt.KX("segmentOffset","thickness",Yn=>new wt.E9(-15,4+1.5*Yn))),Ht(wt.bn,{segmentIndex:0,segmentOffset:new wt.E9(15,-6),segmentOrientation:wt.rU.OrientMinus90,alignmentFocus:wt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Yn=>Yn===2),new wt.KX("width","thickness",Yn=>7+3*Yn),new wt.KX("height","thickness",Yn=>7+3*Yn),new wt.KX("segmentOffset","thickness",Yn=>new wt.E9(-15,4+1.5*Yn))),Ht(wt.al,{alignmentFocus:new wt.z6(0,1,-4,0),editable:!0},new wt.KX("text").makeTwoWay(),new wt.KX("stroke","color"))),Pt.current.linkTemplate.selectionAdornmentTemplate=Ht(wt.uz,Ht(wt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:In(2)},new wt.KX("pathPattern","thickness",In)),nr({alignmentFocus:new wt.z6(0,0,-6,-4)}));function In(Yn){return Ht(wt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Yn+4).toString()+" H3"})}function Gn(Yn){var dr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Yn===0?dr="M0 0 M16 16 M0 8 L16 8":Yn===2&&(dr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ht(wt.bn,{geometryString:dr,margin:2,background:"transparent",mouseEnter:(Fr,fr)=>fr.background="dodgerblue",mouseLeave:(Fr,fr)=>fr.background="transparent",click:rn("dir",Yn),contextClick:rn("dir",Yn)})}function mr(Yn){var dr=(Fr,fr)=>{Fr.handled=!0,Fr.diagram.model.commit(Ir=>{var Zr=fr.part.adornedPart;Ir.set(Zr.data,Yn?"toSpot":"fromSpot",wt.z6.stringify(wt.z6.AllSides)),(Yn?Zr.toNode:Zr.fromNode).invalidateConnectedLinks()})};return Ht(wt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Fr,fr)=>fr.background="dodgerblue",mouseLeave:(Fr,fr)=>fr.background="transparent",click:dr,contextClick:dr})}function mn(Yn,dr){var Fr=0,fr=wt.z6.RightSide;Yn.equals(wt.z6.Top)?(Fr=270,fr=wt.z6.TopSide):Yn.equals(wt.z6.Left)?(Fr=180,fr=wt.z6.LeftSide):Yn.equals(wt.z6.Bottom)&&(Fr=90,fr=wt.z6.BottomSide),dr||(Fr-=180);var Ir=(Zr,zr)=>{Zr.handled=!0,Zr.diagram.model.commit(Er=>{var Vr=zr.part.adornedPart;Er.set(Vr.data,dr?"toSpot":"fromSpot",wt.z6.stringify(fr)),(dr?Vr.toNode:Vr.fromNode).invalidateConnectedLinks()})};return Ht(wt.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:(Zr,zr)=>zr.background="dodgerblue",mouseLeave:(Zr,zr)=>zr.background="transparent",click:Ir,contextClick:Ir})}Pt.current.linkTemplate.contextMenu=Ht("ContextMenu",wn(),Ln(),Ht("ContextMenuButton",Ht(wt.s_,"Horizontal",Gn(0),Gn(1),Gn(2))),Ht("ContextMenuButton",Ht(wt.s_,"Horizontal",Ht(wt.s_,"Spot",mr(!1),mn(wt.z6.Top,!1),mn(wt.z6.Left,!1),mn(wt.z6.Right,!1),mn(wt.z6.Bottom,!1)),Ht(wt.s_,"Spot",{margin:new wt.Zt(0,0,0,2)},mr(!0),mn(wt.z6.Top,!0),mn(wt.z6.Left,!0),mn(wt.z6.Right,!0),mn(wt.z6.Bottom,!0)))));const Pr=`{ "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 Ur=["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 Br(Yn){return console.log("shapeName:",Yn),Ur.indexOf(Yn)>=0}var Sn=new wt.YI(pn.current,{maxSelectionCount:1,linkTemplate:Ht(wt.rU,{locationSpot:wt.z6.Center,selectionAdornmentTemplate:Ht(wt.uz,"Link",{locationSpot:wt.z6.Center},Ht(wt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ht(wt.bn,{toArrow:"Standard",stroke:null}))},{routing:wt.rU.AvoidsNodes,curve:wt.rU.JumpOver,corner:5,toShortLength:4},new wt.KX("points"),Ht(wt.bn,{isPanelMain:!0,strokeWidth:2}),Ht(wt.bn,{toArrow:"Standard",stroke:null})),model:new wt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...wt.bn.getFigureGenerators().toArray().map(Yn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Yn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pt.current.addDiagramListener("TextEdited",function(Yn){var dr;const Fr=Yn.subject.part;var fr=(dr=document.activeElement)==null?void 0:dr.value;typeof fr=="string"&&fr.trim()===""&&Pt.current.model.commit(function(Ir){Ir.set(Fr.data,"text","\u672A\u547D\u540D"),Pt.current.commandHandler.stopCommand()},"increment")}),Sn.nodeTemplate=Ht(wt.NB,"Auto",{locationSpot:wt.z6.Center},new wt.KX("location","location",wt.E9.parse).makeTwoWay(wt.E9.stringify),Ht(wt.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new wt.KX("stroke").makeTwoWay(),new wt.KX("fill").makeTwoWay(),new wt.KX("figure")),Ht(wt.al,{margin:new wt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new wt.$u(16,16),maxSize:new wt.$u(10,NaN),textAlign:"center",editable:!0},new wt.KX("key").makeTwoWay())),setTimeout(()=>{Pt.current.grid=Ht(wt.s_,"Grid",Ht(wt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ht(wt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pt.current.grid.visible=!0,Pt.current.grid.gridCellStroke="darkgray",Pt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pt.current,Pt.current}const Zn=()=>Ge(this,null,function*(){var Ht,En=Pt.current.makeImage();const Kn=yield(0,Ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:En.src,file_data:JSON.stringify({login:(Ht=(0,Je.eY)())==null?void 0:Ht.login,data:JSON.parse(Pt.current.model.toJson())})}});Gt({src:Kn.url})});return(0,He.useEffect)(()=>(setTimeout(()=>{Nn()},500),xn(cn+1),()=>{Pt.current=null}),[]),Me.createElement("div",{ref:Dt,className:Vt.current?`${Ye.maxH60} body-overflow-initial`:"body-overflow-initial"},Me.createElement(gt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!cn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Me.createElement(vt.Z,null,Me.createElement(xe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Me.createElement(xe.Z,{onClick:()=>{var Ht,En,Kn=Pt.current.selection.first();if(Vt.current=!Vt.current,document.activeElement&&Kn){let nr=(En=(Ht=document.activeElement)==null?void 0:Ht.value)==null?void 0:En.trim();typeof nr=="string"&&Pt.current.model.commit(function(rn){rn.set(Kn.data,"text",nr||"\u672A\u547D\u540D"),Pt.current.commandHandler.stopCommand()},"increment")}xn(cn+1)}},Me.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:_t},Me.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ye.flowChartWrp},Me.createElement("div",{style:{display:"flex",height:"100%"}},Me.createElement("div",{style:{width:"300px",height:"100%"}},Me.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Me.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ye.myPaletteDiv,ref:pn})),Me.createElement("div",{style:{flex:1,position:"relative"}},Me.createElement("div",{ref:ln,style:{height:"80vh"}}))),Me.createElement("div",{className:"tr"},Me.createElement(ze.ZP,{size:"large",onClick:Zn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ve=Ke,Qe=We(5112),ht=We(5871);const At=Qe.ZP.Group,pt={margin:"0 8px"};var Ot=({callback:_t,onCancel:Gt})=>{function Pt(ln){_t(ln)}return He.createElement(Oe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pt},He.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},He.createElement("span",{style:pt},"\u5355\u5143\u683C\u6570\uFF1A"),He.createElement("span",{style:pt},"\u884C\u6570"),He.createElement(Oe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},He.createElement(ht.Z,null)),He.createElement("span",{style:pt},"\u5217\u6570"),He.createElement(Oe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},He.createElement(ht.Z,null))),He.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},He.createElement("span",{style:pt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),He.createElement(Oe.default.Item,{name:"align"},He.createElement(At,null,He.createElement(Qe.ZP,{value:"default"},He.createElement("i",{className:"fa fa-align-justify"})),He.createElement(Qe.ZP,{value:"left"},He.createElement("i",{className:"fa fa-align-left"})),He.createElement(Qe.ZP,{value:"center"},He.createElement("i",{className:"fa fa-align-center"})),He.createElement(Qe.ZP,{value:"right"},He.createElement("i",{className:"fa fa-align-right"}))))),He.createElement("div",{className:"flex-container flex-end"},He.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(ze.ZP,{type:"ghost",onClick:Gt},"\u53D6\u6D88")))},Kt=We(78673),jt=We(5559),Rt=We.n(jt),sn=(0,He.forwardRef)(({use3d:_t,width:Gt,height:Pt,callback:ln,showSaveButton:pn},Vt)=>{const Dt=(0,He.useRef)(),cn=(0,He.useRef)(),[xn,Nn]=(0,He.useState)(!1),Zn=(0,He.useRef)({id:Dt,appName:"graphing",width:Gt||1e3,height:Pt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,He.useEffect)(()=>{cn.current=new(Rt())(Zn.current,!0),window.onload=function(){cn.current.inject("applet_container")}},[]);const Ht=()=>{var En=window.ggbApplet.getPNGBase64(1,!0,72);return ln&&ln(En),En};return(0,He.useEffect)(()=>{Zn.current.appName=xn?"3D":"graphing",cn.current.inject("applet_container")},[xn]),(0,He.useEffect)(()=>{Nn(_t)},[_t]),(0,He.useImperativeHandle)(Vt,()=>({getImgData:Ht})),He.createElement(He.Fragment,null,He.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Dt}),He.createElement(vt.Z,{align:"middle"},He.createElement(xe.Z,{flex:1},He.createElement(Kt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:xn,onChange:En=>Nn(En)})),He.createElement(xe.Z,null,He.createElement(ze.ZP,{size:"large",onClick:Ht,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ft=We(46531),Qt=We(8591);const en="link",on="upload-image",Cn="add-flowchart",Bn="draw-image",tr="add-flowchart",er="code-block",cr="add-table",Ar="------------",Dr={default:Ar,left:`:${Ar}`,center:`:${Ar}:`,right:`${Ar}:`};var Or=We(50505);function $r(){}let ai=0;const br=1e4,fi="\u2581",Cr="@\u2581\u2581@",at="@\u2581@",wi=`
|
|
|
**\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`,ui=["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 Dn(_t){return/^\d+$/.test(_t)?`${_t}px`:_t}const or=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",vr={[or+"-B"]:"bold",[or+"-I"]:"italic"},Hn={[en]:"\u6DFB\u52A0\u94FE\u63A5",[er]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[on]:"\u6DFB\u52A0\u56FE\u7247",[Bn]:"\u6DFB\u52A0\u753B\u56FE",[Cn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[cr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:_t="",onChange:Gt,width:Pt="100%",height:ln=400,miniToolbar:pn=!1,isFocus:Vt=!1,watch:Dt,insertTemp:cn,mode:xn="markdown",id:Nn="markdown-editor-id",showResizeBar:Zn=!1,noStorage:Ht=!1,showNullButton:En=!1,showNullProgramButton:Kn=!1,hidetoolBar:nr=!1,fullScreen:rn=!1,onBlur:bn,onCMBeforeChange:nn,onFullScreen:wn,className:gn="",disablePaste:yn=!1,disabled:Ln=!1,disabledFill:Tn=!1,placeholder:In="",values:Gn="",extraUse:mr})=>{const[mn,Pr]=(0,He.useState)(null),[Ur,Br]=(0,He.useState)(_t),[Sn,Yn]=(0,He.useState)(Dt),[dr,Fr]=(0,He.useState)(rn),[fr,Ir]=(0,He.useState)(""),[Zr,zr]=(0,He.useState)(0),[Er,Vr]=(0,He.useState)(ln),[Fn,Mi]=(0,He.useState)(!1),[On,pi]=(0,He.useState)(0),[Ni,Qr]=(0,He.useState)(0),Xi=(0,He.useRef)(),Ti=(0,He.useRef)(),Rr=(0,He.useRef)(),Wr=(0,He.useRef)();(0,He.useEffect)(()=>{const Yr=window.scrollY||window.pageYOffset;Br(Gn),mn==null||mn.setValue(Gn),window.scrollTo(0,Yr)},[Gn]),(0,He.useEffect)(()=>{wn==null||wn(dr)},[dr]),(0,He.useEffect)(()=>{if(Xi.current){let Yr=function(qn,ci){var ro;if(yn){ci.preventDefault();return}const Do=ci.clipboardData;if(Do){const lo=Do.types.toString(),Qi=Do.items;if(lo==="Files"||Do.types.indexOf("Files")>-1){if(ci.preventDefault(),xn=="stex")return;try{let Oo=Qi[1];((ro=Qi[0])==null?void 0:ro.kind)==="file"&&(Oo=Qi[0]);const ko=Oo.getAsFile(),oa=ko.name.split(".").pop();(0,ft.I)(ko,la=>{var Ma,Mn,ha;la.id?((Ma=ko==null?void 0:ko.type)==null?void 0:Ma.indexOf("image"))>-1?Kr.replaceSelection(`<img width="100%" src="/api/attachments/${la.id}?type=${la.content_type})" alt="" />`):((Mn=ko==null?void 0:ko.type)==null?void 0:Mn.indexOf("video"))>-1?Kr.replaceSelection(`<video width="100%" controls src="/api/attachments/${la.id}"></video>`):((ha=ko==null?void 0:ko.type)==null?void 0:ha.indexOf("pdf"))>-1?Kr.replaceSelection(`<a href="/api/attachments/${la.id}?type=${ko.type}&disposition=inline" target="_blank">${ko.name}</a>`):ui.includes(oa)?Kr.replaceSelection(`<a href="/api/attachments/${la.id}?type=office&disposition=inline" target="_blank">${ko.name}</a>`):Kr.replaceSelection(`[${ko.name}](/api/attachments/${la.id}?type=${la.content_type})`):(la==null?void 0:la.status)===401&&(document.location.href="/user/login")})}catch(Oo){Qt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Kr=oe().fromTextArea(Xi.current,{mode:xn,lineNumbers:!pn,lineWrapping:!0,value:_t,autoCloseTags:!0,autoCloseBrackets:!0});return Kr.on("keyup",function(qn,ci){ci.keyCode===8&&(qn.getValue()==""?Kr.setOption("placeholder",In):Kr.setOption("placeholder",null))}),Kr.on("keydown",function(qn,ci){if(ci.keyCode===8){var ro=Di(qn);ro&&ci.preventDefault()}}),Vt&&Kr.focus(),Kr.on("paste",Yr),Ln&&Kr.on("beforeChange",function(qn,ci){(ci.origin==="paste"||ci.origin==="+input")&&ci.cancel()}),Pr(Kr),()=>{Kr.off("paste",Yr)}}},[]);const bi=(0,He.useCallback)(()=>{if(Ti.current)try{}catch(Yr){console.log(Yr,"---- to set md editor body height")}},[Er,Ti,dr]);(0,He.useEffect)(()=>{function Yr(){let Kr=new Ze.Z(qn=>{for(let ci of qn)(ci.target.offsetHeight>0||ci.target.offsetWidth>0)&&(bi(),mn.setSize("100%","100%"),mn.refresh())});return Kr.observe(Xi.current.parentElement),Kr}if(mn){const Kr=Yr();return()=>{var qn,ci;(qn=Xi.current)!=null&&qn.parentElement&&Kr.unobserve((ci=Xi.current)==null?void 0:ci.parentElement)}}},[mn,bi]),(0,He.useEffect)(()=>{if(mn){let Yr=[];for(const[Kr,qn]of Object.entries(vr)){let ci={[Kr]:()=>{pr(qn)}};Yr.push(ci),mn.addKeyMap(ci)}return()=>{for(let Kr of Yr)mn.removeKeyMap(Kr)}}},[mn]),(0,He.useEffect)(()=>{rn!==dr&&Fr(rn)},[rn]),(0,Or.Z)(()=>{if(!Ht&&Zr>0){let Yr=new Date().getTime(),Kr=window.sessionStorage.getItem(Nn);Yr>=Zr+br&&(!Kr||Kr!==Ur)&&(window.sessionStorage.setItem(Nn,Ur),Mi(!0))}},br),(0,He.useEffect)(()=>{Yn(Dt)},[mn,Dt]),(0,He.useEffect)(()=>{mn&&Vt&&mn.focus()},[mn,Vt]),(0,He.useEffect)(()=>{if(Sn&&mn){let Yr=function(qn){let ci=qn.target;if(Wr.current){let ro=ci.scrollTop/ci.scrollHeight;Wr.current.scrollTop=Wr.current.scrollHeight*ro}};const Kr=mn.getScrollerElement();return Kr.addEventListener("scroll",Yr),()=>{Kr.removeEventListener("scroll",Yr)}}},[mn,Sn]),(0,He.useEffect)(()=>{if(mn&&nn){let Yr=function(Kr,qn){nn(Kr,qn)};return mn.on("beforeChange",Yr),()=>{mn.off("beforeChange",Yr)}}},[mn,nn]),(0,He.useEffect)(()=>{if(mn&&bn){let Yr=function(){bn(mn.getValue())};return mn.on("blur",Yr),()=>{mn.off("blur",Yr)}}},[mn,bn]);function Di(Yr,Kr){var qn=Yr.getDoc(),ci=qn.getCursor(),ro=qn.getLine(ci.line),Do=ro.charAt(ci.ch-1),lo=ro.lastIndexOf("@\u2581@",ci.ch),Qi=ro.lastIndexOf("@\u2581\u2581@",ci.ch),Oo=lo>Qi?lo:Qi,ko=lo>Qi?3:4;if(Cr.indexOf(Do)===-1)return null;if(console.log("change1:",Kr,Yr,ro,ci,Oo,lo,Qi,Do),Oo>=0&&ci.ch-Oo<5){var oa=Oo+ko;return qn.replaceRange("",{line:ci.line,ch:Oo},{line:ci.line,ch:oa}),{line:ci.line,ch:oa}}return null}(0,He.useEffect)(()=>{if(mn){let Yr=function(Kr,qn){const ci=Kr.getValue();Br(ci),zr(new Date().getTime()),Kr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Gt&&(Kn?Gt(ci,yi(ci)):Gt(ci))};return mn.on("change",Yr),()=>{mn.off("change",Yr)}}},[mn,Gt]),(0,He.useEffect)(()=>{if(mn)if(_t==null)mn.setValue(""),Br("");else{const Yr=window.scrollY||window.pageYOffset;_t!==mn.getValue()&&(mn.setValue(_t),Br(_t),mn.setCursor(Ln?1:mn.lineCount(),0),window.scrollTo(0,Yr))}},[mn,_t]);const pr=(0,He.useCallback)(Yr=>{const Kr=mn.getCursor(),qn=mn.getSelection();let ci=qn.split(`
|
|
|
`);switch(Yr){case"bold":return mn.replaceSelection("**"+qn+"**"),qn===""&&mn.setCursor(Kr.line,Kr.ch+2),mn.focus();case"italic":return mn.replaceSelection("*"+qn+"*"),qn===""&&mn.setCursor(Kr.line,Kr.ch+1),mn.focus();case"code":return mn.replaceSelection("`"+qn+"`"),qn===""&&mn.setCursor(Kr.line,Kr.ch+1),mn.focus();case"inline-latex":return Ir("inline-latex"),mn.focus();case"latex":return mn.replaceSelection("```latex\n"+qn+"\n```"),mn.setCursor(Kr.line+1,qn.length+1),mn.focus();case"line-break":return mn.replaceSelection(`<br/>
|
|
|
`),mn.focus();case"list-ul":return qn===""?mn.replaceSelection("- "+qn):mn.replaceSelection(ci.map(ro=>ro===""?"":`- ${ro}`).join(`
|
|
|
`)),mn.focus();case"list-ol":return qn===""?mn.replaceSelection("1. "+qn):mn.replaceSelection(ci.map((ro,Do)=>ro===""?"":`${Do+1}. ${ro}`).join(`
|
|
|
`)),mn.focus();case"add-null-ch":return qn===""&&mn.setCursor(Kr.line,Kr.ch),mn.replaceSelection(fi),mn.focus();case"add-signal":return qn===""&&mn.setCursor(Kr.line,Kr.ch),mn.replaceSelection(at),mn.focus();case"add-multiple":return qn===""&&mn.setCursor(Kr.line,Kr.ch),mn.replaceSelection(Cr),mn.focus();case"inster-template-1":return qn===""&&mn.setCursor(Kr.line,Kr.ch),mn.replaceSelection(wi),mn.focus();case"eraser":return mn.setValue(""),mn.focus();case"trigger-watch":return Yn(!Sn),mn.focus();case"trigger-full-screen":return Fr(!dr),mn.focus();case en:Ir(en);return;case er:Ir(er);return;case on:Ir(on);return;case Bn:Ir(Bn);return;case"maths-latex":Ir("maths-latex");return;case Cn:Ir(Cn);return;case cr:Ir(cr);return;default:throw new Error}},[mn,Sn,dr]),Lt=(0,He.useCallback)((Yr,Kr)=>{var qn,ci,ro,Do,lo,Qi;switch(Ir(""),fr){case en:const{title:Ma,link:Mn}=Yr;return mn.replaceSelection(`[${Ma}](${Mn})`),mn.focus();case er:const{language:ha,content:fu}=Yr;return mn.replaceSelection(["```"+ha,fu,"```"].join(`
|
|
|
`)),mn.focus();case"maths-latex":for(var Oo=atob(Yr),ko=new Uint8Array(Oo.length),oa=0;oa<Oo.length;oa++)ko[oa]=Oo.charCodeAt(oa);var la=new Blob([ko],{type:"image/png"});(0,ft.I)(la,Ci=>{Ci.id?mn.replaceSelection(``):(Ci==null?void 0:Ci.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":mn.replaceSelection("`$$"+Yr+"$$`");break;case on:case Bn:case tr:const{src:xs,alt:bo}=Yr,io=Kr,da=(ro=(ci=(qn=io==null?void 0:io.name)==null?void 0:qn.split("."))==null?void 0:ci.pop)==null?void 0:ro.call(ci);return((Do=io==null?void 0:io.type)==null?void 0:Do.indexOf("image"))>-1||!(io!=null&&io.type)?io.align||io.width?mn.replaceSelection(`<p style="text-align:${io.align||"initial"}"><img width="${io.width?io.width+"%":"initial"}" src="${xs}" alt="${bo||""}" /></p>`):mn.replaceSelection(`<img width="100%" src="${xs}" alt="${bo||""}" />`):((lo=io==null?void 0:io.type)==null?void 0:lo.indexOf("video"))>-1?mn.replaceSelection(`<video width="100%" controls src="${xs}"></video>`):((Qi=io==null?void 0:io.type)==null?void 0:Qi.indexOf("pdf"))>-1?mn.replaceSelection(`<a href="${xs}?type=${io.type}&disposition=inline" target="_blank">${io.name}</a>`):ui.includes(da)?mn.replaceSelection(`<a href="${xs}?type=office&disposition=inline" target="_blank">${io.name}</a>`):mn.replaceSelection(`[${io.name}](${xs})`),mn.focus();case cr:const{row:Ao,col:$i,align:Io}=Yr;let ws=`
|
|
|
`;for(let Ci=0;Ci<Ao;Ci++){let co=[],ao=[];for(let kr=0;kr<$i;kr++)Ci===1&&ao.push(Dr[Io]),co.push(" ");Ci===1&&(ws+=`| ${ao.join(" | ")} |
|
|
|
`),ws+=`| ${co.join($i===1?"":" | ")} |
|
|
|
`}return mn.replaceSelection(ws+`
|
|
|
`),mn.focus();default:throw new Error}},[mn,fr]),Li=(0,He.useMemo)(()=>{switch(fr){case en:return He.createElement(St,{callback:Lt,onCancel:so});case er:return He.createElement(xt.Z,{callback:Lt,onCancel:so});case on:return He.createElement(ft.Z,{callback:Lt,onCancel:so});case Cn:return He.createElement(Ve,{callback:Lt,onCancel:so});case cr:return He.createElement(Ot,{callback:Lt,onCancel:so});case"maths-latex":return He.createElement(sn,{showSaveButton:!0,callback:Lt});case"inline-latex":return He.createElement(Ft.Z,{showSaveButton:!0,callback:Lt});default:return null}},[fr]);function so(){Ir("")}(0,He.useEffect)(()=>{if(Rr.current){let Yr=function(lo){ro=!0,Do=lo.pageY},Kr=function(){ro=!1},qn=function(lo){if(ro){let Qi=lo.pageY-Do;Qi<0&&(Qi=0),Qi>300&&(Qi=300);let Oo=ln+Qi+"px";Vr(Oo)}},ci=Rr.current,ro=!1,Do=0;return ci.addEventListener("mousedown",Yr),document.addEventListener("mousemove",qn),document.addEventListener("mouseup",Kr),()=>{ci.removeEventListener("mousedown",Yr),document.removeEventListener("mousemove",qn),document.removeEventListener("mouseup",Kr)}}},[mn,Rr]),(0,He.useEffect)(()=>{Vr(ln)},[ln]);const Pi=Dn(Pt),wo=Dn(Er),po={width:Pi,height:wo},Eo=(0,He.useMemo)(()=>{if(Zr){let Yr=new Date(Zr),Kr=Yr.getHours(),qn=Yr.getMinutes(),ci=Yr.getSeconds();return Kr=Kr<10?"0"+Kr:Kr,qn=qn<10?"0"+qn:qn,ci=ci<10?"0"+ci:ci,`${Kr}:${qn}:${ci}`}return 0},[Zr]),yi=Yr=>{const Kr=[];if(Kn){let qn=-1;Yr=Yr.replace(/(@▁▁@|@▁@)/g,function(ci,ro,Do){Kr.push({multiLine:ci!==at})})}return Kr};function si(){window.sessionStorage.removeItem(Nn),Mi(!1),zr(0)}function ei(){Mi(!1),zr(0),mn.setValue(window.sessionStorage.getItem(Nn))}(0,He.useEffect)(()=>{Hn[fr]&&fr!==Bn&&fr!==Cn&&setTimeout(()=>{const Yr=document.getElementsByClassName("markdown-popup-form")[0],Kr=window.innerWidth/2-Yr.offsetWidth/2,qn=window.innerHeight/2-Yr.offsetHeight/2;pi(Kr),Qr(qn)},0)},[fr]);const Ji=Yr=>{Yr.preventDefault();const Kr=Yr.clientX-On,qn=Yr.clientY-Ni;document.body.onmousemove=ci=>{let ro=ci.clientX-Kr,Do=ci.clientY-qn;const lo=document.getElementsByClassName("markdown-popup-form")[0],Qi=window.innerWidth-lo.offsetWidth,Oo=window.innerHeight-lo.offsetHeight;ro=Math.max(0,Math.min(ro,Qi)),Do=Math.max(0,Math.min(Do,Oo)),no(ci.clientX,ci.clientY,Kr,qn)&&(pi(ro),Qr(Do))},document.body.onmouseup=function(){document.body.onmousemove=null}},no=(Yr,Kr,qn,ci)=>{const ro=document.body.clientHeight,Do=document.body.clientWidth;return Yr<20&&qn>Yr||Yr>Do-20&&qn<Yr||Kr<20&&ci>Kr||Kr>ro-20&&ci<Kr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return He.createElement(He.Fragment,null,He.createElement("div",{className:"markdown-editor-wrapper",ref:Ti},He.createElement("div",{className:`markdown-editor-container ${gn} ${Sn?"on-preview":""} ${pn?"mini":""} ${dr?"full-screen":""}`,style:po},He.createElement(Le,{insertTemp:cn,watch:Sn,fullScreen:dr,showNullButton:En,showNullProgramButton:Kn,onActionCallback:pr,hidetoolBar:nr,extraUse:mr}),He.createElement("div",{className:"markdown-editor-body"},He.createElement("div",{className:"codemirror-container"},He.createElement("textarea",{ref:Xi,placeholder:In})),Sn?He.createElement("div",{ref:Wr,className:"preview-container"},xn==="stex"&&He.createElement(me,{value:Ur}),xn!=="stex"&&He.createElement(De.Z,{disabledFill:Tn,showProgramFill:Kn,value:Ur})):null))),Zn?He.createElement("a",{ref:Rr,className:"editor-resize"}):null,fr===Bn&&He.createElement(Zt,{callback:Lt,onCancel:so}),fr===Cn&&He.createElement(Ve,{callback:Lt,onCancel:so}),He.createElement(Fe.Z,null,Hn[fr]&&fr!==Bn&&fr!==Cn?He.createElement(gt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:On,top:Ni},title:He.createElement("div",{style:{cursor:"move"},onMouseDown:Ji},Hn[fr]),open:!0,onCancel:so,footer:null,destroyOnClose:!0,width:fr===Cn?"1200px":null,height:fr===Cn?"80vh":null,className:"markdown-popup-form"},Li):null))}},56030:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return be},I:function(){return Le}});var He=We(78241),mt=We(8591),oe=We(92832),Ze=We(81327),Ne=We(5871),ge=We(5112),ce=We(3113),Pe=We(49291),Ae=We(59301),ye=We(59301),De=Object.defineProperty,me=Object.defineProperties,we=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Fe,Oe,je)=>Oe in Fe?De(Fe,Oe,{enumerable:!0,configurable:!0,writable:!0,value:je}):Fe[Oe]=je,re=(Fe,Oe)=>{for(var je in Oe||(Oe={}))z.call(Oe,je)&&ae(Fe,je,Oe[je]);if(fe)for(var je of fe(Oe))ee.call(Oe,je)&&ae(Fe,je,Oe[je]);return Fe},le=(Fe,Oe)=>me(Fe,we(Oe));const{useForm:ue}=He.default,pe={width:280,marginRight:10},Ee={labelCol:{span:5},wrapperCol:{span:19}};var be=({callback:Fe,onCancel:Oe})=>{const[je]=ue();let ze=(0,Ae.useRef)();function _e(et){ze.current.width=je.getFieldValue("width"),ze.current.align=je.getFieldValue("align"),Fe(et,ze.current)}function Ue(et,lt){if(et.status===-1){mt.ZP.error(et.message);return}je.setFieldsValue({src:`/api/attachments/${et.id}`,type:lt.type})}function $e(et){let lt=et.target.files[0];ze.current=lt,Le(lt,Ue)}return ye.createElement(He.default,le(re({form:je},Ee),{className:"upload-image-panel",onFinish:_e,style:{width:470,overflow:"hidden"}}),ye.createElement(He.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ye.createElement("div",{className:"flex-container"},ye.createElement(He.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(Ie,{onFileChange:$e}))),ye.createElement(He.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ye.createElement(oe.default,{style:{width:264}})),ye.createElement(He.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ye.createElement(Ze.Z,null,ye.createElement(He.default.Item,{name:"width",style:{margin:0}},ye.createElement(Ne.Z,{style:{width:264}})),ye.createElement("span",{className:"ml8"},"%"))),ye.createElement(He.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ye.createElement(ge.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ye.createElement("aside",null,ye.createElement(He.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:Oe},"\u53D6\u6D88"))))};function Ie({onFileChange:Fe}){return ye.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ye.createElement("input",{type:"file",onChange:Fe}))}function Le(Fe,Oe){if(!Fe)throw new String("\u6CA1\u6709\u6587\u4EF6");let je=new FormData;je.append("editormd-image-file",Fe),je.append("file_param_name","editormd-image-file"),je.append("byxhr","true");var ze=new window.XMLHttpRequest;ze.withCredentials=!0,ze.addEventListener("load",function(_e){Oe(JSON.parse(_e.target.responseText),Fe)},!1),ze.addEventListener("error",function(_e){console.error(_e)},!1),ze.open("POST",`${Pe.KI}/api/attachments.json`),ze.send(je)}},19647:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return oe}});var He=We(59301),mt=We(4676);class oe extends He.Component{constructor(Ne){super(Ne);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:Ne}=this.props;return(0,mt.createPortal)(Ne,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},57800:function(kn,fn,We){"use strict";We.d(fn,{SV:function(){return Ge},ZP:function(){return Me}});var He=We(59301),mt=We(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"]},Ze={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"]},Ne={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},ge={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},ce={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var Pe=We(7947),Ae=We.n(Pe),ye=Object.defineProperty,De=Object.defineProperties,me=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Ke,Ve,Qe)=>Ve in Ke?ye(Ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ke[Ve]=Qe,ae=(Ke,Ve)=>{for(var Qe in Ve||(Ve={}))fe.call(Ve,Qe)&&ee(Ke,Qe,Ve[Qe]);if(we)for(var Qe of we(Ve))z.call(Ve,Qe)&&ee(Ke,Qe,Ve[Qe]);return Ke},re=(Ke,Ve)=>De(Ke,me(Ve)),le=(Ke,Ve,Qe)=>new Promise((ht,At)=>{var pt=jt=>{try{Kt(Qe.next(jt))}catch(Rt){At(Rt)}},Ot=jt=>{try{Kt(Qe.throw(jt))}catch(Rt){At(Rt)}},Kt=jt=>jt.done?ht(jt.value):Promise.resolve(jt.value).then(pt,Ot);Kt((Qe=Qe.apply(Ke,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=(Ke,Ve)=>Ve.map(Qe=>({label:Qe,kind:Ke.languages.CompletionItemKind.Keyword,insertText:Qe})),Ee=Ke=>Object.keys(ue.tables).map(Ve=>({label:Ve,kind:Ke.languages.CompletionItemKind.Variable,insertText:Ve})),be=(Ke,Ve)=>{const Qe=ue.tables[Ke];return Qe?Qe.map(ht=>({label:ht,kind:Ve.languages.CompletionItemKind.Field,insertText:ht})):[]};function Ie(Ke,Ve,Qe,ht,At){let pt=Ve.getWordUntilPosition(Qe),Ot={startLineNumber:Qe.lineNumber,endLineNumber:Qe.lineNumber,startColumn:pt.startColumn,endColumn:pt.endColumn},Kt=ht.map(jt=>({label:jt,kind:Ke.languages.CompletionItemKind.Keyword,insertText:jt,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ot}));return At.map(jt=>{Kt.push(re(ae({},jt),{range:Ot}))}),Kt}var Le=Ke=>{ue.languages.map(At=>(Ke.languages.registerDocumentFormattingEditProvider(At,{provideDocumentFormattingEdits(pt,Ot,Kt){return le(this,null,function*(){const jt=Ae()(pt.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:pt.getFullModelRange(),text:jt}]})}}),At));const Ve=Ne.quickKey.map(At=>({label:At.label,kind:Ke.languages.CompletionItemKind.Method,insertText:At.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Qe=ge.quickKey.map(At=>({label:At.label,kind:Ke.languages.CompletionItemKind.Method,insertText:At.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ht=Ze.quickKey.map(At=>({label:At.label,kind:Ke.languages.CompletionItemKind.Method,insertText:At.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Ke.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(At,pt){var Ot=At.getWordUntilPosition(pt),Kt={startLineNumber:pt.lineNumber,endLineNumber:pt.lineNumber,startColumn:Ot.startColumn,endColumn:Ot.endColumn},jt=At.getLineContent(pt.lineNumber).substring(Ot.startColumn-2,Ot.endColumn);return{suggestions:[...Ne.keywords.map(Rt=>({label:Rt,kind:Ke.languages.CompletionItemKind.Function,documentation:Rt,insertText:Rt,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Kt})),...Ne.quickKey.map(Rt=>({label:Rt.label,kind:Ke.languages.CompletionItemKind.Function,documentation:Rt.content,insertText:jt.startsWith("#")?Rt.content.replace(/#/,""):Rt.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Kt}))]}}}),Ke.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(At,pt){var Ot=At.getWordUntilPosition(pt),Kt={startLineNumber:pt.lineNumber,endLineNumber:pt.lineNumber,startColumn:Ot.startColumn,endColumn:Ot.endColumn};return{suggestions:[...oe.keywords.map(jt=>({label:jt,kind:Ke.languages.CompletionItemKind.Function,documentation:jt,insertText:jt,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Kt}))]}}}),Ke.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(At,pt){var Ot=At.getWordUntilPosition(pt),Kt={startLineNumber:pt.lineNumber,endLineNumber:pt.lineNumber,startColumn:Ot.startColumn,endColumn:Ot.endColumn},jt=At.getLineContent(pt.lineNumber).substring(Ot.startColumn-2,Ot.endColumn);return{suggestions:[...Ze.keywords.map(Rt=>({label:Rt,kind:Ke.languages.CompletionItemKind.Function,documentation:Rt,insertText:Rt,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Kt})),...Ze.quickKey.map(Rt=>({label:Rt.label,kind:Ke.languages.CompletionItemKind.Function,documentation:Rt.content,insertText:jt.startsWith("#")?Rt.content.replace(/#/,""):Rt.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Kt}))]}}}),Ke.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(At,pt){var Ot=At.getWordUntilPosition(pt),Kt={startLineNumber:pt.lineNumber,endLineNumber:pt.lineNumber,startColumn:Ot.startColumn,endColumn:Ot.endColumn},jt=At.getLineContent(pt.lineNumber).substring(Ot.startColumn-2,Ot.endColumn);return{suggestions:[...ce.keywords.map(Rt=>({label:Rt,kind:Ke.languages.CompletionItemKind.Function,documentation:Rt,insertText:Rt,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Kt})),...ce.quickKey.map(Rt=>({label:Rt.label,kind:Ke.languages.CompletionItemKind.Function,documentation:Rt.content,insertText:jt.startsWith("#")?Rt.content.replace(/#/,""):Rt.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Kt}))]}}}),Ke.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(At,pt){var Ot=At.getWordUntilPosition(pt),Kt={startLineNumber:pt.lineNumber,endLineNumber:pt.lineNumber,startColumn:Ot.startColumn,endColumn:Ot.endColumn},jt=At.getLineContent(pt.lineNumber).substring(Ot.startColumn-2,Ot.endColumn);return{suggestions:[...ge.keywords.map(Rt=>({label:Rt,kind:Ke.languages.CompletionItemKind.Function,documentation:Rt,insertText:Rt,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Kt})),...ge.quickKey.map(Rt=>({label:Rt.label,kind:Ke.languages.CompletionItemKind.Function,documentation:Rt.content,insertText:jt.startsWith("#")?Rt.content.replace(/#/,""):Rt.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Kt}))]}}})};const Fe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Oe=Object.defineProperty,je=(Ke,Ve,Qe)=>Ve in Ke?Oe(Ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ke[Ve]=Qe,ze=(Ke,Ve,Qe)=>je(Ke,typeof Ve!="symbol"?Ve+"":Ve,Qe);const _e=class mx{constructor(Ve,Qe,ht){this.placeholder=Ve,this.editor=Qe,this.monaco=ht,Qe.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};ze(_e,"ID","editor.widget.placeholderHint");var $e=_e,et=We(96236),lt=We(8591),ut=We(6848),yt=We(89392),qe=We(50484),ot=We(56102),dt=Object.defineProperty,St=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Tt=(Ke,Ve,Qe)=>Ve in Ke?dt(Ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ke[Ve]=Qe,Et=(Ke,Ve)=>{for(var Qe in Ve||(Ve={}))gt.call(Ve,Qe)&&Tt(Ke,Qe,Ve[Qe]);if(ft)for(var Qe of ft(Ve))vt.call(Ve,Qe)&&Tt(Ke,Qe,Ve[Qe]);return Ke},Zt=(Ke,Ve)=>St(Ke,xt(Ve)),wt=(Ke,Ve)=>{var Qe={};for(var ht in Ke)gt.call(Ke,ht)&&Ve.indexOf(ht)<0&&(Qe[ht]=Ke[ht]);if(Ke!=null&&ft)for(var ht of ft(Ke))Ve.indexOf(ht)<0&&vt.call(Ke,ht)&&(Qe[ht]=Ke[ht]);return Qe},bt=(Ke,Ve,Qe)=>new Promise((ht,At)=>{var pt=jt=>{try{Kt(Qe.next(jt))}catch(Rt){At(Rt)}},Ot=jt=>{try{Kt(Qe.throw(jt))}catch(Rt){At(Rt)}},Kt=jt=>jt.done?ht(jt.value):Promise.resolve(jt.value).then(pt,Ot);Kt((Qe=Qe.apply(Ke,Ve)).next())});function it(Ke){return/^\d+$/.test(Ke)?`${Ke}px`:Ke}function nt(){}let xe=!1;const Ce={"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 Ye(Ke=[]){let Ve=Ke;if(Array.isArray(Ke)){for(let Qe=0;Qe<Ke.length;Qe++){let ht=Ce[Ke[Qe]];if(ht)return ht}return Ve[0]}return Ce[Ve]||Ve}let Je=null;var Me=Ke=>{var Ve=Ke,{width:Qe="100%",height:ht="100%",value:At,language:pt="javascript",style:Ot={},options:Kt={},overrideServices:jt={},theme:Rt="vs-dark",onEditBlur:Xt,isCopy:sn=!1,onSave:Ft,autoHeight:Qt=!1,forbidCopy:en=!1,onChange:on=nt,editorDidMount:Cn=nt,onFocus:Bn=nt,onBreakPoint:tr=nt,breakPointValue:er=[],filename:cr="educoder.txt",errorLine:Ar,errorContent:Dr="",highlightLine:Or,openBreakPoint:$r=!1,placeholder:ai=""}=Ve,br=wt(Ve,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const fi=(0,He.useRef)(),Cr=(0,He.useRef)({}),at=(0,He.useRef)(),wi=(0,He.useRef)(),ui=(0,He.useRef)([]),Dn=(0,He.useRef)(!1),ur=(0,He.useRef)(),or=(0,He.useRef)(),vr=(0,He.useRef)(!1),[Hn,Jn]=(0,He.useState)(!1);function _t(){let rn;return fi.current&&(rn=new mt.Z(bn=>{for(let nn of bn)(nn.target.offsetHeight>0||nn.target.offsetWidth>0)&&Cr.current.instance.layout()}),rn.observe(fi.current)),rn}function Gt(){lt.ZP.warning({content:decodeURIComponent(Fe),key:"monaco-editor-tip"})}const Pt=()=>{let rn=Cr.current.instance;if(At!=null&&rn&&Hn){const bn=rn.getModel();bn&&At!==bn.getValue()&&(xe=!0,bn.setValue(At),rn.layout(),xe=!1)}};(0,He.useEffect)(()=>{const rn=qe.Z.subscribe("formatDocument",bn=>{var nn;let wn=Cr.current.instance;(nn=wn==null?void 0:wn.getAction)==null||nn.call(wn,"editor.action.formatDocument").run()});return window.updateMonacoValue=bn=>{on(bn)},rn},[]),(0,He.useEffect)(()=>{var rn;let bn=Cr.current.instance;wi.current&&clearTimeout(wi.current),wi.current=setTimeout(()=>{Pt()},500),At&&(At!=null&&At.length)&&((rn=bn==null?void 0:bn.updateOptions)==null||rn.call(bn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(At.split(/\r\n|\r|\n/g).length))+3,5)}))},[At,Hn,Cr.current]),(0,He.useEffect)(()=>{if(Ar&&Cr.current&&Cr.current.instance){let bn=Cr.current.instance;bn.changeViewZones(function(nn){var wn=document.createElement("div");wn.style.padding="10px 20px",wn.style.width="calc(100% - 20px)",wn.className="my-error-line-wrp",wn.innerHTML=Dr,nn.addZone({afterLineNumber:Ar||11,heightInLines:3,domNode:wn})});var rn={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}};bn.addOverlayWidget(rn),bn.revealPositionInCenter({lineNumber:20,column:1})}},[Ar,Cr.current,Hn]);const ln=(rn="",bn)=>{if(!rn||rn.trim()==="")return!0;const wn=Cr.current.instance.getModel().getLineTokens(bn);let gn=!1;for(let yn=0;yn<2;yn++)wn.getStandardTokenType(yn)===1&&(gn=!0);return gn};(0,He.useEffect)(()=>{var rn;const bn=(rn=Cr.current)==null?void 0:rn.instance;if(bn&&Hn&&en){const nn=bn.onDidBlurEditorWidget(()=>{vr.current=!1}),wn=bn.onDidFocusEditorText(()=>{vr.current=!0});return()=>{nn.dispose(),wn.dispose()}}},[Cr.current,Hn,en]),(0,He.useEffect)(()=>{var rn;if((rn=Cr.current)!=null&&rn.instance&&Hn&&$r){let bn=Cr.current.instance,nn=bn.getModel();if(!nn)return;(()=>{var Br;let Sn=[],Yn=[];const dr=nn.getAllDecorations();for(let fr of dr)fr.options.className==="highlighted-line"&&(Sn.push((Br=fr==null?void 0:fr.range)==null?void 0:Br.startLineNumber),Yn.push(fr==null?void 0:fr.id));if(Or===Sn[0])return;nn.deltaDecorations(Yn,[]);const Fr=nn.getLineCount();Or&&Or<=Fr&&(bn.deltaDecorations([],[{range:new Je.Range(Or,1,Or,nn.getLineMaxColumn(Or)),options:{isWholeLine:!0,className:"highlighted-line"}}]),bn.revealLineInCenter(Or))})();const gn=(Br=!1)=>{var Sn;let Yn=[],dr=[];const Fr=nn.getAllDecorations();for(let fr of Fr)fr.options.linesDecorationsClassName==="breakpoints-select"&&(Yn.push((Sn=fr==null?void 0:fr.range)==null?void 0:Sn.startLineNumber),dr.push(fr==null?void 0:fr.id));if(Br)return{lines:Yn,ids:dr};tr(Yn)},yn=Br=>bt(void 0,null,function*(){let Sn={range:new Je.Range(Br,1,Br,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield nn.deltaDecorations([],[Sn]),gn()}),Ln=Br=>bt(void 0,null,function*(){let Sn=[];const Yn=bn.getLineDecorations(Br);for(let dr of Yn)dr.options.linesDecorationsClassName==="breakpoints-select"&&Sn.push(dr.id);yield nn.deltaDecorations(Sn,[]),gn()}),Tn=Br=>{let Sn=bn.getLineDecorations(Br);for(let Yn of Sn)if(Yn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,yt.isEqual)(er,gn(!0).lines)){nn.deltaDecorations(gn(!0).ids,[]);const Br=er.map(Sn=>({range:new Je.Range(Sn,1,Sn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));nn.deltaDecorations([],Br)}const In=bn.onDidChangeModelContent(Br=>{let Sn=bn.getPosition();if(Sn){let Yn=Sn.lineNumber;clearTimeout(or.current),or.current=setTimeout(()=>{ln(nn.getLineContent(Yn),Yn)?Ln(Yn):Tn(Yn)?(Ln(Yn),yn(Yn)):gn()},100)}}),Gn=bn.onMouseDown(Br=>{var Sn,Yn,dr;if(Br.target.detail&&((dr=(Yn=(Sn=Br.target)==null?void 0:Sn.element)==null?void 0:Yn.className)!=null&&dr.includes("line-numbers"))){let Fr=Br.target.position.lineNumber;if(ln(nn.getLineContent(Fr),Fr))return;Tn(Fr)?Ln(Fr):yn(Fr)}}),mr=Br=>{let Sn={range:new Je.Range(Br,1,Br,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ui.current=bn.deltaDecorations(ui.current,[Sn])},mn=()=>{ui.current=bn.deltaDecorations(ui.current,[])},Pr=bn.onMouseMove(Br=>{var Sn,Yn,dr;if(mn(),Br.target.detail&&((dr=(Yn=(Sn=Br.target)==null?void 0:Sn.element)==null?void 0:Yn.className)!=null&&dr.includes("line-numbers"))){let Fr=Br.target.position.lineNumber;if(ln(nn.getLineContent(Fr),Fr))return;mr(Fr)}}),Ur=bn.onMouseLeave(()=>{mn()});return()=>{In.dispose(),Gn.dispose(),Pr.dispose(),Ur.dispose()}}},[Cr.current,Hn,er,Or,$r,pt]),(0,He.useEffect)(()=>{var rn;(rn=Cr.current)!=null&&rn.instance&&$r&&Cr.current.instance.setPosition({lineNumber:0,column:0})},[Or]);function pn(){let rn=Cr.current.instance;if(rn){const bn=rn.getSelection(),nn=Cr.current.pastePos||{},wn=new Je.Range(nn.startLineNumber||bn.endLineNumber,nn.startColumn||bn.endColumn,nn.endLineNumber||bn.endLineNumber,nn.endColumn||bn.endColumn);setTimeout(()=>{rn.executeEdits("",[{range:wn,text:""}])},300)}}function Vt(rn){(window.navigator.platform.match("Mac")?rn.metaKey:rn.ctrlKey)&&rn.keyCode==83&&(rn.preventDefault(),Ft())}const Dt=()=>{if(Qt&&Cr.current.instance){const rn=Cr.current.instance.getContentHeight();Kn(rn<ht?ht:rn)}else Kn(ht)};function cn(rn){var bn=document.createEvent("MouseEvents");bn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),rn.dispatchEvent(bn)}const xn=rn=>{if(!vr.current)return;const{keyCode:bn,ctrlKey:nn,metaKey:wn,target:gn,type:yn}=rn;return(yn==="paste"||(bn===67||bn===86)&&(wn||nn))&&gn.nodeName==="TEXTAREA"&&(Gt(),rn.preventDefault()),!1};function Nn(rn,bn){var nn=window.URL||window.webkitURL||window,wn=new Blob([bn]),gn=document.createElementNS("http://www.w3.org/1999/xhtml","a");gn.href=nn.createObjectURL(wn),gn.download=rn,cn(gn)}(0,He.useEffect)(()=>{Dt()},[Dt]),(0,He.useEffect)(()=>{fi.current&&!Hn&&Promise.all([We.e(8909),We.e(6894)]).then(We.bind(We,71448)).then(rn=>{try{Je=rn,Cr.current.instance=Je.editor.create(fi.current,{value:At,language:Ye(pt),theme:Rt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},jt);const bn=Cr.current.instance;let gn=[...et.BH._menuItems].find(In=>In[0]._debugName=="EditorContext")[1],yn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ln=(In,Gn)=>{var mr,mn;let Pr=In._first;do Gn.includes((mn=(mr=Pr.element)==null?void 0:mr.command)==null?void 0:mn.id)&&In._remove(Pr);while(Pr=Pr.next)};if(Cn(bn,Je),setTimeout(()=>{Dt(),Cr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Nn(cr||"educoder.txt",bn.getValue())}})},500),Cr.current.subscription=bn.onDidChangeModelContent(In=>{Dn.current?clearTimeout(ur.current):(Dt(),on(bn.getValue(),In)),ur.current=setTimeout(()=>{Dn.current=!1},500)}),window.Monaco||Le(Je,Ye(pt)),en&&(Ln(gn,yn),fi.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",xn),window.removeEventListener("paste",xn),window.addEventListener("keydown",xn),window.addEventListener("paste",xn)),window.Monaco=Je,Xt&&bn.onDidBlurEditorWidget(()=>{Xt(bn.getValue())}),Bn&&bn.onDidFocusEditorText(()=>{Bn(bn.getValue())}),en)try{bn.onDidPaste(In=>{const Gn=bn.getSelection(),mr=Cr.current.pastePos||{},mn=new Je.Range(mr.startLineNumber||Gn.endLineNumber,mr.startColumn||Gn.endColumn,mr.endLineNumber||Gn.endLineNumber,mr.endColumn||Gn.endColumn);bn.executeEdits("",[{range:In.range,text:""}])})}catch(In){}let Tn=_t();return ai&&typeof ai=="string"&&new $e(ai,bn,Je),Jn(!0),()=>{const In=Cr.current.instance;In.dispose();const Gn=In.getModel();Gn&&Gn.dispose(),Cr.current.subscription&&Cr.current.subscription.dispose(),Tn.unobserve(fi.current)}}catch(bn){}})},[]),(0,He.useEffect)(()=>{if(Cr.current.instance&&Hn)return document.addEventListener("keydown",Vt,!1),()=>{document.removeEventListener("keydown",Vt)}},[Ft,Hn]),(0,He.useEffect)(()=>{let rn=Cr.current.instance;if(rn&&Hn){let bn=Ye(pt);Je.editor.setModelLanguage(rn.getModel(),bn)}},[pt,Hn]),(0,He.useEffect)(()=>{Cr.current.instance&&Hn&&Je.editor.setTheme(Rt)},[Rt,Hn]),(0,He.useEffect)(()=>{let rn=Cr.current.instance;at.current=Kt,rn&&Hn&&(rn.updateOptions(Et({},Kt)),setTimeout(()=>{rn.getModel().updateOptions(Et({},Kt))},200))},[JSON.stringify(Kt),Hn]),(0,He.useEffect)(()=>{let rn=Cr.current.instance;rn&&Hn&&rn.layout()},[Qe,ht,Hn]);const[Zn,Ht]=(0,He.useState)(it(Qe)),[En,Kn]=(0,He.useState)(it(ht)),nr=Zt(Et({},Ot),{width:Zn,height:En,position:"relative"});return He.createElement("div",{className:"my-monaco-editor",ref:fi,style:nr},sn&&He.createElement(ot.CopyToClipboard,{text:At,onCopy:()=>lt.ZP.success("\u590D\u5236\u6210\u529F")},He.createElement(ut.Z,{title:"\u590D\u5236\u4EE3\u7801"},He.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},He.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ge({width:Ke="100%",height:Ve="100%",original:Qe,modified:ht,language:At,options:pt={}}){const Ot=(0,He.useRef)(),[Kt,jt]=(0,He.useState)(null);function Rt(Qt){let en;return Ot.current&&(en=new mt.Z(on=>{for(let Cn of on)(Cn.target.offsetHeight>0||Cn.target.offsetWidth>0)&&Qt.layout()}),en.observe(Ot.current)),en}(0,He.useEffect)(()=>(Ot.current&&Promise.all([We.e(8909),We.e(9404)]).then(We.bind(We,2550)).then(Qt=>{Je=Qt;const en=Je.editor.createDiffEditor(Ot.current,Zt(Et({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},pt),{wordWrap:!0}));jt(en);let on=Rt(en);return()=>{en.dispose();const Cn=en.getModel();Cn&&Cn.dispose(),on.unobserve(Ot.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,He.useEffect)(()=>{Kt&&Kt.setModel({original:Je.editor.createModel(Qe,At),modified:Je.editor.createModel(ht,At)})},[Qe,ht,At,Kt]);const Xt=it(Ke),sn=it(Ve),Ft={width:Xt,height:sn};return He.createElement("div",{className:"my-diff-editor",ref:Ot,style:Ft})}},15965:function(kn,fn,We){"use strict";We.d(fn,{jL:function(){return Ne},w9:function(){return gt},QD:function(){return on},cQ:function(){return ot},op:function(){return Rt},O5:function(){return vr},_b:function(){return Ar},t7:function(){return re},Gi:function(){return bt},YG:function(){return Zt},qp:function(){return De},vr:function(){return tr},qE:function(){return Ft},Je:function(){return pe},wb:function(){return et},cq:function(){return Je},tp:function(){return fe}});var He=We(59301),mt={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+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+s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qVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ne=({dataSource:Hn=[],img:Jn,imgWidth:_t=346,title:Gt,sunTitle:Pt,bannerExtraContent:ln})=>He.createElement("div",{className:mt.banner},He.createElement("div",{className:mt.content},He.createElement("aside",null,He.createElement("p",null,He.createElement("b",null,Gt),He.createElement("span",null,Pt)),Hn.length>0&&He.createElement("div",{className:mt.btns},Hn.map((pn,Vt)=>He.createElement("div",{key:Vt,onClick:pn.click},pn.name,pn.sign?He.createElement("img",{src:oe,width:39}):null))),ln),Jn&&He.createElement("img",{style:{marginTop:33,marginRight:38},src:Jn,width:_t}))),ge={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=We(92310),Pe=We.n(ce),Ae=We(89392),De=({dataSource:Hn=[],value:Jn,onChange:_t,onTitleChange:Gt,className:Pt,title:ln,titleWidth:pn=41,style:Vt={},fontColor:Dt="#6A7283",showCount:cn})=>{const[xn,Nn]=(0,He.useState)(0),[Zn,Ht]=(0,He.useState)(!1),En=(0,He.useRef)(null),Kn=(0,He.useRef)(null);return(0,He.useEffect)(()=>{var nr;Hn.length!==0&&(((nr=En==null?void 0:En.current)==null?void 0:nr.clientHeight)>97?Nn(1):Nn(0)),Hn.length===0&&Nn(0),Ht(!1)},[Hn]),He.createElement("div",{className:Pe()(ge.row,Pt),style:Vt},He.createElement("div",{onClick:(0,Ae.throttle)(()=>Gt==null?void 0:Gt(),2e3),style:{width:pn,marginTop:Zn?12:4},className:`${ge.title} ${Gt?"current":""}`},ln),He.createElement("div",{className:Zn?`${ge.tagsWrap} ${ge.tagsBorderWrap}`:ge.tagsWrap},He.createElement("div",{className:ge.bar,ref:Kn,style:xn>0?{height:xn===1?97:"auto",overflow:xn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},He.createElement("div",{className:ge.tag,ref:En},Hn==null?void 0:Hn.map(nr=>He.createElement("span",{onClick:()=>_t(nr.id),key:nr.id,style:{color:Dt},className:Jn===nr.id?ge.active:""},He.createElement("span",{title:nr.name,className:ge.name},nr.name),!!cn&&He.createElement("span",{className:ge.num},nr.count))))),!!xn&&He.createElement(He.Fragment,null,xn===1?He.createElement("div",{onClick:()=>{var nr;Nn(2),((nr=En==null?void 0:En.current)==null?void 0:nr.clientHeight)>245?Ht(!0):Ht(!1)},className:ge.action},"\u5C55\u5F00",He.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):He.createElement("div",{onClick:()=>{Kn.current.scrollTop=0,Nn(1),Ht(!1)},className:ge.action},"\u6536\u8D77",He.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:Hn=[],value:Jn,onChange:_t,className:Gt,style:Pt={}})=>He.createElement("div",{style:Pt,className:Pe()(me.tabs,Gt)},Hn.map(ln=>He.createElement("span",{onClick:()=>_t(ln.id),className:Jn===ln.id?me.active:"",key:ln.id},ln.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=We(92832),re=({dataSource:Hn=[],value:Jn="",onChange:_t,onInputChange:Gt=()=>{},className:Pt,style:ln={},placeholder:pn,allowClear:Vt=!1})=>{var Dt;const[cn,xn]=(0,He.useState)(""),[Nn,Zn]=(0,He.useState)("");(0,He.useEffect)(()=>{var Kn;let nr=Jn;(Kn=JSON.stringify(Jn))!=null&&Kn.includes("{")&&(xn(Jn.id),nr=Jn.value||"");try{Zn(decodeURIComponent(nr||""))}catch(rn){Zn(decodeURIComponent(nr||""))}},[Jn]);const Ht=()=>{_t(encodeURIComponent(Nn),cn||null)},En=Kn=>{Kn!==cn&&(xn(Kn),_t(encodeURIComponent(Nn),Kn))};return He.createElement("div",{className:Pe()(z.input,Pt),style:ln},!!Hn.length&&He.createElement("div",{className:z.dropdown},He.createElement("div",{className:z.text},(Dt=Hn.find(Kn=>Kn.id===cn))==null?void 0:Dt.name,He.createElement("i",{className:"iconfont icon-zhankai4"}),He.createElement("b",{className:z.b1}),He.createElement("b",{className:z.b2})),He.createElement("div",{className:z.menu},Hn.map((Kn,nr)=>He.createElement("div",{key:nr,onClick:()=>En(Kn.id)},Kn.name)))),He.createElement(ee.default,{onPressEnter:Ht,value:Nn,onChange:Kn=>{Zn(Kn.target.value),Gt(encodeURIComponent(Kn.target.value),cn||null)},bordered:!1,placeholder:pn}),He.createElement("i",{onClick:Ht,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:Hn,onChange:Jn,className:_t,total:Gt,pageSize:Pt,style:ln={}})=>{const pn=Hn<2,Vt=Hn>=Math.ceil(Gt/Pt);return Gt<=Pt?He.createElement(He.Fragment,null):He.createElement("div",{className:Pe()(le.quickPager,_t),style:ln},He.createElement("div",{onClick:()=>{pn||Jn(Hn-1,"prev")},className:pn?le.disabled:""},"\u4E0A\u4E00\u9875"),He.createElement("div",{onClick:()=>{Vt||Jn(Hn+1,"next")},className:Vt?le.disabled:""},"\u4E0B\u4E00\u9875"))},Ee={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"},be=We(71418),Ie=We(6848),Le=We(13570),Fe=We(38446),Oe=We(88230),je=We(96908),ze=We(57177),_e=We(81378),Ue=We(57816),et=({className:Hn,dataSource:Jn=[],col:_t=4,right:Gt,bottom:Pt=23,precision:ln=0,wrapWidth:pn=1200,trackEventItems:Vt,loading:Dt})=>{const cn=Math.floor((pn-(_t-1)*Gt)/_t);return He.createElement(be.Z,{spinning:Dt},He.createElement("div",{className:Pe()(Ee.list,Hn)},!!Jn.length&&Jn.map((xn,Nn)=>{const{name:Zn,id:Ht,identifier:En,power:Kn,cover_image_id:nr,pic:rn}=xn;return He.createElement("div",{className:Ee.wrap,key:Ht,style:{width:cn,marginRight:(1+Nn)%_t===0?0:Gt+ln,marginBottom:Pt}},He.createElement("a",{target:"_blank",href:`/shixuns/${En}/challenges`,className:Ee.li,onClick:bn=>{bn.preventDefault(),Vt&&(0,Oe.L9)([Vt]),Kn&&(0,Oe.xg)(`/shixuns/${En}/challenges`)}},He.createElement("div",{className:Ee.img},He.createElement("img",{className:Ee.cover,src:`${rn}`}),xn.is_jupyter&&He.createElement("img",{className:Ee.sign,src:je}),xn.is_jupyter_lab&&He.createElement("img",{className:Ee.sign,src:ze}),xn.is_unity_3d&&He.createElement("img",{className:Ee.sign,src:_e})),He.createElement("div",{className:Ee.name},He.createElement(Ie.Z,{title:Zn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},He.createElement("span",{className:Ee.e},Zn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),He.createElement("div",{className:Ee.tags},He.createElement(Ie.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},He.createElement("span",null,He.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),He.createElement("span",null,xn.challenges_count))),!!xn.myshixuns_count&&He.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},He.createElement("span",null,He.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),He.createElement("span",null,xn.myshixuns_count))),He.createElement(Ie.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},He.createElement("span",null,He.createElement("span",null,xn.level))),He.createElement("div",{className:Ee.rate},He.createElement(Le.Z,{allowHalf:!0,disabled:!0,defaultValue:xn.score_info}),He.createElement("span",null,"\xA0",xn.score_info?`${xn.score_info}\u5206`:"5\u5206")))),!Kn&&He.createElement("div",{className:Ee.lockWrap},He.createElement("img",{src:`${Fe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),He.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Jn.length&&He.createElement(Ue.Z,null)))},lt={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"},ut=We(73898),yt=We(59301),ot=({className:Hn,dataSource:Jn=[],col:_t=4,right:Gt,bottom:Pt=23,precision:ln=0,wrapWidth:pn=1200,trackEventItems:Vt,loading:Dt,onRemove:cn=()=>{},isCurrent:xn=!0,showAlias:Nn=!1})=>{const Zn=Math.floor((pn-(_t-1)*Gt)/_t),Ht=[{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(be.Z,{spinning:Dt},yt.createElement("div",{className:Pe()(lt.list,Hn)},!!(Jn!=null&&Jn.length)&&(Jn==null?void 0:Jn.map((En,Kn)=>{var nr;const{name:rn,id:bn,identifier:nn,featured:wn,school_name:gn,image_url:yn,excellent:Ln,is_plan:Tn}=En;return yt.createElement("div",{key:bn,className:lt.wrap,style:{width:Zn,marginRight:(1+Kn)%_t===0?0:Gt+ln,marginBottom:Pt}},yt.createElement("a",{className:lt.li,onClick:In=>{In.preventDefault(),In.stopPropagation(),Vt&&(0,Oe.L9)([Vt]),(0,Oe.xg)(`/paths/${nn}`)}},yt.createElement("div",{className:lt.img},yt.createElement("img",{className:lt.cover,src:`${yn}`}),xn&&(0,ut.bg)()&&(En==null?void 0:En.studying)&&yt.createElement("div",{className:`${lt.movebq} user-path-items`,onClick:In=>{In.stopPropagation(),cn(En)}},yt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),yt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(nr=En==null?void 0:En.subject_tags)==null?void 0:nr.map((In,Gn)=>{var mr,mn;if(Gn===0){const Ur=(mr=Ht.find(Br=>Br.name==In))==null?void 0:mr.swimg;return yt.createElement("img",{className:lt.sign,src:Ur,style:{left:"-4px"}})}const Pr=(mn=Ht.find(Ur=>Ur.name==In))==null?void 0:mn.ptimg;return yt.createElement("img",{className:lt.sign,src:Pr,style:{left:`${48+52*(Gn-1)+2*Gn}px`}})}),yt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(En==null?void 0:En.excellent)&&yt.createElement("div",{className:lt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),yt.createElement("div",{className:lt.name},yt.createElement(Ie.Z,{title:Nn&&(En!=null&&En.excellent_alias_name)?yt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${rn}`,yt.createElement("br",null),yt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${En==null?void 0:En.excellent_alias_name}`)):rn},yt.createElement("span",{className:lt.e},Nn&&(En==null?void 0:En.excellent_alias_name)||rn))),yt.createElement(Ie.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${gn}`},yt.createElement("div",{className:lt.unit},yt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),gn)),yt.createElement("div",{className:lt.tags},yt.createElement("div",null,yt.createElement(Ie.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),yt.createElement("span",null,En.stages_count))),yt.createElement(Ie.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,En.members_count)))))))})),!Jn.length&&yt.createElement(Ue.Z,null)))},dt={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"},St="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy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6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",xt=We(59301),gt=({className:Hn,dataSource:Jn=[],col:_t=4,right:Gt,bottom:Pt=23,precision:ln=0,wrapWidth:pn=1200,trackEventItems:Vt,loading:Dt,handleVery:cn=()=>{}})=>{const xn=Math.floor((pn-(_t-1)*Gt)/_t);return xt.createElement(be.Z,{spinning:Dt},xt.createElement("div",{className:Pe()(dt.list,Hn)},!!Jn.length&&Jn.map((Nn,Zn)=>{const{subject_identifier:Ht,id:En,identifier:Kn,power:nr}=Nn,rn=Nn.is_public!=0&&Nn.is_public;return xt.createElement("div",{className:dt.wrap,key:En,style:{width:xn,marginRight:(1+Zn)%_t===0?0:Gt+ln,marginBottom:Pt}},xt.createElement("a",{className:dt.li,onClick:bn=>{bn.preventDefault(),cn(Nn==null?void 0:Nn.first_category_url)}},xt.createElement("div",{className:dt.top},xt.createElement(Ie.Z,{title:Nn.name},xt.createElement("div",{className:dt.name},Nn.name)),xt.createElement("img",{className:dt.img,src:Fe.Z.IMG_SERVER+"/images/"+Nn.avatar_url}),xt.createElement("div",{className:dt.text,title:Nn.creator},Nn.creator),Ht&&xt.createElement("div",{className:dt.btns},xt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),xt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),rn&&xt.createElement("div",{className:dt.sign},"\u516C\u5F00")),xt.createElement("div",{className:dt.bottom},Nn.visits>0&&xt.createElement(Ie.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-liulanyan"}),xt.createElement("span",null,Nn.visits))),Nn.course_members_count>0&&xt.createElement(Ie.Z,{title:"\u6210\u5458",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-chengyuan"}),Nn.course_members_count)),Nn.tasks_count>0&&xt.createElement(Ie.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-zuoye"}),Nn.tasks_count)),Nn.is_end?xt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):xt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Nn.is_accessible&&xt.createElement("div",{className:dt.lockWrap},xt.createElement("img",{src:`${Fe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),xt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Jn.length&&xt.createElement(Ue.Z,null)))},vt={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"},Tt=We(24459),Zt=({dataSource:Hn=[],value:Jn,onChange:_t,className:Gt,style:Pt={},tabBarExtraContent:ln})=>He.createElement("div",{className:Pe()(vt.tabs,Gt),style:Pt},He.createElement("div",{className:vt.tabsWrap},Hn.map((pn,Vt)=>!(pn!=null&&pn.hide)&&He.createElement("aside",{className:vt.tab,onClick:()=>{_t(pn.id),pn.link&&Tt.history.push(pn.link)},key:Vt},He.createElement("div",{className:Jn===pn.id?vt.active:""},pn.name),(pn==null?void 0:pn.resetCount)==null&&(pn==null?void 0:pn.total)!==void 0&&He.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&&He.createElement(Ie.Z,{title:(pn==null?void 0:pn.tip)!=null?pn==null?void 0:pn.tip:""},He.createElement("span",{style:{color:"#9096A3"}},"\uFF08",He.createElement("span",{style:{color:"#000"}},pn==null?void 0:pn.resetCount),"/",He.createElement("span",null,pn==null?void 0:pn.total),"\uFF09"))))),He.createElement("div",{className:vt.tabBar},ln)),bt=({className:Hn,style:Jn={},children:_t})=>He.createElement("div",{className:Pe()(Hn),style:Jn},_t),it={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"},nt=We(38854),xe=We(20834);const Ce=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Je=({sortValue:Hn,dropValue:Jn,className:_t,onSort:Gt,onDrop:Pt,dataSource:ln=Ce})=>{var pn;return He.createElement("div",{className:Pe()(it.orderWrap,_t)},He.createElement(nt.Z,{dropdownRender:()=>He.createElement(xe.default,null,ln.map((Vt,Dt)=>He.createElement(xe.default.Item,{key:Dt,onClick:()=>Pt(Vt.id)},Vt.name)))},He.createElement("span",{className:it.orderTextWrap},(pn=ln.find(Vt=>Jn===Vt.id))==null?void 0:pn.name)),He.createElement("span",{className:it.orderIconWrap},He.createElement("span",{className:it.orderAsc},He.createElement("i",{className:Hn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${it.cursorPointer} ${it.active}`:`iconfont icon-sanjiaoxing-up font12 ${it.cursorPointer}`,onClick:()=>Gt(Hn==="asc"?"desc":"asc")})),He.createElement("span",{className:it.orderDesc},He.createElement("i",{className:Hn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${it.cursorPointer} ${it.active}`:`iconfont icon-sanjiaoxing-down font12 ${it.cursorPointer}`,onClick:()=>Gt(Hn==="asc"?"desc":"asc")}))))},Me={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"},Ge=We(3113),Ke=Object.defineProperty,Ve=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,At=(Hn,Jn,_t)=>Jn in Hn?Ke(Hn,Jn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Hn[Jn]=_t,pt=(Hn,Jn)=>{for(var _t in Jn||(Jn={}))Qe.call(Jn,_t)&&At(Hn,_t,Jn[_t]);if(Ve)for(var _t of Ve(Jn))ht.call(Jn,_t)&&At(Hn,_t,Jn[_t]);return Hn},Ot=(Hn,Jn)=>{var _t={};for(var Gt in Hn)Qe.call(Hn,Gt)&&Jn.indexOf(Gt)<0&&(_t[Gt]=Hn[Gt]);if(Hn!=null&&Ve)for(var Gt of Ve(Hn))Jn.indexOf(Gt)<0&&ht.call(Hn,Gt)&&(_t[Gt]=Hn[Gt]);return _t},Kt=(Hn,Jn,_t)=>new Promise((Gt,Pt)=>{var ln=Dt=>{try{Vt(_t.next(Dt))}catch(cn){Pt(cn)}},pn=Dt=>{try{Vt(_t.throw(Dt))}catch(cn){Pt(cn)}},Vt=Dt=>Dt.done?Gt(Dt.value):Promise.resolve(Dt.value).then(ln,pn);Vt((_t=_t.apply(Hn,Jn)).next())}),Rt=Hn=>{var Jn=Hn,{className:_t,style:Gt,children:Pt,loading:ln=!1,openLoading:pn,onClick:Vt=()=>{},size:Dt="middle",shape:cn="round"}=Jn,xn=Ot(Jn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Nn,Zn]=(0,He.useState)(!1);return He.createElement(Ge.ZP,pt({onClick:(0,Ae.throttle)(Ht=>Kt(void 0,null,function*(){pn&&Zn(!0);try{yield Vt(Ht)}catch(En){console.log("error",En)}pn&&Zn(!1)}),2e3,{leading:!0,trailing:!1}),className:Pe()(Me.btn,Me[`${Dt}-${cn}`],_t),style:Gt,size:Dt,shape:cn,loading:Nn||ln},xn),Pt)},Xt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Ft=({className:Hn,style:Jn,children:_t=null,onClick:Gt,title:Pt})=>He.createElement("div",{className:Pe()(Xt.head,Hn),style:Jn},He.createElement("span",{className:"primary-hover",onClick:Gt},He.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),He.createElement("b",{title:Pt},Pt),He.createElement("div",{className:Xt.node},_t)),Qt={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:Hn=!0,confirmTitle:Jn,confirmClick:_t,cancelShow:Gt=!0,cancelTitle:Pt,cancelClick:ln,className:pn,style:Vt,confirmLoading:Dt=!1})=>He.createElement("div",{className:Pe()(Qt.btns,pn),style:Vt},Hn&&He.createElement(Ge.ZP,{loading:Dt,onClick:_t,type:"primary",className:Qt.confirm},Jn),Gt&&He.createElement(Ge.ZP,{onClick:ln,className:Qt.cancel},Pt)),Cn={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"},tr=({className:Hn,style:Jn={},LeftContent:_t,children:Gt,RightContent:Pt})=>He.createElement("div",{className:Pe()(Cn.fixedBottom,Hn),style:Jn},He.createElement("div",{className:Cn.wrap},He.createElement("div",{className:Cn.left},_t),He.createElement("div",{className:Cn.center},Gt),He.createElement("div",{className:Cn.right},Pt))),er={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"},Ar=({className:Hn,style:Jn={},dataSource:_t=[]})=>He.createElement("div",{className:Pe()(er.crumbs,Hn),style:Jn},_t.map((Gt,Pt)=>Pt<_t.length-1?He.createElement(He.Fragment,{key:Pt},Gt.path||Gt.onClick?He.createElement("span",{className:er.hover,onClick:Gt!=null&&Gt.onClick?Gt.onClick:()=>Tt.history.push(Gt.path)},Gt.name):He.createElement("span",null,Gt.name),He.createElement("span",null,"\xA0",">","\xA0")):He.createElement("span",{key:Pt,style:{color:"#5F6368"}},Gt.name))),Dr=We(31797),Or=Object.defineProperty,$r=Object.defineProperties,ai=Object.getOwnPropertyDescriptors,br=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,at=(Hn,Jn,_t)=>Jn in Hn?Or(Hn,Jn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Hn[Jn]=_t,wi=(Hn,Jn)=>{for(var _t in Jn||(Jn={}))fi.call(Jn,_t)&&at(Hn,_t,Jn[_t]);if(br)for(var _t of br(Jn))Cr.call(Jn,_t)&&at(Hn,_t,Jn[_t]);return Hn},ui=(Hn,Jn)=>$r(Hn,ai(Jn)),Dn=(Hn,Jn)=>{var _t={};for(var Gt in Hn)fi.call(Hn,Gt)&&Jn.indexOf(Gt)<0&&(_t[Gt]=Hn[Gt]);if(Hn!=null&&br)for(var Gt of br(Hn))Jn.indexOf(Gt)<0&&Cr.call(Hn,Gt)&&(_t[Gt]=Hn[Gt]);return _t};const{Countdown:ur}=Dr.default;var vr=Hn=>{var Jn=Hn,{onChange:_t}=Jn,Gt=Dn(Jn,["onChange"]);const[Pt,ln]=(0,He.useState)(null);(0,He.useEffect)(()=>{typeof Pt=="number"&&Pt>=0&&_t(Pt)},[Pt]);const pn=Vt=>{const Dt=Math.floor(Vt/1e3);ln(Dt)};return He.createElement(ur,ui(wi({},Gt),{onChange:pn}))}},50505:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return mt}});var He=We(59301);function mt(oe,Ze){const Ne=(0,He.useRef)();(0,He.useEffect)(()=>{Ne.current=oe}),(0,He.useEffect)(()=>{function ge(){Ne.current()}if(Ze!==null){let ce=setInterval(ge,Ze);return()=>clearInterval(ce)}},[Ze])}},39816:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Ot}});var He=We(59301),mt=We(24459),oe=We(71119),Ze=We(6848),Ne=We(1710),ge=We(95237),ce=We(43604),Pe=We(20813),Ae=We(38446),ye=We(75872),De=(Kt,jt,Rt)=>new Promise((Xt,sn)=>{var Ft=on=>{try{en(Rt.next(on))}catch(Cn){sn(Cn)}},Qt=on=>{try{en(Rt.throw(on))}catch(Cn){sn(Cn)}},en=on=>on.done?Xt(on.value):Promise.resolve(on.value).then(Ft,Qt);en((Rt=Rt.apply(Kt,jt)).next())});function me({Prize:Kt}){var jt,Rt,Xt,sn,Ft,Qt,en;const on=(0,mt.useParams)(),[Cn,Bn]=(0,He.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"}]),tr=cr=>De(this,null,function*(){const Ar=yield(0,Pe.Ju)({type:cr.type,id:on.identifier});(Ar==null?void 0:Ar.status)===0&&(location.href=`/competitions/exports?id=${on.identifier}&type=${cr.type}`)}),er=[{title:"\u89D2\u8272",dataIndex:"role",align:"center",width:80,render:cr=>He.createElement(Ze.Z,{placement:"topLeft",title:cr},cr||"--")},{title:"\u59D3\u540D",dataIndex:"name",width:100,render:cr=>He.createElement(Ze.Z,{placement:"topLeft",title:cr},cr||"--")},{title:"\u5B9E\u540D\u8BA4\u8BC1",width:100,dataIndex:"real_name_auth",render:cr=>cr==="authed"?"\u5DF2\u8BA4\u8BC1":cr==="authing"?"\u5F85\u5BA1\u6838":"\u672A\u8BA4\u8BC1"},{title:"\u804C\u4E1A\u8BA4\u8BC1",width:100,dataIndex:"professional_auth",render:cr=>cr==="authed"?"\u5DF2\u8BA4\u8BC1":cr==="authing"?"\u5F85\u5BA1\u6838":"\u672A\u8BA4\u8BC1"},{title:"\u624B\u673A\u53F7",dataIndex:"phone_binded",width:100,render:cr=>cr?"\u5DF2\u7ED1\u5B9A":"\u672A\u7ED1\u5B9A"},{title:"\u90AE\u7BB1\u53F7",dataIndex:"email_binded",width:100,render:cr=>cr?"\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:(cr,Ar)=>{var Dr,Or,$r,ai,br,fi;return(Ar==null?void 0:Ar.role)==="\u961F\u957F"?He.createElement("span",{style:{width:"50%",textAlign:"center"}},(Kt==null?void 0:Kt.teams)&&((Or=(Dr=Kt==null?void 0:Kt.teams[0])==null?void 0:Dr.bank_account)==null?void 0:Or.bank),(Kt==null?void 0:Kt.teams)&&((ai=($r=Kt==null?void 0:Kt.teams[0])==null?void 0:$r.bank_account)==null?void 0:ai.second_bank),(Kt==null?void 0:Kt.teams)&&((fi=(br=Kt==null?void 0:Kt.teams[0])==null?void 0:br.bank_account)==null?void 0:fi.card_no)):"--"}}];return He.createElement("div",null,He.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"),He.createElement("p",{style:{marginTop:"30px",fontSize:"14px",color:"#232B40",fontWeight:"600"}},"\u8BC1\u4E66\u60C5\u51B5"),((jt=Kt==null?void 0:Kt.personal_certifications)==null?void 0:jt.length)>0?He.createElement("p",null,He.createElement("span",null,"\u4E2A\u4EBA\u8BC1\u4E66\uFF1A"),He.createElement("img",{src:Ae.Z.IMG_SERVER+"/images/educoder/pdfs.png"}),He.createElement("a",{style:{marginLeft:"5px"},href:Ae.Z.API_SERVER+`${(Rt=Kt==null?void 0:Kt.personal_certifications[0])==null?void 0:Rt.url}`},"\u7ACB\u5373\u4E0B\u8F7D")):He.createElement("p",null,He.createElement("span",null,"\u4E2A\u4EBA\u8BC1\u4E66\uFF1A",He.createElement("span",{style:{color:"#000"}},"\u6682\u672A\u751F\u6210")),He.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")),((Xt=Kt==null?void 0:Kt.team_certifications)==null?void 0:Xt.length)>0?He.createElement("p",null,He.createElement("span",null,"\u56E2\u961F\u8BC1\u4E66\uFF1A"),He.createElement("img",{src:Ae.Z.IMG_SERVER+"/images/educoder/pdfs.png"}),He.createElement("a",{style:{marginLeft:"5px"},href:Ae.Z.API_SERVER+`${(sn=Kt==null?void 0:Kt.team_certifications[0])==null?void 0:sn.url}`},"\u7ACB\u5373\u4E0B\u8F7D")):He.createElement("p",null,He.createElement("span",null,"\u56E2\u961F\u8BC1\u4E66\uFF1A",He.createElement("span",{style:{color:"#000"}},"\u6682\u672A\u751F\u6210"))),((Ft=Kt==null?void 0:Kt.teams)==null?void 0:Ft.length)>0&&He.createElement(He.Fragment,null,He.createElement("p",null,(Kt==null?void 0:Kt.teams)&&((Qt=Kt==null?void 0:Kt.teams[0])==null?void 0:Qt.name),"\u6218\u961F\u4FE1\u606F\u586B\u62A5\u6982\u51B5"),He.createElement(Ne.default,{columns:er,dataSource:(en=Kt==null?void 0:Kt.teams[0])==null?void 0:en.team_members,pagination:!1})),He.createElement(ge.Z,{style:{marginTop:"20px"},gutter:[20,20]},Cn.map(function(cr,Ar){return He.createElement(ce.Z,{key:Ar},He.createElement(ye.Z,{icon:He.createElement("i",{className:"iconfont icon-xiazai5",style:{marginRight:"6px"}}),className:oe.Z.pdfBut,onClick:()=>De(this,null,function*(){return yield tr(cr)})},cr.name))})))}var we=me,fe=We(54580),z=We(78241),ee=We(8591),ae=We(43418),re=We(71418),le=We(92832),ue=We(5112),pe=We(3113),Ee=We(88230),be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAABgCAYAAADo6BsvAAAgAElEQVR4Xmy9CZheaVUu+u75n+uvKTVlqHSSTtLpeQS6G20QFRA8DTgdBccDCCUi0csgiCB4xIug0DTgeS4O96r4eBAUkJluhp479JCeMnRSGSuVmv/6pz3f513r25XS54QndJKq2v/e317fWu9617vWZwFwtmzbNv1zr37NG9428/Zf2b1nesKygDRDHqU58jyH59rIcyCOM8CyEPgWbJvfk8O25J9gyf+ALMmRA7Ad/bcMQJjliHLAzgHfsuA4AL8rzQBeMuM3gdey4NqAZ/Nv8k/yuVmunyH/xH/j91vQz+bXzPc4NmAjh2Wb782AlPdim/uT++TP53KfSZLCcSw4rtysXl/uOYft8O5zpGkOO7dg8cNSfhhXzEKWpHJ/tuvAcvRnszyXZ0myDGmSyrfalg3LsuRrvCKv69gWMvlx/RzbNmvHm7V4/7w+5LO5DrKeFuDynmwgSYCMi8f7SzIkVgY/8OSze70Ulm3D8ywkcYY4TuF4LjzfgTympZ/JW5Y1NuvOP/PxeNO87zDOEPFnbQeua8G3ed96H/KsfG/8gwW5Ft8dX478e57ze+VKP/j+/cvvevfBzz/00EOfA3DMuvPOV+6/7rpbXvtzP/fzv7B79+79aWQ5UQQkeY4o6cui+H4A17aRRLG8fNd1YDs24jyRl8Z7cG1XLIELTSN1HH6PgxQZ+nGMNM8RWK58Hx86zVPEXDm+BNuRl8J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WdoxvmZVMpZn3CgaJ2anwUaq9COJ9OT5s2Tmq+yrBKpKwMkuKMnksSTOmJRWqoHhXjlUcDWn+2ttNtcp8n6R8UAVQK87CxHJ7RVZwaVXaPjFJDpz2vhmGiy2lQGMc9YG5tYTSZpfGZ+qTcxqGzs4vfTNuw2fKkU1xlwzJr8WdbA3A037IGRhaaDpDPQVMJwrENIFztYLdGdLAeDjZ9TlMe6HccsZVgfhoOEeyPu9OzKJLtUeJoEBEzlmJiBK8tzNiCakwLVIh9i4vlCiEfIdyECmAI9fA4IKG2gXmY3zc9tFSn3qeMnJxuPPPJv7//LP//jd6YmJn76P8ED9U58gLSYAAAAAElFTkSuQmCC",Ie=We(8361),Le=Object.defineProperty,Fe=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Ue=(Kt,jt,Rt)=>jt in Kt?Le(Kt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Kt[jt]=Rt,$e=(Kt,jt)=>{for(var Rt in jt||(jt={}))ze.call(jt,Rt)&&Ue(Kt,Rt,jt[Rt]);if(je)for(var Rt of je(jt))_e.call(jt,Rt)&&Ue(Kt,Rt,jt[Rt]);return Kt},et=(Kt,jt)=>Fe(Kt,Oe(jt)),lt=(Kt,jt)=>{var Rt={};for(var Xt in Kt)ze.call(Kt,Xt)&&jt.indexOf(Xt)<0&&(Rt[Xt]=Kt[Xt]);if(Kt!=null&&je)for(var Xt of je(Kt))jt.indexOf(Xt)<0&&_e.call(Kt,Xt)&&(Rt[Xt]=Kt[Xt]);return Rt},ut=(Kt,jt,Rt)=>new Promise((Xt,sn)=>{var Ft=on=>{try{en(Rt.next(on))}catch(Cn){sn(Cn)}},Qt=on=>{try{en(Rt.throw(on))}catch(Cn){sn(Cn)}},en=on=>on.done?Xt(on.value):Promise.resolve(on.value).then(Ft,Qt);en((Rt=Rt.apply(Kt,jt)).next())});const yt=fe.default.Dragger,qe=10,ot=Kt=>{var jt=Kt,{user:Rt,account:Xt,globalSetting:sn,loading:Ft,dispatch:Qt}=jt,en=lt(jt,["user","account","globalSetting","loading","dispatch"]);const[on]=z.default.useForm(),[Cn,Bn]=(0,He.useState)({}),[tr,er]=(0,He.useState)(!0),[cr,Ar]=(0,He.useState)(),[Dr,Or]=(0,He.useState)(),[$r,ai]=(0,He.useState)(),[br,fi]=(0,He.useState)();(0,He.useEffect)(()=>{if(!Xt.basicInfo)return;const{basicInfo:or}=Xt,vr={name:or.show_realname?or.name:(0,Ee.YA)(or.name),gender:or.gender};Ar(or.name),er(or.show_realname),on.setFieldsValue(vr),Bn(vr)},[Xt.basicInfo]);const Cr=or=>{var vr;if(or.file.status==="uploading"){fi(!0);return}or.file.status==="done"&&(console.log(or.file,or.file.response),ai((vr=or.file.response)==null?void 0:vr.id),(0,Ee.y3)(or.file.originFileObj,Hn=>{Or(Hn),fi(!1)}))},at=or=>{Bn($e({},on.getFieldsValue())),"name"in or&&Ar(or.name)},wi=()=>{const or=!tr;er(or);const vr=or?cr:(0,Ee.YA)(cr);on.setFieldsValue({name:vr})},ui=or=>ut(void 0,null,function*(){var vr,Hn,Jn;const{name:_t,gender:Gt,idNumber:Pt}=or||{};if(!Dr){ee.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01");return}const ln=yield Qt({type:"account/applyRealNameAuth",payload:{id:((vr=Xt.basicInfo)==null?void 0:vr.id)||((Hn=Rt.userInfo)==null?void 0:Hn.login),name:_t,gender:Gt,id_number:Pt,show_realname:tr,attachment_ids:[$r]}});Dn(),ln&&(ee.ZP.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Qt({type:"account/getBasicInfo",payload:{login:(Jn=Rt.userInfo)==null?void 0:Jn.login}}))}),Dn=()=>{Qt({type:"account/setActionTabs",payload:{}})},ur={data:{type:"real_name"},multiple:!0,showUploadList:!1,action:`${Ae.Z.API_SERVER}/api/attachments.json`,className:Ie.Z.uploader,onChange:Cr,beforeUpload:or=>{const vr=or.type==="image/jpeg"||or.type==="image/png"||or.type==="image/jpg"||or.type==="image/bmp";return vr||ee.ZP.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),vr}};return He.createElement(ae.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Xt.actionTabs.key==="Account-RealNameAuth",title:"\u4FEE\u6539\u5B9E\u540D\u4FE1\u606F",width:"600px",footer:null},He.createElement(re.Z,{spinning:!!br},He.createElement(z.default,{className:Ie.Z.formWrap,form:on,layout:"horizontal",onValuesChange:at,onFinish:ui},He.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${qe}\u4E2A\u5B57\u7B26`},{validator:Ee.HJ}],extra:He.createElement("span",null,tr?"\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")},He.createElement(le.default,{disabled:!tr,placeholder:`\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236${qe}\u4E2A\u5B57\u7B26`,maxLength:qe,addonAfter:He.createElement("i",{className:`iconfont ${tr?"icon-xianshi":"icon-yincang"} font18 ${Ie.Z.color0152d9}`,onClick:wi})})),He.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"}]},He.createElement(ue.ZP.Group,null,He.createElement(ue.ZP,{value:0},"\u7537"),He.createElement(ue.ZP,{value:1},"\u5973"))),He.createElement(z.default.Item,{label:"\u8BC1\u4EF6\u53F7\uFF1A",labelCol:{span:3},name:"idNumber",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"}]},He.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"})),He.createElement(z.default.Item,{label:"\u8EAB\u4EFD\u8BC1\u4E0A\u4F20",labelCol:{span:3}},He.createElement("div",{className:Ie.Z.flexRow},He.createElement("div",{className:`${Ie.Z.flexColumn} ${Ie.Z.example}`},He.createElement("span",{className:Ie.Z.exampleImg},He.createElement("img",{src:be})),He.createElement("span",{className:"tc"},He.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),He.createElement("p",{className:`${Ie.Z.colorOrange} font12`},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),He.createElement("div",{className:Ie.Z.flexColumn},He.createElement(yt,et($e({},ur),{accept:".png,.jpg,.bmp,.jpeg"}),Dr?He.createElement("img",{src:Dr,className:Ie.Z.uploadImg}):He.createElement("div",{className:Ie.Z.imageTip},He.createElement("p",null,He.createElement("i",{className:`iconfont icon-cuban2shangchuanyunduan ${Ie.Z.uploadTipIcon}`})),He.createElement("p",{className:Ie.Z.uploadTip},He.createElement("a",{className:Ie.Z.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),He.createElement("span",{className:"tc"},He.createElement("p",{className:Ie.Z.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),He.createElement("div",{className:Ie.Z.footerWrap},He.createElement(z.default.Item,null,He.createElement(pe.ZP,{className:"mr5",size:"middle",onClick:Dn},"\u53D6\u6D88"),He.createElement(pe.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Ft["account/applyRealNameAuth"]},"\u4FDD\u5B58"))),He.createElement("div",{className:Ie.Z.note},He.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),He.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"),He.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"),He.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"),He.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"),He.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"),He.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"),He.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 dt=(0,mt.connect)(({user:Kt,account:jt,loading:Rt,globalSetting:Xt})=>({user:Kt,account:jt,globalSetting:Xt,loading:Rt.effects}))(ot),St=We(81696),xt=We(93735),ft=We.n(xt),gt=(Kt,jt,Rt)=>new Promise((Xt,sn)=>{var Ft=on=>{try{en(Rt.next(on))}catch(Cn){sn(Cn)}},Qt=on=>{try{en(Rt.throw(on))}catch(Cn){sn(Cn)}},en=on=>on.done?Xt(on.value):Promise.resolve(on.value).then(Ft,Qt);en((Rt=Rt.apply(Kt,jt)).next())});function vt({type:Kt,dispatch:jt,userid:Rt,isshow:Xt,setPhoneshow:sn,setEmailshow:Ft}){const Qt="79e33abd4b6588941ab7622aed1e67e8",[en,on]=(0,He.useState)(""),[Cn,Bn]=(0,He.useState)("\u83B7\u53D6\u9A8C\u8BC1\u7801");let[tr,er]=(0,He.useState)(60);const[cr,Ar]=(0,He.useState)(!1),[Dr,Or]=(0,He.useState)("");function $r(){return gt(this,null,function*(){if(!en){Kt===3?ee.ZP.info("\u624B\u673A\u53F7\u4E0D\u80FD\u4E3A\u7A7A"):ee.ZP.info("\u90AE\u7BB1\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A");return}(yield jt({type:"competitions/getVerification",payload:{type:Kt,login:en,smscode:ft()(Qt+en)}})).status===1&&(ee.ZP.info("\u83B7\u53D6\u9A8C\u8BC1\u7801\u6210\u529F"),ai(),Ar(!0))})}function ai(){er(60);let Cr=setInterval(()=>{--tr,tr>-1?er(tr):(clearInterval(Cr),Ar(!1))},1e3)}function br(){return gt(this,null,function*(){(yield jt({type:"competitions/PhoneBind",payload:{userid:Rt,code:Dr,phone:en}})).status===0&&(ee.ZP.info("\u7ED1\u5B9A\u6210\u529F"),sn("none"))})}function fi(){return gt(this,null,function*(){(yield jt({type:"competitions/EmailBind",payload:{userid:Rt,code:Dr,email:en}})).status===0&&(ee.ZP.info("\u7ED1\u5B9A\u6210\u529F"),Ft("none"))})}return He.createElement("div",{style:{display:Xt}},He.createElement("p",null,He.createElement(le.default,{value:en,onChange:Cr=>on(Cr.target.value),placeholder:Kt===3?"\u8BF7\u8F93\u5165\u624B\u673A\u53F7":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740",style:{width:"370px"}})),He.createElement("span",null,He.createElement(le.default,{value:Dr,onChange:Cr=>Or(Cr.target.value),placeholder:Kt===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"}}))," ",He.createElement(pe.ZP,{disabled:cr,onClick:()=>$r(),type:"primary",style:{marginLeft:"20px",width:"100px"}},cr?`\u91CD\u65B0\u53D1\u9001${tr}s`:Cn),He.createElement("p",{style:{marginTop:"30px",width:"370px",textAlign:"center"}},He.createElement(pe.ZP,{type:"primary",style:{marginRight:"15px"},onClick:()=>{if(!Dr){ee.ZP.info("\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}Kt===3?br():fi()}},"\u786E\u8BA4"),He.createElement(pe.ZP,{style:{marginLeft:"20px"},onClick:()=>{Kt===3?sn("none"):Ft("none")}},"\u53D6\u6D88")))}var Tt=vt,Et=Object.defineProperty,Zt=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,xe=(Kt,jt,Rt)=>jt in Kt?Et(Kt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Kt[jt]=Rt,Ce=(Kt,jt)=>{for(var Rt in jt||(jt={}))it.call(jt,Rt)&&xe(Kt,Rt,jt[Rt]);if(bt)for(var Rt of bt(jt))nt.call(jt,Rt)&&xe(Kt,Rt,jt[Rt]);return Kt},Ye=(Kt,jt)=>Zt(Kt,wt(jt)),Je=(Kt,jt,Rt)=>new Promise((Xt,sn)=>{var Ft=on=>{try{en(Rt.next(on))}catch(Cn){sn(Cn)}},Qt=on=>{try{en(Rt.throw(on))}catch(Cn){sn(Cn)}},en=on=>on.done?Xt(on.value):Promise.resolve(on.value).then(Ft,Qt);en((Rt=Rt.apply(Kt,jt)).next())});function Me({dispatch:Kt,userid:jt}){const Rt={wrapperCol:{offset:3,span:21}},[Xt]=z.default.useForm(),{identifier:sn}=(0,mt.useParams)();return He.createElement("div",{style:{width:"500px"}},He.createElement(z.default,{form:Xt,name:"basic"},He.createElement(z.default.Item,Ye(Ce({},Rt),{label:He.createElement("div",{style:{width:"30px"}},"\u5F00\u6237\u884C"),name:"bank",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F00\u6237\u884C"}]}),He.createElement(le.default,null)),He.createElement(z.default.Item,Ye(Ce({},Rt),{label:He.createElement("div",{style:{width:"30px"}},"\u652F\u884C"),name:"second_bank",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u652F\u884C"}]}),He.createElement(le.default,null)),He.createElement(z.default.Item,Ye(Ce({},Rt),{label:He.createElement("div",{style:{width:"30px"}},"\u8D26\u53F7"),name:"card_no",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D26\u53F7"}]}),He.createElement(le.default,null)),He.createElement(z.default.Item,null,He.createElement(pe.ZP,{type:"primary",htmlType:"submit",onClick:()=>Je(this,null,function*(){Xt.validateFields().then(Ft=>Je(this,null,function*(){(yield Kt({type:"competitions/setleader",payload:Ce({identifier:sn,user_id:jt},Ft)})).status===0&&ee.ZP.info("\u63D0\u4EA4\u6210\u529F")}))})},"\u63D0\u4EA4"))))}var Ge=Me,Ke=(Kt,jt,Rt)=>new Promise((Xt,sn)=>{var Ft=on=>{try{en(Rt.next(on))}catch(Cn){sn(Cn)}},Qt=on=>{try{en(Rt.throw(on))}catch(Cn){sn(Cn)}},en=on=>on.done?Xt(on.value):Promise.resolve(on.value).then(Ft,Qt);en((Rt=Rt.apply(Kt,jt)).next())});const Ve={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"};function Qe({Prize:Kt,Accounts:jt,dispatch:Rt,userid:Xt}){var sn,Ft,Qt,en,on,Cn,Bn,tr;const[er,cr]=(0,He.useState)("none"),[Ar,Dr]=(0,He.useState)("none");function Or($r){return Ke(this,null,function*(){let ai;$r==="1"?ai=yield Rt({type:"competitions/Authentication"}):ai=yield Rt({type:"competitions/Professional"}),ai.status===0&&ee.ZP.info("\u64A4\u9500\u6210\u529F")})}return He.createElement("div",null,He.createElement(ge.Z,{align:"middle"},He.createElement(ce.Z,null,He.createElement("span",{className:"c-red"},"*"),"\u5B9E\u540D\u4FE1\u606F"),(jt==null?void 0:jt.authentication)==="uncertified"&&He.createElement(ce.Z,{flex:1,className:"ml20"},He.createElement(ge.Z,{align:"middle",justify:"space-between"},He.createElement(ce.Z,{style:{marginLeft:"20px"}},"\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"),He.createElement(pe.ZP,{className:oe.Z.PerfectBut,onClick:()=>{Rt({type:"account/setActionTabs",payload:{key:"Account-RealNameAuth"}})}},"\u7ACB\u5373\u8BA4\u8BC1")))),He.createElement("div",{className:oe.Z.PerfectCent},He.createElement(ge.Z,null,He.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u59D3\u540D"),He.createElement(ce.Z,{className:"ml20"},jt==null?void 0:jt.name,(jt==null?void 0:jt.authentication)==="uncertified"?null:(jt==null?void 0:jt.authentication)==="applying"?He.createElement("span",null,He.createElement("span",null,"\u5F85\u5BA1\u6838"),He.createElement(pe.ZP,{type:"primary",onClick:()=>Or("1"),ghost:!0,style:{marginLeft:"20px"}},"\u64A4\u9500\u8BA4\u8BC1")):He.createElement("span",{style:{color:"#6ec76e"}},He.createElement("i",{className:"iconfont icon-wancheng font-14"})," \u5DF2\u8BA4\u8BC1"))),He.createElement(ge.Z,{className:"mt20"},He.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u6027\u522B"),He.createElement(ce.Z,{className:"ml20"},(jt==null?void 0:jt.gender)===0?"\u7537":"\u5973"))),He.createElement(ge.Z,{align:"middle"},He.createElement(ce.Z,null,He.createElement("span",{className:"c-red"},"*"),"\u804C\u4E1A\u4FE1\u606F"),(jt==null?void 0:jt.authentication)==="uncertified"&&He.createElement(ce.Z,{flex:1,className:"ml20"},He.createElement(ge.Z,{align:"middle",justify:"space-between"},He.createElement(ce.Z,{style:{marginLeft:"20px"}},"\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"),He.createElement(pe.ZP,{className:oe.Z.PerfectBut,onClick:()=>{Rt({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})}},"\u7ACB\u5373\u8BA4\u8BC1")))),He.createElement("div",{className:oe.Z.PerfectCent},He.createElement(ge.Z,null,He.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u804C\u4E1A"),He.createElement(ce.Z,{className:"ml20"},jt&&jt.identity&&Ve[jt.identity],(jt==null?void 0:jt.authentication)==="uncertified"?null:(jt==null?void 0:jt.authentication)==="applying"?He.createElement("span",null,He.createElement("span",null,"\u5F85\u5BA1\u6838"),He.createElement(pe.ZP,{type:"primary",onClick:()=>Or("2"),ghost:!0,style:{marginLeft:"20px"}},"\u64A4\u9500\u8BA4\u8BC1")):He.createElement("span",{style:{color:"#6ec76e"}},He.createElement("i",{className:"iconfont icon-wancheng font-14"})," \u5DF2\u8BA4\u8BC1",He.createElement(pe.ZP,{type:"primary",onClick:()=>{Rt({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})},ghost:!0,style:{marginLeft:"20px"}},"\u91CD\u65B0\u8BA4\u8BC1")))),He.createElement(ge.Z,{className:"mt20"},He.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u5B66\u53F7"),He.createElement(ce.Z,{className:"ml20"},(jt==null?void 0:jt.student_id)||"--")),He.createElement(ge.Z,{className:"mt20"},He.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u5B66\u6821"),He.createElement(ce.Z,{className:"ml20"},(jt==null?void 0:jt.school_name)||"--")),He.createElement(ge.Z,{className:"mt20"},He.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u9662\u7CFB"),He.createElement(ce.Z,{className:"ml20"},(jt==null?void 0:jt.department_name)||"--"))),He.createElement("p",null,He.createElement("span",{className:"c-red"},"*"),"\u8054\u7CFB\u65B9\u5F0F"),He.createElement("div",{className:oe.Z.PerfectCent},He.createElement(ge.Z,null,He.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u624B\u673A\u53F7"),He.createElement(ce.Z,{className:"ml20"},He.createElement(ge.Z,null,He.createElement(ce.Z,{style:{width:"150px"}},(jt==null?void 0:jt.phone)||"--"),er==="none"&&He.createElement(pe.ZP,{type:"link",className:"ml20",style:{color:"#165DFF"},onClick:()=>{cr("block")}},"\u66F4\u6362")))),He.createElement("div",{className:"mt10",style:{marginLeft:"74px"}},He.createElement(Tt,{type:3,dispatch:Rt,userid:jt==null?void 0:jt.id,isshow:er,setPhoneshow:cr,setEmailshow:Dr})),He.createElement(ge.Z,{className:"mt20"},He.createElement(ce.Z,{className:oe.Z.PerfectCentName},"Email"),He.createElement(ce.Z,{className:"ml20"},He.createElement(ge.Z,null,He.createElement(ce.Z,{style:{width:"150px"}},(jt==null?void 0:jt.mail)||"--"),Ar==="none"&&He.createElement(pe.ZP,{type:"link",className:"ml20",style:{color:"#165DFF"},onClick:()=>{Dr("block")}},"\u66F4\u6362")))),He.createElement("div",{className:"mt10",style:{marginLeft:"74px"}},He.createElement(Tt,{type:4,dispatch:Rt,userid:jt==null?void 0:jt.id,isshow:Ar,setEmailshow:Dr,setPhoneshow:cr}))),Kt!=null&&Kt.leader&&(Kt!=null&&Kt.teams)&&((Ft=(sn=Kt==null?void 0:Kt.teams[0])==null?void 0:sn.bank_account)!=null&&Ft.bank)?He.createElement(ge.Z,{align:"middle"},He.createElement(ce.Z,null,"\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"),He.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")):He.createElement("div",null,He.createElement(ge.Z,{align:"middle"},He.createElement(ce.Z,null,"\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"),He.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")),He.createElement(Ge,{dispatch:Rt,userid:Xt})),(Kt==null?void 0:Kt.leader)&&He.createElement("div",{className:oe.Z.PerfectCent,style:{border:0}},He.createElement(ge.Z,null,He.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u5F00\u6237\u884C"),He.createElement(ce.Z,{className:"ml20"},(Kt==null?void 0:Kt.teams)&&((en=(Qt=Kt==null?void 0:Kt.teams[0])==null?void 0:Qt.bank_account)==null?void 0:en.bank)||"--")),He.createElement(ge.Z,{className:"mt20"},He.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u652F\u884C"),He.createElement(ce.Z,{className:"ml20"},(Kt==null?void 0:Kt.teams)&&((Cn=(on=Kt==null?void 0:Kt.teams[0])==null?void 0:on.bank_account)==null?void 0:Cn.second_bank)||"--")),He.createElement(ge.Z,{className:"mt20"},He.createElement(ce.Z,{className:oe.Z.PerfectCentName},"\u8D26\u53F7"),He.createElement(ce.Z,{className:"ml20"},(Kt==null?void 0:Kt.teams)&&((tr=(Bn=Kt==null?void 0:Kt.teams[0])==null?void 0:Bn.bank_account)==null?void 0:tr.card_no)||"--"))),He.createElement(St.Z,{Scoid:jt==null?void 0:jt.school_id}),He.createElement(dt,null))}var ht=Qe,At=We(15965);const pt=({Prize:Kt,Accounts:jt,getAccounts:Rt,dispatch:Xt,userid:sn})=>{const[Ft,Qt]=(0,He.useState)("DownPdf");return He.createElement("div",{style:{margin:"15px 0"}},He.createElement(At.tp,{dataSource:[{name:"\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D",id:"DownPdf"},{name:"\u5B8C\u5584\u4E2A\u4EBA\u4FE1\u606F",id:"Perfect"}],value:Ft,onChange:en=>Qt(en)}),Ft=="DownPdf"&&He.createElement(we,{Prize:Kt}),Ft=="Perfect"&&He.createElement(ht,{userid:sn,dispatch:Xt,Prize:Kt,Accounts:jt}))};var Ot=(0,mt.connect)(({})=>({}))(pt)},22904:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Ie}});var He=We(59301),mt=We(43418),oe=We(8591),Ze=We(6848),Ne=We(3113),ge=We(71119),ce=We(24459),Pe=We(99325),Ae=We(82309),ye=We(49898),De=We(7660),me=Object.defineProperty,we=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Le,Fe,Oe)=>Fe in Le?me(Le,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Le[Fe]=Oe,ae=(Le,Fe)=>{for(var Oe in Fe||(Fe={}))fe.call(Fe,Oe)&&ee(Le,Oe,Fe[Oe]);if(we)for(var Oe of we(Fe))z.call(Fe,Oe)&&ee(Le,Oe,Fe[Oe]);return Le};const re=Le=>React.createElement("svg",ae({className:"jieduanguanka_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Le),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-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0xMi44IDAtMTkuMiA2LjQtMjUuNiAxMi44LTEyLjggMTkuMi0xMi44IDQ0LjggNi40IDU3LjZsMTIxLjYgOTYtMTIxLjYgODkuNmMtMTkuMiAxMi44LTE5LjIgMzguNC0xMi44IDUxLjJsNi40IDYuNGMxMi44IDE5LjIgMzguNCAxOS4yIDU3LjYgNi40bDEzNC40LTk2YzYuNC02LjQgMTIuOC0xOS4yIDE5LjItMjUuNnYtNTcuNmMwLTEyLjgtNi40LTE5LjItMTIuOC0yNS42TDczNiAzNzcuNmMtMTkuMi0xMi44LTMyLTEyLjgtMzguNC0xMi44eiIgZmlsbD0iIzE2NURGRiIvPjwvc3ZnPg==",ue=We(73898),pe=(Le,Fe,Oe)=>new Promise((je,ze)=>{var _e=et=>{try{$e(Oe.next(et))}catch(lt){ze(lt)}},Ue=et=>{try{$e(Oe.throw(et))}catch(lt){ze(lt)}},$e=et=>et.done?je(et.value):Promise.resolve(et.value).then(_e,Ue);$e((Oe=Oe.apply(Le,Fe)).next())});const Ee=Le=>{let Fe=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Oe=["","\u5341","\u767E","\u5343","\u4E07"];Le=parseInt(Le);let je=Ue=>{let $e=Ue.toString().split("").reverse(),et="";for(var lt=0;lt<$e.length;lt++)et=(lt==0&&$e[lt]==0||lt>0&&$e[lt]==0&&$e[lt-1]==0?"":Fe[$e[lt]]+($e[lt]==0?Oe[0]:Oe[lt]))+et;return et},ze=Math.floor(Le/1e4),_e=Le%1e4;return _e.toString().length<4&&(_e="0"+_e),ze?je(ze)+"\u4E07"+je(_e):je(Le)};function be({item:Le,Header:Fe,index:Oe,StaffDetail:je,dispatch:ze}){var _e,Ue,$e,et,lt,ut,yt;const[qe,ot]=(0,He.useState)(!0),[dt,St]=(0,He.useState)(!0),[xt,ft]=(0,He.useState)(!1),gt=(0,He.useRef)(),[vt,Tt]=(0,He.useState)(!1),{identifier:Et}=(0,ce.useParams)();(0,He.useEffect)(()=>{setTimeout(()=>{gt.current.children[0].clientHeight>88&&ft(!0)},10)},[]);const Zt=it=>{var nt,xe;if((0,Ae.tJ)(ze,!0)){if((it==null?void 0:it.shixun_status)>1&&Tt(!0),it!=null&&it.is_jupyter||it!=null&&it.is_jupyter_lab){ze({type:"shixunsDetail/execJupyter",payload:{id:(nt=it==null?void 0:it.shixun)==null?void 0:nt.identifier}}).then(Ce=>{Tt(!1),Ce!=null&&Ce.identifier&&window.open(`/tasks/${Ce.identifier}/jupyter?competition_entry_id=${it==null?void 0:it.id}&type=competitions`)});return}ze({type:"shixunsDetail/execShixun",payload:{id:(xe=it==null?void 0:it.shixun)==null?void 0:xe.identifier}}).then(Ce=>{if(Tt(!1),Ce!=null&&Ce.game_identifier){window.open(`/tasks/${Ce.game_identifier}?competition_entry_id=${it==null?void 0:it.id}&type=competitions`);return}(Ce==null?void 0:Ce.status)===2?wt(Ce==null?void 0:Ce.message):(Ce==null?void 0:Ce.status)===3&&bt(Ce==null?void 0:Ce.message)})}},wt=it=>{it=it!=null&&it.includes(".json")?it:`${it}.json`,mt.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:He.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 nt=yield(0,ye.$Q)({url:it});if(!nt)return;oe.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const xe=yield(0,ye.Ir)({id:nt.shixun_identifier});if(xe!=null&&xe.game_identifier){window.open(`/tasks/${xe.game_identifier}`);return}(xe==null?void 0:xe.status)===2?wt(xe==null?void 0:xe.message):(xe==null?void 0:xe.status)===3&&bt(xe==null?void 0:xe.message)})})},bt=it=>{mt.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:He.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",it,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})};return He.createElement("div",{className:ge.Z.box},He.createElement("div",{style:{justifyContent:"space-between",display:"flex",padding:"0 10px"}},He.createElement("span",{className:ge.Z.title_style,style:{color:"#333333",fontWeight:500,fontSize:"14px"}},Fe!=null&&Fe.is_new?"\u8D5B\u9898":"\u4EFB\u52A1",Oe+1),He.createElement("span",{style:{color:"#9096A3",marginLeft:"auto",fontSize:"12px"}},"\u4F5C\u54C1\u63D0\u4EA4\u65F6\u95F4",He.createElement("span",{style:{color:"#232B40",marginLeft:5}},Fe==null?void 0:Fe.start_time,"~",Fe==null?void 0:Fe.end_time))),He.createElement("div",{style:{padding:10,display:"flex",position:"relative"}},He.createElement("img",{src:Le==null?void 0:Le.pic,style:{width:220,height:130,borderRadius:"4px"}}),He.createElement("div",{style:{marginLeft:20,width:"75%"}},He.createElement("div",{style:{justifyContent:"space-between",display:"flex"}},He.createElement("div",null,He.createElement(Ze.Z,{title:(Le==null?void 0:Le.name)||((_e=Le==null?void 0:Le.shixun)==null?void 0:_e.name)},He.createElement("span",{style:{color:"#333333",fontWeight:"500",fontSize:"14px"}},(Le==null?void 0:Le.name)||((Ue=Le==null?void 0:Le.shixun)==null?void 0:Ue.name))),He.createElement("span",{style:{color:"#9096A3",marginLeft:40}},"\u5173\u5361",He.createElement("span",{style:{color:"#333333",marginLeft:5}},(Le==null?void 0:Le.challenges_count)||(($e=Le==null?void 0:Le.shixun)==null?void 0:$e.challenges_count)))),He.createElement("span",{style:{marginLeft:"auto"}},((je==null?void 0:je.enrolled)&&(Fe==null?void 0:Fe.competition_status)!=="ended"||(0,ue.eB)()||((et=Fe.permission)==null?void 0:et.editable))&&He.createElement(Ne.ZP,{loading:vt,onClick:()=>pe(this,null,function*(){var it,nt;if(Fe!=null&&Fe.is_new){let xe=yield(0,De.ZP)(`/api/competitions/${Et}/check_team_member.json`,{method:"post"});if((xe==null?void 0:xe.status)===0){Zt(Le);let Ce=yield(0,De.ZP)(`/api/competitions/${Et}/enter_competition_question.json`,{method:"post",body:{competition_stage_id:Le==null?void 0:Le.competition_stage_id,competition_stage_section_id:Le==null?void 0:Le.competition_stage_section_id,competition_entry_id:Le==null?void 0:Le.id,shixun_id:(it=Le==null?void 0:Le.shixun)==null?void 0:it.id}})}}else window.open(`/shixuns/${(Le==null?void 0:Le.identifier)||((nt=Le==null?void 0:Le.shixun)==null?void 0:nt.identifier)}/challenges`)}),style:{marginLeft:30,borderRadius:14,fontSize:12,width:88},type:"primary"},"\u5F00\u542F\u6311\u6218"))),He.createElement("div",{ref:gt,style:{maxHeight:qe&&100,position:"relative",overflow:"hidden"}},He.createElement(Pe.Z,{style:{fontSize:"14px",color:"#9096A3",marginTop:20,position:"relative"},value:(Le==null?void 0:Le.description)||""}),xt&&qe&&He.createElement("div",{className:ge.Z.maskText})),xt&&He.createElement("div",{className:ge.Z.colorhove,style:{textAlign:"end",cursor:"pointer"},onClick:()=>{ot(!qe)}},qe?"\u9605\u8BFB\u5168\u6587 ":"\u6536\u8D77\u5168\u6587 ",He.createElement("i",{className:`iconfont font14 ${qe?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-"}`})),He.createElement("div",{style:{marginTop:14,maxHeight:dt&&58,overflow:"hidden"}},(lt=Le==null?void 0:Le.challenges)==null?void 0:lt.map((it,nt)=>He.createElement("div",{style:{marginTop:nt===0?0:12}},He.createElement("img",{src:le,style:{width:20,height:20}}),He.createElement("span",{style:{marginLeft:10}},"\u7B2C",nt+1,"\u5173",it==null?void 0:it.challenge_name))),(ut=Le==null?void 0:Le.challenge_settings)==null?void 0:ut.map((it,nt)=>He.createElement("div",{style:{marginTop:nt===0?0:12}},He.createElement("img",{src:le,style:{width:20,height:20}}),He.createElement("span",{style:{marginLeft:10}},"\u7B2C",nt+1,"\u5173",it==null?void 0:it.challenge_name)))),He.createElement("div",{className:ge.Z.colorhove,style:{position:"absolute",bottom:14,right:10,cursor:"pointer"}},((Le==null?void 0:Le.challenges_count)||((yt=Le==null?void 0:Le.shixun)==null?void 0:yt.challenges_count))>2&&He.createElement("span",{onClick:()=>{St(!dt)}},dt?"\u5C55\u5F00":"\u6536\u8D77"," ",He.createElement("i",{className:`iconfont font14 ${dt?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-"}`}))))))}var Ie=be},81696:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return nt}});var He=We(59301),mt=We(24459),oe=We(57809),Ze=We(54580),Ne=We(78241),ge=We(8591),ce=We(43418),Pe=We(95237),Ae=We(43604),ye=We(71418),De=We(92832),me=We(88522),we=We(3113),fe=We(38446),z=We(51941),ee=We(8361),ae=We(88230),re=We(51736),le=We(19842),ue=We(29679),pe=We(19248),Ee=We(75454),be={flexRow:"flexRow___jGYtM",flexColumn:"flexColumn___NPMB3",formWrap:"formWrap___vwH9N",example:"example____BmJC",footerWrap:"footerWrap___lp1L0"},Ie=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Oe=(xe,Ce)=>{var Ye={};for(var Je in xe)Le.call(xe,Je)&&Ce.indexOf(Je)<0&&(Ye[Je]=xe[Je]);if(xe!=null&&Ie)for(var Je of Ie(xe))Ce.indexOf(Je)<0&&Fe.call(xe,Je)&&(Ye[Je]=xe[Je]);return Ye},je=(xe,Ce,Ye)=>new Promise((Je,Me)=>{var Ge=Qe=>{try{Ve(Ye.next(Qe))}catch(ht){Me(ht)}},Ke=Qe=>{try{Ve(Ye.throw(Qe))}catch(ht){Me(ht)}},Ve=Qe=>Qe.done?Je(Qe.value):Promise.resolve(Qe.value).then(Ge,Ke);Ve((Ye=Ye.apply(xe,Ce)).next())});const ze=(xe,Ce)=>Ce.some(Ye=>Ye.label.toLowerCase().indexOf(xe.toLowerCase())>-1),_e=De.default.TextArea,Ue=xe=>{var Ce=xe,{account:Ye,globalSetting:Je,loading:Me,dispatch:Ge,schoolName:Ke,visible:Ve,onClose:Qe=()=>{},onSuccess:ht=()=>{}}=Ce,At=Oe(Ce,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]);const[pt]=Ne.default.useForm();(0,He.useEffect)(()=>{pt.setFieldsValue({name:Ke})},[Ke]);const Ot=Kt=>je(void 0,null,function*(){const{name:jt,city:Rt=[],address:Xt,remarks:sn}=Kt||{},Ft=yield Ge({type:"account/appplySchool",payload:{name:jt,province:Rt[0],city:Rt[1],address:Xt,remarks:sn}});Qe(),Ft&&(ge.ZP.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),ht(jt))});return He.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},He.createElement(Ne.default,{className:be.formWrap,form:pt,labelCol:{span:4},wrapperCol:{span:20},onFinish:Ot},He.createElement(Ne.default.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},He.createElement(De.default,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),He.createElement("div",{className:`${be.flexRow} ${be.example}`},He.createElement("div",null,"\u793A\u4F8B\uFF1A"),He.createElement("div",{className:be.flexColumn},He.createElement("div",null,He.createElement(ue.Z,{style:{color:"rgb(82, 196, 26)"}}),He.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),He.createElement("div",null,He.createElement(pe.Z,{style:{color:"red"}}),He.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),He.createElement(Ne.default.Item,{label:"\u5730\u533A\uFF1A",name:"city"},He.createElement(le.Z,{allowClear:!0,size:"middle",options:Ee.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:ze}})),He.createElement(Ne.default.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},He.createElement(De.default,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),He.createElement(Ne.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},He.createElement(_e,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),He.createElement("div",{className:be.footerWrap},He.createElement(Ne.default.Item,null,He.createElement(we.ZP,{className:"mr5",size:"middle",onClick:()=>{Qe()}},"\u53D6\u6D88"),He.createElement(we.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Me["account/appplySchool"]},"\u4FDD\u5B58")))))};var $e=(0,mt.connect)(({account:xe,loading:Ce,globalSetting:Ye})=>({account:xe,globalSetting:Ye,loading:Ce.effects}))(Ue),et=We(88647),lt=We(89392),ut=We(59301),yt=Object.defineProperty,qe=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,ft=(xe,Ce,Ye)=>Ce in xe?yt(xe,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):xe[Ce]=Ye,gt=(xe,Ce)=>{for(var Ye in Ce||(Ce={}))St.call(Ce,Ye)&&ft(xe,Ye,Ce[Ye]);if(dt)for(var Ye of dt(Ce))xt.call(Ce,Ye)&&ft(xe,Ye,Ce[Ye]);return xe},vt=(xe,Ce)=>qe(xe,ot(Ce)),Tt=(xe,Ce)=>{var Ye={};for(var Je in xe)St.call(xe,Je)&&Ce.indexOf(Je)<0&&(Ye[Je]=xe[Je]);if(xe!=null&&dt)for(var Je of dt(xe))Ce.indexOf(Je)<0&&xt.call(xe,Je)&&(Ye[Je]=xe[Je]);return Ye},Et=(xe,Ce,Ye)=>new Promise((Je,Me)=>{var Ge=Qe=>{try{Ve(Ye.next(Qe))}catch(ht){Me(ht)}},Ke=Qe=>{try{Ve(Ye.throw(Qe))}catch(ht){Me(ht)}},Ve=Qe=>Qe.done?Je(Qe.value):Promise.resolve(Qe.value).then(Ge,Ke);Ve((Ye=Ye.apply(xe,Ce)).next())});const Zt=oe.default.Option,wt=Ze.default.Dragger;var bt=(xe=>(xe[xe.Professor=1]="Professor",xe[xe.AssistantProfessor=2]="AssistantProfessor",xe[xe.Student=3]="Student",xe))(bt||{});const it=xe=>{var Ce=xe,{user:Ye,account:Je,globalSetting:Me,loading:Ge,dispatch:Ke,Scoid:Ve}=Ce,Qe=Tt(Ce,["user","account","globalSetting","loading","dispatch","Scoid"]),ht,At;const[pt]=Ne.default.useForm(),[Ot,Kt]=(0,He.useState)({}),[jt,Rt]=(0,He.useState)([]),[Xt,sn]=(0,He.useState)([]),[Ft,Qt]=(0,He.useState)([]),[en,on]=(0,He.useState)([]),[Cn,Bn]=(0,He.useState)(),[tr,er]=(0,He.useState)(),[cr,Ar]=(0,He.useState)(),[Dr,Or]=(0,He.useState)(),[$r,ai]=(0,He.useState)(),br=(0,He.useRef)((0,lt.throttle)(Gt=>fi(Gt),1200,{leading:!0,trailing:!0})).current;(0,He.useEffect)(()=>{},[]),(0,He.useEffect)(()=>{Et(void 0,null,function*(){if(!Ve)return;const Gt=yield Cr(Ve);Qt(Gt==null?void 0:Gt.departments)})},[Ve]);const fi=Gt=>Et(void 0,null,function*(){var Pt,ln;const pn=yield Ke({type:"account/getSchoolOption",payload:{keyword:Gt,limit:10}});Rt(pn==null?void 0:pn.schools),Gt&&Gt!=""&&(sn((Pt=pn==null?void 0:pn.schools)==null?void 0:Pt.filter(Dt=>Dt.name.includes(Gt))),(((ln=pn==null?void 0:pn.schools)==null?void 0:ln.find(Dt=>Dt.name===Gt))||{}).id?ur(Gt,null,pn==null?void 0:pn.schools):(pt.setFieldsValue({department:""}),Kt(gt(gt({},Ot),{school:Gt,department:""}))))}),Cr=Gt=>{if(Gt)return Ke({type:"account/getDepartmentOption",payload:{id:Gt}})};(0,He.useEffect)(()=>{if(!Je.basicInfo)return;const{basicInfo:Gt}=Je,Pt={identity:Gt.identity,school:Gt.school_name,department:Gt.department_name,studentNo:Gt.student_id,jobTitle:Gt.identity=="teacher"?Gt.technical_title:"\u6559\u6388",manager:Gt.identity=="professional"?Gt.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};pt.setFieldsValue(Pt),Kt(Pt)},[Je.basicInfo]);const at=()=>{Or(!0)},wi=()=>{if(!jt.find(Gt=>Gt.name===Ot.school)){ge.ZP.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}ai(!0)},ui=Gt=>{Kt(gt({},pt.getFieldsValue())),"school"in Gt&&(sn(jt.filter(ln=>ln.name.includes(Gt.school))),(jt.find(ln=>ln.name===Gt.school)||{}).id?ur(Gt.school):(pt.setFieldsValue({department:""}),Kt(gt(gt({},Ot),{school:Gt.school,department:""}))))},Dn=(Gt,Pt)=>{if(Je.actionTabs.checkedList.includes(1)){ce.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ut.createElement("div",{className:"tc"},Pt||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{window.location.href=`/classrooms/${Gt}/students`}});return}window.location.href=`/classrooms/${Gt}/students`},ur=(Gt,Pt,ln)=>Et(void 0,null,function*(){var pn,Vt,Dt;const cn=(pn=(ln||jt).find(Zn=>Zn.name===Gt))==null?void 0:pn.id,xn=(yield Cr(cn))||{};Qt(xn==null?void 0:xn.departments);const Nn=Pt||((Dt=(Vt=xn==null?void 0:xn.departments)==null?void 0:Vt[0])==null?void 0:Dt.name);pt.setFieldsValue({department:Nn}),Kt(gt(gt({},Ot),{school:Gt,department:Nn}))}),or=Gt=>Et(void 0,null,function*(){yield fi(),pt.setFieldsValue({school:Gt,department:""}),Kt(gt(gt({},Ot),{school:Gt,department:""}))}),vr=Gt=>{var Pt;if(Gt.file.status==="uploading"){Ar(!0);return}Gt.file.status==="done"&&(console.log(Gt.file,Gt.file.response),er((Pt=Gt.file.response)==null?void 0:Pt.id),(0,ae.y3)(Gt.file.originFileObj,ln=>{Bn(ln),Ar(!1)}))},Hn=Gt=>Et(void 0,null,function*(){var Pt,ln,pn,Vt,Dt;const{school:cn,department:xn,identity:Nn,studentNo:Zn,jobTitle:Ht,manager:En}=Gt||{};if(!Cn){ge.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01");return}const Kn=(Pt=jt.find(nn=>nn.name===cn))==null?void 0:Pt.id,nr=(ln=Ft.find(nn=>nn.name===xn))==null?void 0:ln.id;let rn;Nn==="student"?rn=Zn:Nn==="teacher"?rn=Ht:rn=En;const bn=yield Ke({type:"account/applyProfessionalAuth",payload:{id:((pn=Je.basicInfo)==null?void 0:pn.id)||((Vt=Ye.userInfo)==null?void 0:Vt.login),school_id:Kn,department_id:nr,identity:Nn,extra:rn,attachment_ids:[tr]}});if(Je.actionTabs.code){let nn=yield(0,et.cR)({invite_code:Je.actionTabs.code,professor:Je.actionTabs.checkedList.includes(1)?1:null,assistant_professor:Je.actionTabs.checkedList.includes(2)?1:null,student:Je.actionTabs.checkedList.includes(3)?1:null});nn.message==="\u52A0\u5165\u6210\u529F"&&(nn!=null&&nn.course_id?Dn(nn.course_id,nn.message):ge.ZP.success(nn.message))}Jn(),bn&&(ge.ZP.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Ke({type:"account/getBasicInfo",payload:{login:(Dt=Ye.userInfo)==null?void 0:Dt.login}}))}),Jn=()=>{Ke({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:Gt=>{const Pt=Gt.type==="image/jpeg"||Gt.type==="image/png"||Gt.type==="image/jpg"||Gt.type==="image/bmp";return Pt||ge.ZP.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),Pt}};return ut.createElement(ce.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:ee.Z.modal,open:Je.actionTabs.key==="Account-ProfessionalAuth",title:ut.createElement(Pe.Z,{style:{padding:"25px"},align:"middle",justify:"space-between"},ut.createElement(Ae.Z,null,"\u804C\u4E1A\u8BA4\u8BC1"),ut.createElement(Ae.Z,null,ut.createElement("i",{className:"iconfont icon-guanbi11",style:{color:"#979797",cursor:"pointer"},onClick:Jn}))),width:"660px",footer:null},ut.createElement(ye.Z,{spinning:!!cr},ut.createElement(Ne.default,{className:ee.Z.formWrap,form:pt,colon:!1,onValuesChange:ui,onFinish:Hn},ut.createElement(Pe.Z,{gutter:[10,0]},ut.createElement(Ae.Z,{flex:"300px"},ut.createElement(Ne.default.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},ut.createElement(oe.default,null,ut.createElement(Zt,{value:"teacher"},"\u6559\u5E08"),ut.createElement(Zt,{value:"student"},"\u5B66\u751F"),ut.createElement(Zt,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),Ot.identity==="student"&&ut.createElement(Ae.Z,{flex:"200px"},ut.createElement(Ne.default.Item,{initialValue:Ot.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},ut.createElement(De.default,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),Ot.identity==="teacher"&&ut.createElement(Ae.Z,{flex:"200px"},ut.createElement(Ne.default.Item,{initialValue:Ot.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},ut.createElement(oe.default,null,ut.createElement(Zt,{value:"\u6559\u6388"},"\u6559\u6388"),ut.createElement(Zt,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),ut.createElement(Zt,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),ut.createElement(Zt,{value:"\u52A9\u6559"},"\u52A9\u6559")))),Ot.identity==="professional"&&ut.createElement(Ae.Z,{flex:"200px"},ut.createElement(Ne.default.Item,{initialValue:Ot.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},ut.createElement(oe.default,null,ut.createElement(Zt,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),ut.createElement(Zt,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),ut.createElement(Zt,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),ut.createElement(Zt,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),ut.createElement(Zt,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),ut.createElement(Ne.default.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:Ot.school&&!(jt!=null&&jt.find(Gt=>Gt.name===Ot.school))&&ut.createElement("div",{className:ee.Z.schoolHintWrap},ut.createElement("span",{className:ee.Z.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",Ot.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),ut.createElement("span",{className:`${ee.Z.color0152d9} current`,onClick:at},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},ut.createElement(me.Z,{showSearch:!0,onSearch:br,options:Xt==null?void 0:Xt.map(Gt=>({value:Gt.name}))})),ut.createElement(Ne.default.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:Ot.department&&!(Ft!=null&&Ft.find(Gt=>Gt.name===Ot.department))&&ut.createElement("div",{className:ee.Z.schoolHintWrap},ut.createElement("span",{className:ee.Z.colorCDCDCD},Ot.department?`\u672A\u627E\u5230\u5305\u542B\u201C${Ot.department}\u201D\u7684\u9AD8\u6821\uFF0C`:"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),ut.createElement("span",{className:`${ee.Z.color0152d9} current`,onClick:wi},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},ut.createElement(me.Z,{showSearch:!0,onChange:Gt=>on(Ft.filter(Pt=>Pt.name.includes(Gt))),options:en==null?void 0:en.map(Gt=>({value:Gt.name}))})),ut.createElement(Ne.default.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},ut.createElement("div",{className:ee.Z.flexRow},ut.createElement("div",{className:ee.Z.flexColumn},ut.createElement(wt,vt(gt({},_t),{accept:".png,.jpg,.bmp,.jpeg"}),Cn?ut.createElement("img",{src:Cn,className:ee.Z.uploadImg}):ut.createElement("div",{className:ee.Z.imageTip},ut.createElement("p",null,ut.createElement("i",{className:`iconfont icon-cuban2shangchuanyunduan ${ee.Z.uploadTipIcon}`})),ut.createElement("p",{className:ee.Z.uploadTip},ut.createElement("a",{className:ee.Z.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),ut.createElement("span",{className:"tc"},ut.createElement("p",{className:ee.Z.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))),ut.createElement("div",{className:`${ee.Z.flexColumn} ${ee.Z.example}`},ut.createElement("span",{className:ee.Z.exampleImg},ut.createElement("img",{src:z})),ut.createElement("span",{className:"tc"},ut.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),ut.createElement("p",{className:`${ee.Z.colorOrange} font12`},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))))),ut.createElement("div",{className:ee.Z.footerWrap},ut.createElement(Ne.default.Item,null,ut.createElement(we.ZP,{className:"mr5",size:"middle",onClick:Jn},"\u53D6\u6D88"),ut.createElement(we.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Ge["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),ut.createElement("div",{className:ee.Z.note},ut.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),ut.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"),ut.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"),ut.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"),ut.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"),ut.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"),ut.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",!((ht=Me==null?void 0:Me.setting)!=null&&ht.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),ut.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")))),ut.createElement($e,{visible:Dr,onClose:()=>Or(!1),schoolName:Ot.school,onSuccess:or}),ut.createElement(re.Z,{visible:$r,onClose:()=>ai(!1),schoolId:(At=jt.find(Gt=>Gt.name===Ot.school))==null?void 0:At.id,schoolName:Ot.school,departmentName:Ot.department,onSuccess:Gt=>ur(Ot.school,Gt)}))};var nt=(0,mt.connect)(({user:xe,account:Ce,loading:Ye,globalSetting:Je})=>({user:xe,account:Ce,globalSetting:Je,loading:Ye.effects}))(it)},75306:function(kn,fn,We){"use strict";var He=We(59301),mt=We(8591),oe=We(43418),Ze=We(92832),Ne=We(3113),ge=We(7660),ce=We(39585),Pe=We(88230),Ae=We(38446),ye=We(59301),De=(fe,z,ee)=>new Promise((ae,re)=>{var le=Ee=>{try{pe(ee.next(Ee))}catch(be){re(be)}},ue=Ee=>{try{pe(ee.throw(Ee))}catch(be){re(be)}},pe=Ee=>Ee.done?ae(Ee.value):Promise.resolve(Ee.value).then(le,ue);pe((ee=ee.apply(fe,z)).next())});const me=/^1\d{10}$/;function we({isShowPhone:fe,setIsShowPhone:z,user:ee,dispatch:ae,onOK:re,isopen:le,setisopen:ue,datas:pe,Header:Ee}){const[be,Ie]=(0,He.useState)(""),[Le,Fe]=(0,He.useState)(""),[Oe,je]=(0,He.useState)(60),[ze,_e]=(0,He.useState)(),[Ue,$e]=(0,He.useState)(!1),[et,lt]=(0,He.useState)(!1),[ut,yt]=(0,He.useState)(""),qe=(0,He.useRef)();(0,He.useEffect)(()=>()=>{qe.current&&clearInterval(qe.current)},[]),(0,ce.Y)(()=>{if(ze)je(60);else return;Oe>0?je(Oe-1):(je(60),_e(!1),qe.current&&clearInterval(qe.current))},1e3);const ot=()=>De(this,null,function*(){var dt;let St=yield(0,ge.ZP)(`/api/users/accounts/${(dt=ee.userInfo)==null?void 0:dt.login}/valid_phone.json`,{method:"get",params:{phone:be}});if((St==null?void 0:St.status)===-1)return;if(St!=null&&St.is_exists){$e(!0);return}let xt=(0,Pe.M)(be);(yield ae({type:"account/getCode",payload:{login:be,type:3,smscode:xt}})).status===1&&(mt.ZP.info("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\uFF0C\u8BF7\u6CE8\u610F\u67E5\u6536"),_e(!0))});return ye.createElement("div",null,ye.createElement(oe.default,{title:"\u5F3A\u5236\u89E3\u7ED1",open:et,onCancel:()=>lt(!1),onOk:()=>De(this,null,function*(){var dt;if(!ut){mt.ZP.info("\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}let St=yield(0,ge.ZP)(`/api/users/accounts/${(dt=ee==null?void 0:ee.userInfo)==null?void 0:dt.login}/phone_force_unbind.json`,{method:"POST",body:{code:ut,phone:be}});(St==null?void 0:St.status)===0&&(mt.ZP.info("\u89E3\u7ED1\u6210\u529F"),_e(!1),lt(!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",be),ye.createElement("p",null,"\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A",ye.createElement(Ze.default,{value:ut,size:"middle",onChange:dt=>yt(dt.target.value),style:{width:"240px"}})," ",ye.createElement(Ne.ZP,{disabled:ze,type:"primary",size:"middle",onClick:()=>De(this,null,function*(){let dt=(0,Pe.M)(be);(yield ae({type:"account/getCode",payload:{login:be,type:10,smscode:dt}})).status===1&&(mt.ZP.info("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\uFF0C\u8BF7\u6CE8\u610F\u67E5\u6536"),_e(!0))})},ze?`\u91CD\u65B0\u53D1\u9001${Oe}s`:"\u83B7\u53D6\u9A8C\u8BC1\u7801")))),ye.createElement(oe.default,{title:"\u63D0\u793A",open:Ue,onCancel:()=>{$e(!1)},okText:"\u8FDB\u884C\u5F3A\u5236\u89E3\u7ED1",okButtonProps:{type:"primary",ghost:!0,style:{width:"124px"}},onOk:()=>{lt(!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:()=>De(this,null,function*(){if(!me.test(be)){mt.ZP.info("\u8BF7\u8F93\u5165\u6709\u6548\u768411\u4F4D\u624B\u673A\u53F7\u7801");return}if(!Le){mt.ZP.info("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801");return}const{login:dt}=ee.userInfo||{},St=yield ae({type:"account/bindPhone",payload:{login:dt,phone:be,code:Le}});(St==null?void 0:St.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(Ze.default,{size:"middle",value:be,onChange:dt=>Ie(dt.target.value),style:{width:"240px"}})),ye.createElement("p",null,"\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A",ye.createElement(Ze.default,{size:"middle",value:Le,onChange:dt=>Fe(dt.target.value),style:{width:"240px"}})," ",ye.createElement(Ne.ZP,{disabled:ze,type:"primary",size:"middle",onClick:()=>De(this,null,function*(){if(!me.test(be)){mt.ZP.info("\u8BF7\u8F93\u5165\u6709\u6548\u768411\u4F4D\u624B\u673A\u53F7\u7801");return}ot()})},ze?`\u91CD\u65B0\u53D1\u9001${Oe}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"}},(Ee==null?void 0:Ee.is_show_picture)&&ye.createElement("img",{style:{width:180,border:"1px solid #eeeeef",padding:10,marginBottom:20},src:Ae.Z.IMG_SERVER+(pe==null?void 0:pe.QR_code)}),ye.createElement("p",{style:{color:"#AAAAAA"}},(Ee==null?void 0:Ee.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")))))}fn.Z=we},75454:function(kn,fn,We){"use strict";We.d(fn,{P:function(){return He}});const He=[{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"}]}]},39585:function(kn,fn,We){"use strict";We.d(fn,{Y:function(){return mt}});var He=We(59301);function mt(oe,Ze){const Ne=(0,He.useRef)(),ge=(0,He.useRef)();(0,He.useEffect)(()=>{Ne.current=oe}),(0,He.useEffect)(()=>{function ce(){Ne.current()}if(Ze!==null){let Pe=setInterval(ce,Ze);return ge.current=Pe,()=>clearInterval(Pe)}},[Ze])}},85187:function(kn,fn,We){"use strict";We.d(fn,{AL:function(){return pe},Iy:function(){return De},Qv:function(){return fe},ez:function(){return ue},jb:function(){return me}});var He=We(32834),mt=We.n(He),oe=We(11690),Ze=We.n(oe);let Ne=1;function ge(Fe,Oe){const je=Fe.match(/^(\s+)(?:```)/);if(je===null)return Oe;const ze=je[1];return Oe.split(`
|
|
|
`).map(_e=>{const Ue=_e.match(/^\s+/);if(Ue===null)return _e;const[$e]=Ue;return $e.length>=ze.length?_e.slice(ze.length):_e}).join(`
|
|
|
`)}let ce=[],Pe=["<ul>"];const Ae=new(mt()).Renderer,ye=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function De(){ce.length=0,Pe=["<ul>"]}const me={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function we(Fe,Oe,je,ze){if(Oe>=Fe.length||Fe[Oe].level<=je)return Oe;var _e=Fe[Oe];ze.push("<li><a href='#"+Ne+_e.anchor+"'>"+_e.text+"</a>"),Oe++;var Ue=[];return Oe=we(Fe,Oe,_e.level,Ue),Ue.length>0&&(ze.push("<ul>"),Ue.forEach(function($e){ze.push($e)}),ze.push("</ul>")),ze.push("</li>"),Oe=we(Fe,Oe,je,ze),Oe}function fe(){return we(ce,0,0,Pe),Pe.push("</ul>"),Pe.join("")}const z={heading(Fe){const Oe=ye.exec(Fe);if(Ne+=1,Oe)return{type:"heading",raw:Oe[0],depth:Oe[1].length,text:Oe[2]}},fences(Fe){const Oe=this.rules.block.fences.exec(Fe);if(Oe){const je=Oe[0];let ze=ge(je,Oe[3]||"");const _e=Oe[2]?Oe[2].trim():Oe[2];if(["latex","katex","math"].indexOf(_e)>=0){const Ue=re(),$e=ze;ze=Ue,le[Ue]={type:"block",expression:$e}}return{type:"code",raw:je,lang:_e,text:ze}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ae=0;const re=()=>`__special_katext_id_${ae++}__`;let le={};function ue(){return le}function pe(){ae=0,le={}}function Ee(Fe){return Fe=Fe.replace(ee,(Oe,je)=>{const ze=re();return le[ze]={type:"inline",expression:je},ze}),Fe}const be=Ae.listitem;Ae.listitem=function(Fe){return be(Ee(Fe))};const Ie=Ae.paragraph;Ae.paragraph=function(Fe){return Ie(Ee(Fe))};const Le=Ae.tablecell;Ae.tablecell=function(Fe,Oe){return Le(Ee(Fe),Oe)},Ae.code=function(Fe,Oe,je){const ze=(Oe||"").match(/\S*/)[0];return ze?["latex","katex","math"].indexOf(ze)>=0?`<p class='editormd-tex'>${Fe}</p>`:`<pre class="prettyprint linenums"><code class="language-${Oe}">${je?Fe:(0,oe.escape)(Fe,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(je?Fe:(0,oe.escape)(Fe,!0))+"</code></pre>"},Ae.heading=function(Fe,Oe,je){let ze=this.options.headerPrefix+je.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ce.push({anchor:ze,level:Oe,text:Fe}),"<h"+Oe+' id="'+Ne+ze+'">'+Fe+"</h"+Oe+">"},mt().setOptions({silent:!0,gfm:!0,pedantic:!1}),mt().use({tokenizer:z,renderer:Ae}),fn.ZP=mt()},82309:function(kn,fn,We){"use strict";We.d(fn,{rX:function(){return pe},pW:function(){return Ee},gy:function(){return be},xY:function(){return ue},O5:function(){return le},tJ:function(){return fe},o1:function(){return z},Rd:function(){return re}});var He=We(24459),mt=We(43418),oe=We(28103),Ze=We(8591),Ne=We(73898),ge=We(88230),ce=We(87169),Pe=We(25510),Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAG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FgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",ye=We.p+"static/newqrcode.a8740efb.png",De=We(32637),me=We(59301),we=(Ie,Le,Fe)=>new Promise((Oe,je)=>{var ze=$e=>{try{Ue(Fe.next($e))}catch(et){je(et)}},_e=$e=>{try{Ue(Fe.throw($e))}catch(et){je(et)}},Ue=$e=>$e.done?Oe($e.value):Promise.resolve($e.value).then(ze,_e);Ue((Fe=Fe.apply(Ie,Le)).next())});const fe=(Ie,Le=!1,Fe=!1,Oe="",je=!1)=>!!(z(Ie)&&ee(Ie,Le,Fe,Oe,je)),z=Ie=>(0,Ne.bg)()?!0:(Ie({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),ee=(Ie,Le=!1,Fe=!0,Oe="",je=!1)=>{var ze;const{user:_e}=(0,He.getDvaApp)()._store.getState();return(ze=_e.userInfo)!=null&&ze.profile_completed?!0:(Fe?Ie({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Oe,isCurrentPage:je}}):mt.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,ge.xg)("/account/profile/edit"),ae()}}),!1)},ae=()=>{mt.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()}})},re=()=>{mt.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:De}),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"))})},le=()=>{var Ie;const{user:Le}=(0,He.getDvaApp)()._store.getState();return(Ie=Le.userInfo)!=null&&Ie.professional_certification?!0:(mt.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,ge.xg)("/account/certification")}}),!1)},ue=()=>(0,Ne.V9)()?!0:(mt.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=(Ie,Le)=>Ie?!0:(mt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:me.createElement("div",null,me.createElement("p",null,Le||"\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:Ae,width:200}),me.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ge.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Ee=Ie=>{mt.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,Ie),"\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:Pe,alt:"\u4E8C\u7EF4\u7801",width:160})))})},be=(Ie,Le="")=>{const{shixunsDetail:{detail:Fe}}=(0,He.getDvaApp)()._store.getState();if((Fe==null?void 0:Fe.public)===2||(Fe==null?void 0:Fe.public)===1||(Fe==null?void 0:Fe.shixun_status)===3){let Oe="";return(Fe==null?void 0:Fe.public)===2&&(Oe="\u5DF2\u516C\u5F00"),(Fe==null?void 0:Fe.public)===1&&(Oe="\u5F85\u5BA1\u6838"),(Fe==null?void 0:Fe.shixun_status)===3&&(Oe="\u5DF2\u5173\u95ED"),mt.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",Oe,"\uFF0C",Le,"\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:Pe,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Fe==null?void 0:Fe.shixun_status)===2?(mt.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",Le,"\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:()=>{mt.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:()=>we(void 0,null,function*(){(yield Ie({type:"shixunsDetail/cancelRelease",payload:{id:Fe==null?void 0:Fe.identifier}})).status!==401&&(Ze.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ie({type:"shixunsDetail/getShixunsDetail",payload:{id:Fe==null?void 0:Fe.identifier}}),Ie({type:"practiceSetting/getCommonData",payload:{id:Fe==null?void 0:Fe.identifier}}))})})}}),!0):!1}},47257:function(kn){(function(fn){(function(We){if(1)kn.exports=We();else var He})(function(){var We,He,mt;return function(){function oe(Ze,Ne,ge){function ce(ye,De){if(!Ne[ye]){if(!Ze[ye]){var me=void 0;if(!De&&me)return require(ye,!0);if(Pe)return Pe(ye,!0);var we=new Error("Cannot find module '"+ye+"'");throw we.code="MODULE_NOT_FOUND",we}var fe=Ne[ye]={exports:{}};Ze[ye][0].call(fe.exports,function(z){var ee=Ze[ye][1][z];return ce(ee||z)},fe,fe.exports,oe,Ze,Ne,ge)}return Ne[ye].exports}for(var Pe=void 0,Ae=0;Ae<ge.length;Ae++)ce(ge[Ae]);return ce}return oe}()({1:[function(oe,Ze,Ne){"use strict";var ge=oe("./browser/client");ge.Buffer=oe("buffer").Buffer,ge.urllib=oe("../shims/xhr"),ge.version=oe("./browser/version").version,Ze.exports=ge},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator")),Pe=ge(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 Ae=oe("assert"),ye=oe("../common/utils/checkBucketName"),De=ye.checkBucketName,me=Ne;function we(z){return Array.isArray?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"}function fe(z){return z?we(z)?z:[z]:[]}me.useBucket=function(ee){return De(ee),this.options.bucket=ee,this},me.setBucket=function(ee){return De(ee),this.options.bucket=ee,this},me.getBucket=function(){return this.options.bucket},me.deleteBucket=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"",le),be.next=3,this.request(ue);case 3:if(pe=be.sent,!(pe.status===200||pe.status===204)){be.next=6;break}return be.abrupt("return",{res:pe.res});case 6:return be.next=8,this.requestError(pe);case 8:throw be.sent;case 9:case"end":return be.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketACL=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le,ue){var pe,Ee;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return pe=this._bucketRequestParams("PUT",re,"acl",ue),pe.headers={"x-oss-acl":le},pe.successStatuses=[200],Ie.next=5,this.request(pe);case 5:return Ee=Ie.sent,Ie.abrupt("return",{bucket:Ee.headers.location&&Ee.headers.location.substring(1)||null,res:Ee.res});case 7:case"end":return Ie.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketACL=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ue=this._bucketRequestParams("GET",re,"acl",le),ue.successStatuses=[200],ue.xmlResponse=!0,be.next=5,this.request(ue);case 5:return pe=be.sent,be.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 be.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketLogging=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le,ue){var pe,Ee,be;return ce.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return pe=this._bucketRequestParams("PUT",re,"logging",ue),Ee=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(re,`</TargetBucket>
|
|
|
`),le&&(Ee+="<TargetPrefix>".concat(le,`</TargetPrefix>
|
|
|
`)),Ee+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,pe.content=Ee,pe.mime="xml",pe.successStatuses=[200],Le.next=9,this.request(pe);case 9:return be=Le.sent,Le.abrupt("return",{res:be.res});case 11:case"end":return Le.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketLogging=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe,Ee;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return ue=this._bucketRequestParams("GET",re,"logging",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ie.next=5,this.request(ue);case 5:return pe=Ie.sent,Ee=pe.data.LoggingEnabled,Ie.abrupt("return",{enable:!!Ee,prefix:Ee&&Ee.TargetPrefix||null,res:pe.res});case 8:case"end":return Ie.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketLogging=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"logging",le),ue.successStatuses=[204,200],be.next=4,this.request(ue);case 4:return pe=be.sent,be.abrupt("return",{res:pe.res});case 6:case"end":return be.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketCORS=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le,ue){var pe,Ee,be,Ie,Le,Fe,Oe,je,ze,_e;return ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:for(le=le||[],Ae(le.length,"rules is required"),le.forEach(function(et){Ae(et.allowedOrigin,"allowedOrigin is required"),Ae(et.allowedMethod,"allowedMethod is required")}),pe=this._bucketRequestParams("PUT",re,"cors",ue),Ee=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,be=function(lt){Ee+="<AllowedOrigin>".concat(lt,"</AllowedOrigin>")},Ie=function(lt){Ee+="<AllowedMethod>".concat(lt,"</AllowedMethod>")},Le=function(lt){Ee+="<AllowedHeader>".concat(lt,"</AllowedHeader>")},Fe=function(lt){Ee+="<ExposeHeader>".concat(lt,"</ExposeHeader>")},Oe=0,je=le.length;Oe<je;Oe++)ze=le[Oe],Ee+="<CORSRule>",fe(ze.allowedOrigin).forEach(be),fe(ze.allowedMethod).forEach(Ie),fe(ze.allowedHeader).forEach(Le),fe(ze.exposeHeader).forEach(Fe),ze.maxAgeSeconds&&(Ee+="<MaxAgeSeconds>".concat(ze.maxAgeSeconds,"</MaxAgeSeconds>")),Ee+="</CORSRule>";return Ee+="</CORSConfiguration>",pe.content=Ee,pe.mime="xml",pe.successStatuses=[200],$e.next=16,this.request(pe);case 16:return _e=$e.sent,$e.abrupt("return",{res:_e.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,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe,Ee,be;return ce.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return ue=this._bucketRequestParams("GET",re,"cors",le),ue.successStatuses=[200],ue.xmlResponse=!0,Le.next=5,this.request(ue);case 5:return pe=Le.sent,Ee=[],pe.data&&pe.data.CORSRule&&(be=pe.data.CORSRule,we(be)||(be=[be]),be.forEach(function(Fe){var Oe={};Object.keys(Fe).forEach(function(je){Oe[je.slice(0,1).toLowerCase()+je.slice(1,je.length)]=Fe[je]}),Ee.push(Oe)})),Le.abrupt("return",{rules:Ee,res:pe.res});case 9:case"end":return Le.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketCORS=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"cors",le),ue.successStatuses=[204],be.next=4,this.request(ue);case 4:return pe=be.sent,be.abrupt("return",{res:pe.res});case 6:case"end":return be.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketReferer=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le,ue,pe){var Ee,be,Ie,Le;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(Ee=this._bucketRequestParams("PUT",re,"referer",pe),be=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,be+=" <AllowEmptyReferer>".concat(le?"true":"false",`</AllowEmptyReferer>
|
|
|
`),ue&&ue.length>0){for(be+=` <RefererList>
|
|
|
`,Ie=0;Ie<ue.length;Ie++)be+=" <Referer>".concat(ue[Ie],`</Referer>
|
|
|
`);be+=` </RefererList>
|
|
|
`}else be+=` <RefererList />
|
|
|
`;return be+="</RefererConfiguration>",Ee.content=be,Ee.mime="xml",Ee.successStatuses=[200],Oe.next=10,this.request(Ee);case 10:return Le=Oe.sent,Oe.abrupt("return",{res:Le.res});case 12:case"end":return Oe.stop()}},ae,this)}));function ee(ae,re,le,ue){return z.apply(this,arguments)}return ee}(),me.getBucketReferer=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){var ue,pe,Ee;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return ue=this._bucketRequestParams("GET",re,"referer",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ie.next=5,this.request(ue);case 5:return pe=Ie.sent,Ee=pe.data.RefererList.Referer||null,Ee&&(we(Ee)||(Ee=[Ee])),Ie.abrupt("return",{allowEmpty:pe.data.AllowEmptyReferer==="true",referers:Ee,res:pe.res});case 9:case"end":return Ie.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketReferer=function(){var z=(0,Pe.default)(ce.default.mark(function ae(re,le){return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,this.putBucketReferer(re,!0,null,le);case 2:return pe.abrupt("return",pe.sent);case 3:case"end":return pe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),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,Ze,Ne){(function(ge,ce){(function(){"use strict";var Pe=oe("@babel/runtime/helpers/interopRequireDefault"),Ae=Pe(oe("@babel/runtime/regenerator")),ye=Pe(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 De=oe("debug")("ali-oss"),me=oe("xml2js"),we=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"),Ee=oe("../common/utils/createRequest"),be=Ee.createRequest,Ie=oe("../common/utils/encoder"),Le=Ie.encoder,Fe=oe("../common/client/getReqUrl"),Oe=Fe.getReqUrl,je=oe("../common/utils/setSTSToken"),ze=je.setSTSToken,_e=oe("../common/utils/retry"),Ue=_e.retry,$e=oe("../common/utils/isFunction"),et=$e.isFunction,lt=new we;function ut(){var xt=z.name,ft=z.version;xt&&xt.toLowerCase&&xt.toLowerCase()==="ie"&&ft.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function yt(){return location&&location.protocol==="https:"}function qe(xt,ft){if(ut(),!(this instanceof qe))return new qe(xt,ft);xt&&xt.inited?this.options=xt:this.options=qe.initOptions(xt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ae,this.agent=this.options.agent||lt),this.ctx=ft,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Ze.exports=qe,qe.initOptions=function(ft){ft.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var gt=Object.assign({secure:yt(),useFetch:!1},ft);return pe(gt)};var ot=qe.prototype;ot.debug=De,fe(ot,oe("./object")),fe(ot,oe("./bucket")),fe(ot,oe("../common/bucket/getBucketWebsite")),fe(ot,oe("../common/bucket/putBucketWebsite")),fe(ot,oe("../common/bucket/deleteBucketWebsite")),fe(ot,oe("../common/bucket/getBucketLifecycle")),fe(ot,oe("../common/bucket/putBucketLifecycle")),fe(ot,oe("../common/bucket/deleteBucketLifecycle")),fe(ot,oe("../common/bucket/putBucketVersioning")),fe(ot,oe("../common/bucket/getBucketVersioning")),fe(ot,oe("../common/bucket/getBucketInventory")),fe(ot,oe("../common/bucket/deleteBucketInventory")),fe(ot,oe("../common/bucket/listBucketInventory")),fe(ot,oe("../common/bucket/putBucketInventory")),fe(ot,oe("../common/bucket/abortBucketWorm")),fe(ot,oe("../common/bucket/completeBucketWorm")),fe(ot,oe("../common/bucket/extendBucketWorm")),fe(ot,oe("../common/bucket/getBucketWorm")),fe(ot,oe("../common/bucket/initiateBucketWorm")),fe(ot,oe("./managed-upload")),fe(ot,oe("../common/multipart-copy")),fe(ot,oe("../common/multipart")),fe(ot,oe("../common/parallel")),ot.signature=function(ft){return this.debug("authorization stringToSign: %s",ft,"info"),ue.computeSignature(this.options.accessKeySecret,ft,this.options.headerEncoding)},ot._getReqUrl=Oe,ot.authorization=function(ft,gt,vt,Tt){var Et=ue.buildCanonicalString(ft.toUpperCase(),gt,{headers:Tt,parameters:vt});return ue.authorization(this.options.accessKeyId,this.options.accessKeySecret,Et,this.options.headerEncoding)},ot.request=function(){var xt=(0,ye.default)(Ae.default.mark(function ft(gt){var vt=this;return Ae.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if(!this.options.retryMax){Et.next=6;break}return Et.next=3,Ue(dt.bind(this),this.options.retryMax,{errorHandler:function(wt){var bt=function(nt){if(gt.stream)return!1;var xe=[-1,-2].includes(nt.status),Ce=vt.options.requestErrorRetryHandle||function(){return!0};return xe&&Ce(nt)};return!!bt(wt)}})(gt);case 3:return Et.abrupt("return",Et.sent);case 6:return Et.abrupt("return",dt.call(this,gt));case 7:case"end":return Et.stop()}},ft,this)}));return function(ft){return xt.apply(this,arguments)}}();function dt(xt){return St.apply(this,arguments)}function St(){return St=(0,ye.default)(Ae.default.mark(function xt(ft){var gt,vt,Tt,Et,Zt,wt;return Ae.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(!(this.options.stsToken&&et(this.options.refreshSTSToken))){it.next=3;break}return it.next=3,ze.call(this);case 3:return gt=be.call(this,ft),this.options.useFetch||(gt.params.mode="disable-fetch"),Et=!!ft.stream,it.prev=6,it.next=9,this.urllib.request(gt.url,gt.params);case 9:vt=it.sent,this.debug("response %s %s, got %s, headers: %j",ft.method,gt.url,vt.status,vt.headers,"info"),it.next=16;break;case 13:it.prev=13,it.t0=it.catch(6),Tt=it.t0;case 16:if(!(vt&&ft.successStatuses&&ft.successStatuses.indexOf(vt.status)===-1)){it.next=28;break}return it.next=19,this.requestError(vt);case 19:if(Zt=it.sent,!(Zt.code==="RequestTimeTooSkewed"&&!Et)){it.next=25;break}return this.options.amendTimeSkewed=+new Date(Zt.serverTime)-new Date,it.next=24,this.request(ft);case 24:return it.abrupt("return",it.sent);case 25:Zt.params=ft,it.next=32;break;case 28:if(!Tt){it.next=32;break}return it.next=31,this.requestError(Tt);case 31:Zt=it.sent;case 32:if(!Zt){it.next=34;break}throw Zt;case 34:if(!ft.xmlResponse){it.next=39;break}return it.next=37,this.parseXML(vt.data);case 37:wt=it.sent,vt.data=wt;case 39:return it.abrupt("return",vt);case 40:case"end":return it.stop()}},xt,this,[[6,13]])})),St.apply(this,arguments)}ot._getResource=function(ft){var gt="/";return ft.bucket&&(gt+="".concat(ft.bucket,"/")),ft.object&&(gt+=Le(ft.object,this.options.headerEncoding)),gt},ot._escape=function(ft){return ee.encodeURIComponent(ft).replace(/%2F/g,"/")},ot._getUserAgent=function(){var ft=ce&&ce.browser?"js":"nodejs",gt="aliyun-sdk-".concat(ft,"/").concat(re.version),vt=z.description;return!vt&&ce&&(vt="Node.js ".concat(ce.version.slice(1)," on ").concat(ce.platform," ").concat(ce.arch)),this._checkUserAgent("".concat(gt," ").concat(vt))},ot._checkUserAgent=function(ft){var gt=ft.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return gt},ot.checkBrowserAndVersion=function(ft,gt){return le.name===ft&&le.version.split(".")[0]===gt},ot.parseXML=function(ft){return new Promise(function(gt,vt){ge.isBuffer(ft)&&(ft=ft.toString()),me.parseString(ft,{explicitRoot:!1,explicitArray:!1},function(Tt,Et){Tt?vt(Tt):gt(Et)})})},ot.requestError=function(){var xt=(0,ye.default)(Ae.default.mark(function gt(vt){var Tt,Et,Zt,wt;return Ae.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(Tt=null,!(!vt.data||!vt.data.length)){it.next=5;break}vt.status===-1||vt.status===-2?(Tt=new Error(vt.message),Tt.name=vt.name,Tt.status=vt.status,Tt.code=vt.name):(vt.status===404?(Tt=new Error("Object not exists"),Tt.name="NoSuchKeyError",Tt.status=404,Tt.code="NoSuchKey"):vt.status===412?(Tt=new Error("Pre condition failed"),Tt.name="PreconditionFailedError",Tt.status=412,Tt.code="PreconditionFailed"):(Tt=new Error("Unknow error, status: ".concat(vt.status)),Tt.name="UnknownError",Tt.status=vt.status),Tt.requestId=vt.headers["x-oss-request-id"],Tt.host=""),it.next=32;break;case 5:return Et=String(vt.data),this.debug("request response error data: %s",Et,"error"),it.prev=7,it.next=10,this.parseXML(Et);case 10:if(it.t0=it.sent,it.t0){it.next=13;break}it.t0={};case 13:Zt=it.t0,it.next=23;break;case 16:return it.prev=16,it.t1=it.catch(7),this.debug(Et,"error"),it.t1.message+=`
|
|
|
raw xml: `.concat(Et),it.t1.status=vt.status,it.t1.requestId=vt.headers["x-oss-request-id"],it.abrupt("return",it.t1);case 23:wt=Zt.Message||"unknow request error, status: ".concat(vt.status),Zt.Condition&&(wt+=" (condition: ".concat(Zt.Condition,")")),Tt=new Error(wt),Tt.name=Zt.Code?"".concat(Zt.Code,"Error"):"UnknownError",Tt.status=vt.status,Tt.code=Zt.Code,Tt.requestId=Zt.RequestId,Tt.hostId=Zt.HostId,Tt.serverTime=Zt.ServerTime;case 32:return this.debug("generate error %j",Tt,"error"),it.abrupt("return",Tt);case 34:case"end":return it.stop()}},gt,this,[[7,16]])}));function ft(gt){return xt.apply(this,arguments)}return ft}()}).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,Ze,Ne){(function(ge){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),Pe=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 Ae=ce(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("util"),De=oe("path"),me=oe("mime"),we=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=Ne;ue.multipartUpload=function(){var Le=(0,Ae.default)(Pe.default.mark(function Oe(je,ze){var _e,Ue,$e,et,lt,ut,yt,qe,ot,dt=arguments;return Pe.default.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(_e=dt.length>2&&dt[2]!==void 0?dt[2]:{},this.resetCancelFlag(),_e.disabledMD5=_e.disabledMD5===void 0?!0:!!_e.disabledMD5,!(_e.checkpoint&&_e.checkpoint.uploadId)){xt.next=8;break}return ze&&ae(ze)&&(_e.checkpoint.file=ze),xt.next=7,this._resumeMultipart(_e.checkpoint,_e);case 7:return xt.abrupt("return",xt.sent);case 8:return Ue=102400,_e.mime||(ae(ze)?_e.mime=me.getType(De.extname(ze.name)):z(ze)?_e.mime=ze.type:le(ze)?_e.mime="":_e.mime=me.getType(De.extname(ze))),_e.headers=_e.headers||{},this._convertMetaToHeaders(_e.meta,_e.headers),xt.next=14,this._getFileSize(ze);case 14:if($e=xt.sent,!($e<Ue)){xt.next=26;break}return _e.contentLength=$e,xt.next=19,this.put(je,ze,_e);case 19:if(et=xt.sent,!(_e&&_e.progress)){xt.next=23;break}return xt.next=23,_e.progress(1);case 23:return lt={res:et.res,bucket:this.options.bucket,name:je,etag:et.res.headers.etag},(_e.headers&&_e.headers["x-oss-callback"]||_e.callback)&&(lt.data=et.data),xt.abrupt("return",lt);case 26:if(!(_e.partSize&&parseInt(_e.partSize,10)!==_e.partSize)){xt.next=28;break}throw new Error("partSize must be int number");case 28:if(!(_e.partSize&&_e.partSize<Ue)){xt.next=30;break}throw new Error("partSize must not be smaller than ".concat(Ue));case 30:return xt.next=32,this.initMultipartUpload(je,_e);case 32:if(ut=xt.sent,yt=ut.uploadId,qe=this._getPartSize($e,_e.partSize),ot={file:ze,name:je,fileSize:$e,partSize:qe,uploadId:yt,doneParts:[]},!(_e&&_e.progress)){xt.next=39;break}return xt.next=39,_e.progress(0,ot,ut.res);case 39:return xt.next=41,this._resumeMultipart(ot,_e);case 41:return xt.abrupt("return",xt.sent);case 42:case"end":return xt.stop()}},Oe,this)}));function Fe(Oe,je){return Le.apply(this,arguments)}return Fe}(),ue._resumeMultipart=function(){var Le=(0,Ae.default)(Pe.default.mark(function Oe(je,ze){var _e,Ue,$e,et,lt,ut,yt,qe,ot,dt,St,xt,ft,gt,vt,Tt,Et,Zt,wt;return Pe.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(_e=this,!this.isCancel()){it.next=3;break}throw this._makeCancelEvent();case 3:return Ue=je.file,$e=je.fileSize,et=je.partSize,lt=je.uploadId,ut=je.doneParts,yt=je.name,qe=[],ut.length>0&&we(ut).to(qe),ot=this._divideParts($e,et),dt=ot.length,St=!1,xt=function(xe,Ce){return new Promise(function(){var Ye=(0,Ae.default)(Pe.default.mark(function Je(Me,Ge){var Ke,Ve,Qe,ht,At;return Pe.default.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(Ot.prev=0,xe.isCancel()){Ot.next=29;break}return Ke=ot[Ce-1],Ot.next=5,xe._createBuffer(Ue,Ke.start,Ke.end);case 5:return Ve=Ot.sent,Qe={content:Ve,size:Ke.end-Ke.start},Ot.prev=7,Ot.next=10,xe._uploadPart(yt,lt,Ce,Qe,ze);case 10:ht=Ot.sent,Ot.next=18;break;case 13:if(Ot.prev=13,Ot.t0=Ot.catch(7),Ot.t0.status!==404){Ot.next=17;break}throw xe._makeAbortEvent();case 17:throw Ot.t0;case 18:if(!(!xe.isCancel()&&!St)){Ot.next=26;break}if(je.doneParts.push({number:Ce,etag:ht.res.headers.etag}),!ze.progress){Ot.next=23;break}return Ot.next=23,ze.progress(ut.length/(dt+1),je,ht.res);case 23:Me({number:Ce,etag:ht.res.headers.etag}),Ot.next=27;break;case 26:Me();case 27:Ot.next=30;break;case 29:Me();case 30:Ot.next=41;break;case 32:Ot.prev=32,Ot.t1=Ot.catch(0),At=new Error,At.name=Ot.t1.name,At.message=Ot.t1.message,At.stack=Ot.t1.stack,At.partNum=Ce,we(Ot.t1).to(At),Ge(At);case 41:case"end":return Ot.stop()}},Je,null,[[0,32],[7,13]])}));return function(Je,Me){return Ye.apply(this,arguments)}}())},ft=Array.from(new Array(dt),function(nt,xe){return xe+1}),gt=qe.map(function(nt){return nt.number}),vt=ft.filter(function(nt){return gt.indexOf(nt)<0}),Tt=5,Et=ze.parallel||Tt,it.next=17,this._parallel(vt,Et,function(nt){return new Promise(function(xe,Ce){xt(_e,nt).then(function(Ye){Ye&&qe.push(Ye),xe()}).catch(function(Ye){Ce(Ye)})})});case 17:if(Zt=it.sent,St=!0,wt=Zt.find(function(nt){return nt.name==="abort"}),!wt){it.next=22;break}throw wt;case 22:if(!this.isCancel()){it.next=25;break}throw xt=null,this._makeCancelEvent();case 25:if(!(Zt&&Zt.length>0)){it.next=28;break}throw Zt[0].message="Failed to upload some parts with error: ".concat(Zt[0].toString()," part_num: ").concat(Zt[0].partNum),Zt[0];case 28:return it.next=30,this.completeMultipartUpload(yt,lt,qe,ze);case 30:return it.abrupt("return",it.sent);case 31:case"end":return it.stop()}},Oe,this)}));function Fe(Oe,je){return Le.apply(this,arguments)}return Fe}(),ue._getFileSize=function(){var Le=(0,Ae.default)(Pe.default.mark(function Oe(je){return Pe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(!le(je)){_e.next=4;break}return _e.abrupt("return",je.length);case 4:if(!(z(je)||ae(je))){_e.next=6;break}return _e.abrupt("return",je.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return _e.stop()}},Oe)}));function Fe(Oe){return Le.apply(this,arguments)}return Fe}();var pe=oe("stream"),Ee=pe.Readable;function be(Le,Fe){if(!(this instanceof be))return new be(Le,Fe);Ee.call(this,Fe),this.file=Le,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ye.inherits(be,Ee),be.prototype.readFileAndPush=function(Fe){if(this.fileBuffer)for(var Oe=!0;Oe&&this.fileBuffer&&this.start<this.fileBuffer.length;){var je=this.start,ze=je+Fe;ze=ze>this.fileBuffer.length?this.fileBuffer.length:ze,this.start=ze,Oe=this.push(this.fileBuffer.slice(je,ze))}},be.prototype._read=function(Fe){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 Oe=16*1024;Fe=Fe||Oe;var je=this;this.reader.onload=function(_e){je.fileBuffer=ge.from(new Uint8Array(_e.target.result)),je.file=null,je.readFileAndPush(Fe)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(Fe)};function Ie(Le){return Le.arrayBuffer?Le.arrayBuffer():new Promise(function(Fe,Oe){var je=new FileReader;je.onload=function(ze){Fe(ze.target.result)},je.onerror=function(ze){Oe(ze)},je.readAsArrayBuffer(Le)})}ue._createBuffer=function(){var Le=(0,Ae.default)(Pe.default.mark(function Oe(je,ze,_e){var Ue,$e;return Pe.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(!(z(je)||ae(je))){lt.next=8;break}return Ue=je.slice(ze,_e),lt.next=4,Ie(Ue);case 4:return $e=lt.sent,lt.abrupt("return",ge.from($e));case 8:if(!le(je)){lt.next=12;break}return lt.abrupt("return",je.subarray(ze,_e));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return lt.stop()}},Oe)}));function Fe(Oe,je,ze){return Le.apply(this,arguments)}return Fe}(),ue._getPartSize=function(Fe,Oe){var je=1e4,ze=1*1024*1024;Oe||(Oe=ze);var _e=Math.ceil(Fe/je);return Oe<_e&&(Oe=_e,console.warn("partSize has been set to ".concat(Oe,", because the partSize you provided causes partNumber to be greater than 10,000"))),Oe},ue._divideParts=function(Fe,Oe){for(var je=Math.ceil(Fe/Oe),ze=[],_e=0;_e<je;_e++){var Ue=Oe*_e,$e=Math.min(Ue+Oe,Fe);ze.push({start:Ue,end:$e})}return ze}}).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,Ze,Ne){"use strict";var ge=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=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("fs"),ye=oe("copy-to"),De=oe("path"),me=oe("mime"),we=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"),Ee=pe.obj2xml,be=Ne;be.append=function(){var Ie=(0,Pe.default)(ce.default.mark(function Fe(Oe,je,ze){var _e;return ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return ze=ze||{},ze.position===void 0&&(ze.position="0"),ze.subres={append:"",position:ze.position},ze.method="POST",$e.next=6,this.put(Oe,je,ze);case 6:return _e=$e.sent,_e.nextAppendPosition=_e.res.headers["x-oss-next-append-position"],$e.abrupt("return",_e);case 9:case"end":return $e.stop()}},Fe,this)}));function Le(Fe,Oe,je){return Ie.apply(this,arguments)}return Le}(),be.put=function(){var Ie=(0,Pe.default)(ce.default.mark(function Fe(Oe,je,ze){var _e,Ue,$e,et,lt;return ce.default.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(ze=ze||{},ze.disabledMD5=ze.disabledMD5===void 0?!0:!!ze.disabledMD5,ze.headers=ze.headers||{},Oe=this._objectName(Oe),!ue(je)){yt.next=8;break}_e=je,yt.next=19;break;case 8:if(!(ee(je)||re(je))){yt.next=18;break}return ze.mime||(re(je)?ze.mime=me.getType(De.extname(je.name)):ze.mime=je.type),yt.next=12,this._createBuffer(je,0,je.size);case 12:return _e=yt.sent,yt.next=15,this._getFileSize(je);case 15:ze.contentLength=yt.sent,yt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(ze.meta,ze.headers),Ue=ze.method||"PUT",$e=this._objectRequestParams(Ue,Oe,ze),we.encodeCallback($e,ze),$e.mime=ze.mime,$e.disabledMD5=ze.disabledMD5,$e.content=_e,$e.successStatuses=[200],yt.next=29,this.request($e);case 29:return et=yt.sent,lt={name:Oe,url:this._objectUrl(Oe),res:et.res},$e.headers&&$e.headers["x-oss-callback"]&&(lt.data=JSON.parse(et.data.toString())),yt.abrupt("return",lt);case 33:case"end":return yt.stop()}},Fe,this)}));function Le(Fe,Oe,je){return Ie.apply(this,arguments)}return Le}(),be.putStream=function(){var Ie=(0,Pe.default)(ce.default.mark(function Fe(Oe,je,ze){var _e,Ue,$e,et;return ce.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ze=ze||{},ze.headers=ze.headers||{},Oe=this._objectName(Oe),ze.contentLength?ze.headers["Content-Length"]=ze.contentLength:ze.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(ze.meta,ze.headers),_e=ze.method||"PUT",Ue=this._objectRequestParams(_e,Oe,ze),we.encodeCallback(Ue,ze),Ue.mime=ze.mime,Ue.stream=je,Ue.successStatuses=[200],ut.next=13,this.request(Ue);case 13:return $e=ut.sent,et={name:Oe,url:this._objectUrl(Oe),res:$e.res},Ue.headers&&Ue.headers["x-oss-callback"]&&(et.data=JSON.parse($e.data.toString())),ut.abrupt("return",et);case 17:case"end":return ut.stop()}},Fe,this)}));function Le(Fe,Oe,je){return Ie.apply(this,arguments)}return Le}(),fe(be,oe("../common/object/copyObject")),fe(be,oe("../common/object/getObjectTagging")),fe(be,oe("../common/object/putObjectTagging")),fe(be,oe("../common/object/deleteObjectTagging")),fe(be,oe("../common/image")),fe(be,oe("../common/object/getBucketVersions")),fe(be,oe("../common/object/getACL")),fe(be,oe("../common/object/putACL")),fe(be,oe("../common/object/head")),fe(be,oe("../common/object/delete")),fe(be,oe("../common/object/get")),fe(be,oe("../common/object/putSymlink")),fe(be,oe("../common/object/getSymlink")),fe(be,oe("../common/object/deleteMulti")),fe(be,oe("../common/object/getObjectMeta")),fe(be,oe("../common/object/getObjectUrl")),fe(be,oe("../common/object/generateObjectUrl")),fe(be,oe("../common/object/signatureUrl")),fe(be,oe("../common/object/asyncSignatureUrl")),be.putMeta=function(){var Ie=(0,Pe.default)(ce.default.mark(function Fe(Oe,je,ze){var _e;return ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,this.copy(Oe,Oe,{meta:je||{},timeout:ze&&ze.timeout,ctx:ze&&ze.ctx});case 2:return _e=$e.sent,$e.abrupt("return",_e);case 4:case"end":return $e.stop()}},Fe,this)}));function Le(Fe,Oe,je){return Ie.apply(this,arguments)}return Le}(),be.list=function(){var Ie=(0,Pe.default)(ce.default.mark(function Fe(Oe,je){var ze,_e,Ue,$e,et;return ce.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ze=this._objectRequestParams("GET","",je),ze.query=Oe,ze.xmlResponse=!0,ze.successStatuses=[200],ut.next=6,this.request(ze);case 6:return _e=ut.sent,Ue=_e.data.Contents||[],$e=this,Ue&&(Array.isArray(Ue)||(Ue=[Ue]),Ue=Ue.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}}})),et=_e.data.CommonPrefixes||null,et&&(Array.isArray(et)||(et=[et]),et=et.map(function(yt){return yt.Prefix})),ut.abrupt("return",{res:_e.res,objects:Ue,prefixes:et,nextMarker:_e.data.NextMarker||null,isTruncated:_e.data.IsTruncated==="true"});case 13:case"end":return ut.stop()}},Fe,this)}));function Le(Fe,Oe){return Ie.apply(this,arguments)}return Le}(),be.listV2=function(){var Ie=(0,Pe.default)(ce.default.mark(function Fe(Oe){var je,ze,_e,Ue,$e,et,lt,ut=arguments;return ce.default.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return je=ut.length>1&&ut[1]!==void 0?ut[1]:{},ze=Oe["continuation-token"]||Oe.continuationToken,ze&&(je.subres=Object.assign({"continuation-token":ze},je.subres)),_e=this._objectRequestParams("GET","",je),_e.query=Object.assign({"list-type":2},Oe),delete _e.query["continuation-token"],delete _e.query.continuationToken,_e.xmlResponse=!0,_e.successStatuses=[200],qe.next=11,this.request(_e);case 11:return Ue=qe.sent,$e=Ue.data.Contents||[],et=this,$e&&(Array.isArray($e)||($e=[$e]),$e=$e.map(function(ot){var dt=null;return ot.Owner&&(dt={id:ot.Owner.ID,displayName:ot.Owner.DisplayName}),{name:ot.Key,url:et._objectUrl(ot.Key),lastModified:ot.LastModified,etag:ot.ETag,type:ot.Type,size:Number(ot.Size),storageClass:ot.StorageClass,owner:dt}})),lt=Ue.data.CommonPrefixes||null,lt&&(Array.isArray(lt)||(lt=[lt]),lt=lt.map(function(ot){return ot.Prefix})),qe.abrupt("return",{res:Ue.res,objects:$e,prefixes:lt,isTruncated:Ue.data.IsTruncated==="true",keyCount:+Ue.data.KeyCount,continuationToken:Ue.data.ContinuationToken||null,nextContinuationToken:Ue.data.NextContinuationToken||null});case 18:case"end":return qe.stop()}},Fe,this)}));function Le(Fe){return Ie.apply(this,arguments)}return Le}(),be.restore=function(){var Ie=(0,Pe.default)(ce.default.mark(function Fe(Oe){var je,ze,_e,Ue,$e=arguments;return ce.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return je=$e.length>1&&$e[1]!==void 0?$e[1]:{type:"Archive"},je=je||{},je.subres=Object.assign({restore:""},je.subres),je.versionId&&(je.subres.versionId=je.versionId),ze=this._objectRequestParams("POST",Oe,je),je.type==="ColdArchive"&&(_e={RestoreRequest:{Days:je.Days?je.Days:2,JobParameters:{Tier:je.JobParameters?je.JobParameters:"Standard"}}},ze.content=Ee(_e,{headers:!0}),ze.mime="xml"),ze.successStatuses=[202],lt.next=9,this.request(ze);case 9:return Ue=lt.sent,lt.abrupt("return",{res:Ue.res});case 11:case"end":return lt.stop()}},Fe,this)}));function Le(Fe){return Ie.apply(this,arguments)}return Le}(),be._objectUrl=function(Le){return this._getReqUrl({bucket:this.options.bucket,object:Le})},be._objectRequestParams=function(Le,Fe,Oe){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Oe=Oe||{},Fe=this._objectName(Fe);var je={object:Fe,bucket:this.options.bucket,method:Le,subres:Oe&&Oe.subres,timeout:Oe&&Oe.timeout,ctx:Oe&&Oe.ctx};return Oe.headers&&(je.headers={},ye(Oe.headers).to(je.headers)),je},be._objectName=function(Le){return Le.replace(/^\/+/,"")},be._convertMetaToHeaders=function(Le,Fe){Le&&Object.keys(Le).forEach(function(Oe){Fe["x-oss-meta-".concat(Oe)]=Le[Oe]})},be._deleteFileSafe=function(Le){var Fe=this;return new Promise(function(Oe){Ae.exists(Le,function(je){je?Ae.unlink(Le,function(ze){ze&&Fe.debug("unlink %j error: %s",Le,ze,"error"),Oe()}):Oe()})})}},{"../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,Ze,Ne){"use strict";Ne.version="6.18.1"},{}],7:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.abortBucketWorm=void 0;var Ae=oe("../utils/checkBucketName");function ye(me,we){return De.apply(this,arguments)}function De(){return De=(0,Pe.default)(ce.default.mark(function me(we,fe){var z,ee;return ce.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return Ae.checkBucketName(we),z=this._bucketRequestParams("DELETE",we,"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)})),De.apply(this,arguments)}Ne.abortBucketWorm=ye},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.completeBucketWorm=void 0;var Ae=oe("../utils/checkBucketName");function ye(me,we,fe){return De.apply(this,arguments)}function De(){return De=(0,Pe.default)(ce.default.mark(function me(we,fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Ae.checkBucketName(we),ee=this._bucketRequestParams("POST",we,{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)})),De.apply(this,arguments)}Ne.completeBucketWorm=ye},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.deleteBucketInventory=void 0;var Ae=oe("../utils/checkBucketName");function ye(me,we){return De.apply(this,arguments)}function De(){return De=(0,Pe.default)(ce.default.mark(function me(we,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),Ae.checkBucketName(we),ae=this._bucketRequestParams("DELETE",we,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)})),De.apply(this,arguments)}Ne.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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("../utils/checkBucketName"),ye=Ae.checkBucketName,De=Ne;De.deleteBucketLifecycle=function(){var me=(0,Pe.default)(ce.default.mark(function fe(z,ee){var ae,re;return ce.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ye(z),ae=this._bucketRequestParams("DELETE",z,"lifecycle",ee),ae.successStatuses=[204],ue.next=5,this.request(ae);case 5:return re=ue.sent,ue.abrupt("return",{res:re.res});case 7:case"end":return ue.stop()}},fe,this)}));function we(fe,z){return me.apply(this,arguments)}return we}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("../utils/checkBucketName"),ye=Ae.checkBucketName,De=Ne;De.deleteBucketWebsite=function(){var me=(0,Pe.default)(ce.default.mark(function fe(z,ee){var ae,re;return ce.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ye(z),ae=this._bucketRequestParams("DELETE",z,"website",ee),ae.successStatuses=[204],ue.next=5,this.request(ae);case 5:return re=ue.sent,ue.abrupt("return",{res:re.res});case 7:case"end":return ue.stop()}},fe,this)}));function we(fe,z){return me.apply(this,arguments)}return we}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.extendBucketWorm=void 0;var Ae=oe("../utils/checkBucketName"),ye=oe("../utils/obj2xml");function De(we,fe,z,ee){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(ce.default.mark(function we(fe,z,ee,ae){var re,le,ue;return ce.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ae.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],Ee.next=8,this.request(re);case 8:return ue=Ee.sent,Ee.abrupt("return",{res:ue.res,status:ue.status});case 10:case"end":return Ee.stop()}},we,this)})),me.apply(this,arguments)}Ne.extendBucketWorm=De},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.getBucketInventory=void 0;var Ae=oe("../utils/checkBucketName"),ye=oe("../utils/formatInventoryConfig");function De(we,fe){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(ce.default.mark(function we(fe,z){var ee,ae,re,le,ue=arguments;return ce.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ee=ue.length>2&&ue[2]!==void 0?ue[2]:{},ae=Object.assign({inventory:"",inventoryId:z},ee.subres),Ae.checkBucketName(fe),re=this._bucketRequestParams("GET",fe,ae,ee),re.successStatuses=[200],re.xmlResponse=!0,Ee.next=8,this.request(re);case 8:return le=Ee.sent,Ee.abrupt("return",{status:le.status,res:le.res,inventory:ye.formatInventoryConfig(le.data)});case 10:case"end":return Ee.stop()}},we,this)})),me.apply(this,arguments)}Ne.getBucketInventory=De},{"../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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("../utils/checkBucketName"),ye=Ae.checkBucketName,De=oe("../utils/isArray"),me=De.isArray,we=oe("../utils/formatObjKey"),fe=we.formatObjKey,z=Ne;z.getBucketLifecycle=function(){var ee=(0,Pe.default)(ce.default.mark(function re(le,ue){var pe,Ee,be;return ce.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return ye(le),pe=this._bucketRequestParams("GET",le,"lifecycle",ue),pe.successStatuses=[200],pe.xmlResponse=!0,Le.next=6,this.request(pe);case 6:return Ee=Le.sent,be=Ee.data.Rule||null,be&&(me(be)||(be=[be]),be=be.map(function(Fe){return Fe.ID&&(Fe.id=Fe.ID,delete Fe.ID),Fe.Tag&&!me(Fe.Tag)&&(Fe.Tag=[Fe.Tag]),fe(Fe,"firstLowerCase")})),Le.abrupt("return",{rules:be,res:Ee.res});case 10:case"end":return Le.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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("../utils/checkBucketName"),ye=Ae.checkBucketName,De=Ne;De.getBucketVersioning=function(){var me=(0,Pe.default)(ce.default.mark(function fe(z,ee){var ae,re,le;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ye(z),ae=this._bucketRequestParams("GET",z,"versioning",ee),ae.xmlResponse=!0,ae.successStatuses=[200],pe.next=6,this.request(ae);case 6:return re=pe.sent,le=re.data.Status,pe.abrupt("return",{status:re.status,versionStatus:le,res:re.res});case 9:case"end":return pe.stop()}},fe,this)}));function we(fe,z){return me.apply(this,arguments)}return we}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("../utils/checkBucketName"),ye=Ae.checkBucketName,De=oe("../utils/isObject"),me=De.isObject,we=Ne;we.getBucketWebsite=function(){var fe=(0,Pe.default)(ce.default.mark(function ee(ae,re){var le,ue,pe;return ce.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ye(ae),le=this._bucketRequestParams("GET",ae,"website",re),le.successStatuses=[200],le.xmlResponse=!0,be.next=6,this.request(le);case 6:return ue=be.sent,pe=[],ue.data.RoutingRules&&ue.data.RoutingRules.RoutingRule&&(me(ue.data.RoutingRules.RoutingRule)?pe=[ue.data.RoutingRules.RoutingRule]:pe=ue.data.RoutingRules.RoutingRule),be.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 be.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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.getBucketWorm=void 0;var Ae=oe("../utils/checkBucketName"),ye=oe("../utils/dataFix");function De(we,fe){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(ce.default.mark(function we(fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Ae.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()}},we,this)})),me.apply(this,arguments)}Ne.getBucketWorm=De},{"../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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.initiateBucketWorm=void 0;var Ae=oe("../utils/obj2xml"),ye=oe("../utils/checkBucketName");function De(we,fe,z){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(ce.default.mark(function we(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=Ae.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()}},we,this)})),me.apply(this,arguments)}Ne.initiateBucketWorm=De},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.listBucketInventory=void 0;var Ae=oe("../utils/checkBucketName"),ye=oe("../utils/formatInventoryConfig");function De(we){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(ce.default.mark(function we(fe){var z,ee,ae,re,le,ue,pe,Ee,be=arguments;return ce.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return z=be.length>1&&be[1]!==void 0?be[1]:{},ee=z.continuationToken,ae=Object.assign({inventory:""},ee&&{"continuation-token":ee},z.subres),Ae.checkBucketName(fe),re=this._bucketRequestParams("GET",fe,ae,z),re.successStatuses=[200],re.xmlResponse=!0,Le.next=9,this.request(re);case 9:return le=Le.sent,ue=le.data,pe=le.res,Ee=le.status,Le.abrupt("return",{isTruncated:ue.IsTruncated==="true",nextContinuationToken:ue.NextContinuationToken,inventoryList:ye.formatInventoryConfig(ue.InventoryConfiguration,!0),status:Ee,res:pe});case 12:case"end":return Le.stop()}},we,this)})),me.apply(this,arguments)}Ne.listBucketInventory=De},{"../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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.putBucketInventory=void 0;var Ae=oe("../utils/checkBucketName"),ye=oe("../utils/obj2xml");function De(we,fe){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(ce.default.mark(function we(fe,z){var ee,ae,re,le,ue,pe,Ee,be,Ie,Le,Fe,Oe=arguments;return ce.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ee=Oe.length>2&&Oe[2]!==void 0?Oe[2]:{},ae=Object.assign({inventory:"",inventoryId:z.id},ee.subres),Ae.checkBucketName(fe),re=z.OSSBucketDestination,le=z.optionalFields,ue=z.includedObjectVersions,pe="acs:oss:::",Ee="acs:ram::".concat(re.accountId,":role/"),be={InventoryConfiguration:{Id:z.id,IsEnabled:z.isEnabled,Filter:{Prefix:z.prefix||""},Destination:{OSSBucketDestination:{Format:re.format,AccountId:re.accountId,RoleArn:"".concat(Ee).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)||[]}}},Ie=ye.obj2xml(be,{headers:!0,firstUpperCase:!0}),Le=this._bucketRequestParams("PUT",fe,ae,ee),Le.successStatuses=[200],Le.mime="xml",Le.content=Ie,ze.next=14,this.request(Le);case 14:return Fe=ze.sent,ze.abrupt("return",{status:Fe.status,res:Fe.res});case 16:case"end":return ze.stop()}},we,this)})),me.apply(this,arguments)}Ne.putBucketInventory=De},{"../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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(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 Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("../utils/checkBucketName"),ye=Ae.checkBucketName,De=oe("../utils/isArray"),me=De.isArray,we=oe("../utils/deepCopy"),fe=we.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"),Ee=pe.getStrBytesCount,be=Ne;be.putBucketLifecycle=function(){var je=(0,Pe.default)(ce.default.mark(function _e(Ue,$e,et){var lt,ut,yt,qe,ot;return ce.default.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(ye(Ue),me($e)){St.next=3;break}throw new Error("rules must be Array");case 3:return lt=this._bucketRequestParams("PUT",Ue,"lifecycle",et),ut=[],yt={LifecycleConfiguration:{Rule:ut}},$e.forEach(function(xt){Ie(xt),Oe(xt),xt.id&&(xt.ID=xt.id,delete xt.id),ut.push(xt)}),qe=re(yt,{headers:!0,firstUpperCase:!0}),lt.content=qe,lt.mime="xml",lt.successStatuses=[200],St.next=13,this.request(lt);case 13:return ot=St.sent,St.abrupt("return",{res:ot.res});case 15:case"end":return St.stop()}},_e,this)}));function ze(_e,Ue,$e){return je.apply(this,arguments)}return ze}();function Ie(je){je.days&&(je.expiration={days:je.days}),je.date&&(je.expiration={createdBeforeDate:je.date})}function Le(je,ze){var _e=je.days,Ue=je.createdBeforeDate;if(!_e&&!Ue)throw new Error("".concat(ze," must includes days or createdBeforeDate"));if(_e&&!/^[1-9][0-9]*$/.test(_e))throw new Error("days must be a positive integer");if(Ue&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Ue))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function Fe(je){if(!me(je)&&!ee(je))throw new Error("tag must be Object or Array");je=ee(je)?[je]:je;var ze={},_e=fe(je);_e.forEach(function(Ue){ze[Ue.key]=Ue.value}),ue(ze)}function Oe(je){if(je.id&&Ee(je.id)>255)throw new Error("ID is composed of 255 bytes at most");if(je.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(je.status))throw new Error("Status must be Enabled or Disabled");if(je.transition){if(!["IA","Archive"].includes(je.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Le(je.transition,"Transition")}if(je.expiration){if(!je.expiration.expiredObjectDeleteMarker)Le(je.expiration,"Expiration");else if(je.expiration.days||je.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(je.abortMultipartUpload&&Le(je.abortMultipartUpload,"AbortMultipartUpload"),!je.expiration&&!je.abortMultipartUpload&&!je.transition&&!je.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(je.tag){if(je.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");Fe(je.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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.includes.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("../utils/checkBucketName"),ye=Ae.checkBucketName,De=oe("../utils/obj2xml"),me=De.obj2xml,we=Ne;we.putBucketVersioning=function(){var fe=(0,Pe.default)(ce.default.mark(function ee(ae,re){var le,ue,pe,Ee,be=arguments;return ce.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(le=be.length>2&&be[2]!==void 0?be[2]:{},ye(ae),["Enabled","Suspended"].includes(re)){Le.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}),Le.next=10,this.request(ue);case 10:return Ee=Le.sent,Le.abrupt("return",{res:Ee.res,status:Ee.status});case 12:case"end":return Le.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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("../utils/checkBucketName"),ye=Ae.checkBucketName,De=oe("../utils/obj2xml"),me=De.obj2xml,we=oe("../utils/isArray"),fe=we.isArray,z=Ne;z.putBucketWebsite=function(){var ee=(0,Pe.default)(ce.default.mark(function re(le){var ue,pe,Ee,be,Ie,Le,Fe,Oe=arguments;return ce.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(ue=Oe.length>1&&Oe[1]!==void 0?Oe[1]:{},pe=Oe.length>2?Oe[2]:void 0,ye(le),Ee=this._bucketRequestParams("PUT",le,"website",pe),be={Suffix:ue.index||"index.html"},Ie={IndexDocument:be},Le={WebsiteConfiguration:Ie},ue.supportSubDir&&(be.SupportSubDir=ue.supportSubDir),ue.type&&(be.Type=ue.type),ue.error&&(Ie.ErrorDocument={Key:ue.error}),ue.routingRules===void 0){ze.next=14;break}if(fe(ue.routingRules)){ze.next=13;break}throw new Error("RoutingRules must be Array");case 13:Ie.RoutingRules={RoutingRule:ue.routingRules};case 14:return Le=me(Le),Ee.content=Le,Ee.mime="xml",Ee.successStatuses=[200],ze.next=20,this.request(Ee);case 20:return Fe=ze.sent,ze.abrupt("return",{res:Fe.res});case 22:case"end":return ze.stop()}},re,this)}));function ae(re){return ee.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(oe,Ze,Ne){(function(ge){(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"),Ne.encodeCallback=function(Pe,Ae){if(Pe.headers=Pe.headers||{},!Object.prototype.hasOwnProperty.call(Pe.headers,"x-oss-callback")&&Ae.callback){var ye={callbackUrl:encodeURI(Ae.callback.url),callbackBody:Ae.callback.body};Ae.callback.host&&(ye.callbackHost=Ae.callback.host),Ae.callback.contentType&&(ye.callbackBodyType=Ae.callback.contentType);var De=ge.from(JSON.stringify(ye)).toString("base64");if(Pe.headers["x-oss-callback"]=De,Ae.callback.customValue){var me={};Object.keys(Ae.callback.customValue).forEach(function(we){me["x:".concat(we)]=Ae.callback.customValue[we].toString()}),Pe.headers["x-oss-callback-var"]=ge.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,Ze,Ne){"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 ge=function(fe){return fe&&fe.__esModule?fe:{default:fe}};Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.getReqUrl=void 0;var ce=ge(oe("copy-to")),Pe=ge(oe("url")),Ae=ge(oe("merge-descriptors")),ye=ge(oe("is-type-of")),De=oe("../utils/isIP"),me=oe("../utils/checkConfigValid");function we(fe){var z={},ee=this.options.cname;me.checkConfigValid(this.options.endpoint,"endpoint"),ce.default(this.options.endpoint,!1).to(z),fe.bucket&&!ee&&!De.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&&Ae.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,Ae.default(re,le)}return z.query=re,Pe.default.format(z)}Ne.getReqUrl=we},{"../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,Ze,Ne){"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 ge=oe("humanize-ms"),ce=oe("url"),Pe=oe("../utils/checkBucketName"),Ae=Pe.checkBucketName,ye=oe("../utils/setRegion"),De=ye.setRegion,me=oe("../utils/checkConfigValid"),we=me.checkConfigValid;function fe(z,ee){we(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}Ze.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&&Ae(z.bucket);var ee=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},z);if(ee.accessKeyId=ee.accessKeyId.trim(),ee.accessKeySecret=ee.accessKeySecret.trim(),ee.timeout&&(ee.timeout=ge(ee.timeout)),ee.endpoint)ee.endpoint=fe(ee.endpoint,ee.secure);else if(ee.region)ee.endpoint=De(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,Ze,Ne){"use strict";var ge=oe("merge-descriptors"),ce=Ne;ge(ce,oe("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("../utils/checkBucketName"),ye=Ae.checkBucketName,De=oe("querystring"),me=oe("js-base64"),we=me.Base64.encode,fe=Ne;fe.processObjectSave=function(){var ee=(0,Pe.default)(ce.default.mark(function re(le,ue,pe,Ee){var be,Ie,Le,Fe;return ce.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return z(le,"sourceObject"),z(ue,"targetObject"),z(pe,"process"),ue=this._objectName(ue),Ee&&ye(Ee),be=this._objectRequestParams("POST",le,{subres:"x-oss-process"}),Ie=Ee?",b_".concat(we(Ee)):"",ue=we(ue),Le={"x-oss-process":"".concat(pe,"|sys/saveas,o_").concat(ue).concat(Ie)},be.content=De.stringify(Le),je.next=12,this.request(be);case 12:return Fe=je.sent,je.abrupt("return",{res:Fe.res,status:Fe.res.status});case 14:case"end":return je.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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(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 Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("debug")("ali-oss:multipart-copy"),ye=oe("copy-to"),De=Ne;De.uploadPartCopy=function(){var me=(0,Pe.default)(ce.default.mark(function fe(z,ee,ae,re,le){var ue,pe,Ee,be,Ie,Le=arguments;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return ue=Le.length>5&&Le[5]!==void 0?Le[5]:{},ue.headers=ue.headers||{},pe=ue.versionId||ue.subres&&ue.subres.versionId||null,pe?Ee="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey),"?versionId=").concat(pe):Ee="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey)),ue.headers["x-oss-copy-source"]=Ee,re&&(ue.headers["x-oss-copy-source-range"]="bytes=".concat(re)),ue.subres={partNumber:ae,uploadId:ee},be=this._objectRequestParams("PUT",z,ue),be.mime=ue.mime,be.successStatuses=[200],Oe.next=12,this.request(be);case 12:return Ie=Oe.sent,Oe.abrupt("return",{name:z,etag:Ie.res.headers.etag,res:Ie.res});case 14:case"end":return Oe.stop()}},fe,this)}));function we(fe,z,ee,ae,re){return me.apply(this,arguments)}return we}(),De.multipartUploadCopy=function(){var me=(0,Pe.default)(ce.default.mark(function fe(z,ee){var ae,re,le,ue,pe,Ee,be,Ie,Le,Fe,Oe,je,ze=arguments;return ce.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return ae=ze.length>2&&ze[2]!==void 0?ze[2]:{},this.resetCancelFlag(),re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},Ue.next=6,this._getObjectMeta(ee.sourceBucketName,ee.sourceKey,ue);case 6:if(pe=Ue.sent,Ee=pe.res.headers["content-length"],ee.startOffset=ee.startOffset||0,ee.endOffset=ee.endOffset||Ee,!(ae.checkpoint&&ae.checkpoint.uploadId)){Ue.next=14;break}return Ue.next=13,this._resumeMultipartCopy(ae.checkpoint,ee,ae);case 13:return Ue.abrupt("return",Ue.sent);case 14:if(be=102400,Ie=ee.endOffset-ee.startOffset,!(Ie<be)){Ue.next=18;break}throw new Error("copySize must not be smaller than ".concat(be));case 18:if(!(ae.partSize&&ae.partSize<be)){Ue.next=20;break}throw new Error("partSize must not be smaller than ".concat(be));case 20:return Ue.next=22,this.initMultipartUpload(z,ae);case 22:if(Le=Ue.sent,Fe=Le.uploadId,Oe=this._getPartSize(Ie,ae.partSize),je={name:z,copySize:Ie,partSize:Oe,uploadId:Fe,doneParts:[]},!(ae&&ae.progress)){Ue.next=29;break}return Ue.next=29,ae.progress(0,je,Le.res);case 29:return Ue.next=31,this._resumeMultipartCopy(je,ee,ae);case 31:return Ue.abrupt("return",Ue.sent);case 32:case"end":return Ue.stop()}},fe,this)}));function we(fe,z){return me.apply(this,arguments)}return we}(),De._resumeMultipartCopy=function(){var me=(0,Pe.default)(ce.default.mark(function fe(z,ee,ae){var re,le,ue,pe,Ee,be,Ie,Le,Fe,Oe,je,ze,_e,Ue,$e,et,lt,ut,yt,qe,ot;return ce.default.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(!this.isCancel()){St.next=2;break}throw this._makeCancelEvent();case 2:if(re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},pe=z.copySize,Ee=z.partSize,be=z.uploadId,Ie=z.doneParts,Le=z.name,Fe=this._divideMultipartCopyParts(pe,Ee,ee.startOffset),Oe=Fe.length,je={headers:{}},ae.copyheaders&&ye(ae.copyheaders).to(je.headers),le&&ye(ue).to(je),ze=function(ft,gt,vt){return new Promise(function(){var Tt=(0,Pe.default)(ce.default.mark(function Et(Zt,wt){var bt,it,nt;return ce.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(Ce.prev=0,ft.isCancel()){Ce.next=22;break}return bt=Fe[gt-1],it="".concat(bt.start,"-").concat(bt.end-1),Ce.prev=4,Ce.next=7,ft.uploadPartCopy(Le,be,gt,it,vt,je);case 7:nt=Ce.sent,Ce.next=15;break;case 10:if(Ce.prev=10,Ce.t0=Ce.catch(4),Ce.t0.status!==404){Ce.next=14;break}throw ft._makeAbortEvent();case 14:throw Ce.t0;case 15:if(ft.isCancel()){Ce.next=22;break}if(Ae("content-range ".concat(nt.res.headers["content-range"])),Ie.push({number:gt,etag:nt.res.headers.etag}),z.doneParts=Ie,!(ae&&ae.progress)){Ce.next=22;break}return Ce.next=22,ae.progress(Ie.length/Oe,z,nt.res);case 22:Zt(),Ce.next=29;break;case 25:Ce.prev=25,Ce.t1=Ce.catch(0),Ce.t1.partNum=gt,wt(Ce.t1);case 29:case"end":return Ce.stop()}},Et,null,[[0,25],[4,10]])}));return function(Et,Zt){return Tt.apply(this,arguments)}}())},_e=Array.from(new Array(Oe),function(xt,ft){return ft+1}),Ue=Ie.map(function(xt){return xt.number}),$e=_e.filter(function(xt){return Ue.indexOf(xt)<0}),et=5,lt=ae.parallel||et,!(this.checkBrowserAndVersion("Internet Explorer","10")||lt===1)){St.next=28;break}ut=0;case 18:if(!(ut<$e.length)){St.next=26;break}if(!this.isCancel()){St.next=21;break}throw this._makeCancelEvent();case 21:return St.next=23,ze(this,$e[ut],ee);case 23:ut++,St.next=18;break;case 26:St.next=40;break;case 28:return St.next=30,this._parallelNode($e,lt,ze,ee);case 30:if(yt=St.sent,qe=yt.find(function(xt){return xt.name==="abort"}),!qe){St.next=34;break}throw qe;case 34:if(!this.isCancel()){St.next=36;break}throw this._makeCancelEvent();case 36:if(!(yt&&yt.length>0)){St.next=40;break}throw ot=yt[0],ot.message="Failed to copy some parts with error: ".concat(ot.toString()," part_num: ").concat(ot.partNum),ot;case 40:return St.next=42,this.completeMultipartUpload(Le,be,Ie,ae);case 42:return St.abrupt("return",St.sent);case 43:case"end":return St.stop()}},fe,this)}));function we(fe,z,ee){return me.apply(this,arguments)}return we}(),De._divideMultipartCopyParts=function(we,fe,z){for(var ee=Math.ceil(we/fe),ae=[],re=0;re<ee;re++){var le=fe*re+z,ue=Math.min(le+fe,we+z);ae.push({start:le,end:ue})}return ae},De._getObjectMeta=function(){var me=(0,Pe.default)(ce.default.mark(function fe(z,ee,ae){var re,le;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return re=this.getBucket(),this.setBucket(z),pe.next=4,this.head(ee,ae);case 4:return le=pe.sent,this.setBucket(re),pe.abrupt("return",le);case 7:case"end":return pe.stop()}},fe,this)}));function we(fe,z,ee){return me.apply(this,arguments)}return we}()},{"@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,Ze,Ne){(function(ge){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),Pe=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 Ae=ce(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("copy-to"),De=oe("./callback"),me=oe("./utils/deepCopy"),we=me.deepCopyWith,fe=oe("./utils/isBuffer"),z=fe.isBuffer,ee=oe("./utils/omit"),ae=ee.omit,re=Ne;re.listUploads=function(){var le=(0,Ae.default)(Pe.default.mark(function pe(Ee,be){var Ie,Le,Fe,Oe;return Pe.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return be=be||{},Ie={},ye(be).to(Ie),Ie.subres="uploads",Le=this._objectRequestParams("GET","",Ie),Le.query=Ee,Le.xmlResponse=!0,Le.successStatuses=[200],ze.next=10,this.request(Le);case 10:return Fe=ze.sent,Oe=Fe.data.Upload||[],Array.isArray(Oe)||(Oe=[Oe]),Oe=Oe.map(function(_e){return{name:_e.Key,uploadId:_e.UploadId,initiated:_e.Initiated}}),ze.abrupt("return",{res:Fe.res,uploads:Oe,bucket:Fe.data.Bucket,nextKeyMarker:Fe.data.NextKeyMarker,nextUploadIdMarker:Fe.data.NextUploadIdMarker,isTruncated:Fe.data.IsTruncated==="true"});case 15:case"end":return ze.stop()}},pe,this)}));function ue(pe,Ee){return le.apply(this,arguments)}return ue}(),re.listParts=function(){var le=(0,Ae.default)(Pe.default.mark(function pe(Ee,be,Ie,Le){var Fe,Oe,je;return Pe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Le=Le||{},Fe={},ye(Le).to(Fe),Fe.subres={uploadId:be},Oe=this._objectRequestParams("GET",Ee,Fe),Oe.query=Ie,Oe.xmlResponse=!0,Oe.successStatuses=[200],_e.next=10,this.request(Oe);case 10:return je=_e.sent,_e.abrupt("return",{res:je.res,uploadId:je.data.UploadId,bucket:je.data.Bucket,name:je.data.Key,partNumberMarker:je.data.PartNumberMarker,nextPartNumberMarker:je.data.NextPartNumberMarker,maxParts:je.data.MaxParts,isTruncated:je.data.IsTruncated,parts:je.data.Part||[]});case 12:case"end":return _e.stop()}},pe,this)}));function ue(pe,Ee,be,Ie){return le.apply(this,arguments)}return ue}(),re.abortMultipartUpload=function(){var le=(0,Ae.default)(Pe.default.mark(function pe(Ee,be,Ie){var Le,Fe,Oe;return Pe.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return this._stop(),Ie=Ie||{},Le={},ye(Ie).to(Le),Le.subres={uploadId:be},Fe=this._objectRequestParams("DELETE",Ee,Le),Fe.successStatuses=[204],ze.next=9,this.request(Fe);case 9:return Oe=ze.sent,ze.abrupt("return",{res:Oe.res});case 11:case"end":return ze.stop()}},pe,this)}));function ue(pe,Ee,be){return le.apply(this,arguments)}return ue}(),re.initMultipartUpload=function(){var le=(0,Ae.default)(Pe.default.mark(function pe(Ee,be){var Ie,Le,Fe;return Pe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return be=be||{},Ie={},ye(be).to(Ie),Ie.headers=Ie.headers||{},this._convertMetaToHeaders(be.meta,Ie.headers),Ie.subres="uploads",Le=this._objectRequestParams("POST",Ee,Ie),Le.mime=be.mime,Le.xmlResponse=!0,Le.successStatuses=[200],je.next=12,this.request(Le);case 12:return Fe=je.sent,je.abrupt("return",{res:Fe.res,bucket:Fe.data.Bucket,name:Fe.data.Key,uploadId:Fe.data.UploadId});case 14:case"end":return je.stop()}},pe,this)}));function ue(pe,Ee){return le.apply(this,arguments)}return ue}(),re.uploadPart=function(){var le=(0,Ae.default)(Pe.default.mark(function pe(Ee,be,Ie,Le,Fe,Oe,je){var ze,_e;return Pe.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(ze={size:Oe-Fe},_e=ge&&ge.browser,!_e){$e.next=8;break}return $e.next=5,this._createBuffer(Le,Fe,Oe);case 5:ze.content=$e.sent,$e.next=11;break;case 8:return $e.next=10,this._createStream(Le,Fe,Oe);case 10:ze.stream=$e.sent;case 11:return $e.next=13,this._uploadPart(Ee,be,Ie,ze,je);case 13:return $e.abrupt("return",$e.sent);case 14:case"end":return $e.stop()}},pe,this)}));function ue(pe,Ee,be,Ie,Le,Fe,Oe){return le.apply(this,arguments)}return ue}(),re.completeMultipartUpload=function(){var le=(0,Ae.default)(Pe.default.mark(function pe(Ee,be,Ie,Le){var Fe,Oe,je,ze,_e,Ue,$e,et;return Pe.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:for(Fe=Ie.concat().sort(function(yt,qe){return yt.number-qe.number}).filter(function(yt,qe,ot){return!qe||yt.number!==ot[qe-1].number}),Oe=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,je=0;je<Fe.length;je++)ze=Fe[je],Oe+=`<Part>
|
|
|
`,Oe+="<PartNumber>".concat(ze.number,`</PartNumber>
|
|
|
`),Oe+="<ETag>".concat(ze.etag,`</ETag>
|
|
|
`),Oe+=`</Part>
|
|
|
`;return Oe+="</CompleteMultipartUpload>",Le=Le||{},_e={},_e=we(Le,function(yt){if(z(yt))return null}),_e.subres={uploadId:be},_e.headers=ae(_e.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ue=this._objectRequestParams("POST",Ee,_e),De.encodeCallback(Ue,_e),Ue.mime="xml",Ue.content=Oe,Ue.headers&&Ue.headers["x-oss-callback"]||(Ue.xmlResponse=!0),Ue.successStatuses=[200],ut.next=17,this.request(Ue);case 17:if($e=ut.sent,!Le.progress){ut.next=21;break}return ut.next=21,Le.progress(1,null,$e.res);case 21:return et={res:$e.res,bucket:Ue.bucket,name:Ee,etag:$e.res.headers.etag},Ue.headers&&Ue.headers["x-oss-callback"]&&(et.data=JSON.parse($e.data.toString())),ut.abrupt("return",et);case 24:case"end":return ut.stop()}},pe,this)}));function ue(pe,Ee,be,Ie){return le.apply(this,arguments)}return ue}(),re._uploadPart=function(){var le=(0,Ae.default)(Pe.default.mark(function pe(Ee,be,Ie,Le,Fe){var Oe,je,ze,_e;return Pe.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return Fe=Fe||{},Oe={},ye(Fe).to(Oe),Oe.headers=Oe.headers||{},Oe.headers["Content-Length"]=Le.size,Oe.headers=ae(Oe.headers,["x-oss-server-side-encryption"]),Oe.subres={partNumber:Ie,uploadId:be},je=this._objectRequestParams("PUT",Ee,Oe),je.mime=Oe.mime,ze=ge&&ge.browser,ze?je.content=Le.content:je.stream=Le.stream,je.successStatuses=[200],je.disabledMD5=Fe.disabledMD5,$e.next=15,this.request(je);case 15:if(_e=$e.sent,_e.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 Le.stream&&(Le.stream=null,je.stream=null),$e.abrupt("return",{name:Ee,etag:_e.res.headers.etag,res:_e.res});case 20:case"end":return $e.stop()}},pe,this)}));function ue(pe,Ee,be,Ie,Le){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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("url"),ye=oe("utility"),De=oe("copy-to"),me=oe("../../common/signUtils"),we=oe("../utils/isIP"),fe=we.isIP,z=oe("../utils/setSTSToken"),ee=z.setSTSToken,ae=oe("../utils/isFunction"),re=ae.isFunction,le=Ne;le.asyncSignatureUrl=function(){var ue=(0,Pe.default)(ce.default.mark(function Ee(be,Ie){var Le,Fe,Oe,je,ze;return ce.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(!fe(this.options.endpoint.hostname)){Ue.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Ie=Ie||{},be=this._objectName(be),Ie.method=Ie.method||"GET",Le=ye.timestamp()+(Ie.expires||1800),Fe={bucket:this.options.bucket,object:be},Oe=this._getResource(Fe),!(this.options.stsToken&&re(this.options.refreshSTSToken))){Ue.next=11;break}return Ue.next=11,ee.call(this);case 11:return this.options.stsToken&&(Ie["security-token"]=this.options.stsToken),je=me._signatureForURL(this.options.accessKeySecret,Ie,Oe,Le),ze=Ae.parse(this._getReqUrl(Fe)),ze.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Le,Signature:je.Signature},De(je.subResource).to(ze.query),Ue.abrupt("return",ze.format());case 17:case"end":return Ue.stop()}},Ee,this)}));function pe(Ee,be){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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(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 Pe=ge(oe("@babel/runtime/helpers/typeof")),Ae=ge(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("../utils/checkBucketName"),De=ye.checkBucketName,me=Ne,we=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];me.copy=function(){var fe=(0,Ae.default)(ce.default.mark(function ee(ae,re,le,ue){var pe,Ee,be;return ce.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return(0,Pe.default)(le)==="object"&&(ue=le),ue=ue||{},ue.headers=ue.headers||{},Object.keys(ue.headers).forEach(function(Fe){ue.headers["x-oss-copy-source-".concat(Fe.toLowerCase())]=ue.headers[Fe]}),(ue.meta||Object.keys(ue.headers).find(function(Fe){return we.includes(Fe.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],Le.next=14,this.request(pe);case 14:return Ee=Le.sent,be=Ee.data,be&&(be={etag:be.ETag,lastModified:be.LastModified}),Le.abrupt("return",{data:be,res:Ee.res});case 18:case"end":return Le.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")),De(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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=Ne;Ae.delete=function(){var ye=(0,Pe.default)(ce.default.mark(function me(we){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",we,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 De(me){return ye.apply(this,arguments)}return De}()},{"@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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("utility"),ye=oe("../utils/obj2xml"),De=ye.obj2xml,me=Ne;me.deleteMulti=function(){var we=(0,Pe.default)(ce.default.mark(function z(ee){var ae,re,le,ue,pe,Ee,be,Ie,Le,Fe,Oe,je,ze,_e=arguments;return ce.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(ae=_e.length>1&&_e[1]!==void 0?_e[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=Ae.escape(this._objectName(ee[le])):(pe=ee[le],Ee=pe.key,be=pe.versionId,ue.Key=Ae.escape(this._objectName(Ee)),ue.VersionId=be),re.push(ue);return Ie={Delete:{Quiet:!!ae.quiet,Object:re}},Le=De(Ie,{headers:!0}),ae.subres=Object.assign({delete:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),Fe=this._objectRequestParams("POST","",ae),Fe.mime="xml",Fe.content=Le,Fe.xmlResponse=!0,Fe.successStatuses=[200],$e.next=16,this.request(Fe);case 16:return Oe=$e.sent,je=Oe.data,ze=je&&je.Deleted||null,ze&&(Array.isArray(ze)||(ze=[ze])),$e.abrupt("return",{res:Oe.res,deleted:ze||[]});case 21:case"end":return $e.stop()}},z,this)}));function fe(z){return we.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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=Ne;Ae.deleteObjectTagging=function(){var ye=(0,Pe.default)(ce.default.mark(function me(we){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),we=this._objectName(we),z=this._objectRequestParams("DELETE",we,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 De(me){return ye.apply(this,arguments)}return De}()},{"@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,Ze,Ne){"use strict";oe("core-js/modules/es.array.concat.js");var ge=oe("url"),ce=oe("../utils/isIP"),Pe=ce.isIP,Ae=Ne;Ae.generateObjectUrl=function(De,me){if(Pe(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 we=ge.parse(me),fe=this.options.bucket;we.hostname="".concat(fe,".").concat(we.hostname),we.host="".concat(fe,".").concat(we.host),me=we.format()}return me+this._escape(this._objectName(De))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),Pe=ce(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ae=ce(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("fs"),De=oe("is-type-of"),me=Ne;me.get=function(){var we=(0,Ae.default)(Pe.default.mark(function z(ee,ae){var re,le,ue,pe,Ee,be,Ie,Le,Fe=arguments;return Pe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return re=Fe.length>2&&Fe[2]!==void 0?Fe[2]:{},le=null,ue=!1,De.writableStream(ae)?le=ae:De.string(ae)?(le=ye.createWriteStream(ae),ue=!0):re=ae,re=re||{},pe=ge&&ge.browser,Ee=re.responseCacheControl===null?"":"no-cache",be=pe&&Ee?{"response-cache-control":Ee}:{},re.subres=Object.assign(be,re.subres),re.versionId&&(re.subres.versionId=re.versionId),re.process&&(re.subres["x-oss-process"]=re.process),je.prev=11,Le=this._objectRequestParams("GET",ee,re),Le.writeStream=le,Le.successStatuses=[200,206,304],je.next=17,this.request(Le);case 17:Ie=je.sent,ue&&le.destroy(),je.next=28;break;case 21:if(je.prev=21,je.t0=je.catch(11),!ue){je.next=27;break}return le.destroy(),je.next=27,this._deleteFileSafe(ae);case 27:throw je.t0;case 28:return je.abrupt("return",{res:Ie.res,content:Ie.data});case 29:case"end":return je.stop()}},z,this,[[11,21]])}));function fe(z,ee){return we.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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=Ne;Ae.getACL=function(){var ye=(0,Pe.default)(ce.default.mark(function me(we){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),we=this._objectName(we),z=this._objectRequestParams("GET",we,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 De(me){return ye.apply(this,arguments)}return De}()},{"@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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(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 Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=Ne,ye=oe("../utils/isObject"),De=ye.isObject,me=oe("../utils/isArray"),we=me.isArray;Ae.getBucketVersions=fe,Ae.listObjectVersions=fe;function fe(){return z.apply(this,arguments)}function z(){return z=(0,Pe.default)(ce.default.mark(function re(){var le,ue,pe,Ee,be,Ie,Le,Fe,Oe=arguments;return ce.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(le=Oe.length>0&&Oe[0]!==void 0?Oe[0]:{},ue=Oe.length>1&&Oe[1]!==void 0?Oe[1]:{},!(le.versionIdMarker&&le.keyMarker===void 0)){ze.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ue.subres=Object.assign({versions:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),pe=this._objectRequestParams("GET","",ue),pe.xmlResponse=!0,pe.successStatuses=[200],pe.query=ae(le),ze.next=12,this.request(pe);case 12:return Ee=ze.sent,be=Ee.data.Version||[],Ie=Ee.data.DeleteMarker||[],Le=this,be&&(Array.isArray(be)||(be=[be]),be=be.map(function(_e){return{name:_e.Key,url:Le._objectUrl(_e.Key),lastModified:_e.LastModified,isLatest:_e.IsLatest==="true",versionId:_e.VersionId,etag:_e.ETag,type:_e.Type,size:Number(_e.Size),storageClass:_e.StorageClass,owner:{id:_e.Owner.ID,displayName:_e.Owner.DisplayName}}})),Ie&&(we(Ie)||(Ie=[Ie]),Ie=Ie.map(function(_e){return{name:_e.Key,lastModified:_e.LastModified,versionId:_e.VersionId,owner:{id:_e.Owner.ID,displayName:_e.Owner.DisplayName}}})),Fe=Ee.data.CommonPrefixes||null,Fe&&(we(Fe)||(Fe=[Fe]),Fe=Fe.map(function(_e){return _e.Prefix})),ze.abrupt("return",{res:Ee.res,objects:be,deleteMarker:Ie,prefixes:Fe,nextMarker:Ee.data.NextKeyMarker||null,NextVersionIdMarker:Ee.data.NextVersionIdMarker||null,nextKeyMarker:Ee.data.NextKeyMarker||null,nextVersionIdMarker:Ee.data.NextVersionIdMarker||null,isTruncated:Ee.data.IsTruncated==="true"});case 21:case"end":return ze.stop()}},re,this)})),z.apply(this,arguments)}function ee(re){return re.replace(/([A-Z])/g,"-$1").toLowerCase()}function ae(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={};return De(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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=Ne;Ae.getObjectMeta=function(){var ye=(0,Pe.default)(ce.default.mark(function me(we,fe){var z,ee;return ce.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return fe=fe||{},we=this._objectName(we),fe.subres=Object.assign({objectMeta:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),z=this._objectRequestParams("HEAD",we,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 De(me,we){return ye.apply(this,arguments)}return De}()},{"@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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(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 Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=Ne,ye=oe("../utils/isObject"),De=ye.isObject;Ae.getObjectTagging=function(){var me=(0,Pe.default)(ce.default.mark(function fe(z){var ee,ae,re,le,ue,pe,Ee=arguments;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return ee=Ee.length>1&&Ee[1]!==void 0?Ee[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],Ie.next=8,this.request(ae);case 8:return re=Ie.sent,Ie.next=11,this.parseXML(re.data);case 11:return le=Ie.sent,ue=le.TagSet.Tag,ue=ue&&De(ue)?[ue]:ue||[],pe={},ue.forEach(function(Le){pe[Le.Key]=Le.Value}),Ie.abrupt("return",{status:re.status,res:re.res,tag:pe});case 17:case"end":return Ie.stop()}},fe,this)}));function we(fe){return me.apply(this,arguments)}return we}()},{"../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,Ze,Ne){"use strict";var ge=oe("../utils/isIP"),ce=ge.isIP,Pe=Ne;Pe.getObjectUrl=function(ye,De){if(ce(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return De?De[De.length-1]!=="/"&&(De+="/"):De=this.options.endpoint.format(),De+this._escape(this._objectName(ye))}},{"../utils/isIP":69}],43:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=Ne;Ae.getSymlink=function(){var ye=(0,Pe.default)(ce.default.mark(function me(we){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),we=this._objectName(we),z=this._objectRequestParams("GET",we,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 De(me){return ye.apply(this,arguments)}return De}()},{"@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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(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 Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("../utils/checkEnv"),ye=Ae.checkEnv,De=Ne;De.head=function(){var me=(0,Pe.default)(ce.default.mark(function fe(z){var ee,ae,re,le,ue=arguments;return ce.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.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],Ee.next=8,this.request(ae);case 8:return re=Ee.sent,le={meta:null,res:re.res,status:re.status},re.status===200&&Object.keys(re.headers).forEach(function(be){be.indexOf("x-oss-meta-")===0&&(le.meta||(le.meta={}),le.meta[be.substring(11)]=re.headers[be])}),Ee.abrupt("return",le);case 12:case"end":return Ee.stop()}},fe,this)}));function we(fe){return me.apply(this,arguments)}return we}()},{"../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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=Ne;Ae.putACL=function(){var ye=(0,Pe.default)(ce.default.mark(function me(we,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,we=this._objectName(we),ee=this._objectRequestParams("PUT",we,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 De(me,we,fe){return ye.apply(this,arguments)}return De}()},{"@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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(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 Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("../utils/obj2xml"),ye=Ae.obj2xml,De=oe("../utils/checkObjectTag"),me=De.checkObjectTag,we=Ne;we.putObjectTagging=function(){var fe=(0,Pe.default)(ce.default.mark(function ee(ae,re){var le,ue,pe,Ee,be=arguments;return ce.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return le=be.length>2&&be[2]!==void 0?be[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(Fe){return{Key:Fe,Value:re[Fe]}}),pe={Tagging:{TagSet:{Tag:re}}},ue.mime="xml",ue.content=ye(pe),Le.next=13,this.request(ue);case 13:return Ee=Le.sent,Le.abrupt("return",{res:Ee.res,status:Ee.status});case 15:case"end":return Le.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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=Ne;Ae.putSymlink=function(){var ye=(0,Pe.default)(ce.default.mark(function me(we,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),we=this._objectName(we),ee=this._objectRequestParams("PUT",we,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 De(me,we,fe){return ye.apply(this,arguments)}return De}()},{"@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,Ze,Ne){"use strict";var ge=oe("url"),ce=oe("utility"),Pe=oe("copy-to"),Ae=oe("../../common/signUtils"),ye=oe("../utils/isIP"),De=ye.isIP,me=Ne;me.signatureUrl=function(fe,z){if(De(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=Ae._signatureForURL(this.options.accessKeySecret,z,re,ee),ue=ge.parse(this._getReqUrl(ae));return ue.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ee,Signature:le.Signature},Pe(le.subResource).to(ue.query),ue.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(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 Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ae=oe("./utils/isArray"),ye=Ae.isArray,De=Ne;De._parallelNode=function(){var me=(0,Pe.default)(ce.default.mark(function fe(z,ee,ae,re){var le,ue,pe,Ee,be,Ie,Le,Fe;return ce.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:le=this,ue=[],pe=[],Ee=z.length/ee,be=z.length%ee,Ie=be===0?Ee:(z.length-be)/ee+1,Le=1,Fe=0;case 8:if(!(Fe<z.length)){je.next=26;break}if(!le.isCancel()){je.next=11;break}return je.abrupt("break",26);case 11:if(re?pe.push(ae(le,z[Fe],re)):pe.push(ae(le,z[Fe])),!(pe.length===ee||Le===Ie&&Fe===z.length-1)){je.next=23;break}return je.prev=13,Le+=1,je.next=17,Promise.all(pe);case 17:je.next=22;break;case 19:je.prev=19,je.t0=je.catch(13),ue.push(je.t0);case 22:pe=[];case 23:Fe++,je.next=8;break;case 26:return je.abrupt("return",ue);case 27:case"end":return je.stop()}},fe,this,[[13,19]])}));function we(fe,z,ee,ae){return me.apply(this,arguments)}return we}(),De._parallel=function(we,fe,z){var ee=this;return new Promise(function(ae){var re=[];if(fe<=0||!we){ae(re);return}function le(je){return function(){if(je===null)throw new Error("Callback was already called.");var ze=je;je=null;for(var _e=arguments.length,Ue=new Array(_e),$e=0;$e<_e;$e++)Ue[$e]=arguments[$e];ze.apply(this,Ue)}}function ue(je){var ze=-1,_e=je.length;return function(){return++ze<_e&&!ee.isCancel()?{value:je[ze],key:ze}:null}}var pe=ue(we),Ee=!1,be=0,Ie=!1;function Le(je){be-=1,je?(Ee=!0,re.push(je),ae(re)):Ee&&be<=0?(Ee=!0,ae(re)):Ie||(ee.isCancel()?ae(re):Oe())}function Fe(je,ze){z(je).then(function(_e){ze(null,_e)}).catch(function(_e){ze(_e)})}function Oe(){for(Ie=!0;be<fe&&!Ee&&!ee.isCancel();){var je=pe();if(je===null||re.length>0){Ee=!0,be<=0&&ae(re);return}be+=1,Fe(je.value,le(Le))}Ie=!1}Oe()})},De.cancel=function(we){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=[],we&&this.abortMultipartUpload(we.name,we.uploadId,we.options)},De.isCancel=function(){return this.options.cancelFlag},De.resetCancelFlag=function(){this.options.cancelFlag=!1},De._stop=function(){this.options.cancelFlag=!0},De._makeCancelEvent=function(){var we={status:0,name:"cancel"};return we},De._makeAbortEvent=function(){var we={status:0,name:"abort",message:"upload task has been abort"};return we}},{"./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,Ze,Ne){(function(ge){(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"),Pe=oe("is-type-of"),Ae=oe("./utils/lowercaseKeyHeader"),ye=Ae.lowercaseKeyHeader;Ne.buildCanonicalizedResource=function(me,we){var fe="".concat(me),z="?";if(Pe.string(we)&&we.trim()!=="")fe+=z+we;else if(Pe.array(we))we.sort(),fe+=z+we.join("&");else if(we){var ee=function(le,ue){return le[0]>ue[0]?1:le[0]<ue[0]?-1:0},ae=function(le){fe+=z+le,(we[le]||we[le]===0)&&(fe+="=".concat(we[le])),z="&"};Object.keys(we).sort(ee).forEach(ae)}return fe},Ne.buildCanonicalString=function(me,we,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 Ee=pe.toLowerCase();Ee.indexOf(ae)===0&&(le[Ee]=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(we,fe.parameters)),ue.join(`
|
|
|
`)},Ne.computeSignature=function(me,we){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",z=ce.createHmac("sha1",me);return z.update(ge.from(we,fe)).digest("base64")},Ne.authorization=function(me,we,fe,z){return"OSS ".concat(me,":").concat(this.computeSignature(we,fe,z))},Ne._signatureForURL=function(me){var we=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=we.subResource,le=re===void 0?{}:re;if(we.process){var ue="x-oss-process";le[ue]=we.process}if(we.trafficLimit){var pe="x-oss-traffic-limit";le[pe]=we.trafficLimit}if(we.response&&Object.keys(we.response).forEach(function(Le){var Fe="response-".concat(Le.toLowerCase());le[Fe]=we.response[Le]}),Object.keys(we).forEach(function(Le){var Fe=Le.toLowerCase(),Oe=we[Le];Fe.indexOf("x-oss-")===0?ae[Fe]=Oe:(Fe.indexOf("content-md5")===0||Fe.indexOf("content-type")===0)&&(ae[Le]=Oe)}),Object.prototype.hasOwnProperty.call(we,"security-token")&&(le["security-token"]=we["security-token"]),Object.prototype.hasOwnProperty.call(we,"callback")){var Ee={callbackUrl:encodeURI(we.callback.url),callbackBody:we.callback.body};if(we.callback.host&&(Ee.callbackHost=we.callback.host),we.callback.contentType&&(Ee.callbackBodyType=we.callback.contentType),le.callback=ge.from(JSON.stringify(Ee)).toString("base64"),we.callback.customValue){var be={};Object.keys(we.callback.customValue).forEach(function(Le){be["x:".concat(Le)]=we.callback.customValue[Le]}),le["callback-var"]=ge.from(JSON.stringify(be)).toString("base64")}}var Ie=this.buildCanonicalString(we.method,fe,{headers:ae,parameters:le},z.toString());return{Signature:this.computeSignature(me,Ie,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,Ze,Ne){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.checkBucketName=void 0,Ne.checkBucketName=function(ge){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=ce?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!Pe.test(ge))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(oe,Ze,Ne){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.checkConfigValid=void 0;var ge={endpoint:ce,region:/^[a-zA-Z0-9\-_]+$/};function ce(Pe){return typeof Pe=="string"?/^[a-zA-Z0-9._:/-]+$/.test(Pe):Pe.host?/^[a-zA-Z0-9._:/-]+$/.test(Pe.host):!1}Ne.checkConfigValid=function(Pe,Ae){if(ge[Ae]){var ye=!0;if(ge[Ae]instanceof Function?ye=ge[Ae](Pe):ye=ge[Ae].test(Pe),!ye)throw new Error("The ".concat(Ae," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.checkEnv=void 0;function ce(Pe){ge.browser&&console.warn(Pe)}Ne.checkEnv=ce}).call(this)}).call(this,oe("_process"))},{_process:467}],54:[function(oe,Ze,Ne){"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(Ne,"__esModule",{value:!0}),Ne.checkObjectTag=void 0;var ge=oe("./checkValid"),ce=ge.checkValid,Pe=oe("./isObject"),Ae=Pe.isObject,ye=[{validator:function(fe){if(typeof fe!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],De={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(we){if(!Ae(we))throw new Error("tag must be Object");var fe=Object.entries(we);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,De[z[re]])})})}Ne.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,Ze,Ne){"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(Ne,"__esModule",{value:!0}),Ne.checkValid=void 0;function ge(ce,Pe){Pe.forEach(function(Ae){if(Ae.validator)Ae.validator(ce);else if(Ae.pattern&&!Ae.pattern.test(ce))throw new Error(Ae.msg)})}Ne.checkValid=ge},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(oe,Ze,Ne){(function(ge){(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(Ne,"__esModule",{value:!0}),Ne.createRequest=void 0;var ce=oe("./../../../shims/crypto/crypto.js"),Pe=oe("debug")("ali-oss"),Ae=oe("mime"),ye=oe("dateformat"),De=oe("copy-to"),me=oe("path"),we=oe("./encoder"),fe=we.encoder,z=oe("./isIP"),ee=z.isIP,ae=oe("./setRegion"),re=ae.setRegion,le=oe("../client/getReqUrl"),ue=le.getReqUrl,pe=oe("./isDingTalk"),Ee=pe.isDingTalk;function be(Fe,Oe){return Fe[Oe]||Fe[Oe.toLowerCase()]}function Ie(Fe,Oe){delete Fe[Oe],delete Fe[Oe.toLowerCase()]}function Le(Fe){var Oe=new Date;this.options.amendTimeSkewed&&(Oe=+new Date+this.options.amendTimeSkewed);var je={"x-oss-date":ye(Oe,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(je["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(je["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(je,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(je["x-oss-security-token"]=this.options.stsToken),De(Fe.headers).to(je),be(je,"Content-Type")||(Fe.mime&&Fe.mime.indexOf("/")>0?je["Content-Type"]=Fe.mime:Ee()?je["Content-Type"]="application/octet-stream":je["Content-Type"]=Ae.getType(Fe.mime||me.extname(Fe.object||""))),be(je,"Content-Type")||Ie(je,"Content-Type"),Fe.content&&(Fe.disabledMD5||(!Fe.headers||!Fe.headers["Content-MD5"]?je["Content-MD5"]=ce.createHash("md5").update(ge.from(Fe.content,"utf8")).digest("base64"):je["Content-MD5"]=Fe.headers["Content-MD5"]),je["Content-Length"]||(je["Content-Length"]=Fe.content.length));var ze=Object.prototype.hasOwnProperty;for(var _e in je)je[_e]&&ze.call(je,_e)&&(je[_e]=fe(String(je[_e]),this.options.headerEncoding));var Ue=this._getResource(Fe);if(je.authorization=this.authorization(Fe.method,Ue,Fe.subres,je,this.options.headerEncoding),ee(this.options.endpoint.hostname)){var $e=this.options,et=$e.region,lt=$e.internal,ut=$e.secure,yt=re(et,lt,ut);je.host="".concat(Fe.bucket,".").concat(yt.host)}var qe=ue.bind(this)(Fe);Pe("request %s %s, with headers %j, !!stream: %s",Fe.method,qe,je,!!Fe.stream);var ot=Fe.timeout||this.options.timeout,dt={method:Fe.method,content:Fe.content,stream:Fe.stream,headers:je,timeout:ot,writeStream:Fe.writeStream,customResponse:Fe.customResponse,ctx:Fe.ctx||this.ctx};return this.agent&&(dt.agent=this.agent),this.httpsAgent&&(dt.httpsAgent=this.httpsAgent),dt.enableProxy=!!this.options.enableProxy,dt.proxy=this.options.proxy?this.options.proxy:null,{url:qe,params:dt}}Ne.createRequest=Le}).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,Ze,Ne){"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(Ne,"__esModule",{value:!0}),Ne.dataFix=void 0;var ge=oe("./isObject"),ce=["true","TRUE","1",1],Pe=["false","FALSE","0",0];function Ae(me,we,fe){if(ge.isObject(me)){var z=we.remove,ee=z===void 0?[]:z,ae=we.rename,re=ae===void 0?{}:ae,le=we.camel,ue=le===void 0?[]:le,pe=we.bool,Ee=pe===void 0?[]:pe,be=we.lowerFirst,Ie=be===void 0?!1:be;return ee.forEach(function(Le){return delete me[Le]}),Object.entries(re).forEach(function(Le){me[Le[0]]&&(me[Le[1]]||(me[Le[1]]=me[Le[0]],delete me[Le[0]]))}),ue.forEach(function(Le){if(me[Le]){var Fe=Le.replace(/^(.)/,function(Oe){return Oe.toLowerCase()}).replace(/-(\w)/g,function(Oe,je){return je.toUpperCase()});me[Fe]||(me[Fe]=me[Le])}}),Ee.forEach(function(Le){me[Le]=ye(me[Le])}),typeof fe=="function"&&fe(me),De(me,Ie),Ae}}Ne.dataFix=Ae;function ye(me){return me?ce.includes(me)?!0:Pe.includes(me)?!1:me:!1}function De(me,we){we&&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,Ze,Ne){"use strict";var ge=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=ge(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.deepCopyWith=Ne.deepCopy=void 0;var Pe=oe("./isBuffer");Ne.deepCopy=function(Ae){if(Ae===null||(0,ce.default)(Ae)!=="object")return Ae;if(Pe.isBuffer(Ae))return Ae.slice();var ye=Array.isArray(Ae)?[]:{};return Object.keys(Ae).forEach(function(De){ye[De]=Ne.deepCopy(Ae[De])}),ye},Ne.deepCopyWith=function(Ae,ye){function De(me,we,fe){var z=ye(me,we,fe);if(z!==void 0)return z;if(me===null||(0,ce.default)(me)!=="object")return me;if(Pe.isBuffer(me))return me.slice();var ee=Array.isArray(me)?[]:{};return Object.keys(me).forEach(function(ae){ee[ae]=De(me[ae],ae,me)}),ee}return ye?De(Ae,"",null):Ne.deepCopy(Ae)}},{"./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,Ze,Ne){(function(ge){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.encoder=void 0;function ce(Pe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return Ae==="utf-8"?Pe:ge.from(Pe).toString("latin1")}Ne.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,Ze,Ne){"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(Ne,"__esModule",{value:!0}),Ne.formatInventoryConfig=void 0;var ge=oe("../utils/dataFix"),ce=oe("../utils/isObject"),Pe=oe("../utils/isArray"),Ae=oe("../utils/formatObjKey");function ye(me){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return we&&ce.isObject(me)&&(me=[me]),Pe.isArray(me)?me=me.map(De):me=De(me),me}Ne.formatInventoryConfig=ye;function De(me){return ge.dataFix(me,{bool:["IsEnabled"]},function(we){var fe,z;we.prefix=we.Filter.Prefix,delete we.Filter,we.OSSBucketDestination=we.Destination.OSSBucketDestination,we.OSSBucketDestination.rolename=we.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete we.OSSBucketDestination.RoleArn,we.OSSBucketDestination.bucket=we.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete we.OSSBucketDestination.Bucket,delete we.Destination,we.frequency=we.Schedule.Frequency,delete we.Schedule.Frequency,!((fe=we==null?void 0:we.OptionalFields)===null||fe===void 0)&&fe.Field&&!Pe.isArray((z=we.OptionalFields)===null||z===void 0?void 0:z.Field)&&(we.OptionalFields.Field=[we.OptionalFields.Field])}),me=Ae.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,Ze,Ne){"use strict";var ge=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=ge(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.formatObjKey=void 0;function Pe(ye,De,me){if(ye===null||(0,ce.default)(ye)!=="object")return ye;var we;if(Array.isArray(ye)){we=[];for(var fe=0;fe<ye.length;fe++)we.push(Pe(ye[fe],De,me))}else we={},Object.keys(ye).forEach(function(z){we[Ae(z,De,me)]=Pe(ye[z],De,me)});return we}Ne.formatObjKey=Pe;function Ae(ye,De,me){return me&&me.exclude&&me.exclude.includes(ye)||(De==="firstUpperCase"?ye=ye.replace(/^./,function(we){return we.toUpperCase()}):De==="firstLowerCase"&&(ye=ye.replace(/^./,function(we){return we.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,Ze,Ne){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.getStrBytesCount=void 0;function ge(ce){for(var Pe=0,Ae=0;Ae<ce.length;Ae++){var ye=ce.charAt(Ae);/^[\u00-\uff]$/.test(ye)?Pe+=1:Pe+=2}return Pe}Ne.getStrBytesCount=ge},{"core-js/modules/es.regexp.exec.js":300}],63:[function(oe,Ze,Ne){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isArray=void 0,Ne.isArray=function(ge){return Object.prototype.toString.call(ge)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(oe,Ze,Ne){"use strict";Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isBlob=void 0;function ge(ce){return typeof Blob!="undefined"&&ce instanceof Blob}Ne.isBlob=ge},{}],65:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isBuffer=void 0;function ce(Pe){return ge.isBuffer(Pe)}Ne.isBuffer=ce}).call(this)}).call(this,{isBuffer:oe("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isDingTalk=void 0;function ce(){return!!(ge.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}Ne.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,Ze,Ne){"use strict";Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isFile=void 0,Ne.isFile=function(ge){return typeof File!="undefined"&&ge instanceof File}},{}],68:[function(oe,Ze,Ne){"use strict";Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isFunction=void 0,Ne.isFunction=function(ge){return typeof ge=="function"}},{}],69:[function(oe,Ze,Ne){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isIP=void 0,Ne.isIP=function(ge){var ce=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,Pe=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return ce.test(ge)||Pe.test(ge)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(oe,Ze,Ne){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isObject=void 0,Ne.isObject=function(ge){return Object.prototype.toString.call(ge)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(oe,Ze,Ne){"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(Ne,"__esModule",{value:!0}),Ne.lowercaseKeyHeader=void 0;var ge=oe("./isObject");function ce(Pe){var Ae={};return ge.isObject(Pe)&&Object.keys(Pe).forEach(function(ye){Ae[ye.toLowerCase()]=Pe[ye]}),Ae}Ne.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,Ze,Ne){"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(Ne,"__esModule",{value:!0}),Ne.obj2xml=void 0;var ge=oe("./formatObjKey");function ce(Ae){return Object.prototype.toString.call(Ae).replace(/(.*? |])/g,"").toLowerCase()}function Pe(Ae,ye){var De="";return ye&&ye.headers&&(De=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),ye&&ye.firstUpperCase&&(Ae=ge.formatObjKey(Ae,"firstUpperCase")),ce(Ae)==="object"?Object.keys(Ae).forEach(function(me){ce(Ae[me])!=="undefined"&&ce(Ae[me])!=="null"&&(ce(Ae[me])==="string"||ce(Ae[me])==="number"?De+="<".concat(me,">").concat(Ae[me],"</").concat(me,">"):ce(Ae[me])==="object"?De+="<".concat(me,">").concat(Pe(Ae[me]),"</").concat(me,">"):ce(Ae[me])==="array"?De+=Ae[me].map(function(we){return"<".concat(me,">").concat(Pe(we),"</").concat(me,">")}).join(""):De+="<".concat(me,">").concat(Ae[me].toString(),"</").concat(me,">"))}):De+=Ae.toString(),De}Ne.obj2xml=Pe},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(oe,Ze,Ne){"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 ge(ye,De){var me=typeof Symbol!="undefined"&&ye[Symbol.iterator]||ye["@@iterator"];if(!me){if(Array.isArray(ye)||(me=ce(ye))||De&&ye&&typeof ye.length=="number"){me&&(ye=me);var we=0,fe=function(){};return{s:fe,n:function(){return we>=ye.length?{done:!0}:{done:!1,value:ye[we++]}},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,De){if(ye){if(typeof ye=="string")return Pe(ye,De);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 Pe(ye,De)}}function Pe(ye,De){(De==null||De>ye.length)&&(De=ye.length);for(var me=0,we=new Array(De);me<De;me++)we[me]=ye[me];return we}Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.omit=void 0;function Ae(ye,De){var me=Object.assign({},ye),we=ge(De),fe;try{for(we.s();!(fe=we.n()).done;){var z=fe.value;delete me[z]}}catch(ee){we.e(ee)}finally{we.f()}return me}Ne.omit=Ae},{"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,Ze,Ne){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.retry=void 0;function ge(ce,Pe){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ye=0,De=Ae.retryDelay,me=De===void 0?500:De,we=Ae.errorHandler,fe=we===void 0?function(){return!0}:we,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(Ee){ye=0,ue(Ee)}).catch(function(Ee){ye<Pe&&fe(Ee)?(ye++,setTimeout(function(){ue(ee.apply(void 0,re))},me)):(ye=0,pe(Ee))})})};return z}Ne.retry=ge},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(oe,Ze,Ne){"use strict";var ge=function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.setRegion=void 0;var ce=ge(oe("url")),Pe=oe("./checkConfigValid");function Ae(ye){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Pe.checkConfigValid(ye,"region");var we=me?"https://":"http://",fe=De?"-internal.aliyuncs.com":".aliyuncs.com",z="vpc100-oss-cn-";return ye.substr(0,z.length)===z&&(fe=".aliyuncs.com"),ce.default.parse(we+ye+fe)}Ne.setRegion=Ae},{"./checkConfigValid":52,url:472}],76:[function(oe,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(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 Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.checkCredentials=Ne.setSTSToken=void 0;var Ae=oe("./formatObjKey");function ye(){return De.apply(this,arguments)}function De(){return De=(0,Pe.default)(ce.default.mark(function we(){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=Ae.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()}},we,this)})),De.apply(this,arguments)}Ne.setSTSToken=ye;function me(we){var fe=["accessKeySecret","accessKeyId","stsToken"],z=Object.keys(we);fe.forEach(function(ee){if(!z.find(function(ae){return ae===ee}))throw Error("refreshSTSToken must return contains ".concat(ee))})}Ne.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,Ze,Ne){function ge(Pe,Ae,ye,De,me,we,fe){try{var z=Pe[we](fe),ee=z.value}catch(ae){ye(ae);return}z.done?Ae(ee):Promise.resolve(ee).then(De,me)}function ce(Pe){return function(){var Ae=this,ye=arguments;return new Promise(function(De,me){var we=Pe.apply(Ae,ye);function fe(ee){ge(we,De,me,fe,z,"next",ee)}function z(ee){ge(we,De,me,fe,z,"throw",ee)}fe(void 0)})}}Ze.exports=ce,Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports},{}],78:[function(oe,Ze,Ne){function ge(ce){return ce&&ce.__esModule?ce:{default:ce}}Ze.exports=ge,Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports},{}],79:[function(oe,Ze,Ne){function ge(ce){"@babel/helpers - typeof";return Ze.exports=ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Pe){return typeof Pe}:function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports,ge(ce)}Ze.exports=ge,Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports},{}],80:[function(oe,Ze,Ne){Ze.exports=oe("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(oe,Ze,Ne){Ze.exports=ge,Ze.exports.HttpsAgent=ge;function ge(){}},{}],82:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";var ce=oe("object-assign");function Pe(et,lt){if(et===lt)return 0;for(var ut=et.length,yt=lt.length,qe=0,ot=Math.min(ut,yt);qe<ot;++qe)if(et[qe]!==lt[qe]){ut=et[qe],yt=lt[qe];break}return ut<yt?-1:yt<ut?1:0}function Ae(et){return ge.Buffer&&typeof ge.Buffer.isBuffer=="function"?ge.Buffer.isBuffer(et):!!(et!=null&&et._isBuffer)}var ye=oe("util/"),De=Object.prototype.hasOwnProperty,me=Array.prototype.slice,we=function(){return function(){}.name==="foo"}();function fe(et){return Object.prototype.toString.call(et)}function z(et){return Ae(et)||typeof ge.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(et):et?!!(et instanceof DataView||et.buffer&&et.buffer instanceof ArrayBuffer):!1}var ee=Ze.exports=be,ae=/\s*function\s+([^\(\s]*)\s*/;function re(et){if(ye.isFunction(et)){if(we)return et.name;var lt=et.toString(),ut=lt.match(ae);return ut&&ut[1]}}ee.AssertionError=function(lt){this.name="AssertionError",this.actual=lt.actual,this.expected=lt.expected,this.operator=lt.operator,lt.message?(this.message=lt.message,this.generatedMessage=!1):(this.message=pe(this),this.generatedMessage=!0);var ut=lt.stackStartFunction||Ee;if(Error.captureStackTrace)Error.captureStackTrace(this,ut);else{var yt=new Error;if(yt.stack){var qe=yt.stack,ot=re(ut),dt=qe.indexOf(`
|
|
|
`+ot);if(dt>=0){var St=qe.indexOf(`
|
|
|
`,dt+1);qe=qe.substring(St+1)}this.stack=qe}}},ye.inherits(ee.AssertionError,Error);function le(et,lt){return typeof et=="string"?et.length<lt?et:et.slice(0,lt):et}function ue(et){if(we||!ye.isFunction(et))return ye.inspect(et);var lt=re(et),ut=lt?": "+lt:"";return"[Function"+ut+"]"}function pe(et){return le(ue(et.actual),128)+" "+et.operator+" "+le(ue(et.expected),128)}function Ee(et,lt,ut,yt,qe){throw new ee.AssertionError({message:ut,actual:et,expected:lt,operator:yt,stackStartFunction:qe})}ee.fail=Ee;function be(et,lt){et||Ee(et,!0,lt,"==",ee.ok)}ee.ok=be,ee.equal=function(lt,ut,yt){lt!=ut&&Ee(lt,ut,yt,"==",ee.equal)},ee.notEqual=function(lt,ut,yt){lt==ut&&Ee(lt,ut,yt,"!=",ee.notEqual)},ee.deepEqual=function(lt,ut,yt){Ie(lt,ut,!1)||Ee(lt,ut,yt,"deepEqual",ee.deepEqual)},ee.deepStrictEqual=function(lt,ut,yt){Ie(lt,ut,!0)||Ee(lt,ut,yt,"deepStrictEqual",ee.deepStrictEqual)};function Ie(et,lt,ut,yt){if(et===lt)return!0;if(Ae(et)&&Ae(lt))return Pe(et,lt)===0;if(ye.isDate(et)&&ye.isDate(lt))return et.getTime()===lt.getTime();if(ye.isRegExp(et)&&ye.isRegExp(lt))return et.source===lt.source&&et.global===lt.global&&et.multiline===lt.multiline&&et.lastIndex===lt.lastIndex&&et.ignoreCase===lt.ignoreCase;if((et===null||typeof et!="object")&&(lt===null||typeof lt!="object"))return ut?et===lt:et==lt;if(z(et)&&z(lt)&&fe(et)===fe(lt)&&!(et instanceof Float32Array||et instanceof Float64Array))return Pe(new Uint8Array(et.buffer),new Uint8Array(lt.buffer))===0;if(Ae(et)!==Ae(lt))return!1;yt=yt||{actual:[],expected:[]};var qe=yt.actual.indexOf(et);return qe!==-1&&qe===yt.expected.indexOf(lt)?!0:(yt.actual.push(et),yt.expected.push(lt),Fe(et,lt,ut,yt))}function Le(et){return Object.prototype.toString.call(et)=="[object Arguments]"}function Fe(et,lt,ut,yt){if(et==null||lt===null||lt===void 0)return!1;if(ye.isPrimitive(et)||ye.isPrimitive(lt))return et===lt;if(ut&&Object.getPrototypeOf(et)!==Object.getPrototypeOf(lt))return!1;var qe=Le(et),ot=Le(lt);if(qe&&!ot||!qe&&ot)return!1;if(qe)return et=me.call(et),lt=me.call(lt),Ie(et,lt,ut);var dt=$e(et),St=$e(lt),xt,ft;if(dt.length!==St.length)return!1;for(dt.sort(),St.sort(),ft=dt.length-1;ft>=0;ft--)if(dt[ft]!==St[ft])return!1;for(ft=dt.length-1;ft>=0;ft--)if(xt=dt[ft],!Ie(et[xt],lt[xt],ut,yt))return!1;return!0}ee.notDeepEqual=function(lt,ut,yt){Ie(lt,ut,!1)&&Ee(lt,ut,yt,"notDeepEqual",ee.notDeepEqual)},ee.notDeepStrictEqual=Oe;function Oe(et,lt,ut){Ie(et,lt,!0)&&Ee(et,lt,ut,"notDeepStrictEqual",Oe)}ee.strictEqual=function(lt,ut,yt){lt!==ut&&Ee(lt,ut,yt,"===",ee.strictEqual)},ee.notStrictEqual=function(lt,ut,yt){lt===ut&&Ee(lt,ut,yt,"!==",ee.notStrictEqual)};function je(et,lt){if(!et||!lt)return!1;if(Object.prototype.toString.call(lt)=="[object RegExp]")return lt.test(et);try{if(et instanceof lt)return!0}catch(ut){}return Error.isPrototypeOf(lt)?!1:lt.call({},et)===!0}function ze(et){var lt;try{et()}catch(ut){lt=ut}return lt}function _e(et,lt,ut,yt){var qe;if(typeof lt!="function")throw new TypeError('"block" argument must be a function');typeof ut=="string"&&(yt=ut,ut=null),qe=ze(lt),yt=(ut&&ut.name?" ("+ut.name+").":".")+(yt?" "+yt:"."),et&&!qe&&Ee(qe,ut,"Missing expected exception"+yt);var ot=typeof yt=="string",dt=!et&&ye.isError(qe),St=!et&&qe&&!ut;if((dt&&ot&&je(qe,ut)||St)&&Ee(qe,ut,"Got unwanted exception"+yt),et&&qe&&ut&&!je(qe,ut)||!et&&qe)throw qe}ee.throws=function(et,lt,ut){_e(!0,et,lt,ut)},ee.doesNotThrow=function(et,lt,ut){_e(!1,et,lt,ut)},ee.ifError=function(et){if(et)throw et};function Ue(et,lt){et||Ee(et,!0,lt,"==",Ue)}ee.strict=ce(Ue,ee,{equal:ee.strictEqual,deepEqual:ee.deepStrictEqual,notEqual:ee.notStrictEqual,notDeepEqual:ee.notDeepStrictEqual}),ee.strict.strict=ee.strict;var $e=Object.keys||function(et){var lt=[];for(var ut in et)De.call(et,ut)&<.push(ut);return lt}}).call(this)}).call(this,typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(oe,Ze,Ne){typeof Object.create=="function"?Ze.exports=function(ce,Pe){ce.super_=Pe,ce.prototype=Object.create(Pe.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}})}:Ze.exports=function(ce,Pe){ce.super_=Pe;var Ae=function(){};Ae.prototype=Pe.prototype,ce.prototype=new Ae,ce.prototype.constructor=ce}},{}],84:[function(oe,Ze,Ne){Ze.exports=function(ce){return ce&&typeof ce=="object"&&typeof ce.copy=="function"&&typeof ce.fill=="function"&&typeof ce.readUInt8=="function"}},{}],85:[function(oe,Ze,Ne){(function(ge,ce){(function(){var Pe=/%[sdj%]/g;Ne.format=function(St){if(!Fe(St)){for(var xt=[],ft=0;ft<arguments.length;ft++)xt.push(De(arguments[ft]));return xt.join(" ")}for(var ft=1,gt=arguments,vt=gt.length,Tt=String(St).replace(Pe,function(Zt){if(Zt==="%%")return"%";if(ft>=vt)return Zt;switch(Zt){case"%s":return String(gt[ft++]);case"%d":return Number(gt[ft++]);case"%j":try{return JSON.stringify(gt[ft++])}catch(wt){return"[Circular]"}default:return Zt}}),Et=gt[ft];ft<vt;Et=gt[++ft])be(Et)||!_e(Et)?Tt+=" "+Et:Tt+=" "+De(Et);return Tt},Ne.deprecate=function(St,xt){if(je(ce.process))return function(){return Ne.deprecate(St,xt).apply(this,arguments)};if(ge.noDeprecation===!0)return St;var ft=!1;function gt(){if(!ft){if(ge.throwDeprecation)throw new Error(xt);ge.traceDeprecation?console.trace(xt):console.error(xt),ft=!0}return St.apply(this,arguments)}return gt};var Ae={},ye;Ne.debuglog=function(St){if(je(ye)&&(ye=ge.env.NODE_DEBUG||""),St=St.toUpperCase(),!Ae[St])if(new RegExp("\\b"+St+"\\b","i").test(ye)){var xt=ge.pid;Ae[St]=function(){var ft=Ne.format.apply(Ne,arguments);console.error("%s %d: %s",St,xt,ft)}}else Ae[St]=function(){};return Ae[St]};function De(St,xt){var ft={seen:[],stylize:we};return arguments.length>=3&&(ft.depth=arguments[2]),arguments.length>=4&&(ft.colors=arguments[3]),Ee(xt)?ft.showHidden=xt:xt&&Ne._extend(ft,xt),je(ft.showHidden)&&(ft.showHidden=!1),je(ft.depth)&&(ft.depth=2),je(ft.colors)&&(ft.colors=!1),je(ft.customInspect)&&(ft.customInspect=!0),ft.colors&&(ft.stylize=me),z(ft,St,ft.depth)}Ne.inspect=De,De.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]},De.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function me(St,xt){var ft=De.styles[xt];return ft?"\x1B["+De.colors[ft][0]+"m"+St+"\x1B["+De.colors[ft][1]+"m":St}function we(St,xt){return St}function fe(St){var xt={};return St.forEach(function(ft,gt){xt[ft]=!0}),xt}function z(St,xt,ft){if(St.customInspect&&xt&&et(xt.inspect)&&xt.inspect!==Ne.inspect&&!(xt.constructor&&xt.constructor.prototype===xt)){var gt=xt.inspect(ft,St);return Fe(gt)||(gt=z(St,gt,ft)),gt}var vt=ee(St,xt);if(vt)return vt;var Tt=Object.keys(xt),Et=fe(Tt);if(St.showHidden&&(Tt=Object.getOwnPropertyNames(xt)),$e(xt)&&(Tt.indexOf("message")>=0||Tt.indexOf("description")>=0))return ae(xt);if(Tt.length===0){if(et(xt)){var Zt=xt.name?": "+xt.name:"";return St.stylize("[Function"+Zt+"]","special")}if(ze(xt))return St.stylize(RegExp.prototype.toString.call(xt),"regexp");if(Ue(xt))return St.stylize(Date.prototype.toString.call(xt),"date");if($e(xt))return ae(xt)}var wt="",bt=!1,it=["{","}"];if(pe(xt)&&(bt=!0,it=["[","]"]),et(xt)){var nt=xt.name?": "+xt.name:"";wt=" [Function"+nt+"]"}if(ze(xt)&&(wt=" "+RegExp.prototype.toString.call(xt)),Ue(xt)&&(wt=" "+Date.prototype.toUTCString.call(xt)),$e(xt)&&(wt=" "+ae(xt)),Tt.length===0&&(!bt||xt.length==0))return it[0]+wt+it[1];if(ft<0)return ze(xt)?St.stylize(RegExp.prototype.toString.call(xt),"regexp"):St.stylize("[Object]","special");St.seen.push(xt);var xe;return bt?xe=re(St,xt,ft,Et,Tt):xe=Tt.map(function(Ce){return le(St,xt,ft,Et,Ce,bt)}),St.seen.pop(),ue(xe,wt,it)}function ee(St,xt){if(je(xt))return St.stylize("undefined","undefined");if(Fe(xt)){var ft="'"+JSON.stringify(xt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return St.stylize(ft,"string")}if(Le(xt))return St.stylize(""+xt,"number");if(Ee(xt))return St.stylize(""+xt,"boolean");if(be(xt))return St.stylize("null","null")}function ae(St){return"["+Error.prototype.toString.call(St)+"]"}function re(St,xt,ft,gt,vt){for(var Tt=[],Et=0,Zt=xt.length;Et<Zt;++Et)dt(xt,String(Et))?Tt.push(le(St,xt,ft,gt,String(Et),!0)):Tt.push("");return vt.forEach(function(wt){wt.match(/^\d+$/)||Tt.push(le(St,xt,ft,gt,wt,!0))}),Tt}function le(St,xt,ft,gt,vt,Tt){var Et,Zt,wt;if(wt=Object.getOwnPropertyDescriptor(xt,vt)||{value:xt[vt]},wt.get?wt.set?Zt=St.stylize("[Getter/Setter]","special"):Zt=St.stylize("[Getter]","special"):wt.set&&(Zt=St.stylize("[Setter]","special")),dt(gt,vt)||(Et="["+vt+"]"),Zt||(St.seen.indexOf(wt.value)<0?(be(ft)?Zt=z(St,wt.value,null):Zt=z(St,wt.value,ft-1),Zt.indexOf(`
|
|
|
`)>-1&&(Tt?Zt=Zt.split(`
|
|
|
`).map(function(bt){return" "+bt}).join(`
|
|
|
`).substr(2):Zt=`
|
|
|
`+Zt.split(`
|
|
|
`).map(function(bt){return" "+bt}).join(`
|
|
|
`))):Zt=St.stylize("[Circular]","special")),je(Et)){if(Tt&&vt.match(/^\d+$/))return Zt;Et=JSON.stringify(""+vt),Et.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Et=Et.substr(1,Et.length-2),Et=St.stylize(Et,"name")):(Et=Et.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Et=St.stylize(Et,"string"))}return Et+": "+Zt}function ue(St,xt,ft){var gt=0,vt=St.reduce(function(Tt,Et){return gt++,Et.indexOf(`
|
|
|
`)>=0&>++,Tt+Et.replace(/\u001b\[\d\d?m/g,"").length+1},0);return vt>60?ft[0]+(xt===""?"":xt+`
|
|
|
`)+" "+St.join(`,
|
|
|
`)+" "+ft[1]:ft[0]+xt+" "+St.join(", ")+" "+ft[1]}function pe(St){return Array.isArray(St)}Ne.isArray=pe;function Ee(St){return typeof St=="boolean"}Ne.isBoolean=Ee;function be(St){return St===null}Ne.isNull=be;function Ie(St){return St==null}Ne.isNullOrUndefined=Ie;function Le(St){return typeof St=="number"}Ne.isNumber=Le;function Fe(St){return typeof St=="string"}Ne.isString=Fe;function Oe(St){return typeof St=="symbol"}Ne.isSymbol=Oe;function je(St){return St===void 0}Ne.isUndefined=je;function ze(St){return _e(St)&&ut(St)==="[object RegExp]"}Ne.isRegExp=ze;function _e(St){return typeof St=="object"&&St!==null}Ne.isObject=_e;function Ue(St){return _e(St)&&ut(St)==="[object Date]"}Ne.isDate=Ue;function $e(St){return _e(St)&&(ut(St)==="[object Error]"||St instanceof Error)}Ne.isError=$e;function et(St){return typeof St=="function"}Ne.isFunction=et;function lt(St){return St===null||typeof St=="boolean"||typeof St=="number"||typeof St=="string"||typeof St=="symbol"||typeof St=="undefined"}Ne.isPrimitive=lt,Ne.isBuffer=oe("./support/isBuffer");function ut(St){return Object.prototype.toString.call(St)}function yt(St){return St<10?"0"+St.toString(10):St.toString(10)}var qe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ot(){var St=new Date,xt=[yt(St.getHours()),yt(St.getMinutes()),yt(St.getSeconds())].join(":");return[St.getDate(),qe[St.getMonth()],xt].join(" ")}Ne.log=function(){console.log("%s - %s",ot(),Ne.format.apply(Ne,arguments))},Ne.inherits=oe("inherits"),Ne._extend=function(St,xt){if(!xt||!_e(xt))return St;for(var ft=Object.keys(xt),gt=ft.length;gt--;)St[ft[gt]]=xt[ft[gt]];return St};function dt(St,xt){return Object.prototype.hasOwnProperty.call(St,xt)}}).call(this)}).call(this,oe("_process"),typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";var ce=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Pe=typeof globalThis=="undefined"?ge:globalThis;Ze.exports=function(){for(var ye=[],De=0;De<ce.length;De++)typeof Pe[ce[De]]=="function"&&(ye[ye.length]=ce[De]);return ye}}).call(this)}).call(this,typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(oe,Ze,Ne){"use strict";Ne.byteLength=we,Ne.toByteArray=z,Ne.fromByteArray=re;for(var ge=[],ce=[],Pe=typeof Uint8Array!="undefined"?Uint8Array:Array,Ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye=0,De=Ae.length;ye<De;++ye)ge[ye]=Ae[ye],ce[Ae.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 Ee=pe===ue?0:4-pe%4;return[pe,Ee]}function we(le){var ue=me(le),pe=ue[0],Ee=ue[1];return(pe+Ee)*3/4-Ee}function fe(le,ue,pe){return(ue+pe)*3/4-pe}function z(le){var ue,pe=me(le),Ee=pe[0],be=pe[1],Ie=new Pe(fe(le,Ee,be)),Le=0,Fe=be>0?Ee-4:Ee,Oe;for(Oe=0;Oe<Fe;Oe+=4)ue=ce[le.charCodeAt(Oe)]<<18|ce[le.charCodeAt(Oe+1)]<<12|ce[le.charCodeAt(Oe+2)]<<6|ce[le.charCodeAt(Oe+3)],Ie[Le++]=ue>>16&255,Ie[Le++]=ue>>8&255,Ie[Le++]=ue&255;return be===2&&(ue=ce[le.charCodeAt(Oe)]<<2|ce[le.charCodeAt(Oe+1)]>>4,Ie[Le++]=ue&255),be===1&&(ue=ce[le.charCodeAt(Oe)]<<10|ce[le.charCodeAt(Oe+1)]<<4|ce[le.charCodeAt(Oe+2)]>>2,Ie[Le++]=ue>>8&255,Ie[Le++]=ue&255),Ie}function ee(le){return ge[le>>18&63]+ge[le>>12&63]+ge[le>>6&63]+ge[le&63]}function ae(le,ue,pe){for(var Ee,be=[],Ie=ue;Ie<pe;Ie+=3)Ee=(le[Ie]<<16&16711680)+(le[Ie+1]<<8&65280)+(le[Ie+2]&255),be.push(ee(Ee));return be.join("")}function re(le){for(var ue,pe=le.length,Ee=pe%3,be=[],Ie=16383,Le=0,Fe=pe-Ee;Le<Fe;Le+=Ie)be.push(ae(le,Le,Le+Ie>Fe?Fe:Le+Ie));return Ee===1?(ue=le[pe-1],be.push(ge[ue>>2]+ge[ue<<4&63]+"==")):Ee===2&&(ue=(le[pe-2]<<8)+le[pe-1],be.push(ge[ue>>10]+ge[ue>>4&63]+ge[ue<<2&63]+"=")),be.join("")}},{}],88:[function(oe,Ze,Ne){(function(ge,ce,Pe){typeof Ze!="undefined"&&Ze.exports?Ze.exports=Pe():typeof We=="function"&&We.amd?We(ce,Pe):ge[ce]=Pe()})(this,"bowser",function(){var ge=!0;function ce(fe){function z(xt){var ft=fe.match(xt);return ft&&ft.length>1&&ft[1]||""}function ee(xt){var ft=fe.match(xt);return ft&&ft.length>1&&ft[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),Ee=/CrOS/.test(fe),be=/silk/i.test(fe),Ie=/sailfish/i.test(fe),Le=/tizen/i.test(fe),Fe=/(web|hpw)(o|0)s/i.test(fe),Oe=/windows phone/i.test(fe),je=/SamsungBrowser/i.test(fe),ze=!Oe&&/windows/i.test(fe),_e=!ae&&!be&&/macintosh/i.test(fe),Ue=!le&&!Ie&&!Le&&!Fe&&/linux/i.test(fe),$e=ee(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),et=z(/version\/(\d+(\.\d+)?)/i),lt=/tablet/i.test(fe)&&!/tablet pc/i.test(fe),ut=!lt&&/[^-]mobi/i.test(fe),yt=/xbox/i.test(fe),qe;/opera/i.test(fe)?qe={name:"Opera",opera:ge,version:et||z(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(fe)?qe={name:"Opera",opera:ge,version:z(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||et}:/SamsungBrowser/i.test(fe)?qe={name:"Samsung Internet for Android",samsungBrowser:ge,version:et||z(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(fe)?qe={name:"NAVER Whale browser",whale:ge,version:z(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(fe)?qe={name:"MZ Browser",mzbrowser:ge,version:z(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(fe)?qe={name:"Opera Coast",coast:ge,version:et||z(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(fe)?qe={name:"Focus",focus:ge,version:z(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(fe)?qe={name:"Yandex Browser",yandexbrowser:ge,version:et||z(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(fe)?qe={name:"UC Browser",ucbrowser:ge,version:z(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(fe)?qe={name:"Maxthon",maxthon:ge,version:z(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(fe)?qe={name:"Epiphany",epiphany:ge,version:z(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(fe)?qe={name:"Puffin",puffin:ge,version:z(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(fe)?qe={name:"Sleipnir",sleipnir:ge,version:z(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(fe)?qe={name:"K-Meleon",kMeleon:ge,version:z(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Oe?(qe={name:"Windows Phone",osname:"Windows Phone",windowsphone:ge},$e?(qe.msedge=ge,qe.version=$e):(qe.msie=ge,qe.version=z(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(fe)?qe={name:"Internet Explorer",msie:ge,version:z(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Ee?qe={name:"Chrome",osname:"Chrome OS",chromeos:ge,chromeBook:ge,chrome:ge,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(fe)?qe={name:"Microsoft Edge",msedge:ge,version:$e}:/vivaldi/i.test(fe)?qe={name:"Vivaldi",vivaldi:ge,version:z(/vivaldi\/(\d+(\.\d+)?)/i)||et}:Ie?qe={name:"Sailfish",osname:"Sailfish OS",sailfish:ge,version:z(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(fe)?qe={name:"SeaMonkey",seamonkey:ge,version:z(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(fe)?(qe={name:"Firefox",firefox:ge,version:z(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(fe)&&(qe.firefoxos=ge,qe.osname="Firefox OS")):be?qe={name:"Amazon Silk",silk:ge,version:z(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(fe)?qe={name:"PhantomJS",phantom:ge,version:z(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(fe)?qe={name:"SlimerJS",slimer:ge,version:z(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(fe)||/rim\stablet/i.test(fe)?qe={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ge,version:et||z(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Fe?(qe={name:"WebOS",osname:"WebOS",webos:ge,version:et||z(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(fe)&&(qe.touchpad=ge)):/bada/i.test(fe)?qe={name:"Bada",osname:"Bada",bada:ge,version:z(/dolfin\/(\d+(\.\d+)?)/i)}:Le?qe={name:"Tizen",osname:"Tizen",tizen:ge,version:z(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||et}:/qupzilla/i.test(fe)?qe={name:"QupZilla",qupzilla:ge,version:z(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||et}:/chromium/i.test(fe)?qe={name:"Chromium",chromium:ge,version:z(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||et}:/chrome|crios|crmo/i.test(fe)?qe={name:"Chrome",chrome:ge,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:le?qe={name:"Android",version:et}:/safari|applewebkit/i.test(fe)?(qe={name:"Safari",safari:ge},et&&(qe.version=et)):ae?(qe={name:ae=="iphone"?"iPhone":ae=="ipad"?"iPad":"iPod"},et&&(qe.version=et)):/googlebot/i.test(fe)?qe={name:"Googlebot",googlebot:ge,version:z(/googlebot\/(\d+(\.\d+))/i)||et}:qe={name:z(/^(.*)\/(.*) /),version:ee(/^(.*)\/(.*) /)},!qe.msedge&&/(apple)?webkit/i.test(fe)?(/(apple)?webkit\/537\.36/i.test(fe)?(qe.name=qe.name||"Blink",qe.blink=ge):(qe.name=qe.name||"Webkit",qe.webkit=ge),!qe.version&&et&&(qe.version=et)):!qe.opera&&/gecko\//i.test(fe)&&(qe.name=qe.name||"Gecko",qe.gecko=ge,qe.version=qe.version||z(/gecko\/(\d+(\.\d+)?)/i)),!qe.windowsphone&&(le||qe.silk)?(qe.android=ge,qe.osname="Android"):!qe.windowsphone&&ae?(qe[ae]=ge,qe.ios=ge,qe.osname="iOS"):_e?(qe.mac=ge,qe.osname="macOS"):yt?(qe.xbox=ge,qe.osname="Xbox"):ze?(qe.windows=ge,qe.osname="Windows"):Ue&&(qe.linux=ge,qe.osname="Linux");function ot(xt){switch(xt){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 dt="";qe.windows?dt=ot(z(/Windows ((NT|XP)( \d\d?.\d)?)/i)):qe.windowsphone?dt=z(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):qe.mac?(dt=z(/Mac OS X (\d+([_\.\s]\d+)*)/i),dt=dt.replace(/[_\s]/g,".")):ae?(dt=z(/os (\d+([_\s]\d+)*) like mac os x/i),dt=dt.replace(/[_\s]/g,".")):le?dt=z(/android[ \/-](\d+(\.\d+)*)/i):qe.webos?dt=z(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):qe.blackberry?dt=z(/rim\stablet\sos\s(\d+(\.\d+)*)/i):qe.bada?dt=z(/bada\/(\d+(\.\d+)*)/i):qe.tizen&&(dt=z(/tizen[\/\s](\d+(\.\d+)*)/i)),dt&&(qe.osversion=dt);var St=!qe.windows&&dt.split(".")[0];return lt||pe||ae=="ipad"||le&&(St==3||St>=4&&!ut)||qe.silk?qe.tablet=ge:(ut||ae=="iphone"||ae=="ipod"||le||ue||qe.blackberry||qe.webos||qe.bada)&&(qe.mobile=ge),qe.msedge||qe.msie&&qe.version>=10||qe.yandexbrowser&&qe.version>=15||qe.vivaldi&&qe.version>=1||qe.chrome&&qe.version>=20||qe.samsungBrowser&&qe.version>=4||qe.whale&&De([qe.version,"1.0"])===1||qe.mzbrowser&&De([qe.version,"6.0"])===1||qe.focus&&De([qe.version,"1.0"])===1||qe.firefox&&qe.version>=20||qe.safari&&qe.version>=6||qe.opera&&qe.version>=10||qe.ios&&qe.osversion&&qe.osversion.split(".")[0]>=6||qe.blackberry&&qe.version>=10.1||qe.chromium&&qe.version>=20?qe.a=ge:qe.msie&&qe.version<10||qe.chrome&&qe.version<20||qe.firefox&&qe.version<20||qe.safari&&qe.version<6||qe.opera&&qe.version<10||qe.ios&&qe.osversion&&qe.osversion.split(".")[0]<6||qe.chromium&&qe.version<20?qe.c=ge:qe.x=ge,qe}var Pe=ce(typeof navigator!="undefined"&&navigator.userAgent||"");Pe.test=function(fe){for(var z=0;z<fe.length;++z){var ee=fe[z];if(typeof ee=="string"&&ee in Pe)return!0}return!1};function Ae(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 De(fe){for(var z=Math.max(Ae(fe[0]),Ae(fe[1])),ee=ye(fe,function(ae){var re=z-Ae(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=Pe;typeof z=="string"&&(ee=z,z=void 0),z===void 0&&(z=!1),ee&&(ae=ce(ee));var re=""+ae.version;for(var le in fe)if(fe.hasOwnProperty(le)&&ae[le]){if(typeof fe[le]!="string")throw new Error("Browser version in the minVersion map should be a string: "+le+": "+String(fe));return De([re,fe[le]])<0}return z}function we(fe,z,ee){return!me(fe,z,ee)}return Pe.isUnsupportedBrowser=me,Pe.compareVersions=De,Pe.check=we,Pe._detect=ce,Pe.detect=ce,Pe})},{}],89:[function(oe,Ze,Ne){},{}],90:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";var ce=oe("base64-js"),Pe=oe("ieee754");Ne.Buffer=me,Ne.SlowBuffer=Ee,Ne.INSPECT_MAX_BYTES=50;var Ae=2147483647;Ne.kMaxLength=Ae,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 Ge=new Uint8Array(1);return Ge.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ge.foo()===42}catch(Ke){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 De(Ge){if(Ge>Ae)throw new RangeError('The value "'+Ge+'" is invalid for option "size"');var Ke=new Uint8Array(Ge);return Ke.__proto__=me.prototype,Ke}function me(Ge,Ke,Ve){if(typeof Ge=="number"){if(typeof Ke=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ee(Ge)}return we(Ge,Ke,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 we(Ge,Ke,Ve){if(typeof Ge=="string")return ae(Ge,Ke);if(ArrayBuffer.isView(Ge))return re(Ge);if(Ge==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge);if(Je(Ge,ArrayBuffer)||Ge&&Je(Ge.buffer,ArrayBuffer))return le(Ge,Ke,Ve);if(typeof Ge=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Qe=Ge.valueOf&&Ge.valueOf();if(Qe!=null&&Qe!==Ge)return me.from(Qe,Ke,Ve);var ht=ue(Ge);if(ht)return ht;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ge[Symbol.toPrimitive]=="function")return me.from(Ge[Symbol.toPrimitive]("string"),Ke,Ve);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge)}me.from=function(Ge,Ke,Ve){return we(Ge,Ke,Ve)},me.prototype.__proto__=Uint8Array.prototype,me.__proto__=Uint8Array;function fe(Ge){if(typeof Ge!="number")throw new TypeError('"size" argument must be of type number');if(Ge<0)throw new RangeError('The value "'+Ge+'" is invalid for option "size"')}function z(Ge,Ke,Ve){return fe(Ge),Ge<=0?De(Ge):Ke!==void 0?typeof Ve=="string"?De(Ge).fill(Ke,Ve):De(Ge).fill(Ke):De(Ge)}me.alloc=function(Ge,Ke,Ve){return z(Ge,Ke,Ve)};function ee(Ge){return fe(Ge),De(Ge<0?0:pe(Ge)|0)}me.allocUnsafe=function(Ge){return ee(Ge)},me.allocUnsafeSlow=function(Ge){return ee(Ge)};function ae(Ge,Ke){if((typeof Ke!="string"||Ke==="")&&(Ke="utf8"),!me.isEncoding(Ke))throw new TypeError("Unknown encoding: "+Ke);var Ve=be(Ge,Ke)|0,Qe=De(Ve),ht=Qe.write(Ge,Ke);return ht!==Ve&&(Qe=Qe.slice(0,ht)),Qe}function re(Ge){for(var Ke=Ge.length<0?0:pe(Ge.length)|0,Ve=De(Ke),Qe=0;Qe<Ke;Qe+=1)Ve[Qe]=Ge[Qe]&255;return Ve}function le(Ge,Ke,Ve){if(Ke<0||Ge.byteLength<Ke)throw new RangeError('"offset" is outside of buffer bounds');if(Ge.byteLength<Ke+(Ve||0))throw new RangeError('"length" is outside of buffer bounds');var Qe;return Ke===void 0&&Ve===void 0?Qe=new Uint8Array(Ge):Ve===void 0?Qe=new Uint8Array(Ge,Ke):Qe=new Uint8Array(Ge,Ke,Ve),Qe.__proto__=me.prototype,Qe}function ue(Ge){if(me.isBuffer(Ge)){var Ke=pe(Ge.length)|0,Ve=De(Ke);return Ve.length===0||Ge.copy(Ve,0,0,Ke),Ve}if(Ge.length!==void 0)return typeof Ge.length!="number"||Me(Ge.length)?De(0):re(Ge);if(Ge.type==="Buffer"&&Array.isArray(Ge.data))return re(Ge.data)}function pe(Ge){if(Ge>=Ae)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ae.toString(16)+" bytes");return Ge|0}function Ee(Ge){return+Ge!=Ge&&(Ge=0),me.alloc(+Ge)}me.isBuffer=function(Ke){return Ke!=null&&Ke._isBuffer===!0&&Ke!==me.prototype},me.compare=function(Ke,Ve){if(Je(Ke,Uint8Array)&&(Ke=me.from(Ke,Ke.offset,Ke.byteLength)),Je(Ve,Uint8Array)&&(Ve=me.from(Ve,Ve.offset,Ve.byteLength)),!me.isBuffer(Ke)||!me.isBuffer(Ve))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ke===Ve)return 0;for(var Qe=Ke.length,ht=Ve.length,At=0,pt=Math.min(Qe,ht);At<pt;++At)if(Ke[At]!==Ve[At]){Qe=Ke[At],ht=Ve[At];break}return Qe<ht?-1:ht<Qe?1:0},me.isEncoding=function(Ke){switch(String(Ke).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(Ke,Ve){if(!Array.isArray(Ke))throw new TypeError('"list" argument must be an Array of Buffers');if(Ke.length===0)return me.alloc(0);var Qe;if(Ve===void 0)for(Ve=0,Qe=0;Qe<Ke.length;++Qe)Ve+=Ke[Qe].length;var ht=me.allocUnsafe(Ve),At=0;for(Qe=0;Qe<Ke.length;++Qe){var pt=Ke[Qe];if(Je(pt,Uint8Array)&&(pt=me.from(pt)),!me.isBuffer(pt))throw new TypeError('"list" argument must be an Array of Buffers');pt.copy(ht,At),At+=pt.length}return ht};function be(Ge,Ke){if(me.isBuffer(Ge))return Ge.length;if(ArrayBuffer.isView(Ge)||Je(Ge,ArrayBuffer))return Ge.byteLength;if(typeof Ge!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ge);var Ve=Ge.length,Qe=arguments.length>2&&arguments[2]===!0;if(!Qe&&Ve===0)return 0;for(var ht=!1;;)switch(Ke){case"ascii":case"latin1":case"binary":return Ve;case"utf8":case"utf-8":return it(Ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ve*2;case"hex":return Ve>>>1;case"base64":return Ce(Ge).length;default:if(ht)return Qe?-1:it(Ge).length;Ke=(""+Ke).toLowerCase(),ht=!0}}me.byteLength=be;function Ie(Ge,Ke,Ve){var Qe=!1;if((Ke===void 0||Ke<0)&&(Ke=0),Ke>this.length||((Ve===void 0||Ve>this.length)&&(Ve=this.length),Ve<=0)||(Ve>>>=0,Ke>>>=0,Ve<=Ke))return"";for(Ge||(Ge="utf8");;)switch(Ge){case"hex":return St(this,Ke,Ve);case"utf8":case"utf-8":return ut(this,Ke,Ve);case"ascii":return ot(this,Ke,Ve);case"latin1":case"binary":return dt(this,Ke,Ve);case"base64":return lt(this,Ke,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,Ke,Ve);default:if(Qe)throw new TypeError("Unknown encoding: "+Ge);Ge=(Ge+"").toLowerCase(),Qe=!0}}me.prototype._isBuffer=!0;function Le(Ge,Ke,Ve){var Qe=Ge[Ke];Ge[Ke]=Ge[Ve],Ge[Ve]=Qe}me.prototype.swap16=function(){var Ke=this.length;if(Ke%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ve=0;Ve<Ke;Ve+=2)Le(this,Ve,Ve+1);return this},me.prototype.swap32=function(){var Ke=this.length;if(Ke%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ve=0;Ve<Ke;Ve+=4)Le(this,Ve,Ve+3),Le(this,Ve+1,Ve+2);return this},me.prototype.swap64=function(){var Ke=this.length;if(Ke%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ve=0;Ve<Ke;Ve+=8)Le(this,Ve,Ve+7),Le(this,Ve+1,Ve+6),Le(this,Ve+2,Ve+5),Le(this,Ve+3,Ve+4);return this},me.prototype.toString=function(){var Ke=this.length;return Ke===0?"":arguments.length===0?ut(this,0,Ke):Ie.apply(this,arguments)},me.prototype.toLocaleString=me.prototype.toString,me.prototype.equals=function(Ke){if(!me.isBuffer(Ke))throw new TypeError("Argument must be a Buffer");return this===Ke?!0:me.compare(this,Ke)===0},me.prototype.inspect=function(){var Ke="",Ve=Ne.INSPECT_MAX_BYTES;return Ke=this.toString("hex",0,Ve).replace(/(.{2})/g,"$1 ").trim(),this.length>Ve&&(Ke+=" ... "),"<Buffer "+Ke+">"},me.prototype.compare=function(Ke,Ve,Qe,ht,At){if(Je(Ke,Uint8Array)&&(Ke=me.from(Ke,Ke.offset,Ke.byteLength)),!me.isBuffer(Ke))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ke);if(Ve===void 0&&(Ve=0),Qe===void 0&&(Qe=Ke?Ke.length:0),ht===void 0&&(ht=0),At===void 0&&(At=this.length),Ve<0||Qe>Ke.length||ht<0||At>this.length)throw new RangeError("out of range index");if(ht>=At&&Ve>=Qe)return 0;if(ht>=At)return-1;if(Ve>=Qe)return 1;if(Ve>>>=0,Qe>>>=0,ht>>>=0,At>>>=0,this===Ke)return 0;for(var pt=At-ht,Ot=Qe-Ve,Kt=Math.min(pt,Ot),jt=this.slice(ht,At),Rt=Ke.slice(Ve,Qe),Xt=0;Xt<Kt;++Xt)if(jt[Xt]!==Rt[Xt]){pt=jt[Xt],Ot=Rt[Xt];break}return pt<Ot?-1:Ot<pt?1:0};function Fe(Ge,Ke,Ve,Qe,ht){if(Ge.length===0)return-1;if(typeof Ve=="string"?(Qe=Ve,Ve=0):Ve>2147483647?Ve=2147483647:Ve<-2147483648&&(Ve=-2147483648),Ve=+Ve,Me(Ve)&&(Ve=ht?0:Ge.length-1),Ve<0&&(Ve=Ge.length+Ve),Ve>=Ge.length){if(ht)return-1;Ve=Ge.length-1}else if(Ve<0)if(ht)Ve=0;else return-1;if(typeof Ke=="string"&&(Ke=me.from(Ke,Qe)),me.isBuffer(Ke))return Ke.length===0?-1:Oe(Ge,Ke,Ve,Qe,ht);if(typeof Ke=="number")return Ke=Ke&255,typeof Uint8Array.prototype.indexOf=="function"?ht?Uint8Array.prototype.indexOf.call(Ge,Ke,Ve):Uint8Array.prototype.lastIndexOf.call(Ge,Ke,Ve):Oe(Ge,[Ke],Ve,Qe,ht);throw new TypeError("val must be string, number or Buffer")}function Oe(Ge,Ke,Ve,Qe,ht){var At=1,pt=Ge.length,Ot=Ke.length;if(Qe!==void 0&&(Qe=String(Qe).toLowerCase(),Qe==="ucs2"||Qe==="ucs-2"||Qe==="utf16le"||Qe==="utf-16le")){if(Ge.length<2||Ke.length<2)return-1;At=2,pt/=2,Ot/=2,Ve/=2}function Kt(Ft,Qt){return At===1?Ft[Qt]:Ft.readUInt16BE(Qt*At)}var jt;if(ht){var Rt=-1;for(jt=Ve;jt<pt;jt++)if(Kt(Ge,jt)===Kt(Ke,Rt===-1?0:jt-Rt)){if(Rt===-1&&(Rt=jt),jt-Rt+1===Ot)return Rt*At}else Rt!==-1&&(jt-=jt-Rt),Rt=-1}else for(Ve+Ot>pt&&(Ve=pt-Ot),jt=Ve;jt>=0;jt--){for(var Xt=!0,sn=0;sn<Ot;sn++)if(Kt(Ge,jt+sn)!==Kt(Ke,sn)){Xt=!1;break}if(Xt)return jt}return-1}me.prototype.includes=function(Ke,Ve,Qe){return this.indexOf(Ke,Ve,Qe)!==-1},me.prototype.indexOf=function(Ke,Ve,Qe){return Fe(this,Ke,Ve,Qe,!0)},me.prototype.lastIndexOf=function(Ke,Ve,Qe){return Fe(this,Ke,Ve,Qe,!1)};function je(Ge,Ke,Ve,Qe){Ve=Number(Ve)||0;var ht=Ge.length-Ve;Qe?(Qe=Number(Qe),Qe>ht&&(Qe=ht)):Qe=ht;var At=Ke.length;Qe>At/2&&(Qe=At/2);for(var pt=0;pt<Qe;++pt){var Ot=parseInt(Ke.substr(pt*2,2),16);if(Me(Ot))return pt;Ge[Ve+pt]=Ot}return pt}function ze(Ge,Ke,Ve,Qe){return Ye(it(Ke,Ge.length-Ve),Ge,Ve,Qe)}function _e(Ge,Ke,Ve,Qe){return Ye(nt(Ke),Ge,Ve,Qe)}function Ue(Ge,Ke,Ve,Qe){return _e(Ge,Ke,Ve,Qe)}function $e(Ge,Ke,Ve,Qe){return Ye(Ce(Ke),Ge,Ve,Qe)}function et(Ge,Ke,Ve,Qe){return Ye(xe(Ke,Ge.length-Ve),Ge,Ve,Qe)}me.prototype.write=function(Ke,Ve,Qe,ht){if(Ve===void 0)ht="utf8",Qe=this.length,Ve=0;else if(Qe===void 0&&typeof Ve=="string")ht=Ve,Qe=this.length,Ve=0;else if(isFinite(Ve))Ve=Ve>>>0,isFinite(Qe)?(Qe=Qe>>>0,ht===void 0&&(ht="utf8")):(ht=Qe,Qe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var At=this.length-Ve;if((Qe===void 0||Qe>At)&&(Qe=At),Ke.length>0&&(Qe<0||Ve<0)||Ve>this.length)throw new RangeError("Attempt to write outside buffer bounds");ht||(ht="utf8");for(var pt=!1;;)switch(ht){case"hex":return je(this,Ke,Ve,Qe);case"utf8":case"utf-8":return ze(this,Ke,Ve,Qe);case"ascii":return _e(this,Ke,Ve,Qe);case"latin1":case"binary":return Ue(this,Ke,Ve,Qe);case"base64":return $e(this,Ke,Ve,Qe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,Ke,Ve,Qe);default:if(pt)throw new TypeError("Unknown encoding: "+ht);ht=(""+ht).toLowerCase(),pt=!0}},me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function lt(Ge,Ke,Ve){return Ke===0&&Ve===Ge.length?ce.fromByteArray(Ge):ce.fromByteArray(Ge.slice(Ke,Ve))}function ut(Ge,Ke,Ve){Ve=Math.min(Ge.length,Ve);for(var Qe=[],ht=Ke;ht<Ve;){var At=Ge[ht],pt=null,Ot=At>239?4:At>223?3:At>191?2:1;if(ht+Ot<=Ve){var Kt,jt,Rt,Xt;switch(Ot){case 1:At<128&&(pt=At);break;case 2:Kt=Ge[ht+1],(Kt&192)===128&&(Xt=(At&31)<<6|Kt&63,Xt>127&&(pt=Xt));break;case 3:Kt=Ge[ht+1],jt=Ge[ht+2],(Kt&192)===128&&(jt&192)===128&&(Xt=(At&15)<<12|(Kt&63)<<6|jt&63,Xt>2047&&(Xt<55296||Xt>57343)&&(pt=Xt));break;case 4:Kt=Ge[ht+1],jt=Ge[ht+2],Rt=Ge[ht+3],(Kt&192)===128&&(jt&192)===128&&(Rt&192)===128&&(Xt=(At&15)<<18|(Kt&63)<<12|(jt&63)<<6|Rt&63,Xt>65535&&Xt<1114112&&(pt=Xt))}}pt===null?(pt=65533,Ot=1):pt>65535&&(pt-=65536,Qe.push(pt>>>10&1023|55296),pt=56320|pt&1023),Qe.push(pt),ht+=Ot}return qe(Qe)}var yt=4096;function qe(Ge){var Ke=Ge.length;if(Ke<=yt)return String.fromCharCode.apply(String,Ge);for(var Ve="",Qe=0;Qe<Ke;)Ve+=String.fromCharCode.apply(String,Ge.slice(Qe,Qe+=yt));return Ve}function ot(Ge,Ke,Ve){var Qe="";Ve=Math.min(Ge.length,Ve);for(var ht=Ke;ht<Ve;++ht)Qe+=String.fromCharCode(Ge[ht]&127);return Qe}function dt(Ge,Ke,Ve){var Qe="";Ve=Math.min(Ge.length,Ve);for(var ht=Ke;ht<Ve;++ht)Qe+=String.fromCharCode(Ge[ht]);return Qe}function St(Ge,Ke,Ve){var Qe=Ge.length;(!Ke||Ke<0)&&(Ke=0),(!Ve||Ve<0||Ve>Qe)&&(Ve=Qe);for(var ht="",At=Ke;At<Ve;++At)ht+=bt(Ge[At]);return ht}function xt(Ge,Ke,Ve){for(var Qe=Ge.slice(Ke,Ve),ht="",At=0;At<Qe.length;At+=2)ht+=String.fromCharCode(Qe[At]+Qe[At+1]*256);return ht}me.prototype.slice=function(Ke,Ve){var Qe=this.length;Ke=~~Ke,Ve=Ve===void 0?Qe:~~Ve,Ke<0?(Ke+=Qe,Ke<0&&(Ke=0)):Ke>Qe&&(Ke=Qe),Ve<0?(Ve+=Qe,Ve<0&&(Ve=0)):Ve>Qe&&(Ve=Qe),Ve<Ke&&(Ve=Ke);var ht=this.subarray(Ke,Ve);return ht.__proto__=me.prototype,ht};function ft(Ge,Ke,Ve){if(Ge%1!==0||Ge<0)throw new RangeError("offset is not uint");if(Ge+Ke>Ve)throw new RangeError("Trying to access beyond buffer length")}me.prototype.readUIntLE=function(Ke,Ve,Qe){Ke=Ke>>>0,Ve=Ve>>>0,Qe||ft(Ke,Ve,this.length);for(var ht=this[Ke],At=1,pt=0;++pt<Ve&&(At*=256);)ht+=this[Ke+pt]*At;return ht},me.prototype.readUIntBE=function(Ke,Ve,Qe){Ke=Ke>>>0,Ve=Ve>>>0,Qe||ft(Ke,Ve,this.length);for(var ht=this[Ke+--Ve],At=1;Ve>0&&(At*=256);)ht+=this[Ke+--Ve]*At;return ht},me.prototype.readUInt8=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,1,this.length),this[Ke]},me.prototype.readUInt16LE=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,2,this.length),this[Ke]|this[Ke+1]<<8},me.prototype.readUInt16BE=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,2,this.length),this[Ke]<<8|this[Ke+1]},me.prototype.readUInt32LE=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,4,this.length),(this[Ke]|this[Ke+1]<<8|this[Ke+2]<<16)+this[Ke+3]*16777216},me.prototype.readUInt32BE=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,4,this.length),this[Ke]*16777216+(this[Ke+1]<<16|this[Ke+2]<<8|this[Ke+3])},me.prototype.readIntLE=function(Ke,Ve,Qe){Ke=Ke>>>0,Ve=Ve>>>0,Qe||ft(Ke,Ve,this.length);for(var ht=this[Ke],At=1,pt=0;++pt<Ve&&(At*=256);)ht+=this[Ke+pt]*At;return At*=128,ht>=At&&(ht-=Math.pow(2,8*Ve)),ht},me.prototype.readIntBE=function(Ke,Ve,Qe){Ke=Ke>>>0,Ve=Ve>>>0,Qe||ft(Ke,Ve,this.length);for(var ht=Ve,At=1,pt=this[Ke+--ht];ht>0&&(At*=256);)pt+=this[Ke+--ht]*At;return At*=128,pt>=At&&(pt-=Math.pow(2,8*Ve)),pt},me.prototype.readInt8=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,1,this.length),this[Ke]&128?(255-this[Ke]+1)*-1:this[Ke]},me.prototype.readInt16LE=function(Ke,Ve){Ke=Ke>>>0,Ve||ft(Ke,2,this.length);var Qe=this[Ke]|this[Ke+1]<<8;return Qe&32768?Qe|4294901760:Qe},me.prototype.readInt16BE=function(Ke,Ve){Ke=Ke>>>0,Ve||ft(Ke,2,this.length);var Qe=this[Ke+1]|this[Ke]<<8;return Qe&32768?Qe|4294901760:Qe},me.prototype.readInt32LE=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,4,this.length),this[Ke]|this[Ke+1]<<8|this[Ke+2]<<16|this[Ke+3]<<24},me.prototype.readInt32BE=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,4,this.length),this[Ke]<<24|this[Ke+1]<<16|this[Ke+2]<<8|this[Ke+3]},me.prototype.readFloatLE=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,4,this.length),Pe.read(this,Ke,!0,23,4)},me.prototype.readFloatBE=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,4,this.length),Pe.read(this,Ke,!1,23,4)},me.prototype.readDoubleLE=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,8,this.length),Pe.read(this,Ke,!0,52,8)},me.prototype.readDoubleBE=function(Ke,Ve){return Ke=Ke>>>0,Ve||ft(Ke,8,this.length),Pe.read(this,Ke,!1,52,8)};function gt(Ge,Ke,Ve,Qe,ht,At){if(!me.isBuffer(Ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ke>ht||Ke<At)throw new RangeError('"value" argument is out of bounds');if(Ve+Qe>Ge.length)throw new RangeError("Index out of range")}me.prototype.writeUIntLE=function(Ke,Ve,Qe,ht){if(Ke=+Ke,Ve=Ve>>>0,Qe=Qe>>>0,!ht){var At=Math.pow(2,8*Qe)-1;gt(this,Ke,Ve,Qe,At,0)}var pt=1,Ot=0;for(this[Ve]=Ke&255;++Ot<Qe&&(pt*=256);)this[Ve+Ot]=Ke/pt&255;return Ve+Qe},me.prototype.writeUIntBE=function(Ke,Ve,Qe,ht){if(Ke=+Ke,Ve=Ve>>>0,Qe=Qe>>>0,!ht){var At=Math.pow(2,8*Qe)-1;gt(this,Ke,Ve,Qe,At,0)}var pt=Qe-1,Ot=1;for(this[Ve+pt]=Ke&255;--pt>=0&&(Ot*=256);)this[Ve+pt]=Ke/Ot&255;return Ve+Qe},me.prototype.writeUInt8=function(Ke,Ve,Qe){return Ke=+Ke,Ve=Ve>>>0,Qe||gt(this,Ke,Ve,1,255,0),this[Ve]=Ke&255,Ve+1},me.prototype.writeUInt16LE=function(Ke,Ve,Qe){return Ke=+Ke,Ve=Ve>>>0,Qe||gt(this,Ke,Ve,2,65535,0),this[Ve]=Ke&255,this[Ve+1]=Ke>>>8,Ve+2},me.prototype.writeUInt16BE=function(Ke,Ve,Qe){return Ke=+Ke,Ve=Ve>>>0,Qe||gt(this,Ke,Ve,2,65535,0),this[Ve]=Ke>>>8,this[Ve+1]=Ke&255,Ve+2},me.prototype.writeUInt32LE=function(Ke,Ve,Qe){return Ke=+Ke,Ve=Ve>>>0,Qe||gt(this,Ke,Ve,4,4294967295,0),this[Ve+3]=Ke>>>24,this[Ve+2]=Ke>>>16,this[Ve+1]=Ke>>>8,this[Ve]=Ke&255,Ve+4},me.prototype.writeUInt32BE=function(Ke,Ve,Qe){return Ke=+Ke,Ve=Ve>>>0,Qe||gt(this,Ke,Ve,4,4294967295,0),this[Ve]=Ke>>>24,this[Ve+1]=Ke>>>16,this[Ve+2]=Ke>>>8,this[Ve+3]=Ke&255,Ve+4},me.prototype.writeIntLE=function(Ke,Ve,Qe,ht){if(Ke=+Ke,Ve=Ve>>>0,!ht){var At=Math.pow(2,8*Qe-1);gt(this,Ke,Ve,Qe,At-1,-At)}var pt=0,Ot=1,Kt=0;for(this[Ve]=Ke&255;++pt<Qe&&(Ot*=256);)Ke<0&&Kt===0&&this[Ve+pt-1]!==0&&(Kt=1),this[Ve+pt]=(Ke/Ot>>0)-Kt&255;return Ve+Qe},me.prototype.writeIntBE=function(Ke,Ve,Qe,ht){if(Ke=+Ke,Ve=Ve>>>0,!ht){var At=Math.pow(2,8*Qe-1);gt(this,Ke,Ve,Qe,At-1,-At)}var pt=Qe-1,Ot=1,Kt=0;for(this[Ve+pt]=Ke&255;--pt>=0&&(Ot*=256);)Ke<0&&Kt===0&&this[Ve+pt+1]!==0&&(Kt=1),this[Ve+pt]=(Ke/Ot>>0)-Kt&255;return Ve+Qe},me.prototype.writeInt8=function(Ke,Ve,Qe){return Ke=+Ke,Ve=Ve>>>0,Qe||gt(this,Ke,Ve,1,127,-128),Ke<0&&(Ke=255+Ke+1),this[Ve]=Ke&255,Ve+1},me.prototype.writeInt16LE=function(Ke,Ve,Qe){return Ke=+Ke,Ve=Ve>>>0,Qe||gt(this,Ke,Ve,2,32767,-32768),this[Ve]=Ke&255,this[Ve+1]=Ke>>>8,Ve+2},me.prototype.writeInt16BE=function(Ke,Ve,Qe){return Ke=+Ke,Ve=Ve>>>0,Qe||gt(this,Ke,Ve,2,32767,-32768),this[Ve]=Ke>>>8,this[Ve+1]=Ke&255,Ve+2},me.prototype.writeInt32LE=function(Ke,Ve,Qe){return Ke=+Ke,Ve=Ve>>>0,Qe||gt(this,Ke,Ve,4,2147483647,-2147483648),this[Ve]=Ke&255,this[Ve+1]=Ke>>>8,this[Ve+2]=Ke>>>16,this[Ve+3]=Ke>>>24,Ve+4},me.prototype.writeInt32BE=function(Ke,Ve,Qe){return Ke=+Ke,Ve=Ve>>>0,Qe||gt(this,Ke,Ve,4,2147483647,-2147483648),Ke<0&&(Ke=4294967295+Ke+1),this[Ve]=Ke>>>24,this[Ve+1]=Ke>>>16,this[Ve+2]=Ke>>>8,this[Ve+3]=Ke&255,Ve+4};function vt(Ge,Ke,Ve,Qe,ht,At){if(Ve+Qe>Ge.length)throw new RangeError("Index out of range");if(Ve<0)throw new RangeError("Index out of range")}function Tt(Ge,Ke,Ve,Qe,ht){return Ke=+Ke,Ve=Ve>>>0,ht||vt(Ge,Ke,Ve,4,34028234663852886e22,-34028234663852886e22),Pe.write(Ge,Ke,Ve,Qe,23,4),Ve+4}me.prototype.writeFloatLE=function(Ke,Ve,Qe){return Tt(this,Ke,Ve,!0,Qe)},me.prototype.writeFloatBE=function(Ke,Ve,Qe){return Tt(this,Ke,Ve,!1,Qe)};function Et(Ge,Ke,Ve,Qe,ht){return Ke=+Ke,Ve=Ve>>>0,ht||vt(Ge,Ke,Ve,8,17976931348623157e292,-17976931348623157e292),Pe.write(Ge,Ke,Ve,Qe,52,8),Ve+8}me.prototype.writeDoubleLE=function(Ke,Ve,Qe){return Et(this,Ke,Ve,!0,Qe)},me.prototype.writeDoubleBE=function(Ke,Ve,Qe){return Et(this,Ke,Ve,!1,Qe)},me.prototype.copy=function(Ke,Ve,Qe,ht){if(!me.isBuffer(Ke))throw new TypeError("argument should be a Buffer");if(Qe||(Qe=0),!ht&&ht!==0&&(ht=this.length),Ve>=Ke.length&&(Ve=Ke.length),Ve||(Ve=0),ht>0&&ht<Qe&&(ht=Qe),ht===Qe||Ke.length===0||this.length===0)return 0;if(Ve<0)throw new RangeError("targetStart out of bounds");if(Qe<0||Qe>=this.length)throw new RangeError("Index out of range");if(ht<0)throw new RangeError("sourceEnd out of bounds");ht>this.length&&(ht=this.length),Ke.length-Ve<ht-Qe&&(ht=Ke.length-Ve+Qe);var At=ht-Qe;if(this===Ke&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ve,Qe,ht);else if(this===Ke&&Qe<Ve&&Ve<ht)for(var pt=At-1;pt>=0;--pt)Ke[pt+Ve]=this[pt+Qe];else Uint8Array.prototype.set.call(Ke,this.subarray(Qe,ht),Ve);return At},me.prototype.fill=function(Ke,Ve,Qe,ht){if(typeof Ke=="string"){if(typeof Ve=="string"?(ht=Ve,Ve=0,Qe=this.length):typeof Qe=="string"&&(ht=Qe,Qe=this.length),ht!==void 0&&typeof ht!="string")throw new TypeError("encoding must be a string");if(typeof ht=="string"&&!me.isEncoding(ht))throw new TypeError("Unknown encoding: "+ht);if(Ke.length===1){var At=Ke.charCodeAt(0);(ht==="utf8"&&At<128||ht==="latin1")&&(Ke=At)}}else typeof Ke=="number"&&(Ke=Ke&255);if(Ve<0||this.length<Ve||this.length<Qe)throw new RangeError("Out of range index");if(Qe<=Ve)return this;Ve=Ve>>>0,Qe=Qe===void 0?this.length:Qe>>>0,Ke||(Ke=0);var pt;if(typeof Ke=="number")for(pt=Ve;pt<Qe;++pt)this[pt]=Ke;else{var Ot=me.isBuffer(Ke)?Ke:me.from(Ke,ht),Kt=Ot.length;if(Kt===0)throw new TypeError('The value "'+Ke+'" is invalid for argument "value"');for(pt=0;pt<Qe-Ve;++pt)this[pt+Ve]=Ot[pt%Kt]}return this};var Zt=/[^+/0-9A-Za-z-_]/g;function wt(Ge){if(Ge=Ge.split("=")[0],Ge=Ge.trim().replace(Zt,""),Ge.length<2)return"";for(;Ge.length%4!==0;)Ge=Ge+"=";return Ge}function bt(Ge){return Ge<16?"0"+Ge.toString(16):Ge.toString(16)}function it(Ge,Ke){Ke=Ke||1/0;for(var Ve,Qe=Ge.length,ht=null,At=[],pt=0;pt<Qe;++pt){if(Ve=Ge.charCodeAt(pt),Ve>55295&&Ve<57344){if(!ht){if(Ve>56319){(Ke-=3)>-1&&At.push(239,191,189);continue}else if(pt+1===Qe){(Ke-=3)>-1&&At.push(239,191,189);continue}ht=Ve;continue}if(Ve<56320){(Ke-=3)>-1&&At.push(239,191,189),ht=Ve;continue}Ve=(ht-55296<<10|Ve-56320)+65536}else ht&&(Ke-=3)>-1&&At.push(239,191,189);if(ht=null,Ve<128){if((Ke-=1)<0)break;At.push(Ve)}else if(Ve<2048){if((Ke-=2)<0)break;At.push(Ve>>6|192,Ve&63|128)}else if(Ve<65536){if((Ke-=3)<0)break;At.push(Ve>>12|224,Ve>>6&63|128,Ve&63|128)}else if(Ve<1114112){if((Ke-=4)<0)break;At.push(Ve>>18|240,Ve>>12&63|128,Ve>>6&63|128,Ve&63|128)}else throw new Error("Invalid code point")}return At}function nt(Ge){for(var Ke=[],Ve=0;Ve<Ge.length;++Ve)Ke.push(Ge.charCodeAt(Ve)&255);return Ke}function xe(Ge,Ke){for(var Ve,Qe,ht,At=[],pt=0;pt<Ge.length&&!((Ke-=2)<0);++pt)Ve=Ge.charCodeAt(pt),Qe=Ve>>8,ht=Ve%256,At.push(ht),At.push(Qe);return At}function Ce(Ge){return ce.toByteArray(wt(Ge))}function Ye(Ge,Ke,Ve,Qe){for(var ht=0;ht<Qe&&!(ht+Ve>=Ke.length||ht>=Ge.length);++ht)Ke[ht+Ve]=Ge[ht];return ht}function Je(Ge,Ke){return Ge instanceof Ke||Ge!=null&&Ge.constructor!=null&&Ge.constructor.name!=null&&Ge.constructor.name===Ke.name}function Me(Ge){return Ge!==Ge}}).call(this)}).call(this,oe("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(oe,Ze,Ne){Ze.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,Ze,Ne){"use strict";var ge=oe("get-intrinsic"),ce=oe("./"),Pe=ce(ge("String.prototype.indexOf"));Ze.exports=function(ye,De){var me=ge(ye,!!De);return typeof me=="function"&&Pe(ye,".prototype.")>-1?ce(me):me}},{"./":93,"get-intrinsic":348}],93:[function(oe,Ze,Ne){"use strict";var ge=oe("function-bind"),ce=oe("get-intrinsic"),Pe=ce("%Function.prototype.apply%"),Ae=ce("%Function.prototype.call%"),ye=ce("%Reflect.apply%",!0)||ge.call(Ae,Pe),De=ce("%Object.getOwnPropertyDescriptor%",!0),me=ce("%Object.defineProperty%",!0),we=ce("%Math.max%");if(me)try{me({},"a",{value:1})}catch(z){me=null}Ze.exports=function(ee){var ae=ye(ge,Ae,arguments);if(De&&me){var re=De(ae,"length");re.configurable&&me(ae,"length",{value:1+we(0,ee.length-(arguments.length-1))})}return ae};var fe=function(){return ye(ge,Pe,arguments)};me?me(Ze.exports,"apply",{value:fe}):Ze.exports.apply=fe},{"function-bind":347,"get-intrinsic":348}],94:[function(oe,Ze,Ne){"use strict";var ge=Array.prototype.slice;Ze.exports=ce;function ce(Ae,ye){if(!(this instanceof ce))return new ce(Ae,ye);this.src=Ae,this._withAccess=ye}ce.prototype.withAccess=function(Ae){return this._withAccess=Ae!==!1,this},ce.prototype.pick=function(Ae){return Array.isArray(Ae)||(Ae=ge.call(arguments)),Ae.length&&(this.keys=Ae),this},ce.prototype.to=function(Ae){if(Ae=Ae||{},!this.src)return Ae;var ye=this.keys||Object.keys(this.src);if(!this._withAccess){for(var De=0;De<ye.length;De++)me=ye[De],Ae[me]===void 0&&(Ae[me]=this.src[me]);return Ae}for(var De=0;De<ye.length;De++){var me=ye[De];if(Pe(Ae,me)){var we=this.src.__lookupGetter__(me),fe=this.src.__lookupSetter__(me);we&&Ae.__defineGetter__(me,we),fe&&Ae.__defineSetter__(me,fe),!we&&!fe&&(Ae[me]=this.src[me])}}return Ae},ce.prototype.toCover=function(Ae){for(var ye=this.keys||Object.keys(this.src),De=0;De<ye.length;De++){var me=ye[De];delete Ae[me];var we=this.src.__lookupGetter__(me),fe=this.src.__lookupSetter__(me);we&&Ae.__defineGetter__(me,we),fe&&Ae.__defineSetter__(me,fe),!we&&!fe&&(Ae[me]=this.src[me])}},ce.prototype.override=ce.prototype.toCover,ce.prototype.and=function(Ae){var ye={};return this.to(ye),this.src=Ae,this.to(ye),this.src=ye,this};function Pe(Ae,ye){return Ae[ye]===void 0&&Ae.__lookupGetter__(ye)===void 0&&Ae.__lookupSetter__(ye)===void 0}},{}],95:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/is-callable"),Pe=oe("../internals/try-to-string"),Ae=ge.TypeError;Ze.exports=function(ye){if(ce(ye))return ye;throw Ae(Pe(ye)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/is-constructor"),Pe=oe("../internals/try-to-string"),Ae=ge.TypeError;Ze.exports=function(ye){if(ce(ye))return ye;throw Ae(Pe(ye)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/is-callable"),Pe=ge.String,Ae=ge.TypeError;Ze.exports=function(ye){if(typeof ye=="object"||ce(ye))return ye;throw Ae("Can't set "+Pe(ye)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(oe,Ze,Ne){var ge=oe("../internals/well-known-symbol"),ce=oe("../internals/object-create"),Pe=oe("../internals/object-define-property"),Ae=ge("unscopables"),ye=Array.prototype;ye[Ae]==null&&Pe.f(ye,Ae,{configurable:!0,value:ce(null)}),Ze.exports=function(De){ye[Ae][De]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/string-multibyte").charAt;Ze.exports=function(ce,Pe,Ae){return Pe+(Ae?ge(ce,Pe).length:1)}},{"../internals/string-multibyte":239}],100:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/object-is-prototype-of"),Pe=ge.TypeError;Ze.exports=function(Ae,ye){if(ce(ye,Ae))return Ae;throw Pe("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/is-object"),Pe=ge.String,Ae=ge.TypeError;Ze.exports=function(ye){if(ce(ye))return ye;throw Ae(Pe(ye)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(oe,Ze,Ne){Ze.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-native"),ce=oe("../internals/descriptors"),Pe=oe("../internals/global"),Ae=oe("../internals/is-callable"),ye=oe("../internals/is-object"),De=oe("../internals/has-own-property"),me=oe("../internals/classof"),we=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"),Ee=Pe.Int8Array,be=Ee&&Ee.prototype,Ie=Pe.Uint8ClampedArray,Le=Ie&&Ie.prototype,Fe=Ee&&re(Ee),Oe=be&&re(be),je=Object.prototype,ze=Pe.TypeError,_e=ue("toStringTag"),Ue=pe("TYPED_ARRAY_TAG"),$e=pe("TYPED_ARRAY_CONSTRUCTOR"),et=ge&&!!le&&me(Pe.opera)!=="Opera",lt=!1,ut,yt,qe,ot={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},dt={BigInt64Array:8,BigUint64Array:8},St=function(Zt){if(!ye(Zt))return!1;var wt=me(Zt);return wt==="DataView"||De(ot,wt)||De(dt,wt)},xt=function(Et){if(!ye(Et))return!1;var Zt=me(Et);return De(ot,Zt)||De(dt,Zt)},ft=function(Et){if(xt(Et))return Et;throw ze("Target is not a typed array")},gt=function(Et){if(Ae(Et)&&(!le||ae(Fe,Et)))return Et;throw ze(we(Et)+" is not a typed array constructor")},vt=function(Et,Zt,wt,bt){if(ce){if(wt)for(var it in ot){var nt=Pe[it];if(nt&&De(nt.prototype,Et))try{delete nt.prototype[Et]}catch(xe){try{nt.prototype[Et]=Zt}catch(Ce){}}}(!Oe[Et]||wt)&&z(Oe,Et,wt?Zt:et&&be[Et]||Zt,bt)}},Tt=function(Et,Zt,wt){var bt,it;if(ce){if(le){if(wt){for(bt in ot)if(it=Pe[bt],it&&De(it,Et))try{delete it[Et]}catch(nt){}}if(!Fe[Et]||wt)try{return z(Fe,Et,wt?Zt:et&&Fe[Et]||Zt)}catch(nt){}else return}for(bt in ot)it=Pe[bt],it&&(!it[Et]||wt)&&z(it,Et,Zt)}};for(ut in ot)yt=Pe[ut],qe=yt&&yt.prototype,qe?fe(qe,$e,yt):et=!1;for(ut in dt)yt=Pe[ut],qe=yt&&yt.prototype,qe&&fe(qe,$e,yt);if((!et||!Ae(Fe)||Fe===Function.prototype)&&(Fe=function(){throw ze("Incorrect invocation")},et))for(ut in ot)Pe[ut]&&le(Pe[ut],Fe);if((!et||!Oe||Oe===je)&&(Oe=Fe.prototype,et))for(ut in ot)Pe[ut]&&le(Pe[ut].prototype,Oe);if(et&&re(Le)!==Oe&&le(Le,Oe),ce&&!De(Oe,_e)){lt=!0,ee(Oe,_e,{get:function(){return ye(this)?this[Ue]:void 0}});for(ut in ot)Pe[ut]&&fe(Pe[ut],Ue,ut)}Ze.exports={NATIVE_ARRAY_BUFFER_VIEWS:et,TYPED_ARRAY_CONSTRUCTOR:$e,TYPED_ARRAY_TAG:lt&&Ue,aTypedArray:ft,aTypedArrayConstructor:gt,exportTypedArrayMethod:vt,exportTypedArrayStaticMethod:Tt,isView:St,isTypedArray:xt,TypedArray:Fe,TypedArrayPrototype:Oe}},{"../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,Ze,Ne){"use strict";var ge=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/descriptors"),Ae=oe("../internals/array-buffer-native"),ye=oe("../internals/function-name"),De=oe("../internals/create-non-enumerable-property"),me=oe("../internals/redefine-all"),we=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,Ee=oe("../internals/object-define-property").f,be=oe("../internals/array-fill"),Ie=oe("../internals/array-slice-simple"),Le=oe("../internals/set-to-string-tag"),Fe=oe("../internals/internal-state"),Oe=ye.PROPER,je=ye.CONFIGURABLE,ze=Fe.get,_e=Fe.set,Ue="ArrayBuffer",$e="DataView",et="prototype",lt="Wrong length",ut="Wrong index",yt=ge[Ue],qe=yt,ot=qe&&qe[et],dt=ge[$e],St=dt&&dt[et],xt=Object.prototype,ft=ge.Array,gt=ge.RangeError,vt=ce(be),Tt=ce([].reverse),Et=re.pack,Zt=re.unpack,wt=function(pt){return[pt&255]},bt=function(pt){return[pt&255,pt>>8&255]},it=function(pt){return[pt&255,pt>>8&255,pt>>16&255,pt>>24&255]},nt=function(pt){return pt[3]<<24|pt[2]<<16|pt[1]<<8|pt[0]},xe=function(pt){return Et(pt,23,4)},Ce=function(pt){return Et(pt,52,8)},Ye=function(pt,Ot){Ee(pt[et],Ot,{get:function(){return ze(this)[Ot]}})},Je=function(pt,Ot,Kt,jt){var Rt=ae(Kt),Xt=ze(pt);if(Rt+Ot>Xt.byteLength)throw gt(ut);var sn=ze(Xt.buffer).bytes,Ft=Rt+Xt.byteOffset,Qt=Ie(sn,Ft,Ft+Ot);return jt?Qt:Tt(Qt)},Me=function(pt,Ot,Kt,jt,Rt,Xt){var sn=ae(Kt),Ft=ze(pt);if(sn+Ot>Ft.byteLength)throw gt(ut);for(var Qt=ze(Ft.buffer).bytes,en=sn+Ft.byteOffset,on=jt(+Rt),Cn=0;Cn<Ot;Cn++)Qt[en+Cn]=on[Xt?Cn:Ot-Cn-1]};if(!Ae)qe=function(Ot){fe(this,ot);var Kt=ae(Ot);_e(this,{bytes:vt(ft(Kt),0),byteLength:Kt}),Pe||(this.byteLength=Kt)},ot=qe[et],dt=function(Ot,Kt,jt){fe(this,St),fe(Ot,ot);var Rt=ze(Ot).byteLength,Xt=z(Kt);if(Xt<0||Xt>Rt)throw gt("Wrong offset");if(jt=jt===void 0?Rt-Xt:ee(jt),Xt+jt>Rt)throw gt(lt);_e(this,{buffer:Ot,byteLength:jt,byteOffset:Xt}),Pe||(this.buffer=Ot,this.byteLength=jt,this.byteOffset=Xt)},St=dt[et],Pe&&(Ye(qe,"byteLength"),Ye(dt,"buffer"),Ye(dt,"byteLength"),Ye(dt,"byteOffset")),me(St,{getInt8:function(Ot){return Je(this,1,Ot)[0]<<24>>24},getUint8:function(Ot){return Je(this,1,Ot)[0]},getInt16:function(Ot){var Kt=Je(this,2,Ot,arguments.length>1?arguments[1]:void 0);return(Kt[1]<<8|Kt[0])<<16>>16},getUint16:function(Ot){var Kt=Je(this,2,Ot,arguments.length>1?arguments[1]:void 0);return Kt[1]<<8|Kt[0]},getInt32:function(Ot){return nt(Je(this,4,Ot,arguments.length>1?arguments[1]:void 0))},getUint32:function(Ot){return nt(Je(this,4,Ot,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Ot){return Zt(Je(this,4,Ot,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Ot){return Zt(Je(this,8,Ot,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Ot,Kt){Me(this,1,Ot,wt,Kt)},setUint8:function(Ot,Kt){Me(this,1,Ot,wt,Kt)},setInt16:function(Ot,Kt){Me(this,2,Ot,bt,Kt,arguments.length>2?arguments[2]:void 0)},setUint16:function(Ot,Kt){Me(this,2,Ot,bt,Kt,arguments.length>2?arguments[2]:void 0)},setInt32:function(Ot,Kt){Me(this,4,Ot,it,Kt,arguments.length>2?arguments[2]:void 0)},setUint32:function(Ot,Kt){Me(this,4,Ot,it,Kt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Ot,Kt){Me(this,4,Ot,xe,Kt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Ot,Kt){Me(this,8,Ot,Ce,Kt,arguments.length>2?arguments[2]:void 0)}});else{var Ge=Oe&&yt.name!==Ue;if(!we(function(){yt(1)})||!we(function(){new yt(-1)})||we(function(){return new yt,new yt(1.5),new yt(NaN),Ge&&!je})){qe=function(Ot){return fe(this,ot),new yt(ae(Ot))},qe[et]=ot;for(var Ke=pe(yt),Ve=0,Qe;Ke.length>Ve;)(Qe=Ke[Ve++])in qe||De(qe,Qe,yt[Qe]);ot.constructor=qe}else Ge&&je&&De(yt,"name",Ue);ue&&le(St)!==xt&&ue(St,xt);var ht=new dt(new qe(2)),At=ce(St.setInt8);ht.setInt8(0,2147483648),ht.setInt8(1,2147483649),(ht.getInt8(0)||!ht.getInt8(1))&&me(St,{setInt8:function(Ot,Kt){At(this,Ot,Kt<<24>>24)},setUint8:function(Ot,Kt){At(this,Ot,Kt<<24>>24)}},{unsafe:!0})}Le(qe,Ue),Le(dt,$e),Ze.exports={ArrayBuffer:qe,DataView:dt}},{"../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,Ze,Ne){"use strict";var ge=oe("../internals/to-object"),ce=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like"),Ae=Math.min;Ze.exports=[].copyWithin||function(De,me){var we=ge(this),fe=Pe(we),z=ce(De,fe),ee=ce(me,fe),ae=arguments.length>2?arguments[2]:void 0,re=Ae((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 we?we[z]=we[ee]:delete we[z],z+=le,ee+=le;return we}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/to-object"),ce=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like");Ze.exports=function(ye){for(var De=ge(this),me=Pe(De),we=arguments.length,fe=ce(we>1?arguments[1]:void 0,me),z=we>2?arguments[2]:void 0,ee=z===void 0?me:ce(z,me);ee>fe;)De[fe++]=ye;return De}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-iteration").forEach,ce=oe("../internals/array-method-is-strict"),Pe=ce("forEach");Ze.exports=Pe?[].forEach:function(ye){return ge(this,ye,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(oe,Ze,Ne){var ge=oe("../internals/length-of-array-like");Ze.exports=function(ce,Pe){for(var Ae=0,ye=ge(Pe),De=new ce(ye);ye>Ae;)De[Ae]=Pe[Ae++];return De}},{"../internals/length-of-array-like":188}],109:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/global"),ce=oe("../internals/function-bind-context"),Pe=oe("../internals/function-call"),Ae=oe("../internals/to-object"),ye=oe("../internals/call-with-safe-iteration-closing"),De=oe("../internals/is-array-iterator-method"),me=oe("../internals/is-constructor"),we=oe("../internals/length-of-array-like"),fe=oe("../internals/create-property"),z=oe("../internals/get-iterator"),ee=oe("../internals/get-iterator-method"),ae=ge.Array;Ze.exports=function(le){var ue=Ae(le),pe=me(this),Ee=arguments.length,be=Ee>1?arguments[1]:void 0,Ie=be!==void 0;Ie&&(be=ce(be,Ee>2?arguments[2]:void 0));var Le=ee(ue),Fe=0,Oe,je,ze,_e,Ue,$e;if(Le&&!(this==ae&&De(Le)))for(_e=z(ue,Le),Ue=_e.next,je=pe?new this:[];!(ze=Pe(Ue,_e)).done;Fe++)$e=Ie?ye(_e,be,[ze.value,Fe],!0):ze.value,fe(je,Fe,$e);else for(Oe=we(ue),je=pe?new this(Oe):ae(Oe);Oe>Fe;Fe++)$e=Ie?be(ue[Fe],Fe):ue[Fe],fe(je,Fe,$e);return je.length=Fe,je}},{"../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,Ze,Ne){var ge=oe("../internals/to-indexed-object"),ce=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like"),Ae=function(ye){return function(De,me,we){var fe=ge(De),z=Pe(fe),ee=ce(we,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}};Ze.exports={includes:Ae(!0),indexOf:Ae(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(oe,Ze,Ne){var ge=oe("../internals/function-bind-context"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/indexed-object"),Ae=oe("../internals/to-object"),ye=oe("../internals/length-of-array-like"),De=oe("../internals/array-species-create"),me=ce([].push),we=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(Ee,be,Ie,Le){for(var Fe=Ae(Ee),Oe=Pe(Fe),je=ge(be,Ie),ze=ye(Oe),_e=0,Ue=Le||De,$e=z?Ue(Ee,ze):ee||ue?Ue(Ee,0):void 0,et,lt;ze>_e;_e++)if((pe||_e in Oe)&&(et=Oe[_e],lt=je(et,_e,Fe),fe))if(z)$e[_e]=lt;else if(lt)switch(fe){case 3:return!0;case 5:return et;case 6:return _e;case 2:me($e,et)}else switch(fe){case 4:return!1;case 7:me($e,et)}return le?-1:ae||re?re:$e}};Ze.exports={forEach:we(0),map:we(1),filter:we(2),some:we(3),every:we(4),find:we(5),findIndex:we(6),filterReject:we(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,Ze,Ne){"use strict";var ge=oe("../internals/function-apply"),ce=oe("../internals/to-indexed-object"),Pe=oe("../internals/to-integer-or-infinity"),Ae=oe("../internals/length-of-array-like"),ye=oe("../internals/array-method-is-strict"),De=Math.min,me=[].lastIndexOf,we=!!me&&1/[1].lastIndexOf(1,-0)<0,fe=ye("lastIndexOf"),z=we||!fe;Ze.exports=z?function(ae){if(we)return ge(me,this,arguments)||0;var re=ce(this),le=Ae(re),ue=le-1;for(arguments.length>1&&(ue=De(ue,Pe(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,Ze,Ne){var ge=oe("../internals/fails"),ce=oe("../internals/well-known-symbol"),Pe=oe("../internals/engine-v8-version"),Ae=ce("species");Ze.exports=function(ye){return Pe>=51||!ge(function(){var De=[],me=De.constructor={};return me[Ae]=function(){return{foo:1}},De[ye](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/fails");Ze.exports=function(ce,Pe){var Ae=[][ce];return!!Ae&&ge(function(){Ae.call(null,Pe||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/a-callable"),Pe=oe("../internals/to-object"),Ae=oe("../internals/indexed-object"),ye=oe("../internals/length-of-array-like"),De=ge.TypeError,me=function(we){return function(fe,z,ee,ae){ce(z);var re=Pe(fe),le=Ae(re),ue=ye(re),pe=we?ue-1:0,Ee=we?-1:1;if(ee<2)for(;;){if(pe in le){ae=le[pe],pe+=Ee;break}if(pe+=Ee,we?pe<0:ue<=pe)throw De("Reduce of empty array with no initial value")}for(;we?pe>=0:ue>pe;pe+=Ee)pe in le&&(ae=z(ae,le[pe],pe,re));return ae}};Ze.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,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like"),Ae=oe("../internals/create-property"),ye=ge.Array,De=Math.max;Ze.exports=function(me,we,fe){for(var z=Pe(me),ee=ce(we,z),ae=ce(fe===void 0?z:fe,z),re=ye(De(ae-ee,0)),le=0;ee<ae;ee++,le++)Ae(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,Ze,Ne){var ge=oe("../internals/function-uncurry-this");Ze.exports=ge([].slice)},{"../internals/function-uncurry-this":157}],118:[function(oe,Ze,Ne){var ge=oe("../internals/array-slice-simple"),ce=Math.floor,Pe=function(De,me){var we=De.length,fe=ce(we/2);return we<8?Ae(De,me):ye(De,Pe(ge(De,0,fe),me),Pe(ge(De,fe),me),me)},Ae=function(De,me){for(var we=De.length,fe=1,z,ee;fe<we;){for(ee=fe,z=De[fe];ee&&me(De[ee-1],z)>0;)De[ee]=De[--ee];ee!==fe++&&(De[ee]=z)}return De},ye=function(De,me,we,fe){for(var z=me.length,ee=we.length,ae=0,re=0;ae<z||re<ee;)De[ae+re]=ae<z&&re<ee?fe(me[ae],we[re])<=0?me[ae++]:we[re++]:ae<z?me[ae++]:we[re++];return De};Ze.exports=Pe},{"../internals/array-slice-simple":116}],119:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/is-array"),Pe=oe("../internals/is-constructor"),Ae=oe("../internals/is-object"),ye=oe("../internals/well-known-symbol"),De=ye("species"),me=ge.Array;Ze.exports=function(we){var fe;return ce(we)&&(fe=we.constructor,Pe(fe)&&(fe===me||ce(fe.prototype))?fe=void 0:Ae(fe)&&(fe=fe[De],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,Ze,Ne){var ge=oe("../internals/array-species-constructor");Ze.exports=function(ce,Pe){return new(ge(ce))(Pe===0?0:Pe)}},{"../internals/array-species-constructor":119}],121:[function(oe,Ze,Ne){var ge=oe("../internals/an-object"),ce=oe("../internals/iterator-close");Ze.exports=function(Pe,Ae,ye,De){try{return De?Ae(ge(ye)[0],ye[1]):Ae(ye)}catch(me){ce(Pe,"throw",me)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(oe,Ze,Ne){var ge=oe("../internals/well-known-symbol"),ce=ge("iterator"),Pe=!1;try{var Ae=0,ye={next:function(){return{done:!!Ae++}},return:function(){Pe=!0}};ye[ce]=function(){return this},Array.from(ye,function(){throw 2})}catch(De){}Ze.exports=function(De,me){if(!me&&!Pe)return!1;var we=!1;try{var fe={};fe[ce]=function(){return{next:function(){return{done:we=!0}}}},De(fe)}catch(z){}return we}},{"../internals/well-known-symbol":268}],123:[function(oe,Ze,Ne){var ge=oe("../internals/function-uncurry-this"),ce=ge({}.toString),Pe=ge("".slice);Ze.exports=function(Ae){return Pe(ce(Ae),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/to-string-tag-support"),Pe=oe("../internals/is-callable"),Ae=oe("../internals/classof-raw"),ye=oe("../internals/well-known-symbol"),De=ye("toStringTag"),me=ge.Object,we=Ae(function(){return arguments}())=="Arguments",fe=function(z,ee){try{return z[ee]}catch(ae){}};Ze.exports=ce?Ae:function(z){var ee,ae,re;return z===void 0?"Undefined":z===null?"Null":typeof(ae=fe(ee=me(z),De))=="string"?ae:we?Ae(ee):(re=Ae(ee))=="Object"&&Pe(ee.callee)?"Arguments":re}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(oe,Ze,Ne){var ge=oe("../internals/has-own-property"),ce=oe("../internals/own-keys"),Pe=oe("../internals/object-get-own-property-descriptor"),Ae=oe("../internals/object-define-property");Ze.exports=function(ye,De,me){for(var we=ce(De),fe=Ae.f,z=Pe.f,ee=0;ee<we.length;ee++){var ae=we[ee];!ge(ye,ae)&&!(me&&ge(me,ae))&&fe(ye,ae,z(De,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,Ze,Ne){var ge=oe("../internals/well-known-symbol"),ce=ge("match");Ze.exports=function(Pe){var Ae=/./;try{"/./"[Pe](Ae)}catch(ye){try{return Ae[ce]=!1,"/./"[Pe](Ae)}catch(De){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(oe,Ze,Ne){var ge=oe("../internals/fails");Ze.exports=!ge(function(){function ce(){}return ce.prototype.constructor=null,Object.getPrototypeOf(new ce)!==ce.prototype})},{"../internals/fails":150}],128:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/iterators-core").IteratorPrototype,ce=oe("../internals/object-create"),Pe=oe("../internals/create-property-descriptor"),Ae=oe("../internals/set-to-string-tag"),ye=oe("../internals/iterators"),De=function(){return this};Ze.exports=function(me,we,fe,z){var ee=we+" Iterator";return me.prototype=ce(ge,{next:Pe(+!z,fe)}),Ae(me,ee,!1,!0),ye[ee]=De,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,Ze,Ne){var ge=oe("../internals/descriptors"),ce=oe("../internals/object-define-property"),Pe=oe("../internals/create-property-descriptor");Ze.exports=ge?function(Ae,ye,De){return ce.f(Ae,ye,Pe(1,De))}:function(Ae,ye,De){return Ae[ye]=De,Ae}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(oe,Ze,Ne){Ze.exports=function(ge,ce){return{enumerable:!(ge&1),configurable:!(ge&2),writable:!(ge&4),value:ce}}},{}],131:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/to-property-key"),ce=oe("../internals/object-define-property"),Pe=oe("../internals/create-property-descriptor");Ze.exports=function(Ae,ye,De){var me=ge(ye);me in Ae?ce.f(Ae,me,Pe(0,De)):Ae[me]=De}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/function-call"),Pe=oe("../internals/is-pure"),Ae=oe("../internals/function-name"),ye=oe("../internals/is-callable"),De=oe("../internals/create-iterator-constructor"),me=oe("../internals/object-get-prototype-of"),we=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=Ae.PROPER,pe=Ae.CONFIGURABLE,Ee=le.IteratorPrototype,be=le.BUGGY_SAFARI_ITERATORS,Ie=ae("iterator"),Le="keys",Fe="values",Oe="entries",je=function(){return this};Ze.exports=function(ze,_e,Ue,$e,et,lt,ut){De(Ue,_e,$e);var yt=function(Et){if(Et===et&&xt)return xt;if(!be&&Et in dt)return dt[Et];switch(Et){case Le:return function(){return new Ue(this,Et)};case Fe:return function(){return new Ue(this,Et)};case Oe:return function(){return new Ue(this,Et)}}return function(){return new Ue(this)}},qe=_e+" Iterator",ot=!1,dt=ze.prototype,St=dt[Ie]||dt["@@iterator"]||et&&dt[et],xt=!be&&St||yt(et),ft=_e=="Array"&&dt.entries||St,gt,vt,Tt;if(ft&&(gt=me(ft.call(new ze)),gt!==Object.prototype&>.next&&(!Pe&&me(gt)!==Ee&&(we?we(gt,Ee):ye(gt[Ie])||ee(gt,Ie,je)),fe(gt,qe,!0,!0),Pe&&(re[qe]=je))),ue&&et==Fe&&St&&St.name!==Fe&&(!Pe&&pe?z(dt,"name",Fe):(ot=!0,xt=function(){return ce(St,this)})),et)if(vt={values:yt(Fe),keys:lt?xt:yt(Le),entries:yt(Oe)},ut)for(Tt in vt)(be||ot||!(Tt in dt))&&ee(dt,Tt,vt[Tt]);else ge({target:_e,proto:!0,forced:be||ot},vt);return(!Pe||ut)&&dt[Ie]!==xt&&ee(dt,Ie,xt,{name:et}),re[_e]=xt,vt}},{"../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,Ze,Ne){var ge=oe("../internals/path"),ce=oe("../internals/has-own-property"),Pe=oe("../internals/well-known-symbol-wrapped"),Ae=oe("../internals/object-define-property").f;Ze.exports=function(ye){var De=ge.Symbol||(ge.Symbol={});ce(De,ye)||Ae(De,ye,{value:Pe.f(ye)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(oe,Ze,Ne){var ge=oe("../internals/fails");Ze.exports=!ge(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/is-object"),Pe=ge.document,Ae=ce(Pe)&&ce(Pe.createElement);Ze.exports=function(ye){return Ae?Pe.createElement(ye):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(oe,Ze,Ne){Ze.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,Ze,Ne){var ge=oe("../internals/document-create-element"),ce=ge("span").classList,Pe=ce&&ce.constructor&&ce.constructor.prototype;Ze.exports=Pe===Object.prototype?void 0:Pe},{"../internals/document-create-element":135}],138:[function(oe,Ze,Ne){var ge=oe("../internals/engine-user-agent"),ce=ge.match(/firefox\/(\d+)/i);Ze.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],139:[function(oe,Ze,Ne){Ze.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(oe,Ze,Ne){var ge=oe("../internals/engine-user-agent");Ze.exports=/MSIE|Trident/.test(ge)},{"../internals/engine-user-agent":145}],141:[function(oe,Ze,Ne){var ge=oe("../internals/engine-user-agent"),ce=oe("../internals/global");Ze.exports=/ipad|iphone|ipod/i.test(ge)&&ce.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(oe,Ze,Ne){var ge=oe("../internals/engine-user-agent");Ze.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ge)},{"../internals/engine-user-agent":145}],143:[function(oe,Ze,Ne){var ge=oe("../internals/classof-raw"),ce=oe("../internals/global");Ze.exports=ge(ce.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(oe,Ze,Ne){var ge=oe("../internals/engine-user-agent");Ze.exports=/web0s(?!.*chrome)/i.test(ge)},{"../internals/engine-user-agent":145}],145:[function(oe,Ze,Ne){var ge=oe("../internals/get-built-in");Ze.exports=ge("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/engine-user-agent"),Pe=ge.process,Ae=ge.Deno,ye=Pe&&Pe.versions||Ae&&Ae.version,De=ye&&ye.v8,me,we;De&&(me=De.split("."),we=me[0]>0&&me[0]<4?1:+(me[0]+me[1])),!we&&ce&&(me=ce.match(/Edge\/(\d+)/),(!me||me[1]>=74)&&(me=ce.match(/Chrome\/(\d+)/),me&&(we=+me[1]))),Ze.exports=we},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(oe,Ze,Ne){var ge=oe("../internals/engine-user-agent"),ce=ge.match(/AppleWebKit\/(\d+)\./);Ze.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],148:[function(oe,Ze,Ne){Ze.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/object-get-own-property-descriptor").f,Pe=oe("../internals/create-non-enumerable-property"),Ae=oe("../internals/redefine"),ye=oe("../internals/set-global"),De=oe("../internals/copy-constructor-properties"),me=oe("../internals/is-forced");Ze.exports=function(we,fe){var z=we.target,ee=we.global,ae=we.stat,re,le,ue,pe,Ee,be;if(ee?le=ge:ae?le=ge[z]||ye(z,{}):le=(ge[z]||{}).prototype,le)for(ue in fe){if(Ee=fe[ue],we.noTargetGet?(be=ce(le,ue),pe=be&&be.value):pe=le[ue],re=me(ee?ue:z+(ae?".":"#")+ue,we.forced),!re&&pe!==void 0){if(typeof Ee==typeof pe)continue;De(Ee,pe)}(we.sham||pe&&pe.sham)&&Pe(Ee,"sham",!0),Ae(le,ue,Ee,we)}}},{"../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,Ze,Ne){Ze.exports=function(ge){try{return!!ge()}catch(ce){return!0}}},{}],151:[function(oe,Ze,Ne){"use strict";oe("../modules/es.regexp.exec");var ge=oe("../internals/function-uncurry-this"),ce=oe("../internals/redefine"),Pe=oe("../internals/regexp-exec"),Ae=oe("../internals/fails"),ye=oe("../internals/well-known-symbol"),De=oe("../internals/create-non-enumerable-property"),me=ye("species"),we=RegExp.prototype;Ze.exports=function(fe,z,ee,ae){var re=ye(fe),le=!Ae(function(){var be={};return be[re]=function(){return 7},""[fe](be)!=7}),ue=le&&!Ae(function(){var be=!1,Ie=/a/;return fe==="split"&&(Ie={},Ie.constructor={},Ie.constructor[me]=function(){return Ie},Ie.flags="",Ie[re]=/./[re]),Ie.exec=function(){return be=!0,null},Ie[re](""),!be});if(!le||!ue||ee){var pe=ge(/./[re]),Ee=z(re,""[fe],function(be,Ie,Le,Fe,Oe){var je=ge(be),ze=Ie.exec;return ze===Pe||ze===we.exec?le&&!Oe?{done:!0,value:pe(Ie,Le,Fe)}:{done:!0,value:je(Le,Ie,Fe)}:{done:!1}});ce(String.prototype,fe,Ee[0]),ce(we,re,Ee[1])}ae&&De(we[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,Ze,Ne){var ge=oe("../internals/function-bind-native"),ce=Function.prototype,Pe=ce.apply,Ae=ce.call;Ze.exports=typeof Reflect=="object"&&Reflect.apply||(ge?Ae.bind(Pe):function(){return Ae.apply(Pe,arguments)})},{"../internals/function-bind-native":154}],153:[function(oe,Ze,Ne){var ge=oe("../internals/function-uncurry-this"),ce=oe("../internals/a-callable"),Pe=oe("../internals/function-bind-native"),Ae=ge(ge.bind);Ze.exports=function(ye,De){return ce(ye),De===void 0?ye:Pe?Ae(ye,De):function(){return ye.apply(De,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(oe,Ze,Ne){var ge=oe("../internals/fails");Ze.exports=!ge(function(){var ce=function(){}.bind();return typeof ce!="function"||ce.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(oe,Ze,Ne){var ge=oe("../internals/function-bind-native"),ce=Function.prototype.call;Ze.exports=ge?ce.bind(ce):function(){return ce.apply(ce,arguments)}},{"../internals/function-bind-native":154}],156:[function(oe,Ze,Ne){var ge=oe("../internals/descriptors"),ce=oe("../internals/has-own-property"),Pe=Function.prototype,Ae=ge&&Object.getOwnPropertyDescriptor,ye=ce(Pe,"name"),De=ye&&function(){}.name==="something",me=ye&&(!ge||ge&&Ae(Pe,"name").configurable);Ze.exports={EXISTS:ye,PROPER:De,CONFIGURABLE:me}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(oe,Ze,Ne){var ge=oe("../internals/function-bind-native"),ce=Function.prototype,Pe=ce.bind,Ae=ce.call,ye=ge&&Pe.bind(Ae,Ae);Ze.exports=ge?function(De){return De&&ye(De)}:function(De){return De&&function(){return Ae.apply(De,arguments)}}},{"../internals/function-bind-native":154}],158:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/is-callable"),Pe=function(Ae){return ce(Ae)?Ae:void 0};Ze.exports=function(Ae,ye){return arguments.length<2?Pe(ge[Ae]):ge[Ae]&&ge[Ae][ye]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(oe,Ze,Ne){var ge=oe("../internals/classof"),ce=oe("../internals/get-method"),Pe=oe("../internals/iterators"),Ae=oe("../internals/well-known-symbol"),ye=Ae("iterator");Ze.exports=function(De){if(De!=null)return ce(De,ye)||ce(De,"@@iterator")||Pe[ge(De)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/function-call"),Pe=oe("../internals/a-callable"),Ae=oe("../internals/an-object"),ye=oe("../internals/try-to-string"),De=oe("../internals/get-iterator-method"),me=ge.TypeError;Ze.exports=function(we,fe){var z=arguments.length<2?De(we):fe;if(Pe(z))return Ae(ce(z,we));throw me(ye(we)+" 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,Ze,Ne){var ge=oe("../internals/a-callable");Ze.exports=function(ce,Pe){var Ae=ce[Pe];return Ae==null?void 0:ge(Ae)}},{"../internals/a-callable":95}],162:[function(oe,Ze,Ne){var ge=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-object"),Pe=Math.floor,Ae=ge("".charAt),ye=ge("".replace),De=ge("".slice),me=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,we=/\$([$&'`]|\d{1,2})/g;Ze.exports=function(fe,z,ee,ae,re,le){var ue=ee+fe.length,pe=ae.length,Ee=we;return re!==void 0&&(re=ce(re),Ee=me),ye(le,Ee,function(be,Ie){var Le;switch(Ae(Ie,0)){case"$":return"$";case"&":return fe;case"`":return De(z,0,ee);case"'":return De(z,ue);case"<":Le=re[De(Ie,1,-1)];break;default:var Fe=+Ie;if(Fe===0)return be;if(Fe>pe){var Oe=Pe(Fe/10);return Oe===0?be:Oe<=pe?ae[Oe-1]===void 0?Ae(Ie,1):ae[Oe-1]+Ae(Ie,1):be}Le=ae[Fe-1]}return Le===void 0?"":Le})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(oe,Ze,Ne){(function(ge){(function(){var ce=function(Pe){return Pe&&Pe.Math==Math&&Pe};Ze.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof ge=="object"&&ge)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(oe,Ze,Ne){var ge=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-object"),Pe=ge({}.hasOwnProperty);Ze.exports=Object.hasOwn||function(ye,De){return Pe(ce(ye),De)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(oe,Ze,Ne){Ze.exports={}},{}],166:[function(oe,Ze,Ne){var ge=oe("../internals/global");Ze.exports=function(ce,Pe){var Ae=ge.console;Ae&&Ae.error&&(arguments.length==1?Ae.error(ce):Ae.error(ce,Pe))}},{"../internals/global":163}],167:[function(oe,Ze,Ne){var ge=oe("../internals/get-built-in");Ze.exports=ge("document","documentElement")},{"../internals/get-built-in":158}],168:[function(oe,Ze,Ne){var ge=oe("../internals/descriptors"),ce=oe("../internals/fails"),Pe=oe("../internals/document-create-element");Ze.exports=!ge&&!ce(function(){return Object.defineProperty(Pe("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=ge.Array,Pe=Math.abs,Ae=Math.pow,ye=Math.floor,De=Math.log,me=Math.LN2,we=function(z,ee,ae){var re=ce(ae),le=ae*8-ee-1,ue=(1<<le)-1,pe=ue>>1,Ee=ee===23?Ae(2,-24)-Ae(2,-77):0,be=z<0||z===0&&1/z<0?1:0,Ie=0,Le,Fe,Oe;for(z=Pe(z),z!=z||z===1/0?(Fe=z!=z?1:0,Le=ue):(Le=ye(De(z)/me),Oe=Ae(2,-Le),z*Oe<1&&(Le--,Oe*=2),Le+pe>=1?z+=Ee/Oe:z+=Ee*Ae(2,1-pe),z*Oe>=2&&(Le++,Oe/=2),Le+pe>=ue?(Fe=0,Le=ue):Le+pe>=1?(Fe=(z*Oe-1)*Ae(2,ee),Le=Le+pe):(Fe=z*Ae(2,pe-1)*Ae(2,ee),Le=0));ee>=8;)re[Ie++]=Fe&255,Fe/=256,ee-=8;for(Le=Le<<ee|Fe,le+=ee;le>0;)re[Ie++]=Le&255,Le/=256,le-=8;return re[--Ie]|=be*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,Ee=ae-1,be=z[Ee--],Ie=be&127,Le;for(be>>=7;pe>0;)Ie=Ie*256+z[Ee--],pe-=8;for(Le=Ie&(1<<-pe)-1,Ie>>=-pe,pe+=ee;pe>0;)Le=Le*256+z[Ee--],pe-=8;if(Ie===0)Ie=1-ue;else{if(Ie===le)return Le?NaN:be?-1/0:1/0;Le=Le+Ae(2,ee),Ie=Ie-ue}return(be?-1:1)*Le*Ae(2,Ie-ee)};Ze.exports={pack:we,unpack:fe}},{"../internals/global":163}],170:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fails"),Ae=oe("../internals/classof-raw"),ye=ge.Object,De=ce("".split);Ze.exports=Pe(function(){return!ye("z").propertyIsEnumerable(0)})?function(me){return Ae(me)=="String"?De(me,""):ye(me)}:ye},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(oe,Ze,Ne){var ge=oe("../internals/is-callable"),ce=oe("../internals/is-object"),Pe=oe("../internals/object-set-prototype-of");Ze.exports=function(Ae,ye,De){var me,we;return Pe&&ge(me=ye.constructor)&&me!==De&&ce(we=me.prototype)&&we!==De.prototype&&Pe(Ae,we),Ae}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(oe,Ze,Ne){var ge=oe("../internals/function-uncurry-this"),ce=oe("../internals/is-callable"),Pe=oe("../internals/shared-store"),Ae=ge(Function.toString);ce(Pe.inspectSource)||(Pe.inspectSource=function(ye){return Ae(ye)}),Ze.exports=Pe.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(oe,Ze,Ne){var ge=oe("../internals/native-weak-map"),ce=oe("../internals/global"),Pe=oe("../internals/function-uncurry-this"),Ae=oe("../internals/is-object"),ye=oe("../internals/create-non-enumerable-property"),De=oe("../internals/has-own-property"),me=oe("../internals/shared-store"),we=oe("../internals/shared-key"),fe=oe("../internals/hidden-keys"),z="Object already initialized",ee=ce.TypeError,ae=ce.WeakMap,re,le,ue,pe=function(je){return ue(je)?le(je):re(je,{})},Ee=function(je){return function(ze){var _e;if(!Ae(ze)||(_e=le(ze)).type!==je)throw ee("Incompatible receiver, "+je+" required");return _e}};if(ge||me.state){var be=me.state||(me.state=new ae),Ie=Pe(be.get),Le=Pe(be.has),Fe=Pe(be.set);re=function(je,ze){if(Le(be,je))throw new ee(z);return ze.facade=je,Fe(be,je,ze),ze},le=function(je){return Ie(be,je)||{}},ue=function(je){return Le(be,je)}}else{var Oe=we("state");fe[Oe]=!0,re=function(je,ze){if(De(je,Oe))throw new ee(z);return ze.facade=je,ye(je,Oe,ze),ze},le=function(je){return De(je,Oe)?je[Oe]:{}},ue=function(je){return De(je,Oe)}}Ze.exports={set:re,get:le,has:ue,enforce:pe,getterFor:Ee}},{"../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,Ze,Ne){var ge=oe("../internals/well-known-symbol"),ce=oe("../internals/iterators"),Pe=ge("iterator"),Ae=Array.prototype;Ze.exports=function(ye){return ye!==void 0&&(ce.Array===ye||Ae[Pe]===ye)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(oe,Ze,Ne){var ge=oe("../internals/classof-raw");Ze.exports=Array.isArray||function(Pe){return ge(Pe)=="Array"}},{"../internals/classof-raw":123}],176:[function(oe,Ze,Ne){Ze.exports=function(ge){return typeof ge=="function"}},{}],177:[function(oe,Ze,Ne){var ge=oe("../internals/function-uncurry-this"),ce=oe("../internals/fails"),Pe=oe("../internals/is-callable"),Ae=oe("../internals/classof"),ye=oe("../internals/get-built-in"),De=oe("../internals/inspect-source"),me=function(){},we=[],fe=ye("Reflect","construct"),z=/^\s*(?:class|function)\b/,ee=ge(z.exec),ae=!z.exec(me),re=function(pe){if(!Pe(pe))return!1;try{return fe(me,we,pe),!0}catch(Ee){return!1}},le=function(pe){if(!Pe(pe))return!1;switch(Ae(pe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!ee(z,De(pe))}catch(Ee){return!0}};le.sham=!0,Ze.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,Ze,Ne){var ge=oe("../internals/fails"),ce=oe("../internals/is-callable"),Pe=/#|\.prototype\./,Ae=function(fe,z){var ee=De[ye(fe)];return ee==we?!0:ee==me?!1:ce(z)?ge(z):!!z},ye=Ae.normalize=function(fe){return String(fe).replace(Pe,".").toLowerCase()},De=Ae.data={},me=Ae.NATIVE="N",we=Ae.POLYFILL="P";Ze.exports=Ae},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(oe,Ze,Ne){var ge=oe("../internals/is-object"),ce=Math.floor;Ze.exports=Number.isInteger||function(Ae){return!ge(Ae)&&isFinite(Ae)&&ce(Ae)===Ae}},{"../internals/is-object":180}],180:[function(oe,Ze,Ne){var ge=oe("../internals/is-callable");Ze.exports=function(ce){return typeof ce=="object"?ce!==null:ge(ce)}},{"../internals/is-callable":176}],181:[function(oe,Ze,Ne){Ze.exports=!1},{}],182:[function(oe,Ze,Ne){var ge=oe("../internals/is-object"),ce=oe("../internals/classof-raw"),Pe=oe("../internals/well-known-symbol"),Ae=Pe("match");Ze.exports=function(ye){var De;return ge(ye)&&((De=ye[Ae])!==void 0?!!De:ce(ye)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/get-built-in"),Pe=oe("../internals/is-callable"),Ae=oe("../internals/object-is-prototype-of"),ye=oe("../internals/use-symbol-as-uid"),De=ge.Object;Ze.exports=ye?function(me){return typeof me=="symbol"}:function(me){var we=ce("Symbol");return Pe(we)&&Ae(we.prototype,De(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,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/function-bind-context"),Pe=oe("../internals/function-call"),Ae=oe("../internals/an-object"),ye=oe("../internals/try-to-string"),De=oe("../internals/is-array-iterator-method"),me=oe("../internals/length-of-array-like"),we=oe("../internals/object-is-prototype-of"),fe=oe("../internals/get-iterator"),z=oe("../internals/get-iterator-method"),ee=oe("../internals/iterator-close"),ae=ge.TypeError,re=function(ue,pe){this.stopped=ue,this.result=pe},le=re.prototype;Ze.exports=function(ue,pe,Ee){var be=Ee&&Ee.that,Ie=!!(Ee&&Ee.AS_ENTRIES),Le=!!(Ee&&Ee.IS_ITERATOR),Fe=!!(Ee&&Ee.INTERRUPTED),Oe=ce(pe,be),je,ze,_e,Ue,$e,et,lt,ut=function(qe){return je&&ee(je,"normal",qe),new re(!0,qe)},yt=function(qe){return Ie?(Ae(qe),Fe?Oe(qe[0],qe[1],ut):Oe(qe[0],qe[1])):Fe?Oe(qe,ut):Oe(qe)};if(Le)je=ue;else{if(ze=z(ue),!ze)throw ae(ye(ue)+" is not iterable");if(De(ze)){for(_e=0,Ue=me(ue);Ue>_e;_e++)if($e=yt(ue[_e]),$e&&we(le,$e))return $e;return new re(!1)}je=fe(ue,ze)}for(et=je.next;!(lt=Pe(et,je)).done;){try{$e=yt(lt.value)}catch(qe){ee(je,"throw",qe)}if(typeof $e=="object"&&$e&&we(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,Ze,Ne){var ge=oe("../internals/function-call"),ce=oe("../internals/an-object"),Pe=oe("../internals/get-method");Ze.exports=function(Ae,ye,De){var me,we;ce(Ae);try{if(me=Pe(Ae,"return"),!me){if(ye==="throw")throw De;return De}me=ge(me,Ae)}catch(fe){we=!0,me=fe}if(ye==="throw")throw De;if(we)throw me;return ce(me),De}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/fails"),ce=oe("../internals/is-callable"),Pe=oe("../internals/object-create"),Ae=oe("../internals/object-get-prototype-of"),ye=oe("../internals/redefine"),De=oe("../internals/well-known-symbol"),me=oe("../internals/is-pure"),we=De("iterator"),fe=!1,z,ee,ae;[].keys&&(ae=[].keys(),"next"in ae?(ee=Ae(Ae(ae)),ee!==Object.prototype&&(z=ee)):fe=!0);var re=z==null||ge(function(){var le={};return z[we].call(le)!==le});re?z={}:me&&(z=Pe(z)),ce(z[we])||ye(z,we,function(){return this}),Ze.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,Ze,Ne){arguments[4][165][0].apply(Ne,arguments)},{dup:165}],188:[function(oe,Ze,Ne){var ge=oe("../internals/to-length");Ze.exports=function(ce){return ge(ce.length)}},{"../internals/to-length":249}],189:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/function-bind-context"),Pe=oe("../internals/object-get-own-property-descriptor").f,Ae=oe("../internals/task").set,ye=oe("../internals/engine-is-ios"),De=oe("../internals/engine-is-ios-pebble"),me=oe("../internals/engine-is-webos-webkit"),we=oe("../internals/engine-is-node"),fe=ge.MutationObserver||ge.WebKitMutationObserver,z=ge.document,ee=ge.process,ae=ge.Promise,re=Pe(ge,"queueMicrotask"),le=re&&re.value,ue,pe,Ee,be,Ie,Le,Fe,Oe;le||(ue=function(){var je,ze;for(we&&(je=ee.domain)&&je.exit();pe;){ze=pe.fn,pe=pe.next;try{ze()}catch(_e){throw pe?be():Ee=void 0,_e}}Ee=void 0,je&&je.enter()},!ye&&!we&&!me&&fe&&z?(Ie=!0,Le=z.createTextNode(""),new fe(ue).observe(Le,{characterData:!0}),be=function(){Le.data=Ie=!Ie}):!De&&ae&&ae.resolve?(Fe=ae.resolve(void 0),Fe.constructor=ae,Oe=ce(Fe.then,Fe),be=function(){Oe(ue)}):we?be=function(){ee.nextTick(ue)}:(Ae=ce(Ae,ge),be=function(){Ae(ue)})),Ze.exports=le||function(je){var ze={fn:je,next:void 0};Ee&&(Ee.next=ze),pe||(pe=ze,be()),Ee=ze}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(oe,Ze,Ne){var ge=oe("../internals/native-symbol");Ze.exports=ge&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(oe,Ze,Ne){var ge=oe("../internals/engine-v8-version"),ce=oe("../internals/fails");Ze.exports=!!Object.getOwnPropertySymbols&&!ce(function(){var Pe=Symbol();return!String(Pe)||!(Object(Pe)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/is-callable"),Pe=oe("../internals/inspect-source"),Ae=ge.WeakMap;Ze.exports=ce(Ae)&&/native code/.test(Pe(Ae))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/a-callable"),ce=function(Pe){var Ae,ye;this.promise=new Pe(function(De,me){if(Ae!==void 0||ye!==void 0)throw TypeError("Bad Promise constructor");Ae=De,ye=me}),this.resolve=ge(Ae),this.reject=ge(ye)};Ze.exports.f=function(Pe){return new ce(Pe)}},{"../internals/a-callable":95}],194:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/is-regexp"),Pe=ge.TypeError;Ze.exports=function(Ae){if(ce(Ae))throw Pe("The method doesn't accept regular expressions");return Ae}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/descriptors"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/function-call"),Ae=oe("../internals/fails"),ye=oe("../internals/object-keys"),De=oe("../internals/object-get-own-property-symbols"),me=oe("../internals/object-property-is-enumerable"),we=oe("../internals/to-object"),fe=oe("../internals/indexed-object"),z=Object.assign,ee=Object.defineProperty,ae=ce([].concat);Ze.exports=!z||Ae(function(){if(ge&&z({b:1},z(ee({},"a",{enumerable:!0,get:function(){ee(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var re={},le={},ue=Symbol(),pe="abcdefghijklmnopqrst";return re[ue]=7,pe.split("").forEach(function(Ee){le[Ee]=Ee}),z({},re)[ue]!=7||ye(z({},le)).join("")!=pe})?function(le,ue){for(var pe=we(le),Ee=arguments.length,be=1,Ie=De.f,Le=me.f;Ee>be;)for(var Fe=fe(arguments[be++]),Oe=Ie?ae(ye(Fe),Ie(Fe)):ye(Fe),je=Oe.length,ze=0,_e;je>ze;)_e=Oe[ze++],(!ge||Pe(Le,Fe,_e))&&(pe[_e]=Fe[_e]);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,Ze,Ne){var ge=oe("../internals/an-object"),ce=oe("../internals/object-define-properties"),Pe=oe("../internals/enum-bug-keys"),Ae=oe("../internals/hidden-keys"),ye=oe("../internals/html"),De=oe("../internals/document-create-element"),me=oe("../internals/shared-key"),we=">",fe="<",z="prototype",ee="script",ae=me("IE_PROTO"),re=function(){},le=function(Ie){return fe+ee+we+Ie+fe+"/"+ee+we},ue=function(Ie){Ie.write(le("")),Ie.close();var Le=Ie.parentWindow.Object;return Ie=null,Le},pe=function(){var Ie=De("iframe"),Le="java"+ee+":",Fe;return Ie.style.display="none",ye.appendChild(Ie),Ie.src=String(Le),Fe=Ie.contentWindow.document,Fe.open(),Fe.write(le("document.F=Object")),Fe.close(),Fe.F},Ee,be=function(){try{Ee=new ActiveXObject("htmlfile")}catch(Le){}be=typeof document!="undefined"?document.domain&&Ee?ue(Ee):pe():ue(Ee);for(var Ie=Pe.length;Ie--;)delete be[z][Pe[Ie]];return be()};Ae[ae]=!0,Ze.exports=Object.create||function(Le,Fe){var Oe;return Le!==null?(re[z]=ge(Le),Oe=new re,re[z]=null,Oe[ae]=Le):Oe=be(),Fe===void 0?Oe:ce.f(Oe,Fe)}},{"../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,Ze,Ne){var ge=oe("../internals/descriptors"),ce=oe("../internals/v8-prototype-define-bug"),Pe=oe("../internals/object-define-property"),Ae=oe("../internals/an-object"),ye=oe("../internals/to-indexed-object"),De=oe("../internals/object-keys");Ne.f=ge&&!ce?Object.defineProperties:function(we,fe){Ae(we);for(var z=ye(fe),ee=De(fe),ae=ee.length,re=0,le;ae>re;)Pe.f(we,le=ee[re++],z[le]);return we}},{"../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,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/descriptors"),Pe=oe("../internals/ie8-dom-define"),Ae=oe("../internals/v8-prototype-define-bug"),ye=oe("../internals/an-object"),De=oe("../internals/to-property-key"),me=ge.TypeError,we=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,z="enumerable",ee="configurable",ae="writable";Ne.f=ce?Ae?function(le,ue,pe){if(ye(le),ue=De(ue),ye(pe),typeof le=="function"&&ue==="prototype"&&"value"in pe&&ae in pe&&!pe[ae]){var Ee=fe(le,ue);Ee&&Ee[ae]&&(le[ue]=pe.value,pe={configurable:ee in pe?pe[ee]:Ee[ee],enumerable:z in pe?pe[z]:Ee[z],writable:!1})}return we(le,ue,pe)}:we:function(le,ue,pe){if(ye(le),ue=De(ue),ye(pe),Pe)try{return we(le,ue,pe)}catch(Ee){}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,Ze,Ne){var ge=oe("../internals/descriptors"),ce=oe("../internals/function-call"),Pe=oe("../internals/object-property-is-enumerable"),Ae=oe("../internals/create-property-descriptor"),ye=oe("../internals/to-indexed-object"),De=oe("../internals/to-property-key"),me=oe("../internals/has-own-property"),we=oe("../internals/ie8-dom-define"),fe=Object.getOwnPropertyDescriptor;Ne.f=ge?fe:function(ee,ae){if(ee=ye(ee),ae=De(ae),we)try{return fe(ee,ae)}catch(re){}if(me(ee,ae))return Ae(!ce(Pe.f,ee,ae),ee[ae])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(oe,Ze,Ne){var ge=oe("../internals/classof-raw"),ce=oe("../internals/to-indexed-object"),Pe=oe("../internals/object-get-own-property-names").f,Ae=oe("../internals/array-slice-simple"),ye=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],De=function(me){try{return Pe(me)}catch(we){return Ae(ye)}};Ze.exports.f=function(we){return ye&&ge(we)=="Window"?De(we):Pe(ce(we))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(oe,Ze,Ne){var ge=oe("../internals/object-keys-internal"),ce=oe("../internals/enum-bug-keys"),Pe=ce.concat("length","prototype");Ne.f=Object.getOwnPropertyNames||function(ye){return ge(ye,Pe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(oe,Ze,Ne){Ne.f=Object.getOwnPropertySymbols},{}],203:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/has-own-property"),Pe=oe("../internals/is-callable"),Ae=oe("../internals/to-object"),ye=oe("../internals/shared-key"),De=oe("../internals/correct-prototype-getter"),me=ye("IE_PROTO"),we=ge.Object,fe=we.prototype;Ze.exports=De?we.getPrototypeOf:function(z){var ee=Ae(z);if(ce(ee,me))return ee[me];var ae=ee.constructor;return Pe(ae)&&ee instanceof ae?ae.prototype:ee instanceof we?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,Ze,Ne){var ge=oe("../internals/function-uncurry-this");Ze.exports=ge({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(oe,Ze,Ne){var ge=oe("../internals/function-uncurry-this"),ce=oe("../internals/has-own-property"),Pe=oe("../internals/to-indexed-object"),Ae=oe("../internals/array-includes").indexOf,ye=oe("../internals/hidden-keys"),De=ge([].push);Ze.exports=function(me,we){var fe=Pe(me),z=0,ee=[],ae;for(ae in fe)!ce(ye,ae)&&ce(fe,ae)&&De(ee,ae);for(;we.length>z;)ce(fe,ae=we[z++])&&(~Ae(ee,ae)||De(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,Ze,Ne){var ge=oe("../internals/object-keys-internal"),ce=oe("../internals/enum-bug-keys");Ze.exports=Object.keys||function(Ae){return ge(Ae,ce)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(oe,Ze,Ne){"use strict";var ge={}.propertyIsEnumerable,ce=Object.getOwnPropertyDescriptor,Pe=ce&&!ge.call({1:2},1);Ne.f=Pe?function(ye){var De=ce(this,ye);return!!De&&De.enumerable}:ge},{}],208:[function(oe,Ze,Ne){var ge=oe("../internals/function-uncurry-this"),ce=oe("../internals/an-object"),Pe=oe("../internals/a-possible-prototype");Ze.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Ae=!1,ye={},De;try{De=ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),De(ye,[]),Ae=ye instanceof Array}catch(me){}return function(we,fe){return ce(we),Pe(fe),Ae?De(we,fe):we.__proto__=fe,we}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(oe,Ze,Ne){var ge=oe("../internals/descriptors"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/object-keys"),Ae=oe("../internals/to-indexed-object"),ye=oe("../internals/object-property-is-enumerable").f,De=ce(ye),me=ce([].push),we=function(fe){return function(z){for(var ee=Ae(z),ae=Pe(ee),re=ae.length,le=0,ue=[],pe;re>le;)pe=ae[le++],(!ge||De(ee,pe))&&me(ue,fe?[pe,ee[pe]]:ee[pe]);return ue}};Ze.exports={entries:we(!0),values:we(!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,Ze,Ne){"use strict";var ge=oe("../internals/to-string-tag-support"),ce=oe("../internals/classof");Ze.exports=ge?{}.toString:function(){return"[object "+ce(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/function-call"),Pe=oe("../internals/is-callable"),Ae=oe("../internals/is-object"),ye=ge.TypeError;Ze.exports=function(De,me){var we,fe;if(me==="string"&&Pe(we=De.toString)&&!Ae(fe=ce(we,De))||Pe(we=De.valueOf)&&!Ae(fe=ce(we,De))||me!=="string"&&Pe(we=De.toString)&&!Ae(fe=ce(we,De)))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,Ze,Ne){var ge=oe("../internals/get-built-in"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/object-get-own-property-names"),Ae=oe("../internals/object-get-own-property-symbols"),ye=oe("../internals/an-object"),De=ce([].concat);Ze.exports=ge("Reflect","ownKeys")||function(we){var fe=Pe.f(ye(we)),z=Ae.f;return z?De(fe,z(we)):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,Ze,Ne){var ge=oe("../internals/global");Ze.exports=ge},{"../internals/global":163}],214:[function(oe,Ze,Ne){Ze.exports=function(ge){try{return{error:!1,value:ge()}}catch(ce){return{error:!0,value:ce}}}},{}],215:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/promise-native-constructor"),Pe=oe("../internals/is-callable"),Ae=oe("../internals/is-forced"),ye=oe("../internals/inspect-source"),De=oe("../internals/well-known-symbol"),me=oe("../internals/engine-is-browser"),we=oe("../internals/is-pure"),fe=oe("../internals/engine-v8-version"),z=ce&&ce.prototype,ee=De("species"),ae=!1,re=Pe(ge.PromiseRejectionEvent),le=Ae("Promise",function(){var ue=ye(ce),pe=ue!==String(ce);if(!pe&&fe===66||we&&!(z.catch&&z.finally))return!0;if(fe>=51&&/native code/.test(ue))return!1;var Ee=new ce(function(Le){Le(1)}),be=function(Le){Le(function(){},function(){})},Ie=Ee.constructor={};return Ie[ee]=be,ae=Ee.then(function(){})instanceof be,ae?!pe&&me&&!re:!0});Ze.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,Ze,Ne){var ge=oe("../internals/global");Ze.exports=ge.Promise},{"../internals/global":163}],217:[function(oe,Ze,Ne){var ge=oe("../internals/an-object"),ce=oe("../internals/is-object"),Pe=oe("../internals/new-promise-capability");Ze.exports=function(Ae,ye){if(ge(Ae),ce(ye)&&ye.constructor===Ae)return ye;var De=Pe.f(Ae),me=De.resolve;return me(ye),De.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(oe,Ze,Ne){var ge=oe("../internals/promise-native-constructor"),ce=oe("../internals/check-correctness-of-iteration"),Pe=oe("../internals/promise-constructor-detection").CONSTRUCTOR;Ze.exports=Pe||!ce(function(Ae){ge.all(Ae).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(oe,Ze,Ne){var ge=oe("../internals/object-define-property").f;Ze.exports=function(ce,Pe,Ae){Ae in ce||ge(ce,Ae,{configurable:!0,get:function(){return Pe[Ae]},set:function(ye){Pe[Ae]=ye}})}},{"../internals/object-define-property":198}],220:[function(oe,Ze,Ne){var ge=function(){this.head=null,this.tail=null};ge.prototype={add:function(ce){var Pe={item:ce,next:null};this.head?this.tail.next=Pe:this.head=Pe,this.tail=Pe},get:function(){var ce=this.head;if(ce)return this.head=ce.next,this.tail===ce&&(this.tail=null),ce.item}},Ze.exports=ge},{}],221:[function(oe,Ze,Ne){var ge=oe("../internals/redefine");Ze.exports=function(ce,Pe,Ae){for(var ye in Pe)ge(ce,ye,Pe[ye],Ae);return ce}},{"../internals/redefine":222}],222:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/is-callable"),Pe=oe("../internals/has-own-property"),Ae=oe("../internals/create-non-enumerable-property"),ye=oe("../internals/set-global"),De=oe("../internals/inspect-source"),me=oe("../internals/internal-state"),we=oe("../internals/function-name").CONFIGURABLE,fe=me.get,z=me.enforce,ee=String(String).split("String");(Ze.exports=function(ae,re,le,ue){var pe=ue?!!ue.unsafe:!1,Ee=ue?!!ue.enumerable:!1,be=ue?!!ue.noTargetGet:!1,Ie=ue&&ue.name!==void 0?ue.name:re,Le;if(ce(le)&&(String(Ie).slice(0,7)==="Symbol("&&(Ie="["+String(Ie).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Pe(le,"name")||we&&le.name!==Ie)&&Ae(le,"name",Ie),Le=z(le),Le.source||(Le.source=ee.join(typeof Ie=="string"?Ie:""))),ae===ge){Ee?ae[re]=le:ye(re,le);return}else pe?!be&&ae[re]&&(Ee=!0):delete ae[re];Ee?ae[re]=le:Ae(ae,re,le)})(Function.prototype,"toString",function(){return ce(this)&&fe(this).source||De(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,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/function-call"),Pe=oe("../internals/an-object"),Ae=oe("../internals/is-callable"),ye=oe("../internals/classof-raw"),De=oe("../internals/regexp-exec"),me=ge.TypeError;Ze.exports=function(we,fe){var z=we.exec;if(Ae(z)){var ee=ce(z,we,fe);return ee!==null&&Pe(ee),ee}if(ye(we)==="RegExp")return ce(De,we,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,Ze,Ne){"use strict";var ge=oe("../internals/function-call"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/to-string"),Ae=oe("../internals/regexp-flags"),ye=oe("../internals/regexp-sticky-helpers"),De=oe("../internals/shared"),me=oe("../internals/object-create"),we=oe("../internals/internal-state").get,fe=oe("../internals/regexp-unsupported-dot-all"),z=oe("../internals/regexp-unsupported-ncg"),ee=De("native-string-replace",String.prototype.replace),ae=RegExp.prototype.exec,re=ae,le=ce("".charAt),ue=ce("".indexOf),pe=ce("".replace),Ee=ce("".slice),be=function(){var Oe=/a/,je=/b*/g;return ge(ae,Oe,"a"),ge(ae,je,"a"),Oe.lastIndex!==0||je.lastIndex!==0}(),Ie=ye.BROKEN_CARET,Le=/()??/.exec("")[1]!==void 0,Fe=be||Le||Ie||fe||z;Fe&&(re=function(je){var ze=this,_e=we(ze),Ue=Pe(je),$e=_e.raw,et,lt,ut,yt,qe,ot,dt;if($e)return $e.lastIndex=ze.lastIndex,et=ge(re,$e,Ue),ze.lastIndex=$e.lastIndex,et;var St=_e.groups,xt=Ie&&ze.sticky,ft=ge(Ae,ze),gt=ze.source,vt=0,Tt=Ue;if(xt&&(ft=pe(ft,"y",""),ue(ft,"g")===-1&&(ft+="g"),Tt=Ee(Ue,ze.lastIndex),ze.lastIndex>0&&(!ze.multiline||ze.multiline&&le(Ue,ze.lastIndex-1)!==`
|
|
|
`)&&(gt="(?: "+gt+")",Tt=" "+Tt,vt++),lt=new RegExp("^(?:"+gt+")",ft)),Le&&(lt=new RegExp("^"+gt+"$(?!\\s)",ft)),be&&(ut=ze.lastIndex),yt=ge(ae,xt?lt:ze,Tt),xt?yt?(yt.input=Ee(yt.input,vt),yt[0]=Ee(yt[0],vt),yt.index=ze.lastIndex,ze.lastIndex+=yt[0].length):ze.lastIndex=0:be&&yt&&(ze.lastIndex=ze.global?yt.index+yt[0].length:ut),Le&&yt&&yt.length>1&&ge(ee,yt[0],lt,function(){for(qe=1;qe<arguments.length-2;qe++)arguments[qe]===void 0&&(yt[qe]=void 0)}),yt&&St)for(yt.groups=ot=me(null),qe=0;qe<St.length;qe++)dt=St[qe],ot[dt[0]]=yt[dt[1]];return yt}),Ze.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,Ze,Ne){"use strict";var ge=oe("../internals/an-object");Ze.exports=function(){var ce=ge(this),Pe="";return ce.hasIndices&&(Pe+="d"),ce.global&&(Pe+="g"),ce.ignoreCase&&(Pe+="i"),ce.multiline&&(Pe+="m"),ce.dotAll&&(Pe+="s"),ce.unicode&&(Pe+="u"),ce.sticky&&(Pe+="y"),Pe}},{"../internals/an-object":101}],226:[function(oe,Ze,Ne){var ge=oe("../internals/function-call"),ce=oe("../internals/has-own-property"),Pe=oe("../internals/object-is-prototype-of"),Ae=oe("../internals/regexp-flags"),ye=RegExp.prototype;Ze.exports=function(De){var me=De.flags;return me===void 0&&!("flags"in ye)&&!ce(De,"flags")&&Pe(ye,De)?ge(Ae,De):me}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(oe,Ze,Ne){var ge=oe("../internals/fails"),ce=oe("../internals/global"),Pe=ce.RegExp,Ae=ge(function(){var me=Pe("a","y");return me.lastIndex=2,me.exec("abcd")!=null}),ye=Ae||ge(function(){return!Pe("a","y").sticky}),De=Ae||ge(function(){var me=Pe("^r","gy");return me.lastIndex=2,me.exec("str")!=null});Ze.exports={BROKEN_CARET:De,MISSED_STICKY:ye,UNSUPPORTED_Y:Ae}},{"../internals/fails":150,"../internals/global":163}],228:[function(oe,Ze,Ne){var ge=oe("../internals/fails"),ce=oe("../internals/global"),Pe=ce.RegExp;Ze.exports=ge(function(){var Ae=Pe(".","s");return!(Ae.dotAll&&Ae.exec(`
|
|
|
`)&&Ae.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(oe,Ze,Ne){var ge=oe("../internals/fails"),ce=oe("../internals/global"),Pe=ce.RegExp;Ze.exports=ge(function(){var Ae=Pe("(?<a>b)","g");return Ae.exec("b").groups.a!=="b"||"b".replace(Ae,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=ge.TypeError;Ze.exports=function(Pe){if(Pe==null)throw ce("Can't call method on "+Pe);return Pe}},{"../internals/global":163}],231:[function(oe,Ze,Ne){Ze.exports=Object.is||function(ce,Pe){return ce===Pe?ce!==0||1/ce===1/Pe:ce!=ce&&Pe!=Pe}},{}],232:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=Object.defineProperty;Ze.exports=function(Pe,Ae){try{ce(ge,Pe,{value:Ae,configurable:!0,writable:!0})}catch(ye){ge[Pe]=Ae}return Ae}},{"../internals/global":163}],233:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/get-built-in"),ce=oe("../internals/object-define-property"),Pe=oe("../internals/well-known-symbol"),Ae=oe("../internals/descriptors"),ye=Pe("species");Ze.exports=function(De){var me=ge(De),we=ce.f;Ae&&me&&!me[ye]&&we(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,Ze,Ne){var ge=oe("../internals/object-define-property").f,ce=oe("../internals/has-own-property"),Pe=oe("../internals/well-known-symbol"),Ae=Pe("toStringTag");Ze.exports=function(ye,De,me){ye&&!me&&(ye=ye.prototype),ye&&!ce(ye,Ae)&&ge(ye,Ae,{configurable:!0,value:De})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(oe,Ze,Ne){var ge=oe("../internals/shared"),ce=oe("../internals/uid"),Pe=ge("keys");Ze.exports=function(Ae){return Pe[Ae]||(Pe[Ae]=ce(Ae))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/set-global"),Pe="__core-js_shared__",Ae=ge[Pe]||ce(Pe,{});Ze.exports=Ae},{"../internals/global":163,"../internals/set-global":232}],237:[function(oe,Ze,Ne){var ge=oe("../internals/is-pure"),ce=oe("../internals/shared-store");(Ze.exports=function(Pe,Ae){return ce[Pe]||(ce[Pe]=Ae!==void 0?Ae:{})})("versions",[]).push({version:"3.22.1",mode:ge?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(oe,Ze,Ne){var ge=oe("../internals/an-object"),ce=oe("../internals/a-constructor"),Pe=oe("../internals/well-known-symbol"),Ae=Pe("species");Ze.exports=function(ye,De){var me=ge(ye).constructor,we;return me===void 0||(we=ge(me)[Ae])==null?De:ce(we)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(oe,Ze,Ne){var ge=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-integer-or-infinity"),Pe=oe("../internals/to-string"),Ae=oe("../internals/require-object-coercible"),ye=ge("".charAt),De=ge("".charCodeAt),me=ge("".slice),we=function(fe){return function(z,ee){var ae=Pe(Ae(z)),re=ce(ee),le=ae.length,ue,pe;return re<0||re>=le?fe?"":void 0:(ue=De(ae,re),ue<55296||ue>56319||re+1===le||(pe=De(ae,re+1))<56320||pe>57343?fe?ye(ae,re):ue:fe?me(ae,re,re+2):(ue-55296<<10)+(pe-56320)+65536)}};Ze.exports={codeAt:we(!1),charAt:we(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(oe,Ze,Ne){var ge=oe("../internals/function-name").PROPER,ce=oe("../internals/fails"),Pe=oe("../internals/whitespaces"),Ae="\u200B\x85\u180E";Ze.exports=function(ye){return ce(function(){return!!Pe[ye]()||Ae[ye]()!==Ae||ge&&Pe[ye].name!==ye})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(oe,Ze,Ne){var ge=oe("../internals/function-uncurry-this"),ce=oe("../internals/require-object-coercible"),Pe=oe("../internals/to-string"),Ae=oe("../internals/whitespaces"),ye=ge("".replace),De="["+Ae+"]",me=RegExp("^"+De+De+"*"),we=RegExp(De+De+"*$"),fe=function(z){return function(ee){var ae=Pe(ce(ee));return z&1&&(ae=ye(ae,me,"")),z&2&&(ae=ye(ae,we,"")),ae}};Ze.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,Ze,Ne){var ge=oe("../internals/function-call"),ce=oe("../internals/get-built-in"),Pe=oe("../internals/well-known-symbol"),Ae=oe("../internals/redefine");Ze.exports=function(){var ye=ce("Symbol"),De=ye&&ye.prototype,me=De&&De.valueOf,we=Pe("toPrimitive");De&&!De[we]&&Ae(De,we,function(fe){return ge(me,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/function-apply"),Pe=oe("../internals/function-bind-context"),Ae=oe("../internals/is-callable"),ye=oe("../internals/has-own-property"),De=oe("../internals/fails"),me=oe("../internals/html"),we=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=ge.setImmediate,le=ge.clearImmediate,ue=ge.process,pe=ge.Dispatch,Ee=ge.Function,be=ge.MessageChannel,Ie=ge.String,Le=0,Fe={},Oe="onreadystatechange",je,ze,_e,Ue;try{je=ge.location}catch(yt){}var $e=function(yt){if(ye(Fe,yt)){var qe=Fe[yt];delete Fe[yt],qe()}},et=function(yt){return function(){$e(yt)}},lt=function(yt){$e(yt.data)},ut=function(yt){ge.postMessage(Ie(yt),je.protocol+"//"+je.host)};(!re||!le)&&(re=function(qe){z(arguments.length,1);var ot=Ae(qe)?qe:Ee(qe),dt=we(arguments,1);return Fe[++Le]=function(){ce(ot,void 0,dt)},ze(Le),Le},le=function(qe){delete Fe[qe]},ae?ze=function(yt){ue.nextTick(et(yt))}:pe&&pe.now?ze=function(yt){pe.now(et(yt))}:be&&!ee?(_e=new be,Ue=_e.port2,_e.port1.onmessage=lt,ze=Pe(Ue.postMessage,Ue)):ge.addEventListener&&Ae(ge.postMessage)&&!ge.importScripts&&je&&je.protocol!=="file:"&&!De(ut)?(ze=ut,ge.addEventListener("message",lt,!1)):Oe in fe("script")?ze=function(yt){me.appendChild(fe("script"))[Oe]=function(){me.removeChild(this),$e(yt)}}:ze=function(yt){setTimeout(et(yt),0)}),Ze.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,Ze,Ne){var ge=oe("../internals/function-uncurry-this");Ze.exports=ge(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(oe,Ze,Ne){var ge=oe("../internals/to-integer-or-infinity"),ce=Math.max,Pe=Math.min;Ze.exports=function(Ae,ye){var De=ge(Ae);return De<0?ce(De+ye,0):Pe(De,ye)}},{"../internals/to-integer-or-infinity":248}],246:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/to-integer-or-infinity"),Pe=oe("../internals/to-length"),Ae=ge.RangeError;Ze.exports=function(ye){if(ye===void 0)return 0;var De=ce(ye),me=Pe(De);if(De!==me)throw Ae("Wrong length or index");return me}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(oe,Ze,Ne){var ge=oe("../internals/indexed-object"),ce=oe("../internals/require-object-coercible");Ze.exports=function(Pe){return ge(ce(Pe))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(oe,Ze,Ne){var ge=Math.ceil,ce=Math.floor;Ze.exports=function(Pe){var Ae=+Pe;return Ae!==Ae||Ae===0?0:(Ae>0?ce:ge)(Ae)}},{}],249:[function(oe,Ze,Ne){var ge=oe("../internals/to-integer-or-infinity"),ce=Math.min;Ze.exports=function(Pe){return Pe>0?ce(ge(Pe),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/require-object-coercible"),Pe=ge.Object;Ze.exports=function(Ae){return Pe(ce(Ae))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/to-positive-integer"),Pe=ge.RangeError;Ze.exports=function(Ae,ye){var De=ce(Ae);if(De%ye)throw Pe("Wrong offset");return De}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/to-integer-or-infinity"),Pe=ge.RangeError;Ze.exports=function(Ae){var ye=ce(Ae);if(ye<0)throw Pe("The argument can't be less than 0");return ye}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/function-call"),Pe=oe("../internals/is-object"),Ae=oe("../internals/is-symbol"),ye=oe("../internals/get-method"),De=oe("../internals/ordinary-to-primitive"),me=oe("../internals/well-known-symbol"),we=ge.TypeError,fe=me("toPrimitive");Ze.exports=function(z,ee){if(!Pe(z)||Ae(z))return z;var ae=ye(z,fe),re;if(ae){if(ee===void 0&&(ee="default"),re=ce(ae,z,ee),!Pe(re)||Ae(re))return re;throw we("Can't convert object to primitive value")}return ee===void 0&&(ee="number"),De(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,Ze,Ne){var ge=oe("../internals/to-primitive"),ce=oe("../internals/is-symbol");Ze.exports=function(Pe){var Ae=ge(Pe,"string");return ce(Ae)?Ae:Ae+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(oe,Ze,Ne){var ge=oe("../internals/well-known-symbol"),ce=ge("toStringTag"),Pe={};Pe[ce]="z",Ze.exports=String(Pe)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/classof"),Pe=ge.String;Ze.exports=function(Ae){if(ce(Ae)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Pe(Ae)}},{"../internals/classof":124,"../internals/global":163}],257:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=ge.String;Ze.exports=function(Pe){try{return ce(Pe)}catch(Ae){return"Object"}}},{"../internals/global":163}],258:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/global"),Pe=oe("../internals/function-call"),Ae=oe("../internals/descriptors"),ye=oe("../internals/typed-array-constructors-require-wrappers"),De=oe("../internals/array-buffer-view-core"),me=oe("../internals/array-buffer"),we=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"),Ee=oe("../internals/classof"),be=oe("../internals/is-object"),Ie=oe("../internals/is-symbol"),Le=oe("../internals/object-create"),Fe=oe("../internals/object-is-prototype-of"),Oe=oe("../internals/object-set-prototype-of"),je=oe("../internals/object-get-own-property-names").f,ze=oe("../internals/typed-array-from"),_e=oe("../internals/array-iteration").forEach,Ue=oe("../internals/set-species"),$e=oe("../internals/object-define-property"),et=oe("../internals/object-get-own-property-descriptor"),lt=oe("../internals/internal-state"),ut=oe("../internals/inherit-if-required"),yt=lt.get,qe=lt.set,ot=$e.f,dt=et.f,St=Math.round,xt=ce.RangeError,ft=me.ArrayBuffer,gt=ft.prototype,vt=me.DataView,Tt=De.NATIVE_ARRAY_BUFFER_VIEWS,Et=De.TYPED_ARRAY_CONSTRUCTOR,Zt=De.TYPED_ARRAY_TAG,wt=De.TypedArray,bt=De.TypedArrayPrototype,it=De.aTypedArrayConstructor,nt=De.isTypedArray,xe="BYTES_PER_ELEMENT",Ce="Wrong length",Ye=function(Qe,ht){it(Qe);for(var At=0,pt=ht.length,Ot=new Qe(pt);pt>At;)Ot[At]=ht[At++];return Ot},Je=function(Qe,ht){ot(Qe,ht,{get:function(){return yt(this)[ht]}})},Me=function(Qe){var ht;return Fe(gt,Qe)||(ht=Ee(Qe))=="ArrayBuffer"||ht=="SharedArrayBuffer"},Ge=function(Qe,ht){return nt(Qe)&&!Ie(ht)&&ht in Qe&&ee(+ht)&&ht>=0},Ke=function(ht,At){return At=ue(At),Ge(ht,At)?fe(2,ht[At]):dt(ht,At)},Ve=function(ht,At,pt){return At=ue(At),Ge(ht,At)&&be(pt)&&pe(pt,"value")&&!pe(pt,"get")&&!pe(pt,"set")&&!pt.configurable&&(!pe(pt,"writable")||pt.writable)&&(!pe(pt,"enumerable")||pt.enumerable)?(ht[At]=pt.value,ht):ot(ht,At,pt)};Ae?(Tt||(et.f=Ke,$e.f=Ve,Je(bt,"buffer"),Je(bt,"byteOffset"),Je(bt,"byteLength"),Je(bt,"length")),ge({target:"Object",stat:!0,forced:!Tt},{getOwnPropertyDescriptor:Ke,defineProperty:Ve}),Ze.exports=function(Qe,ht,At){var pt=Qe.match(/\d+$/)[0]/8,Ot=Qe+(At?"Clamped":"")+"Array",Kt="get"+Qe,jt="set"+Qe,Rt=ce[Ot],Xt=Rt,sn=Xt&&Xt.prototype,Ft={},Qt=function(Cn,Bn){var tr=yt(Cn);return tr.view[Kt](Bn*pt+tr.byteOffset,!0)},en=function(Cn,Bn,tr){var er=yt(Cn);At&&(tr=(tr=St(tr))<0?0:tr>255?255:tr&255),er.view[jt](Bn*pt+er.byteOffset,tr,!0)},on=function(Cn,Bn){ot(Cn,Bn,{get:function(){return Qt(this,Bn)},set:function(tr){return en(this,Bn,tr)},enumerable:!0})};Tt?ye&&(Xt=ht(function(Cn,Bn,tr,er){return we(Cn,sn),ut(function(){return be(Bn)?Me(Bn)?er!==void 0?new Rt(Bn,le(tr,pt),er):tr!==void 0?new Rt(Bn,le(tr,pt)):new Rt(Bn):nt(Bn)?Ye(Xt,Bn):Pe(ze,Xt,Bn):new Rt(re(Bn))}(),Cn,Xt)}),Oe&&Oe(Xt,wt),_e(je(Rt),function(Cn){Cn in Xt||z(Xt,Cn,Rt[Cn])}),Xt.prototype=sn):(Xt=ht(function(Cn,Bn,tr,er){we(Cn,sn);var cr=0,Ar=0,Dr,Or,$r;if(!be(Bn))$r=re(Bn),Or=$r*pt,Dr=new ft(Or);else if(Me(Bn)){Dr=Bn,Ar=le(tr,pt);var ai=Bn.byteLength;if(er===void 0){if(ai%pt||(Or=ai-Ar,Or<0))throw xt(Ce)}else if(Or=ae(er)*pt,Or+Ar>ai)throw xt(Ce);$r=Or/pt}else return nt(Bn)?Ye(Xt,Bn):Pe(ze,Xt,Bn);for(qe(Cn,{buffer:Dr,byteOffset:Ar,byteLength:Or,length:$r,view:new vt(Dr)});cr<$r;)on(Cn,cr++)}),Oe&&Oe(Xt,wt),sn=Xt.prototype=Le(bt)),sn.constructor!==Xt&&z(sn,"constructor",Xt),z(sn,Et,Xt),Zt&&z(sn,Zt,Ot),Ft[Ot]=Xt,ge({global:!0,forced:Xt!=Rt,sham:!Tt},Ft),xe in Xt||z(Xt,xe,pt),xe in sn||z(sn,xe,pt),Ue(Ot)}):Ze.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,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/fails"),Pe=oe("../internals/check-correctness-of-iteration"),Ae=oe("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ye=ge.ArrayBuffer,De=ge.Int8Array;Ze.exports=!Ae||!ce(function(){De(1)})||!ce(function(){new De(-1)})||!Pe(function(me){new De,new De(null),new De(1.5),new De(me)},!0)||ce(function(){return new De(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,Ze,Ne){var ge=oe("../internals/array-from-constructor-and-list"),ce=oe("../internals/typed-array-species-constructor");Ze.exports=function(Pe,Ae){return ge(ce(Pe),Ae)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(oe,Ze,Ne){var ge=oe("../internals/function-bind-context"),ce=oe("../internals/function-call"),Pe=oe("../internals/a-constructor"),Ae=oe("../internals/to-object"),ye=oe("../internals/length-of-array-like"),De=oe("../internals/get-iterator"),me=oe("../internals/get-iterator-method"),we=oe("../internals/is-array-iterator-method"),fe=oe("../internals/array-buffer-view-core").aTypedArrayConstructor;Ze.exports=function(ee){var ae=Pe(this),re=Ae(ee),le=arguments.length,ue=le>1?arguments[1]:void 0,pe=ue!==void 0,Ee=me(re),be,Ie,Le,Fe,Oe,je;if(Ee&&!we(Ee))for(Oe=De(re,Ee),je=Oe.next,re=[];!(Fe=ce(je,Oe)).done;)re.push(Fe.value);for(pe&&le>2&&(ue=ge(ue,arguments[2])),Ie=ye(re),Le=new(fe(ae))(Ie),be=0;Ie>be;be++)Le[be]=pe?ue(re[be],be):re[be];return Le}},{"../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,Ze,Ne){var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/species-constructor"),Pe=ge.TYPED_ARRAY_CONSTRUCTOR,Ae=ge.aTypedArrayConstructor;Ze.exports=function(ye){return Ae(ce(ye,ye[Pe]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(oe,Ze,Ne){var ge=oe("../internals/function-uncurry-this"),ce=0,Pe=Math.random(),Ae=ge(1 .toString);Ze.exports=function(ye){return"Symbol("+(ye===void 0?"":ye)+")_"+Ae(++ce+Pe,36)}},{"../internals/function-uncurry-this":157}],264:[function(oe,Ze,Ne){var ge=oe("../internals/native-symbol");Ze.exports=ge&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(oe,Ze,Ne){var ge=oe("../internals/descriptors"),ce=oe("../internals/fails");Ze.exports=ge&&ce(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=ge.TypeError;Ze.exports=function(Pe,Ae){if(Pe<Ae)throw ce("Not enough arguments");return Pe}},{"../internals/global":163}],267:[function(oe,Ze,Ne){var ge=oe("../internals/well-known-symbol");Ne.f=ge},{"../internals/well-known-symbol":268}],268:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/shared"),Pe=oe("../internals/has-own-property"),Ae=oe("../internals/uid"),ye=oe("../internals/native-symbol"),De=oe("../internals/use-symbol-as-uid"),me=ce("wks"),we=ge.Symbol,fe=we&&we.for,z=De?we:we&&we.withoutSetter||Ae;Ze.exports=function(ee){if(!Pe(me,ee)||!(ye||typeof me[ee]=="string")){var ae="Symbol."+ee;ye&&Pe(we,ee)?me[ee]=we[ee]:De&&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,Ze,Ne){Ze.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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/global"),Pe=oe("../internals/array-buffer"),Ae=oe("../internals/set-species"),ye="ArrayBuffer",De=Pe[ye],me=ce[ye];ge({global:!0,forced:me!==De},{ArrayBuffer:De}),Ae(ye)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fails"),Ae=oe("../internals/array-buffer"),ye=oe("../internals/an-object"),De=oe("../internals/to-absolute-index"),me=oe("../internals/to-length"),we=oe("../internals/species-constructor"),fe=Ae.ArrayBuffer,z=Ae.DataView,ee=z.prototype,ae=ce(fe.prototype.slice),re=ce(ee.getUint8),le=ce(ee.setUint8),ue=Pe(function(){return!new fe(2).slice(1,void 0).byteLength});ge({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ue},{slice:function(Ee,be){if(ae&&be===void 0)return ae(ye(this),Ee);for(var Ie=ye(this).byteLength,Le=De(Ee,Ie),Fe=De(be===void 0?Ie:be,Ie),Oe=new(we(this,fe))(me(Fe-Le)),je=new z(this),ze=new z(Oe),_e=0;Le<Fe;)le(ze,_e++,re(je,Le++));return Oe}})},{"../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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/global"),Pe=oe("../internals/fails"),Ae=oe("../internals/is-array"),ye=oe("../internals/is-object"),De=oe("../internals/to-object"),me=oe("../internals/length-of-array-like"),we=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,Ee=ae>=51||!Pe(function(){var Fe=[];return Fe[re]=!1,Fe.concat()[0]!==Fe}),be=z("concat"),Ie=function(Fe){if(!ye(Fe))return!1;var Oe=Fe[re];return Oe!==void 0?!!Oe:Ae(Fe)},Le=!Ee||!be;ge({target:"Array",proto:!0,forced:Le},{concat:function(Oe){var je=De(this),ze=fe(je,0),_e=0,Ue,$e,et,lt,ut;for(Ue=-1,et=arguments.length;Ue<et;Ue++)if(ut=Ue===-1?je:arguments[Ue],Ie(ut)){if(lt=me(ut),_e+lt>le)throw pe(ue);for($e=0;$e<lt;$e++,_e++)$e in ut&&we(ze,_e,ut[$e])}else{if(_e>=le)throw pe(ue);we(ze,_e++,ut)}return ze.length=_e,ze}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(oe,Ze,Ne){var ge=oe("../internals/export"),ce=oe("../internals/array-fill"),Pe=oe("../internals/add-to-unscopables");ge({target:"Array",proto:!0},{fill:ce}),Pe("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/array-iteration").filter,Pe=oe("../internals/array-method-has-species-support"),Ae=Pe("filter");ge({target:"Array",proto:!0,forced:!Ae},{filter:function(De){return ce(this,De,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/array-iteration").find,Pe=oe("../internals/add-to-unscopables"),Ae="find",ye=!0;Ae in[]&&Array(1)[Ae](function(){ye=!1}),ge({target:"Array",proto:!0,forced:ye},{find:function(me){return ce(this,me,arguments.length>1?arguments[1]:void 0)}}),Pe(Ae)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(oe,Ze,Ne){var ge=oe("../internals/export"),ce=oe("../internals/array-from"),Pe=oe("../internals/check-correctness-of-iteration"),Ae=!Pe(function(ye){Array.from(ye)});ge({target:"Array",stat:!0,forced:Ae},{from:ce})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/array-includes").includes,Pe=oe("../internals/add-to-unscopables");ge({target:"Array",proto:!0},{includes:function(ye){return ce(this,ye,arguments.length>1?arguments[1]:void 0)}}),Pe("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/to-indexed-object"),ce=oe("../internals/add-to-unscopables"),Pe=oe("../internals/iterators"),Ae=oe("../internals/internal-state"),ye=oe("../internals/object-define-property").f,De=oe("../internals/define-iterator"),me=oe("../internals/is-pure"),we=oe("../internals/descriptors"),fe="Array Iterator",z=Ae.set,ee=Ae.getterFor(fe);Ze.exports=De(Array,"Array",function(re,le){z(this,{type:fe,target:ge(re),index:0,kind:le})},function(){var re=ee(this),le=re.target,ue=re.kind,pe=re.index++;return!le||pe>=le.length?(re.target=void 0,{value:void 0,done:!0}):ue=="keys"?{value:pe,done:!1}:ue=="values"?{value:le[pe],done:!1}:{value:[pe,le[pe]],done:!1}},"values");var ae=Pe.Arguments=Pe.Array;if(ce("keys"),ce("values"),ce("entries"),!me&&we&&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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/indexed-object"),Ae=oe("../internals/to-indexed-object"),ye=oe("../internals/array-method-is-strict"),De=ce([].join),me=Pe!=Object,we=ye("join",",");ge({target:"Array",proto:!0,forced:me||!we},{join:function(z){return De(Ae(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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/array-iteration").map,Pe=oe("../internals/array-method-has-species-support"),Ae=Pe("map");ge({target:"Array",proto:!0,forced:!Ae},{map:function(De){return ce(this,De,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/global"),Pe=oe("../internals/is-array"),Ae=oe("../internals/is-constructor"),ye=oe("../internals/is-object"),De=oe("../internals/to-absolute-index"),me=oe("../internals/length-of-array-like"),we=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;ge({target:"Array",proto:!0,forced:!re},{slice:function(be,Ie){var Le=we(this),Fe=me(Le),Oe=De(be,Fe),je=De(Ie===void 0?Fe:Ie,Fe),ze,_e,Ue;if(Pe(Le)&&(ze=Le.constructor,Ae(ze)&&(ze===ue||Pe(ze.prototype))?ze=void 0:ye(ze)&&(ze=ze[le],ze===null&&(ze=void 0)),ze===ue||ze===void 0))return ae(Le,Oe,je);for(_e=new(ze===void 0?ue:ze)(pe(je-Oe,0)),Ue=0;Oe<je;Oe++,Ue++)Oe in Le&&fe(_e,Ue,Le[Oe]);return _e.length=Ue,_e}})},{"../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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/a-callable"),Ae=oe("../internals/to-object"),ye=oe("../internals/length-of-array-like"),De=oe("../internals/to-string"),me=oe("../internals/fails"),we=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),Ee=me(function(){le.sort(void 0)}),be=me(function(){le.sort(null)}),Ie=fe("sort"),Le=!me(function(){if(ae)return ae<70;if(!(z&&z>3)){if(ee)return!0;if(re)return re<603;var je="",ze,_e,Ue,$e;for(ze=65;ze<76;ze++){switch(_e=String.fromCharCode(ze),ze){case 66:case 69:case 70:case 72:Ue=3;break;case 68:case 71:Ue=4;break;default:Ue=2}for($e=0;$e<47;$e++)le.push({k:_e+$e,v:Ue})}for(le.sort(function(et,lt){return lt.v-et.v}),$e=0;$e<le.length;$e++)_e=le[$e].k.charAt(0),je.charAt(je.length-1)!==_e&&(je+=_e);return je!=="DGBEFHACIJK"}}),Fe=Ee||!be||!Ie||!Le,Oe=function(je){return function(ze,_e){return _e===void 0?-1:ze===void 0?1:je!==void 0?+je(ze,_e)||0:De(ze)>De(_e)?1:-1}};ge({target:"Array",proto:!0,forced:Fe},{sort:function(ze){ze!==void 0&&Pe(ze);var _e=Ae(this);if(Le)return ze===void 0?ue(_e):ue(_e,ze);var Ue=[],$e=ye(_e),et,lt;for(lt=0;lt<$e;lt++)lt in _e&&pe(Ue,_e[lt]);for(we(Ue,Oe(ze)),et=Ue.length,lt=0;lt<et;)_e[lt]=Ue[lt++];for(;lt<$e;)delete _e[lt++];return _e}})},{"../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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/global"),Pe=oe("../internals/to-absolute-index"),Ae=oe("../internals/to-integer-or-infinity"),ye=oe("../internals/length-of-array-like"),De=oe("../internals/to-object"),me=oe("../internals/array-species-create"),we=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";ge({target:"Array",proto:!0,forced:!z},{splice:function(Ee,be){var Ie=De(this),Le=ye(Ie),Fe=Pe(Ee,Le),Oe=arguments.length,je,ze,_e,Ue,$e,et;if(Oe===0?je=ze=0:Oe===1?(je=0,ze=Le-Fe):(je=Oe-2,ze=re(ae(Ae(be),0),Le-Fe)),Le+je-ze>le)throw ee(ue);for(_e=me(Ie,ze),Ue=0;Ue<ze;Ue++)$e=Fe+Ue,$e in Ie&&we(_e,Ue,Ie[$e]);if(_e.length=ze,je<ze){for(Ue=Fe;Ue<Le-ze;Ue++)$e=Ue+ze,et=Ue+je,$e in Ie?Ie[et]=Ie[$e]:delete Ie[et];for(Ue=Le;Ue>Le-ze+je;Ue--)delete Ie[Ue-1]}else if(je>ze)for(Ue=Le-ze;Ue>Fe;Ue--)$e=Ue+ze-1,et=Ue+je-1,$e in Ie?Ie[et]=Ie[$e]:delete Ie[et];for(Ue=0;Ue<je;Ue++)Ie[Ue+Fe]=arguments[Ue+2];return Ie.length=Le-ze+je,_e}})},{"../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,Ze,Ne){var ge=oe("../internals/descriptors"),ce=oe("../internals/function-name").EXISTS,Pe=oe("../internals/function-uncurry-this"),Ae=oe("../internals/object-define-property").f,ye=Function.prototype,De=Pe(ye.toString),me=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,we=Pe(me.exec),fe="name";ge&&!ce&&Ae(ye,fe,{configurable:!0,get:function(){try{return we(me,De(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,Ze,Ne){var ge=oe("../internals/export"),ce=oe("../internals/get-built-in"),Pe=oe("../internals/function-apply"),Ae=oe("../internals/function-call"),ye=oe("../internals/function-uncurry-this"),De=oe("../internals/fails"),me=oe("../internals/is-array"),we=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),Ee=ye("".replace),be=ye(1 .toString),Ie=/[\uD800-\uDFFF]/g,Le=/^[\uD800-\uDBFF]$/,Fe=/^[\uDC00-\uDFFF]$/,Oe=!ae||De(function(){var Ue=ce("Symbol")();return re([Ue])!="[null]"||re({a:Ue})!="{}"||re(Object(Ue))!="{}"}),je=De(function(){return re("\uDF06\uD834")!=='"\\udf06\\ud834"'||re("\uDEAD")!=='"\\udead"'}),ze=function(Ue,$e){var et=ee(arguments),lt=$e;if(!(!fe($e)&&Ue===void 0||z(Ue)))return me($e)||($e=function(ut,yt){if(we(lt)&&(yt=Ae(lt,this,ut,yt)),!z(yt))return yt}),et[1]=$e,Pe(re,null,et)},_e=function(Ue,$e,et){var lt=ue(et,$e-1),ut=ue(et,$e+1);return le(Le,Ue)&&!le(Fe,ut)||le(Fe,Ue)&&!le(Le,lt)?"\\u"+be(pe(Ue,0),16):Ue};re&&ge({target:"JSON",stat:!0,forced:Oe||je},{stringify:function($e,et,lt){var ut=ee(arguments),yt=Pe(Oe?ze:re,null,ut);return je&&typeof yt=="string"?Ee(yt,Ie,_e):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,Ze,Ne){"use strict";var ge=oe("../internals/descriptors"),ce=oe("../internals/global"),Pe=oe("../internals/function-uncurry-this"),Ae=oe("../internals/is-forced"),ye=oe("../internals/redefine"),De=oe("../internals/has-own-property"),me=oe("../internals/inherit-if-required"),we=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,Ee="Number",be=ce[Ee],Ie=be.prototype,Le=ce.TypeError,Fe=Pe("".slice),Oe=Pe("".charCodeAt),je=function(lt){var ut=z(lt,"number");return typeof ut=="bigint"?ut:ze(ut)},ze=function(lt){var ut=z(lt,"number"),yt,qe,ot,dt,St,xt,ft,gt;if(fe(ut))throw Le("Cannot convert a Symbol value to a number");if(typeof ut=="string"&&ut.length>2){if(ut=pe(ut),yt=Oe(ut,0),yt===43||yt===45){if(qe=Oe(ut,2),qe===88||qe===120)return NaN}else if(yt===48){switch(Oe(ut,1)){case 66:case 98:ot=2,dt=49;break;case 79:case 111:ot=8,dt=55;break;default:return+ut}for(St=Fe(ut,2),xt=St.length,ft=0;ft<xt;ft++)if(gt=Oe(St,ft),gt<48||gt>dt)return NaN;return parseInt(St,ot)}}return+ut};if(Ae(Ee,!be(" 0o1")||!be("0b1")||be("+0x1"))){for(var _e=function(ut){var yt=arguments.length<1?0:be(je(ut)),qe=this;return we(Ie,qe)&&ee(function(){ue(qe)})?me(Object(yt),qe,_e):yt},Ue=ge?ae(be):"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,et;Ue.length>$e;$e++)De(be,et=Ue[$e])&&!De(_e,et)&&le(_e,et,re(be,et));_e.prototype=Ie,Ie.constructor=_e,ye(ce,Ee,_e)}},{"../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,Ze,Ne){var ge=oe("../internals/export"),ce=oe("../internals/object-assign");ge({target:"Object",stat:!0,forced:Object.assign!==ce},{assign:ce})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(oe,Ze,Ne){var ge=oe("../internals/export"),ce=oe("../internals/object-to-array").entries;ge({target:"Object",stat:!0},{entries:function(Ae){return ce(Ae)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(oe,Ze,Ne){var ge=oe("../internals/export"),ce=oe("../internals/native-symbol"),Pe=oe("../internals/fails"),Ae=oe("../internals/object-get-own-property-symbols"),ye=oe("../internals/to-object"),De=!ce||Pe(function(){Ae.f(1)});ge({target:"Object",stat:!0,forced:De},{getOwnPropertySymbols:function(we){var fe=Ae.f;return fe?fe(ye(we)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(oe,Ze,Ne){var ge=oe("../internals/export"),ce=oe("../internals/to-object"),Pe=oe("../internals/object-keys"),Ae=oe("../internals/fails"),ye=Ae(function(){Pe(1)});ge({target:"Object",stat:!0,forced:ye},{keys:function(me){return Pe(ce(me))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(oe,Ze,Ne){var ge=oe("../internals/to-string-tag-support"),ce=oe("../internals/redefine"),Pe=oe("../internals/object-to-string");ge||ce(Object.prototype,"toString",Pe,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/function-call"),Pe=oe("../internals/a-callable"),Ae=oe("../internals/new-promise-capability"),ye=oe("../internals/perform"),De=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ge({target:"Promise",stat:!0,forced:me},{all:function(fe){var z=this,ee=Ae.f(z),ae=ee.resolve,re=ee.reject,le=ye(function(){var ue=Pe(z.resolve),pe=[],Ee=0,be=1;De(fe,function(Ie){var Le=Ee++,Fe=!1;be++,ce(ue,z,Ie).then(function(Oe){Fe||(Fe=!0,pe[Le]=Oe,--be||ae(pe))},re)}),--be||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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/is-pure"),Pe=oe("../internals/promise-constructor-detection").CONSTRUCTOR,Ae=oe("../internals/promise-native-constructor"),ye=oe("../internals/get-built-in"),De=oe("../internals/is-callable"),me=oe("../internals/redefine"),we=Ae&&Ae.prototype;if(ge({target:"Promise",proto:!0,forced:Pe,real:!0},{catch:function(z){return this.then(void 0,z)}}),!ce&&De(Ae)){var fe=ye("Promise").prototype.catch;we.catch!==fe&&me(we,"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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/is-pure"),Pe=oe("../internals/engine-is-node"),Ae=oe("../internals/global"),ye=oe("../internals/function-call"),De=oe("../internals/redefine"),me=oe("../internals/redefine-all"),we=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,Ee=oe("../internals/microtask"),be=oe("../internals/host-report-errors"),Ie=oe("../internals/perform"),Le=oe("../internals/queue"),Fe=oe("../internals/internal-state"),Oe=oe("../internals/promise-native-constructor"),je=oe("../internals/promise-constructor-detection"),ze=oe("../internals/new-promise-capability"),_e="Promise",Ue=je.CONSTRUCTOR,$e=je.REJECTION_EVENT,et=je.SUBCLASSING,lt=Fe.getterFor(_e),ut=Fe.set,yt=Oe&&Oe.prototype,qe=Oe,ot=yt,dt=Ae.TypeError,St=Ae.document,xt=Ae.process,ft=ze.f,gt=ft,vt=!!(St&&St.createEvent&&Ae.dispatchEvent),Tt="unhandledrejection",Et="rejectionhandled",Zt=0,wt=1,bt=2,it=1,nt=2,xe,Ce,Ye,Je,Me=function(jt){var Rt;return re(jt)&&ae(Rt=jt.then)?Rt:!1},Ge=function(jt,Rt){var Xt=Rt.value,sn=Rt.state==wt,Ft=sn?jt.ok:jt.fail,Qt=jt.resolve,en=jt.reject,on=jt.domain,Cn,Bn,tr;try{Ft?(sn||(Rt.rejection===nt&&At(Rt),Rt.rejection=it),Ft===!0?Cn=Xt:(on&&on.enter(),Cn=Ft(Xt),on&&(on.exit(),tr=!0)),Cn===jt.promise?en(dt("Promise-chain cycle")):(Bn=Me(Cn))?ye(Bn,Cn,Qt,en):Qt(Cn)):en(Xt)}catch(er){on&&!tr&&on.exit(),en(er)}},Ke=function(jt,Rt){jt.notified||(jt.notified=!0,Ee(function(){for(var Xt=jt.reactions,sn;sn=Xt.get();)Ge(sn,jt);jt.notified=!1,Rt&&!jt.rejection&&Qe(jt)}))},Ve=function(jt,Rt,Xt){var sn,Ft;vt?(sn=St.createEvent("Event"),sn.promise=Rt,sn.reason=Xt,sn.initEvent(jt,!1,!0),Ae.dispatchEvent(sn)):sn={promise:Rt,reason:Xt},!$e&&(Ft=Ae["on"+jt])?Ft(sn):jt===Tt&&be("Unhandled promise rejection",Xt)},Qe=function(jt){ye(pe,Ae,function(){var Rt=jt.facade,Xt=jt.value,sn=ht(jt),Ft;if(sn&&(Ft=Ie(function(){Pe?xt.emit("unhandledRejection",Xt,Rt):Ve(Tt,Rt,Xt)}),jt.rejection=Pe||ht(jt)?nt:it,Ft.error))throw Ft.value})},ht=function(jt){return jt.rejection!==it&&!jt.parent},At=function(jt){ye(pe,Ae,function(){var Rt=jt.facade;Pe?xt.emit("rejectionHandled",Rt):Ve(Et,Rt,jt.value)})},pt=function(jt,Rt,Xt){return function(sn){jt(Rt,sn,Xt)}},Ot=function(jt,Rt,Xt){jt.done||(jt.done=!0,Xt&&(jt=Xt),jt.value=Rt,jt.state=bt,Ke(jt,!0))},Kt=function(jt,Rt,Xt){if(!jt.done){jt.done=!0,Xt&&(jt=Xt);try{if(jt.facade===Rt)throw dt("Promise can't be resolved itself");var sn=Me(Rt);sn?Ee(function(){var Ft={done:!1};try{ye(sn,Rt,pt(Kt,Ft,jt),pt(Ot,Ft,jt))}catch(Qt){Ot(Ft,Qt,jt)}}):(jt.value=Rt,jt.state=wt,Ke(jt,!1))}catch(Ft){Ot({done:!1},Ft,jt)}}};if(Ue&&(qe=function(Rt){le(this,ot),ee(Rt),ye(xe,this);var Xt=lt(this);try{Rt(pt(Kt,Xt),pt(Ot,Xt))}catch(sn){Ot(Xt,sn)}},ot=qe.prototype,xe=function(Rt){ut(this,{type:_e,done:!1,notified:!1,parent:!1,reactions:new Le,rejection:!1,state:Zt,value:void 0})},xe.prototype=me(ot,{then:function(Rt,Xt){var sn=lt(this),Ft=ft(ue(this,qe));return sn.parent=!0,Ft.ok=ae(Rt)?Rt:!0,Ft.fail=ae(Xt)&&Xt,Ft.domain=Pe?xt.domain:void 0,sn.state==Zt?sn.reactions.add(Ft):Ee(function(){Ge(Ft,sn)}),Ft.promise}}),Ce=function(){var jt=new xe,Rt=lt(jt);this.promise=jt,this.resolve=pt(Kt,Rt),this.reject=pt(Ot,Rt)},ze.f=ft=function(jt){return jt===qe||jt===Ye?new Ce(jt):gt(jt)},!ce&&ae(Oe)&&yt!==Object.prototype)){Je=yt.then,et||De(yt,"then",function(Rt,Xt){var sn=this;return new qe(function(Ft,Qt){ye(Je,sn,Ft,Qt)}).then(Rt,Xt)},{unsafe:!0});try{delete yt.constructor}catch(jt){}we&&we(yt,ot)}ge({global:!0,wrap:!0,forced:Ue},{Promise:qe}),fe(qe,_e,!1,!0),z(_e)},{"../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,Ze,Ne){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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/function-call"),Pe=oe("../internals/a-callable"),Ae=oe("../internals/new-promise-capability"),ye=oe("../internals/perform"),De=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ge({target:"Promise",stat:!0,forced:me},{race:function(fe){var z=this,ee=Ae.f(z),ae=ee.reject,re=ye(function(){var le=Pe(z.resolve);De(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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/function-call"),Pe=oe("../internals/new-promise-capability"),Ae=oe("../internals/promise-constructor-detection").CONSTRUCTOR;ge({target:"Promise",stat:!0,forced:Ae},{reject:function(De){var me=Pe.f(this);return ce(me.reject,void 0,De),me.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/get-built-in"),Pe=oe("../internals/is-pure"),Ae=oe("../internals/promise-native-constructor"),ye=oe("../internals/promise-constructor-detection").CONSTRUCTOR,De=oe("../internals/promise-resolve"),me=ce("Promise"),we=Pe&&!ye;ge({target:"Promise",stat:!0,forced:Pe||ye},{resolve:function(z){return De(we&&this===me?Ae: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,Ze,Ne){var ge=oe("../internals/descriptors"),ce=oe("../internals/global"),Pe=oe("../internals/function-uncurry-this"),Ae=oe("../internals/is-forced"),ye=oe("../internals/inherit-if-required"),De=oe("../internals/create-non-enumerable-property"),me=oe("../internals/object-get-own-property-names").f,we=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"),Ee=oe("../internals/internal-state").enforce,be=oe("../internals/set-species"),Ie=oe("../internals/well-known-symbol"),Le=oe("../internals/regexp-unsupported-dot-all"),Fe=oe("../internals/regexp-unsupported-ncg"),Oe=Ie("match"),je=ce.RegExp,ze=je.prototype,_e=ce.SyntaxError,Ue=Pe(ze.exec),$e=Pe("".charAt),et=Pe("".replace),lt=Pe("".indexOf),ut=Pe("".slice),yt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,qe=/a/g,ot=/a/g,dt=new je(qe)!==qe,St=ae.MISSED_STICKY,xt=ae.UNSUPPORTED_Y,ft=ge&&(!dt||St||Le||Fe||ue(function(){return ot[Oe]=!1,je(qe)!=qe||je(ot)==ot||je(qe,"i")!="/a/i"})),gt=function(wt){for(var bt=wt.length,it=0,nt="",xe=!1,Ce;it<=bt;it++){if(Ce=$e(wt,it),Ce==="\\"){nt+=Ce+$e(wt,++it);continue}!xe&&Ce==="."?nt+="[\\s\\S]":(Ce==="["?xe=!0:Ce==="]"&&(xe=!1),nt+=Ce)}return nt},vt=function(wt){for(var bt=wt.length,it=0,nt="",xe=[],Ce={},Ye=!1,Je=!1,Me=0,Ge="",Ke;it<=bt;it++){if(Ke=$e(wt,it),Ke==="\\")Ke=Ke+$e(wt,++it);else if(Ke==="]")Ye=!1;else if(!Ye)switch(!0){case Ke==="[":Ye=!0;break;case Ke==="(":Ue(yt,ut(wt,it+1))&&(it+=2,Je=!0),nt+=Ke,Me++;continue;case(Ke===">"&&Je):if(Ge===""||pe(Ce,Ge))throw new _e("Invalid capture group name");Ce[Ge]=!0,xe[xe.length]=[Ge,Me],Je=!1,Ge="";continue}Je?Ge+=Ke:nt+=Ke}return[nt,xe]};if(Ae("RegExp",ft)){for(var Tt=function(bt,it){var nt=we(ze,this),xe=fe(bt),Ce=it===void 0,Ye=[],Je=bt,Me,Ge,Ke,Ve,Qe,ht;if(!nt&&xe&&Ce&&bt.constructor===Tt)return bt;if((xe||we(ze,bt))&&(bt=bt.source,Ce&&(it=ee(Je))),bt=bt===void 0?"":z(bt),it=it===void 0?"":z(it),Je=bt,Le&&"dotAll"in qe&&(Ge=!!it&<(it,"s")>-1,Ge&&(it=et(it,/s/g,""))),Me=it,St&&"sticky"in qe&&(Ke=!!it&<(it,"y")>-1,Ke&&xt&&(it=et(it,/y/g,""))),Fe&&(Ve=vt(bt),bt=Ve[0],Ye=Ve[1]),Qe=ye(je(bt,it),nt?this:ze,Tt),(Ge||Ke||Ye.length)&&(ht=Ee(Qe),Ge&&(ht.dotAll=!0,ht.raw=Tt(gt(bt),Me)),Ke&&(ht.sticky=!0),Ye.length&&(ht.groups=Ye)),bt!==Je)try{De(Qe,"source",Je===""?"(?:)":Je)}catch(At){}return Qe},Et=me(je),Zt=0;Et.length>Zt;)re(Tt,je,Et[Zt++]);ze.constructor=Tt,Tt.prototype=ze,le(ce,"RegExp",Tt)}be("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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/regexp-exec");ge({target:"RegExp",proto:!0,forced:/./.exec!==ce},{exec:ce})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/function-name").PROPER,ce=oe("../internals/redefine"),Pe=oe("../internals/an-object"),Ae=oe("../internals/to-string"),ye=oe("../internals/fails"),De=oe("../internals/regexp-get-flags"),me="toString",we=RegExp.prototype,fe=we[me],z=ye(function(){return fe.call({source:"a",flags:"b"})!="/a/b"}),ee=ge&&fe.name!=me;(z||ee)&&ce(RegExp.prototype,me,function(){var re=Pe(this),le=Ae(re.source),ue=Ae(De(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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/not-a-regexp"),Ae=oe("../internals/require-object-coercible"),ye=oe("../internals/to-string"),De=oe("../internals/correct-is-regexp-logic"),me=ce("".indexOf);ge({target:"String",proto:!0,forced:!De("includes")},{includes:function(fe){return!!~me(ye(Ae(this)),ye(Pe(fe)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/string-multibyte").charAt,ce=oe("../internals/to-string"),Pe=oe("../internals/internal-state"),Ae=oe("../internals/define-iterator"),ye="String Iterator",De=Pe.set,me=Pe.getterFor(ye);Ae(String,"String",function(we){De(this,{type:ye,string:ce(we),index:0})},function(){var fe=me(this),z=fe.string,ee=fe.index,ae;return ee>=z.length?{value:void 0,done:!0}:(ae=ge(z,ee),fe.index+=ae.length,{value:ae,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/function-call"),ce=oe("../internals/fix-regexp-well-known-symbol-logic"),Pe=oe("../internals/an-object"),Ae=oe("../internals/to-length"),ye=oe("../internals/to-string"),De=oe("../internals/require-object-coercible"),me=oe("../internals/get-method"),we=oe("../internals/advance-string-index"),fe=oe("../internals/regexp-exec-abstract");ce("match",function(z,ee,ae){return[function(le){var ue=De(this),pe=le==null?void 0:me(le,z);return pe?ge(pe,le,ue):new RegExp(le)[z](ye(ue))},function(re){var le=Pe(this),ue=ye(re),pe=ae(ee,le,ue);if(pe.done)return pe.value;if(!le.global)return fe(le,ue);var Ee=le.unicode;le.lastIndex=0;for(var be=[],Ie=0,Le;(Le=fe(le,ue))!==null;){var Fe=ye(Le[0]);be[Ie]=Fe,Fe===""&&(le.lastIndex=we(ue,Ae(le.lastIndex),Ee)),Ie++}return Ie===0?null:be}]})},{"../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,Ze,Ne){"use strict";var ge=oe("../internals/function-apply"),ce=oe("../internals/function-call"),Pe=oe("../internals/function-uncurry-this"),Ae=oe("../internals/fix-regexp-well-known-symbol-logic"),ye=oe("../internals/fails"),De=oe("../internals/an-object"),me=oe("../internals/is-callable"),we=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"),Ee=pe("replace"),be=Math.max,Ie=Math.min,Le=Pe([].concat),Fe=Pe([].push),Oe=Pe("".indexOf),je=Pe("".slice),ze=function(et){return et===void 0?et:String(et)},_e=function(){return"a".replace(/./,"$0")==="$0"}(),Ue=function(){return/./[Ee]?/./[Ee]("a","$0")==="":!1}(),$e=!ye(function(){var et=/./;return et.exec=function(){var lt=[];return lt.groups={a:"7"},lt},"".replace(et,"$<a>")!=="7"});Ae("replace",function(et,lt,ut){var yt=Ue?"$":"$0";return[function(ot,dt){var St=ee(this),xt=ot==null?void 0:re(ot,Ee);return xt?ce(xt,ot,St,dt):ce(lt,z(St),ot,dt)},function(qe,ot){var dt=De(this),St=z(qe);if(typeof ot=="string"&&Oe(ot,yt)===-1&&Oe(ot,"$<")===-1){var xt=ut(lt,dt,St,ot);if(xt.done)return xt.value}var ft=me(ot);ft||(ot=z(ot));var gt=dt.global;if(gt){var vt=dt.unicode;dt.lastIndex=0}for(var Tt=[];;){var Et=ue(dt,St);if(Et===null||(Fe(Tt,Et),!gt))break;var Zt=z(Et[0]);Zt===""&&(dt.lastIndex=ae(St,fe(dt.lastIndex),vt))}for(var wt="",bt=0,it=0;it<Tt.length;it++){Et=Tt[it];for(var nt=z(Et[0]),xe=be(Ie(we(Et.index),St.length),0),Ce=[],Ye=1;Ye<Et.length;Ye++)Fe(Ce,ze(Et[Ye]));var Je=Et.groups;if(ft){var Me=Le([nt],Ce,xe,St);Je!==void 0&&Fe(Me,Je);var Ge=z(ge(ot,void 0,Me))}else Ge=le(nt,St,xe,Ce,Je,ot);xe>=bt&&(wt+=je(St,bt,xe)+Ge,bt=xe+nt.length)}return wt+je(St,bt)}]},!$e||!_e||Ue)},{"../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,Ze,Ne){"use strict";var ge=oe("../internals/function-call"),ce=oe("../internals/fix-regexp-well-known-symbol-logic"),Pe=oe("../internals/an-object"),Ae=oe("../internals/require-object-coercible"),ye=oe("../internals/same-value"),De=oe("../internals/to-string"),me=oe("../internals/get-method"),we=oe("../internals/regexp-exec-abstract");ce("search",function(fe,z,ee){return[function(re){var le=Ae(this),ue=re==null?void 0:me(re,fe);return ue?ge(ue,re,le):new RegExp(re)[fe](De(le))},function(ae){var re=Pe(this),le=De(ae),ue=ee(z,re,le);if(ue.done)return ue.value;var pe=re.lastIndex;ye(pe,0)||(re.lastIndex=0);var Ee=we(re,le);return ye(re.lastIndex,pe)||(re.lastIndex=pe),Ee===null?-1:Ee.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,Ze,Ne){"use strict";var ge=oe("../internals/function-apply"),ce=oe("../internals/function-call"),Pe=oe("../internals/function-uncurry-this"),Ae=oe("../internals/fix-regexp-well-known-symbol-logic"),ye=oe("../internals/is-regexp"),De=oe("../internals/an-object"),me=oe("../internals/require-object-coercible"),we=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"),Ee=oe("../internals/fails"),be=pe.UNSUPPORTED_Y,Ie=4294967295,Le=Math.min,Fe=[].push,Oe=Pe(/./.exec),je=Pe(Fe),ze=Pe("".slice),_e=!Ee(function(){var Ue=/(?:)/,$e=Ue.exec;Ue.exec=function(){return $e.apply(this,arguments)};var et="ab".split(Ue);return et.length!==2||et[0]!=="a"||et[1]!=="b"});Ae("split",function(Ue,$e,et){var lt;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?lt=function(ut,yt){var qe=ee(me(this)),ot=yt===void 0?Ie:yt>>>0;if(ot===0)return[];if(ut===void 0)return[qe];if(!ye(ut))return ce($e,qe,ut,ot);for(var dt=[],St=(ut.ignoreCase?"i":"")+(ut.multiline?"m":"")+(ut.unicode?"u":"")+(ut.sticky?"y":""),xt=0,ft=new RegExp(ut.source,St+"g"),gt,vt,Tt;(gt=ce(ue,ft,qe))&&(vt=ft.lastIndex,!(vt>xt&&(je(dt,ze(qe,xt,gt.index)),gt.length>1&>.index<qe.length&&ge(Fe,dt,re(gt,1)),Tt=gt[0].length,xt=vt,dt.length>=ot)));)ft.lastIndex===gt.index&&ft.lastIndex++;return xt===qe.length?(Tt||!Oe(ft,""))&&je(dt,""):je(dt,ze(qe,xt)),dt.length>ot?re(dt,0,ot):dt}:"0".split(void 0,0).length?lt=function(ut,yt){return ut===void 0&&yt===0?[]:ce($e,this,ut,yt)}:lt=$e,[function(yt,qe){var ot=me(this),dt=yt==null?void 0:ae(yt,Ue);return dt?ce(dt,yt,ot,qe):ce(lt,ee(ot),yt,qe)},function(ut,yt){var qe=De(this),ot=ee(ut),dt=et(lt,qe,ot,yt,lt!==$e);if(dt.done)return dt.value;var St=we(qe,RegExp),xt=qe.unicode,ft=(qe.ignoreCase?"i":"")+(qe.multiline?"m":"")+(qe.unicode?"u":"")+(be?"g":"y"),gt=new St(be?"^(?:"+qe.source+")":qe,ft),vt=yt===void 0?Ie:yt>>>0;if(vt===0)return[];if(ot.length===0)return le(gt,ot)===null?[ot]:[];for(var Tt=0,Et=0,Zt=[];Et<ot.length;){gt.lastIndex=be?0:Et;var wt=le(gt,be?ze(ot,Et):ot),bt;if(wt===null||(bt=Le(z(gt.lastIndex+(be?Et:0)),ot.length))===Tt)Et=fe(ot,Et,xt);else{if(je(Zt,ze(ot,Tt,Et)),Zt.length===vt)return Zt;for(var it=1;it<=wt.length-1;it++)if(je(Zt,wt[it]),Zt.length===vt)return Zt;Et=Tt=bt}}return je(Zt,ze(ot,Tt)),Zt}]},!_e,be)},{"../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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/string-trim").trim,Pe=oe("../internals/string-trim-forced");ge({target:"String",proto:!0,forced:Pe("trim")},{trim:function(){return ce(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/global"),Pe=oe("../internals/function-call"),Ae=oe("../internals/function-uncurry-this"),ye=oe("../internals/is-pure"),De=oe("../internals/descriptors"),me=oe("../internals/native-symbol"),we=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"),Ee=oe("../internals/object-keys"),be=oe("../internals/object-get-own-property-names"),Ie=oe("../internals/object-get-own-property-names-external"),Le=oe("../internals/object-get-own-property-symbols"),Fe=oe("../internals/object-get-own-property-descriptor"),Oe=oe("../internals/object-define-property"),je=oe("../internals/object-define-properties"),ze=oe("../internals/object-property-is-enumerable"),_e=oe("../internals/redefine"),Ue=oe("../internals/shared"),$e=oe("../internals/shared-key"),et=oe("../internals/hidden-keys"),lt=oe("../internals/uid"),ut=oe("../internals/well-known-symbol"),yt=oe("../internals/well-known-symbol-wrapped"),qe=oe("../internals/define-well-known-symbol"),ot=oe("../internals/symbol-define-to-primitive"),dt=oe("../internals/set-to-string-tag"),St=oe("../internals/internal-state"),xt=oe("../internals/array-iteration").forEach,ft=$e("hidden"),gt="Symbol",vt="prototype",Tt=St.set,Et=St.getterFor(gt),Zt=Object[vt],wt=ce.Symbol,bt=wt&&wt[vt],it=ce.TypeError,nt=ce.QObject,xe=Fe.f,Ce=Oe.f,Ye=Ie.f,Je=ze.f,Me=Ae([].push),Ge=Ue("symbols"),Ke=Ue("op-symbols"),Ve=Ue("wks"),Qe=!nt||!nt[vt]||!nt[vt].findChild,ht=De&&we(function(){return pe(Ce({},"a",{get:function(){return Ce(this,"a",{value:7}).a}})).a!=7})?function(Ft,Qt,en){var on=xe(Zt,Qt);on&&delete Zt[Qt],Ce(Ft,Qt,en),on&&Ft!==Zt&&Ce(Zt,Qt,on)}:Ce,At=function(Ft,Qt){var en=Ge[Ft]=pe(bt);return Tt(en,{type:gt,tag:Ft,description:Qt}),De||(en.description=Qt),en},pt=function(Qt,en,on){Qt===Zt&&pt(Ke,en,on),ee(Qt);var Cn=re(en);return ee(on),fe(Ge,Cn)?(on.enumerable?(fe(Qt,ft)&&Qt[ft][Cn]&&(Qt[ft][Cn]=!1),on=pe(on,{enumerable:ue(0,!1)})):(fe(Qt,ft)||Ce(Qt,ft,ue(1,{})),Qt[ft][Cn]=!0),ht(Qt,Cn,on)):Ce(Qt,Cn,on)},Ot=function(Qt,en){ee(Qt);var on=ae(en),Cn=Ee(on).concat(sn(on));return xt(Cn,function(Bn){(!De||Pe(jt,on,Bn))&&pt(Qt,Bn,on[Bn])}),Qt},Kt=function(Qt,en){return en===void 0?pe(Qt):Ot(pe(Qt),en)},jt=function(Qt){var en=re(Qt),on=Pe(Je,this,en);return this===Zt&&fe(Ge,en)&&!fe(Ke,en)?!1:on||!fe(this,en)||!fe(Ge,en)||fe(this,ft)&&this[ft][en]?on:!0},Rt=function(Qt,en){var on=ae(Qt),Cn=re(en);if(!(on===Zt&&fe(Ge,Cn)&&!fe(Ke,Cn))){var Bn=xe(on,Cn);return Bn&&fe(Ge,Cn)&&!(fe(on,ft)&&on[ft][Cn])&&(Bn.enumerable=!0),Bn}},Xt=function(Qt){var en=Ye(ae(Qt)),on=[];return xt(en,function(Cn){!fe(Ge,Cn)&&!fe(et,Cn)&&Me(on,Cn)}),on},sn=function(Ft){var Qt=Ft===Zt,en=Ye(Qt?Ke:ae(Ft)),on=[];return xt(en,function(Cn){fe(Ge,Cn)&&(!Qt||fe(Zt,Cn))&&Me(on,Ge[Cn])}),on};me||(wt=function(){if(z(bt,this))throw it("Symbol is not a constructor");var Qt=!arguments.length||arguments[0]===void 0?void 0:le(arguments[0]),en=lt(Qt),on=function(Cn){this===Zt&&Pe(on,Ke,Cn),fe(this,ft)&&fe(this[ft],en)&&(this[ft][en]=!1),ht(this,en,ue(1,Cn))};return De&&Qe&&ht(Zt,en,{configurable:!0,set:on}),At(en,Qt)},bt=wt[vt],_e(bt,"toString",function(){return Et(this).tag}),_e(wt,"withoutSetter",function(Ft){return At(lt(Ft),Ft)}),ze.f=jt,Oe.f=pt,je.f=Ot,Fe.f=Rt,be.f=Ie.f=Xt,Le.f=sn,yt.f=function(Ft){return At(ut(Ft),Ft)},De&&(Ce(bt,"description",{configurable:!0,get:function(){return Et(this).description}}),ye||_e(Zt,"propertyIsEnumerable",jt,{unsafe:!0}))),ge({global:!0,wrap:!0,forced:!me,sham:!me},{Symbol:wt}),xt(Ee(Ve),function(Ft){qe(Ft)}),ge({target:gt,stat:!0,forced:!me},{useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),ge({target:"Object",stat:!0,forced:!me,sham:!De},{create:Kt,defineProperty:pt,defineProperties:Ot,getOwnPropertyDescriptor:Rt}),ge({target:"Object",stat:!0,forced:!me},{getOwnPropertyNames:Xt}),ot(),dt(wt,gt),et[ft]=!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,Ze,Ne){"use strict";var ge=oe("../internals/export"),ce=oe("../internals/descriptors"),Pe=oe("../internals/global"),Ae=oe("../internals/function-uncurry-this"),ye=oe("../internals/has-own-property"),De=oe("../internals/is-callable"),me=oe("../internals/object-is-prototype-of"),we=oe("../internals/to-string"),fe=oe("../internals/object-define-property").f,z=oe("../internals/copy-constructor-properties"),ee=Pe.Symbol,ae=ee&&ee.prototype;if(ce&&De(ee)&&(!("description"in ae)||ee().description!==void 0)){var re={},le=function(){var Oe=arguments.length<1||arguments[0]===void 0?void 0:we(arguments[0]),je=me(ae,this)?new ee(Oe):Oe===void 0?ee():ee(Oe);return Oe===""&&(re[je]=!0),je};z(le,ee),le.prototype=ae,ae.constructor=le;var ue=String(ee("test"))=="Symbol(test)",pe=Ae(ae.toString),Ee=Ae(ae.valueOf),be=/^Symbol\((.*)\)[^)]+$/,Ie=Ae("".replace),Le=Ae("".slice);fe(ae,"description",{configurable:!0,get:function(){var Oe=Ee(this),je=pe(Oe);if(ye(re,Oe))return"";var ze=ue?Le(je,7,-1):Ie(je,be,"$1");return ze===""?void 0:ze}}),ge({global:!0,forced:!0},{Symbol:le})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(oe,Ze,Ne){var ge=oe("../internals/export"),ce=oe("../internals/get-built-in"),Pe=oe("../internals/has-own-property"),Ae=oe("../internals/to-string"),ye=oe("../internals/shared"),De=oe("../internals/native-symbol-registry"),me=ye("string-to-symbol-registry"),we=ye("symbol-to-string-registry");ge({target:"Symbol",stat:!0,forced:!De},{for:function(fe){var z=Ae(fe);if(Pe(me,z))return me[z];var ee=ce("Symbol")(z);return me[z]=ee,we[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,Ze,Ne){var ge=oe("../internals/define-well-known-symbol");ge("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(oe,Ze,Ne){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,Ze,Ne){var ge=oe("../internals/export"),ce=oe("../internals/has-own-property"),Pe=oe("../internals/is-symbol"),Ae=oe("../internals/try-to-string"),ye=oe("../internals/shared"),De=oe("../internals/native-symbol-registry"),me=ye("symbol-to-string-registry");ge({target:"Symbol",stat:!0,forced:!De},{keyFor:function(fe){if(!Pe(fe))throw TypeError(Ae(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,Ze,Ne){"use strict";var ge=oe("../internals/function-uncurry-this"),ce=oe("../internals/array-buffer-view-core"),Pe=oe("../internals/array-copy-within"),Ae=ge(Pe),ye=ce.aTypedArray,De=ce.exportTypedArrayMethod;De("copyWithin",function(we,fe){return Ae(ye(this),we,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,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").every,Pe=ge.aTypedArray,Ae=ge.exportTypedArrayMethod;Ae("every",function(De){return ce(Pe(this),De,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-call"),Pe=oe("../internals/array-fill"),Ae=ge.aTypedArray,ye=ge.exportTypedArrayMethod;ye("fill",function(me){var we=arguments.length;return ce(Pe,Ae(this),me,we>1?arguments[1]:void 0,we>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").filter,Pe=oe("../internals/typed-array-from-species-and-list"),Ae=ge.aTypedArray,ye=ge.exportTypedArrayMethod;ye("filter",function(me){var we=ce(Ae(this),me,arguments.length>1?arguments[1]:void 0);return Pe(this,we)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").findIndex,Pe=ge.aTypedArray,Ae=ge.exportTypedArrayMethod;Ae("findIndex",function(De){return ce(Pe(this),De,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").find,Pe=ge.aTypedArray,Ae=ge.exportTypedArrayMethod;Ae("find",function(De){return ce(Pe(this),De,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").forEach,Pe=ge.aTypedArray,Ae=ge.exportTypedArrayMethod;Ae("forEach",function(De){ce(Pe(this),De,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-includes").includes,Pe=ge.aTypedArray,Ae=ge.exportTypedArrayMethod;Ae("includes",function(De){return ce(Pe(this),De,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-includes").indexOf,Pe=ge.aTypedArray,Ae=ge.exportTypedArrayMethod;Ae("indexOf",function(De){return ce(Pe(this),De,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/global"),ce=oe("../internals/fails"),Pe=oe("../internals/function-uncurry-this"),Ae=oe("../internals/array-buffer-view-core"),ye=oe("../modules/es.array.iterator"),De=oe("../internals/well-known-symbol"),me=De("iterator"),we=ge.Uint8Array,fe=Pe(ye.values),z=Pe(ye.keys),ee=Pe(ye.entries),ae=Ae.aTypedArray,re=Ae.exportTypedArrayMethod,le=we&&we.prototype,ue=!ce(function(){le[me].call([1])}),pe=!!le&&le.values&&le[me]===le.values&&le.values.name==="values",Ee=function(){return fe(ae(this))};re("entries",function(){return ee(ae(this))},ue),re("keys",function(){return z(ae(this))},ue),re("values",Ee,ue||!pe,{name:"values"}),re(me,Ee,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,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-uncurry-this"),Pe=ge.aTypedArray,Ae=ge.exportTypedArrayMethod,ye=ce([].join);Ae("join",function(me){return ye(Pe(this),me)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-apply"),Pe=oe("../internals/array-last-index-of"),Ae=ge.aTypedArray,ye=ge.exportTypedArrayMethod;ye("lastIndexOf",function(me){var we=arguments.length;return ce(Pe,Ae(this),we>1?[me,arguments[1]]:[me])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").map,Pe=oe("../internals/typed-array-species-constructor"),Ae=ge.aTypedArray,ye=ge.exportTypedArrayMethod;ye("map",function(me){return ce(Ae(this),me,arguments.length>1?arguments[1]:void 0,function(we,fe){return new(Pe(we))(fe)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-reduce").right,Pe=ge.aTypedArray,Ae=ge.exportTypedArrayMethod;Ae("reduceRight",function(De){var me=arguments.length;return ce(Pe(this),De,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-reduce").left,Pe=ge.aTypedArray,Ae=ge.exportTypedArrayMethod;Ae("reduce",function(De){var me=arguments.length;return ce(Pe(this),De,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=ge.aTypedArray,Pe=ge.exportTypedArrayMethod,Ae=Math.floor;Pe("reverse",function(){for(var De=this,me=ce(De).length,we=Ae(me/2),fe=0,z;fe<we;)z=De[fe],De[fe++]=De[--me],De[me]=z;return De})},{"../internals/array-buffer-view-core":103}],331:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/global"),ce=oe("../internals/function-call"),Pe=oe("../internals/array-buffer-view-core"),Ae=oe("../internals/length-of-array-like"),ye=oe("../internals/to-offset"),De=oe("../internals/to-object"),me=oe("../internals/fails"),we=ge.RangeError,fe=ge.Int8Array,z=fe&&fe.prototype,ee=z&&z.set,ae=Pe.aTypedArray,re=Pe.exportTypedArrayMethod,le=!me(function(){var pe=new Uint8ClampedArray(2);return ce(ee,pe,{length:1,0:3},1),pe[1]!==3}),ue=le&&Pe.NATIVE_ARRAY_BUFFER_VIEWS&&me(function(){var pe=new fe(2);return pe.set(1),pe.set("2",1),pe[0]!==0||pe[1]!==2});re("set",function(Ee){ae(this);var be=ye(arguments.length>1?arguments[1]:void 0,1),Ie=De(Ee);if(le)return ce(ee,this,Ie,be);var Le=this.length,Fe=Ae(Ie),Oe=0;if(Fe+be>Le)throw we("Wrong length");for(;Oe<Fe;)this[be+Oe]=Ie[Oe++]},!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,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/typed-array-species-constructor"),Pe=oe("../internals/fails"),Ae=oe("../internals/array-slice"),ye=ge.aTypedArray,De=ge.exportTypedArrayMethod,me=Pe(function(){new Int8Array(1).slice()});De("slice",function(fe,z){for(var ee=Ae(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,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").some,Pe=ge.aTypedArray,Ae=ge.exportTypedArrayMethod;Ae("some",function(De){return ce(Pe(this),De,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fails"),Ae=oe("../internals/a-callable"),ye=oe("../internals/array-sort"),De=oe("../internals/array-buffer-view-core"),me=oe("../internals/engine-ff-version"),we=oe("../internals/engine-is-ie-or-edge"),fe=oe("../internals/engine-v8-version"),z=oe("../internals/engine-webkit-version"),ee=De.aTypedArray,ae=De.exportTypedArrayMethod,re=ge.Uint16Array,le=re&&ce(re.prototype.sort),ue=!!le&&!(Pe(function(){le(new re(2),null)})&&Pe(function(){le(new re(2),{})})),pe=!!le&&!Pe(function(){if(fe)return fe<74;if(me)return me<67;if(we)return!0;if(z)return z<602;var be=new re(516),Ie=Array(516),Le,Fe;for(Le=0;Le<516;Le++)Fe=Le%4,be[Le]=515-Le,Ie[Le]=Le-2*Fe+3;for(le(be,function(Oe,je){return(Oe/4|0)-(je/4|0)}),Le=0;Le<516;Le++)if(be[Le]!==Ie[Le])return!0}),Ee=function(be){return function(Ie,Le){return be!==void 0?+be(Ie,Le)||0:Le!==Le?-1:Ie!==Ie?1:Ie===0&&Le===0?1/Ie>0&&1/Le<0?1:-1:Ie>Le}};ae("sort",function(Ie){return Ie!==void 0&&Ae(Ie),pe?le(this,Ie):ye(ee(this),Ee(Ie))},!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,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core"),ce=oe("../internals/to-length"),Pe=oe("../internals/to-absolute-index"),Ae=oe("../internals/typed-array-species-constructor"),ye=ge.aTypedArray,De=ge.exportTypedArrayMethod;De("subarray",function(we,fe){var z=ye(this),ee=z.length,ae=Pe(we,ee),re=Ae(z);return new re(z.buffer,z.byteOffset+ae*z.BYTES_PER_ELEMENT,ce((fe===void 0?ee:Pe(fe,ee))-ae))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(oe,Ze,Ne){"use strict";var ge=oe("../internals/global"),ce=oe("../internals/function-apply"),Pe=oe("../internals/array-buffer-view-core"),Ae=oe("../internals/fails"),ye=oe("../internals/array-slice"),De=ge.Int8Array,me=Pe.aTypedArray,we=Pe.exportTypedArrayMethod,fe=[].toLocaleString,z=!!De&&Ae(function(){fe.call(new De(1))}),ee=Ae(function(){return[1,2].toLocaleString()!=new De([1,2]).toLocaleString()})||!Ae(function(){De.prototype.toLocaleString.call([1,2])});we("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,Ze,Ne){"use strict";var ge=oe("../internals/array-buffer-view-core").exportTypedArrayMethod,ce=oe("../internals/fails"),Pe=oe("../internals/global"),Ae=oe("../internals/function-uncurry-this"),ye=Pe.Uint8Array,De=ye&&ye.prototype||{},me=[].toString,we=Ae([].join);ce(function(){me.call({})})&&(me=function(){return we(this)});var fe=De.toString!=me;ge("toString",me,fe)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(oe,Ze,Ne){var ge=oe("../internals/typed-array-constructor");ge("Uint8",function(ce){return function(Ae,ye,De){return ce(this,Ae,ye,De)}})},{"../internals/typed-array-constructor":258}],339:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/dom-iterables"),Pe=oe("../internals/dom-token-list-prototype"),Ae=oe("../internals/array-for-each"),ye=oe("../internals/create-non-enumerable-property"),De=function(we){if(we&&we.forEach!==Ae)try{ye(we,"forEach",Ae)}catch(fe){we.forEach=Ae}};for(var me in ce)ce[me]&&De(ge[me]&&ge[me].prototype);De(Pe)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(oe,Ze,Ne){var ge=oe("../internals/global"),ce=oe("../internals/dom-iterables"),Pe=oe("../internals/dom-token-list-prototype"),Ae=oe("../modules/es.array.iterator"),ye=oe("../internals/create-non-enumerable-property"),De=oe("../internals/well-known-symbol"),me=De("iterator"),we=De("toStringTag"),fe=Ae.values,z=function(ae,re){if(ae){if(ae[me]!==fe)try{ye(ae,me,fe)}catch(ue){ae[me]=fe}if(ae[we]||ye(ae,we,re),ce[re]){for(var le in Ae)if(ae[le]!==Ae[le])try{ye(ae,le,Ae[le])}catch(ue){ae[le]=Ae[le]}}}};for(var ee in ce)z(ge[ee]&&ge[ee].prototype,ee);z(Pe,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(oe,Ze,Ne){function ge(pe){return Array.isArray?Array.isArray(pe):ue(pe)==="[object Array]"}Ne.isArray=ge;function ce(pe){return typeof pe=="boolean"}Ne.isBoolean=ce;function Pe(pe){return pe===null}Ne.isNull=Pe;function Ae(pe){return pe==null}Ne.isNullOrUndefined=Ae;function ye(pe){return typeof pe=="number"}Ne.isNumber=ye;function De(pe){return typeof pe=="string"}Ne.isString=De;function me(pe){return typeof pe=="symbol"}Ne.isSymbol=me;function we(pe){return pe===void 0}Ne.isUndefined=we;function fe(pe){return ue(pe)==="[object RegExp]"}Ne.isRegExp=fe;function z(pe){return typeof pe=="object"&&pe!==null}Ne.isObject=z;function ee(pe){return ue(pe)==="[object Date]"}Ne.isDate=ee;function ae(pe){return ue(pe)==="[object Error]"||pe instanceof Error}Ne.isError=ae;function re(pe){return typeof pe=="function"}Ne.isFunction=re;function le(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}Ne.isPrimitive=le,Ne.isBuffer=oe("buffer").Buffer.isBuffer;function ue(pe){return Object.prototype.toString.call(pe)}},{buffer:90}],342:[function(oe,Ze,Ne){(function(ge){"use strict";var ce=function(){var me=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,we=/\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&&De(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"](),Ee=z[ue+"Day"](),be=z[ue+"Month"](),Ie=z[ue+"FullYear"](),Le=z[ue+"Hours"](),Fe=z[ue+"Minutes"](),Oe=z[ue+"Seconds"](),je=z[ue+"Milliseconds"](),ze=ae?0:z.getTimezoneOffset(),_e=Ae(z),Ue=ye(z),$e={d:pe,dd:Pe(pe),ddd:ce.i18n.dayNames[Ee],dddd:ce.i18n.dayNames[Ee+7],m:be+1,mm:Pe(be+1),mmm:ce.i18n.monthNames[be],mmmm:ce.i18n.monthNames[be+12],yy:String(Ie).slice(2),yyyy:Ie,h:Le%12||12,hh:Pe(Le%12||12),H:Le,HH:Pe(Le),M:Fe,MM:Pe(Fe),s:Oe,ss:Pe(Oe),l:Pe(je,3),L:Pe(Math.round(je/10)),t:Le<12?"a":"p",tt:Le<12?"am":"pm",T:Le<12?"A":"P",TT:Le<12?"AM":"PM",Z:re?"GMT":ae?"UTC":(String(z).match(we)||[""]).pop().replace(fe,""),o:(ze>0?"-":"+")+Pe(Math.floor(Math.abs(ze)/60)*100+Math.abs(ze)%60,4),S:["th","st","nd","rd"][pe%10>3?0:(pe%100-pe%10!=10)*pe%10],W:_e,N:Ue};return ee.replace(me,function(et){return et in $e?$e[et]:et.slice(1,et.length-1)})}}();ce.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},ce.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function Pe(me,we){for(me=String(me),we=we||2;me.length<we;)me="0"+me;return me}function Ae(me){var we=new Date(me.getFullYear(),me.getMonth(),me.getDate());we.setDate(we.getDate()-(we.getDay()+6)%7+3);var fe=new Date(we.getFullYear(),0,4);fe.setDate(fe.getDate()-(fe.getDay()+6)%7+3);var z=we.getTimezoneOffset()-fe.getTimezoneOffset();we.setHours(we.getHours()-z);var ee=(we-fe)/(864e5*7);return 1+Math.floor(ee)}function ye(me){var we=me.getDay();return we===0&&(we=7),we}function De(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 We=="function"&&We.amd?We(function(){return ce}):typeof Ne=="object"?Ze.exports=ce:ge.dateFormat=ce})(this)},{}],343:[function(oe,Ze,Ne){"use strict";var ge=/["'&<>]/;Ze.exports=ce;function ce(Pe){var Ae=""+Pe,ye=ge.exec(Ae);if(!ye)return Ae;var De,me="",we=0,fe=0;for(we=ye.index;we<Ae.length;we++){switch(Ae.charCodeAt(we)){case 34:De=""";break;case 38:De="&";break;case 39:De="'";break;case 60:De="<";break;case 62:De=">";break;default:continue}fe!==we&&(me+=Ae.substring(fe,we)),fe=we+1,me+=De}return fe!==we?me+Ae.substring(fe,we):me}},{}],344:[function(oe,Ze,Ne){"use strict";var ge=typeof Reflect=="object"?Reflect:null,ce=ge&&typeof ge.apply=="function"?ge.apply:function(Oe,je,ze){return Function.prototype.apply.call(Oe,je,ze)},Pe;ge&&typeof ge.ownKeys=="function"?Pe=ge.ownKeys:Object.getOwnPropertySymbols?Pe=function(Oe){return Object.getOwnPropertyNames(Oe).concat(Object.getOwnPropertySymbols(Oe))}:Pe=function(Oe){return Object.getOwnPropertyNames(Oe)};function Ae(Fe){console&&console.warn&&console.warn(Fe)}var ye=Number.isNaN||function(Oe){return Oe!==Oe};function De(){De.init.call(this)}Ze.exports=De,Ze.exports.once=be,De.EventEmitter=De,De.prototype._events=void 0,De.prototype._eventsCount=0,De.prototype._maxListeners=void 0;var me=10;function we(Fe){if(typeof Fe!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Fe)}Object.defineProperty(De,"defaultMaxListeners",{enumerable:!0,get:function(){return me},set:function(Fe){if(typeof Fe!="number"||Fe<0||ye(Fe))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Fe+".");me=Fe}}),De.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},De.prototype.setMaxListeners=function(Oe){if(typeof Oe!="number"||Oe<0||ye(Oe))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Oe+".");return this._maxListeners=Oe,this};function fe(Fe){return Fe._maxListeners===void 0?De.defaultMaxListeners:Fe._maxListeners}De.prototype.getMaxListeners=function(){return fe(this)},De.prototype.emit=function(Oe){for(var je=[],ze=1;ze<arguments.length;ze++)je.push(arguments[ze]);var _e=Oe==="error",Ue=this._events;if(Ue!==void 0)_e=_e&&Ue.error===void 0;else if(!_e)return!1;if(_e){var $e;if(je.length>0&&($e=je[0]),$e instanceof Error)throw $e;var et=new Error("Unhandled error."+($e?" ("+$e.message+")":""));throw et.context=$e,et}var lt=Ue[Oe];if(lt===void 0)return!1;if(typeof lt=="function")ce(lt,this,je);else for(var ut=lt.length,yt=ue(lt,ut),ze=0;ze<ut;++ze)ce(yt[ze],this,je);return!0};function z(Fe,Oe,je,ze){var _e,Ue,$e;if(we(je),Ue=Fe._events,Ue===void 0?(Ue=Fe._events=Object.create(null),Fe._eventsCount=0):(Ue.newListener!==void 0&&(Fe.emit("newListener",Oe,je.listener?je.listener:je),Ue=Fe._events),$e=Ue[Oe]),$e===void 0)$e=Ue[Oe]=je,++Fe._eventsCount;else if(typeof $e=="function"?$e=Ue[Oe]=ze?[je,$e]:[$e,je]:ze?$e.unshift(je):$e.push(je),_e=fe(Fe),_e>0&&$e.length>_e&&!$e.warned){$e.warned=!0;var et=new Error("Possible EventEmitter memory leak detected. "+$e.length+" "+String(Oe)+" listeners added. Use emitter.setMaxListeners() to increase limit");et.name="MaxListenersExceededWarning",et.emitter=Fe,et.type=Oe,et.count=$e.length,Ae(et)}return Fe}De.prototype.addListener=function(Oe,je){return z(this,Oe,je,!1)},De.prototype.on=De.prototype.addListener,De.prototype.prependListener=function(Oe,je){return z(this,Oe,je,!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(Fe,Oe,je){var ze={fired:!1,wrapFn:void 0,target:Fe,type:Oe,listener:je},_e=ee.bind(ze);return _e.listener=je,ze.wrapFn=_e,_e}De.prototype.once=function(Oe,je){return we(je),this.on(Oe,ae(this,Oe,je)),this},De.prototype.prependOnceListener=function(Oe,je){return we(je),this.prependListener(Oe,ae(this,Oe,je)),this},De.prototype.removeListener=function(Oe,je){var ze,_e,Ue,$e,et;if(we(je),_e=this._events,_e===void 0)return this;if(ze=_e[Oe],ze===void 0)return this;if(ze===je||ze.listener===je)--this._eventsCount===0?this._events=Object.create(null):(delete _e[Oe],_e.removeListener&&this.emit("removeListener",Oe,ze.listener||je));else if(typeof ze!="function"){for(Ue=-1,$e=ze.length-1;$e>=0;$e--)if(ze[$e]===je||ze[$e].listener===je){et=ze[$e].listener,Ue=$e;break}if(Ue<0)return this;Ue===0?ze.shift():pe(ze,Ue),ze.length===1&&(_e[Oe]=ze[0]),_e.removeListener!==void 0&&this.emit("removeListener",Oe,et||je)}return this},De.prototype.off=De.prototype.removeListener,De.prototype.removeAllListeners=function(Oe){var je,ze,_e;if(ze=this._events,ze===void 0)return this;if(ze.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ze[Oe]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ze[Oe]),this;if(arguments.length===0){var Ue=Object.keys(ze),$e;for(_e=0;_e<Ue.length;++_e)$e=Ue[_e],$e!=="removeListener"&&this.removeAllListeners($e);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(je=ze[Oe],typeof je=="function")this.removeListener(Oe,je);else if(je!==void 0)for(_e=je.length-1;_e>=0;_e--)this.removeListener(Oe,je[_e]);return this};function re(Fe,Oe,je){var ze=Fe._events;if(ze===void 0)return[];var _e=ze[Oe];return _e===void 0?[]:typeof _e=="function"?je?[_e.listener||_e]:[_e]:je?Ee(_e):ue(_e,_e.length)}De.prototype.listeners=function(Oe){return re(this,Oe,!0)},De.prototype.rawListeners=function(Oe){return re(this,Oe,!1)},De.listenerCount=function(Fe,Oe){return typeof Fe.listenerCount=="function"?Fe.listenerCount(Oe):le.call(Fe,Oe)},De.prototype.listenerCount=le;function le(Fe){var Oe=this._events;if(Oe!==void 0){var je=Oe[Fe];if(typeof je=="function")return 1;if(je!==void 0)return je.length}return 0}De.prototype.eventNames=function(){return this._eventsCount>0?Pe(this._events):[]};function ue(Fe,Oe){for(var je=new Array(Oe),ze=0;ze<Oe;++ze)je[ze]=Fe[ze];return je}function pe(Fe,Oe){for(;Oe+1<Fe.length;Oe++)Fe[Oe]=Fe[Oe+1];Fe.pop()}function Ee(Fe){for(var Oe=new Array(Fe.length),je=0;je<Oe.length;++je)Oe[je]=Fe[je].listener||Fe[je];return Oe}function be(Fe,Oe){return new Promise(function(je,ze){function _e($e){Fe.removeListener(Oe,Ue),ze($e)}function Ue(){typeof Fe.removeListener=="function"&&Fe.removeListener("error",_e),je([].slice.call(arguments))}Le(Fe,Oe,Ue,{once:!0}),Oe!=="error"&&Ie(Fe,_e,{once:!0})})}function Ie(Fe,Oe,je){typeof Fe.on=="function"&&Le(Fe,"error",Oe,je)}function Le(Fe,Oe,je,ze){if(typeof Fe.on=="function")ze.once?Fe.once(Oe,je):Fe.on(Oe,je);else if(typeof Fe.addEventListener=="function")Fe.addEventListener(Oe,function _e(Ue){ze.once&&Fe.removeEventListener(Oe,_e),je(Ue)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Fe)}},{}],345:[function(oe,Ze,Ne){"use strict";var ge=oe("is-callable"),ce=Object.prototype.toString,Pe=Object.prototype.hasOwnProperty,Ae=function(fe,z,ee){for(var ae=0,re=fe.length;ae<re;ae++)Pe.call(fe,ae)&&(ee==null?z(fe[ae],ae,fe):z.call(ee,fe[ae],ae,fe))},ye=function(fe,z,ee){for(var ae=0,re=fe.length;ae<re;ae++)ee==null?z(fe.charAt(ae),ae,fe):z.call(ee,fe.charAt(ae),ae,fe)},De=function(fe,z,ee){for(var ae in fe)Pe.call(fe,ae)&&(ee==null?z(fe[ae],ae,fe):z.call(ee,fe[ae],ae,fe))},me=function(fe,z,ee){if(!ge(z))throw new TypeError("iterator must be a function");var ae;arguments.length>=3&&(ae=ee),ce.call(fe)==="[object Array]"?Ae(fe,z,ae):typeof fe=="string"?ye(fe,z,ae):De(fe,z,ae)};Ze.exports=me},{"is-callable":367}],346:[function(oe,Ze,Ne){"use strict";var ge="Function.prototype.bind called on incompatible ",ce=Array.prototype.slice,Pe=Object.prototype.toString,Ae="[object Function]";Ze.exports=function(De){var me=this;if(typeof me!="function"||Pe.call(me)!==Ae)throw new TypeError(ge+me);for(var we=ce.call(arguments,1),fe,z=function(){if(this instanceof fe){var ue=me.apply(this,we.concat(ce.call(arguments)));return Object(ue)===ue?ue:this}else return me.apply(De,we.concat(ce.call(arguments)))},ee=Math.max(0,me.length-we.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,Ze,Ne){"use strict";var ge=oe("./implementation");Ze.exports=Function.prototype.bind||ge},{"./implementation":346}],348:[function(oe,Ze,Ne){"use strict";var ge,ce=SyntaxError,Pe=Function,Ae=TypeError,ye=function(lt){try{return Pe('"use strict"; return ('+lt+").constructor;")()}catch(ut){}},De=Object.getOwnPropertyDescriptor;if(De)try{De({},"")}catch(lt){De=null}var me=function(){throw new Ae},we=De?function(){try{return arguments.callee,me}catch(lt){try{return De(arguments,"callee").get}catch(ut){return me}}}():me,fe=oe("has-symbols")(),z=oe("has-proto")(),ee=Object.getPrototypeOf||(z?function(lt){return lt.__proto__}:null),ae={},re=typeof Uint8Array=="undefined"||!ee?ge:ee(Uint8Array),le={"%AggregateError%":typeof AggregateError=="undefined"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":fe&&ee?ee([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics=="undefined"?ge:Atomics,"%BigInt%":typeof BigInt=="undefined"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ge:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ge:FinalizationRegistry,"%Function%":Pe,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array=="undefined"?ge:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ge:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fe&&ee?ee(ee([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map=="undefined"?ge:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!fe||!ee?ge:ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ge:Promise,"%Proxy%":typeof Proxy=="undefined"?ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ge:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!fe||!ee?ge:ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fe&&ee?ee(""[Symbol.iterator]()):ge,"%Symbol%":fe?Symbol:ge,"%SyntaxError%":ce,"%ThrowTypeError%":we,"%TypedArray%":re,"%TypeError%":Ae,"%Uint8Array%":typeof Uint8Array=="undefined"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ge:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ge:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ge:WeakSet};if(ee)try{null.error}catch(lt){var ue=ee(ee(lt));le["%Error.prototype%"]=ue}var pe=function lt(ut){var yt;if(ut==="%AsyncFunction%")yt=ye("async function () {}");else if(ut==="%GeneratorFunction%")yt=ye("function* () {}");else if(ut==="%AsyncGeneratorFunction%")yt=ye("async function* () {}");else if(ut==="%AsyncGenerator%"){var qe=lt("%AsyncGeneratorFunction%");qe&&(yt=qe.prototype)}else if(ut==="%AsyncIteratorPrototype%"){var ot=lt("%AsyncGenerator%");ot&&ee&&(yt=ee(ot.prototype))}return le[ut]=yt,yt},Ee={"%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"]},be=oe("function-bind"),Ie=oe("has"),Le=be.call(Function.call,Array.prototype.concat),Fe=be.call(Function.apply,Array.prototype.splice),Oe=be.call(Function.call,String.prototype.replace),je=be.call(Function.call,String.prototype.slice),ze=be.call(Function.call,RegExp.prototype.exec),_e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ue=/\\(\\)?/g,$e=function(ut){var yt=je(ut,0,1),qe=je(ut,-1);if(yt==="%"&&qe!=="%")throw new ce("invalid intrinsic syntax, expected closing `%`");if(qe==="%"&&yt!=="%")throw new ce("invalid intrinsic syntax, expected opening `%`");var ot=[];return Oe(ut,_e,function(dt,St,xt,ft){ot[ot.length]=xt?Oe(ft,Ue,"$1"):St||dt}),ot},et=function(ut,yt){var qe=ut,ot;if(Ie(Ee,qe)&&(ot=Ee[qe],qe="%"+ot[0]+"%"),Ie(le,qe)){var dt=le[qe];if(dt===ae&&(dt=pe(qe)),typeof dt=="undefined"&&!yt)throw new Ae("intrinsic "+ut+" exists, but is not available. Please file an issue!");return{alias:ot,name:qe,value:dt}}throw new ce("intrinsic "+ut+" does not exist!")};Ze.exports=function(ut,yt){if(typeof ut!="string"||ut.length===0)throw new Ae("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof yt!="boolean")throw new Ae('"allowMissing" argument must be a boolean');if(ze(/^%?[^%]*%?$/,ut)===null)throw new ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var qe=$e(ut),ot=qe.length>0?qe[0]:"",dt=et("%"+ot+"%",yt),St=dt.name,xt=dt.value,ft=!1,gt=dt.alias;gt&&(ot=gt[0],Fe(qe,Le([0,1],gt)));for(var vt=1,Tt=!0;vt<qe.length;vt+=1){var Et=qe[vt],Zt=je(Et,0,1),wt=je(Et,-1);if((Zt==='"'||Zt==="'"||Zt==="`"||wt==='"'||wt==="'"||wt==="`")&&Zt!==wt)throw new ce("property names with quotes must have matching quotes");if((Et==="constructor"||!Tt)&&(ft=!0),ot+="."+Et,St="%"+ot+"%",Ie(le,St))xt=le[St];else if(xt!=null){if(!(Et in xt)){if(!yt)throw new Ae("base intrinsic for "+ut+" exists, but the property is not available.");return}if(De&&vt+1>=qe.length){var bt=De(xt,Et);Tt=!!bt,Tt&&"get"in bt&&!("originalValue"in bt.get)?xt=bt.get:xt=xt[Et]}else Tt=Ie(xt,Et),xt=xt[Et];Tt&&!ft&&(le[St]=xt)}}return xt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(oe,Ze,Ne){"use strict";var ge=oe("get-intrinsic"),ce=ge("%Object.getOwnPropertyDescriptor%",!0);if(ce)try{ce([],"length")}catch(Pe){ce=null}Ze.exports=ce},{"get-intrinsic":348}],350:[function(oe,Ze,Ne){"use strict";var ge={foo:{}},ce=Object;Ze.exports=function(){return{__proto__:ge}.foo===ge.foo&&!({__proto__:null}instanceof ce)}},{}],351:[function(oe,Ze,Ne){"use strict";var ge=typeof Symbol!="undefined"&&Symbol,ce=oe("./shams");Ze.exports=function(){return typeof ge!="function"||typeof Symbol!="function"||typeof ge("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ce()}},{"./shams":352}],352:[function(oe,Ze,Ne){"use strict";Ze.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var ce={},Pe=Symbol("test"),Ae=Object(Pe);if(typeof Pe=="string"||Object.prototype.toString.call(Pe)!=="[object Symbol]"||Object.prototype.toString.call(Ae)!=="[object Symbol]")return!1;var ye=42;ce[Pe]=ye;for(Pe in ce)return!1;if(typeof Object.keys=="function"&&Object.keys(ce).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(ce).length!==0)return!1;var De=Object.getOwnPropertySymbols(ce);if(De.length!==1||De[0]!==Pe||!Object.prototype.propertyIsEnumerable.call(ce,Pe))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var me=Object.getOwnPropertyDescriptor(ce,Pe);if(me.value!==ye||me.enumerable!==!0)return!1}return!0}},{}],353:[function(oe,Ze,Ne){"use strict";var ge=oe("has-symbols/shams");Ze.exports=function(){return ge()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(oe,Ze,Ne){"use strict";var ge=oe("function-bind");Ze.exports=ge.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(oe,Ze,Ne){var ge=oe("http"),ce=oe("url"),Pe=Ze.exports;for(var Ae in ge)ge.hasOwnProperty(Ae)&&(Pe[Ae]=ge[Ae]);Pe.request=function(De,me){return De=ye(De),ge.request.call(this,De,me)},Pe.get=function(De,me){return De=ye(De),ge.get.call(this,De,me)};function ye(De){if(typeof De=="string"&&(De=ce.parse(De)),De.protocol||(De.protocol="https:"),De.protocol!=="https:")throw new Error('Protocol "'+De.protocol+'" not supported. Expected "https:"');return De}},{http:468,url:472}],356:[function(oe,Ze,Ne){"use strict";var ge=oe("util"),ce=oe("ms");Ze.exports=function(Pe){if(typeof Pe=="number")return Pe;var Ae=ce(Pe);if(Ae===void 0){var ye=new Error(ge.format("humanize-ms(%j) result undefined",Pe));console.warn(ye.stack)}return Ae}},{ms:376,util:419}],357:[function(oe,Ze,Ne){Ne.read=function(ge,ce,Pe,Ae,ye){var De,me,we=ye*8-Ae-1,fe=(1<<we)-1,z=fe>>1,ee=-7,ae=Pe?ye-1:0,re=Pe?-1:1,le=ge[ce+ae];for(ae+=re,De=le&(1<<-ee)-1,le>>=-ee,ee+=we;ee>0;De=De*256+ge[ce+ae],ae+=re,ee-=8);for(me=De&(1<<-ee)-1,De>>=-ee,ee+=Ae;ee>0;me=me*256+ge[ce+ae],ae+=re,ee-=8);if(De===0)De=1-z;else{if(De===fe)return me?NaN:(le?-1:1)*(1/0);me=me+Math.pow(2,Ae),De=De-z}return(le?-1:1)*me*Math.pow(2,De-Ae)},Ne.write=function(ge,ce,Pe,Ae,ye,De){var me,we,fe,z=De*8-ye-1,ee=(1<<z)-1,ae=ee>>1,re=ye===23?Math.pow(2,-24)-Math.pow(2,-77):0,le=Ae?0:De-1,ue=Ae?1:-1,pe=ce<0||ce===0&&1/ce<0?1:0;for(ce=Math.abs(ce),isNaN(ce)||ce===1/0?(we=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?(we=0,me=ee):me+ae>=1?(we=(ce*fe-1)*Math.pow(2,ye),me=me+ae):(we=ce*Math.pow(2,ae-1)*Math.pow(2,ye),me=0));ye>=8;ge[Pe+le]=we&255,le+=ue,we/=256,ye-=8);for(me=me<<ye|we,z+=ye;z>0;ge[Pe+le]=me&255,le+=ue,me/=256,z-=8);ge[Pe+le-ue]|=pe*128}},{}],358:[function(oe,Ze,Ne){"use strict";var ge=[oe("./nextTick"),oe("./queueMicrotask"),oe("./mutation.js"),oe("./messageChannel"),oe("./stateChange"),oe("./timeout")],ce,Pe,Ae=-1,ye=[],De=!1;function me(){!ce||!Pe||(ce=!1,Pe.length?ye=Pe.concat(ye):Ae=-1,ye.length&&we())}function we(){if(!ce){De=!1,ce=!0;for(var le=ye.length,ue=setTimeout(me);le;){for(Pe=ye,ye=[];Pe&&++Ae<le;)Pe[Ae].run();Ae=-1,le=ye.length}Pe=null,Ae=-1,ce=!1,clearTimeout(ue)}}for(var fe,z=-1,ee=ge.length;++z<ee;)if(ge[z]&&ge[z].test&&ge[z].test()){fe=ge[z].install(we);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)}},Ze.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)),!De&&!ce&&(De=!0,fe())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";Ne.test=function(){return ge.setImmediate?!1:typeof ge.MessageChannel!="undefined"},Ne.install=function(ce){var Pe=new ge.MessageChannel;return Pe.port1.onmessage=ce,function(){Pe.port2.postMessage(0)}}}).call(this)}).call(this,typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";var ce=ge.MutationObserver||ge.WebKitMutationObserver;Ne.test=function(){return ce},Ne.install=function(Pe){var Ae=0,ye=new ce(Pe),De=ge.document.createTextNode("");return ye.observe(De,{characterData:!0}),function(){De.data=Ae=++Ae%2}}}).call(this)}).call(this,typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";Ne.test=function(){return typeof ge.queueMicrotask=="function"},Ne.install=function(ce){return function(){ge.queueMicrotask(ce)}}}).call(this)}).call(this,typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";Ne.test=function(){return"document"in ge&&"onreadystatechange"in ge.document.createElement("script")},Ne.install=function(ce){return function(){var Pe=ge.document.createElement("script");return Pe.onreadystatechange=function(){ce(),Pe.onreadystatechange=null,Pe.parentNode.removeChild(Pe),Pe=null},ge.document.documentElement.appendChild(Pe),ce}}}).call(this)}).call(this,typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(oe,Ze,Ne){"use strict";Ne.test=function(){return!0},Ne.install=function(ge){return function(){setTimeout(ge,0)}}},{}],364:[function(oe,Ze,Ne){typeof Object.create=="function"?Ze.exports=function(ce,Pe){Pe&&(ce.super_=Pe,ce.prototype=Object.create(Pe.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}))}:Ze.exports=function(ce,Pe){if(Pe){ce.super_=Pe;var Ae=function(){};Ae.prototype=Pe.prototype,ce.prototype=new Ae,ce.prototype.constructor=ce}}},{}],365:[function(oe,Ze,Ne){"use strict";var ge=oe("has-tostringtag/shams")(),ce=oe("call-bind/callBound"),Pe=ce("Object.prototype.toString"),Ae=function(we){return ge&&we&&typeof we=="object"&&Symbol.toStringTag in we?!1:Pe(we)==="[object Arguments]"},ye=function(we){return Ae(we)?!0:we!==null&&typeof we=="object"&&typeof we.length=="number"&&we.length>=0&&Pe(we)!=="[object Array]"&&Pe(we.callee)==="[object Function]"},De=function(){return Ae(arguments)}();Ae.isLegacyArguments=ye,Ze.exports=De?Ae:ye},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(oe,Ze,Ne){Ze.exports=function(Pe){return Pe!=null&&(ge(Pe)||ce(Pe)||!!Pe._isBuffer)};function ge(Pe){return!!Pe.constructor&&typeof Pe.constructor.isBuffer=="function"&&Pe.constructor.isBuffer(Pe)}function ce(Pe){return typeof Pe.readFloatLE=="function"&&typeof Pe.slice=="function"&&ge(Pe.slice(0,0))}},{}],367:[function(oe,Ze,Ne){"use strict";var ge=Function.prototype.toString,ce=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Pe,Ae;if(typeof ce=="function"&&typeof Object.defineProperty=="function")try{Pe=Object.defineProperty({},"length",{get:function(){throw Ae}}),Ae={},ce(function(){throw 42},null,Pe)}catch(Ie){Ie!==Ae&&(ce=null)}else ce=null;var ye=/^\s*class\b/,De=function(Le){try{var Fe=ge.call(Le);return ye.test(Fe)}catch(Oe){return!1}},me=function(Le){try{return De(Le)?!1:(ge.call(Le),!0)}catch(Fe){return!1}},we=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[,]),Ee=function(){return!1};if(typeof document=="object"){var be=document.all;we.call(be)===we.call(document.all)&&(Ee=function(Le){if((pe||!Le)&&(typeof Le=="undefined"||typeof Le=="object"))try{var Fe=we.call(Le);return(Fe===ae||Fe===re||Fe===le||Fe===fe)&&Le("")==null}catch(Oe){}return!1})}Ze.exports=ce?function(Le){if(Ee(Le))return!0;if(!Le||typeof Le!="function"&&typeof Le!="object")return!1;try{ce(Le,null,Pe)}catch(Fe){if(Fe!==Ae)return!1}return!De(Le)&&me(Le)}:function(Le){if(Ee(Le))return!0;if(!Le||typeof Le!="function"&&typeof Le!="object")return!1;if(ue)return me(Le);if(De(Le))return!1;var Fe=we.call(Le);return Fe!==z&&Fe!==ee&&!/^\[object HTML/.test(Fe)?!1:me(Le)}},{}],368:[function(oe,Ze,Ne){"use strict";var ge=Object.prototype.toString,ce=Function.prototype.toString,Pe=/^\s*(?:function)?\*/,Ae=oe("has-tostringtag/shams")(),ye=Object.getPrototypeOf,De=function(){if(!Ae)return!1;try{return Function("return function*() {}")()}catch(we){}},me;Ze.exports=function(fe){if(typeof fe!="function")return!1;if(Pe.test(ce.call(fe)))return!0;if(!Ae){var z=ge.call(fe);return z==="[object GeneratorFunction]"}if(!ye)return!1;if(typeof me=="undefined"){var ee=De();me=ee?ye(ee):!1}return ye(fe)===me}},{"has-tostringtag/shams":353}],369:[function(oe,Ze,Ne){"use strict";var ge=oe("which-typed-array");Ze.exports=function(Pe){return!!ge(Pe)}},{"which-typed-array":420}],370:[function(oe,Ze,Ne){var ge={}.toString;Ze.exports=Array.isArray||function(ce){return ge.call(ce)=="[object Array]"}},{}],371:[function(oe,Ze,Ne){(function(ge){(function(){(function(ce,Pe){typeof Ne=="object"&&typeof Ze!="undefined"?Ze.exports=Pe(ce):typeof We=="function"&&We.amd?We(Pe):Pe(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ge!="undefined"?ge:this,function(ce){"use strict";ce=ce||{};var Pe=ce.Base64,Ae="2.6.4",ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",De=function(ut){for(var yt={},qe=0,ot=ut.length;qe<ot;qe++)yt[ut.charAt(qe)]=qe;return yt}(ye),me=String.fromCharCode,we=function(ut){if(ut.length<2){var yt=ut.charCodeAt(0);return yt<128?ut: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+(ut.charCodeAt(0)-55296)*1024+(ut.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(ut){return ut.replace(fe,we)},ee=function(ut){var yt=[0,2,1][ut.length%3],qe=ut.charCodeAt(0)<<16|(ut.length>1?ut.charCodeAt(1):0)<<8|(ut.length>2?ut.charCodeAt(2):0),ot=[ye.charAt(qe>>>18),ye.charAt(qe>>>12&63),yt>=2?"=":ye.charAt(qe>>>6&63),yt>=1?"=":ye.charAt(qe&63)];return ot.join("")},ae=ce.btoa&&typeof ce.btoa=="function"?function(ut){return ce.btoa(ut)}:function(ut){if(ut.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ut.replace(/[\s\S]{1,3}/g,ee)},re=function(ut){return ae(z(String(ut)))},le=function(ut){return ut.replace(/[+\/]/g,function(yt){return yt=="+"?"-":"_"}).replace(/=/g,"")},ue=function(ut,yt){return yt?le(re(ut)):re(ut)},pe=function(ut){return ue(ut,!0)},Ee;ce.Uint8Array&&(Ee=function(ut,yt){for(var qe="",ot=0,dt=ut.length;ot<dt;ot+=3){var St=ut[ot],xt=ut[ot+1],ft=ut[ot+2],gt=St<<16|xt<<8|ft;qe+=ye.charAt(gt>>>18)+ye.charAt(gt>>>12&63)+(typeof xt!="undefined"?ye.charAt(gt>>>6&63):"=")+(typeof ft!="undefined"?ye.charAt(gt&63):"=")}return yt?le(qe):qe});var be=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ie=function(ut){switch(ut.length){case 4:var yt=(7&ut.charCodeAt(0))<<18|(63&ut.charCodeAt(1))<<12|(63&ut.charCodeAt(2))<<6|63&ut.charCodeAt(3),qe=yt-65536;return me((qe>>>10)+55296)+me((qe&1023)+56320);case 3:return me((15&ut.charCodeAt(0))<<12|(63&ut.charCodeAt(1))<<6|63&ut.charCodeAt(2));default:return me((31&ut.charCodeAt(0))<<6|63&ut.charCodeAt(1))}},Le=function(ut){return ut.replace(be,Ie)},Fe=function(ut){var yt=ut.length,qe=yt%4,ot=(yt>0?De[ut.charAt(0)]<<18:0)|(yt>1?De[ut.charAt(1)]<<12:0)|(yt>2?De[ut.charAt(2)]<<6:0)|(yt>3?De[ut.charAt(3)]:0),dt=[me(ot>>>16),me(ot>>>8&255),me(ot&255)];return dt.length-=[0,0,2,1][qe],dt.join("")},Oe=ce.atob&&typeof ce.atob=="function"?function(ut){return ce.atob(ut)}:function(ut){return ut.replace(/\S{1,4}/g,Fe)},je=function(ut){return Oe(String(ut).replace(/[^A-Za-z0-9\+\/]/g,""))},ze=function(ut){return Le(Oe(ut))},_e=function(ut){return String(ut).replace(/[-_]/g,function(yt){return yt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ue=function(ut){return ze(_e(ut))},$e;ce.Uint8Array&&($e=function(ut){return Uint8Array.from(je(_e(ut)),function(yt){return yt.charCodeAt(0)})});var et=function(){var ut=ce.Base64;return ce.Base64=Pe,ut};if(ce.Base64={VERSION:Ae,atob:je,btoa:ae,fromBase64:Ue,toBase64:ue,utob:z,encode:ue,encodeURI:pe,btou:Le,decode:Ue,noConflict:et,fromUint8Array:Ee,toUint8Array:$e},typeof Object.defineProperty=="function"){var lt=function(ut){return{value:ut,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",lt(function(){return Ue(this)})),Object.defineProperty(String.prototype,"toBase64",lt(function(ut){return ue(this,ut)})),Object.defineProperty(String.prototype,"toBase64URI",lt(function(){return ue(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),typeof Ze!="undefined"&&Ze.exports?Ze.exports.Base64=ce.Base64:typeof We=="function"&&We.amd&&We([],function(){return ce.Base64}),{Base64:ce.Base64}})}).call(this)}).call(this,typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(oe,Ze,Ne){"use strict";Ze.exports=ce;var ge=Object.prototype.hasOwnProperty;function ce(Pe,Ae,ye){if(!Pe)throw new TypeError("argument dest is required");if(!Ae)throw new TypeError("argument src is required");return ye===void 0&&(ye=!0),Object.getOwnPropertyNames(Ae).forEach(function(me){if(!(!ye&&ge.call(Pe,me))){var we=Object.getOwnPropertyDescriptor(Ae,me);Object.defineProperty(Pe,me,we)}}),Pe}},{}],373:[function(oe,Ze,Ne){"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 ge(){this._types=Object.create(null),this._extensions=Object.create(null);for(var ce=0;ce<arguments.length;ce++)this.define(arguments[ce]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}ge.prototype.define=function(ce,Pe){for(var Ae in ce){var ye=ce[Ae].map(function(fe){return fe.toLowerCase()});Ae=Ae.toLowerCase();for(var De=0;De<ye.length;De++){var me=ye[De];if(me[0]!=="*"){if(!Pe&&me in this._types)throw new Error('Attempt to change mapping for "'+me+'" extension from "'+this._types[me]+'" to "'+Ae+'". Pass `force=true` to allow this, otherwise remove "'+me+'" from the list of extensions for "'+Ae+'".');this._types[me]=Ae}}if(Pe||!this._extensions[Ae]){var we=ye[0];this._extensions[Ae]=we[0]!=="*"?we:we.substr(1)}}},ge.prototype.getType=function(ce){ce=String(ce);var Pe=ce.replace(/^.*[/\\]/,"").toLowerCase(),Ae=Pe.replace(/^.*\./,"").toLowerCase(),ye=Pe.length<ce.length,De=Ae.length<Pe.length-1;return(De||!ye)&&this._types[Ae]||null},ge.prototype.getExtension=function(ce){return ce=/^\s*([^;\s]*)/.test(ce)&&RegExp.$1,ce&&this._extensions[ce.toLowerCase()]||null},Ze.exports=ge},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(oe,Ze,Ne){"use strict";var ge=oe("./Mime");Ze.exports=new ge(oe("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(oe,Ze,Ne){"use strict";Ze.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,Ze,Ne){var ge=1e3,ce=ge*60,Pe=ce*60,Ae=Pe*24,ye=Ae*7,De=Ae*365.25;Ze.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):we(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*De;case"weeks":case"week":case"w":return re*ye;case"days":case"day":case"d":return re*Ae;case"hours":case"hour":case"hrs":case"hr":case"h":return re*Pe;case"minutes":case"minute":case"mins":case"min":case"m":return re*ce;case"seconds":case"second":case"secs":case"sec":case"s":return re*ge;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return re;default:return}}}}function we(ee){var ae=Math.abs(ee);return ae>=Ae?Math.round(ee/Ae)+"d":ae>=Pe?Math.round(ee/Pe)+"h":ae>=ce?Math.round(ee/ce)+"m":ae>=ge?Math.round(ee/ge)+"s":ee+"ms"}function fe(ee){var ae=Math.abs(ee);return ae>=Ae?z(ee,ae,Ae,"day"):ae>=Pe?z(ee,ae,Pe,"hour"):ae>=ce?z(ee,ae,ce,"minute"):ae>=ge?z(ee,ae,ge,"second"):ee+" ms"}function z(ee,ae,re,le){var ue=ae>=re*1.5;return Math.round(ee/re)+" "+le+(ue?"s":"")}},{}],377:[function(oe,Ze,Ne){"use strict";var ge=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;function Ae(De){if(De==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(De)}function ye(){try{if(!Object.assign)return!1;var De=new String("abc");if(De[5]="de",Object.getOwnPropertyNames(De)[0]==="5")return!1;for(var me={},we=0;we<10;we++)me["_"+String.fromCharCode(we)]=we;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}}Ze.exports=ye()?Object.assign:function(De,me){for(var we,fe=Ae(De),z,ee=1;ee<arguments.length;ee++){we=Object(arguments[ee]);for(var ae in we)ce.call(we,ae)&&(fe[ae]=we[ae]);if(ge){z=ge(we);for(var re=0;re<z.length;re++)Pe.call(we,z[re])&&(fe[z[re]]=we[z[re]])}}return fe}},{}],378:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";function ce(De){if(typeof De!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(De))}function Pe(De,me){for(var we="",fe=0,z=-1,ee=0,ae,re=0;re<=De.length;++re){if(re<De.length)ae=De.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(we.length<2||fe!==2||we.charCodeAt(we.length-1)!==46||we.charCodeAt(we.length-2)!==46){if(we.length>2){var le=we.lastIndexOf("/");if(le!==we.length-1){le===-1?(we="",fe=0):(we=we.slice(0,le),fe=we.length-1-we.lastIndexOf("/")),z=re,ee=0;continue}}else if(we.length===2||we.length===1){we="",fe=0,z=re,ee=0;continue}}me&&(we.length>0?we+="/..":we="..",fe=2)}else we.length>0?we+="/"+De.slice(z+1,re):we=De.slice(z+1,re),fe=re-z-1;z=re,ee=0}else ae===46&&ee!==-1?++ee:ee=-1}return we}function Ae(De,me){var we=me.dir||me.root,fe=me.base||(me.name||"")+(me.ext||"");return we?we===me.root?we+fe:we+De+fe:fe}var ye={resolve:function(){for(var me="",we=!1,fe,z=arguments.length-1;z>=-1&&!we;z--){var ee;z>=0?ee=arguments[z]:(fe===void 0&&(fe=ge.cwd()),ee=fe),ce(ee),ee.length!==0&&(me=ee+"/"+me,we=ee.charCodeAt(0)===47)}return me=Pe(me,!we),we?me.length>0?"/"+me:"/":me.length>0?me:"."},normalize:function(me){if(ce(me),me.length===0)return".";var we=me.charCodeAt(0)===47,fe=me.charCodeAt(me.length-1)===47;return me=Pe(me,!we),me.length===0&&!we&&(me="."),me.length>0&&fe&&(me+="/"),we?"/"+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,we=0;we<arguments.length;++we){var fe=arguments[we];ce(fe),fe.length>0&&(me===void 0?me=fe:me+="/"+fe)}return me===void 0?".":ye.normalize(me)},relative:function(me,we){if(ce(me),ce(we),me===we||(me=ye.resolve(me),we=ye.resolve(we),me===we))return"";for(var fe=1;fe<me.length&&me.charCodeAt(fe)===47;++fe);for(var z=me.length,ee=z-fe,ae=1;ae<we.length&&we.charCodeAt(ae)===47;++ae);for(var re=we.length,le=re-ae,ue=ee<le?ee:le,pe=-1,Ee=0;Ee<=ue;++Ee){if(Ee===ue){if(le>ue){if(we.charCodeAt(ae+Ee)===47)return we.slice(ae+Ee+1);if(Ee===0)return we.slice(ae+Ee)}else ee>ue&&(me.charCodeAt(fe+Ee)===47?pe=Ee:Ee===0&&(pe=0));break}var be=me.charCodeAt(fe+Ee),Ie=we.charCodeAt(ae+Ee);if(be!==Ie)break;be===47&&(pe=Ee)}var Le="";for(Ee=fe+pe+1;Ee<=z;++Ee)(Ee===z||me.charCodeAt(Ee)===47)&&(Le.length===0?Le+="..":Le+="/..");return Le.length>0?Le+we.slice(ae+pe):(ae+=pe,we.charCodeAt(ae)===47&&++ae,we.slice(ae))},_makeLong:function(me){return me},dirname:function(me){if(ce(me),me.length===0)return".";for(var we=me.charCodeAt(0),fe=we===47,z=-1,ee=!0,ae=me.length-1;ae>=1;--ae)if(we=me.charCodeAt(ae),we===47){if(!ee){z=ae;break}}else ee=!1;return z===-1?fe?"/":".":fe&&z===1?"//":me.slice(0,z)},basename:function(me,we){if(we!==void 0&&typeof we!="string")throw new TypeError('"ext" argument must be a string');ce(me);var fe=0,z=-1,ee=!0,ae;if(we!==void 0&&we.length>0&&we.length<=me.length){if(we.length===me.length&&we===me)return"";var re=we.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===we.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 we=-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?we===-1?we=re:ae!==1&&(ae=1):we!==-1&&(ae=-1)}return we===-1||z===-1||ae===0||ae===1&&we===z-1&&we===fe+1?"":me.slice(we,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 Ae("/",me)},parse:function(me){ce(me);var we={root:"",dir:"",base:"",ext:"",name:""};if(me.length===0)return we;var fe=me.charCodeAt(0),z=fe===47,ee;z?(we.root="/",ee=1):ee=0;for(var ae=-1,re=0,le=-1,ue=!0,pe=me.length-1,Ee=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:Ee!==1&&(Ee=1):ae!==-1&&(Ee=-1)}return ae===-1||le===-1||Ee===0||Ee===1&&ae===le-1&&ae===re+1?le!==-1&&(re===0&&z?we.base=we.name=me.slice(1,le):we.base=we.name=me.slice(re,le)):(re===0&&z?(we.name=me.slice(1,ae),we.base=me.slice(1,le)):(we.name=me.slice(re,ae),we.base=me.slice(re,le)),we.ext=me.slice(ae,le)),re>0?we.dir=me.slice(0,re-1):z&&(we.dir="/"),we},sep:"/",delimiter:":",win32:null,posix:null};ye.posix=ye,Ze.exports=ye}).call(this)}).call(this,oe("_process"))},{_process:467}],379:[function(oe,Ze,Ne){(function(ge){(function(){(function(){"use strict";var ce={function:!0,object:!0},Pe=ce[typeof window]&&window||this,Ae=Pe,ye=ce[typeof Ne]&&Ne,De=ce[typeof Ze]&&Ze&&!Ze.nodeType&&Ze,me=ye&&De&&typeof ge=="object"&≥me&&(me.global===me||me.window===me||me.self===me)&&(Pe=me);var we=Math.pow(2,53)-1,fe=/\bOpera/,z=this,ee=Object.prototype,ae=ee.hasOwnProperty,re=ee.toString;function le(Ue){return Ue=String(Ue),Ue.charAt(0).toUpperCase()+Ue.slice(1)}function ue(Ue,$e,et){var lt={"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&&et&&/^Win/i.test(Ue)&&!/^Windows Phone /i.test(Ue)&&(lt=lt[/[\d.]+$/.exec(Ue)])&&(Ue="Windows "+lt),Ue=String(Ue),$e&&et&&(Ue=Ue.replace(RegExp($e,"i"),et)),Ue=Ee(Ue.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]),Ue}function pe(Ue,$e){var et=-1,lt=Ue?Ue.length:0;if(typeof lt=="number"&<>-1&<<=we)for(;++et<lt;)$e(Ue[et],et,Ue);else be(Ue,$e)}function Ee(Ue){return Ue=je(Ue),/^(?:webOS|i(?:OS|P))/.test(Ue)?Ue:le(Ue)}function be(Ue,$e){for(var et in Ue)ae.call(Ue,et)&&$e(Ue[et],et,Ue)}function Ie(Ue){return Ue==null?le(Ue):re.call(Ue).slice(8,-1)}function Le(Ue,$e){var et=Ue!=null?typeof Ue[$e]:"number";return!/^(?:boolean|number|string|undefined)$/.test(et)&&(et=="object"?!!Ue[$e]:!0)}function Fe(Ue){return String(Ue).replace(/([ -])(?!$)/g,"$1?")}function Oe(Ue,$e){var et=null;return pe(Ue,function(lt,ut){et=$e(et,lt,ut,Ue)}),et}function je(Ue){return String(Ue).replace(/^ +| +$/g,"")}function ze(Ue){var $e=Pe,et=Ue&&typeof Ue=="object"&&Ie(Ue)!="String";et&&($e=Ue,Ue=null);var lt=$e.navigator||{},ut=lt.userAgent||"";Ue||(Ue=ut);var yt=et||z==Ae,qe=et?!!lt.likeChrome:/\bChrome\b/.test(Ue)&&!/internal|\n/i.test(re.toString()),ot="Object",dt=et?ot:"ScriptBridgingProxyObject",St=et?ot:"Environment",xt=et&&$e.java?"JavaPackage":Ie($e.java),ft=et?ot:"RuntimeObject",gt=/\bJava/.test(xt)&&$e.java,vt=gt&&Ie($e.environment)==St,Tt=gt?"a":"\u03B1",Et=gt?"b":"\u03B2",Zt=$e.document||{},wt=$e.operamini||$e.opera,bt=fe.test(bt=et&&wt?wt["[[Class]]"]:Ie(wt))?bt:wt=null,it,nt=Ue,xe=[],Ce=null,Ye=Ue==ut,Je=Ye&&wt&&typeof wt.version=="function"&&wt.version(),Me,Ge=At([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Ke=Ot(["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=jt([{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"]),Qe=pt({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}}),ht=Kt(["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 At(Ft){return Oe(Ft,function(Qt,en){return Qt||RegExp("\\b"+(en.pattern||Fe(en))+"\\b","i").exec(Ue)&&(en.label||en)})}function pt(Ft){return Oe(Ft,function(Qt,en,on){return Qt||(en[Ve]||en[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ve)]||RegExp("\\b"+Fe(on)+"(?:\\b|\\w*\\d)","i").exec(Ue))&&on})}function Ot(Ft){return Oe(Ft,function(Qt,en){return Qt||RegExp("\\b"+(en.pattern||Fe(en))+"\\b","i").exec(Ue)&&(en.label||en)})}function Kt(Ft){return Oe(Ft,function(Qt,en){var on=en.pattern||Fe(en);return!Qt&&(Qt=RegExp("\\b"+on+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Ue))&&(Qt=ue(Qt,on,en.label||en)),Qt})}function jt(Ft){return Oe(Ft,function(Qt,en){var on=en.pattern||Fe(en);return!Qt&&(Qt=RegExp("\\b"+on+" *\\d+[.\\w_]*","i").exec(Ue)||RegExp("\\b"+on+" *\\w+-[\\w]*","i").exec(Ue)||RegExp("\\b"+on+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Ue))&&((Qt=String(en.label&&!RegExp(on,"i").test(en.label)?en.label:Qt).split("/"))[1]&&!/[\d.]+/.test(Qt[0])&&(Qt[0]+=" "+Qt[1]),en=en.label||en,Qt=Ee(Qt[0].replace(RegExp(on,"i"),en).replace(RegExp("; *(?:"+en+"[_-])?","i")," ").replace(RegExp("("+en+")[-_.]?(\\w)","i"),"$1 $2"))),Qt})}function Rt(Ft){return Oe(Ft,function(Qt,en){return Qt||(RegExp(en+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Ue)||0)[1]||null})}function Xt(){return this.description||""}if(Ge&&(Ge=[Ge]),/\bAndroid\b/.test(ht)&&!Ve&&(it=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Ue))&&(Ve=je(it[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Qe&&!Ve?Ve=jt([Qe]):Qe&&Ve&&(Ve=Ve.replace(RegExp("^("+Fe(Qe)+")[-_.\\s]","i"),Qe+" ").replace(RegExp("^("+Fe(Qe)+")[-_.]?(\\w)","i"),Qe+" $2")),(it=/\bGoogle TV\b/.exec(Ve))&&(Ve=it[0]),/\bSimulator\b/i.test(Ue)&&(Ve=(Ve?Ve+" ":"")+"Simulator"),Ke=="Opera Mini"&&/\bOPiOS\b/.test(Ue)&&xe.push("running in Turbo/Uncompressed mode"),Ke=="IE"&&/\blike iPhone OS\b/.test(Ue)?(it=ze(Ue.replace(/like iPhone OS/,"")),Qe=it.manufacturer,Ve=it.product):/^iP/.test(Ve)?(Ke||(Ke="Safari"),ht="iOS"+((it=/ OS ([\d_]+)/i.exec(Ue))?" "+it[1].replace(/_/g,"."):"")):Ke=="Konqueror"&&/^Linux\b/i.test(ht)?ht="Kubuntu":Qe&&Qe!="Google"&&(/Chrome/.test(Ke)&&!/\bMobile Safari\b/i.test(Ue)||/\bVita\b/.test(Ve))||/\bAndroid\b/.test(ht)&&/^Chrome/.test(Ke)&&/\bVersion\//i.test(Ue)?(Ke="Android Browser",ht=/\bAndroid\b/.test(ht)?ht:"Android"):Ke=="Silk"?(/\bMobi/i.test(Ue)||(ht="Android",xe.unshift("desktop mode")),/Accelerated *= *true/i.test(Ue)&&xe.unshift("accelerated")):Ke=="UC Browser"&&/\bUCWEB\b/.test(Ue)?xe.push("speed mode"):Ke=="PaleMoon"&&(it=/\bFirefox\/([\d.]+)\b/.exec(Ue))?xe.push("identifying as Firefox "+it[1]):Ke=="Firefox"&&(it=/\b(Mobile|Tablet|TV)\b/i.exec(Ue))?(ht||(ht="Firefox OS"),Ve||(Ve=it[1])):!Ke||(it=!/\bMinefield\b/i.test(Ue)&&/\b(?:Firefox|Safari)\b/.exec(Ke))?(Ke&&!Ve&&/[\/,]|^[^(]+?\)/.test(Ue.slice(Ue.indexOf(it+"/")+8))&&(Ke=null),(it=Ve||Qe||ht)&&(Ve||Qe||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(ht))&&(Ke=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(ht)?ht:it)+" Browser")):Ke=="Electron"&&(it=(/\bChrome\/([\d.]+)\b/.exec(Ue)||0)[1])&&xe.push("Chromium "+it),Je||(Je=Rt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",Fe(Ke),"(?:Firefox|Minefield|NetFront)"])),(it=Ge=="iCab"&&parseFloat(Je)>3&&"WebKit"||/\bOpera\b/.test(Ke)&&(/\bOPR\b/.test(Ue)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Ue)&&!/^(?:Trident|EdgeHTML)$/.test(Ge)&&"WebKit"||!Ge&&/\bMSIE\b/i.test(Ue)&&(ht=="Mac OS"?"Tasman":"Trident")||Ge=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Ke)&&"NetFront")&&(Ge=[it]),Ke=="IE"&&(it=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Ue)||0)[1])?(Ke+=" Mobile",ht="Windows Phone "+(/\+$/.test(it)?it:it+".x"),xe.unshift("desktop mode")):/\bWPDesktop\b/i.test(Ue)?(Ke="IE Mobile",ht="Windows Phone 8.x",xe.unshift("desktop mode"),Je||(Je=(/\brv:([\d.]+)/.exec(Ue)||0)[1])):Ke!="IE"&&Ge=="Trident"&&(it=/\brv:([\d.]+)/.exec(Ue))&&(Ke&&xe.push("identifying as "+Ke+(Je?" "+Je:"")),Ke="IE",Je=it[1]),Ye){if(Le($e,"global"))if(gt&&(it=gt.lang.System,nt=it.getProperty("os.arch"),ht=ht||it.getProperty("os.name")+" "+it.getProperty("os.version")),vt){try{Je=$e.require("ringo/engine").version.join("."),Ke="RingoJS"}catch(Ft){(it=$e.system)&&it.global.system==$e.system&&(Ke="Narwhal",ht||(ht=it[0].os||null))}Ke||(Ke="Rhino")}else typeof $e.process=="object"&&!$e.process.browser&&(it=$e.process)&&(typeof it.versions=="object"&&(typeof it.versions.electron=="string"?(xe.push("Node "+it.versions.node),Ke="Electron",Je=it.versions.electron):typeof it.versions.nw=="string"&&(xe.push("Chromium "+Je,"Node "+it.versions.node),Ke="NW.js",Je=it.versions.nw)),Ke||(Ke="Node.js",nt=it.arch,ht=it.platform,Je=/[\d.]+/.exec(it.version),Je=Je?Je[0]:null));else Ie(it=$e.runtime)==dt?(Ke="Adobe AIR",ht=it.flash.system.Capabilities.os):Ie(it=$e.phantom)==ft?(Ke="PhantomJS",Je=(it=it.version||null)&&it.major+"."+it.minor+"."+it.patch):typeof Zt.documentMode=="number"&&(it=/\bTrident\/(\d+)/i.exec(Ue))?(Je=[Je,Zt.documentMode],(it=+it[1]+4)!=Je[1]&&(xe.push("IE "+Je[1]+" mode"),Ge&&(Ge[1]=""),Je[1]=it),Je=Ke=="IE"?String(Je[1].toFixed(1)):Je[0]):typeof Zt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Ke)&&(xe.push("masking as "+Ke+" "+Je),Ke="IE",Je="11.0",Ge=["Trident"],ht="Windows");ht=ht&&Ee(ht)}if(Je&&(it=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Je)||/(?:alpha|beta)(?: ?\d)?/i.exec(Ue+";"+(Ye&<.appMinorVersion))||/\bMinefield\b/i.test(Ue)&&"a")&&(Ce=/b/i.test(it)?"beta":"alpha",Je=Je.replace(RegExp(it+"\\+?$"),"")+(Ce=="beta"?Et:Tt)+(/\d+\+?/.exec(it)||"")),Ke=="Fennec"||Ke=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(ht))Ke="Firefox Mobile";else if(Ke=="Maxthon"&&Je)Je=Je.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ve))Ve=="Xbox 360"&&(ht=null),Ve=="Xbox 360"&&/\bIEMobile\b/.test(Ue)&&xe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Ke)||Ke&&!Ve&&!/Browser|Mobi/.test(Ke))&&(ht=="Windows CE"||/Mobi/i.test(Ue)))Ke+=" Mobile";else if(Ke=="IE"&&Ye)try{$e.external===null&&xe.unshift("platform preview")}catch(Ft){xe.unshift("embedded")}else(/\bBlackBerry\b/.test(Ve)||/\bBB10\b/.test(Ue))&&(it=(RegExp(Ve.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Ue)||0)[1]||Je)?(it=[it,/BB10/.test(Ue)],ht=(it[1]?(Ve=null,Qe="BlackBerry"):"Device Software")+" "+it[0],Je=null):this!=be&&Ve!="Wii"&&(Ye&&wt||/Opera/.test(Ke)&&/\b(?:MSIE|Firefox)\b/i.test(Ue)||Ke=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(ht)||Ke=="IE"&&(ht&&!/^Win/.test(ht)&&Je>5.5||/\bWindows XP\b/.test(ht)&&Je>8||Je==8&&!/\bTrident\b/.test(Ue)))&&!fe.test(it=ze.call(be,Ue.replace(fe,"")+";"))&&it.name&&(it="ing as "+it.name+((it=it.version)?" "+it:""),fe.test(Ke)?(/\bIE\b/.test(it)&&ht=="Mac OS"&&(ht=null),it="identify"+it):(it="mask"+it,bt?Ke=Ee(bt.replace(/([a-z])([A-Z])/g,"$1 $2")):Ke="Opera",/\bIE\b/.test(it)&&(ht=null),Ye||(Je=null)),Ge=["Presto"],xe.push(it));(it=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Ue)||0)[1])&&(it=[parseFloat(it.replace(/\.(\d)$/,".0$1")),it],Ke=="Safari"&&it[1].slice(-1)=="+"?(Ke="WebKit Nightly",Ce="alpha",Je=it[1].slice(0,-1)):(Je==it[1]||Je==(it[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Ue)||0)[1]))&&(Je=null),it[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Ue)||0)[1],it[0]==537.36&&it[2]==537.36&&parseFloat(it[1])>=28&&Ge=="WebKit"&&(Ge=["Blink"]),!Ye||!qe&&!it[1]?(Ge&&(Ge[1]="like Safari"),it=(it=it[0],it<400?1:it<500?2:it<526?3:it<533?4:it<534?"4+":it<535?5:it<537?6:it<538?7:it<601?8:it<602?9:it<604?10:it<606?11:it<608?12:"12")):(Ge&&(Ge[1]="like Chrome"),it=it[1]||(it=it[0],it<530?1:it<532?2:it<532.05?3:it<533?4:it<534.03?5:it<534.07?6:it<534.1?7:it<534.13?8:it<534.16?9:it<534.24?10:it<534.3?11:it<535.01?12:it<535.02?"13+":it<535.07?15:it<535.11?16:it<535.19?17:it<536.05?18:it<536.1?19:it<537.01?20:it<537.11?"21+":it<537.13?23:it<537.18?24:it<537.24?25:it<537.36?26:Ge!="Blink"?"27":"28")),Ge&&(Ge[1]+=" "+(it+=typeof it=="number"?".x":/[.+]/.test(it)?"":"+")),Ke=="Safari"&&(!Je||parseInt(Je)>45)?Je=it:Ke=="Chrome"&&/\bHeadlessChrome/i.test(Ue)&&xe.unshift("headless")),Ke=="Opera"&&(it=/\bzbov|zvav$/.exec(ht))?(Ke+=" ",xe.unshift("desktop mode"),it=="zvav"?(Ke+="Mini",Je=null):Ke+="Mobile",ht=ht.replace(RegExp(" *"+it+"$"),"")):Ke=="Safari"&&/\bChrome\b/.exec(Ge&&Ge[1])?(xe.unshift("desktop mode"),Ke="Chrome Mobile",Je=null,/\bOS X\b/.test(ht)?(Qe="Apple",ht="iOS 4.3+"):ht=null):/\bSRWare Iron\b/.test(Ke)&&!Je&&(Je=Rt("Chrome")),Je&&Je.indexOf(it=/[\d.]+$/.exec(ht))==0&&Ue.indexOf("/"+it+"-")>-1&&(ht=je(ht.replace(it,""))),ht&&ht.indexOf(Ke)!=-1&&!RegExp(Ke+" OS").test(ht)&&(ht=ht.replace(RegExp(" *"+Fe(Ke)+" *"),"")),Ge&&!/\b(?:Avant|Nook)\b/.test(Ke)&&(/Browser|Lunascape|Maxthon/.test(Ke)||Ke!="Safari"&&/^iOS/.test(ht)&&/\bSafari\b/.test(Ge[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Ke)&&Ge[1])&&(it=Ge[Ge.length-1])&&xe.push(it),xe.length&&(xe=["("+xe.join("; ")+")"]),Qe&&Ve&&Ve.indexOf(Qe)<0&&xe.push("on "+Qe),Ve&&xe.push((/^on /.test(xe[xe.length-1])?"":"on ")+Ve),ht&&(it=/ ([\d.+]+)$/.exec(ht),Me=it&&ht.charAt(ht.length-it[0].length-1)=="/",ht={architecture:32,family:it&&!Me?ht.replace(it[0],""):ht,version:it?it[1]:null,toString:function(){var Ft=this.version;return this.family+(Ft&&!Me?" "+Ft:"")+(this.architecture==64?" 64-bit":"")}}),(it=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(nt))&&!/\bi686\b/i.test(nt)?(ht&&(ht.architecture=64,ht.family=ht.family.replace(RegExp(" *"+it),"")),Ke&&(/\bWOW64\b/i.test(Ue)||Ye&&/\w(?:86|32)$/.test(lt.cpuClass||lt.platform)&&!/\bWin64; x64\b/i.test(Ue))&&xe.unshift("32-bit")):ht&&/^OS X/.test(ht.family)&&Ke=="Chrome"&&parseFloat(Je)>=39&&(ht.architecture=64),Ue||(Ue=null);var sn={};return sn.description=Ue,sn.layout=Ge&&Ge[0],sn.manufacturer=Qe,sn.name=Ke,sn.prerelease=Ce,sn.product=Ve,sn.ua=Ue,sn.version=Ke&&Je,sn.os=ht||{architecture:null,family:null,version:null,toString:function(){return"null"}},sn.parse=ze,sn.toString=Xt,sn.version&&xe.unshift(Je),sn.name&&xe.unshift(Ke),ht&&Ke&&!(ht==String(ht).split(" ")[0]&&(ht==Ke.split(" ")[0]||Ve))&&xe.push(Ve?"("+ht+")":"on "+ht),xe.length&&(sn.description=xe.join(" ")),sn}var _e=ze();typeof We=="function"&&typeof We.amd=="object"&&We.amd?(Pe.platform=_e,We(function(){return _e})):ye&&De?be(_e,function(Ue,$e){ye[$e]=Ue}):Pe.platform=_e}).call(this)}).call(this)}).call(this,typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";typeof ge=="undefined"||!ge.version||ge.version.indexOf("v0.")===0||ge.version.indexOf("v1.")===0&&ge.version.indexOf("v1.8.")!==0?Ze.exports={nextTick:ce}:Ze.exports=ge;function ce(Pe,Ae,ye,De){if(typeof Pe!="function")throw new TypeError('"callback" argument must be a function');var me=arguments.length,we,fe;switch(me){case 0:case 1:return ge.nextTick(Pe);case 2:return ge.nextTick(function(){Pe.call(null,Ae)});case 3:return ge.nextTick(function(){Pe.call(null,Ae,ye)});case 4:return ge.nextTick(function(){Pe.call(null,Ae,ye,De)});default:for(we=new Array(me-1),fe=0;fe<we.length;)we[fe++]=arguments[fe];return ge.nextTick(function(){Pe.apply(null,we)})}}}).call(this)}).call(this,oe("_process"))},{_process:467}],381:[function(oe,Ze,Ne){var ge=Ze.exports={},ce,Pe;function Ae(){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=Ae}catch(pe){ce=Ae}try{typeof clearTimeout=="function"?Pe=clearTimeout:Pe=ye}catch(pe){Pe=ye}})();function De(pe){if(ce===setTimeout)return setTimeout(pe,0);if((ce===Ae||!ce)&&setTimeout)return ce=setTimeout,setTimeout(pe,0);try{return ce(pe,0)}catch(Ee){try{return ce.call(null,pe,0)}catch(be){return ce.call(this,pe,0)}}}function me(pe){if(Pe===clearTimeout)return clearTimeout(pe);if((Pe===ye||!Pe)&&clearTimeout)return Pe=clearTimeout,clearTimeout(pe);try{return Pe(pe)}catch(Ee){try{return Pe.call(null,pe)}catch(be){return Pe.call(this,pe)}}}var we=[],fe=!1,z,ee=-1;function ae(){!fe||!z||(fe=!1,z.length?we=z.concat(we):ee=-1,we.length&&re())}function re(){if(!fe){var pe=De(ae);fe=!0;for(var Ee=we.length;Ee;){for(z=we,we=[];++ee<Ee;)z&&z[ee].run();ee=-1,Ee=we.length}z=null,fe=!1,me(pe)}}ge.nextTick=function(pe){var Ee=new Array(arguments.length-1);if(arguments.length>1)for(var be=1;be<arguments.length;be++)Ee[be-1]=arguments[be];we.push(new le(pe,Ee)),we.length===1&&!fe&&De(re)};function le(pe,Ee){this.fun=pe,this.array=Ee}le.prototype.run=function(){this.fun.apply(null,this.array)},ge.title="browser",ge.browser=!0,ge.env={},ge.argv=[],ge.version="",ge.versions={};function ue(){}ge.on=ue,ge.addListener=ue,ge.once=ue,ge.off=ue,ge.removeListener=ue,ge.removeAllListeners=ue,ge.emit=ue,ge.prependListener=ue,ge.prependOnceListener=ue,ge.listeners=function(pe){return[]},ge.binding=function(pe){throw new Error("process.binding is not supported")},ge.cwd=function(){return"/"},ge.chdir=function(pe){throw new Error("process.chdir is not supported")},ge.umask=function(){return 0}},{}],382:[function(oe,Ze,Ne){(function(ge){(function(){(function(ce){var Pe=typeof Ne=="object"&&Ne&&!Ne.nodeType&&Ne,Ae=typeof Ze=="object"&&Ze&&!Ze.nodeType&&Ze,ye=typeof ge=="object"&≥(ye.global===ye||ye.window===ye||ye.self===ye)&&(ce=ye);var De,me=2147483647,we=36,fe=1,z=26,ee=38,ae=700,re=72,le=128,ue="-",pe=/^xn--/,Ee=/[^\x20-\x7E]/,be=/[\x2E\u3002\uFF0E\uFF61]/g,Ie={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Le=we-fe,Fe=Math.floor,Oe=String.fromCharCode,je;function ze(xt){throw new RangeError(Ie[xt])}function _e(xt,ft){for(var gt=xt.length,vt=[];gt--;)vt[gt]=ft(xt[gt]);return vt}function Ue(xt,ft){var gt=xt.split("@"),vt="";gt.length>1&&(vt=gt[0]+"@",xt=gt[1]),xt=xt.replace(be,".");var Tt=xt.split("."),Et=_e(Tt,ft).join(".");return vt+Et}function $e(xt){for(var ft=[],gt=0,vt=xt.length,Tt,Et;gt<vt;)Tt=xt.charCodeAt(gt++),Tt>=55296&&Tt<=56319&><vt?(Et=xt.charCodeAt(gt++),(Et&64512)==56320?ft.push(((Tt&1023)<<10)+(Et&1023)+65536):(ft.push(Tt),gt--)):ft.push(Tt);return ft}function et(xt){return _e(xt,function(ft){var gt="";return ft>65535&&(ft-=65536,gt+=Oe(ft>>>10&1023|55296),ft=56320|ft&1023),gt+=Oe(ft),gt}).join("")}function lt(xt){return xt-48<10?xt-22:xt-65<26?xt-65:xt-97<26?xt-97:we}function ut(xt,ft){return xt+22+75*(xt<26)-((ft!=0)<<5)}function yt(xt,ft,gt){var vt=0;for(xt=gt?Fe(xt/ae):xt>>1,xt+=Fe(xt/ft);xt>Le*z>>1;vt+=we)xt=Fe(xt/Le);return Fe(vt+(Le+1)*xt/(xt+ee))}function qe(xt){var ft=[],gt=xt.length,vt,Tt=0,Et=le,Zt=re,wt,bt,it,nt,xe,Ce,Ye,Je,Me;for(wt=xt.lastIndexOf(ue),wt<0&&(wt=0),bt=0;bt<wt;++bt)xt.charCodeAt(bt)>=128&&ze("not-basic"),ft.push(xt.charCodeAt(bt));for(it=wt>0?wt+1:0;it<gt;){for(nt=Tt,xe=1,Ce=we;it>=gt&&ze("invalid-input"),Ye=lt(xt.charCodeAt(it++)),(Ye>=we||Ye>Fe((me-Tt)/xe))&&ze("overflow"),Tt+=Ye*xe,Je=Ce<=Zt?fe:Ce>=Zt+z?z:Ce-Zt,!(Ye<Je);Ce+=we)Me=we-Je,xe>Fe(me/Me)&&ze("overflow"),xe*=Me;vt=ft.length+1,Zt=yt(Tt-nt,vt,nt==0),Fe(Tt/vt)>me-Et&&ze("overflow"),Et+=Fe(Tt/vt),Tt%=vt,ft.splice(Tt++,0,Et)}return et(ft)}function ot(xt){var ft,gt,vt,Tt,Et,Zt,wt,bt,it,nt,xe,Ce=[],Ye,Je,Me,Ge;for(xt=$e(xt),Ye=xt.length,ft=le,gt=0,Et=re,Zt=0;Zt<Ye;++Zt)xe=xt[Zt],xe<128&&Ce.push(Oe(xe));for(vt=Tt=Ce.length,Tt&&Ce.push(ue);vt<Ye;){for(wt=me,Zt=0;Zt<Ye;++Zt)xe=xt[Zt],xe>=ft&&xe<wt&&(wt=xe);for(Je=vt+1,wt-ft>Fe((me-gt)/Je)&&ze("overflow"),gt+=(wt-ft)*Je,ft=wt,Zt=0;Zt<Ye;++Zt)if(xe=xt[Zt],xe<ft&&++gt>me&&ze("overflow"),xe==ft){for(bt=gt,it=we;nt=it<=Et?fe:it>=Et+z?z:it-Et,!(bt<nt);it+=we)Ge=bt-nt,Me=we-nt,Ce.push(Oe(ut(nt+Ge%Me,0))),bt=Fe(Ge/Me);Ce.push(Oe(ut(bt,0))),Et=yt(gt,Je,vt==Tt),gt=0,++vt}++gt,++ft}return Ce.join("")}function dt(xt){return Ue(xt,function(ft){return pe.test(ft)?qe(ft.slice(4).toLowerCase()):ft})}function St(xt){return Ue(xt,function(ft){return Ee.test(ft)?"xn--"+ot(ft):ft})}if(De={version:"1.4.1",ucs2:{decode:$e,encode:et},decode:qe,encode:ot,toASCII:St,toUnicode:dt},typeof We=="function"&&typeof We.amd=="object"&&We.amd)We("punycode",function(){return De});else if(Pe&&Ae)if(Ze.exports==Pe)Ae.exports=De;else for(je in De)De.hasOwnProperty(je)&&(Pe[je]=De[je]);else ce.punycode=De})(this)}).call(this)}).call(this,typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(oe,Ze,Ne){"use strict";function ge(Pe,Ae){return Object.prototype.hasOwnProperty.call(Pe,Ae)}Ze.exports=function(Pe,Ae,ye,De){Ae=Ae||"&",ye=ye||"=";var me={};if(typeof Pe!="string"||Pe.length===0)return me;var we=/\+/g;Pe=Pe.split(Ae);var fe=1e3;De&&typeof De.maxKeys=="number"&&(fe=De.maxKeys);var z=Pe.length;fe>0&&z>fe&&(z=fe);for(var ee=0;ee<z;++ee){var ae=Pe[ee].replace(we,"%20"),re=ae.indexOf(ye),le,ue,pe,Ee;re>=0?(le=ae.substr(0,re),ue=ae.substr(re+1)):(le=ae,ue=""),pe=decodeURIComponent(le),Ee=decodeURIComponent(ue),ge(me,pe)?ce(me[pe])?me[pe].push(Ee):me[pe]=[me[pe],Ee]:me[pe]=Ee}return me};var ce=Array.isArray||function(Pe){return Object.prototype.toString.call(Pe)==="[object Array]"}},{}],384:[function(oe,Ze,Ne){"use strict";var ge=function(ye){switch(typeof ye){case"string":return ye;case"boolean":return ye?"true":"false";case"number":return isFinite(ye)?ye:"";default:return""}};Ze.exports=function(ye,De,me,we){return De=De||"&",me=me||"=",ye===null&&(ye=void 0),typeof ye=="object"?Pe(Ae(ye),function(fe){var z=encodeURIComponent(ge(fe))+me;return ce(ye[fe])?Pe(ye[fe],function(ee){return z+encodeURIComponent(ge(ee))}).join(De):z+encodeURIComponent(ge(ye[fe]))}).join(De):we?encodeURIComponent(ge(we))+me+encodeURIComponent(ge(ye)):""};var ce=Array.isArray||function(ye){return Object.prototype.toString.call(ye)==="[object Array]"};function Pe(ye,De){if(ye.map)return ye.map(De);for(var me=[],we=0;we<ye.length;we++)me.push(De(ye[we],we));return me}var Ae=Object.keys||function(ye){var De=[];for(var me in ye)Object.prototype.hasOwnProperty.call(ye,me)&&De.push(me);return De}},{}],385:[function(oe,Ze,Ne){"use strict";Ne.decode=Ne.parse=oe("./decode"),Ne.encode=Ne.stringify=oe("./encode")},{"./decode":383,"./encode":384}],386:[function(oe,Ze,Ne){"use strict";var ge=oe("process-nextick-args"),ce=Object.keys||function(ae){var re=[];for(var le in ae)re.push(le);return re};Ze.exports=fe;var Pe=Object.create(oe("core-util-is"));Pe.inherits=oe("inherits");var Ae=oe("./_stream_readable"),ye=oe("./_stream_writable");Pe.inherits(fe,Ae);for(var De=ce(ye.prototype),me=0;me<De.length;me++){var we=De[me];fe.prototype[we]||(fe.prototype[we]=ye.prototype[we])}function fe(ae){if(!(this instanceof fe))return new fe(ae);Ae.call(this,ae),ye.call(this,ae),ae&&ae.readable===!1&&(this.readable=!1),ae&&ae.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,ae&&ae.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",z)}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function z(){this.allowHalfOpen||this._writableState.ended||ge.nextTick(ee,this)}function ee(ae){ae.end()}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ae){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ae,this._writableState.destroyed=ae)}}),fe.prototype._destroy=function(ae,re){this.push(null),this.end(),ge.nextTick(re,ae)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(oe,Ze,Ne){"use strict";Ze.exports=Pe;var ge=oe("./_stream_transform"),ce=Object.create(oe("core-util-is"));ce.inherits=oe("inherits"),ce.inherits(Pe,ge);function Pe(Ae){if(!(this instanceof Pe))return new Pe(Ae);ge.call(this,Ae)}Pe.prototype._transform=function(Ae,ye,De){De(null,Ae)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(oe,Ze,Ne){(function(ge,ce){(function(){"use strict";var Pe=oe("process-nextick-args");Ze.exports=Oe;var Ae=oe("isarray"),ye;Oe.ReadableState=Fe;var De=oe("events").EventEmitter,me=function(xe,Ce){return xe.listeners(Ce).length},we=oe("./internal/streams/stream"),fe=oe("safe-buffer").Buffer,z=ce.Uint8Array||function(){};function ee(xe){return fe.from(xe)}function ae(xe){return fe.isBuffer(xe)||xe 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"),Ee=oe("./internal/streams/destroy"),be;re.inherits(Oe,we);var Ie=["error","close","destroy","pause","resume"];function Le(xe,Ce,Ye){if(typeof xe.prependListener=="function")return xe.prependListener(Ce,Ye);!xe._events||!xe._events[Ce]?xe.on(Ce,Ye):Ae(xe._events[Ce])?xe._events[Ce].unshift(Ye):xe._events[Ce]=[Ye,xe._events[Ce]]}function Fe(xe,Ce){ye=ye||oe("./_stream_duplex"),xe=xe||{};var Ye=Ce instanceof ye;this.objectMode=!!xe.objectMode,Ye&&(this.objectMode=this.objectMode||!!xe.readableObjectMode);var Je=xe.highWaterMark,Me=xe.readableHighWaterMark,Ge=this.objectMode?16:16*1024;Je||Je===0?this.highWaterMark=Je:Ye&&(Me||Me===0)?this.highWaterMark=Me:this.highWaterMark=Ge,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=xe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,xe.encoding&&(be||(be=oe("string_decoder/").StringDecoder),this.decoder=new be(xe.encoding),this.encoding=xe.encoding)}function Oe(xe){if(ye=ye||oe("./_stream_duplex"),!(this instanceof Oe))return new Oe(xe);this._readableState=new Fe(xe,this),this.readable=!0,xe&&(typeof xe.read=="function"&&(this._read=xe.read),typeof xe.destroy=="function"&&(this._destroy=xe.destroy)),we.call(this)}Object.defineProperty(Oe.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(xe){this._readableState&&(this._readableState.destroyed=xe)}}),Oe.prototype.destroy=Ee.destroy,Oe.prototype._undestroy=Ee.undestroy,Oe.prototype._destroy=function(xe,Ce){this.push(null),Ce(xe)},Oe.prototype.push=function(xe,Ce){var Ye=this._readableState,Je;return Ye.objectMode?Je=!0:typeof xe=="string"&&(Ce=Ce||Ye.defaultEncoding,Ce!==Ye.encoding&&(xe=fe.from(xe,Ce),Ce=""),Je=!0),je(this,xe,Ce,!1,Je)},Oe.prototype.unshift=function(xe){return je(this,xe,null,!0,!1)};function je(xe,Ce,Ye,Je,Me){var Ge=xe._readableState;if(Ce===null)Ge.reading=!1,ut(xe,Ge);else{var Ke;Me||(Ke=_e(Ge,Ce)),Ke?xe.emit("error",Ke):Ge.objectMode||Ce&&Ce.length>0?(typeof Ce!="string"&&!Ge.objectMode&&Object.getPrototypeOf(Ce)!==fe.prototype&&(Ce=ee(Ce)),Je?Ge.endEmitted?xe.emit("error",new Error("stream.unshift() after end event")):ze(xe,Ge,Ce,!0):Ge.ended?xe.emit("error",new Error("stream.push() after EOF")):(Ge.reading=!1,Ge.decoder&&!Ye?(Ce=Ge.decoder.write(Ce),Ge.objectMode||Ce.length!==0?ze(xe,Ge,Ce,!1):ot(xe,Ge)):ze(xe,Ge,Ce,!1))):Je||(Ge.reading=!1)}return Ue(Ge)}function ze(xe,Ce,Ye,Je){Ce.flowing&&Ce.length===0&&!Ce.sync?(xe.emit("data",Ye),xe.read(0)):(Ce.length+=Ce.objectMode?1:Ye.length,Je?Ce.buffer.unshift(Ye):Ce.buffer.push(Ye),Ce.needReadable&&yt(xe)),ot(xe,Ce)}function _e(xe,Ce){var Ye;return!ae(Ce)&&typeof Ce!="string"&&Ce!==void 0&&!xe.objectMode&&(Ye=new TypeError("Invalid non-string/buffer chunk")),Ye}function Ue(xe){return!xe.ended&&(xe.needReadable||xe.length<xe.highWaterMark||xe.length===0)}Oe.prototype.isPaused=function(){return this._readableState.flowing===!1},Oe.prototype.setEncoding=function(xe){return be||(be=oe("string_decoder/").StringDecoder),this._readableState.decoder=new be(xe),this._readableState.encoding=xe,this};var $e=8388608;function et(xe){return xe>=$e?xe=$e:(xe--,xe|=xe>>>1,xe|=xe>>>2,xe|=xe>>>4,xe|=xe>>>8,xe|=xe>>>16,xe++),xe}function lt(xe,Ce){return xe<=0||Ce.length===0&&Ce.ended?0:Ce.objectMode?1:xe!==xe?Ce.flowing&&Ce.length?Ce.buffer.head.data.length:Ce.length:(xe>Ce.highWaterMark&&(Ce.highWaterMark=et(xe)),xe<=Ce.length?xe:Ce.ended?Ce.length:(Ce.needReadable=!0,0))}Oe.prototype.read=function(xe){ue("read",xe),xe=parseInt(xe,10);var Ce=this._readableState,Ye=xe;if(xe!==0&&(Ce.emittedReadable=!1),xe===0&&Ce.needReadable&&(Ce.length>=Ce.highWaterMark||Ce.ended))return ue("read: emitReadable",Ce.length,Ce.ended),Ce.length===0&&Ce.ended?bt(this):yt(this),null;if(xe=lt(xe,Ce),xe===0&&Ce.ended)return Ce.length===0&&bt(this),null;var Je=Ce.needReadable;ue("need readable",Je),(Ce.length===0||Ce.length-xe<Ce.highWaterMark)&&(Je=!0,ue("length less than watermark",Je)),Ce.ended||Ce.reading?(Je=!1,ue("reading or ended",Je)):Je&&(ue("do read"),Ce.reading=!0,Ce.sync=!0,Ce.length===0&&(Ce.needReadable=!0),this._read(Ce.highWaterMark),Ce.sync=!1,Ce.reading||(xe=lt(Ye,Ce)));var Me;return xe>0?Me=Tt(xe,Ce):Me=null,Me===null?(Ce.needReadable=!0,xe=0):Ce.length-=xe,Ce.length===0&&(Ce.ended||(Ce.needReadable=!0),Ye!==xe&&Ce.ended&&bt(this)),Me!==null&&this.emit("data",Me),Me};function ut(xe,Ce){if(!Ce.ended){if(Ce.decoder){var Ye=Ce.decoder.end();Ye&&Ye.length&&(Ce.buffer.push(Ye),Ce.length+=Ce.objectMode?1:Ye.length)}Ce.ended=!0,yt(xe)}}function yt(xe){var Ce=xe._readableState;Ce.needReadable=!1,Ce.emittedReadable||(ue("emitReadable",Ce.flowing),Ce.emittedReadable=!0,Ce.sync?Pe.nextTick(qe,xe):qe(xe))}function qe(xe){ue("emit readable"),xe.emit("readable"),vt(xe)}function ot(xe,Ce){Ce.readingMore||(Ce.readingMore=!0,Pe.nextTick(dt,xe,Ce))}function dt(xe,Ce){for(var Ye=Ce.length;!Ce.reading&&!Ce.flowing&&!Ce.ended&&Ce.length<Ce.highWaterMark&&(ue("maybeReadMore read 0"),xe.read(0),Ye!==Ce.length);)Ye=Ce.length;Ce.readingMore=!1}Oe.prototype._read=function(xe){this.emit("error",new Error("_read() is not implemented"))},Oe.prototype.pipe=function(xe,Ce){var Ye=this,Je=this._readableState;switch(Je.pipesCount){case 0:Je.pipes=xe;break;case 1:Je.pipes=[Je.pipes,xe];break;default:Je.pipes.push(xe);break}Je.pipesCount+=1,ue("pipe count=%d opts=%j",Je.pipesCount,Ce);var Me=(!Ce||Ce.end!==!1)&&xe!==ge.stdout&&xe!==ge.stderr,Ge=Me?Ve:Xt;Je.endEmitted?Pe.nextTick(Ge):Ye.once("end",Ge),xe.on("unpipe",Ke);function Ke(sn,Ft){ue("onunpipe"),sn===Ye&&Ft&&Ft.hasUnpiped===!1&&(Ft.hasUnpiped=!0,At())}function Ve(){ue("onend"),xe.end()}var Qe=St(Ye);xe.on("drain",Qe);var ht=!1;function At(){ue("cleanup"),xe.removeListener("close",jt),xe.removeListener("finish",Rt),xe.removeListener("drain",Qe),xe.removeListener("error",Kt),xe.removeListener("unpipe",Ke),Ye.removeListener("end",Ve),Ye.removeListener("end",Xt),Ye.removeListener("data",Ot),ht=!0,Je.awaitDrain&&(!xe._writableState||xe._writableState.needDrain)&&Qe()}var pt=!1;Ye.on("data",Ot);function Ot(sn){ue("ondata"),pt=!1;var Ft=xe.write(sn);Ft===!1&&!pt&&((Je.pipesCount===1&&Je.pipes===xe||Je.pipesCount>1&&nt(Je.pipes,xe)!==-1)&&!ht&&(ue("false write response, pause",Ye._readableState.awaitDrain),Ye._readableState.awaitDrain++,pt=!0),Ye.pause())}function Kt(sn){ue("onerror",sn),Xt(),xe.removeListener("error",Kt),me(xe,"error")===0&&xe.emit("error",sn)}Le(xe,"error",Kt);function jt(){xe.removeListener("finish",Rt),Xt()}xe.once("close",jt);function Rt(){ue("onfinish"),xe.removeListener("close",jt),Xt()}xe.once("finish",Rt);function Xt(){ue("unpipe"),Ye.unpipe(xe)}return xe.emit("pipe",Ye),Je.flowing||(ue("pipe resume"),Ye.resume()),xe};function St(xe){return function(){var Ce=xe._readableState;ue("pipeOnDrain",Ce.awaitDrain),Ce.awaitDrain&&Ce.awaitDrain--,Ce.awaitDrain===0&&me(xe,"data")&&(Ce.flowing=!0,vt(xe))}}Oe.prototype.unpipe=function(xe){var Ce=this._readableState,Ye={hasUnpiped:!1};if(Ce.pipesCount===0)return this;if(Ce.pipesCount===1)return xe&&xe!==Ce.pipes?this:(xe||(xe=Ce.pipes),Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1,xe&&xe.emit("unpipe",this,Ye),this);if(!xe){var Je=Ce.pipes,Me=Ce.pipesCount;Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1;for(var Ge=0;Ge<Me;Ge++)Je[Ge].emit("unpipe",this,Ye);return this}var Ke=nt(Ce.pipes,xe);return Ke===-1?this:(Ce.pipes.splice(Ke,1),Ce.pipesCount-=1,Ce.pipesCount===1&&(Ce.pipes=Ce.pipes[0]),xe.emit("unpipe",this,Ye),this)},Oe.prototype.on=function(xe,Ce){var Ye=we.prototype.on.call(this,xe,Ce);if(xe==="data")this._readableState.flowing!==!1&&this.resume();else if(xe==="readable"){var Je=this._readableState;!Je.endEmitted&&!Je.readableListening&&(Je.readableListening=Je.needReadable=!0,Je.emittedReadable=!1,Je.reading?Je.length&&yt(this):Pe.nextTick(xt,this))}return Ye},Oe.prototype.addListener=Oe.prototype.on;function xt(xe){ue("readable nexttick read 0"),xe.read(0)}Oe.prototype.resume=function(){var xe=this._readableState;return xe.flowing||(ue("resume"),xe.flowing=!0,ft(this,xe)),this};function ft(xe,Ce){Ce.resumeScheduled||(Ce.resumeScheduled=!0,Pe.nextTick(gt,xe,Ce))}function gt(xe,Ce){Ce.reading||(ue("resume read 0"),xe.read(0)),Ce.resumeScheduled=!1,Ce.awaitDrain=0,xe.emit("resume"),vt(xe),Ce.flowing&&!Ce.reading&&xe.read(0)}Oe.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 vt(xe){var Ce=xe._readableState;for(ue("flow",Ce.flowing);Ce.flowing&&xe.read()!==null;);}Oe.prototype.wrap=function(xe){var Ce=this,Ye=this._readableState,Je=!1;xe.on("end",function(){if(ue("wrapped end"),Ye.decoder&&!Ye.ended){var Ke=Ye.decoder.end();Ke&&Ke.length&&Ce.push(Ke)}Ce.push(null)}),xe.on("data",function(Ke){if(ue("wrapped data"),Ye.decoder&&(Ke=Ye.decoder.write(Ke)),!(Ye.objectMode&&Ke==null)&&!(!Ye.objectMode&&(!Ke||!Ke.length))){var Ve=Ce.push(Ke);Ve||(Je=!0,xe.pause())}});for(var Me in xe)this[Me]===void 0&&typeof xe[Me]=="function"&&(this[Me]=function(Ke){return function(){return xe[Ke].apply(xe,arguments)}}(Me));for(var Ge=0;Ge<Ie.length;Ge++)xe.on(Ie[Ge],this.emit.bind(this,Ie[Ge]));return this._read=function(Ke){ue("wrapped _read",Ke),Je&&(Je=!1,xe.resume())},this},Object.defineProperty(Oe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Oe._fromList=Tt;function Tt(xe,Ce){if(Ce.length===0)return null;var Ye;return Ce.objectMode?Ye=Ce.buffer.shift():!xe||xe>=Ce.length?(Ce.decoder?Ye=Ce.buffer.join(""):Ce.buffer.length===1?Ye=Ce.buffer.head.data:Ye=Ce.buffer.concat(Ce.length),Ce.buffer.clear()):Ye=Et(xe,Ce.buffer,Ce.decoder),Ye}function Et(xe,Ce,Ye){var Je;return xe<Ce.head.data.length?(Je=Ce.head.data.slice(0,xe),Ce.head.data=Ce.head.data.slice(xe)):xe===Ce.head.data.length?Je=Ce.shift():Je=Ye?Zt(xe,Ce):wt(xe,Ce),Je}function Zt(xe,Ce){var Ye=Ce.head,Je=1,Me=Ye.data;for(xe-=Me.length;Ye=Ye.next;){var Ge=Ye.data,Ke=xe>Ge.length?Ge.length:xe;if(Ke===Ge.length?Me+=Ge:Me+=Ge.slice(0,xe),xe-=Ke,xe===0){Ke===Ge.length?(++Je,Ye.next?Ce.head=Ye.next:Ce.head=Ce.tail=null):(Ce.head=Ye,Ye.data=Ge.slice(Ke));break}++Je}return Ce.length-=Je,Me}function wt(xe,Ce){var Ye=fe.allocUnsafe(xe),Je=Ce.head,Me=1;for(Je.data.copy(Ye),xe-=Je.data.length;Je=Je.next;){var Ge=Je.data,Ke=xe>Ge.length?Ge.length:xe;if(Ge.copy(Ye,Ye.length-xe,0,Ke),xe-=Ke,xe===0){Ke===Ge.length?(++Me,Je.next?Ce.head=Je.next:Ce.head=Ce.tail=null):(Ce.head=Je,Je.data=Ge.slice(Ke));break}++Me}return Ce.length-=Me,Ye}function bt(xe){var Ce=xe._readableState;if(Ce.length>0)throw new Error('"endReadable()" called on non-empty stream');Ce.endEmitted||(Ce.ended=!0,Pe.nextTick(it,Ce,xe))}function it(xe,Ce){!xe.endEmitted&&xe.length===0&&(xe.endEmitted=!0,Ce.readable=!1,Ce.emit("end"))}function nt(xe,Ce){for(var Ye=0,Je=xe.length;Ye<Je;Ye++)if(xe[Ye]===Ce)return Ye;return-1}}).call(this)}).call(this,oe("_process"),typeof fn!="undefined"?fn: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,Ze,Ne){"use strict";Ze.exports=Ae;var ge=oe("./_stream_duplex"),ce=Object.create(oe("core-util-is"));ce.inherits=oe("inherits"),ce.inherits(Ae,ge);function Pe(me,we){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,we!=null&&this.push(we),z(me);var ee=this._readableState;ee.reading=!1,(ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}function Ae(me){if(!(this instanceof Ae))return new Ae(me);ge.call(this,me),this._transformState={afterTransform:Pe.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(we,fe){De(me,we,fe)}):De(this,null,null)}Ae.prototype.push=function(me,we){return this._transformState.needTransform=!1,ge.prototype.push.call(this,me,we)},Ae.prototype._transform=function(me,we,fe){throw new Error("_transform() is not implemented")},Ae.prototype._write=function(me,we,fe){var z=this._transformState;if(z.writecb=fe,z.writechunk=me,z.writeencoding=we,!z.transforming){var ee=this._readableState;(z.needTransform||ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}},Ae.prototype._read=function(me){var we=this._transformState;we.writechunk!==null&&we.writecb&&!we.transforming?(we.transforming=!0,this._transform(we.writechunk,we.writeencoding,we.afterTransform)):we.needTransform=!0},Ae.prototype._destroy=function(me,we){var fe=this;ge.prototype._destroy.call(this,me,function(z){we(z),fe.emit("close")})};function De(me,we,fe){if(we)return me.emit("error",we);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,Ze,Ne){(function(ge,ce,Pe){(function(){"use strict";var Ae=oe("process-nextick-args");Ze.exports=Le;function ye(gt,vt,Tt){this.chunk=gt,this.encoding=vt,this.callback=Tt,this.next=null}function De(gt){var vt=this;this.next=null,this.entry=null,this.finish=function(){ft(vt,gt)}}var me=!ge.browser&&["v0.10","v0.9."].indexOf(ge.version.slice(0,5))>-1?Pe:Ae.nextTick,we;Le.WritableState=be;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(gt){return ae.from(gt)}function ue(gt){return ae.isBuffer(gt)||gt instanceof re}var pe=oe("./internal/streams/destroy");fe.inherits(Le,ee);function Ee(){}function be(gt,vt){we=we||oe("./_stream_duplex"),gt=gt||{};var Tt=vt instanceof we;this.objectMode=!!gt.objectMode,Tt&&(this.objectMode=this.objectMode||!!gt.writableObjectMode);var Et=gt.highWaterMark,Zt=gt.writableHighWaterMark,wt=this.objectMode?16:16*1024;Et||Et===0?this.highWaterMark=Et:Tt&&(Zt||Zt===0)?this.highWaterMark=Zt:this.highWaterMark=wt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var bt=gt.decodeStrings===!1;this.decodeStrings=!bt,this.defaultEncoding=gt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(it){et(vt,it)},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 De(this)}be.prototype.getBuffer=function(){for(var vt=this.bufferedRequest,Tt=[];vt;)Tt.push(vt),vt=vt.next;return Tt},function(){try{Object.defineProperty(be.prototype,"buffer",{get:z.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(gt){}}();var Ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(Le,Symbol.hasInstance,{value:function(gt){return Ie.call(this,gt)?!0:this!==Le?!1:gt&>._writableState instanceof be}})):Ie=function(gt){return gt instanceof this};function Le(gt){if(we=we||oe("./_stream_duplex"),!Ie.call(Le,this)&&!(this instanceof we))return new Le(gt);this._writableState=new be(gt,this),this.writable=!0,gt&&(typeof gt.write=="function"&&(this._write=gt.write),typeof gt.writev=="function"&&(this._writev=gt.writev),typeof gt.destroy=="function"&&(this._destroy=gt.destroy),typeof gt.final=="function"&&(this._final=gt.final)),ee.call(this)}Le.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Fe(gt,vt){var Tt=new Error("write after end");gt.emit("error",Tt),Ae.nextTick(vt,Tt)}function Oe(gt,vt,Tt,Et){var Zt=!0,wt=!1;return Tt===null?wt=new TypeError("May not write null values to stream"):typeof Tt!="string"&&Tt!==void 0&&!vt.objectMode&&(wt=new TypeError("Invalid non-string/buffer chunk")),wt&&(gt.emit("error",wt),Ae.nextTick(Et,wt),Zt=!1),Zt}Le.prototype.write=function(gt,vt,Tt){var Et=this._writableState,Zt=!1,wt=!Et.objectMode&&ue(gt);return wt&&!ae.isBuffer(gt)&&(gt=le(gt)),typeof vt=="function"&&(Tt=vt,vt=null),wt?vt="buffer":vt||(vt=Et.defaultEncoding),typeof Tt!="function"&&(Tt=Ee),Et.ended?Fe(this,Tt):(wt||Oe(this,Et,gt,Tt))&&(Et.pendingcb++,Zt=ze(this,Et,wt,gt,vt,Tt)),Zt},Le.prototype.cork=function(){var gt=this._writableState;gt.corked++},Le.prototype.uncork=function(){var gt=this._writableState;gt.corked&&(gt.corked--,!gt.writing&&!gt.corked&&!gt.finished&&!gt.bufferProcessing&>.bufferedRequest&&yt(this,gt))},Le.prototype.setDefaultEncoding=function(vt){if(typeof vt=="string"&&(vt=vt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((vt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+vt);return this._writableState.defaultEncoding=vt,this};function je(gt,vt,Tt){return!gt.objectMode&>.decodeStrings!==!1&&typeof vt=="string"&&(vt=ae.from(vt,Tt)),vt}Object.defineProperty(Le.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ze(gt,vt,Tt,Et,Zt,wt){if(!Tt){var bt=je(vt,Et,Zt);Et!==bt&&(Tt=!0,Zt="buffer",Et=bt)}var it=vt.objectMode?1:Et.length;vt.length+=it;var nt=vt.length<vt.highWaterMark;if(nt||(vt.needDrain=!0),vt.writing||vt.corked){var xe=vt.lastBufferedRequest;vt.lastBufferedRequest={chunk:Et,encoding:Zt,isBuf:Tt,callback:wt,next:null},xe?xe.next=vt.lastBufferedRequest:vt.bufferedRequest=vt.lastBufferedRequest,vt.bufferedRequestCount+=1}else _e(gt,vt,!1,it,Et,Zt,wt);return nt}function _e(gt,vt,Tt,Et,Zt,wt,bt){vt.writelen=Et,vt.writecb=bt,vt.writing=!0,vt.sync=!0,Tt?gt._writev(Zt,vt.onwrite):gt._write(Zt,wt,vt.onwrite),vt.sync=!1}function Ue(gt,vt,Tt,Et,Zt){--vt.pendingcb,Tt?(Ae.nextTick(Zt,Et),Ae.nextTick(St,gt,vt),gt._writableState.errorEmitted=!0,gt.emit("error",Et)):(Zt(Et),gt._writableState.errorEmitted=!0,gt.emit("error",Et),St(gt,vt))}function $e(gt){gt.writing=!1,gt.writecb=null,gt.length-=gt.writelen,gt.writelen=0}function et(gt,vt){var Tt=gt._writableState,Et=Tt.sync,Zt=Tt.writecb;if($e(Tt),vt)Ue(gt,Tt,Et,vt,Zt);else{var wt=qe(Tt);!wt&&!Tt.corked&&!Tt.bufferProcessing&&Tt.bufferedRequest&&yt(gt,Tt),Et?me(lt,gt,Tt,wt,Zt):lt(gt,Tt,wt,Zt)}}function lt(gt,vt,Tt,Et){Tt||ut(gt,vt),vt.pendingcb--,Et(),St(gt,vt)}function ut(gt,vt){vt.length===0&&vt.needDrain&&(vt.needDrain=!1,gt.emit("drain"))}function yt(gt,vt){vt.bufferProcessing=!0;var Tt=vt.bufferedRequest;if(gt._writev&&Tt&&Tt.next){var Et=vt.bufferedRequestCount,Zt=new Array(Et),wt=vt.corkedRequestsFree;wt.entry=Tt;for(var bt=0,it=!0;Tt;)Zt[bt]=Tt,Tt.isBuf||(it=!1),Tt=Tt.next,bt+=1;Zt.allBuffers=it,_e(gt,vt,!0,vt.length,Zt,"",wt.finish),vt.pendingcb++,vt.lastBufferedRequest=null,wt.next?(vt.corkedRequestsFree=wt.next,wt.next=null):vt.corkedRequestsFree=new De(vt),vt.bufferedRequestCount=0}else{for(;Tt;){var nt=Tt.chunk,xe=Tt.encoding,Ce=Tt.callback,Ye=vt.objectMode?1:nt.length;if(_e(gt,vt,!1,Ye,nt,xe,Ce),Tt=Tt.next,vt.bufferedRequestCount--,vt.writing)break}Tt===null&&(vt.lastBufferedRequest=null)}vt.bufferedRequest=Tt,vt.bufferProcessing=!1}Le.prototype._write=function(gt,vt,Tt){Tt(new Error("_write() is not implemented"))},Le.prototype._writev=null,Le.prototype.end=function(gt,vt,Tt){var Et=this._writableState;typeof gt=="function"?(Tt=gt,gt=null,vt=null):typeof vt=="function"&&(Tt=vt,vt=null),gt!=null&&this.write(gt,vt),Et.corked&&(Et.corked=1,this.uncork()),!Et.ending&&!Et.finished&&xt(this,Et,Tt)};function qe(gt){return gt.ending&>.length===0&>.bufferedRequest===null&&!gt.finished&&!gt.writing}function ot(gt,vt){gt._final(function(Tt){vt.pendingcb--,Tt&>.emit("error",Tt),vt.prefinished=!0,gt.emit("prefinish"),St(gt,vt)})}function dt(gt,vt){!vt.prefinished&&!vt.finalCalled&&(typeof gt._final=="function"?(vt.pendingcb++,vt.finalCalled=!0,Ae.nextTick(ot,gt,vt)):(vt.prefinished=!0,gt.emit("prefinish")))}function St(gt,vt){var Tt=qe(vt);return Tt&&(dt(gt,vt),vt.pendingcb===0&&(vt.finished=!0,gt.emit("finish"))),Tt}function xt(gt,vt,Tt){vt.ending=!0,St(gt,vt),Tt&&(vt.finished?Ae.nextTick(Tt):gt.once("finish",Tt)),vt.ended=!0,gt.writable=!1}function ft(gt,vt,Tt){var Et=gt.entry;for(gt.entry=null;Et;){var Zt=Et.callback;vt.pendingcb--,Zt(Tt),Et=Et.next}vt.corkedRequestsFree?vt.corkedRequestsFree.next=gt:vt.corkedRequestsFree=gt}Object.defineProperty(Le.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(gt){this._writableState&&(this._writableState.destroyed=gt)}}),Le.prototype.destroy=pe.destroy,Le.prototype._undestroy=pe.undestroy,Le.prototype._destroy=function(gt,vt){this.end(),vt(gt)}}).call(this)}).call(this,oe("_process"),typeof fn!="undefined"?fn: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,Ze,Ne){"use strict";function ge(ye,De){if(!(ye instanceof De))throw new TypeError("Cannot call a class as a function")}var ce=oe("safe-buffer").Buffer,Pe=oe("util");function Ae(ye,De,me){ye.copy(De,me)}Ze.exports=function(){function ye(){ge(this,ye),this.head=null,this.tail=null,this.length=0}return ye.prototype.push=function(me){var we={data:me,next:null};this.length>0?this.tail.next=we:this.head=we,this.tail=we,++this.length},ye.prototype.unshift=function(me){var we={data:me,next:this.head};this.length===0&&(this.tail=we),this.head=we,++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 we=this.head,fe=""+we.data;we=we.next;)fe+=me+we.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 we=ce.allocUnsafe(me>>>0),fe=this.head,z=0;fe;)Ae(fe.data,we,z),z+=fe.data.length,fe=fe.next;return we},ye}(),Pe&&Pe.inspect&&Pe.inspect.custom&&(Ze.exports.prototype[Pe.inspect.custom]=function(){var ye=Pe.inspect({length:this.length});return this.constructor.name+" "+ye})},{"safe-buffer":396,util:89}],392:[function(oe,Ze,Ne){"use strict";var ge=oe("process-nextick-args");function ce(ye,De){var me=this,we=this._readableState&&this._readableState.destroyed,fe=this._writableState&&this._writableState.destroyed;return we||fe?(De?De(ye):ye&&(!this._writableState||!this._writableState.errorEmitted)&&ge.nextTick(Ae,this,ye),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ye||null,function(z){!De&&z?(ge.nextTick(Ae,me,z),me._writableState&&(me._writableState.errorEmitted=!0)):De&&De(z)}),this)}function Pe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ae(ye,De){ye.emit("error",De)}Ze.exports={destroy:ce,undestroy:Pe}},{"process-nextick-args":380}],393:[function(oe,Ze,Ne){Ze.exports=oe("events").EventEmitter},{events:344}],394:[function(oe,Ze,Ne){Ne=Ze.exports=oe("./lib/_stream_readable.js"),Ne.Stream=Ne,Ne.Readable=Ne,Ne.Writable=oe("./lib/_stream_writable.js"),Ne.Duplex=oe("./lib/_stream_duplex.js"),Ne.Transform=oe("./lib/_stream_transform.js"),Ne.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,Ze,Ne){var ge=function(ce){"use strict";var Pe=Object.prototype,Ae=Pe.hasOwnProperty,ye,De=typeof Symbol=="function"?Symbol:{},me=De.iterator||"@@iterator",we=De.asyncIterator||"@@asyncIterator",fe=De.toStringTag||"@@toStringTag";function z(dt,St,xt){return Object.defineProperty(dt,St,{value:xt,enumerable:!0,configurable:!0,writable:!0}),dt[St]}try{z({},"")}catch(dt){z=function(St,xt,ft){return St[xt]=ft}}function ee(dt,St,xt,ft){var gt=St&&St.prototype instanceof be?St:be,vt=Object.create(gt.prototype),Tt=new yt(ft||[]);return vt._invoke=$e(dt,xt,Tt),vt}ce.wrap=ee;function ae(dt,St,xt){try{return{type:"normal",arg:dt.call(St,xt)}}catch(ft){return{type:"throw",arg:ft}}}var re="suspendedStart",le="suspendedYield",ue="executing",pe="completed",Ee={};function be(){}function Ie(){}function Le(){}var Fe={};z(Fe,me,function(){return this});var Oe=Object.getPrototypeOf,je=Oe&&Oe(Oe(qe([])));je&&je!==Pe&&Ae.call(je,me)&&(Fe=je);var ze=Le.prototype=be.prototype=Object.create(Fe);Ie.prototype=Le,z(ze,"constructor",Le),z(Le,"constructor",Ie),Ie.displayName=z(Le,fe,"GeneratorFunction");function _e(dt){["next","throw","return"].forEach(function(St){z(dt,St,function(xt){return this._invoke(St,xt)})})}ce.isGeneratorFunction=function(dt){var St=typeof dt=="function"&&dt.constructor;return St?St===Ie||(St.displayName||St.name)==="GeneratorFunction":!1},ce.mark=function(dt){return Object.setPrototypeOf?Object.setPrototypeOf(dt,Le):(dt.__proto__=Le,z(dt,fe,"GeneratorFunction")),dt.prototype=Object.create(ze),dt},ce.awrap=function(dt){return{__await:dt}};function Ue(dt,St){function xt(vt,Tt,Et,Zt){var wt=ae(dt[vt],dt,Tt);if(wt.type==="throw")Zt(wt.arg);else{var bt=wt.arg,it=bt.value;return it&&typeof it=="object"&&Ae.call(it,"__await")?St.resolve(it.__await).then(function(nt){xt("next",nt,Et,Zt)},function(nt){xt("throw",nt,Et,Zt)}):St.resolve(it).then(function(nt){bt.value=nt,Et(bt)},function(nt){return xt("throw",nt,Et,Zt)})}}var ft;function gt(vt,Tt){function Et(){return new St(function(Zt,wt){xt(vt,Tt,Zt,wt)})}return ft=ft?ft.then(Et,Et):Et()}this._invoke=gt}_e(Ue.prototype),z(Ue.prototype,we,function(){return this}),ce.AsyncIterator=Ue,ce.async=function(dt,St,xt,ft,gt){gt===void 0&&(gt=Promise);var vt=new Ue(ee(dt,St,xt,ft),gt);return ce.isGeneratorFunction(St)?vt:vt.next().then(function(Tt){return Tt.done?Tt.value:vt.next()})};function $e(dt,St,xt){var ft=re;return function(vt,Tt){if(ft===ue)throw new Error("Generator is already running");if(ft===pe){if(vt==="throw")throw Tt;return ot()}for(xt.method=vt,xt.arg=Tt;;){var Et=xt.delegate;if(Et){var Zt=et(Et,xt);if(Zt){if(Zt===Ee)continue;return Zt}}if(xt.method==="next")xt.sent=xt._sent=xt.arg;else if(xt.method==="throw"){if(ft===re)throw ft=pe,xt.arg;xt.dispatchException(xt.arg)}else xt.method==="return"&&xt.abrupt("return",xt.arg);ft=ue;var wt=ae(dt,St,xt);if(wt.type==="normal"){if(ft=xt.done?pe:le,wt.arg===Ee)continue;return{value:wt.arg,done:xt.done}}else wt.type==="throw"&&(ft=pe,xt.method="throw",xt.arg=wt.arg)}}}function et(dt,St){var xt=dt.iterator[St.method];if(xt===ye){if(St.delegate=null,St.method==="throw"){if(dt.iterator.return&&(St.method="return",St.arg=ye,et(dt,St),St.method==="throw"))return Ee;St.method="throw",St.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ee}var ft=ae(xt,dt.iterator,St.arg);if(ft.type==="throw")return St.method="throw",St.arg=ft.arg,St.delegate=null,Ee;var gt=ft.arg;if(!gt)return St.method="throw",St.arg=new TypeError("iterator result is not an object"),St.delegate=null,Ee;if(gt.done)St[dt.resultName]=gt.value,St.next=dt.nextLoc,St.method!=="return"&&(St.method="next",St.arg=ye);else return gt;return St.delegate=null,Ee}_e(ze),z(ze,fe,"Generator"),z(ze,me,function(){return this}),z(ze,"toString",function(){return"[object Generator]"});function lt(dt){var St={tryLoc:dt[0]};1 in dt&&(St.catchLoc=dt[1]),2 in dt&&(St.finallyLoc=dt[2],St.afterLoc=dt[3]),this.tryEntries.push(St)}function ut(dt){var St=dt.completion||{};St.type="normal",delete St.arg,dt.completion=St}function yt(dt){this.tryEntries=[{tryLoc:"root"}],dt.forEach(lt,this),this.reset(!0)}ce.keys=function(dt){var St=[];for(var xt in dt)St.push(xt);return St.reverse(),function ft(){for(;St.length;){var gt=St.pop();if(gt in dt)return ft.value=gt,ft.done=!1,ft}return ft.done=!0,ft}};function qe(dt){if(dt){var St=dt[me];if(St)return St.call(dt);if(typeof dt.next=="function")return dt;if(!isNaN(dt.length)){var xt=-1,ft=function gt(){for(;++xt<dt.length;)if(Ae.call(dt,xt))return gt.value=dt[xt],gt.done=!1,gt;return gt.value=ye,gt.done=!0,gt};return ft.next=ft}}return{next:ot}}ce.values=qe;function ot(){return{value:ye,done:!0}}return yt.prototype={constructor:yt,reset:function(dt){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(ut),!dt)for(var St in this)St.charAt(0)==="t"&&Ae.call(this,St)&&!isNaN(+St.slice(1))&&(this[St]=ye)},stop:function(){this.done=!0;var dt=this.tryEntries[0],St=dt.completion;if(St.type==="throw")throw St.arg;return this.rval},dispatchException:function(dt){if(this.done)throw dt;var St=this;function xt(Zt,wt){return vt.type="throw",vt.arg=dt,St.next=Zt,wt&&(St.method="next",St.arg=ye),!!wt}for(var ft=this.tryEntries.length-1;ft>=0;--ft){var gt=this.tryEntries[ft],vt=gt.completion;if(gt.tryLoc==="root")return xt("end");if(gt.tryLoc<=this.prev){var Tt=Ae.call(gt,"catchLoc"),Et=Ae.call(gt,"finallyLoc");if(Tt&&Et){if(this.prev<gt.catchLoc)return xt(gt.catchLoc,!0);if(this.prev<gt.finallyLoc)return xt(gt.finallyLoc)}else if(Tt){if(this.prev<gt.catchLoc)return xt(gt.catchLoc,!0)}else if(Et){if(this.prev<gt.finallyLoc)return xt(gt.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(dt,St){for(var xt=this.tryEntries.length-1;xt>=0;--xt){var ft=this.tryEntries[xt];if(ft.tryLoc<=this.prev&&Ae.call(ft,"finallyLoc")&&this.prev<ft.finallyLoc){var gt=ft;break}}gt&&(dt==="break"||dt==="continue")&>.tryLoc<=St&&St<=gt.finallyLoc&&(gt=null);var vt=gt?gt.completion:{};return vt.type=dt,vt.arg=St,gt?(this.method="next",this.next=gt.finallyLoc,Ee):this.complete(vt)},complete:function(dt,St){if(dt.type==="throw")throw dt.arg;return dt.type==="break"||dt.type==="continue"?this.next=dt.arg:dt.type==="return"?(this.rval=this.arg=dt.arg,this.method="return",this.next="end"):dt.type==="normal"&&St&&(this.next=St),Ee},finish:function(dt){for(var St=this.tryEntries.length-1;St>=0;--St){var xt=this.tryEntries[St];if(xt.finallyLoc===dt)return this.complete(xt.completion,xt.afterLoc),ut(xt),Ee}},catch:function(dt){for(var St=this.tryEntries.length-1;St>=0;--St){var xt=this.tryEntries[St];if(xt.tryLoc===dt){var ft=xt.completion;if(ft.type==="throw"){var gt=ft.arg;ut(xt)}return gt}}throw new Error("illegal catch attempt")},delegateYield:function(dt,St,xt){return this.delegate={iterator:qe(dt),resultName:St,nextLoc:xt},this.method==="next"&&(this.arg=ye),Ee}},ce}(typeof Ze=="object"?Ze.exports:{});try{regeneratorRuntime=ge}catch(ce){typeof globalThis=="object"?globalThis.regeneratorRuntime=ge:Function("r","regeneratorRuntime = r")(ge)}},{}],396:[function(oe,Ze,Ne){var ge=oe("buffer"),ce=ge.Buffer;function Pe(ye,De){for(var me in ye)De[me]=ye[me]}ce.from&&ce.alloc&&ce.allocUnsafe&&ce.allocUnsafeSlow?Ze.exports=ge:(Pe(ge,Ne),Ne.Buffer=Ae);function Ae(ye,De,me){return ce(ye,De,me)}Pe(ce,Ae),Ae.from=function(ye,De,me){if(typeof ye=="number")throw new TypeError("Argument must not be a number");return ce(ye,De,me)},Ae.alloc=function(ye,De,me){if(typeof ye!="number")throw new TypeError("Argument must be a number");var we=ce(ye);return De!==void 0?typeof me=="string"?we.fill(De,me):we.fill(De):we.fill(0),we},Ae.allocUnsafe=function(ye){if(typeof ye!="number")throw new TypeError("Argument must be a number");return ce(ye)},Ae.allocUnsafeSlow=function(ye){if(typeof ye!="number")throw new TypeError("Argument must be a number");return ge.SlowBuffer(ye)}},{buffer:90}],397:[function(oe,Ze,Ne){(function(ge){(function(){(function(ce){ce.parser=function(bt,it){return new Ae(bt,it)},ce.SAXParser=Ae,ce.SAXStream=ee,ce.createStream=z,ce.MAX_BUFFER_LENGTH=64*1024;var Pe=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ce.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function Ae(bt,it){if(!(this instanceof Ae))return new Ae(bt,it);var nt=this;De(nt),nt.q=nt.c="",nt.bufferCheckPosition=ce.MAX_BUFFER_LENGTH,nt.opt=it||{},nt.opt.lowercase=nt.opt.lowercase||nt.opt.lowercasetags,nt.looseCase=nt.opt.lowercase?"toLowerCase":"toUpperCase",nt.tags=[],nt.closed=nt.closedRoot=nt.sawRoot=!1,nt.tag=nt.error=null,nt.strict=!!bt,nt.noscript=!!(bt||nt.opt.noscript),nt.state=Ue.BEGIN,nt.strictEntities=nt.opt.strictEntities,nt.ENTITIES=nt.strictEntities?Object.create(ce.XML_ENTITIES):Object.create(ce.ENTITIES),nt.attribList=[],nt.opt.xmlns&&(nt.ns=Object.create(pe)),nt.trackPosition=nt.opt.position!==!1,nt.trackPosition&&(nt.position=nt.line=nt.column=0),et(nt,"onready")}Object.create||(Object.create=function(bt){function it(){}it.prototype=bt;var nt=new it;return nt}),Object.keys||(Object.keys=function(bt){var it=[];for(var nt in bt)bt.hasOwnProperty(nt)&&it.push(nt);return it});function ye(bt){for(var it=Math.max(ce.MAX_BUFFER_LENGTH,10),nt=0,xe=0,Ce=Pe.length;xe<Ce;xe++){var Ye=bt[Pe[xe]].length;if(Ye>it)switch(Pe[xe]){case"textNode":ut(bt);break;case"cdata":lt(bt,"oncdata",bt.cdata),bt.cdata="";break;case"script":lt(bt,"onscript",bt.script),bt.script="";break;default:qe(bt,"Max buffer length exceeded: "+Pe[xe])}nt=Math.max(nt,Ye)}var Je=ce.MAX_BUFFER_LENGTH-nt;bt.bufferCheckPosition=Je+bt.position}function De(bt){for(var it=0,nt=Pe.length;it<nt;it++)bt[Pe[it]]=""}function me(bt){ut(bt),bt.cdata!==""&&(lt(bt,"oncdata",bt.cdata),bt.cdata=""),bt.script!==""&&(lt(bt,"onscript",bt.script),bt.script="")}Ae.prototype={end:function(){ot(this)},write:wt,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){me(this)}};var we;try{we=oe("stream").Stream}catch(bt){we=function(){}}var fe=ce.EVENTS.filter(function(bt){return bt!=="error"&&bt!=="end"});function z(bt,it){return new ee(bt,it)}function ee(bt,it){if(!(this instanceof ee))return new ee(bt,it);we.apply(this),this._parser=new Ae(bt,it),this.writable=!0,this.readable=!0;var nt=this;this._parser.onend=function(){nt.emit("end")},this._parser.onerror=function(xe){nt.emit("error",xe),nt._parser.error=null},this._decoder=null,fe.forEach(function(xe){Object.defineProperty(nt,"on"+xe,{get:function(){return nt._parser["on"+xe]},set:function(Ce){if(!Ce)return nt.removeAllListeners(xe),nt._parser["on"+xe]=Ce,Ce;nt.on(xe,Ce)},enumerable:!0,configurable:!1})})}ee.prototype=Object.create(we.prototype,{constructor:{value:ee}}),ee.prototype.write=function(bt){if(typeof ge=="function"&&typeof ge.isBuffer=="function"&&ge.isBuffer(bt)){if(!this._decoder){var it=oe("string_decoder").StringDecoder;this._decoder=new it("utf8")}bt=this._decoder.write(bt)}return this._parser.write(bt.toString()),this.emit("data",bt),!0},ee.prototype.end=function(bt){return bt&&bt.length&&this.write(bt),this._parser.end(),!0},ee.prototype.on=function(bt,it){var nt=this;return!nt._parser["on"+bt]&&fe.indexOf(bt)!==-1&&(nt._parser["on"+bt]=function(){var xe=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);xe.splice(0,0,bt),nt.emit.apply(nt,xe)}),we.prototype.on.call(nt,bt,it)};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},Ee=/[:_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]/,be=/[:_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-]/,Ie=/[#:_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]/,Le=/[#:_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 Fe(bt){return bt===" "||bt===`
|
|
|
`||bt==="\r"||bt===" "}function Oe(bt){return bt==='"'||bt==="'"}function je(bt){return bt===">"||Fe(bt)}function ze(bt,it){return bt.test(it)}function _e(bt,it){return!ze(bt,it)}var Ue=0;ce.STATE={BEGIN:Ue++,BEGIN_WHITESPACE:Ue++,TEXT:Ue++,TEXT_ENTITY:Ue++,OPEN_WAKA:Ue++,SGML_DECL:Ue++,SGML_DECL_QUOTED:Ue++,DOCTYPE:Ue++,DOCTYPE_QUOTED:Ue++,DOCTYPE_DTD:Ue++,DOCTYPE_DTD_QUOTED:Ue++,COMMENT_STARTING:Ue++,COMMENT:Ue++,COMMENT_ENDING:Ue++,COMMENT_ENDED:Ue++,CDATA:Ue++,CDATA_ENDING:Ue++,CDATA_ENDING_2:Ue++,PROC_INST:Ue++,PROC_INST_BODY:Ue++,PROC_INST_ENDING:Ue++,OPEN_TAG:Ue++,OPEN_TAG_SLASH:Ue++,ATTRIB:Ue++,ATTRIB_NAME:Ue++,ATTRIB_NAME_SAW_WHITE:Ue++,ATTRIB_VALUE:Ue++,ATTRIB_VALUE_QUOTED:Ue++,ATTRIB_VALUE_CLOSED:Ue++,ATTRIB_VALUE_UNQUOTED:Ue++,ATTRIB_VALUE_ENTITY_Q:Ue++,ATTRIB_VALUE_ENTITY_U:Ue++,CLOSE_TAG:Ue++,CLOSE_TAG_SAW_WHITE:Ue++,SCRIPT:Ue++,SCRIPT_ENDING:Ue++},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(bt){var it=ce.ENTITIES[bt],nt=typeof it=="number"?String.fromCharCode(it):it;ce.ENTITIES[bt]=nt});for(var $e in ce.STATE)ce.STATE[ce.STATE[$e]]=$e;Ue=ce.STATE;function et(bt,it,nt){bt[it]&&bt[it](nt)}function lt(bt,it,nt){bt.textNode&&ut(bt),et(bt,it,nt)}function ut(bt){bt.textNode=yt(bt.opt,bt.textNode),bt.textNode&&et(bt,"ontext",bt.textNode),bt.textNode=""}function yt(bt,it){return bt.trim&&(it=it.trim()),bt.normalize&&(it=it.replace(/\s+/g," ")),it}function qe(bt,it){return ut(bt),bt.trackPosition&&(it+=`
|
|
|
Line: `+bt.line+`
|
|
|
Column: `+bt.column+`
|
|
|
Char: `+bt.c),it=new Error(it),bt.error=it,et(bt,"onerror",it),bt}function ot(bt){return bt.sawRoot&&!bt.closedRoot&&dt(bt,"Unclosed root tag"),bt.state!==Ue.BEGIN&&bt.state!==Ue.BEGIN_WHITESPACE&&bt.state!==Ue.TEXT&&qe(bt,"Unexpected end"),ut(bt),bt.c="",bt.closed=!0,et(bt,"onend"),Ae.call(bt,bt.strict,bt.opt),bt}function dt(bt,it){if(typeof bt!="object"||!(bt instanceof Ae))throw new Error("bad call to strictFail");bt.strict&&qe(bt,it)}function St(bt){bt.strict||(bt.tagName=bt.tagName[bt.looseCase]());var it=bt.tags[bt.tags.length-1]||bt,nt=bt.tag={name:bt.tagName,attributes:{}};bt.opt.xmlns&&(nt.ns=it.ns),bt.attribList.length=0,lt(bt,"onopentagstart",nt)}function xt(bt,it){var nt=bt.indexOf(":"),xe=nt<0?["",bt]:bt.split(":"),Ce=xe[0],Ye=xe[1];return it&&bt==="xmlns"&&(Ce="xmlns",Ye=""),{prefix:Ce,local:Ye}}function ft(bt){if(bt.strict||(bt.attribName=bt.attribName[bt.looseCase]()),bt.attribList.indexOf(bt.attribName)!==-1||bt.tag.attributes.hasOwnProperty(bt.attribName)){bt.attribName=bt.attribValue="";return}if(bt.opt.xmlns){var it=xt(bt.attribName,!0),nt=it.prefix,xe=it.local;if(nt==="xmlns")if(xe==="xml"&&bt.attribValue!==le)dt(bt,"xml: prefix must be bound to "+le+`
|
|
|
Actual: `+bt.attribValue);else if(xe==="xmlns"&&bt.attribValue!==ue)dt(bt,"xmlns: prefix must be bound to "+ue+`
|
|
|
Actual: `+bt.attribValue);else{var Ce=bt.tag,Ye=bt.tags[bt.tags.length-1]||bt;Ce.ns===Ye.ns&&(Ce.ns=Object.create(Ye.ns)),Ce.ns[xe]=bt.attribValue}bt.attribList.push([bt.attribName,bt.attribValue])}else bt.tag.attributes[bt.attribName]=bt.attribValue,lt(bt,"onattribute",{name:bt.attribName,value:bt.attribValue});bt.attribName=bt.attribValue=""}function gt(bt,it){if(bt.opt.xmlns){var nt=bt.tag,xe=xt(bt.tagName);nt.prefix=xe.prefix,nt.local=xe.local,nt.uri=nt.ns[xe.prefix]||"",nt.prefix&&!nt.uri&&(dt(bt,"Unbound namespace prefix: "+JSON.stringify(bt.tagName)),nt.uri=xe.prefix);var Ce=bt.tags[bt.tags.length-1]||bt;nt.ns&&Ce.ns!==nt.ns&&Object.keys(nt.ns).forEach(function(Ot){lt(bt,"onopennamespace",{prefix:Ot,uri:nt.ns[Ot]})});for(var Ye=0,Je=bt.attribList.length;Ye<Je;Ye++){var Me=bt.attribList[Ye],Ge=Me[0],Ke=Me[1],Ve=xt(Ge,!0),Qe=Ve.prefix,ht=Ve.local,At=Qe===""?"":nt.ns[Qe]||"",pt={name:Ge,value:Ke,prefix:Qe,local:ht,uri:At};Qe&&Qe!=="xmlns"&&!At&&(dt(bt,"Unbound namespace prefix: "+JSON.stringify(Qe)),pt.uri=Qe),bt.tag.attributes[Ge]=pt,lt(bt,"onattribute",pt)}bt.attribList.length=0}bt.tag.isSelfClosing=!!it,bt.sawRoot=!0,bt.tags.push(bt.tag),lt(bt,"onopentag",bt.tag),it||(!bt.noscript&&bt.tagName.toLowerCase()==="script"?bt.state=Ue.SCRIPT:bt.state=Ue.TEXT,bt.tag=null,bt.tagName=""),bt.attribName=bt.attribValue="",bt.attribList.length=0}function vt(bt){if(!bt.tagName){dt(bt,"Weird empty close tag."),bt.textNode+="</>",bt.state=Ue.TEXT;return}if(bt.script){if(bt.tagName!=="script"){bt.script+="</"+bt.tagName+">",bt.tagName="",bt.state=Ue.SCRIPT;return}lt(bt,"onscript",bt.script),bt.script=""}var it=bt.tags.length,nt=bt.tagName;bt.strict||(nt=nt[bt.looseCase]());for(var xe=nt;it--;){var Ce=bt.tags[it];if(Ce.name!==xe)dt(bt,"Unexpected close tag");else break}if(it<0){dt(bt,"Unmatched closing tag: "+bt.tagName),bt.textNode+="</"+bt.tagName+">",bt.state=Ue.TEXT;return}bt.tagName=nt;for(var Ye=bt.tags.length;Ye-- >it;){var Je=bt.tag=bt.tags.pop();bt.tagName=bt.tag.name,lt(bt,"onclosetag",bt.tagName);var Me={};for(var Ge in Je.ns)Me[Ge]=Je.ns[Ge];var Ke=bt.tags[bt.tags.length-1]||bt;bt.opt.xmlns&&Je.ns!==Ke.ns&&Object.keys(Je.ns).forEach(function(Ve){var Qe=Je.ns[Ve];lt(bt,"onclosenamespace",{prefix:Ve,uri:Qe})})}it===0&&(bt.closedRoot=!0),bt.tagName=bt.attribValue=bt.attribName="",bt.attribList.length=0,bt.state=Ue.TEXT}function Tt(bt){var it=bt.entity,nt=it.toLowerCase(),xe,Ce="";return bt.ENTITIES[it]?bt.ENTITIES[it]:bt.ENTITIES[nt]?bt.ENTITIES[nt]:(it=nt,it.charAt(0)==="#"&&(it.charAt(1)==="x"?(it=it.slice(2),xe=parseInt(it,16),Ce=xe.toString(16)):(it=it.slice(1),xe=parseInt(it,10),Ce=xe.toString(10))),it=it.replace(/^0+/,""),isNaN(xe)||Ce.toLowerCase()!==it?(dt(bt,"Invalid character entity"),"&"+bt.entity+";"):String.fromCodePoint(xe))}function Et(bt,it){it==="<"?(bt.state=Ue.OPEN_WAKA,bt.startTagPosition=bt.position):Fe(it)||(dt(bt,"Non-whitespace before first tag."),bt.textNode=it,bt.state=Ue.TEXT)}function Zt(bt,it){var nt="";return it<bt.length&&(nt=bt.charAt(it)),nt}function wt(bt){var it=this;if(this.error)throw this.error;if(it.closed)return qe(it,"Cannot write after close. Assign an onready handler.");if(bt===null)return ot(it);typeof bt=="object"&&(bt=bt.toString());for(var nt=0,xe="";xe=Zt(bt,nt++),it.c=xe,!!xe;)switch(it.trackPosition&&(it.position++,xe===`
|
|
|
`?(it.line++,it.column=0):it.column++),it.state){case Ue.BEGIN:if(it.state=Ue.BEGIN_WHITESPACE,xe==="\uFEFF")continue;Et(it,xe);continue;case Ue.BEGIN_WHITESPACE:Et(it,xe);continue;case Ue.TEXT:if(it.sawRoot&&!it.closedRoot){for(var Ce=nt-1;xe&&xe!=="<"&&xe!=="&";)xe=Zt(bt,nt++),xe&&it.trackPosition&&(it.position++,xe===`
|
|
|
`?(it.line++,it.column=0):it.column++);it.textNode+=bt.substring(Ce,nt-1)}xe==="<"&&!(it.sawRoot&&it.closedRoot&&!it.strict)?(it.state=Ue.OPEN_WAKA,it.startTagPosition=it.position):(!Fe(xe)&&(!it.sawRoot||it.closedRoot)&&dt(it,"Text data outside of root node."),xe==="&"?it.state=Ue.TEXT_ENTITY:it.textNode+=xe);continue;case Ue.SCRIPT:xe==="<"?it.state=Ue.SCRIPT_ENDING:it.script+=xe;continue;case Ue.SCRIPT_ENDING:xe==="/"?it.state=Ue.CLOSE_TAG:(it.script+="<"+xe,it.state=Ue.SCRIPT);continue;case Ue.OPEN_WAKA:if(xe==="!")it.state=Ue.SGML_DECL,it.sgmlDecl="";else if(!Fe(xe))if(ze(Ee,xe))it.state=Ue.OPEN_TAG,it.tagName=xe;else if(xe==="/")it.state=Ue.CLOSE_TAG,it.tagName="";else if(xe==="?")it.state=Ue.PROC_INST,it.procInstName=it.procInstBody="";else{if(dt(it,"Unencoded <"),it.startTagPosition+1<it.position){var Ye=it.position-it.startTagPosition;xe=new Array(Ye).join(" ")+xe}it.textNode+="<"+xe,it.state=Ue.TEXT}continue;case Ue.SGML_DECL:(it.sgmlDecl+xe).toUpperCase()===ae?(lt(it,"onopencdata"),it.state=Ue.CDATA,it.sgmlDecl="",it.cdata=""):it.sgmlDecl+xe==="--"?(it.state=Ue.COMMENT,it.comment="",it.sgmlDecl=""):(it.sgmlDecl+xe).toUpperCase()===re?(it.state=Ue.DOCTYPE,(it.doctype||it.sawRoot)&&dt(it,"Inappropriately located doctype declaration"),it.doctype="",it.sgmlDecl=""):xe===">"?(lt(it,"onsgmldeclaration",it.sgmlDecl),it.sgmlDecl="",it.state=Ue.TEXT):(Oe(xe)&&(it.state=Ue.SGML_DECL_QUOTED),it.sgmlDecl+=xe);continue;case Ue.SGML_DECL_QUOTED:xe===it.q&&(it.state=Ue.SGML_DECL,it.q=""),it.sgmlDecl+=xe;continue;case Ue.DOCTYPE:xe===">"?(it.state=Ue.TEXT,lt(it,"ondoctype",it.doctype),it.doctype=!0):(it.doctype+=xe,xe==="["?it.state=Ue.DOCTYPE_DTD:Oe(xe)&&(it.state=Ue.DOCTYPE_QUOTED,it.q=xe));continue;case Ue.DOCTYPE_QUOTED:it.doctype+=xe,xe===it.q&&(it.q="",it.state=Ue.DOCTYPE);continue;case Ue.DOCTYPE_DTD:it.doctype+=xe,xe==="]"?it.state=Ue.DOCTYPE:Oe(xe)&&(it.state=Ue.DOCTYPE_DTD_QUOTED,it.q=xe);continue;case Ue.DOCTYPE_DTD_QUOTED:it.doctype+=xe,xe===it.q&&(it.state=Ue.DOCTYPE_DTD,it.q="");continue;case Ue.COMMENT:xe==="-"?it.state=Ue.COMMENT_ENDING:it.comment+=xe;continue;case Ue.COMMENT_ENDING:xe==="-"?(it.state=Ue.COMMENT_ENDED,it.comment=yt(it.opt,it.comment),it.comment&<(it,"oncomment",it.comment),it.comment=""):(it.comment+="-"+xe,it.state=Ue.COMMENT);continue;case Ue.COMMENT_ENDED:xe!==">"?(dt(it,"Malformed comment"),it.comment+="--"+xe,it.state=Ue.COMMENT):it.state=Ue.TEXT;continue;case Ue.CDATA:xe==="]"?it.state=Ue.CDATA_ENDING:it.cdata+=xe;continue;case Ue.CDATA_ENDING:xe==="]"?it.state=Ue.CDATA_ENDING_2:(it.cdata+="]"+xe,it.state=Ue.CDATA);continue;case Ue.CDATA_ENDING_2:xe===">"?(it.cdata&<(it,"oncdata",it.cdata),lt(it,"onclosecdata"),it.cdata="",it.state=Ue.TEXT):xe==="]"?it.cdata+="]":(it.cdata+="]]"+xe,it.state=Ue.CDATA);continue;case Ue.PROC_INST:xe==="?"?it.state=Ue.PROC_INST_ENDING:Fe(xe)?it.state=Ue.PROC_INST_BODY:it.procInstName+=xe;continue;case Ue.PROC_INST_BODY:if(!it.procInstBody&&Fe(xe))continue;xe==="?"?it.state=Ue.PROC_INST_ENDING:it.procInstBody+=xe;continue;case Ue.PROC_INST_ENDING:xe===">"?(lt(it,"onprocessinginstruction",{name:it.procInstName,body:it.procInstBody}),it.procInstName=it.procInstBody="",it.state=Ue.TEXT):(it.procInstBody+="?"+xe,it.state=Ue.PROC_INST_BODY);continue;case Ue.OPEN_TAG:ze(be,xe)?it.tagName+=xe:(St(it),xe===">"?gt(it):xe==="/"?it.state=Ue.OPEN_TAG_SLASH:(Fe(xe)||dt(it,"Invalid character in tag name"),it.state=Ue.ATTRIB));continue;case Ue.OPEN_TAG_SLASH:xe===">"?(gt(it,!0),vt(it)):(dt(it,"Forward-slash in opening tag not followed by >"),it.state=Ue.ATTRIB);continue;case Ue.ATTRIB:if(Fe(xe))continue;xe===">"?gt(it):xe==="/"?it.state=Ue.OPEN_TAG_SLASH:ze(Ee,xe)?(it.attribName=xe,it.attribValue="",it.state=Ue.ATTRIB_NAME):dt(it,"Invalid attribute name");continue;case Ue.ATTRIB_NAME:xe==="="?it.state=Ue.ATTRIB_VALUE:xe===">"?(dt(it,"Attribute without value"),it.attribValue=it.attribName,ft(it),gt(it)):Fe(xe)?it.state=Ue.ATTRIB_NAME_SAW_WHITE:ze(be,xe)?it.attribName+=xe:dt(it,"Invalid attribute name");continue;case Ue.ATTRIB_NAME_SAW_WHITE:if(xe==="=")it.state=Ue.ATTRIB_VALUE;else{if(Fe(xe))continue;dt(it,"Attribute without value"),it.tag.attributes[it.attribName]="",it.attribValue="",lt(it,"onattribute",{name:it.attribName,value:""}),it.attribName="",xe===">"?gt(it):ze(Ee,xe)?(it.attribName=xe,it.state=Ue.ATTRIB_NAME):(dt(it,"Invalid attribute name"),it.state=Ue.ATTRIB)}continue;case Ue.ATTRIB_VALUE:if(Fe(xe))continue;Oe(xe)?(it.q=xe,it.state=Ue.ATTRIB_VALUE_QUOTED):(dt(it,"Unquoted attribute value"),it.state=Ue.ATTRIB_VALUE_UNQUOTED,it.attribValue=xe);continue;case Ue.ATTRIB_VALUE_QUOTED:if(xe!==it.q){xe==="&"?it.state=Ue.ATTRIB_VALUE_ENTITY_Q:it.attribValue+=xe;continue}ft(it),it.q="",it.state=Ue.ATTRIB_VALUE_CLOSED;continue;case Ue.ATTRIB_VALUE_CLOSED:Fe(xe)?it.state=Ue.ATTRIB:xe===">"?gt(it):xe==="/"?it.state=Ue.OPEN_TAG_SLASH:ze(Ee,xe)?(dt(it,"No whitespace between attributes"),it.attribName=xe,it.attribValue="",it.state=Ue.ATTRIB_NAME):dt(it,"Invalid attribute name");continue;case Ue.ATTRIB_VALUE_UNQUOTED:if(!je(xe)){xe==="&"?it.state=Ue.ATTRIB_VALUE_ENTITY_U:it.attribValue+=xe;continue}ft(it),xe===">"?gt(it):it.state=Ue.ATTRIB;continue;case Ue.CLOSE_TAG:if(it.tagName)xe===">"?vt(it):ze(be,xe)?it.tagName+=xe:it.script?(it.script+="</"+it.tagName,it.tagName="",it.state=Ue.SCRIPT):(Fe(xe)||dt(it,"Invalid tagname in closing tag"),it.state=Ue.CLOSE_TAG_SAW_WHITE);else{if(Fe(xe))continue;_e(Ee,xe)?it.script?(it.script+="</"+xe,it.state=Ue.SCRIPT):dt(it,"Invalid tagname in closing tag."):it.tagName=xe}continue;case Ue.CLOSE_TAG_SAW_WHITE:if(Fe(xe))continue;xe===">"?vt(it):dt(it,"Invalid characters in closing tag");continue;case Ue.TEXT_ENTITY:case Ue.ATTRIB_VALUE_ENTITY_Q:case Ue.ATTRIB_VALUE_ENTITY_U:var Je,Me;switch(it.state){case Ue.TEXT_ENTITY:Je=Ue.TEXT,Me="textNode";break;case Ue.ATTRIB_VALUE_ENTITY_Q:Je=Ue.ATTRIB_VALUE_QUOTED,Me="attribValue";break;case Ue.ATTRIB_VALUE_ENTITY_U:Je=Ue.ATTRIB_VALUE_UNQUOTED,Me="attribValue";break}xe===";"?(it[Me]+=Tt(it),it.entity="",it.state=Je):ze(it.entity.length?Le:Ie,xe)?it.entity+=xe:(dt(it,"Invalid character in entity name"),it[Me]+="&"+it.entity+xe,it.entity="",it.state=Je);continue;default:throw new Error(it,"Unknown state: "+it.state)}return it.position>=it.bufferCheckPosition&&ye(it),it}String.fromCodePoint||function(){var bt=String.fromCharCode,it=Math.floor,nt=function(){var xe=16384,Ce=[],Ye,Je,Me=-1,Ge=arguments.length;if(!Ge)return"";for(var Ke="";++Me<Ge;){var Ve=Number(arguments[Me]);if(!isFinite(Ve)||Ve<0||Ve>1114111||it(Ve)!==Ve)throw RangeError("Invalid code point: "+Ve);Ve<=65535?Ce.push(Ve):(Ve-=65536,Ye=(Ve>>10)+55296,Je=Ve%1024+56320,Ce.push(Ye,Je)),(Me+1===Ge||Ce.length>xe)&&(Ke+=bt.apply(null,Ce),Ce.length=0)}return Ke};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:nt,configurable:!0,writable:!0}):String.fromCodePoint=nt}()})(typeof Ne=="undefined"?this.sax={}:Ne)}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(oe,Ze,Ne){Ze.exports=Pe;var ge=oe("events").EventEmitter,ce=oe("inherits");ce(Pe,ge),Pe.Readable=oe("readable-stream/lib/_stream_readable.js"),Pe.Writable=oe("readable-stream/lib/_stream_writable.js"),Pe.Duplex=oe("readable-stream/lib/_stream_duplex.js"),Pe.Transform=oe("readable-stream/lib/_stream_transform.js"),Pe.PassThrough=oe("readable-stream/lib/_stream_passthrough.js"),Pe.finished=oe("readable-stream/lib/internal/streams/end-of-stream.js"),Pe.pipeline=oe("readable-stream/lib/internal/streams/pipeline.js"),Pe.Stream=Pe;function Pe(){ge.call(this)}Pe.prototype.pipe=function(Ae,ye){var De=this;function me(le){Ae.writable&&Ae.write(le)===!1&&De.pause&&De.pause()}De.on("data",me);function we(){De.readable&&De.resume&&De.resume()}Ae.on("drain",we),!Ae._isStdio&&(!ye||ye.end!==!1)&&(De.on("end",z),De.on("close",ee));var fe=!1;function z(){fe||(fe=!0,Ae.end())}function ee(){fe||(fe=!0,typeof Ae.destroy=="function"&&Ae.destroy())}function ae(le){if(re(),ge.listenerCount(this,"error")===0)throw le}De.on("error",ae),Ae.on("error",ae);function re(){De.removeListener("data",me),Ae.removeListener("drain",we),De.removeListener("end",z),De.removeListener("close",ee),De.removeListener("error",ae),Ae.removeListener("error",ae),De.removeListener("end",re),De.removeListener("close",re),Ae.removeListener("close",re)}return De.on("end",re),De.on("close",re),Ae.on("close",re),Ae.emit("pipe",De),Ae}},{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,Ze,Ne){"use strict";function ge(we,fe){we.prototype=Object.create(fe.prototype),we.prototype.constructor=we,we.__proto__=fe}var ce={};function Pe(we,fe,z){z||(z=Error);function ee(re,le,ue){return typeof fe=="string"?fe:fe(re,le,ue)}var ae=function(re){ge(le,re);function le(ue,pe,Ee){return re.call(this,ee(ue,pe,Ee))||this}return le}(z);ae.prototype.name=z.name,ae.prototype.code=we,ce[we]=ae}function Ae(we,fe){if(Array.isArray(we)){var z=we.length;return we=we.map(function(ee){return String(ee)}),z>2?"one of ".concat(fe," ").concat(we.slice(0,z-1).join(", "),", or ")+we[z-1]:z===2?"one of ".concat(fe," ").concat(we[0]," or ").concat(we[1]):"of ".concat(fe," ").concat(we[0])}else return"of ".concat(fe," ").concat(String(we))}function ye(we,fe,z){return we.substr(!z||z<0?0:+z,fe.length)===fe}function De(we,fe,z){return(z===void 0||z>we.length)&&(z=we.length),we.substring(z-fe.length,z)===fe}function me(we,fe,z){return typeof z!="number"&&(z=0),z+fe.length>we.length?!1:we.indexOf(fe,z)!==-1}Pe("ERR_INVALID_OPT_VALUE",function(we,fe){return'The value "'+fe+'" is invalid for option "'+we+'"'},TypeError),Pe("ERR_INVALID_ARG_TYPE",function(we,fe,z){var ee;typeof fe=="string"&&ye(fe,"not ")?(ee="must not be",fe=fe.replace(/^not /,"")):ee="must be";var ae;if(De(we," argument"))ae="The ".concat(we," ").concat(ee," ").concat(Ae(fe,"type"));else{var re=me(we,".")?"property":"argument";ae='The "'.concat(we,'" ').concat(re," ").concat(ee," ").concat(Ae(fe,"type"))}return ae+=". Received type ".concat(typeof z),ae},TypeError),Pe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Pe("ERR_METHOD_NOT_IMPLEMENTED",function(we){return"The "+we+" method is not implemented"}),Pe("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Pe("ERR_STREAM_DESTROYED",function(we){return"Cannot call "+we+" after a stream was destroyed"}),Pe("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Pe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Pe("ERR_STREAM_WRITE_AFTER_END","write after end"),Pe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Pe("ERR_UNKNOWN_ENCODING",function(we){return"Unknown encoding: "+we},TypeError),Pe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ze.exports.codes=ce},{}],400:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";var ce=Object.keys||function(ee){var ae=[];for(var re in ee)ae.push(re);return ae};Ze.exports=we;var Pe=oe("./_stream_readable"),Ae=oe("./_stream_writable");oe("inherits")(we,Pe);for(var ye=ce(Ae.prototype),De=0;De<ye.length;De++){var me=ye[De];we.prototype[me]||(we.prototype[me]=Ae.prototype[me])}function we(ee){if(!(this instanceof we))return new we(ee);Pe.call(this,ee),Ae.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(we.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(we.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(we.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function fe(){this._writableState.ended||ge.nextTick(z,this)}function z(ee){ee.end()}Object.defineProperty(we.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,Ze,Ne){"use strict";Ze.exports=ce;var ge=oe("./_stream_transform");oe("inherits")(ce,ge);function ce(Pe){if(!(this instanceof ce))return new ce(Pe);ge.call(this,Pe)}ce.prototype._transform=function(Pe,Ae,ye){ye(null,Pe)}},{"./_stream_transform":403,inherits:364}],402:[function(oe,Ze,Ne){(function(ge,ce){(function(){"use strict";Ze.exports=lt;var Pe;lt.ReadableState=et;var Ae=oe("events").EventEmitter,ye=function(Ge,Ke){return Ge.listeners(Ke).length},De=oe("./internal/streams/stream"),me=oe("buffer").Buffer,we=(typeof ce!="undefined"?ce:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function fe(Me){return me.from(Me)}function z(Me){return me.isBuffer(Me)||Me instanceof we}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,Ee=oe("../errors").codes,be=Ee.ERR_INVALID_ARG_TYPE,Ie=Ee.ERR_STREAM_PUSH_AFTER_EOF,Le=Ee.ERR_METHOD_NOT_IMPLEMENTED,Fe=Ee.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Oe,je,ze;oe("inherits")(lt,De);var _e=le.errorOrDestroy,Ue=["error","close","destroy","pause","resume"];function $e(Me,Ge,Ke){if(typeof Me.prependListener=="function")return Me.prependListener(Ge,Ke);!Me._events||!Me._events[Ge]?Me.on(Ge,Ke):Array.isArray(Me._events[Ge])?Me._events[Ge].unshift(Ke):Me._events[Ge]=[Ke,Me._events[Ge]]}function et(Me,Ge,Ke){Pe=Pe||oe("./_stream_duplex"),Me=Me||{},typeof Ke!="boolean"&&(Ke=Ge instanceof Pe),this.objectMode=!!Me.objectMode,Ke&&(this.objectMode=this.objectMode||!!Me.readableObjectMode),this.highWaterMark=pe(this,Me,"readableHighWaterMark",Ke),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=Me.emitClose!==!1,this.autoDestroy=!!Me.autoDestroy,this.destroyed=!1,this.defaultEncoding=Me.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Me.encoding&&(Oe||(Oe=oe("string_decoder/").StringDecoder),this.decoder=new Oe(Me.encoding),this.encoding=Me.encoding)}function lt(Me){if(Pe=Pe||oe("./_stream_duplex"),!(this instanceof lt))return new lt(Me);var Ge=this instanceof Pe;this._readableState=new et(Me,this,Ge),this.readable=!0,Me&&(typeof Me.read=="function"&&(this._read=Me.read),typeof Me.destroy=="function"&&(this._destroy=Me.destroy)),De.call(this)}Object.defineProperty(lt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ge){this._readableState&&(this._readableState.destroyed=Ge)}}),lt.prototype.destroy=le.destroy,lt.prototype._undestroy=le.undestroy,lt.prototype._destroy=function(Me,Ge){Ge(Me)},lt.prototype.push=function(Me,Ge){var Ke=this._readableState,Ve;return Ke.objectMode?Ve=!0:typeof Me=="string"&&(Ge=Ge||Ke.defaultEncoding,Ge!==Ke.encoding&&(Me=me.from(Me,Ge),Ge=""),Ve=!0),ut(this,Me,Ge,!1,Ve)},lt.prototype.unshift=function(Me){return ut(this,Me,null,!0,!1)};function ut(Me,Ge,Ke,Ve,Qe){ae("readableAddChunk",Ge);var ht=Me._readableState;if(Ge===null)ht.reading=!1,xt(Me,ht);else{var At;if(Qe||(At=qe(ht,Ge)),At)_e(Me,At);else if(ht.objectMode||Ge&&Ge.length>0)if(typeof Ge!="string"&&!ht.objectMode&&Object.getPrototypeOf(Ge)!==me.prototype&&(Ge=fe(Ge)),Ve)ht.endEmitted?_e(Me,new Fe):yt(Me,ht,Ge,!0);else if(ht.ended)_e(Me,new Ie);else{if(ht.destroyed)return!1;ht.reading=!1,ht.decoder&&!Ke?(Ge=ht.decoder.write(Ge),ht.objectMode||Ge.length!==0?yt(Me,ht,Ge,!1):vt(Me,ht)):yt(Me,ht,Ge,!1)}else Ve||(ht.reading=!1,vt(Me,ht))}return!ht.ended&&(ht.length<ht.highWaterMark||ht.length===0)}function yt(Me,Ge,Ke,Ve){Ge.flowing&&Ge.length===0&&!Ge.sync?(Ge.awaitDrain=0,Me.emit("data",Ke)):(Ge.length+=Ge.objectMode?1:Ke.length,Ve?Ge.buffer.unshift(Ke):Ge.buffer.push(Ke),Ge.needReadable&&ft(Me)),vt(Me,Ge)}function qe(Me,Ge){var Ke;return!z(Ge)&&typeof Ge!="string"&&Ge!==void 0&&!Me.objectMode&&(Ke=new be("chunk",["string","Buffer","Uint8Array"],Ge)),Ke}lt.prototype.isPaused=function(){return this._readableState.flowing===!1},lt.prototype.setEncoding=function(Me){Oe||(Oe=oe("string_decoder/").StringDecoder);var Ge=new Oe(Me);this._readableState.decoder=Ge,this._readableState.encoding=this._readableState.decoder.encoding;for(var Ke=this._readableState.buffer.head,Ve="";Ke!==null;)Ve+=Ge.write(Ke.data),Ke=Ke.next;return this._readableState.buffer.clear(),Ve!==""&&this._readableState.buffer.push(Ve),this._readableState.length=Ve.length,this};var ot=1073741824;function dt(Me){return Me>=ot?Me=ot:(Me--,Me|=Me>>>1,Me|=Me>>>2,Me|=Me>>>4,Me|=Me>>>8,Me|=Me>>>16,Me++),Me}function St(Me,Ge){return Me<=0||Ge.length===0&&Ge.ended?0:Ge.objectMode?1:Me!==Me?Ge.flowing&&Ge.length?Ge.buffer.head.data.length:Ge.length:(Me>Ge.highWaterMark&&(Ge.highWaterMark=dt(Me)),Me<=Ge.length?Me:Ge.ended?Ge.length:(Ge.needReadable=!0,0))}lt.prototype.read=function(Me){ae("read",Me),Me=parseInt(Me,10);var Ge=this._readableState,Ke=Me;if(Me!==0&&(Ge.emittedReadable=!1),Me===0&&Ge.needReadable&&((Ge.highWaterMark!==0?Ge.length>=Ge.highWaterMark:Ge.length>0)||Ge.ended))return ae("read: emitReadable",Ge.length,Ge.ended),Ge.length===0&&Ge.ended?Ce(this):ft(this),null;if(Me=St(Me,Ge),Me===0&&Ge.ended)return Ge.length===0&&Ce(this),null;var Ve=Ge.needReadable;ae("need readable",Ve),(Ge.length===0||Ge.length-Me<Ge.highWaterMark)&&(Ve=!0,ae("length less than watermark",Ve)),Ge.ended||Ge.reading?(Ve=!1,ae("reading or ended",Ve)):Ve&&(ae("do read"),Ge.reading=!0,Ge.sync=!0,Ge.length===0&&(Ge.needReadable=!0),this._read(Ge.highWaterMark),Ge.sync=!1,Ge.reading||(Me=St(Ke,Ge)));var Qe;return Me>0?Qe=xe(Me,Ge):Qe=null,Qe===null?(Ge.needReadable=Ge.length<=Ge.highWaterMark,Me=0):(Ge.length-=Me,Ge.awaitDrain=0),Ge.length===0&&(Ge.ended||(Ge.needReadable=!0),Ke!==Me&&Ge.ended&&Ce(this)),Qe!==null&&this.emit("data",Qe),Qe};function xt(Me,Ge){if(ae("onEofChunk"),!Ge.ended){if(Ge.decoder){var Ke=Ge.decoder.end();Ke&&Ke.length&&(Ge.buffer.push(Ke),Ge.length+=Ge.objectMode?1:Ke.length)}Ge.ended=!0,Ge.sync?ft(Me):(Ge.needReadable=!1,Ge.emittedReadable||(Ge.emittedReadable=!0,gt(Me)))}}function ft(Me){var Ge=Me._readableState;ae("emitReadable",Ge.needReadable,Ge.emittedReadable),Ge.needReadable=!1,Ge.emittedReadable||(ae("emitReadable",Ge.flowing),Ge.emittedReadable=!0,ge.nextTick(gt,Me))}function gt(Me){var Ge=Me._readableState;ae("emitReadable_",Ge.destroyed,Ge.length,Ge.ended),!Ge.destroyed&&(Ge.length||Ge.ended)&&(Me.emit("readable"),Ge.emittedReadable=!1),Ge.needReadable=!Ge.flowing&&!Ge.ended&&Ge.length<=Ge.highWaterMark,nt(Me)}function vt(Me,Ge){Ge.readingMore||(Ge.readingMore=!0,ge.nextTick(Tt,Me,Ge))}function Tt(Me,Ge){for(;!Ge.reading&&!Ge.ended&&(Ge.length<Ge.highWaterMark||Ge.flowing&&Ge.length===0);){var Ke=Ge.length;if(ae("maybeReadMore read 0"),Me.read(0),Ke===Ge.length)break}Ge.readingMore=!1}lt.prototype._read=function(Me){_e(this,new Le("_read()"))},lt.prototype.pipe=function(Me,Ge){var Ke=this,Ve=this._readableState;switch(Ve.pipesCount){case 0:Ve.pipes=Me;break;case 1:Ve.pipes=[Ve.pipes,Me];break;default:Ve.pipes.push(Me);break}Ve.pipesCount+=1,ae("pipe count=%d opts=%j",Ve.pipesCount,Ge);var Qe=(!Ge||Ge.end!==!1)&&Me!==ge.stdout&&Me!==ge.stderr,ht=Qe?pt:Qt;Ve.endEmitted?ge.nextTick(ht):Ke.once("end",ht),Me.on("unpipe",At);function At(en,on){ae("onunpipe"),en===Ke&&on&&on.hasUnpiped===!1&&(on.hasUnpiped=!0,jt())}function pt(){ae("onend"),Me.end()}var Ot=Et(Ke);Me.on("drain",Ot);var Kt=!1;function jt(){ae("cleanup"),Me.removeListener("close",sn),Me.removeListener("finish",Ft),Me.removeListener("drain",Ot),Me.removeListener("error",Xt),Me.removeListener("unpipe",At),Ke.removeListener("end",pt),Ke.removeListener("end",Qt),Ke.removeListener("data",Rt),Kt=!0,Ve.awaitDrain&&(!Me._writableState||Me._writableState.needDrain)&&Ot()}Ke.on("data",Rt);function Rt(en){ae("ondata");var on=Me.write(en);ae("dest.write",on),on===!1&&((Ve.pipesCount===1&&Ve.pipes===Me||Ve.pipesCount>1&&Je(Ve.pipes,Me)!==-1)&&!Kt&&(ae("false write response, pause",Ve.awaitDrain),Ve.awaitDrain++),Ke.pause())}function Xt(en){ae("onerror",en),Qt(),Me.removeListener("error",Xt),ye(Me,"error")===0&&_e(Me,en)}$e(Me,"error",Xt);function sn(){Me.removeListener("finish",Ft),Qt()}Me.once("close",sn);function Ft(){ae("onfinish"),Me.removeListener("close",sn),Qt()}Me.once("finish",Ft);function Qt(){ae("unpipe"),Ke.unpipe(Me)}return Me.emit("pipe",Ke),Ve.flowing||(ae("pipe resume"),Ke.resume()),Me};function Et(Me){return function(){var Ke=Me._readableState;ae("pipeOnDrain",Ke.awaitDrain),Ke.awaitDrain&&Ke.awaitDrain--,Ke.awaitDrain===0&&ye(Me,"data")&&(Ke.flowing=!0,nt(Me))}}lt.prototype.unpipe=function(Me){var Ge=this._readableState,Ke={hasUnpiped:!1};if(Ge.pipesCount===0)return this;if(Ge.pipesCount===1)return Me&&Me!==Ge.pipes?this:(Me||(Me=Ge.pipes),Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1,Me&&Me.emit("unpipe",this,Ke),this);if(!Me){var Ve=Ge.pipes,Qe=Ge.pipesCount;Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1;for(var ht=0;ht<Qe;ht++)Ve[ht].emit("unpipe",this,{hasUnpiped:!1});return this}var At=Je(Ge.pipes,Me);return At===-1?this:(Ge.pipes.splice(At,1),Ge.pipesCount-=1,Ge.pipesCount===1&&(Ge.pipes=Ge.pipes[0]),Me.emit("unpipe",this,Ke),this)},lt.prototype.on=function(Me,Ge){var Ke=De.prototype.on.call(this,Me,Ge),Ve=this._readableState;return Me==="data"?(Ve.readableListening=this.listenerCount("readable")>0,Ve.flowing!==!1&&this.resume()):Me==="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?ft(this):Ve.reading||ge.nextTick(wt,this)),Ke},lt.prototype.addListener=lt.prototype.on,lt.prototype.removeListener=function(Me,Ge){var Ke=De.prototype.removeListener.call(this,Me,Ge);return Me==="readable"&&ge.nextTick(Zt,this),Ke},lt.prototype.removeAllListeners=function(Me){var Ge=De.prototype.removeAllListeners.apply(this,arguments);return(Me==="readable"||Me===void 0)&&ge.nextTick(Zt,this),Ge};function Zt(Me){var Ge=Me._readableState;Ge.readableListening=Me.listenerCount("readable")>0,Ge.resumeScheduled&&!Ge.paused?Ge.flowing=!0:Me.listenerCount("data")>0&&Me.resume()}function wt(Me){ae("readable nexttick read 0"),Me.read(0)}lt.prototype.resume=function(){var Me=this._readableState;return Me.flowing||(ae("resume"),Me.flowing=!Me.readableListening,bt(this,Me)),Me.paused=!1,this};function bt(Me,Ge){Ge.resumeScheduled||(Ge.resumeScheduled=!0,ge.nextTick(it,Me,Ge))}function it(Me,Ge){ae("resume",Ge.reading),Ge.reading||Me.read(0),Ge.resumeScheduled=!1,Me.emit("resume"),nt(Me),Ge.flowing&&!Ge.reading&&Me.read(0)}lt.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 nt(Me){var Ge=Me._readableState;for(ae("flow",Ge.flowing);Ge.flowing&&Me.read()!==null;);}lt.prototype.wrap=function(Me){var Ge=this,Ke=this._readableState,Ve=!1;Me.on("end",function(){if(ae("wrapped end"),Ke.decoder&&!Ke.ended){var At=Ke.decoder.end();At&&At.length&&Ge.push(At)}Ge.push(null)}),Me.on("data",function(At){if(ae("wrapped data"),Ke.decoder&&(At=Ke.decoder.write(At)),!(Ke.objectMode&&At==null)&&!(!Ke.objectMode&&(!At||!At.length))){var pt=Ge.push(At);pt||(Ve=!0,Me.pause())}});for(var Qe in Me)this[Qe]===void 0&&typeof Me[Qe]=="function"&&(this[Qe]=function(pt){return function(){return Me[pt].apply(Me,arguments)}}(Qe));for(var ht=0;ht<Ue.length;ht++)Me.on(Ue[ht],this.emit.bind(this,Ue[ht]));return this._read=function(At){ae("wrapped _read",At),Ve&&(Ve=!1,Me.resume())},this},typeof Symbol=="function"&&(lt.prototype[Symbol.asyncIterator]=function(){return je===void 0&&(je=oe("./internal/streams/async_iterator")),je(this)}),Object.defineProperty(lt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(lt.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(lt.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ge){this._readableState&&(this._readableState.flowing=Ge)}}),lt._fromList=xe,Object.defineProperty(lt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function xe(Me,Ge){if(Ge.length===0)return null;var Ke;return Ge.objectMode?Ke=Ge.buffer.shift():!Me||Me>=Ge.length?(Ge.decoder?Ke=Ge.buffer.join(""):Ge.buffer.length===1?Ke=Ge.buffer.first():Ke=Ge.buffer.concat(Ge.length),Ge.buffer.clear()):Ke=Ge.buffer.consume(Me,Ge.decoder),Ke}function Ce(Me){var Ge=Me._readableState;ae("endReadable",Ge.endEmitted),Ge.endEmitted||(Ge.ended=!0,ge.nextTick(Ye,Ge,Me))}function Ye(Me,Ge){if(ae("endReadableNT",Me.endEmitted,Me.length),!Me.endEmitted&&Me.length===0&&(Me.endEmitted=!0,Ge.readable=!1,Ge.emit("end"),Me.autoDestroy)){var Ke=Ge._writableState;(!Ke||Ke.autoDestroy&&Ke.finished)&&Ge.destroy()}}typeof Symbol=="function"&&(lt.from=function(Me,Ge){return ze===void 0&&(ze=oe("./internal/streams/from")),ze(lt,Me,Ge)});function Je(Me,Ge){for(var Ke=0,Ve=Me.length;Ke<Ve;Ke++)if(Me[Ke]===Ge)return Ke;return-1}}).call(this)}).call(this,oe("_process"),typeof fn!="undefined"?fn: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,Ze,Ne){"use strict";Ze.exports=we;var ge=oe("../errors").codes,ce=ge.ERR_METHOD_NOT_IMPLEMENTED,Pe=ge.ERR_MULTIPLE_CALLBACK,Ae=ge.ERR_TRANSFORM_ALREADY_TRANSFORMING,ye=ge.ERR_TRANSFORM_WITH_LENGTH_0,De=oe("./_stream_duplex");oe("inherits")(we,De);function me(ee,ae){var re=this._transformState;re.transforming=!1;var le=re.writecb;if(le===null)return this.emit("error",new Pe);re.writechunk=null,re.writecb=null,ae!=null&&this.push(ae),le(ee);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function we(ee){if(!(this instanceof we))return new we(ee);De.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)}we.prototype.push=function(ee,ae){return this._transformState.needTransform=!1,De.prototype.push.call(this,ee,ae)},we.prototype._transform=function(ee,ae,re){re(new ce("_transform()"))},we.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)}},we.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},we.prototype._destroy=function(ee,ae){De.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 Ae;return ee.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(oe,Ze,Ne){(function(ge,ce){(function(){"use strict";Ze.exports=et;function Pe(nt,xe,Ce){this.chunk=nt,this.encoding=xe,this.callback=Ce,this.next=null}function Ae(nt){var xe=this;this.next=null,this.entry=null,this.finish=function(){it(xe,nt)}}var ye;et.WritableState=Ue;var De={deprecate:oe("util-deprecate")},me=oe("./internal/streams/stream"),we=oe("buffer").Buffer,fe=(typeof ce!="undefined"?ce:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function z(nt){return we.from(nt)}function ee(nt){return we.isBuffer(nt)||nt 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,Ee=ue.ERR_METHOD_NOT_IMPLEMENTED,be=ue.ERR_MULTIPLE_CALLBACK,Ie=ue.ERR_STREAM_CANNOT_PIPE,Le=ue.ERR_STREAM_DESTROYED,Fe=ue.ERR_STREAM_NULL_VALUES,Oe=ue.ERR_STREAM_WRITE_AFTER_END,je=ue.ERR_UNKNOWN_ENCODING,ze=ae.errorOrDestroy;oe("inherits")(et,me);function _e(){}function Ue(nt,xe,Ce){ye=ye||oe("./_stream_duplex"),nt=nt||{},typeof Ce!="boolean"&&(Ce=xe instanceof ye),this.objectMode=!!nt.objectMode,Ce&&(this.objectMode=this.objectMode||!!nt.writableObjectMode),this.highWaterMark=le(this,nt,"writableHighWaterMark",Ce),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ye=nt.decodeStrings===!1;this.decodeStrings=!Ye,this.defaultEncoding=nt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Je){xt(xe,Je)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=nt.emitClose!==!1,this.autoDestroy=!!nt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ae(this)}Ue.prototype.getBuffer=function(){for(var xe=this.bufferedRequest,Ce=[];xe;)Ce.push(xe),xe=xe.next;return Ce},function(){try{Object.defineProperty(Ue.prototype,"buffer",{get:De.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(nt){}}();var $e;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($e=Function.prototype[Symbol.hasInstance],Object.defineProperty(et,Symbol.hasInstance,{value:function(xe){return $e.call(this,xe)?!0:this!==et?!1:xe&&xe._writableState instanceof Ue}})):$e=function(xe){return xe instanceof this};function et(nt){ye=ye||oe("./_stream_duplex");var xe=this instanceof ye;if(!xe&&!$e.call(et,this))return new et(nt);this._writableState=new Ue(nt,this,xe),this.writable=!0,nt&&(typeof nt.write=="function"&&(this._write=nt.write),typeof nt.writev=="function"&&(this._writev=nt.writev),typeof nt.destroy=="function"&&(this._destroy=nt.destroy),typeof nt.final=="function"&&(this._final=nt.final)),me.call(this)}et.prototype.pipe=function(){ze(this,new Ie)};function lt(nt,xe){var Ce=new Oe;ze(nt,Ce),ge.nextTick(xe,Ce)}function ut(nt,xe,Ce,Ye){var Je;return Ce===null?Je=new Fe:typeof Ce!="string"&&!xe.objectMode&&(Je=new pe("chunk",["string","Buffer"],Ce)),Je?(ze(nt,Je),ge.nextTick(Ye,Je),!1):!0}et.prototype.write=function(nt,xe,Ce){var Ye=this._writableState,Je=!1,Me=!Ye.objectMode&&ee(nt);return Me&&!we.isBuffer(nt)&&(nt=z(nt)),typeof xe=="function"&&(Ce=xe,xe=null),Me?xe="buffer":xe||(xe=Ye.defaultEncoding),typeof Ce!="function"&&(Ce=_e),Ye.ending?lt(this,Ce):(Me||ut(this,Ye,nt,Ce))&&(Ye.pendingcb++,Je=qe(this,Ye,Me,nt,xe,Ce)),Je},et.prototype.cork=function(){this._writableState.corked++},et.prototype.uncork=function(){var nt=this._writableState;nt.corked&&(nt.corked--,!nt.writing&&!nt.corked&&!nt.bufferProcessing&&nt.bufferedRequest&&vt(this,nt))},et.prototype.setDefaultEncoding=function(xe){if(typeof xe=="string"&&(xe=xe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((xe+"").toLowerCase())>-1))throw new je(xe);return this._writableState.defaultEncoding=xe,this},Object.defineProperty(et.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function yt(nt,xe,Ce){return!nt.objectMode&&nt.decodeStrings!==!1&&typeof xe=="string"&&(xe=we.from(xe,Ce)),xe}Object.defineProperty(et.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qe(nt,xe,Ce,Ye,Je,Me){if(!Ce){var Ge=yt(xe,Ye,Je);Ye!==Ge&&(Ce=!0,Je="buffer",Ye=Ge)}var Ke=xe.objectMode?1:Ye.length;xe.length+=Ke;var Ve=xe.length<xe.highWaterMark;if(Ve||(xe.needDrain=!0),xe.writing||xe.corked){var Qe=xe.lastBufferedRequest;xe.lastBufferedRequest={chunk:Ye,encoding:Je,isBuf:Ce,callback:Me,next:null},Qe?Qe.next=xe.lastBufferedRequest:xe.bufferedRequest=xe.lastBufferedRequest,xe.bufferedRequestCount+=1}else ot(nt,xe,!1,Ke,Ye,Je,Me);return Ve}function ot(nt,xe,Ce,Ye,Je,Me,Ge){xe.writelen=Ye,xe.writecb=Ge,xe.writing=!0,xe.sync=!0,xe.destroyed?xe.onwrite(new Le("write")):Ce?nt._writev(Je,xe.onwrite):nt._write(Je,Me,xe.onwrite),xe.sync=!1}function dt(nt,xe,Ce,Ye,Je){--xe.pendingcb,Ce?(ge.nextTick(Je,Ye),ge.nextTick(wt,nt,xe),nt._writableState.errorEmitted=!0,ze(nt,Ye)):(Je(Ye),nt._writableState.errorEmitted=!0,ze(nt,Ye),wt(nt,xe))}function St(nt){nt.writing=!1,nt.writecb=null,nt.length-=nt.writelen,nt.writelen=0}function xt(nt,xe){var Ce=nt._writableState,Ye=Ce.sync,Je=Ce.writecb;if(typeof Je!="function")throw new be;if(St(Ce),xe)dt(nt,Ce,Ye,xe,Je);else{var Me=Tt(Ce)||nt.destroyed;!Me&&!Ce.corked&&!Ce.bufferProcessing&&Ce.bufferedRequest&&vt(nt,Ce),Ye?ge.nextTick(ft,nt,Ce,Me,Je):ft(nt,Ce,Me,Je)}}function ft(nt,xe,Ce,Ye){Ce||gt(nt,xe),xe.pendingcb--,Ye(),wt(nt,xe)}function gt(nt,xe){xe.length===0&&xe.needDrain&&(xe.needDrain=!1,nt.emit("drain"))}function vt(nt,xe){xe.bufferProcessing=!0;var Ce=xe.bufferedRequest;if(nt._writev&&Ce&&Ce.next){var Ye=xe.bufferedRequestCount,Je=new Array(Ye),Me=xe.corkedRequestsFree;Me.entry=Ce;for(var Ge=0,Ke=!0;Ce;)Je[Ge]=Ce,Ce.isBuf||(Ke=!1),Ce=Ce.next,Ge+=1;Je.allBuffers=Ke,ot(nt,xe,!0,xe.length,Je,"",Me.finish),xe.pendingcb++,xe.lastBufferedRequest=null,Me.next?(xe.corkedRequestsFree=Me.next,Me.next=null):xe.corkedRequestsFree=new Ae(xe),xe.bufferedRequestCount=0}else{for(;Ce;){var Ve=Ce.chunk,Qe=Ce.encoding,ht=Ce.callback,At=xe.objectMode?1:Ve.length;if(ot(nt,xe,!1,At,Ve,Qe,ht),Ce=Ce.next,xe.bufferedRequestCount--,xe.writing)break}Ce===null&&(xe.lastBufferedRequest=null)}xe.bufferedRequest=Ce,xe.bufferProcessing=!1}et.prototype._write=function(nt,xe,Ce){Ce(new Ee("_write()"))},et.prototype._writev=null,et.prototype.end=function(nt,xe,Ce){var Ye=this._writableState;return typeof nt=="function"?(Ce=nt,nt=null,xe=null):typeof xe=="function"&&(Ce=xe,xe=null),nt!=null&&this.write(nt,xe),Ye.corked&&(Ye.corked=1,this.uncork()),Ye.ending||bt(this,Ye,Ce),this},Object.defineProperty(et.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Tt(nt){return nt.ending&&nt.length===0&&nt.bufferedRequest===null&&!nt.finished&&!nt.writing}function Et(nt,xe){nt._final(function(Ce){xe.pendingcb--,Ce&&ze(nt,Ce),xe.prefinished=!0,nt.emit("prefinish"),wt(nt,xe)})}function Zt(nt,xe){!xe.prefinished&&!xe.finalCalled&&(typeof nt._final=="function"&&!xe.destroyed?(xe.pendingcb++,xe.finalCalled=!0,ge.nextTick(Et,nt,xe)):(xe.prefinished=!0,nt.emit("prefinish")))}function wt(nt,xe){var Ce=Tt(xe);if(Ce&&(Zt(nt,xe),xe.pendingcb===0&&(xe.finished=!0,nt.emit("finish"),xe.autoDestroy))){var Ye=nt._readableState;(!Ye||Ye.autoDestroy&&Ye.endEmitted)&&nt.destroy()}return Ce}function bt(nt,xe,Ce){xe.ending=!0,wt(nt,xe),Ce&&(xe.finished?ge.nextTick(Ce):nt.once("finish",Ce)),xe.ended=!0,nt.writable=!1}function it(nt,xe,Ce){var Ye=nt.entry;for(nt.entry=null;Ye;){var Je=Ye.callback;xe.pendingcb--,Je(Ce),Ye=Ye.next}xe.corkedRequestsFree.next=nt}Object.defineProperty(et.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(xe){this._writableState&&(this._writableState.destroyed=xe)}}),et.prototype.destroy=ae.destroy,et.prototype._undestroy=ae.undestroy,et.prototype._destroy=function(nt,xe){xe(nt)}}).call(this)}).call(this,oe("_process"),typeof fn!="undefined"?fn: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,Ze,Ne){(function(ge){(function(){"use strict";var ce;function Pe(Fe,Oe,je){return Oe=Ae(Oe),Oe in Fe?Object.defineProperty(Fe,Oe,{value:je,enumerable:!0,configurable:!0,writable:!0}):Fe[Oe]=je,Fe}function Ae(Fe){var Oe=ye(Fe,"string");return typeof Oe=="symbol"?Oe:String(Oe)}function ye(Fe,Oe){if(typeof Fe!="object"||Fe===null)return Fe;var je=Fe[Symbol.toPrimitive];if(je!==void 0){var ze=je.call(Fe,Oe||"default");if(typeof ze!="object")return ze;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Oe==="string"?String:Number)(Fe)}var De=oe("./end-of-stream"),me=Symbol("lastResolve"),we=Symbol("lastReject"),fe=Symbol("error"),z=Symbol("ended"),ee=Symbol("lastPromise"),ae=Symbol("handlePromise"),re=Symbol("stream");function le(Fe,Oe){return{value:Fe,done:Oe}}function ue(Fe){var Oe=Fe[me];if(Oe!==null){var je=Fe[re].read();je!==null&&(Fe[ee]=null,Fe[me]=null,Fe[we]=null,Oe(le(je,!1)))}}function pe(Fe){ge.nextTick(ue,Fe)}function Ee(Fe,Oe){return function(je,ze){Fe.then(function(){if(Oe[z]){je(le(void 0,!0));return}Oe[ae](je,ze)},ze)}}var be=Object.getPrototypeOf(function(){}),Ie=Object.setPrototypeOf((ce={get stream(){return this[re]},next:function(){var Oe=this,je=this[fe];if(je!==null)return Promise.reject(je);if(this[z])return Promise.resolve(le(void 0,!0));if(this[re].destroyed)return new Promise(function($e,et){ge.nextTick(function(){Oe[fe]?et(Oe[fe]):$e(le(void 0,!0))})});var ze=this[ee],_e;if(ze)_e=new Promise(Ee(ze,this));else{var Ue=this[re].read();if(Ue!==null)return Promise.resolve(le(Ue,!1));_e=new Promise(this[ae])}return this[ee]=_e,_e}},Pe(ce,Symbol.asyncIterator,function(){return this}),Pe(ce,"return",function(){var Oe=this;return new Promise(function(je,ze){Oe[re].destroy(null,function(_e){if(_e){ze(_e);return}je(le(void 0,!0))})})}),ce),be),Le=function(Oe){var je,ze=Object.create(Ie,(je={},Pe(je,re,{value:Oe,writable:!0}),Pe(je,me,{value:null,writable:!0}),Pe(je,we,{value:null,writable:!0}),Pe(je,fe,{value:null,writable:!0}),Pe(je,z,{value:Oe._readableState.endEmitted,writable:!0}),Pe(je,ae,{value:function(Ue,$e){var et=ze[re].read();et?(ze[ee]=null,ze[me]=null,ze[we]=null,Ue(le(et,!1))):(ze[me]=Ue,ze[we]=$e)},writable:!0}),je));return ze[ee]=null,De(Oe,function(_e){if(_e&&_e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ue=ze[we];Ue!==null&&(ze[ee]=null,ze[me]=null,ze[we]=null,Ue(_e)),ze[fe]=_e;return}var $e=ze[me];$e!==null&&(ze[ee]=null,ze[me]=null,ze[we]=null,$e(le(void 0,!0))),ze[z]=!0}),Oe.on("readable",pe.bind(null,ze)),ze};Ze.exports=Le}).call(this)}).call(this,oe("_process"))},{"./end-of-stream":408,_process:467}],406:[function(oe,Ze,Ne){"use strict";function ge(ue,pe){var Ee=Object.keys(ue);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(ue);pe&&(be=be.filter(function(Ie){return Object.getOwnPropertyDescriptor(ue,Ie).enumerable})),Ee.push.apply(Ee,be)}return Ee}function ce(ue){for(var pe=1;pe<arguments.length;pe++){var Ee=arguments[pe]!=null?arguments[pe]:{};pe%2?ge(Object(Ee),!0).forEach(function(be){Pe(ue,be,Ee[be])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Ee)):ge(Object(Ee)).forEach(function(be){Object.defineProperty(ue,be,Object.getOwnPropertyDescriptor(Ee,be))})}return ue}function Pe(ue,pe,Ee){return pe=me(pe),pe in ue?Object.defineProperty(ue,pe,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):ue[pe]=Ee,ue}function Ae(ue,pe){if(!(ue instanceof pe))throw new TypeError("Cannot call a class as a function")}function ye(ue,pe){for(var Ee=0;Ee<pe.length;Ee++){var be=pe[Ee];be.enumerable=be.enumerable||!1,be.configurable=!0,"value"in be&&(be.writable=!0),Object.defineProperty(ue,me(be.key),be)}}function De(ue,pe,Ee){return pe&&ye(ue.prototype,pe),Ee&&ye(ue,Ee),Object.defineProperty(ue,"prototype",{writable:!1}),ue}function me(ue){var pe=we(ue,"string");return typeof pe=="symbol"?pe:String(pe)}function we(ue,pe){if(typeof ue!="object"||ue===null)return ue;var Ee=ue[Symbol.toPrimitive];if(Ee!==void 0){var be=Ee.call(ue,pe||"default");if(typeof be!="object")return be;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,Ee){z.prototype.copy.call(ue,pe,Ee)}Ze.exports=function(){function ue(){Ae(this,ue),this.head=null,this.tail=null,this.length=0}return De(ue,[{key:"push",value:function(Ee){var be={data:Ee,next:null};this.length>0?this.tail.next=be:this.head=be,this.tail=be,++this.length}},{key:"unshift",value:function(Ee){var be={data:Ee,next:this.head};this.length===0&&(this.tail=be),this.head=be,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Ee=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Ee}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Ee){if(this.length===0)return"";for(var be=this.head,Ie=""+be.data;be=be.next;)Ie+=Ee+be.data;return Ie}},{key:"concat",value:function(Ee){if(this.length===0)return z.alloc(0);for(var be=z.allocUnsafe(Ee>>>0),Ie=this.head,Le=0;Ie;)le(Ie.data,be,Le),Le+=Ie.data.length,Ie=Ie.next;return be}},{key:"consume",value:function(Ee,be){var Ie;return Ee<this.head.data.length?(Ie=this.head.data.slice(0,Ee),this.head.data=this.head.data.slice(Ee)):Ee===this.head.data.length?Ie=this.shift():Ie=be?this._getString(Ee):this._getBuffer(Ee),Ie}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Ee){var be=this.head,Ie=1,Le=be.data;for(Ee-=Le.length;be=be.next;){var Fe=be.data,Oe=Ee>Fe.length?Fe.length:Ee;if(Oe===Fe.length?Le+=Fe:Le+=Fe.slice(0,Ee),Ee-=Oe,Ee===0){Oe===Fe.length?(++Ie,be.next?this.head=be.next:this.head=this.tail=null):(this.head=be,be.data=Fe.slice(Oe));break}++Ie}return this.length-=Ie,Le}},{key:"_getBuffer",value:function(Ee){var be=z.allocUnsafe(Ee),Ie=this.head,Le=1;for(Ie.data.copy(be),Ee-=Ie.data.length;Ie=Ie.next;){var Fe=Ie.data,Oe=Ee>Fe.length?Fe.length:Ee;if(Fe.copy(be,be.length-Ee,0,Oe),Ee-=Oe,Ee===0){Oe===Fe.length?(++Le,Ie.next?this.head=Ie.next:this.head=this.tail=null):(this.head=Ie,Ie.data=Fe.slice(Oe));break}++Le}return this.length-=Le,be}},{key:re,value:function(Ee,be){return ae(this,ce(ce({},be),{},{depth:0,customInspect:!1}))}}]),ue}()},{buffer:90,util:89}],407:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";function ce(we,fe){var z=this,ee=this._readableState&&this._readableState.destroyed,ae=this._writableState&&this._writableState.destroyed;return ee||ae?(fe?fe(we):we&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ge.nextTick(De,this,we)):ge.nextTick(De,this,we)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(we||null,function(re){!fe&&re?z._writableState?z._writableState.errorEmitted?ge.nextTick(Ae,z):(z._writableState.errorEmitted=!0,ge.nextTick(Pe,z,re)):ge.nextTick(Pe,z,re):fe?(ge.nextTick(Ae,z),fe(re)):ge.nextTick(Ae,z)}),this)}function Pe(we,fe){De(we,fe),Ae(we)}function Ae(we){we._writableState&&!we._writableState.emitClose||we._readableState&&!we._readableState.emitClose||we.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 De(we,fe){we.emit("error",fe)}function me(we,fe){var z=we._readableState,ee=we._writableState;z&&z.autoDestroy||ee&&ee.autoDestroy?we.destroy(fe):we.emit("error",fe)}Ze.exports={destroy:ce,undestroy:ye,errorOrDestroy:me}}).call(this)}).call(this,oe("_process"))},{_process:467}],408:[function(oe,Ze,Ne){"use strict";var ge=oe("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function ce(De){var me=!1;return function(){if(!me){me=!0;for(var we=arguments.length,fe=new Array(we),z=0;z<we;z++)fe[z]=arguments[z];De.apply(this,fe)}}}function Pe(){}function Ae(De){return De.setHeader&&typeof De.abort=="function"}function ye(De,me,we){if(typeof me=="function")return ye(De,null,me);me||(me={}),we=ce(we||Pe);var fe=me.readable||me.readable!==!1&&De.readable,z=me.writable||me.writable!==!1&&De.writable,ee=function(){De.writable||re()},ae=De._writableState&&De._writableState.finished,re=function(){z=!1,ae=!0,fe||we.call(De)},le=De._readableState&&De._readableState.endEmitted,ue=function(){fe=!1,le=!0,z||we.call(De)},pe=function(Le){we.call(De,Le)},Ee=function(){var Le;if(fe&&!le)return(!De._readableState||!De._readableState.ended)&&(Le=new ge),we.call(De,Le);if(z&&!ae)return(!De._writableState||!De._writableState.ended)&&(Le=new ge),we.call(De,Le)},be=function(){De.req.on("finish",re)};return Ae(De)?(De.on("complete",re),De.on("abort",Ee),De.req?be():De.on("request",be)):z&&!De._writableState&&(De.on("end",ee),De.on("close",ee)),De.on("end",ue),De.on("finish",re),me.error!==!1&&De.on("error",pe),De.on("close",Ee),function(){De.removeListener("complete",re),De.removeListener("abort",Ee),De.removeListener("request",be),De.req&&De.req.removeListener("finish",re),De.removeListener("end",ee),De.removeListener("close",ee),De.removeListener("finish",re),De.removeListener("end",ue),De.removeListener("error",pe),De.removeListener("close",Ee)}}Ze.exports=ye},{"../../../errors":399}],409:[function(oe,Ze,Ne){Ze.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(oe,Ze,Ne){"use strict";var ge;function ce(re){var le=!1;return function(){le||(le=!0,re.apply(void 0,arguments))}}var Pe=oe("../../../errors").codes,Ae=Pe.ERR_MISSING_ARGS,ye=Pe.ERR_STREAM_DESTROYED;function De(re){if(re)throw re}function me(re){return re.setHeader&&typeof re.abort=="function"}function we(re,le,ue,pe){pe=ce(pe);var Ee=!1;re.on("close",function(){Ee=!0}),ge===void 0&&(ge=oe("./end-of-stream")),ge(re,{readable:le,writable:ue},function(Ie){if(Ie)return pe(Ie);Ee=!0,pe()});var be=!1;return function(Ie){if(!Ee&&!be){if(be=!0,me(re))return re.abort();if(typeof re.destroy=="function")return re.destroy();pe(Ie||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"?De: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 Ae("streams");var Ee,be=le.map(function(Ie,Le){var Fe=Le<le.length-1,Oe=Le>0;return we(Ie,Fe,Oe,function(je){Ee||(Ee=je),je&&be.forEach(fe),!Fe&&(be.forEach(fe),pe(Ee))})});return le.reduce(z)}Ze.exports=ae},{"../../../errors":399,"./end-of-stream":408}],411:[function(oe,Ze,Ne){"use strict";var ge=oe("../../../errors").codes.ERR_INVALID_OPT_VALUE;function ce(Ae,ye,De){return Ae.highWaterMark!=null?Ae.highWaterMark:ye?Ae[De]:null}function Pe(Ae,ye,De,me){var we=ce(ye,me,De);if(we!=null){if(!(isFinite(we)&&Math.floor(we)===we)||we<0){var fe=me?De:"highWaterMark";throw new ge(fe,we)}return Math.floor(we)}return Ae.objectMode?16:16*1024}Ze.exports={getHighWaterMark:Pe}},{"../../../errors":399}],412:[function(oe,Ze,Ne){arguments[4][393][0].apply(Ne,arguments)},{dup:393,events:344}],413:[function(oe,Ze,Ne){"use strict";var ge=oe("safe-buffer").Buffer,ce=ge.isEncoding||function(be){switch(be=""+be,be&&be.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Pe(be){if(!be)return"utf8";for(var Ie;;)switch(be){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 be;default:if(Ie)return;be=(""+be).toLowerCase(),Ie=!0}}function Ae(be){var Ie=Pe(be);if(typeof Ie!="string"&&(ge.isEncoding===ce||!ce(be)))throw new Error("Unknown encoding: "+be);return Ie||be}Ne.StringDecoder=ye;function ye(be){this.encoding=Ae(be);var Ie;switch(this.encoding){case"utf16le":this.text=ae,this.end=re,Ie=4;break;case"utf8":this.fillLast=fe,Ie=4;break;case"base64":this.text=le,this.end=ue,Ie=3;break;default:this.write=pe,this.end=Ee;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ge.allocUnsafe(Ie)}ye.prototype.write=function(be){if(be.length===0)return"";var Ie,Le;if(this.lastNeed){if(Ie=this.fillLast(be),Ie===void 0)return"";Le=this.lastNeed,this.lastNeed=0}else Le=0;return Le<be.length?Ie?Ie+this.text(be,Le):this.text(be,Le):Ie||""},ye.prototype.end=ee,ye.prototype.text=z,ye.prototype.fillLast=function(be){if(this.lastNeed<=be.length)return be.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);be.copy(this.lastChar,this.lastTotal-this.lastNeed,0,be.length),this.lastNeed-=be.length};function De(be){return be<=127?0:be>>5===6?2:be>>4===14?3:be>>3===30?4:be>>6===2?-1:-2}function me(be,Ie,Le){var Fe=Ie.length-1;if(Fe<Le)return 0;var Oe=De(Ie[Fe]);return Oe>=0?(Oe>0&&(be.lastNeed=Oe-1),Oe):--Fe<Le||Oe===-2?0:(Oe=De(Ie[Fe]),Oe>=0?(Oe>0&&(be.lastNeed=Oe-2),Oe):--Fe<Le||Oe===-2?0:(Oe=De(Ie[Fe]),Oe>=0?(Oe>0&&(Oe===2?Oe=0:be.lastNeed=Oe-3),Oe):0))}function we(be,Ie,Le){if((Ie[0]&192)!==128)return be.lastNeed=0,"\uFFFD";if(be.lastNeed>1&&Ie.length>1){if((Ie[1]&192)!==128)return be.lastNeed=1,"\uFFFD";if(be.lastNeed>2&&Ie.length>2&&(Ie[2]&192)!==128)return be.lastNeed=2,"\uFFFD"}}function fe(be){var Ie=this.lastTotal-this.lastNeed,Le=we(this,be,Ie);if(Le!==void 0)return Le;if(this.lastNeed<=be.length)return be.copy(this.lastChar,Ie,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);be.copy(this.lastChar,Ie,0,be.length),this.lastNeed-=be.length}function z(be,Ie){var Le=me(this,be,Ie);if(!this.lastNeed)return be.toString("utf8",Ie);this.lastTotal=Le;var Fe=be.length-(Le-this.lastNeed);return be.copy(this.lastChar,0,Fe),be.toString("utf8",Ie,Fe)}function ee(be){var Ie=be&&be.length?this.write(be):"";return this.lastNeed?Ie+"\uFFFD":Ie}function ae(be,Ie){if((be.length-Ie)%2===0){var Le=be.toString("utf16le",Ie);if(Le){var Fe=Le.charCodeAt(Le.length-1);if(Fe>=55296&&Fe<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=be[be.length-2],this.lastChar[1]=be[be.length-1],Le.slice(0,-1)}return Le}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=be[be.length-1],be.toString("utf16le",Ie,be.length-1)}function re(be){var Ie=be&&be.length?this.write(be):"";if(this.lastNeed){var Le=this.lastTotal-this.lastNeed;return Ie+this.lastChar.toString("utf16le",0,Le)}return Ie}function le(be,Ie){var Le=(be.length-Ie)%3;return Le===0?be.toString("base64",Ie):(this.lastNeed=3-Le,this.lastTotal=3,Le===1?this.lastChar[0]=be[be.length-1]:(this.lastChar[0]=be[be.length-2],this.lastChar[1]=be[be.length-1]),be.toString("base64",Ie,be.length-Le))}function ue(be){var Ie=be&&be.length?this.write(be):"";return this.lastNeed?Ie+this.lastChar.toString("base64",0,3-this.lastNeed):Ie}function pe(be){return be.toString(this.encoding)}function Ee(be){return be&&be.length?this.write(be):""}},{"safe-buffer":396}],414:[function(oe,Ze,Ne){(function(ge,ce){(function(){var Pe=oe("process/browser.js").nextTick,Ae=Function.prototype.apply,ye=Array.prototype.slice,De={},me=0;Ne.setTimeout=function(){return new we(Ae.call(setTimeout,window,arguments),clearTimeout)},Ne.setInterval=function(){return new we(Ae.call(setInterval,window,arguments),clearInterval)},Ne.clearTimeout=Ne.clearInterval=function(fe){fe.close()};function we(fe,z){this._id=fe,this._clearFn=z}we.prototype.unref=we.prototype.ref=function(){},we.prototype.close=function(){this._clearFn.call(window,this._id)},Ne.enroll=function(fe,z){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=z},Ne.unenroll=function(fe){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=-1},Ne._unrefActive=Ne.active=function(fe){clearTimeout(fe._idleTimeoutId);var z=fe._idleTimeout;z>=0&&(fe._idleTimeoutId=setTimeout(function(){fe._onTimeout&&fe._onTimeout()},z))},Ne.setImmediate=typeof ge=="function"?ge:function(fe){var z=me++,ee=arguments.length<2?!1:ye.call(arguments,1);return De[z]=!0,Pe(function(){De[z]&&(ee?fe.apply(null,ee):fe.call(null),Ne.clearImmediate(z))}),z},Ne.clearImmediate=typeof ce=="function"?ce:function(fe){delete De[fe]}}).call(this)}).call(this,oe("timers").setImmediate,oe("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(oe,Ze,Ne){var ge=oe("buffer").Buffer;Ze.exports=function(ce){if(ce instanceof Uint8Array){if(ce.byteOffset===0&&ce.byteLength===ce.buffer.byteLength)return ce.buffer;if(typeof ce.buffer.slice=="function")return ce.buffer.slice(ce.byteOffset,ce.byteOffset+ce.byteLength)}if(ge.isBuffer(ce)){for(var Pe=new Uint8Array(ce.length),Ae=ce.length,ye=0;ye<Ae;ye++)Pe[ye]=ce[ye];return Pe.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(oe,Ze,Ne){(function(ge){(function(){Ze.exports=ce;function ce(Ae,ye){if(Pe("noDeprecation"))return Ae;var De=!1;function me(){if(!De){if(Pe("throwDeprecation"))throw new Error(ye);Pe("traceDeprecation")?console.trace(ye):console.warn(ye),De=!0}return Ae.apply(this,arguments)}return me}function Pe(Ae){try{if(!ge.localStorage)return!1}catch(De){return!1}var ye=ge.localStorage[Ae];return ye==null?!1:String(ye).toLowerCase()==="true"}}).call(this)}).call(this,typeof fn!="undefined"?fn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(oe,Ze,Ne){arguments[4][84][0].apply(Ne,arguments)},{dup:84}],418:[function(oe,Ze,Ne){"use strict";var ge=oe("is-arguments"),ce=oe("is-generator-function"),Pe=oe("which-typed-array"),Ae=oe("is-typed-array");function ye(Qe){return Qe.call.bind(Qe)}var De=typeof BigInt!="undefined",me=typeof Symbol!="undefined",we=ye(Object.prototype.toString),fe=ye(Number.prototype.valueOf),z=ye(String.prototype.valueOf),ee=ye(Boolean.prototype.valueOf);if(De)var ae=ye(BigInt.prototype.valueOf);if(me)var re=ye(Symbol.prototype.valueOf);function le(Qe,ht){if(typeof Qe!="object")return!1;try{return ht(Qe),!0}catch(At){return!1}}Ne.isArgumentsObject=ge,Ne.isGeneratorFunction=ce,Ne.isTypedArray=Ae;function ue(Qe){return typeof Promise!="undefined"&&Qe instanceof Promise||Qe!==null&&typeof Qe=="object"&&typeof Qe.then=="function"&&typeof Qe.catch=="function"}Ne.isPromise=ue;function pe(Qe){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Qe):Ae(Qe)||vt(Qe)}Ne.isArrayBufferView=pe;function Ee(Qe){return Pe(Qe)==="Uint8Array"}Ne.isUint8Array=Ee;function be(Qe){return Pe(Qe)==="Uint8ClampedArray"}Ne.isUint8ClampedArray=be;function Ie(Qe){return Pe(Qe)==="Uint16Array"}Ne.isUint16Array=Ie;function Le(Qe){return Pe(Qe)==="Uint32Array"}Ne.isUint32Array=Le;function Fe(Qe){return Pe(Qe)==="Int8Array"}Ne.isInt8Array=Fe;function Oe(Qe){return Pe(Qe)==="Int16Array"}Ne.isInt16Array=Oe;function je(Qe){return Pe(Qe)==="Int32Array"}Ne.isInt32Array=je;function ze(Qe){return Pe(Qe)==="Float32Array"}Ne.isFloat32Array=ze;function _e(Qe){return Pe(Qe)==="Float64Array"}Ne.isFloat64Array=_e;function Ue(Qe){return Pe(Qe)==="BigInt64Array"}Ne.isBigInt64Array=Ue;function $e(Qe){return Pe(Qe)==="BigUint64Array"}Ne.isBigUint64Array=$e;function et(Qe){return we(Qe)==="[object Map]"}et.working=typeof Map!="undefined"&&et(new Map);function lt(Qe){return typeof Map=="undefined"?!1:et.working?et(Qe):Qe instanceof Map}Ne.isMap=lt;function ut(Qe){return we(Qe)==="[object Set]"}ut.working=typeof Set!="undefined"&&ut(new Set);function yt(Qe){return typeof Set=="undefined"?!1:ut.working?ut(Qe):Qe instanceof Set}Ne.isSet=yt;function qe(Qe){return we(Qe)==="[object WeakMap]"}qe.working=typeof WeakMap!="undefined"&&qe(new WeakMap);function ot(Qe){return typeof WeakMap=="undefined"?!1:qe.working?qe(Qe):Qe instanceof WeakMap}Ne.isWeakMap=ot;function dt(Qe){return we(Qe)==="[object WeakSet]"}dt.working=typeof WeakSet!="undefined"&&dt(new WeakSet);function St(Qe){return dt(Qe)}Ne.isWeakSet=St;function xt(Qe){return we(Qe)==="[object ArrayBuffer]"}xt.working=typeof ArrayBuffer!="undefined"&&xt(new ArrayBuffer);function ft(Qe){return typeof ArrayBuffer=="undefined"?!1:xt.working?xt(Qe):Qe instanceof ArrayBuffer}Ne.isArrayBuffer=ft;function gt(Qe){return we(Qe)==="[object DataView]"}gt.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&>(new DataView(new ArrayBuffer(1),0,1));function vt(Qe){return typeof DataView=="undefined"?!1:gt.working?gt(Qe):Qe instanceof DataView}Ne.isDataView=vt;var Tt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Et(Qe){return we(Qe)==="[object SharedArrayBuffer]"}function Zt(Qe){return typeof Tt=="undefined"?!1:(typeof Et.working=="undefined"&&(Et.working=Et(new Tt)),Et.working?Et(Qe):Qe instanceof Tt)}Ne.isSharedArrayBuffer=Zt;function wt(Qe){return we(Qe)==="[object AsyncFunction]"}Ne.isAsyncFunction=wt;function bt(Qe){return we(Qe)==="[object Map Iterator]"}Ne.isMapIterator=bt;function it(Qe){return we(Qe)==="[object Set Iterator]"}Ne.isSetIterator=it;function nt(Qe){return we(Qe)==="[object Generator]"}Ne.isGeneratorObject=nt;function xe(Qe){return we(Qe)==="[object WebAssembly.Module]"}Ne.isWebAssemblyCompiledModule=xe;function Ce(Qe){return le(Qe,fe)}Ne.isNumberObject=Ce;function Ye(Qe){return le(Qe,z)}Ne.isStringObject=Ye;function Je(Qe){return le(Qe,ee)}Ne.isBooleanObject=Je;function Me(Qe){return De&&le(Qe,ae)}Ne.isBigIntObject=Me;function Ge(Qe){return me&&le(Qe,re)}Ne.isSymbolObject=Ge;function Ke(Qe){return Ce(Qe)||Ye(Qe)||Je(Qe)||Me(Qe)||Ge(Qe)}Ne.isBoxedPrimitive=Ke;function Ve(Qe){return typeof Uint8Array!="undefined"&&(ft(Qe)||Zt(Qe))}Ne.isAnyArrayBuffer=Ve,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Qe){Object.defineProperty(Ne,Qe,{enumerable:!1,value:function(){throw new Error(Qe+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(oe,Ze,Ne){(function(ge){(function(){var ce=Object.getOwnPropertyDescriptors||function(Tt){for(var Et=Object.keys(Tt),Zt={},wt=0;wt<Et.length;wt++)Zt[Et[wt]]=Object.getOwnPropertyDescriptor(Tt,Et[wt]);return Zt},Pe=/%[sdj%]/g;Ne.format=function(vt){if(!Oe(vt)){for(var Tt=[],Et=0;Et<arguments.length;Et++)Tt.push(me(arguments[Et]));return Tt.join(" ")}for(var Et=1,Zt=arguments,wt=Zt.length,bt=String(vt).replace(Pe,function(nt){if(nt==="%%")return"%";if(Et>=wt)return nt;switch(nt){case"%s":return String(Zt[Et++]);case"%d":return Number(Zt[Et++]);case"%j":try{return JSON.stringify(Zt[Et++])}catch(xe){return"[Circular]"}default:return nt}}),it=Zt[Et];Et<wt;it=Zt[++Et])Ie(it)||!Ue(it)?bt+=" "+it:bt+=" "+me(it);return bt},Ne.deprecate=function(vt,Tt){if(typeof ge!="undefined"&&ge.noDeprecation===!0)return vt;if(typeof ge=="undefined")return function(){return Ne.deprecate(vt,Tt).apply(this,arguments)};var Et=!1;function Zt(){if(!Et){if(ge.throwDeprecation)throw new Error(Tt);ge.traceDeprecation?console.trace(Tt):console.error(Tt),Et=!0}return vt.apply(this,arguments)}return Zt};var Ae={},ye=/^$/;if(ge.env.NODE_DEBUG){var De=ge.env.NODE_DEBUG;De=De.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ye=new RegExp("^"+De+"$","i")}Ne.debuglog=function(vt){if(vt=vt.toUpperCase(),!Ae[vt])if(ye.test(vt)){var Tt=ge.pid;Ae[vt]=function(){var Et=Ne.format.apply(Ne,arguments);console.error("%s %d: %s",vt,Tt,Et)}}else Ae[vt]=function(){};return Ae[vt]};function me(vt,Tt){var Et={seen:[],stylize:fe};return arguments.length>=3&&(Et.depth=arguments[2]),arguments.length>=4&&(Et.colors=arguments[3]),be(Tt)?Et.showHidden=Tt:Tt&&Ne._extend(Et,Tt),ze(Et.showHidden)&&(Et.showHidden=!1),ze(Et.depth)&&(Et.depth=2),ze(Et.colors)&&(Et.colors=!1),ze(Et.customInspect)&&(Et.customInspect=!0),Et.colors&&(Et.stylize=we),ee(Et,vt,Et.depth)}Ne.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 we(vt,Tt){var Et=me.styles[Tt];return Et?"\x1B["+me.colors[Et][0]+"m"+vt+"\x1B["+me.colors[Et][1]+"m":vt}function fe(vt,Tt){return vt}function z(vt){var Tt={};return vt.forEach(function(Et,Zt){Tt[Et]=!0}),Tt}function ee(vt,Tt,Et){if(vt.customInspect&&Tt&<(Tt.inspect)&&Tt.inspect!==Ne.inspect&&!(Tt.constructor&&Tt.constructor.prototype===Tt)){var Zt=Tt.inspect(Et,vt);return Oe(Zt)||(Zt=ee(vt,Zt,Et)),Zt}var wt=ae(vt,Tt);if(wt)return wt;var bt=Object.keys(Tt),it=z(bt);if(vt.showHidden&&(bt=Object.getOwnPropertyNames(Tt)),et(Tt)&&(bt.indexOf("message")>=0||bt.indexOf("description")>=0))return re(Tt);if(bt.length===0){if(lt(Tt)){var nt=Tt.name?": "+Tt.name:"";return vt.stylize("[Function"+nt+"]","special")}if(_e(Tt))return vt.stylize(RegExp.prototype.toString.call(Tt),"regexp");if($e(Tt))return vt.stylize(Date.prototype.toString.call(Tt),"date");if(et(Tt))return re(Tt)}var xe="",Ce=!1,Ye=["{","}"];if(Ee(Tt)&&(Ce=!0,Ye=["[","]"]),lt(Tt)){var Je=Tt.name?": "+Tt.name:"";xe=" [Function"+Je+"]"}if(_e(Tt)&&(xe=" "+RegExp.prototype.toString.call(Tt)),$e(Tt)&&(xe=" "+Date.prototype.toUTCString.call(Tt)),et(Tt)&&(xe=" "+re(Tt)),bt.length===0&&(!Ce||Tt.length==0))return Ye[0]+xe+Ye[1];if(Et<0)return _e(Tt)?vt.stylize(RegExp.prototype.toString.call(Tt),"regexp"):vt.stylize("[Object]","special");vt.seen.push(Tt);var Me;return Ce?Me=le(vt,Tt,Et,it,bt):Me=bt.map(function(Ge){return ue(vt,Tt,Et,it,Ge,Ce)}),vt.seen.pop(),pe(Me,xe,Ye)}function ae(vt,Tt){if(ze(Tt))return vt.stylize("undefined","undefined");if(Oe(Tt)){var Et="'"+JSON.stringify(Tt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return vt.stylize(Et,"string")}if(Fe(Tt))return vt.stylize(""+Tt,"number");if(be(Tt))return vt.stylize(""+Tt,"boolean");if(Ie(Tt))return vt.stylize("null","null")}function re(vt){return"["+Error.prototype.toString.call(vt)+"]"}function le(vt,Tt,Et,Zt,wt){for(var bt=[],it=0,nt=Tt.length;it<nt;++it)St(Tt,String(it))?bt.push(ue(vt,Tt,Et,Zt,String(it),!0)):bt.push("");return wt.forEach(function(xe){xe.match(/^\d+$/)||bt.push(ue(vt,Tt,Et,Zt,xe,!0))}),bt}function ue(vt,Tt,Et,Zt,wt,bt){var it,nt,xe;if(xe=Object.getOwnPropertyDescriptor(Tt,wt)||{value:Tt[wt]},xe.get?xe.set?nt=vt.stylize("[Getter/Setter]","special"):nt=vt.stylize("[Getter]","special"):xe.set&&(nt=vt.stylize("[Setter]","special")),St(Zt,wt)||(it="["+wt+"]"),nt||(vt.seen.indexOf(xe.value)<0?(Ie(Et)?nt=ee(vt,xe.value,null):nt=ee(vt,xe.value,Et-1),nt.indexOf(`
|
|
|
`)>-1&&(bt?nt=nt.split(`
|
|
|
`).map(function(Ce){return" "+Ce}).join(`
|
|
|
`).slice(2):nt=`
|
|
|
`+nt.split(`
|
|
|
`).map(function(Ce){return" "+Ce}).join(`
|
|
|
`))):nt=vt.stylize("[Circular]","special")),ze(it)){if(bt&&wt.match(/^\d+$/))return nt;it=JSON.stringify(""+wt),it.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(it=it.slice(1,-1),it=vt.stylize(it,"name")):(it=it.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),it=vt.stylize(it,"string"))}return it+": "+nt}function pe(vt,Tt,Et){var Zt=0,wt=vt.reduce(function(bt,it){return Zt++,it.indexOf(`
|
|
|
`)>=0&&Zt++,bt+it.replace(/\u001b\[\d\d?m/g,"").length+1},0);return wt>60?Et[0]+(Tt===""?"":Tt+`
|
|
|
`)+" "+vt.join(`,
|
|
|
`)+" "+Et[1]:Et[0]+Tt+" "+vt.join(", ")+" "+Et[1]}Ne.types=oe("./support/types");function Ee(vt){return Array.isArray(vt)}Ne.isArray=Ee;function be(vt){return typeof vt=="boolean"}Ne.isBoolean=be;function Ie(vt){return vt===null}Ne.isNull=Ie;function Le(vt){return vt==null}Ne.isNullOrUndefined=Le;function Fe(vt){return typeof vt=="number"}Ne.isNumber=Fe;function Oe(vt){return typeof vt=="string"}Ne.isString=Oe;function je(vt){return typeof vt=="symbol"}Ne.isSymbol=je;function ze(vt){return vt===void 0}Ne.isUndefined=ze;function _e(vt){return Ue(vt)&&yt(vt)==="[object RegExp]"}Ne.isRegExp=_e,Ne.types.isRegExp=_e;function Ue(vt){return typeof vt=="object"&&vt!==null}Ne.isObject=Ue;function $e(vt){return Ue(vt)&&yt(vt)==="[object Date]"}Ne.isDate=$e,Ne.types.isDate=$e;function et(vt){return Ue(vt)&&(yt(vt)==="[object Error]"||vt instanceof Error)}Ne.isError=et,Ne.types.isNativeError=et;function lt(vt){return typeof vt=="function"}Ne.isFunction=lt;function ut(vt){return vt===null||typeof vt=="boolean"||typeof vt=="number"||typeof vt=="string"||typeof vt=="symbol"||typeof vt=="undefined"}Ne.isPrimitive=ut,Ne.isBuffer=oe("./support/isBuffer");function yt(vt){return Object.prototype.toString.call(vt)}function qe(vt){return vt<10?"0"+vt.toString(10):vt.toString(10)}var ot=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dt(){var vt=new Date,Tt=[qe(vt.getHours()),qe(vt.getMinutes()),qe(vt.getSeconds())].join(":");return[vt.getDate(),ot[vt.getMonth()],Tt].join(" ")}Ne.log=function(){console.log("%s - %s",dt(),Ne.format.apply(Ne,arguments))},Ne.inherits=oe("inherits"),Ne._extend=function(vt,Tt){if(!Tt||!Ue(Tt))return vt;for(var Et=Object.keys(Tt),Zt=Et.length;Zt--;)vt[Et[Zt]]=Tt[Et[Zt]];return vt};function St(vt,Tt){return Object.prototype.hasOwnProperty.call(vt,Tt)}var xt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Ne.promisify=function(Tt){if(typeof Tt!="function")throw new TypeError('The "original" argument must be of type Function');if(xt&&Tt[xt]){var Et=Tt[xt];if(typeof Et!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Et,xt,{value:Et,enumerable:!1,writable:!1,configurable:!0}),Et}function Et(){for(var Zt,wt,bt=new Promise(function(xe,Ce){Zt=xe,wt=Ce}),it=[],nt=0;nt<arguments.length;nt++)it.push(arguments[nt]);it.push(function(xe,Ce){xe?wt(xe):Zt(Ce)});try{Tt.apply(this,it)}catch(xe){wt(xe)}return bt}return Object.setPrototypeOf(Et,Object.getPrototypeOf(Tt)),xt&&Object.defineProperty(Et,xt,{value:Et,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Et,ce(Tt))},Ne.promisify.custom=xt;function ft(vt,Tt){if(!vt){var Et=new Error("Promise was rejected with a falsy value");Et.reason=vt,vt=Et}return Tt(vt)}function gt(vt){if(typeof vt!="function")throw new TypeError('The "original" argument must be of type Function');function Tt(){for(var Et=[],Zt=0;Zt<arguments.length;Zt++)Et.push(arguments[Zt]);var wt=Et.pop();if(typeof wt!="function")throw new TypeError("The last argument must be of type Function");var bt=this,it=function(){return wt.apply(bt,arguments)};vt.apply(this,Et).then(function(nt){ge.nextTick(it.bind(null,null,nt))},function(nt){ge.nextTick(ft.bind(null,nt,it))})}return Object.setPrototypeOf(Tt,Object.getPrototypeOf(vt)),Object.defineProperties(Tt,ce(vt)),Tt}Ne.callbackify=gt}).call(this)}).call(this,oe("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";var ce=oe("for-each"),Pe=oe("available-typed-arrays"),Ae=oe("call-bind"),ye=oe("call-bind/callBound"),De=oe("gopd"),me=ye("Object.prototype.toString"),we=oe("has-tostringtag/shams")(),fe=typeof globalThis=="undefined"?ge:globalThis,z=Pe(),ee=ye("String.prototype.slice"),ae=Object.getPrototypeOf,re=ye("Array.prototype.indexOf",!0)||function(be,Ie){for(var Le=0;Le<be.length;Le+=1)if(be[Le]===Ie)return Le;return-1},le={__proto__:null};we&&De&&ae?ce(z,function(Ee){var be=new fe[Ee];if(Symbol.toStringTag in be){var Ie=ae(be),Le=De(Ie,Symbol.toStringTag);if(!Le){var Fe=ae(Ie);Le=De(Fe,Symbol.toStringTag)}le["$"+Ee]=Ae(Le.get)}}):ce(z,function(Ee){var be=new fe[Ee];le["$"+Ee]=Ae(be.slice)});var ue=function(be){var Ie=!1;return ce(le,function(Le,Fe){if(!Ie)try{"$"+Le(be)===Fe&&(Ie=ee(Fe,1))}catch(Oe){}}),Ie},pe=function(be){var Ie=!1;return ce(le,function(Le,Fe){if(!Ie)try{Le(be),Ie=ee(Fe,1)}catch(Oe){}}),Ie};Ze.exports=function(be){if(!be||typeof be!="object")return!1;if(!we){var Ie=ee(me(be),8,-1);return re(z,Ie)>-1?Ie:Ie!=="Object"?!1:pe(be)}return De?ue(be):null}}).call(this)}).call(this,typeof fn!="undefined"?fn: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,Ze,Ne){(function(){"use strict";Ne.stripBOM=function(ge){return ge[0]==="\uFEFF"?ge.substring(1):ge}}).call(this)},{}],422:[function(oe,Ze,Ne){(function(){"use strict";var ge,ce,Pe,Ae,ye,De={}.hasOwnProperty;ge=oe("xmlbuilder"),ce=oe("./defaults").defaults,Ae=function(me){return typeof me=="string"&&(me.indexOf("&")>=0||me.indexOf(">")>=0||me.indexOf("<")>=0)},ye=function(me){return"<![CDATA["+Pe(me)+"]]>"},Pe=function(me){return me.replace("]]>","]]]]><![CDATA[>")},Ne.Builder=function(){function me(we){var fe,z,ee;this.options={},z=ce["0.2"];for(fe in z)De.call(z,fe)&&(ee=z[fe],this.options[fe]=ee);for(fe in we)De.call(we,fe)&&(ee=we[fe],this.options[fe]=ee)}return me.prototype.buildObject=function(we){var fe,z,ee,ae,re;return fe=this.options.attrkey,z=this.options.charkey,Object.keys(we).length===1&&this.options.rootName===ce["0.2"].rootName?(re=Object.keys(we)[0],we=we[re]):re=this.options.rootName,ee=function(le){return function(ue,pe){var Ee,be,Ie,Le,Fe,Oe;if(typeof pe!="object")le.options.cdata&&Ae(pe)?ue.raw(ye(pe)):ue.txt(pe);else if(Array.isArray(pe)){for(Le in pe)if(De.call(pe,Le)){be=pe[Le];for(Fe in be)Ie=be[Fe],ue=ee(ue.ele(Fe),Ie).up()}}else for(Fe in pe)if(De.call(pe,Fe))if(be=pe[Fe],Fe===fe){if(typeof be=="object")for(Ee in be)Oe=be[Ee],ue=ue.att(Ee,Oe)}else if(Fe===z)le.options.cdata&&Ae(be)?ue=ue.raw(ye(be)):ue=ue.txt(be);else if(Array.isArray(be))for(Le in be)De.call(be,Le)&&(Ie=be[Le],typeof Ie=="string"?le.options.cdata&&Ae(Ie)?ue=ue.ele(Fe).raw(ye(Ie)).up():ue=ue.ele(Fe,Ie).up():ue=ee(ue.ele(Fe),Ie).up());else typeof be=="object"?ue=ee(ue.ele(Fe),be).up():typeof be=="string"&&le.options.cdata&&Ae(be)?ue=ue.ele(Fe).raw(ye(be)).up():(be==null&&(be=""),ue=ue.ele(Fe,be.toString()).up());return ue}}(this),ae=ge.create(re,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ee(ae,we).end(this.options.renderOpts)},me}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(oe,Ze,Ne){(function(){Ne.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,Ze,Ne){(function(){"use strict";var ge,ce,Pe,Ae,ye,De,me,we,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;we=oe("sax"),Ae=oe("events"),ge=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},De=function(re,le,ue){var pe,Ee,be;for(pe=0,Ee=re.length;pe<Ee;pe++)be=re[pe],le=be(le,ue);return le},Pe=function(re,le,ue){var pe;return pe=Object.create(null),pe.value=ue,pe.writable=!0,pe.enumerable=!0,pe.configurable=!0,Object.defineProperty(re,le,pe)},Ne.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,Ee,be;if(!(this instanceof Ne.Parser))return new Ne.Parser(ue);this.options={},Ee=ce["0.2"];for(pe in Ee)ae.call(Ee,pe)&&(be=Ee[pe],this.options[pe]=be);for(pe in ue)ae.call(ue,pe)&&(be=ue[pe],this.options[pe]=be);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(Ee){if(pe=Ee,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(pe)}},le.prototype.assignOrPush=function(ue,pe,Ee){return pe in ue?(ue[pe]instanceof Array||Pe(ue,pe,[ue[pe]]),ue[pe].push(Ee)):this.options.explicitArray?Pe(ue,pe,[Ee]):Pe(ue,pe,Ee)},le.prototype.reset=function(){var ue,pe,Ee,be;return this.removeAllListeners(),this.saxParser=we.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Ie){return function(Le){if(Ie.saxParser.resume(),!Ie.saxParser.errThrown)return Ie.saxParser.errThrown=!0,Ie.emit("error",Le)}}(this),this.saxParser.onend=function(Ie){return function(){if(!Ie.saxParser.ended)return Ie.saxParser.ended=!0,Ie.emit("end",Ie.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,be=[],ue=this.options.attrkey,pe=this.options.charkey,this.saxParser.onopentag=function(Ie){return function(Le){var Fe,Oe,je,ze,_e;if(je={},je[pe]="",!Ie.options.ignoreAttrs){_e=Le.attributes;for(Fe in _e)ae.call(_e,Fe)&&(!(ue in je)&&!Ie.options.mergeAttrs&&(je[ue]={}),Oe=Ie.options.attrValueProcessors?De(Ie.options.attrValueProcessors,Le.attributes[Fe],Fe):Le.attributes[Fe],ze=Ie.options.attrNameProcessors?De(Ie.options.attrNameProcessors,Fe):Fe,Ie.options.mergeAttrs?Ie.assignOrPush(je,ze,Oe):Pe(je[ue],ze,Oe))}return je["#name"]=Ie.options.tagNameProcessors?De(Ie.options.tagNameProcessors,Le.name):Le.name,Ie.options.xmlns&&(je[Ie.options.xmlnskey]={uri:Le.uri,local:Le.local}),be.push(je)}}(this),this.saxParser.onclosetag=function(Ie){return function(){var Le,Fe,Oe,je,ze,_e,Ue,$e,et,lt;if(_e=be.pop(),ze=_e["#name"],(!Ie.options.explicitChildren||!Ie.options.preserveChildrenOrder)&&delete _e["#name"],_e.cdata===!0&&(Le=_e.cdata,delete _e.cdata),et=be[be.length-1],_e[pe].match(/^\s*$/)&&!Le?(Fe=_e[pe],delete _e[pe]):(Ie.options.trim&&(_e[pe]=_e[pe].trim()),Ie.options.normalize&&(_e[pe]=_e[pe].replace(/\s{2,}/g," ").trim()),_e[pe]=Ie.options.valueProcessors?De(Ie.options.valueProcessors,_e[pe],ze):_e[pe],Object.keys(_e).length===1&&pe in _e&&!Ie.EXPLICIT_CHARKEY&&(_e=_e[pe])),ye(_e)&&(typeof Ie.options.emptyTag=="function"?_e=Ie.options.emptyTag():_e=Ie.options.emptyTag!==""?Ie.options.emptyTag:Fe),Ie.options.validator!=null&&(lt="/"+function(){var ut,yt,qe;for(qe=[],ut=0,yt=be.length;ut<yt;ut++)je=be[ut],qe.push(je["#name"]);return qe}().concat(ze).join("/"),function(){var ut;try{return _e=Ie.options.validator(lt,et&&et[ze],_e)}catch(yt){return ut=yt,Ie.emit("error",ut)}}()),Ie.options.explicitChildren&&!Ie.options.mergeAttrs&&typeof _e=="object"){if(!Ie.options.preserveChildrenOrder)je={},Ie.options.attrkey in _e&&(je[Ie.options.attrkey]=_e[Ie.options.attrkey],delete _e[Ie.options.attrkey]),!Ie.options.charsAsChildren&&Ie.options.charkey in _e&&(je[Ie.options.charkey]=_e[Ie.options.charkey],delete _e[Ie.options.charkey]),Object.getOwnPropertyNames(_e).length>0&&(je[Ie.options.childkey]=_e),_e=je;else if(et){et[Ie.options.childkey]=et[Ie.options.childkey]||[],Ue={};for(Oe in _e)ae.call(_e,Oe)&&Pe(Ue,Oe,_e[Oe]);et[Ie.options.childkey].push(Ue),delete _e["#name"],Object.keys(_e).length===1&&pe in _e&&!Ie.EXPLICIT_CHARKEY&&(_e=_e[pe])}}return be.length>0?Ie.assignOrPush(et,ze,_e):(Ie.options.explicitRoot&&($e=_e,_e={},Pe(_e,ze,$e)),Ie.resultObject=_e,Ie.saxParser.ended=!0,Ie.emit("end",Ie.resultObject))}}(this),Ee=function(Ie){return function(Le){var Fe,Oe;if(Oe=be[be.length-1],Oe)return Oe[pe]+=Le,Ie.options.explicitChildren&&Ie.options.preserveChildrenOrder&&Ie.options.charsAsChildren&&(Ie.options.includeWhiteChars||Le.replace(/\\n/g,"").trim()!=="")&&(Oe[Ie.options.childkey]=Oe[Ie.options.childkey]||[],Fe={"#name":"__text__"},Fe[pe]=Le,Ie.options.normalize&&(Fe[pe]=Fe[pe].replace(/\s{2,}/g," ").trim()),Oe[Ie.options.childkey].push(Fe)),Oe}}(this),this.saxParser.ontext=Ee,this.saxParser.oncdata=function(Ie){return function(Le){var Fe;if(Fe=Ee(Le),Fe)return Fe.cdata=!0}}(this)},le.prototype.parseString=function(ue,pe){var Ee;pe!=null&&typeof pe=="function"&&(this.on("end",function(be){return this.reset(),pe(null,be)}),this.on("error",function(be){return this.reset(),pe(be)}));try{return ue=ue.toString(),ue.trim()===""?(this.emit("end",null),!0):(ue=ge.stripBOM(ue),this.options.async?(this.remaining=ue,fe(this.processAsync),this.saxParser):this.saxParser.write(ue).close())}catch(be){if(Ee=be,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Ee}else return this.emit("error",Ee),this.saxParser.errThrown=!0}},le.prototype.parseStringPromise=function(ue){return new Promise(function(pe){return function(Ee,be){return pe.parseString(ue,function(Ie,Le){return Ie?be(Ie):Ee(Le)})}}(this))},le}(Ae),Ne.parseString=function(re,le,ue){var pe,Ee,be;return ue!=null?(typeof ue=="function"&&(pe=ue),typeof le=="object"&&(Ee=le)):(typeof le=="function"&&(pe=le),Ee={}),be=new Ne.Parser(Ee),be.parseString(re,pe)},Ne.parseStringPromise=function(re,le){var ue,pe;return typeof le=="object"&&(ue=le),pe=new Ne.Parser(ue),pe.parseStringPromise(re)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(oe,Ze,Ne){(function(){"use strict";var ge;ge=new RegExp(/(?!xmlns)^.*:/),Ne.normalize=function(ce){return ce.toLowerCase()},Ne.firstCharLowerCase=function(ce){return ce.charAt(0).toLowerCase()+ce.slice(1)},Ne.stripPrefix=function(ce){return ce.replace(ge,"")},Ne.parseNumbers=function(ce){return isNaN(ce)||(ce=ce%1===0?parseInt(ce,10):parseFloat(ce)),ce},Ne.parseBooleans=function(ce){return/^(?:true|false)$/i.test(ce)&&(ce=ce.toLowerCase()==="true"),ce}}).call(this)},{}],426:[function(oe,Ze,Ne){(function(){"use strict";var ge,ce,Pe,Ae,ye=function(me,we){for(var fe in we)De.call(we,fe)&&(me[fe]=we[fe]);function z(){this.constructor=me}return z.prototype=we.prototype,me.prototype=new z,me.__super__=we.prototype,me},De={}.hasOwnProperty;ce=oe("./defaults"),ge=oe("./builder"),Pe=oe("./parser"),Ae=oe("./processors"),Ne.defaults=ce.defaults,Ne.processors=Ae,Ne.ValidationError=function(me){ye(we,me);function we(fe){this.message=fe}return we}(Error),Ne.Builder=ge.Builder,Ne.Parser=Pe.Parser,Ne.parseString=Pe.parseString,Ne.parseStringPromise=Pe.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(oe,Ze,Ne){(function(){Ze.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(oe,Ze,Ne){(function(){Ze.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,Ze,Ne){(function(){var ge,ce,Pe,Ae,ye,De,me,we=[].slice,fe={}.hasOwnProperty;ge=function(){var z,ee,ae,re,le,ue;if(ue=arguments[0],le=2<=arguments.length?we.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]"},De=function(z){var ee;return!!z&&((ee=typeof z)=="function"||ee==="object")},Pe=function(z){return ye(Array.isArray)?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"},Ae=function(z){var ee;if(Pe(z))return!z.length;for(ee in z)if(fe.call(z,ee))return!1;return!0},me=function(z){var ee,ae;return De(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},Ze.exports.assign=ge,Ze.exports.isFunction=ye,Ze.exports.isObject=De,Ze.exports.isArray=Pe,Ze.exports.isEmpty=Ae,Ze.exports.isPlainObject=me,Ze.exports.getValue=ce}).call(this)},{}],430:[function(oe,Ze,Ne){(function(){Ze.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(oe,Ze,Ne){(function(){var ge,ce,Pe;ge=oe("./NodeType"),Pe=oe("./XMLNode"),Ze.exports=ce=function(){function Ae(ye,De,me){if(this.parent=ye,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),De==null)throw new Error("Missing attribute name. "+this.debugInfo(De));this.name=this.stringify.name(De),this.value=this.stringify.attValue(me),this.type=ge.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(Ae.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Ae.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(Ae.prototype,"textContent",{get:function(){return this.value},set:function(ye){return this.value=ye||""}}),Object.defineProperty(Ae.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(Ae.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(Ae.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(Ae.prototype,"specified",{get:function(){return!0}}),Ae.prototype.clone=function(){return Object.create(this)},Ae.prototype.toString=function(ye){return this.options.writer.attribute(this,this.options.writer.filterOptions(ye))},Ae.prototype.debugInfo=function(ye){return ye=ye||this.name,ye==null?"parent: <"+this.parent.name+">":"attribute: {"+ye+"}, parent: <"+this.parent.name+">"},Ae.prototype.isEqualNode=function(ye){return!(ye.namespaceURI!==this.namespaceURI||ye.prefix!==this.prefix||ye.localName!==this.localName||ye.value!==this.value)},Ae}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae=function(De,me){for(var we in me)ye.call(me,we)&&(De[we]=me[we]);function fe(){this.constructor=De}return fe.prototype=me.prototype,De.prototype=new fe,De.__super__=me.prototype,De},ye={}.hasOwnProperty;ge=oe("./NodeType"),Pe=oe("./XMLCharacterData"),Ze.exports=ce=function(De){Ae(me,De);function me(we,fe){if(me.__super__.constructor.call(this,we),fe==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=ge.CData,this.value=this.stringify.cdata(fe)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(we){return this.options.writer.cdata(this,this.options.writer.filterOptions(we))},me}(Pe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(oe,Ze,Ne){(function(){var ge,ce,Pe=function(ye,De){for(var me in De)Ae.call(De,me)&&(ye[me]=De[me]);function we(){this.constructor=ye}return we.prototype=De.prototype,ye.prototype=new we,ye.__super__=De.prototype,ye},Ae={}.hasOwnProperty;ce=oe("./XMLNode"),Ze.exports=ge=function(ye){Pe(De,ye);function De(me){De.__super__.constructor.call(this,me),this.value=""}return Object.defineProperty(De.prototype,"data",{get:function(){return this.value},set:function(me){return this.value=me||""}}),Object.defineProperty(De.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(De.prototype,"textContent",{get:function(){return this.value},set:function(me){return this.value=me||""}}),De.prototype.clone=function(){return Object.create(this)},De.prototype.substringData=function(me,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.appendData=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.insertData=function(me,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.deleteData=function(me,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.replaceData=function(me,we,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.isEqualNode=function(me){return!(!De.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.data!==this.data)},De}(ce)}).call(this)},{"./XMLNode":450}],434:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae=function(De,me){for(var we in me)ye.call(me,we)&&(De[we]=me[we]);function fe(){this.constructor=De}return fe.prototype=me.prototype,De.prototype=new fe,De.__super__=me.prototype,De},ye={}.hasOwnProperty;ge=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ze.exports=Pe=function(De){Ae(me,De);function me(we,fe){if(me.__super__.constructor.call(this,we),fe==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=ge.Comment,this.value=this.stringify.comment(fe)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(we){return this.options.writer.comment(this,this.options.writer.filterOptions(we))},me}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(oe,Ze,Ne){(function(){var ge,ce,Pe;ce=oe("./XMLDOMErrorHandler"),Pe=oe("./XMLDOMStringList"),Ze.exports=ge=function(){function Ae(){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(Ae.prototype,"parameterNames",{get:function(){return new Pe(Object.keys(this.defaultParams))}}),Ae.prototype.getParameter=function(ye){return this.params.hasOwnProperty(ye)?this.params[ye]:null},Ae.prototype.canSetParameter=function(ye,De){return!0},Ae.prototype.setParameter=function(ye,De){return De!=null?this.params[ye]=De:delete this.params[ye]},Ae}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(oe,Ze,Ne){(function(){var ge;Ze.exports=ge=function(){function ce(){}return ce.prototype.handleError=function(Pe){throw new Error(Pe)},ce}()}).call(this)},{}],437:[function(oe,Ze,Ne){(function(){var ge;Ze.exports=ge=function(){function ce(){}return ce.prototype.hasFeature=function(Pe,Ae){return!0},ce.prototype.createDocumentType=function(Pe,Ae,ye){throw new Error("This DOM method is not implemented.")},ce.prototype.createDocument=function(Pe,Ae,ye){throw new Error("This DOM method is not implemented.")},ce.prototype.createHTMLDocument=function(Pe){throw new Error("This DOM method is not implemented.")},ce.prototype.getFeature=function(Pe,Ae){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],438:[function(oe,Ze,Ne){(function(){var ge;Ze.exports=ge=function(){function ce(Pe){this.arr=Pe||[]}return Object.defineProperty(ce.prototype,"length",{get:function(){return this.arr.length}}),ce.prototype.item=function(Pe){return this.arr[Pe]||null},ce.prototype.contains=function(Pe){return this.arr.indexOf(Pe)!==-1},ce}()}).call(this)},{}],439:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae=function(De,me){for(var we in me)ye.call(me,we)&&(De[we]=me[we]);function fe(){this.constructor=De}return fe.prototype=me.prototype,De.prototype=new fe,De.__super__=me.prototype,De},ye={}.hasOwnProperty;Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ze.exports=ce=function(De){Ae(me,De);function me(we,fe,z,ee,ae,re){if(me.__super__.constructor.call(this,we),fe==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(z==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(fe));if(!ee)throw new Error("Missing DTD attribute type. "+this.debugInfo(fe));if(!ae)throw new Error("Missing DTD attribute default. "+this.debugInfo(fe));if(ae.indexOf("#")!==0&&(ae="#"+ae),!ae.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(fe));if(re&&!ae.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(fe));this.elementName=this.stringify.name(fe),this.type=ge.AttributeDeclaration,this.attributeName=this.stringify.name(z),this.attributeType=this.stringify.dtdAttType(ee),re&&(this.defaultValue=this.stringify.dtdAttDefault(re)),this.defaultValueType=ae}return me.prototype.toString=function(we){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(we))},me}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae=function(De,me){for(var we in me)ye.call(me,we)&&(De[we]=me[we]);function fe(){this.constructor=De}return fe.prototype=me.prototype,De.prototype=new fe,De.__super__=me.prototype,De},ye={}.hasOwnProperty;Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ze.exports=ce=function(De){Ae(me,De);function me(we,fe,z){if(me.__super__.constructor.call(this,we),fe==null)throw new Error("Missing DTD element name. "+this.debugInfo());z||(z="(#PCDATA)"),Array.isArray(z)&&(z="("+z.join(",")+")"),this.name=this.stringify.name(fe),this.type=ge.ElementDeclaration,this.value=this.stringify.dtdElementValue(z)}return me.prototype.toString=function(we){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(we))},me}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae,ye=function(me,we){for(var fe in we)De.call(we,fe)&&(me[fe]=we[fe]);function z(){this.constructor=me}return z.prototype=we.prototype,me.prototype=new z,me.__super__=we.prototype,me},De={}.hasOwnProperty;Ae=oe("./Utility").isObject,Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ze.exports=ce=function(me){ye(we,me);function we(fe,z,ee,ae){if(we.__super__.constructor.call(this,fe),ee==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ee));if(ae==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ee));if(this.pe=!!z,this.name=this.stringify.name(ee),this.type=ge.EntityDeclaration,!Ae(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(we.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(we.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(we.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(we.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(we.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(we.prototype,"xmlVersion",{get:function(){return null}}),we.prototype.toString=function(fe){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(fe))},we}(Pe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae=function(De,me){for(var we in me)ye.call(me,we)&&(De[we]=me[we]);function fe(){this.constructor=De}return fe.prototype=me.prototype,De.prototype=new fe,De.__super__=me.prototype,De},ye={}.hasOwnProperty;Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ze.exports=ce=function(De){Ae(me,De);function me(we,fe,z){if(me.__super__.constructor.call(this,we),fe==null)throw new Error("Missing DTD notation name. "+this.debugInfo(fe));if(!z.pubID&&!z.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(fe));this.name=this.stringify.name(fe),this.type=ge.NotationDeclaration,z.pubID!=null&&(this.pubID=this.stringify.dtdPubID(z.pubID)),z.sysID!=null&&(this.sysID=this.stringify.dtdSysID(z.sysID))}return Object.defineProperty(me.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(me.prototype,"systemId",{get:function(){return this.sysID}}),me.prototype.toString=function(we){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(we))},me}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae,ye=function(me,we){for(var fe in we)De.call(we,fe)&&(me[fe]=we[fe]);function z(){this.constructor=me}return z.prototype=we.prototype,me.prototype=new z,me.__super__=we.prototype,me},De={}.hasOwnProperty;Ae=oe("./Utility").isObject,Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ze.exports=ce=function(me){ye(we,me);function we(fe,z,ee,ae){var re;we.__super__.constructor.call(this,fe),Ae(z)&&(re=z,z=re.version,ee=re.encoding,ae=re.standalone),z||(z="1.0"),this.type=ge.Declaration,this.version=this.stringify.xmlVersion(z),ee!=null&&(this.encoding=this.stringify.xmlEncoding(ee)),ae!=null&&(this.standalone=this.stringify.xmlStandalone(ae))}return we.prototype.toString=function(fe){return this.options.writer.declaration(this,this.options.writer.filterOptions(fe))},we}(Pe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae,ye,De,me,we,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,we=oe("./XMLNode"),ge=oe("./NodeType"),ce=oe("./XMLDTDAttList"),Ae=oe("./XMLDTDEntity"),Pe=oe("./XMLDTDElement"),ye=oe("./XMLDTDNotation"),me=oe("./XMLNamedNodeMap"),Ze.exports=De=function(ae){z(re,ae);function re(le,ue,pe){var Ee,be,Ie,Le,Fe,Oe;if(re.__super__.constructor.call(this,le),this.type=ge.DocType,le.children){for(Le=le.children,be=0,Ie=Le.length;be<Ie;be++)if(Ee=Le[be],Ee.type===ge.Element){this.name=Ee.name;break}}this.documentObject=le,fe(ue)&&(Fe=ue,ue=Fe.pubID,pe=Fe.sysID),pe==null&&(Oe=[ue,pe],pe=Oe[0],ue=Oe[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,Ee,be;for(Ee={},be=this.children,ue=0,pe=be.length;ue<pe;ue++)le=be[ue],le.type===ge.EntityDeclaration&&!le.pe&&(Ee[le.name]=le);return new me(Ee)}}),Object.defineProperty(re.prototype,"notations",{get:function(){var le,ue,pe,Ee,be;for(Ee={},be=this.children,ue=0,pe=be.length;ue<pe;ue++)le=be[ue],le.type===ge.NotationDeclaration&&(Ee[le.name]=le);return new me(Ee)}}),Object.defineProperty(re.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(re.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(re.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),re.prototype.element=function(le,ue){var pe;return pe=new Pe(this,le,ue),this.children.push(pe),this},re.prototype.attList=function(le,ue,pe,Ee,be){var Ie;return Ie=new ce(this,le,ue,pe,Ee,be),this.children.push(Ie),this},re.prototype.entity=function(le,ue){var pe;return pe=new Ae(this,!1,le,ue),this.children.push(pe),this},re.prototype.pEntity=function(le,ue){var pe;return pe=new Ae(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,Ee,be){return this.attList(le,ue,pe,Ee,be)},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}(we)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae,ye,De,me,we,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;we=oe("./Utility").isPlainObject,Pe=oe("./XMLDOMImplementation"),ce=oe("./XMLDOMConfiguration"),ye=oe("./XMLNode"),ge=oe("./NodeType"),me=oe("./XMLStringifier"),De=oe("./XMLStringWriter"),Ze.exports=Ae=function(ee){fe(ae,ee);function ae(re){ae.__super__.constructor.call(this,null),this.name="#document",this.type=ge.Document,this.documentURI=null,this.domConfig=new ce,re||(re={}),re.writer||(re.writer=new De),this.options=re,this.stringify=new me(re)}return Object.defineProperty(ae.prototype,"implementation",{value:new Pe}),Object.defineProperty(ae.prototype,"doctype",{get:function(){var re,le,ue,pe;for(pe=this.children,le=0,ue=pe.length;le<ue;le++)if(re=pe[le],re.type===ge.DocType)return re;return null}}),Object.defineProperty(ae.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ae.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ae.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ae.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===ge.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ae.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===ge.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ae.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===ge.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ae.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ae.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ae.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ae.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ae.prototype,"contentType",{get:function(){return null}}),ae.prototype.end=function(re){var le;return le={},re?we(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,Ze,Ne){(function(){var ge,ce,Pe,Ae,ye,De,me,we,fe,z,ee,ae,re,le,ue,pe,Ee,be,Ie,Le,Fe,Oe,je,ze,_e={}.hasOwnProperty;ze=oe("./Utility"),Oe=ze.isObject,Fe=ze.isFunction,je=ze.isPlainObject,Le=ze.getValue,ge=oe("./NodeType"),ae=oe("./XMLDocument"),le=oe("./XMLElement"),Ae=oe("./XMLCData"),ye=oe("./XMLComment"),pe=oe("./XMLRaw"),Ie=oe("./XMLText"),ue=oe("./XMLProcessingInstruction"),z=oe("./XMLDeclaration"),ee=oe("./XMLDocType"),De=oe("./XMLDTDAttList"),we=oe("./XMLDTDEntity"),me=oe("./XMLDTDElement"),fe=oe("./XMLDTDNotation"),Pe=oe("./XMLAttribute"),be=oe("./XMLStringifier"),Ee=oe("./XMLStringWriter"),ce=oe("./WriterState"),Ze.exports=re=function(){function Ue($e,et,lt){var ut;this.name="?xml",this.type=ge.Document,$e||($e={}),ut={},$e.writer?je($e.writer)&&(ut=$e.writer,$e.writer=new Ee):$e.writer=new Ee,this.options=$e,this.writer=$e.writer,this.writerOptions=this.writer.filterOptions(ut),this.stringify=new be($e),this.onDataCallback=et||function(){},this.onEndCallback=lt||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ue.prototype.createChildNode=function($e){var et,lt,ut,yt,qe,ot,dt,St;switch($e.type){case ge.CData:this.cdata($e.value);break;case ge.Comment:this.comment($e.value);break;case ge.Element:ut={},dt=$e.attribs;for(lt in dt)_e.call(dt,lt)&&(et=dt[lt],ut[lt]=et.value);this.node($e.name,ut);break;case ge.Dummy:this.dummy();break;case ge.Raw:this.raw($e.value);break;case ge.Text:this.text($e.value);break;case ge.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(St=$e.children,qe=0,ot=St.length;qe<ot;qe++)yt=St[qe],this.createChildNode(yt),yt.type===ge.Element&&this.up();return this},Ue.prototype.dummy=function(){return this},Ue.prototype.node=function($e,et,lt){var ut;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=Le($e),et==null&&(et={}),et=Le(et),Oe(et)||(ut=[et,lt],lt=ut[0],et=ut[1]),this.currentNode=new le(this,$e,et),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,lt!=null&&this.text(lt),this},Ue.prototype.element=function($e,et,lt){var ut,yt,qe,ot,dt,St;if(this.currentNode&&this.currentNode.type===ge.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray($e)||Oe($e)||Fe($e))for(ot=this.options.noValidation,this.options.noValidation=!0,St=new ae(this.options).element("TEMP_ROOT"),St.element($e),this.options.noValidation=ot,dt=St.children,yt=0,qe=dt.length;yt<qe;yt++)ut=dt[yt],this.createChildNode(ut),ut.type===ge.Element&&this.up();else this.node($e,et,lt);return this},Ue.prototype.attribute=function($e,et){var lt,ut;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=Le($e)),Oe($e))for(lt in $e)_e.call($e,lt)&&(ut=$e[lt],this.attribute(lt,ut));else Fe(et)&&(et=et.apply()),this.options.keepNullAttributes&&et==null?this.currentNode.attribs[$e]=new Pe(this,$e,""):et!=null&&(this.currentNode.attribs[$e]=new Pe(this,$e,et));return this},Ue.prototype.text=function($e){var et;return this.openCurrent(),et=new Ie(this,$e),this.onData(this.writer.text(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ue.prototype.cdata=function($e){var et;return this.openCurrent(),et=new Ae(this,$e),this.onData(this.writer.cdata(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ue.prototype.comment=function($e){var et;return this.openCurrent(),et=new ye(this,$e),this.onData(this.writer.comment(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ue.prototype.raw=function($e){var et;return this.openCurrent(),et=new pe(this,$e),this.onData(this.writer.raw(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ue.prototype.instruction=function($e,et){var lt,ut,yt,qe,ot;if(this.openCurrent(),$e!=null&&($e=Le($e)),et!=null&&(et=Le(et)),Array.isArray($e))for(lt=0,qe=$e.length;lt<qe;lt++)ut=$e[lt],this.instruction(ut);else if(Oe($e))for(ut in $e)_e.call($e,ut)&&(yt=$e[ut],this.instruction(ut,yt));else Fe(et)&&(et=et.apply()),ot=new ue(this,$e,et),this.onData(this.writer.processingInstruction(ot,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Ue.prototype.declaration=function($e,et,lt){var ut;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ut=new z(this,$e,et,lt),this.onData(this.writer.declaration(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ue.prototype.doctype=function($e,et,lt){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,et,lt),this.currentNode.rootNodeName=$e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ue.prototype.dtdElement=function($e,et){var lt;return this.openCurrent(),lt=new me(this,$e,et),this.onData(this.writer.dtdElement(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ue.prototype.attList=function($e,et,lt,ut,yt){var qe;return this.openCurrent(),qe=new De(this,$e,et,lt,ut,yt),this.onData(this.writer.dtdAttList(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ue.prototype.entity=function($e,et){var lt;return this.openCurrent(),lt=new we(this,!1,$e,et),this.onData(this.writer.dtdEntity(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ue.prototype.pEntity=function($e,et){var lt;return this.openCurrent(),lt=new we(this,!0,$e,et),this.onData(this.writer.dtdEntity(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ue.prototype.notation=function($e,et){var lt;return this.openCurrent(),lt=new fe(this,$e,et),this.onData(this.writer.dtdNotation(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ue.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},Ue.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ue.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ue.prototype.openNode=function($e){var et,lt,ut,yt;if(!$e.isOpen){if(!this.root&&this.currentLevel===0&&$e.type===ge.Element&&(this.root=$e),lt="",$e.type===ge.Element){this.writerOptions.state=ce.OpenTag,lt=this.writer.indent($e,this.writerOptions,this.currentLevel)+"<"+$e.name,yt=$e.attribs;for(ut in yt)_e.call(yt,ut)&&(et=yt[ut],lt+=this.writer.attribute(et,this.writerOptions,this.currentLevel));lt+=($e.children?">":"/>")+this.writer.endline($e,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.InsideTag}else this.writerOptions.state=ce.OpenTag,lt=this.writer.indent($e,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+$e.rootNodeName,$e.pubID&&$e.sysID?lt+=' PUBLIC "'+$e.pubID+'" "'+$e.sysID+'"':$e.sysID&&(lt+=' SYSTEM "'+$e.sysID+'"'),$e.children?(lt+=" [",this.writerOptions.state=ce.InsideTag):(this.writerOptions.state=ce.CloseTag,lt+=">"),lt+=this.writer.endline($e,this.writerOptions,this.currentLevel);return this.onData(lt,this.currentLevel),$e.isOpen=!0}},Ue.prototype.closeNode=function($e){var et;if(!$e.isClosed)return et="",this.writerOptions.state=ce.CloseTag,$e.type===ge.Element?et=this.writer.indent($e,this.writerOptions,this.currentLevel)+"</"+$e.name+">"+this.writer.endline($e,this.writerOptions,this.currentLevel):et=this.writer.indent($e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline($e,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.None,this.onData(et,this.currentLevel),$e.isClosed=!0},Ue.prototype.onData=function($e,et){return this.documentStarted=!0,this.onDataCallback($e,et+1)},Ue.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ue.prototype.debugInfo=function($e){return $e==null?"":"node: <"+$e+">"},Ue.prototype.ele=function(){return this.element.apply(this,arguments)},Ue.prototype.nod=function($e,et,lt){return this.node($e,et,lt)},Ue.prototype.txt=function($e){return this.text($e)},Ue.prototype.dat=function($e){return this.cdata($e)},Ue.prototype.com=function($e){return this.comment($e)},Ue.prototype.ins=function($e,et){return this.instruction($e,et)},Ue.prototype.dec=function($e,et,lt){return this.declaration($e,et,lt)},Ue.prototype.dtd=function($e,et,lt){return this.doctype($e,et,lt)},Ue.prototype.e=function($e,et,lt){return this.element($e,et,lt)},Ue.prototype.n=function($e,et,lt){return this.node($e,et,lt)},Ue.prototype.t=function($e){return this.text($e)},Ue.prototype.d=function($e){return this.cdata($e)},Ue.prototype.c=function($e){return this.comment($e)},Ue.prototype.r=function($e){return this.raw($e)},Ue.prototype.i=function($e,et){return this.instruction($e,et)},Ue.prototype.att=function(){return this.currentNode&&this.currentNode.type===ge.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ue.prototype.a=function(){return this.currentNode&&this.currentNode.type===ge.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ue.prototype.ent=function($e,et){return this.entity($e,et)},Ue.prototype.pent=function($e,et){return this.pEntity($e,et)},Ue.prototype.not=function($e,et){return this.notation($e,et)},Ue}()}).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,Ze,Ne){(function(){var ge,ce,Pe,Ae=function(De,me){for(var we in me)ye.call(me,we)&&(De[we]=me[we]);function fe(){this.constructor=De}return fe.prototype=me.prototype,De.prototype=new fe,De.__super__=me.prototype,De},ye={}.hasOwnProperty;Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ze.exports=ce=function(De){Ae(me,De);function me(we){me.__super__.constructor.call(this,we),this.type=ge.Dummy}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(we){return""},me}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae,ye,De,me,we,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"),we=fe.isObject,me=fe.isFunction,De=fe.getValue,ye=oe("./XMLNode"),ge=oe("./NodeType"),ce=oe("./XMLAttribute"),Ae=oe("./XMLNamedNodeMap"),Ze.exports=Pe=function(ae){z(re,ae);function re(le,ue,pe){var Ee,be,Ie,Le;if(re.__super__.constructor.call(this,le),ue==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ue),this.type=ge.Element,this.attribs={},this.schemaTypeInfo=null,pe!=null&&this.attribute(pe),le.type===ge.Document&&(this.isRoot=!0,this.documentObject=le,le.rootObject=this,le.children)){for(Le=le.children,be=0,Ie=Le.length;be<Ie;be++)if(Ee=Le[be],Ee.type===ge.DocType){Ee.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 Ae(this.attribs)),this.attributeMap}}),re.prototype.clone=function(){var le,ue,pe,Ee;pe=Object.create(this),pe.isRoot&&(pe.documentObject=null),pe.attribs={},Ee=this.attribs;for(ue in Ee)ee.call(Ee,ue)&&(le=Ee[ue],pe.attribs[ue]=le.clone());return pe.children=[],this.children.forEach(function(be){var Ie;return Ie=be.clone(),Ie.parent=pe,pe.children.push(Ie)}),pe},re.prototype.attribute=function(le,ue){var pe,Ee;if(le!=null&&(le=De(le)),we(le))for(pe in le)ee.call(le,pe)&&(Ee=le[pe],this.attribute(pe,Ee));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,Ee;if(le==null)throw new Error("Missing attribute name. "+this.debugInfo());if(le=De(le),Array.isArray(le))for(pe=0,Ee=le.length;pe<Ee;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,Ee;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,Ee=this.attribs.length-1;0<=Ee?pe<=Ee:pe>=Ee;ue=0<=Ee?++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,Ze,Ne){(function(){var ge;Ze.exports=ge=function(){function ce(Pe){this.nodes=Pe}return Object.defineProperty(ce.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),ce.prototype.clone=function(){return this.nodes=null},ce.prototype.getNamedItem=function(Pe){return this.nodes[Pe]},ce.prototype.setNamedItem=function(Pe){var Ae;return Ae=this.nodes[Pe.nodeName],this.nodes[Pe.nodeName]=Pe,Ae||null},ce.prototype.removeNamedItem=function(Pe){var Ae;return Ae=this.nodes[Pe],delete this.nodes[Pe],Ae||null},ce.prototype.item=function(Pe){return this.nodes[Object.keys(this.nodes)[Pe]]||null},ce.prototype.getNamedItemNS=function(Pe,Ae){throw new Error("This DOM method is not implemented.")},ce.prototype.setNamedItemNS=function(Pe){throw new Error("This DOM method is not implemented.")},ce.prototype.removeNamedItemNS=function(Pe,Ae){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],450:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae,ye,De,me,we,fe,z,ee,ae,re,le,ue,pe,Ee,be,Ie,Le={}.hasOwnProperty;Ie=oe("./Utility"),be=Ie.isObject,Ee=Ie.isFunction,pe=Ie.isEmpty,ue=Ie.getValue,we=null,Pe=null,Ae=null,ye=null,De=null,re=null,le=null,ae=null,me=null,ce=null,ee=null,fe=null,ge=null,Ze.exports=z=function(){function Fe(Oe){this.parent=Oe,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,we||(we=oe("./XMLElement"),Pe=oe("./XMLCData"),Ae=oe("./XMLComment"),ye=oe("./XMLDeclaration"),De=oe("./XMLDocType"),re=oe("./XMLRaw"),le=oe("./XMLText"),ae=oe("./XMLProcessingInstruction"),me=oe("./XMLDummy"),ce=oe("./NodeType"),ee=oe("./XMLNodeList"),fe=oe("./XMLNamedNodeMap"),ge=oe("./DocumentPosition"))}return Object.defineProperty(Fe.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(Fe.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Fe.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(Fe.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(Fe.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ee(this.children)),this.childNodeList}}),Object.defineProperty(Fe.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(Fe.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(Fe.prototype,"previousSibling",{get:function(){var Oe;return Oe=this.parent.children.indexOf(this),this.parent.children[Oe-1]||null}}),Object.defineProperty(Fe.prototype,"nextSibling",{get:function(){var Oe;return Oe=this.parent.children.indexOf(this),this.parent.children[Oe+1]||null}}),Object.defineProperty(Fe.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(Fe.prototype,"textContent",{get:function(){var Oe,je,ze,_e,Ue;if(this.nodeType===ce.Element||this.nodeType===ce.DocumentFragment){for(Ue="",_e=this.children,je=0,ze=_e.length;je<ze;je++)Oe=_e[je],Oe.textContent&&(Ue+=Oe.textContent);return Ue}else return null},set:function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Fe.prototype.setParent=function(Oe){var je,ze,_e,Ue,$e;for(this.parent=Oe,Oe&&(this.options=Oe.options,this.stringify=Oe.stringify),Ue=this.children,$e=[],ze=0,_e=Ue.length;ze<_e;ze++)je=Ue[ze],$e.push(je.setParent(this));return $e},Fe.prototype.element=function(Oe,je,ze){var _e,Ue,$e,et,lt,ut,yt,qe,ot,dt,St;if(ut=null,je===null&&ze==null&&(ot=[{},null],je=ot[0],ze=ot[1]),je==null&&(je={}),je=ue(je),be(je)||(dt=[je,ze],ze=dt[0],je=dt[1]),Oe!=null&&(Oe=ue(Oe)),Array.isArray(Oe))for($e=0,yt=Oe.length;$e<yt;$e++)Ue=Oe[$e],ut=this.element(Ue);else if(Ee(Oe))ut=this.element(Oe.apply());else if(be(Oe)){for(lt in Oe)if(Le.call(Oe,lt))if(St=Oe[lt],Ee(St)&&(St=St.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&<.indexOf(this.stringify.convertAttKey)===0)ut=this.attribute(lt.substr(this.stringify.convertAttKey.length),St);else if(!this.options.separateArrayItems&&Array.isArray(St)&&pe(St))ut=this.dummy();else if(be(St)&&pe(St))ut=this.element(lt);else if(!this.options.keepNullNodes&&St==null)ut=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(St))for(et=0,qe=St.length;et<qe;et++)Ue=St[et],_e={},_e[lt]=Ue,ut=this.element(_e);else be(St)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&<.indexOf(this.stringify.convertTextKey)===0?ut=this.element(St):(ut=this.element(lt),ut.element(St)):ut=this.element(lt,St)}else!this.options.keepNullNodes&&ze===null?ut=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Oe.indexOf(this.stringify.convertTextKey)===0?ut=this.text(ze):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Oe.indexOf(this.stringify.convertCDataKey)===0?ut=this.cdata(ze):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Oe.indexOf(this.stringify.convertCommentKey)===0?ut=this.comment(ze):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Oe.indexOf(this.stringify.convertRawKey)===0?ut=this.raw(ze):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Oe.indexOf(this.stringify.convertPIKey)===0?ut=this.instruction(Oe.substr(this.stringify.convertPIKey.length),ze):ut=this.node(Oe,je,ze);if(ut==null)throw new Error("Could not create any elements with: "+Oe+". "+this.debugInfo());return ut},Fe.prototype.insertBefore=function(Oe,je,ze){var _e,Ue,$e,et,lt;if(Oe!=null&&Oe.type)return $e=Oe,et=je,$e.setParent(this),et?(Ue=children.indexOf(et),lt=children.splice(Ue),children.push($e),Array.prototype.push.apply(children,lt)):children.push($e),$e;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Oe));return Ue=this.parent.children.indexOf(this),lt=this.parent.children.splice(Ue),_e=this.parent.element(Oe,je,ze),Array.prototype.push.apply(this.parent.children,lt),_e},Fe.prototype.insertAfter=function(Oe,je,ze){var _e,Ue,$e;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Oe));return Ue=this.parent.children.indexOf(this),$e=this.parent.children.splice(Ue+1),_e=this.parent.element(Oe,je,ze),Array.prototype.push.apply(this.parent.children,$e),_e},Fe.prototype.remove=function(){var Oe,je;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Oe=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Oe,Oe-Oe+1].concat(je=[])),this.parent},Fe.prototype.node=function(Oe,je,ze){var _e,Ue;return Oe!=null&&(Oe=ue(Oe)),je||(je={}),je=ue(je),be(je)||(Ue=[je,ze],ze=Ue[0],je=Ue[1]),_e=new we(this,Oe,je),ze!=null&&_e.text(ze),this.children.push(_e),_e},Fe.prototype.text=function(Oe){var je;return be(Oe)&&this.element(Oe),je=new le(this,Oe),this.children.push(je),this},Fe.prototype.cdata=function(Oe){var je;return je=new Pe(this,Oe),this.children.push(je),this},Fe.prototype.comment=function(Oe){var je;return je=new Ae(this,Oe),this.children.push(je),this},Fe.prototype.commentBefore=function(Oe){var je,ze,_e;return ze=this.parent.children.indexOf(this),_e=this.parent.children.splice(ze),je=this.parent.comment(Oe),Array.prototype.push.apply(this.parent.children,_e),this},Fe.prototype.commentAfter=function(Oe){var je,ze,_e;return ze=this.parent.children.indexOf(this),_e=this.parent.children.splice(ze+1),je=this.parent.comment(Oe),Array.prototype.push.apply(this.parent.children,_e),this},Fe.prototype.raw=function(Oe){var je;return je=new re(this,Oe),this.children.push(je),this},Fe.prototype.dummy=function(){var Oe;return Oe=new me(this),Oe},Fe.prototype.instruction=function(Oe,je){var ze,_e,Ue,$e,et;if(Oe!=null&&(Oe=ue(Oe)),je!=null&&(je=ue(je)),Array.isArray(Oe))for($e=0,et=Oe.length;$e<et;$e++)ze=Oe[$e],this.instruction(ze);else if(be(Oe))for(ze in Oe)Le.call(Oe,ze)&&(_e=Oe[ze],this.instruction(ze,_e));else Ee(je)&&(je=je.apply()),Ue=new ae(this,Oe,je),this.children.push(Ue);return this},Fe.prototype.instructionBefore=function(Oe,je){var ze,_e,Ue;return _e=this.parent.children.indexOf(this),Ue=this.parent.children.splice(_e),ze=this.parent.instruction(Oe,je),Array.prototype.push.apply(this.parent.children,Ue),this},Fe.prototype.instructionAfter=function(Oe,je){var ze,_e,Ue;return _e=this.parent.children.indexOf(this),Ue=this.parent.children.splice(_e+1),ze=this.parent.instruction(Oe,je),Array.prototype.push.apply(this.parent.children,Ue),this},Fe.prototype.declaration=function(Oe,je,ze){var _e,Ue;return _e=this.document(),Ue=new ye(_e,Oe,je,ze),_e.children.length===0?_e.children.unshift(Ue):_e.children[0].type===ce.Declaration?_e.children[0]=Ue:_e.children.unshift(Ue),_e.root()||_e},Fe.prototype.dtd=function(Oe,je){var ze,_e,Ue,$e,et,lt,ut,yt,qe,ot;for(_e=this.document(),Ue=new De(_e,Oe,je),qe=_e.children,$e=et=0,ut=qe.length;et<ut;$e=++et)if(ze=qe[$e],ze.type===ce.DocType)return _e.children[$e]=Ue,Ue;for(ot=_e.children,$e=lt=0,yt=ot.length;lt<yt;$e=++lt)if(ze=ot[$e],ze.isRoot)return _e.children.splice($e,0,Ue),Ue;return _e.children.push(Ue),Ue},Fe.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},Fe.prototype.root=function(){var Oe;for(Oe=this;Oe;){if(Oe.type===ce.Document)return Oe.rootObject;if(Oe.isRoot)return Oe;Oe=Oe.parent}},Fe.prototype.document=function(){var Oe;for(Oe=this;Oe;){if(Oe.type===ce.Document)return Oe;Oe=Oe.parent}},Fe.prototype.end=function(Oe){return this.document().end(Oe)},Fe.prototype.prev=function(){var Oe;if(Oe=this.parent.children.indexOf(this),Oe<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Oe-1]},Fe.prototype.next=function(){var Oe;if(Oe=this.parent.children.indexOf(this),Oe===-1||Oe===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Oe+1]},Fe.prototype.importDocument=function(Oe){var je;return je=Oe.root().clone(),je.parent=this,je.isRoot=!1,this.children.push(je),this},Fe.prototype.debugInfo=function(Oe){var je,ze;return Oe=Oe||this.name,Oe==null&&!((je=this.parent)!=null&&je.name)?"":Oe==null?"parent: <"+this.parent.name+">":(ze=this.parent)!=null&&ze.name?"node: <"+Oe+">, parent: <"+this.parent.name+">":"node: <"+Oe+">"},Fe.prototype.ele=function(Oe,je,ze){return this.element(Oe,je,ze)},Fe.prototype.nod=function(Oe,je,ze){return this.node(Oe,je,ze)},Fe.prototype.txt=function(Oe){return this.text(Oe)},Fe.prototype.dat=function(Oe){return this.cdata(Oe)},Fe.prototype.com=function(Oe){return this.comment(Oe)},Fe.prototype.ins=function(Oe,je){return this.instruction(Oe,je)},Fe.prototype.doc=function(){return this.document()},Fe.prototype.dec=function(Oe,je,ze){return this.declaration(Oe,je,ze)},Fe.prototype.e=function(Oe,je,ze){return this.element(Oe,je,ze)},Fe.prototype.n=function(Oe,je,ze){return this.node(Oe,je,ze)},Fe.prototype.t=function(Oe){return this.text(Oe)},Fe.prototype.d=function(Oe){return this.cdata(Oe)},Fe.prototype.c=function(Oe){return this.comment(Oe)},Fe.prototype.r=function(Oe){return this.raw(Oe)},Fe.prototype.i=function(Oe,je){return this.instruction(Oe,je)},Fe.prototype.u=function(){return this.up()},Fe.prototype.importXMLBuilder=function(Oe){return this.importDocument(Oe)},Fe.prototype.replaceChild=function(Oe,je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.removeChild=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.appendChild=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.hasChildNodes=function(){return this.children.length!==0},Fe.prototype.cloneNode=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.isSupported=function(Oe,je){return!0},Fe.prototype.hasAttributes=function(){return this.attribs.length!==0},Fe.prototype.compareDocumentPosition=function(Oe){var je,ze;return je=this,je===Oe?0:this.document()!==Oe.document()?(ze=ge.Disconnected|ge.ImplementationSpecific,Math.random()<.5?ze|=ge.Preceding:ze|=ge.Following,ze):je.isAncestor(Oe)?ge.Contains|ge.Preceding:je.isDescendant(Oe)?ge.Contains|ge.Following:je.isPreceding(Oe)?ge.Preceding:ge.Following},Fe.prototype.isSameNode=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.lookupPrefix=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.isDefaultNamespace=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.lookupNamespaceURI=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.isEqualNode=function(Oe){var je,ze,_e;if(Oe.nodeType!==this.nodeType||Oe.children.length!==this.children.length)return!1;for(je=ze=0,_e=this.children.length-1;0<=_e?ze<=_e:ze>=_e;je=0<=_e?++ze:--ze)if(!this.children[je].isEqualNode(Oe.children[je]))return!1;return!0},Fe.prototype.getFeature=function(Oe,je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.setUserData=function(Oe,je,ze){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.getUserData=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fe.prototype.contains=function(Oe){return Oe?Oe===this||this.isDescendant(Oe):!1},Fe.prototype.isDescendant=function(Oe){var je,ze,_e,Ue,$e;for($e=this.children,_e=0,Ue=$e.length;_e<Ue;_e++)if(je=$e[_e],Oe===je||(ze=je.isDescendant(Oe),ze))return!0;return!1},Fe.prototype.isAncestor=function(Oe){return Oe.isDescendant(this)},Fe.prototype.isPreceding=function(Oe){var je,ze;return je=this.treePosition(Oe),ze=this.treePosition(this),je===-1||ze===-1?!1:je<ze},Fe.prototype.isFollowing=function(Oe){var je,ze;return je=this.treePosition(Oe),ze=this.treePosition(this),je===-1||ze===-1?!1:je>ze},Fe.prototype.treePosition=function(Oe){var je,ze;return ze=0,je=!1,this.foreachTreeNode(this.document(),function(_e){if(ze++,!je&&_e===Oe)return je=!0}),je?ze:-1},Fe.prototype.foreachTreeNode=function(Oe,je){var ze,_e,Ue,$e,et;for(Oe||(Oe=this.document()),$e=Oe.children,_e=0,Ue=$e.length;_e<Ue;_e++){if(ze=$e[_e],et=je(ze))return et;if(et=this.foreachTreeNode(ze,je),et)return et}},Fe}()}).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,Ze,Ne){(function(){var ge;Ze.exports=ge=function(){function ce(Pe){this.nodes=Pe}return Object.defineProperty(ce.prototype,"length",{get:function(){return this.nodes.length||0}}),ce.prototype.clone=function(){return this.nodes=null},ce.prototype.item=function(Pe){return this.nodes[Pe]||null},ce}()}).call(this)},{}],452:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae=function(De,me){for(var we in me)ye.call(me,we)&&(De[we]=me[we]);function fe(){this.constructor=De}return fe.prototype=me.prototype,De.prototype=new fe,De.__super__=me.prototype,De},ye={}.hasOwnProperty;ge=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ze.exports=Pe=function(De){Ae(me,De);function me(we,fe,z){if(me.__super__.constructor.call(this,we),fe==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=ge.ProcessingInstruction,this.target=this.stringify.insTarget(fe),this.name=this.target,z&&(this.value=this.stringify.insValue(z))}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(we){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(we))},me.prototype.isEqualNode=function(we){return!(!me.__super__.isEqualNode.apply(this,arguments).isEqualNode(we)||we.target!==this.target)},me}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae=function(De,me){for(var we in me)ye.call(me,we)&&(De[we]=me[we]);function fe(){this.constructor=De}return fe.prototype=me.prototype,De.prototype=new fe,De.__super__=me.prototype,De},ye={}.hasOwnProperty;ge=oe("./NodeType"),ce=oe("./XMLNode"),Ze.exports=Pe=function(De){Ae(me,De);function me(we,fe){if(me.__super__.constructor.call(this,we),fe==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=ge.Raw,this.value=this.stringify.raw(fe)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(we){return this.options.writer.raw(this,this.options.writer.filterOptions(we))},me}(ce)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae,ye=function(me,we){for(var fe in we)De.call(we,fe)&&(me[fe]=we[fe]);function z(){this.constructor=me}return z.prototype=we.prototype,me.prototype=new z,me.__super__=we.prototype,me},De={}.hasOwnProperty;ge=oe("./NodeType"),Ae=oe("./XMLWriterBase"),ce=oe("./WriterState"),Ze.exports=Pe=function(me){ye(we,me);function we(fe,z){this.stream=fe,we.__super__.constructor.call(this,z)}return we.prototype.endline=function(fe,z,ee){return fe.isLastRootNode&&z.state===ce.CloseTag?"":we.__super__.endline.call(this,fe,z,ee)},we.prototype.document=function(fe,z){var ee,ae,re,le,ue,pe,Ee,be,Ie;for(Ee=fe.children,ae=re=0,ue=Ee.length;re<ue;ae=++re)ee=Ee[ae],ee.isLastRootNode=ae===fe.children.length-1;for(z=this.filterOptions(z),be=fe.children,Ie=[],le=0,pe=be.length;le<pe;le++)ee=be[le],Ie.push(this.writeChildNode(ee,z,0));return Ie},we.prototype.attribute=function(fe,z,ee){return this.stream.write(we.__super__.attribute.call(this,fe,z,ee))},we.prototype.cdata=function(fe,z,ee){return this.stream.write(we.__super__.cdata.call(this,fe,z,ee))},we.prototype.comment=function(fe,z,ee){return this.stream.write(we.__super__.comment.call(this,fe,z,ee))},we.prototype.declaration=function(fe,z,ee){return this.stream.write(we.__super__.declaration.call(this,fe,z,ee))},we.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)},we.prototype.element=function(fe,z,ee){var ae,re,le,ue,pe,Ee,be,Ie,Le,Fe;ee||(ee=0),this.openNode(fe,z,ee),z.state=ce.OpenTag,this.stream.write(this.indent(fe,z,ee)+"<"+fe.name),Le=fe.attribs;for(be in Le)De.call(Le,be)&&(ae=Le[be],this.attribute(ae,z,ee));if(le=fe.children.length,ue=le===0?null:fe.children[0],le===0||fe.children.every(function(Oe){return(Oe.type===ge.Text||Oe.type===ge.Raw)&&Oe.value===""}))z.allowEmpty?(this.stream.write(">"),z.state=ce.CloseTag,this.stream.write("</"+fe.name+">")):(z.state=ce.CloseTag,this.stream.write(z.spaceBeforeSlash+"/>"));else if(z.pretty&&le===1&&(ue.type===ge.Text||ue.type===ge.Raw)&&ue.value!=null)this.stream.write(">"),z.state=ce.InsideTag,z.suppressPrettyCount++,Ie=!0,this.writeChildNode(ue,z,ee+1),z.suppressPrettyCount--,Ie=!1,z.state=ce.CloseTag,this.stream.write("</"+fe.name+">");else{for(this.stream.write(">"+this.endline(fe,z,ee)),z.state=ce.InsideTag,Fe=fe.children,pe=0,Ee=Fe.length;pe<Ee;pe++)re=Fe[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)},we.prototype.processingInstruction=function(fe,z,ee){return this.stream.write(we.__super__.processingInstruction.call(this,fe,z,ee))},we.prototype.raw=function(fe,z,ee){return this.stream.write(we.__super__.raw.call(this,fe,z,ee))},we.prototype.text=function(fe,z,ee){return this.stream.write(we.__super__.text.call(this,fe,z,ee))},we.prototype.dtdAttList=function(fe,z,ee){return this.stream.write(we.__super__.dtdAttList.call(this,fe,z,ee))},we.prototype.dtdElement=function(fe,z,ee){return this.stream.write(we.__super__.dtdElement.call(this,fe,z,ee))},we.prototype.dtdEntity=function(fe,z,ee){return this.stream.write(we.__super__.dtdEntity.call(this,fe,z,ee))},we.prototype.dtdNotation=function(fe,z,ee){return this.stream.write(we.__super__.dtdNotation.call(this,fe,z,ee))},we}(Ae)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(oe,Ze,Ne){(function(){var ge,ce,Pe=function(ye,De){for(var me in De)Ae.call(De,me)&&(ye[me]=De[me]);function we(){this.constructor=ye}return we.prototype=De.prototype,ye.prototype=new we,ye.__super__=De.prototype,ye},Ae={}.hasOwnProperty;ce=oe("./XMLWriterBase"),Ze.exports=ge=function(ye){Pe(De,ye);function De(me){De.__super__.constructor.call(this,me)}return De.prototype.document=function(me,we){var fe,z,ee,ae,re;for(we=this.filterOptions(we),ae="",re=me.children,z=0,ee=re.length;z<ee;z++)fe=re[z],ae+=this.writeChildNode(fe,we,0);return we.pretty&&ae.slice(-we.newline.length)===we.newline&&(ae=ae.slice(0,-we.newline.length)),ae},De}(ce)}).call(this)},{"./XMLWriterBase":458}],456:[function(oe,Ze,Ne){(function(){var ge,ce=function(Ae,ye){return function(){return Ae.apply(ye,arguments)}},Pe={}.hasOwnProperty;Ze.exports=ge=function(){function Ae(ye){this.assertLegalName=ce(this.assertLegalName,this),this.assertLegalChar=ce(this.assertLegalChar,this);var De,me,we;ye||(ye={}),this.options=ye,this.options.version||(this.options.version="1.0"),me=ye.stringify||{};for(De in me)Pe.call(me,De)&&(we=me[De],this[De]=we)}return Ae.prototype.name=function(ye){return this.options.noValidation?ye:this.assertLegalName(""+ye||"")},Ae.prototype.text=function(ye){return this.options.noValidation?ye:this.assertLegalChar(this.textEscape(""+ye||""))},Ae.prototype.cdata=function(ye){return this.options.noValidation?ye:(ye=""+ye||"",ye=ye.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ye))},Ae.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)},Ae.prototype.raw=function(ye){return this.options.noValidation?ye:""+ye||""},Ae.prototype.attValue=function(ye){return this.options.noValidation?ye:this.assertLegalChar(this.attEscape(ye=""+ye||""))},Ae.prototype.insTarget=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ae.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)},Ae.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},Ae.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)},Ae.prototype.xmlStandalone=function(ye){return this.options.noValidation?ye:ye?"yes":"no"},Ae.prototype.dtdPubID=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ae.prototype.dtdSysID=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ae.prototype.dtdElementValue=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ae.prototype.dtdAttType=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ae.prototype.dtdAttDefault=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ae.prototype.dtdEntityValue=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ae.prototype.dtdNData=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Ae.prototype.convertAttKey="@",Ae.prototype.convertPIKey="?",Ae.prototype.convertTextKey="#text",Ae.prototype.convertCDataKey="#cdata",Ae.prototype.convertCommentKey="#comment",Ae.prototype.convertRawKey="#raw",Ae.prototype.assertLegalChar=function(ye){var De,me;if(this.options.noValidation)return ye;if(De="",this.options.version==="1.0"){if(De=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=ye.match(De))throw new Error("Invalid character in string: "+ye+" at index "+me.index)}else if(this.options.version==="1.1"&&(De=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=ye.match(De)))throw new Error("Invalid character in string: "+ye+" at index "+me.index);return ye},Ae.prototype.assertLegalName=function(ye){var De;if(this.options.noValidation)return ye;if(this.assertLegalChar(ye),De=/^([: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(De))throw new Error("Invalid character in name");return ye},Ae.prototype.textEscape=function(ye){var De;return this.options.noValidation?ye:(De=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ye.replace(De,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},Ae.prototype.attEscape=function(ye){var De;return this.options.noValidation?ye:(De=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ye.replace(De,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},Ae}()}).call(this)},{}],457:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae=function(De,me){for(var we in me)ye.call(me,we)&&(De[we]=me[we]);function fe(){this.constructor=De}return fe.prototype=me.prototype,De.prototype=new fe,De.__super__=me.prototype,De},ye={}.hasOwnProperty;ge=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ze.exports=Pe=function(De){Ae(me,De);function me(we,fe){if(me.__super__.constructor.call(this,we),fe==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=ge.Text,this.value=this.stringify.text(fe)}return Object.defineProperty(me.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(me.prototype,"wholeText",{get:function(){var we,fe,z;for(z="",fe=this.previousSibling;fe;)z=fe.data+z,fe=fe.previousSibling;for(z+=this.data,we=this.nextSibling;we;)z=z+we.data,we=we.nextSibling;return z}}),me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(we){return this.options.writer.text(this,this.options.writer.filterOptions(we))},me.prototype.splitText=function(we){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.replaceWholeText=function(we){throw new Error("This DOM method is not implemented."+this.debugInfo())},me}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(oe,Ze,Ne){(function(){var ge,ce,Pe,Ae,ye,De,me,we,fe,z,ee,ae,re,le,ue,pe,Ee,be={}.hasOwnProperty;Ee=oe("./Utility").assign,ge=oe("./NodeType"),fe=oe("./XMLDeclaration"),z=oe("./XMLDocType"),Pe=oe("./XMLCData"),Ae=oe("./XMLComment"),ae=oe("./XMLElement"),le=oe("./XMLRaw"),ue=oe("./XMLText"),re=oe("./XMLProcessingInstruction"),ee=oe("./XMLDummy"),ye=oe("./XMLDTDAttList"),De=oe("./XMLDTDElement"),me=oe("./XMLDTDEntity"),we=oe("./XMLDTDNotation"),ce=oe("./WriterState"),Ze.exports=pe=function(){function Ie(Le){var Fe,Oe,je;Le||(Le={}),this.options=Le,Oe=Le.writer||{};for(Fe in Oe)be.call(Oe,Fe)&&(je=Oe[Fe],this["_"+Fe]=this[Fe],this[Fe]=je)}return Ie.prototype.filterOptions=function(Le){var Fe,Oe,je,ze,_e,Ue,$e,et;return Le||(Le={}),Le=Ee({},this.options,Le),Fe={writer:this},Fe.pretty=Le.pretty||!1,Fe.allowEmpty=Le.allowEmpty||!1,Fe.indent=(Oe=Le.indent)!=null?Oe:" ",Fe.newline=(je=Le.newline)!=null?je:`
|
|
|
`,Fe.offset=(ze=Le.offset)!=null?ze:0,Fe.dontPrettyTextNodes=(_e=(Ue=Le.dontPrettyTextNodes)!=null?Ue:Le.dontprettytextnodes)!=null?_e:0,Fe.spaceBeforeSlash=($e=(et=Le.spaceBeforeSlash)!=null?et:Le.spacebeforeslash)!=null?$e:"",Fe.spaceBeforeSlash===!0&&(Fe.spaceBeforeSlash=" "),Fe.suppressPrettyCount=0,Fe.user={},Fe.state=ce.None,Fe},Ie.prototype.indent=function(Le,Fe,Oe){var je;return!Fe.pretty||Fe.suppressPrettyCount?"":Fe.pretty&&(je=(Oe||0)+Fe.offset+1,je>0)?new Array(je).join(Fe.indent):""},Ie.prototype.endline=function(Le,Fe,Oe){return!Fe.pretty||Fe.suppressPrettyCount?"":Fe.newline},Ie.prototype.attribute=function(Le,Fe,Oe){var je;return this.openAttribute(Le,Fe,Oe),je=" "+Le.name+'="'+Le.value+'"',this.closeAttribute(Le,Fe,Oe),je},Ie.prototype.cdata=function(Le,Fe,Oe){var je;return this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,je=this.indent(Le,Fe,Oe)+"<![CDATA[",Fe.state=ce.InsideTag,je+=Le.value,Fe.state=ce.CloseTag,je+="]]>"+this.endline(Le,Fe,Oe),Fe.state=ce.None,this.closeNode(Le,Fe,Oe),je},Ie.prototype.comment=function(Le,Fe,Oe){var je;return this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,je=this.indent(Le,Fe,Oe)+"<!-- ",Fe.state=ce.InsideTag,je+=Le.value,Fe.state=ce.CloseTag,je+=" -->"+this.endline(Le,Fe,Oe),Fe.state=ce.None,this.closeNode(Le,Fe,Oe),je},Ie.prototype.declaration=function(Le,Fe,Oe){var je;return this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,je=this.indent(Le,Fe,Oe)+"<?xml",Fe.state=ce.InsideTag,je+=' version="'+Le.version+'"',Le.encoding!=null&&(je+=' encoding="'+Le.encoding+'"'),Le.standalone!=null&&(je+=' standalone="'+Le.standalone+'"'),Fe.state=ce.CloseTag,je+=Fe.spaceBeforeSlash+"?>",je+=this.endline(Le,Fe,Oe),Fe.state=ce.None,this.closeNode(Le,Fe,Oe),je},Ie.prototype.docType=function(Le,Fe,Oe){var je,ze,_e,Ue,$e;if(Oe||(Oe=0),this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,Ue=this.indent(Le,Fe,Oe),Ue+="<!DOCTYPE "+Le.root().name,Le.pubID&&Le.sysID?Ue+=' PUBLIC "'+Le.pubID+'" "'+Le.sysID+'"':Le.sysID&&(Ue+=' SYSTEM "'+Le.sysID+'"'),Le.children.length>0){for(Ue+=" [",Ue+=this.endline(Le,Fe,Oe),Fe.state=ce.InsideTag,$e=Le.children,ze=0,_e=$e.length;ze<_e;ze++)je=$e[ze],Ue+=this.writeChildNode(je,Fe,Oe+1);Fe.state=ce.CloseTag,Ue+="]"}return Fe.state=ce.CloseTag,Ue+=Fe.spaceBeforeSlash+">",Ue+=this.endline(Le,Fe,Oe),Fe.state=ce.None,this.closeNode(Le,Fe,Oe),Ue},Ie.prototype.element=function(Le,Fe,Oe){var je,ze,_e,Ue,$e,et,lt,ut,yt,qe,ot,dt,St,xt;Oe||(Oe=0),qe=!1,ot="",this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,ot+=this.indent(Le,Fe,Oe)+"<"+Le.name,dt=Le.attribs;for(yt in dt)be.call(dt,yt)&&(je=dt[yt],ot+=this.attribute(je,Fe,Oe));if(_e=Le.children.length,Ue=_e===0?null:Le.children[0],_e===0||Le.children.every(function(ft){return(ft.type===ge.Text||ft.type===ge.Raw)&&ft.value===""}))Fe.allowEmpty?(ot+=">",Fe.state=ce.CloseTag,ot+="</"+Le.name+">"+this.endline(Le,Fe,Oe)):(Fe.state=ce.CloseTag,ot+=Fe.spaceBeforeSlash+"/>"+this.endline(Le,Fe,Oe));else if(Fe.pretty&&_e===1&&(Ue.type===ge.Text||Ue.type===ge.Raw)&&Ue.value!=null)ot+=">",Fe.state=ce.InsideTag,Fe.suppressPrettyCount++,qe=!0,ot+=this.writeChildNode(Ue,Fe,Oe+1),Fe.suppressPrettyCount--,qe=!1,Fe.state=ce.CloseTag,ot+="</"+Le.name+">"+this.endline(Le,Fe,Oe);else{if(Fe.dontPrettyTextNodes){for(St=Le.children,$e=0,lt=St.length;$e<lt;$e++)if(ze=St[$e],(ze.type===ge.Text||ze.type===ge.Raw)&&ze.value!=null){Fe.suppressPrettyCount++,qe=!0;break}}for(ot+=">"+this.endline(Le,Fe,Oe),Fe.state=ce.InsideTag,xt=Le.children,et=0,ut=xt.length;et<ut;et++)ze=xt[et],ot+=this.writeChildNode(ze,Fe,Oe+1);Fe.state=ce.CloseTag,ot+=this.indent(Le,Fe,Oe)+"</"+Le.name+">",qe&&Fe.suppressPrettyCount--,ot+=this.endline(Le,Fe,Oe),Fe.state=ce.None}return this.closeNode(Le,Fe,Oe),ot},Ie.prototype.writeChildNode=function(Le,Fe,Oe){switch(Le.type){case ge.CData:return this.cdata(Le,Fe,Oe);case ge.Comment:return this.comment(Le,Fe,Oe);case ge.Element:return this.element(Le,Fe,Oe);case ge.Raw:return this.raw(Le,Fe,Oe);case ge.Text:return this.text(Le,Fe,Oe);case ge.ProcessingInstruction:return this.processingInstruction(Le,Fe,Oe);case ge.Dummy:return"";case ge.Declaration:return this.declaration(Le,Fe,Oe);case ge.DocType:return this.docType(Le,Fe,Oe);case ge.AttributeDeclaration:return this.dtdAttList(Le,Fe,Oe);case ge.ElementDeclaration:return this.dtdElement(Le,Fe,Oe);case ge.EntityDeclaration:return this.dtdEntity(Le,Fe,Oe);case ge.NotationDeclaration:return this.dtdNotation(Le,Fe,Oe);default:throw new Error("Unknown XML node type: "+Le.constructor.name)}},Ie.prototype.processingInstruction=function(Le,Fe,Oe){var je;return this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,je=this.indent(Le,Fe,Oe)+"<?",Fe.state=ce.InsideTag,je+=Le.target,Le.value&&(je+=" "+Le.value),Fe.state=ce.CloseTag,je+=Fe.spaceBeforeSlash+"?>",je+=this.endline(Le,Fe,Oe),Fe.state=ce.None,this.closeNode(Le,Fe,Oe),je},Ie.prototype.raw=function(Le,Fe,Oe){var je;return this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,je=this.indent(Le,Fe,Oe),Fe.state=ce.InsideTag,je+=Le.value,Fe.state=ce.CloseTag,je+=this.endline(Le,Fe,Oe),Fe.state=ce.None,this.closeNode(Le,Fe,Oe),je},Ie.prototype.text=function(Le,Fe,Oe){var je;return this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,je=this.indent(Le,Fe,Oe),Fe.state=ce.InsideTag,je+=Le.value,Fe.state=ce.CloseTag,je+=this.endline(Le,Fe,Oe),Fe.state=ce.None,this.closeNode(Le,Fe,Oe),je},Ie.prototype.dtdAttList=function(Le,Fe,Oe){var je;return this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,je=this.indent(Le,Fe,Oe)+"<!ATTLIST",Fe.state=ce.InsideTag,je+=" "+Le.elementName+" "+Le.attributeName+" "+Le.attributeType,Le.defaultValueType!=="#DEFAULT"&&(je+=" "+Le.defaultValueType),Le.defaultValue&&(je+=' "'+Le.defaultValue+'"'),Fe.state=ce.CloseTag,je+=Fe.spaceBeforeSlash+">"+this.endline(Le,Fe,Oe),Fe.state=ce.None,this.closeNode(Le,Fe,Oe),je},Ie.prototype.dtdElement=function(Le,Fe,Oe){var je;return this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,je=this.indent(Le,Fe,Oe)+"<!ELEMENT",Fe.state=ce.InsideTag,je+=" "+Le.name+" "+Le.value,Fe.state=ce.CloseTag,je+=Fe.spaceBeforeSlash+">"+this.endline(Le,Fe,Oe),Fe.state=ce.None,this.closeNode(Le,Fe,Oe),je},Ie.prototype.dtdEntity=function(Le,Fe,Oe){var je;return this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,je=this.indent(Le,Fe,Oe)+"<!ENTITY",Fe.state=ce.InsideTag,Le.pe&&(je+=" %"),je+=" "+Le.name,Le.value?je+=' "'+Le.value+'"':(Le.pubID&&Le.sysID?je+=' PUBLIC "'+Le.pubID+'" "'+Le.sysID+'"':Le.sysID&&(je+=' SYSTEM "'+Le.sysID+'"'),Le.nData&&(je+=" NDATA "+Le.nData)),Fe.state=ce.CloseTag,je+=Fe.spaceBeforeSlash+">"+this.endline(Le,Fe,Oe),Fe.state=ce.None,this.closeNode(Le,Fe,Oe),je},Ie.prototype.dtdNotation=function(Le,Fe,Oe){var je;return this.openNode(Le,Fe,Oe),Fe.state=ce.OpenTag,je=this.indent(Le,Fe,Oe)+"<!NOTATION",Fe.state=ce.InsideTag,je+=" "+Le.name,Le.pubID&&Le.sysID?je+=' PUBLIC "'+Le.pubID+'" "'+Le.sysID+'"':Le.pubID?je+=' PUBLIC "'+Le.pubID+'"':Le.sysID&&(je+=' SYSTEM "'+Le.sysID+'"'),Fe.state=ce.CloseTag,je+=Fe.spaceBeforeSlash+">"+this.endline(Le,Fe,Oe),Fe.state=ce.None,this.closeNode(Le,Fe,Oe),je},Ie.prototype.openNode=function(Le,Fe,Oe){},Ie.prototype.closeNode=function(Le,Fe,Oe){},Ie.prototype.openAttribute=function(Le,Fe,Oe){},Ie.prototype.closeAttribute=function(Le,Fe,Oe){},Ie}()}).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,Ze,Ne){(function(){var ge,ce,Pe,Ae,ye,De,me,we,fe,z;z=oe("./Utility"),we=z.assign,fe=z.isFunction,Pe=oe("./XMLDOMImplementation"),Ae=oe("./XMLDocument"),ye=oe("./XMLDocumentCB"),me=oe("./XMLStringWriter"),De=oe("./XMLStreamWriter"),ge=oe("./NodeType"),ce=oe("./WriterState"),Ze.exports.create=function(ee,ae,re,le){var ue,pe;if(ee==null)throw new Error("Root element needs a name.");return le=we({},ae,re,le),ue=new Ae(le),pe=ue.element(ee),le.headless||(ue.declaration(le),(le.pubID!=null||le.sysID!=null)&&ue.dtd(le)),pe},Ze.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 Ae(ee)},Ze.exports.stringWriter=function(ee){return new me(ee)},Ze.exports.streamWriter=function(ee,ae){return new De(ee,ae)},Ze.exports.implementation=new Pe,Ze.exports.nodeType=ge,Ze.exports.writerState=ce}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(oe,Ze,Ne){Ze.exports=ce;var ge=Object.prototype.hasOwnProperty;function ce(){for(var Pe={},Ae=0;Ae<arguments.length;Ae++){var ye=arguments[Ae];for(var De in ye)ge.call(ye,De)&&(Pe[De]=ye[De])}return Pe}},{}],461:[function(oe,Ze,Ne){"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 ge=oe("buffer").Buffer,ce=oe("./sha"),Pe=oe("./md5"),Ae={sha1:ce,md5:Pe},ye=64,De=ge.alloc(ye);De.fill(0);function me(z,ee,ae){ge.isBuffer(ee)||(ee=ge.from(ee)),ge.isBuffer(ae)||(ae=ge.from(ae)),ee.length>ye?ee=z(ee):ee.length<ye&&(ee=ge.concat([ee,De],ye));for(var re=ge.alloc(ye),le=ge.alloc(ye),ue=0;ue<ye;ue++)re[ue]=ee[ue]^54,le[ue]=ee[ue]^92;var pe=z(ge.concat([re,ae]));return z(ge.concat([le,pe]))}function we(z,ee){z=z||"sha1";var ae=Ae[z],re=[],le=0;return ae||fe("algorithm:",z,"is not yet supported"),{update:function(pe){return ge.isBuffer(pe)||(pe=ge.from(pe)),re.push(pe),le+=pe.length,this},digest:function(pe){var Ee=ge.concat(re),be=ee?me(ae,ee,Ee):ae(Ee);return re=null,pe?be.toString(pe):be}}}function fe(){var z=[].slice.call(arguments).join(" ");throw new Error([z,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}Ne.createHash=function(z){return we(z)},Ne.createHmac=function(z,ee){return we(z,ee)},Ne.createCredentials=function(){fe("sorry,createCredentials is not implemented yet")},Ne.createCipher=function(){fe("sorry,createCipher is not implemented yet")},Ne.createCipheriv=function(){fe("sorry,createCipheriv is not implemented yet")},Ne.createDecipher=function(){fe("sorry,createDecipher is not implemented yet")},Ne.createDecipheriv=function(){fe("sorry,createDecipheriv is not implemented yet")},Ne.createSign=function(){fe("sorry,createSign is not implemented yet")},Ne.createVerify=function(){fe("sorry,createVerify is not implemented yet")},Ne.createDiffieHellman=function(){fe("sorry,createDiffieHellman is not implemented yet")},Ne.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,Ze,Ne){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js");var ge=oe("buffer").Buffer,ce=4,Pe=ge.alloc(ce);Pe.fill(0);var Ae=8;function ye(we,fe){if(we.length%ce!==0){var z=we.length+(ce-we.length%ce);we=ge.concat([we,Pe],z)}for(var ee=[],ae=fe?we.readInt32BE:we.readInt32LE,re=0;re<we.length;re+=ce)ee.push(ae.call(we,re));return ee}function De(we,fe,z){for(var ee=ge.alloc(fe),ae=z?ee.writeInt32BE:ee.writeInt32LE,re=0;re<we.length;re++)ae.call(ee,we[re],re*4,!0);return ee}function me(we,fe,z,ee){ge.isBuffer(we)||(we=ge.from(we));var ae=fe(ye(we,ee),we.length*Ae);return De(ae,z,ee)}Ze.exports={hash:me}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(oe,Ze,Ne){"use strict";var ge=oe("./helpers");function ce(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function Pe(ee,ae){ee[ae>>5]|=128<<ae%32,ee[(ae+64>>>9<<4)+14]=ae;for(var re=1732584193,le=-271733879,ue=-1732584194,pe=271733878,Ee=0;Ee<ee.length;Ee+=16){var be=re,Ie=le,Le=ue,Fe=pe;re=ye(re,le,ue,pe,ee[Ee+0],7,-680876936),pe=ye(pe,re,le,ue,ee[Ee+1],12,-389564586),ue=ye(ue,pe,re,le,ee[Ee+2],17,606105819),le=ye(le,ue,pe,re,ee[Ee+3],22,-1044525330),re=ye(re,le,ue,pe,ee[Ee+4],7,-176418897),pe=ye(pe,re,le,ue,ee[Ee+5],12,1200080426),ue=ye(ue,pe,re,le,ee[Ee+6],17,-1473231341),le=ye(le,ue,pe,re,ee[Ee+7],22,-45705983),re=ye(re,le,ue,pe,ee[Ee+8],7,1770035416),pe=ye(pe,re,le,ue,ee[Ee+9],12,-1958414417),ue=ye(ue,pe,re,le,ee[Ee+10],17,-42063),le=ye(le,ue,pe,re,ee[Ee+11],22,-1990404162),re=ye(re,le,ue,pe,ee[Ee+12],7,1804603682),pe=ye(pe,re,le,ue,ee[Ee+13],12,-40341101),ue=ye(ue,pe,re,le,ee[Ee+14],17,-1502002290),le=ye(le,ue,pe,re,ee[Ee+15],22,1236535329),re=De(re,le,ue,pe,ee[Ee+1],5,-165796510),pe=De(pe,re,le,ue,ee[Ee+6],9,-1069501632),ue=De(ue,pe,re,le,ee[Ee+11],14,643717713),le=De(le,ue,pe,re,ee[Ee+0],20,-373897302),re=De(re,le,ue,pe,ee[Ee+5],5,-701558691),pe=De(pe,re,le,ue,ee[Ee+10],9,38016083),ue=De(ue,pe,re,le,ee[Ee+15],14,-660478335),le=De(le,ue,pe,re,ee[Ee+4],20,-405537848),re=De(re,le,ue,pe,ee[Ee+9],5,568446438),pe=De(pe,re,le,ue,ee[Ee+14],9,-1019803690),ue=De(ue,pe,re,le,ee[Ee+3],14,-187363961),le=De(le,ue,pe,re,ee[Ee+8],20,1163531501),re=De(re,le,ue,pe,ee[Ee+13],5,-1444681467),pe=De(pe,re,le,ue,ee[Ee+2],9,-51403784),ue=De(ue,pe,re,le,ee[Ee+7],14,1735328473),le=De(le,ue,pe,re,ee[Ee+12],20,-1926607734),re=me(re,le,ue,pe,ee[Ee+5],4,-378558),pe=me(pe,re,le,ue,ee[Ee+8],11,-2022574463),ue=me(ue,pe,re,le,ee[Ee+11],16,1839030562),le=me(le,ue,pe,re,ee[Ee+14],23,-35309556),re=me(re,le,ue,pe,ee[Ee+1],4,-1530992060),pe=me(pe,re,le,ue,ee[Ee+4],11,1272893353),ue=me(ue,pe,re,le,ee[Ee+7],16,-155497632),le=me(le,ue,pe,re,ee[Ee+10],23,-1094730640),re=me(re,le,ue,pe,ee[Ee+13],4,681279174),pe=me(pe,re,le,ue,ee[Ee+0],11,-358537222),ue=me(ue,pe,re,le,ee[Ee+3],16,-722521979),le=me(le,ue,pe,re,ee[Ee+6],23,76029189),re=me(re,le,ue,pe,ee[Ee+9],4,-640364487),pe=me(pe,re,le,ue,ee[Ee+12],11,-421815835),ue=me(ue,pe,re,le,ee[Ee+15],16,530742520),le=me(le,ue,pe,re,ee[Ee+2],23,-995338651),re=we(re,le,ue,pe,ee[Ee+0],6,-198630844),pe=we(pe,re,le,ue,ee[Ee+7],10,1126891415),ue=we(ue,pe,re,le,ee[Ee+14],15,-1416354905),le=we(le,ue,pe,re,ee[Ee+5],21,-57434055),re=we(re,le,ue,pe,ee[Ee+12],6,1700485571),pe=we(pe,re,le,ue,ee[Ee+3],10,-1894986606),ue=we(ue,pe,re,le,ee[Ee+10],15,-1051523),le=we(le,ue,pe,re,ee[Ee+1],21,-2054922799),re=we(re,le,ue,pe,ee[Ee+8],6,1873313359),pe=we(pe,re,le,ue,ee[Ee+15],10,-30611744),ue=we(ue,pe,re,le,ee[Ee+6],15,-1560198380),le=we(le,ue,pe,re,ee[Ee+13],21,1309151649),re=we(re,le,ue,pe,ee[Ee+4],6,-145523070),pe=we(pe,re,le,ue,ee[Ee+11],10,-1120210379),ue=we(ue,pe,re,le,ee[Ee+2],15,718787259),le=we(le,ue,pe,re,ee[Ee+9],21,-343485551),re=fe(re,be),le=fe(le,Ie),ue=fe(ue,Le),pe=fe(pe,Fe)}return Array(re,le,ue,pe)}function Ae(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,Ee){return Ae(ae&re|~ae&le,ee,ae,ue,pe,Ee)}function De(ee,ae,re,le,ue,pe,Ee){return Ae(ae&le|re&~le,ee,ae,ue,pe,Ee)}function me(ee,ae,re,le,ue,pe,Ee){return Ae(ae^re^le,ee,ae,ue,pe,Ee)}function we(ee,ae,re,le,ue,pe,Ee){return Ae(re^(ae|~le),ee,ae,ue,pe,Ee)}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}Ze.exports=function(ae){return ge.hash(ae,Pe,16)}},{"./helpers":462}],464:[function(oe,Ze,Ne){"use strict";var ge=oe("./helpers");function ce(me,we){me[we>>5]|=128<<24-we%32,me[(we+64>>9<<4)+15]=we;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,Ee=ee,be=ae,Ie=re,Le=le,Fe=0;Fe<80;Fe++){Fe<16?fe[Fe]=me[ue+Fe]:fe[Fe]=De(fe[Fe-3]^fe[Fe-8]^fe[Fe-14]^fe[Fe-16],1);var Oe=ye(ye(De(z,5),Pe(Fe,ee,ae,re)),ye(ye(le,fe[Fe]),Ae(Fe)));le=re,re=ae,ae=De(ee,30),ee=z,z=Oe}z=ye(z,pe),ee=ye(ee,Ee),ae=ye(ae,be),re=ye(re,Ie),le=ye(le,Le)}return Array(z,ee,ae,re,le)}function Pe(me,we,fe,z){return me<20?we&fe|~we&z:me<40?we^fe^z:me<60?we&fe|we&z|fe&z:we^fe^z}function Ae(me){return me<20?1518500249:me<40?1859775393:me<60?-1894007588:-899497514}function ye(me,we){var fe=(me&65535)+(we&65535),z=(me>>16)+(we>>16)+(fe>>16);return z<<16|fe&65535}function De(me,we){return me<<we|me>>>32-we}Ze.exports=function(we){return ge.hash(we,ce,20,!0)}},{"./helpers":462}],465:[function(oe,Ze,Ne){"use strict";Ze.exports=function(){return function(){}}},{}],466:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),Pe=ce(oe("@babel/runtime/helpers/typeof")),Ae=oe("stream"),ye=Ae.Stream,De=oe("../lib/common/utils/isArray"),me=De.isArray;Ze.exports.string=function(z){return typeof z=="string"},Ze.exports.array=me,Ze.exports.buffer=ge.isBuffer;function we(fe){return fe instanceof ye}Ze.exports.writableStream=function(z){return we(z)&&typeof z._write=="function"&&(0,Pe.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,Ze,Ne){"use strict";var ge=oe("immediate"),ce=Ze.exports={};ce.nextTick=ge,ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={};function Pe(){}ce.on=Pe,ce.addListener=Pe,ce.once=Pe,ce.off=Pe,ce.removeListener=Pe,ce.removeAllListeners=Pe,ce.emit=Pe,ce.prependListener=Pe,ce.prependOnceListener=Pe,ce.listeners=function(Ae){return[]},ce.binding=function(Ae){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(Ae){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0}},{immediate:358}],468:[function(oe,Ze,Ne){(function(ge){(function(){"use strict";oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.search.js");var ce=oe("./lib/request"),Pe=oe("./lib/response"),Ae=oe("xtend"),ye=oe("builtin-status-codes"),De=oe("url"),me=Ne;me.request=function(we,fe){typeof we=="string"?we=De.parse(we):we=Ae(we);var z=ge.location.protocol.search(/^https?:$/)===-1?"http:":"",ee=we.protocol||z,ae=we.hostname||we.host,re=we.port,le=we.path||"/";ae&&ae.indexOf(":")!==-1&&(ae="["+ae+"]"),we.url=(ae?ee+"//"+ae:"")+(re?":"+re:"")+le,we.method=(we.method||"GET").toUpperCase(),we.headers=we.headers||{};var ue=new ce(we);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=Pe.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 fn!="undefined"?fn: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,Ze,Ne){(function(ge){(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"),Ne.fetch=me(ge.fetch)&&me(ge.ReadableStream),Ne.writableStream=me(ge.WritableStream),Ne.abortController=me(ge.AbortController),Ne.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Ne.blobConstructor=!0}catch(we){}var ce;function Pe(){if(ce!==void 0)return ce;if(ge.XMLHttpRequest){ce=new ge.XMLHttpRequest;try{ce.open("GET",ge.XDomainRequest?"/":"https://example.com")}catch(we){ce=null}}else ce=null;return ce}function Ae(we){var fe=Pe();if(!fe)return!1;try{return fe.responseType=we,fe.responseType===we}catch(z){}return!1}var ye=typeof ge.ArrayBuffer!="undefined",De=ye&&me(ge.ArrayBuffer.prototype.slice);Ne.arraybuffer=Ne.fetch||ye&&Ae("arraybuffer"),Ne.msstream=!Ne.fetch&&De&&Ae("ms-stream"),Ne.mozchunkedarraybuffer=!Ne.fetch&&ye&&Ae("moz-chunked-arraybuffer"),Ne.overrideMimeType=Ne.fetch||(Pe()?me(Pe().overrideMimeType):!1),Ne.vbArray=me(ge.VBArray);function me(we){return typeof we=="function"}ce=null}).call(this)}).call(this,typeof fn!="undefined"?fn: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,Ze,Ne){(function(ge,ce,Pe){(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 Ae=oe("./capability"),ye=oe("inherits"),De=oe("./response"),me=oe("readable-stream"),we=oe("to-arraybuffer"),fe=De.IncomingMessage,z=De.readyStates;function ee(ue,pe){return Ae.fetch&&pe?"fetch":Ae.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Ae.msstream?"ms-stream":Ae.arraybuffer&&ue?"arraybuffer":Ae.vbArray&&ue?"text:vbarray":"text"}var ae=Ze.exports=function(ue){var pe=this;me.Writable.call(pe),pe._opts=ue,pe._body=[],pe._headers={},ue.auth&&pe.setHeader("Authorization","Basic "+new Pe(ue.auth).toString("base64")),Object.keys(ue.headers).forEach(function(Ie){pe.setHeader(Ie,ue.headers[Ie])});var Ee,be=!0;if(ue.mode==="disable-fetch"||"requestTimeout"in ue&&!Ae.abortController)be=!1,Ee=!0;else if(ue.mode==="prefer-streaming")Ee=!1;else if(ue.mode==="allow-wrong-content-type")Ee=!Ae.overrideMimeType;else if(!ue.mode||ue.mode==="default"||ue.mode==="prefer-fast")Ee=!0;else throw new Error("Invalid value for opts.mode");pe._mode=ee(Ee,be),pe._fetchTimer=null,pe.on("finish",function(){pe._onFinish()})};ye(ae,me.Writable),ae.prototype.setHeader=function(ue,pe){var Ee=this,be=ue.toLowerCase();le.indexOf(be)===-1&&(Ee._headers[be]={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,Ee=ue._headers,be=null;pe.method!=="GET"&&pe.method!=="HEAD"&&(Ae.arraybuffer?be=we(Pe.concat(ue._body)):Ae.blobConstructor?be=new ce.Blob(ue._body.map(function(ze){return we(ze)}),{type:(Ee["content-type"]||{}).value||""}):be=Pe.concat(ue._body).toString());var Ie=[];if(Object.keys(Ee).forEach(function(ze){var _e=Ee[ze].name,Ue=Ee[ze].value;Array.isArray(Ue)?Ue.forEach(function($e){Ie.push([_e,$e])}):Ie.push([_e,Ue])}),ue._mode==="fetch"){var Le=null,Fe=null;if(Ae.abortController){var Oe=new AbortController;Le=Oe.signal,ue._fetchAbortController=Oe,"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:Ie,body:be||void 0,mode:"cors",credentials:pe.withCredentials?"include":"same-origin",signal:Le}).then(function(ze){ue._fetchResponse=ze,ue._connect()},function(ze){ce.clearTimeout(ue._fetchTimer),ue._destroyed||ue.emit("error",ze)})}else{var je=ue._xhr=new ce.XMLHttpRequest;try{je.open(ue._opts.method,ue._opts.url,!0)}catch(ze){ge.nextTick(function(){ue.emit("error",ze)});return}"responseType"in je&&(je.responseType=ue._mode.split(":")[0]),"withCredentials"in je&&(je.withCredentials=!!pe.withCredentials),ue._mode==="text"&&"overrideMimeType"in je&&je.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in pe&&(je.timeout=pe.requestTimeout,je.ontimeout=function(){ue.emit("requestTimeout")}),Ie.forEach(function(ze){je.setRequestHeader(ze[0],ze[1])}),ue._response=null,je.onreadystatechange=function(){switch(je.readyState){case z.LOADING:case z.DONE:ue._onXHRProgress();break}},ue._mode==="moz-chunked-arraybuffer"&&(je.onprogress=function(){ue._onXHRProgress()}),je.onerror=function(){ue._destroyed||ue.emit("error",new Error("XHR error"))};try{je.send(be)}catch(ze){ge.nextTick(function(){ue.emit("error",ze)});return}}}};function re(ue){try{var pe=ue.status;return pe!==null&&pe!==0}catch(Ee){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,Ee){var be=this;be._body.push(ue),Ee()},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,Ee){var be=this;typeof ue=="function"&&(Ee=ue,ue=void 0),me.Writable.prototype.end.call(be,ue,pe,Ee)},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 fn!="undefined"?fn: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,Ze,Ne){(function(ge,ce,Pe){(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 Ae=oe("./capability"),ye=oe("inherits"),De=oe("readable-stream"),me=Ne.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},we=Ne.IncomingMessage=function(fe,z,ee,ae){var re=this;if(De.Readable.call(re),re._mode=ee,re.headers={},re.rawHeaders=[],re.trailers={},re.rawTrailers=[],re.on("end",function(){ge.nextTick(function(){re.emit("close")})}),ee==="fetch"){var le=function Le(){pe.read().then(function(Fe){if(!re._destroyed){if(Fe.done){ce.clearTimeout(ae),re.push(null);return}re.push(new Pe(Fe.value)),Le()}}).catch(function(Fe){ce.clearTimeout(ae),re._destroyed||re.emit("error",Fe)})};if(re._fetchResponse=z,re.url=z.url,re.statusCode=z.status,re.statusMessage=z.statusText,z.headers.forEach(function(Le,Fe){re.headers[Fe.toLowerCase()]=Le,re.rawHeaders.push(Fe,Le)}),Ae.writableStream){var ue=new WritableStream({write:function(Fe){return new Promise(function(Oe,je){re._destroyed?je():re.push(new Pe(Fe))?Oe():re._resumeFetch=Oe})},close:function(){ce.clearTimeout(ae),re._destroyed||re.push(null)},abort:function(Fe){re._destroyed||re.emit("error",Fe)}});try{z.body.pipeTo(ue).catch(function(Le){ce.clearTimeout(ae),re._destroyed||re.emit("error",Le)});return}catch(Le){}}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 Ee=fe.getAllResponseHeaders().split(/\r?\n/);if(Ee.forEach(function(Le){var Fe=Le.match(/^([^:]+):\s*(.*)/);if(Fe){var Oe=Fe[1].toLowerCase();Oe==="set-cookie"?(re.headers[Oe]===void 0&&(re.headers[Oe]=[]),re.headers[Oe].push(Fe[2])):re.headers[Oe]!==void 0?re.headers[Oe]+=", "+Fe[2]:re.headers[Oe]=Fe[2],re.rawHeaders.push(Fe[1],Fe[2])}}),re._charset="x-user-defined",!Ae.overrideMimeType){var be=re.rawHeaders["mime-type"];if(be){var Ie=be.match(/;\s*charset=([^;])(;|$)/);Ie&&(re._charset=Ie[1].toLowerCase())}re._charset||(re._charset="utf-8")}}};ye(we,De.Readable),we.prototype._read=function(){var fe=this,z=fe._resumeFetch;z&&(fe._resumeFetch=null,z())},we.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 Pe(ee));break}case"text":try{ee=z.responseText}catch(pe){fe._mode="text:vbarray";break}if(ee.length>fe._pos){var ae=ee.substr(fe._pos);if(fe._charset==="x-user-defined"){for(var re=new Pe(ae.length),le=0;le<ae.length;le++)re[le]=ae.charCodeAt(le)&255;fe.push(re)}else fe.push(ae,fe._charset);fe._pos=ee.length}break;case"arraybuffer":if(z.readyState!==me.DONE||!z.response)break;ee=z.response,fe.push(new Pe(new Uint8Array(ee)));break;case"moz-chunked-arraybuffer":if(ee=z.response,z.readyState!==me.LOADING||!ee)break;fe.push(new Pe(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 Pe(new Uint8Array(ue.result.slice(fe._pos)))),fe._pos=ue.result.byteLength)},ue.onload=function(){fe.push(null)},ue.readAsArrayBuffer(ee);break}fe._xhr.readyState===me.DONE&&fe._mode!=="ms-stream"&&fe.push(null)}}).call(this)}).call(this,oe("_process"),typeof fn!="undefined"?fn: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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(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 Pe=oe("punycode"),Ae=oe("./util");Ne.parse=Fe,Ne.resolve=je,Ne.resolveObject=ze,Ne.format=Oe,Ne.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 De=/^([a-z0-9.+-]+:)/i,me=/:[0-9]*$/,we=/^(\/\/?(?!\/)[^\?\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})(.*)$/,Ee={javascript:!0,"javascript:":!0},be={javascript:!0,"javascript:":!0},Ie={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Le=oe("querystring");function Fe(_e,Ue,$e){if(_e&&Ae.isObject(_e)&&_e instanceof ye)return _e;var et=new ye;return et.parse(_e,Ue,$e),et}ye.prototype.parse=function(_e,Ue,$e){if(!Ae.isString(_e))throw new TypeError("Parameter 'url' must be a string, not "+(0,ce.default)(_e));var et=_e.indexOf("?"),lt=et!==-1&&et<_e.indexOf("#")?"?":"#",ut=_e.split(lt),yt=/\\/g;ut[0]=ut[0].replace(yt,"/"),_e=ut.join(lt);var qe=_e;if(qe=qe.trim(),!$e&&_e.split("#").length===1){var ot=we.exec(qe);if(ot)return this.path=qe,this.href=qe,this.pathname=ot[1],ot[2]?(this.search=ot[2],Ue?this.query=Le.parse(this.search.substr(1)):this.query=this.search.substr(1)):Ue&&(this.search="",this.query={}),this}var dt=De.exec(qe);if(dt){dt=dt[0];var St=dt.toLowerCase();this.protocol=St,qe=qe.substr(dt.length)}if($e||dt||qe.match(/^\/\/[^@\/]+@[^@\/]+/)){var xt=qe.substr(0,2)==="//";xt&&!(dt&&be[dt])&&(qe=qe.substr(2),this.slashes=!0)}if(!be[dt]&&(xt||dt&&!Ie[dt])){for(var ft=-1,gt=0;gt<re.length;gt++){var vt=qe.indexOf(re[gt]);vt!==-1&&(ft===-1||vt<ft)&&(ft=vt)}var Tt,Et;ft===-1?Et=qe.lastIndexOf("@"):Et=qe.lastIndexOf("@",ft),Et!==-1&&(Tt=qe.slice(0,Et),qe=qe.slice(Et+1),this.auth=decodeURIComponent(Tt)),ft=-1;for(var gt=0;gt<ae.length;gt++){var vt=qe.indexOf(ae[gt]);vt!==-1&&(ft===-1||vt<ft)&&(ft=vt)}ft===-1&&(ft=qe.length),this.host=qe.slice(0,ft),qe=qe.slice(ft),this.parseHost(),this.hostname=this.hostname||"";var Zt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Zt)for(var wt=this.hostname.split("."),gt=0,bt=wt.length;gt<bt;gt++){var it=wt[gt];if(it&&!it.match(ue)){for(var nt="",xe=0,Ce=it.length;xe<Ce;xe++)it.charCodeAt(xe)>127?nt+="x":nt+=it[xe];if(!nt.match(ue)){var Ye=wt.slice(0,gt),Je=wt.slice(gt+1),Me=it.match(pe);Me&&(Ye.push(Me[1]),Je.unshift(Me[2])),Je.length&&(qe="/"+Je.join(".")+qe),this.hostname=Ye.join(".");break}}}this.hostname.length>le?this.hostname="":this.hostname=this.hostname.toLowerCase(),Zt||(this.hostname=Pe.toASCII(this.hostname));var Ge=this.port?":"+this.port:"",Ke=this.hostname||"";this.host=Ke+Ge,this.href+=this.host,Zt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),qe[0]!=="/"&&(qe="/"+qe))}if(!Ee[St])for(var gt=0,bt=ee.length;gt<bt;gt++){var Ve=ee[gt];if(qe.indexOf(Ve)!==-1){var Qe=encodeURIComponent(Ve);Qe===Ve&&(Qe=escape(Ve)),qe=qe.split(Ve).join(Qe)}}var ht=qe.indexOf("#");ht!==-1&&(this.hash=qe.substr(ht),qe=qe.slice(0,ht));var At=qe.indexOf("?");if(At!==-1?(this.search=qe.substr(At),this.query=qe.substr(At+1),Ue&&(this.query=Le.parse(this.query)),qe=qe.slice(0,At)):Ue&&(this.search="",this.query={}),qe&&(this.pathname=qe),Ie[St]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ge=this.pathname||"",pt=this.search||"";this.path=Ge+pt}return this.href=this.format(),this};function Oe(_e){return Ae.isString(_e)&&(_e=Fe(_e)),_e instanceof ye?_e.format():ye.prototype.format.call(_e)}ye.prototype.format=function(){var _e=this.auth||"";_e&&(_e=encodeURIComponent(_e),_e=_e.replace(/%3A/i,":"),_e+="@");var Ue=this.protocol||"",$e=this.pathname||"",et=this.hash||"",lt=!1,ut="";this.host?lt=_e+this.host:this.hostname&&(lt=_e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(lt+=":"+this.port)),this.query&&Ae.isObject(this.query)&&Object.keys(this.query).length&&(ut=Le.stringify(this.query));var yt=this.search||ut&&"?"+ut||"";return Ue&&Ue.substr(-1)!==":"&&(Ue+=":"),this.slashes||(!Ue||Ie[Ue])&<!==!1?(lt="//"+(lt||""),$e&&$e.charAt(0)!=="/"&&($e="/"+$e)):lt||(lt=""),et&&et.charAt(0)!=="#"&&(et="#"+et),yt&&yt.charAt(0)!=="?"&&(yt="?"+yt),$e=$e.replace(/[?#]/g,function(qe){return encodeURIComponent(qe)}),yt=yt.replace("#","%23"),Ue+lt+$e+yt+et};function je(_e,Ue){return Fe(_e,!1,!0).resolve(Ue)}ye.prototype.resolve=function(_e){return this.resolveObject(Fe(_e,!1,!0)).format()};function ze(_e,Ue){return _e?Fe(_e,!1,!0).resolveObject(Ue):Ue}ye.prototype.resolveObject=function(_e){if(Ae.isString(_e)){var Ue=new ye;Ue.parse(_e,!1,!0),_e=Ue}for(var $e=new ye,et=Object.keys(this),lt=0;lt<et.length;lt++){var ut=et[lt];$e[ut]=this[ut]}if($e.hash=_e.hash,_e.href==="")return $e.href=$e.format(),$e;if(_e.slashes&&!_e.protocol){for(var yt=Object.keys(_e),qe=0;qe<yt.length;qe++){var ot=yt[qe];ot!=="protocol"&&($e[ot]=_e[ot])}return Ie[$e.protocol]&&$e.hostname&&!$e.pathname&&($e.path=$e.pathname="/"),$e.href=$e.format(),$e}if(_e.protocol&&_e.protocol!==$e.protocol){if(!Ie[_e.protocol]){for(var dt=Object.keys(_e),St=0;St<dt.length;St++){var xt=dt[St];$e[xt]=_e[xt]}return $e.href=$e.format(),$e}if($e.protocol=_e.protocol,!_e.host&&!be[_e.protocol]){for(var bt=(_e.pathname||"").split("/");bt.length&&!(_e.host=bt.shift()););_e.host||(_e.host=""),_e.hostname||(_e.hostname=""),bt[0]!==""&&bt.unshift(""),bt.length<2&&bt.unshift(""),$e.pathname=bt.join("/")}else $e.pathname=_e.pathname;if($e.search=_e.search,$e.query=_e.query,$e.host=_e.host||"",$e.auth=_e.auth,$e.hostname=_e.hostname||_e.host,$e.port=_e.port,$e.pathname||$e.search){var ft=$e.pathname||"",gt=$e.search||"";$e.path=ft+gt}return $e.slashes=$e.slashes||_e.slashes,$e.href=$e.format(),$e}var vt=$e.pathname&&$e.pathname.charAt(0)==="/",Tt=_e.host||_e.pathname&&_e.pathname.charAt(0)==="/",Et=Tt||vt||$e.host&&_e.pathname,Zt=Et,wt=$e.pathname&&$e.pathname.split("/")||[],bt=_e.pathname&&_e.pathname.split("/")||[],it=$e.protocol&&!Ie[$e.protocol];if(it&&($e.hostname="",$e.port=null,$e.host&&(wt[0]===""?wt[0]=$e.host:wt.unshift($e.host)),$e.host="",_e.protocol&&(_e.hostname=null,_e.port=null,_e.host&&(bt[0]===""?bt[0]=_e.host:bt.unshift(_e.host)),_e.host=null),Et=Et&&(bt[0]===""||wt[0]==="")),Tt)$e.host=_e.host||_e.host===""?_e.host:$e.host,$e.hostname=_e.hostname||_e.hostname===""?_e.hostname:$e.hostname,$e.search=_e.search,$e.query=_e.query,wt=bt;else if(bt.length)wt||(wt=[]),wt.pop(),wt=wt.concat(bt),$e.search=_e.search,$e.query=_e.query;else if(!Ae.isNullOrUndefined(_e.search)){if(it){$e.hostname=$e.host=wt.shift();var nt=$e.host&&$e.host.indexOf("@")>0?$e.host.split("@"):!1;nt&&($e.auth=nt.shift(),$e.host=$e.hostname=nt.shift())}return $e.search=_e.search,$e.query=_e.query,(!Ae.isNull($e.pathname)||!Ae.isNull($e.search))&&($e.path=($e.pathname?$e.pathname:"")+($e.search?$e.search:"")),$e.href=$e.format(),$e}if(!wt.length)return $e.pathname=null,$e.search?$e.path="/"+$e.search:$e.path=null,$e.href=$e.format(),$e;for(var xe=wt.slice(-1)[0],Ce=($e.host||_e.host||wt.length>1)&&(xe==="."||xe==="..")||xe==="",Ye=0,Je=wt.length;Je>=0;Je--)xe=wt[Je],xe==="."?wt.splice(Je,1):xe===".."?(wt.splice(Je,1),Ye++):Ye&&(wt.splice(Je,1),Ye--);if(!Et&&!Zt)for(;Ye--;Ye)wt.unshift("..");Et&&wt[0]!==""&&(!wt[0]||wt[0].charAt(0)!=="/")&&wt.unshift(""),Ce&&wt.join("/").substr(-1)!=="/"&&wt.push("");var Me=wt[0]===""||wt[0]&&wt[0].charAt(0)==="/";if(it){$e.hostname=$e.host=Me?"":wt.length?wt.shift():"";var nt=$e.host&&$e.host.indexOf("@")>0?$e.host.split("@"):!1;nt&&($e.auth=nt.shift(),$e.host=$e.hostname=nt.shift())}return Et=Et||$e.host&&wt.length,Et&&!Me&&wt.unshift(""),wt.length?$e.pathname=wt.join("/"):($e.pathname=null,$e.path=null),(!Ae.isNull($e.pathname)||!Ae.isNull($e.search))&&($e.path=($e.pathname?$e.pathname:"")+($e.search?$e.search:"")),$e.auth=_e.auth||$e.auth,$e.slashes=$e.slashes||_e.slashes,$e.href=$e.format(),$e},ye.prototype.parseHost=function(){var _e=this.host,Ue=me.exec(_e);Ue&&(Ue=Ue[0],Ue!==":"&&(this.port=Ue.substr(1)),_e=_e.substr(0,_e.length-Ue.length)),_e&&(this.hostname=_e)}},{"./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,Ze,Ne){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ge(oe("@babel/runtime/helpers/typeof"));Ze.exports={isString:function(Ae){return typeof Ae=="string"},isObject:function(Ae){return(0,ce.default)(Ae)==="object"&&Ae!==null},isNull:function(Ae){return Ae===null},isNullOrUndefined:function(Ae){return Ae==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(oe,Ze,Ne){"use strict";oe("core-js/modules/es.number.constructor.js"),Ne.encodeURIComponent=function(ge){try{return encodeURIComponent(ge)}catch(ce){return ge}},Ne.escape=oe("escape-html"),Ne.timestamp=function(ce){if(ce){var Pe=ce;return typeof Pe=="string"&&(Pe=Number(Pe)),String(ce).length===10&&(Pe*=1e3),new Date(Pe)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(oe,Ze,Ne){(function(ge,ce){(function(){"use strict";var Pe=oe("@babel/runtime/helpers/interopRequireDefault"),Ae=Pe(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"),De=oe("url"),me=oe("http"),we=oe("https"),fe=oe("debug")("urllib"),z=oe("humanize-ms"),ee=0,ae=Math.pow(2,31)-10,re=/^https?:\/\//i;function le(be,Ie){return be===void 0?Ie:be}function ue(be){return be?be.split(";")[0].trim().toLowerCase():""}function pe(be,Ie){return function(Le,Fe,Oe){if(Le)return Ie(Le);be({data:Fe,status:Oe.statusCode,headers:Oe.headers,res:Oe})}}Ne.TIMEOUTS=[z("300s"),z("300s")];var Ee=["json","text"];Ne.request=function(Ie,Le,Fe){return arguments.length===2&&typeof Le=="function"&&(Fe=Le,Le=null),typeof Fe=="function"?Ne.requestWithCallback(Ie,Le,Fe):new Promise(function(Oe,je){Ne.requestWithCallback(Ie,Le,pe(Oe,je))})},Ne.requestWithCallback=function(Ie,Le,Fe){if(!Ie||typeof Ie!="string"&&(0,Ae.default)(Ie)!=="object"){var Oe=ye.format("expect request url to be a string or a http request options, but got %j",Ie);throw new Error(Oe)}arguments.length===2&&typeof Le=="function"&&(Fe=Le,Le=null),Le=Le||{},ee>=ae&&(ee=0);var je=++ee;Le.requestUrls=Le.requestUrls||[];var ze={requestId:je,url:Ie,args:Le,ctx:Le.ctx};Le.emitter&&Le.emitter.emit("request",ze),Le.timeout=Le.timeout||Ne.TIMEOUTS,Le.maxRedirects=Le.maxRedirects||10,Le.streaming=Le.streaming||Le.customResponse;var _e=Date.now(),Ue;typeof Ie=="string"?(re.test(Ie)||(Ie="https://"+Ie),Ue=De.parse(Ie)):Ue=Ie;var $e=(Le.type||Le.method||Ue.method||"GET").toUpperCase(),et=Ue.port||80,lt=me,ut=le(Le.agent,Ne.agent),yt=Le.fixJSONCtlChars;Ue.protocol==="https:"&&(lt=we,ut=le(Le.httpsAgent,Ne.httpsAgent),Ue.port||(et=443));var qe={host:Ue.hostname||Ue.host||"localhost",path:Ue.path||"/",method:$e,port:et,agent:ut,headers:Le.headers||{},lookup:Le.lookup};Array.isArray(Le.timeout)?qe.requestTimeout=Le.timeout[Le.timeout.length-1]:typeof Le.timeout!="undefined"&&(qe.requestTimeout=Le.timeout);var ot=Le.auth||Ue.auth;ot&&(qe.auth=ot);var dt=Le.content||Le.data,St=$e==="GET"||$e==="HEAD"||Le.dataAsQueryString;if(!Le.content&&dt&&!(typeof dt=="string"||ce.isBuffer(dt)))if(St)dt=Le.nestedQuerystring?qs.stringify(dt):querystring.stringify(dt);else{var xt=qe.headers["Content-Type"]||qe.headers["content-type"];xt||(Le.contentType==="json"?xt="application/json":xt="application/x-www-form-urlencoded",qe.headers["Content-Type"]=xt),ue(xt)==="application/json"?dt=JSON.stringify(dt):dt=Le.nestedQuerystring?qs.stringify(dt):querystring.stringify(dt)}St&&dt&&(qe.path+=(Ue.query?"&":"?")+dt,dt=null);var ft=0;if(dt){var gt=dt.length;ce.isBuffer(dt)||(gt=ce.byteLength(dt)),ft=qe.headers["Content-Length"]=gt}Le.dataType==="json"&&(qe.headers.Accept="application/json"),typeof Le.beforeRequest=="function"&&Le.beforeRequest(qe);var vt=null,Tt=null,Et=null,Zt=!1,wt=!1,bt=0,it=-1,nt=!1,xe="",Ce="",Ye=null;Le.timing&&(Ye={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Je(){vt&&(clearTimeout(vt),vt=null)}function Me(){Tt&&(clearTimeout(Tt),Tt=null)}function Ge(Xt,sn,Ft){if(Me(),!Fe){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),je,ge.pid,qe.method,Ie),Xt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),je,ge.pid,Xt.name,Xt.message,Xt.stack);return}var Qt=Fe;Fe=null;var en={};Ft&&(it=Ft.statusCode,en=Ft.headers);var on=Date.now()-_e;Ye&&(Ye.contentDownload=on),fe("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",on,bt,it,qe.method,qe.host,qe.path,wt,Ye);var Cn={status:it,statusCode:it,headers:en,size:bt,aborted:nt,rt:on,keepAliveSocket:wt,data:sn,requestUrls:Le.requestUrls,timing:Ye,remoteAddress:xe,remotePort:Ce};if(Xt){var Bn="";ut&&typeof ut.getCurrentStatus=="function"&&(Bn=", agent status: "+JSON.stringify(ut.getCurrentStatus())),Xt.message+=", "+qe.method+" "+Ie+" "+it+" (connected: "+Zt+", keepalive socket: "+wt+Bn+`)
|
|
|
headers: `+JSON.stringify(en),Xt.data=sn,Xt.path=qe.path,Xt.status=it,Xt.headers=en,Xt.res=Cn}Qt(Xt,sn,Le.streaming?Ft:Cn),Le.emitter&&(ze.url=Ie,ze.socket=jt&&jt.connection,ze.options=qe,ze.size=ft,Le.emitter.emit("response",{requestId:je,error:Xt,ctx:Le.ctx,req:ze,res:Cn}))}function Ke(Xt){var sn=null;if(Le.followRedirect&&statuses.redirect[Xt.statusCode]){Le._followRedirectCount=(Le._followRedirectCount||0)+1;var Ft=Xt.headers.location;if(!Ft)sn=new Error("Got statusCode "+Xt.statusCode+" but cannot resolve next location from headers"),sn.name="FollowRedirectError";else if(Le._followRedirectCount>Le.maxRedirects)sn=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Ie),sn.name="MaxRedirectError";else{var Qt=Le.formatRedirectUrl?Le.formatRedirectUrl(Ie,Ft):De.resolve(Ie,Ft);fe("Request#%d %s: `redirected` from %s to %s",je,qe.path,Ie,Qt),Me(),Le.headers&&Le.headers.Host&&re.test(Ft)&&(Le.headers.Host=null);var en=Fe;return Fe=null,Ne.requestWithCallback(Qt,Le,en),{redirect:!0,error:null}}}return{redirect:!1,error:sn}}Le.gzip&&!qe.headers["Accept-Encoding"]&&!qe.headers["accept-encoding"]&&(qe.headers["Accept-Encoding"]="gzip");function Ve(Xt,sn,Ft){var Qt=Xt.headers["content-encoding"];return Ft(null,sn,Qt)}var Qe=Le.writeStream;fe("Request#%d %s %s with headers %j, options.path: %s",je,$e,Ie,qe.headers,qe.path),Le.requestUrls.push(Ie);function ht(Xt){if(Ye&&(Ye.waiting=Date.now()-_e),fe("Request#%d %s `req response` event emit: status %d, headers: %j",je,Ie,Xt.statusCode,Xt.headers),Le.streaming){var sn=Ke(Xt);if(sn.redirect){Xt.resume();return}return sn.error?(Xt.resume(),Ge(sn.error,null,Xt)):Ge(null,null,Xt)}if(Xt.on("close",function(){fe("Request#%d %s: `res close` event emit, total size %d",je,Ie,bt)}),Xt.on("error",function(){fe("Request#%d %s: `res error` event emit, total size %d",je,Ie,bt)}),Xt.on("aborted",function(){nt=!0,fe("Request#%d %s: `res aborted` event emit, total size %d",je,Ie,bt)}),Qe){var Ft=Ke(Xt);if(Ft.redirect){Xt.resume();return}return Ft.error?(Xt.resume(),Qe.end(),Ge(Ft.error,null,Xt)):(Le.consumeWriteStream===!1?Xt.on("end",Ge.bind(null,null,null,Xt)):Qe.on("close",function(){fe("Request#%d %s: writeStream close event emitted",je,Ie),Ge(Et||null,null,Xt)}),Xt.pipe(Qe))}var Qt=[];Xt.on("data",function(en){fe("Request#%d %s: `res data` event emit, size %d",je,Ie,en.length),bt+=en.length,Qt.push(en)}),Xt.on("end",function(){var en=ce.concat(Qt,bt);if(fe("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",je,Ie,bt,Xt._dumped),Et)return Ge(Et,en,Xt);var on=Ke(Xt);if(on.error)return Ge(on.error,en,Xt);on.redirect||Ve(Xt,en,function(Cn,Bn,tr){if(Cn)return Ge(Cn,en,Xt);if(!tr&&Ee.indexOf(Le.dataType)>=0){try{Bn=decodeBodyByCharset(Bn,Xt)}catch(cr){return fe("decodeBodyByCharset error: %s",cr),Ge(null,Bn,Xt)}if(Le.dataType==="json")if(bt===0)Bn=null;else{var er=parseJSON(Bn,yt);er.error?Cn=er.error:Bn=er.data}}nt&&fe("Request#%d %s: Remote socket was terminated before `response.end()` was called",je,Ie),Ge(Cn,Bn,Xt)})})}var At,pt;Array.isArray(Le.timeout)?(At=z(Le.timeout[0]),pt=z(Le.timeout[1])):At=pt=z(Le.timeout),fe("ConnectTimeout: %d, ResponseTimeout: %d",At,pt);function Ot(){fe("Connect timer ticking, timeout: %d",At),vt=setTimeout(function(){vt=null,it===-1&&(it=-2);var Xt="Connect timeout for "+At+"ms",sn="ConnectionTimeoutError";jt.socket||(sn="SocketAssignTimeoutError",Xt+=", working sockets is full"),Et=new Error(Xt),Et.name=sn,Et.requestId=je,fe("ConnectTimeout: Request#%d %s %s: %s, connected: %s",je,Ie,Et.name,Xt,Zt),Rt()},At)}function Kt(){fe("Response timer ticking, timeout: %d",pt),Tt=setTimeout(function(){Tt=null;var Xt="Response timeout for "+pt+"ms",sn="ResponseTimeoutError";Et=new Error(Xt),Et.name=sn,Et.requestId=je,fe("ResponseTimeout: Request#%d %s %s: %s, connected: %s",je,Ie,Et.name,Xt,Zt),Rt()},pt)}var jt;qe.mode=Le.mode?Le.mode:"";try{jt=lt.request(qe,ht)}catch(Xt){return Ge(Xt)}typeof window=="undefined"?Ot():jt.on("requestTimeout",function(){it===-1&&(it=-2);var Xt="Connect timeout for "+At+"ms",sn="ConnectionTimeoutError";Et=new Error(Xt),Et.name=sn,Et.requestId=je,Rt()});function Rt(){fe("Request#%d %s abort, connected: %s",je,Ie,Zt),jt.socket||(Et.noSocket=!0,Ge(Et)),jt.abort()}return Ye&&jt.on("finish",function(){Ye.requestSent=Date.now()-_e}),jt.once("socket",function(Xt){Ye&&(Ye.queuing=Date.now()-_e);var sn=Xt.readyState;if(sn==="opening"){Xt.once("lookup",function(Ft,Qt,en){fe("Request#%d %s lookup: %s, %s, %s",je,Ie,Ft,Qt,en),Ye&&(Ye.dnslookup=Date.now()-_e),Qt&&(xe=Qt)}),Xt.once("connect",function(){Ye&&(Ye.connected=Date.now()-_e),Je(),Kt(),fe("Request#%d %s new socket connected",je,Ie),Zt=!0,xe||(xe=Xt.remoteAddress),Ce=Xt.remotePort});return}fe("Request#%d %s reuse socket connected, readyState: %s",je,Ie,sn),Zt=!0,wt=!0,xe||(xe=Xt.remoteAddress),Ce=Xt.remotePort,Je(),Kt()}),jt.on("error",function(Xt){(Xt.name==="Error"||Xt.name==="TypeError")&&(Xt.name=Zt?"ResponseError":"RequestError"),Xt.message+=' (req "error")',fe("Request#%d %s `req error` event emit, %s: %s",je,Ie,Xt.name,Xt.message),Ge(Et||Xt)}),Qe&&Qe.once("error",function(Xt){Xt.message+=' (writeStream "error")',Et=Xt,fe("Request#%d %s `writeStream error` event emit, %s: %s",je,Ie,Xt.name,Xt.message),Rt()}),Le.stream?(Le.stream.pipe(jt),Le.stream.once("error",function(Xt){Xt.message+=' (stream "error")',Et=Xt,fe("Request#%d %s `readStream error` event emit, %s: %s",je,Ie,Xt.name,Xt.message),Rt()})):jt.end(dt),jt.requestId=je,jt}}).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(kn,fn){"use strict";function We(){const He=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let mt=1;mt<arguments.length;mt++){const oe=mt<0||arguments.length<=mt?void 0:arguments[mt];oe&&Object.keys(oe).forEach(Ze=>{const Ne=oe[Ze];Ne!==void 0&&(He[Ze]=Ne)})}return He}fn.Z=We},13845:function(kn,fn,We){"use strict";We.d(fn,{F:function(){return He},Z:function(){return mt}});function He(oe){return oe!=null&&oe===oe.window}function mt(oe,Ze){var Ne,ge;if(typeof window=="undefined")return 0;const ce=Ze?"scrollTop":"scrollLeft";let Pe=0;return He(oe)?Pe=oe[Ze?"pageYOffset":"pageXOffset"]:oe instanceof Document?Pe=oe.documentElement[ce]:(oe instanceof HTMLElement||oe)&&(Pe=oe[ce]),oe&&!He(oe)&&typeof Pe!="number"&&(Pe=(ge=((Ne=oe.ownerDocument)!==null&&Ne!==void 0?Ne:oe).documentElement)===null||ge===void 0?void 0:ge[ce]),Pe}},56762:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return mt}});var He=We(59301);function mt(){const[,oe]=He.useReducer(Ze=>Ze+1,0);return oe}},68031:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Ze}});var He=We(16089);function mt(Ne,ge,ce,Pe){const Ae=ce-ge;return Ne/=Pe/2,Ne<1?Ae/2*Ne*Ne*Ne+ge:Ae/2*((Ne-=2)*Ne*Ne+2)+ge}var oe=We(13845);function Ze(Ne){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ce=()=>window,callback:Pe,duration:Ae=450}=ge,ye=ce(),De=(0,oe.Z)(ye,!0),me=Date.now(),we=()=>{const z=Date.now()-me,ee=mt(z>Ae?Ae:z,De,Ne,Ae);(0,oe.F)(ye)?ye.scrollTo(window.pageXOffset,ee):ye instanceof Document||ye.constructor.name==="HTMLDocument"?ye.documentElement.scrollTop=ee:ye.scrollTop=ee,z<Ae?(0,He.Z)(we):typeof Pe=="function"&&Pe()};(0,He.Z)(we)}},88522:function(kn,fn,We){"use strict";var He=We(92310),mt=We.n(He),oe=We(11592),Ze=We(2738),Ne=We(59301),ge=We(53487),ce=We(92343),Pe=We(36355),Ae=We(57809);const{Option:ye}=Ae.default;function De(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:Ee}=z,be=(0,oe.Z)(pe);let Ie;be.length===1&&(0,ce.l$)(be[0])&&!De(be[0])&&([Ie]=be);const Le=Ie?()=>Ie:void 0;let Fe;be.length&&De(be[0])?Fe=pe:Fe=Ee?Ee.map(ze=>{if((0,ce.l$)(ze))return ze;switch(typeof ze){case"string":return Ne.createElement(ye,{key:ze,value:ze},ze);case"object":{const{value:_e}=ze;return Ne.createElement(ye,{key:_e,value:_e},ze.text)}default:return}}):[];const{getPrefixCls:Oe}=Ne.useContext(Pe.E_),je=Oe("select",ae);return Ne.createElement(Ae.default,Object.assign({ref:ee,suffixIcon:null},(0,Ze.Z)(z,["dataSource","dropdownClassName"]),{prefixCls:je,popupClassName:le||ue,className:mt()(`${je}-auto-complete`,re),mode:Ae.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:Le}),Fe)},we=Ne.forwardRef(me),fe=(0,ge.Z)(we);we.Option=ye,we._InternalPanelDoNotUseOrYouWillBeFired=fe,fn.Z=we},66104:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return $e}});var He=We(92310),mt=We.n(He),oe=We(11592),Ze=We(26112),Ne=We(59301),ge=We(92343),ce=We(36355),Pe=We(84105),Ae=We(91857);const ye=et=>{let{children:lt}=et;const{getPrefixCls:ut}=Ne.useContext(ce.E_),yt=ut("breadcrumb");return Ne.createElement("li",{className:`${yt}-separator`,"aria-hidden":"true"},lt===""?lt:lt||"/")};ye.__ANT_BREADCRUMB_SEPARATOR=!0;var De=ye,me=function(et,lt){var ut={};for(var yt in et)Object.prototype.hasOwnProperty.call(et,yt)&<.indexOf(yt)<0&&(ut[yt]=et[yt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,yt=Object.getOwnPropertySymbols(et);qe<yt.length;qe++)lt.indexOf(yt[qe])<0&&Object.prototype.propertyIsEnumerable.call(et,yt[qe])&&(ut[yt[qe]]=et[yt[qe]]);return ut};function we(et,lt){if(et.title===void 0||et.title===null)return null;const ut=Object.keys(lt).join("|");return typeof et.title=="object"?et.title:String(et.title).replace(new RegExp(`:(${ut})`,"g"),(yt,qe)=>lt[qe]||yt)}function fe(et,lt,ut,yt){if(ut==null)return null;const{className:qe,onClick:ot}=lt,dt=me(lt,["className","onClick"]),St=Object.assign(Object.assign({},(0,Ze.Z)(dt,{data:!0,aria:!0})),{onClick:ot});return yt!==void 0?Ne.createElement("a",Object.assign({},St,{className:mt()(`${et}-link`,qe),href:yt}),ut):Ne.createElement("span",Object.assign({},St,{className:mt()(`${et}-link`,qe)}),ut)}function z(et,lt){return(yt,qe,ot,dt,St)=>{if(lt)return lt(yt,qe,ot,dt);const xt=we(yt,qe);return fe(et,yt,xt,St)}}var ee=function(et,lt){var ut={};for(var yt in et)Object.prototype.hasOwnProperty.call(et,yt)&<.indexOf(yt)<0&&(ut[yt]=et[yt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,yt=Object.getOwnPropertySymbols(et);qe<yt.length;qe++)lt.indexOf(yt[qe])<0&&Object.prototype.propertyIsEnumerable.call(et,yt[qe])&&(ut[yt[qe]]=et[yt[qe]]);return ut};const ae=et=>{const{prefixCls:lt,separator:ut="/",children:yt,menu:qe,overlay:ot,dropdownProps:dt,href:St}=et,ft=(gt=>{if(qe||ot){const vt=Object.assign({},dt);if(qe){const Tt=qe||{},{items:Et}=Tt,Zt=ee(Tt,["items"]);vt.menu=Object.assign(Object.assign({},Zt),{items:Et==null?void 0:Et.map((wt,bt)=>{var{key:it,title:nt,label:xe,path:Ce}=wt,Ye=ee(wt,["key","title","label","path"]);let Je=xe!=null?xe:nt;return Ce&&(Je=Ne.createElement("a",{href:`${St}${Ce}`},Je)),Object.assign(Object.assign({},Ye),{key:it!=null?it:bt,label:Je})})})}else ot&&(vt.overlay=ot);return Ne.createElement(Ae.Z,Object.assign({placement:"bottom"},vt),Ne.createElement("span",{className:`${lt}-overlay-link`},gt,Ne.createElement(Pe.Z,null)))}return gt})(yt);return ft!=null?Ne.createElement(Ne.Fragment,null,Ne.createElement("li",null,ft),ut&&Ne.createElement(De,null,ut)):null},re=et=>{const{prefixCls:lt,children:ut,href:yt}=et,qe=ee(et,["prefixCls","children","href"]),{getPrefixCls:ot}=Ne.useContext(ce.E_),dt=ot("breadcrumb",lt);return Ne.createElement(ae,Object.assign({},qe,{prefixCls:dt}),fe(dt,qe,ut,yt))};re.__ANT_BREADCRUMB_ITEM=!0;var le=re,ue=We(17313),pe=We(83116),Ee=We(37613);const be=et=>{const{componentCls:lt,iconCls:ut}=et;return{[lt]:Object.assign(Object.assign({},(0,ue.Wf)(et)),{color:et.itemColor,fontSize:et.fontSize,[ut]:{fontSize:et.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:et.linkColor,transition:`color ${et.motionDurationMid}`,padding:`0 ${et.paddingXXS}px`,borderRadius:et.borderRadiusSM,height:et.lineHeight*et.fontSize,display:"inline-block",marginInline:-et.marginXXS,"&:hover":{color:et.linkHoverColor,backgroundColor:et.colorBgTextHover}},(0,ue.Qy)(et)),"li:last-child":{color:et.lastItemColor},[`${lt}-separator`]:{marginInline:et.separatorMargin,color:et.separatorColor},[`${lt}-link`]:{[`
|
|
|
> ${ut} + span,
|
|
|
> ${ut} + a
|
|
|
`]:{marginInlineStart:et.marginXXS}},[`${lt}-overlay-link`]:{borderRadius:et.borderRadiusSM,height:et.lineHeight*et.fontSize,display:"inline-block",padding:`0 ${et.paddingXXS}px`,marginInline:-et.marginXXS,[`> ${ut}`]:{marginInlineStart:et.marginXXS,fontSize:et.fontSizeIcon},"&:hover":{color:et.linkHoverColor,backgroundColor:et.colorBgTextHover,a:{color:et.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${et.componentCls}-rtl`]:{direction:"rtl"}})}};var Ie=(0,pe.Z)("Breadcrumb",et=>{const lt=(0,Ee.TS)(et,{});return[be(lt)]},et=>({itemColor:et.colorTextDescription,lastItemColor:et.colorText,iconFontSize:et.fontSize,linkColor:et.colorTextDescription,linkHoverColor:et.colorText,separatorColor:et.colorTextDescription,separatorMargin:et.marginXS})),Le=function(et,lt){var ut={};for(var yt in et)Object.prototype.hasOwnProperty.call(et,yt)&<.indexOf(yt)<0&&(ut[yt]=et[yt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,yt=Object.getOwnPropertySymbols(et);qe<yt.length;qe++)lt.indexOf(yt[qe])<0&&Object.prototype.propertyIsEnumerable.call(et,yt[qe])&&(ut[yt[qe]]=et[yt[qe]]);return ut};function Fe(et){const{breadcrumbName:lt,children:ut}=et,yt=Le(et,["breadcrumbName","children"]),qe=Object.assign({title:lt},yt);return ut&&(qe.menu={items:ut.map(ot=>{var{breadcrumbName:dt}=ot,St=Le(ot,["breadcrumbName"]);return Object.assign(Object.assign({},St),{title:dt})})}),qe}function Oe(et,lt){return(0,Ne.useMemo)(()=>et||(lt?lt.map(Fe):null),[et,lt])}var je=function(et,lt){var ut={};for(var yt in et)Object.prototype.hasOwnProperty.call(et,yt)&<.indexOf(yt)<0&&(ut[yt]=et[yt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,yt=Object.getOwnPropertySymbols(et);qe<yt.length;qe++)lt.indexOf(yt[qe])<0&&Object.prototype.propertyIsEnumerable.call(et,yt[qe])&&(ut[yt[qe]]=et[yt[qe]]);return ut};const ze=(et,lt)=>{if(lt===void 0)return lt;let ut=(lt||"").replace(/^\//,"");return Object.keys(et).forEach(yt=>{ut=ut.replace(`:${yt}`,et[yt])}),ut},_e=et=>{const{prefixCls:lt,separator:ut="/",style:yt,className:qe,rootClassName:ot,routes:dt,items:St,children:xt,itemRender:ft,params:gt={}}=et,vt=je(et,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Tt,direction:Et,breadcrumb:Zt}=Ne.useContext(ce.E_);let wt;const bt=Tt("breadcrumb",lt),[it,nt]=Ie(bt),xe=Oe(St,dt),Ce=z(bt,ft);if(xe&&xe.length>0){const Me=[],Ge=St||dt;wt=xe.map((Ke,Ve)=>{const{path:Qe,key:ht,type:At,menu:pt,overlay:Ot,onClick:Kt,className:jt,separator:Rt,dropdownProps:Xt}=Ke,sn=ze(gt,Qe);sn!==void 0&&Me.push(sn);const Ft=ht!=null?ht:Ve;if(At==="separator")return Ne.createElement(De,{key:Ft},Rt);const Qt={},en=Ve===xe.length-1;pt?Qt.menu=pt:Ot&&(Qt.overlay=Ot);let{href:on}=Ke;return Me.length&&sn!==void 0&&(on=`#/${Me.join("/")}`),Ne.createElement(ae,Object.assign({key:Ft},Qt,(0,Ze.Z)(Ke,{data:!0,aria:!0}),{className:jt,dropdownProps:Xt,href:on,separator:en?"":ut,onClick:Kt,prefixCls:bt}),Ce(Ke,gt,Ge,Me,on))})}else if(xt){const Me=(0,oe.Z)(xt).length;wt=(0,oe.Z)(xt).map((Ge,Ke)=>{if(!Ge)return Ge;const Ve=Ke===Me-1;return(0,ge.Tm)(Ge,{separator:Ve?"":ut,key:Ke})})}const Ye=mt()(bt,Zt==null?void 0:Zt.className,{[`${bt}-rtl`]:Et==="rtl"},qe,ot,nt),Je=Object.assign(Object.assign({},Zt==null?void 0:Zt.style),yt);return it(Ne.createElement("nav",Object.assign({className:Ye,style:Je},vt),Ne.createElement("ol",null,wt)))};_e.Item=le,_e.Separator=De;var Ue=_e,$e=Ue},19842:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return ui}});var He=We(26407),mt=We(59301),oe=We(33853),Ze=We(58617),Ne=We(38819),ge=We(92310),ce=We.n(ge),Pe=We(92413),Ae=We(33606),ye=We(37061),De=We(77861),me=We(17115),we=We(90782),fe=We(6089),z=We(18929),ee=mt.createContext(null),ae=ee,re=We(39559),le=We(400),ue=We(33708),pe="__rc_cascader_search_mark__",Ee=function(ur,or,vr){var Hn=vr.label;return or.some(function(Jn){return String(Jn[Hn]).toLowerCase().includes(ur.toLowerCase())})},be=function(ur,or,vr,Hn){return or.map(function(Jn){return Jn[Hn.label]}).join(" / ")},Ie=function(Dn,ur,or,vr,Hn,Jn){var _t=Hn.filter,Gt=_t===void 0?Ee:_t,Pt=Hn.render,ln=Pt===void 0?be:Pt,pn=Hn.limit,Vt=pn===void 0?50:pn,Dt=Hn.sort;return mt.useMemo(function(){var cn=[];if(!Dn)return[];function xn(Nn,Zn){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Nn.forEach(function(En){if(!(!Dt&&Vt!==!1&&Vt>0&&cn.length>=Vt)){var Kn=[].concat((0,He.Z)(Zn),[En]),nr=En[or.children],rn=Ht||En.disabled;if((!nr||nr.length===0||Jn)&&Gt(Dn,Kn,{label:or.label})){var bn;cn.push((0,ue.Z)((0,ue.Z)({},En),{},(bn={disabled:rn},(0,le.Z)(bn,or.label,ln(Dn,Kn,vr,or)),(0,le.Z)(bn,pe,Kn),(0,le.Z)(bn,or.children,void 0),bn)))}nr&&xn(En[or.children],Kn,rn)}})}return xn(ur,[]),Dt&&cn.sort(function(Nn,Zn){return Dt(Nn[pe],Zn[pe],Dn,or)}),Vt!==!1&&Vt>0?cn.slice(0,Vt):cn},[Dn,ur,or,vr,ln,Jn,Gt,Dt,Vt])},Le="__RC_CASCADER_SPLIT__",Fe="SHOW_PARENT",Oe="SHOW_CHILD";function je(Dn){return Dn.join(Le)}function ze(Dn){return Dn.map(je)}function _e(Dn){return Dn.split(Le)}function Ue(Dn){var ur=Dn||{},or=ur.label,vr=ur.value,Hn=ur.children,Jn=vr||"value";return{label:or||"label",value:Jn,key:Jn,children:Hn||"children"}}function $e(Dn,ur){var or,vr;return(or=Dn.isLeaf)!==null&&or!==void 0?or:!((vr=Dn[ur.children])!==null&&vr!==void 0&&vr.length)}function et(Dn){var ur=Dn.parentElement;if(ur){var or=Dn.offsetTop-ur.offsetTop;or-ur.scrollTop<0?ur.scrollTo({top:or}):or+Dn.offsetHeight-ur.scrollTop>ur.offsetHeight&&ur.scrollTo({top:or+Dn.offsetHeight-ur.offsetHeight})}}function lt(Dn,ur){return Dn.map(function(or){var vr;return(vr=or[pe])===null||vr===void 0?void 0:vr.map(function(Hn){return Hn[ur.value]})})}function ut(Dn,ur,or){var vr=new Set(Dn),Hn=ur();return Dn.filter(function(Jn){var _t=Hn[Jn],Gt=_t?_t.parent:null,Pt=_t?_t.children:null;return _t&&_t.node.disabled?!0:or===Oe?!(Pt&&Pt.some(function(ln){return ln.key&&vr.has(ln.key)})):!(Gt&&!Gt.node.disabled&&vr.has(Gt.key))})}function yt(Dn,ur,or){for(var vr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Hn=ur,Jn=[],_t=function(){var ln,pn,Vt,Dt=Dn[Gt],cn=(ln=Hn)===null||ln===void 0?void 0:ln.findIndex(function(Nn){var Zn=Nn[or.value];return vr?String(Zn)===String(Dt):Zn===Dt}),xn=cn!==-1?(pn=Hn)===null||pn===void 0?void 0:pn[cn]:null;Jn.push({value:(Vt=xn==null?void 0:xn[or.value])!==null&&Vt!==void 0?Vt:Dt,index:cn,option:xn}),Hn=xn==null?void 0:xn[or.children]},Gt=0;Gt<Dn.length;Gt+=1)_t();return Jn}var qe=function(Dn,ur,or,vr,Hn){return mt.useMemo(function(){var Jn=Hn||function(_t){var Gt=vr?_t.slice(-1):_t,Pt=" / ";return Gt.every(function(ln){return["string","number"].includes((0,re.Z)(ln))})?Gt.join(Pt):Gt.reduce(function(ln,pn,Vt){var Dt=mt.isValidElement(pn)?mt.cloneElement(pn,{key:Vt}):pn;return Vt===0?[Dt]:[].concat((0,He.Z)(ln),[Pt,Dt])},[])};return Dn.map(function(_t){var Gt,Pt,ln=yt(_t,ur,or),pn=Jn(ln.map(function(Dt){var cn,xn=Dt.option,Nn=Dt.value;return(cn=xn==null?void 0:xn[or.label])!==null&&cn!==void 0?cn:Nn}),ln.map(function(Dt){var cn=Dt.option;return cn})),Vt=je(_t);return{label:pn,value:Vt,key:Vt,valueCells:_t,disabled:(Gt=ln[ln.length-1])===null||Gt===void 0||(Pt=Gt.option)===null||Pt===void 0?void 0:Pt.disabled}})},[Dn,ur,or,Hn,vr])},ot=We(71430),dt=function(Dn,ur){var or=mt.useRef({options:null,info:null}),vr=mt.useCallback(function(){return or.current.options!==Dn&&(or.current.options=Dn,or.current.info=(0,ot.I8)(Dn,{fieldNames:ur,initWrapper:function(Jn){return(0,ue.Z)((0,ue.Z)({},Jn),{},{pathKeyEntities:{}})},processEntity:function(Jn,_t){var Gt=Jn.nodes.map(function(Pt){return Pt[ur.value]}).join(Le);_t.pathKeyEntities[Gt]=Jn,Jn.key=Gt}})),or.current.info.pathKeyEntities},[ur,Dn]);return vr},St=function(Dn,ur){return mt.useCallback(function(or){var vr=[],Hn=[];return or.forEach(function(Jn){var _t=yt(Jn,Dn,ur);_t.every(function(Gt){return Gt.option})?Hn.push(Jn):vr.push(Jn)}),[Hn,vr]},[Dn,ur])},xt=We(48736);function ft(Dn){return mt.useMemo(function(){if(!Dn)return[!1,{}];var ur={matchInputWidth:!0,limit:50};return Dn&&(0,re.Z)(Dn)==="object"&&(ur=(0,ue.Z)((0,ue.Z)({},ur),Dn)),ur.limit<=0&&delete ur.limit,[!0,ur]},[Dn])}var gt=mt.memo(function(Dn){var ur=Dn.children;return ur},function(Dn,ur){return!ur.open}),vt=gt;function Tt(Dn){var ur,or=Dn.prefixCls,vr=Dn.checked,Hn=Dn.halfChecked,Jn=Dn.disabled,_t=Dn.onClick,Gt=Dn.disableCheckbox,Pt=mt.useContext(ae),ln=Pt.checkable,pn=typeof ln!="boolean"?ln:null;return mt.createElement("span",{className:ce()("".concat(or),(ur={},(0,le.Z)(ur,"".concat(or,"-checked"),vr),(0,le.Z)(ur,"".concat(or,"-indeterminate"),!vr&&Hn),(0,le.Z)(ur,"".concat(or,"-disabled"),Jn||Gt),ur)),onClick:_t},pn)}var Et="__cascader_fix_label__";function Zt(Dn){var ur=Dn.prefixCls,or=Dn.multiple,vr=Dn.options,Hn=Dn.activeValue,Jn=Dn.prevValuePath,_t=Dn.onToggleOpen,Gt=Dn.onSelect,Pt=Dn.onActive,ln=Dn.checkedSet,pn=Dn.halfCheckedSet,Vt=Dn.loadingKeys,Dt=Dn.isSelectable,cn=Dn.searchValue,xn="".concat(ur,"-menu"),Nn="".concat(ur,"-menu-item"),Zn=mt.useContext(ae),Ht=Zn.fieldNames,En=Zn.changeOnSelect,Kn=Zn.expandTrigger,nr=Zn.expandIcon,rn=Zn.loadingIcon,bn=Zn.dropdownMenuColumnStyle,nn=Kn==="hover",wn=mt.useMemo(function(){return vr.map(function(gn){var yn,Ln=gn.disabled,Tn=gn.disableCheckbox,In=gn[pe],Gn=(yn=gn[Et])!==null&&yn!==void 0?yn:gn[Ht.label],mr=gn[Ht.value],mn=$e(gn,Ht),Pr=In?In.map(function(dr){return dr[Ht.value]}):[].concat((0,He.Z)(Jn),[mr]),Ur=je(Pr),Br=Vt.includes(Ur),Sn=ln.has(Ur),Yn=pn.has(Ur);return{disabled:Ln,label:Gn,value:mr,isLeaf:mn,isLoading:Br,checked:Sn,halfChecked:Yn,option:gn,disableCheckbox:Tn,fullPath:Pr,fullPathKey:Ur}})},[vr,ln,Ht,pn,Vt,Jn]);return mt.createElement("ul",{className:xn,role:"menu"},wn.map(function(gn){var yn,Ln=gn.disabled,Tn=gn.label,In=gn.value,Gn=gn.isLeaf,mr=gn.isLoading,mn=gn.checked,Pr=gn.halfChecked,Ur=gn.option,Br=gn.fullPath,Sn=gn.fullPathKey,Yn=gn.disableCheckbox,dr=function(){if(!(Ln||cn)){var Zr=(0,He.Z)(Br);nn&&Gn&&Zr.pop(),Pt(Zr)}},Fr=function(){Dt(Ur)&&Gt(Br,Gn)},fr;return typeof Ur.title=="string"?fr=Ur.title:typeof Tn=="string"&&(fr=Tn),mt.createElement("li",{key:Sn,className:ce()(Nn,(yn={},(0,le.Z)(yn,"".concat(Nn,"-expand"),!Gn),(0,le.Z)(yn,"".concat(Nn,"-active"),Hn===In||Hn===Sn),(0,le.Z)(yn,"".concat(Nn,"-disabled"),Ln),(0,le.Z)(yn,"".concat(Nn,"-loading"),mr),yn)),style:bn,role:"menuitemcheckbox",title:fr,"aria-checked":mn,"data-path-key":Sn,onClick:function(){dr(),!Yn&&(!or||Gn)&&Fr()},onDoubleClick:function(){En&&_t(!1)},onMouseEnter:function(){nn&&dr()},onMouseDown:function(Zr){Zr.preventDefault()}},or&&mt.createElement(Tt,{prefixCls:"".concat(ur,"-checkbox"),checked:mn,halfChecked:Pr,disabled:Ln||Yn,disableCheckbox:Yn,onClick:function(Zr){Yn||(Zr.stopPropagation(),Fr())}}),mt.createElement("div",{className:"".concat(Nn,"-content")},Tn),!mr&&nr&&!Gn&&mt.createElement("div",{className:"".concat(Nn,"-expand-icon")},nr),mr&&rn&&mt.createElement("div",{className:"".concat(Nn,"-loading-icon")},rn))}))}var wt=function(){var Dn=(0,De.lk)(),ur=Dn.multiple,or=Dn.open,vr=mt.useContext(ae),Hn=vr.values,Jn=mt.useState([]),_t=(0,Ae.Z)(Jn,2),Gt=_t[0],Pt=_t[1];return mt.useEffect(function(){if(or&&!ur){var ln=Hn[0];Pt(ln||[])}},[or]),[Gt,Pt]},bt=We(10228),it=function(Dn,ur,or,vr,Hn,Jn){var _t=(0,De.lk)(),Gt=_t.direction,Pt=_t.searchValue,ln=_t.toggleOpen,pn=_t.open,Vt=Gt==="rtl",Dt=mt.useMemo(function(){for(var bn=-1,nn=ur,wn=[],gn=[],yn=vr.length,Ln=lt(ur,or),Tn=function(Ur){var Br=nn.findIndex(function(Sn,Yn){return(Ln[Yn]?je(Ln[Yn]):Sn[or.value])===vr[Ur]});if(Br===-1)return"break";bn=Br,wn.push(bn),gn.push(vr[Ur]),nn=nn[bn][or.children]},In=0;In<yn&&nn;In+=1){var Gn=Tn(In);if(Gn==="break")break}for(var mr=ur,mn=0;mn<wn.length-1;mn+=1)mr=mr[wn[mn]][or.children];return[gn,bn,mr,Ln]},[vr,or,ur]),cn=(0,Ae.Z)(Dt,4),xn=cn[0],Nn=cn[1],Zn=cn[2],Ht=cn[3],En=function(nn){Hn(nn)},Kn=function(nn){var wn=Zn.length,gn=Nn;gn===-1&&nn<0&&(gn=wn);for(var yn=0;yn<wn;yn+=1){gn=(gn+nn+wn)%wn;var Ln=Zn[gn];if(Ln&&!Ln.disabled){var Tn=xn.slice(0,-1).concat(Ht[gn]?je(Ht[gn]):Ln[or.value]);En(Tn);return}}},nr=function(){if(xn.length>1){var nn=xn.slice(0,-1);En(nn)}else ln(!1)},rn=function(){var nn,wn=((nn=Zn[Nn])===null||nn===void 0?void 0:nn[or.children])||[],gn=wn.find(function(Ln){return!Ln.disabled});if(gn){var yn=[].concat((0,He.Z)(xn),[gn[or.value]]);En(yn)}};mt.useImperativeHandle(Dn,function(){return{onKeyDown:function(nn){var wn=nn.which;switch(wn){case bt.Z.UP:case bt.Z.DOWN:{var gn=0;wn===bt.Z.UP?gn=-1:wn===bt.Z.DOWN&&(gn=1),gn!==0&&Kn(gn);break}case bt.Z.LEFT:{if(Pt)break;Vt?rn():nr();break}case bt.Z.RIGHT:{if(Pt)break;Vt?nr():rn();break}case bt.Z.BACKSPACE:{Pt||nr();break}case bt.Z.ENTER:{if(xn.length){var yn=Zn[Nn],Ln=(yn==null?void 0:yn[pe])||[];Ln.length?Jn(Ln.map(function(Tn){return Tn[or.value]}),Ln[Ln.length-1]):Jn(xn,Zn[Nn])}break}case bt.Z.ESC:ln(!1),pn&&nn.stopPropagation()}},onKeyUp:function(){}}})},nt=mt.forwardRef(function(Dn,ur){var or,vr,Hn,Jn,_t=(0,De.lk)(),Gt=_t.prefixCls,Pt=_t.multiple,ln=_t.searchValue,pn=_t.toggleOpen,Vt=_t.notFoundContent,Dt=_t.direction,cn=_t.open,xn=mt.useRef(),Nn=Dt==="rtl",Zn=mt.useContext(ae),Ht=Zn.options,En=Zn.values,Kn=Zn.halfValues,nr=Zn.fieldNames,rn=Zn.changeOnSelect,bn=Zn.onSelect,nn=Zn.searchOptions,wn=Zn.dropdownPrefixCls,gn=Zn.loadData,yn=Zn.expandTrigger,Ln=wn||Gt,Tn=mt.useState([]),In=(0,Ae.Z)(Tn,2),Gn=In[0],mr=In[1],mn=function(Qr){if(!(!gn||ln)){var Xi=yt(Qr,Ht,nr),Ti=Xi.map(function(bi){var Di=bi.option;return Di}),Rr=Ti[Ti.length-1];if(Rr&&!$e(Rr,nr)){var Wr=je(Qr);mr(function(bi){return[].concat((0,He.Z)(bi),[Wr])}),gn(Ti)}}};mt.useEffect(function(){Gn.length&&Gn.forEach(function(Ni){var Qr=_e(Ni),Xi=yt(Qr,Ht,nr,!0).map(function(Rr){var Wr=Rr.option;return Wr}),Ti=Xi[Xi.length-1];(!Ti||Ti[nr.children]||$e(Ti,nr))&&mr(function(Rr){return Rr.filter(function(Wr){return Wr!==Ni})})})},[Ht,Gn,nr]);var Pr=mt.useMemo(function(){return new Set(ze(En))},[En]),Ur=mt.useMemo(function(){return new Set(ze(Kn))},[Kn]),Br=wt(),Sn=(0,Ae.Z)(Br,2),Yn=Sn[0],dr=Sn[1],Fr=function(Qr){dr(Qr),mn(Qr)},fr=function(Qr){var Xi=Qr.disabled,Ti=$e(Qr,nr);return!Xi&&(Ti||rn||Pt)},Ir=function(Qr,Xi){var Ti=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;bn(Qr),!Pt&&(Xi||rn&&(yn==="hover"||Ti))&&pn(!1)},Zr=mt.useMemo(function(){return ln?nn:Ht},[ln,nn,Ht]),zr=mt.useMemo(function(){for(var Ni=[{options:Zr}],Qr=Zr,Xi=lt(Qr,nr),Ti=function(){var Di=Yn[Rr],pr=Qr.find(function(Li,so){return(Xi[so]?je(Xi[so]):Li[nr.value])===Di}),Lt=pr==null?void 0:pr[nr.children];if(!(Lt!=null&&Lt.length))return"break";Qr=Lt,Ni.push({options:Lt})},Rr=0;Rr<Yn.length;Rr+=1){var Wr=Ti();if(Wr==="break")break}return Ni},[Zr,Yn,nr]),Er=function(Qr,Xi){fr(Xi)&&Ir(Qr,$e(Xi,nr),!0)};it(ur,Zr,nr,Yn,Fr,Er),mt.useEffect(function(){for(var Ni=0;Ni<Yn.length;Ni+=1){var Qr,Xi=Yn.slice(0,Ni+1),Ti=je(Xi),Rr=(Qr=xn.current)===null||Qr===void 0?void 0:Qr.querySelector('li[data-path-key="'.concat(Ti.replace(/\\{0,2}"/g,'\\"'),'"]'));Rr&&et(Rr)}},[Yn]);var Vr=!((or=zr[0])!==null&&or!==void 0&&(vr=or.options)!==null&&vr!==void 0&&vr.length),Fn=[(Hn={},(0,le.Z)(Hn,nr.value,"__EMPTY__"),(0,le.Z)(Hn,Et,Vt),(0,le.Z)(Hn,"disabled",!0),Hn)],Mi=(0,ue.Z)((0,ue.Z)({},Dn),{},{multiple:!Vr&&Pt,onSelect:Ir,onActive:Fr,onToggleOpen:pn,checkedSet:Pr,halfCheckedSet:Ur,loadingKeys:Gn,isSelectable:fr}),On=Vr?[{options:Fn}]:zr,pi=On.map(function(Ni,Qr){var Xi=Yn.slice(0,Qr),Ti=Yn[Qr];return mt.createElement(Zt,(0,Pe.Z)({key:Qr},Mi,{searchValue:ln,prefixCls:Ln,options:Ni.options,prevValuePath:Xi,activeValue:Ti}))});return mt.createElement(vt,{open:cn},mt.createElement("div",{className:ce()("".concat(Ln,"-menus"),(Jn={},(0,le.Z)(Jn,"".concat(Ln,"-menu-empty"),Vr),(0,le.Z)(Jn,"".concat(Ln,"-rtl"),Nn),Jn)),ref:xn},pi))}),xe=nt;function Ce(Dn){var ur=Dn.onPopupVisibleChange,or=Dn.popupVisible,vr=Dn.popupClassName,Hn=Dn.popupPlacement;warning(!ur,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(or===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(vr===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Hn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ye(Dn,ur){if(Dn){var or=function vr(Hn){for(var Jn=0;Jn<Hn.length;Jn++){var _t=Hn[Jn];if(_t[ur==null?void 0:ur.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(_t[ur==null?void 0:ur.children])&&vr(_t[ur==null?void 0:ur.children]))return!0}};or(Dn)}}var Je=null,Me=["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 Ge(Dn){return Array.isArray(Dn)&&Array.isArray(Dn[0])}function Ke(Dn){return Dn?Ge(Dn)?Dn:(Dn.length===0?[]:[Dn]).map(function(ur){return Array.isArray(ur)?ur:[ur]}):[]}var Ve=mt.forwardRef(function(Dn,ur){var or=Dn.id,vr=Dn.prefixCls,Hn=vr===void 0?"rc-cascader":vr,Jn=Dn.fieldNames,_t=Dn.defaultValue,Gt=Dn.value,Pt=Dn.changeOnSelect,ln=Dn.onChange,pn=Dn.displayRender,Vt=Dn.checkable,Dt=Dn.autoClearSearchValue,cn=Dt===void 0?!0:Dt,xn=Dn.searchValue,Nn=Dn.onSearch,Zn=Dn.showSearch,Ht=Dn.expandTrigger,En=Dn.options,Kn=Dn.dropdownPrefixCls,nr=Dn.loadData,rn=Dn.popupVisible,bn=Dn.open,nn=Dn.popupClassName,wn=Dn.dropdownClassName,gn=Dn.dropdownMenuColumnStyle,yn=Dn.popupPlacement,Ln=Dn.placement,Tn=Dn.onDropdownVisibleChange,In=Dn.onPopupVisibleChange,Gn=Dn.expandIcon,mr=Gn===void 0?">":Gn,mn=Dn.loadingIcon,Pr=Dn.children,Ur=Dn.dropdownMatchSelectWidth,Br=Ur===void 0?!1:Ur,Sn=Dn.showCheckedStrategy,Yn=Sn===void 0?Fe:Sn,dr=(0,ye.Z)(Dn,Me),Fr=(0,me.ZP)(or),fr=!!Vt,Ir=(0,z.Z)(_t,{value:Gt,postState:Ke}),Zr=(0,Ae.Z)(Ir,2),zr=Zr[0],Er=Zr[1],Vr=mt.useMemo(function(){return Ue(Jn)},[JSON.stringify(Jn)]),Fn=mt.useMemo(function(){return En||[]},[En]),Mi=dt(Fn,Vr),On=mt.useCallback(function(lo){var Qi=Mi();return lo.map(function(Oo){var ko=Qi[Oo].nodes;return ko.map(function(oa){return oa[Vr.value]})})},[Mi,Vr]),pi=(0,z.Z)("",{value:xn,postState:function(Qi){return Qi||""}}),Ni=(0,Ae.Z)(pi,2),Qr=Ni[0],Xi=Ni[1],Ti=function(Qi,Oo){Xi(Qi),Oo.source!=="blur"&&Nn&&Nn(Qi)},Rr=ft(Zn),Wr=(0,Ae.Z)(Rr,2),bi=Wr[0],Di=Wr[1],pr=Ie(Qr,Fn,Vr,Kn||Hn,Di,Pt),Lt=St(Fn,Vr),Li=mt.useMemo(function(){var lo=Lt(zr),Qi=(0,Ae.Z)(lo,2),Oo=Qi[0],ko=Qi[1];if(!fr||!zr.length)return[Oo,[],ko];var oa=ze(Oo),la=Mi(),Ma=(0,we.S)(oa,!0,la),Mn=Ma.checkedKeys,ha=Ma.halfCheckedKeys;return[On(Mn),On(ha),ko]},[fr,zr,Mi,On,Lt]),so=(0,Ae.Z)(Li,3),Pi=so[0],wo=so[1],po=so[2],Eo=mt.useMemo(function(){var lo=ze(Pi),Qi=ut(lo,Mi,Yn);return[].concat((0,He.Z)(po),(0,He.Z)(On(Qi)))},[Pi,Mi,On,po,Yn]),yi=qe(Eo,Fn,Vr,fr,pn),si=(0,fe.Z)(function(lo){if(Er(lo),ln){var Qi=Ke(lo),Oo=Qi.map(function(la){return yt(la,Fn,Vr).map(function(Ma){return Ma.option})}),ko=fr?Qi:Qi[0],oa=fr?Oo:Oo[0];ln(ko,oa)}}),ei=(0,fe.Z)(function(lo){if((!fr||cn)&&Xi(""),!fr)si(lo);else{var Qi=je(lo),Oo=ze(Pi),ko=ze(wo),oa=Oo.includes(Qi),la=po.some(function(Ao){return je(Ao)===Qi}),Ma=Pi,Mn=po;if(la&&!oa)Mn=po.filter(function(Ao){return je(Ao)!==Qi});else{var ha=oa?Oo.filter(function(Ao){return Ao!==Qi}):[].concat((0,He.Z)(Oo),[Qi]),fu=Mi(),xs;if(oa){var bo=(0,we.S)(ha,{checked:!1,halfCheckedKeys:ko},fu);xs=bo.checkedKeys}else{var io=(0,we.S)(ha,!0,fu);xs=io.checkedKeys}var da=ut(xs,Mi,Yn);Ma=On(da)}si([].concat((0,He.Z)(Mn),(0,He.Z)(Ma)))}}),Ji=function(Qi,Oo){if(Oo.type==="clear"){si([]);return}var ko=Oo.values[0],oa=ko.valueCells;ei(oa)},no=bn!==void 0?bn:rn,Yr=wn||nn,Kr=Ln||yn,qn=function(Qi){Tn==null||Tn(Qi),In==null||In(Qi)},ci=mt.useMemo(function(){return{options:Fn,fieldNames:Vr,values:Pi,halfValues:wo,changeOnSelect:Pt,onSelect:ei,checkable:Vt,searchOptions:pr,dropdownPrefixCls:Kn,loadData:nr,expandTrigger:Ht,expandIcon:mr,loadingIcon:mn,dropdownMenuColumnStyle:gn}},[Fn,Vr,Pi,wo,Pt,ei,Vt,pr,Kn,nr,Ht,mr,mn,gn]),ro=!(Qr?pr:Fn).length,Do=Qr&&Di.matchInputWidth||ro?{}:{minWidth:"auto"};return mt.createElement(ae.Provider,{value:ci},mt.createElement(De.Ac,(0,Pe.Z)({},dr,{ref:ur,id:Fr,prefixCls:Hn,autoClearSearchValue:cn,dropdownMatchSelectWidth:Br,dropdownStyle:Do,displayValues:yi,onDisplayValuesChange:Ji,mode:fr?"multiple":void 0,searchValue:Qr,onSearch:Ti,showSearch:bi,OptionList:xe,emptyOptions:ro,open:no,dropdownClassName:Yr,placement:Kr,onDropdownVisibleChange:qn,getRawInputElement:function(){return Pr}})))});Ve.SHOW_PARENT=Fe,Ve.SHOW_CHILD=Oe;var Qe=Ve,ht=Qe,At=We(2738),pt=We(62892),Ot=We(53487),Kt=We(19080),jt=We(36355),Rt=We(93891),Xt=We(1684),sn=We(19716),Ft=We(32441),Qt=We(14154),en=We(58582),on=We(84443),Cn=We(66339),Bn=We(33234),tr=We(98447),er=We(17313),cr=We(74207),Ar=We(83116);const Dr=Dn=>{const{prefixCls:ur,componentCls:or,antCls:vr}=Dn,Hn=`${or}-menu-item`,Jn=`
|
|
|
&${Hn}-expand ${Hn}-expand-icon,
|
|
|
${Hn}-loading-icon
|
|
|
`;return[{[or]:{width:Dn.controlWidth}},{[`${or}-dropdown`]:[(0,tr.C2)(`${ur}-checkbox`,Dn),{[`&${vr}-select-dropdown`]:{padding:0}},{[or]:{"&-checkbox":{top:0,marginInlineEnd:Dn.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${or}-menu-empty`]:{[`${or}-menu`]:{width:"100%",height:"auto",[Hn]:{color:Dn.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Dn.controlItemWidth,height:Dn.dropdownHeight,margin:0,padding:Dn.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Dn.lineWidth}px ${Dn.lineType} ${Dn.colorSplit}`},"&-item":Object.assign(Object.assign({},er.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Dn.optionPadding,lineHeight:Dn.lineHeight,cursor:"pointer",transition:`all ${Dn.motionDurationMid}`,borderRadius:Dn.borderRadiusSM,"&:hover":{background:Dn.controlItemBgHover},"&-disabled":{color:Dn.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Jn]:{color:Dn.colorTextDisabled}},[`&-active:not(${Hn}-disabled)`]:{"&, &:hover":{fontWeight:Dn.optionSelectedFontWeight,backgroundColor:Dn.optionSelectedBg}},"&-content":{flex:"auto"},[Jn]:{marginInlineStart:Dn.paddingXXS,color:Dn.colorTextDescription,fontSize:Dn.fontSizeIcon},"&-keyword":{color:Dn.colorHighlight}})}}}]},{[`${or}-dropdown-rtl`]:{direction:"rtl"}},(0,cr.c)(Dn)]};var Or=(0,Ar.Z)("Cascader",Dn=>[Dr(Dn)],Dn=>{const ur=Math.round((Dn.controlHeight-Dn.fontSize*Dn.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Dn.controlItemBgActive,optionSelectedFontWeight:Dn.fontWeightStrong,optionPadding:`${ur}px ${Dn.paddingSM}px`,menuPadding:Dn.paddingXXS}}),$r=function(Dn,ur){var or={};for(var vr in Dn)Object.prototype.hasOwnProperty.call(Dn,vr)&&ur.indexOf(vr)<0&&(or[vr]=Dn[vr]);if(Dn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Hn=0,vr=Object.getOwnPropertySymbols(Dn);Hn<vr.length;Hn++)ur.indexOf(vr[Hn])<0&&Object.prototype.propertyIsEnumerable.call(Dn,vr[Hn])&&(or[vr[Hn]]=Dn[vr[Hn]]);return or};const{SHOW_CHILD:ai,SHOW_PARENT:br}=ht;function fi(Dn,ur,or){const vr=Dn.toLowerCase().split(ur).reduce((_t,Gt,Pt)=>Pt===0?[Gt]:[].concat((0,He.Z)(_t),[ur,Gt]),[]),Hn=[];let Jn=0;return vr.forEach((_t,Gt)=>{const Pt=Jn+_t.length;let ln=Dn.slice(Jn,Pt);Jn=Pt,Gt%2===1&&(ln=mt.createElement("span",{className:`${or}-menu-item-keyword`,key:`separator-${Gt}`},ln)),Hn.push(ln)}),Hn}const Cr=(Dn,ur,or,vr)=>{const Hn=[],Jn=Dn.toLowerCase();return ur.forEach((_t,Gt)=>{Gt!==0&&Hn.push(" / ");let Pt=_t[vr.label];const ln=typeof Pt;(ln==="string"||ln==="number")&&(Pt=fi(String(Pt),Jn,or)),Hn.push(Pt)}),Hn},at=mt.forwardRef((Dn,ur)=>{const{prefixCls:or,size:vr,disabled:Hn,className:Jn,rootClassName:_t,multiple:Gt,bordered:Pt=!0,transitionName:ln,choiceTransitionName:pn="",popupClassName:Vt,dropdownClassName:Dt,expandIcon:cn,placement:xn,showSearch:Nn,allowClear:Zn=!0,notFoundContent:Ht,direction:En,getPopupContainer:Kn,status:nr,showArrow:rn,builtinPlacements:bn,style:nn}=Dn,wn=$r(Dn,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),gn=(0,At.Z)(wn,["suffixIcon"]),{getPopupContainer:yn,getPrefixCls:Ln,renderEmpty:Tn,direction:In,popupOverflow:Gn,cascader:mr}=mt.useContext(jt.E_),mn=En||In,Pr=mn==="rtl",{status:Ur,hasFeedback:Br,isFormItemInput:Sn,feedbackIcon:Yn}=mt.useContext(Ft.aM),dr=(0,Kt.F)(Ur,nr),Fr=Ht||(Tn==null?void 0:Tn("Cascader"))||mt.createElement(Rt.Z,{componentName:"Cascader"}),fr=Ln(),Ir=Ln("select",or),Zr=Ln("cascader",or),[zr,Er]=(0,Qt.Z)(Ir),[Vr]=Or(Zr),{compactSize:Fn,compactItemClassnames:Mi}=(0,Bn.ri)(Ir,En),On=ce()(Vt||Dt,`${Zr}-dropdown`,{[`${Zr}-dropdown-rtl`]:mn==="rtl"},_t,Er),pi=mt.useMemo(()=>{if(!Nn)return Nn;let po={render:Cr};return typeof Nn=="object"&&(po=Object.assign(Object.assign({},po),Nn)),po},[Nn]),Ni=(0,sn.Z)(po=>{var Eo;return(Eo=vr!=null?vr:Fn)!==null&&Eo!==void 0?Eo:po}),Qr=mt.useContext(Xt.Z),Xi=Hn!=null?Hn:Qr;let Ti=cn;cn||(Ti=Pr?mt.createElement(oe.Z,null):mt.createElement(Ne.Z,null));const Rr=mt.createElement("span",{className:`${Ir}-menu-item-loading-icon`},mt.createElement(Ze.Z,{spin:!0})),Wr=mt.useMemo(()=>Gt?mt.createElement("span",{className:`${Zr}-checkbox-inner`}):!1,[Gt]),bi=(0,on.Z)(Dn.suffixIcon,rn),{suffixIcon:Di,removeIcon:pr,clearIcon:Lt}=(0,Cn.Z)(Object.assign(Object.assign({},Dn),{hasFeedback:Br,feedbackIcon:Yn,showSuffixIcon:bi,multiple:Gt,prefixCls:Ir,componentName:"Cascader"})),Li=mt.useMemo(()=>xn!==void 0?xn:Pr?"bottomRight":"bottomLeft",[xn,Pr]),so=(0,en.Z)(bn,Gn),Pi=Zn===!0?{clearIcon:Lt}:Zn,wo=mt.createElement(ht,Object.assign({prefixCls:Ir,className:ce()(!or&&Zr,{[`${Ir}-lg`]:Ni==="large",[`${Ir}-sm`]:Ni==="small",[`${Ir}-rtl`]:Pr,[`${Ir}-borderless`]:!Pt,[`${Ir}-in-form-item`]:Sn},(0,Kt.Z)(Ir,dr,Br),Mi,mr==null?void 0:mr.className,Jn,_t,Er),disabled:Xi,style:Object.assign(Object.assign({},mr==null?void 0:mr.style),nn)},gn,{builtinPlacements:so,direction:mn,placement:Li,notFoundContent:Fr,allowClear:Pi,showSearch:pi,expandIcon:Ti,suffixIcon:Di,removeIcon:pr,loadingIcon:Rr,checkable:Wr,dropdownClassName:On,dropdownPrefixCls:or||Zr,choiceTransitionName:(0,pt.m)(fr,"",pn),transitionName:(0,pt.m)(fr,"slide-up",ln),getPopupContainer:Kn||yn,ref:ur}));return Vr(zr(wo))}),wi=(0,Ot.Z)(at);at.SHOW_PARENT=br,at.SHOW_CHILD=ai,at._InternalPanelDoNotUseOrYouWillBeFired=wi;var ui=at},24905:function(kn,fn,We){"use strict";We.d(fn,{default:function(){return Ie}});var He=We(92310),mt=We.n(He),oe=We(5630),Ze=We(59301),Ne=We(36355),ge=We(1684),ce=We(32441),Ae=Ze.createContext(null),ye=We(98447),De=We(14088),me=We(4572),we=function(Le,Fe){var Oe={};for(var je in Le)Object.prototype.hasOwnProperty.call(Le,je)&&Fe.indexOf(je)<0&&(Oe[je]=Le[je]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,je=Object.getOwnPropertySymbols(Le);ze<je.length;ze++)Fe.indexOf(je[ze])<0&&Object.prototype.propertyIsEnumerable.call(Le,je[ze])&&(Oe[je[ze]]=Le[je[ze]]);return Oe};const fe=(Le,Fe)=>{var Oe;const{prefixCls:je,className:ze,rootClassName:_e,children:Ue,indeterminate:$e=!1,style:et,onMouseEnter:lt,onMouseLeave:ut,skipGroup:yt=!1,disabled:qe}=Le,ot=we(Le,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:dt,direction:St,checkbox:xt}=Ze.useContext(Ne.E_),ft=Ze.useContext(Ae),{isFormItemInput:gt}=Ze.useContext(ce.aM),vt=Ze.useContext(ge.Z),Tt=(Oe=(ft==null?void 0:ft.disabled)||qe)!==null&&Oe!==void 0?Oe:vt,Et=Ze.useRef(ot.value);Ze.useEffect(()=>{ft==null||ft.registerValue(ot.value)},[]),Ze.useEffect(()=>{if(!yt)return ot.value!==Et.current&&(ft==null||ft.cancelValue(Et.current),ft==null||ft.registerValue(ot.value),Et.current=ot.value),()=>ft==null?void 0:ft.cancelValue(ot.value)},[ot.value]);const Zt=dt("checkbox",je),[wt,bt]=(0,ye.ZP)(Zt),it=Object.assign({},ot);ft&&!yt&&(it.onChange=function(){ot.onChange&&ot.onChange.apply(ot,arguments),ft.toggleOption&&ft.toggleOption({label:Ue,value:ot.value})},it.name=ft.name,it.checked=ft.value.includes(ot.value));const nt=mt()(`${Zt}-wrapper`,{[`${Zt}-rtl`]:St==="rtl",[`${Zt}-wrapper-checked`]:it.checked,[`${Zt}-wrapper-disabled`]:Tt,[`${Zt}-wrapper-in-form-item`]:gt},xt==null?void 0:xt.className,ze,_e,bt),xe=mt()({[`${Zt}-indeterminate`]:$e},me.A,bt),Ce=$e?"mixed":void 0;return wt(Ze.createElement(De.Z,{component:"Checkbox",disabled:Tt},Ze.createElement("label",{className:nt,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),et),onMouseEnter:lt,onMouseLeave:ut},Ze.createElement(oe.Z,Object.assign({"aria-checked":Ce},it,{prefixCls:Zt,className:xe,disabled:Tt,ref:Fe})),Ue!==void 0&&Ze.createElement("span",null,Ue))))};var ee=Ze.forwardRef(fe),ae=We(26407),re=We(2738),le=function(Le,Fe){var Oe={};for(var je in Le)Object.prototype.hasOwnProperty.call(Le,je)&&Fe.indexOf(je)<0&&(Oe[je]=Le[je]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,je=Object.getOwnPropertySymbols(Le);ze<je.length;ze++)Fe.indexOf(je[ze])<0&&Object.prototype.propertyIsEnumerable.call(Le,je[ze])&&(Oe[je[ze]]=Le[je[ze]]);return Oe};const ue=(Le,Fe)=>{const{defaultValue:Oe,children:je,options:ze=[],prefixCls:_e,className:Ue,rootClassName:$e,style:et,onChange:lt}=Le,ut=le(Le,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:yt,direction:qe}=Ze.useContext(Ne.E_),[ot,dt]=Ze.useState(ut.value||Oe||[]),[St,xt]=Ze.useState([]);Ze.useEffect(()=>{"value"in ut&&dt(ut.value||[])},[ut.value]);const ft=Ze.useMemo(()=>ze.map(Ye=>typeof Ye=="string"||typeof Ye=="number"?{label:Ye,value:Ye}:Ye),[ze]),gt=Ye=>{xt(Je=>Je.filter(Me=>Me!==Ye))},vt=Ye=>{xt(Je=>[].concat((0,ae.Z)(Je),[Ye]))},Tt=Ye=>{const Je=ot.indexOf(Ye.value),Me=(0,ae.Z)(ot);Je===-1?Me.push(Ye.value):Me.splice(Je,1),"value"in ut||dt(Me),lt==null||lt(Me.filter(Ge=>St.includes(Ge)).sort((Ge,Ke)=>{const Ve=ft.findIndex(ht=>ht.value===Ge),Qe=ft.findIndex(ht=>ht.value===Ke);return Ve-Qe}))},Et=yt("checkbox",_e),Zt=`${Et}-group`,[wt,bt]=(0,ye.ZP)(Et),it=(0,re.Z)(ut,["value","disabled"]),nt=ze.length?ft.map(Ye=>Ze.createElement(ee,{prefixCls:Et,key:Ye.value.toString(),disabled:"disabled"in Ye?Ye.disabled:ut.disabled,value:Ye.value,checked:ot.includes(Ye.value),onChange:Ye.onChange,className:`${Zt}-item`,style:Ye.style,title:Ye.title},Ye.label)):je,xe={toggleOption:Tt,value:ot,disabled:ut.disabled,name:ut.name,registerValue:vt,cancelValue:gt},Ce=mt()(Zt,{[`${Zt}-rtl`]:qe==="rtl"},Ue,$e,bt);return wt(Ze.createElement("div",Object.assign({className:Ce,style:et},it,{ref:Fe}),Ze.createElement(Ae.Provider,{value:xe},nt)))},pe=Ze.forwardRef(ue);var Ee=Ze.memo(pe);const be=ee;be.Group=Ee,be.__ANT_CHECKBOX=!0;var Ie=be},98447:function(kn,fn,We){"use strict";We.d(fn,{C2:function(){return Ne}});var He=We(17313),mt=We(37613),oe=We(83116);const Ze=ge=>{const{checkboxCls:ce}=ge,Pe=`${ce}-wrapper`;return[{[`${ce}-group`]:Object.assign(Object.assign({},(0,He.Wf)(ge)),{display:"inline-flex",flexWrap:"wrap",columnGap:ge.marginXS,[`> ${ge.antCls}-row`]:{flex:1}}),[Pe]:Object.assign(Object.assign({},(0,He.Wf)(ge)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Pe}`]:{marginInlineStart:0},[`&${Pe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ce]:Object.assign(Object.assign({},(0,He.Wf)(ge)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ge.borderRadiusSM,alignSelf:"center",[`${ce}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ce}-inner`]:Object.assign({},(0,He.oN)(ge))},[`${ce}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ge.checkboxSize,height:ge.checkboxSize,direction:"ltr",backgroundColor:ge.colorBgContainer,border:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`,borderRadius:ge.borderRadiusSM,borderCollapse:"separate",transition:`all ${ge.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ge.checkboxSize/14*5,height:ge.checkboxSize/14*8,border:`${ge.lineWidthBold}px solid ${ge.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ge.motionDurationFast} ${ge.motionEaseInBack}, opacity ${ge.motionDurationFast}`}},"& + span":{paddingInlineStart:ge.paddingXS,paddingInlineEnd:ge.paddingXS}})},{[`
|
|
|
${Pe}:not(${Pe}-disabled),
|
|
|
${ce}:not(${ce}-disabled)
|
|
|
`]:{[`&:hover ${ce}-inner`]:{borderColor:ge.colorPrimary}},[`${Pe}:not(${Pe}-disabled)`]:{[`&:hover ${ce}-checked:not(${ce}-disabled) ${ce}-inner`]:{backgroundColor:ge.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ce}-checked:not(${ce}-disabled):after`]:{borderColor:ge.colorPrimaryHover}}},{[`${ce}-checked`]:{[`${ce}-inner`]:{backgroundColor:ge.colorPrimary,borderColor:ge.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ge.motionDurationMid} ${ge.motionEaseOutBack} ${ge.motionDurationFast}`}}},[`
|
|
|
${Pe}-checked:not(${Pe}-disabled),
|
|
|
${ce}-checked:not(${ce}-disabled)
|
|
|
`]:{[`&:hover ${ce}-inner`]:{backgroundColor:ge.colorPrimaryHover,borderColor:"transparent"}}},{[ce]:{"&-indeterminate":{[`${ce}-inner`]:{backgroundColor:ge.colorBgContainer,borderColor:ge.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ge.fontSizeLG/2,height:ge.fontSizeLG/2,backgroundColor:ge.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Pe}-disabled`]:{cursor:"not-allowed"},[`${ce}-disabled`]:{[`&, ${ce}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ce}-inner`]:{background:ge.colorBgContainerDisabled,borderColor:ge.colorBorder,"&:after":{borderColor:ge.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ge.colorTextDisabled},[`&${ce}-indeterminate ${ce}-inner::after`]:{background:ge.colorTextDisabled}}}]};function Ne(ge,ce){const Pe=(0,mt.TS)(ce,{checkboxCls:`.${ge}`,checkboxSize:ce.controlInteractiveSize});return[Ze(Pe)]}fn.ZP=(0,oe.Z)("Checkbox",(ge,ce)=>{let{prefixCls:Pe}=ce;return[Ne(Pe,ge)]})},93891:function(kn,fn,We){"use strict";var He=We(59301),mt=We(36355),oe=We(64165);const Ze=Ne=>{const{componentName:ge}=Ne,{getPrefixCls:ce}=(0,He.useContext)(mt.E_),Pe=ce("empty");switch(ge){case"Table":case"List":return He.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return He.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE,className:`${Pe}-small`});default:return He.createElement(oe.Z,null)}};fn.Z=Ze},28103:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return me}});var He=We(92310),mt=We.n(He),oe=We(59301),Ze=We(36355),Ne=We(17313),ge=We(83116),ce=We(37613);const Pe=we=>{const{componentCls:fe,sizePaddingEdgeHorizontal:z,colorSplit:ee,lineWidth:ae,textPaddingInline:re,orientationMargin:le,verticalMarginInline:ue}=we;return{[fe]:Object.assign(Object.assign({},(0,Ne.Wf)(we)),{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:`${we.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${fe}-with-text`]:{display:"flex",alignItems:"center",margin:`${we.dividerHorizontalWithTextGutterMargin}px 0`,color:we.colorTextHeading,fontWeight:500,fontSize:we.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:we.colorText,fontWeight:"normal",fontSize:we.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 Ae=(0,ge.Z)("Divider",we=>{const fe=(0,ce.TS)(we,{dividerHorizontalWithTextGutterMargin:we.margin,dividerHorizontalGutterMargin:we.marginLG,sizePaddingEdgeHorizontal:0});return[Pe(fe)]},we=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:we.marginXS})),ye=function(we,fe){var z={};for(var ee in we)Object.prototype.hasOwnProperty.call(we,ee)&&fe.indexOf(ee)<0&&(z[ee]=we[ee]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,ee=Object.getOwnPropertySymbols(we);ae<ee.length;ae++)fe.indexOf(ee[ae])<0&&Object.prototype.propertyIsEnumerable.call(we,ee[ae])&&(z[ee[ae]]=we[ee[ae]]);return z},me=we=>{const{getPrefixCls:fe,direction:z,divider:ee}=oe.useContext(Ze.E_),{prefixCls:ae,type:re="horizontal",orientation:le="center",orientationMargin:ue,className:pe,rootClassName:Ee,children:be,dashed:Ie,plain:Le,style:Fe}=we,Oe=ye(we,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),je=fe("divider",ae),[ze,_e]=Ae(je),Ue=le.length>0?`-${le}`:le,$e=!!be,et=le==="left"&&ue!=null,lt=le==="right"&&ue!=null,ut=mt()(je,ee==null?void 0:ee.className,_e,`${je}-${re}`,{[`${je}-with-text`]:$e,[`${je}-with-text${Ue}`]:$e,[`${je}-dashed`]:!!Ie,[`${je}-plain`]:!!Le,[`${je}-rtl`]:z==="rtl",[`${je}-no-default-orientation-margin-left`]:et,[`${je}-no-default-orientation-margin-right`]:lt},pe,Ee),yt=oe.useMemo(()=>typeof ue=="number"?ue:/^\d+$/.test(ue)?Number(ue):ue,[ue]),qe=Object.assign(Object.assign({},et&&{marginLeft:yt}),lt&&{marginRight:yt});return ze(oe.createElement("div",Object.assign({className:ut,style:Object.assign(Object.assign({},ee==null?void 0:ee.style),Fe)},Oe,{role:"separator"}),be&&re!=="vertical"&&oe.createElement("span",{className:`${je}-inner-text`,style:qe},be)))}},91857:function(kn,fn,We){"use strict";var He=We(59301),mt=We(38819),oe=We(92310),Ze=We.n(oe),Ne=We(31561),ge=We(70425),ce=We(18929),Pe=We(2738),Ae=We(79676),ye=We(53487),De=We(92343),me=We(36355),we=We(20834),fe=We(40875),z=We(88088),ee=We(47211);const ae=null,re=Ee=>{const{menu:be,arrow:Ie,prefixCls:Le,children:Fe,trigger:Oe,disabled:je,dropdownRender:ze,getPopupContainer:_e,overlayClassName:Ue,rootClassName:$e,open:et,onOpenChange:lt,visible:ut,onVisibleChange:yt,mouseEnterDelay:qe=.15,mouseLeaveDelay:ot=.1,autoAdjustOverflow:dt=!0,placement:St="",overlay:xt,transitionName:ft}=Ee,{getPopupContainer:gt,getPrefixCls:vt,direction:Tt}=He.useContext(me.E_),Et=He.useMemo(()=>{const pt=vt();return ft!==void 0?ft:St.includes("top")?`${pt}-slide-down`:`${pt}-slide-up`},[vt,St,ft]),Zt=He.useMemo(()=>St?St.includes("Center")?St.slice(0,St.indexOf("Center")):St:Tt==="rtl"?"bottomRight":"bottomLeft",[St,Tt]),wt=vt("dropdown",Le),[bt,it]=(0,ee.Z)(wt),[,nt]=(0,z.Z)(),xe=He.Children.only(Fe),Ce=(0,De.Tm)(xe,{className:Ze()(`${wt}-trigger`,{[`${wt}-rtl`]:Tt==="rtl"},xe.props.className),disabled:je}),Ye=je?[]:Oe;let Je;Ye&&Ye.includes("contextMenu")&&(Je=!0);const[Me,Ge]=(0,ce.Z)(!1,{value:et!=null?et:ut}),Ke=(0,ge.useEvent)(pt=>{lt==null||lt(pt),yt==null||yt(pt),Ge(pt)}),Ve=Ze()(Ue,$e,it,{[`${wt}-rtl`]:Tt==="rtl"}),Qe=(0,Ae.Z)({arrowPointAtCenter:typeof Ie=="object"&&Ie.pointAtCenter,autoAdjustOverflow:dt,offset:nt.marginXXS,arrowWidth:Ie?nt.sizePopupArrow:0,borderRadius:nt.borderRadius}),ht=He.useCallback(()=>{Ge(!1)},[]),At=()=>{let pt;return be!=null&&be.items?pt=He.createElement(we.default,Object.assign({},be)):typeof xt=="function"?pt=xt():pt=xt,ze&&(pt=ze(pt)),pt=He.Children.only(typeof pt=="string"?He.createElement("span",null,pt):pt),He.createElement(fe.J,{prefixCls:`${wt}-menu`,expandIcon:He.createElement("span",{className:`${wt}-menu-submenu-arrow`},He.createElement(mt.Z,{className:`${wt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ht,validator:Ot=>{let{mode:Kt}=Ot}},pt)};return bt(He.createElement(Ne.Z,Object.assign({alignPoint:Je},(0,Pe.Z)(Ee,["rootClassName"]),{mouseEnterDelay:qe,mouseLeaveDelay:ot,visible:Me,builtinPlacements:Qe,arrow:!!Ie,overlayClassName:Ve,prefixCls:wt,getPopupContainer:_e||gt,transitionName:Et,trigger:Ye,overlay:At,placement:Zt,onVisibleChange:Ke}),Ce))};function le(Ee){return Object.assign(Object.assign({},Ee),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ue=(0,ye.Z)(re,"dropdown",Ee=>Ee,le),pe=Ee=>He.createElement(ue,Object.assign({},Ee),He.createElement("span",null));re._InternalPanelDoNotUseOrYouWillBeFired=pe,fn.Z=re},38854:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return z}});var He=We(91857),mt=We(92310),oe=We.n(mt),Ze=We(59301),Ne=We(18785),ge=We(3113),ce=We(36355),Pe=We(81327),Ae=We(33234),ye=We(47211),De=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}=Ze.useContext(ce.E_),{prefixCls:ue,type:pe="default",danger:Ee,disabled:be,loading:Ie,onClick:Le,htmlType:Fe,children:Oe,className:je,menu:ze,arrow:_e,autoFocus:Ue,overlay:$e,trigger:et,align:lt,open:ut,onOpenChange:yt,placement:qe,getPopupContainer:ot,href:dt,icon:St=Ze.createElement(Ne.Z,null),title:xt,buttonsRender:ft=At=>At,mouseEnterDelay:gt,mouseLeaveDelay:vt,overlayClassName:Tt,overlayStyle:Et,destroyPopupOnHide:Zt,dropdownRender:wt}=ee,bt=De(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"]),it=re("dropdown",ue),nt=`${it}-button`,[xe,Ce]=(0,ye.Z)(it),Ye={menu:ze,arrow:_e,autoFocus:Ue,align:lt,disabled:be,trigger:be?[]:et,onOpenChange:yt,getPopupContainer:ot||ae,mouseEnterDelay:gt,mouseLeaveDelay:vt,overlayClassName:Tt,overlayStyle:Et,destroyPopupOnHide:Zt,dropdownRender:wt},{compactSize:Je,compactItemClassnames:Me}=(0,Ae.ri)(it,le),Ge=oe()(nt,Me,je,Ce);"overlay"in ee&&(Ye.overlay=$e),"open"in ee&&(Ye.open=ut),"placement"in ee?Ye.placement=qe:Ye.placement=le==="rtl"?"bottomLeft":"bottomRight";const Ke=Ze.createElement(ge.ZP,{type:pe,danger:Ee,disabled:be,loading:Ie,onClick:Le,htmlType:Fe,href:dt,title:xt},Oe),Ve=Ze.createElement(ge.ZP,{type:pe,danger:Ee,icon:St}),[Qe,ht]=ft([Ke,Ve]);return xe(Ze.createElement(Pe.Z.Compact,Object.assign({className:Ge,size:Je,block:!0},bt),Qe,Ze.createElement(He.Z,Object.assign({},Ye),ht)))};me.__ANT_BUTTON=!0;var we=me;const fe=He.Z;fe.Button=we;var z=fe},47211:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return De}});var He=We(17313),mt=We(13826),oe=We(92899),Ze=We(29878),Ne=We(19447),ge=We(83116),ce=We(37613),Ae=me=>{const{componentCls:we,menuCls:fe,colorError:z,colorTextLightSolid:ee}=me,ae=`${fe}-item`;return{[`${we}, ${we}-menu-submenu`]:{[`${fe} ${ae}`]:{[`&${ae}-danger:not(${ae}-disabled)`]:{color:z,"&:hover":{color:ee,backgroundColor:z}}}}}};const ye=me=>{const{componentCls:we,menuCls:fe,zIndexPopup:z,dropdownArrowDistance:ee,sizePopupArrow:ae,antCls:re,iconCls:le,motionDurationMid:ue,dropdownPaddingVertical:pe,fontSize:Ee,dropdownEdgeChildPadding:be,colorTextDisabled:Ie,fontSizeIcon:Le,controlPaddingHorizontal:Fe,colorBgElevated:Oe}=me;return[{[we]:Object.assign(Object.assign({},(0,He.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:Le}},[`${we}-wrap`]:{position:"relative",[`${re}-btn > ${le}-down`]:{fontSize:Le},[`${le}-down::before`]:{transition:`transform ${ue}`}},[`${we}-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${we}-placement-bottomLeft,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${we}-placement-bottomLeft,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${we}-placement-bottom,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${we}-placement-bottom,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${we}-placement-bottomRight,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${we}-placement-bottomRight`]:{animationName:mt.fJ},[`&${re}-slide-up-enter${re}-slide-up-enter-active${we}-placement-topLeft,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${we}-placement-topLeft,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${we}-placement-top,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${we}-placement-top,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${we}-placement-topRight,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${we}-placement-topRight`]:{animationName:mt.Qt},[`&${re}-slide-down-leave${re}-slide-down-leave-active${we}-placement-bottomLeft,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${we}-placement-bottom,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${we}-placement-bottomRight`]:{animationName:mt.Uw},[`&${re}-slide-up-leave${re}-slide-up-leave-active${we}-placement-topLeft,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${we}-placement-top,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${we}-placement-topRight`]:{animationName:mt.ly}})},(0,Ne.ZP)(me,{colorBg:Oe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${we} ${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}},[`${we}, ${we}-menu-submenu`]:{[fe]:Object.assign(Object.assign({padding:be,listStyleType:"none",backgroundColor:Oe,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,He.Qy)(me)),{[`${fe}-item-group-title`]:{padding:`${pe}px ${Fe}px`,color:me.colorTextDescription,transition:`all ${ue}`},[`${fe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${fe}-item-icon`]:{minWidth:Ee,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 ${Fe}px`,color:me.colorText,fontWeight:"normal",fontSize:Ee,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${ue}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,He.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:Ie,cursor:"not-allowed","&:hover":{color:Ie,backgroundColor:Oe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${we}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${we}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:Le,fontStyle:"normal"}}}),[`${fe}-item-group-list`]:{margin:`0 ${me.marginXS}px`,padding:0,listStyle:"none"},[`${fe}-submenu-title`]:{paddingInlineEnd:Fe+me.fontSizeSM},[`${fe}-submenu-vertical`]:{position:"relative"},[`${fe}-submenu${fe}-submenu-disabled ${we}-menu-submenu-title`]:{[`&, ${we}-menu-submenu-arrow-icon`]:{color:Ie,backgroundColor:Oe,cursor:"not-allowed"}},[`${fe}-submenu-selected ${we}-menu-submenu-title`]:{color:me.colorPrimary}})}},[(0,mt.oN)(me,"slide-up"),(0,mt.oN)(me,"slide-down"),(0,oe.Fm)(me,"move-up"),(0,oe.Fm)(me,"move-down"),(0,Ze._y)(me,"zoom-big")]]};var De=(0,ge.Z)("Dropdown",(me,we)=>{let{rootPrefixCls:fe}=we;const{marginXXS:z,sizePopupArrow:ee,controlHeight:ae,fontSize:re,lineHeight:le,paddingXXS:ue,componentCls:pe,borderRadiusLG:Ee}=me,be=(ae-re*le)/2,{dropdownArrowOffset:Ie}=(0,Ne.fS)({contentRadius:Ee}),Le=(0,ce.TS)(me,{menuCls:`${pe}-menu`,rootPrefixCls:fe,dropdownArrowDistance:ee/2+z,dropdownArrowOffset:Ie,dropdownPaddingVertical:be,dropdownEdgeChildPadding:ue});return[ye(Le),Ae(Le)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},64165:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return ue}});var He=We(92310),mt=We.n(He),oe=We(59301),Ze=We(36355),Ne=We(9763),ge=We(64993),ce=We(88088),Ae=()=>{const[,pe]=(0,ce.Z)(),be=new ge.C(pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return oe.createElement("svg",{style:be,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"}))))},De=()=>{const[,pe]=(0,ce.Z)(),{colorFill:Ee,colorFillTertiary:be,colorFillQuaternary:Ie,colorBgContainer:Le}=pe,{borderColor:Fe,shadowColor:Oe,contentColor:je}=(0,oe.useMemo)(()=>({borderColor:new ge.C(Ee).onBackground(Le).toHexShortString(),shadowColor:new ge.C(be).onBackground(Le).toHexShortString(),contentColor:new ge.C(Ie).onBackground(Le).toHexShortString()}),[Ee,be,Ie,Le]);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:Oe,cx:"32",cy:"33",rx:"32",ry:"7"}),oe.createElement("g",{fillRule:"nonzero",stroke:Fe},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:je}))))},me=We(83116),we=We(37613);const fe=pe=>{const{componentCls:Ee,margin:be,marginXS:Ie,marginXL:Le,fontSize:Fe,lineHeight:Oe}=pe;return{[Ee]:{marginInline:Ie,fontSize:Fe,lineHeight:Oe,textAlign:"center",[`${Ee}-image`]:{height:pe.emptyImgHeight,marginBottom:Ie,opacity:pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ee}-description`]:{color:pe.colorText},[`${Ee}-footer`]:{marginTop:be},"&-normal":{marginBlock:Le,color:pe.colorTextDisabled,[`${Ee}-description`]:{color:pe.colorTextDisabled},[`${Ee}-image`]:{height:pe.emptyImgHeightMD}},"&-small":{marginBlock:Ie,color:pe.colorTextDisabled,[`${Ee}-image`]:{height:pe.emptyImgHeightSM}}}}};var z=(0,me.Z)("Empty",pe=>{const{componentCls:Ee,controlHeightLG:be}=pe,Ie=(0,we.TS)(pe,{emptyImgCls:`${Ee}-img`,emptyImgHeight:be*2.5,emptyImgHeightMD:be,emptyImgHeightSM:be*.875});return[fe(Ie)]}),ee=function(pe,Ee){var be={};for(var Ie in pe)Object.prototype.hasOwnProperty.call(pe,Ie)&&Ee.indexOf(Ie)<0&&(be[Ie]=pe[Ie]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Ie=Object.getOwnPropertySymbols(pe);Le<Ie.length;Le++)Ee.indexOf(Ie[Le])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ie[Le])&&(be[Ie[Le]]=pe[Ie[Le]]);return be};const ae=oe.createElement(Ae,null),re=oe.createElement(De,null),le=pe=>{var{className:Ee,rootClassName:be,prefixCls:Ie,image:Le=ae,description:Fe,children:Oe,imageStyle:je,style:ze}=pe,_e=ee(pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Ue,direction:$e,empty:et}=oe.useContext(Ze.E_),lt=Ue("empty",Ie),[ut,yt]=z(lt),[qe]=(0,Ne.Z)("Empty"),ot=typeof Fe!="undefined"?Fe:qe==null?void 0:qe.description,dt=typeof ot=="string"?ot:"empty";let St=null;return typeof Le=="string"?St=oe.createElement("img",{alt:dt,src:Le}):St=Le,ut(oe.createElement("div",Object.assign({className:mt()(yt,lt,et==null?void 0:et.className,{[`${lt}-normal`]:Le===re,[`${lt}-rtl`]:$e==="rtl"},Ee,be),style:Object.assign(Object.assign({},et==null?void 0:et.style),ze)},_e),oe.createElement("div",{className:`${lt}-image`,style:je},St),ot&&oe.createElement("div",{className:`${lt}-description`},ot),Oe&&oe.createElement("div",{className:`${lt}-footer`},Oe)))};le.PRESENTED_IMAGE_DEFAULT=ae,le.PRESENTED_IMAGE_SIMPLE=re;var ue=le},78241:function(kn,fn,We){"use strict";We.d(fn,{default:function(){return Gt}});var He=We(26407),mt=We(92310),oe=We.n(mt),Ze=We(77900),Ne=We(59301),ge=We(62892),ce=We(32441);function Pe(Pt){const[ln,pn]=Ne.useState(Pt);return Ne.useEffect(()=>{const Vt=setTimeout(()=>{pn(Pt)},Pt.length?0:10);return()=>{clearTimeout(Vt)}},[Pt]),ln}var Ae=We(17313),ye=We(29878),De=We(8378),me=We(37613),we=We(83116),z=Pt=>{const{componentCls:ln}=Pt,pn=`${ln}-show-help`,Vt=`${ln}-show-help-item`;return{[pn]:{transition:`opacity ${Pt.motionDurationSlow} ${Pt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Vt]:{overflow:"hidden",transition:`height ${Pt.motionDurationSlow} ${Pt.motionEaseInOut},
|
|
|
opacity ${Pt.motionDurationSlow} ${Pt.motionEaseInOut},
|
|
|
transform ${Pt.motionDurationSlow} ${Pt.motionEaseInOut} !important`,[`&${Vt}-appear, &${Vt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Vt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ee=Pt=>({legend:{display:"block",width:"100%",marginBottom:Pt.marginLG,padding:0,color:Pt.colorTextDescription,fontSize:Pt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Pt.lineWidth}px ${Pt.lineType} ${Pt.colorBorder}`},label:{fontSize:Pt.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 ${Pt.controlOutlineWidth}px ${Pt.controlOutline}`},output:{display:"block",paddingTop:15,color:Pt.colorText,fontSize:Pt.fontSize,lineHeight:Pt.lineHeight}}),ae=(Pt,ln)=>{const{formItemCls:pn}=Pt;return{[pn]:{[`${pn}-label > label`]:{height:ln},[`${pn}-control-input`]:{minHeight:ln}}}},re=Pt=>{const{componentCls:ln}=Pt;return{[Pt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ae.Wf)(Pt)),ee(Pt)),{[`${ln}-text`]:{display:"inline-block",paddingInlineEnd:Pt.paddingSM},"&-small":Object.assign({},ae(Pt,Pt.controlHeightSM)),"&-large":Object.assign({},ae(Pt,Pt.controlHeightLG))})}},le=Pt=>{const{formItemCls:ln,iconCls:pn,componentCls:Vt,rootPrefixCls:Dt,labelRequiredMarkColor:cn,labelColor:xn,labelFontSize:Nn,labelHeight:Zn,labelColonMarginInlineStart:Ht,labelColonMarginInlineEnd:En,itemMarginBottom:Kn}=Pt;return{[ln]:Object.assign(Object.assign({},(0,Ae.Wf)(Pt)),{marginBottom:Kn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Dt}-row`]:{display:"none"},"&-has-warning":{[`${ln}-split`]:{color:Pt.colorError}},"&-has-error":{[`${ln}-split`]:{color:Pt.colorWarning}},[`${ln}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Pt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Zn,color:xn,fontSize:Nn,[`> ${pn}`]:{fontSize:Pt.fontSize,verticalAlign:"top"},[`&${ln}-required:not(${ln}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Pt.marginXXS,color:cn,fontSize:Pt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Vt}-hide-required-mark &`]:{display:"none"}},[`${ln}-optional`]:{display:"inline-block",marginInlineStart:Pt.marginXXS,color:Pt.colorTextDescription,[`${Vt}-hide-required-mark &`]:{display:"none"}},[`${ln}-tooltip`]:{color:Pt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Pt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ht,marginInlineEnd:En},[`&${ln}-no-colon::after`]:{content:'"\\a0"'}}},[`${ln}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Dt}-col-'"]):not([class*="' ${Dt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Pt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ln]:{"&-explain, &-extra":{clear:"both",color:Pt.colorTextDescription,fontSize:Pt.fontSize,lineHeight:Pt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Pt.controlHeightSM,transition:`color ${Pt.motionDurationMid} ${Pt.motionEaseOut}`},"&-explain":{"&-error":{color:Pt.colorError},"&-warning":{color:Pt.colorWarning}}},[`&-with-help ${ln}-explain`]:{height:"auto",opacity:1},[`${ln}-feedback-icon`]:{fontSize:Pt.fontSize,textAlign:"center",visibility:"visible",animationName:ye.kr,animationDuration:Pt.motionDurationMid,animationTimingFunction:Pt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Pt.colorSuccess},"&-error":{color:Pt.colorError},"&-warning":{color:Pt.colorWarning},"&-validating":{color:Pt.colorPrimary}}})}},ue=Pt=>{const{componentCls:ln,formItemCls:pn}=Pt;return{[`${ln}-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=Pt=>{const{componentCls:ln,formItemCls:pn}=Pt;return{[`${ln}-inline`]:{display:"flex",flexWrap:"wrap",[pn]:{flex:"none",marginInlineEnd:Pt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${pn}-label,
|
|
|
> ${pn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${pn}-label`]:{flex:"none"},[`${ln}-text`]:{display:"inline-block"},[`${pn}-has-feedback`]:{display:"inline-block"}}}}},Ee=Pt=>({padding:Pt.verticalLabelPadding,margin:Pt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),be=Pt=>{const{componentCls:ln,formItemCls:pn,rootPrefixCls:Vt}=Pt;return{[`${pn} ${pn}-label`]:Ee(Pt),[ln]:{[pn]:{flexWrap:"wrap",[`${pn}-label, ${pn}-control`]:{[`&:not([class*=" ${Vt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ie=Pt=>{const{componentCls:ln,formItemCls:pn,rootPrefixCls:Vt}=Pt;return{[`${ln}-vertical`]:{[pn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ln}-item-control`]:{width:"100%"}}},[`${ln}-vertical ${pn}-label,
|
|
|
.${Vt}-col-24${pn}-label,
|
|
|
.${Vt}-col-xl-24${pn}-label`]:Ee(Pt),[`@media (max-width: ${Pt.screenXSMax}px)`]:[be(Pt),{[ln]:{[`.${Vt}-col-xs-24${pn}-label`]:Ee(Pt)}}],[`@media (max-width: ${Pt.screenSMMax}px)`]:{[ln]:{[`.${Vt}-col-sm-24${pn}-label`]:Ee(Pt)}},[`@media (max-width: ${Pt.screenMDMax}px)`]:{[ln]:{[`.${Vt}-col-md-24${pn}-label`]:Ee(Pt)}},[`@media (max-width: ${Pt.screenLGMax}px)`]:{[ln]:{[`.${Vt}-col-lg-24${pn}-label`]:Ee(Pt)}}}},Le=(Pt,ln)=>(0,me.TS)(Pt,{formItemCls:`${Pt.componentCls}-item`,rootPrefixCls:ln});var Fe=(0,we.Z)("Form",(Pt,ln)=>{let{rootPrefixCls:pn}=ln;const Vt=Le(Pt,pn);return[re(Vt),le(Vt),z(Vt),ue(Vt),pe(Vt),Ie(Vt),(0,De.Z)(Vt),ye.kr]},Pt=>({labelRequiredMarkColor:Pt.colorError,labelColor:Pt.colorTextHeading,labelFontSize:Pt.fontSize,labelHeight:Pt.controlHeight,labelColonMarginInlineStart:Pt.marginXXS/2,labelColonMarginInlineEnd:Pt.marginXS,itemMarginBottom:Pt.marginLG,verticalLabelPadding:`0 0 ${Pt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Oe=[];function je(Pt,ln,pn){let Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Pt=="string"?Pt:`${ln}-${Vt}`,error:Pt,errorStatus:pn}}var _e=Pt=>{let{help:ln,helpStatus:pn,errors:Vt=Oe,warnings:Dt=Oe,className:cn,fieldId:xn,onVisibleChanged:Nn}=Pt;const{prefixCls:Zn}=Ne.useContext(ce.Rk),Ht=`${Zn}-item-explain`,[,En]=Fe(Zn),Kn=(0,Ne.useMemo)(()=>(0,ge.Z)(Zn),[Zn]),nr=Pe(Vt),rn=Pe(Dt),bn=Ne.useMemo(()=>ln!=null?[je(ln,"help",pn)]:[].concat((0,He.Z)(nr.map((wn,gn)=>je(wn,"error","error",gn))),(0,He.Z)(rn.map((wn,gn)=>je(wn,"warning","warning",gn)))),[ln,pn,nr,rn]),nn={};return xn&&(nn.id=`${xn}_help`),Ne.createElement(Ze.default,{motionDeadline:Kn.motionDeadline,motionName:`${Zn}-show-help`,visible:!!bn.length,onVisibleChanged:Nn},wn=>{const{className:gn,style:yn}=wn;return Ne.createElement("div",Object.assign({},nn,{className:oe()(Ht,gn,cn,En),style:yn,role:"alert"}),Ne.createElement(Ze.CSSMotionList,Object.assign({keys:bn},(0,ge.Z)(Zn),{motionName:`${Zn}-show-help-item`,component:!1}),Ln=>{const{key:Tn,error:In,errorStatus:Gn,className:mr,style:mn}=Ln;return Ne.createElement("div",{key:Tn,className:oe()(mr,{[`${Ht}-${Gn}`]:Gn}),style:mn},In)}))})},Ue=We(95013),$e=We(36355),et=We(1684),lt=We(52946),ut=We(19716),yt=We(16722);const qe=["parentNode"],ot="form_item";function dt(Pt){return Pt===void 0||Pt===!1?[]:Array.isArray(Pt)?Pt:[Pt]}function St(Pt,ln){if(!Pt.length)return;const pn=Pt.join("_");return ln?`${ln}_${pn}`:qe.includes(pn)?`${ot}_${pn}`:pn}function xt(Pt,ln,pn,Vt,Dt,cn){let xn=Vt;return cn!==void 0?xn=cn:pn.validating?xn="validating":Pt.length?xn="error":ln.length?xn="warning":(pn.touched||Dt&&pn.validated)&&(xn="success"),xn}function ft(Pt){return dt(Pt).join("_")}function gt(Pt){const[ln]=(0,Ue.useForm)(),pn=Ne.useRef({}),Vt=Ne.useMemo(()=>Pt!=null?Pt:Object.assign(Object.assign({},ln),{__INTERNAL__:{itemRef:Dt=>cn=>{const xn=ft(Dt);cn?pn.current[xn]=cn:delete pn.current[xn]}},scrollToField:function(Dt){let cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const xn=dt(Dt),Nn=St(xn,Vt.__INTERNAL__.name),Zn=Nn?document.getElementById(Nn):null;Zn&&(0,yt.Z)(Zn,Object.assign({scrollMode:"if-needed",block:"nearest"},cn))},getFieldInstance:Dt=>{const cn=ft(Dt);return pn.current[cn]}}),[Pt,ln]);return[Vt]}var vt=We(28726),Tt=function(Pt,ln){var pn={};for(var Vt in Pt)Object.prototype.hasOwnProperty.call(Pt,Vt)&&ln.indexOf(Vt)<0&&(pn[Vt]=Pt[Vt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Vt=Object.getOwnPropertySymbols(Pt);Dt<Vt.length;Dt++)ln.indexOf(Vt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,Vt[Dt])&&(pn[Vt[Dt]]=Pt[Vt[Dt]]);return pn};const Et=(Pt,ln)=>{const pn=Ne.useContext(et.Z),{getPrefixCls:Vt,direction:Dt,form:cn}=Ne.useContext($e.E_),{prefixCls:xn,className:Nn,rootClassName:Zn,size:Ht,disabled:En=pn,form:Kn,colon:nr,labelAlign:rn,labelWrap:bn,labelCol:nn,wrapperCol:wn,hideRequiredMark:gn,layout:yn="horizontal",scrollToFirstError:Ln,requiredMark:Tn,onFinishFailed:In,name:Gn,style:mr,feedbackIcons:mn}=Pt,Pr=Tt(Pt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Ur=(0,ut.Z)(Ht),Br=Ne.useContext(vt.Z),Sn=(0,Ne.useMemo)(()=>Tn!==void 0?Tn:cn&&cn.requiredMark!==void 0?cn.requiredMark:!gn,[gn,Tn,cn]),Yn=nr!=null?nr:cn==null?void 0:cn.colon,dr=Vt("form",xn),[Fr,fr]=Fe(dr),Ir=oe()(dr,`${dr}-${yn}`,{[`${dr}-hide-required-mark`]:Sn===!1,[`${dr}-rtl`]:Dt==="rtl",[`${dr}-${Ur}`]:Ur},fr,cn==null?void 0:cn.className,Nn,Zn),[Zr]=gt(Kn),{__INTERNAL__:zr}=Zr;zr.name=Gn;const Er=(0,Ne.useMemo)(()=>({name:Gn,labelAlign:rn,labelCol:nn,labelWrap:bn,wrapperCol:wn,vertical:yn==="vertical",colon:Yn,requiredMark:Sn,itemRef:zr.itemRef,form:Zr,feedbackIcons:mn}),[Gn,rn,nn,wn,yn,Yn,Sn,Zr,mn]);Ne.useImperativeHandle(ln,()=>Zr);const Vr=(Mi,On)=>{if(Mi){let pi={block:"nearest"};typeof Mi=="object"&&(pi=Mi),Zr.scrollToField(On,pi)}},Fn=Mi=>{if(In==null||In(Mi),Mi.errorFields.length){const On=Mi.errorFields[0].name;if(Ln!==void 0){Vr(Ln,On);return}cn&&cn.scrollToFirstError!==void 0&&Vr(cn.scrollToFirstError,On)}};return Fr(Ne.createElement(et.n,{disabled:En},Ne.createElement(lt.q,{size:Ur},Ne.createElement(ce.RV,Object.assign({},{validateMessages:Br}),Ne.createElement(ce.q3.Provider,{value:Er},Ne.createElement(Ue.default,Object.assign({id:Gn},Pr,{name:Gn,onFinishFailed:Fn,form:Zr,style:Object.assign(Object.assign({},cn==null?void 0:cn.style),mr),className:Ir})))))))};var wt=Ne.forwardRef(Et),bt=We(41799),it=We(8654),nt=We(92343),xe=We(11592);function Ce(Pt){if(typeof Pt=="function")return Pt;const ln=(0,xe.Z)(Pt);return ln.length<=1?ln[0]:ln}const Ye=()=>{const{status:Pt,errors:ln=[],warnings:pn=[]}=(0,Ne.useContext)(ce.aM);return{status:Pt,errors:ln,warnings:pn}};Ye.Context=ce.aM;var Je=Ye,Me=We(16089);function Ge(Pt){const[ln,pn]=Ne.useState(Pt),Vt=(0,Ne.useRef)(null),Dt=(0,Ne.useRef)([]),cn=(0,Ne.useRef)(!1);Ne.useEffect(()=>(cn.current=!1,()=>{cn.current=!0,Me.Z.cancel(Vt.current),Vt.current=null}),[]);function xn(Nn){cn.current||(Vt.current===null&&(Dt.current=[],Vt.current=(0,Me.Z)(()=>{Vt.current=null,pn(Zn=>{let Ht=Zn;return Dt.current.forEach(En=>{Ht=En(Ht)}),Ht})})),Dt.current.push(Nn))}return[ln,xn]}function Ke(){const{itemRef:Pt}=Ne.useContext(ce.q3),ln=Ne.useRef({});function pn(Vt,Dt){const cn=Dt&&typeof Dt=="object"&&Dt.ref,xn=Vt.join("_");return(ln.current.name!==xn||ln.current.originRef!==cn)&&(ln.current.name=xn,ln.current.originRef=cn,ln.current.ref=(0,it.sQ)(Pt(Vt),cn)),ln.current.ref}return pn}var Ve=We(29194),Qe=We(34280),ht=We(2738),At=We(27382),pt=We(37028);const Ot=Pt=>{const{formItemCls:ln}=Pt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ln}-control`]:{display:"flex"}}}};var Kt=(0,we.b)(["Form","item-item"],(Pt,ln)=>{let{rootPrefixCls:pn}=ln;const Vt=Le(Pt,pn);return[Ot(Vt)]}),Rt=Pt=>{const{prefixCls:ln,status:pn,wrapperCol:Vt,children:Dt,errors:cn,warnings:xn,_internalItemRender:Nn,extra:Zn,help:Ht,fieldId:En,marginBottom:Kn,onErrorVisibleChanged:nr}=Pt,rn=`${ln}-item`,bn=Ne.useContext(ce.q3),nn=Vt||bn.wrapperCol||{},wn=oe()(`${rn}-control`,nn.className),gn=Ne.useMemo(()=>Object.assign({},bn),[bn]);delete gn.labelCol,delete gn.wrapperCol;const yn=Ne.createElement("div",{className:`${rn}-control-input`},Ne.createElement("div",{className:`${rn}-control-input-content`},Dt)),Ln=Ne.useMemo(()=>({prefixCls:ln,status:pn}),[ln,pn]),Tn=Kn!==null||cn.length||xn.length?Ne.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Ne.createElement(ce.Rk.Provider,{value:Ln},Ne.createElement(_e,{fieldId:En,errors:cn,warnings:xn,help:Ht,helpStatus:pn,className:`${rn}-explain-connected`,onVisibleChanged:nr})),!!Kn&&Ne.createElement("div",{style:{width:0,height:Kn}})):null,In={};En&&(In.id=`${En}_extra`);const Gn=Zn?Ne.createElement("div",Object.assign({},In,{className:`${rn}-extra`}),Zn):null,mr=Nn&&Nn.mark==="pro_table_render"&&Nn.render?Nn.render(Pt,{input:yn,errorList:Tn,extra:Gn}):Ne.createElement(Ne.Fragment,null,yn,Tn,Gn);return Ne.createElement(ce.q3.Provider,{value:gn},Ne.createElement(pt.Z,Object.assign({},nn,{className:wn}),mr),Ne.createElement(Kt,{prefixCls:ln}))},Xt=We(61485),sn=We(31724),Ft=We(9763),Qt=We(6848),en=function(Pt,ln){var pn={};for(var Vt in Pt)Object.prototype.hasOwnProperty.call(Pt,Vt)&&ln.indexOf(Vt)<0&&(pn[Vt]=Pt[Vt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Vt=Object.getOwnPropertySymbols(Pt);Dt<Vt.length;Dt++)ln.indexOf(Vt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,Vt[Dt])&&(pn[Vt[Dt]]=Pt[Vt[Dt]]);return pn};function on(Pt){return Pt?typeof Pt=="object"&&!Ne.isValidElement(Pt)?Pt:{title:Pt}:null}var Bn=Pt=>{let{prefixCls:ln,label:pn,htmlFor:Vt,labelCol:Dt,labelAlign:cn,colon:xn,required:Nn,requiredMark:Zn,tooltip:Ht}=Pt;var En;const[Kn]=(0,Ft.Z)("Form"),{vertical:nr,labelAlign:rn,labelCol:bn,labelWrap:nn,colon:wn}=Ne.useContext(ce.q3);if(!pn)return null;const gn=Dt||bn||{},yn=cn||rn,Ln=`${ln}-item-label`,Tn=oe()(Ln,yn==="left"&&`${Ln}-left`,gn.className,{[`${Ln}-wrap`]:!!nn});let In=pn;const Gn=xn===!0||wn!==!1&&xn!==!1;Gn&&!nr&&typeof pn=="string"&&pn.trim()!==""&&(In=pn.replace(/[:|:]\s*$/,""));const mn=on(Ht);if(mn){const{icon:Sn=Ne.createElement(Xt.Z,null)}=mn,Yn=en(mn,["icon"]),dr=Ne.createElement(Qt.Z,Object.assign({},Yn),Ne.cloneElement(Sn,{className:`${ln}-item-tooltip`,title:""}));In=Ne.createElement(Ne.Fragment,null,In,dr)}const Pr=Zn==="optional",Ur=typeof Zn=="function";Ur?In=Zn(In,{required:!!Nn}):Pr&&!Nn&&(In=Ne.createElement(Ne.Fragment,null,In,Ne.createElement("span",{className:`${ln}-item-optional`,title:""},(Kn==null?void 0:Kn.optional)||((En=sn.Z.Form)===null||En===void 0?void 0:En.optional))));const Br=oe()({[`${ln}-item-required`]:Nn,[`${ln}-item-required-mark-optional`]:Pr||Ur,[`${ln}-item-no-colon`]:!Gn});return Ne.createElement(pt.Z,Object.assign({},gn,{className:Tn}),Ne.createElement("label",{htmlFor:Vt,className:Br,title:typeof pn=="string"?pn:""},In))},tr=We(29679),er=We(19248),cr=We(96512),Ar=We(58617);const Dr={success:tr.Z,warning:cr.Z,error:er.Z,validating:Ar.Z};function Or(Pt){let{children:ln,errors:pn,warnings:Vt,hasFeedback:Dt,validateStatus:cn,prefixCls:xn,meta:Nn,noStyle:Zn}=Pt;const Ht=`${xn}-item`,{feedbackIcons:En}=Ne.useContext(ce.q3),Kn=xt(pn,Vt,Nn,null,!!Dt,cn),{isFormItemInput:nr,status:rn}=Ne.useContext(ce.aM),bn=Ne.useMemo(()=>{var nn;let wn;if(Dt){const Ln=Dt!==!0&&Dt.icons||En,Tn=Kn&&((nn=Ln==null?void 0:Ln({status:Kn,errors:pn,warnings:Vt}))===null||nn===void 0?void 0:nn[Kn]),In=Kn&&Dr[Kn];wn=Tn!==!1&&In?Ne.createElement("span",{className:oe()(`${Ht}-feedback-icon`,`${Ht}-feedback-icon-${Kn}`)},Tn||Ne.createElement(In,null)):null}let gn=!0,yn=Kn||"";return Zn&&(gn=nr,yn=(Kn!=null?Kn:rn)||""),{status:yn,errors:pn,warnings:Vt,hasFeedback:!!Dt,feedbackIcon:wn,isFormItemInput:gn}},[Kn,Dt,Zn,nr,rn]);return Ne.createElement(ce.aM.Provider,{value:bn},ln)}var $r=function(Pt,ln){var pn={};for(var Vt in Pt)Object.prototype.hasOwnProperty.call(Pt,Vt)&&ln.indexOf(Vt)<0&&(pn[Vt]=Pt[Vt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Vt=Object.getOwnPropertySymbols(Pt);Dt<Vt.length;Dt++)ln.indexOf(Vt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,Vt[Dt])&&(pn[Vt[Dt]]=Pt[Vt[Dt]]);return pn};function ai(Pt){const{prefixCls:ln,className:pn,rootClassName:Vt,style:Dt,help:cn,errors:xn,warnings:Nn,validateStatus:Zn,meta:Ht,hasFeedback:En,hidden:Kn,children:nr,fieldId:rn,required:bn,isRequired:nn,onSubItemMetaChange:wn}=Pt,gn=$r(Pt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),yn=`${ln}-item`,{requiredMark:Ln}=Ne.useContext(ce.q3),Tn=Ne.useRef(null),In=Pe(xn),Gn=Pe(Nn),mr=cn!=null,mn=!!(mr||xn.length||Nn.length),Pr=!!Tn.current&&(0,Ve.Z)(Tn.current),[Ur,Br]=Ne.useState(null);(0,Qe.Z)(()=>{if(mn&&Tn.current){const fr=getComputedStyle(Tn.current);Br(parseInt(fr.marginBottom,10))}},[mn,Pr]);const Sn=fr=>{fr||Br(null)},dr=function(){let fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ir=fr?In:Ht.errors,Zr=fr?Gn:Ht.warnings;return xt(Ir,Zr,Ht,"",!!En,Zn)}(),Fr=oe()(yn,pn,Vt,{[`${yn}-with-help`]:mr||In.length||Gn.length,[`${yn}-has-feedback`]:dr&&En,[`${yn}-has-success`]:dr==="success",[`${yn}-has-warning`]:dr==="warning",[`${yn}-has-error`]:dr==="error",[`${yn}-is-validating`]:dr==="validating",[`${yn}-hidden`]:Kn});return Ne.createElement("div",{className:Fr,style:Dt,ref:Tn},Ne.createElement(At.Z,Object.assign({className:`${yn}-row`},(0,ht.Z)(gn,["_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"])),Ne.createElement(Bn,Object.assign({htmlFor:rn},Pt,{requiredMark:Ln,required:bn!=null?bn:nn,prefixCls:ln})),Ne.createElement(Rt,Object.assign({},Pt,Ht,{errors:In,warnings:Gn,prefixCls:ln,status:dr,help:cn,marginBottom:Ur,onErrorVisibleChanged:Sn}),Ne.createElement(ce.qI.Provider,{value:wn},Ne.createElement(Or,{prefixCls:ln,meta:Ht,errors:Ht.errors,warnings:Ht.warnings,hasFeedback:En,validateStatus:dr},nr)))),!!Ur&&Ne.createElement("div",{className:`${yn}-margin-offset`,style:{marginBottom:-Ur}}))}const br="__SPLIT__",fi=null,Cr=Ne.memo(Pt=>{let{children:ln}=Pt;return ln},(Pt,ln)=>Pt.value===ln.value&&Pt.update===ln.update&&Pt.childProps.length===ln.childProps.length&&Pt.childProps.every((pn,Vt)=>pn===ln.childProps[Vt]));function at(Pt){return Pt!=null}function wi(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ui(Pt){const{name:ln,noStyle:pn,className:Vt,dependencies:Dt,prefixCls:cn,shouldUpdate:xn,rules:Nn,children:Zn,required:Ht,label:En,messageVariables:Kn,trigger:nr="onChange",validateTrigger:rn,hidden:bn,help:nn}=Pt,{getPrefixCls:wn}=Ne.useContext($e.E_),{name:gn}=Ne.useContext(ce.q3),yn=Ce(Zn),Ln=typeof yn=="function",Tn=Ne.useContext(ce.qI),{validateTrigger:In}=Ne.useContext(Ue.FieldContext),Gn=rn!==void 0?rn:In,mr=at(ln),mn=wn("form",cn),[Pr,Ur]=Fe(mn),Br=Ne.useContext(Ue.ListContext),Sn=Ne.useRef(),[Yn,dr]=Ge({}),[Fr,fr]=(0,bt.Z)(()=>wi()),Ir=On=>{const pi=Br==null?void 0:Br.getKey(On.name);if(fr(On.destroy?wi():On,!0),pn&&nn!==!1&&Tn){let Ni=On.name;if(On.destroy)Ni=Sn.current||Ni;else if(pi!==void 0){const[Qr,Xi]=pi;Ni=[Qr].concat((0,He.Z)(Xi)),Sn.current=Ni}Tn(On,Ni)}},Zr=(On,pi)=>{dr(Ni=>{const Qr=Object.assign({},Ni),Ti=[].concat((0,He.Z)(On.name.slice(0,-1)),(0,He.Z)(pi)).join(br);return On.destroy?delete Qr[Ti]:Qr[Ti]=On,Qr})},[zr,Er]=Ne.useMemo(()=>{const On=(0,He.Z)(Fr.errors),pi=(0,He.Z)(Fr.warnings);return Object.values(Yn).forEach(Ni=>{On.push.apply(On,(0,He.Z)(Ni.errors||[])),pi.push.apply(pi,(0,He.Z)(Ni.warnings||[]))}),[On,pi]},[Yn,Fr.errors,Fr.warnings]),Vr=Ke();function Fn(On,pi,Ni){return pn&&!bn?Ne.createElement(Or,{prefixCls:mn,hasFeedback:Pt.hasFeedback,validateStatus:Pt.validateStatus,meta:Fr,errors:zr,warnings:Er,noStyle:!0},On):Ne.createElement(ai,Object.assign({key:"row"},Pt,{className:oe()(Vt,Ur),prefixCls:mn,fieldId:pi,isRequired:Ni,errors:zr,warnings:Er,meta:Fr,onSubItemMetaChange:Zr}),On)}if(!mr&&!Ln&&!Dt)return Pr(Fn(yn));let Mi={};return typeof En=="string"?Mi.label=En:ln&&(Mi.label=String(ln)),Kn&&(Mi=Object.assign(Object.assign({},Mi),Kn)),Pr(Ne.createElement(Ue.Field,Object.assign({},Pt,{messageVariables:Mi,trigger:nr,validateTrigger:Gn,onMetaChange:Ir}),(On,pi,Ni)=>{const Qr=dt(ln).length&&pi?pi.name:[],Xi=St(Qr,gn),Ti=Ht!==void 0?Ht:!!(Nn&&Nn.some(bi=>{if(bi&&typeof bi=="object"&&bi.required&&!bi.warningOnly)return!0;if(typeof bi=="function"){const Di=bi(Ni);return Di&&Di.required&&!Di.warningOnly}return!1})),Rr=Object.assign({},On);let Wr=null;if(Array.isArray(yn)&&mr)Wr=yn;else if(!(Ln&&(!(xn||Dt)||mr))){if(!(Dt&&!Ln&&!mr))if((0,nt.l$)(yn)){const bi=Object.assign(Object.assign({},yn.props),Rr);if(bi.id||(bi.id=Xi),nn||zr.length>0||Er.length>0||Pt.extra){const Lt=[];(nn||zr.length>0)&&Lt.push(`${Xi}_help`),Pt.extra&&Lt.push(`${Xi}_extra`),bi["aria-describedby"]=Lt.join(" ")}zr.length>0&&(bi["aria-invalid"]="true"),Ti&&(bi["aria-required"]="true"),(0,it.Yr)(yn)&&(bi.ref=Vr(Qr,yn)),new Set([].concat((0,He.Z)(dt(nr)),(0,He.Z)(dt(Gn)))).forEach(Lt=>{bi[Lt]=function(){for(var Li,so,Pi,wo,po,Eo=arguments.length,yi=new Array(Eo),si=0;si<Eo;si++)yi[si]=arguments[si];(Pi=Rr[Lt])===null||Pi===void 0||(Li=Pi).call.apply(Li,[Rr].concat(yi)),(po=(wo=yn.props)[Lt])===null||po===void 0||(so=po).call.apply(so,[wo].concat(yi))}});const pr=[bi["aria-required"],bi["aria-invalid"],bi["aria-describedby"]];Wr=Ne.createElement(Cr,{value:Rr[Pt.valuePropName||"value"],update:yn,childProps:pr},(0,nt.Tm)(yn,bi))}else Ln&&(xn||Dt)&&!mr?Wr=yn(Ni):Wr=yn}return Fn(Wr,Xi,Ti)}))}const Dn=ui;Dn.useStatus=Je;var ur=Dn,or=function(Pt,ln){var pn={};for(var Vt in Pt)Object.prototype.hasOwnProperty.call(Pt,Vt)&&ln.indexOf(Vt)<0&&(pn[Vt]=Pt[Vt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Vt=Object.getOwnPropertySymbols(Pt);Dt<Vt.length;Dt++)ln.indexOf(Vt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,Vt[Dt])&&(pn[Vt[Dt]]=Pt[Vt[Dt]]);return pn},Hn=Pt=>{var{prefixCls:ln,children:pn}=Pt,Vt=or(Pt,["prefixCls","children"]);const{getPrefixCls:Dt}=Ne.useContext($e.E_),cn=Dt("form",ln),xn=Ne.useMemo(()=>({prefixCls:cn,status:"error"}),[cn]);return Ne.createElement(Ue.List,Object.assign({},Vt),(Nn,Zn,Ht)=>Ne.createElement(ce.Rk.Provider,{value:xn},pn(Nn.map(En=>Object.assign(Object.assign({},En),{fieldKey:En.key})),Zn,{errors:Ht.errors,warnings:Ht.warnings})))};function Jn(){const{form:Pt}=(0,Ne.useContext)(ce.q3);return Pt}const _t=wt;_t.Item=ur,_t.List=Hn,_t.ErrorList=_e,_t.useForm=gt,_t.useFormInstance=Jn,_t.useWatch=Ue.useWatch,_t.Provider=ce.RV,_t.create=()=>{};var Gt=_t},8628:function(kn,fn,We){"use strict";var He=We(59301),mt=We(34280),oe=We(56762),Ze=We(69507);function Ne(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ce=(0,He.useRef)({}),Pe=(0,oe.Z)(),Ae=(0,Ze.ZP)();return(0,mt.Z)(()=>{const ye=Ae.subscribe(De=>{ce.current=De,ge&&Pe()});return()=>Ae.unsubscribe(ye)},[]),ce.current}fn.Z=Ne},9432:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return le},n:function(){return ae}});var He=We(19248),mt=We(92310),oe=We.n(mt),Ze=We(93681),Ne=We(8654),ge=We(59301),ce=We(19080),Pe=We(36355),Ae=We(1684),ye=We(19716),De=We(32441),me=We(33234),we=We(59412),fe=We(9937);function z(ue){return!!(ue.prefix||ue.suffix||ue.allowClear)}var ee=function(ue,pe){var Ee={};for(var be in ue)Object.prototype.hasOwnProperty.call(ue,be)&&pe.indexOf(be)<0&&(Ee[be]=ue[be]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,be=Object.getOwnPropertySymbols(ue);Ie<be.length;Ie++)pe.indexOf(be[Ie])<0&&Object.prototype.propertyIsEnumerable.call(ue,be[Ie])&&(Ee[be[Ie]]=ue[be[Ie]]);return Ee};function ae(ue,pe){if(!ue)return;ue.focus(pe);const{cursor:Ee}=pe||{};if(Ee){const be=ue.value.length;switch(Ee){case"start":ue.setSelectionRange(0,0);break;case"end":ue.setSelectionRange(be,be);break;default:ue.setSelectionRange(0,be);break}}}var le=(0,ge.forwardRef)((ue,pe)=>{var Ee;const{prefixCls:be,bordered:Ie=!0,status:Le,size:Fe,disabled:Oe,onBlur:je,onFocus:ze,suffix:_e,allowClear:Ue,addonAfter:$e,addonBefore:et,className:lt,style:ut,styles:yt,rootClassName:qe,onChange:ot,classNames:dt}=ue,St=ee(ue,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:xt,direction:ft,input:gt}=ge.useContext(Pe.E_),vt=xt("input",be),Tt=(0,ge.useRef)(null),[Et,Zt]=(0,fe.ZP)(vt),{compactSize:wt,compactItemClassnames:bt}=(0,me.ri)(vt,ft),it=(0,ye.Z)(Kt=>{var jt;return(jt=Fe!=null?Fe:wt)!==null&&jt!==void 0?jt:Kt}),nt=ge.useContext(Ae.Z),xe=Oe!=null?Oe:nt,{status:Ce,hasFeedback:Ye,feedbackIcon:Je}=(0,ge.useContext)(De.aM),Me=(0,ce.F)(Ce,Le),Ge=z(ue)||!!Ye,Ke=(0,ge.useRef)(Ge);(0,ge.useEffect)(()=>{var Kt;Ge&&Ke.current,Ke.current=Ge},[Ge]);const Ve=(0,we.Z)(Tt,!0),Qe=Kt=>{Ve(),je==null||je(Kt)},ht=Kt=>{Ve(),ze==null||ze(Kt)},At=Kt=>{Ve(),ot==null||ot(Kt)},pt=(Ye||_e)&&ge.createElement(ge.Fragment,null,_e,Ye&&Je);let Ot;return typeof Ue=="object"&&(Ue!=null&&Ue.clearIcon)?Ot=Ue:Ue&&(Ot={clearIcon:ge.createElement(He.Z,null)}),Et(ge.createElement(Ze.default,Object.assign({ref:(0,Ne.sQ)(pe,Tt),prefixCls:vt,autoComplete:gt==null?void 0:gt.autoComplete},St,{disabled:xe,onBlur:Qe,onFocus:ht,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),ut),styles:Object.assign(Object.assign({},gt==null?void 0:gt.styles),yt),suffix:pt,allowClear:Ot,className:oe()(lt,qe,bt,gt==null?void 0:gt.className),onChange:At,addonAfter:$e&&ge.createElement(me.BR,null,ge.createElement(De.Ux,{override:!0,status:!0},$e)),addonBefore:et&&ge.createElement(me.BR,null,ge.createElement(De.Ux,{override:!0,status:!0},et)),classNames:Object.assign(Object.assign(Object.assign({},dt),gt==null?void 0:gt.classNames),{input:oe()({[`${vt}-sm`]:it==="small",[`${vt}-lg`]:it==="large",[`${vt}-rtl`]:ft==="rtl",[`${vt}-borderless`]:!Ie},!Ge&&(0,ce.Z)(vt,Me),dt==null?void 0:dt.input,(Ee=gt==null?void 0:gt.classNames)===null||Ee===void 0?void 0:Ee.input,Zt)}),classes:{affixWrapper:oe()({[`${vt}-affix-wrapper-sm`]:it==="small",[`${vt}-affix-wrapper-lg`]:it==="large",[`${vt}-affix-wrapper-rtl`]:ft==="rtl",[`${vt}-affix-wrapper-borderless`]:!Ie},(0,ce.Z)(`${vt}-affix-wrapper`,Me,Ye),Zt),wrapper:oe()({[`${vt}-group-rtl`]:ft==="rtl"},Zt),group:oe()({[`${vt}-group-wrapper-sm`]:it==="small",[`${vt}-group-wrapper-lg`]:it==="large",[`${vt}-group-wrapper-rtl`]:ft==="rtl",[`${vt}-group-wrapper-disabled`]:xe},(0,ce.Z)(`${vt}-group-wrapper`,Me,Ye),Zt)}})))})},1643:function(kn,fn,We){"use strict";var He=We(19248),mt=We(92310),oe=We.n(mt),Ze=We(9296),Ne=We(59301),ge=We(19080),ce=We(36355),Pe=We(1684),Ae=We(19716),ye=We(32441),De=We(9432),me=We(9937),we=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,Ne.forwardRef)((z,ee)=>{const{prefixCls:ae,bordered:re=!0,size:le,disabled:ue,status:pe,allowClear:Ee,showCount:be,classNames:Ie,rootClassName:Le,className:Fe}=z,Oe=we(z,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:je,direction:ze}=Ne.useContext(ce.E_),_e=(0,Ae.Z)(le),Ue=Ne.useContext(Pe.Z),$e=ue!=null?ue:Ue,{status:et,hasFeedback:lt,feedbackIcon:ut}=Ne.useContext(ye.aM),yt=(0,ge.F)(et,pe),qe=Ne.useRef(null);Ne.useImperativeHandle(ee,()=>{var ft;return{resizableTextArea:(ft=qe.current)===null||ft===void 0?void 0:ft.resizableTextArea,focus:gt=>{var vt,Tt;(0,De.n)((Tt=(vt=qe.current)===null||vt===void 0?void 0:vt.resizableTextArea)===null||Tt===void 0?void 0:Tt.textArea,gt)},blur:()=>{var gt;return(gt=qe.current)===null||gt===void 0?void 0:gt.blur()}}});const ot=je("input",ae);let dt;typeof Ee=="object"&&(Ee!=null&&Ee.clearIcon)?dt=Ee:Ee&&(dt={clearIcon:Ne.createElement(He.Z,null)});const[St,xt]=(0,me.ZP)(ot);return St(Ne.createElement(Ze.default,Object.assign({},Oe,{disabled:$e,allowClear:dt,className:oe()(Fe,Le),classes:{affixWrapper:oe()(`${ot}-textarea-affix-wrapper`,{[`${ot}-affix-wrapper-rtl`]:ze==="rtl",[`${ot}-affix-wrapper-borderless`]:!re,[`${ot}-affix-wrapper-sm`]:_e==="small",[`${ot}-affix-wrapper-lg`]:_e==="large",[`${ot}-textarea-show-count`]:be},(0,ge.Z)(`${ot}-affix-wrapper`,yt),xt)},classNames:Object.assign(Object.assign({},Ie),{textarea:oe()({[`${ot}-borderless`]:!re,[`${ot}-sm`]:_e==="small",[`${ot}-lg`]:_e==="large"},(0,ge.Z)(ot,yt),xt,Ie==null?void 0:Ie.textarea)}),prefixCls:ot,suffix:lt&&Ne.createElement("span",{className:`${ot}-textarea-suffix`},ut),showCount:be,ref:qe})))});fn.Z=fe},59412:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return mt}});var He=We(59301);function mt(oe,Ze){const Ne=(0,He.useRef)([]),ge=()=>{Ne.current.push(setTimeout(()=>{var ce,Pe,Ae,ye;!((ce=oe.current)===null||ce===void 0)&&ce.input&&((Pe=oe.current)===null||Pe===void 0?void 0:Pe.input.getAttribute("type"))==="password"&&(!((Ae=oe.current)===null||Ae===void 0)&&Ae.input.hasAttribute("value"))&&((ye=oe.current)===null||ye===void 0||ye.input.removeAttribute("value"))}))};return(0,He.useEffect)(()=>(Ze&&ge(),()=>Ne.current.forEach(ce=>{ce&&clearTimeout(ce)})),[]),ge}},92832:function(kn,fn,We){"use strict";We.d(fn,{default:function(){return _e}});var He=We(92310),mt=We.n(He),oe=We(59301),Ze=We(36355),Ne=We(32441),ge=We(9937),Pe=Ue=>{const{getPrefixCls:$e,direction:et}=(0,oe.useContext)(Ze.E_),{prefixCls:lt,className:ut}=Ue,yt=$e("input-group",lt),qe=$e("input"),[ot,dt]=(0,ge.ZP)(qe),St=mt()(yt,{[`${yt}-lg`]:Ue.size==="large",[`${yt}-sm`]:Ue.size==="small",[`${yt}-compact`]:Ue.compact,[`${yt}-rtl`]:et==="rtl"},dt,ut),xt=(0,oe.useContext)(Ne.aM),ft=(0,oe.useMemo)(()=>Object.assign(Object.assign({},xt),{isFormItemInput:!1}),[xt]);return ot(oe.createElement("span",{className:St,style:Ue.style,onMouseEnter:Ue.onMouseEnter,onMouseLeave:Ue.onMouseLeave,onFocus:Ue.onFocus,onBlur:Ue.onBlur},oe.createElement(Ne.aM.Provider,{value:ft},Ue.children)))},Ae=We(9432),ye=We(73331),De=We(15277),me=We(2738),we=We(8654),fe=We(59412),z=function(Ue,$e){var et={};for(var lt in Ue)Object.prototype.hasOwnProperty.call(Ue,lt)&&$e.indexOf(lt)<0&&(et[lt]=Ue[lt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,lt=Object.getOwnPropertySymbols(Ue);ut<lt.length;ut++)$e.indexOf(lt[ut])<0&&Object.prototype.propertyIsEnumerable.call(Ue,lt[ut])&&(et[lt[ut]]=Ue[lt[ut]]);return et};const ee=Ue=>Ue?oe.createElement(De.Z,null):oe.createElement(ye.Z,null),ae={click:"onClick",hover:"onMouseOver"};var le=oe.forwardRef((Ue,$e)=>{const{visibilityToggle:et=!0}=Ue,lt=typeof et=="object"&&et.visible!==void 0,[ut,yt]=(0,oe.useState)(()=>lt?et.visible:!1),qe=(0,oe.useRef)(null);oe.useEffect(()=>{lt&&yt(et.visible)},[lt,et]);const ot=(0,fe.Z)(qe),dt=()=>{const{disabled:xe}=Ue;xe||(ut&&ot(),yt(Ce=>{var Ye;const Je=!Ce;return typeof et=="object"&&((Ye=et.onVisibleChange)===null||Ye===void 0||Ye.call(et,Je)),Je}))},St=xe=>{const{action:Ce="click",iconRender:Ye=ee}=Ue,Je=ae[Ce]||"",Me=Ye(ut),Ge={[Je]:dt,className:`${xe}-icon`,key:"passwordIcon",onMouseDown:Ke=>{Ke.preventDefault()},onMouseUp:Ke=>{Ke.preventDefault()}};return oe.cloneElement(oe.isValidElement(Me)?Me:oe.createElement("span",null,Me),Ge)},{className:xt,prefixCls:ft,inputPrefixCls:gt,size:vt}=Ue,Tt=z(Ue,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Et}=oe.useContext(Ze.E_),Zt=Et("input",gt),wt=Et("input-password",ft),bt=et&&St(wt),it=mt()(wt,xt,{[`${wt}-${vt}`]:!!vt}),nt=Object.assign(Object.assign({},(0,me.Z)(Tt,["suffix","iconRender","visibilityToggle"])),{type:ut?"text":"password",className:it,prefixCls:Zt,suffix:bt});return vt&&(nt.size=vt),oe.createElement(Ae.Z,Object.assign({ref:(0,we.sQ)($e,qe)},nt))}),ue=We(47472),pe=We(92343),Ee=We(3113),be=We(19716),Ie=We(33234),Le=function(Ue,$e){var et={};for(var lt in Ue)Object.prototype.hasOwnProperty.call(Ue,lt)&&$e.indexOf(lt)<0&&(et[lt]=Ue[lt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,lt=Object.getOwnPropertySymbols(Ue);ut<lt.length;ut++)$e.indexOf(lt[ut])<0&&Object.prototype.propertyIsEnumerable.call(Ue,lt[ut])&&(et[lt[ut]]=Ue[lt[ut]]);return et},Oe=oe.forwardRef((Ue,$e)=>{const{prefixCls:et,inputPrefixCls:lt,className:ut,size:yt,suffix:qe,enterButton:ot=!1,addonAfter:dt,loading:St,disabled:xt,onSearch:ft,onChange:gt,onCompositionStart:vt,onCompositionEnd:Tt}=Ue,Et=Le(Ue,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Zt,direction:wt}=oe.useContext(Ze.E_),bt=oe.useRef(!1),it=Zt("input-search",et),nt=Zt("input",lt),{compactSize:xe}=(0,Ie.ri)(it,wt),Ce=(0,be.Z)(Rt=>{var Xt;return(Xt=yt!=null?yt:xe)!==null&&Xt!==void 0?Xt:Rt}),Ye=oe.useRef(null),Je=Rt=>{Rt&&Rt.target&&Rt.type==="click"&&ft&&ft(Rt.target.value,Rt,{source:"clear"}),gt&>(Rt)},Me=Rt=>{var Xt;document.activeElement===((Xt=Ye.current)===null||Xt===void 0?void 0:Xt.input)&&Rt.preventDefault()},Ge=Rt=>{var Xt,sn;ft&&ft((sn=(Xt=Ye.current)===null||Xt===void 0?void 0:Xt.input)===null||sn===void 0?void 0:sn.value,Rt,{source:"input"})},Ke=Rt=>{bt.current||St||Ge(Rt)},Ve=typeof ot=="boolean"?oe.createElement(ue.Z,null):null,Qe=`${it}-button`;let ht;const At=ot||{},pt=At.type&&At.type.__ANT_BUTTON===!0;pt||At.type==="button"?ht=(0,pe.Tm)(At,Object.assign({onMouseDown:Me,onClick:Rt=>{var Xt,sn;(sn=(Xt=At==null?void 0:At.props)===null||Xt===void 0?void 0:Xt.onClick)===null||sn===void 0||sn.call(Xt,Rt),Ge(Rt)},key:"enterButton"},pt?{className:Qe,size:Ce}:{})):ht=oe.createElement(Ee.ZP,{className:Qe,type:ot?"primary":void 0,size:Ce,disabled:xt,key:"enterButton",onMouseDown:Me,onClick:Ge,loading:St,icon:Ve},ot),dt&&(ht=[ht,(0,pe.Tm)(dt,{key:"addonAfter"})]);const Ot=mt()(it,{[`${it}-rtl`]:wt==="rtl",[`${it}-${Ce}`]:!!Ce,[`${it}-with-button`]:!!ot},ut),Kt=Rt=>{bt.current=!0,vt==null||vt(Rt)},jt=Rt=>{bt.current=!1,Tt==null||Tt(Rt)};return oe.createElement(Ae.Z,Object.assign({ref:(0,we.sQ)(Ye,$e),onPressEnter:Ke},Et,{size:Ce,onCompositionStart:Kt,onCompositionEnd:jt,prefixCls:nt,addonAfter:ht,suffix:qe,onChange:Je,className:Ot,disabled:xt}))}),je=We(1643);const ze=Ae.Z;ze.Group=Pe,ze.Search=Oe,ze.TextArea=je.Z,ze.Password=le;var _e=ze},45818:function(kn,fn,We){"use strict";We.d(fn,{D:function(){return ue},Z:function(){return be}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(Le,Fe){return mt.createElement(Ne.Z,(0,He.Z)({},Le,{ref:Fe,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce,Ae=We(33853),ye=We(38819),De=We(92310),me=We.n(De),we=We(2738),z=Ie=>!isNaN(parseFloat(Ie))&&isFinite(Ie),ee=We(36355),ae=We(84966),re=function(Ie,Le){var Fe={};for(var Oe in Ie)Object.prototype.hasOwnProperty.call(Ie,Oe)&&Le.indexOf(Oe)<0&&(Fe[Oe]=Ie[Oe]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Oe=Object.getOwnPropertySymbols(Ie);je<Oe.length;je++)Le.indexOf(Oe[je])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Oe[je])&&(Fe[Oe[je]]=Ie[Oe[je]]);return Fe};const le={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ue=mt.createContext({}),pe=(()=>{let Ie=0;return function(){let Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ie+=1,`${Le}${Ie}`}})();var be=mt.forwardRef((Ie,Le)=>{const{prefixCls:Fe,className:Oe,trigger:je,children:ze,defaultCollapsed:_e=!1,theme:Ue="dark",style:$e={},collapsible:et=!1,reverseArrow:lt=!1,width:ut=200,collapsedWidth:yt=80,zeroWidthTriggerStyle:qe,breakpoint:ot,onCollapse:dt,onBreakpoint:St}=Ie,xt=re(Ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ft}=(0,mt.useContext)(ae.Gs),[gt,vt]=(0,mt.useState)("collapsed"in Ie?Ie.collapsed:_e),[Tt,Et]=(0,mt.useState)(!1);(0,mt.useEffect)(()=>{"collapsed"in Ie&&vt(Ie.collapsed)},[Ie.collapsed]);const Zt=(Ce,Ye)=>{"collapsed"in Ie||vt(Ce),dt==null||dt(Ce,Ye)},wt=(0,mt.useRef)();wt.current=Ce=>{Et(Ce.matches),St==null||St(Ce.matches),gt!==Ce.matches&&Zt(Ce.matches,"responsive")},(0,mt.useEffect)(()=>{function Ce(Je){return wt.current(Je)}let Ye;if(typeof window!="undefined"){const{matchMedia:Je}=window;if(Je&&ot&&ot in le){Ye=Je(`(max-width: ${le[ot]})`);try{Ye.addEventListener("change",Ce)}catch(Me){Ye.addListener(Ce)}Ce(Ye)}}return()=>{try{Ye==null||Ye.removeEventListener("change",Ce)}catch(Je){Ye==null||Ye.removeListener(Ce)}}},[ot]),(0,mt.useEffect)(()=>{const Ce=pe("ant-sider-");return ft.addSider(Ce),()=>ft.removeSider(Ce)},[]);const bt=()=>{Zt(!gt,"clickTrigger")},{getPrefixCls:it}=(0,mt.useContext)(ee.E_),nt=()=>{const Ce=it("layout-sider",Fe),Ye=(0,we.Z)(xt,["collapsed"]),Je=gt?yt:ut,Me=z(Je)?`${Je}px`:String(Je),Ge=parseFloat(String(yt||0))===0?mt.createElement("span",{onClick:bt,className:me()(`${Ce}-zero-width-trigger`,`${Ce}-zero-width-trigger-${lt?"right":"left"}`),style:qe},je||mt.createElement(Pe,null)):null,Qe={expanded:lt?mt.createElement(ye.Z,null):mt.createElement(Ae.Z,null),collapsed:lt?mt.createElement(Ae.Z,null):mt.createElement(ye.Z,null)}[gt?"collapsed":"expanded"],ht=je!==null?Ge||mt.createElement("div",{className:`${Ce}-trigger`,onClick:bt,style:{width:Me}},je||Qe):null,At=Object.assign(Object.assign({},$e),{flex:`0 0 ${Me}`,maxWidth:Me,minWidth:Me,width:Me}),pt=me()(Ce,`${Ce}-${Ue}`,{[`${Ce}-collapsed`]:!!gt,[`${Ce}-has-trigger`]:et&&je!==null&&!Ge,[`${Ce}-below`]:!!Tt,[`${Ce}-zero-width`]:parseFloat(Me)===0},Oe);return mt.createElement("aside",Object.assign({className:pt},Ye,{style:At,ref:Le}),mt.createElement("div",{className:`${Ce}-children`},ze),et||Tt&&Ge?ht:null)},xe=mt.useMemo(()=>({siderCollapsed:gt}),[gt]);return mt.createElement(ue.Provider,{value:xe},nt())})},84966:function(kn,fn,We){"use strict";We.d(fn,{VY:function(){return ue},$_:function(){return le},h4:function(){return re},Gs:function(){return we},ZP:function(){return pe}});var He=We(26407),mt=We(92310),oe=We.n(mt),Ze=We(2738),Ne=We(59301),ge=We(36355),ce=We(83116),Ae=Ee=>{const{componentCls:be,bodyBg:Ie,lightSiderBg:Le,lightTriggerBg:Fe,lightTriggerColor:Oe}=Ee;return{[`${be}-sider-light`]:{background:Le,[`${be}-sider-trigger`]:{color:Oe,background:Fe},[`${be}-sider-zero-width-trigger`]:{color:Oe,background:Fe,border:`1px solid ${Ie}`,borderInlineStart:0}}}};const ye=Ee=>{const{antCls:be,componentCls:Ie,colorText:Le,triggerColor:Fe,footerBg:Oe,triggerBg:je,headerHeight:ze,headerPadding:_e,headerColor:Ue,footerPadding:$e,triggerHeight:et,zeroTriggerHeight:lt,zeroTriggerWidth:ut,motionDurationMid:yt,motionDurationSlow:qe,fontSize:ot,borderRadius:dt,bodyBg:St,headerBg:xt,siderBg:ft}=Ee;return{[Ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:St,"&, *":{boxSizing:"border-box"},[`&${Ie}-has-sider`]:{flexDirection:"row",[`> ${Ie}, > ${Ie}-content`]:{width:0}},[`${Ie}-header, &${Ie}-footer`]:{flex:"0 0 auto"},[`${Ie}-sider`]:{position:"relative",minWidth:0,background:ft,transition:`all ${yt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${be}-menu${be}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:et},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:et,color:Fe,lineHeight:`${et}px`,textAlign:"center",background:je,cursor:"pointer",transition:`all ${yt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ze,insetInlineEnd:-ut,zIndex:1,width:ut,height:lt,color:Fe,fontSize:Ee.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ft,borderStartStartRadius:0,borderStartEndRadius:dt,borderEndEndRadius:dt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${qe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${qe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ut,borderStartStartRadius:dt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:dt}}}}},Ae(Ee)),{"&-rtl":{direction:"rtl"}}),[`${Ie}-header`]:{height:ze,padding:_e,color:Ue,lineHeight:`${ze}px`,background:xt,[`${be}-menu`]:{lineHeight:"inherit"}},[`${Ie}-footer`]:{padding:$e,color:Le,fontSize:ot,background:Oe},[`${Ie}-content`]:{flex:"auto",minHeight:0}}};var De=(0,ce.Z)("Layout",Ee=>[ye(Ee)],Ee=>{const{colorBgLayout:be,controlHeight:Ie,controlHeightLG:Le,colorText:Fe,controlHeightSM:Oe,marginXXS:je,colorTextLightSolid:ze,colorBgContainer:_e}=Ee,Ue=Le*1.25;return{colorBgHeader:"#001529",colorBgBody:be,colorBgTrigger:"#002140",bodyBg:be,headerBg:"#001529",headerHeight:Ie*2,headerPadding:`0 ${Ue}px`,headerColor:Fe,footerPadding:`${Oe}px ${Ue}px`,footerBg:be,siderBg:"#001529",triggerHeight:Le+je*2,triggerBg:"#002140",triggerColor:ze,zeroTriggerWidth:Le,zeroTriggerHeight:Le,lightSiderBg:_e,lightTriggerBg:_e,lightTriggerColor:Fe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(Ee,be){var Ie={};for(var Le in Ee)Object.prototype.hasOwnProperty.call(Ee,Le)&&be.indexOf(Le)<0&&(Ie[Le]=Ee[Le]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Le=Object.getOwnPropertySymbols(Ee);Fe<Le.length;Fe++)be.indexOf(Le[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Le[Fe])&&(Ie[Le[Fe]]=Ee[Le[Fe]]);return Ie};const we=Ne.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function fe(Ee){let{suffixCls:be,tagName:Ie,displayName:Le}=Ee;return Fe=>Ne.forwardRef((je,ze)=>Ne.createElement(Fe,Object.assign({ref:ze,suffixCls:be,tagName:Ie},je)))}const z=Ne.forwardRef((Ee,be)=>{const{prefixCls:Ie,suffixCls:Le,className:Fe,tagName:Oe}=Ee,je=me(Ee,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ze}=Ne.useContext(ge.E_),_e=ze("layout",Ie),[Ue,$e]=De(_e),et=Le?`${_e}-${Le}`:_e;return Ue(Ne.createElement(Oe,Object.assign({className:oe()(Ie||et,Fe,$e),ref:be},je)))}),ee=Ne.forwardRef((Ee,be)=>{const{direction:Ie}=Ne.useContext(ge.E_),[Le,Fe]=Ne.useState([]),{prefixCls:Oe,className:je,rootClassName:ze,children:_e,hasSider:Ue,tagName:$e,style:et}=Ee,lt=me(Ee,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ut=(0,Ze.Z)(lt,["suffixCls"]),{getPrefixCls:yt,layout:qe}=Ne.useContext(ge.E_),ot=yt("layout",Oe),[dt,St]=De(ot),xt=oe()(ot,{[`${ot}-has-sider`]:typeof Ue=="boolean"?Ue:Le.length>0,[`${ot}-rtl`]:Ie==="rtl"},qe==null?void 0:qe.className,je,ze,St),ft=Ne.useMemo(()=>({siderHook:{addSider:gt=>{Fe(vt=>[].concat((0,He.Z)(vt),[gt]))},removeSider:gt=>{Fe(vt=>vt.filter(Tt=>Tt!==gt))}}}),[]);return dt(Ne.createElement(we.Provider,{value:ft},Ne.createElement($e,Object.assign({ref:be,className:xt,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),et)},ut),_e)))}),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(kn,fn,We){"use strict";We.d(fn,{J:function(){return ge}});var He=We(59301),mt=We(33234),oe=We(70425),Ze=function(ce,Pe){var Ae={};for(var ye in ce)Object.prototype.hasOwnProperty.call(ce,ye)&&Pe.indexOf(ye)<0&&(Ae[ye]=ce[ye]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ye=Object.getOwnPropertySymbols(ce);De<ye.length;De++)Pe.indexOf(ye[De])<0&&Object.prototype.propertyIsEnumerable.call(ce,ye[De])&&(Ae[ye[De]]=ce[ye[De]]);return Ae};const Ne=He.createContext(null),ge=He.forwardRef((ce,Pe)=>{const{children:Ae}=ce,ye=Ze(ce,["children"]),De=He.useContext(Ne),me=He.useMemo(()=>Object.assign(Object.assign({},De),ye),[De,ye.prefixCls,ye.mode,ye.selectable]);return He.createElement(Ne.Provider,{value:me},He.createElement(mt.BR,null,(0,oe.supportNodeRef)(Ae)?He.cloneElement(Ae,{ref:Pe}):Ae))});fn.Z=Ne},20834:function(kn,fn,We){"use strict";We.d(fn,{default:function(){return xe}});var He=We(15285),mt=We(59301),oe=We(45818),Ze=We(92310),Ne=We.n(Ze),ge=We(36355),ce=function(Ce,Ye){var Je={};for(var Me in Ce)Object.prototype.hasOwnProperty.call(Ce,Me)&&Ye.indexOf(Me)<0&&(Je[Me]=Ce[Me]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Me=Object.getOwnPropertySymbols(Ce);Ge<Me.length;Ge++)Ye.indexOf(Me[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Me[Ge])&&(Je[Me[Ge]]=Ce[Me[Ge]]);return Je},Ae=Ce=>{const{prefixCls:Ye,className:Je,dashed:Me}=Ce,Ge=ce(Ce,["prefixCls","className","dashed"]),{getPrefixCls:Ke}=mt.useContext(ge.E_),Ve=Ke("menu",Ye),Qe=Ne()({[`${Ve}-item-divider-dashed`]:!!Me},Je);return mt.createElement(He.iz,Object.assign({className:Qe},Ge))},ye=We(11592),De=We(2738),me=We(6848),we=We(92343),z=(0,mt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=Ce=>{var Ye;const{className:Je,children:Me,icon:Ge,title:Ke,danger:Ve}=Ce,{prefixCls:Qe,firstLevel:ht,direction:At,disableMenuItemTitleTooltip:pt,inlineCollapsed:Ot}=mt.useContext(z),Kt=Qt=>{const en=mt.createElement("span",{className:`${Qe}-title-content`},Me);return(!Ge||(0,we.l$)(Me)&&Me.type==="span")&&Me&&Qt&&ht&&typeof Me=="string"?mt.createElement("div",{className:`${Qe}-inline-collapsed-noicon`},Me.charAt(0)):en},{siderCollapsed:jt}=mt.useContext(oe.D);let Rt=Ke;typeof Ke=="undefined"?Rt=ht?Me:"":Ke===!1&&(Rt="");const Xt={title:Rt};!jt&&!Ot&&(Xt.title=null,Xt.open=!1);const sn=(0,ye.Z)(Me).length;let Ft=mt.createElement(He.ck,Object.assign({},(0,De.Z)(Ce,["title","icon","danger"]),{className:Ne()({[`${Qe}-item-danger`]:Ve,[`${Qe}-item-only-child`]:(Ge?sn+1:sn)===1},Je),title:typeof Ke=="string"?Ke:void 0}),(0,we.Tm)(Ge,{className:Ne()((0,we.l$)(Ge)?(Ye=Ge.props)===null||Ye===void 0?void 0:Ye.className:"",`${Qe}-item-icon`)}),Kt(Ot));return pt||(Ft=mt.createElement(me.Z,Object.assign({},Xt,{placement:At==="rtl"?"left":"right",overlayClassName:`${Qe}-inline-collapsed-tooltip`}),Ft)),Ft},le=Ce=>{var Ye;const{popupClassName:Je,icon:Me,title:Ge,theme:Ke}=Ce,Ve=mt.useContext(z),{prefixCls:Qe,inlineCollapsed:ht,theme:At}=Ve,pt=(0,He.Xl)();let Ot;if(!Me)Ot=ht&&!pt.length&&Ge&&typeof Ge=="string"?mt.createElement("div",{className:`${Qe}-inline-collapsed-noicon`},Ge.charAt(0)):mt.createElement("span",{className:`${Qe}-title-content`},Ge);else{const jt=(0,we.l$)(Ge)&&Ge.type==="span";Ot=mt.createElement(mt.Fragment,null,(0,we.Tm)(Me,{className:Ne()((0,we.l$)(Me)?(Ye=Me.props)===null||Ye===void 0?void 0:Ye.className:"",`${Qe}-item-icon`)}),jt?Ge:mt.createElement("span",{className:`${Qe}-title-content`},Ge))}const Kt=mt.useMemo(()=>Object.assign(Object.assign({},Ve),{firstLevel:!1}),[Ve]);return mt.createElement(z.Provider,{value:Kt},mt.createElement(He.Wd,Object.assign({},(0,De.Z)(Ce,["icon"]),{title:Ot,popupClassName:Ne()(Qe,Je,`${Qe}-${Ke||At}`)})))},ue=We(18785),pe=We(70425),Ee=We(62892),be=We(40875),Ie=function(Ce,Ye){var Je={};for(var Me in Ce)Object.prototype.hasOwnProperty.call(Ce,Me)&&Ye.indexOf(Me)<0&&(Je[Me]=Ce[Me]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Me=Object.getOwnPropertySymbols(Ce);Ge<Me.length;Ge++)Ye.indexOf(Me[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Me[Ge])&&(Je[Me[Ge]]=Ce[Me[Ge]]);return Je};function Le(Ce){return(Ce||[]).map((Ye,Je)=>{if(Ye&&typeof Ye=="object"){const Me=Ye,{label:Ge,children:Ke,key:Ve,type:Qe}=Me,ht=Ie(Me,["label","children","key","type"]),At=Ve!=null?Ve:`tmp-${Je}`;return Ke||Qe==="group"?Qe==="group"?mt.createElement(He.BW,Object.assign({key:At},ht,{title:Ge}),Le(Ke)):mt.createElement(le,Object.assign({key:At},ht,{title:Ge}),Le(Ke)):Qe==="divider"?mt.createElement(Ae,Object.assign({key:At},ht)):mt.createElement(ae,Object.assign({key:At},ht),Ge)}return null}).filter(Ye=>Ye)}function Fe(Ce){return mt.useMemo(()=>Ce&&Le(Ce),[Ce])}var Oe=We(64993),je=We(17313),ze=We(8378),_e=We(13826),Ue=We(29878),$e=We(83116),et=We(37613),ut=Ce=>{const{componentCls:Ye,motionDurationSlow:Je,horizontalLineHeight:Me,colorSplit:Ge,lineWidth:Ke,lineType:Ve,itemPaddingInline:Qe}=Ce;return{[`${Ye}-horizontal`]:{lineHeight:Me,border:0,borderBottom:`${Ke}px ${Ve} ${Ge}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ye}-item, ${Ye}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Qe},[`> ${Ye}-item:hover,
|
|
|
> ${Ye}-item-active,
|
|
|
> ${Ye}-submenu ${Ye}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ye}-item, ${Ye}-submenu-title`]:{transition:[`border-color ${Je}`,`background ${Je}`].join(",")},[`${Ye}-submenu-arrow`]:{display:"none"}}}},qe=Ce=>{let{componentCls:Ye,menuArrowOffset:Je}=Ce;return{[`${Ye}-rtl`]:{direction:"rtl"},[`${Ye}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ye}-rtl${Ye}-vertical,
|
|
|
${Ye}-submenu-rtl ${Ye}-vertical`]:{[`${Ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Je})`},"&::after":{transform:`rotate(45deg) translateY(${Je})`}}}}};const ot=Ce=>Object.assign({},(0,je.oN)(Ce));var St=(Ce,Ye)=>{const{componentCls:Je,itemColor:Me,itemSelectedColor:Ge,groupTitleColor:Ke,itemBg:Ve,subMenuItemBg:Qe,itemSelectedBg:ht,activeBarHeight:At,activeBarWidth:pt,activeBarBorderWidth:Ot,motionDurationSlow:Kt,motionEaseInOut:jt,motionEaseOut:Rt,itemPaddingInline:Xt,motionDurationMid:sn,itemHoverColor:Ft,lineType:Qt,colorSplit:en,itemDisabledColor:on,dangerItemColor:Cn,dangerItemHoverColor:Bn,dangerItemSelectedColor:tr,dangerItemActiveBg:er,dangerItemSelectedBg:cr,itemHoverBg:Ar,itemActiveBg:Dr,menuSubMenuBg:Or,horizontalItemSelectedColor:$r,horizontalItemSelectedBg:ai,horizontalItemBorderRadius:br,horizontalItemHoverBg:fi,popupBg:Cr}=Ce;return{[`${Je}-${Ye}, ${Je}-${Ye} > ${Je}`]:{color:Me,background:Ve,[`&${Je}-root:focus-visible`]:Object.assign({},ot(Ce)),[`${Je}-item-group-title`]:{color:Ke},[`${Je}-submenu-selected`]:{[`> ${Je}-submenu-title`]:{color:Ge}},[`${Je}-item-disabled, ${Je}-submenu-disabled`]:{color:`${on} !important`},[`${Je}-item:not(${Je}-item-selected):not(${Je}-submenu-selected)`]:{[`&:hover, > ${Je}-submenu-title:hover`]:{color:Ft}},[`&:not(${Je}-horizontal)`]:{[`${Je}-item:not(${Je}-item-selected)`]:{"&:hover":{backgroundColor:Ar},"&:active":{backgroundColor:Dr}},[`${Je}-submenu-title`]:{"&:hover":{backgroundColor:Ar},"&:active":{backgroundColor:Dr}}},[`${Je}-item-danger`]:{color:Cn,[`&${Je}-item:hover`]:{[`&:not(${Je}-item-selected):not(${Je}-submenu-selected)`]:{color:Bn}},[`&${Je}-item:active`]:{background:er}},[`${Je}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Je}-item-selected`]:{color:Ge,[`&${Je}-item-danger`]:{color:tr},"a, a:hover":{color:"inherit"}},[`& ${Je}-item-selected`]:{backgroundColor:ht,[`&${Je}-item-danger`]:{backgroundColor:cr}},[`${Je}-item, ${Je}-submenu-title`]:{[`&:not(${Je}-item-disabled):focus-visible`]:Object.assign({},ot(Ce))},[`&${Je}-submenu > ${Je}`]:{backgroundColor:Or},[`&${Je}-popup > ${Je}`]:{backgroundColor:Cr},[`&${Je}-horizontal`]:Object.assign(Object.assign({},Ye==="dark"?{borderBottom:0}:{}),{[`> ${Je}-item, > ${Je}-submenu`]:{top:Ot,marginTop:-Ot,marginBottom:0,borderRadius:br,"&::after":{position:"absolute",insetInline:Xt,bottom:0,borderBottom:`${At}px solid transparent`,transition:`border-color ${Kt} ${jt}`,content:'""'},"&:hover, &-active, &-open":{background:fi,"&::after":{borderBottomWidth:At,borderBottomColor:$r}},"&-selected":{color:$r,backgroundColor:ai,"&:hover":{backgroundColor:ai},"&::after":{borderBottomWidth:At,borderBottomColor:$r}}}}),[`&${Je}-root`]:{[`&${Je}-inline, &${Je}-vertical`]:{borderInlineEnd:`${Ot}px ${Qt} ${en}`}},[`&${Je}-inline`]:{[`${Je}-sub${Je}-inline`]:{background:Qe},[`${Je}-item, ${Je}-submenu-title`]:Ot&&pt?{width:`calc(100% + ${Ot}px)`}:{},[`${Je}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${pt}px solid ${Ge}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${sn} ${Rt}`,`opacity ${sn} ${Rt}`].join(","),content:'""'},[`&${Je}-item-danger`]:{"&::after":{borderInlineEndColor:tr}}},[`${Je}-selected, ${Je}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${sn} ${jt}`,`opacity ${sn} ${jt}`].join(",")}}}}}};const xt=Ce=>{const{componentCls:Ye,itemHeight:Je,itemMarginInline:Me,padding:Ge,menuArrowSize:Ke,marginXS:Ve,itemMarginBlock:Qe}=Ce,ht=Ge+Ke+Ve;return{[`${Ye}-item`]:{position:"relative",overflow:"hidden"},[`${Ye}-item, ${Ye}-submenu-title`]:{height:Je,lineHeight:`${Je}px`,paddingInline:Ge,overflow:"hidden",textOverflow:"ellipsis",marginInline:Me,marginBlock:Qe,width:`calc(100% - ${Me*2}px)`},[`> ${Ye}-item,
|
|
|
> ${Ye}-submenu > ${Ye}-submenu-title`]:{height:Je,lineHeight:`${Je}px`},[`${Ye}-item-group-list ${Ye}-submenu-title,
|
|
|
${Ye}-submenu-title`]:{paddingInlineEnd:ht}}};var gt=Ce=>{const{componentCls:Ye,iconCls:Je,itemHeight:Me,colorTextLightSolid:Ge,dropdownWidth:Ke,controlHeightLG:Ve,motionDurationMid:Qe,motionEaseOut:ht,paddingXL:At,itemMarginInline:pt,fontSizeLG:Ot,motionDurationSlow:Kt,paddingXS:jt,boxShadowSecondary:Rt,collapsedWidth:Xt,collapsedIconSize:sn}=Ce,Ft={height:Me,lineHeight:`${Me}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ye]:{"&-inline, &-vertical":Object.assign({[`&${Ye}-root`]:{boxShadow:"none"}},xt(Ce))},[`${Ye}-submenu-popup`]:{[`${Ye}-vertical`]:Object.assign(Object.assign({},xt(Ce)),{boxShadow:Rt})}},{[`${Ye}-submenu-popup ${Ye}-vertical${Ye}-sub`]:{minWidth:Ke,maxHeight:`calc(100vh - ${Ve*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ye}-inline`]:{width:"100%",[`&${Ye}-root`]:{[`${Ye}-item, ${Ye}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Kt}`,`background ${Kt}`,`padding ${Qe} ${ht}`].join(","),[`> ${Ye}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ye}-sub${Ye}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ye}-submenu > ${Ye}-submenu-title`]:Ft,[`& ${Ye}-item-group-title`]:{paddingInlineStart:At}},[`${Ye}-item`]:Ft}},{[`${Ye}-inline-collapsed`]:{width:Xt,[`&${Ye}-root`]:{[`${Ye}-item, ${Ye}-submenu ${Ye}-submenu-title`]:{[`> ${Ye}-inline-collapsed-noicon`]:{fontSize:Ot,textAlign:"center"}}},[`> ${Ye}-item,
|
|
|
> ${Ye}-item-group > ${Ye}-item-group-list > ${Ye}-item,
|
|
|
> ${Ye}-item-group > ${Ye}-item-group-list > ${Ye}-submenu > ${Ye}-submenu-title,
|
|
|
> ${Ye}-submenu > ${Ye}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ot/2}px - ${pt}px)`,textOverflow:"clip",[`
|
|
|
${Ye}-submenu-arrow,
|
|
|
${Ye}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Ye}-item-icon, ${Je}`]:{margin:0,fontSize:sn,lineHeight:`${Me}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ye}-item-icon, ${Je}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ye}-item-icon, ${Je}`]:{display:"none"},"a, a:hover":{color:Ge}},[`${Ye}-item-group-title`]:Object.assign(Object.assign({},je.vS),{paddingInline:jt})}}]};const vt=Ce=>{const{componentCls:Ye,motionDurationSlow:Je,motionDurationMid:Me,motionEaseInOut:Ge,motionEaseOut:Ke,iconCls:Ve,iconSize:Qe,iconMarginInlineEnd:ht}=Ce;return{[`${Ye}-item, ${Ye}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Je}`,`background ${Je}`,`padding ${Je} ${Ge}`].join(","),[`${Ye}-item-icon, ${Ve}`]:{minWidth:Qe,fontSize:Qe,transition:[`font-size ${Me} ${Ke}`,`margin ${Je} ${Ge}`,`color ${Je}`].join(","),"+ span":{marginInlineStart:ht,opacity:1,transition:[`opacity ${Je} ${Ge}`,`margin ${Je}`,`color ${Je}`].join(",")}},[`${Ye}-item-icon`]:Object.assign({},(0,je.Ro)()),[`&${Ye}-item-only-child`]:{[`> ${Ve}, > ${Ye}-item-icon`]:{marginInlineEnd:0}}},[`${Ye}-item-disabled, ${Ye}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ye}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Tt=Ce=>{const{componentCls:Ye,motionDurationSlow:Je,motionEaseInOut:Me,borderRadius:Ge,menuArrowSize:Ke,menuArrowOffset:Ve}=Ce;return{[`${Ye}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ce.margin,width:Ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Je} ${Me}, opacity ${Je}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ke*.6,height:Ke*.15,backgroundColor:"currentcolor",borderRadius:Ge,transition:[`background ${Je} ${Me}`,`transform ${Je} ${Me}`,`top ${Je} ${Me}`,`color ${Je} ${Me}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ve})`},"&::after":{transform:`rotate(-45deg) translateY(${Ve})`}}}}},Et=Ce=>{const{antCls:Ye,componentCls:Je,fontSize:Me,motionDurationSlow:Ge,motionDurationMid:Ke,motionEaseInOut:Ve,paddingXS:Qe,padding:ht,colorSplit:At,lineWidth:pt,zIndexPopup:Ot,borderRadiusLG:Kt,subMenuItemBorderRadius:jt,menuArrowSize:Rt,menuArrowOffset:Xt,lineType:sn,menuPanelMaskInset:Ft,groupTitleLineHeight:Qt,groupTitleFontSize:en}=Ce;return[{"":{[`${Je}`]:Object.assign(Object.assign({},(0,je.dF)()),{"&-hidden":{display:"none"}})},[`${Je}-submenu-hidden`]:{display:"none"}},{[Je]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,je.Wf)(Ce)),(0,je.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Me,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ge} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Je}-item`]:{flex:"none"}},[`${Je}-item, ${Je}-submenu, ${Je}-submenu-title`]:{borderRadius:Ce.itemBorderRadius},[`${Je}-item-group-title`]:{padding:`${Qe}px ${ht}px`,fontSize:en,lineHeight:Qt,transition:`all ${Ge}`},[`&-horizontal ${Je}-submenu`]:{transition:[`border-color ${Ge} ${Ve}`,`background ${Ge} ${Ve}`].join(",")},[`${Je}-submenu, ${Je}-submenu-inline`]:{transition:[`border-color ${Ge} ${Ve}`,`background ${Ge} ${Ve}`,`padding ${Ke} ${Ve}`].join(",")},[`${Je}-submenu ${Je}-sub`]:{cursor:"initial",transition:[`background ${Ge} ${Ve}`,`padding ${Ge} ${Ve}`].join(",")},[`${Je}-title-content`]:{transition:`color ${Ge}`},[`${Je}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Je}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:At,borderStyle:sn,borderWidth:0,borderTopWidth:pt,marginBlock:pt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),vt(Ce)),{[`${Je}-item-group`]:{[`${Je}-item-group-list`]:{margin:0,padding:0,[`${Je}-item, ${Je}-submenu-title`]:{paddingInline:`${Me*2}px ${ht}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ot,borderRadius:Kt,boxShadow:"none",transformOrigin:"0 0",[`&${Je}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ft}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ft},"\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:Ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ce.paddingXS},[`> ${Je}`]:Object.assign(Object.assign(Object.assign({borderRadius:Kt},vt(Ce)),Tt(Ce)),{[`${Je}-item, ${Je}-submenu > ${Je}-submenu-title`]:{borderRadius:jt},[`${Je}-submenu-title::after`]:{transition:`transform ${Ge} ${Ve}`}})}}),Tt(Ce)),{[`&-inline-collapsed ${Je}-submenu-arrow,
|
|
|
&-inline ${Je}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Xt})`},"&::after":{transform:`rotate(45deg) translateX(-${Xt})`}},[`${Je}-submenu-open${Je}-submenu-inline > ${Je}-submenu-title > ${Je}-submenu-arrow`]:{transform:`translateY(-${Rt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Xt})`},"&::before":{transform:`rotate(45deg) translateX(${Xt})`}}})},{[`${Ye}-layout-header`]:{[Je]:{lineHeight:"inherit"}}}]};var Zt=(Ce,Ye)=>(0,$e.Z)("Menu",Me=>{if(Ye===!1)return[];const{colorBgElevated:Ge,colorPrimary:Ke,colorTextLightSolid:Ve,controlHeightLG:Qe,fontSize:ht,darkItemColor:At,darkDangerItemColor:pt,darkItemBg:Ot,darkSubMenuItemBg:Kt,darkItemSelectedColor:jt,darkItemSelectedBg:Rt,darkDangerItemSelectedBg:Xt,darkItemHoverBg:sn,darkGroupTitleColor:Ft,darkItemHoverColor:Qt,darkItemDisabledColor:en,darkDangerItemHoverColor:on,darkDangerItemSelectedColor:Cn,darkDangerItemActiveBg:Bn}=Me,tr=ht/7*5,er=(0,et.TS)(Me,{menuArrowSize:tr,menuHorizontalHeight:Qe*1.15,menuArrowOffset:`${tr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ge}),cr=(0,et.TS)(er,{itemColor:At,itemHoverColor:Qt,groupTitleColor:Ft,itemSelectedColor:jt,itemBg:Ot,popupBg:Ot,subMenuItemBg:Kt,itemActiveBg:"transparent",itemSelectedBg:Rt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:sn,itemDisabledColor:en,dangerItemColor:pt,dangerItemHoverColor:on,dangerItemSelectedColor:Cn,dangerItemActiveBg:Bn,dangerItemSelectedBg:Xt,menuSubMenuBg:Kt,horizontalItemSelectedColor:Ve,horizontalItemSelectedBg:Ke});return[Et(er),ut(er),gt(er),St(er,"light"),St(cr,"dark"),qe(er),(0,ze.Z)(er),(0,_e.oN)(er,"slide-up"),(0,_e.oN)(er,"slide-down"),(0,Ue._y)(er,"zoom-big")]},Me=>{const{colorPrimary:Ge,colorError:Ke,colorTextDisabled:Ve,colorErrorBg:Qe,colorText:ht,colorTextDescription:At,colorBgContainer:pt,colorFillAlter:Ot,colorFillContent:Kt,lineWidth:jt,lineWidthBold:Rt,controlItemBgActive:Xt,colorBgTextHover:sn,controlHeightLG:Ft,lineHeight:Qt,colorBgElevated:en,marginXXS:on,padding:Cn,fontSize:Bn,controlHeightSM:tr,fontSizeLG:er,colorTextLightSolid:cr,colorErrorHover:Ar}=Me,Dr=new Oe.C(cr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Me.zIndexPopupBase+50,radiusItem:Me.borderRadiusLG,itemBorderRadius:Me.borderRadiusLG,radiusSubMenuItem:Me.borderRadiusSM,subMenuItemBorderRadius:Me.borderRadiusSM,colorItemText:ht,itemColor:ht,colorItemTextHover:ht,itemHoverColor:ht,colorItemTextHoverHorizontal:Ge,horizontalItemHoverColor:Ge,colorGroupTitle:At,groupTitleColor:At,colorItemTextSelected:Ge,itemSelectedColor:Ge,colorItemTextSelectedHorizontal:Ge,horizontalItemSelectedColor:Ge,colorItemBg:pt,itemBg:pt,colorItemBgHover:sn,itemHoverBg:sn,colorItemBgActive:Kt,itemActiveBg:Xt,colorSubItemBg:Ot,subMenuItemBg:Ot,colorItemBgSelected:Xt,itemSelectedBg:Xt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Rt,activeBarHeight:Rt,colorActiveBarBorderSize:jt,activeBarBorderWidth:jt,colorItemTextDisabled:Ve,itemDisabledColor:Ve,colorDangerItemText:Ke,dangerItemColor:Ke,colorDangerItemTextHover:Ke,dangerItemHoverColor:Ke,colorDangerItemTextSelected:Ke,dangerItemSelectedColor:Ke,colorDangerItemBgActive:Qe,dangerItemActiveBg:Qe,colorDangerItemBgSelected:Qe,dangerItemSelectedBg:Qe,itemMarginInline:Me.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ft,groupTitleLineHeight:Qt,collapsedWidth:Ft*2,popupBg:en,itemMarginBlock:on,itemPaddingInline:Cn,horizontalLineHeight:`${Ft*1.15}px`,iconSize:Bn,iconMarginInlineEnd:tr-Bn,collapsedIconSize:er,groupTitleFontSize:Bn,darkItemDisabledColor:new Oe.C(cr).setAlpha(.25).toRgbString(),darkItemColor:Dr,darkDangerItemColor:Ke,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:cr,darkItemSelectedBg:Ge,darkDangerItemSelectedBg:Ke,darkItemHoverBg:"transparent",darkGroupTitleColor:Dr,darkItemHoverColor:cr,darkDangerItemHoverColor:Ar,darkDangerItemSelectedColor:cr,darkDangerItemActiveBg:Ke}},{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"]]})(Ce),wt=function(Ce,Ye){var Je={};for(var Me in Ce)Object.prototype.hasOwnProperty.call(Ce,Me)&&Ye.indexOf(Me)<0&&(Je[Me]=Ce[Me]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Me=Object.getOwnPropertySymbols(Ce);Ge<Me.length;Ge++)Ye.indexOf(Me[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Me[Ge])&&(Je[Me[Ge]]=Ce[Me[Ge]]);return Je},it=(0,mt.forwardRef)((Ce,Ye)=>{var Je,Me;const Ge=mt.useContext(be.Z),Ke=Ge||{},{getPrefixCls:Ve,getPopupContainer:Qe,direction:ht,menu:At}=mt.useContext(ge.E_),pt=Ve(),{prefixCls:Ot,className:Kt,style:jt,theme:Rt="light",expandIcon:Xt,_internalDisableMenuItemTitleTooltip:sn,inlineCollapsed:Ft,siderCollapsed:Qt,items:en,children:on,rootClassName:Cn,mode:Bn,selectable:tr,onClick:er,overflowedIndicatorPopupClassName:cr}=Ce,Ar=wt(Ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Dr=(0,De.Z)(Ar,["collapsedWidth"]),Or=Fe(en)||on;(Je=Ke.validator)===null||Je===void 0||Je.call(Ke,{mode:Bn});const $r=(0,pe.useEvent)(function(){var vr;er==null||er.apply(void 0,arguments),(vr=Ke.onClick)===null||vr===void 0||vr.call(Ke)}),ai=Ke.mode||Bn,br=tr!=null?tr:Ke.selectable,fi=mt.useMemo(()=>Qt!==void 0?Qt:Ft,[Ft,Qt]),Cr={horizontal:{motionName:`${pt}-slide-up`},inline:(0,Ee.Z)(pt),other:{motionName:`${pt}-zoom-big`}},at=Ve("menu",Ot||Ke.prefixCls),[wi,ui]=Zt(at,!Ge),Dn=Ne()(`${at}-${Rt}`,At==null?void 0:At.className,Kt);let ur;if(typeof Xt=="function")ur=Xt;else if(Xt===null||Xt===!1)ur=null;else if(Ke.expandIcon===null||Ke.expandIcon===!1)ur=null;else{const vr=Xt!=null?Xt:Ke.expandIcon;ur=(0,we.Tm)(vr,{className:Ne()(`${at}-submenu-expand-icon`,(0,we.l$)(vr)?(Me=vr.props)===null||Me===void 0?void 0:Me.className:"")})}const or=mt.useMemo(()=>({prefixCls:at,inlineCollapsed:fi||!1,direction:ht,firstLevel:!0,theme:Rt,mode:ai,disableMenuItemTitleTooltip:sn}),[at,fi,ht,sn,Rt]);return wi(mt.createElement(be.Z.Provider,{value:null},mt.createElement(z.Provider,{value:or},mt.createElement(He.ZP,Object.assign({getPopupContainer:Qe,overflowedIndicator:mt.createElement(ue.Z,null),overflowedIndicatorPopupClassName:Ne()(at,`${at}-${Rt}`,cr),mode:ai,selectable:br,onClick:$r},Dr,{inlineCollapsed:fi,style:Object.assign(Object.assign({},At==null?void 0:At.style),jt),className:Dn,prefixCls:at,direction:ht,defaultMotions:Cr,expandIcon:ur,ref:Ye,rootClassName:Ne()(Cn,ui)}),Or))))});const nt=(0,mt.forwardRef)((Ce,Ye)=>{const Je=(0,mt.useRef)(null),Me=mt.useContext(oe.D);return(0,mt.useImperativeHandle)(Ye,()=>({menu:Je.current,focus:Ge=>{var Ke;(Ke=Je.current)===null||Ke===void 0||Ke.focus(Ge)}})),mt.createElement(it,Object.assign({ref:Je},Ce,Me))});nt.Item=ae,nt.SubMenu=le,nt.Divider=Ae,nt.ItemGroup=He.BW;var xe=nt},58421:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Ke}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(Qe,ht){return mt.createElement(Ne.Z,(0,He.Z)({},Qe,{ref:ht,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce,Ae=We(49198),ye=We(33853),De=We(38819),me=We(92310),we=We.n(me),fe=We(400),z=We(33708),ee=We(6909),ae=We(4771),re=We(9427),le=We(25440),ue=We(26112),pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ee=pe,be=We(91735),Ie=function(Ve){(0,re.Z)(ht,Ve);var Qe=(0,le.Z)(ht);function ht(){var At;(0,ee.Z)(this,ht);for(var pt=arguments.length,Ot=new Array(pt),Kt=0;Kt<pt;Kt++)Ot[Kt]=arguments[Kt];return At=Qe.call.apply(Qe,[this].concat(Ot)),At.state={goInputText:""},At.getValidValue=function(){var jt=At.state.goInputText;return!jt||Number.isNaN(jt)?void 0:Number(jt)},At.buildOptionText=function(jt){return"".concat(jt," ").concat(At.props.locale.items_per_page)},At.changeSize=function(jt){At.props.changeSize(Number(jt))},At.handleChange=function(jt){At.setState({goInputText:jt.target.value})},At.handleBlur=function(jt){var Rt=At.props,Xt=Rt.goButton,sn=Rt.quickGo,Ft=Rt.rootPrefixCls,Qt=At.state.goInputText;Xt||Qt===""||(At.setState({goInputText:""}),!(jt.relatedTarget&&(jt.relatedTarget.className.indexOf("".concat(Ft,"-item-link"))>=0||jt.relatedTarget.className.indexOf("".concat(Ft,"-item"))>=0))&&sn(At.getValidValue()))},At.go=function(jt){var Rt=At.state.goInputText;Rt!==""&&(jt.keyCode===Ee.ENTER||jt.type==="click")&&(At.setState({goInputText:""}),At.props.quickGo(At.getValidValue()))},At}return(0,ae.Z)(ht,[{key:"getPageSizeOptions",value:function(){var pt=this.props,Ot=pt.pageSize,Kt=pt.pageSizeOptions;return Kt.some(function(jt){return jt.toString()===Ot.toString()})?Kt:Kt.concat([Ot.toString()]).sort(function(jt,Rt){var Xt=Number.isNaN(Number(jt))?0:Number(jt),sn=Number.isNaN(Number(Rt))?0:Number(Rt);return Xt-sn})}},{key:"render",value:function(){var pt=this,Ot=this.props,Kt=Ot.pageSize,jt=Ot.locale,Rt=Ot.rootPrefixCls,Xt=Ot.changeSize,sn=Ot.quickGo,Ft=Ot.goButton,Qt=Ot.selectComponentClass,en=Ot.buildOptionText,on=Ot.selectPrefixCls,Cn=Ot.disabled,Bn=this.state.goInputText,tr="".concat(Rt,"-options"),er=Qt,cr=null,Ar=null,Dr=null;if(!Xt&&!sn)return null;var Or=this.getPageSizeOptions();if(Xt&&er){var $r=Or.map(function(ai,br){return mt.createElement(er.Option,{key:br,value:ai.toString()},(en||pt.buildOptionText)(ai))});cr=mt.createElement(er,{disabled:Cn,prefixCls:on,showSearch:!1,className:"".concat(tr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Kt||Or[0]).toString(),onChange:this.changeSize,getPopupContainer:function(br){return br.parentNode},"aria-label":jt.page_size,defaultOpen:!1},$r)}return sn&&(Ft&&(Dr=typeof Ft=="boolean"?mt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Cn,className:"".concat(tr,"-quick-jumper-button")},jt.jump_to_confirm):mt.createElement("span",{onClick:this.go,onKeyUp:this.go},Ft)),Ar=mt.createElement("div",{className:"".concat(tr,"-quick-jumper")},jt.jump_to,mt.createElement("input",{disabled:Cn,type:"text",value:Bn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":jt.page}),jt.page,Dr)),mt.createElement("li",{className:"".concat(tr)},cr,Ar)}}]),ht}(mt.Component);Ie.defaultProps={pageSizeOptions:["10","20","50","100"]};var Le=Ie,Fe=function(Qe){var ht,At=Qe.rootPrefixCls,pt=Qe.page,Ot=Qe.active,Kt=Qe.className,jt=Qe.showTitle,Rt=Qe.onClick,Xt=Qe.onKeyPress,sn=Qe.itemRender,Ft="".concat(At,"-item"),Qt=we()(Ft,"".concat(Ft,"-").concat(pt),(ht={},(0,fe.Z)(ht,"".concat(Ft,"-active"),Ot),(0,fe.Z)(ht,"".concat(Ft,"-disabled"),!pt),(0,fe.Z)(ht,Qe.className,Kt),ht)),en=function(){Rt(pt)},on=function(tr){Xt(tr,Rt,pt)},Cn=sn(pt,"page",mt.createElement("a",{rel:"nofollow"},pt));return Cn?mt.createElement("li",{title:jt?pt.toString():null,className:Qt,onClick:en,onKeyPress:on,tabIndex:0},Cn):null},Oe=Fe;function je(){}function ze(Ve){var Qe=Number(Ve);return typeof Qe=="number"&&!Number.isNaN(Qe)&&isFinite(Qe)&&Math.floor(Qe)===Qe}var _e=function(Qe,ht,At){return At};function Ue(Ve,Qe,ht){var At=typeof Ve=="undefined"?Qe.pageSize:Ve;return Math.floor((ht.total-1)/At)+1}var $e=function(Ve){(0,re.Z)(ht,Ve);var Qe=(0,le.Z)(ht);function ht(At){var pt;(0,ee.Z)(this,ht),pt=Qe.call(this,At),pt.paginationNode=mt.createRef(),pt.getJumpPrevPage=function(){return Math.max(1,pt.state.current-(pt.props.showLessItems?3:5))},pt.getJumpNextPage=function(){return Math.min(Ue(void 0,pt.state,pt.props),pt.state.current+(pt.props.showLessItems?3:5))},pt.getItemIcon=function(Xt,sn){var Ft=pt.props.prefixCls,Qt=Xt||mt.createElement("button",{type:"button","aria-label":sn,className:"".concat(Ft,"-item-link")});return typeof Xt=="function"&&(Qt=mt.createElement(Xt,(0,z.Z)({},pt.props))),Qt},pt.isValid=function(Xt){var sn=pt.props.total;return ze(Xt)&&Xt!==pt.state.current&&ze(sn)&&sn>0},pt.shouldDisplayQuickJumper=function(){var Xt=pt.props,sn=Xt.showQuickJumper,Ft=Xt.total,Qt=pt.state.pageSize;return Ft<=Qt?!1:sn},pt.handleKeyDown=function(Xt){(Xt.keyCode===Ee.ARROW_UP||Xt.keyCode===Ee.ARROW_DOWN)&&Xt.preventDefault()},pt.handleKeyUp=function(Xt){var sn=pt.getValidValue(Xt),Ft=pt.state.currentInputValue;sn!==Ft&&pt.setState({currentInputValue:sn}),Xt.keyCode===Ee.ENTER?pt.handleChange(sn):Xt.keyCode===Ee.ARROW_UP?pt.handleChange(sn-1):Xt.keyCode===Ee.ARROW_DOWN&&pt.handleChange(sn+1)},pt.handleBlur=function(Xt){var sn=pt.getValidValue(Xt);pt.handleChange(sn)},pt.changePageSize=function(Xt){var sn=pt.state.current,Ft=Ue(Xt,pt.state,pt.props);sn=sn>Ft?Ft:sn,Ft===0&&(sn=pt.state.current),typeof Xt=="number"&&("pageSize"in pt.props||pt.setState({pageSize:Xt}),"current"in pt.props||pt.setState({current:sn,currentInputValue:sn})),pt.props.onShowSizeChange(sn,Xt),"onChange"in pt.props&&pt.props.onChange&&pt.props.onChange(sn,Xt)},pt.handleChange=function(Xt){var sn=pt.props,Ft=sn.disabled,Qt=sn.onChange,en=pt.state,on=en.pageSize,Cn=en.current,Bn=en.currentInputValue;if(pt.isValid(Xt)&&!Ft){var tr=Ue(void 0,pt.state,pt.props),er=Xt;return Xt>tr?er=tr:Xt<1&&(er=1),"current"in pt.props||pt.setState({current:er}),er!==Bn&&pt.setState({currentInputValue:er}),Qt(er,on),er}return Cn},pt.prev=function(){pt.hasPrev()&&pt.handleChange(pt.state.current-1)},pt.next=function(){pt.hasNext()&&pt.handleChange(pt.state.current+1)},pt.jumpPrev=function(){pt.handleChange(pt.getJumpPrevPage())},pt.jumpNext=function(){pt.handleChange(pt.getJumpNextPage())},pt.hasPrev=function(){return pt.state.current>1},pt.hasNext=function(){return pt.state.current<Ue(void 0,pt.state,pt.props)},pt.runIfEnter=function(Xt,sn){if(Xt.key==="Enter"||Xt.charCode===13){for(var Ft=arguments.length,Qt=new Array(Ft>2?Ft-2:0),en=2;en<Ft;en++)Qt[en-2]=arguments[en];sn.apply(void 0,Qt)}},pt.runIfEnterPrev=function(Xt){pt.runIfEnter(Xt,pt.prev)},pt.runIfEnterNext=function(Xt){pt.runIfEnter(Xt,pt.next)},pt.runIfEnterJumpPrev=function(Xt){pt.runIfEnter(Xt,pt.jumpPrev)},pt.runIfEnterJumpNext=function(Xt){pt.runIfEnter(Xt,pt.jumpNext)},pt.handleGoTO=function(Xt){(Xt.keyCode===Ee.ENTER||Xt.type==="click")&&pt.handleChange(pt.state.currentInputValue)},pt.renderPrev=function(Xt){var sn=pt.props,Ft=sn.prevIcon,Qt=sn.itemRender,en=Qt(Xt,"prev",pt.getItemIcon(Ft,"prev page")),on=!pt.hasPrev();return(0,mt.isValidElement)(en)?(0,mt.cloneElement)(en,{disabled:on}):en},pt.renderNext=function(Xt){var sn=pt.props,Ft=sn.nextIcon,Qt=sn.itemRender,en=Qt(Xt,"next",pt.getItemIcon(Ft,"next page")),on=!pt.hasNext();return(0,mt.isValidElement)(en)?(0,mt.cloneElement)(en,{disabled:on}):en};var Ot=At.onChange!==je,Kt="current"in At;Kt&&!Ot&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var jt=At.defaultCurrent;"current"in At&&(jt=At.current);var Rt=At.defaultPageSize;return"pageSize"in At&&(Rt=At.pageSize),jt=Math.min(jt,Ue(Rt,void 0,At)),pt.state={current:jt,currentInputValue:jt,pageSize:Rt},pt}return(0,ae.Z)(ht,[{key:"componentDidUpdate",value:function(pt,Ot){var Kt=this.props.prefixCls;if(Ot.current!==this.state.current&&this.paginationNode.current){var jt=this.paginationNode.current.querySelector(".".concat(Kt,"-item-").concat(Ot.current));if(jt&&document.activeElement===jt){var Rt;jt==null||(Rt=jt.blur)===null||Rt===void 0||Rt.call(jt)}}}},{key:"getValidValue",value:function(pt){var Ot=pt.target.value,Kt=Ue(void 0,this.state,this.props),jt=this.state.currentInputValue,Rt;return Ot===""?Rt=Ot:Number.isNaN(Number(Ot))?Rt=jt:Ot>=Kt?Rt=Kt:Rt=Number(Ot),Rt}},{key:"getShowSizeChanger",value:function(){var pt=this.props,Ot=pt.showSizeChanger,Kt=pt.total,jt=pt.totalBoundaryShowSizeChanger;return typeof Ot!="undefined"?Ot:Kt>jt}},{key:"render",value:function(){var pt=this.props,Ot=pt.prefixCls,Kt=pt.className,jt=pt.style,Rt=pt.disabled,Xt=pt.hideOnSinglePage,sn=pt.total,Ft=pt.locale,Qt=pt.showQuickJumper,en=pt.showLessItems,on=pt.showTitle,Cn=pt.showTotal,Bn=pt.simple,tr=pt.itemRender,er=pt.showPrevNextJumpers,cr=pt.jumpPrevIcon,Ar=pt.jumpNextIcon,Dr=pt.selectComponentClass,Or=pt.selectPrefixCls,$r=pt.pageSizeOptions,ai=this.state,br=ai.current,fi=ai.pageSize,Cr=ai.currentInputValue;if(Xt===!0&&sn<=fi)return null;var at=Ue(void 0,this.state,this.props),wi=[],ui=null,Dn=null,ur=null,or=null,vr=null,Hn=Qt&&Qt.goButton,Jn=en?1:2,_t=br-1>0?br-1:0,Gt=br+1<at?br+1:at,Pt=(0,ue.Z)(this.props,{aria:!0,data:!0}),ln=Cn&&mt.createElement("li",{className:"".concat(Ot,"-total-text")},Cn(sn,[sn===0?0:(br-1)*fi+1,br*fi>sn?sn:br*fi]));if(Bn){Hn&&(typeof Hn=="boolean"?vr=mt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ft.jump_to_confirm):vr=mt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Hn),vr=mt.createElement("li",{title:on?"".concat(Ft.jump_to).concat(br,"/").concat(at):null,className:"".concat(Ot,"-simple-pager")},vr));var pn=this.renderPrev(_t);return mt.createElement("ul",(0,He.Z)({className:we()(Ot,"".concat(Ot,"-simple"),(0,fe.Z)({},"".concat(Ot,"-disabled"),Rt),Kt),style:jt,ref:this.paginationNode},Pt),ln,pn?mt.createElement("li",{title:on?Ft.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:we()("".concat(Ot,"-prev"),(0,fe.Z)({},"".concat(Ot,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},pn):null,mt.createElement("li",{title:on?"".concat(br,"/").concat(at):null,className:"".concat(Ot,"-simple-pager")},mt.createElement("input",{type:"text",value:Cr,disabled:Rt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),mt.createElement("span",{className:"".concat(Ot,"-slash")},"/"),at),mt.createElement("li",{title:on?Ft.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:we()("".concat(Ot,"-next"),(0,fe.Z)({},"".concat(Ot,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Gt)),vr)}if(at<=3+Jn*2){var Vt={locale:Ft,rootPrefixCls:Ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:on,itemRender:tr};at||wi.push(mt.createElement(Oe,(0,He.Z)({},Vt,{key:"noPager",page:1,className:"".concat(Ot,"-item-disabled")})));for(var Dt=1;Dt<=at;Dt+=1){var cn=br===Dt;wi.push(mt.createElement(Oe,(0,He.Z)({},Vt,{key:Dt,page:Dt,active:cn})))}}else{var xn=en?Ft.prev_3:Ft.prev_5,Nn=en?Ft.next_3:Ft.next_5,Zn=tr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(cr,"prev page")),Ht=tr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ar,"next page"));er&&(ui=Zn?mt.createElement("li",{title:on?xn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:we()("".concat(Ot,"-jump-prev"),(0,fe.Z)({},"".concat(Ot,"-jump-prev-custom-icon"),!!cr))},Zn):null,Dn=Ht?mt.createElement("li",{title:on?Nn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:we()("".concat(Ot,"-jump-next"),(0,fe.Z)({},"".concat(Ot,"-jump-next-custom-icon"),!!Ar))},Ht):null),or=mt.createElement(Oe,{locale:Ft,last:!0,rootPrefixCls:Ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:at,page:at,active:!1,showTitle:on,itemRender:tr}),ur=mt.createElement(Oe,{locale:Ft,rootPrefixCls:Ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:on,itemRender:tr});var En=Math.max(1,br-Jn),Kn=Math.min(br+Jn,at);br-1<=Jn&&(Kn=1+Jn*2),at-br<=Jn&&(En=at-Jn*2);for(var nr=En;nr<=Kn;nr+=1){var rn=br===nr;wi.push(mt.createElement(Oe,{locale:Ft,rootPrefixCls:Ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:nr,page:nr,active:rn,showTitle:on,itemRender:tr}))}br-1>=Jn*2&&br!==3&&(wi[0]=(0,mt.cloneElement)(wi[0],{className:"".concat(Ot,"-item-after-jump-prev")}),wi.unshift(ui)),at-br>=Jn*2&&br!==at-2&&(wi[wi.length-1]=(0,mt.cloneElement)(wi[wi.length-1],{className:"".concat(Ot,"-item-before-jump-next")}),wi.push(Dn)),En!==1&&wi.unshift(ur),Kn!==at&&wi.push(or)}var bn=!this.hasPrev()||!at,nn=!this.hasNext()||!at,wn=this.renderPrev(_t),gn=this.renderNext(Gt);return mt.createElement("ul",(0,He.Z)({className:we()(Ot,Kt,(0,fe.Z)({},"".concat(Ot,"-disabled"),Rt)),style:jt,ref:this.paginationNode},Pt),ln,wn?mt.createElement("li",{title:on?Ft.prev_page:null,onClick:this.prev,tabIndex:bn?null:0,onKeyPress:this.runIfEnterPrev,className:we()("".concat(Ot,"-prev"),(0,fe.Z)({},"".concat(Ot,"-disabled"),bn)),"aria-disabled":bn},wn):null,wi,gn?mt.createElement("li",{title:on?Ft.next_page:null,onClick:this.next,tabIndex:nn?null:0,onKeyPress:this.runIfEnterNext,className:we()("".concat(Ot,"-next"),(0,fe.Z)({},"".concat(Ot,"-disabled"),nn)),"aria-disabled":nn},gn):null,mt.createElement(Le,{disabled:Rt,locale:Ft,rootPrefixCls:Ot,selectComponentClass:Dr,selectPrefixCls:Or,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:br,pageSize:fi,pageSizeOptions:$r,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Hn}))}}],[{key:"getDerivedStateFromProps",value:function(pt,Ot){var Kt={};if("current"in pt&&(Kt.current=pt.current,pt.current!==Ot.current&&(Kt.currentInputValue=Kt.current)),"pageSize"in pt&&pt.pageSize!==Ot.pageSize){var jt=Ot.current,Rt=Ue(pt.pageSize,Ot,pt);jt=jt>Rt?Rt:jt,"current"in pt||(Kt.current=jt,Kt.currentInputValue=jt),Kt.pageSize=pt.pageSize}return Kt}}]),ht}(mt.Component);$e.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:je,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:je,locale:be.Z,style:{},itemRender:_e,totalBoundaryShowSizeChanger:50};var et=$e,lt=We(22075),ut=We(36355),yt=We(19716),qe=We(8628),ot=We(9763),dt=We(57809);const St=Ve=>mt.createElement(dt.default,Object.assign({},Ve,{showSearch:!0,size:"small"})),xt=Ve=>mt.createElement(dt.default,Object.assign({},Ve,{showSearch:!0,size:"middle"}));St.Option=dt.default.Option,xt.Option=dt.default.Option;var ft=We(9937),gt=We(17313),vt=We(83116),Tt=We(37613);const Et=Ve=>{const{componentCls:Qe}=Ve;return{[`${Qe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Qe}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Qe}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed"}}},[`&${Qe}-disabled`]:{cursor:"not-allowed",[`${Qe}-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}}},[`${Qe}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Qe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Qe}-simple-pager`]:{color:Ve.colorTextDisabled},[`${Qe}-jump-prev, ${Qe}-jump-next`]:{[`${Qe}-item-link-icon`]:{opacity:0},[`${Qe}-item-ellipsis`]:{opacity:1}}},[`&${Qe}-simple`]:{[`${Qe}-prev, ${Qe}-next`]:{[`&${Qe}-disabled ${Qe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Zt=Ve=>{const{componentCls:Qe}=Ve;return{[`&${Qe}-mini ${Qe}-total-text, &${Qe}-mini ${Qe}-simple-pager`]:{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`},[`&${Qe}-mini ${Qe}-item`]:{minWidth:Ve.itemSizeSM,height:Ve.itemSizeSM,margin:0,lineHeight:`${Ve.itemSizeSM-2}px`},[`&${Qe}-mini:not(${Qe}-disabled) ${Qe}-item:not(${Qe}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ve.colorBgTextHover},"&:active":{backgroundColor:Ve.colorBgTextActive}},[`&${Qe}-mini ${Qe}-prev, &${Qe}-mini ${Qe}-next`]:{minWidth:Ve.itemSizeSM,height:Ve.itemSizeSM,margin:0,lineHeight:`${Ve.itemSizeSM}px`},[`&${Qe}-mini:not(${Qe}-disabled)`]:{[`${Qe}-prev, ${Qe}-next`]:{[`&:hover ${Qe}-item-link`]:{backgroundColor:Ve.colorBgTextHover},[`&:active ${Qe}-item-link`]:{backgroundColor:Ve.colorBgTextActive},[`&${Qe}-disabled:hover ${Qe}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Qe}-mini ${Qe}-prev ${Qe}-item-link,
|
|
|
&${Qe}-mini ${Qe}-next ${Qe}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`}},[`&${Qe}-mini ${Qe}-jump-prev, &${Qe}-mini ${Qe}-jump-next`]:{height:Ve.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ve.itemSizeSM}px`},[`&${Qe}-mini ${Qe}-options`]:{marginInlineStart:Ve.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ve.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,ft.x0)(Ve)),{width:Ve.paginationMiniQuickJumperInputWidth,height:Ve.controlHeightSM})}}}},wt=Ve=>{const{componentCls:Qe}=Ve;return{[`
|
|
|
&${Qe}-simple ${Qe}-prev,
|
|
|
&${Qe}-simple ${Qe}-next
|
|
|
`]:{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`,verticalAlign:"top",[`${Qe}-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`}}},[`&${Qe}-simple ${Qe}-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"}}}}},bt=Ve=>{const{componentCls:Qe}=Ve;return{[`${Qe}-jump-prev, ${Qe}-jump-next`]:{outline:0,[`${Qe}-item-container`]:{position:"relative",[`${Qe}-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"}},[`${Qe}-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":{[`${Qe}-item-link-icon`]:{opacity:1},[`${Qe}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Qe}-prev,
|
|
|
${Qe}-jump-prev,
|
|
|
${Qe}-jump-next
|
|
|
`]:{marginInlineEnd:Ve.marginXS},[`
|
|
|
${Qe}-prev,
|
|
|
${Qe}-next,
|
|
|
${Qe}-jump-prev,
|
|
|
${Qe}-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}`},[`${Qe}-prev, ${Qe}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ve.colorText,cursor:"pointer",userSelect:"none"},[`${Qe}-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 ${Qe}-item-link`]:{backgroundColor:Ve.colorBgTextHover},[`&:active ${Qe}-item-link`]:{backgroundColor:Ve.colorBgTextActive},[`&${Qe}-disabled:hover`]:{[`${Qe}-item-link`]:{backgroundColor:"transparent"}}},[`${Qe}-slash`]:{marginInlineEnd:Ve.paginationSlashMarginInlineEnd,marginInlineStart:Ve.paginationSlashMarginInlineStart},[`${Qe}-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,ft.ik)(Ve)),{width:Ve.controlHeightLG*1.25,height:Ve.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ve.marginXS,marginInlineEnd:Ve.marginXS})}}}},it=Ve=>{const{componentCls:Qe}=Ve;return{[`${Qe}-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(${Qe}-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}}}}},nt=Ve=>{const{componentCls:Qe}=Ve;return{[Qe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,gt.Wf)(Ve)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Qe}-total-text`]:{display:"inline-block",height:Ve.itemSize,marginInlineEnd:Ve.marginXS,lineHeight:`${Ve.itemSize-2}px`,verticalAlign:"middle"}}),it(Ve)),bt(Ve)),wt(Ve)),Zt(Ve)),Et(Ve)),{[`@media only screen and (max-width: ${Ve.screenLG}px)`]:{[`${Qe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ve.screenSM}px)`]:{[`${Qe}-options`]:{display:"none"}}}),[`&${Ve.componentCls}-rtl`]:{direction:"rtl"}}},xe=Ve=>{const{componentCls:Qe}=Ve;return{[`${Qe}${Qe}-disabled:not(${Qe}-mini)`]:{"&, &:hover":{[`${Qe}-item-link`]:{borderColor:Ve.colorBorder}},"&:focus-visible":{[`${Qe}-item-link`]:{borderColor:Ve.colorBorder}},[`${Qe}-item, ${Qe}-item-link`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,[`&:hover:not(${Qe}-item-active)`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,a:{color:Ve.colorTextDisabled}},[`&${Qe}-item-active`]:{backgroundColor:Ve.itemActiveBgDisabled}},[`${Qe}-prev, ${Qe}-next`]:{"&:hover button":{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,color:Ve.colorTextDisabled},[`${Qe}-item-link`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder}}},[`${Qe}:not(${Qe}-mini)`]:{[`${Qe}-prev, ${Qe}-next`]:{"&:hover button":{borderColor:Ve.colorPrimaryHover,backgroundColor:Ve.itemBg},[`${Qe}-item-link`]:{backgroundColor:Ve.itemLinkBg,borderColor:Ve.colorBorder},[`&:hover ${Qe}-item-link`]:{borderColor:Ve.colorPrimary,backgroundColor:Ve.itemBg,color:Ve.colorPrimary},[`&${Qe}-disabled`]:{[`${Qe}-item-link`]:{borderColor:Ve.colorBorder,color:Ve.colorTextDisabled}}},[`${Qe}-item`]:{backgroundColor:Ve.itemBg,border:`${Ve.lineWidth}px ${Ve.lineType} ${Ve.colorBorder}`,[`&:hover:not(${Qe}-item-active)`]:{borderColor:Ve.colorPrimary,backgroundColor:Ve.itemBg,a:{color:Ve.colorPrimary}},"&-active":{borderColor:Ve.colorPrimary}}}}},Ce=Ve=>{const{componentCls:Qe}=Ve;return{[`${Qe}:not(${Qe}-disabled)`]:{[`${Qe}-item`]:Object.assign({},(0,gt.Qy)(Ve)),[`${Qe}-jump-prev, ${Qe}-jump-next`]:{"&:focus-visible":Object.assign({[`${Qe}-item-link-icon`]:{opacity:1},[`${Qe}-item-ellipsis`]:{opacity:0}},(0,gt.oN)(Ve))},[`${Qe}-prev, ${Qe}-next`]:{[`&:focus-visible ${Qe}-item-link`]:Object.assign({},(0,gt.oN)(Ve))}}}};var Ye=(0,vt.Z)("Pagination",Ve=>{const Qe=(0,Tt.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,ft.e5)(Ve),(0,ft.TM)(Ve));return[nt(Qe),Ce(Qe),Ve.wireframe&&xe(Qe)]},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})),Je=function(Ve,Qe){var ht={};for(var At in Ve)Object.prototype.hasOwnProperty.call(Ve,At)&&Qe.indexOf(At)<0&&(ht[At]=Ve[At]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,At=Object.getOwnPropertySymbols(Ve);pt<At.length;pt++)Qe.indexOf(At[pt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,At[pt])&&(ht[At[pt]]=Ve[At[pt]]);return ht},Ge=Ve=>{const{prefixCls:Qe,selectPrefixCls:ht,className:At,rootClassName:pt,style:Ot,size:Kt,locale:jt,selectComponentClass:Rt,responsive:Xt,showSizeChanger:sn}=Ve,Ft=Je(Ve,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Qt}=(0,qe.Z)(Xt),{getPrefixCls:en,direction:on,pagination:Cn={}}=mt.useContext(ut.E_),Bn=en("pagination",Qe),[tr,er]=Ye(Bn),cr=sn!=null?sn:Cn.showSizeChanger,Ar=mt.useMemo(()=>{const at=mt.createElement("span",{className:`${Bn}-item-ellipsis`},"\u2022\u2022\u2022"),wi=mt.createElement("button",{className:`${Bn}-item-link`,type:"button",tabIndex:-1},on==="rtl"?mt.createElement(De.Z,null):mt.createElement(ye.Z,null)),ui=mt.createElement("button",{className:`${Bn}-item-link`,type:"button",tabIndex:-1},on==="rtl"?mt.createElement(ye.Z,null):mt.createElement(De.Z,null)),Dn=mt.createElement("a",{className:`${Bn}-item-link`},mt.createElement("div",{className:`${Bn}-item-container`},on==="rtl"?mt.createElement(Ae.Z,{className:`${Bn}-item-link-icon`}):mt.createElement(Pe,{className:`${Bn}-item-link-icon`}),at)),ur=mt.createElement("a",{className:`${Bn}-item-link`},mt.createElement("div",{className:`${Bn}-item-container`},on==="rtl"?mt.createElement(Pe,{className:`${Bn}-item-link-icon`}):mt.createElement(Ae.Z,{className:`${Bn}-item-link-icon`}),at));return{prevIcon:wi,nextIcon:ui,jumpPrevIcon:Dn,jumpNextIcon:ur}},[on,Bn]),[Dr]=(0,ot.Z)("Pagination",lt.Z),Or=Object.assign(Object.assign({},Dr),jt),$r=(0,yt.Z)(Kt),ai=$r==="small"||!!(Qt&&!$r&&Xt),br=en("select",ht),fi=we()({[`${Bn}-mini`]:ai,[`${Bn}-rtl`]:on==="rtl"},Cn==null?void 0:Cn.className,At,pt,er),Cr=Object.assign(Object.assign({},Cn==null?void 0:Cn.style),Ot);return tr(mt.createElement(et,Object.assign({},Ar,Ft,{style:Cr,prefixCls:Bn,selectPrefixCls:br,className:fi,selectComponentClass:Rt||(ai?St:xt),locale:Or,showSizeChanger:cr})))},Ke=Ge},93948:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return sn}});var He=We(59301),mt=We(29679),oe=We(40001),Ze=We(19248),Ne=We(99267),ge=We(92310),ce=We.n(ge),Pe=We(2738),Ae=We(36355),ye=We(92413),De=We(33708),me=We(37061),we={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},fe=function(){var Qt=(0,He.useRef)([]),en=(0,He.useRef)(null);return(0,He.useEffect)(function(){var on=Date.now(),Cn=!1;Qt.current.forEach(function(Bn){if(Bn){Cn=!0;var tr=Bn.style;tr.transitionDuration=".3s, .3s, .3s, .06s",en.current&&on-en.current<100&&(tr.transitionDuration="0s, 0s")}}),Cn&&(en.current=Date.now())}),Qt.current},z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Qt){var en=(0,De.Z)((0,De.Z)({},we),Qt),on=en.className,Cn=en.percent,Bn=en.prefixCls,tr=en.strokeColor,er=en.strokeLinecap,cr=en.strokeWidth,Ar=en.style,Dr=en.trailColor,Or=en.trailWidth,$r=en.transition,ai=(0,me.Z)(en,z);delete ai.gapPosition;var br=Array.isArray(Cn)?Cn:[Cn],fi=Array.isArray(tr)?tr:[tr],Cr=fe(),at=cr/2,wi=100-cr/2,ui="M ".concat(er==="round"?at:0,",").concat(at,`
|
|
|
L `).concat(er==="round"?wi:100,",").concat(at),Dn="0 0 100 ".concat(cr),ur=0;return He.createElement("svg",(0,ye.Z)({className:ce()("".concat(Bn,"-line"),on),viewBox:Dn,preserveAspectRatio:"none",style:Ar},ai),He.createElement("path",{className:"".concat(Bn,"-line-trail"),d:ui,strokeLinecap:er,stroke:Dr,strokeWidth:Or||cr,fillOpacity:"0"}),br.map(function(or,vr){var Hn=1;switch(er){case"round":Hn=1-cr/100;break;case"square":Hn=1-cr/2/100;break;default:Hn=1;break}var Jn={strokeDasharray:"".concat(or*Hn,"px, 100px"),strokeDashoffset:"-".concat(ur,"px"),transition:$r||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_t=fi[vr]||fi[fi.length-1];return ur+=or,He.createElement("path",{key:vr,className:"".concat(Bn,"-line-path"),d:ui,strokeLinecap:er,stroke:_t,strokeWidth:cr,fillOpacity:"0",ref:function(Pt){Cr[vr]=Pt},style:Jn})}))},ae=ee,re=We(39559),le=We(33606),ue=We(47273),pe=0,Ee=(0,ue.Z)();function be(){var Ft;return Ee?(Ft=pe,pe+=1):Ft="TEST_OR_SSR",Ft}var Ie=function(Ft){var Qt=He.useState(),en=(0,le.Z)(Qt,2),on=en[0],Cn=en[1];return He.useEffect(function(){Cn("rc_progress_".concat(be()))},[]),Ft||on},Le=function(Qt){var en=Qt.bg,on=Qt.children;return He.createElement("div",{style:{width:"100%",height:"100%",background:en}},on)};function Fe(Ft,Qt){return Object.keys(Ft).map(function(en){var on=parseFloat(en),Cn="".concat(Math.floor(on*Qt),"%");return"".concat(Ft[en]," ").concat(Cn)})}var Oe=He.forwardRef(function(Ft,Qt){var en=Ft.prefixCls,on=Ft.color,Cn=Ft.gradientId,Bn=Ft.radius,tr=Ft.style,er=Ft.ptg,cr=Ft.strokeLinecap,Ar=Ft.strokeWidth,Dr=Ft.size,Or=Ft.gapDegree,$r=on&&(0,re.Z)(on)==="object",ai=$r?"#FFF":void 0,br=Dr/2,fi=He.createElement("circle",{className:"".concat(en,"-circle-path"),r:Bn,cx:br,cy:br,stroke:ai,strokeLinecap:cr,strokeWidth:Ar,opacity:er===0?0:1,style:tr,ref:Qt});if(!$r)return fi;var Cr="".concat(Cn,"-conic"),at=Or?"".concat(180+Or/2,"deg"):"0deg",wi=Fe(on,(360-Or)/360),ui=Fe(on,1),Dn="conic-gradient(from ".concat(at,", ").concat(wi.join(", "),")"),ur="linear-gradient(to ".concat(Or?"bottom":"top",", ").concat(ui.join(", "),")");return He.createElement(He.Fragment,null,He.createElement("mask",{id:Cr},fi),He.createElement("foreignObject",{x:0,y:0,width:Dr,height:Dr,mask:"url(#".concat(Cr,")")},He.createElement(Le,{bg:ur},He.createElement(Le,{bg:Dn}))))}),je=Oe,ze=100,_e=function(Qt,en,on,Cn,Bn,tr,er,cr,Ar,Dr){var Or=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,$r=on/100*360*((360-tr)/360),ai=tr===0?0:{bottom:0,top:180,left:90,right:-90}[er],br=(100-Cn)/100*en;Ar==="round"&&Cn!==100&&(br+=Dr/2,br>=en&&(br=en-.01));var fi=ze/2;return{stroke:typeof cr=="string"?cr:void 0,strokeDasharray:"".concat(en,"px ").concat(Qt),strokeDashoffset:br+Or,transform:"rotate(".concat(Bn+$r+ai,"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}},Ue=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function $e(Ft){var Qt=Ft!=null?Ft:[];return Array.isArray(Qt)?Qt:[Qt]}var et=function(Qt){var en=(0,De.Z)((0,De.Z)({},we),Qt),on=en.id,Cn=en.prefixCls,Bn=en.steps,tr=en.strokeWidth,er=en.trailWidth,cr=en.gapDegree,Ar=cr===void 0?0:cr,Dr=en.gapPosition,Or=en.trailColor,$r=en.strokeLinecap,ai=en.style,br=en.className,fi=en.strokeColor,Cr=en.percent,at=(0,me.Z)(en,Ue),wi=ze/2,ui=Ie(on),Dn="".concat(ui,"-gradient"),ur=wi-tr/2,or=Math.PI*2*ur,vr=Ar>0?90+Ar/2:-90,Hn=or*((360-Ar)/360),Jn=(0,re.Z)(Bn)==="object"?Bn:{count:Bn,space:2},_t=Jn.count,Gt=Jn.space,Pt=$e(Cr),ln=$e(fi),pn=ln.find(function(Ht){return Ht&&(0,re.Z)(Ht)==="object"}),Vt=pn&&(0,re.Z)(pn)==="object",Dt=Vt?"butt":$r,cn=_e(or,Hn,0,100,vr,Ar,Dr,Or,Dt,tr),xn=fe(),Nn=function(){var En=0;return Pt.map(function(Kn,nr){var rn=ln[nr]||ln[ln.length-1],bn=_e(or,Hn,En,Kn,vr,Ar,Dr,rn,Dt,tr);return En+=Kn,He.createElement(je,{key:nr,color:rn,ptg:Kn,radius:ur,prefixCls:Cn,gradientId:Dn,style:bn,strokeLinecap:Dt,strokeWidth:tr,gapDegree:Ar,ref:function(wn){xn[nr]=wn},size:ze})}).reverse()},Zn=function(){var En=Math.round(_t*(Pt[0]/100)),Kn=100/_t,nr=0;return new Array(_t).fill(null).map(function(rn,bn){var nn=bn<=En-1?ln[0]:Or,wn=nn&&(0,re.Z)(nn)==="object"?"url(#".concat(Dn,")"):void 0,gn=_e(or,Hn,nr,Kn,vr,Ar,Dr,nn,"butt",tr,Gt);return nr+=(Hn-gn.strokeDashoffset+Gt)*100/Hn,He.createElement("circle",{key:bn,className:"".concat(Cn,"-circle-path"),r:ur,cx:wi,cy:wi,stroke:wn,strokeWidth:tr,opacity:1,style:gn,ref:function(Ln){xn[bn]=Ln}})})};return He.createElement("svg",(0,ye.Z)({className:ce()("".concat(Cn,"-circle"),br),viewBox:"0 0 ".concat(ze," ").concat(ze),style:ai,id:on,role:"presentation"},at),!_t&&He.createElement("circle",{className:"".concat(Cn,"-circle-trail"),r:ur,cx:wi,cy:wi,stroke:Or,strokeLinecap:Dt,strokeWidth:er||tr,style:cn}),_t?Zn():Nn())},lt=et,ut={Line:ae,Circle:lt},yt=We(6848),qe=We(93398);function ot(Ft){return!Ft||Ft<0?0:Ft>100?100:Ft}function dt(Ft){let{success:Qt,successPercent:en}=Ft,on=en;return Qt&&"progress"in Qt&&(on=Qt.progress),Qt&&"percent"in Qt&&(on=Qt.percent),on}const St=Ft=>{let{percent:Qt,success:en,successPercent:on}=Ft;const Cn=ot(dt({success:en,successPercent:on}));return[Cn,ot(ot(Qt)-Cn)]},xt=Ft=>{let{success:Qt={},strokeColor:en}=Ft;const{strokeColor:on}=Qt;return[on||qe.presetPrimaryColors.green,en||null]},ft=(Ft,Qt,en)=>{var on,Cn,Bn,tr;let er=-1,cr=-1;if(Qt==="step"){const Ar=en.steps,Dr=en.strokeWidth;typeof Ft=="string"||typeof Ft=="undefined"?(er=Ft==="small"?2:14,cr=Dr!=null?Dr:8):typeof Ft=="number"?[er,cr]=[Ft,Ft]:[er=14,cr=8]=Ft,er*=Ar}else if(Qt==="line"){const Ar=en==null?void 0:en.strokeWidth;typeof Ft=="string"||typeof Ft=="undefined"?cr=Ar||(Ft==="small"?6:8):typeof Ft=="number"?[er,cr]=[Ft,Ft]:[er=-1,cr=8]=Ft}else(Qt==="circle"||Qt==="dashboard")&&(typeof Ft=="string"||typeof Ft=="undefined"?[er,cr]=Ft==="small"?[60,60]:[120,120]:typeof Ft=="number"?[er,cr]=[Ft,Ft]:(er=(Cn=(on=Ft[0])!==null&&on!==void 0?on:Ft[1])!==null&&Cn!==void 0?Cn:120,cr=(tr=(Bn=Ft[0])!==null&&Bn!==void 0?Bn:Ft[1])!==null&&tr!==void 0?tr:120));return[er,cr]},gt=3,vt=Ft=>gt/Ft*100;var Et=Ft=>{const{prefixCls:Qt,trailColor:en=null,strokeLinecap:on="round",gapPosition:Cn,gapDegree:Bn,width:tr=120,type:er,children:cr,success:Ar,size:Dr=tr}=Ft,[Or,$r]=ft(Dr,"circle");let{strokeWidth:ai}=Ft;ai===void 0&&(ai=Math.max(vt(Or),6));const br={width:Or,height:$r,fontSize:Or*.15+6},fi=He.useMemo(()=>{if(Bn||Bn===0)return Bn;if(er==="dashboard")return 75},[Bn,er]),Cr=Cn||er==="dashboard"&&"bottom"||void 0,at=Object.prototype.toString.call(Ft.strokeColor)==="[object Object]",wi=xt({success:Ar,strokeColor:Ft.strokeColor}),ui=ce()(`${Qt}-inner`,{[`${Qt}-circle-gradient`]:at}),Dn=He.createElement(lt,{percent:St(Ft),strokeWidth:ai,trailWidth:ai,strokeColor:wi,strokeLinecap:on,trailColor:en,prefixCls:Qt,gapDegree:fi,gapPosition:Cr});return He.createElement("div",{className:ui,style:br},Or<=20?He.createElement(yt.Z,{title:cr},He.createElement("span",null,Dn)):He.createElement(He.Fragment,null,Dn,cr))},Zt=function(Ft,Qt){var en={};for(var on in Ft)Object.prototype.hasOwnProperty.call(Ft,on)&&Qt.indexOf(on)<0&&(en[on]=Ft[on]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Cn=0,on=Object.getOwnPropertySymbols(Ft);Cn<on.length;Cn++)Qt.indexOf(on[Cn])<0&&Object.prototype.propertyIsEnumerable.call(Ft,on[Cn])&&(en[on[Cn]]=Ft[on[Cn]]);return en};const wt=Ft=>{let Qt=[];return Object.keys(Ft).forEach(en=>{const on=parseFloat(en.replace(/%/g,""));isNaN(on)||Qt.push({key:on,value:Ft[en]})}),Qt=Qt.sort((en,on)=>en.key-on.key),Qt.map(en=>{let{key:on,value:Cn}=en;return`${Cn} ${on}%`}).join(", ")},bt=(Ft,Qt)=>{const{from:en=qe.presetPrimaryColors.blue,to:on=qe.presetPrimaryColors.blue,direction:Cn=Qt==="rtl"?"to left":"to right"}=Ft,Bn=Zt(Ft,["from","to","direction"]);if(Object.keys(Bn).length!==0){const tr=wt(Bn);return{backgroundImage:`linear-gradient(${Cn}, ${tr})`}}return{backgroundImage:`linear-gradient(${Cn}, ${en}, ${on})`}};var nt=Ft=>{const{prefixCls:Qt,direction:en,percent:on,size:Cn,strokeWidth:Bn,strokeColor:tr,strokeLinecap:er="round",children:cr,trailColor:Ar=null,success:Dr}=Ft,Or=tr&&typeof tr!="string"?bt(tr,en):{backgroundColor:tr},$r=er==="square"||er==="butt"?0:void 0,ai={backgroundColor:Ar||void 0,borderRadius:$r},br=Cn!=null?Cn:[-1,Bn||(Cn==="small"?6:8)],[fi,Cr]=ft(br,"line",{strokeWidth:Bn}),at=Object.assign({width:`${ot(on)}%`,height:Cr,borderRadius:$r},Or),wi=dt(Ft),ui={width:`${ot(wi)}%`,height:Cr,borderRadius:$r,backgroundColor:Dr==null?void 0:Dr.strokeColor},Dn={width:fi<0?"100%":fi,height:Cr};return He.createElement(He.Fragment,null,He.createElement("div",{className:`${Qt}-outer`,style:Dn},He.createElement("div",{className:`${Qt}-inner`,style:ai},He.createElement("div",{className:`${Qt}-bg`,style:at}),wi!==void 0?He.createElement("div",{className:`${Qt}-success-bg`,style:ui}):null)),cr)},Ce=Ft=>{const{size:Qt,steps:en,percent:on=0,strokeWidth:Cn=8,strokeColor:Bn,trailColor:tr=null,prefixCls:er,children:cr}=Ft,Ar=Math.round(en*(on/100)),Dr=Qt==="small"?2:14,Or=Qt!=null?Qt:[Dr,Cn],[$r,ai]=ft(Or,"step",{steps:en,strokeWidth:Cn}),br=$r/en,fi=new Array(en);for(let Cr=0;Cr<en;Cr++){const at=Array.isArray(Bn)?Bn[Cr]:Bn;fi[Cr]=He.createElement("div",{key:Cr,className:ce()(`${er}-steps-item`,{[`${er}-steps-item-active`]:Cr<=Ar-1}),style:{backgroundColor:Cr<=Ar-1?at:tr,width:br,height:ai}})}return He.createElement("div",{className:`${er}-steps-outer`},fi,cr)},Ye=We(93083),Je=We(17313),Me=We(83116),Ge=We(37613);const Ke=Ft=>{const Qt=Ft?"100%":"-100%";return new Ye.Keyframes(`antProgress${Ft?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Qt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Qt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ve=Ft=>{const{componentCls:Qt,iconCls:en}=Ft;return{[Qt]:Object.assign(Object.assign({},(0,Je.Wf)(Ft)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ft.fontSize,marginInlineEnd:Ft.marginXS,marginBottom:Ft.marginXS},[`${Qt}-outer`]:{display:"inline-block",width:"100%"},[`&${Qt}-show-info`]:{[`${Qt}-outer`]:{marginInlineEnd:`calc(-2em - ${Ft.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Ft.paddingXS}px)`}},[`${Qt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Ft.remainingColor,borderRadius:Ft.lineBorderRadius},[`${Qt}-inner:not(${Qt}-circle-gradient)`]:{[`${Qt}-circle-path`]:{stroke:Ft.defaultColor}},[`${Qt}-success-bg, ${Qt}-bg`]:{position:"relative",backgroundColor:Ft.defaultColor,borderRadius:Ft.lineBorderRadius,transition:`all ${Ft.motionDurationSlow} ${Ft.motionEaseInOutCirc}`},[`${Qt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ft.colorSuccess},[`${Qt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Ft.marginXS,color:Ft.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[en]:{fontSize:Ft.fontSize}},[`&${Qt}-status-active`]:{[`${Qt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ft.colorBgContainer,borderRadius:Ft.lineBorderRadius,opacity:0,animationName:Ke(),animationDuration:Ft.progressActiveMotionDuration,animationTimingFunction:Ft.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Qt}-rtl${Qt}-status-active`]:{[`${Qt}-bg::before`]:{animationName:Ke(!0)}},[`&${Qt}-status-exception`]:{[`${Qt}-bg`]:{backgroundColor:Ft.colorError},[`${Qt}-text`]:{color:Ft.colorError}},[`&${Qt}-status-exception ${Qt}-inner:not(${Qt}-circle-gradient)`]:{[`${Qt}-circle-path`]:{stroke:Ft.colorError}},[`&${Qt}-status-success`]:{[`${Qt}-bg`]:{backgroundColor:Ft.colorSuccess},[`${Qt}-text`]:{color:Ft.colorSuccess}},[`&${Qt}-status-success ${Qt}-inner:not(${Qt}-circle-gradient)`]:{[`${Qt}-circle-path`]:{stroke:Ft.colorSuccess}}})}},Qe=Ft=>{const{componentCls:Qt,iconCls:en}=Ft;return{[Qt]:{[`${Qt}-circle-trail`]:{stroke:Ft.remainingColor},[`&${Qt}-circle ${Qt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Qt}-circle ${Qt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ft.circleTextColor,fontSize:Ft.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[en]:{fontSize:`${Ft.fontSize/Ft.fontSizeSM}em`}},[`${Qt}-circle&-status-exception`]:{[`${Qt}-text`]:{color:Ft.colorError}},[`${Qt}-circle&-status-success`]:{[`${Qt}-text`]:{color:Ft.colorSuccess}}},[`${Qt}-inline-circle`]:{lineHeight:1,[`${Qt}-inner`]:{verticalAlign:"bottom"}}}},ht=Ft=>{const{componentCls:Qt}=Ft;return{[Qt]:{[`${Qt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ft.progressStepMinWidth,marginInlineEnd:Ft.progressStepMarginInlineEnd,backgroundColor:Ft.remainingColor,transition:`all ${Ft.motionDurationSlow}`,"&-active":{backgroundColor:Ft.defaultColor}}}}}},At=Ft=>{const{componentCls:Qt,iconCls:en}=Ft;return{[Qt]:{[`${Qt}-small&-line, ${Qt}-small&-line ${Qt}-text ${en}`]:{fontSize:Ft.fontSizeSM}}}};var pt=(0,Me.Z)("Progress",Ft=>{const Qt=Ft.marginXXS/2,en=(0,Ge.TS)(Ft,{progressStepMarginInlineEnd:Qt,progressStepMinWidth:Qt,progressActiveMotionDuration:"2.4s"});return[Ve(en),Qe(en),ht(en),At(en)]},Ft=>({circleTextColor:Ft.colorText,defaultColor:Ft.colorInfo,remainingColor:Ft.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ot=function(Ft,Qt){var en={};for(var on in Ft)Object.prototype.hasOwnProperty.call(Ft,on)&&Qt.indexOf(on)<0&&(en[on]=Ft[on]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Cn=0,on=Object.getOwnPropertySymbols(Ft);Cn<on.length;Cn++)Qt.indexOf(on[Cn])<0&&Object.prototype.propertyIsEnumerable.call(Ft,on[Cn])&&(en[on[Cn]]=Ft[on[Cn]]);return en};const Kt=null,jt=["normal","exception","active","success"];var Xt=He.forwardRef((Ft,Qt)=>{const{prefixCls:en,className:on,rootClassName:Cn,steps:Bn,strokeColor:tr,percent:er=0,size:cr="default",showInfo:Ar=!0,type:Dr="line",status:Or,format:$r,style:ai}=Ft,br=Ot(Ft,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),fi=He.useMemo(()=>{var Pt,ln;const pn=dt(Ft);return parseInt(pn!==void 0?(Pt=pn!=null?pn:0)===null||Pt===void 0?void 0:Pt.toString():(ln=er!=null?er:0)===null||ln===void 0?void 0:ln.toString(),10)},[er,Ft.success,Ft.successPercent]),Cr=He.useMemo(()=>!jt.includes(Or)&&fi>=100?"success":Or||"normal",[Or,fi]),{getPrefixCls:at,direction:wi,progress:ui}=He.useContext(Ae.E_),Dn=at("progress",en),[ur,or]=pt(Dn),vr=He.useMemo(()=>{if(!Ar)return null;const Pt=dt(Ft);let ln;const pn=$r||(Dt=>`${Dt}%`),Vt=Dr==="line";return $r||Cr!=="exception"&&Cr!=="success"?ln=pn(ot(er),ot(Pt)):Cr==="exception"?ln=Vt?He.createElement(Ze.Z,null):He.createElement(Ne.Z,null):Cr==="success"&&(ln=Vt?He.createElement(mt.Z,null):He.createElement(oe.Z,null)),He.createElement("span",{className:`${Dn}-text`,title:typeof ln=="string"?ln:void 0},ln)},[Ar,er,fi,Cr,Dr,Dn,$r]),Hn=Array.isArray(tr)?tr[0]:tr,Jn=typeof tr=="string"||Array.isArray(tr)?tr:void 0;let _t;Dr==="line"?_t=Bn?He.createElement(Ce,Object.assign({},Ft,{strokeColor:Jn,prefixCls:Dn,steps:Bn}),vr):He.createElement(nt,Object.assign({},Ft,{strokeColor:Hn,prefixCls:Dn,direction:wi}),vr):(Dr==="circle"||Dr==="dashboard")&&(_t=He.createElement(Et,Object.assign({},Ft,{strokeColor:Hn,prefixCls:Dn,progressStatus:Cr}),vr));const Gt=ce()(Dn,`${Dn}-status-${Cr}`,`${Dn}-${Dr==="dashboard"&&"circle"||Bn&&"steps"||Dr}`,{[`${Dn}-inline-circle`]:Dr==="circle"&&ft(cr,"circle")[0]<=20,[`${Dn}-show-info`]:Ar,[`${Dn}-${cr}`]:typeof cr=="string",[`${Dn}-rtl`]:wi==="rtl"},ui==null?void 0:ui.className,on,Cn,or);return ur(He.createElement("div",Object.assign({ref:Qt,style:Object.assign(Object.assign({},ui==null?void 0:ui.style),ai),className:Gt,role:"progressbar","aria-valuenow":fi},(0,Pe.Z)(br,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),_t))}),sn=Xt},13570:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return ot}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(St,xt){return mt.createElement(Ne.Z,(0,He.Z)({},St,{ref:xt,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce,Ae=We(92310),ye=We.n(Ae),De=We(400),me=We(33606),we=We(37061),fe=We(18929),z=We(10228),ee=We(26112);function ae(dt,St){var xt=dt.disabled,ft=dt.prefixCls,gt=dt.character,vt=dt.characterRender,Tt=dt.index,Et=dt.count,Zt=dt.value,wt=dt.allowHalf,bt=dt.focused,it=dt.onHover,nt=dt.onClick,xe=function(Qe){it(Qe,Tt)},Ce=function(Qe){nt(Qe,Tt)},Ye=function(Qe){Qe.keyCode===z.Z.ENTER&&nt(Qe,Tt)},Je=Tt+1,Me=new Set([ft]);Zt===0&&Tt===0&&bt?Me.add("".concat(ft,"-focused")):wt&&Zt+.5>=Je&&Zt<Je?(Me.add("".concat(ft,"-half")),Me.add("".concat(ft,"-active")),bt&&Me.add("".concat(ft,"-focused"))):(Je<=Zt?Me.add("".concat(ft,"-full")):Me.add("".concat(ft,"-zero")),Je===Zt&&bt&&Me.add("".concat(ft,"-focused")));var Ge=typeof gt=="function"?gt(dt):gt,Ke=mt.createElement("li",{className:ye()(Array.from(Me)),ref:St},mt.createElement("div",{onClick:xt?null:Ce,onKeyDown:xt?null:Ye,onMouseMove:xt?null:xe,role:"radio","aria-checked":Zt>Tt?"true":"false","aria-posinset":Tt+1,"aria-setsize":Et,tabIndex:xt?-1:0},mt.createElement("div",{className:"".concat(ft,"-first")},Ge),mt.createElement("div",{className:"".concat(ft,"-second")},Ge)));return vt&&(Ke=vt(Ke,dt)),Ke}var re=mt.forwardRef(ae);function le(){var dt=mt.useRef({});function St(ft){return dt.current[ft]}function xt(ft){return function(gt){dt.current[ft]=gt}}return[St,xt]}function ue(dt){var St=dt.pageXOffset,xt="scrollLeft";if(typeof St!="number"){var ft=dt.document;St=ft.documentElement[xt],typeof St!="number"&&(St=ft.body[xt])}return St}function pe(dt){var St,xt,ft=dt.ownerDocument,gt=ft.body,vt=ft&&ft.documentElement,Tt=dt.getBoundingClientRect();return St=Tt.left,xt=Tt.top,St-=vt.clientLeft||gt.clientLeft||0,xt-=vt.clientTop||gt.clientTop||0,{left:St,top:xt}}function Ee(dt){var St=pe(dt),xt=dt.ownerDocument,ft=xt.defaultView||xt.parentWindow;return St.left+=ue(ft),St.left}var be=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ie(dt,St){var xt,ft=dt.prefixCls,gt=ft===void 0?"rc-rate":ft,vt=dt.className,Tt=dt.defaultValue,Et=dt.value,Zt=dt.count,wt=Zt===void 0?5:Zt,bt=dt.allowHalf,it=bt===void 0?!1:bt,nt=dt.allowClear,xe=nt===void 0?!0:nt,Ce=dt.character,Ye=Ce===void 0?"\u2605":Ce,Je=dt.characterRender,Me=dt.disabled,Ge=dt.direction,Ke=Ge===void 0?"ltr":Ge,Ve=dt.tabIndex,Qe=Ve===void 0?0:Ve,ht=dt.autoFocus,At=dt.onHoverChange,pt=dt.onChange,Ot=dt.onFocus,Kt=dt.onBlur,jt=dt.onKeyDown,Rt=dt.onMouseLeave,Xt=(0,we.Z)(dt,be),sn=le(),Ft=(0,me.Z)(sn,2),Qt=Ft[0],en=Ft[1],on=mt.useRef(null),Cn=function(){if(!Me){var Dt;(Dt=on.current)===null||Dt===void 0||Dt.focus()}};mt.useImperativeHandle(St,function(){return{focus:Cn,blur:function(){if(!Me){var Dt;(Dt=on.current)===null||Dt===void 0||Dt.blur()}}}});var Bn=(0,fe.Z)(Tt||0,{value:Et}),tr=(0,me.Z)(Bn,2),er=tr[0],cr=tr[1],Ar=(0,fe.Z)(null),Dr=(0,me.Z)(Ar,2),Or=Dr[0],$r=Dr[1],ai=function(Dt,cn){var xn=Ke==="rtl",Nn=Dt+1;if(it){var Zn=Qt(Dt),Ht=Ee(Zn),En=Zn.clientWidth;(xn&&cn-Ht>En/2||!xn&&cn-Ht<En/2)&&(Nn-=.5)}return Nn},br=function(Dt){cr(Dt),pt==null||pt(Dt)},fi=mt.useState(!1),Cr=(0,me.Z)(fi,2),at=Cr[0],wi=Cr[1],ui=function(){wi(!0),Ot==null||Ot()},Dn=function(){wi(!1),Kt==null||Kt()},ur=mt.useState(null),or=(0,me.Z)(ur,2),vr=or[0],Hn=or[1],Jn=function(Dt,cn){var xn=ai(cn,Dt.pageX);xn!==Or&&(Hn(xn),$r(null)),At==null||At(xn)},_t=function(Dt){Me||(Hn(null),$r(null),At==null||At(void 0)),Dt&&(Rt==null||Rt(Dt))},Gt=function(Dt,cn){var xn=ai(cn,Dt.pageX),Nn=!1;xe&&(Nn=xn===er),_t(),br(Nn?0:xn),$r(Nn?xn:null)},Pt=function(Dt){var cn=Dt.keyCode,xn=Ke==="rtl",Nn=er;cn===z.Z.RIGHT&&Nn<wt&&!xn?(it?Nn+=.5:Nn+=1,br(Nn),Dt.preventDefault()):cn===z.Z.LEFT&&Nn>0&&!xn||cn===z.Z.RIGHT&&Nn>0&&xn?(it?Nn-=.5:Nn-=1,br(Nn),Dt.preventDefault()):cn===z.Z.LEFT&&Nn<wt&&xn&&(it?Nn+=.5:Nn+=1,br(Nn),Dt.preventDefault()),jt==null||jt(Dt)};mt.useEffect(function(){ht&&!Me&&Cn()},[]);var ln=new Array(wt).fill(0).map(function(Vt,Dt){return mt.createElement(re,{ref:en(Dt),index:Dt,count:wt,disabled:Me,prefixCls:"".concat(gt,"-star"),allowHalf:it,value:vr===null?er:vr,onClick:Gt,onHover:Jn,key:Vt||Dt,character:Ye,characterRender:Je,focused:at})}),pn=ye()(gt,vt,(xt={},(0,De.Z)(xt,"".concat(gt,"-disabled"),Me),(0,De.Z)(xt,"".concat(gt,"-rtl"),Ke==="rtl"),xt));return mt.createElement("ul",(0,He.Z)({className:pn,onMouseLeave:_t,tabIndex:Me?-1:Qe,onFocus:Me?null:ui,onBlur:Me?null:Dn,onKeyDown:Me?null:Pt,ref:on,role:"radiogroup"},(0,ee.Z)(Xt,{aria:!0,data:!0,attr:!0})),ln)}var Le=mt.forwardRef(Ie),Fe=Le,Oe=We(36355),je=We(6848),ze=We(17313),_e=We(83116),Ue=We(37613);const $e=dt=>{const{componentCls:St}=dt;return{[`${St}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:dt.marginXS},"> div":{transition:`all ${dt.motionDurationMid}, outline 0s`,"&:hover":{transform:dt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${dt.lineWidth}px dashed ${dt.starColor}`,transform:dt.starHoverScale}},"&-first, &-second":{color:dt.starBg,transition:`all ${dt.motionDurationMid}`,userSelect:"none",[dt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${St}-star-first, &-half ${St}-star-second`]:{opacity:1},[`&-half ${St}-star-first, &-full ${St}-star-second`]:{color:"inherit"}}}},et=dt=>({[`&-rtl${dt.componentCls}`]:{direction:"rtl"}}),lt=dt=>{const{componentCls:St}=dt;return{[St]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ze.Wf)(dt)),{display:"inline-block",margin:0,padding:0,color:dt.starColor,fontSize:dt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${St} ${St}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),$e(dt)),{[`+ ${St}-text`]:{display:"inline-block",marginInlineStart:dt.marginXS,fontSize:dt.fontSize}}),et(dt))}};var ut=(0,_e.Z)("Rate",dt=>{const St=(0,Ue.TS)(dt,{});return[lt(St)]},dt=>({starColor:dt.yellow6,starSize:dt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:dt.colorFillContent})),yt=function(dt,St){var xt={};for(var ft in dt)Object.prototype.hasOwnProperty.call(dt,ft)&&St.indexOf(ft)<0&&(xt[ft]=dt[ft]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,ft=Object.getOwnPropertySymbols(dt);gt<ft.length;gt++)St.indexOf(ft[gt])<0&&Object.prototype.propertyIsEnumerable.call(dt,ft[gt])&&(xt[ft[gt]]=dt[ft[gt]]);return xt},ot=mt.forwardRef((dt,St)=>{const{prefixCls:xt,className:ft,rootClassName:gt,style:vt,tooltips:Tt,character:Et=mt.createElement(Pe,null)}=dt,Zt=yt(dt,["prefixCls","className","rootClassName","style","tooltips","character"]),wt=(Me,Ge)=>{let{index:Ke}=Ge;return Tt?mt.createElement(je.Z,{title:Tt[Ke]},Me):Me},{getPrefixCls:bt,direction:it,rate:nt}=mt.useContext(Oe.E_),xe=bt("rate",xt),[Ce,Ye]=ut(xe),Je=Object.assign(Object.assign({},nt==null?void 0:nt.style),vt);return Ce(mt.createElement(Fe,Object.assign({ref:St,character:Et,characterRender:wt},Zt,{className:ye()(ft,gt,Ye,nt==null?void 0:nt.className),style:Je,prefixCls:xe,direction:it})))})},57809:function(kn,fn,We){"use strict";var He=We(92310),mt=We.n(He),oe=We(77861),Ze=We(2738),Ne=We(59301),ge=We(53487),ce=We(62892),Pe=We(19080),Ae=We(36355),ye=We(1684),De=We(93891),me=We(19716),we=We(32441),fe=We(33234),z=We(14154),ee=We(58582),ae=We(84443),re=We(66339),le=function(Ie,Le){var Fe={};for(var Oe in Ie)Object.prototype.hasOwnProperty.call(Ie,Oe)&&Le.indexOf(Oe)<0&&(Fe[Oe]=Ie[Oe]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Oe=Object.getOwnPropertySymbols(Ie);je<Oe.length;je++)Le.indexOf(Oe[je])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Oe[je])&&(Fe[Oe[je]]=Ie[Oe[je]]);return Fe};const ue="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(Ie,Le)=>{var Fe,{prefixCls:Oe,bordered:je=!0,className:ze,rootClassName:_e,getPopupContainer:Ue,popupClassName:$e,dropdownClassName:et,listHeight:lt=256,placement:ut,listItemHeight:yt=24,size:qe,disabled:ot,notFoundContent:dt,status:St,builtinPlacements:xt,dropdownMatchSelectWidth:ft,popupMatchSelectWidth:gt,direction:vt,style:Tt,allowClear:Et}=Ie,Zt=le(Ie,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:wt,getPrefixCls:bt,renderEmpty:it,direction:nt,virtual:xe,popupMatchSelectWidth:Ce,popupOverflow:Ye,select:Je}=Ne.useContext(Ae.E_),Me=bt("select",Oe),Ge=bt(),Ke=vt!=null?vt:nt,{compactSize:Ve,compactItemClassnames:Qe}=(0,fe.ri)(Me,Ke),[ht,At]=(0,z.Z)(Me),pt=Ne.useMemo(()=>{const{mode:Cr}=Zt;if(Cr!=="combobox")return Cr===ue?"combobox":Cr},[Zt.mode]),Ot=pt==="multiple"||pt==="tags",Kt=(0,ae.Z)(Zt.suffixIcon,Zt.showArrow),jt=(Fe=gt!=null?gt:ft)!==null&&Fe!==void 0?Fe:Ce,{status:Rt,hasFeedback:Xt,isFormItemInput:sn,feedbackIcon:Ft}=Ne.useContext(we.aM),Qt=(0,Pe.F)(Rt,St);let en;dt!==void 0?en=dt:pt==="combobox"?en=null:en=(it==null?void 0:it("Select"))||Ne.createElement(De.Z,{componentName:"Select"});const{suffixIcon:on,itemIcon:Cn,removeIcon:Bn,clearIcon:tr}=(0,re.Z)(Object.assign(Object.assign({},Zt),{multiple:Ot,hasFeedback:Xt,feedbackIcon:Ft,showSuffixIcon:Kt,prefixCls:Me,showArrow:Zt.showArrow,componentName:"Select"})),er=Et===!0?{clearIcon:tr}:Et,cr=(0,Ze.Z)(Zt,["suffixIcon","itemIcon"]),Ar=mt()($e||et,{[`${Me}-dropdown-${Ke}`]:Ke==="rtl"},_e,At),Dr=(0,me.Z)(Cr=>{var at;return(at=qe!=null?qe:Ve)!==null&&at!==void 0?at:Cr}),Or=Ne.useContext(ye.Z),$r=ot!=null?ot:Or,ai=mt()({[`${Me}-lg`]:Dr==="large",[`${Me}-sm`]:Dr==="small",[`${Me}-rtl`]:Ke==="rtl",[`${Me}-borderless`]:!je,[`${Me}-in-form-item`]:sn},(0,Pe.Z)(Me,Qt,Xt),Qe,Je==null?void 0:Je.className,ze,_e,At),br=Ne.useMemo(()=>ut!==void 0?ut:Ke==="rtl"?"bottomRight":"bottomLeft",[ut,Ke]),fi=(0,ee.Z)(xt,Ye);return ht(Ne.createElement(oe.ZP,Object.assign({ref:Le,virtual:xe,showSearch:Je==null?void 0:Je.showSearch},cr,{style:Object.assign(Object.assign({},Je==null?void 0:Je.style),Tt),dropdownMatchSelectWidth:jt,builtinPlacements:fi,transitionName:(0,ce.m)(Ge,"slide-up",Zt.transitionName),listHeight:lt,listItemHeight:yt,mode:pt,prefixCls:Me,placement:br,direction:Ke,suffixIcon:on,menuItemSelectedIcon:Cn,removeIcon:Bn,allowClear:er,notFoundContent:en,className:ai,getPopupContainer:Ue||wt,dropdownClassName:Ar,disabled:$r})))},Ee=Ne.forwardRef(pe),be=(0,ge.Z)(Ee);Ee.SECRET_COMBOBOX_MODE_DO_NOT_USE=ue,Ee.Option=oe.Wx,Ee.OptGroup=oe.Xo,Ee._InternalPanelDoNotUseOrYouWillBeFired=be,fn.default=Ee},14154:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Ee}});var He=We(17313),mt=We(74207),oe=We(37613),Ze=We(83116),Ne=We(13826),ge=We(92899);const ce=be=>{const{optionHeight:Ie,optionFontSize:Le,optionLineHeight:Fe,optionPadding:Oe}=be;return{position:"relative",display:"block",minHeight:Ie,padding:Oe,color:be.colorText,fontWeight:"normal",fontSize:Le,lineHeight:Fe,boxSizing:"border-box"}};var Ae=be=>{const{antCls:Ie,componentCls:Le}=be,Fe=`${Le}-item`,Oe=`&${Ie}-slide-up-enter${Ie}-slide-up-enter-active`,je=`&${Ie}-slide-up-appear${Ie}-slide-up-appear-active`,ze=`&${Ie}-slide-up-leave${Ie}-slide-up-leave-active`,_e=`${Le}-dropdown-placement-`;return[{[`${Le}-dropdown`]:Object.assign(Object.assign({},(0,He.Wf)(be)),{position:"absolute",top:-9999,zIndex:be.zIndexPopup,boxSizing:"border-box",padding:be.paddingXXS,overflow:"hidden",fontSize:be.fontSize,fontVariant:"initial",backgroundColor:be.colorBgElevated,borderRadius:be.borderRadiusLG,outline:"none",boxShadow:be.boxShadowSecondary,[`
|
|
|
${Oe}${_e}bottomLeft,
|
|
|
${je}${_e}bottomLeft
|
|
|
`]:{animationName:Ne.fJ},[`
|
|
|
${Oe}${_e}topLeft,
|
|
|
${je}${_e}topLeft,
|
|
|
${Oe}${_e}topRight,
|
|
|
${je}${_e}topRight
|
|
|
`]:{animationName:Ne.Qt},[`${ze}${_e}bottomLeft`]:{animationName:Ne.Uw},[`
|
|
|
${ze}${_e}topLeft,
|
|
|
${ze}${_e}topRight
|
|
|
`]:{animationName:Ne.ly},"&-hidden":{display:"none"},[`${Fe}`]:Object.assign(Object.assign({},ce(be)),{cursor:"pointer",transition:`background ${be.motionDurationSlow} ease`,borderRadius:be.borderRadiusSM,"&-group":{color:be.colorTextDescription,fontSize:be.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},He.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Fe}-option-disabled)`]:{backgroundColor:be.optionActiveBg},[`&-selected:not(${Fe}-option-disabled)`]:{color:be.optionSelectedColor,fontWeight:be.optionSelectedFontWeight,backgroundColor:be.optionSelectedBg,[`${Fe}-option-state`]:{color:be.colorPrimary}},"&-disabled":{[`&${Fe}-option-selected`]:{backgroundColor:be.colorBgContainerDisabled},color:be.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:be.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Ne.oN)(be,"slide-up"),(0,Ne.oN)(be,"slide-down"),(0,ge.Fm)(be,"move-up"),(0,ge.Fm)(be,"move-down")]};const ye=2,De=be=>{let{controlHeightSM:Ie,controlHeight:Le,lineWidth:Fe}=be;const Oe=(Le-Ie)/2-Fe,je=Math.ceil(Oe/2);return[Oe,je]};function me(be,Ie){const{componentCls:Le,iconCls:Fe}=be,Oe=`${Le}-selection-overflow`,je=be.multipleSelectItemHeight,[ze]=De(be),_e=Ie?`${Le}-${Ie}`:"";return{[`${Le}-multiple${_e}`]:{fontSize:be.fontSize,[Oe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Le}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ze-ye}px ${ye*2}px`,borderRadius:be.borderRadius,[`${Le}-show-search&`]:{cursor:"text"},[`${Le}-disabled&`]:{background:be.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ye}px 0`,lineHeight:`${je}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Le}-show-arrow ${Le}-selector,
|
|
|
&${Le}-allow-clear ${Le}-selector
|
|
|
`]:{paddingInlineEnd:be.fontSizeIcon+be.controlPaddingHorizontal},[`${Le}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:je,marginTop:ye,marginBottom:ye,lineHeight:`${je-be.lineWidth*2}px`,background:be.multipleItemBg,border:`${be.lineWidth}px ${be.lineType} ${be.multipleItemBorderColor}`,borderRadius:be.borderRadiusSM,cursor:"default",transition:`font-size ${be.motionDurationSlow}, line-height ${be.motionDurationSlow}, height ${be.motionDurationSlow}`,userSelect:"none",marginInlineEnd:ye*2,paddingInlineStart:be.paddingXS,paddingInlineEnd:be.paddingXS/2,[`${Le}-disabled&`]:{color:be.multipleItemColorDisabled,borderColor:be.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:be.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,He.Ro)()),{display:"inline-flex",alignItems:"center",color:be.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Fe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:be.colorIconHover}})},[`${Oe}-item + ${Oe}-item`]:{[`${Le}-selection-search`]:{marginInlineStart:0}},[`${Le}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:be.inputPaddingHorizontalBase-ze,"\n &-input,\n &-mirror\n ":{height:je,fontFamily:be.fontFamily,lineHeight:`${je}px`,transition:`all ${be.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Le}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:be.inputPaddingHorizontalBase,insetInlineEnd:be.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${be.motionDurationSlow}`}}}}var fe=be=>{const{componentCls:Ie}=be,Le=(0,oe.TS)(be,{controlHeight:be.controlHeightSM,multipleSelectItemHeight:be.controlHeightXS,borderRadius:be.borderRadiusSM,borderRadiusSM:be.borderRadiusXS}),Fe=(0,oe.TS)(be,{fontSize:be.fontSizeLG,controlHeight:be.controlHeightLG,multipleSelectItemHeight:be.multipleItemHeightLG,borderRadius:be.borderRadiusLG,borderRadiusSM:be.borderRadius}),[,Oe]=De(be);return[me(be),me(Le,"sm"),{[`${Ie}-multiple${Ie}-sm`]:{[`${Ie}-selection-placeholder`]:{insetInline:be.controlPaddingHorizontalSM-be.lineWidth},[`${Ie}-selection-search`]:{marginInlineStart:Oe}}},me(Fe,"lg")]};function z(be,Ie){const{componentCls:Le,inputPaddingHorizontalBase:Fe,borderRadius:Oe}=be,je=be.controlHeight-be.lineWidth*2,ze=Math.ceil(be.fontSize*1.25),_e=Ie?`${Le}-${Ie}`:"";return{[`${Le}-single${_e}`]:{fontSize:be.fontSize,[`${Le}-selector`]:Object.assign(Object.assign({},(0,He.Wf)(be)),{display:"flex",borderRadius:Oe,[`${Le}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Fe,insetInlineEnd:Fe,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Le}-selection-item,
|
|
|
${Le}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${je}px`,transition:`all ${be.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${je}px`}},[`${Le}-selection-item`]:{position:"relative",userSelect:"none"},[`${Le}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Le}-selection-item:after`,`${Le}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Le}-show-arrow ${Le}-selection-item,
|
|
|
&${Le}-show-arrow ${Le}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ze},[`&${Le}-open ${Le}-selection-item`]:{color:be.colorTextPlaceholder},[`&:not(${Le}-customize-input)`]:{[`${Le}-selector`]:{width:"100%",height:be.controlHeight,padding:`0 ${Fe}px`,[`${Le}-selection-search-input`]:{height:je},"&:after":{lineHeight:`${je}px`}}},[`&${Le}-customize-input`]:{[`${Le}-selector`]:{"&:after":{display:"none"},[`${Le}-selection-search`]:{position:"static",width:"100%"},[`${Le}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Fe}px`,"&:after":{display:"none"}}}}}}}function ee(be){const{componentCls:Ie}=be,Le=be.controlPaddingHorizontalSM-be.lineWidth;return[z(be),z((0,oe.TS)(be,{controlHeight:be.controlHeightSM,borderRadius:be.borderRadiusSM}),"sm"),{[`${Ie}-single${Ie}-sm`]:{[`&:not(${Ie}-customize-input)`]:{[`${Ie}-selection-search`]:{insetInlineStart:Le,insetInlineEnd:Le},[`${Ie}-selector`]:{padding:`0 ${Le}px`},[`&${Ie}-show-arrow ${Ie}-selection-search`]:{insetInlineEnd:Le+be.fontSize*1.5},[`
|
|
|
&${Ie}-show-arrow ${Ie}-selection-item,
|
|
|
&${Ie}-show-arrow ${Ie}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:be.fontSize*1.5}}}},z((0,oe.TS)(be,{controlHeight:be.singleItemHeightLG,fontSize:be.fontSizeLG,borderRadius:be.borderRadiusLG}),"lg")]}const ae=be=>{const{componentCls:Ie,selectorBg:Le}=be;return{position:"relative",backgroundColor:Le,border:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`,transition:`all ${be.motionDurationMid} ${be.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ie}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ie}-disabled&`]:{color:be.colorTextDisabled,background:be.colorBgContainerDisabled,cursor:"not-allowed",[`${Ie}-multiple&`]:{background:be.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},re=function(be,Ie){let Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Fe,borderHoverColor:Oe,outlineColor:je,antCls:ze}=Ie,_e=Le?{[`${Fe}-selector`]:{borderColor:Oe}}:{};return{[be]:{[`&:not(${Fe}-disabled):not(${Fe}-customize-input):not(${ze}-pagination-size-changer)`]:Object.assign(Object.assign({},_e),{[`${Fe}-focused& ${Fe}-selector`]:{borderColor:Oe,boxShadow:`0 0 0 ${Ie.controlOutlineWidth}px ${je}`,outline:0},[`&:hover ${Fe}-selector`]:{borderColor:Oe}})}}},le=be=>{const{componentCls:Ie}=be;return{[`${Ie}-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=be=>{const{componentCls:Ie,inputPaddingHorizontalBase:Le,iconCls:Fe}=be;return{[Ie]:Object.assign(Object.assign({},(0,He.Wf)(be)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ie}-customize-input) ${Ie}-selector`]:Object.assign(Object.assign({},ae(be)),le(be)),[`${Ie}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},He.vS),[`${Ie}-selection-placeholder`]:Object.assign(Object.assign({},He.vS),{flex:1,color:be.colorTextPlaceholder,pointerEvents:"none"}),[`${Ie}-arrow`]:Object.assign(Object.assign({},(0,He.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Le,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Fe]:{verticalAlign:"top",transition:`transform ${be.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ie}-suffix)`]:{pointerEvents:"auto"}},[`${Ie}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ie}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Le,zIndex:1,display:"inline-block",width:be.fontSizeIcon,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:be.clearBg,cursor:"pointer",opacity:0,transition:`color ${be.motionDurationMid} ease, opacity ${be.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:be.colorTextTertiary}},"&:hover":{[`${Ie}-clear`]:{opacity:1}}}),[`${Ie}-has-feedback`]:{[`${Ie}-clear`]:{insetInlineEnd:Le+be.fontSize+be.paddingXS}}}},pe=be=>{const{componentCls:Ie}=be;return[{[Ie]:{[`&-borderless ${Ie}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ie}-in-form-item`]:{width:"100%"}}},ue(be),ee(be),fe(be),Ae(be),{[`${Ie}-rtl`]:{direction:"rtl"}},re(Ie,(0,oe.TS)(be,{borderHoverColor:be.colorPrimaryHover,outlineColor:be.controlOutline})),re(`${Ie}-status-error`,(0,oe.TS)(be,{borderHoverColor:be.colorErrorHover,outlineColor:be.colorErrorOutline}),!0),re(`${Ie}-status-warning`,(0,oe.TS)(be,{borderHoverColor:be.colorWarningHover,outlineColor:be.colorWarningOutline}),!0),(0,mt.c)(be,{borderElCls:`${Ie}-selector`,focusElCls:`${Ie}-focused`})]};var Ee=(0,Ze.Z)("Select",(be,Ie)=>{let{rootPrefixCls:Le}=Ie;const Fe=(0,oe.TS)(be,{rootPrefixCls:Le,inputPaddingHorizontalBase:be.paddingSM-1,multipleSelectItemHeight:be.multipleItemHeight});return[pe(Fe)]},be=>{const{fontSize:Ie,lineHeight:Le,controlHeight:Fe,controlPaddingHorizontal:Oe,zIndexPopupBase:je,colorText:ze,fontWeightStrong:_e,controlItemBgActive:Ue,controlItemBgHover:$e,colorBgContainer:et,colorFillSecondary:lt,controlHeightLG:ut,controlHeightSM:yt,colorBgContainerDisabled:qe,colorTextDisabled:ot}=be;return{zIndexPopup:je+50,optionSelectedColor:ze,optionSelectedFontWeight:_e,optionSelectedBg:Ue,optionActiveBg:$e,optionPadding:`${(Fe-Ie*Le)/2}px ${Oe}px`,optionFontSize:Ie,optionLineHeight:Le,optionHeight:Fe,selectorBg:et,clearBg:et,singleItemHeightLG:ut,multipleItemBg:lt,multipleItemBorderColor:"transparent",multipleItemHeight:yt,multipleItemHeightLG:Fe,multipleSelectorBgDisabled:qe,multipleItemColorDisabled:ot,multipleItemBorderColorDisabled:"transparent"}})},58582:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return mt}});const He=oe=>{const Ne={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Ne),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ne),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ne),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ne),{points:["br","tr"],offset:[0,-4]})}};function mt(oe,Ze){return oe||He(Ze)}},84443:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return He}});function He(mt,oe){return oe!==void 0?oe:mt!==null}},66339:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});var He=We(40001),mt=We(19248),oe=We(99267),Ze=We(84105),Ne=We(58617),ge=We(47472),ce=We(59301);function Pe(Ae){let{suffixIcon:ye,clearIcon:De,menuItemSelectedIcon:me,removeIcon:we,loading:fe,multiple:z,hasFeedback:ee,prefixCls:ae,showSuffixIcon:re,feedbackIcon:le,showArrow:ue,componentName:pe}=Ae;const Ee=De!=null?De:ce.createElement(mt.Z,null),be=Oe=>ye===null&&!ee&&!ue?null:ce.createElement(ce.Fragment,null,re!==!1&&Oe,ee&&le);let Ie=null;if(ye!==void 0)Ie=be(ye);else if(fe)Ie=be(ce.createElement(Ne.Z,{spin:!0}));else{const Oe=`${ae}-suffix`;Ie=je=>{let{open:ze,showSearch:_e}=je;return be(ze&&_e?ce.createElement(ge.Z,{className:Oe}):ce.createElement(Ze.Z,{className:Oe}))}}let Le=null;me!==void 0?Le=me:z?Le=ce.createElement(He.Z,null):Le=null;let Fe=null;return we!==void 0?Fe=we:Fe=ce.createElement(oe.Z,null),{clearIcon:Ee,suffixIcon:Ie,itemIcon:Le,removeIcon:Fe}}},61621:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Ye}});var He=We(92310),mt=We.n(He),oe=We(59301),Ze=We(36355),Ne=We(2738),ce=Je=>{const{prefixCls:Me,className:Ge,style:Ke,size:Ve,shape:Qe}=Je,ht=mt()({[`${Me}-lg`]:Ve==="large",[`${Me}-sm`]:Ve==="small"}),At=mt()({[`${Me}-circle`]:Qe==="circle",[`${Me}-square`]:Qe==="square",[`${Me}-round`]:Qe==="round"}),pt=oe.useMemo(()=>typeof Ve=="number"?{width:Ve,height:Ve,lineHeight:`${Ve}px`}:{},[Ve]);return oe.createElement("span",{className:mt()(Me,ht,At,Ge),style:Object.assign(Object.assign({},pt),Ke)})},Pe=We(93083),Ae=We(83116),ye=We(37613);const De=new Pe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),me=Je=>({height:Je,lineHeight:`${Je}px`}),we=Je=>Object.assign({width:Je},me(Je)),fe=Je=>({background:Je.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:De,animationDuration:Je.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),z=Je=>Object.assign({width:Je*5,minWidth:Je*5},me(Je)),ee=Je=>{const{skeletonAvatarCls:Me,gradientFromColor:Ge,controlHeight:Ke,controlHeightLG:Ve,controlHeightSM:Qe}=Je;return{[`${Me}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge},we(Ke)),[`${Me}${Me}-circle`]:{borderRadius:"50%"},[`${Me}${Me}-lg`]:Object.assign({},we(Ve)),[`${Me}${Me}-sm`]:Object.assign({},we(Qe))}},ae=Je=>{const{controlHeight:Me,borderRadiusSM:Ge,skeletonInputCls:Ke,controlHeightLG:Ve,controlHeightSM:Qe,gradientFromColor:ht}=Je;return{[`${Ke}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ht,borderRadius:Ge},z(Me)),[`${Ke}-lg`]:Object.assign({},z(Ve)),[`${Ke}-sm`]:Object.assign({},z(Qe))}},re=Je=>Object.assign({width:Je},me(Je)),le=Je=>{const{skeletonImageCls:Me,imageSizeBase:Ge,gradientFromColor:Ke,borderRadiusSM:Ve}=Je;return{[`${Me}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ke,borderRadius:Ve},re(Ge*2)),{[`${Me}-path`]:{fill:"#bfbfbf"},[`${Me}-svg`]:Object.assign(Object.assign({},re(Ge)),{maxWidth:Ge*4,maxHeight:Ge*4}),[`${Me}-svg${Me}-svg-circle`]:{borderRadius:"50%"}}),[`${Me}${Me}-circle`]:{borderRadius:"50%"}}},ue=(Je,Me,Ge)=>{const{skeletonButtonCls:Ke}=Je;return{[`${Ge}${Ke}-circle`]:{width:Me,minWidth:Me,borderRadius:"50%"},[`${Ge}${Ke}-round`]:{borderRadius:Me}}},pe=Je=>Object.assign({width:Je*2,minWidth:Je*2},me(Je)),Ee=Je=>{const{borderRadiusSM:Me,skeletonButtonCls:Ge,controlHeight:Ke,controlHeightLG:Ve,controlHeightSM:Qe,gradientFromColor:ht}=Je;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ge}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ht,borderRadius:Me,width:Ke*2,minWidth:Ke*2},pe(Ke))},ue(Je,Ke,Ge)),{[`${Ge}-lg`]:Object.assign({},pe(Ve))}),ue(Je,Ve,`${Ge}-lg`)),{[`${Ge}-sm`]:Object.assign({},pe(Qe))}),ue(Je,Qe,`${Ge}-sm`))},be=Je=>{const{componentCls:Me,skeletonAvatarCls:Ge,skeletonTitleCls:Ke,skeletonParagraphCls:Ve,skeletonButtonCls:Qe,skeletonInputCls:ht,skeletonImageCls:At,controlHeight:pt,controlHeightLG:Ot,controlHeightSM:Kt,gradientFromColor:jt,padding:Rt,marginSM:Xt,borderRadius:sn,titleHeight:Ft,blockRadius:Qt,paragraphLiHeight:en,controlHeightXS:on,paragraphMarginTop:Cn}=Je;return{[`${Me}`]:{display:"table",width:"100%",[`${Me}-header`]:{display:"table-cell",paddingInlineEnd:Rt,verticalAlign:"top",[`${Ge}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:jt},we(pt)),[`${Ge}-circle`]:{borderRadius:"50%"},[`${Ge}-lg`]:Object.assign({},we(Ot)),[`${Ge}-sm`]:Object.assign({},we(Kt))},[`${Me}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ke}`]:{width:"100%",height:Ft,background:jt,borderRadius:Qt,[`+ ${Ve}`]:{marginBlockStart:Kt}},[`${Ve}`]:{padding:0,"> li":{width:"100%",height:en,listStyle:"none",background:jt,borderRadius:Qt,"+ li":{marginBlockStart:on}}},[`${Ve}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Me}-content`]:{[`${Ke}, ${Ve} > li`]:{borderRadius:sn}}},[`${Me}-with-avatar ${Me}-content`]:{[`${Ke}`]:{marginBlockStart:Xt,[`+ ${Ve}`]:{marginBlockStart:Cn}}},[`${Me}${Me}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ee(Je)),ee(Je)),ae(Je)),le(Je)),[`${Me}${Me}-block`]:{width:"100%",[`${Qe}`]:{width:"100%"},[`${ht}`]:{width:"100%"}},[`${Me}${Me}-active`]:{[`
|
|
|
${Ke},
|
|
|
${Ve} > li,
|
|
|
${Ge},
|
|
|
${Qe},
|
|
|
${ht},
|
|
|
${At}
|
|
|
`]:Object.assign({},fe(Je))}}};var Ie=(0,Ae.Z)("Skeleton",Je=>{const{componentCls:Me}=Je,Ge=(0,ye.TS)(Je,{skeletonAvatarCls:`${Me}-avatar`,skeletonTitleCls:`${Me}-title`,skeletonParagraphCls:`${Me}-paragraph`,skeletonButtonCls:`${Me}-button`,skeletonInputCls:`${Me}-input`,skeletonImageCls:`${Me}-image`,imageSizeBase:Je.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Je.gradientFromColor} 25%, ${Je.gradientToColor} 37%, ${Je.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[be(Ge)]},Je=>{const{colorFillContent:Me,colorFill:Ge}=Je,Ke=Me,Ve=Ge;return{color:Ke,colorGradientEnd:Ve,gradientFromColor:Ke,gradientToColor:Ve,titleHeight:Je.controlHeight/2,blockRadius:Je.borderRadiusSM,paragraphMarginTop:Je.marginLG+Je.marginXXS,paragraphLiHeight:Je.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Fe=Je=>{const{prefixCls:Me,className:Ge,rootClassName:Ke,active:Ve,shape:Qe="circle",size:ht="default"}=Je,{getPrefixCls:At}=oe.useContext(Ze.E_),pt=At("skeleton",Me),[Ot,Kt]=Ie(pt),jt=(0,Ne.Z)(Je,["prefixCls","className"]),Rt=mt()(pt,`${pt}-element`,{[`${pt}-active`]:Ve},Ge,Ke,Kt);return Ot(oe.createElement("div",{className:Rt},oe.createElement(ce,Object.assign({prefixCls:`${pt}-avatar`,shape:Qe,size:ht},jt))))},je=Je=>{const{prefixCls:Me,className:Ge,rootClassName:Ke,active:Ve,block:Qe=!1,size:ht="default"}=Je,{getPrefixCls:At}=oe.useContext(Ze.E_),pt=At("skeleton",Me),[Ot,Kt]=Ie(pt),jt=(0,Ne.Z)(Je,["prefixCls"]),Rt=mt()(pt,`${pt}-element`,{[`${pt}-active`]:Ve,[`${pt}-block`]:Qe},Ge,Ke,Kt);return Ot(oe.createElement("div",{className:Rt},oe.createElement(ce,Object.assign({prefixCls:`${pt}-button`,size:ht},jt))))};const ze="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 Ue=Je=>{const{prefixCls:Me,className:Ge,rootClassName:Ke,style:Ve,active:Qe}=Je,{getPrefixCls:ht}=oe.useContext(Ze.E_),At=ht("skeleton",Me),[pt,Ot]=Ie(At),Kt=mt()(At,`${At}-element`,{[`${At}-active`]:Qe},Ge,Ke,Ot);return pt(oe.createElement("div",{className:Kt},oe.createElement("div",{className:mt()(`${At}-image`,Ge),style:Ve},oe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${At}-image-svg`},oe.createElement("path",{d:ze,className:`${At}-image-path`})))))},et=Je=>{const{prefixCls:Me,className:Ge,rootClassName:Ke,active:Ve,block:Qe,size:ht="default"}=Je,{getPrefixCls:At}=oe.useContext(Ze.E_),pt=At("skeleton",Me),[Ot,Kt]=Ie(pt),jt=(0,Ne.Z)(Je,["prefixCls"]),Rt=mt()(pt,`${pt}-element`,{[`${pt}-active`]:Ve,[`${pt}-block`]:Qe},Ge,Ke,Kt);return Ot(oe.createElement("div",{className:Rt},oe.createElement(ce,Object.assign({prefixCls:`${pt}-input`,size:ht},jt))))},lt=We(92413),ut={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=ut,qe=We(7657),ot=function(Me,Ge){return oe.createElement(qe.Z,(0,lt.Z)({},Me,{ref:Ge,icon:yt}))},dt=oe.forwardRef(ot),St=dt,ft=Je=>{const{prefixCls:Me,className:Ge,rootClassName:Ke,style:Ve,active:Qe,children:ht}=Je,{getPrefixCls:At}=oe.useContext(Ze.E_),pt=At("skeleton",Me),[Ot,Kt]=Ie(pt),jt=mt()(pt,`${pt}-element`,{[`${pt}-active`]:Qe},Kt,Ge,Ke),Rt=ht!=null?ht:oe.createElement(St,null);return Ot(oe.createElement("div",{className:jt},oe.createElement("div",{className:mt()(`${pt}-image`,Ge),style:Ve},Rt)))},gt=We(26407),Tt=Je=>{const Me=At=>{const{width:pt,rows:Ot=2}=Je;if(Array.isArray(pt))return pt[At];if(Ot-1===At)return pt},{prefixCls:Ge,className:Ke,style:Ve,rows:Qe}=Je,ht=(0,gt.Z)(Array(Qe)).map((At,pt)=>oe.createElement("li",{key:pt,style:{width:Me(pt)}}));return oe.createElement("ul",{className:mt()(Ge,Ke),style:Ve},ht)},Zt=Je=>{let{prefixCls:Me,className:Ge,width:Ke,style:Ve}=Je;return oe.createElement("h3",{className:mt()(Me,Ge),style:Object.assign({width:Ke},Ve)})};function wt(Je){return Je&&typeof Je=="object"?Je:{}}function bt(Je,Me){return Je&&!Me?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function it(Je,Me){return!Je&&Me?{width:"38%"}:Je&&Me?{width:"50%"}:{}}function nt(Je,Me){const Ge={};return(!Je||!Me)&&(Ge.width="61%"),!Je&&Me?Ge.rows=3:Ge.rows=2,Ge}const xe=Je=>{const{prefixCls:Me,loading:Ge,className:Ke,rootClassName:Ve,style:Qe,children:ht,avatar:At=!1,title:pt=!0,paragraph:Ot=!0,active:Kt,round:jt}=Je,{getPrefixCls:Rt,direction:Xt,skeleton:sn}=oe.useContext(Ze.E_),Ft=Rt("skeleton",Me),[Qt,en]=Ie(Ft);if(Ge||!("loading"in Je)){const on=!!At,Cn=!!pt,Bn=!!Ot;let tr;if(on){const Ar=Object.assign(Object.assign({prefixCls:`${Ft}-avatar`},bt(Cn,Bn)),wt(At));tr=oe.createElement("div",{className:`${Ft}-header`},oe.createElement(ce,Object.assign({},Ar)))}let er;if(Cn||Bn){let Ar;if(Cn){const Or=Object.assign(Object.assign({prefixCls:`${Ft}-title`},it(on,Bn)),wt(pt));Ar=oe.createElement(Zt,Object.assign({},Or))}let Dr;if(Bn){const Or=Object.assign(Object.assign({prefixCls:`${Ft}-paragraph`},nt(on,Cn)),wt(Ot));Dr=oe.createElement(Tt,Object.assign({},Or))}er=oe.createElement("div",{className:`${Ft}-content`},Ar,Dr)}const cr=mt()(Ft,{[`${Ft}-with-avatar`]:on,[`${Ft}-active`]:Kt,[`${Ft}-rtl`]:Xt==="rtl",[`${Ft}-round`]:jt},sn==null?void 0:sn.className,Ke,Ve,en);return Qt(oe.createElement("div",{className:cr,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),Qe)},tr,er))}return typeof ht!="undefined"?ht:null};xe.Button=je,xe.Avatar=Fe,xe.Input=et,xe.Image=Ue,xe.Node=ft;var Ce=xe,Ye=Ce},81327:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return ae}});var He=We(59301),mt=We(92310),oe=We.n(mt),Ze=We(11592),Ne=We(36355),ge=We(33234);const ce=He.createContext({latestIndex:0}),Pe=ce.Provider;var ye=re=>{let{className:le,index:ue,children:pe,split:Ee,style:be}=re;const{latestIndex:Ie}=He.useContext(ce);return pe==null?null:He.createElement(He.Fragment,null,He.createElement("div",{className:le,style:be},pe),ue<Ie&&Ee&&He.createElement("span",{className:`${le}-split`},Ee))},De=We(2856);function me(re){return["small","middle","large"].includes(re)}function we(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 Ee=0,pe=Object.getOwnPropertySymbols(re);Ee<pe.length;Ee++)le.indexOf(pe[Ee])<0&&Object.prototype.propertyIsEnumerable.call(re,pe[Ee])&&(ue[pe[Ee]]=re[pe[Ee]]);return ue};const ee=He.forwardRef((re,le)=>{var ue,pe;const{getPrefixCls:Ee,space:be,direction:Ie}=He.useContext(Ne.E_),{size:Le=(be==null?void 0:be.size)||"small",align:Fe,className:Oe,rootClassName:je,children:ze,direction:_e="horizontal",prefixCls:Ue,split:$e,style:et,wrap:lt=!1,classNames:ut,styles:yt}=re,qe=fe(re,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ot,dt]=Array.isArray(Le)?Le:[Le,Le],St=me(dt),xt=me(ot),ft=we(dt),gt=we(ot),vt=(0,Ze.Z)(ze,{keepEmpty:!0}),Tt=Fe===void 0&&_e==="horizontal"?"center":Fe,Et=Ee("space",Ue),[Zt,wt]=(0,De.Z)(Et),bt=oe()(Et,be==null?void 0:be.className,wt,`${Et}-${_e}`,{[`${Et}-rtl`]:Ie==="rtl",[`${Et}-align-${Tt}`]:Tt,[`${Et}-gap-row-${dt}`]:St,[`${Et}-gap-col-${ot}`]:xt},Oe,je),it=oe()(`${Et}-item`,(ue=ut==null?void 0:ut.item)!==null&&ue!==void 0?ue:(pe=be==null?void 0:be.classNames)===null||pe===void 0?void 0:pe.item);let nt=0;const xe=vt.map((Je,Me)=>{var Ge,Ke;Je!=null&&(nt=Me);const Ve=Je&&Je.key||`${it}-${Me}`;return He.createElement(ye,{className:it,key:Ve,index:Me,split:$e,style:(Ge=yt==null?void 0:yt.item)!==null&&Ge!==void 0?Ge:(Ke=be==null?void 0:be.styles)===null||Ke===void 0?void 0:Ke.item},Je)}),Ce=He.useMemo(()=>({latestIndex:nt}),[nt]);if(vt.length===0)return null;const Ye={};return lt&&(Ye.flexWrap="wrap"),!xt&>&&(Ye.columnGap=ot),!St&&ft&&(Ye.rowGap=dt),Zt(He.createElement("div",Object.assign({ref:le,className:bt,style:Object.assign(Object.assign(Object.assign({},Ye),be==null?void 0:be.style),et)},qe),He.createElement(Pe,{value:Ce},xe)))});ee.Compact=ge.ZP;var ae=ee},31797:function(kn,fn,We){"use strict";We.d(fn,{default:function(){return Ie}});var He=We(59301),mt=We(56762),oe=We(92343),Ze=We(92310),Ne=We.n(Ze),ge=We(36355),ce=We(61621),Ae=Le=>{const{value:Fe,formatter:Oe,precision:je,decimalSeparator:ze,groupSeparator:_e="",prefixCls:Ue}=Le;let $e;if(typeof Oe=="function")$e=Oe(Fe);else{const et=String(Fe),lt=et.match(/^(-?)(\d*)(\.(\d+))?$/);if(!lt||et==="-")$e=et;else{const ut=lt[1];let yt=lt[2]||"0",qe=lt[4]||"";yt=yt.replace(/\B(?=(\d{3})+(?!\d))/g,_e),typeof je=="number"&&(qe=qe.padEnd(je,"0").slice(0,je>0?je:0)),qe&&(qe=`${ze}${qe}`),$e=[He.createElement("span",{key:"int",className:`${Ue}-content-value-int`},ut,yt),qe&&He.createElement("span",{key:"decimal",className:`${Ue}-content-value-decimal`},qe)]}}return He.createElement("span",{className:`${Ue}-content-value`},$e)},ye=We(17313),De=We(83116),me=We(37613);const we=Le=>{const{componentCls:Fe,marginXXS:Oe,padding:je,colorTextDescription:ze,titleFontSize:_e,colorTextHeading:Ue,contentFontSize:$e,fontFamily:et}=Le;return{[`${Fe}`]:Object.assign(Object.assign({},(0,ye.Wf)(Le)),{[`${Fe}-title`]:{marginBottom:Oe,color:ze,fontSize:_e},[`${Fe}-skeleton`]:{paddingTop:je},[`${Fe}-content`]:{color:Ue,fontSize:$e,fontFamily:et,[`${Fe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Fe}-content-prefix, ${Fe}-content-suffix`]:{display:"inline-block"},[`${Fe}-content-prefix`]:{marginInlineEnd:Oe},[`${Fe}-content-suffix`]:{marginInlineStart:Oe}}})}};var fe=(0,De.Z)("Statistic",Le=>{const Fe=(0,me.TS)(Le,{});return[we(Fe)]},Le=>{const{fontSizeHeading3:Fe,fontSize:Oe}=Le;return{titleFontSize:Oe,contentFontSize:Fe}}),ee=Le=>{const{prefixCls:Fe,className:Oe,rootClassName:je,style:ze,valueStyle:_e,value:Ue=0,title:$e,valueRender:et,prefix:lt,suffix:ut,loading:yt=!1,onMouseEnter:qe,onMouseLeave:ot,decimalSeparator:dt=".",groupSeparator:St=","}=Le,{getPrefixCls:xt,direction:ft,statistic:gt}=He.useContext(ge.E_),vt=xt("statistic",Fe),[Tt,Et]=fe(vt),Zt=He.createElement(Ae,Object.assign({decimalSeparator:dt,groupSeparator:St,prefixCls:vt},Le,{value:Ue})),wt=Ne()(vt,{[`${vt}-rtl`]:ft==="rtl"},gt==null?void 0:gt.className,Oe,je,Et);return Tt(He.createElement("div",{className:wt,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),ze),onMouseEnter:qe,onMouseLeave:ot},$e&&He.createElement("div",{className:`${vt}-title`},$e),He.createElement(ce.Z,{paragraph:!1,loading:yt,className:`${vt}-skeleton`},He.createElement("div",{style:_e,className:`${vt}-content`},lt&&He.createElement("span",{className:`${vt}-content-prefix`},lt),et?et(Zt):Zt,ut&&He.createElement("span",{className:`${vt}-content-suffix`},ut)))))};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(Le,Fe){let Oe=Le;const je=/\[[^\]]*]/g,ze=(Fe.match(je)||[]).map(et=>et.slice(1,-1)),_e=Fe.replace(je,"[]"),Ue=ae.reduce((et,lt)=>{let[ut,yt]=lt;if(et.includes(ut)){const qe=Math.floor(Oe/yt);return Oe-=qe*yt,et.replace(new RegExp(`${ut}+`,"g"),ot=>{const dt=ot.length;return qe.toString().padStart(dt,"0")})}return et},_e);let $e=0;return Ue.replace(je,()=>{const et=ze[$e];return $e+=1,et})}function le(Le,Fe){const{format:Oe=""}=Fe,je=new Date(Le).getTime(),ze=Date.now(),_e=Math.max(je-ze,0);return re(_e,Oe)}const ue=1e3/30;function pe(Le){return new Date(Le).getTime()}const Ee=Le=>{const{value:Fe,format:Oe="HH:mm:ss",onChange:je,onFinish:ze}=Le,_e=(0,mt.Z)(),Ue=He.useRef(null),$e=()=>{ze==null||ze(),Ue.current&&(clearInterval(Ue.current),Ue.current=null)},et=()=>{const yt=pe(Fe);yt>=Date.now()&&(Ue.current=setInterval(()=>{_e(),je==null||je(yt-Date.now()),yt<Date.now()&&$e()},ue))};He.useEffect(()=>(et(),()=>{Ue.current&&(clearInterval(Ue.current),Ue.current=null)}),[Fe]);const lt=(yt,qe)=>le(yt,Object.assign(Object.assign({},qe),{format:Oe})),ut=yt=>(0,oe.Tm)(yt,{title:void 0});return He.createElement(ee,Object.assign({},Le,{valueRender:ut,formatter:lt}))};var be=He.memo(Ee);ee.Countdown=be;var Ie=ee},15969:function(kn,fn,We){"use strict";We.d(fn,{N:function(){return He}});const He=mt=>({color:mt.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${mt.motionDurationSlow}`,"&:focus, &:hover":{color:mt.colorLinkHover},"&:active":{color:mt.colorLinkActive}})},78673:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return _e}});var He=We(58617),mt=We(92310),oe=We.n(mt),Ze=We(92413),Ne=We(400),ge=We(33606),ce=We(37061),Pe=We(59301),Ae=We(18929),ye=We(10228),De=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],me=Pe.forwardRef(function(Ue,$e){var et,lt=Ue.prefixCls,ut=lt===void 0?"rc-switch":lt,yt=Ue.className,qe=Ue.checked,ot=Ue.defaultChecked,dt=Ue.disabled,St=Ue.loadingIcon,xt=Ue.checkedChildren,ft=Ue.unCheckedChildren,gt=Ue.onClick,vt=Ue.onChange,Tt=Ue.onKeyDown,Et=(0,ce.Z)(Ue,De),Zt=(0,Ae.Z)(!1,{value:qe,defaultValue:ot}),wt=(0,ge.Z)(Zt,2),bt=wt[0],it=wt[1];function nt(Je,Me){var Ge=bt;return dt||(Ge=Je,it(Ge),vt==null||vt(Ge,Me)),Ge}function xe(Je){Je.which===ye.Z.LEFT?nt(!1,Je):Je.which===ye.Z.RIGHT&&nt(!0,Je),Tt==null||Tt(Je)}function Ce(Je){var Me=nt(!bt,Je);gt==null||gt(Me,Je)}var Ye=oe()(ut,yt,(et={},(0,Ne.Z)(et,"".concat(ut,"-checked"),bt),(0,Ne.Z)(et,"".concat(ut,"-disabled"),dt),et));return Pe.createElement("button",(0,Ze.Z)({},Et,{type:"button",role:"switch","aria-checked":bt,disabled:dt,className:Ye,ref:$e,onKeyDown:xe,onClick:Ce}),St,Pe.createElement("span",{className:"".concat(ut,"-inner")},Pe.createElement("span",{className:"".concat(ut,"-inner-checked")},xt),Pe.createElement("span",{className:"".concat(ut,"-inner-unchecked")},ft)))});me.displayName="Switch";var we=me,fe=We(14088),z=We(36355),ee=We(1684),ae=We(19716),re=We(64993),le=We(17313),ue=We(83116),pe=We(37613);const Ee=Ue=>{const{componentCls:$e,trackHeightSM:et,trackPadding:lt,trackMinWidthSM:ut,innerMinMarginSM:yt,innerMaxMarginSM:qe,handleSizeSM:ot}=Ue,dt=`${$e}-inner`;return{[$e]:{[`&${$e}-small`]:{minWidth:ut,height:et,lineHeight:`${et}px`,[`${$e}-inner`]:{paddingInlineStart:qe,paddingInlineEnd:yt,[`${dt}-checked`]:{marginInlineStart:`calc(-100% + ${ot+lt*2}px - ${qe*2}px)`,marginInlineEnd:`calc(100% - ${ot+lt*2}px + ${qe*2}px)`},[`${dt}-unchecked`]:{marginTop:-et,marginInlineStart:0,marginInlineEnd:0}},[`${$e}-handle`]:{width:ot,height:ot},[`${$e}-loading-icon`]:{top:(ot-Ue.switchLoadingIconSize)/2,fontSize:Ue.switchLoadingIconSize},[`&${$e}-checked`]:{[`${$e}-inner`]:{paddingInlineStart:yt,paddingInlineEnd:qe,[`${dt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${dt}-unchecked`]:{marginInlineStart:`calc(100% - ${ot+lt*2}px + ${qe*2}px)`,marginInlineEnd:`calc(-100% + ${ot+lt*2}px - ${qe*2}px)`}},[`${$e}-handle`]:{insetInlineStart:`calc(100% - ${ot+lt}px)`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${dt}`]:{[`${dt}-unchecked`]:{marginInlineStart:Ue.marginXXS/2,marginInlineEnd:-Ue.marginXXS/2}},[`&${$e}-checked ${dt}`]:{[`${dt}-checked`]:{marginInlineStart:-Ue.marginXXS/2,marginInlineEnd:Ue.marginXXS/2}}}}}}},be=Ue=>{const{componentCls:$e,handleSize:et}=Ue;return{[$e]:{[`${$e}-loading-icon${Ue.iconCls}`]:{position:"relative",top:(et-Ue.fontSize)/2,color:Ue.switchLoadingIconColor,verticalAlign:"top"},[`&${$e}-checked ${$e}-loading-icon`]:{color:Ue.switchColor}}}},Ie=Ue=>{const{componentCls:$e,motion:et,trackPadding:lt,handleBg:ut,handleShadow:yt,handleSize:qe}=Ue,ot=`${$e}-handle`;return{[$e]:{[ot]:{position:"absolute",top:lt,insetInlineStart:lt,width:qe,height:qe,transition:`all ${Ue.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ut,borderRadius:qe/2,boxShadow:yt,transition:`all ${Ue.switchDuration} ease-in-out`,content:'""'}},[`&${$e}-checked ${ot}`]:{insetInlineStart:`calc(100% - ${qe+lt}px)`},[`&:not(${$e}-disabled):active`]:et?{[`${ot}::before`]:{insetInlineEnd:Ue.switchHandleActiveInset,insetInlineStart:0},[`&${$e}-checked ${ot}::before`]:{insetInlineEnd:0,insetInlineStart:Ue.switchHandleActiveInset}}:{}}}},Le=Ue=>{const{componentCls:$e,trackHeight:et,trackPadding:lt,innerMinMargin:ut,innerMaxMargin:yt,handleSize:qe}=Ue,ot=`${$e}-inner`;return{[$e]:{[ot]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:yt,paddingInlineEnd:ut,transition:`padding-inline-start ${Ue.switchDuration} ease-in-out, padding-inline-end ${Ue.switchDuration} ease-in-out`,[`${ot}-checked, ${ot}-unchecked`]:{display:"block",color:Ue.colorTextLightSolid,fontSize:Ue.fontSizeSM,transition:`margin-inline-start ${Ue.switchDuration} ease-in-out, margin-inline-end ${Ue.switchDuration} ease-in-out`,pointerEvents:"none"},[`${ot}-checked`]:{marginInlineStart:`calc(-100% + ${qe+lt*2}px - ${yt*2}px)`,marginInlineEnd:`calc(100% - ${qe+lt*2}px + ${yt*2}px)`},[`${ot}-unchecked`]:{marginTop:-et,marginInlineStart:0,marginInlineEnd:0}},[`&${$e}-checked ${ot}`]:{paddingInlineStart:ut,paddingInlineEnd:yt,[`${ot}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ot}-unchecked`]:{marginInlineStart:`calc(100% - ${qe+lt*2}px + ${yt*2}px)`,marginInlineEnd:`calc(-100% + ${qe+lt*2}px - ${yt*2}px)`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${ot}`]:{[`${ot}-unchecked`]:{marginInlineStart:lt*2,marginInlineEnd:-lt*2}},[`&${$e}-checked ${ot}`]:{[`${ot}-checked`]:{marginInlineStart:-lt*2,marginInlineEnd:lt*2}}}}}},Fe=Ue=>{const{componentCls:$e,trackHeight:et,trackMinWidth:lt}=Ue;return{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)(Ue)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:lt,height:et,lineHeight:`${et}px`,verticalAlign:"middle",background:Ue.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ue.motionDurationMid}`,userSelect:"none",[`&:hover:not(${$e}-disabled)`]:{background:Ue.colorTextTertiary}}),(0,le.Qy)(Ue)),{[`&${$e}-checked`]:{background:Ue.switchColor,[`&:hover:not(${$e}-disabled)`]:{background:Ue.colorPrimaryHover}},[`&${$e}-loading, &${$e}-disabled`]:{cursor:"not-allowed",opacity:Ue.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${$e}-rtl`]:{direction:"rtl"}})}};var Oe=(0,ue.Z)("Switch",Ue=>{const $e=(0,pe.TS)(Ue,{switchDuration:Ue.motionDurationMid,switchColor:Ue.colorPrimary,switchDisabledOpacity:Ue.opacityLoading,switchLoadingIconSize:Ue.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Ue.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Fe($e),Le($e),Ie($e),be($e),Ee($e)]},Ue=>{const{fontSize:$e,lineHeight:et,controlHeight:lt,colorWhite:ut}=Ue,yt=$e*et,qe=lt/2,ot=2,dt=yt-ot*2,St=qe-ot*2;return{trackHeight:yt,trackHeightSM:qe,trackMinWidth:dt*2+ot*4,trackMinWidthSM:St*2+ot*2,trackPadding:ot,handleBg:ut,handleSize:dt,handleSizeSM:St,handleShadow:`0 2px 4px 0 ${new re.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:dt/2,innerMaxMargin:dt+ot+ot*2,innerMinMarginSM:St/2,innerMaxMarginSM:St+ot+ot*2}}),je=function(Ue,$e){var et={};for(var lt in Ue)Object.prototype.hasOwnProperty.call(Ue,lt)&&$e.indexOf(lt)<0&&(et[lt]=Ue[lt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,lt=Object.getOwnPropertySymbols(Ue);ut<lt.length;ut++)$e.indexOf(lt[ut])<0&&Object.prototype.propertyIsEnumerable.call(Ue,lt[ut])&&(et[lt[ut]]=Ue[lt[ut]]);return et};const ze=Pe.forwardRef((Ue,$e)=>{const{prefixCls:et,size:lt,disabled:ut,loading:yt,className:qe,rootClassName:ot,style:dt}=Ue,St=je(Ue,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:xt,direction:ft,switch:gt}=Pe.useContext(z.E_),vt=Pe.useContext(ee.Z),Tt=(ut!=null?ut:vt)||yt,Et=xt("switch",et),Zt=Pe.createElement("div",{className:`${Et}-handle`},yt&&Pe.createElement(He.Z,{className:`${Et}-loading-icon`})),[wt,bt]=Oe(Et),it=(0,ae.Z)(lt),nt=oe()(gt==null?void 0:gt.className,{[`${Et}-small`]:it==="small",[`${Et}-loading`]:yt,[`${Et}-rtl`]:ft==="rtl"},qe,ot,bt),xe=Object.assign(Object.assign({},gt==null?void 0:gt.style),dt);return wt(Pe.createElement(fe.Z,{component:"Switch"},Pe.createElement(we,Object.assign({},St,{prefixCls:Et,className:nt,style:xe,disabled:Tt,ref:$e,loadingIcon:Zt}))))});ze.__ANT_SWITCH=!0;var _e=ze},1710:function(kn,fn,We){"use strict";We.d(fn,{default:function(){return Kp}});var He={},mt="rc-table-internal-hook",oe=We(33606),Ze=We(6089),Ne=We(34280),ge=We(13697),ce=We(59301),Pe=We(4676);function Ae(It){var Wt=ce.createContext(void 0),an=function(An){var vn=An.value,Wn=An.children,Un=ce.useRef(vn);Un.current=vn;var Rn=ce.useState(function(){return{getValue:function(){return Un.current},listeners:new Set}}),rr=(0,oe.Z)(Rn,1),lr=rr[0];return(0,Ne.Z)(function(){(0,Pe.unstable_batchedUpdates)(function(){lr.listeners.forEach(function(ar){ar(vn)})})},[vn]),ce.createElement(Wt.Provider,{value:lr},Wn)};return{Context:Wt,Provider:an,defaultValue:It}}function ye(It,Wt){var an=(0,Ze.Z)(typeof Wt=="function"?Wt:function(ar){if(Wt===void 0)return ar;if(!Array.isArray(Wt))return ar[Wt];var jr={};return Wt.forEach(function(Tr){jr[Tr]=ar[Tr]}),jr}),un=ce.useContext(It==null?void 0:It.Context),An=un||{},vn=An.listeners,Wn=An.getValue,Un=ce.useRef();Un.current=an(un?Wn():It==null?void 0:It.defaultValue);var Rn=ce.useState({}),rr=(0,oe.Z)(Rn,2),lr=rr[1];return(0,Ne.Z)(function(){if(!un)return;function ar(jr){var Tr=an(jr);(0,ge.Z)(Un.current,Tr,!0)||lr({})}return vn.add(ar),function(){vn.delete(ar)}},[un]),Un.current}var De=We(92413),me=We(8654);function we(){var It=ce.createContext(null);function Wt(){return ce.useContext(It)}function an(An,vn){var Wn=(0,me.Yr)(An),Un=function(rr,lr){var ar=Wn?{ref:lr}:{},jr=ce.useRef(0),Tr=ce.useRef(rr),Sr=Wt();return Sr!==null?ce.createElement(An,(0,De.Z)({},rr,ar)):((!vn||vn(Tr.current,rr))&&(jr.current+=1),Tr.current=rr,ce.createElement(It.Provider,{value:jr.current},ce.createElement(An,(0,De.Z)({},rr,ar))))};return Wn?ce.forwardRef(Un):Un}function un(An,vn){var Wn=(0,me.Yr)(An),Un=function(rr,lr){var ar=Wn?{ref:lr}:{};return Wt(),ce.createElement(An,(0,De.Z)({},rr,ar))};return Wn?ce.memo(ce.forwardRef(Un),vn):ce.memo(Un,vn)}return{makeImmutable:an,responseImmutable:un,useImmutableMark:Wt}}var fe=we(),z=fe.makeImmutable,ee=fe.responseImmutable,ae=fe.useImmutableMark,re=we(),le=re.makeImmutable,ue=re.responseImmutable,pe=re.useImmutableMark,Ee=Ae(),be=Ee;function Ie(It,Wt){var an=ce.useRef(0);an.current+=1;var un=ce.useRef(It),An=[];Object.keys(It||{}).map(function(Wn){var Un;(It==null?void 0:It[Wn])!==((Un=un.current)===null||Un===void 0?void 0:Un[Wn])&&An.push(Wn)}),un.current=It;var vn=ce.useRef([]);return An.length&&(vn.current=An),ce.useDebugValue(an.current),ce.useDebugValue(vn.current.join(", ")),Wt&&console.log("".concat(Wt,":"),an.current,vn.current),an.current}var Le=null,Fe=ce.memo(function(){var It=Ie();return ce.createElement("h1",null,"Render Times: ",It)});Fe.displayName="RenderBlock";var Oe=We(39559),je=We(33708),ze=We(400),_e=We(92310),Ue=We.n(_e),$e=We(80547),et=We(97938),lt=We(48736),ut=ce.createContext({renderWithProps:!1}),yt=ut,qe="RC_TABLE_KEY";function ot(It){return It==null?[]:Array.isArray(It)?It:[It]}function dt(It){var Wt=[],an={};return It.forEach(function(un){for(var An=un||{},vn=An.key,Wn=An.dataIndex,Un=vn||ot(Wn).join("-")||qe;an[Un];)Un="".concat(Un,"_next");an[Un]=!0,Wt.push(Un)}),Wt}function St(It){return It!=null}function xt(It){return It&&(0,Oe.Z)(It)==="object"&&!Array.isArray(It)&&!ce.isValidElement(It)}function ft(It,Wt,an,un,An,vn){var Wn=ce.useContext(yt),Un=pe(),Rn=(0,$e.Z)(function(){if(St(un))return[un];var rr=Wt==null||Wt===""?[]:Array.isArray(Wt)?Wt:[Wt],lr=(0,et.Z)(It,rr),ar=lr,jr=void 0;if(An){var Tr=An(lr,It,an);xt(Tr)?(ar=Tr.children,jr=Tr.props,Wn.renderWithProps=!0):ar=Tr}return[ar,jr]},[Un,It,un,Wt,An,an],function(rr,lr){if(vn){var ar=(0,oe.Z)(rr,2),jr=ar[1],Tr=(0,oe.Z)(lr,2),Sr=Tr[1];return vn(Sr,jr)}return Wn.renderWithProps?!0:!(0,ge.Z)(rr,lr,!0)});return Rn}function gt(It,Wt,an,un){var An=It+Wt-1;return It<=un&&An>=an}function vt(It,Wt){return ye(be,function(an){var un=gt(It,Wt||1,an.hoverStartRow,an.hoverEndRow);return[un,an.onHover]})}var Tt=function(Wt){var an=Wt.ellipsis,un=Wt.rowType,An=Wt.children,vn,Wn=an===!0?{showTitle:!0}:an;return Wn&&(Wn.showTitle||un==="header")&&(typeof An=="string"||typeof An=="number"?vn=An.toString():ce.isValidElement(An)&&typeof An.props.children=="string"&&(vn=An.props.children)),vn};function Et(It){var Wt,an,un,An,vn,Wn,Un,Rn,rr=It.component,lr=It.children,ar=It.ellipsis,jr=It.scope,Tr=It.prefixCls,Sr=It.className,ti=It.align,Mr=It.record,_r=It.render,Jr=It.dataIndex,di=It.renderIndex,ki=It.shouldCellUpdate,Zi=It.index,ri=It.rowType,Oi=It.colSpan,mo=It.rowSpan,hi=It.fixLeft,Ei=It.fixRight,li=It.firstFixLeft,Gr=It.lastFixLeft,Si=It.firstFixRight,zi=It.lastFixRight,_i=It.appendNode,qi=It.additionalProps,ii=qi===void 0?{}:qi,yo=It.isSticky,Co="".concat(Tr,"-cell"),qo=ye(be,["supportSticky","allColumnsFixedLeft"]),jo=qo.supportSticky,ka=qo.allColumnsFixedLeft,Ta=ft(Mr,Jr,di,lr,_r,ki),xo=(0,oe.Z)(Ta,2),Ui=xo[0],Xo=xo[1],Na={},wa=typeof hi=="number"&&jo,is=typeof Ei=="number"&&jo;wa&&(Na.position="sticky",Na.left=hi),is&&(Na.position="sticky",Na.right=Ei);var eo=(Wt=(an=(un=Xo==null?void 0:Xo.colSpan)!==null&&un!==void 0?un:ii.colSpan)!==null&&an!==void 0?an:Oi)!==null&&Wt!==void 0?Wt:1,Vi=(An=(vn=(Wn=Xo==null?void 0:Xo.rowSpan)!==null&&Wn!==void 0?Wn:ii.rowSpan)!==null&&vn!==void 0?vn:mo)!==null&&An!==void 0?An:1,to=vt(Zi,Vi),Bi=(0,oe.Z)(to,2),Qo=Bi[0],Ii=Bi[1],vo=function(ts){var ps;Mr&&Ii(Zi,Zi+Vi-1),ii==null||(ps=ii.onMouseEnter)===null||ps===void 0||ps.call(ii,ts)},Ho=function(ts){var ps;Mr&&Ii(-1,-1),ii==null||(ps=ii.onMouseLeave)===null||ps===void 0||ps.call(ii,ts)};if(eo===0||Vi===0)return null;var Uo=(Un=ii.title)!==null&&Un!==void 0?Un:Tt({rowType:ri,ellipsis:ar,children:Ui}),Cs=Ue()(Co,Sr,(Rn={},(0,ze.Z)(Rn,"".concat(Co,"-fix-left"),wa&&jo),(0,ze.Z)(Rn,"".concat(Co,"-fix-left-first"),li&&jo),(0,ze.Z)(Rn,"".concat(Co,"-fix-left-last"),Gr&&jo),(0,ze.Z)(Rn,"".concat(Co,"-fix-left-all"),Gr&&ka&&jo),(0,ze.Z)(Rn,"".concat(Co,"-fix-right"),is&&jo),(0,ze.Z)(Rn,"".concat(Co,"-fix-right-first"),Si&&jo),(0,ze.Z)(Rn,"".concat(Co,"-fix-right-last"),zi&&jo),(0,ze.Z)(Rn,"".concat(Co,"-ellipsis"),ar),(0,ze.Z)(Rn,"".concat(Co,"-with-append"),_i),(0,ze.Z)(Rn,"".concat(Co,"-fix-sticky"),(wa||is)&&yo&&jo),(0,ze.Z)(Rn,"".concat(Co,"-row-hover"),!Xo&&Qo),Rn),ii.className,Xo==null?void 0:Xo.className),ls={};ti&&(ls.textAlign=ti);var Us=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},Na),ii.style),ls),Xo==null?void 0:Xo.style),ea=Ui;return(0,Oe.Z)(ea)==="object"&&!Array.isArray(ea)&&!ce.isValidElement(ea)&&(ea=null),ar&&(Gr||Si)&&(ea=ce.createElement("span",{className:"".concat(Co,"-content")},ea)),ce.createElement(rr,(0,De.Z)({},Xo,ii,{className:Cs,style:Us,title:Uo,scope:jr,onMouseEnter:vo,onMouseLeave:Ho,colSpan:eo!==1?eo:null,rowSpan:Vi!==1?Vi:null}),_i,ea)}var Zt=ce.memo(Et);function wt(It,Wt,an,un,An,vn){var Wn=an[It]||{},Un=an[Wt]||{},Rn,rr;Wn.fixed==="left"?Rn=un.left[An==="rtl"?Wt:It]:Un.fixed==="right"&&(rr=un.right[An==="rtl"?It:Wt]);var lr=!1,ar=!1,jr=!1,Tr=!1,Sr=an[Wt+1],ti=an[It-1],Mr=!(vn!=null&&vn.children);if(An==="rtl"){if(Rn!==void 0){var _r=ti&&ti.fixed==="left";Tr=!_r&&Mr}else if(rr!==void 0){var Jr=Sr&&Sr.fixed==="right";jr=!Jr&&Mr}}else if(Rn!==void 0){var di=Sr&&Sr.fixed==="left";lr=!di&&Mr}else if(rr!==void 0){var ki=ti&&ti.fixed==="right";ar=!ki&&Mr}return{fixLeft:Rn,fixRight:rr,lastFixLeft:lr,firstFixRight:ar,lastFixRight:jr,firstFixLeft:Tr,isSticky:un.isSticky}}var bt=ce.createContext({}),it=bt;function nt(It){var Wt=It.className,an=It.index,un=It.children,An=It.colSpan,vn=An===void 0?1:An,Wn=It.rowSpan,Un=It.align,Rn=ye(be,["prefixCls","direction"]),rr=Rn.prefixCls,lr=Rn.direction,ar=ce.useContext(it),jr=ar.scrollColumnIndex,Tr=ar.stickyOffsets,Sr=ar.flattenColumns,ti=ar.columns,Mr=an+vn-1,_r=Mr+1===jr?vn+1:vn,Jr=wt(an,an+_r-1,Sr,Tr,lr,ti==null?void 0:ti[an]);return ce.createElement(Zt,(0,De.Z)({className:Wt,index:an,component:"td",prefixCls:rr,record:null,dataIndex:null,align:Un,colSpan:_r,rowSpan:Wn,render:function(){return un}},Jr))}var xe=We(37061),Ce=["children"];function Ye(It){var Wt=It.children,an=(0,xe.Z)(It,Ce);return ce.createElement("tr",an,Wt)}function Je(It){var Wt=It.children;return Wt}Je.Row=Ye,Je.Cell=nt;var Me=Je;function Ge(It){var Wt=It.children,an=It.stickyOffsets,un=It.flattenColumns,An=It.columns,vn=ye(be,"prefixCls"),Wn=un.length-1,Un=un[Wn],Rn=ce.useMemo(function(){return{stickyOffsets:an,flattenColumns:un,scrollColumnIndex:Un!=null&&Un.scrollbar?Wn:null,columns:An}},[Un,un,Wn,an,An]);return ce.createElement(it.Provider,{value:Rn},ce.createElement("tfoot",{className:"".concat(vn,"-summary")},Wt))}var Ke=ue(Ge),Ve=Me,Qe=We(70425),ht=We(29301),At=We(29194),pt=We(24514),Ot=We(75152),Kt=We(26112);function jt(It,Wt,an,un,An,vn,Wn){It.push({record:Wt,indent:an,index:Wn});var Un=vn(Wt),Rn=An==null?void 0:An.has(Un);if(Wt&&Array.isArray(Wt[un])&&Rn)for(var rr=0;rr<Wt[un].length;rr+=1)jt(It,Wt[un][rr],an+1,un,An,vn,rr)}function Rt(It,Wt,an,un){var An=ce.useMemo(function(){if(an!=null&&an.size){for(var vn=[],Wn=0;Wn<(It==null?void 0:It.length);Wn+=1){var Un=It[Wn];jt(vn,Un,0,Wt,an,un,Wn)}return vn}return It==null?void 0:It.map(function(Rn,rr){return{record:Rn,indent:0,index:rr}})},[It,Wt,an,un]);return An}function Xt(It){var Wt=It.prefixCls,an=It.children,un=It.component,An=It.cellComponent,vn=It.className,Wn=It.expanded,Un=It.colSpan,Rn=It.isEmpty,rr=ye(be,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),lr=rr.scrollbarSize,ar=rr.fixHeader,jr=rr.fixColumn,Tr=rr.componentWidth,Sr=rr.horizonScroll,ti=an;return(Rn?Sr&&Tr:jr)&&(ti=ce.createElement("div",{style:{width:Tr-(ar?lr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Wt,"-expanded-row-fixed")},ti)),ce.createElement(un,{className:vn,style:{display:Wn?null:"none"}},ce.createElement(Zt,{component:An,prefixCls:Wt,colSpan:Un},ti))}var sn=Xt;function Ft(It,Wt,an,un){var An=ye(be,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),vn=An.flattenColumns,Wn=An.expandableType,Un=An.expandedKeys,Rn=An.childrenColumnName,rr=An.onTriggerExpand,lr=An.rowExpandable,ar=An.onRow,jr=An.expandRowByClick,Tr=An.rowClassName,Sr=Wn==="nest",ti=Wn==="row"&&(!lr||lr(It)),Mr=ti||Sr,_r=Un&&Un.has(Wt),Jr=Rn&&It&&It[Rn],di=(0,Qe.useEvent)(rr),ki=ar==null?void 0:ar(It,an),Zi=ki==null?void 0:ki.onClick,ri=function(Ei){jr&&Mr&&rr(It,Ei);for(var li=arguments.length,Gr=new Array(li>1?li-1:0),Si=1;Si<li;Si++)Gr[Si-1]=arguments[Si];Zi==null||Zi.apply(void 0,[Ei].concat(Gr))},Oi;typeof Tr=="string"?Oi=Tr:typeof Tr=="function"&&(Oi=Tr(It,an,un));var mo=dt(vn);return(0,je.Z)((0,je.Z)({},An),{},{columnsKey:mo,nestExpandable:Sr,expanded:_r,hasNestChildren:Jr,record:It,onTriggerExpand:di,rowSupportExpand:ti,expandable:Mr,rowProps:(0,je.Z)((0,je.Z)({},ki),{},{className:Ue()(Oi,ki==null?void 0:ki.className),onClick:ri})})}function Qt(It,Wt,an,un,An){var vn=It.record,Wn=It.prefixCls,Un=It.columnsKey,Rn=It.fixedInfoList,rr=It.expandIconColumnIndex,lr=It.nestExpandable,ar=It.indentSize,jr=It.expandIcon,Tr=It.expanded,Sr=It.hasNestChildren,ti=It.onTriggerExpand,Mr=Un[an],_r=Rn[an],Jr;an===(rr||0)&&lr&&(Jr=ce.createElement(ce.Fragment,null,ce.createElement("span",{style:{paddingLeft:"".concat(ar*un,"px")},className:"".concat(Wn,"-row-indent indent-level-").concat(un)}),jr({prefixCls:Wn,expanded:Tr,expandable:Sr,record:vn,onExpand:ti})));var di;return Wt.onCell&&(di=Wt.onCell(vn,An)),{key:Mr,fixedInfo:_r,appendCellNode:Jr,additionalCellProps:di||{}}}function en(It){var Wt=It.className,an=It.style,un=It.record,An=It.index,vn=It.renderIndex,Wn=It.rowKey,Un=It.indent,Rn=Un===void 0?0:Un,rr=It.rowComponent,lr=It.cellComponent,ar=It.scopeCellComponent,jr=Ft(un,Wn,An,Rn),Tr=jr.prefixCls,Sr=jr.flattenColumns,ti=jr.expandedRowClassName,Mr=jr.expandedRowRender,_r=jr.rowProps,Jr=jr.expanded,di=jr.rowSupportExpand,ki=ce.useState(!1),Zi=(0,oe.Z)(ki,2),ri=Zi[0],Oi=Zi[1];ce.useEffect(function(){Jr&&Oi(!0)},[Jr]);var mo=ce.createElement(rr,(0,De.Z)({},_r,{"data-row-key":Wn,className:Ue()(Wt,"".concat(Tr,"-row"),"".concat(Tr,"-row-level-").concat(Rn),_r==null?void 0:_r.className),style:(0,je.Z)((0,je.Z)({},an),_r==null?void 0:_r.style)}),Sr.map(function(Gr,Si){var zi=Gr.render,_i=Gr.dataIndex,qi=Gr.className,ii=Qt(jr,Gr,Si,Rn,An),yo=ii.key,Co=ii.fixedInfo,qo=ii.appendCellNode,jo=ii.additionalCellProps;return ce.createElement(Zt,(0,De.Z)({className:qi,ellipsis:Gr.ellipsis,align:Gr.align,scope:Gr.rowScope,component:Gr.rowScope?ar:lr,prefixCls:Tr,key:yo,record:un,index:An,renderIndex:vn,dataIndex:_i,render:zi,shouldCellUpdate:Gr.shouldCellUpdate},Co,{appendNode:qo,additionalProps:jo}))})),hi;if(di&&(ri||Jr)){var Ei=Mr(un,An,Rn+1,Jr),li=ti&&ti(un,An,Rn);hi=ce.createElement(sn,{expanded:Jr,className:Ue()("".concat(Tr,"-expanded-row"),"".concat(Tr,"-expanded-row-level-").concat(Rn+1),li),prefixCls:Tr,component:rr,cellComponent:lr,colSpan:Sr.length,isEmpty:!1},Ei)}return ce.createElement(ce.Fragment,null,mo,hi)}en.displayName="BodyRow";var on=ue(en);function Cn(It){var Wt=It.columnKey,an=It.onColumnResize,un=ce.useRef();return ce.useEffect(function(){un.current&&an(Wt,un.current.offsetWidth)},[]),ce.createElement(ht.Z,{data:Wt},ce.createElement("td",{ref:un,style:{padding:0,border:0,height:0}},ce.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Bn(It){var Wt=It.prefixCls,an=It.columnsKey,un=It.onColumnResize;return ce.createElement("tr",{"aria-hidden":"true",className:"".concat(Wt,"-measure-row"),style:{height:0,fontSize:0}},ce.createElement(ht.Z.Collection,{onBatchResize:function(vn){vn.forEach(function(Wn){var Un=Wn.data,Rn=Wn.size;un(Un,Rn.offsetWidth)})}},an.map(function(An){return ce.createElement(Cn,{key:An,columnKey:An,onColumnResize:un})})))}function tr(It){var Wt=It.data,an=It.measureColumnWidth,un=ye(be,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),An=un.prefixCls,vn=un.getComponent,Wn=un.onColumnResize,Un=un.flattenColumns,Rn=un.getRowKey,rr=un.expandedKeys,lr=un.childrenColumnName,ar=un.emptyNode,jr=Rt(Wt,lr,rr,Rn),Tr=ce.useRef({renderWithProps:!1}),Sr=vn(["body","wrapper"],"tbody"),ti=vn(["body","row"],"tr"),Mr=vn(["body","cell"],"td"),_r=vn(["body","cell"],"th"),Jr;Wt.length?Jr=jr.map(function(ki,Zi){var ri=ki.record,Oi=ki.indent,mo=ki.index,hi=Rn(ri,Zi);return ce.createElement(on,{key:hi,rowKey:hi,record:ri,index:Zi,renderIndex:mo,rowComponent:ti,cellComponent:Mr,scopeCellComponent:_r,getRowKey:Rn,indent:Oi})}):Jr=ce.createElement(sn,{expanded:!0,className:"".concat(An,"-placeholder"),prefixCls:An,component:ti,cellComponent:Mr,colSpan:Un.length,isEmpty:!0},ar);var di=dt(Un);return ce.createElement(yt.Provider,{value:Tr.current},ce.createElement(Sr,{className:"".concat(An,"-tbody")},an&&ce.createElement(Bn,{prefixCls:An,columnsKey:di,onColumnResize:Wn}),Jr))}tr.displayName="Body";var er=ue(tr),cr=["expandable"],Ar="RC_TABLE_INTERNAL_COL_DEFINE";function Dr(It){var Wt=It.expandable,an=(0,xe.Z)(It,cr),un;return"expandable"in It?un=(0,je.Z)((0,je.Z)({},an),Wt):un=an,un.showExpandColumn===!1&&(un.expandIconColumnIndex=-1),un}var Or=["columnType"];function $r(It){for(var Wt=It.colWidths,an=It.columns,un=It.columCount,An=[],vn=un||an.length,Wn=!1,Un=vn-1;Un>=0;Un-=1){var Rn=Wt[Un],rr=an&&an[Un],lr=rr&&rr[Ar];if(Rn||lr||Wn){var ar=lr||{},jr=ar.columnType,Tr=(0,xe.Z)(ar,Or);An.unshift(ce.createElement("col",(0,De.Z)({key:Un,style:{width:Rn}},Tr))),Wn=!0}}return ce.createElement("colgroup",null,An)}var ai=$r,br=We(26407),fi=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Cr(It,Wt){return(0,ce.useMemo)(function(){for(var an=[],un=0;un<Wt;un+=1){var An=It[un];if(An!==void 0)an[un]=An;else return null}return an},[It.join("_"),Wt])}var at=ce.forwardRef(function(It,Wt){var an=It.className,un=It.noData,An=It.columns,vn=It.flattenColumns,Wn=It.colWidths,Un=It.columCount,Rn=It.stickyOffsets,rr=It.direction,lr=It.fixHeader,ar=It.stickyTopOffset,jr=It.stickyBottomOffset,Tr=It.stickyClassName,Sr=It.onScroll,ti=It.maxContentScroll,Mr=It.children,_r=(0,xe.Z)(It,fi),Jr=ye(be,["prefixCls","scrollbarSize","isSticky"]),di=Jr.prefixCls,ki=Jr.scrollbarSize,Zi=Jr.isSticky,ri=Zi&&!lr?0:ki,Oi=ce.useRef(null),mo=ce.useCallback(function(qi){(0,me.mH)(Wt,qi),(0,me.mH)(Oi,qi)},[]);ce.useEffect(function(){var qi;function ii(yo){var Co=yo,qo=Co.currentTarget,jo=Co.deltaX;jo&&(Sr({currentTarget:qo,scrollLeft:qo.scrollLeft+jo}),yo.preventDefault())}return(qi=Oi.current)===null||qi===void 0||qi.addEventListener("wheel",ii),function(){var yo;(yo=Oi.current)===null||yo===void 0||yo.removeEventListener("wheel",ii)}},[]);var hi=ce.useMemo(function(){return vn.every(function(qi){return qi.width})},[vn]),Ei=vn[vn.length-1],li={fixed:Ei?Ei.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(di,"-cell-scrollbar")}}},Gr=(0,ce.useMemo)(function(){return ri?[].concat((0,br.Z)(An),[li]):An},[ri,An]),Si=(0,ce.useMemo)(function(){return ri?[].concat((0,br.Z)(vn),[li]):vn},[ri,vn]),zi=(0,ce.useMemo)(function(){var qi=Rn.right,ii=Rn.left;return(0,je.Z)((0,je.Z)({},Rn),{},{left:rr==="rtl"?[].concat((0,br.Z)(ii.map(function(yo){return yo+ri})),[0]):ii,right:rr==="rtl"?qi:[].concat((0,br.Z)(qi.map(function(yo){return yo+ri})),[0]),isSticky:Zi})},[ri,Rn,Zi]),_i=Cr(Wn,Un);return ce.createElement("div",{style:(0,je.Z)({overflow:"hidden"},Zi?{top:ar,bottom:jr}:{}),ref:mo,className:Ue()(an,(0,ze.Z)({},Tr,!!Tr))},ce.createElement("table",{style:{tableLayout:"fixed",visibility:un||_i?null:"hidden"}},(!un||!ti||hi)&&ce.createElement(ai,{colWidths:_i?[].concat((0,br.Z)(_i),[ri]):[],columCount:Un+1,columns:Si}),Mr((0,je.Z)((0,je.Z)({},_r),{},{stickyOffsets:zi,columns:Gr,flattenColumns:Si}))))});at.displayName="FixedHolder";var wi=ce.memo(at);function ui(It){var Wt=It.cells,an=It.stickyOffsets,un=It.flattenColumns,An=It.rowComponent,vn=It.cellComponent,Wn=It.tdCellComponent,Un=It.onHeaderRow,Rn=It.index,rr=ye(be,["prefixCls","direction"]),lr=rr.prefixCls,ar=rr.direction,jr;Un&&(jr=Un(Wt.map(function(Sr){return Sr.column}),Rn));var Tr=dt(Wt.map(function(Sr){return Sr.column}));return ce.createElement(An,jr,Wt.map(function(Sr,ti){var Mr=Sr.column,_r=wt(Sr.colStart,Sr.colEnd,un,an,ar,Mr),Jr;return Mr&&Mr.onHeaderCell&&(Jr=Sr.column.onHeaderCell(Mr)),ce.createElement(Zt,(0,De.Z)({},Sr,{scope:Mr.title?Sr.colSpan>1?"colgroup":"col":null,ellipsis:Mr.ellipsis,align:Mr.align,component:Mr.title?vn:Wn,prefixCls:lr,key:Tr[ti]},_r,{additionalProps:Jr,rowType:"header"}))}))}ui.displayName="HeaderRow";var Dn=ui;function ur(It){var Wt=[];function an(Wn,Un){var Rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Wt[Rn]=Wt[Rn]||[];var rr=Un,lr=Wn.filter(Boolean).map(function(ar){var jr={key:ar.key,className:ar.className||"",children:ar.title,column:ar,colStart:rr},Tr=1,Sr=ar.children;return Sr&&Sr.length>0&&(Tr=an(Sr,rr,Rn+1).reduce(function(ti,Mr){return ti+Mr},0),jr.hasSubColumns=!0),"colSpan"in ar&&(Tr=ar.colSpan),"rowSpan"in ar&&(jr.rowSpan=ar.rowSpan),jr.colSpan=Tr,jr.colEnd=jr.colStart+Tr-1,Wt[Rn].push(jr),rr+=Tr,Tr});return lr}an(It,0);for(var un=Wt.length,An=function(Un){Wt[Un].forEach(function(Rn){!("rowSpan"in Rn)&&!Rn.hasSubColumns&&(Rn.rowSpan=un-Un)})},vn=0;vn<un;vn+=1)An(vn);return Wt}function or(It){var Wt=It.stickyOffsets,an=It.columns,un=It.flattenColumns,An=It.onHeaderRow,vn=ye(be,["prefixCls","getComponent"]),Wn=vn.prefixCls,Un=vn.getComponent,Rn=ce.useMemo(function(){return ur(an)},[an]),rr=Un(["header","wrapper"],"thead"),lr=Un(["header","row"],"tr"),ar=Un(["header","cell"],"th"),jr=Un(["header","cell"],"td");return ce.createElement(rr,{className:"".concat(Wn,"-thead")},Rn.map(function(Tr,Sr){var ti=ce.createElement(Dn,{key:Sr,flattenColumns:un,cells:Tr,stickyOffsets:Wt,rowComponent:lr,cellComponent:ar,tdCellComponent:jr,onHeaderRow:An,index:Sr});return ti}))}var vr=ue(or),Hn=We(11592);function Jn(It){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Wt=="number"?Wt:Wt.endsWith("%")?It*parseFloat(Wt)/100:null}function _t(It,Wt){return ce.useMemo(function(){if(Wt&&Wt>0){var an=0,un=0;It.forEach(function(rr){var lr=Jn(Wt,rr.width);lr?an+=lr:un+=1});var An=Wt-an,vn=un,Wn=An/un,Un=0,Rn=It.map(function(rr){var lr=(0,je.Z)({},rr),ar=Jn(Wt,lr.width);if(ar)lr.width=ar;else{var jr=Math.floor(Wn);lr.width=vn===1?An:jr,An-=jr,vn-=1}return Un+=lr.width,lr});return[Rn,Un]}return[It,Wt]},[It,Wt])}var Gt=["children"],Pt=["fixed"];function ln(It){return(0,Hn.Z)(It).filter(function(Wt){return ce.isValidElement(Wt)}).map(function(Wt){var an=Wt.key,un=Wt.props,An=un.children,vn=(0,xe.Z)(un,Gt),Wn=(0,je.Z)({key:an},vn);return An&&(Wn.children=ln(An)),Wn})}function pn(It){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return It.filter(function(an){return an&&(0,Oe.Z)(an)==="object"}).reduce(function(an,un,An){var vn=un.fixed,Wn=vn===!0?"left":vn,Un="".concat(Wt,"-").concat(An),Rn=un.children;return Rn&&Rn.length>0?[].concat((0,br.Z)(an),(0,br.Z)(pn(Rn,Un).map(function(rr){return(0,je.Z)({fixed:Wn},rr)}))):[].concat((0,br.Z)(an),[(0,je.Z)((0,je.Z)({key:Un},un),{},{fixed:Wn})])},[])}function Vt(It){for(var Wt=!0,an=0;an<It.length;an+=1){var un=It[an];if(Wt&&un.fixed!=="left")Wt=!1;else if(!Wt&&un.fixed==="left"){warning(!1,"Index ".concat(an-1," of `columns` missing `fixed='left'` prop."));break}}for(var An=!0,vn=It.length-1;vn>=0;vn-=1){var Wn=It[vn];if(An&&Wn.fixed!=="right")An=!1;else if(!An&&Wn.fixed==="right"){warning(!1,"Index ".concat(vn+1," of `columns` missing `fixed='right'` prop."));break}}}function Dt(It){return It.map(function(Wt){var an=Wt.fixed,un=(0,xe.Z)(Wt,Pt),An=an;return an==="left"?An="right":an==="right"&&(An="left"),(0,je.Z)({fixed:An},un)})}function cn(It,Wt){var an=It.prefixCls,un=It.columns,An=It.children,vn=It.expandable,Wn=It.expandedKeys,Un=It.columnTitle,Rn=It.getRowKey,rr=It.onTriggerExpand,lr=It.expandIcon,ar=It.rowExpandable,jr=It.expandIconColumnIndex,Tr=It.direction,Sr=It.expandRowByClick,ti=It.columnWidth,Mr=It.fixed,_r=It.scrollWidth,Jr=ce.useMemo(function(){return un||ln(An)},[un,An]),di=ce.useMemo(function(){if(vn){var Ei,li=Jr.slice();if(!li.includes(He)){var Gr=jr||0;Gr>=0&&li.splice(Gr,0,He)}var Si=li.indexOf(He);li=li.filter(function(ii,yo){return ii!==He||yo===Si});var zi=Jr[Si],_i;(Mr==="left"||Mr)&&!jr?_i="left":(Mr==="right"||Mr)&&jr===Jr.length?_i="right":_i=zi?zi.fixed:null;var qi=(Ei={},(0,ze.Z)(Ei,Ar,{className:"".concat(an,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ze.Z)(Ei,"title",Un),(0,ze.Z)(Ei,"fixed",_i),(0,ze.Z)(Ei,"className","".concat(an,"-row-expand-icon-cell")),(0,ze.Z)(Ei,"width",ti),(0,ze.Z)(Ei,"render",function(yo,Co,qo){var jo=Rn(Co,qo),ka=Wn.has(jo),Ta=ar?ar(Co):!0,xo=lr({prefixCls:an,expanded:ka,expandable:Ta,record:Co,onExpand:rr});return Sr?ce.createElement("span",{onClick:function(Xo){return Xo.stopPropagation()}},xo):xo}),Ei);return li.map(function(ii){return ii===He?qi:ii})}return Jr.filter(function(ii){return ii!==He})},[vn,Jr,Rn,Wn,lr,Tr]),ki=ce.useMemo(function(){var Ei=di;return Wt&&(Ei=Wt(Ei)),Ei.length||(Ei=[{render:function(){return null}}]),Ei},[Wt,di,Tr]),Zi=ce.useMemo(function(){return Tr==="rtl"?Dt(pn(ki)):pn(ki)},[ki,Tr,_r]),ri=_t(Zi,_r),Oi=(0,oe.Z)(ri,2),mo=Oi[0],hi=Oi[1];return[ki,mo,hi]}var xn=cn;function Nn(It){var Wt,an=It.prefixCls,un=It.record,An=It.onExpand,vn=It.expanded,Wn=It.expandable,Un="".concat(an,"-row-expand-icon");if(!Wn)return ce.createElement("span",{className:Ue()(Un,"".concat(an,"-row-spaced"))});var Rn=function(lr){An(un,lr),lr.stopPropagation()};return ce.createElement("span",{className:Ue()(Un,(Wt={},(0,ze.Z)(Wt,"".concat(an,"-row-expanded"),vn),(0,ze.Z)(Wt,"".concat(an,"-row-collapsed"),!vn),Wt)),onClick:Rn})}function Zn(It,Wt,an){var un=[];function An(vn){(vn||[]).forEach(function(Wn,Un){un.push(Wt(Wn,Un)),An(Wn[an])})}return An(It),un}function Ht(It,Wt,an){var un=Dr(It),An=un.expandIcon,vn=un.expandedRowKeys,Wn=un.defaultExpandedRowKeys,Un=un.defaultExpandAllRows,Rn=un.expandedRowRender,rr=un.onExpand,lr=un.onExpandedRowsChange,ar=un.childrenColumnName,jr=An||Nn,Tr=ar||"children",Sr=ce.useMemo(function(){return Rn?"row":It.expandable&&It.internalHooks===mt&&It.expandable.__PARENT_RENDER_ICON__||Wt.some(function(Zi){return Zi&&(0,Oe.Z)(Zi)==="object"&&Zi[Tr]})?"nest":!1},[!!Rn,Wt]),ti=ce.useState(function(){return Wn||(Un?Zn(Wt,an,Tr):[])}),Mr=(0,oe.Z)(ti,2),_r=Mr[0],Jr=Mr[1],di=ce.useMemo(function(){return new Set(vn||_r||[])},[vn,_r]),ki=ce.useCallback(function(Zi){var ri=an(Zi,Wt.indexOf(Zi)),Oi,mo=di.has(ri);mo?(di.delete(ri),Oi=(0,br.Z)(di)):Oi=[].concat((0,br.Z)(di),[ri]),Jr(Oi),rr&&rr(!mo,Zi),lr&&lr(Oi)},[an,di,Wt,rr,lr]);return[un,Sr,di,jr,Tr,ki]}function En(It,Wt,an,un){var An=It.map(function(vn,Wn){return wt(Wn,Wn,It,Wt,an,un==null?void 0:un[Wn])});return(0,$e.Z)(function(){return An},[An],function(vn,Wn){return!(0,ge.Z)(vn,Wn)})}function Kn(It){var Wt=(0,ce.useRef)(It),an=(0,ce.useState)({}),un=(0,oe.Z)(an,2),An=un[1],vn=(0,ce.useRef)(null),Wn=(0,ce.useRef)([]);function Un(Rn){Wn.current.push(Rn);var rr=Promise.resolve();vn.current=rr,rr.then(function(){if(vn.current===rr){var lr=Wn.current,ar=Wt.current;Wn.current=[],lr.forEach(function(jr){Wt.current=jr(Wt.current)}),vn.current=null,ar!==Wt.current&&An({})}})}return(0,ce.useEffect)(function(){return function(){vn.current=null}},[]),[Wt.current,Un]}function nr(It){var Wt=(0,ce.useRef)(It||null),an=(0,ce.useRef)();function un(){window.clearTimeout(an.current)}function An(Wn){Wt.current=Wn,un(),an.current=window.setTimeout(function(){Wt.current=null,an.current=void 0},100)}function vn(){return Wt.current}return(0,ce.useEffect)(function(){return un},[]),[An,vn]}function rn(){var It=ce.useState(-1),Wt=(0,oe.Z)(It,2),an=Wt[0],un=Wt[1],An=ce.useState(-1),vn=(0,oe.Z)(An,2),Wn=vn[0],Un=vn[1],Rn=ce.useCallback(function(rr,lr){un(rr),Un(lr)},[]);return[an,Wn,Rn]}var bn=We(47273),nn=(0,bn.Z)()?window:null;function wn(It,Wt){var an=(0,Oe.Z)(It)==="object"?It:{},un=an.offsetHeader,An=un===void 0?0:un,vn=an.offsetSummary,Wn=vn===void 0?0:vn,Un=an.offsetScroll,Rn=Un===void 0?0:Un,rr=an.getContainer,lr=rr===void 0?function(){return nn}:rr,ar=lr()||nn;return ce.useMemo(function(){var jr=!!It;return{isSticky:jr,stickyClassName:jr?"".concat(Wt,"-sticky-holder"):"",offsetHeader:An,offsetSummary:Wn,offsetScroll:Rn,container:ar}},[Rn,An,Wn,Wt,ar])}function gn(It,Wt,an){var un=(0,ce.useMemo)(function(){for(var An=[],vn=[],Wn=0,Un=0,Rn=0;Rn<Wt;Rn+=1)if(an==="rtl"){vn[Rn]=Un,Un+=It[Rn]||0;var rr=Wt-Rn-1;An[rr]=Wn,Wn+=It[rr]||0}else{An[Rn]=Wn,Wn+=It[Rn]||0;var lr=Wt-Rn-1;vn[lr]=Un,Un+=It[lr]||0}return{left:An,right:vn}},[It,Wt,an]);return un}var yn=gn;function Ln(It){var Wt=It.className,an=It.children;return ce.createElement("div",{className:Wt},an)}var Tn=Ln,In=We(8224),Gn=We(55468),mr=function(Wt,an){var un,An,vn=Wt.scrollBodyRef,Wn=Wt.onScroll,Un=Wt.offsetScroll,Rn=Wt.container,rr=ye(be,"prefixCls"),lr=((un=vn.current)===null||un===void 0?void 0:un.scrollWidth)||0,ar=((An=vn.current)===null||An===void 0?void 0:An.clientWidth)||0,jr=lr&&ar*(ar/lr),Tr=ce.useRef(),Sr=Kn({scrollLeft:0,isHiddenScrollBar:!1}),ti=(0,oe.Z)(Sr,2),Mr=ti[0],_r=ti[1],Jr=ce.useRef({delta:0,x:0}),di=ce.useState(!1),ki=(0,oe.Z)(di,2),Zi=ki[0],ri=ki[1],Oi=function(){ri(!1)},mo=function(Si){Si.persist(),Jr.current.delta=Si.pageX-Mr.scrollLeft,Jr.current.x=0,ri(!0),Si.preventDefault()},hi=function(Si){var zi,_i=Si||((zi=window)===null||zi===void 0?void 0:zi.event),qi=_i.buttons;if(!Zi||qi===0){Zi&&ri(!1);return}var ii=Jr.current.x+Si.pageX-Jr.current.x-Jr.current.delta;ii<=0&&(ii=0),ii+jr>=ar&&(ii=ar-jr),Wn({scrollLeft:ii/ar*(lr+2)}),Jr.current.x=Si.pageX},Ei=function(){if(vn.current){var Si=(0,Gn.os)(vn.current).top,zi=Si+vn.current.offsetHeight,_i=Rn===window?document.documentElement.scrollTop+window.innerHeight:(0,Gn.os)(Rn).top+Rn.clientHeight;zi-(0,Ot.Z)()<=_i||Si>=_i-Un?_r(function(qi){return(0,je.Z)((0,je.Z)({},qi),{},{isHiddenScrollBar:!0})}):_r(function(qi){return(0,je.Z)((0,je.Z)({},qi),{},{isHiddenScrollBar:!1})})}},li=function(Si){_r(function(zi){return(0,je.Z)((0,je.Z)({},zi),{},{scrollLeft:Si/lr*ar||0})})};return ce.useImperativeHandle(an,function(){return{setScrollLeft:li}}),ce.useEffect(function(){var Gr=(0,In.Z)(document.body,"mouseup",Oi,!1),Si=(0,In.Z)(document.body,"mousemove",hi,!1);return Ei(),function(){Gr.remove(),Si.remove()}},[jr,Zi]),ce.useEffect(function(){var Gr=(0,In.Z)(Rn,"scroll",Ei,!1),Si=(0,In.Z)(window,"resize",Ei,!1);return function(){Gr.remove(),Si.remove()}},[Rn]),ce.useEffect(function(){Mr.isHiddenScrollBar||_r(function(Gr){var Si=vn.current;return Si?(0,je.Z)((0,je.Z)({},Gr),{},{scrollLeft:Si.scrollLeft/Si.scrollWidth*Si.clientWidth}):Gr})},[Mr.isHiddenScrollBar]),lr<=ar||!jr||Mr.isHiddenScrollBar?null:ce.createElement("div",{style:{height:(0,Ot.Z)(),width:ar,bottom:Un},className:"".concat(rr,"-sticky-scroll")},ce.createElement("div",{onMouseDown:mo,ref:Tr,className:Ue()("".concat(rr,"-sticky-scroll-bar"),(0,ze.Z)({},"".concat(rr,"-sticky-scroll-bar-active"),Zi)),style:{width:"".concat(jr,"px"),transform:"translate3d(".concat(Mr.scrollLeft,"px, 0, 0)")}}))},mn=ce.forwardRef(mr);function Pr(It){return null}var Ur=Pr;function Br(It){return null}var Sn=Br,Yn="rc-table",dr=[],Fr={};function fr(){return"No Data"}function Ir(It){var Wt,an=(0,je.Z)({rowKey:"key",prefixCls:Yn,emptyText:fr},It),un=an.prefixCls,An=an.className,vn=an.rowClassName,Wn=an.style,Un=an.data,Rn=an.rowKey,rr=an.scroll,lr=an.tableLayout,ar=an.direction,jr=an.title,Tr=an.footer,Sr=an.summary,ti=an.caption,Mr=an.id,_r=an.showHeader,Jr=an.components,di=an.emptyText,ki=an.onRow,Zi=an.onHeaderRow,ri=an.internalHooks,Oi=an.transformColumns,mo=an.internalRefs,hi=an.tailor,Ei=an.sticky,li=Un||dr,Gr=!!li.length,Si=ri===mt,zi=ce.useCallback(function(na,Fa){return(0,et.Z)(Jr,na)||Fa},[Jr]),_i=ce.useMemo(function(){return typeof Rn=="function"?Rn:function(na){var Fa=na&&na[Rn];return Fa}},[Rn]),qi=zi(["body"]),ii=rn(),yo=(0,oe.Z)(ii,3),Co=yo[0],qo=yo[1],jo=yo[2],ka=Ht(an,li,_i),Ta=(0,oe.Z)(ka,6),xo=Ta[0],Ui=Ta[1],Xo=Ta[2],Na=Ta[3],wa=Ta[4],is=Ta[5],eo=rr==null?void 0:rr.x,Vi=ce.useState(0),to=(0,oe.Z)(Vi,2),Bi=to[0],Qo=to[1],Ii=xn((0,je.Z)((0,je.Z)((0,je.Z)({},an),xo),{},{expandable:!!xo.expandedRowRender,columnTitle:xo.columnTitle,expandedKeys:Xo,getRowKey:_i,onTriggerExpand:is,expandIcon:Na,expandIconColumnIndex:xo.expandIconColumnIndex,direction:ar,scrollWidth:Si&&hi&&typeof eo=="number"?eo:null}),Si?Oi:null),vo=(0,oe.Z)(Ii,3),Ho=vo[0],Uo=vo[1],Cs=vo[2],ls=Cs!=null?Cs:eo,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),No=(0,oe.Z)(gs,2),va=No[0],ms=No[1],pl=Kn(new Map),Wl=(0,oe.Z)(pl,2),El=Wl[0],ql=Wl[1],eu=dt(Uo),Hl=eu.map(function(na){return El.get(na)}),ra=ce.useMemo(function(){return Hl},[Hl.join("_")]),Ms=yn(ra,Uo.length,ar),Za=rr&&St(rr.y),ya=rr&&St(ls)||!!xo.fixed,Ul=ya&&Uo.some(function(na){var Fa=na.fixed;return Fa}),oc=ce.useRef(),tu=wn(Ei,un),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===Me&&Ca.props.fixed,vs,gl,gu;Za&&(gl={overflowY:"scroll",maxHeight:rr.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,At.Z)(ea.current)&&ql(function(Ns){if(Ns.get(na)!==Fa){var nu=new Map(Ns);return nu.set(na,Fa),nu}return Ns})},[]),hn=nr(null),Cc=(0,oe.Z)(hn,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,Ze.Z)(function(na){var Fa=na.currentTarget,Ns=na.scrollLeft,nu=ar==="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(){(!hi||!Si)&&(ts.current instanceof Element?df((0,Ot.o)(ts.current).width):df((0,Ot.o)(ps.current).width)),Gl((0,pt.G)("position","sticky"))},[]),ce.useEffect(function(){Si&&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(Ke,na,Ca))},[Vo,Ca]),pf=ce.useCallback(function(na){return ce.createElement(Ke,na,Ca)},[Ca]),Lu=zi(["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:Zi,fixHeader:Za,scroll:rr},ml=ce.useMemo(function(){return Gr?null:typeof di=="function"?di():di},[Gr,di]),Fd=ce.createElement(er,{data:li,measureColumnWidth:Za||ya||Mu}),Dd=ce.createElement(ai,{colWidths:Uo.map(function(na){var Fa=na.width;return Fa}),columns:Uo}),Zl=ti!=null?ce.createElement("caption",{className:"".concat(un,"-caption")},ti):void 0,yh=(0,Kt.Z)(an,{data:!0}),Od=(0,Kt.Z)(an,{aria:!0});if(Za||Mu){var kd;typeof qi=="function"?(kd=qi(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,je.Z)((0,je.Z)({},vs),gl),onScroll:Qc,ref:ts,className:Ue()("".concat(un,"-body"))},ce.createElement(Lu,(0,De.Z)({style:(0,je.Z)((0,je.Z)({},gu),{},{tableLayout:Pc})},Od),Zl,Dd,Fd,!Vo&&Ca&&ce.createElement(Ke,{stickyOffsets:Ms,flattenColumns:Uo,columns:Ho},Ca)));var Ec=(0,je.Z)((0,je.Z)((0,je.Z)({noData:!li.length,maxContentScroll:ya&&ls==="max-content"},_c),Us),{},{direction:ar,stickyClassName:ba,onScroll:Qc});vh=ce.createElement(ce.Fragment,null,_r!==!1&&ce.createElement(wi,(0,De.Z)({},Ec,{stickyTopOffset:Vu,className:"".concat(un,"-header"),ref:Ps}),mh),kd,Vo&&Vo!=="top"&&ce.createElement(wi,(0,De.Z)({},Ec,{stickyBottomOffset:Al,className:"".concat(un,"-summary"),ref:Ku}),pf),Mu&&ce.createElement(mn,{ref:oc,offsetScroll:_o,scrollBodyRef:ts,onScroll:Qc,container:us}))}else vh=ce.createElement("div",{style:(0,je.Z)((0,je.Z)({},vs),gl),className:Ue()("".concat(un,"-content")),onScroll:Qc,ref:ts},ce.createElement(Lu,(0,De.Z)({style:(0,je.Z)((0,je.Z)({},gu),{},{tableLayout:Pc})},Od),Zl,Dd,_r!==!1&&ce.createElement(vr,(0,De.Z)({},_c,Us)),Fd,Ca&&ce.createElement(Ke,{stickyOffsets:Ms,flattenColumns:Uo,columns:Ho},Ca)));var ol=ce.createElement("div",(0,De.Z)({className:Ue()(un,An,(Wt={},(0,ze.Z)(Wt,"".concat(un,"-rtl"),ar==="rtl"),(0,ze.Z)(Wt,"".concat(un,"-ping-left"),pa),(0,ze.Z)(Wt,"".concat(un,"-ping-right"),va),(0,ze.Z)(Wt,"".concat(un,"-layout-fixed"),lr==="fixed"),(0,ze.Z)(Wt,"".concat(un,"-fixed-header"),Za),(0,ze.Z)(Wt,"".concat(un,"-fixed-column"),Ul),(0,ze.Z)(Wt,"".concat(un,"-scroll-horizontal"),ya),(0,ze.Z)(Wt,"".concat(un,"-has-fix-left"),Uo[0]&&Uo[0].fixed),(0,ze.Z)(Wt,"".concat(un,"-has-fix-right"),Uo[Uo.length-1]&&Uo[Uo.length-1].fixed==="right"),Wt)),style:Wn,id:Mr,ref:ea},yh),jr&&ce.createElement(Tn,{className:"".concat(un,"-title")},jr(li)),ce.createElement("div",{ref:ps,className:"".concat(un,"-container")},vh),Tr&&ce.createElement(Tn,{className:"".concat(un,"-footer")},Tr(li)));ya&&(ol=ce.createElement(ht.Z,{onResize:Vp},ol));var Nd=En(Uo,Ms,ar,Ho),cs=ce.useMemo(function(){return{scrollX:ls,prefixCls:un,getComponent:zi,scrollbarSize:Xh,direction:ar,fixedInfoList:Nd,isSticky:Mu,supportSticky:Td,componentWidth:Bi,fixHeader:Za,fixColumn:Ul,horizonScroll:ya,tableLayout:Pc,rowClassName:vn,expandedRowClassName:xo.expandedRowClassName,expandIcon:Na,expandableType:Ui,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:jo,rowExpandable:xo.rowExpandable,onRow:ki,getRowKey:_i,expandedKeys:Xo,childrenColumnName:wa}},[ls,un,zi,Xh,ar,Nd,Mu,Td,Bi,Za,Ul,ya,Pc,vn,xo.expandedRowClassName,Na,Ui,xo.expandRowByClick,xo.expandedRowRender,is,xo.expandIconColumnIndex,xo.indentSize,ml,Ho,Uo,cf,Co,qo,jo,xo.rowExpandable,ki,_i,Xo,wa]);return ce.createElement(be.Provider,{value:cs},ol)}function Zr(It){return le(Ir,It)}var zr=Zr();zr.EXPAND_COLUMN=He,zr.INTERNAL_HOOKS=mt,zr.Column=Ur,zr.ColumnGroup=Sn,zr.Summary=Ve;var Er=zr,Vr=We(4409),Fn=Ae(null),Mi=Ae(null);function On(It,Wt,an){var un=Wt||1;return an[It+un]-(an[It]||0)}function pi(It){var Wt=It.rowInfo,an=It.column,un=It.colIndex,An=It.indent,vn=It.index,Wn=It.renderIndex,Un=It.record,Rn=It.style,rr=It.className,lr=It.inverse,ar=It.getHeight,jr=an.render,Tr=an.dataIndex,Sr=an.className,ti=an.width,Mr=ye(Mi,["columnsOffset"]),_r=Mr.columnsOffset,Jr=Qt(Wt,an,un,An,vn),di=Jr.key,ki=Jr.fixedInfo,Zi=Jr.appendCellNode,ri=Jr.additionalCellProps,Oi=ri.style,mo=ri.colSpan,hi=mo===void 0?1:mo,Ei=ri.rowSpan,li=Ei===void 0?1:Ei,Gr=un-1,Si=On(Gr,hi,_r),zi=hi>1?ti-Si:0,_i=(0,je.Z)((0,je.Z)((0,je.Z)({},Oi),Rn),{},{flex:"0 0 ".concat(Si,"px"),width:"".concat(Si,"px"),marginRight:zi,pointerEvents:"auto"}),qi=ce.useMemo(function(){return lr?li<=1:hi===0||li===0||li>1},[li,hi,lr]);qi?_i.visibility="hidden":lr&&(_i.height=ar==null?void 0:ar(li));var ii=qi?function(){return null}:jr,yo={};return(li===0||hi===0)&&(yo.rowSpan=1,yo.colSpan=1),ce.createElement(Zt,(0,De.Z)({className:Ue()(Sr,rr),ellipsis:an.ellipsis,align:an.align,scope:an.rowScope,component:"div",prefixCls:Wt.prefixCls,key:di,record:Un,index:vn,renderIndex:Wn,dataIndex:Tr,render:ii,shouldCellUpdate:an.shouldCellUpdate},ki,{appendNode:Zi,additionalProps:(0,je.Z)((0,je.Z)({},ri),{},{style:_i},yo)}))}var Ni=pi,Qr=["data","index","className","rowKey","style","extra","getHeight"],Xi=ce.forwardRef(function(It,Wt){var an=It.data,un=It.index,An=It.className,vn=It.rowKey,Wn=It.style,Un=It.extra,Rn=It.getHeight,rr=(0,xe.Z)(It,Qr),lr=an.record,ar=an.indent,jr=an.index,Tr=ye(be,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Sr=Tr.scrollX,ti=Tr.flattenColumns,Mr=Tr.prefixCls,_r=Tr.fixColumn,Jr=Tr.componentWidth,di=Ft(lr,vn,un,ar),ki=di.rowSupportExpand,Zi=di.expanded,ri=di.rowProps,Oi=di.expandedRowRender,mo=di.expandedRowClassName,hi;if(ki&&Zi){var Ei=Oi(lr,un,ar+1,Zi),li=mo==null?void 0:mo(lr,un,ar),Gr={};_r&&(Gr={style:(0,ze.Z)({},"--virtual-width","".concat(Jr,"px"))});var Si="".concat(Mr,"-expanded-row-cell");hi=ce.createElement("div",{className:Ue()("".concat(Mr,"-expanded-row"),"".concat(Mr,"-expanded-row-level-").concat(ar+1),li)},ce.createElement(Zt,{component:"div",prefixCls:Mr,className:Ue()(Si,(0,ze.Z)({},"".concat(Si,"-fixed"),_r)),additionalProps:Gr},Ei))}var zi=(0,je.Z)((0,je.Z)({},Wn),{},{width:Sr});Un&&(zi.position="absolute",zi.pointerEvents="none");var _i=ce.createElement("div",(0,De.Z)({},ri,rr,{ref:ki?null:Wt,className:Ue()(An,"".concat(Mr,"-row"),ri==null?void 0:ri.className,(0,ze.Z)({},"".concat(Mr,"-row-extra"),Un)),style:(0,je.Z)((0,je.Z)({},zi),ri==null?void 0:ri.style)}),ti.map(function(qi,ii){return ce.createElement(Ni,{key:ii,rowInfo:di,column:qi,colIndex:ii,indent:ar,index:un,renderIndex:jr,record:lr,inverse:Un,getHeight:Rn})}));return ki?ce.createElement("div",{ref:Wt},_i,hi):_i}),Ti=ue(Xi),Rr=Ti,Wr=ce.forwardRef(function(It,Wt){var an=It.data,un=It.onScroll,An=ye(be,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),vn=An.flattenColumns,Wn=An.onColumnResize,Un=An.getRowKey,Rn=An.expandedKeys,rr=An.prefixCls,lr=An.childrenColumnName,ar=An.emptyNode,jr=An.scrollX,Tr=ye(Fn),Sr=Tr.scrollY,ti=Tr.listItemHeight,Mr=ce.useRef(),_r=Rt(an,lr,Rn,Un),Jr=ce.useMemo(function(){var hi=0;return vn.map(function(Ei){var li=Ei.width,Gr=Ei.key;return hi+=li,[Gr,li,hi]})},[vn]),di=ce.useMemo(function(){return Jr.map(function(hi){return hi[2]})},[Jr]);ce.useEffect(function(){Jr.forEach(function(hi){var Ei=(0,oe.Z)(hi,2),li=Ei[0],Gr=Ei[1];Wn(li,Gr)})},[Jr]),ce.useImperativeHandle(Wt,function(){var hi={};return Object.defineProperty(hi,"scrollLeft",{get:function(){var li;return((li=Mr.current)===null||li===void 0?void 0:li.getScrollInfo().x)||0},set:function(li){var Gr;(Gr=Mr.current)===null||Gr===void 0||Gr.scrollTo({left:li})}}),hi});var ki=function(Ei,li){var Gr,Si=(Gr=_r[li])===null||Gr===void 0?void 0:Gr.record,zi=Ei.onCell;if(zi){var _i,qi=zi(Si,li);return(_i=qi==null?void 0:qi.rowSpan)!==null&&_i!==void 0?_i:1}return 1},Zi=function(Ei){var li=Ei.start,Gr=Ei.end,Si=Ei.getSize,zi=Ei.offsetY;if(Gr<0)return null;for(var _i=vn.filter(function(eo){return ki(eo,li)===0}),qi=li,ii=function(Vi){if(_i=_i.filter(function(to){return ki(to,Vi)===0}),!_i.length)return qi=Vi,"break"},yo=li;yo>=0;yo-=1){var Co=ii(yo);if(Co==="break")break}for(var qo=vn.filter(function(eo){return ki(eo,Gr)!==1}),jo=Gr,ka=function(Vi){if(qo=qo.filter(function(to){return ki(to,Vi)!==1}),!qo.length)return jo=Math.max(Vi-1,Gr),"break"},Ta=Gr;Ta<_r.length;Ta+=1){var xo=ka(Ta);if(xo==="break")break}for(var Ui=[],Xo=function(Vi){var to=_r[Vi];if(!to)return"continue";vn.some(function(Bi){return ki(Bi,Vi)>1})&&Ui.push(Vi)},Na=qi;Na<=jo;Na+=1)var wa=Xo(Na);var is=Ui.map(function(eo){var Vi=_r[eo],to=Un(Vi.record,eo),Bi=function(vo){var Ho=eo+vo-1,Uo=Un(_r[Ho].record,Ho),Cs=Si(to,Uo);return Cs.bottom-Cs.top},Qo=Si(to);return ce.createElement(Rr,{key:eo,data:Vi,rowKey:to,index:eo,style:{top:-zi+Qo.top},extra:!0,getHeight:Bi})});return is},ri=ce.useMemo(function(){return{columnsOffset:di}},[di]),Oi="".concat(rr,"-tbody"),mo;return _r.length?mo=ce.createElement(Vr.Z,{fullHeight:!1,ref:Mr,className:Ue()(Oi,"".concat(Oi,"-virtual")),height:Sr,itemHeight:ti||24,data:_r,itemKey:function(Ei){return Un(Ei.record)},scrollWidth:jr,onVirtualScroll:function(Ei){var li=Ei.x;un({scrollLeft:li})},extraRender:Zi},function(hi,Ei,li){var Gr=Un(hi.record,Ei);return ce.createElement(Rr,(0,De.Z)({data:hi,rowKey:Gr,index:Ei},li))}):mo=ce.createElement("div",{className:Ue()("".concat(rr,"-placeholder"))},ce.createElement(Zt,{component:"div",prefixCls:rr},ar)),ce.createElement(Mi.Provider,{value:ri},mo)}),bi=ue(Wr),Di=bi,pr=function(Wt,an){var un=an.ref,An=an.onScroll;return ce.createElement(Di,{ref:un,data:Wt,onScroll:An})},Lt=100;function Li(It){var Wt=It.columns,an=It.scroll,un=It.prefixCls,An=un===void 0?Yn:un,vn=It.className,Wn=It.listItemHeight,Un=an||{},Rn=Un.x,rr=Un.y;typeof Rn!="number"&&(Rn=((Wt||[]).length+1)*Lt),typeof rr!="number"&&(rr=500);var lr=ce.useMemo(function(){return{scrollY:rr,listItemHeight:Wn}},[rr,Wn]);return ce.createElement(Fn.Provider,{value:lr},ce.createElement(Er,(0,De.Z)({},It,{className:Ue()(vn,"".concat(An,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},an),{},{x:Rn}),components:{body:pr},columns:Wt,internalHooks:mt,tailor:!0})))}function so(It){return le(Li,It)}var Pi=so(),wo=null;function po(It){return null}var Eo=po;function yi(It){return null}var si=yi,ei=We(2738),Ji=We(68031),no=We(36355),Yr=We(93891),Kr=We(19716),qn=We(8628),ci=We(31724),ro=We(58421),Do=We(71418),lo=We(88088);function Qi(It){return function(an){let{prefixCls:un,onExpand:An,record:vn,expanded:Wn,expandable:Un}=an;const Rn=`${un}-row-expand-icon`;return ce.createElement("button",{type:"button",onClick:rr=>{An(vn,rr),rr.stopPropagation()},className:Ue()(Rn,{[`${Rn}-spaced`]:!Un,[`${Rn}-expanded`]:Un&&Wn,[`${Rn}-collapsed`]:Un&&!Wn}),"aria-label":Wn?It.collapse:It.expand,"aria-expanded":Wn})}}var Oo=Qi;function ko(It,Wt){return"key"in It&&It.key!==void 0&&It.key!==null?It.key:It.dataIndex?Array.isArray(It.dataIndex)?It.dataIndex.join("."):It.dataIndex:Wt}function oa(It,Wt){return Wt?`${Wt}-${It}`:`${It}`}function la(It,Wt){return typeof It=="function"?It(Wt):It}function Ma(It,Wt){const an=la(It,Wt);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=We(7657),xs=function(Wt,an){return ce.createElement(fu.Z,(0,De.Z)({},Wt,{ref:an,icon:ha}))},bo=ce.forwardRef(xs),io=bo,da=We(56762);function Ao(It){const Wt=ce.useRef(It),an=(0,da.Z)();return[()=>Wt.current,un=>{Wt.current=un,an()}]}var $i=We(3113),Io=We(24905),ws=We(38854),Ci=We(64165),co=We(20834),ao=We(40875),kr=We(5112),za=We(17574),Wa=We(47472),Es=We(92832);function Nl(It){let{value:Wt,onChange:an,filterSearch:un,tablePrefixCls:An,locale:vn}=It;return un?ce.createElement("div",{className:`${An}-filter-dropdown-search`},ce.createElement(Es.default,{prefix:ce.createElement(Wa.Z,null),placeholder:vn.filterSearchPlaceholder,onChange:an,value:Wt,htmlSize:1,className:`${An}-filter-dropdown-search-input`})):null}var $l=Nl,wr=We(10228);const ua=It=>{const{keyCode:Wt}=It;Wt===wr.Z.ENTER&&It.stopPropagation()};var Cl=ce.forwardRef((It,Wt)=>ce.createElement("div",{className:It.className,onClick:an=>an.stopPropagation(),onKeyDown:ua,ref:Wt},It.children));function Bl(It){let Wt=[];return(It||[]).forEach(an=>{let{value:un,children:An}=an;Wt.push(un),An&&(Wt=[].concat((0,br.Z)(Wt),(0,br.Z)(Bl(An))))}),Wt}function Il(It){return It.some(Wt=>{let{children:an}=Wt;return an})}function Ri(It,Wt){return typeof Wt=="string"||typeof Wt=="number"?Wt==null?void 0:Wt.toString().toLowerCase().includes(It.trim().toLowerCase()):!1}function mc(It){let{filters:Wt,prefixCls:an,filteredKeys:un,filterMultiple:An,searchValue:vn,filterSearch:Wn}=It;return Wt.map((Un,Rn)=>{const rr=String(Un.value);if(Un.children)return{key:rr||Rn,label:Un.text,popupClassName:`${an}-dropdown-submenu`,children:mc({filters:Un.children,prefixCls:an,filteredKeys:un,filterMultiple:An,searchValue:vn,filterSearch:Wn})};const lr=An?Io.default:kr.ZP,ar={key:Un.value!==void 0?rr:Rn,label:ce.createElement(ce.Fragment,null,ce.createElement(lr,{checked:un.includes(rr)}),ce.createElement("span",null,Un.text))};return vn.trim()?typeof Wn=="function"?Wn(vn,Un)?ar:null:Ri(vn,Un.text)?ar:null:ar})}function tl(It){var Wt,an;const{tablePrefixCls:un,prefixCls:An,column:vn,dropdownPrefixCls:Wn,columnKey:Un,filterMultiple:Rn,filterMode:rr="menu",filterSearch:lr=!1,filterState:ar,triggerFilter:jr,locale:Tr,children:Sr,getPopupContainer:ti}=It,{filterDropdownOpen:Mr,onFilterDropdownOpenChange:_r,filterResetToDefaultFilteredValue:Jr,defaultFilteredValue:di,filterDropdownVisible:ki,onFilterDropdownVisibleChange:Zi}=vn,[ri,Oi]=ce.useState(!1),mo=!!(ar&&(!((Wt=ar.filteredKeys)===null||Wt===void 0)&&Wt.length||ar.forceFiltered)),hi=Ii=>{Oi(Ii),_r==null||_r(Ii),Zi==null||Zi(Ii)},Ei=(an=Mr!=null?Mr:ki)!==null&&an!==void 0?an:ri,li=ar==null?void 0:ar.filteredKeys,[Gr,Si]=Ao(li||[]),zi=Ii=>{let{selectedKeys:vo}=Ii;Si(vo)},_i=(Ii,vo)=>{let{node:Ho,checked:Uo}=vo;zi(Rn?{selectedKeys:Ii}:{selectedKeys:Uo&&Ho.key?[Ho.key]:[]})};ce.useEffect(()=>{ri&&zi({selectedKeys:li||[]})},[li]);const[qi,ii]=ce.useState([]),yo=Ii=>{ii(Ii)},[Co,qo]=ce.useState(""),jo=Ii=>{const{value:vo}=Ii.target;qo(vo)};ce.useEffect(()=>{ri||qo("")},[ri]);const ka=Ii=>{const vo=Ii&&Ii.length?Ii:null;if(vo===null&&(!ar||!ar.filteredKeys)||(0,ge.Z)(vo,ar==null?void 0:ar.filteredKeys,!0))return null;jr({column:vn,key:Un,filteredKeys:vo})},Ta=()=>{hi(!1),ka(Gr())},xo=function(){let{confirm:Ii,closeDropdown:vo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ii&&ka([]),vo&&hi(!1),qo(""),Si(Jr?(di||[]).map(Ho=>String(Ho)):[])},Ui=function(){let{closeDropdown:Ii}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ii&&hi(!1),ka(Gr())},Xo=Ii=>{Ii&&li!==void 0&&Si(li||[]),hi(Ii),!Ii&&!vn.filterDropdown&&Ta()},Na=Ue()({[`${Wn}-menu-without-submenu`]:!Il(vn.filters||[])}),wa=Ii=>{if(Ii.target.checked){const vo=Bl(vn==null?void 0:vn.filters).map(Ho=>String(Ho));Si(vo)}else Si([])},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})},eo=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=>eo(Ho)))||[]})};let Vi;if(typeof vn.filterDropdown=="function")Vi=vn.filterDropdown({prefixCls:`${Wn}-custom`,setSelectedKeys:Ii=>zi({selectedKeys:Ii}),selectedKeys:Gr(),confirm:Ui,clearFilters:xo,filters:vn.filters,visible:Ei,close:()=>{hi(!1)}});else if(vn.filterDropdown)Vi=vn.filterDropdown;else{const Ii=Gr()||[],vo=()=>(vn.filters||[]).length===0?ce.createElement(Ci.Z,{image:Ci.Z.PRESENTED_IMAGE_SIMPLE,description:Tr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):rr==="tree"?ce.createElement(ce.Fragment,null,ce.createElement($l,{filterSearch:lr,value:Co,onChange:jo,tablePrefixCls:un,locale:Tr}),ce.createElement("div",{className:`${un}-filter-dropdown-tree`},Rn?ce.createElement(Io.default,{checked:Ii.length===Bl(vn.filters).length,indeterminate:Ii.length>0&&Ii.length<Bl(vn.filters).length,className:`${un}-filter-dropdown-checkall`,onChange:wa},Tr.filterCheckall):null,ce.createElement(za.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Rn,checkStrictly:!Rn,className:`${Wn}-menu`,onCheck:_i,checkedKeys:Ii,selectedKeys:Ii,showIcon:!1,treeData:is({filters:vn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Co.trim()?Uo=>typeof lr=="function"?lr(Co,eo(Uo)):Ri(Co,Uo.title):void 0}))):ce.createElement(ce.Fragment,null,ce.createElement($l,{filterSearch:lr,value:Co,onChange:jo,tablePrefixCls:un,locale:Tr}),ce.createElement(co.default,{selectable:!0,multiple:Rn,prefixCls:`${Wn}-menu`,className:Na,onSelect:zi,onDeselect:zi,selectedKeys:Ii,getPopupContainer:ti,openKeys:qi,onOpenChange:yo,items:mc({filters:vn.filters||[],filterSearch:lr,prefixCls:An,filteredKeys:Gr(),filterMultiple:Rn,searchValue:Co})})),Ho=()=>Jr?(0,ge.Z)((di||[]).map(Uo=>String(Uo)),Ii,!0):Ii.length===0;Vi=ce.createElement(ce.Fragment,null,vo(),ce.createElement("div",{className:`${An}-dropdown-btns`},ce.createElement($i.ZP,{type:"link",size:"small",disabled:Ho(),onClick:()=>xo()},Tr.filterReset),ce.createElement($i.ZP,{type:"primary",size:"small",onClick:Ta},Tr.filterConfirm)))}vn.filterDropdown&&(Vi=ce.createElement(ao.J,{selectable:void 0},Vi));const to=()=>ce.createElement(Cl,{className:`${An}-dropdown`},Vi);let Bi;typeof vn.filterIcon=="function"?Bi=vn.filterIcon(mo):vn.filterIcon?Bi=vn.filterIcon:Bi=ce.createElement(io,null);const{direction:Qo}=ce.useContext(no.E_);return ce.createElement("div",{className:`${An}-column`},ce.createElement("span",{className:`${un}-column-title`},Sr),ce.createElement(ws.Z,{dropdownRender:to,trigger:["click"],open:Ei,onOpenChange:Xo,getPopupContainer:ti,placement:Qo==="rtl"?"bottomLeft":"bottomRight"},ce.createElement("span",{role:"button",tabIndex:-1,className:Ue()(`${An}-trigger`,{active:mo}),onClick:Ii=>{Ii.stopPropagation()}},Bi)))}var nl=tl;function ks(It,Wt,an){let un=[];return(It||[]).forEach((An,vn)=>{var Wn;const Un=oa(vn,an);if(An.filters||"filterDropdown"in An||"onFilter"in An)if("filteredValue"in An){let Rn=An.filteredValue;"filterDropdown"in An||(Rn=(Wn=Rn==null?void 0:Rn.map(String))!==null&&Wn!==void 0?Wn:Rn),un.push({column:An,key:ko(An,Un),filteredKeys:Rn,forceFiltered:An.filtered})}else un.push({column:An,key:ko(An,Un),filteredKeys:Wt&&An.defaultFilteredValue?An.defaultFilteredValue:void 0,forceFiltered:An.filtered});"children"in An&&(un=[].concat((0,br.Z)(un),(0,br.Z)(ks(An.children,Wt,Un))))}),un}function Eu(It,Wt,an,un,An,vn,Wn,Un){return an.map((Rn,rr)=>{const lr=oa(rr,Un),{filterMultiple:ar=!0,filterMode:jr,filterSearch:Tr}=Rn;let Sr=Rn;if(Sr.filters||Sr.filterDropdown){const ti=ko(Sr,lr),Mr=un.find(_r=>{let{key:Jr}=_r;return ti===Jr});Sr=Object.assign(Object.assign({},Sr),{title:_r=>ce.createElement(nl,{tablePrefixCls:It,prefixCls:`${It}-filter`,dropdownPrefixCls:Wt,column:Sr,columnKey:ti,filterState:Mr,filterMultiple:ar,filterMode:jr,filterSearch:Tr,triggerFilter:vn,locale:An,getPopupContainer:Wn},la(Rn.title,_r))})}return"children"in Sr&&(Sr=Object.assign(Object.assign({},Sr),{children:Eu(It,Wt,Sr.children,un,An,vn,Wn,lr)})),Sr})}function Ru(It){const Wt={};return It.forEach(an=>{let{key:un,filteredKeys:An,column:vn}=an;const{filters:Wn,filterDropdown:Un}=vn;if(Un)Wt[un]=An||null;else if(Array.isArray(An)){const Rn=Bl(Wn);Wt[un]=Rn.filter(rr=>An.includes(String(rr)))}else Wt[un]=null}),Wt}function Ws(It,Wt){return Wt.reduce((an,un)=>{const{column:{onFilter:An,filters:vn},filteredKeys:Wn}=un;return An&&Wn&&Wn.length?an.filter(Un=>Wn.some(Rn=>{const rr=Bl(vn),lr=rr.findIndex(jr=>String(jr)===String(Rn)),ar=lr!==-1?rr[lr]:Rn;return An(ar,Un)})):an},It)}const dl=It=>It.flatMap(Wt=>"children"in Wt?[Wt].concat((0,br.Z)(dl(Wt.children||[]))):[Wt]);function Hc(It){let{prefixCls:Wt,dropdownPrefixCls:an,mergedColumns:un,onFilterChange:An,getPopupContainer:vn,locale:Wn}=It;const Un=ce.useMemo(()=>dl(un||[]),[un]),[Rn,rr]=ce.useState(()=>ks(Un,!0)),lr=ce.useMemo(()=>{const Sr=ks(Un,!1);if(Sr.length===0)return Sr;let ti=!0,Mr=!0;if(Sr.forEach(_r=>{let{filteredKeys:Jr}=_r;Jr!==void 0?ti=!1:Mr=!1}),ti){const _r=(Un||[]).map((Jr,di)=>ko(Jr,oa(di)));return Rn.filter(Jr=>{let{key:di}=Jr;return _r.includes(di)}).map(Jr=>{const di=Un[_r.findIndex(ki=>ki===Jr.key)];return Object.assign(Object.assign({},Jr),{column:Object.assign(Object.assign({},Jr.column),di),forceFiltered:di.filtered})})}return Sr},[Un,Rn]),ar=ce.useMemo(()=>Ru(lr),[lr]),jr=Sr=>{const ti=lr.filter(Mr=>{let{key:_r}=Mr;return _r!==Sr.key});ti.push(Sr),rr(ti),An(Ru(ti),ti)};return[Sr=>Eu(Wt,an,Sr,lr,Wn,jr,vn),lr,ar]}var hh=Hc;function Uc(It,Wt,an){const un=ce.useRef({});function An(vn){if(!un.current||un.current.data!==It||un.current.childrenColumnName!==Wt||un.current.getRowKey!==an){let Un=function(Rn){Rn.forEach((rr,lr)=>{const ar=an(rr,lr);Wn.set(ar,rr),rr&&typeof rr=="object"&&Wt in rr&&Un(rr[Wt]||[])})};const Wn=new Map;Un(It),un.current={data:It,childrenColumnName:Wt,kvMap:Wn,getRowKey:an}}return un.current.kvMap.get(vn)}return[An]}var Gh=We(50371),Gc=function(It,Wt){var an={};for(var un in It)Object.prototype.hasOwnProperty.call(It,un)&&Wt.indexOf(un)<0&&(an[un]=It[un]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,un=Object.getOwnPropertySymbols(It);An<un.length;An++)Wt.indexOf(un[An])<0&&Object.prototype.propertyIsEnumerable.call(It,un[An])&&(an[un[An]]=It[un[An]]);return an};const vc=10;function zu(It,Wt){const an={current:It.current,pageSize:It.pageSize};return Object.keys(Wt&&typeof Wt=="object"?Wt:{}).forEach(An=>{const vn=It[An];typeof vn!="function"&&(an[An]=vn)}),an}function jl(It,Wt,an){const un=an&&typeof an=="object"?an:{},{total:An=0}=un,vn=Gc(un,["total"]),[Wn,Un]=(0,ce.useState)(()=>({current:"defaultCurrent"in vn?vn.defaultCurrent:1,pageSize:"defaultPageSize"in vn?vn.defaultPageSize:vc})),Rn=(0,Gh.Z)(Wn,vn,{total:An>0?An:It}),rr=Math.ceil((An||It)/Rn.pageSize);Rn.current>rr&&(Rn.current=rr||1);const lr=(jr,Tr)=>{Un({current:jr!=null?jr:1,pageSize:Tr||Rn.pageSize})},ar=(jr,Tr)=>{var Sr;an&&((Sr=an.onChange)===null||Sr===void 0||Sr.call(an,jr,Tr)),lr(jr,Tr),Wt(jr,Tr||(Rn==null?void 0:Rn.pageSize))};return an===!1?[{},()=>{}]:[Object.assign(Object.assign({},Rn),{onChange:ar}),lr]}var dh=jl,Zc=We(84105),yc=We(35654),oo=We(90782),zo=We(71430),As=We(18929);const _a={},Ha="SELECT_ALL",ga="SELECT_INVERT",La="SELECT_NONE",Ya=[],Ua=(It,Wt)=>{let an=[];return(Wt||[]).forEach(un=>{an.push(un),un&&typeof un=="object"&&It in un&&(an=[].concat((0,br.Z)(an),(0,br.Z)(Ua(It,un[It]))))}),an};var Rl=(It,Wt)=>{const{preserveSelectedRowKeys:an,selectedRowKeys:un,defaultSelectedRowKeys:An,getCheckboxProps:vn,onChange:Wn,onSelect:Un,onSelectAll:Rn,onSelectInvert:rr,onSelectNone:lr,onSelectMultiple:ar,columnWidth:jr,type:Tr,selections:Sr,fixed:ti,renderCell:Mr,hideSelectAll:_r,checkStrictly:Jr=!0}=Wt||{},{prefixCls:di,data:ki,pageData:Zi,getRecordByKey:ri,getRowKey:Oi,expandType:mo,childrenColumnName:hi,locale:Ei,getPopupContainer:li}=It,[Gr,Si]=(0,As.Z)(un||An||Ya,{value:un}),zi=ce.useRef(new Map),_i=(0,ce.useCallback)(eo=>{if(an){const Vi=new Map;eo.forEach(to=>{let Bi=ri(to);!Bi&&zi.current.has(to)&&(Bi=zi.current.get(to)),Vi.set(to,Bi)}),zi.current=Vi}},[ri,an]);ce.useEffect(()=>{_i(Gr)},[Gr]);const{keyEntities:qi}=(0,ce.useMemo)(()=>{if(Jr)return{keyEntities:null};let eo=ki;if(an){const Vi=new Set(ki.map((Bi,Qo)=>Oi(Bi,Qo))),to=Array.from(zi.current).reduce((Bi,Qo)=>{let[Ii,vo]=Qo;return Vi.has(Ii)?Bi:Bi.concat(vo)},[]);eo=[].concat((0,br.Z)(eo),(0,br.Z)(to))}return(0,zo.I8)(eo,{externalGetKey:Oi,childrenPropName:hi})},[ki,Oi,Jr,hi,an]),ii=(0,ce.useMemo)(()=>Ua(hi,Zi),[hi,Zi]),yo=(0,ce.useMemo)(()=>{const eo=new Map;return ii.forEach((Vi,to)=>{const Bi=Oi(Vi,to),Qo=(vn?vn(Vi):null)||{};eo.set(Bi,Qo)}),eo},[ii,Oi,vn]),Co=(0,ce.useCallback)(eo=>{var Vi;return!!(!((Vi=yo.get(Oi(eo)))===null||Vi===void 0)&&Vi.disabled)},[yo,Oi]),[qo,jo]=(0,ce.useMemo)(()=>{if(Jr)return[Gr||[],[]];const{checkedKeys:eo,halfCheckedKeys:Vi}=(0,oo.S)(Gr,!0,qi,Co);return[eo||[],Vi]},[Gr,Jr,qi,Co]),ka=(0,ce.useMemo)(()=>{const eo=Tr==="radio"?qo.slice(0,1):qo;return new Set(eo)},[qo,Tr]),Ta=(0,ce.useMemo)(()=>Tr==="radio"?new Set:new Set(jo),[jo,Tr]),[xo,Ui]=(0,ce.useState)(null);ce.useEffect(()=>{Wt||Si(Ya)},[!!Wt]);const Xo=(0,ce.useCallback)((eo,Vi)=>{let to,Bi;_i(eo),an?(to=eo,Bi=eo.map(Qo=>zi.current.get(Qo))):(to=[],Bi=[],eo.forEach(Qo=>{const Ii=ri(Qo);Ii!==void 0&&(to.push(Qo),Bi.push(Ii))})),Si(to),Wn==null||Wn(to,Bi,{type:Vi})},[Si,ri,Wn,an]),Na=(0,ce.useCallback)((eo,Vi,to,Bi)=>{if(Un){const Qo=to.map(Ii=>ri(Ii));Un(ri(eo),Vi,Qo,Bi)}Xo(to,"single")},[Un,ri,Xo]),wa=(0,ce.useMemo)(()=>!Sr||_r?null:(Sr===!0?[Ha,ga,La]:Sr).map(Vi=>Vi===Ha?{key:"all",text:Ei.selectionAll,onSelect(){Xo(ki.map((to,Bi)=>Oi(to,Bi)).filter(to=>{const Bi=yo.get(to);return!(Bi!=null&&Bi.disabled)||ka.has(to)}),"all")}}:Vi===ga?{key:"invert",text:Ei.selectInvert,onSelect(){const to=new Set(ka);Zi.forEach((Qo,Ii)=>{const vo=Oi(Qo,Ii),Ho=yo.get(vo);Ho!=null&&Ho.disabled||(to.has(vo)?to.delete(vo):to.add(vo))});const Bi=Array.from(to);rr&&rr(Bi),Xo(Bi,"invert")}}:Vi===La?{key:"none",text:Ei.selectNone,onSelect(){lr==null||lr(),Xo(Array.from(ka).filter(to=>{const Bi=yo.get(to);return Bi==null?void 0:Bi.disabled}),"none")}}:Vi).map(Vi=>Object.assign(Object.assign({},Vi),{onSelect:function(){for(var to,Bi,Qo=arguments.length,Ii=new Array(Qo),vo=0;vo<Qo;vo++)Ii[vo]=arguments[vo];(Bi=Vi.onSelect)===null||Bi===void 0||(to=Bi).call.apply(to,[Vi].concat(Ii)),Ui(null)}})),[Sr,ka,Zi,Oi,rr,Xo]);return[(0,ce.useCallback)(eo=>{var Vi;if(!Wt)return eo.filter(ta=>ta!==_a);let to=(0,br.Z)(eo);const Bi=new Set(ka),Qo=ii.map(Oi).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);Rn==null||Rn(!Ii,aa.map(pa=>ri(pa)),ta.map(pa=>ri(pa))),Xo(aa,"all"),Ui(null)};let Uo;if(Tr!=="radio"){let ta;if(wa){const No={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:No,getPopupContainer:li},ce.createElement("span",null,ce.createElement(Zc.Z,null))))}const aa=ii.map((No,va)=>{const ms=Oi(No,va),pl=yo.get(ms)||{};return Object.assign({checked:Bi.has(ms)},pl)}).filter(No=>{let{disabled:va}=No;return va}),pa=!!aa.length&&aa.length===ii.length,Qa=pa&&aa.every(No=>{let{checked:va}=No;return va}),gs=pa&&aa.some(No=>{let{checked:va}=No;return va});Uo=!_r&&ce.createElement("div",{className:`${di}-selection`},ce.createElement(Io.default,{checked:pa?Qa:!!ii.length&&Ii,indeterminate:pa?!Qa&&gs:!Ii&&vo,onChange:Ho,disabled:ii.length===0||pa,"aria-label":ta?"Custom selection":"Select all",skipGroup:!0}),ta)}let Cs;Tr==="radio"?Cs=(ta,aa,pa)=>{const Qa=Oi(aa,pa),gs=Bi.has(Qa);return{node:ce.createElement(kr.ZP,Object.assign({},yo.get(Qa),{checked:gs,onClick:No=>No.stopPropagation(),onChange:No=>{Bi.has(Qa)||Na(Qa,!0,[Qa],No.nativeEvent)}})),checked:gs}}:Cs=(ta,aa,pa)=>{var Qa;const gs=Oi(aa,pa),No=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(Io.default,Object.assign({},ms,{indeterminate:pl,checked:No,skipGroup:!0,onClick:Wl=>Wl.stopPropagation(),onChange:Wl=>{let{nativeEvent:El}=Wl;const{shiftKey:ql}=El;let eu=-1,Hl=-1;if(ql&&Jr){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&&Jr){const ra=Qo.slice(eu,Hl+1),Ms=[];No?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);ar==null||ar(!No,Za.map(ya=>ri(ya)),Ms.map(ya=>ri(ya))),Xo(Za,"multiple")}else{const ra=qo;if(Jr){const Ms=No?(0,yc._5)(ra,gs):(0,yc.L0)(ra,gs);Na(gs,!No,Ms,El)}else{const Ms=(0,oo.S)([].concat((0,br.Z)(ra),[gs]),!0,qi,Co),{checkedKeys:Za,halfCheckedKeys:ya}=Ms;let Ul=Za;if(No){const oc=new Set(Za);oc.delete(gs),Ul=(0,oo.S)(Array.from(oc),{checked:!1,halfCheckedKeys:ya},qi,Co).checkedKeys}Na(gs,!No,Ul,El)}}Ui(No?null:gs)}})),checked:No}};const ls=(ta,aa,pa)=>{const{node:Qa,checked:gs}=Cs(ta,aa,pa);return Mr?Mr(gs,aa,pa,Qa):Qa};if(!to.includes(_a))if(to.findIndex(ta=>{var aa;return((aa=ta[Ar])===null||aa===void 0?void 0:aa.columnType)==="EXPAND_COLUMN"})===0){const[ta,...aa]=to;to=[ta,_a].concat((0,br.Z)(aa))}else to=[_a].concat((0,br.Z)(to));const Us=to.indexOf(_a);to=to.filter((ta,aa)=>ta!==_a||aa===Us);const ea=to[Us-1],Ps=to[Us+1];let ts=ti;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&&((Vi=ea[Ar])===null||Vi===void 0?void 0:Vi.columnType)==="EXPAND_COLUMN"&&ea.fixed===void 0&&(ea.fixed=ts);const ps=Ue()(`${di}-selection-col`,{[`${di}-selection-col-with-dropdown`]:Sr&&Tr==="checkbox"}),Ku={fixed:ts,width:jr,className:`${di}-selection-column`,title:Wt.columnTitle||Uo,render:ls,onCell:Wt.onCell,[Ar]:{className:ps}};return to.map(ta=>ta===_a?Ku:ta)},[Oi,ii,Wt,qo,ka,Ta,jr,wa,mo,xo,yo,ar,Na,Co]),ka]},Da=We(89489),wd=We(59477),bd=We(6848);const Kc="ascend",mi="descend";function fh(It){return typeof It.sorter=="object"&&typeof It.sorter.multiple=="number"?It.sorter.multiple:!1}function tn(It){return typeof It=="function"?It:It&&typeof It=="object"&&It.compare?It.compare:!1}function $n(It,Wt){return Wt?It[It.indexOf(Wt)+1]:It[0]}function Cd(It,Wt,an){let un=[];function An(vn,Wn){un.push({column:vn,key:ko(vn,Wn),multiplePriority:fh(vn),sortOrder:vn.sortOrder})}return(It||[]).forEach((vn,Wn)=>{const Un=oa(Wn,an);vn.children?("sortOrder"in vn&&An(vn,Un),un=[].concat((0,br.Z)(un),(0,br.Z)(Cd(vn.children,Wt,Un)))):vn.sorter&&("sortOrder"in vn?An(vn,Un):Wt&&vn.defaultSortOrder&&un.push({column:vn,key:ko(vn,Un),multiplePriority:fh(vn),sortOrder:vn.defaultSortOrder}))}),un}function af(It,Wt,an,un,An,vn,Wn,Un){return(Wt||[]).map((Rn,rr)=>{const lr=oa(rr,Un);let ar=Rn;if(ar.sorter){const jr=ar.sortDirections||An,Tr=ar.showSorterTooltip===void 0?Wn:ar.showSorterTooltip,Sr=ko(ar,lr),ti=an.find(mo=>{let{key:hi}=mo;return hi===Sr}),Mr=ti?ti.sortOrder:null,_r=$n(jr,Mr);let Jr;if(Rn.sortIcon)Jr=Rn.sortIcon({sortOrder:Mr});else{const mo=jr.includes(Kc)&&ce.createElement(wd.Z,{className:Ue()(`${It}-column-sorter-up`,{active:Mr===Kc})}),hi=jr.includes(mi)&&ce.createElement(Da.Z,{className:Ue()(`${It}-column-sorter-down`,{active:Mr===mi})});Jr=ce.createElement("span",{className:Ue()(`${It}-column-sorter`,{[`${It}-column-sorter-full`]:!!(mo&&hi)})},ce.createElement("span",{className:`${It}-column-sorter-inner`,"aria-hidden":"true"},mo,hi))}const{cancelSort:di,triggerAsc:ki,triggerDesc:Zi}=vn||{};let ri=di;_r===mi?ri=Zi:_r===Kc&&(ri=ki);const Oi=typeof Tr=="object"?Tr:{title:ri};ar=Object.assign(Object.assign({},ar),{className:Ue()(ar.className,{[`${It}-column-sort`]:Mr}),title:mo=>{const hi=ce.createElement("div",{className:`${It}-column-sorters`},ce.createElement("span",{className:`${It}-column-title`},la(Rn.title,mo)),Jr);return Tr?ce.createElement(bd.Z,Object.assign({},Oi),hi):hi},onHeaderCell:mo=>{const hi=Rn.onHeaderCell&&Rn.onHeaderCell(mo)||{},Ei=hi.onClick,li=hi.onKeyDown;hi.onClick=zi=>{un({column:Rn,key:Sr,sortOrder:_r,multiplePriority:fh(Rn)}),Ei==null||Ei(zi)},hi.onKeyDown=zi=>{zi.keyCode===wr.Z.ENTER&&(un({column:Rn,key:Sr,sortOrder:_r,multiplePriority:fh(Rn)}),li==null||li(zi))};const Gr=Ma(Rn.title,{}),Si=Gr==null?void 0:Gr.toString();return Mr?hi["aria-sort"]=Mr==="ascend"?"ascending":"descending":hi["aria-label"]=Si||"",hi.className=Ue()(hi.className,`${It}-column-has-sorters`),hi.tabIndex=0,Rn.ellipsis&&(hi.title=(Gr!=null?Gr:"").toString()),hi}})}return"children"in ar&&(ar=Object.assign(Object.assign({},ar),{children:af(It,ar.children,an,un,An,vn,Wn,lr)})),ar})}function Hu(It){const{column:Wt,sortOrder:an}=It;return{column:Wt,order:an,field:Wt.dataIndex,columnKey:Wt.key}}function Uu(It){const Wt=It.filter(an=>{let{sortOrder:un}=an;return un}).map(Hu);return Wt.length===0&&It.length?Object.assign(Object.assign({},Hu(It[It.length-1])),{column:void 0}):Wt.length<=1?Wt[0]||{}:Wt}function ic(It,Wt,an){const un=Wt.slice().sort((Wn,Un)=>Un.multiplePriority-Wn.multiplePriority),An=It.slice(),vn=un.filter(Wn=>{let{column:{sorter:Un},sortOrder:Rn}=Wn;return tn(Un)&&Rn});return vn.length?An.sort((Wn,Un)=>{for(let Rn=0;Rn<vn.length;Rn+=1){const rr=vn[Rn],{column:{sorter:lr},sortOrder:ar}=rr,jr=tn(lr);if(jr&&ar){const Tr=jr(Wn,Un,ar);if(Tr!==0)return ar===Kc?Tr:-Tr}}return 0}).map(Wn=>{const Un=Wn[an];return Un?Object.assign(Object.assign({},Wn),{[an]:ic(Un,Wt,an)}):Wn}):An}function Pd(It){let{prefixCls:Wt,mergedColumns:an,onSorterChange:un,sortDirections:An,tableLocale:vn,showSorterTooltip:Wn}=It;const[Un,Rn]=ce.useState(Cd(an,!0)),rr=ce.useMemo(()=>{let Sr=!0;const ti=Cd(an,!1);if(!ti.length)return Un;const Mr=[];function _r(di){Sr?Mr.push(di):Mr.push(Object.assign(Object.assign({},di),{sortOrder:null}))}let Jr=null;return ti.forEach(di=>{Jr===null?(_r(di),di.sortOrder&&(di.multiplePriority===!1?Sr=!1:Jr=!0)):(Jr&&di.multiplePriority!==!1||(Sr=!1),_r(di))}),Mr},[an,Un]),lr=ce.useMemo(()=>{const Sr=rr.map(ti=>{let{column:Mr,sortOrder:_r}=ti;return{column:Mr,order:_r}});return{sortColumns:Sr,sortColumn:Sr[0]&&Sr[0].column,sortOrder:Sr[0]&&Sr[0].order}},[rr]);function ar(Sr){let ti;Sr.multiplePriority===!1||!rr.length||rr[0].multiplePriority===!1?ti=[Sr]:ti=[].concat((0,br.Z)(rr.filter(Mr=>{let{key:_r}=Mr;return _r!==Sr.key})),[Sr]),Rn(ti),un(Uu(ti),ti)}return[Sr=>af(Wt,Sr,rr,ar,An,vn,Wn),rr,lr,()=>Uu(rr)]}function ph(It,Wt){return It.map(an=>{const un=Object.assign({},an);return un.title=la(an.title,Wt),"children"in un&&(un.children=ph(un.children,Wt)),un})}function Ga(It){return[ce.useCallback(an=>ph(an,It),[It])]}var Gi=Zr((It,Wt)=>{const{_renderTimes:an}=It,{_renderTimes:un}=Wt;return an!==un}),rl=so((It,Wt)=>{const{_renderTimes:an}=It,{_renderTimes:un}=Wt;return an!==un}),Hs=We(64993),xa=We(17313),Mo=We(83116),ss=We(37613),ma=It=>{const{componentCls:Wt}=It,an=`${It.lineWidth}px ${It.lineType} ${It.tableBorderColor}`,un=(An,vn,Wn)=>({[`&${Wt}-${An}`]:{[`> ${Wt}-container`]:{[`> ${Wt}-content, > ${Wt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Wt}-expanded-row-fixed`]:{margin:`-${vn}px -${Wn+It.lineWidth}px`}}}}}});return{[`${Wt}-wrapper`]:{[`${Wt}${Wt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Wt}-title`]:{border:an,borderBottom:0},[`> ${Wt}-container`]:{borderInlineStart:an,borderTop:an,[`
|
|
|
> ${Wt}-content,
|
|
|
> ${Wt}-header,
|
|
|
> ${Wt}-body,
|
|
|
> ${Wt}-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 ":{[`> ${Wt}-cell-fix-right-first::after`]:{borderInlineEnd:an}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Wt}-expanded-row-fixed`]:{margin:`-${It.tablePaddingVertical}px -${It.tablePaddingHorizontal+It.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:It.lineWidth,bottom:0,borderInlineEnd:an,content:'""'}}}}}},[`&${Wt}-scroll-horizontal`]:{[`> ${Wt}-container > ${Wt}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Wt}-expanded-row,
|
|
|
> tr${Wt}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},un("middle",It.tablePaddingVerticalMiddle,It.tablePaddingHorizontalMiddle)),un("small",It.tablePaddingVerticalSmall,It.tablePaddingHorizontalSmall)),{[`> ${Wt}-footer`]:{border:an,borderTop:0}}),[`${Wt}-cell`]:{[`${Wt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${It.lineWidth}px 0 ${It.lineWidth}px ${It.tableHeaderBg}`}},[`${Wt}-bordered ${Wt}-cell-scrollbar`]:{borderInlineEnd:an}}}},bs=It=>{const{componentCls:Wt}=It;return{[`${Wt}-wrapper`]:{[`${Wt}-cell-ellipsis`]:Object.assign(Object.assign({},xa.vS),{wordBreak:"keep-all",[`
|
|
|
&${Wt}-cell-fix-left-last,
|
|
|
&${Wt}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Wt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Wt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Zo=It=>{const{componentCls:Wt}=It;return{[`${Wt}-wrapper`]:{[`${Wt}-tbody > tr${Wt}-placeholder`]:{textAlign:"center",color:It.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:It.colorBgContainer}}}}},il=We(15969),fa=It=>{const{componentCls:Wt,antCls:an,controlInteractiveSize:un,motionDurationSlow:An,lineWidth:vn,paddingXS:Wn,lineType:Un,tableBorderColor:Rn,tableExpandIconBg:rr,tableExpandColumnWidth:lr,borderRadius:ar,fontSize:jr,fontSizeSM:Tr,lineHeight:Sr,tablePaddingVertical:ti,tablePaddingHorizontal:Mr,tableExpandedRowBg:_r,paddingXXS:Jr}=It,di=un/2-vn,ki=di*2+vn*3,Zi=`${vn}px ${Un} ${Rn}`,ri=Jr-vn;return{[`${Wt}-wrapper`]:{[`${Wt}-expand-icon-col`]:{width:lr},[`${Wt}-row-expand-icon-cell`]:{textAlign:"center",[`${Wt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Wt}-row-indent`]:{height:1,float:"left"},[`${Wt}-row-expand-icon`]:Object.assign(Object.assign({},(0,il.N)(It)),{position:"relative",float:"left",boxSizing:"border-box",width:ki,height:ki,padding:0,color:"inherit",lineHeight:`${ki}px`,background:rr,border:Zi,borderRadius:ar,transform:`scale(${un/ki})`,transition:`all ${An}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${An} ease-out`,content:'""'},"&::before":{top:di,insetInlineEnd:ri,insetInlineStart:ri,height:vn},"&::after":{top:ri,bottom:ri,insetInlineStart:di,width:vn,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"}}),[`${Wt}-row-indent + ${Wt}-row-expand-icon`]:{marginTop:(jr*Sr-vn*3)/2-Math.ceil((Tr*1.4-vn*3)/2),marginInlineEnd:Wn},[`tr${Wt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:_r}},[`${an}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Wt}-expanded-row-fixed`]:{position:"relative",margin:`-${ti}px -${Mr}px`,padding:`${ti}px ${Mr}px`}}}},Ja=It=>{const{componentCls:Wt,antCls:an,iconCls:un,tableFilterDropdownWidth:An,tableFilterDropdownSearchWidth:vn,paddingXXS:Wn,paddingXS:Un,colorText:Rn,lineWidth:rr,lineType:lr,tableBorderColor:ar,tableHeaderIconColor:jr,fontSizeSM:Tr,tablePaddingHorizontal:Sr,borderRadius:ti,motionDurationSlow:Mr,colorTextDescription:_r,colorPrimary:Jr,tableHeaderFilterActiveBg:di,colorTextDisabled:ki,tableFilterDropdownBg:Zi,tableFilterDropdownHeight:ri,controlItemBgHover:Oi,controlItemBgActive:mo,boxShadowSecondary:hi,filterDropdownMenuBg:Ei}=It,li=`${an}-dropdown`,Gr=`${Wt}-filter-dropdown`,Si=`${an}-tree`,zi=`${rr}px ${lr} ${ar}`;return[{[`${Wt}-wrapper`]:{[`${Wt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Wt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Wn,marginInline:`${Wn}px ${-Sr/2}px`,padding:`0 ${Wn}px`,color:jr,fontSize:Tr,borderRadius:ti,cursor:"pointer",transition:`all ${Mr}`,"&:hover":{color:_r,background:di},"&.active":{color:Jr}}}},{[`${an}-dropdown`]:{[Gr]:Object.assign(Object.assign({},(0,xa.Wf)(It)),{minWidth:An,backgroundColor:Zi,borderRadius:ti,boxShadow:hi,overflow:"hidden",[`${li}-menu`]:{maxHeight:ri,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ei,"&:empty::after":{display:"block",padding:`${Un}px 0`,color:ki,fontSize:Tr,textAlign:"center",content:'"Not Found"'}},[`${Gr}-tree`]:{paddingBlock:`${Un}px 0`,paddingInline:Un,[Si]:{padding:0},[`${Si}-treenode ${Si}-node-content-wrapper:hover`]:{backgroundColor:Oi},[`${Si}-treenode-checkbox-checked ${Si}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:mo}}},[`${Gr}-search`]:{padding:Un,borderBottom:zi,"&-input":{input:{minWidth:vn},[un]:{color:ki}}},[`${Gr}-checkall`]:{width:"100%",marginBottom:Wn,marginInlineStart:Wn},[`${Gr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Un-rr}px ${Un}px`,overflow:"hidden",borderTop:zi}})}},{[`${an}-dropdown ${Gr}, ${Gr}-submenu`]:{[`${an}-checkbox-wrapper + span`]:{paddingInlineStart:Un,color:Rn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Xc=It=>{const{componentCls:Wt,lineWidth:an,colorSplit:un,motionDurationSlow:An,zIndexTableFixed:vn,tableBg:Wn,zIndexTableSticky:Un}=It,Rn=un;return{[`${Wt}-wrapper`]:{[`
|
|
|
${Wt}-cell-fix-left,
|
|
|
${Wt}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:vn,background:Wn},[`
|
|
|
${Wt}-cell-fix-left-first::after,
|
|
|
${Wt}-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 ${An}`,content:'""',pointerEvents:"none"},[`${Wt}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Wt}-cell-fix-right-first::after,
|
|
|
${Wt}-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 ${An}`,content:'""',pointerEvents:"none"},[`${Wt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Un+1,width:30,transition:`box-shadow ${An}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Wt}-ping-left`]:{[`&:not(${Wt}-has-fix-left) ${Wt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Rn}`}},[`
|
|
|
${Wt}-cell-fix-left-first::after,
|
|
|
${Wt}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Rn}`},[`${Wt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Wt}-ping-right`]:{[`&:not(${Wt}-has-fix-right) ${Wt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Rn}`}},[`
|
|
|
${Wt}-cell-fix-right-first::after,
|
|
|
${Wt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Rn}`}}}}},Gf=It=>{const{componentCls:Wt,antCls:an}=It;return{[`${Wt}-wrapper`]:{[`${Wt}-pagination${an}-pagination`]:{margin:`${It.margin}px 0`},[`${Wt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:It.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Zf=It=>{const{componentCls:Wt,tableRadius:an}=It;return{[`${Wt}-wrapper`]:{[Wt]:{[`${Wt}-title, ${Wt}-header`]:{borderRadius:`${an}px ${an}px 0 0`},[`${Wt}-title + ${Wt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Wt}-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=It=>{const{componentCls:Wt}=It;return{[`${Wt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Wt}-pagination-left`]:{justifyContent:"flex-end"},[`${Wt}-pagination-right`]:{justifyContent:"flex-start"},[`${Wt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Wt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Wt}-row-indent`]:{float:"right"}}}}},Ed=It=>{const{componentCls:Wt,antCls:an,iconCls:un,fontSizeIcon:An,padding:vn,paddingXS:Wn,tableHeaderIconColor:Un,tableHeaderIconColorHover:Rn,tableSelectionColumnWidth:rr}=It;return{[`${Wt}-wrapper`]:{[`${Wt}-selection-col`]:{width:rr,[`&${Wt}-selection-col-with-dropdown`]:{width:rr+An+vn/4}},[`${Wt}-bordered ${Wt}-selection-col`]:{width:rr+Wn*2,[`&${Wt}-selection-col-with-dropdown`]:{width:rr+An+vn/4+Wn*2}},[`
|
|
|
table tr th${Wt}-selection-column,
|
|
|
table tr td${Wt}-selection-column
|
|
|
`]:{paddingInlineEnd:It.paddingXS,paddingInlineStart:It.paddingXS,textAlign:"center",[`${an}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Wt}-selection-column${Wt}-cell-fix-left`]:{zIndex:It.zIndexTableFixed+1},[`table tr th${Wt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Wt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Wt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${It.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${It.tablePaddingHorizontal/4}px`,[un]:{color:Un,fontSize:An,verticalAlign:"baseline","&:hover":{color:Rn}}}}}},Yc=It=>{const{componentCls:Wt}=It,an=(un,An,vn,Wn)=>({[`${Wt}${Wt}-${un}`]:{fontSize:Wn,[`
|
|
|
${Wt}-title,
|
|
|
${Wt}-footer,
|
|
|
${Wt}-cell,
|
|
|
${Wt}-thead > tr > th,
|
|
|
${Wt}-tbody > tr > th,
|
|
|
${Wt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${An}px ${vn}px`},[`${Wt}-filter-trigger`]:{marginInlineEnd:`-${vn/2}px`},[`${Wt}-expanded-row-fixed`]:{margin:`-${An}px -${vn}px`},[`${Wt}-tbody`]:{[`${Wt}-wrapper:only-child ${Wt}`]:{marginBlock:`-${An}px`,marginInline:`${It.tableExpandColumnWidth-vn}px -${vn}px`}},[`${Wt}-selection-column`]:{paddingInlineStart:`${vn/4}px`}}});return{[`${Wt}-wrapper`]:Object.assign(Object.assign({},an("middle",It.tablePaddingVerticalMiddle,It.tablePaddingHorizontalMiddle,It.tableFontSizeMiddle)),an("small",It.tablePaddingVerticalSmall,It.tablePaddingHorizontalSmall,It.tableFontSizeSmall))}},Gu=It=>{const{componentCls:Wt,marginXXS:an,fontSizeIcon:un,tableHeaderIconColor:An,tableHeaderIconColorHover:vn}=It;return{[`${Wt}-wrapper`]:{[`${Wt}-thead th${Wt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${It.motionDurationSlow}`,"&:hover":{background:It.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:It.colorPrimary},[`
|
|
|
&${Wt}-cell-fix-left:hover,
|
|
|
&${Wt}-cell-fix-right:hover
|
|
|
`]:{background:It.tableFixedHeaderSortActiveBg}},[`${Wt}-thead th${Wt}-column-sort`]:{background:It.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Wt}-column-sort`]:{background:It.tableBodySortBg},[`${Wt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Wt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Wt}-column-sorter`]:{marginInlineStart:an,color:An,fontSize:0,transition:`color ${It.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:un,"&.active":{color:It.colorPrimary}},[`${Wt}-column-sorter-up + ${Wt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Wt}-column-sorters:hover ${Wt}-column-sorter`]:{color:vn}}}},Jc=It=>{const{componentCls:Wt,opacityLoading:an,tableScrollThumbBg:un,tableScrollThumbBgHover:An,tableScrollThumbSize:vn,tableScrollBg:Wn,zIndexTableSticky:Un,stickyScrollBarBorderRadius:Rn}=It,rr=`${It.lineWidth}px ${It.lineType} ${It.tableBorderColor}`;return{[`${Wt}-wrapper`]:{[`${Wt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Un,background:It.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${vn}px !important`,zIndex:Un,display:"flex",alignItems:"center",background:Wn,borderTop:rr,opacity:an,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:vn,backgroundColor:un,borderRadius:Rn,transition:`all ${It.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:An}}}}}}},Zu=It=>{const{componentCls:Wt,lineWidth:an,tableBorderColor:un}=It,An=`${an}px ${It.lineType} ${un}`;return{[`${Wt}-wrapper`]:{[`${Wt}-summary`]:{position:"relative",zIndex:It.zIndexTableFixed,background:It.tableBg,"> tr":{"> th, > td":{borderBottom:An}}},[`div${Wt}-summary`]:{boxShadow:`0 -${an}px 0 ${un}`}}}},xc=It=>{const{componentCls:Wt}=It,an=`${It.lineWidth}px ${It.lineType} ${It.tableBorderColor}`,un=`${Wt}-expanded-row-cell`;return{[`${Wt}-wrapper`]:{[`${Wt}-tbody-virtual`]:{[`${Wt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Wt}-cell`]:{borderBottom:an},[`${Wt}-expanded-row`]:{[`${un}${un}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${It.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Wt}-bordered`]:{[`${Wt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:an,position:"absolute"},[`${Wt}-cell`]:{borderInlineEnd:an,[`&${Wt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-It.lineWidth,borderInlineStart:an}}}}}}};const Au=It=>{const{componentCls:Wt,fontWeightStrong:an,tablePaddingVertical:un,tablePaddingHorizontal:An,lineWidth:vn,lineType:Wn,tableBorderColor:Un,tableFontSize:Rn,tableBg:rr,tableRadius:lr,tableHeaderTextColor:ar,motionDurationMid:jr,tableHeaderBg:Tr,tableHeaderCellSplitColor:Sr,tableRowHoverBg:ti,tableSelectedRowBg:Mr,tableSelectedRowHoverBg:_r,tableFooterTextColor:Jr,tableFooterBg:di,paddingContentVerticalLG:ki}=It,Zi=`${vn}px ${Wn} ${Un}`;return{[`${Wt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,xa.dF)()),{[Wt]:Object.assign(Object.assign({},(0,xa.Wf)(It)),{fontSize:Rn,background:rr,borderRadius:`${lr}px ${lr}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${lr}px ${lr}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Wt}-cell,
|
|
|
${Wt}-thead > tr > th,
|
|
|
${Wt}-tbody > tr > th,
|
|
|
${Wt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${ki}px ${An}px`,overflowWrap:"break-word"},[`${Wt}-title`]:{padding:`${un}px ${An}px`},[`${Wt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:ar,fontWeight:an,textAlign:"start",background:Tr,borderBottom:Zi,transition:`background ${jr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Wt}-selection-column):not(${Wt}-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 ${jr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Wt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${jr}, border-color ${jr}`,borderBottom:Zi,[`
|
|
|
> ${Wt}-wrapper:only-child,
|
|
|
> ${Wt}-expanded-row-fixed > ${Wt}-wrapper:only-child
|
|
|
`]:{[Wt]:{marginBlock:`-${un}px`,marginInline:`${It.tableExpandColumnWidth-An}px -${An}px`,[`${Wt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:ar,fontWeight:an,textAlign:"start",background:Tr,borderBottom:Zi,transition:`background ${jr} ease`},[`
|
|
|
&${Wt}-row:hover > th,
|
|
|
&${Wt}-row:hover > td,
|
|
|
> th${Wt}-cell-row-hover,
|
|
|
> td${Wt}-cell-row-hover
|
|
|
`]:{background:ti},[`&${Wt}-row-selected`]:{"> th, > td":{background:Mr},"&:hover > th, &:hover > td":{background:_r}}}},[`${Wt}-footer`]:{padding:`${un}px ${An}px`,color:Jr,background:di}})}};var wc=(0,Mo.Z)("Table",It=>{const{colorTextHeading:Wt,colorSplit:an,colorIcon:un,colorIconHover:An,opacityLoading:vn,colorBgContainer:Wn,controlInteractiveSize:Un,headerBg:Rn,headerColor:rr,headerSortActiveBg:lr,headerSortHoverBg:ar,bodySortBg:jr,rowHoverBg:Tr,rowSelectedBg:Sr,rowSelectedHoverBg:ti,rowExpandedBg:Mr,cellPaddingBlock:_r,cellPaddingInline:Jr,cellPaddingBlockMD:di,cellPaddingInlineMD:ki,cellPaddingBlockSM:Zi,cellPaddingInlineSM:ri,borderColor:Oi,footerBg:mo,footerColor:hi,headerBorderRadius:Ei,cellFontSize:li,cellFontSizeMD:Gr,cellFontSizeSM:Si,headerSplitColor:zi,fixedHeaderSortActiveBg:_i,headerFilterHoverBg:qi,filterDropdownBg:ii,expandIconBg:yo,selectionColumnWidth:Co,stickyScrollBarBg:qo}=It,jo=new Hs.C(un),ka=new Hs.C(An),Ta=2,xo=(0,ss.TS)(It,{tableFontSize:li,tableBg:Wn,tableRadius:Ei,tablePaddingVertical:_r,tablePaddingHorizontal:Jr,tablePaddingVerticalMiddle:di,tablePaddingHorizontalMiddle:ki,tablePaddingVerticalSmall:Zi,tablePaddingHorizontalSmall:ri,tableBorderColor:Oi,tableHeaderTextColor:rr,tableHeaderBg:Rn,tableFooterTextColor:hi,tableFooterBg:mo,tableHeaderCellSplitColor:zi,tableHeaderSortBg:lr,tableHeaderSortHoverBg:ar,tableHeaderIconColor:jo.clone().setAlpha(jo.getAlpha()*vn).toRgbString(),tableHeaderIconColorHover:ka.clone().setAlpha(ka.getAlpha()*vn).toRgbString(),tableBodySortBg:jr,tableFixedHeaderSortActiveBg:_i,tableHeaderFilterActiveBg:qi,tableFilterDropdownBg:ii,tableRowHoverBg:Tr,tableSelectedRowBg:Sr,tableSelectedRowHoverBg:ti,zIndexTableFixed:Ta,zIndexTableSticky:Ta+1,tableFontSizeMiddle:Gr,tableFontSizeSmall:Si,tableSelectionColumnWidth:Co,tableExpandIconBg:yo,tableExpandColumnWidth:Un+2*It.padding,tableExpandedRowBg:Mr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:qo,tableScrollThumbBgHover:Wt,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)]},It=>{const{colorFillAlter:Wt,colorBgContainer:an,colorTextHeading:un,colorFillSecondary:An,colorFillContent:vn,controlItemBgActive:Wn,controlItemBgActiveHover:Un,padding:Rn,paddingSM:rr,paddingXS:lr,colorBorderSecondary:ar,borderRadiusLG:jr,fontSize:Tr,controlHeight:Sr,colorTextPlaceholder:ti}=It,Mr=new Hs.C(An).onBackground(an).toHexShortString(),_r=new Hs.C(vn).onBackground(an).toHexShortString(),Jr=new Hs.C(Wt).onBackground(an).toHexShortString();return{headerBg:Jr,headerColor:un,headerSortActiveBg:Mr,headerSortHoverBg:_r,bodySortBg:Jr,rowHoverBg:Jr,rowSelectedBg:Wn,rowSelectedHoverBg:Un,rowExpandedBg:Wt,cellPaddingBlock:Rn,cellPaddingInline:Rn,cellPaddingBlockMD:rr,cellPaddingInlineMD:lr,cellPaddingBlockSM:lr,cellPaddingInlineSM:lr,borderColor:ar,headerBorderRadius:jr,footerBg:Jr,footerColor:un,cellFontSize:Tr,cellFontSizeMD:Tr,cellFontSizeSM:Tr,headerSplitColor:ar,fixedHeaderSortActiveBg:Mr,headerFilterHoverBg:vn,filterDropdownMenuBg:an,filterDropdownBg:an,expandIconBg:an,selectionColumnWidth:Sr,stickyScrollBarBg:ti,stickyScrollBarBorderRadius:100}});const Ad=[],lf=(It,Wt)=>{const{prefixCls:an,className:un,rootClassName:An,style:vn,size:Wn,bordered:Un,dropdownPrefixCls:Rn,dataSource:rr,pagination:lr,rowSelection:ar,rowKey:jr="key",rowClassName:Tr,columns:Sr,children:ti,childrenColumnName:Mr,onChange:_r,getPopupContainer:Jr,loading:di,expandIcon:ki,expandable:Zi,expandedRowRender:ri,expandIconColumnIndex:Oi,indentSize:mo,scroll:hi,sortDirections:Ei,locale:li,showSorterTooltip:Gr=!0,virtual:Si}=It,zi=ce.useMemo(()=>Sr||ln(ti),[Sr,ti]),_i=ce.useMemo(()=>zi.some(_o=>_o.responsive),[zi]),qi=(0,qn.Z)(_i),ii=ce.useMemo(()=>{const _o=new Set(Object.keys(qi).filter(ba=>qi[ba]));return zi.filter(ba=>!ba.responsive||ba.responsive.some(us=>_o.has(us)))},[zi,qi]),yo=(0,ei.Z)(It,["className","style","columns"]),{locale:Co=ci.Z,direction:qo,table:jo,renderEmpty:ka,getPrefixCls:Ta,getPopupContainer:xo}=ce.useContext(no.E_),Ui=(0,Kr.Z)(Wn),Xo=Object.assign(Object.assign({},Co.Table),li),Na=rr||Ad,wa=Ta("table",an),is=Ta("dropdown",Rn),eo=Object.assign({childrenColumnName:Mr,expandIconColumnIndex:Oi},Zi),{childrenColumnName:Vi="children"}=eo,to=ce.useMemo(()=>Na.some(_o=>_o==null?void 0:_o[Vi])?"nest":ri||Zi&&Zi.expandedRowRender?"row":null,[Na]),Bi={body:ce.useRef()},Qo=ce.useMemo(()=>typeof jr=="function"?jr:_o=>_o==null?void 0:_o[jr],[jr]),[Ii]=Uc(Na,Vi,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)),hi&&hi.scrollToFirstRowOnChange!==!1&&Bi.body.current&&(0,Ji.Z)(0,{getContainer:()=>Bi.body.current}),_r==null||_r(gl.pagination,gl.filters,gl.sorter,{currentDataSource:Ws(ic(Na,gl.sorterStates,Vi),gl.filterStates),action:ba})},Uo=(_o,ba)=>{Ho({sorter:_o,sorterStates:ba},"sort",!1)},[Cs,ls,Us,ea]=Pd({prefixCls:wa,mergedColumns:ii,onSorterChange:Uo,sortDirections:Ei||["ascend","descend"],tableLocale:Xo,showSorterTooltip:Gr}),Ps=ce.useMemo(()=>ic(Na,ls,Vi),[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:ii,onFilterChange:ts,getPopupContainer:Jr||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")},[No,va]=dh(aa.length,gs,lr);vo.pagination=lr===!1?{}:zu(No,lr),vo.resetPagination=va;const ms=ce.useMemo(()=>{if(lr===!1||!No.pageSize)return aa;const{current:_o=1,total:ba,pageSize:us=vc}=No;return aa.length<ba?aa.length>us?aa.slice((_o-1)*us,_o*us):aa:aa.slice((_o-1)*us,_o*us)},[!!lr,aa,No&&No.current,No&&No.pageSize,No&&No.total]),[pl,Wl]=Rl({prefixCls:wa,data:aa,pageData:ms,getRowKey:Qo,getRecordByKey:Ii,expandType:to,childrenColumnName:Vi,locale:Xo,getPopupContainer:Jr||xo},ar),El=(_o,ba,us)=>{let Ca;return typeof Tr=="function"?Ca=Ue()(Tr(_o,ba,us)):Ca=Ue()(Tr),Ue()({[`${wa}-row-selected`]:Wl.has(Qo(_o,ba))},Ca)};eo.__PARENT_RENDER_ICON__=eo.expandIcon,eo.expandIcon=eo.expandIcon||ki||Oo(Xo),to==="nest"&&eo.expandIconColumnIndex===void 0?eo.expandIconColumnIndex=ar?1:0:eo.expandIconColumnIndex>0&&ar&&(eo.expandIconColumnIndex-=1),typeof eo.indentSize!="number"&&(eo.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&&(No!=null&&No.total)){let _o;No.size?_o=No.size:_o=Ui==="small"||Ui==="middle"?"small":void 0;const ba=Vo=>ce.createElement(ro.Z,Object.assign({},No,{className:Ue()(`${wa}-pagination ${wa}-pagination-${Vo}`,No.className),size:_o})),us=qo==="rtl"?"left":"right",{position:Ca}=No;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=Ue()(`${wa}-wrapper`,jo==null?void 0:jo.className,{[`${wa}-wrapper-rtl`]:qo==="rtl"},un,An,Za),oc=Object.assign(Object.assign({},jo==null?void 0:jo.style),vn),tu=li&&li.emptyText||(ka==null?void 0:ka("Table"))||ce.createElement(Yr.Z,{componentName:"Table"}),Mu=Si?rl:Gi,Vu={},Al=ce.useMemo(()=>{const{fontSize:_o,lineHeight:ba,padding:us,paddingXS:Ca,paddingSM:Vo}=ya,vs=Math.floor(_o*ba);switch(Ui){case"large":return us*2+vs;case"small":return Ca*2+vs;default:return Vo*2+vs}},[ya,Ui]);return Si&&(Vu.listItemHeight=Al),Ms(ce.createElement("div",{ref:Wt,className:Ul,style:oc},ce.createElement(Do.Z,Object.assign({spinning:!1},ra),eu,ce.createElement(Mu,Object.assign({},Vu,yo,{columns:ii,direction:qo,expandable:eo,prefixCls:wa,className:Ue()({[`${wa}-middle`]:Ui==="middle",[`${wa}-small`]:Ui==="small",[`${wa}-bordered`]:Un,[`${wa}-empty`]:Na.length===0}),data:ms,rowKey:Qo,rowClassName:El,emptyText:tu,internalHooks:mt,internalRefs:Bi,transformColumns:ql})),Hl)))};var uf=ce.forwardRef(lf);const Xf=(It,Wt)=>{const an=ce.useRef(0);return an.current+=1,ce.createElement(uf,Object.assign({},It,{ref:Wt,_renderTimes:an.current}))},fl=ce.forwardRef(Xf);fl.SELECTION_COLUMN=_a,fl.EXPAND_COLUMN=He,fl.SELECTION_ALL=Ha,fl.SELECTION_INVERT=ga,fl.SELECTION_NONE=La,fl.Column=Eo,fl.ColumnGroup=si,fl.Summary=Ve;var bc=fl,Kp=bc},17574:function(kn,fn,We){"use strict";We.d(fn,{default:function(){return qe}});var He=We(23130),mt=We(26407),oe=We(52671),Ze=We(8657),Ne=We(92413),ge=We(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Pe=ce,Ae=We(7657),ye=function(dt,St){return ge.createElement(Ae.Z,(0,Ne.Z)({},dt,{ref:St,icon:Pe}))},De=ge.forwardRef(ye),me=De,we=We(92310),fe=We.n(we),z=We(35654),ee=We(71430),ae=We(36355),re=We(56082),le=We(62892),ue=We(20648);const pe=4;function Ee(ot){const{dropPosition:dt,dropLevelOffset:St,prefixCls:xt,indent:ft,direction:gt="ltr"}=ot,vt=gt==="ltr"?"left":"right",Tt=gt==="ltr"?"right":"left",Et={[vt]:-St*ft+pe,[Tt]:0};switch(dt){case-1:Et.top=-3;break;case 1:Et.bottom=-3;break;default:Et.bottom=-3,Et[vt]=ft+pe;break}return ge.createElement("div",{style:Et,className:`${xt}-drop-indicator`})}var be=We(71997),Le=ge.forwardRef((ot,dt)=>{const{getPrefixCls:St,direction:xt,virtual:ft,tree:gt}=ge.useContext(ae.E_),{prefixCls:vt,className:Tt,showIcon:Et=!1,showLine:Zt,switcherIcon:wt,blockNode:bt=!1,children:it,checkable:nt=!1,selectable:xe=!0,draggable:Ce,motion:Ye,style:Je}=ot,Me=St("tree",vt),Ge=St(),Ke=Ye!=null?Ye:Object.assign(Object.assign({},(0,le.Z)(Ge)),{motionAppear:!1}),Ve=Object.assign(Object.assign({},ot),{checkable:nt,selectable:xe,showIcon:Et,motion:Ke,blockNode:bt,showLine:!!Zt,dropIndicatorRender:Ee}),[Qe,ht]=(0,ue.ZP)(Me),At=ge.useMemo(()=>{if(!Ce)return!1;let Ot={};switch(typeof Ce){case"function":Ot.nodeDraggable=Ce;break;case"object":Ot=Object.assign({},Ce);break;default:break}return Ot.icon!==!1&&(Ot.icon=Ot.icon||ge.createElement(re.Z,null)),Ot},[Ce]),pt=Ot=>ge.createElement(be.Z,{prefixCls:Me,switcherIcon:wt,treeNodeProps:Ot,showLine:Zt});return Qe(ge.createElement(He.Z,Object.assign({itemHeight:20,ref:dt,virtual:ft},Ve,{style:Object.assign(Object.assign({},gt==null?void 0:gt.style),Je),prefixCls:Me,className:fe()({[`${Me}-icon-hide`]:!Et,[`${Me}-block-node`]:bt,[`${Me}-unselectable`]:!xe,[`${Me}-rtl`]:xt==="rtl"},gt==null?void 0:gt.className,Tt,ht),direction:xt,checkable:nt&&ge.createElement("span",{className:`${Me}-checkbox-inner`}),selectable:xe,switcherIcon:pt,draggable:At}),it))}),Fe;(function(ot){ot[ot.None=0]="None",ot[ot.Start=1]="Start",ot[ot.End=2]="End"})(Fe||(Fe={}));function Oe(ot,dt){function St(xt){const{key:ft,children:gt}=xt;dt(ft,xt)!==!1&&Oe(gt||[],dt)}ot.forEach(St)}function je(ot){let{treeData:dt,expandedKeys:St,startKey:xt,endKey:ft}=ot;const gt=[];let vt=Fe.None;if(xt&&xt===ft)return[xt];if(!xt||!ft)return[];function Tt(Et){return Et===xt||Et===ft}return Oe(dt,Et=>{if(vt===Fe.End)return!1;if(Tt(Et)){if(gt.push(Et),vt===Fe.None)vt=Fe.Start;else if(vt===Fe.Start)return vt=Fe.End,!1}else vt===Fe.Start&>.push(Et);return St.includes(Et)}),gt}function ze(ot,dt){const St=(0,mt.Z)(dt),xt=[];return Oe(ot,(ft,gt)=>{const vt=St.indexOf(ft);return vt!==-1&&(xt.push(gt),St.splice(vt,1)),!!St.length}),xt}var _e=function(ot,dt){var St={};for(var xt in ot)Object.prototype.hasOwnProperty.call(ot,xt)&&dt.indexOf(xt)<0&&(St[xt]=ot[xt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,xt=Object.getOwnPropertySymbols(ot);ft<xt.length;ft++)dt.indexOf(xt[ft])<0&&Object.prototype.propertyIsEnumerable.call(ot,xt[ft])&&(St[xt[ft]]=ot[xt[ft]]);return St};function Ue(ot){const{isLeaf:dt,expanded:St}=ot;return dt?ge.createElement(oe.Z,null):St?ge.createElement(Ze.Z,null):ge.createElement(me,null)}function $e(ot){let{treeData:dt,children:St}=ot;return dt||(0,ee.zn)(St)}const et=(ot,dt)=>{var{defaultExpandAll:St,defaultExpandParent:xt,defaultExpandedKeys:ft}=ot,gt=_e(ot,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const vt=ge.useRef(),Tt=ge.useRef(),Et=()=>{const{keyEntities:At}=(0,ee.I8)($e(gt));let pt;return St?pt=Object.keys(At):xt?pt=(0,z.r7)(gt.expandedKeys||ft||[],At):pt=gt.expandedKeys||ft,pt},[Zt,wt]=ge.useState(gt.selectedKeys||gt.defaultSelectedKeys||[]),[bt,it]=ge.useState(()=>Et());ge.useEffect(()=>{"selectedKeys"in gt&&wt(gt.selectedKeys)},[gt.selectedKeys]),ge.useEffect(()=>{"expandedKeys"in gt&&it(gt.expandedKeys)},[gt.expandedKeys]);const nt=(At,pt)=>{var Ot;return"expandedKeys"in gt||it(At),(Ot=gt.onExpand)===null||Ot===void 0?void 0:Ot.call(gt,At,pt)},xe=(At,pt)=>{var Ot;const{multiple:Kt}=gt,{node:jt,nativeEvent:Rt}=pt,{key:Xt=""}=jt,sn=$e(gt),Ft=Object.assign(Object.assign({},pt),{selected:!0}),Qt=(Rt==null?void 0:Rt.ctrlKey)||(Rt==null?void 0:Rt.metaKey),en=Rt==null?void 0:Rt.shiftKey;let on;Kt&&Qt?(on=At,vt.current=Xt,Tt.current=on,Ft.selectedNodes=ze(sn,on)):Kt&&en?(on=Array.from(new Set([].concat((0,mt.Z)(Tt.current||[]),(0,mt.Z)(je({treeData:sn,expandedKeys:bt,startKey:Xt,endKey:vt.current}))))),Ft.selectedNodes=ze(sn,on)):(on=[Xt],vt.current=Xt,Tt.current=on,Ft.selectedNodes=ze(sn,on)),(Ot=gt.onSelect)===null||Ot===void 0||Ot.call(gt,on,Ft),"selectedKeys"in gt||wt(on)},{getPrefixCls:Ce,direction:Ye}=ge.useContext(ae.E_),{prefixCls:Je,className:Me,showIcon:Ge=!0,expandAction:Ke="click"}=gt,Ve=_e(gt,["prefixCls","className","showIcon","expandAction"]),Qe=Ce("tree",Je),ht=fe()(`${Qe}-directory`,{[`${Qe}-directory-rtl`]:Ye==="rtl"},Me);return ge.createElement(Le,Object.assign({icon:Ue,ref:dt,blockNode:!0},Ve,{showIcon:Ge,expandAction:Ke,prefixCls:Qe,className:ht,expandedKeys:bt,selectedKeys:Zt,onSelect:xe,onExpand:nt}))};var ut=ge.forwardRef(et);const yt=Le;yt.DirectoryTree=ut,yt.TreeNode=He.O;var qe=yt},20648:function(kn,fn,We){"use strict";We.d(fn,{TM:function(){return we},Yk:function(){return me}});var He=We(93083),mt=We(98447),oe=We(17313),Ze=We(8378),Ne=We(37613),ge=We(83116);const ce=new He.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Pe=(fe,z)=>({[`.${fe}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${z.motionDurationSlow}`}}}),Ae=(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,Ee=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({},Pe(fe,z)),{position:"relative",flex:"none",alignSelf:"stretch",width:le,margin:0,lineHeight:`${le}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:z.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:le/2,bottom:-re,marginInlineStart:-1,borderInlineEnd:`1px solid ${z.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:le/2*.8,height:le/2,borderBottom:`1px solid ${z.colorBorder}`,content:'""'}}}),[`${ee}-checkbox`]:{top:"initial",marginInlineEnd:Ee},[`${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"},Ae(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`}}}}})}},De=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,Ne.TS)(z,{treeCls:ee,treeNodeCls:ae,treeNodePadding:re});return[ye(fe,le),De(le)]},we=fe=>{const{controlHeightSM:z}=fe;return{titleHeight:z,nodeHoverBg:fe.controlItemBgHover,nodeSelectedBg:fe.controlItemBgActive}};fn.ZP=(0,ge.Z)("Tree",(fe,z)=>{let{prefixCls:ee}=z;return[{[fe.componentCls]:(0,mt.C2)(`${ee}-checkbox`,fe)},me(ee,fe),(0,Ze.Z)(fe)]},fe=>{const{colorTextLightSolid:z,colorPrimary:ee}=fe;return Object.assign(Object.assign({},we(fe)),{directoryNodeSelectedColor:z,directoryNodeSelectedBg:ee})})},71997:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return ae}});var He=We(92413),mt=We(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"},Ze=oe,Ne=We(7657),ge=function(le,ue){return mt.createElement(Ne.Z,(0,He.Z)({},le,{ref:ue,icon:Ze}))},ce=mt.forwardRef(ge),Pe=ce,Ae=We(52671),ye=We(58617),De=We(15075),me=We(43531),we=We(92310),fe=We.n(we),z=We(92343),ae=re=>{const{prefixCls:le,switcherIcon:ue,treeNodeProps:pe,showLine:Ee}=re,{isLeaf:be,expanded:Ie,loading:Le}=pe;if(Le)return mt.createElement(ye.Z,{className:`${le}-switcher-loading-icon`});let Fe;if(Ee&&typeof Ee=="object"&&(Fe=Ee.showLeafIcon),be){if(!Ee)return null;if(typeof Fe!="boolean"&&Fe){const ze=typeof Fe=="function"?Fe(pe):Fe,_e=`${le}-switcher-line-custom-icon`;return(0,z.l$)(ze)?(0,z.Tm)(ze,{className:fe()(ze.props.className||"",_e)}):ze}return Fe?mt.createElement(Ae.Z,{className:`${le}-switcher-line-icon`}):mt.createElement("span",{className:`${le}-switcher-leaf-line`})}const Oe=`${le}-switcher-icon`,je=typeof ue=="function"?ue(pe):ue;return(0,z.l$)(je)?(0,z.Tm)(je,{className:fe()(je.props.className||"",Oe)}):je!==void 0?je:Ee?Ie?mt.createElement(De.Z,{className:`${le}-switcher-line-icon`}):mt.createElement(me.Z,{className:`${le}-switcher-line-icon`}):mt.createElement(Pe,{className:Oe})}},54580:function(kn,fn,We){"use strict";We.d(fn,{default:function(){return bn}});var He=We(59301),mt=We(26407),oe=We(92310),Ze=We.n(oe),Ne=We(92413),ge=We(6909),ce=We(4771),Pe=We(9427),Ae=We(25440),ye=We(400),De=We(37061),me=We(85195),we=We(39559),fe=We(20569),z=We(26112);function ee(nn,wn){var gn="cannot ".concat(nn.method," ").concat(nn.action," ").concat(wn.status,"'"),yn=new Error(gn);return yn.status=wn.status,yn.method=nn.method,yn.url=nn.action,yn}function ae(nn){var wn=nn.responseText||nn.response;if(!wn)return wn;try{return JSON.parse(wn)}catch(gn){return wn}}function re(nn){var wn=new XMLHttpRequest;nn.onProgress&&wn.upload&&(wn.upload.onprogress=function(Tn){Tn.total>0&&(Tn.percent=Tn.loaded/Tn.total*100),nn.onProgress(Tn)});var gn=new FormData;nn.data&&Object.keys(nn.data).forEach(function(Ln){var Tn=nn.data[Ln];if(Array.isArray(Tn)){Tn.forEach(function(In){gn.append("".concat(Ln,"[]"),In)});return}gn.append(Ln,Tn)}),nn.file instanceof Blob?gn.append(nn.filename,nn.file,nn.file.name):gn.append(nn.filename,nn.file),wn.onerror=function(Tn){nn.onError(Tn)},wn.onload=function(){return wn.status<200||wn.status>=300?nn.onError(ee(nn,wn),ae(wn)):nn.onSuccess(ae(wn),wn)},wn.open(nn.method,nn.action,!0),nn.withCredentials&&"withCredentials"in wn&&(wn.withCredentials=!0);var yn=nn.headers||{};return yn["X-Requested-With"]!==null&&wn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(yn).forEach(function(Ln){yn[Ln]!==null&&wn.setRequestHeader(Ln,yn[Ln])}),wn.send(gn),{abort:function(){wn.abort()}}}var le=+new Date,ue=0;function pe(){return"rc-upload-".concat(le,"-").concat(++ue)}var Ee=We(48736),be=function(nn,wn){if(nn&&wn){var gn=Array.isArray(wn)?wn:wn.split(","),yn=nn.name||"",Ln=nn.type||"",Tn=Ln.replace(/\/.*$/,"");return gn.some(function(In){var Gn=In.trim();if(/^\*(\/\*)?$/.test(In))return!0;if(Gn.charAt(0)==="."){var mr=yn.toLowerCase(),mn=Gn.toLowerCase(),Pr=[mn];return(mn===".jpg"||mn===".jpeg")&&(Pr=[".jpg",".jpeg"]),Pr.some(function(Ur){return mr.endsWith(Ur)})}return/\/\*$/.test(Gn)?Tn===Gn.replace(/\/.*$/,""):Ln===Gn?!0:/^\w+$/.test(Gn)?((0,Ee.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Gn,"'.Skip for check.")),!0):!1})}return!0};function Ie(nn,wn){var gn=nn.createReader(),yn=[];function Ln(){gn.readEntries(function(Tn){var In=Array.prototype.slice.apply(Tn);yn=yn.concat(In);var Gn=!In.length;Gn?wn(yn):Ln()})}Ln()}var Le=function(wn,gn,yn){var Ln=function Tn(In,Gn){In&&(In.path=Gn||"",In.isFile?In.file(function(mr){yn(mr)&&(In.fullPath&&!mr.webkitRelativePath&&(Object.defineProperties(mr,{webkitRelativePath:{writable:!0}}),mr.webkitRelativePath=In.fullPath.replace(/^\//,""),Object.defineProperties(mr,{webkitRelativePath:{writable:!1}})),gn([mr]))}):In.isDirectory&&Ie(In,function(mr){mr.forEach(function(mn){Tn(mn,"".concat(Gn).concat(In.name,"/"))})}))};wn.forEach(function(Tn){Ln(Tn.webkitGetAsEntry())})},Fe=Le,Oe=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],je=function(nn){(0,Pe.Z)(gn,nn);var wn=(0,Ae.Z)(gn);function gn(){var yn;(0,ge.Z)(this,gn);for(var Ln=arguments.length,Tn=new Array(Ln),In=0;In<Ln;In++)Tn[In]=arguments[In];return yn=wn.call.apply(wn,[this].concat(Tn)),yn.state={uid:pe()},yn.reqs={},yn.fileInput=void 0,yn._isMounted=void 0,yn.onChange=function(Gn){var mr=yn.props,mn=mr.accept,Pr=mr.directory,Ur=Gn.target.files,Br=(0,mt.Z)(Ur).filter(function(Sn){return!Pr||be(Sn,mn)});yn.uploadFiles(Br),yn.reset()},yn.onClick=function(Gn){var mr=yn.fileInput;if(mr){var mn=Gn.target,Pr=yn.props.onClick;if(mn&&mn.tagName==="BUTTON"){var Ur=mr.parentNode;Ur.focus(),mn.blur()}mr.click(),Pr&&Pr(Gn)}},yn.onKeyDown=function(Gn){Gn.key==="Enter"&&yn.onClick(Gn)},yn.onFileDrop=function(Gn){var mr=yn.props.multiple;if(Gn.preventDefault(),Gn.type!=="dragover")if(yn.props.directory)Fe(Array.prototype.slice.call(Gn.dataTransfer.items),yn.uploadFiles,function(Pr){return be(Pr,yn.props.accept)});else{var mn=(0,mt.Z)(Gn.dataTransfer.files).filter(function(Pr){return be(Pr,yn.props.accept)});mr===!1&&(mn=mn.slice(0,1)),yn.uploadFiles(mn)}},yn.uploadFiles=function(Gn){var mr=(0,mt.Z)(Gn),mn=mr.map(function(Pr){return Pr.uid=pe(),yn.processFile(Pr,mr)});Promise.all(mn).then(function(Pr){var Ur=yn.props.onBatchStart;Ur==null||Ur(Pr.map(function(Br){var Sn=Br.origin,Yn=Br.parsedFile;return{file:Sn,parsedFile:Yn}})),Pr.filter(function(Br){return Br.parsedFile!==null}).forEach(function(Br){yn.post(Br)})})},yn.processFile=function(){var Gn=(0,fe.Z)((0,me.Z)().mark(function mr(mn,Pr){var Ur,Br,Sn,Yn,dr,Fr,fr,Ir,Zr;return(0,me.Z)().wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:if(Ur=yn.props.beforeUpload,Br=mn,!Ur){Er.next=14;break}return Er.prev=3,Er.next=6,Ur(mn,Pr);case 6:Br=Er.sent,Er.next=12;break;case 9:Er.prev=9,Er.t0=Er.catch(3),Br=!1;case 12:if(Br!==!1){Er.next=14;break}return Er.abrupt("return",{origin:mn,parsedFile:null,action:null,data:null});case 14:if(Sn=yn.props.action,typeof Sn!="function"){Er.next=21;break}return Er.next=18,Sn(mn);case 18:Yn=Er.sent,Er.next=22;break;case 21:Yn=Sn;case 22:if(dr=yn.props.data,typeof dr!="function"){Er.next=29;break}return Er.next=26,dr(mn);case 26:Fr=Er.sent,Er.next=30;break;case 29:Fr=dr;case 30:return fr=((0,we.Z)(Br)==="object"||typeof Br=="string")&&Br?Br:mn,fr instanceof File?Ir=fr:Ir=new File([fr],mn.name,{type:mn.type}),Zr=Ir,Zr.uid=mn.uid,Er.abrupt("return",{origin:mn,data:Fr,parsedFile:Zr,action:Yn});case 35:case"end":return Er.stop()}},mr,null,[[3,9]])}));return function(mr,mn){return Gn.apply(this,arguments)}}(),yn.saveFileInput=function(Gn){yn.fileInput=Gn},yn}return(0,ce.Z)(gn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ln){var Tn=this,In=Ln.data,Gn=Ln.origin,mr=Ln.action,mn=Ln.parsedFile;if(this._isMounted){var Pr=this.props,Ur=Pr.onStart,Br=Pr.customRequest,Sn=Pr.name,Yn=Pr.headers,dr=Pr.withCredentials,Fr=Pr.method,fr=Gn.uid,Ir=Br||re,Zr={action:mr,filename:Sn,data:In,file:mn,headers:Yn,withCredentials:dr,method:Fr||"post",onProgress:function(Er){var Vr=Tn.props.onProgress;Vr==null||Vr(Er,mn)},onSuccess:function(Er,Vr){var Fn=Tn.props.onSuccess;Fn==null||Fn(Er,mn,Vr),delete Tn.reqs[fr]},onError:function(Er,Vr){var Fn=Tn.props.onError;Fn==null||Fn(Er,Vr,mn),delete Tn.reqs[fr]}};Ur(Gn),this.reqs[fr]=Ir(Zr)}}},{key:"reset",value:function(){this.setState({uid:pe()})}},{key:"abort",value:function(Ln){var Tn=this.reqs;if(Ln){var In=Ln.uid?Ln.uid:Ln;Tn[In]&&Tn[In].abort&&Tn[In].abort(),delete Tn[In]}else Object.keys(Tn).forEach(function(Gn){Tn[Gn]&&Tn[Gn].abort&&Tn[Gn].abort(),delete Tn[Gn]})}},{key:"render",value:function(){var Ln=this.props,Tn=Ln.component,In=Ln.prefixCls,Gn=Ln.className,mr=Ln.disabled,mn=Ln.id,Pr=Ln.style,Ur=Ln.multiple,Br=Ln.accept,Sn=Ln.capture,Yn=Ln.children,dr=Ln.directory,Fr=Ln.openFileDialogOnClick,fr=Ln.onMouseEnter,Ir=Ln.onMouseLeave,Zr=(0,De.Z)(Ln,Oe),zr=Ze()((0,ye.Z)((0,ye.Z)((0,ye.Z)({},In,!0),"".concat(In,"-disabled"),mr),Gn,Gn)),Er=dr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Vr=mr?{}:{onClick:Fr?this.onClick:function(){},onKeyDown:Fr?this.onKeyDown:function(){},onMouseEnter:fr,onMouseLeave:Ir,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return He.createElement(Tn,(0,Ne.Z)({},Vr,{className:zr,role:"button",style:Pr}),He.createElement("input",(0,Ne.Z)({},(0,z.Z)(Zr,{aria:!0,data:!0}),{id:mn,disabled:mr,type:"file",ref:this.saveFileInput,onClick:function(Mi){return Mi.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Br},Er,{multiple:Ur,onChange:this.onChange},Sn!=null?{capture:Sn}:{})),Yn)}}]),gn}(He.Component),ze=je;function _e(){}var Ue=function(nn){(0,Pe.Z)(gn,nn);var wn=(0,Ae.Z)(gn);function gn(){var yn;(0,ge.Z)(this,gn);for(var Ln=arguments.length,Tn=new Array(Ln),In=0;In<Ln;In++)Tn[In]=arguments[In];return yn=wn.call.apply(wn,[this].concat(Tn)),yn.uploader=void 0,yn.saveUploader=function(Gn){yn.uploader=Gn},yn}return(0,ce.Z)(gn,[{key:"abort",value:function(Ln){this.uploader.abort(Ln)}},{key:"render",value:function(){return He.createElement(ze,(0,Ne.Z)({},this.props,{ref:this.saveUploader}))}}]),gn}(He.Component);Ue.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:_e,onError:_e,onSuccess:_e,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var $e=Ue,et=$e,lt=We(18929),ut=We(4676),yt=We(36355),qe=We(1684),ot=We(9763),dt=We(31724),St={icon:function(wn,gn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:gn}},{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:wn}}]}},name:"file",theme:"twotone"},xt=St,ft=We(7657),gt=function(wn,gn){return He.createElement(ft.Z,(0,Ne.Z)({},wn,{ref:gn,icon:xt}))},vt=He.forwardRef(gt),Tt=vt,Et=We(58617),Zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},wt=Zt,bt=function(wn,gn){return He.createElement(ft.Z,(0,Ne.Z)({},wn,{ref:gn,icon:wt}))},it=He.forwardRef(bt),nt=it,xe={icon:function(wn,gn){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:wn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:gn}},{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:gn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:gn}},{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:wn}}]}},name:"picture",theme:"twotone"},Ce=xe,Ye=function(wn,gn){return He.createElement(ft.Z,(0,Ne.Z)({},wn,{ref:gn,icon:Ce}))},Je=He.forwardRef(Ye),Me=Je,Ge=We(77900),Ke=We(56762),Ve=We(62892),Qe=We(92343),ht=We(3113);function At(nn){return Object.assign(Object.assign({},nn),{lastModified:nn.lastModified,lastModifiedDate:nn.lastModifiedDate,name:nn.name,size:nn.size,type:nn.type,uid:nn.uid,percent:0,originFileObj:nn})}function pt(nn,wn){const gn=(0,mt.Z)(wn),yn=gn.findIndex(Ln=>{let{uid:Tn}=Ln;return Tn===nn.uid});return yn===-1?gn.push(nn):gn[yn]=nn,gn}function Ot(nn,wn){const gn=nn.uid!==void 0?"uid":"name";return wn.filter(yn=>yn[gn]===nn[gn])[0]}function Kt(nn,wn){const gn=nn.uid!==void 0?"uid":"name",yn=wn.filter(Ln=>Ln[gn]!==nn[gn]);return yn.length===wn.length?null:yn}const jt=function(){const wn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),yn=wn[wn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(yn)||[""])[0]},Rt=nn=>nn.indexOf("image/")===0,Xt=nn=>{if(nn.type&&!nn.thumbUrl)return Rt(nn.type);const wn=nn.thumbUrl||nn.url||"",gn=jt(wn);return/^data:image\//.test(wn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(gn)?!0:!(/^data:/.test(wn)||gn)},sn=200;function Ft(nn){return new Promise(wn=>{if(!nn.type||!Rt(nn.type)){wn("");return}const gn=document.createElement("canvas");gn.width=sn,gn.height=sn,gn.style.cssText=`position: fixed; left: 0; top: 0; width: ${sn}px; height: ${sn}px; z-index: 9999; display: none;`,document.body.appendChild(gn);const yn=gn.getContext("2d"),Ln=new Image;if(Ln.onload=()=>{const{width:Tn,height:In}=Ln;let Gn=sn,mr=sn,mn=0,Pr=0;Tn>In?(mr=In*(sn/Tn),Pr=-(mr-Gn)/2):(Gn=Tn*(sn/In),mn=-(Gn-mr)/2),yn.drawImage(Ln,mn,Pr,Gn,mr);const Ur=gn.toDataURL();document.body.removeChild(gn),window.URL.revokeObjectURL(Ln.src),wn(Ur)},Ln.crossOrigin="anonymous",nn.type.startsWith("image/svg+xml")){const Tn=new FileReader;Tn.onload=()=>{Tn.result&&(Ln.src=Tn.result)},Tn.readAsDataURL(nn)}else if(nn.type.startsWith("image/gif")){const Tn=new FileReader;Tn.onload=()=>{Tn.result&&wn(Tn.result)},Tn.readAsDataURL(nn)}else Ln.src=window.URL.createObjectURL(nn)})}var Qt=We(26227),en=We(41464),on=We(15277),Cn=We(93948),Bn=We(6848),er=He.forwardRef((nn,wn)=>{let{prefixCls:gn,className:yn,style:Ln,locale:Tn,listType:In,file:Gn,items:mr,progress:mn,iconRender:Pr,actionIconRender:Ur,itemRender:Br,isImgUrl:Sn,showPreviewIcon:Yn,showRemoveIcon:dr,showDownloadIcon:Fr,previewIcon:fr,removeIcon:Ir,downloadIcon:Zr,onPreview:zr,onDownload:Er,onClose:Vr}=nn;var Fn,Mi;const{status:On}=Gn,[pi,Ni]=He.useState(On);He.useEffect(()=>{On!=="removed"&&Ni(On)},[On]);const[Qr,Xi]=He.useState(!1);He.useEffect(()=>{const no=setTimeout(()=>{Xi(!0)},300);return()=>{clearTimeout(no)}},[]);const Ti=Pr(Gn);let Rr=He.createElement("div",{className:`${gn}-icon`},Ti);if(In==="picture"||In==="picture-card"||In==="picture-circle")if(pi==="uploading"||!Gn.thumbUrl&&!Gn.url){const no=Ze()(`${gn}-list-item-thumbnail`,{[`${gn}-list-item-file`]:pi!=="uploading"});Rr=He.createElement("div",{className:no},Ti)}else{const no=Sn!=null&&Sn(Gn)?He.createElement("img",{src:Gn.thumbUrl||Gn.url,alt:Gn.name,className:`${gn}-list-item-image`,crossOrigin:Gn.crossOrigin}):Ti,Yr=Ze()(`${gn}-list-item-thumbnail`,{[`${gn}-list-item-file`]:Sn&&!Sn(Gn)});Rr=He.createElement("a",{className:Yr,onClick:Kr=>zr(Gn,Kr),href:Gn.url||Gn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},no)}const Wr=Ze()(`${gn}-list-item`,`${gn}-list-item-${pi}`),bi=typeof Gn.linkProps=="string"?JSON.parse(Gn.linkProps):Gn.linkProps,Di=dr?Ur((typeof Ir=="function"?Ir(Gn):Ir)||He.createElement(Qt.Z,null),()=>Vr(Gn),gn,Tn.removeFile):null,pr=Fr&&pi==="done"?Ur((typeof Zr=="function"?Zr(Gn):Zr)||He.createElement(en.Z,null),()=>Er(Gn),gn,Tn.downloadFile):null,Lt=In!=="picture-card"&&In!=="picture-circle"&&He.createElement("span",{key:"download-delete",className:Ze()(`${gn}-list-item-actions`,{picture:In==="picture"})},pr,Di),Li=Ze()(`${gn}-list-item-name`),so=Gn.url?[He.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Li,title:Gn.name},bi,{href:Gn.url,onClick:no=>zr(Gn,no)}),Gn.name),Lt]:[He.createElement("span",{key:"view",className:Li,onClick:no=>zr(Gn,no),title:Gn.name},Gn.name),Lt],Pi={pointerEvents:"none",opacity:.5},wo=Yn?He.createElement("a",{href:Gn.url||Gn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Gn.url||Gn.thumbUrl?void 0:Pi,onClick:no=>zr(Gn,no),title:Tn.previewFile},typeof fr=="function"?fr(Gn):fr||He.createElement(on.Z,null)):null,po=(In==="picture-card"||In==="picture-circle")&&pi!=="uploading"&&He.createElement("span",{className:`${gn}-list-item-actions`},wo,pi==="done"&&pr,Di),{getPrefixCls:Eo}=He.useContext(yt.E_),yi=Eo(),si=He.createElement("div",{className:Wr},Rr,so,po,Qr&&He.createElement(Ge.default,{motionName:`${yi}-fade`,visible:pi==="uploading",motionDeadline:2e3},no=>{let{className:Yr}=no;const Kr="percent"in Gn?He.createElement(Cn.Z,Object.assign({},mn,{type:"line",percent:Gn.percent,"aria-label":Gn["aria-label"],"aria-labelledby":Gn["aria-labelledby"]})):null;return He.createElement("div",{className:Ze()(`${gn}-list-item-progress`,Yr)},Kr)})),ei=Gn.response&&typeof Gn.response=="string"?Gn.response:((Fn=Gn.error)===null||Fn===void 0?void 0:Fn.statusText)||((Mi=Gn.error)===null||Mi===void 0?void 0:Mi.message)||Tn.uploadError,Ji=pi==="error"?He.createElement(Bn.Z,{title:ei,getPopupContainer:no=>no.parentNode},si):si;return He.createElement("div",{className:Ze()(`${gn}-list-item-container`,yn),style:Ln,ref:wn},Br?Br(Ji,Gn,mr,{download:Er.bind(null,Gn),preview:zr.bind(null,Gn),remove:Vr.bind(null,Gn)}):Ji)});const cr=(nn,wn)=>{const{listType:gn="text",previewFile:yn=Ft,onPreview:Ln,onDownload:Tn,onRemove:In,locale:Gn,iconRender:mr,isImageUrl:mn=Xt,prefixCls:Pr,items:Ur=[],showPreviewIcon:Br=!0,showRemoveIcon:Sn=!0,showDownloadIcon:Yn=!1,removeIcon:dr,previewIcon:Fr,downloadIcon:fr,progress:Ir={size:[-1,2],showInfo:!1},appendAction:Zr,appendActionVisible:zr=!0,itemRender:Er,disabled:Vr}=nn,Fn=(0,Ke.Z)(),[Mi,On]=He.useState(!1);He.useEffect(()=>{gn!=="picture"&&gn!=="picture-card"&&gn!=="picture-circle"||(Ur||[]).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="",yn&&yn(Pi.originFileObj).then(wo=>{Pi.thumbUrl=wo||"",Fn()}))})},[gn,Ur,yn]),He.useEffect(()=>{On(!0)},[]);const pi=(Pi,wo)=>{if(Ln)return wo==null||wo.preventDefault(),Ln(Pi)},Ni=Pi=>{typeof Tn=="function"?Tn(Pi):Pi.url&&window.open(Pi.url)},Qr=Pi=>{In==null||In(Pi)},Xi=Pi=>{if(mr)return mr(Pi,gn);const wo=Pi.status==="uploading",po=mn&&mn(Pi)?He.createElement(Me,null):He.createElement(Tt,null);let Eo=wo?He.createElement(Et.Z,null):He.createElement(nt,null);return gn==="picture"?Eo=wo?He.createElement(Et.Z,null):po:(gn==="picture-card"||gn==="picture-circle")&&(Eo=wo?Gn.uploading:po),Eo},Ti=(Pi,wo,po,Eo)=>{const yi={type:"text",size:"small",title:Eo,onClick:si=>{wo(),(0,Qe.l$)(Pi)&&Pi.props.onClick&&Pi.props.onClick(si)},className:`${po}-list-item-action`,disabled:Vr};if((0,Qe.l$)(Pi)){const si=(0,Qe.Tm)(Pi,Object.assign(Object.assign({},Pi.props),{onClick:()=>{}}));return He.createElement(ht.ZP,Object.assign({},yi,{icon:si}))}return He.createElement(ht.ZP,Object.assign({},yi),He.createElement("span",null,Pi))};He.useImperativeHandle(wn,()=>({handlePreview:pi,handleDownload:Ni}));const{getPrefixCls:Rr}=He.useContext(yt.E_),Wr=Rr("upload",Pr),bi=Rr(),Di=Ze()(`${Wr}-list`,`${Wr}-list-${gn}`),pr=(0,mt.Z)(Ur.map(Pi=>({key:Pi.uid,file:Pi})));let Li={motionDeadline:2e3,motionName:`${Wr}-${gn==="picture-card"||gn==="picture-circle"?"animate-inline":"animate"}`,keys:pr,motionAppear:Mi};const so=He.useMemo(()=>{const Pi=Object.assign({},(0,Ve.Z)(bi));return delete Pi.onAppearEnd,delete Pi.onEnterEnd,delete Pi.onLeaveEnd,Pi},[bi]);return gn!=="picture-card"&&gn!=="picture-circle"&&(Li=Object.assign(Object.assign({},so),Li)),He.createElement("div",{className:Di},He.createElement(Ge.CSSMotionList,Object.assign({},Li,{component:!1}),Pi=>{let{key:wo,file:po,className:Eo,style:yi}=Pi;return He.createElement(er,{key:wo,locale:Gn,prefixCls:Wr,className:Eo,style:yi,file:po,items:Ur,progress:Ir,listType:gn,isImgUrl:mn,showPreviewIcon:Br,showRemoveIcon:Sn,showDownloadIcon:Yn,removeIcon:dr,previewIcon:Fr,downloadIcon:fr,iconRender:Xi,actionIconRender:Ti,itemRender:Er,onPreview:pi,onDownload:Ni,onClose:Qr})}),Zr&&He.createElement(Ge.default,Object.assign({},Li,{visible:zr,forceRender:!0}),Pi=>{let{className:wo,style:po}=Pi;return(0,Qe.Tm)(Zr,Eo=>({className:Ze()(Eo.className,wo),style:Object.assign(Object.assign(Object.assign({},po),{pointerEvents:wo?"none":void 0}),Eo.style)}))}))};var Dr=He.forwardRef(cr),Or=We(17313),$r=We(8378),ai=We(83116),br=We(37613),Cr=nn=>{const{componentCls:wn,iconCls:gn}=nn;return{[`${wn}-wrapper`]:{[`${wn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:nn.colorFillAlter,border:`${nn.lineWidth}px dashed ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,cursor:"pointer",transition:`border-color ${nn.motionDurationSlow}`,[wn]:{padding:`${nn.padding}px 0`},[`${wn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${wn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${wn}-disabled):hover`]:{borderColor:nn.colorPrimaryHover},[`p${wn}-drag-icon`]:{marginBottom:nn.margin,[gn]:{color:nn.colorPrimary,fontSize:nn.uploadThumbnailSize}},[`p${wn}-text`]:{margin:`0 0 ${nn.marginXXS}px`,color:nn.colorTextHeading,fontSize:nn.fontSizeLG},[`p${wn}-hint`]:{color:nn.colorTextDescription,fontSize:nn.fontSize},[`&${wn}-disabled`]:{cursor:"not-allowed",[`p${wn}-drag-icon ${gn},
|
|
|
p${wn}-text,
|
|
|
p${wn}-hint
|
|
|
`]:{color:nn.colorTextDisabled}}}}}},wi=nn=>{const{componentCls:wn,antCls:gn,iconCls:yn,fontSize:Ln,lineHeight:Tn}=nn,In=`${wn}-list-item`,Gn=`${In}-actions`,mr=`${In}-action`,mn=Math.round(Ln*Tn);return{[`${wn}-wrapper`]:{[`${wn}-list`]:Object.assign(Object.assign({},(0,Or.dF)()),{lineHeight:nn.lineHeight,[In]:{position:"relative",height:nn.lineHeight*Ln,marginTop:nn.marginXS,fontSize:Ln,display:"flex",alignItems:"center",transition:`background-color ${nn.motionDurationSlow}`,"&:hover":{backgroundColor:nn.controlItemBgHover},[`${In}-name`]:Object.assign(Object.assign({},Or.vS),{padding:`0 ${nn.paddingXS}px`,lineHeight:Tn,flex:"auto",transition:`all ${nn.motionDurationSlow}`}),[Gn]:{[mr]:{opacity:0},[`${mr}${gn}-btn-sm`]:{height:mn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${mr}:focus-visible,
|
|
|
&.picture ${mr}
|
|
|
`]:{opacity:1},[yn]:{color:nn.actionsColor,transition:`all ${nn.motionDurationSlow}`},[`&:hover ${yn}`]:{color:nn.colorText}},[`${wn}-icon ${yn}`]:{color:nn.colorTextDescription,fontSize:Ln},[`${In}-progress`]:{position:"absolute",bottom:-nn.uploadProgressOffset,width:"100%",paddingInlineStart:Ln+nn.paddingXS,fontSize:Ln,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${In}:hover ${mr}`]:{opacity:1,color:nn.colorText},[`${In}-error`]:{color:nn.colorError,[`${In}-name, ${wn}-icon ${yn}`]:{color:nn.colorError},[Gn]:{[`${yn}, ${yn}:hover`]:{color:nn.colorError},[mr]:{opacity:1}}},[`${wn}-list-item-container`]:{transition:`opacity ${nn.motionDurationSlow}, height ${nn.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},ui=We(93083),Dn=We(1950);const ur=new ui.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),or=new ui.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Hn=nn=>{const{componentCls:wn}=nn,gn=`${wn}-animate-inline`;return[{[`${wn}-wrapper`]:{[`${gn}-appear, ${gn}-enter, ${gn}-leave`]:{animationDuration:nn.motionDurationSlow,animationTimingFunction:nn.motionEaseInOutCirc,animationFillMode:"forwards"},[`${gn}-appear, ${gn}-enter`]:{animationName:ur},[`${gn}-leave`]:{animationName:or}}},{[`${wn}-wrapper`]:(0,Dn.J$)(nn)},ur,or]},Jn=We(93398),_t=We(64993);const Gt=nn=>{const{componentCls:wn,iconCls:gn,uploadThumbnailSize:yn,uploadProgressOffset:Ln}=nn,Tn=`${wn}-list`,In=`${Tn}-item`;return{[`${wn}-wrapper`]:{[`
|
|
|
${Tn}${Tn}-picture,
|
|
|
${Tn}${Tn}-picture-card,
|
|
|
${Tn}${Tn}-picture-circle
|
|
|
`]:{[In]:{position:"relative",height:yn+nn.lineWidth*2+nn.paddingXS*2,padding:nn.paddingXS,border:`${nn.lineWidth}px ${nn.lineType} ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,"&:hover":{background:"transparent"},[`${In}-thumbnail`]:Object.assign(Object.assign({},Or.vS),{width:yn,height:yn,lineHeight:`${yn+nn.paddingSM}px`,textAlign:"center",flex:"none",[gn]:{fontSize:nn.fontSizeHeading2,color:nn.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${In}-progress`]:{bottom:Ln,width:`calc(100% - ${nn.paddingSM*2}px)`,marginTop:0,paddingInlineStart:yn+nn.paddingXS}},[`${In}-error`]:{borderColor:nn.colorError,[`${In}-thumbnail ${gn}`]:{[`svg path[fill='${Jn.blue[0]}']`]:{fill:nn.colorErrorBg},[`svg path[fill='${Jn.blue.primary}']`]:{fill:nn.colorError}}},[`${In}-uploading`]:{borderStyle:"dashed",[`${In}-name`]:{marginBottom:Ln}}},[`${Tn}${Tn}-picture-circle ${In}`]:{[`&, &::before, ${In}-thumbnail`]:{borderRadius:"50%"}}}}},Pt=nn=>{const{componentCls:wn,iconCls:gn,fontSizeLG:yn,colorTextLightSolid:Ln}=nn,Tn=`${wn}-list`,In=`${Tn}-item`,Gn=nn.uploadPicCardSize;return{[`
|
|
|
${wn}-wrapper${wn}-picture-card-wrapper,
|
|
|
${wn}-wrapper${wn}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Or.dF)()),{display:"inline-block",width:"100%",[`${wn}${wn}-select`]:{width:Gn,height:Gn,marginInlineEnd:nn.marginXS,marginBottom:nn.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:nn.colorFillAlter,border:`${nn.lineWidth}px dashed ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,cursor:"pointer",transition:`border-color ${nn.motionDurationSlow}`,[`> ${wn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${wn}-disabled):hover`]:{borderColor:nn.colorPrimary}},[`${Tn}${Tn}-picture-card, ${Tn}${Tn}-picture-circle`]:{[`${Tn}-item-container`]:{display:"inline-block",width:Gn,height:Gn,marginBlock:`0 ${nn.marginXS}px`,marginInline:`0 ${nn.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[In]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${nn.paddingXS*2}px)`,height:`calc(100% - ${nn.paddingXS*2}px)`,backgroundColor:nn.colorBgMask,opacity:0,transition:`all ${nn.motionDurationSlow}`,content:'" "'}},[`${In}:hover`]:{[`&::before, ${In}-actions`]:{opacity:1}},[`${In}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${nn.motionDurationSlow}`,[`${gn}-eye, ${gn}-download, ${gn}-delete`]:{zIndex:10,width:yn,margin:`0 ${nn.marginXXS}px`,fontSize:yn,cursor:"pointer",transition:`all ${nn.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${In}-actions, ${In}-actions:hover`]:{[`${gn}-eye, ${gn}-download, ${gn}-delete`]:{color:new _t.C(Ln).setAlpha(.65).toRgbString(),"&:hover":{color:Ln}}},[`${In}-thumbnail, ${In}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${In}-name`]:{display:"none",textAlign:"center"},[`${In}-file + ${In}-name`]:{position:"absolute",bottom:nn.margin,display:"block",width:`calc(100% - ${nn.paddingXS*2}px)`},[`${In}-uploading`]:{[`&${In}`]:{backgroundColor:nn.colorFillAlter},[`&::before, ${gn}-eye, ${gn}-download, ${gn}-delete`]:{display:"none"}},[`${In}-progress`]:{bottom:nn.marginXL,width:`calc(100% - ${nn.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${wn}-wrapper${wn}-picture-circle-wrapper`]:{[`${wn}${wn}-select`]:{borderRadius:"50%"}}}};var pn=nn=>{const{componentCls:wn}=nn;return{[`${wn}-rtl`]:{direction:"rtl"}}};const Vt=nn=>{const{componentCls:wn,colorTextDisabled:gn}=nn;return{[`${wn}-wrapper`]:Object.assign(Object.assign({},(0,Or.Wf)(nn)),{[wn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${wn}-select`]:{display:"inline-block"},[`${wn}-disabled`]:{color:gn,cursor:"not-allowed"}})}};var Dt=(0,ai.Z)("Upload",nn=>{const{fontSizeHeading3:wn,fontSize:gn,lineHeight:yn,lineWidth:Ln,controlHeightLG:Tn}=nn,In=Math.round(gn*yn),Gn=(0,br.TS)(nn,{uploadThumbnailSize:wn*2,uploadProgressOffset:In/2+Ln,uploadPicCardSize:Tn*2.55});return[Vt(Gn),Cr(Gn),Gt(Gn),Pt(Gn),wi(Gn),Hn(Gn),pn(Gn),(0,$r.Z)(Gn)]},nn=>({actionsColor:nn.colorTextDescription})),cn=function(nn,wn,gn,yn){function Ln(Tn){return Tn instanceof gn?Tn:new gn(function(In){In(Tn)})}return new(gn||(gn=Promise))(function(Tn,In){function Gn(Pr){try{mn(yn.next(Pr))}catch(Ur){In(Ur)}}function mr(Pr){try{mn(yn.throw(Pr))}catch(Ur){In(Ur)}}function mn(Pr){Pr.done?Tn(Pr.value):Ln(Pr.value).then(Gn,mr)}mn((yn=yn.apply(nn,wn||[])).next())})};const xn=`__LIST_IGNORE_${Date.now()}__`,Nn=(nn,wn)=>{const{fileList:gn,defaultFileList:yn,onRemove:Ln,showUploadList:Tn=!0,listType:In="text",onPreview:Gn,onDownload:mr,onChange:mn,onDrop:Pr,previewFile:Ur,disabled:Br,locale:Sn,iconRender:Yn,isImageUrl:dr,progress:Fr,prefixCls:fr,className:Ir,type:Zr="select",children:zr,style:Er,itemRender:Vr,maxCount:Fn,data:Mi={},multiple:On=!1,action:pi="",accept:Ni="",supportServerRender:Qr=!0,rootClassName:Xi}=nn,Ti=He.useContext(qe.Z),Rr=Br!=null?Br:Ti,[Wr,bi]=(0,lt.Z)(yn||[],{value:gn,postState:bo=>bo!=null?bo:[]}),[Di,pr]=He.useState("drop"),Lt=He.useRef(null);He.useMemo(()=>{const bo=Date.now();(gn||[]).forEach((io,da)=>{!io.uid&&!Object.isFrozen(io)&&(io.uid=`__AUTO__${bo}_${da}__`)})},[gn]);const Li=(bo,io,da)=>{let Ao=(0,mt.Z)(io),$i=!1;Fn===1?Ao=Ao.slice(-1):Fn&&($i=Ao.length>Fn,Ao=Ao.slice(0,Fn)),(0,ut.flushSync)(()=>{bi(Ao)});const Io={file:bo,fileList:Ao};da&&(Io.event=da),(!$i||Ao.some(ws=>ws.uid===bo.uid))&&(0,ut.flushSync)(()=>{mn==null||mn(Io)})},so=(bo,io)=>cn(void 0,void 0,void 0,function*(){const{beforeUpload:da,transformFile:Ao}=nn;let $i=bo;if(da){const Io=yield da(bo,io);if(Io===!1)return!1;if(delete bo[xn],Io===xn)return Object.defineProperty(bo,xn,{value:!0,configurable:!0}),!1;typeof Io=="object"&&Io&&($i=Io)}return Ao&&($i=yield Ao($i)),$i}),Pi=bo=>{const io=bo.filter($i=>!$i.file[xn]);if(!io.length)return;const da=io.map($i=>At($i.file));let Ao=(0,mt.Z)(Wr);da.forEach($i=>{Ao=pt($i,Ao)}),da.forEach(($i,Io)=>{let ws=$i;if(io[Io].parsedFile)$i.status="uploading";else{const{originFileObj:Ci}=$i;let co;try{co=new File([Ci],Ci.name,{type:Ci.type})}catch(ao){co=new Blob([Ci],{type:Ci.type}),co.name=Ci.name,co.lastModifiedDate=new Date,co.lastModified=new Date().getTime()}co.uid=$i.uid,ws=co}Li(ws,Ao)})},wo=(bo,io,da)=>{try{typeof bo=="string"&&(bo=JSON.parse(bo))}catch(Io){}if(!Ot(io,Wr))return;const Ao=At(io);Ao.status="done",Ao.percent=100,Ao.response=bo,Ao.xhr=da;const $i=pt(Ao,Wr);Li(Ao,$i)},po=(bo,io)=>{if(!Ot(io,Wr))return;const da=At(io);da.status="uploading",da.percent=bo.percent;const Ao=pt(da,Wr);Li(da,Ao,bo)},Eo=(bo,io,da)=>{if(!Ot(da,Wr))return;const Ao=At(da);Ao.error=bo,Ao.response=io,Ao.status="error";const $i=pt(Ao,Wr);Li(Ao,$i)},yi=bo=>{let io;Promise.resolve(typeof Ln=="function"?Ln(bo):Ln).then(da=>{var Ao;if(da===!1)return;const $i=Kt(bo,Wr);$i&&(io=Object.assign(Object.assign({},bo),{status:"removed"}),Wr==null||Wr.forEach(Io=>{const ws=io.uid!==void 0?"uid":"name";Io[ws]===io[ws]&&!Object.isFrozen(Io)&&(Io.status="removed")}),(Ao=Lt.current)===null||Ao===void 0||Ao.abort(io),Li(io,$i))})},si=bo=>{pr(bo.type),bo.type==="drop"&&(Pr==null||Pr(bo))};He.useImperativeHandle(wn,()=>({onBatchStart:Pi,onSuccess:wo,onProgress:po,onError:Eo,fileList:Wr,upload:Lt.current}));const{getPrefixCls:ei,direction:Ji,upload:no}=He.useContext(yt.E_),Yr=ei("upload",fr),Kr=Object.assign(Object.assign({onBatchStart:Pi,onError:Eo,onProgress:po,onSuccess:wo},nn),{data:Mi,multiple:On,action:pi,accept:Ni,supportServerRender:Qr,prefixCls:Yr,disabled:Rr,beforeUpload:so,onChange:void 0});delete Kr.className,delete Kr.style,(!zr||Rr)&&delete Kr.id;const[qn,ci]=Dt(Yr),[ro]=(0,ot.Z)("Upload",dt.Z.Upload),{showRemoveIcon:Do,showPreviewIcon:lo,showDownloadIcon:Qi,removeIcon:Oo,previewIcon:ko,downloadIcon:oa}=typeof Tn=="boolean"?{}:Tn,la=(bo,io)=>Tn?He.createElement(Dr,{prefixCls:Yr,listType:In,items:Wr,previewFile:Ur,onPreview:Gn,onDownload:mr,onRemove:yi,showRemoveIcon:!Rr&&Do,showPreviewIcon:lo,showDownloadIcon:Qi,removeIcon:Oo,previewIcon:ko,downloadIcon:oa,iconRender:Yn,locale:Object.assign(Object.assign({},ro),Sn),isImageUrl:dr,progress:Fr,appendAction:bo,appendActionVisible:io,itemRender:Vr,disabled:Rr}):bo,Ma=Ze()(`${Yr}-wrapper`,Ir,Xi,ci,no==null?void 0:no.className,{[`${Yr}-rtl`]:Ji==="rtl",[`${Yr}-picture-card-wrapper`]:In==="picture-card",[`${Yr}-picture-circle-wrapper`]:In==="picture-circle"}),Mn=Object.assign(Object.assign({},no==null?void 0:no.style),Er);if(Zr==="drag"){const bo=Ze()(ci,Yr,`${Yr}-drag`,{[`${Yr}-drag-uploading`]:Wr.some(io=>io.status==="uploading"),[`${Yr}-drag-hover`]:Di==="dragover",[`${Yr}-disabled`]:Rr,[`${Yr}-rtl`]:Ji==="rtl"});return qn(He.createElement("span",{className:Ma},He.createElement("div",{className:bo,style:Mn,onDrop:si,onDragOver:si,onDragLeave:si},He.createElement(et,Object.assign({},Kr,{ref:Lt,className:`${Yr}-btn`}),He.createElement("div",{className:`${Yr}-drag-container`},zr))),la()))}const ha=Ze()(Yr,`${Yr}-select`,{[`${Yr}-disabled`]:Rr}),xs=(bo=>He.createElement("div",{className:ha,style:bo},He.createElement(et,Object.assign({},Kr,{ref:Lt}))))(zr?void 0:{display:"none"});return qn(In==="picture-card"||In==="picture-circle"?He.createElement("span",{className:Ma},la(xs,!!zr)):He.createElement("span",{className:Ma},xs,la()))};var Ht=He.forwardRef(Nn),En=function(nn,wn){var gn={};for(var yn in nn)Object.prototype.hasOwnProperty.call(nn,yn)&&wn.indexOf(yn)<0&&(gn[yn]=nn[yn]);if(nn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ln=0,yn=Object.getOwnPropertySymbols(nn);Ln<yn.length;Ln++)wn.indexOf(yn[Ln])<0&&Object.prototype.propertyIsEnumerable.call(nn,yn[Ln])&&(gn[yn[Ln]]=nn[yn[Ln]]);return gn},nr=He.forwardRef((nn,wn)=>{var{style:gn,height:yn}=nn,Ln=En(nn,["style","height"]);return He.createElement(Ht,Object.assign({ref:wn},Ln,{type:"drag",style:Object.assign(Object.assign({},gn),{height:yn})}))});const rn=Ht;rn.Dragger=nr,rn.LIST_IGNORE=xn;var bn=rn},99498:function(kn,fn,We){(function(He){He(We(89780))})(function(He){He.defineOption("placeholder","",function(Pe,Ae,ye){var De=ye&&ye!=He.Init;if(Ae&&!De)Pe.on("blur",Ne),Pe.on("change",ge),Pe.on("swapDoc",ge),He.on(Pe.getInputField(),"compositionupdate",Pe.state.placeholderCompose=function(){Ze(Pe)}),ge(Pe);else if(!Ae&&De){Pe.off("blur",Ne),Pe.off("change",ge),Pe.off("swapDoc",ge),He.off(Pe.getInputField(),"compositionupdate",Pe.state.placeholderCompose),mt(Pe);var me=Pe.getWrapperElement();me.className=me.className.replace(" CodeMirror-empty","")}Ae&&!Pe.hasFocus()&&Ne(Pe)});function mt(Pe){Pe.state.placeholder&&(Pe.state.placeholder.parentNode.removeChild(Pe.state.placeholder),Pe.state.placeholder=null)}function oe(Pe){mt(Pe);var Ae=Pe.state.placeholder=document.createElement("pre");Ae.style.cssText="height: 0; overflow: visible",Ae.style.direction=Pe.getOption("direction"),Ae.className="CodeMirror-placeholder CodeMirror-line-like";var ye=Pe.getOption("placeholder");typeof ye=="string"&&(ye=document.createTextNode(ye)),Ae.appendChild(ye),Pe.display.lineSpace.insertBefore(Ae,Pe.display.lineSpace.firstChild)}function Ze(Pe){setTimeout(function(){var Ae=!1,ye=Pe.getInputField();ye.nodeName=="TEXTAREA"?Ae=!ye.value:Pe.lineCount()==1&&(Ae=!/[^\u200b]/.test(ye.querySelector(".CodeMirror-line").textContent)),Ae?oe(Pe):mt(Pe)},20)}function Ne(Pe){ce(Pe)&&oe(Pe)}function ge(Pe){var Ae=Pe.getWrapperElement(),ye=ce(Pe);Ae.className=Ae.className.replace(" CodeMirror-empty","")+(ye?" CodeMirror-empty":""),ye?oe(Pe):mt(Pe)}function ce(Pe){return Pe.lineCount()===1&&Pe.getLine(0)===""}})},25717:function(kn,fn,We){(function(He){He(We(89780))})(function(He){var mt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},oe=He.Pos;He.defineOption("autoCloseBrackets",!1,function(z,ee,ae){ae&&ae!=He.Init&&(z.removeKeyMap(Ne),z.state.closeBrackets=null),ee&&(ge(Ze(ee,"pairs")),z.state.closeBrackets=ee,z.addKeyMap(Ne))});function Ze(z,ee){return ee=="pairs"&&typeof z=="string"?z:typeof z=="object"&&z[ee]!=null?z[ee]:mt[ee]}var Ne={Backspace:Ae,Enter:ye};function ge(z){for(var ee=0;ee<z.length;ee++){var ae=z.charAt(ee),re="'"+ae+"'";Ne[re]||(Ne[re]=ce(ae))}}ge(mt.pairs+"`");function ce(z){return function(ee){return me(ee,z)}}function Pe(z){var ee=z.state.closeBrackets;if(!ee||ee.override)return ee;var ae=z.getModeAt(z.getCursor());return ae.closeBrackets||ee}function Ae(z){var ee=Pe(z);if(!ee||z.getOption("disableInput"))return He.Pass;for(var ae=Ze(ee,"pairs"),re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return He.Pass;var ue=we(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return He.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=Pe(z),ae=ee&&Ze(ee,"explode");if(!ae||z.getOption("disableInput"))return He.Pass;for(var re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return He.Pass;var ue=we(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return He.Pass}z.operation(function(){var pe=z.lineSeparator()||`
|
|
|
`;z.replaceSelection(pe+pe,null),z.execCommand("goCharLeft"),re=z.listSelections();for(var Ee=0;Ee<re.length;Ee++){var be=re[Ee].head.line;z.indentLine(be,null,!0),z.indentLine(be+1,null,!0)}})}function De(z){var ee=He.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=Pe(z);if(!ae||z.getOption("disableInput"))return He.Pass;var re=Ze(ae,"pairs"),le=re.indexOf(ee);if(le==-1)return He.Pass;for(var ue=Ze(ae,"closeBefore"),pe=Ze(ae,"triples"),Ee=re.charAt(le+1)==ee,be=z.listSelections(),Ie=le%2==0,Le,Fe=0;Fe<be.length;Fe++){var Oe=be[Fe],je=Oe.head,ze,_e=z.getRange(je,oe(je.line,je.ch+1));if(Ie&&!Oe.empty())ze="surround";else if((Ee||!Ie)&&_e==ee)Ee&&fe(z,je)?ze="both":pe.indexOf(ee)>=0&&z.getRange(je,oe(je.line,je.ch+3))==ee+ee+ee?ze="skipThree":ze="skip";else if(Ee&&je.ch>1&&pe.indexOf(ee)>=0&&z.getRange(oe(je.line,je.ch-2),je)==ee+ee){if(je.ch>2&&/\bstring/.test(z.getTokenTypeAt(oe(je.line,je.ch-2))))return He.Pass;ze="addFour"}else if(Ee){var Ue=je.ch==0?" ":z.getRange(oe(je.line,je.ch-1),je);if(!He.isWordChar(_e)&&Ue!=ee&&!He.isWordChar(Ue))ze="both";else return He.Pass}else if(Ie&&(_e.length===0||/\s/.test(_e)||ue.indexOf(_e)>-1))ze="both";else return He.Pass;if(!Le)Le=ze;else if(Le!=ze)return He.Pass}var $e=le%2?re.charAt(le-1):ee,et=le%2?ee:re.charAt(le+1);z.operation(function(){if(Le=="skip")z.execCommand("goCharRight");else if(Le=="skipThree")for(var lt=0;lt<3;lt++)z.execCommand("goCharRight");else if(Le=="surround"){for(var ut=z.getSelections(),lt=0;lt<ut.length;lt++)ut[lt]=$e+ut[lt]+et;z.replaceSelections(ut,"around"),ut=z.listSelections().slice();for(var lt=0;lt<ut.length;lt++)ut[lt]=De(ut[lt]);z.setSelections(ut)}else Le=="both"?(z.replaceSelection($e+et,null),z.triggerElectric($e+et),z.execCommand("goCharLeft")):Le=="addFour"&&(z.replaceSelection($e+$e+$e+$e,"before"),z.execCommand("goCharRight"))})}function we(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(kn,fn,We){(function(He){He(We(89780),We(32855))})(function(He){He.defineOption("autoCloseTags",!1,function(Ae,ye,De){if(De!=He.Init&&De&&Ae.removeKeyMap("autoCloseTags"),!!ye){var me={name:"autoCloseTags"};(typeof ye!="object"||ye.whenClosing!==!1)&&(me["'/'"]=function(we){return ge(we)}),(typeof ye!="object"||ye.whenOpening!==!1)&&(me["'>'"]=function(we){return Ze(we)}),Ae.addKeyMap(me)}});var mt=["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 Ze(Ae){if(Ae.getOption("disableInput"))return He.Pass;for(var ye=Ae.listSelections(),De=[],me=Ae.getOption("autoCloseTags"),we=0;we<ye.length;we++){if(!ye[we].empty())return He.Pass;var fe=ye[we].head,z=Ae.getTokenAt(fe),ee=He.innerMode(Ae.getMode(),z.state),ae=ee.state,re=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(ae),le=re&&re.name;if(!le)return He.Pass;var ue=ee.mode.configuration=="html",pe=typeof me=="object"&&me.dontCloseTags||ue&&mt,Ee=typeof me=="object"&&me.indentTags||ue&&oe;z.end>fe.ch&&(le=le.slice(0,le.length-z.end+fe.ch));var be=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,be)>-1||Pe(Ae,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(ae)||[],le,fe,!0))return He.Pass;var Ie=typeof me=="object"&&me.emptyTags;if(Ie&&ce(Ie,le)>-1){De[we]={text:"/>",newPos:He.Pos(fe.line,fe.ch+2)};continue}var Le=Ee&&ce(Ee,be)>-1;De[we]={indent:Le,text:">"+(Le?`
|
|
|
|
|
|
`:"")+"</"+le+">",newPos:Le?He.Pos(fe.line+1,0):He.Pos(fe.line,fe.ch+1)}}for(var Fe=typeof me=="object"&&me.dontIndentOnAutoClose,we=ye.length-1;we>=0;we--){var Oe=De[we];Ae.replaceRange(Oe.text,ye[we].head,ye[we].anchor,"+insert");var je=Ae.listSelections().slice(0);je[we]={head:Oe.newPos,anchor:Oe.newPos},Ae.setSelections(je),!Fe&&Oe.indent&&(Ae.indentLine(Oe.newPos.line,null,!0),Ae.indentLine(Oe.newPos.line+1,null,!0))}}function Ne(Ae,ye){for(var De=Ae.listSelections(),me=[],we=ye?"/":"</",fe=Ae.getOption("autoCloseTags"),z=typeof fe=="object"&&fe.dontIndentOnSlash,ee=0;ee<De.length;ee++){if(!De[ee].empty())return He.Pass;var ae=De[ee].head,re=Ae.getTokenAt(ae),le=He.innerMode(Ae.getMode(),re.state),ue=le.state;if(ye&&(re.type=="string"||re.string.charAt(0)!="<"||re.start!=ae.ch-1))return He.Pass;var pe,Ee=le.mode.name!="xml"&&Ae.getMode().name=="htmlmixed";if(Ee&&le.mode.name=="javascript")pe=we+"script";else if(Ee&&le.mode.name=="css")pe=we+"style";else{var be=le.mode.xmlCurrentContext&&le.mode.xmlCurrentContext(ue);if(!be||be.length&&Pe(Ae,be,be[be.length-1],ae))return He.Pass;pe=we+be[be.length-1]}Ae.getLine(ae.line).charAt(re.end)!=">"&&(pe+=">"),me[ee]=pe}if(Ae.replaceSelections(me),De=Ae.listSelections(),!z)for(var ee=0;ee<De.length;ee++)(ee==De.length-1||De[ee].head.line<De[ee+1].head.line)&&Ae.indentLine(De[ee].head.line)}function ge(Ae){return Ae.getOption("disableInput")?He.Pass:Ne(Ae,!0)}He.commands.closeTag=function(Ae){return Ne(Ae)};function ce(Ae,ye){if(Ae.indexOf)return Ae.indexOf(ye);for(var De=0,me=Ae.length;De<me;++De)if(Ae[De]==ye)return De;return-1}function Pe(Ae,ye,De,me,we){if(!He.scanForClosingTag)return!1;var fe=Math.min(Ae.lastLine()+1,me.line+500),z=He.scanForClosingTag(Ae,me,null,fe);if(!z||z.tag!=De)return!1;for(var ee=we?1:0,ae=ye.length-1;ae>=0&&ye[ae]==De;ae--)++ee;me=z.to;for(var ae=1;ae<ee;ae++){var re=He.scanForClosingTag(Ae,me,null,fe);if(!re||re.tag!=De)return!1;me=re.to}return!0}})},32855:function(kn,fn,We){(function(He){He(We(89780))})(function(He){"use strict";var mt=He.Pos;function oe(ae,re){return ae.line-re.line||ae.ch-re.ch}var Ze="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",Ne=Ze+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("<(/?)(["+Ze+"]["+Ne+"]*)","g");function ce(ae,re,le,ue){this.line=re,this.ch=le,this.cm=ae,this.text=ae.getLine(re),this.min=ue?Math.max(ue.from,ae.firstLine()):ae.firstLine(),this.max=ue?Math.min(ue.to-1,ae.lastLine()):ae.lastLine()}function Pe(ae,re){var le=ae.cm.getTokenTypeAt(mt(ae.line,re));return le&&/\btag\b/.test(le)}function Ae(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 De(ae){for(;;){var re=ae.text.indexOf(">",ae.ch);if(re==-1){if(Ae(ae))continue;return}if(!Pe(ae,re+1)){ae.ch=re+1;continue}var le=ae.text.lastIndexOf("/",re),ue=le>-1&&!/\S/.test(ae.text.slice(le+1,re));return ae.ch=re+1,ue?"selfClose":"regular"}}function me(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf("<",ae.ch-1):-1;if(re==-1){if(ye(ae))continue;return}if(!Pe(ae,re+1)){ae.ch=re;continue}ge.lastIndex=re,ae.ch=re;var le=ge.exec(ae.text);if(le&&le.index==re)return le}}function we(ae){for(;;){ge.lastIndex=ae.ch;var re=ge.exec(ae.text);if(!re){if(Ae(ae))continue;return}if(!Pe(ae,re.index+1)){ae.ch=re.index+1;continue}return ae.ch=re.index+re[0].length,re}}function fe(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf(">",ae.ch-1):-1;if(re==-1){if(ye(ae))continue;return}if(!Pe(ae,re+1)){ae.ch=re;continue}var le=ae.text.lastIndexOf("/",re),ue=le>-1&&!/\S/.test(ae.text.slice(le+1,re));return ae.ch=re+1,ue?"selfClose":"regular"}}function z(ae,re){for(var le=[];;){var ue=we(ae),pe,Ee=ae.line,be=ae.ch-(ue?ue[0].length:0);if(!ue||!(pe=De(ae)))return;if(pe!="selfClose")if(ue[1]){for(var Ie=le.length-1;Ie>=0;--Ie)if(le[Ie]==ue[2]){le.length=Ie;break}if(Ie<0&&(!re||re==ue[2]))return{tag:ue[2],from:mt(Ee,be),to:mt(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,Ee=ae.ch,be=me(ae);if(!be)return;if(be[1])le.push(be[2]);else{for(var Ie=le.length-1;Ie>=0;--Ie)if(le[Ie]==be[2]){le.length=Ie;break}if(Ie<0&&(!re||re==be[2]))return{tag:be[2],from:mt(ae.line,ae.ch),to:mt(pe,Ee)}}}}He.registerHelper("fold","xml",function(ae,re){for(var le=new ce(ae,re.line,0);;){var ue=we(le);if(!ue||le.line!=re.line)return;var pe=De(le);if(!pe)return;if(!ue[1]&&pe!="selfClose"){var Ee=mt(le.line,le.ch),be=z(le,ue[2]);return be&&oe(be.from,Ee)>0?{from:Ee,to:be.from}:null}}}),He.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=De(ue),Ee=pe&&mt(ue.line,ue.ch),be=pe&&me(ue);if(!(!pe||!be||oe(ue,re)>0)){var Ie={from:mt(ue.line,ue.ch),to:Ee,tag:be[2]};return pe=="selfClose"?{open:Ie,close:null,at:"open"}:be[1]?{open:ee(ue,be[2]),close:Ie,at:"close"}:(ue=new ce(ae,Ee.line,Ee.ch,le),{open:Ie,close:z(ue,be[2]),at:"open"})}}},He.findEnclosingTag=function(ae,re,le,ue){for(var pe=new ce(ae,re.line,re.ch,le);;){var Ee=ee(pe,ue);if(!Ee)break;var be=new ce(ae,re.line,re.ch,le),Ie=z(be,Ee.tag);if(Ie)return{open:Ee,close:Ie}}},He.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(kn){(function(fn,We){kn.exports=We()})(this,function(){"use strict";var fn=navigator.userAgent,We=navigator.platform,He=/gecko\/\d/i.test(fn),mt=/MSIE \d/.test(fn),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(fn),Ze=/Edge\/(\d+)/.exec(fn),Ne=mt||oe||Ze,ge=Ne&&(mt?document.documentMode||6:+(Ze||oe)[1]),ce=!Ze&&/WebKit\//.test(fn),Pe=ce&&/Qt\/\d+\.\d+/.test(fn),Ae=!Ze&&/Chrome\//.test(fn),ye=/Opera\//.test(fn),De=/Apple Computer/.test(navigator.vendor),me=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(fn),we=/PhantomJS/.test(fn),fe=!Ze&&/AppleWebKit/.test(fn)&&/Mobile\/\w+/.test(fn),z=/Android/.test(fn),ee=fe||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(fn),ae=fe||/Mac/.test(We),re=/\bCrOS\b/.test(fn),le=/win/i.test(We),ue=ye&&fn.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(ye=!1,ce=!0);var pe=ae&&(Pe||ye&&(ue==null||ue<12.11)),Ee=He||Ne&&ge>=9;function be(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ie=function(ie,de){var ke=ie.className,Te=be(de).exec(ke);if(Te){var Re=ke.slice(Te.index+Te[0].length);ie.className=ke.slice(0,Te.index)+(Re?Te[1]+Re:"")}};function Le(ie){for(var de=ie.childNodes.length;de>0;--de)ie.removeChild(ie.firstChild);return ie}function Fe(ie,de){return Le(ie).appendChild(de)}function Oe(ie,de,ke,Te){var Re=document.createElement(ie);if(ke&&(Re.className=ke),Te&&(Re.style.cssText=Te),typeof de=="string")Re.appendChild(document.createTextNode(de));else if(de)for(var st=0;st<de.length;++st)Re.appendChild(de[st]);return Re}function je(ie,de,ke,Te){var Re=Oe(ie,de,ke,Te);return Re.setAttribute("role","presentation"),Re}var ze;document.createRange?ze=function(ie,de,ke,Te){var Re=document.createRange();return Re.setEnd(Te||ie,ke),Re.setStart(ie,de),Re}:ze=function(ie,de,ke){var Te=document.body.createTextRange();try{Te.moveToElementText(ie.parentNode)}catch(Re){return Te}return Te.collapse(!0),Te.moveEnd("character",ke),Te.moveStart("character",de),Te};function _e(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 Ue(){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 ke=ie.className;be(de).test(ke)||(ie.className+=(ke?" ":"")+de)}function et(ie,de){for(var ke=ie.split(" "),Te=0;Te<ke.length;Te++)ke[Te]&&!be(ke[Te]).test(de)&&(de+=" "+ke[Te]);return de}var lt=function(ie){ie.select()};fe?lt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Ne&&(lt=function(ie){try{ie.select()}catch(de){}});function ut(ie){var de=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,de)}}function yt(ie,de,ke){de||(de={});for(var Te in ie)ie.hasOwnProperty(Te)&&(ke!==!1||!de.hasOwnProperty(Te))&&(de[Te]=ie[Te]);return de}function qe(ie,de,ke,Te,Re){de==null&&(de=ie.search(/[^\s\u00a0]/),de==-1&&(de=ie.length));for(var st=Te||0,Ct=Re||0;;){var Bt=ie.indexOf(" ",st);if(Bt<0||Bt>=de)return Ct+(de-st);Ct+=Bt-st,Ct+=ke-Ct%ke,st=Bt+1}}var ot=function(){this.id=null,this.f=null,this.time=0,this.handler=ut(this.onTimeout,this)};ot.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},ot.prototype.set=function(ie,de){this.f=de;var ke=+new Date+ie;(!this.id||ke<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ke)};function dt(ie,de){for(var ke=0;ke<ie.length;++ke)if(ie[ke]==de)return ke;return-1}var St=50,xt={toString:function(){return"CodeMirror.Pass"}},ft={scroll:!1},gt={origin:"*mouse"},vt={origin:"+move"};function Tt(ie,de,ke){for(var Te=0,Re=0;;){var st=ie.indexOf(" ",Te);st==-1&&(st=ie.length);var Ct=st-Te;if(st==ie.length||Re+Ct>=de)return Te+Math.min(Ct,de-Re);if(Re+=st-Te,Re+=ke-Re%ke,Te=st+1,Re>=de)return Te}}var Et=[""];function Zt(ie){for(;Et.length<=ie;)Et.push(wt(Et)+" ");return Et[ie]}function wt(ie){return ie[ie.length-1]}function bt(ie,de){for(var ke=[],Te=0;Te<ie.length;Te++)ke[Te]=de(ie[Te],Te);return ke}function it(ie,de,ke){for(var Te=0,Re=ke(de);Te<ie.length&&ke(ie[Te])<=Re;)Te++;ie.splice(Te,0,de)}function nt(){}function xe(ie,de){var ke;return Object.create?ke=Object.create(ie):(nt.prototype=ie,ke=new nt),de&&yt(de,ke),ke}var Ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ye(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Ce.test(ie))}function Je(ie,de){return de?de.source.indexOf("\\w")>-1&&Ye(ie)?!0:de.test(ie):Ye(ie)}function Me(ie){for(var de in ie)if(ie.hasOwnProperty(de)&&ie[de])return!1;return!0}var Ge=/[\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 Ke(ie){return ie.charCodeAt(0)>=768&&Ge.test(ie)}function Ve(ie,de,ke){for(;(ke<0?de>0:de<ie.length)&&Ke(ie.charAt(de));)de+=ke;return de}function Qe(ie,de,ke){for(var Te=de>ke?-1:1;;){if(de==ke)return de;var Re=(de+ke)/2,st=Te<0?Math.ceil(Re):Math.floor(Re);if(st==de)return ie(st)?de:ke;ie(st)?ke=st:de=st+Te}}function ht(ie,de,ke,Te){if(!ie)return Te(de,ke,"ltr",0);for(var Re=!1,st=0;st<ie.length;++st){var Ct=ie[st];(Ct.from<ke&&Ct.to>de||de==ke&&Ct.to==de)&&(Te(Math.max(Ct.from,de),Math.min(Ct.to,ke),Ct.level==1?"rtl":"ltr",st),Re=!0)}Re||Te(de,ke,"ltr")}var At=null;function pt(ie,de,ke){var Te;At=null;for(var Re=0;Re<ie.length;++Re){var st=ie[Re];if(st.from<de&&st.to>de)return Re;st.to==de&&(st.from!=st.to&&ke=="before"?Te=Re:At=Re),st.from==de&&(st.from!=st.to&&ke!="before"?Te=Re:At=Re)}return Te!=null?Te:At}var Ot=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",de="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ke(Jt){return Jt<=247?ie.charAt(Jt):1424<=Jt&&Jt<=1524?"R":1536<=Jt&&Jt<=1785?de.charAt(Jt-1536):1774<=Jt&&Jt<=2220?"r":8192<=Jt&&Jt<=8203?"w":Jt==8204?"b":"L"}var Te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Re=/[stwN]/,st=/[LRr]/,Ct=/[Lb1n]/,Bt=/[1n]/;function kt(Jt,Pn,qt){this.level=Jt,this.from=Pn,this.to=qt}return function(Jt,Pn){var qt=Pn=="ltr"?"L":"R";if(Jt.length==0||Pn=="ltr"&&!Te.test(Jt))return!1;for(var Vn=Jt.length,zn=[],yr=0;yr<Vn;++yr)zn.push(ke(Jt.charCodeAt(yr)));for(var Lr=0,Hr=qt;Lr<Vn;++Lr){var oi=zn[Lr];oi=="m"?zn[Lr]=Hr:Hr=oi}for(var Fi=0,xi=qt;Fi<Vn;++Fi){var Wi=zn[Fi];Wi=="1"&&xi=="r"?zn[Fi]="n":st.test(Wi)&&(xi=Wi,Wi=="r"&&(zn[Fi]="R"))}for(var So=1,vi=zn[0];So<Vn-1;++So){var Bo=zn[So];Bo=="+"&&vi=="1"&&zn[So+1]=="1"?zn[So]="1":Bo==","&&vi==zn[So+1]&&(vi=="1"||vi=="n")&&(zn[So]=vi),vi=Bo}for(var $a=0;$a<Vn;++$a){var Is=zn[$a];if(Is==",")zn[$a]="N";else if(Is=="%"){var os=void 0;for(os=$a+1;os<Vn&&zn[os]=="%";++os);for(var Vl=$a&&zn[$a-1]=="!"||os<Vn&&zn[os]=="1"?"1":"N",vl=$a;vl<os;++vl)zn[vl]=Vl;$a=os-1}}for(var Fs=0,iu=qt;Fs<Vn;++Fs){var al=zn[Fs];iu=="L"&&al=="1"?zn[Fs]="L":st.test(al)&&(iu=al)}for(var Ds=0;Ds<Vn;++Ds)if(Re.test(zn[Ds])){var sa=void 0;for(sa=Ds+1;sa<Vn&&Re.test(zn[sa]);++sa);for(var hs=(Ds?zn[Ds-1]:qt)=="L",Gs=(sa<Vn?zn[sa]:qt)=="L",sl=hs==Gs?hs?"L":"R":qt,Yu=Ds;Yu<sa;++Yu)zn[Yu]=sl;Ds=sa-1}for(var as=[],Tu,ys=0;ys<Vn;)if(Ct.test(zn[ys])){var xf=ys;for(++ys;ys<Vn&&Ct.test(zn[ys]);++ys);as.push(new kt(0,xf,ys))}else{var vu=ys,ou=as.length,Xl=Pn=="rtl"?1:0;for(++ys;ys<Vn&&zn[ys]!="L";++ys);for(var Ia=vu;Ia<ys;)if(Bt.test(zn[Ia])){vu<Ia&&(as.splice(ou,0,new kt(1,vu,Ia)),ou+=Xl);var Zs=Ia;for(++Ia;Ia<ys&&Bt.test(zn[Ia]);++Ia);as.splice(ou,0,new kt(2,Zs,Ia)),ou+=Xl,vu=Ia}else++Ia;vu<ys&&as.splice(ou,0,new kt(1,vu,ys))}return Pn=="ltr"&&(as[0].level==1&&(Tu=Jt.match(/^\s+/))&&(as[0].from=Tu[0].length,as.unshift(new kt(0,0,Tu[0].length))),wt(as).level==1&&(Tu=Jt.match(/\s+$/))&&(wt(as).to-=Tu[0].length,as.push(new kt(0,Vn-Tu[0].length,Vn)))),Pn=="rtl"?as.reverse():as}}();function Kt(ie,de){var ke=ie.order;return ke==null&&(ke=ie.order=Ot(ie.text,de)),ke}var jt=[],Rt=function(ie,de,ke){if(ie.addEventListener)ie.addEventListener(de,ke,!1);else if(ie.attachEvent)ie.attachEvent("on"+de,ke);else{var Te=ie._handlers||(ie._handlers={});Te[de]=(Te[de]||jt).concat(ke)}};function Xt(ie,de){return ie._handlers&&ie._handlers[de]||jt}function sn(ie,de,ke){if(ie.removeEventListener)ie.removeEventListener(de,ke,!1);else if(ie.detachEvent)ie.detachEvent("on"+de,ke);else{var Te=ie._handlers,Re=Te&&Te[de];if(Re){var st=dt(Re,ke);st>-1&&(Te[de]=Re.slice(0,st).concat(Re.slice(st+1)))}}}function Ft(ie,de){var ke=Xt(ie,de);if(ke.length)for(var Te=Array.prototype.slice.call(arguments,2),Re=0;Re<ke.length;++Re)ke[Re].apply(null,Te)}function Qt(ie,de,ke){return typeof de=="string"&&(de={type:de,preventDefault:function(){this.defaultPrevented=!0}}),Ft(ie,ke||de.type,ie,de),er(de)||de.codemirrorIgnore}function en(ie){var de=ie._handlers&&ie._handlers.cursorActivity;if(de)for(var ke=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),Te=0;Te<de.length;++Te)dt(ke,de[Te])==-1&&ke.push(de[Te])}function on(ie,de){return Xt(ie,de).length>0}function Cn(ie){ie.prototype.on=function(de,ke){Rt(this,de,ke)},ie.prototype.off=function(de,ke){sn(this,de,ke)}}function Bn(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function tr(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function er(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function cr(ie){Bn(ie),tr(ie)}function Ar(ie){return ie.target||ie.srcElement}function Dr(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 Or=function(){if(Ne&&ge<9)return!1;var ie=Oe("div");return"draggable"in ie||"dragDrop"in ie}(),$r;function ai(ie){if($r==null){var de=Oe("span","\u200B");Fe(ie,Oe("span",[de,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&($r=de.offsetWidth<=1&&de.offsetHeight>2&&!(Ne&&ge<8))}var ke=$r?Oe("span","\u200B"):Oe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ke.setAttribute("cm-text",""),ke}var br;function fi(ie){if(br!=null)return br;var de=Fe(ie,document.createTextNode("A\u062EA")),ke=ze(de,0,1).getBoundingClientRect(),Te=ze(de,1,2).getBoundingClientRect();return Le(ie),!ke||ke.left==ke.right?!1:br=Te.right-ke.right<3}var Cr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var de=0,ke=[],Te=ie.length;de<=Te;){var Re=ie.indexOf(`
|
|
|
`,de);Re==-1&&(Re=ie.length);var st=ie.slice(de,ie.charAt(Re-1)=="\r"?Re-1:Re),Ct=st.indexOf("\r");Ct!=-1?(ke.push(st.slice(0,Ct)),de+=Ct+1):(ke.push(st),de=Re+1)}return ke}:function(ie){return ie.split(/\r\n?|\n/)},at=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(ke){}return!de||de.parentElement()!=ie?!1:de.compareEndPoints("StartToEnd",de)!=0},wi=function(){var ie=Oe("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),ui=null;function Dn(ie){if(ui!=null)return ui;var de=Fe(ie,Oe("span","x")),ke=de.getBoundingClientRect(),Te=ze(de,0,1).getBoundingClientRect();return ui=Math.abs(ke.left-Te.left)>1}var ur={},or={};function vr(ie,de){arguments.length>2&&(de.dependencies=Array.prototype.slice.call(arguments,2)),ur[ie]=de}function Hn(ie,de){or[ie]=de}function Jn(ie){if(typeof ie=="string"&&or.hasOwnProperty(ie))ie=or[ie];else if(ie&&typeof ie.name=="string"&&or.hasOwnProperty(ie.name)){var de=or[ie.name];typeof de=="string"&&(de={name:de}),ie=xe(de,ie),ie.name=de.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Jn("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Jn("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function _t(ie,de){de=Jn(de);var ke=ur[de.name];if(!ke)return _t(ie,"text/plain");var Te=ke(ie,de);if(Gt.hasOwnProperty(de.name)){var Re=Gt[de.name];for(var st in Re)Re.hasOwnProperty(st)&&(Te.hasOwnProperty(st)&&(Te["_"+st]=Te[st]),Te[st]=Re[st])}if(Te.name=de.name,de.helperType&&(Te.helperType=de.helperType),de.modeProps)for(var Ct in de.modeProps)Te[Ct]=de.modeProps[Ct];return Te}var Gt={};function Pt(ie,de){var ke=Gt.hasOwnProperty(ie)?Gt[ie]:Gt[ie]={};yt(de,ke)}function ln(ie,de){if(de===!0)return de;if(ie.copyState)return ie.copyState(de);var ke={};for(var Te in de){var Re=de[Te];Re instanceof Array&&(Re=Re.concat([])),ke[Te]=Re}return ke}function pn(ie,de){for(var ke;ie.innerMode&&(ke=ie.innerMode(de),!(!ke||ke.mode==ie));)de=ke.state,ie=ke.mode;return ke||{mode:ie,state:de}}function Vt(ie,de,ke){return ie.startState?ie.startState(de,ke):!0}var Dt=function(ie,de,ke){this.pos=this.start=0,this.string=ie,this.tabSize=de||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ke};Dt.prototype.eol=function(){return this.pos>=this.string.length},Dt.prototype.sol=function(){return this.pos==this.lineStart},Dt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Dt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Dt.prototype.eat=function(ie){var de=this.string.charAt(this.pos),ke;if(typeof ie=="string"?ke=de==ie:ke=de&&(ie.test?ie.test(de):ie(de)),ke)return++this.pos,de},Dt.prototype.eatWhile=function(ie){for(var de=this.pos;this.eat(ie););return this.pos>de},Dt.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Dt.prototype.skipToEnd=function(){this.pos=this.string.length},Dt.prototype.skipTo=function(ie){var de=this.string.indexOf(ie,this.pos);if(de>-1)return this.pos=de,!0},Dt.prototype.backUp=function(ie){this.pos-=ie},Dt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=qe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},Dt.prototype.indentation=function(){return qe(this.string,null,this.tabSize)-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},Dt.prototype.match=function(ie,de,ke){if(typeof ie=="string"){var Te=function(Ct){return ke?Ct.toLowerCase():Ct},Re=this.string.substr(this.pos,ie.length);if(Te(Re)==Te(ie))return de!==!1&&(this.pos+=ie.length),!0}else{var st=this.string.slice(this.pos).match(ie);return st&&st.index>0?null:(st&&de!==!1&&(this.pos+=st[0].length),st)}},Dt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Dt.prototype.hideFirstChars=function(ie,de){this.lineStart+=ie;try{return de()}finally{this.lineStart-=ie}},Dt.prototype.lookAhead=function(ie){var de=this.lineOracle;return de&&de.lookAhead(ie)},Dt.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function cn(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 ke=ie;!ke.lines;)for(var Te=0;;++Te){var Re=ke.children[Te],st=Re.chunkSize();if(de<st){ke=Re;break}de-=st}return ke.lines[de]}function xn(ie,de,ke){var Te=[],Re=de.line;return ie.iter(de.line,ke.line+1,function(st){var Ct=st.text;Re==ke.line&&(Ct=Ct.slice(0,ke.ch)),Re==de.line&&(Ct=Ct.slice(de.ch)),Te.push(Ct),++Re}),Te}function Nn(ie,de,ke){var Te=[];return ie.iter(de,ke,function(Re){Te.push(Re.text)}),Te}function Zn(ie,de){var ke=de-ie.height;if(ke)for(var Te=ie;Te;Te=Te.parent)Te.height+=ke}function Ht(ie){if(ie.parent==null)return null;for(var de=ie.parent,ke=dt(de.lines,ie),Te=de.parent;Te;de=Te,Te=Te.parent)for(var Re=0;Te.children[Re]!=de;++Re)ke+=Te.children[Re].chunkSize();return ke+de.first}function En(ie,de){var ke=ie.first;e:do{for(var Te=0;Te<ie.children.length;++Te){var Re=ie.children[Te],st=Re.height;if(de<st){ie=Re;continue e}de-=st,ke+=Re.chunkSize()}return ke}while(!ie.lines);for(var Ct=0;Ct<ie.lines.length;++Ct){var Bt=ie.lines[Ct],kt=Bt.height;if(de<kt)break;de-=kt}return ke+Ct}function Kn(ie,de){return de>=ie.first&&de<ie.first+ie.size}function nr(ie,de){return String(ie.lineNumberFormatter(de+ie.firstLineNumber))}function rn(ie,de,ke){if(ke===void 0&&(ke=null),!(this instanceof rn))return new rn(ie,de,ke);this.line=ie,this.ch=de,this.sticky=ke}function bn(ie,de){return ie.line-de.line||ie.ch-de.ch}function nn(ie,de){return ie.sticky==de.sticky&&bn(ie,de)==0}function wn(ie){return rn(ie.line,ie.ch)}function gn(ie,de){return bn(ie,de)<0?de:ie}function yn(ie,de){return bn(ie,de)<0?ie:de}function Ln(ie,de){return Math.max(ie.first,Math.min(de,ie.first+ie.size-1))}function Tn(ie,de){if(de.line<ie.first)return rn(ie.first,0);var ke=ie.first+ie.size-1;return de.line>ke?rn(ke,cn(ie,ke).text.length):In(de,cn(ie,de.line).text.length)}function In(ie,de){var ke=ie.ch;return ke==null||ke>de?rn(ie.line,de):ke<0?rn(ie.line,0):ie}function Gn(ie,de){for(var ke=[],Te=0;Te<de.length;Te++)ke[Te]=Tn(ie,de[Te]);return ke}var mr=function(ie,de){this.state=ie,this.lookAhead=de},mn=function(ie,de,ke,Te){this.state=de,this.doc=ie,this.line=ke,this.maxLookAhead=Te||0,this.baseTokens=null,this.baseTokenPos=1};mn.prototype.lookAhead=function(ie){var de=this.doc.getLine(this.line+ie);return de!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),de},mn.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}},mn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mn.fromSaved=function(ie,de,ke){return de instanceof mr?new mn(ie,ln(ie.mode,de.state),ke,de.lookAhead):new mn(ie,ln(ie.mode,de),ke)},mn.prototype.save=function(ie){var de=ie!==!1?ln(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new mr(de,this.maxLookAhead):de};function Pr(ie,de,ke,Te){var Re=[ie.state.modeGen],st={};Zr(ie,de.text,ie.doc.mode,ke,function(Jt,Pn){return Re.push(Jt,Pn)},st,Te);for(var Ct=ke.state,Bt=function(Jt){ke.baseTokens=Re;var Pn=ie.state.overlays[Jt],qt=1,Vn=0;ke.state=!0,Zr(ie,de.text,Pn.mode,ke,function(zn,yr){for(var Lr=qt;Vn<zn;){var Hr=Re[qt];Hr>zn&&Re.splice(qt,1,zn,Re[qt+1],Hr),qt+=2,Vn=Math.min(zn,Hr)}if(yr)if(Pn.opaque)Re.splice(Lr,qt-Lr,zn,"overlay "+yr),qt=Lr+2;else for(;Lr<qt;Lr+=2){var oi=Re[Lr+1];Re[Lr+1]=(oi?oi+" ":"")+"overlay "+yr}},st),ke.state=Ct,ke.baseTokens=null,ke.baseTokenPos=1},kt=0;kt<ie.state.overlays.length;++kt)Bt(kt);return{styles:Re,classes:st.bgClass||st.textClass?st:null}}function Ur(ie,de,ke){if(!de.styles||de.styles[0]!=ie.state.modeGen){var Te=Br(ie,Ht(de)),Re=de.text.length>ie.options.maxHighlightLength&&ln(ie.doc.mode,Te.state),st=Pr(ie,de,Te);Re&&(Te.state=Re),de.stateAfter=Te.save(!Re),de.styles=st.styles,st.classes?de.styleClasses=st.classes:de.styleClasses&&(de.styleClasses=null),ke===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return de.styles}function Br(ie,de,ke){var Te=ie.doc,Re=ie.display;if(!Te.mode.startState)return new mn(Te,!0,de);var st=zr(ie,de,ke),Ct=st>Te.first&&cn(Te,st-1).stateAfter,Bt=Ct?mn.fromSaved(Te,Ct,st):new mn(Te,Vt(Te.mode),st);return Te.iter(st,de,function(kt){Sn(ie,kt.text,Bt);var Jt=Bt.line;kt.stateAfter=Jt==de-1||Jt%5==0||Jt>=Re.viewFrom&&Jt<Re.viewTo?Bt.save():null,Bt.nextLine()}),ke&&(Te.modeFrontier=Bt.line),Bt}function Sn(ie,de,ke,Te){var Re=ie.doc.mode,st=new Dt(de,ie.options.tabSize,ke);for(st.start=st.pos=Te||0,de==""&&Yn(Re,ke.state);!st.eol();)dr(Re,st,ke.state),st.start=st.pos}function Yn(ie,de){if(ie.blankLine)return ie.blankLine(de);if(ie.innerMode){var ke=pn(ie,de);if(ke.mode.blankLine)return ke.mode.blankLine(ke.state)}}function dr(ie,de,ke,Te){for(var Re=0;Re<10;Re++){Te&&(Te[0]=pn(ie,ke).mode);var st=ie.token(de,ke);if(de.pos>de.start)return st}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Fr=function(ie,de,ke){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=de||null,this.state=ke};function fr(ie,de,ke,Te){var Re=ie.doc,st=Re.mode,Ct;de=Tn(Re,de);var Bt=cn(Re,de.line),kt=Br(ie,de.line,ke),Jt=new Dt(Bt.text,ie.options.tabSize,kt),Pn;for(Te&&(Pn=[]);(Te||Jt.pos<de.ch)&&!Jt.eol();)Jt.start=Jt.pos,Ct=dr(st,Jt,kt.state),Te&&Pn.push(new Fr(Jt,Ct,ln(Re.mode,kt.state)));return Te?Pn:new Fr(Jt,Ct,kt.state)}function Ir(ie,de){if(ie)for(;;){var ke=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ke)break;ie=ie.slice(0,ke.index)+ie.slice(ke.index+ke[0].length);var Te=ke[1]?"bgClass":"textClass";de[Te]==null?de[Te]=ke[2]:new RegExp("(?:^|\\s)"+ke[2]+"(?:$|\\s)").test(de[Te])||(de[Te]+=" "+ke[2])}return ie}function Zr(ie,de,ke,Te,Re,st,Ct){var Bt=ke.flattenSpans;Bt==null&&(Bt=ie.options.flattenSpans);var kt=0,Jt=null,Pn=new Dt(de,ie.options.tabSize,Te),qt,Vn=ie.options.addModeClass&&[null];for(de==""&&Ir(Yn(ke,Te.state),st);!Pn.eol();){if(Pn.pos>ie.options.maxHighlightLength?(Bt=!1,Ct&&Sn(ie,de,Te,Pn.pos),Pn.pos=de.length,qt=null):qt=Ir(dr(ke,Pn,Te.state,Vn),st),Vn){var zn=Vn[0].name;zn&&(qt="m-"+(qt?zn+" "+qt:zn))}if(!Bt||Jt!=qt){for(;kt<Pn.start;)kt=Math.min(Pn.start,kt+5e3),Re(kt,Jt);Jt=qt}Pn.start=Pn.pos}for(;kt<Pn.pos;){var yr=Math.min(Pn.pos,kt+5e3);Re(yr,Jt),kt=yr}}function zr(ie,de,ke){for(var Te,Re,st=ie.doc,Ct=ke?-1:de-(ie.doc.mode.innerMode?1e3:100),Bt=de;Bt>Ct;--Bt){if(Bt<=st.first)return st.first;var kt=cn(st,Bt-1),Jt=kt.stateAfter;if(Jt&&(!ke||Bt+(Jt instanceof mr?Jt.lookAhead:0)<=st.modeFrontier))return Bt;var Pn=qe(kt.text,null,ie.options.tabSize);(Re==null||Te>Pn)&&(Re=Bt-1,Te=Pn)}return Re}function Er(ie,de){if(ie.modeFrontier=Math.min(ie.modeFrontier,de),!(ie.highlightFrontier<de-10)){for(var ke=ie.first,Te=de-1;Te>ke;Te--){var Re=cn(ie,Te).stateAfter;if(Re&&(!(Re instanceof mr)||Te+Re.lookAhead<de)){ke=Te+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ke)}}var Vr=!1,Fn=!1;function Mi(){Vr=!0}function On(){Fn=!0}function pi(ie,de,ke){this.marker=ie,this.from=de,this.to=ke}function Ni(ie,de){if(ie)for(var ke=0;ke<ie.length;++ke){var Te=ie[ke];if(Te.marker==de)return Te}}function Qr(ie,de){for(var ke,Te=0;Te<ie.length;++Te)ie[Te]!=de&&(ke||(ke=[])).push(ie[Te]);return ke}function Xi(ie,de){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([de]):[de],de.marker.attachLine(ie)}function Ti(ie,de,ke){var Te;if(ie)for(var Re=0;Re<ie.length;++Re){var st=ie[Re],Ct=st.marker,Bt=st.from==null||(Ct.inclusiveLeft?st.from<=de:st.from<de);if(Bt||st.from==de&&Ct.type=="bookmark"&&(!ke||!st.marker.insertLeft)){var kt=st.to==null||(Ct.inclusiveRight?st.to>=de:st.to>de);(Te||(Te=[])).push(new pi(Ct,st.from,kt?null:st.to))}}return Te}function Rr(ie,de,ke){var Te;if(ie)for(var Re=0;Re<ie.length;++Re){var st=ie[Re],Ct=st.marker,Bt=st.to==null||(Ct.inclusiveRight?st.to>=de:st.to>de);if(Bt||st.from==de&&Ct.type=="bookmark"&&(!ke||st.marker.insertLeft)){var kt=st.from==null||(Ct.inclusiveLeft?st.from<=de:st.from<de);(Te||(Te=[])).push(new pi(Ct,kt?null:st.from-de,st.to==null?null:st.to-de))}}return Te}function Wr(ie,de){if(de.full)return null;var ke=Kn(ie,de.from.line)&&cn(ie,de.from.line).markedSpans,Te=Kn(ie,de.to.line)&&cn(ie,de.to.line).markedSpans;if(!ke&&!Te)return null;var Re=de.from.ch,st=de.to.ch,Ct=bn(de.from,de.to)==0,Bt=Ti(ke,Re,Ct),kt=Rr(Te,st,Ct),Jt=de.text.length==1,Pn=wt(de.text).length+(Jt?Re:0);if(Bt)for(var qt=0;qt<Bt.length;++qt){var Vn=Bt[qt];if(Vn.to==null){var zn=Ni(kt,Vn.marker);zn?Jt&&(Vn.to=zn.to==null?null:zn.to+Pn):Vn.to=Re}}if(kt)for(var yr=0;yr<kt.length;++yr){var Lr=kt[yr];if(Lr.to!=null&&(Lr.to+=Pn),Lr.from==null){var Hr=Ni(Bt,Lr.marker);Hr||(Lr.from=Pn,Jt&&(Bt||(Bt=[])).push(Lr))}else Lr.from+=Pn,Jt&&(Bt||(Bt=[])).push(Lr)}Bt&&(Bt=bi(Bt)),kt&&kt!=Bt&&(kt=bi(kt));var oi=[Bt];if(!Jt){var Fi=de.text.length-2,xi;if(Fi>0&&Bt)for(var Wi=0;Wi<Bt.length;++Wi)Bt[Wi].to==null&&(xi||(xi=[])).push(new pi(Bt[Wi].marker,null,null));for(var So=0;So<Fi;++So)oi.push(xi);oi.push(kt)}return oi}function bi(ie){for(var de=0;de<ie.length;++de){var ke=ie[de];ke.from!=null&&ke.from==ke.to&&ke.marker.clearWhenEmpty!==!1&&ie.splice(de--,1)}return ie.length?ie:null}function Di(ie,de,ke){var Te=null;if(ie.iter(de.line,ke.line+1,function(zn){if(zn.markedSpans)for(var yr=0;yr<zn.markedSpans.length;++yr){var Lr=zn.markedSpans[yr].marker;Lr.readOnly&&(!Te||dt(Te,Lr)==-1)&&(Te||(Te=[])).push(Lr)}}),!Te)return null;for(var Re=[{from:de,to:ke}],st=0;st<Te.length;++st)for(var Ct=Te[st],Bt=Ct.find(0),kt=0;kt<Re.length;++kt){var Jt=Re[kt];if(!(bn(Jt.to,Bt.from)<0||bn(Jt.from,Bt.to)>0)){var Pn=[kt,1],qt=bn(Jt.from,Bt.from),Vn=bn(Jt.to,Bt.to);(qt<0||!Ct.inclusiveLeft&&!qt)&&Pn.push({from:Jt.from,to:Bt.from}),(Vn>0||!Ct.inclusiveRight&&!Vn)&&Pn.push({from:Bt.to,to:Jt.to}),Re.splice.apply(Re,Pn),kt+=Pn.length-3}}return Re}function pr(ie){var de=ie.markedSpans;if(de){for(var ke=0;ke<de.length;++ke)de[ke].marker.detachLine(ie);ie.markedSpans=null}}function Lt(ie,de){if(de){for(var ke=0;ke<de.length;++ke)de[ke].marker.attachLine(ie);ie.markedSpans=de}}function Li(ie){return ie.inclusiveLeft?-1:0}function so(ie){return ie.inclusiveRight?1:0}function Pi(ie,de){var ke=ie.lines.length-de.lines.length;if(ke!=0)return ke;var Te=ie.find(),Re=de.find(),st=bn(Te.from,Re.from)||Li(ie)-Li(de);if(st)return-st;var Ct=bn(Te.to,Re.to)||so(ie)-so(de);return Ct||de.id-ie.id}function wo(ie,de){var ke=Fn&&ie.markedSpans,Te;if(ke)for(var Re=void 0,st=0;st<ke.length;++st)Re=ke[st],Re.marker.collapsed&&(de?Re.from:Re.to)==null&&(!Te||Pi(Te,Re.marker)<0)&&(Te=Re.marker);return Te}function po(ie){return wo(ie,!0)}function Eo(ie){return wo(ie,!1)}function yi(ie,de){var ke=Fn&&ie.markedSpans,Te;if(ke)for(var Re=0;Re<ke.length;++Re){var st=ke[Re];st.marker.collapsed&&(st.from==null||st.from<de)&&(st.to==null||st.to>de)&&(!Te||Pi(Te,st.marker)<0)&&(Te=st.marker)}return Te}function si(ie,de,ke,Te,Re){var st=cn(ie,de),Ct=Fn&&st.markedSpans;if(Ct)for(var Bt=0;Bt<Ct.length;++Bt){var kt=Ct[Bt];if(kt.marker.collapsed){var Jt=kt.marker.find(0),Pn=bn(Jt.from,ke)||Li(kt.marker)-Li(Re),qt=bn(Jt.to,Te)||so(kt.marker)-so(Re);if(!(Pn>=0&&qt<=0||Pn<=0&&qt>=0)&&(Pn<=0&&(kt.marker.inclusiveRight&&Re.inclusiveLeft?bn(Jt.to,ke)>=0:bn(Jt.to,ke)>0)||Pn>=0&&(kt.marker.inclusiveRight&&Re.inclusiveLeft?bn(Jt.from,Te)<=0:bn(Jt.from,Te)<0)))return!0}}}function ei(ie){for(var de;de=po(ie);)ie=de.find(-1,!0).line;return ie}function Ji(ie){for(var de;de=Eo(ie);)ie=de.find(1,!0).line;return ie}function no(ie){for(var de,ke;de=Eo(ie);)ie=de.find(1,!0).line,(ke||(ke=[])).push(ie);return ke}function Yr(ie,de){var ke=cn(ie,de),Te=ei(ke);return ke==Te?de:Ht(Te)}function Kr(ie,de){if(de>ie.lastLine())return de;var ke=cn(ie,de),Te;if(!qn(ie,ke))return de;for(;Te=Eo(ke);)ke=Te.find(1,!0).line;return Ht(ke)+1}function qn(ie,de){var ke=Fn&&de.markedSpans;if(ke){for(var Te=void 0,Re=0;Re<ke.length;++Re)if(Te=ke[Re],!!Te.marker.collapsed){if(Te.from==null)return!0;if(!Te.marker.widgetNode&&Te.from==0&&Te.marker.inclusiveLeft&&ci(ie,de,Te))return!0}}}function ci(ie,de,ke){if(ke.to==null){var Te=ke.marker.find(1,!0);return ci(ie,Te.line,Ni(Te.line.markedSpans,ke.marker))}if(ke.marker.inclusiveRight&&ke.to==de.text.length)return!0;for(var Re=void 0,st=0;st<de.markedSpans.length;++st)if(Re=de.markedSpans[st],Re.marker.collapsed&&!Re.marker.widgetNode&&Re.from==ke.to&&(Re.to==null||Re.to!=ke.from)&&(Re.marker.inclusiveLeft||ke.marker.inclusiveRight)&&ci(ie,de,Re))return!0}function ro(ie){ie=ei(ie);for(var de=0,ke=ie.parent,Te=0;Te<ke.lines.length;++Te){var Re=ke.lines[Te];if(Re==ie)break;de+=Re.height}for(var st=ke.parent;st;ke=st,st=ke.parent)for(var Ct=0;Ct<st.children.length;++Ct){var Bt=st.children[Ct];if(Bt==ke)break;de+=Bt.height}return de}function Do(ie){if(ie.height==0)return 0;for(var de=ie.text.length,ke,Te=ie;ke=po(Te);){var Re=ke.find(0,!0);Te=Re.from.line,de+=Re.from.ch-Re.to.ch}for(Te=ie;ke=Eo(Te);){var st=ke.find(0,!0);de-=Te.text.length-st.from.ch,Te=st.to.line,de+=Te.text.length-st.to.ch}return de}function lo(ie){var de=ie.display,ke=ie.doc;de.maxLine=cn(ke,ke.first),de.maxLineLength=Do(de.maxLine),de.maxLineChanged=!0,ke.iter(function(Te){var Re=Do(Te);Re>de.maxLineLength&&(de.maxLineLength=Re,de.maxLine=Te)})}var Qi=function(ie,de,ke){this.text=ie,Lt(this,de),this.height=ke?ke(this):1};Qi.prototype.lineNo=function(){return Ht(this)},Cn(Qi);function Oo(ie,de,ke,Te){ie.text=de,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),pr(ie),Lt(ie,ke);var Re=Te?Te(ie):1;Re!=ie.height&&Zn(ie,Re)}function ko(ie){ie.parent=null,pr(ie)}var oa={},la={};function Ma(ie,de){if(!ie||/^\s*$/.test(ie))return null;var ke=de.addModeClass?la:oa;return ke[ie]||(ke[ie]=ie.replace(/\S+/g,"cm-$&"))}function Mn(ie,de){var ke=je("span",null,null,ce?"padding-right: .1px":null),Te={pre:je("pre",[ke],"CodeMirror-line"),content:ke,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};de.measure={};for(var Re=0;Re<=(de.rest?de.rest.length:0);Re++){var st=Re?de.rest[Re-1]:de.line,Ct=void 0;Te.pos=0,Te.addToken=fu,fi(ie.display.measure)&&(Ct=Kt(st,ie.doc.direction))&&(Te.addToken=bo(Te.addToken,Ct)),Te.map=[];var Bt=de!=ie.display.externalMeasured&&Ht(st);da(st,Te,Ur(ie,st,Bt)),st.styleClasses&&(st.styleClasses.bgClass&&(Te.bgClass=et(st.styleClasses.bgClass,Te.bgClass||"")),st.styleClasses.textClass&&(Te.textClass=et(st.styleClasses.textClass,Te.textClass||""))),Te.map.length==0&&Te.map.push(0,0,Te.content.appendChild(ai(ie.display.measure))),Re==0?(de.measure.map=Te.map,de.measure.cache={}):((de.measure.maps||(de.measure.maps=[])).push(Te.map),(de.measure.caches||(de.measure.caches=[])).push({}))}if(ce){var kt=Te.content.lastChild;(/\bcm-tab\b/.test(kt.className)||kt.querySelector&&kt.querySelector(".cm-tab"))&&(Te.content.className="cm-tab-wrap-hack")}return Ft(ie,"renderLine",ie,de.line,Te.pre),Te.pre.className&&(Te.textClass=et(Te.pre.className,Te.textClass||"")),Te}function ha(ie){var de=Oe("span","\u2022","cm-invalidchar");return de.title="\\u"+ie.charCodeAt(0).toString(16),de.setAttribute("aria-label",de.title),de}function fu(ie,de,ke,Te,Re,st,Ct){if(de){var Bt=ie.splitSpaces?xs(de,ie.trailingSpace):de,kt=ie.cm.state.specialChars,Jt=!1,Pn;if(!kt.test(de))ie.col+=de.length,Pn=document.createTextNode(Bt),ie.map.push(ie.pos,ie.pos+de.length,Pn),Ne&&ge<9&&(Jt=!0),ie.pos+=de.length;else{Pn=document.createDocumentFragment();for(var qt=0;;){kt.lastIndex=qt;var Vn=kt.exec(de),zn=Vn?Vn.index-qt:de.length-qt;if(zn){var yr=document.createTextNode(Bt.slice(qt,qt+zn));Ne&&ge<9?Pn.appendChild(Oe("span",[yr])):Pn.appendChild(yr),ie.map.push(ie.pos,ie.pos+zn,yr),ie.col+=zn,ie.pos+=zn}if(!Vn)break;qt+=zn+1;var Lr=void 0;if(Vn[0]==" "){var Hr=ie.cm.options.tabSize,oi=Hr-ie.col%Hr;Lr=Pn.appendChild(Oe("span",Zt(oi),"cm-tab")),Lr.setAttribute("role","presentation"),Lr.setAttribute("cm-text"," "),ie.col+=oi}else Vn[0]=="\r"||Vn[0]==`
|
|
|
`?(Lr=Pn.appendChild(Oe("span",Vn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Lr.setAttribute("cm-text",Vn[0]),ie.col+=1):(Lr=ie.cm.options.specialCharPlaceholder(Vn[0]),Lr.setAttribute("cm-text",Vn[0]),Ne&&ge<9?Pn.appendChild(Oe("span",[Lr])):Pn.appendChild(Lr),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Lr),ie.pos++}}if(ie.trailingSpace=Bt.charCodeAt(de.length-1)==32,ke||Te||Re||Jt||st||Ct){var Fi=ke||"";Te&&(Fi+=Te),Re&&(Fi+=Re);var xi=Oe("span",[Pn],Fi,st);if(Ct)for(var Wi in Ct)Ct.hasOwnProperty(Wi)&&Wi!="style"&&Wi!="class"&&xi.setAttribute(Wi,Ct[Wi]);return ie.content.appendChild(xi)}ie.content.appendChild(Pn)}}function xs(ie,de){if(ie.length>1&&!/ /.test(ie))return ie;for(var ke=de,Te="",Re=0;Re<ie.length;Re++){var st=ie.charAt(Re);st==" "&&ke&&(Re==ie.length-1||ie.charCodeAt(Re+1)==32)&&(st="\xA0"),Te+=st,ke=st==" "}return Te}function bo(ie,de){return function(ke,Te,Re,st,Ct,Bt,kt){Re=Re?Re+" cm-force-border":"cm-force-border";for(var Jt=ke.pos,Pn=Jt+Te.length;;){for(var qt=void 0,Vn=0;Vn<de.length&&(qt=de[Vn],!(qt.to>Jt&&qt.from<=Jt));Vn++);if(qt.to>=Pn)return ie(ke,Te,Re,st,Ct,Bt,kt);ie(ke,Te.slice(0,qt.to-Jt),Re,st,null,Bt,kt),st=null,Te=Te.slice(qt.to-Jt),Jt=qt.to}}}function io(ie,de,ke,Te){var Re=!Te&&ke.widgetNode;Re&&ie.map.push(ie.pos,ie.pos+de,Re),!Te&&ie.cm.display.input.needsContentAttribute&&(Re||(Re=ie.content.appendChild(document.createElement("span"))),Re.setAttribute("cm-marker",ke.id)),Re&&(ie.cm.display.input.setUneditable(Re),ie.content.appendChild(Re)),ie.pos+=de,ie.trailingSpace=!1}function da(ie,de,ke){var Te=ie.markedSpans,Re=ie.text,st=0;if(!Te){for(var Ct=1;Ct<ke.length;Ct+=2)de.addToken(de,Re.slice(st,st=ke[Ct]),Ma(ke[Ct+1],de.cm.options));return}for(var Bt=Re.length,kt=0,Jt=1,Pn="",qt,Vn,zn=0,yr,Lr,Hr,oi,Fi;;){if(zn==kt){yr=Lr=Hr=Vn="",Fi=null,oi=null,zn=1/0;for(var xi=[],Wi=void 0,So=0;So<Te.length;++So){var vi=Te[So],Bo=vi.marker;if(Bo.type=="bookmark"&&vi.from==kt&&Bo.widgetNode)xi.push(Bo);else if(vi.from<=kt&&(vi.to==null||vi.to>kt||Bo.collapsed&&vi.to==kt&&vi.from==kt)){if(vi.to!=null&&vi.to!=kt&&zn>vi.to&&(zn=vi.to,Lr=""),Bo.className&&(yr+=" "+Bo.className),Bo.css&&(Vn=(Vn?Vn+";":"")+Bo.css),Bo.startStyle&&vi.from==kt&&(Hr+=" "+Bo.startStyle),Bo.endStyle&&vi.to==zn&&(Wi||(Wi=[])).push(Bo.endStyle,vi.to),Bo.title&&((Fi||(Fi={})).title=Bo.title),Bo.attributes)for(var $a in Bo.attributes)(Fi||(Fi={}))[$a]=Bo.attributes[$a];Bo.collapsed&&(!oi||Pi(oi.marker,Bo)<0)&&(oi=vi)}else vi.from>kt&&zn>vi.from&&(zn=vi.from)}if(Wi)for(var Is=0;Is<Wi.length;Is+=2)Wi[Is+1]==zn&&(Lr+=" "+Wi[Is]);if(!oi||oi.from==kt)for(var os=0;os<xi.length;++os)io(de,0,xi[os]);if(oi&&(oi.from||0)==kt){if(io(de,(oi.to==null?Bt+1:oi.to)-kt,oi.marker,oi.from==null),oi.to==null)return;oi.to==kt&&(oi=!1)}}if(kt>=Bt)break;for(var Vl=Math.min(Bt,zn);;){if(Pn){var vl=kt+Pn.length;if(!oi){var Fs=vl>Vl?Pn.slice(0,Vl-kt):Pn;de.addToken(de,Fs,qt?qt+yr:yr,Hr,kt+Fs.length==zn?Lr:"",Vn,Fi)}if(vl>=Vl){Pn=Pn.slice(Vl-kt),kt=Vl;break}kt=vl,Hr=""}Pn=Re.slice(st,st=ke[Jt++]),qt=Ma(ke[Jt++],de.cm.options)}}}function Ao(ie,de,ke){this.line=de,this.rest=no(de),this.size=this.rest?Ht(wt(this.rest))-ke+1:1,this.node=this.text=null,this.hidden=qn(ie,de)}function $i(ie,de,ke){for(var Te=[],Re,st=de;st<ke;st=Re){var Ct=new Ao(ie.doc,cn(ie.doc,st),st);Re=st+Ct.size,Te.push(Ct)}return Te}var Io=null;function ws(ie){Io?Io.ops.push(ie):ie.ownsGroup=Io={ops:[ie],delayedCallbacks:[]}}function Ci(ie){var de=ie.delayedCallbacks,ke=0;do{for(;ke<de.length;ke++)de[ke].call(null);for(var Te=0;Te<ie.ops.length;Te++){var Re=ie.ops[Te];if(Re.cursorActivityHandlers)for(;Re.cursorActivityCalled<Re.cursorActivityHandlers.length;)Re.cursorActivityHandlers[Re.cursorActivityCalled++].call(null,Re.cm)}}while(ke<de.length)}function co(ie,de){var ke=ie.ownsGroup;if(ke)try{Ci(ke)}finally{Io=null,de(ke)}}var ao=null;function kr(ie,de){var ke=Xt(ie,de);if(ke.length){var Te=Array.prototype.slice.call(arguments,2),Re;Io?Re=Io.delayedCallbacks:ao?Re=ao:(Re=ao=[],setTimeout(za,0));for(var st=function(Bt){Re.push(function(){return ke[Bt].apply(null,Te)})},Ct=0;Ct<ke.length;++Ct)st(Ct)}}function za(){var ie=ao;ao=null;for(var de=0;de<ie.length;++de)ie[de]()}function Wa(ie,de,ke,Te){for(var Re=0;Re<de.changes.length;Re++){var st=de.changes[Re];st=="text"?wr(ie,de):st=="gutter"?Xa(ie,de,ke,Te):st=="class"?ua(ie,de):st=="widget"&&Cl(ie,de,Te)}de.changes=null}function Es(ie){return ie.node==ie.text&&(ie.node=Oe("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Ne&&ge<8&&(ie.node.style.zIndex=2)),ie.node}function Nl(ie,de){var ke=de.bgClass?de.bgClass+" "+(de.line.bgClass||""):de.line.bgClass;if(ke&&(ke+=" CodeMirror-linebackground"),de.background)ke?de.background.className=ke:(de.background.parentNode.removeChild(de.background),de.background=null);else if(ke){var Te=Es(de);de.background=Te.insertBefore(Oe("div",null,ke),Te.firstChild),ie.display.input.setUneditable(de.background)}}function $l(ie,de){var ke=ie.display.externalMeasured;return ke&&ke.line==de.line?(ie.display.externalMeasured=null,de.measure=ke.measure,ke.built):Mn(ie,de)}function wr(ie,de){var ke=de.text.className,Te=$l(ie,de);de.text==de.node&&(de.node=Te.pre),de.text.parentNode.replaceChild(Te.pre,de.text),de.text=Te.pre,Te.bgClass!=de.bgClass||Te.textClass!=de.textClass?(de.bgClass=Te.bgClass,de.textClass=Te.textClass,ua(ie,de)):ke&&(de.text.className=ke)}function ua(ie,de){Nl(ie,de),de.line.wrapClass?Es(de).className=de.line.wrapClass:de.node!=de.text&&(de.node.className="");var ke=de.textClass?de.textClass+" "+(de.line.textClass||""):de.line.textClass;de.text.className=ke||""}function Xa(ie,de,ke,Te){if(de.gutter&&(de.node.removeChild(de.gutter),de.gutter=null),de.gutterBackground&&(de.node.removeChild(de.gutterBackground),de.gutterBackground=null),de.line.gutterClass){var Re=Es(de);de.gutterBackground=Oe("div",null,"CodeMirror-gutter-background "+de.line.gutterClass,"left: "+(ie.options.fixedGutter?Te.fixedPos:-Te.gutterTotalWidth)+"px; width: "+Te.gutterTotalWidth+"px"),ie.display.input.setUneditable(de.gutterBackground),Re.insertBefore(de.gutterBackground,de.text)}var st=de.line.gutterMarkers;if(ie.options.lineNumbers||st){var Ct=Es(de),Bt=de.gutter=Oe("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?Te.fixedPos:-Te.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(Bt),Ct.insertBefore(Bt,de.text),de.line.gutterClass&&(Bt.className+=" "+de.line.gutterClass),ie.options.lineNumbers&&(!st||!st["CodeMirror-linenumbers"])&&(de.lineNumber=Bt.appendChild(Oe("div",nr(ie.options,ke),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+Te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),st)for(var kt=0;kt<ie.display.gutterSpecs.length;++kt){var Jt=ie.display.gutterSpecs[kt].className,Pn=st.hasOwnProperty(Jt)&&st[Jt];Pn&&Bt.appendChild(Oe("div",[Pn],"CodeMirror-gutter-elt","left: "+Te.gutterLeft[Jt]+"px; width: "+Te.gutterWidth[Jt]+"px"))}}}function Cl(ie,de,ke){de.alignable&&(de.alignable=null);for(var Te=be("CodeMirror-linewidget"),Re=de.node.firstChild,st=void 0;Re;Re=st)st=Re.nextSibling,Te.test(Re.className)&&de.node.removeChild(Re);Il(ie,de,ke)}function Bl(ie,de,ke,Te){var Re=$l(ie,de);return de.text=de.node=Re.pre,Re.bgClass&&(de.bgClass=Re.bgClass),Re.textClass&&(de.textClass=Re.textClass),ua(ie,de),Xa(ie,de,ke,Te),Il(ie,de,Te),de.node}function Il(ie,de,ke){if(Ri(ie,de.line,de,ke,!0),de.rest)for(var Te=0;Te<de.rest.length;Te++)Ri(ie,de.rest[Te],de,ke,!1)}function Ri(ie,de,ke,Te,Re){if(de.widgets)for(var st=Es(ke),Ct=0,Bt=de.widgets;Ct<Bt.length;++Ct){var kt=Bt[Ct],Jt=Oe("div",[kt.node],"CodeMirror-linewidget"+(kt.className?" "+kt.className:""));kt.handleMouseEvents||Jt.setAttribute("cm-ignore-events","true"),mc(kt,Jt,ke,Te),ie.display.input.setUneditable(Jt),Re&&kt.above?st.insertBefore(Jt,ke.gutter||ke.text):st.appendChild(Jt),kr(kt,"redraw")}}function mc(ie,de,ke,Te){if(ie.noHScroll){(ke.alignable||(ke.alignable=[])).push(de);var Re=Te.wrapperWidth;de.style.left=Te.fixedPos+"px",ie.coverGutter||(Re-=Te.gutterTotalWidth,de.style.paddingLeft=Te.gutterTotalWidth+"px"),de.style.width=Re+"px"}ie.coverGutter&&(de.style.zIndex=5,de.style.position="relative",ie.noHScroll||(de.style.marginLeft=-Te.gutterTotalWidth+"px"))}function tl(ie){if(ie.height!=null)return ie.height;var de=ie.doc.cm;if(!de)return 0;if(!_e(document.body,ie.node)){var ke="position: relative;";ie.coverGutter&&(ke+="margin-left: -"+de.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ke+="width: "+de.display.wrapper.clientWidth+"px;"),Fe(de.display.measure,Oe("div",[ie.node],null,ke))}return ie.height=ie.node.parentNode.offsetHeight}function nl(ie,de){for(var ke=Ar(de);ke!=ie.wrapper;ke=ke.parentNode)if(!ke||ke.nodeType==1&&ke.getAttribute("cm-ignore-events")=="true"||ke.parentNode==ie.sizer&&ke!=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=Fe(ie.measure,Oe("pre","x","CodeMirror-line-like")),ke=window.getComputedStyle?window.getComputedStyle(de):de.currentStyle,Te={left:parseInt(ke.paddingLeft),right:parseInt(ke.paddingRight)};return!isNaN(Te.left)&&!isNaN(Te.right)&&(ie.cachedPaddingH=Te),Te}function Ws(ie){return St-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,ke){var Te=ie.options.lineWrapping,Re=Te&&dl(ie);if(!de.measure.heights||Te&&de.measure.width!=Re){var st=de.measure.heights=[];if(Te){de.measure.width=Re;for(var Ct=de.text.firstChild.getClientRects(),Bt=0;Bt<Ct.length-1;Bt++){var kt=Ct[Bt],Jt=Ct[Bt+1];Math.abs(kt.bottom-Jt.bottom)>2&&st.push((kt.bottom+Jt.top)/2-ke.top)}}st.push(ke.bottom-ke.top)}}function Uc(ie,de,ke){if(ie.line==de)return{map:ie.measure.map,cache:ie.measure.cache};for(var Te=0;Te<ie.rest.length;Te++)if(ie.rest[Te]==de)return{map:ie.measure.maps[Te],cache:ie.measure.caches[Te]};for(var Re=0;Re<ie.rest.length;Re++)if(Ht(ie.rest[Re])>ke)return{map:ie.measure.maps[Re],cache:ie.measure.caches[Re],before:!0}}function Gh(ie,de){de=ei(de);var ke=Ht(de),Te=ie.display.externalMeasured=new Ao(ie.doc,de,ke);Te.lineN=ke;var Re=Te.built=Mn(ie,Te);return Te.text=Re.pre,Fe(ie.display.lineMeasure,Re.pre),Te}function Gc(ie,de,ke,Te){return jl(ie,zu(ie,de),ke,Te)}function vc(ie,de){if(de>=ie.display.viewFrom&&de<ie.display.viewTo)return ie.display.view[Hs(ie,de)];var ke=ie.display.externalMeasured;if(ke&&de>=ke.lineN&&de<ke.lineN+ke.size)return ke}function zu(ie,de){var ke=Ht(de),Te=vc(ie,ke);Te&&!Te.text?Te=null:Te&&Te.changes&&(Wa(ie,Te,ke,Pd(ie)),ie.curOp.forceUpdate=!0),Te||(Te=Gh(ie,de));var Re=Uc(Te,de,ke);return{line:de,view:Te,rect:null,map:Re.map,cache:Re.cache,before:Re.before,hasHeights:!1}}function jl(ie,de,ke,Te,Re){de.before&&(ke=-1);var st=ke+(Te||""),Ct;return de.cache.hasOwnProperty(st)?Ct=de.cache[st]:(de.rect||(de.rect=de.view.text.getBoundingClientRect()),de.hasHeights||(hh(ie,de.view,de.rect),de.hasHeights=!0),Ct=oo(ie,de,ke,Te),Ct.bogus||(de.cache[st]=Ct)),{left:Ct.left,right:Ct.right,top:Re?Ct.rtop:Ct.top,bottom:Re?Ct.rbottom:Ct.bottom}}var dh={left:0,right:0,top:0,bottom:0};function Zc(ie,de,ke){for(var Te,Re,st,Ct,Bt,kt,Jt=0;Jt<ie.length;Jt+=3)if(Bt=ie[Jt],kt=ie[Jt+1],de<Bt?(Re=0,st=1,Ct="left"):de<kt?(Re=de-Bt,st=Re+1):(Jt==ie.length-3||de==kt&&ie[Jt+3]>de)&&(st=kt-Bt,Re=st-1,de>=kt&&(Ct="right")),Re!=null){if(Te=ie[Jt+2],Bt==kt&&ke==(Te.insertLeft?"left":"right")&&(Ct=ke),ke=="left"&&Re==0)for(;Jt&&ie[Jt-2]==ie[Jt-3]&&ie[Jt-1].insertLeft;)Te=ie[(Jt-=3)+2],Ct="left";if(ke=="right"&&Re==kt-Bt)for(;Jt<ie.length-3&&ie[Jt+3]==ie[Jt+4]&&!ie[Jt+5].insertLeft;)Te=ie[(Jt+=3)+2],Ct="right";break}return{node:Te,start:Re,end:st,collapse:Ct,coverStart:Bt,coverEnd:kt}}function yc(ie,de){var ke=dh;if(de=="left")for(var Te=0;Te<ie.length&&(ke=ie[Te]).left==ke.right;Te++);else for(var Re=ie.length-1;Re>=0&&(ke=ie[Re]).left==ke.right;Re--);return ke}function oo(ie,de,ke,Te){var Re=Zc(de.map,ke,Te),st=Re.node,Ct=Re.start,Bt=Re.end,kt=Re.collapse,Jt;if(st.nodeType==3){for(var Pn=0;Pn<4;Pn++){for(;Ct&&Ke(de.line.text.charAt(Re.coverStart+Ct));)--Ct;for(;Re.coverStart+Bt<Re.coverEnd&&Ke(de.line.text.charAt(Re.coverStart+Bt));)++Bt;if(Ne&&ge<9&&Ct==0&&Bt==Re.coverEnd-Re.coverStart?Jt=st.parentNode.getBoundingClientRect():Jt=yc(ze(st,Ct,Bt).getClientRects(),Te),Jt.left||Jt.right||Ct==0)break;Bt=Ct,Ct=Ct-1,kt="right"}Ne&&ge<11&&(Jt=zo(ie.display.measure,Jt))}else{Ct>0&&(kt=Te="right");var qt;ie.options.lineWrapping&&(qt=st.getClientRects()).length>1?Jt=qt[Te=="right"?qt.length-1:0]:Jt=st.getBoundingClientRect()}if(Ne&&ge<9&&!Ct&&(!Jt||!Jt.left&&!Jt.right)){var Vn=st.parentNode.getClientRects()[0];Vn?Jt={left:Vn.left,right:Vn.left+ic(ie.display),top:Vn.top,bottom:Vn.bottom}:Jt=dh}for(var zn=Jt.top-de.rect.top,yr=Jt.bottom-de.rect.top,Lr=(zn+yr)/2,Hr=de.view.measure.heights,oi=0;oi<Hr.length-1&&!(Lr<Hr[oi]);oi++);var Fi=oi?Hr[oi-1]:0,xi=Hr[oi],Wi={left:(kt=="right"?Jt.right:Jt.left)-de.rect.left,right:(kt=="left"?Jt.left:Jt.right)-de.rect.left,top:Fi,bottom:xi};return!Jt.left&&!Jt.right&&(Wi.bogus=!0),ie.options.singleCursorHeightPerLine||(Wi.rtop=zn,Wi.rbottom=yr),Wi}function zo(ie,de){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Dn(ie))return de;var ke=screen.logicalXDPI/screen.deviceXDPI,Te=screen.logicalYDPI/screen.deviceYDPI;return{left:de.left*ke,right:de.right*ke,top:de.top*Te,bottom:de.bottom*Te}}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,Le(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 Ae&&z?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function La(){return Ae&&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 ke=0;ke<ie.widgets.length;++ke)ie.widgets[ke].above&&(de+=tl(ie.widgets[ke]));return de}function Ua(ie,de,ke,Te,Re){if(!Re){var st=Ya(de);ke.top+=st,ke.bottom+=st}if(Te=="line")return ke;Te||(Te="local");var Ct=ro(de);if(Te=="local"?Ct+=ks(ie.display):Ct-=ie.display.viewOffset,Te=="page"||Te=="window"){var Bt=ie.display.lineSpace.getBoundingClientRect();Ct+=Bt.top+(Te=="window"?0:La());var kt=Bt.left+(Te=="window"?0:ga());ke.left+=kt,ke.right+=kt}return ke.top+=Ct,ke.bottom+=Ct,ke}function Wu(ie,de,ke){if(ke=="div")return de;var Te=de.left,Re=de.top;if(ke=="page")Te-=ga(),Re-=La();else if(ke=="local"||!ke){var st=ie.display.sizer.getBoundingClientRect();Te+=st.left,Re+=st.top}var Ct=ie.display.lineSpace.getBoundingClientRect();return{left:Te-Ct.left,top:Re-Ct.top}}function Rl(ie,de,ke,Te,Re){return Te||(Te=cn(ie.doc,de.line)),Ua(ie,Te,Gc(ie,Te,de.ch,Re),ke)}function Da(ie,de,ke,Te,Re,st){Te=Te||cn(ie.doc,de.line),Re||(Re=zu(ie,Te));function Ct(yr,Lr){var Hr=jl(ie,Re,yr,Lr?"right":"left",st);return Lr?Hr.left=Hr.right:Hr.right=Hr.left,Ua(ie,Te,Hr,ke)}var Bt=Kt(Te,ie.doc.direction),kt=de.ch,Jt=de.sticky;if(kt>=Te.text.length?(kt=Te.text.length,Jt="before"):kt<=0&&(kt=0,Jt="after"),!Bt)return Ct(Jt=="before"?kt-1:kt,Jt=="before");function Pn(yr,Lr,Hr){var oi=Bt[Lr],Fi=oi.level==1;return Ct(Hr?yr-1:yr,Fi!=Hr)}var qt=pt(Bt,kt,Jt),Vn=At,zn=Pn(kt,qt,Jt=="before");return Vn!=null&&(zn.other=Pn(kt,Vn,Jt!="before")),zn}function wd(ie,de){var ke=0;de=Tn(ie.doc,de),ie.options.lineWrapping||(ke=ic(ie.display)*de.ch);var Te=cn(ie.doc,de.line),Re=ro(Te)+ks(ie.display);return{left:ke,right:ke,top:Re,bottom:Re+Te.height}}function bd(ie,de,ke,Te,Re){var st=rn(ie,de,ke);return st.xRel=Re,Te&&(st.outside=Te),st}function Kc(ie,de,ke){var Te=ie.doc;if(ke+=ie.display.viewOffset,ke<0)return bd(Te.first,0,null,-1,-1);var Re=En(Te,ke),st=Te.first+Te.size-1;if(Re>st)return bd(Te.first+Te.size-1,cn(Te,st).text.length,null,1,1);de<0&&(de=0);for(var Ct=cn(Te,Re);;){var Bt=$n(ie,Ct,Re,de,ke),kt=yi(Ct,Bt.ch+(Bt.xRel>0||Bt.outside>0?1:0));if(!kt)return Bt;var Jt=kt.find(1);if(Jt.line==Re)return Jt;Ct=cn(Te,Re=Jt.line)}}function mi(ie,de,ke,Te){Te-=Ya(de);var Re=de.text.length,st=Qe(function(Ct){return jl(ie,ke,Ct-1).bottom<=Te},Re,0);return Re=Qe(function(Ct){return jl(ie,ke,Ct).top>Te},st,Re),{begin:st,end:Re}}function fh(ie,de,ke,Te){ke||(ke=zu(ie,de));var Re=Ua(ie,de,jl(ie,ke,Te),"line").top;return mi(ie,de,ke,Re)}function tn(ie,de,ke,Te){return ie.bottom<=ke?!1:ie.top>ke?!0:(Te?ie.left:ie.right)>de}function $n(ie,de,ke,Te,Re){Re-=ro(de);var st=zu(ie,de),Ct=Ya(de),Bt=0,kt=de.text.length,Jt=!0,Pn=Kt(de,ie.doc.direction);if(Pn){var qt=(ie.options.lineWrapping?af:Cd)(ie,de,ke,st,Pn,Te,Re);Jt=qt.level!=1,Bt=Jt?qt.from:qt.to-1,kt=Jt?qt.to:qt.from-1}var Vn=null,zn=null,yr=Qe(function(So){var vi=jl(ie,st,So);return vi.top+=Ct,vi.bottom+=Ct,tn(vi,Te,Re,!1)?(vi.top<=Re&&vi.left<=Te&&(Vn=So,zn=vi),!0):!1},Bt,kt),Lr,Hr,oi=!1;if(zn){var Fi=Te-zn.left<zn.right-Te,xi=Fi==Jt;yr=Vn+(xi?0:1),Hr=xi?"after":"before",Lr=Fi?zn.left:zn.right}else{!Jt&&(yr==kt||yr==Bt)&&yr++,Hr=yr==0?"after":yr==de.text.length?"before":jl(ie,st,yr-(Jt?1:0)).bottom+Ct<=Re==Jt?"after":"before";var Wi=Da(ie,rn(ke,yr,Hr),"line",de,st);Lr=Wi.left,oi=Re<Wi.top?-1:Re>=Wi.bottom?1:0}return yr=Ve(de.text,yr,1),bd(ke,yr,Hr,oi,Te-Lr)}function Cd(ie,de,ke,Te,Re,st,Ct){var Bt=Qe(function(qt){var Vn=Re[qt],zn=Vn.level!=1;return tn(Da(ie,rn(ke,zn?Vn.to:Vn.from,zn?"before":"after"),"line",de,Te),st,Ct,!0)},0,Re.length-1),kt=Re[Bt];if(Bt>0){var Jt=kt.level!=1,Pn=Da(ie,rn(ke,Jt?kt.from:kt.to,Jt?"after":"before"),"line",de,Te);tn(Pn,st,Ct,!0)&&Pn.top>Ct&&(kt=Re[Bt-1])}return kt}function af(ie,de,ke,Te,Re,st,Ct){var Bt=mi(ie,de,Te,Ct),kt=Bt.begin,Jt=Bt.end;/\s/.test(de.text.charAt(Jt-1))&&Jt--;for(var Pn=null,qt=null,Vn=0;Vn<Re.length;Vn++){var zn=Re[Vn];if(!(zn.from>=Jt||zn.to<=kt)){var yr=zn.level!=1,Lr=jl(ie,Te,yr?Math.min(Jt,zn.to)-1:Math.max(kt,zn.from)).right,Hr=Lr<st?st-Lr+1e9:Lr-st;(!Pn||qt>Hr)&&(Pn=zn,qt=Hr)}}return Pn||(Pn=Re[Re.length-1]),Pn.from<kt&&(Pn={from:kt,to:Pn.to,level:Pn.level}),Pn.to>Jt&&(Pn={from:Pn.from,to:Jt,level:Pn.level}),Pn}var Hu;function Uu(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Hu==null){Hu=Oe("pre",null,"CodeMirror-line-like");for(var de=0;de<49;++de)Hu.appendChild(document.createTextNode("x")),Hu.appendChild(Oe("br"));Hu.appendChild(document.createTextNode("x"))}Fe(ie.measure,Hu);var ke=Hu.offsetHeight/50;return ke>3&&(ie.cachedTextHeight=ke),Le(ie.measure),ke||1}function ic(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var de=Oe("span","xxxxxxxxxx"),ke=Oe("pre",[de],"CodeMirror-line-like");Fe(ie.measure,ke);var Te=de.getBoundingClientRect(),Re=(Te.right-Te.left)/10;return Re>2&&(ie.cachedCharWidth=Re),Re||10}function Pd(ie){for(var de=ie.display,ke={},Te={},Re=de.gutters.clientLeft,st=de.gutters.firstChild,Ct=0;st;st=st.nextSibling,++Ct){var Bt=ie.display.gutterSpecs[Ct].className;ke[Bt]=st.offsetLeft+st.clientLeft+Re,Te[Bt]=st.clientWidth}return{fixedPos:ph(de),gutterTotalWidth:de.gutters.offsetWidth,gutterLeft:ke,gutterWidth:Te,wrapperWidth:de.wrapper.clientWidth}}function ph(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function Ga(ie){var de=Uu(ie.display),ke=ie.options.lineWrapping,Te=ke&&Math.max(5,ie.display.scroller.clientWidth/ic(ie.display)-3);return function(Re){if(qn(ie.doc,Re))return 0;var st=0;if(Re.widgets)for(var Ct=0;Ct<Re.widgets.length;Ct++)Re.widgets[Ct].height&&(st+=Re.widgets[Ct].height);return ke?st+(Math.ceil(Re.text.length/Te)||1)*de:st+de}}function Gi(ie){var de=ie.doc,ke=Ga(ie);de.iter(function(Te){var Re=ke(Te);Re!=Te.height&&Zn(Te,Re)})}function rl(ie,de,ke,Te){var Re=ie.display;if(!ke&&Ar(de).getAttribute("cm-not-content")=="true")return null;var st,Ct,Bt=Re.lineSpace.getBoundingClientRect();try{st=de.clientX-Bt.left,Ct=de.clientY-Bt.top}catch(qt){return null}var kt=Kc(ie,st,Ct),Jt;if(Te&&kt.xRel>0&&(Jt=cn(ie.doc,kt.line).text).length==kt.ch){var Pn=qe(Jt,Jt.length,ie.options.tabSize)-Jt.length;kt=rn(kt.line,Math.max(0,Math.round((st-Ru(ie.display).left)/ic(ie.display))-Pn))}return kt}function Hs(ie,de){if(de>=ie.display.viewTo||(de-=ie.display.viewFrom,de<0))return null;for(var ke=ie.display.view,Te=0;Te<ke.length;Te++)if(de-=ke[Te].size,de<0)return Te}function xa(ie,de,ke,Te){de==null&&(de=ie.doc.first),ke==null&&(ke=ie.doc.first+ie.doc.size),Te||(Te=0);var Re=ie.display;if(Te&&ke<Re.viewTo&&(Re.updateLineNumbers==null||Re.updateLineNumbers>de)&&(Re.updateLineNumbers=de),ie.curOp.viewChanged=!0,de>=Re.viewTo)Fn&&Yr(ie.doc,de)<Re.viewTo&&ss(ie);else if(ke<=Re.viewFrom)Fn&&Kr(ie.doc,ke+Te)>Re.viewFrom?ss(ie):(Re.viewFrom+=Te,Re.viewTo+=Te);else if(de<=Re.viewFrom&&ke>=Re.viewTo)ss(ie);else if(de<=Re.viewFrom){var st=Pl(ie,ke,ke+Te,1);st?(Re.view=Re.view.slice(st.index),Re.viewFrom=st.lineN,Re.viewTo+=Te):ss(ie)}else if(ke>=Re.viewTo){var Ct=Pl(ie,de,de,-1);Ct?(Re.view=Re.view.slice(0,Ct.index),Re.viewTo=Ct.lineN):ss(ie)}else{var Bt=Pl(ie,de,de,-1),kt=Pl(ie,ke,ke+Te,1);Bt&&kt?(Re.view=Re.view.slice(0,Bt.index).concat($i(ie,Bt.lineN,kt.lineN)).concat(Re.view.slice(kt.index)),Re.viewTo+=Te):ss(ie)}var Jt=Re.externalMeasured;Jt&&(ke<Jt.lineN?Jt.lineN+=Te:de<Jt.lineN+Jt.size&&(Re.externalMeasured=null))}function Mo(ie,de,ke){ie.curOp.viewChanged=!0;var Te=ie.display,Re=ie.display.externalMeasured;if(Re&&de>=Re.lineN&&de<Re.lineN+Re.size&&(Te.externalMeasured=null),!(de<Te.viewFrom||de>=Te.viewTo)){var st=Te.view[Hs(ie,de)];if(st.node!=null){var Ct=st.changes||(st.changes=[]);dt(Ct,ke)==-1&&Ct.push(ke)}}}function ss(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Pl(ie,de,ke,Te){var Re=Hs(ie,de),st,Ct=ie.display.view;if(!Fn||ke==ie.doc.first+ie.doc.size)return{index:Re,lineN:ke};for(var Bt=ie.display.viewFrom,kt=0;kt<Re;kt++)Bt+=Ct[kt].size;if(Bt!=de){if(Te>0){if(Re==Ct.length-1)return null;st=Bt+Ct[Re].size-de,Re++}else st=Bt-de;de+=st,ke+=st}for(;Yr(ie.doc,ke)!=ke;){if(Re==(Te<0?0:Ct.length-1))return null;ke+=Te*Ct[Re-(Te<0?1:0)].size,Re+=Te}return{index:Re,lineN:ke}}function ma(ie,de,ke){var Te=ie.display,Re=Te.view;Re.length==0||de>=Te.viewTo||ke<=Te.viewFrom?(Te.view=$i(ie,de,ke),Te.viewFrom=de):(Te.viewFrom>de?Te.view=$i(ie,de,Te.viewFrom).concat(Te.view):Te.viewFrom<de&&(Te.view=Te.view.slice(Hs(ie,de))),Te.viewFrom=de,Te.viewTo<ke?Te.view=Te.view.concat($i(ie,Te.viewTo,ke)):Te.viewTo>ke&&(Te.view=Te.view.slice(0,Hs(ie,ke)))),Te.viewTo=ke}function zl(ie){for(var de=ie.display.view,ke=0,Te=0;Te<de.length;Te++){var Re=de[Te];!Re.hidden&&(!Re.node||Re.changes)&&++ke}return ke}function bs(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Vc(ie,de){de===void 0&&(de=!0);for(var ke=ie.doc,Te={},Re=Te.cursors=document.createDocumentFragment(),st=Te.selection=document.createDocumentFragment(),Ct=0;Ct<ke.sel.ranges.length;Ct++)if(!(!de&&Ct==ke.sel.primIndex)){var Bt=ke.sel.ranges[Ct];if(!(Bt.from().line>=ie.display.viewTo||Bt.to().line<ie.display.viewFrom)){var kt=Bt.empty();(kt||ie.options.showCursorWhenSelecting)&&Zo(ie,Bt.head,Re),kt||Ko(ie,Bt,st)}}return Te}function Zo(ie,de,ke){var Te=Da(ie,de,"div",null,null,!ie.options.singleCursorHeightPerLine),Re=ke.appendChild(Oe("div","\xA0","CodeMirror-cursor"));if(Re.style.left=Te.left+"px",Re.style.top=Te.top+"px",Re.style.height=Math.max(0,Te.bottom-Te.top)*ie.options.cursorHeight+"px",Te.other){var st=ke.appendChild(Oe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));st.style.display="",st.style.left=Te.other.left+"px",st.style.top=Te.other.top+"px",st.style.height=(Te.other.bottom-Te.other.top)*.85+"px"}}function il(ie,de){return ie.top-de.top||ie.left-de.left}function Ko(ie,de,ke){var Te=ie.display,Re=ie.doc,st=document.createDocumentFragment(),Ct=Ru(ie.display),Bt=Ct.left,kt=Math.max(Te.sizerWidth,dl(ie)-Te.sizer.offsetLeft)-Ct.right,Jt=Re.direction=="ltr";function Pn(xi,Wi,So,vi){Wi<0&&(Wi=0),Wi=Math.round(Wi),vi=Math.round(vi),st.appendChild(Oe("div",null,"CodeMirror-selected","position: absolute; left: "+xi+`px;
|
|
|
top: `+Wi+"px; width: "+(So==null?kt-xi:So)+`px;
|
|
|
height: `+(vi-Wi)+"px"))}function qt(xi,Wi,So){var vi=cn(Re,xi),Bo=vi.text.length,$a,Is;function os(Fs,iu){return Rl(ie,rn(xi,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=Kt(vi,Re.direction);return ht(vl,Wi||0,So==null?Bo:So,function(Fs,iu,al,Ds){var sa=al=="ltr",hs=os(Fs,sa?"left":"right"),Gs=os(iu-1,sa?"right":"left"),sl=Wi==null&&Fs==0,Yu=So==null&&iu==Bo,as=Ds==0,Tu=!vl||Ds==vl.length-1;if(Gs.top-hs.top<=3){var ys=(Jt?sl:Yu)&&as,xf=(Jt?Yu:sl)&&Tu,vu=ys?Bt:(sa?hs:Gs).left,ou=xf?kt:(sa?Gs:hs).right;Pn(vu,hs.top,ou-vu,hs.bottom)}else{var Xl,Ia,Zs,Mc;sa?(Xl=Jt&&sl&&as?Bt:hs.left,Ia=Jt?kt:Vl(Fs,al,"before"),Zs=Jt?Bt:Vl(iu,al,"after"),Mc=Jt&&Yu&&Tu?kt:Gs.right):(Xl=Jt?Vl(Fs,al,"before"):Bt,Ia=!Jt&&sl&&as?kt:hs.right,Zs=!Jt&&Yu&&Tu?Bt:Gs.left,Mc=Jt?Vl(iu,al,"after"):kt),Pn(Xl,hs.top,Ia-Xl,hs.bottom),hs.bottom<Gs.top&&Pn(Bt,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(),zn=de.to();if(Vn.line==zn.line)qt(Vn.line,Vn.ch,zn.ch);else{var yr=cn(Re,Vn.line),Lr=cn(Re,zn.line),Hr=ei(yr)==ei(Lr),oi=qt(Vn.line,Vn.ch,Hr?yr.text.length+1:null).end,Fi=qt(zn.line,Hr?0:null,zn.ch).start;Hr&&(oi.top<Fi.top-2?(Pn(oi.right,oi.top,null,oi.bottom),Pn(Bt,Fi.top,Fi.left,Fi.bottom)):Pn(oi.right,oi.top,Fi.left-oi.right,oi.bottom)),oi.bottom<Fi.top&&Pn(Bt,oi.bottom,null,Fi.top)}ke.appendChild(st)}function fa(ie){if(ie.state.focused){var de=ie.display;clearInterval(de.blinker);var ke=!0;de.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?de.blinker=setInterval(function(){ie.hasFocus()||Xc(ie),de.cursorDiv.style.visibility=(ke=!ke)?"":"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||(Ft(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&&(Ft(ie,"blur",ie,de),ie.state.focused=!1,Ie(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Hi(ie){for(var de=ie.display,ke=de.lineDiv.offsetTop,Te=0;Te<de.view.length;Te++){var Re=de.view[Te],st=ie.options.lineWrapping,Ct=void 0,Bt=0;if(!Re.hidden){if(Ne&&ge<8){var kt=Re.node.offsetTop+Re.node.offsetHeight;Ct=kt-ke,ke=kt}else{var Jt=Re.node.getBoundingClientRect();Ct=Jt.bottom-Jt.top,!st&&Re.text.firstChild&&(Bt=Re.text.firstChild.getBoundingClientRect().right-Jt.left-1)}var Pn=Re.line.height-Ct;if((Pn>.005||Pn<-.005)&&(Zn(Re.line,Ct),Gf(Re.line),Re.rest))for(var qt=0;qt<Re.rest.length;qt++)Gf(Re.rest[qt]);if(Bt>ie.display.sizerWidth){var Vn=Math.ceil(Bt/ic(ie.display));Vn>ie.display.maxLineLength&&(ie.display.maxLineLength=Vn,ie.display.maxLine=Re.line,ie.display.maxLineChanged=!0)}}}}function Gf(ie){if(ie.widgets)for(var de=0;de<ie.widgets.length;++de){var ke=ie.widgets[de],Te=ke.node.parentNode;Te&&(ke.height=Te.offsetHeight)}}function Wo(ie,de,ke){var Te=ke&&ke.top!=null?Math.max(0,ke.top):ie.scroller.scrollTop;Te=Math.floor(Te-ks(ie));var Re=ke&&ke.bottom!=null?ke.bottom:Te+ie.wrapper.clientHeight,st=En(de,Te),Ct=En(de,Re);if(ke&&ke.ensure){var Bt=ke.ensure.from.line,kt=ke.ensure.to.line;Bt<st?(st=Bt,Ct=En(de,ro(cn(de,Bt))+ie.wrapper.clientHeight)):Math.min(kt,de.lastLine())>=Ct&&(st=En(de,ro(cn(de,kt))-ie.wrapper.clientHeight),Ct=kt)}return{from:st,to:Math.max(Ct,st+1)}}function Zf(ie,de){if(!Qt(ie,"scrollCursorIntoView")){var ke=ie.display,Te=ke.sizer.getBoundingClientRect(),Re=null;if(de.top+Te.top<0?Re=!0:de.bottom+Te.top>(window.innerHeight||document.documentElement.clientHeight)&&(Re=!1),Re!=null&&!we){var st=Oe("div","\u200B",null,`position: absolute;
|
|
|
top: `+(de.top-ke.viewOffset-ks(ie.display))+`px;
|
|
|
height: `+(de.bottom-de.top+Ws(ie)+ke.barHeight)+`px;
|
|
|
left: `+de.left+"px; width: "+Math.max(2,de.right-de.left)+"px;");ie.display.lineSpace.appendChild(st),st.scrollIntoView(Re),ie.display.lineSpace.removeChild(st)}}}function Zh(ie,de,ke,Te){Te==null&&(Te=0);var Re;!ie.options.lineWrapping&&de==ke&&(de=de.ch?rn(de.line,de.sticky=="before"?de.ch-1:de.ch,"after"):de,ke=de.sticky=="before"?rn(de.line,de.ch+1,"before"):de);for(var st=0;st<5;st++){var Ct=!1,Bt=Da(ie,de),kt=!ke||ke==de?Bt:Da(ie,ke);Re={left:Math.min(Bt.left,kt.left),top:Math.min(Bt.top,kt.top)-Te,right:Math.max(Bt.left,kt.left),bottom:Math.max(Bt.bottom,kt.bottom)+Te};var Jt=Kf(ie,Re),Pn=ie.doc.scrollTop,qt=ie.doc.scrollLeft;if(Jt.scrollTop!=null&&(Jc(ie,Jt.scrollTop),Math.abs(ie.doc.scrollTop-Pn)>1&&(Ct=!0)),Jt.scrollLeft!=null&&(Zu(ie,Jt.scrollLeft),Math.abs(ie.doc.scrollLeft-qt)>1&&(Ct=!0)),!Ct)break}return Re}function Kh(ie,de){var ke=Kf(ie,de);ke.scrollTop!=null&&Jc(ie,ke.scrollTop),ke.scrollLeft!=null&&Zu(ie,ke.scrollLeft)}function Kf(ie,de){var ke=ie.display,Te=Uu(ie.display);de.top<0&&(de.top=0);var Re=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ke.scroller.scrollTop,st=Hc(ie),Ct={};de.bottom-de.top>st&&(de.bottom=de.top+st);var Bt=ie.doc.height+Eu(ke),kt=de.top<Te,Jt=de.bottom>Bt-Te;if(de.top<Re)Ct.scrollTop=kt?0:de.top;else if(de.bottom>Re+st){var Pn=Math.min(de.top,(Jt?Bt:de.bottom)-st);Pn!=Re&&(Ct.scrollTop=Pn)}var qt=ie.options.fixedGutter?0:ke.gutters.offsetWidth,Vn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ke.scroller.scrollLeft-qt,zn=dl(ie)-ke.gutters.offsetWidth,yr=de.right-de.left>zn;return yr&&(de.right=de.left+zn),de.left<10?Ct.scrollLeft=0:de.left<Vn?Ct.scrollLeft=Math.max(0,de.left+qt-(yr?0:10)):de.right>zn+Vn-3&&(Ct.scrollLeft=de.right+(yr?0:10)-zn),Ct}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,ke){(de!=null||ke!=null)&&Gu(ie),de!=null&&(ie.curOp.scrollLeft=de),ke!=null&&(ie.curOp.scrollTop=ke)}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 ke=wd(ie,de.from),Te=wd(ie,de.to);sf(ie,ke,Te,de.margin)}}function sf(ie,de,ke,Te){var Re=Kf(ie,{left:Math.min(de.left,ke.left),top:Math.min(de.top,ke.top)-Te,right:Math.max(de.right,ke.right),bottom:Math.max(de.bottom,ke.bottom)+Te});Yc(ie,Re.scrollLeft,Re.scrollTop)}function Jc(ie,de){Math.abs(ie.doc.scrollTop-de)<2||(He||_r(ie,{top:de}),Vf(ie,de,!0),He&&_r(ie),rr(ie,100))}function Vf(ie,de,ke){de=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,de)),!(ie.display.scroller.scrollTop==de&&!ke)&&(ie.doc.scrollTop=de,ie.display.scrollbars.setScrollTop(de),ie.display.scroller.scrollTop!=de&&(ie.display.scroller.scrollTop=de))}function Zu(ie,de,ke,Te){de=Math.max(0,Math.min(de,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ke?de==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-de)<2)&&!Te)&&(ie.doc.scrollLeft=de,Zi(ie),ie.display.scroller.scrollLeft!=de&&(ie.display.scroller.scrollLeft=de),ie.display.scrollbars.setScrollLeft(de))}function pu(ie){var de=ie.display,ke=de.gutters.offsetWidth,Te=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?ke:0,docHeight:Te,scrollHeight:Te+Ws(ie)+de.barHeight,nativeBarWidth:de.nativeBarWidth,gutterWidth:ke}}var xc=function(ie,de,ke){this.cm=ke;var Te=this.vert=Oe("div",[Oe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Re=this.horiz=Oe("div",[Oe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Te.tabIndex=Re.tabIndex=-1,ie(Te),ie(Re),Rt(Te,"scroll",function(){Te.clientHeight&&de(Te.scrollTop,"vertical")}),Rt(Re,"scroll",function(){Re.clientWidth&&de(Re.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ne&&ge<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xc.prototype.update=function(ie){var de=ie.scrollWidth>ie.clientWidth+1,ke=ie.scrollHeight>ie.clientHeight+1,Te=ie.nativeBarWidth;if(ke){this.vert.style.display="block",this.vert.style.bottom=de?Te+"px":"0";var Re=ie.viewHeight-(de?Te:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+Re)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(de){this.horiz.style.display="block",this.horiz.style.right=ke?Te+"px":"0",this.horiz.style.left=ie.barLeft+"px";var st=ie.viewWidth-ie.barLeft-(ke?Te:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+st)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(Te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ke?Te:0,bottom:de?Te: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 ot,this.disableVert=new ot},xc.prototype.enableZeroWidthBar=function(ie,de,ke){ie.style.pointerEvents="auto";function Te(){var Re=ie.getBoundingClientRect(),st=ke=="vert"?document.elementFromPoint(Re.right-1,(Re.top+Re.bottom)/2):document.elementFromPoint((Re.right+Re.left)/2,Re.bottom-1);st!=ie?ie.style.pointerEvents="none":de.set(1e3,Te)}de.set(1e3,Te)},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 ke=ie.display.barWidth,Te=ie.display.barHeight;Ad(ie,de);for(var Re=0;Re<4&&ke!=ie.display.barWidth||Te!=ie.display.barHeight;Re++)ke!=ie.display.barWidth&&ie.options.lineWrapping&&Hi(ie),Ad(ie,pu(ie)),ke=ie.display.barWidth,Te=ie.display.barHeight}function Ad(ie,de){var ke=ie.display,Te=ke.scrollbars.update(de);ke.sizer.style.paddingRight=(ke.barWidth=Te.right)+"px",ke.sizer.style.paddingBottom=(ke.barHeight=Te.bottom)+"px",ke.heightForcer.style.borderBottom=Te.bottom+"px solid transparent",Te.right&&Te.bottom?(ke.scrollbarFiller.style.display="block",ke.scrollbarFiller.style.height=Te.bottom+"px",ke.scrollbarFiller.style.width=Te.right+"px"):ke.scrollbarFiller.style.display="",Te.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ke.gutterFiller.style.display="block",ke.gutterFiller.style.height=Te.bottom+"px",ke.gutterFiller.style.width=de.gutterWidth+"px"):ke.gutterFiller.style.display=""}var lf={native:xc,null:Au};function uf(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ie(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),Rt(de,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),de.setAttribute("cm-not-content","true")},function(de,ke){ke=="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&&co(de,function(ke){for(var Te=0;Te<ke.ops.length;Te++)ke.ops[Te].cm.curOp=null;Kp(ke)})}function Kp(ie){for(var de=ie.ops,ke=0;ke<de.length;ke++)It(de[ke]);for(var Te=0;Te<de.length;Te++)Wt(de[Te]);for(var Re=0;Re<de.length;Re++)an(de[Re]);for(var st=0;st<de.length;st++)un(de[st]);for(var Ct=0;Ct<de.length;Ct++)An(de[Ct])}function It(ie){var de=ie.cm,ke=de.display;jr(de),ie.updateMaxLine&&lo(de),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ke.viewFrom||ie.scrollToPos.to.line>=ke.viewTo)||ke.maxLineChanged&&de.options.lineWrapping,ie.update=ie.mustUpdate&&new ar(de,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function Wt(ie){ie.updatedDisplay=ie.mustUpdate&&ti(ie.cm,ie.update)}function an(ie){var de=ie.cm,ke=de.display;ie.updatedDisplay&&Hi(de),ie.barMeasure=pu(de),ke.maxLineChanged&&!de.options.lineWrapping&&(ie.adjustWidthTo=Gc(de,ke.maxLine,ke.maxLine.text.length).left+3,de.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ke.scroller.clientWidth,ke.sizer.offsetLeft+ie.adjustWidthTo+Ws(de)+de.display.barWidth),ie.maxScrollLeft=Math.max(0,ke.sizer.offsetLeft+ie.adjustWidthTo-dl(de))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ke.input.prepareSelection())}function un(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 ke=ie.focus&&ie.focus==Ue();ie.preparedSelection&&de.display.input.showSelection(ie.preparedSelection,ke),(ie.updatedDisplay||ie.startHeight!=de.doc.height)&&wc(de,ie.barMeasure),ie.updatedDisplay&&ki(de,ie.barMeasure),ie.selectionChanged&&fa(de),de.state.focused&&ie.updateInput&&de.display.input.reset(ie.typing),ke&&Oa(ie.cm)}function An(ie){var de=ie.cm,ke=de.display,Te=de.doc;if(ie.updatedDisplay&&Mr(de,ie.update),ke.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ke.wheelStartX=ke.wheelStartY=null),ie.scrollTop!=null&&Vf(de,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Zu(de,ie.scrollLeft,!0,!0),ie.scrollToPos){var Re=Zh(de,Tn(Te,ie.scrollToPos.from),Tn(Te,ie.scrollToPos.to),ie.scrollToPos.margin);Zf(de,Re)}var st=ie.maybeHiddenMarkers,Ct=ie.maybeUnhiddenMarkers;if(st)for(var Bt=0;Bt<st.length;++Bt)st[Bt].lines.length||Ft(st[Bt],"hide");if(Ct)for(var kt=0;kt<Ct.length;++kt)Ct[kt].lines.length&&Ft(Ct[kt],"unhide");ke.wrapper.offsetHeight&&(Te.scrollTop=de.display.scroller.scrollTop),ie.changeObjs&&Ft(de,"changes",de,ie.changeObjs),ie.update&&ie.update.finish()}function vn(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 Rn(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 rr(ie,de){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(de,ut(lr,ie))}function lr(ie){var de=ie.doc;if(!(de.highlightFrontier>=ie.display.viewTo)){var ke=+new Date+ie.options.workTime,Te=Br(ie,de.highlightFrontier),Re=[];de.iter(Te.line,Math.min(de.first+de.size,ie.display.viewTo+500),function(st){if(Te.line>=ie.display.viewFrom){var Ct=st.styles,Bt=st.text.length>ie.options.maxHighlightLength?ln(de.mode,Te.state):null,kt=Pr(ie,st,Te,!0);Bt&&(Te.state=Bt),st.styles=kt.styles;var Jt=st.styleClasses,Pn=kt.classes;Pn?st.styleClasses=Pn:Jt&&(st.styleClasses=null);for(var qt=!Ct||Ct.length!=st.styles.length||Jt!=Pn&&(!Jt||!Pn||Jt.bgClass!=Pn.bgClass||Jt.textClass!=Pn.textClass),Vn=0;!qt&&Vn<Ct.length;++Vn)qt=Ct[Vn]!=st.styles[Vn];qt&&Re.push(Te.line),st.stateAfter=Te.save(),Te.nextLine()}else st.text.length<=ie.options.maxHighlightLength&&Sn(ie,st.text,Te),st.stateAfter=Te.line%5==0?Te.save():null,Te.nextLine();if(+new Date>ke)return rr(ie,ie.options.workDelay),!0}),de.highlightFrontier=Te.line,de.modeFrontier=Math.max(de.modeFrontier,Te.line),Re.length&&vn(ie,function(){for(var st=0;st<Re.length;st++)Mo(ie,Re[st],"text")})}}var ar=function(ie,de,ke){var Te=ie.display;this.viewport=de,this.visible=Wo(Te,ie.doc,de),this.editorIsHidden=!Te.wrapper.offsetWidth,this.wrapperHeight=Te.wrapper.clientHeight,this.wrapperWidth=Te.wrapper.clientWidth,this.oldDisplayWidth=dl(ie),this.force=ke,this.dims=Pd(ie),this.events=[]};ar.prototype.signal=function(ie,de){on(ie,de)&&this.events.push(arguments)},ar.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Ft.apply(null,this.events[ie])};function jr(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 Tr(ie){if(ie.hasFocus())return null;var de=Ue();if(!de||!_e(ie.display.lineDiv,de))return null;var ke={activeElt:de};if(window.getSelection){var Te=window.getSelection();Te.anchorNode&&Te.extend&&_e(ie.display.lineDiv,Te.anchorNode)&&(ke.anchorNode=Te.anchorNode,ke.anchorOffset=Te.anchorOffset,ke.focusNode=Te.focusNode,ke.focusOffset=Te.focusOffset)}return ke}function Sr(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Ue())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&_e(document.body,ie.anchorNode)&&_e(document.body,ie.focusNode))){var de=window.getSelection(),ke=document.createRange();ke.setEnd(ie.anchorNode,ie.anchorOffset),ke.collapse(!1),de.removeAllRanges(),de.addRange(ke),de.extend(ie.focusNode,ie.focusOffset)}}function ti(ie,de){var ke=ie.display,Te=ie.doc;if(de.editorIsHidden)return ss(ie),!1;if(!de.force&&de.visible.from>=ke.viewFrom&&de.visible.to<=ke.viewTo&&(ke.updateLineNumbers==null||ke.updateLineNumbers>=ke.viewTo)&&ke.renderedView==ke.view&&zl(ie)==0)return!1;ri(ie)&&(ss(ie),de.dims=Pd(ie));var Re=Te.first+Te.size,st=Math.max(de.visible.from-ie.options.viewportMargin,Te.first),Ct=Math.min(Re,de.visible.to+ie.options.viewportMargin);ke.viewFrom<st&&st-ke.viewFrom<20&&(st=Math.max(Te.first,ke.viewFrom)),ke.viewTo>Ct&&ke.viewTo-Ct<20&&(Ct=Math.min(Re,ke.viewTo)),Fn&&(st=Yr(ie.doc,st),Ct=Kr(ie.doc,Ct));var Bt=st!=ke.viewFrom||Ct!=ke.viewTo||ke.lastWrapHeight!=de.wrapperHeight||ke.lastWrapWidth!=de.wrapperWidth;ma(ie,st,Ct),ke.viewOffset=ro(cn(ie.doc,ke.viewFrom)),ie.display.mover.style.top=ke.viewOffset+"px";var kt=zl(ie);if(!Bt&&kt==0&&!de.force&&ke.renderedView==ke.view&&(ke.updateLineNumbers==null||ke.updateLineNumbers>=ke.viewTo))return!1;var Jt=Tr(ie);return kt>4&&(ke.lineDiv.style.display="none"),Jr(ie,ke.updateLineNumbers,de.dims),kt>4&&(ke.lineDiv.style.display=""),ke.renderedView=ke.view,Sr(Jt),Le(ke.cursorDiv),Le(ke.selectionDiv),ke.gutters.style.height=ke.sizer.style.minHeight=0,Bt&&(ke.lastWrapHeight=de.wrapperHeight,ke.lastWrapWidth=de.wrapperWidth,rr(ie,400)),ke.updateLineNumbers=null,!0}function Mr(ie,de){for(var ke=de.viewport,Te=!0;;Te=!1){if(!Te||!ie.options.lineWrapping||de.oldDisplayWidth==dl(ie)){if(ke&&ke.top!=null&&(ke={top:Math.min(ie.doc.height+Eu(ie.display)-Hc(ie),ke.top)}),de.visible=Wo(ie.display,ie.doc,ke),de.visible.from>=ie.display.viewFrom&&de.visible.to<=ie.display.viewTo)break}else Te&&(de.visible=Wo(ie.display,ie.doc,ke));if(!ti(ie,de))break;Hi(ie);var Re=pu(ie);bs(ie),wc(ie,Re),ki(ie,Re),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 _r(ie,de){var ke=new ar(ie,de);if(ti(ie,ke)){Hi(ie),Mr(ie,ke);var Te=pu(ie);bs(ie),wc(ie,Te),ki(ie,Te),ke.finish()}}function Jr(ie,de,ke){var Te=ie.display,Re=ie.options.lineNumbers,st=Te.lineDiv,Ct=st.firstChild;function Bt(yr){var Lr=yr.nextSibling;return ce&&ae&&ie.display.currentWheelTarget==yr?yr.style.display="none":yr.parentNode.removeChild(yr),Lr}for(var kt=Te.view,Jt=Te.viewFrom,Pn=0;Pn<kt.length;Pn++){var qt=kt[Pn];if(!qt.hidden)if(!qt.node||qt.node.parentNode!=st){var Vn=Bl(ie,qt,Jt,ke);st.insertBefore(Vn,Ct)}else{for(;Ct!=qt.node;)Ct=Bt(Ct);var zn=Re&&de!=null&&de<=Jt&&qt.lineNumber;qt.changes&&(dt(qt.changes,"gutter")>-1&&(zn=!1),Wa(ie,qt,Jt,ke)),zn&&(Le(qt.lineNumber),qt.lineNumber.appendChild(document.createTextNode(nr(ie.options,Jt)))),Ct=qt.node.nextSibling}Jt+=qt.size}for(;Ct;)Ct=Bt(Ct)}function di(ie){var de=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=de+"px"}function ki(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 Zi(ie){var de=ie.display,ke=de.view;if(!(!de.alignWidgets&&(!de.gutters.firstChild||!ie.options.fixedGutter))){for(var Te=ph(de)-de.scroller.scrollLeft+ie.doc.scrollLeft,Re=de.gutters.offsetWidth,st=Te+"px",Ct=0;Ct<ke.length;Ct++)if(!ke[Ct].hidden){ie.options.fixedGutter&&(ke[Ct].gutter&&(ke[Ct].gutter.style.left=st),ke[Ct].gutterBackground&&(ke[Ct].gutterBackground.style.left=st));var Bt=ke[Ct].alignable;if(Bt)for(var kt=0;kt<Bt.length;kt++)Bt[kt].style.left=st}ie.options.fixedGutter&&(de.gutters.style.left=Te+Re+"px")}}function ri(ie){if(!ie.options.lineNumbers)return!1;var de=ie.doc,ke=nr(ie.options,de.first+de.size-1),Te=ie.display;if(ke.length!=Te.lineNumChars){var Re=Te.measure.appendChild(Oe("div",[Oe("div",ke)],"CodeMirror-linenumber CodeMirror-gutter-elt")),st=Re.firstChild.offsetWidth,Ct=Re.offsetWidth-st;return Te.lineGutter.style.width="",Te.lineNumInnerWidth=Math.max(st,Te.lineGutter.offsetWidth-Ct)+1,Te.lineNumWidth=Te.lineNumInnerWidth+Ct,Te.lineNumChars=Te.lineNumInnerWidth?ke.length:-1,Te.lineGutter.style.width=Te.lineNumWidth+"px",di(ie.display),!0}return!1}function Oi(ie,de){for(var ke=[],Te=!1,Re=0;Re<ie.length;Re++){var st=ie[Re],Ct=null;if(typeof st!="string"&&(Ct=st.style,st=st.className),st=="CodeMirror-linenumbers")if(de)Te=!0;else continue;ke.push({className:st,style:Ct})}return de&&!Te&&ke.push({className:"CodeMirror-linenumbers",style:null}),ke}function mo(ie){var de=ie.gutters,ke=ie.gutterSpecs;Le(de),ie.lineGutter=null;for(var Te=0;Te<ke.length;++Te){var Re=ke[Te],st=Re.className,Ct=Re.style,Bt=de.appendChild(Oe("div",null,"CodeMirror-gutter "+st));Ct&&(Bt.style.cssText=Ct),st=="CodeMirror-linenumbers"&&(ie.lineGutter=Bt,Bt.style.width=(ie.lineNumWidth||1)+"px")}de.style.display=ke.length?"":"none",di(ie)}function hi(ie){mo(ie.display),xa(ie),Zi(ie)}function Ei(ie,de,ke,Te){var Re=this;this.input=ke,Re.scrollbarFiller=Oe("div",null,"CodeMirror-scrollbar-filler"),Re.scrollbarFiller.setAttribute("cm-not-content","true"),Re.gutterFiller=Oe("div",null,"CodeMirror-gutter-filler"),Re.gutterFiller.setAttribute("cm-not-content","true"),Re.lineDiv=je("div",null,"CodeMirror-code"),Re.selectionDiv=Oe("div",null,null,"position: relative; z-index: 1"),Re.cursorDiv=Oe("div",null,"CodeMirror-cursors"),Re.measure=Oe("div",null,"CodeMirror-measure"),Re.lineMeasure=Oe("div",null,"CodeMirror-measure"),Re.lineSpace=je("div",[Re.measure,Re.lineMeasure,Re.selectionDiv,Re.cursorDiv,Re.lineDiv],null,"position: relative; outline: none");var st=je("div",[Re.lineSpace],"CodeMirror-lines");Re.mover=Oe("div",[st],null,"position: relative"),Re.sizer=Oe("div",[Re.mover],"CodeMirror-sizer"),Re.sizerWidth=null,Re.heightForcer=Oe("div",null,null,"position: absolute; height: "+St+"px; width: 1px;"),Re.gutters=Oe("div",null,"CodeMirror-gutters"),Re.lineGutter=null,Re.scroller=Oe("div",[Re.sizer,Re.heightForcer,Re.gutters],"CodeMirror-scroll"),Re.scroller.setAttribute("tabIndex","-1"),Re.wrapper=Oe("div",[Re.scrollbarFiller,Re.gutterFiller,Re.scroller],"CodeMirror"),Ne&&ge<8&&(Re.gutters.style.zIndex=-1,Re.scroller.style.paddingRight=0),!ce&&!(He&&ee)&&(Re.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(Re.wrapper):ie(Re.wrapper)),Re.viewFrom=Re.viewTo=de.first,Re.reportedViewFrom=Re.reportedViewTo=de.first,Re.view=[],Re.renderedView=null,Re.externalMeasured=null,Re.viewOffset=0,Re.lastWrapHeight=Re.lastWrapWidth=0,Re.updateLineNumbers=null,Re.nativeBarWidth=Re.barHeight=Re.barWidth=0,Re.scrollbarsClipped=!1,Re.lineNumWidth=Re.lineNumInnerWidth=Re.lineNumChars=null,Re.alignWidgets=!1,Re.cachedCharWidth=Re.cachedTextHeight=Re.cachedPaddingH=null,Re.maxLine=null,Re.maxLineLength=0,Re.maxLineChanged=!1,Re.wheelDX=Re.wheelDY=Re.wheelStartX=Re.wheelStartY=null,Re.shift=!1,Re.selForContextMenu=null,Re.activeTouch=null,Re.gutterSpecs=Oi(Te.gutters,Te.lineNumbers),mo(Re),ke.init(Re)}var li=0,Gr=null;Ne?Gr=-.53:He?Gr=15:Ae?Gr=-.7:De&&(Gr=-1/3);function Si(ie){var de=ie.wheelDeltaX,ke=ie.wheelDeltaY;return de==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(de=ie.detail),ke==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ke=ie.detail:ke==null&&(ke=ie.wheelDelta),{x:de,y:ke}}function zi(ie){var de=Si(ie);return de.x*=Gr,de.y*=Gr,de}function _i(ie,de){var ke=Si(de),Te=ke.x,Re=ke.y,st=ie.display,Ct=st.scroller,Bt=Ct.scrollWidth>Ct.clientWidth,kt=Ct.scrollHeight>Ct.clientHeight;if(Te&&Bt||Re&&kt){if(Re&&ae&&ce){e:for(var Jt=de.target,Pn=st.view;Jt!=Ct;Jt=Jt.parentNode)for(var qt=0;qt<Pn.length;qt++)if(Pn[qt].node==Jt){ie.display.currentWheelTarget=Jt;break e}}if(Te&&!He&&!ye&&Gr!=null){Re&&kt&&Jc(ie,Math.max(0,Ct.scrollTop+Re*Gr)),Zu(ie,Math.max(0,Ct.scrollLeft+Te*Gr)),(!Re||Re&&kt)&&Bn(de),st.wheelStartX=null;return}if(Re&&Gr!=null){var Vn=Re*Gr,zn=ie.doc.scrollTop,yr=zn+st.wrapper.clientHeight;Vn<0?zn=Math.max(0,zn+Vn-50):yr=Math.min(ie.doc.height,yr+Vn+50),_r(ie,{top:zn,bottom:yr})}li<20&&(st.wheelStartX==null?(st.wheelStartX=Ct.scrollLeft,st.wheelStartY=Ct.scrollTop,st.wheelDX=Te,st.wheelDY=Re,setTimeout(function(){if(st.wheelStartX!=null){var Lr=Ct.scrollLeft-st.wheelStartX,Hr=Ct.scrollTop-st.wheelStartY,oi=Hr&&st.wheelDY&&Hr/st.wheelDY||Lr&&st.wheelDX&&Lr/st.wheelDX;st.wheelStartX=st.wheelStartY=null,oi&&(Gr=(Gr*li+oi)/(li+1),++li)}},200)):(st.wheelDX+=Te,st.wheelDY+=Re))}}var qi=function(ie,de){this.ranges=ie,this.primIndex=de};qi.prototype.primary=function(){return this.ranges[this.primIndex]},qi.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 ke=this.ranges[de],Te=ie.ranges[de];if(!nn(ke.anchor,Te.anchor)||!nn(ke.head,Te.head))return!1}return!0},qi.prototype.deepCopy=function(){for(var ie=[],de=0;de<this.ranges.length;de++)ie[de]=new ii(wn(this.ranges[de].anchor),wn(this.ranges[de].head));return new qi(ie,this.primIndex)},qi.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},qi.prototype.contains=function(ie,de){de||(de=ie);for(var ke=0;ke<this.ranges.length;ke++){var Te=this.ranges[ke];if(bn(de,Te.from())>=0&&bn(ie,Te.to())<=0)return ke}return-1};var ii=function(ie,de){this.anchor=ie,this.head=de};ii.prototype.from=function(){return yn(this.anchor,this.head)},ii.prototype.to=function(){return gn(this.anchor,this.head)},ii.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function yo(ie,de,ke){var Te=ie&&ie.options.selectionsMayTouch,Re=de[ke];de.sort(function(Vn,zn){return bn(Vn.from(),zn.from())}),ke=dt(de,Re);for(var st=1;st<de.length;st++){var Ct=de[st],Bt=de[st-1],kt=bn(Bt.to(),Ct.from());if(Te&&!Ct.empty()?kt>0:kt>=0){var Jt=yn(Bt.from(),Ct.from()),Pn=gn(Bt.to(),Ct.to()),qt=Bt.empty()?Ct.from()==Ct.head:Bt.from()==Bt.head;st<=ke&&--ke,de.splice(--st,2,new ii(qt?Pn:Jt,qt?Jt:Pn))}}return new qi(de,ke)}function Co(ie,de){return new qi([new ii(ie,de||ie)],0)}function qo(ie){return ie.text?rn(ie.from.line+ie.text.length-1,wt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function jo(ie,de){if(bn(ie,de.from)<0)return ie;if(bn(ie,de.to)<=0)return qo(de);var ke=ie.line+de.text.length-(de.to.line-de.from.line)-1,Te=ie.ch;return ie.line==de.to.line&&(Te+=qo(de).ch-de.to.ch),rn(ke,Te)}function ka(ie,de){for(var ke=[],Te=0;Te<ie.sel.ranges.length;Te++){var Re=ie.sel.ranges[Te];ke.push(new ii(jo(Re.anchor,de),jo(Re.head,de)))}return yo(ie.cm,ke,ie.sel.primIndex)}function Ta(ie,de,ke){return ie.line==de.line?rn(ke.line,ie.ch-de.ch+ke.ch):rn(ke.line+(ie.line-de.line),ie.ch)}function xo(ie,de,ke){for(var Te=[],Re=rn(ie.first,0),st=Re,Ct=0;Ct<de.length;Ct++){var Bt=de[Ct],kt=Ta(Bt.from,Re,st),Jt=Ta(qo(Bt),Re,st);if(Re=Bt.to,st=Jt,ke=="around"){var Pn=ie.sel.ranges[Ct],qt=bn(Pn.head,Pn.anchor)<0;Te[Ct]=new ii(qt?Jt:kt,qt?kt:Jt)}else Te[Ct]=new ii(kt,kt)}return new qi(Te,ie.sel.primIndex)}function Ui(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,rr(ie,100),ie.state.modeGen++,ie.curOp&&xa(ie)}function Na(ie,de){return de.from.ch==0&&de.to.ch==0&&wt(de.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function wa(ie,de,ke,Te){function Re(Fi){return ke?ke[Fi]:null}function st(Fi,xi,Wi){Oo(Fi,xi,Wi,Te),kr(Fi,"change",Fi,de)}function Ct(Fi,xi){for(var Wi=[],So=Fi;So<xi;++So)Wi.push(new Qi(Jt[So],Re(So),Te));return Wi}var Bt=de.from,kt=de.to,Jt=de.text,Pn=cn(ie,Bt.line),qt=cn(ie,kt.line),Vn=wt(Jt),zn=Re(Jt.length-1),yr=kt.line-Bt.line;if(de.full)ie.insert(0,Ct(0,Jt.length)),ie.remove(Jt.length,ie.size-Jt.length);else if(Na(ie,de)){var Lr=Ct(0,Jt.length-1);st(qt,qt.text,zn),yr&&ie.remove(Bt.line,yr),Lr.length&&ie.insert(Bt.line,Lr)}else if(Pn==qt)if(Jt.length==1)st(Pn,Pn.text.slice(0,Bt.ch)+Vn+Pn.text.slice(kt.ch),zn);else{var Hr=Ct(1,Jt.length-1);Hr.push(new Qi(Vn+Pn.text.slice(kt.ch),zn,Te)),st(Pn,Pn.text.slice(0,Bt.ch)+Jt[0],Re(0)),ie.insert(Bt.line+1,Hr)}else if(Jt.length==1)st(Pn,Pn.text.slice(0,Bt.ch)+Jt[0]+qt.text.slice(kt.ch),Re(0)),ie.remove(Bt.line+1,yr);else{st(Pn,Pn.text.slice(0,Bt.ch)+Jt[0],Re(0)),st(qt,Vn+qt.text.slice(kt.ch),zn);var oi=Ct(1,Jt.length-1);yr>1&&ie.remove(Bt.line+1,yr-1),ie.insert(Bt.line+1,oi)}kr(ie,"change",ie,de)}function is(ie,de,ke){function Te(Re,st,Ct){if(Re.linked)for(var Bt=0;Bt<Re.linked.length;++Bt){var kt=Re.linked[Bt];if(kt.doc!=st){var Jt=Ct&&kt.sharedHist;ke&&!Jt||(de(kt.doc,Jt),Te(kt.doc,Re,Jt))}}}Te(ie,null,!0)}function eo(ie,de){if(de.cm)throw new Error("This document is already in use.");ie.doc=de,de.cm=ie,Gi(ie),Ui(ie),Vi(ie),ie.options.lineWrapping||lo(ie),ie.options.mode=de.modeOption,xa(ie)}function Vi(ie){(ie.doc.direction=="rtl"?$e:Ie)(ie.display.lineDiv,"CodeMirror-rtl")}function to(ie){vn(ie,function(){Vi(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 ke={from:wn(de.from),to:qo(de),text:xn(ie,de.from,de.to)};return Us(ie,ke,de.from.line,de.to.line+1),is(ie,function(Te){return Us(Te,ke,de.from.line,de.to.line+1)},!0),ke}function Ii(ie){for(;ie.length;){var de=wt(ie);if(de.ranges)ie.pop();else break}}function vo(ie,de){if(de)return Ii(ie.done),wt(ie.done);if(ie.done.length&&!wt(ie.done).ranges)return wt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),wt(ie.done)}function Ho(ie,de,ke,Te){var Re=ie.history;Re.undone.length=0;var st=+new Date,Ct,Bt;if((Re.lastOp==Te||Re.lastOrigin==de.origin&&de.origin&&(de.origin.charAt(0)=="+"&&Re.lastModTime>st-(ie.cm?ie.cm.options.historyEventDelay:500)||de.origin.charAt(0)=="*"))&&(Ct=vo(Re,Re.lastOp==Te)))Bt=wt(Ct.changes),bn(de.from,de.to)==0&&bn(de.from,Bt.to)==0?Bt.to=qo(de):Ct.changes.push(Qo(ie,de));else{var kt=wt(Re.done);for((!kt||!kt.ranges)&&ls(ie.sel,Re.done),Ct={changes:[Qo(ie,de)],generation:Re.generation},Re.done.push(Ct);Re.done.length>Re.undoDepth;)Re.done.shift(),Re.done[0].ranges||Re.done.shift()}Re.done.push(ke),Re.generation=++Re.maxGeneration,Re.lastModTime=Re.lastSelTime=st,Re.lastOp=Re.lastSelOp=Te,Re.lastOrigin=Re.lastSelOrigin=de.origin,Bt||Ft(ie,"historyAdded")}function Uo(ie,de,ke,Te){var Re=de.charAt(0);return Re=="*"||Re=="+"&&ke.ranges.length==Te.ranges.length&&ke.somethingSelected()==Te.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Cs(ie,de,ke,Te){var Re=ie.history,st=Te&&Te.origin;ke==Re.lastSelOp||st&&Re.lastSelOrigin==st&&(Re.lastModTime==Re.lastSelTime&&Re.lastOrigin==st||Uo(ie,st,wt(Re.done),de))?Re.done[Re.done.length-1]=de:ls(de,Re.done),Re.lastSelTime=+new Date,Re.lastSelOrigin=st,Re.lastSelOp=ke,Te&&Te.clearRedo!==!1&&Ii(Re.undone)}function ls(ie,de){var ke=wt(de);ke&&ke.ranges&&ke.equals(ie)||de.push(ie)}function Us(ie,de,ke,Te){var Re=de["spans_"+ie.id],st=0;ie.iter(Math.max(ie.first,ke),Math.min(ie.first+ie.size,Te),function(Ct){Ct.markedSpans&&((Re||(Re=de["spans_"+ie.id]={}))[st]=Ct.markedSpans),++st})}function ea(ie){if(!ie)return null;for(var de,ke=0;ke<ie.length;++ke)ie[ke].marker.explicitlyCleared?de||(de=ie.slice(0,ke)):de&&de.push(ie[ke]);return de?de.length?de:null:ie}function Ps(ie,de){var ke=de["spans_"+ie.id];if(!ke)return null;for(var Te=[],Re=0;Re<de.text.length;++Re)Te.push(ea(ke[Re]));return Te}function ts(ie,de){var ke=Ps(ie,de),Te=Wr(ie,de);if(!ke)return Te;if(!Te)return ke;for(var Re=0;Re<ke.length;++Re){var st=ke[Re],Ct=Te[Re];if(st&&Ct)e:for(var Bt=0;Bt<Ct.length;++Bt){for(var kt=Ct[Bt],Jt=0;Jt<st.length;++Jt)if(st[Jt].marker==kt.marker)continue e;st.push(kt)}else Ct&&(ke[Re]=Ct)}return ke}function ps(ie,de,ke){for(var Te=[],Re=0;Re<ie.length;++Re){var st=ie[Re];if(st.ranges){Te.push(ke?qi.prototype.deepCopy.call(st):st);continue}var Ct=st.changes,Bt=[];Te.push({changes:Bt});for(var kt=0;kt<Ct.length;++kt){var Jt=Ct[kt],Pn=void 0;if(Bt.push({from:Jt.from,to:Jt.to,text:Jt.text}),de)for(var qt in Jt)(Pn=qt.match(/^spans_(\d+)$/))&&dt(de,Number(Pn[1]))>-1&&(wt(Bt)[qt]=Jt[qt],delete Jt[qt])}}return Te}function Ku(ie,de,ke,Te){if(Te){var Re=ie.anchor;if(ke){var st=bn(de,Re)<0;st!=bn(ke,Re)<0?(Re=de,de=ke):st!=bn(de,ke)<0&&(de=ke)}return new ii(Re,de)}else return new ii(ke||de,de)}function ta(ie,de,ke,Te,Re){Re==null&&(Re=ie.cm&&(ie.cm.display.shift||ie.extend)),va(ie,new qi([Ku(ie.sel.primary(),de,ke,Re)],0),Te)}function aa(ie,de,ke){for(var Te=[],Re=ie.cm&&(ie.cm.display.shift||ie.extend),st=0;st<ie.sel.ranges.length;st++)Te[st]=Ku(ie.sel.ranges[st],de[st],null,Re);var Ct=yo(ie.cm,Te,ie.sel.primIndex);va(ie,Ct,ke)}function pa(ie,de,ke,Te){var Re=ie.sel.ranges.slice(0);Re[de]=ke,va(ie,yo(ie.cm,Re,ie.sel.primIndex),Te)}function Qa(ie,de,ke,Te){va(ie,Co(de,ke),Te)}function gs(ie,de,ke){var Te={ranges:de.ranges,update:function(Re){this.ranges=[];for(var st=0;st<Re.length;st++)this.ranges[st]=new ii(Tn(ie,Re[st].anchor),Tn(ie,Re[st].head))},origin:ke&&ke.origin};return Ft(ie,"beforeSelectionChange",ie,Te),ie.cm&&Ft(ie.cm,"beforeSelectionChange",ie.cm,Te),Te.ranges!=de.ranges?yo(ie.cm,Te.ranges,Te.ranges.length-1):de}function No(ie,de,ke){var Te=ie.history.done,Re=wt(Te);Re&&Re.ranges?(Te[Te.length-1]=de,ms(ie,de,ke)):va(ie,de,ke)}function va(ie,de,ke){ms(ie,de,ke),Cs(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ke)}function ms(ie,de,ke){(on(ie,"beforeSelectionChange")||ie.cm&&on(ie.cm,"beforeSelectionChange"))&&(de=gs(ie,de,ke));var Te=ke&&ke.bias||(bn(de.primary().head,ie.sel.primary().head)<0?-1:1);pl(ie,El(ie,de,Te,!0)),!(ke&&ke.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,ke,Te){for(var Re,st=0;st<de.ranges.length;st++){var Ct=de.ranges[st],Bt=de.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[st],kt=eu(ie,Ct.anchor,Bt&&Bt.anchor,ke,Te),Jt=eu(ie,Ct.head,Bt&&Bt.head,ke,Te);(Re||kt!=Ct.anchor||Jt!=Ct.head)&&(Re||(Re=de.ranges.slice(0,st)),Re[st]=new ii(kt,Jt))}return Re?yo(ie.cm,Re,de.primIndex):de}function ql(ie,de,ke,Te,Re){var st=cn(ie,de.line);if(st.markedSpans)for(var Ct=0;Ct<st.markedSpans.length;++Ct){var Bt=st.markedSpans[Ct],kt=Bt.marker,Jt="selectLeft"in kt?!kt.selectLeft:kt.inclusiveLeft,Pn="selectRight"in kt?!kt.selectRight:kt.inclusiveRight;if((Bt.from==null||(Jt?Bt.from<=de.ch:Bt.from<de.ch))&&(Bt.to==null||(Pn?Bt.to>=de.ch:Bt.to>de.ch))){if(Re&&(Ft(kt,"beforeCursorEnter"),kt.explicitlyCleared))if(st.markedSpans){--Ct;continue}else break;if(!kt.atomic)continue;if(ke){var qt=kt.find(Te<0?1:-1),Vn=void 0;if((Te<0?Pn:Jt)&&(qt=Hl(ie,qt,-Te,qt&&qt.line==de.line?st:null)),qt&&qt.line==de.line&&(Vn=bn(qt,ke))&&(Te<0?Vn<0:Vn>0))return ql(ie,qt,de,Te,Re)}var zn=kt.find(Te<0?-1:1);return(Te<0?Jt:Pn)&&(zn=Hl(ie,zn,Te,zn.line==de.line?st:null)),zn?ql(ie,zn,de,Te,Re):null}}return de}function eu(ie,de,ke,Te,Re){var st=Te||1,Ct=ql(ie,de,ke,st,Re)||!Re&&ql(ie,de,ke,st,!0)||ql(ie,de,ke,-st,Re)||!Re&&ql(ie,de,ke,-st,!0);return Ct||(ie.cantEdit=!0,rn(ie.first,0))}function Hl(ie,de,ke,Te){return ke<0&&de.ch==0?de.line>ie.first?Tn(ie,rn(de.line-1)):null:ke>0&&de.ch==(Te||cn(ie,de.line)).text.length?de.line<ie.first+ie.size-1?rn(de.line+1,0):null:new rn(de.line,de.ch+ke)}function ra(ie){ie.setSelection(rn(ie.firstLine(),0),rn(ie.lastLine()),ft)}function Ms(ie,de,ke){var Te={canceled:!1,from:de.from,to:de.to,text:de.text,origin:de.origin,cancel:function(){return Te.canceled=!0}};return ke&&(Te.update=function(Re,st,Ct,Bt){Re&&(Te.from=Tn(ie,Re)),st&&(Te.to=Tn(ie,st)),Ct&&(Te.text=Ct),Bt!==void 0&&(Te.origin=Bt)}),Ft(ie,"beforeChange",ie,Te),ie.cm&&Ft(ie.cm,"beforeChange",ie.cm,Te),Te.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:Te.from,to:Te.to,text:Te.text,origin:Te.origin}}function Za(ie,de,ke){if(ie.cm){if(!ie.cm.curOp)return Wn(ie.cm,Za)(ie,de,ke);if(ie.cm.state.suppressEdits)return}if(!((on(ie,"beforeChange")||ie.cm&&on(ie.cm,"beforeChange"))&&(de=Ms(ie,de,!0),!de))){var Te=Vr&&!ke&&Di(ie,de.from,de.to);if(Te)for(var Re=Te.length-1;Re>=0;--Re)ya(ie,{from:Te[Re].from,to:Te[Re].to,text:Re?[""]:de.text,origin:de.origin});else ya(ie,de)}}function ya(ie,de){if(!(de.text.length==1&&de.text[0]==""&&bn(de.from,de.to)==0)){var ke=ka(ie,de);Ho(ie,de,ke,ie.cm?ie.cm.curOp.id:NaN),tu(ie,de,ke,Wr(ie,de));var Te=[];is(ie,function(Re,st){!st&&dt(Te,Re.history)==-1&&(ba(Re.history,de),Te.push(Re.history)),tu(Re,de,null,Wr(Re,de))})}}function Ul(ie,de,ke){var Te=ie.cm&&ie.cm.state.suppressEdits;if(!(Te&&!ke)){for(var Re=ie.history,st,Ct=ie.sel,Bt=de=="undo"?Re.done:Re.undone,kt=de=="undo"?Re.undone:Re.done,Jt=0;Jt<Bt.length&&(st=Bt[Jt],!(ke?st.ranges&&!st.equals(ie.sel):!st.ranges));Jt++);if(Jt!=Bt.length){for(Re.lastOrigin=Re.lastSelOrigin=null;;)if(st=Bt.pop(),st.ranges){if(ls(st,kt),ke&&!st.equals(ie.sel)){va(ie,st,{clearRedo:!1});return}Ct=st}else if(Te){Bt.push(st);return}else break;var Pn=[];ls(Ct,kt),kt.push({changes:Pn,generation:Re.generation}),Re.generation=st.generation||++Re.maxGeneration;for(var qt=on(ie,"beforeChange")||ie.cm&&on(ie.cm,"beforeChange"),Vn=function(Lr){var Hr=st.changes[Lr];if(Hr.origin=de,qt&&!Ms(ie,Hr,!1))return Bt.length=0,{};Pn.push(Qo(ie,Hr));var oi=Lr?ka(ie,Hr):wt(Bt);tu(ie,Hr,oi,ts(ie,Hr)),!Lr&&ie.cm&&ie.cm.scrollIntoView({from:Hr.from,to:qo(Hr)});var Fi=[];is(ie,function(xi,Wi){!Wi&&dt(Fi,xi.history)==-1&&(ba(xi.history,Hr),Fi.push(xi.history)),tu(xi,Hr,null,ts(xi,Hr))})},zn=st.changes.length-1;zn>=0;--zn){var yr=Vn(zn);if(yr)return yr.v}}}}function oc(ie,de){if(de!=0&&(ie.first+=de,ie.sel=new qi(bt(ie.sel.ranges,function(Re){return new ii(rn(Re.anchor.line+de,Re.anchor.ch),rn(Re.head.line+de,Re.head.ch))}),ie.sel.primIndex),ie.cm)){xa(ie.cm,ie.first,ie.first-de,de);for(var ke=ie.cm.display,Te=ke.viewFrom;Te<ke.viewTo;Te++)Mo(ie.cm,Te,"gutter")}}function tu(ie,de,ke,Te){if(ie.cm&&!ie.cm.curOp)return Wn(ie.cm,tu)(ie,de,ke,Te);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 Re=de.text.length-1-(ie.first-de.from.line);oc(ie,Re),de={from:rn(ie.first,0),to:rn(de.to.line+Re,de.to.ch),text:[wt(de.text)],origin:de.origin}}var st=ie.lastLine();de.to.line>st&&(de={from:de.from,to:rn(st,cn(ie,st).text.length),text:[de.text[0]],origin:de.origin}),de.removed=xn(ie,de.from,de.to),ke||(ke=ka(ie,de)),ie.cm?Mu(ie.cm,de,Te):wa(ie,de,Te),ms(ie,ke,ft),ie.cantEdit&&eu(ie,rn(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Mu(ie,de,ke){var Te=ie.doc,Re=ie.display,st=de.from,Ct=de.to,Bt=!1,kt=st.line;ie.options.lineWrapping||(kt=Ht(ei(cn(Te,st.line))),Te.iter(kt,Ct.line+1,function(zn){if(zn==Re.maxLine)return Bt=!0,!0})),Te.sel.contains(de.from,de.to)>-1&&en(ie),wa(Te,de,ke,Ga(ie)),ie.options.lineWrapping||(Te.iter(kt,st.line+de.text.length,function(zn){var yr=Do(zn);yr>Re.maxLineLength&&(Re.maxLine=zn,Re.maxLineLength=yr,Re.maxLineChanged=!0,Bt=!1)}),Bt&&(ie.curOp.updateMaxLine=!0)),Er(Te,st.line),rr(ie,400);var Jt=de.text.length-(Ct.line-st.line)-1;de.full?xa(ie):st.line==Ct.line&&de.text.length==1&&!Na(ie.doc,de)?Mo(ie,st.line,"text"):xa(ie,st.line,Ct.line+1,Jt);var Pn=on(ie,"changes"),qt=on(ie,"change");if(qt||Pn){var Vn={from:st,to:Ct,text:de.text,removed:de.removed,origin:de.origin};qt&&kr(ie,"change",ie,Vn),Pn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Vn)}ie.display.selForContextMenu=null}function Vu(ie,de,ke,Te,Re){var st;Te||(Te=ke),bn(Te,ke)<0&&(st=[Te,ke],ke=st[0],Te=st[1]),typeof de=="string"&&(de=ie.splitLines(de)),Za(ie,{from:ke,to:Te,text:de,origin:Re})}function Al(ie,de,ke,Te){ke<ie.line?ie.line+=Te:de<ie.line&&(ie.line=de,ie.ch=0)}function _o(ie,de,ke,Te){for(var Re=0;Re<ie.length;++Re){var st=ie[Re],Ct=!0;if(st.ranges){st.copied||(st=ie[Re]=st.deepCopy(),st.copied=!0);for(var Bt=0;Bt<st.ranges.length;Bt++)Al(st.ranges[Bt].anchor,de,ke,Te),Al(st.ranges[Bt].head,de,ke,Te);continue}for(var kt=0;kt<st.changes.length;++kt){var Jt=st.changes[kt];if(ke<Jt.from.line)Jt.from=rn(Jt.from.line+Te,Jt.from.ch),Jt.to=rn(Jt.to.line+Te,Jt.to.ch);else if(de<=Jt.to.line){Ct=!1;break}}Ct||(ie.splice(0,Re+1),Re=0)}}function ba(ie,de){var ke=de.from.line,Te=de.to.line,Re=de.text.length-(Te-ke)-1;_o(ie.done,ke,Te,Re),_o(ie.undone,ke,Te,Re)}function us(ie,de,ke,Te){var Re=de,st=de;return typeof de=="number"?st=cn(ie,Ln(ie,de)):Re=Ht(de),Re==null?null:(Te(st,Re)&&ie.cm&&Mo(ie.cm,Re,ke),st)}function Ca(ie){this.lines=ie,this.parent=null;for(var de=0,ke=0;ke<ie.length;++ke)ie[ke].parent=this,de+=ie[ke].height;this.height=de}Ca.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,de){for(var ke=ie,Te=ie+de;ke<Te;++ke){var Re=this.lines[ke];this.height-=Re.height,ko(Re),kr(Re,"delete")}this.lines.splice(ie,de)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,de,ke){this.height+=ke,this.lines=this.lines.slice(0,ie).concat(de).concat(this.lines.slice(ie));for(var Te=0;Te<de.length;++Te)de[Te].parent=this},iterN:function(ie,de,ke){for(var Te=ie+de;ie<Te;++ie)if(ke(this.lines[ie]))return!0}};function Vo(ie){this.children=ie;for(var de=0,ke=0,Te=0;Te<ie.length;++Te){var Re=ie[Te];de+=Re.chunkSize(),ke+=Re.height,Re.parent=this}this.size=de,this.height=ke,this.parent=null}Vo.prototype={chunkSize:function(){return this.size},removeInner:function(ie,de){this.size-=de;for(var ke=0;ke<this.children.length;++ke){var Te=this.children[ke],Re=Te.chunkSize();if(ie<Re){var st=Math.min(de,Re-ie),Ct=Te.height;if(Te.removeInner(ie,st),this.height-=Ct-Te.height,Re==st&&(this.children.splice(ke--,1),Te.parent=null),(de-=st)==0)break;ie=0}else ie-=Re}if(this.size-de<25&&(this.children.length>1||!(this.children[0]instanceof Ca))){var Bt=[];this.collapse(Bt),this.children=[new Ca(Bt)],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,ke){this.size+=de.length,this.height+=ke;for(var Te=0;Te<this.children.length;++Te){var Re=this.children[Te],st=Re.chunkSize();if(ie<=st){if(Re.insertInner(ie,de,ke),Re.lines&&Re.lines.length>50){for(var Ct=Re.lines.length%25+25,Bt=Ct;Bt<Re.lines.length;){var kt=new Ca(Re.lines.slice(Bt,Bt+=25));Re.height-=kt.height,this.children.splice(++Te,0,kt),kt.parent=this}Re.lines=Re.lines.slice(0,Ct),this.maybeSpill()}break}ie-=st}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var de=ie.children.splice(ie.children.length-5,5),ke=new Vo(de);if(ie.parent){ie.size-=ke.size,ie.height-=ke.height;var Re=dt(ie.parent.children,ie);ie.parent.children.splice(Re+1,0,ke)}else{var Te=new Vo(ie.children);Te.parent=ie,ie.children=[Te,ke],ie=Te}ke.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,de,ke){for(var Te=0;Te<this.children.length;++Te){var Re=this.children[Te],st=Re.chunkSize();if(ie<st){var Ct=Math.min(de,st-ie);if(Re.iterN(ie,Ct,ke))return!0;if((de-=Ct)==0)break;ie=0}else ie-=st}}};var vs=function(ie,de,ke){if(ke)for(var Te in ke)ke.hasOwnProperty(Te)&&(this[Te]=ke[Te]);this.doc=ie,this.node=de};vs.prototype.clear=function(){var ie=this.doc.cm,de=this.line.widgets,ke=this.line,Te=Ht(ke);if(!(Te==null||!de)){for(var Re=0;Re<de.length;++Re)de[Re]==this&&de.splice(Re--,1);de.length||(ke.widgets=null);var st=tl(this);Zn(ke,Math.max(0,ke.height-st)),ie&&(vn(ie,function(){gl(ie,ke,-st),Mo(ie,Te,"widget")}),kr(ie,"lineWidgetCleared",ie,this,Te))}},vs.prototype.changed=function(){var ie=this,de=this.height,ke=this.doc.cm,Te=this.line;this.height=null;var Re=tl(this)-de;Re&&(qn(this.doc,Te)||Zn(Te,Te.height+Re),ke&&vn(ke,function(){ke.curOp.forceUpdate=!0,gl(ke,Te,Re),kr(ke,"lineWidgetChanged",ke,ie,Ht(Te))}))},Cn(vs);function gl(ie,de,ke){ro(de)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&Ed(ie,ke)}function gu(ie,de,ke,Te){var Re=new vs(ie,ke,Te),st=ie.cm;return st&&Re.noHScroll&&(st.display.alignWidgets=!0),us(ie,de,"widget",function(Ct){var Bt=Ct.widgets||(Ct.widgets=[]);if(Re.insertAt==null?Bt.push(Re):Bt.splice(Math.min(Bt.length-1,Math.max(0,Re.insertAt)),0,Re),Re.line=Ct,st&&!qn(ie,Ct)){var kt=ro(Ct)<ie.scrollTop;Zn(Ct,Ct.height+tl(Re)),kt&&Ed(st,Re.height),st.curOp.forceUpdate=!0}return!0}),st&&kr(st,"lineWidgetAdded",st,Re,typeof de=="number"?de:Ht(de)),Re}var cf=0,hn=function(ie,de){this.lines=[],this.type=de,this.doc=ie,this.id=++cf};hn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,de=ie&&!ie.curOp;if(de&&fl(ie),on(this,"clear")){var ke=this.find();ke&&kr(this,"clear",ke.from,ke.to)}for(var Te=null,Re=null,st=0;st<this.lines.length;++st){var Ct=this.lines[st],Bt=Ni(Ct.markedSpans,this);ie&&!this.collapsed?Mo(ie,Ht(Ct),"text"):ie&&(Bt.to!=null&&(Re=Ht(Ct)),Bt.from!=null&&(Te=Ht(Ct))),Ct.markedSpans=Qr(Ct.markedSpans,Bt),Bt.from==null&&this.collapsed&&!qn(this.doc,Ct)&&ie&&Zn(Ct,Uu(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var kt=0;kt<this.lines.length;++kt){var Jt=ei(this.lines[kt]),Pn=Do(Jt);Pn>ie.display.maxLineLength&&(ie.display.maxLine=Jt,ie.display.maxLineLength=Pn,ie.display.maxLineChanged=!0)}Te!=null&&ie&&this.collapsed&&xa(ie,Te,Re+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,Te,Re),de&&bc(ie),this.parent&&this.parent.clear()}},hn.prototype.find=function(ie,de){ie==null&&this.type=="bookmark"&&(ie=1);for(var ke,Te,Re=0;Re<this.lines.length;++Re){var st=this.lines[Re],Ct=Ni(st.markedSpans,this);if(Ct.from!=null&&(ke=rn(de?st:Ht(st),Ct.from),ie==-1))return ke;if(Ct.to!=null&&(Te=rn(de?st:Ht(st),Ct.to),ie==1))return Te}return ke&&{from:ke,to:Te}},hn.prototype.changed=function(){var ie=this,de=this.find(-1,!0),ke=this,Te=this.doc.cm;!de||!Te||vn(Te,function(){var Re=de.line,st=Ht(de.line),Ct=vc(Te,st);if(Ct&&(As(Ct),Te.curOp.selectionChanged=Te.curOp.forceUpdate=!0),Te.curOp.updateMaxLine=!0,!qn(ke.doc,Re)&&ke.height!=null){var Bt=ke.height;ke.height=null;var kt=tl(ke)-Bt;kt&&Zn(Re,Re.height+kt)}kr(Te,"markerChanged",Te,ie)})},hn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var de=this.doc.cm.curOp;(!de.maybeHiddenMarkers||dt(de.maybeHiddenMarkers,this)==-1)&&(de.maybeUnhiddenMarkers||(de.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},hn.prototype.detachLine=function(ie){if(this.lines.splice(dt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var de=this.doc.cm.curOp;(de.maybeHiddenMarkers||(de.maybeHiddenMarkers=[])).push(this)}},Cn(hn);function Cc(ie,de,ke,Te,Re){if(Te&&Te.shared)return hf(ie,de,ke,Te,Re);if(ie.cm&&!ie.cm.curOp)return Wn(ie.cm,Cc)(ie,de,ke,Te,Re);var st=new hn(ie,Re),Ct=bn(de,ke);if(Te&&yt(Te,st,!1),Ct>0||Ct==0&&st.clearWhenEmpty!==!1)return st;if(st.replacedWith&&(st.collapsed=!0,st.widgetNode=je("span",[st.replacedWith],"CodeMirror-widget"),Te.handleMouseEvents||st.widgetNode.setAttribute("cm-ignore-events","true"),Te.insertLeft&&(st.widgetNode.insertLeft=!0)),st.collapsed){if(si(ie,de.line,de,ke,st)||de.line!=ke.line&&si(ie,ke.line,de,ke,st))throw new Error("Inserting collapsed marker partially overlapping an existing one");On()}st.addToHistory&&Ho(ie,{from:de,to:ke,origin:"markText"},ie.sel,NaN);var Bt=de.line,kt=ie.cm,Jt;if(ie.iter(Bt,ke.line+1,function(qt){kt&&st.collapsed&&!kt.options.lineWrapping&&ei(qt)==kt.display.maxLine&&(Jt=!0),st.collapsed&&Bt!=de.line&&Zn(qt,0),Xi(qt,new pi(st,Bt==de.line?de.ch:null,Bt==ke.line?ke.ch:null)),++Bt}),st.collapsed&&ie.iter(de.line,ke.line+1,function(qt){qn(ie,qt)&&Zn(qt,0)}),st.clearOnEnter&&Rt(st,"beforeCursorEnter",function(){return st.clear()}),st.readOnly&&(Mi(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),st.collapsed&&(st.id=++cf,st.atomic=!0),kt){if(Jt&&(kt.curOp.updateMaxLine=!0),st.collapsed)xa(kt,de.line,ke.line+1);else if(st.className||st.startStyle||st.endStyle||st.css||st.attributes||st.title)for(var Pn=de.line;Pn<=ke.line;Pn++)Mo(kt,Pn,"text");st.atomic&&Wl(kt.doc),kr(kt,"markerAdded",kt,st)}return st}var Xu=function(ie,de){this.markers=ie,this.primary=de;for(var ke=0;ke<ie.length;++ke)ie[ke].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)},Cn(Xu);function hf(ie,de,ke,Te,Re){Te=yt(Te),Te.shared=!1;var st=[Cc(ie,de,ke,Te,Re)],Ct=st[0],Bt=Te.widgetNode;return is(ie,function(kt){Bt&&(Te.widgetNode=Bt.cloneNode(!0)),st.push(Cc(kt,Tn(kt,de),Tn(kt,ke),Te,Re));for(var Jt=0;Jt<kt.linked.length;++Jt)if(kt.linked[Jt].isParent)return;Ct=wt(st)}),new Xu(st,Ct)}function gh(ie){return ie.findMarks(rn(ie.first,0),ie.clipPos(rn(ie.lastLine())),function(de){return de.parent})}function Qc(ie,de){for(var ke=0;ke<de.length;ke++){var Te=de[ke],Re=Te.find(),st=ie.clipPos(Re.from),Ct=ie.clipPos(Re.to);if(bn(st,Ct)){var Bt=Cc(ie,st,Ct,Te.primary,Te.primary.type);Te.markers.push(Bt),Bt.parent=Te}}}function Md(ie){for(var de=function(Te){var Re=ie[Te],st=[Re.primary.doc];is(Re.primary.doc,function(kt){return st.push(kt)});for(var Ct=0;Ct<Re.markers.length;Ct++){var Bt=Re.markers[Ct];dt(st,Bt.doc)==-1&&(Bt.parent=null,Re.markers.splice(Ct--,1))}},ke=0;ke<ie.length;ke++)de(ke)}var Vp=0,Ls=function(ie,de,ke,Te,Re){if(!(this instanceof Ls))return new Ls(ie,de,ke,Te,Re);ke==null&&(ke=0),Vo.call(this,[new Ca([new Qi("",null)])]),this.first=ke,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ke;var st=rn(ke,0);this.sel=Co(st),this.history=new Bi(null),this.id=++Vp,this.modeOption=de,this.lineSep=Te,this.direction=Re=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),wa(this,{from:st,to:st,text:ie}),va(this,Co(st),ft)};Ls.prototype=xe(Vo.prototype,{constructor:Ls,iter:function(ie,de,ke){ke?this.iterN(ie-this.first,de-ie,ke):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,de){for(var ke=0,Te=0;Te<de.length;++Te)ke+=de[Te].height;this.insertInner(ie-this.first,de,ke)},remove:function(ie,de){this.removeInner(ie-this.first,de)},getValue:function(ie){var de=Nn(this,this.first,this.first+this.size);return ie===!1?de:de.join(ie||this.lineSeparator())},setValue:Rn(function(ie){var de=rn(this.first,0),ke=this.first+this.size-1;Za(this,{from:de,to:rn(ke,cn(this,ke).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Yc(this.cm,0,0),va(this,Co(de),ft)}),replaceRange:function(ie,de,ke,Te){de=Tn(this,de),ke=ke?Tn(this,ke):de,Vu(this,ie,de,ke,Te)},getRange:function(ie,de,ke){var Te=xn(this,Tn(this,ie),Tn(this,de));return ke===!1?Te:Te.join(ke||this.lineSeparator())},getLine:function(ie){var de=this.getLineHandle(ie);return de&&de.text},getLineHandle:function(ie){if(Kn(this,ie))return cn(this,ie)},getLineNumber:function(ie){return Ht(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=cn(this,ie)),ei(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Tn(this,ie)},getCursor:function(ie){var de=this.sel.primary(),ke;return ie==null||ie=="head"?ke=de.head:ie=="anchor"?ke=de.anchor:ie=="end"||ie=="to"||ie===!1?ke=de.to():ke=de.from(),ke},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Rn(function(ie,de,ke){Qa(this,Tn(this,typeof ie=="number"?rn(ie,de||0):ie),null,ke)}),setSelection:Rn(function(ie,de,ke){Qa(this,Tn(this,ie),Tn(this,de||ie),ke)}),extendSelection:Rn(function(ie,de,ke){ta(this,Tn(this,ie),de&&Tn(this,de),ke)}),extendSelections:Rn(function(ie,de){aa(this,Gn(this,ie),de)}),extendSelectionsBy:Rn(function(ie,de){var ke=bt(this.sel.ranges,ie);aa(this,Gn(this,ke),de)}),setSelections:Rn(function(ie,de,ke){if(ie.length){for(var Te=[],Re=0;Re<ie.length;Re++)Te[Re]=new ii(Tn(this,ie[Re].anchor),Tn(this,ie[Re].head));de==null&&(de=Math.min(ie.length-1,this.sel.primIndex)),va(this,yo(this.cm,Te,de),ke)}}),addSelection:Rn(function(ie,de,ke){var Te=this.sel.ranges.slice(0);Te.push(new ii(Tn(this,ie),Tn(this,de||ie))),va(this,yo(this.cm,Te,Te.length-1),ke)}),getSelection:function(ie){for(var de=this.sel.ranges,ke,Te=0;Te<de.length;Te++){var Re=xn(this,de[Te].from(),de[Te].to());ke=ke?ke.concat(Re):Re}return ie===!1?ke:ke.join(ie||this.lineSeparator())},getSelections:function(ie){for(var de=[],ke=this.sel.ranges,Te=0;Te<ke.length;Te++){var Re=xn(this,ke[Te].from(),ke[Te].to());ie!==!1&&(Re=Re.join(ie||this.lineSeparator())),de[Te]=Re}return de},replaceSelection:function(ie,de,ke){for(var Te=[],Re=0;Re<this.sel.ranges.length;Re++)Te[Re]=ie;this.replaceSelections(Te,de,ke||"+input")},replaceSelections:Rn(function(ie,de,ke){for(var Te=[],Re=this.sel,st=0;st<Re.ranges.length;st++){var Ct=Re.ranges[st];Te[st]={from:Ct.from(),to:Ct.to(),text:this.splitLines(ie[st]),origin:ke}}for(var Bt=de&&de!="end"&&xo(this,Te,de),kt=Te.length-1;kt>=0;kt--)Za(this,Te[kt]);Bt?No(this,Bt):this.cm&&Sc(this.cm)}),undo:Rn(function(){Ul(this,"undo")}),redo:Rn(function(){Ul(this,"redo")}),undoSelection:Rn(function(){Ul(this,"undo",!0)}),redoSelection:Rn(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,ke=0,Te=0;Te<ie.done.length;Te++)ie.done[Te].ranges||++de;for(var Re=0;Re<ie.undone.length;Re++)ie.undone[Re].ranges||++ke;return{undo:de,redo:ke}},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:Rn(function(ie,de,ke){return us(this,ie,"gutter",function(Te){var Re=Te.gutterMarkers||(Te.gutterMarkers={});return Re[de]=ke,!ke&&Me(Re)&&(Te.gutterMarkers=null),!0})}),clearGutter:Rn(function(ie){var de=this;this.iter(function(ke){ke.gutterMarkers&&ke.gutterMarkers[ie]&&us(de,ke,"gutter",function(){return ke.gutterMarkers[ie]=null,Me(ke.gutterMarkers)&&(ke.gutterMarkers=null),!0})})}),lineInfo:function(ie){var de;if(typeof ie=="number"){if(!Kn(this,ie)||(de=ie,ie=cn(this,ie),!ie))return null}else if(de=Ht(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:Rn(function(ie,de,ke){return us(this,ie,de=="gutter"?"gutter":"class",function(Te){var Re=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass";if(!Te[Re])Te[Re]=ke;else{if(be(ke).test(Te[Re]))return!1;Te[Re]+=" "+ke}return!0})}),removeLineClass:Rn(function(ie,de,ke){return us(this,ie,de=="gutter"?"gutter":"class",function(Te){var Re=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass",st=Te[Re];if(st)if(ke==null)Te[Re]=null;else{var Ct=st.match(be(ke));if(!Ct)return!1;var Bt=Ct.index+Ct[0].length;Te[Re]=st.slice(0,Ct.index)+(!Ct.index||Bt==st.length?"":" ")+st.slice(Bt)||null}else return!1;return!0})}),addLineWidget:Rn(function(ie,de,ke){return gu(this,ie,de,ke)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,de,ke){return Cc(this,Tn(this,ie),Tn(this,de),ke,ke&&ke.type||"range")},setBookmark:function(ie,de){var ke={replacedWith:de&&(de.nodeType==null?de.widget:de),insertLeft:de&&de.insertLeft,clearWhenEmpty:!1,shared:de&&de.shared,handleMouseEvents:de&&de.handleMouseEvents};return ie=Tn(this,ie),Cc(this,ie,ie,ke,"bookmark")},findMarksAt:function(ie){ie=Tn(this,ie);var de=[],ke=cn(this,ie.line).markedSpans;if(ke)for(var Te=0;Te<ke.length;++Te){var Re=ke[Te];(Re.from==null||Re.from<=ie.ch)&&(Re.to==null||Re.to>=ie.ch)&&de.push(Re.marker.parent||Re.marker)}return de},findMarks:function(ie,de,ke){ie=Tn(this,ie),de=Tn(this,de);var Te=[],Re=ie.line;return this.iter(ie.line,de.line+1,function(st){var Ct=st.markedSpans;if(Ct)for(var Bt=0;Bt<Ct.length;Bt++){var kt=Ct[Bt];!(kt.to!=null&&Re==ie.line&&ie.ch>=kt.to||kt.from==null&&Re!=ie.line||kt.from!=null&&Re==de.line&&kt.from>=de.ch)&&(!ke||ke(kt.marker))&&Te.push(kt.marker.parent||kt.marker)}++Re}),Te},getAllMarks:function(){var ie=[];return this.iter(function(de){var ke=de.markedSpans;if(ke)for(var Te=0;Te<ke.length;++Te)ke[Te].from!=null&&ie.push(ke[Te].marker)}),ie},posFromIndex:function(ie){var de,ke=this.first,Te=this.lineSeparator().length;return this.iter(function(Re){var st=Re.text.length+Te;if(st>ie)return de=ie,!0;ie-=st,++ke}),Tn(this,rn(ke,de))},indexFromPos:function(ie){ie=Tn(this,ie);var de=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ke=this.lineSeparator().length;return this.iter(this.first,ie.line,function(Te){de+=Te.text.length+ke}),de},copy:function(ie){var de=new Ls(Nn(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,ke=this.first+this.size;ie.from!=null&&ie.from>de&&(de=ie.from),ie.to!=null&&ie.to<ke&&(ke=ie.to);var Te=new Ls(Nn(this,de,ke),ie.mode||this.modeOption,de,this.lineSep,this.direction);return ie.sharedHist&&(Te.history=this.history),(this.linked||(this.linked=[])).push({doc:Te,sharedHist:ie.sharedHist}),Te.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],Qc(Te,gh(this)),Te},unlinkDoc:function(ie){if(ie instanceof ia&&(ie=ie.doc),this.linked)for(var de=0;de<this.linked.length;++de){var ke=this.linked[de];if(ke.doc==ie){this.linked.splice(de,1),ie.unlinkDoc(this),Md(gh(this));break}}if(ie.history==this.history){var Te=[ie.id];is(ie,function(Re){return Te.push(Re.id)},!0),ie.history=new Bi(null),ie.history.done=ps(this.history.done,Te),ie.history.undone=ps(this.history.undone,Te)}},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):Cr(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Rn(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(de){return de.order=null}),this.cm&&to(this.cm))})}),Ls.prototype.eachLine=Ls.prototype.iter;var Vh=0;function Ld(ie){var de=this;if(Yf(de),!(Qt(de,ie)||nl(de.display,ie))){Bn(ie),Ne&&(Vh=+new Date);var ke=rl(de,ie,!0),Te=ie.dataTransfer.files;if(!(!ke||de.isReadOnly()))if(Te&&Te.length&&window.FileReader&&window.File)for(var Re=Te.length,st=Array(Re),Ct=0,Bt=function(){++Ct==Re&&Wn(de,function(){ke=Tn(de.doc,ke);var zn={from:ke,to:ke,text:de.doc.splitLines(st.filter(function(yr){return yr!=null}).join(de.doc.lineSeparator())),origin:"paste"};Za(de.doc,zn),No(de.doc,Co(Tn(de.doc,ke),Tn(de.doc,qo(zn))))})()},kt=function(zn,yr){if(de.options.allowDropFileTypes&&dt(de.options.allowDropFileTypes,zn.type)==-1){Bt();return}var Lr=new FileReader;Lr.onerror=function(){return Bt()},Lr.onload=function(){var Hr=Lr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Hr)){Bt();return}st[yr]=Hr,Bt()},Lr.readAsText(zn)},Jt=0;Jt<Te.length;Jt++)kt(Te[Jt],Jt);else{if(de.state.draggingText&&de.doc.sel.contains(ke)>-1){de.state.draggingText(ie),setTimeout(function(){return de.display.input.focus()},20);return}try{var Pn=ie.dataTransfer.getData("Text");if(Pn){var qt;if(de.state.draggingText&&!de.state.draggingText.copy&&(qt=de.listSelections()),ms(de.doc,Co(ke,ke)),qt)for(var Vn=0;Vn<qt.length;++Vn)Vu(de.doc,"",qt[Vn].anchor,qt[Vn].head,"drag");de.replaceSelection(Pn,"around","paste"),de.display.input.focus()}}catch(zn){}}}}function Xh(ie,de){if(Ne&&(!ie.state.draggingText||+new Date-Vh<100)){cr(de);return}if(!(Qt(ie,de)||nl(ie.display,de))&&(de.dataTransfer.setData("Text",ie.getSelection()),de.dataTransfer.effectAllowed="copyMove",de.dataTransfer.setDragImage&&!De)){var ke=Oe("img",null,null,"position: fixed; left: 0; top: 0;");ke.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ye&&(ke.width=ke.height=1,ie.display.wrapper.appendChild(ke),ke._top=ke.offsetTop),de.dataTransfer.setDragImage(ke,0,0),ye&&ke.parentNode.removeChild(ke)}}function df(ie,de){var ke=rl(ie,de);if(ke){var Te=document.createDocumentFragment();Zo(ie,ke,Te),ie.display.dragCursor||(ie.display.dragCursor=Oe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),Fe(ie.display.dragCursor,Te)}}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"),ke=[],Te=0;Te<de.length;Te++){var Re=de[Te].CodeMirror;Re&&ke.push(Re)}ke.length&&ke[0].operation(function(){for(var st=0;st<ke.length;st++)ie(ke[st])})}}var Td=!1;function Gl(){Td||(mh(),Td=!0)}function mh(){var ie;Rt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,ff(pf)},100))}),Rt(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 ke,Te,Re,st,Ct=0;Ct<de.length-1;Ct++){var Bt=de[Ct];if(/^(cmd|meta|m)$/i.test(Bt))st=!0;else if(/^a(lt)?$/i.test(Bt))ke=!0;else if(/^(c|ctrl|control)$/i.test(Bt))Te=!0;else if(/^s(hift)?$/i.test(Bt))Re=!0;else throw new Error("Unrecognized modifier name: "+Bt)}return ke&&(ie="Alt-"+ie),Te&&(ie="Ctrl-"+ie),st&&(ie="Cmd-"+ie),Re&&(ie="Shift-"+ie),ie}function Dd(ie){var de={};for(var ke in ie)if(ie.hasOwnProperty(ke)){var Te=ie[ke];if(/^(name|fallthrough|(de|at)tach)$/.test(ke))continue;if(Te=="..."){delete ie[ke];continue}for(var Re=bt(ke.split(" "),Fd),st=0;st<Re.length;st++){var Ct=void 0,Bt=void 0;st==Re.length-1?(Bt=Re.join(" "),Ct=Te):(Bt=Re.slice(0,st+1).join(" "),Ct="...");var kt=de[Bt];if(!kt)de[Bt]=Ct;else if(kt!=Ct)throw new Error("Inconsistent bindings for "+Bt)}delete ie[ke]}for(var Jt in de)ie[Jt]=de[Jt];return ie}function Zl(ie,de,ke,Te){de=Ec(de);var Re=de.call?de.call(ie,Te):de[ie];if(Re===!1)return"nothing";if(Re==="...")return"multi";if(Re!=null&&ke(Re))return"handled";if(de.fallthrough){if(Object.prototype.toString.call(de.fallthrough)!="[object Array]")return Zl(ie,de.fallthrough,ke,Te);for(var st=0;st<de.fallthrough.length;st++){var Ct=Zl(ie,de.fallthrough[st],ke,Te);if(Ct)return Ct}}}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,ke){var Te=ie;return de.altKey&&Te!="Alt"&&(ie="Alt-"+ie),(pe?de.metaKey:de.ctrlKey)&&Te!="Ctrl"&&(ie="Ctrl-"+ie),(pe?de.ctrlKey:de.metaKey)&&Te!="Mod"&&(ie="Cmd-"+ie),!ke&&de.shiftKey&&Te!="Shift"&&(ie="Shift-"+ie),ie}function kd(ie,de){if(ye&&ie.keyCode==34&&ie.char)return!1;var ke=Lu[ie.keyCode];return ke==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ke=ie.code),Od(ke,ie,de))}function Ec(ie){return typeof ie=="string"?ml[ie]:ie}function ol(ie,de){for(var ke=ie.doc.sel.ranges,Te=[],Re=0;Re<ke.length;Re++){for(var st=de(ke[Re]);Te.length&&bn(st.from,wt(Te).to)<=0;){var Ct=Te.pop();if(bn(Ct.from,st.from)<0){st.from=Ct.from;break}}Te.push(st)}vn(ie,function(){for(var Bt=Te.length-1;Bt>=0;Bt--)Vu(ie.doc,"",Te[Bt].from,Te[Bt].to,"+delete");Sc(ie)})}function Nd(ie,de,ke){var Te=Ve(ie.text,de+ke,ke);return Te<0||Te>ie.text.length?null:Te}function cs(ie,de,ke){var Te=Nd(ie,de.ch,ke);return Te==null?null:new rn(de.line,Te,ke<0?"after":"before")}function na(ie,de,ke,Te,Re){if(ie){de.doc.direction=="rtl"&&(Re=-Re);var st=Kt(ke,de.doc.direction);if(st){var Ct=Re<0?wt(st):st[0],Bt=Re<0==(Ct.level==1),kt=Bt?"after":"before",Jt;if(Ct.level>0||de.doc.direction=="rtl"){var Pn=zu(de,ke);Jt=Re<0?ke.text.length-1:0;var qt=jl(de,Pn,Jt).top;Jt=Qe(function(Vn){return jl(de,Pn,Vn).top==qt},Re<0==(Ct.level==1)?Ct.from:Ct.to-1,Jt),kt=="before"&&(Jt=Nd(ke,Jt,1))}else Jt=Re<0?Ct.to:Ct.from;return new rn(Te,Jt,kt)}}return new rn(Te,Re<0?ke.text.length:0,Re<0?"before":"after")}function Fa(ie,de,ke,Te){var Re=Kt(de,ie.doc.direction);if(!Re)return cs(de,ke,Te);ke.ch>=de.text.length?(ke.ch=de.text.length,ke.sticky="before"):ke.ch<=0&&(ke.ch=0,ke.sticky="after");var st=pt(Re,ke.ch,ke.sticky),Ct=Re[st];if(ie.doc.direction=="ltr"&&Ct.level%2==0&&(Te>0?Ct.to>ke.ch:Ct.from<ke.ch))return cs(de,ke,Te);var Bt=function(oi,Fi){return Nd(de,oi instanceof rn?oi.ch:oi,Fi)},kt,Jt=function(oi){return ie.options.lineWrapping?(kt=kt||zu(ie,de),fh(ie,de,kt,oi)):{begin:0,end:de.text.length}},Pn=Jt(ke.sticky=="before"?Bt(ke,-1):ke.ch);if(ie.doc.direction=="rtl"||Ct.level==1){var qt=Ct.level==1==Te<0,Vn=Bt(ke,qt?1:-1);if(Vn!=null&&(qt?Vn<=Ct.to&&Vn<=Pn.end:Vn>=Ct.from&&Vn>=Pn.begin)){var zn=qt?"before":"after";return new rn(ke.line,Vn,zn)}}var yr=function(oi,Fi,xi){for(var Wi=function($a,Is){return Is?new rn(ke.line,Bt($a,1),"before"):new rn(ke.line,$a,"after")};oi>=0&&oi<Re.length;oi+=Fi){var So=Re[oi],vi=Fi>0==(So.level!=1),Bo=vi?xi.begin:Bt(xi.end,-1);if(So.from<=Bo&&Bo<So.to||(Bo=vi?So.from:Bt(So.to,-1),xi.begin<=Bo&&Bo<xi.end))return Wi(Bo,vi)}},Lr=yr(st+Te,Te,Pn);if(Lr)return Lr;var Hr=Te>0?Pn.end:Bt(Pn.begin,-1);return Hr!=null&&!(Te>0&&Hr==de.text.length)&&(Lr=yr(Te>0?0:Re.length-1,Te,Jt(Hr)),Lr)?Lr:null}var Ns={selectAll:ra,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),ft)},killLine:function(ie){return ol(ie,function(de){if(de.empty()){var ke=cn(ie.doc,de.head.line).text.length;return de.head.ch==ke&&de.head.line<ie.lastLine()?{from:de.head,to:rn(de.head.line+1,0)}:{from:de.head,to:rn(de.head.line,ke)}}else return{from:de.from(),to:de.to()}})},deleteLine:function(ie){return ol(ie,function(de){return{from:rn(de.from().line,0),to:Tn(ie.doc,rn(de.to().line+1,0))}})},delLineLeft:function(ie){return ol(ie,function(de){return{from:rn(de.from().line,0),to:de.from()}})},delWrappedLineLeft:function(ie){return ol(ie,function(de){var ke=ie.charCoords(de.head,"div").top+5,Te=ie.coordsChar({left:0,top:ke},"div");return{from:Te,to:de.from()}})},delWrappedLineRight:function(ie){return ol(ie,function(de){var ke=ie.charCoords(de.head,"div").top+5,Te=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ke},"div");return{from:de.from(),to:Te}})},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(rn(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(rn(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 ke=ie.cursorCoords(de.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ke},"div")},vt)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(de){var ke=ie.cursorCoords(de.head,"div").top+5;return ie.coordsChar({left:0,top:ke},"div")},vt)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(de){var ke=ie.cursorCoords(de.head,"div").top+5,Te=ie.coordsChar({left:0,top:ke},"div");return Te.ch<ie.getLine(Te.line).search(/\S/)?Bd(ie,de.head):Te},vt)},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=[],ke=ie.listSelections(),Te=ie.options.tabSize,Re=0;Re<ke.length;Re++){var st=ke[Re].from(),Ct=qe(ie.getLine(st.line),st.ch,Te);de.push(Zt(Te-Ct%Te))}ie.replaceSelections(de)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return vn(ie,function(){for(var de=ie.listSelections(),ke=[],Te=0;Te<de.length;Te++)if(de[Te].empty()){var Re=de[Te].head,st=cn(ie.doc,Re.line).text;if(st){if(Re.ch==st.length&&(Re=new rn(Re.line,Re.ch-1)),Re.ch>0)Re=new rn(Re.line,Re.ch+1),ie.replaceRange(st.charAt(Re.ch-1)+st.charAt(Re.ch-2),rn(Re.line,Re.ch-2),Re,"+transpose");else if(Re.line>ie.doc.first){var Ct=cn(ie.doc,Re.line-1).text;Ct&&(Re=new rn(Re.line,1),ie.replaceRange(st.charAt(0)+ie.doc.lineSeparator()+Ct.charAt(Ct.length-1),rn(Re.line-1,Ct.length-1),Re,"+transpose"))}}ke.push(new ii(Re,Re))}ie.setSelections(ke)})},newlineAndIndent:function(ie){return vn(ie,function(){for(var de=ie.listSelections(),ke=de.length-1;ke>=0;ke--)ie.replaceRange(ie.doc.lineSeparator(),de[ke].anchor,de[ke].head,"+input");de=ie.listSelections();for(var Te=0;Te<de.length;Te++)ie.indentLine(de[Te].from().line,null,!0);Sc(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function nu(ie,de){var ke=cn(ie.doc,de),Te=ei(ke);return Te!=ke&&(de=Ht(Te)),na(!0,ie,Te,de,1)}function ru(ie,de){var ke=cn(ie.doc,de),Te=Ji(ke);return Te!=ke&&(de=Ht(Te)),na(!0,ie,ke,de,-1)}function Bd(ie,de){var ke=nu(ie,de.line),Te=cn(ie.doc,ke.line),Re=Kt(Te,ie.doc.direction);if(!Re||Re[0].level==0){var st=Math.max(ke.ch,Te.text.search(/\S/)),Ct=de.line==ke.line&&de.ch<=st&&de.ch;return rn(ke.line,Ct?0:st,ke.sticky)}return ke}function Ac(ie,de,ke){if(typeof de=="string"&&(de=Ns[de],!de))return!1;ie.display.input.ensurePolled();var Te=ie.display.shift,Re=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ke&&(ie.display.shift=!1),Re=de(ie)!=xt}finally{ie.display.shift=Te,ie.state.suppressEdits=!1}return Re}function Yh(ie,de,ke){for(var Te=0;Te<ie.state.keyMaps.length;Te++){var Re=Zl(de,ie.state.keyMaps[Te],ke,ie);if(Re)return Re}return ie.options.extraKeys&&Zl(de,ie.options.extraKeys,ke,ie)||Zl(de,ie.options.keyMap,ke,ie)}var mu=new ot;function ac(ie,de,ke,Te){var Re=ie.state.keySeq;if(Re){if(yh(de))return"handled";if(/\'$/.test(de)?ie.state.keySeq=null:mu.set(50,function(){ie.state.keySeq==Re&&(ie.state.keySeq=null,ie.display.input.reset())}),Jf(ie,Re+" "+de,ke,Te))return!0}return Jf(ie,de,ke,Te)}function Jf(ie,de,ke,Te){var Re=Yh(ie,de,Te);return Re=="multi"&&(ie.state.keySeq=de),Re=="handled"&&kr(ie,"keyHandled",ie,de,ke),(Re=="handled"||Re=="multi")&&(Bn(ke),fa(ie)),!!Re}function Qf(ie,de){var ke=kd(de,!0);return ke?de.shiftKey&&!ie.state.keySeq?ac(ie,"Shift-"+ke,de,function(Te){return Ac(ie,Te,!0)})||ac(ie,ke,de,function(Te){if(typeof Te=="string"?/^go[A-Z]/.test(Te):Te.motion)return Ac(ie,Te)}):ac(ie,ke,de,function(Te){return Ac(ie,Te)}):!1}function _f(ie,de,ke){return ac(ie,"'"+ke+"'",de,function(Te){return Ac(ie,Te,!0)})}var Jh=null;function Xp(ie){var de=this;if(!(ie.target&&ie.target!=de.display.input.getField())&&(de.curOp.focus=Ue(),!Qt(de,ie))){Ne&&ge<11&&ie.keyCode==27&&(ie.returnValue=!1);var ke=ie.keyCode;de.display.shift=ke==16||ie.shiftKey;var Te=Qf(de,ie);ye&&(Jh=Te?ke:null,!Te&&ke==88&&!wi&&(ae?ie.metaKey:ie.ctrlKey)&&de.replaceSelection("",null,"cut")),He&&!ae&&!Te&&ke==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ke==18&&!/\bCodeMirror-crosshair\b/.test(de.display.lineDiv.className)&&Yp(de)}}function Yp(ie){var de=ie.display.lineDiv;$e(de,"CodeMirror-crosshair");function ke(Te){(Te.keyCode==18||!Te.altKey)&&(Ie(de,"CodeMirror-crosshair"),sn(document,"keyup",ke),sn(document,"mouseover",ke))}Rt(document,"keyup",ke),Rt(document,"mouseover",ke)}function Jp(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Qt(this,ie)}function sc(ie){var de=this;if(!(ie.target&&ie.target!=de.display.input.getField())&&!(nl(de.display,ie)||Qt(de,ie)||ie.ctrlKey&&!ie.altKey||ae&&ie.metaKey)){var ke=ie.keyCode,Te=ie.charCode;if(ye&&ke==Jh){Jh=null,Bn(ie);return}if(!(ye&&(!ie.which||ie.which<10)&&Qf(de,ie))){var Re=String.fromCharCode(Te==null?ke:Te);Re!="\b"&&(_f(de,ie,Re)||de.display.input.onKeyPress(ie))}}}var om=400,Qp=function(ie,de,ke){this.time=ie,this.pos=de,this.button=ke};Qp.prototype.compare=function(ie,de,ke){return this.time+om>ie&&bn(de,this.pos)==0&&ke==this.button};var Id,Qh;function _p(ie,de){var ke=+new Date;return Qh&&Qh.compare(ke,ie,de)?(Id=Qh=null,"triple"):Id&&Id.compare(ke,ie,de)?(Qh=new Qp(ke,ie,de),Id=null,"double"):(Id=new Qp(ke,ie,de),Qh=null,"single")}function lc(ie){var de=this,ke=de.display;if(!(Qt(de,ie)||ke.activeTouch&&ke.input.supportsTouch())){if(ke.input.ensurePolled(),ke.shift=ie.shiftKey,nl(ke,ie)){ce||(ke.scroller.draggable=!1,setTimeout(function(){return ke.scroller.draggable=!0},100));return}if(!ep(de,ie)){var Te=rl(de,ie),Re=Dr(ie),st=Te?_p(Te,Re):"single";window.focus(),Re==1&&de.state.selectingText&&de.state.selectingText(ie),!(Te&&$p(de,Re,Te,st,ie))&&(Re==1?Te?am(de,Te,st,ie):Ar(ie)==ke.scroller&&Bn(ie):Re==2?(Te&&ta(de.doc,Te),setTimeout(function(){return ke.input.focus()},20)):Re==3&&(Ee?de.display.input.onContextMenu(ie):Ja(de)))}}}function $p(ie,de,ke,Te,Re){var st="Click";return Te=="double"?st="Double"+st:Te=="triple"&&(st="Triple"+st),st=(de==1?"Left":de==2?"Middle":"Right")+st,ac(ie,Od(st,Re),Re,function(Ct){if(typeof Ct=="string"&&(Ct=Ns[Ct]),!Ct)return!1;var Bt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Bt=Ct(ie,ke)!=xt}finally{ie.state.suppressEdits=!1}return Bt})}function $f(ie,de,ke){var Te=ie.getOption("configureMouse"),Re=Te?Te(ie,de,ke):{};if(Re.unit==null){var st=re?ke.shiftKey&&ke.metaKey:ke.altKey;Re.unit=st?"rectangle":de=="single"?"char":de=="double"?"word":"line"}return(Re.extend==null||ie.doc.extend)&&(Re.extend=ie.doc.extend||ke.shiftKey),Re.addNew==null&&(Re.addNew=ae?ke.metaKey:ke.ctrlKey),Re.moveOnDrag==null&&(Re.moveOnDrag=!(ae?ke.altKey:ke.ctrlKey)),Re}function am(ie,de,ke,Te){Ne?setTimeout(ut(Oa,ie),0):ie.curOp.focus=Ue();var Re=$f(ie,ke,Te),st=ie.doc.sel,Ct;ie.options.dragDrop&&Or&&!ie.isReadOnly()&&ke=="single"&&(Ct=st.contains(de))>-1&&(bn((Ct=st.ranges[Ct]).from(),de)<0||de.xRel>0)&&(bn(Ct.to(),de)>0||de.xRel<0)?qp(ie,Te,de,Re):n0(ie,Te,de,Re)}function qp(ie,de,ke,Te){var Re=ie.display,st=!1,Ct=Wn(ie,function(Jt){ce&&(Re.scroller.draggable=!1),ie.state.draggingText=!1,sn(Re.wrapper.ownerDocument,"mouseup",Ct),sn(Re.wrapper.ownerDocument,"mousemove",Bt),sn(Re.scroller,"dragstart",kt),sn(Re.scroller,"drop",Ct),st||(Bn(Jt),Te.addNew||ta(ie.doc,ke,null,null,Te.extend),ce&&!De||Ne&&ge==9?setTimeout(function(){Re.wrapper.ownerDocument.body.focus({preventScroll:!0}),Re.input.focus()},20):Re.input.focus())}),Bt=function(Jt){st=st||Math.abs(de.clientX-Jt.clientX)+Math.abs(de.clientY-Jt.clientY)>=10},kt=function(){return st=!0};ce&&(Re.scroller.draggable=!0),ie.state.draggingText=Ct,Ct.copy=!Te.moveOnDrag,Re.scroller.dragDrop&&Re.scroller.dragDrop(),Rt(Re.wrapper.ownerDocument,"mouseup",Ct),Rt(Re.wrapper.ownerDocument,"mousemove",Bt),Rt(Re.scroller,"dragstart",kt),Rt(Re.scroller,"drop",Ct),Ja(ie),setTimeout(function(){return Re.input.focus()},20)}function eg(ie,de,ke){if(ke=="char")return new ii(de,de);if(ke=="word")return ie.findWordAt(de);if(ke=="line")return new ii(rn(de.line,0),Tn(ie.doc,rn(de.line+1,0)));var Te=ke(ie,de);return new ii(Te.from,Te.to)}function n0(ie,de,ke,Te){var Re=ie.display,st=ie.doc;Bn(de);var Ct,Bt,kt=st.sel,Jt=kt.ranges;if(Te.addNew&&!Te.extend?(Bt=st.sel.contains(ke),Bt>-1?Ct=Jt[Bt]:Ct=new ii(ke,ke)):(Ct=st.sel.primary(),Bt=st.sel.primIndex),Te.unit=="rectangle")Te.addNew||(Ct=new ii(ke,ke)),ke=rl(ie,de,!0,!0),Bt=-1;else{var Pn=eg(ie,ke,Te.unit);Te.extend?Ct=Ku(Ct,Pn.anchor,Pn.head,Te.extend):Ct=Pn}Te.addNew?Bt==-1?(Bt=Jt.length,va(st,yo(ie,Jt.concat([Ct]),Bt),{scroll:!1,origin:"*mouse"})):Jt.length>1&&Jt[Bt].empty()&&Te.unit=="char"&&!Te.extend?(va(st,yo(ie,Jt.slice(0,Bt).concat(Jt.slice(Bt+1)),0),{scroll:!1,origin:"*mouse"}),kt=st.sel):pa(st,Bt,Ct,gt):(Bt=0,va(st,new qi([Ct],0),gt),kt=st.sel);var qt=ke;function Vn(xi){if(bn(qt,xi)!=0)if(qt=xi,Te.unit=="rectangle"){for(var Wi=[],So=ie.options.tabSize,vi=qe(cn(st,ke.line).text,ke.ch,So),Bo=qe(cn(st,xi.line).text,xi.ch,So),$a=Math.min(vi,Bo),Is=Math.max(vi,Bo),os=Math.min(ke.line,xi.line),Vl=Math.min(ie.lastLine(),Math.max(ke.line,xi.line));os<=Vl;os++){var vl=cn(st,os).text,Fs=Tt(vl,$a,So);$a==Is?Wi.push(new ii(rn(os,Fs),rn(os,Fs))):vl.length>Fs&&Wi.push(new ii(rn(os,Fs),rn(os,Tt(vl,Is,So))))}Wi.length||Wi.push(new ii(ke,ke)),va(st,yo(ie,kt.ranges.slice(0,Bt).concat(Wi),Bt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(xi)}else{var iu=Ct,al=eg(ie,xi,Te.unit),Ds=iu.anchor,sa;bn(al.anchor,Ds)>0?(sa=al.head,Ds=yn(iu.from(),al.anchor)):(sa=al.anchor,Ds=gn(iu.to(),al.head));var hs=kt.ranges.slice(0);hs[Bt]=sm(ie,new ii(Tn(st,Ds),sa)),va(st,yo(ie,hs,Bt),gt)}}var zn=Re.wrapper.getBoundingClientRect(),yr=0;function Lr(xi){var Wi=++yr,So=rl(ie,xi,!0,Te.unit=="rectangle");if(So)if(bn(So,qt)!=0){ie.curOp.focus=Ue(),Vn(So);var vi=Wo(Re,st);(So.line>=vi.to||So.line<vi.from)&&setTimeout(Wn(ie,function(){yr==Wi&&Lr(xi)}),150)}else{var Bo=xi.clientY<zn.top?-20:xi.clientY>zn.bottom?20:0;Bo&&setTimeout(Wn(ie,function(){yr==Wi&&(Re.scroller.scrollTop+=Bo,Lr(xi))}),50)}}function Hr(xi){ie.state.selectingText=!1,yr=1/0,xi&&(Bn(xi),Re.input.focus()),sn(Re.wrapper.ownerDocument,"mousemove",oi),sn(Re.wrapper.ownerDocument,"mouseup",Fi),st.history.lastSelOrigin=null}var oi=Wn(ie,function(xi){xi.buttons===0||!Dr(xi)?Hr(xi):Lr(xi)}),Fi=Wn(ie,Hr);ie.state.selectingText=Fi,Rt(Re.wrapper.ownerDocument,"mousemove",oi),Rt(Re.wrapper.ownerDocument,"mouseup",Fi)}function sm(ie,de){var ke=de.anchor,Te=de.head,Re=cn(ie.doc,ke.line);if(bn(ke,Te)==0&&ke.sticky==Te.sticky)return de;var st=Kt(Re);if(!st)return de;var Ct=pt(st,ke.ch,ke.sticky),Bt=st[Ct];if(Bt.from!=ke.ch&&Bt.to!=ke.ch)return de;var kt=Ct+(Bt.from==ke.ch==(Bt.level!=1)?0:1);if(kt==0||kt==st.length)return de;var Jt;if(Te.line!=ke.line)Jt=(Te.line-ke.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var Pn=pt(st,Te.ch,Te.sticky),qt=Pn-Ct||(Te.ch-ke.ch)*(Bt.level==1?-1:1);Pn==kt-1||Pn==kt?Jt=qt<0:Jt=qt>0}var Vn=st[kt+(Jt?-1:0)],zn=Jt==(Vn.level==1),yr=zn?Vn.from:Vn.to,Lr=zn?"after":"before";return ke.ch==yr&&ke.sticky==Lr?de:new ii(new rn(ke.line,yr,Lr),Te)}function qf(ie,de,ke,Te){var Re,st;if(de.touches)Re=de.touches[0].clientX,st=de.touches[0].clientY;else try{Re=de.clientX,st=de.clientY}catch(Vn){return!1}if(Re>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;Te&&Bn(de);var Ct=ie.display,Bt=Ct.lineDiv.getBoundingClientRect();if(st>Bt.bottom||!on(ie,ke))return er(de);st-=Bt.top-Ct.viewOffset;for(var kt=0;kt<ie.display.gutterSpecs.length;++kt){var Jt=Ct.gutters.childNodes[kt];if(Jt&&Jt.getBoundingClientRect().right>=Re){var Pn=En(ie.doc,st),qt=ie.display.gutterSpecs[kt];return Ft(ie,ke,ie,Pn,qt.className,de),er(de)}}}function ep(ie,de){return qf(ie,de,"gutterClick",!0)}function tp(ie,de){nl(ie.display,de)||lm(ie,de)||Qt(ie,de,"contextmenu")||Ee||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 ke(Te,Re,st,Ct){ie.defaults[Te]=Re,st&&(de[Te]=Ct?function(Bt,kt,Jt){Jt!=Sh&&st(Bt,kt,Jt)}:st)}ie.defineOption=ke,ie.Init=Sh,ke("value","",function(Te,Re){return Te.setValue(Re)},!0),ke("mode",null,function(Te,Re){Te.doc.modeOption=Re,Ui(Te)},!0),ke("indentUnit",2,Ui,!0),ke("indentWithTabs",!1),ke("smartIndent",!0),ke("tabSize",4,function(Te){Xo(Te),Ha(Te),xa(Te)},!0),ke("lineSeparator",null,function(Te,Re){if(Te.doc.lineSep=Re,!!Re){var st=[],Ct=Te.doc.first;Te.doc.iter(function(kt){for(var Jt=0;;){var Pn=kt.text.indexOf(Re,Jt);if(Pn==-1)break;Jt=Pn+Re.length,st.push(rn(Ct,Pn))}Ct++});for(var Bt=st.length-1;Bt>=0;Bt--)Vu(Te.doc,Re,st[Bt],rn(st[Bt].line,st[Bt].ch+Re.length))}}),ke("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(Te,Re,st){Te.state.specialChars=new RegExp(Re.source+(Re.test(" ")?"":"| "),"g"),st!=Sh&&Te.refresh()}),ke("specialCharPlaceholder",ha,function(Te){return Te.refresh()},!0),ke("electricChars",!0),ke("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ke("spellcheck",!1,function(Te,Re){return Te.getInputField().spellcheck=Re},!0),ke("autocorrect",!1,function(Te,Re){return Te.getInputField().autocorrect=Re},!0),ke("autocapitalize",!1,function(Te,Re){return Te.getInputField().autocapitalize=Re},!0),ke("rtlMoveVisually",!le),ke("wholeLineUpdateBefore",!0),ke("theme","default",function(Te){np(Te),hi(Te)},!0),ke("keyMap","default",function(Te,Re,st){var Ct=Ec(Re),Bt=st!=Sh&&Ec(st);Bt&&Bt.detach&&Bt.detach(Te,Ct),Ct.attach&&Ct.attach(Te,Bt||null)}),ke("extraKeys",null),ke("configureMouse",null),ke("lineWrapping",!1,cm,!0),ke("gutters",[],function(Te,Re){Te.display.gutterSpecs=Oi(Re,Te.options.lineNumbers),hi(Te)},!0),ke("fixedGutter",!0,function(Te,Re){Te.display.gutters.style.left=Re?ph(Te.display)+"px":"0",Te.refresh()},!0),ke("coverGutterNextToScrollbar",!1,function(Te){return wc(Te)},!0),ke("scrollbarStyle","native",function(Te){uf(Te),wc(Te),Te.display.scrollbars.setScrollTop(Te.doc.scrollTop),Te.display.scrollbars.setScrollLeft(Te.doc.scrollLeft)},!0),ke("lineNumbers",!1,function(Te,Re){Te.display.gutterSpecs=Oi(Te.options.gutters,Re),hi(Te)},!0),ke("firstLineNumber",1,hi,!0),ke("lineNumberFormatter",function(Te){return Te},hi,!0),ke("showCursorWhenSelecting",!1,bs,!0),ke("resetSelectionOnContextMenu",!0),ke("lineWiseCopyCut",!0),ke("pasteLinesPerSelection",!0),ke("selectionsMayTouch",!1),ke("readOnly",!1,function(Te,Re){Re=="nocursor"&&(Xc(Te),Te.display.input.blur()),Te.display.input.readOnlyChanged(Re)}),ke("screenReaderLabel",null,function(Te,Re){Re=Re===""?null:Re,Te.display.input.screenReaderLabelChanged(Re)}),ke("disableInput",!1,function(Te,Re){Re||Te.display.input.reset()},!0),ke("dragDrop",!0,rp),ke("allowDropFileTypes",null),ke("cursorBlinkRate",530),ke("cursorScrollMargin",0),ke("cursorHeight",1,bs,!0),ke("singleCursorHeightPerLine",!0,bs,!0),ke("workTime",100),ke("workDelay",100),ke("flattenSpans",!0,Xo,!0),ke("addModeClass",!1,Xo,!0),ke("pollInterval",100),ke("undoDepth",200,function(Te,Re){return Te.doc.history.undoDepth=Re}),ke("historyEventDelay",1250),ke("viewportMargin",10,function(Te){return Te.refresh()},!0),ke("maxHighlightLength",1e4,Xo,!0),ke("moveInputWithCursor",!0,function(Te,Re){Re||Te.display.input.resetPosition()}),ke("tabindex",null,function(Te,Re){return Te.display.input.getField().tabIndex=Re||""}),ke("autofocus",null),ke("direction","ltr",function(Te,Re){return Te.doc.setDirection(Re)},!0),ke("phrases",null)}function rp(ie,de,ke){var Te=ke&&ke!=Sh;if(!de!=!Te){var Re=ie.display.dragFunctions,st=de?Rt:sn;st(ie.display.scroller,"dragstart",Re.start),st(ie.display.scroller,"dragenter",Re.enter),st(ie.display.scroller,"dragover",Re.over),st(ie.display.scroller,"dragleave",Re.leave),st(ie.display.scroller,"drop",Re.drop)}}function cm(ie){ie.options.lineWrapping?($e(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ie(ie.display.wrapper,"CodeMirror-wrap"),lo(ie)),Gi(ie),xa(ie),Ha(ie),setTimeout(function(){return wc(ie)},100)}function ia(ie,de){var ke=this;if(!(this instanceof ia))return new ia(ie,de);this.options=de=de?yt(de):{},yt(tg,de,!1);var Te=de.value;typeof Te=="string"?Te=new Ls(Te,de.mode,null,de.lineSeparator,de.direction):de.mode&&(Te.modeOption=de.mode),this.doc=Te;var Re=new ia.inputStyles[de.inputStyle](this),st=this.display=new Ei(ie,Te,Re,de);st.wrapper.CodeMirror=this,np(this),de.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),uf(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ot,keySeq:null,specialChars:null},de.autofocus&&!ee&&st.input.focus(),Ne&&ge<11&&setTimeout(function(){return ke.display.input.reset(!0)},20),jd(this),Gl(),fl(this),this.curOp.forceUpdate=!0,eo(this,Te),de.autofocus&&!ee||this.hasFocus()?setTimeout(function(){ke.hasFocus()&&!ke.state.focused&&Yo(ke)},20):Xc(this);for(var Ct in gf)gf.hasOwnProperty(Ct)&&gf[Ct](this,de[Ct],Sh);ri(this),de.finishInit&&de.finishInit(this);for(var Bt=0;Bt<_h.length;++Bt)_h[Bt](this);bc(this),ce&&de.lineWrapping&&getComputedStyle(st.lineDiv).textRendering=="optimizelegibility"&&(st.lineDiv.style.textRendering="auto")}ia.defaults=tg,ia.optionHandlers=gf;function jd(ie){var de=ie.display;Rt(de.scroller,"mousedown",Wn(ie,lc)),Ne&&ge<11?Rt(de.scroller,"dblclick",Wn(ie,function(kt){if(!Qt(ie,kt)){var Jt=rl(ie,kt);if(!(!Jt||ep(ie,kt)||nl(ie.display,kt))){Bn(kt);var Pn=ie.findWordAt(Jt);ta(ie.doc,Pn.anchor,Pn.head)}}})):Rt(de.scroller,"dblclick",function(kt){return Qt(ie,kt)||Bn(kt)}),Rt(de.scroller,"contextmenu",function(kt){return tp(ie,kt)}),Rt(de.input.getField(),"contextmenu",function(kt){de.scroller.contains(kt.target)||tp(ie,kt)});var ke,Te={end:0};function Re(){de.activeTouch&&(ke=setTimeout(function(){return de.activeTouch=null},1e3),Te=de.activeTouch,Te.end=+new Date)}function st(kt){if(kt.touches.length!=1)return!1;var Jt=kt.touches[0];return Jt.radiusX<=1&&Jt.radiusY<=1}function Ct(kt,Jt){if(Jt.left==null)return!0;var Pn=Jt.left-kt.left,qt=Jt.top-kt.top;return Pn*Pn+qt*qt>20*20}Rt(de.scroller,"touchstart",function(kt){if(!Qt(ie,kt)&&!st(kt)&&!ep(ie,kt)){de.input.ensurePolled(),clearTimeout(ke);var Jt=+new Date;de.activeTouch={start:Jt,moved:!1,prev:Jt-Te.end<=300?Te:null},kt.touches.length==1&&(de.activeTouch.left=kt.touches[0].pageX,de.activeTouch.top=kt.touches[0].pageY)}}),Rt(de.scroller,"touchmove",function(){de.activeTouch&&(de.activeTouch.moved=!0)}),Rt(de.scroller,"touchend",function(kt){var Jt=de.activeTouch;if(Jt&&!nl(de,kt)&&Jt.left!=null&&!Jt.moved&&new Date-Jt.start<300){var Pn=ie.coordsChar(de.activeTouch,"page"),qt;!Jt.prev||Ct(Jt,Jt.prev)?qt=new ii(Pn,Pn):!Jt.prev.prev||Ct(Jt,Jt.prev.prev)?qt=ie.findWordAt(Pn):qt=new ii(rn(Pn.line,0),Tn(ie.doc,rn(Pn.line+1,0))),ie.setSelection(qt.anchor,qt.head),ie.focus(),Bn(kt)}Re()}),Rt(de.scroller,"touchcancel",Re),Rt(de.scroller,"scroll",function(){de.scroller.clientHeight&&(Jc(ie,de.scroller.scrollTop),Zu(ie,de.scroller.scrollLeft,!0),Ft(ie,"scroll",ie))}),Rt(de.scroller,"mousewheel",function(kt){return _i(ie,kt)}),Rt(de.scroller,"DOMMouseScroll",function(kt){return _i(ie,kt)}),Rt(de.wrapper,"scroll",function(){return de.wrapper.scrollTop=de.wrapper.scrollLeft=0}),de.dragFunctions={enter:function(kt){Qt(ie,kt)||cr(kt)},over:function(kt){Qt(ie,kt)||(df(ie,kt),cr(kt))},start:function(kt){return Xh(ie,kt)},drop:Wn(ie,Ld),leave:function(kt){Qt(ie,kt)||Yf(ie)}};var Bt=de.input.getField();Rt(Bt,"keyup",function(kt){return Jp.call(ie,kt)}),Rt(Bt,"keydown",Wn(ie,Xp)),Rt(Bt,"keypress",Wn(ie,sc)),Rt(Bt,"focus",function(kt){return Yo(ie,kt)}),Rt(Bt,"blur",function(kt){return Xc(ie,kt)})}var _h=[];ia.defineInitHook=function(ie){return _h.push(ie)};function Bs(ie,de,ke,Te){var Re=ie.doc,st;ke==null&&(ke="add"),ke=="smart"&&(Re.mode.indent?st=Br(ie,de).state:ke="prev");var Ct=ie.options.tabSize,Bt=cn(Re,de),kt=qe(Bt.text,null,Ct);Bt.stateAfter&&(Bt.stateAfter=null);var Jt=Bt.text.match(/^\s*/)[0],Pn;if(!Te&&!/\S/.test(Bt.text))Pn=0,ke="not";else if(ke=="smart"&&(Pn=Re.mode.indent(st,Bt.text.slice(Jt.length),Bt.text),Pn==xt||Pn>150)){if(!Te)return;ke="prev"}ke=="prev"?de>Re.first?Pn=qe(cn(Re,de-1).text,null,Ct):Pn=0:ke=="add"?Pn=kt+ie.options.indentUnit:ke=="subtract"?Pn=kt-ie.options.indentUnit:typeof ke=="number"&&(Pn=kt+ke),Pn=Math.max(0,Pn);var qt="",Vn=0;if(ie.options.indentWithTabs)for(var zn=Math.floor(Pn/Ct);zn;--zn)Vn+=Ct,qt+=" ";if(Vn<Pn&&(qt+=Zt(Pn-Vn)),qt!=Jt)return Vu(Re,qt,rn(de,0),rn(de,Jt.length),"+input"),Bt.stateAfter=null,!0;for(var yr=0;yr<Re.sel.ranges.length;yr++){var Lr=Re.sel.ranges[yr];if(Lr.head.line==de&&Lr.head.ch<Jt.length){var Hr=rn(de,Jt.length);pa(Re,yr,new ii(Hr,Hr));break}}}var Kl=null;function $h(ie){Kl=ie}function mf(ie,de,ke,Te,Re){var st=ie.doc;ie.display.shift=!1,Te||(Te=st.sel);var Ct=+new Date-200,Bt=Re=="paste"||ie.state.pasteIncoming>Ct,kt=Cr(de),Jt=null;if(Bt&&Te.ranges.length>1)if(Kl&&Kl.text.join(`
|
|
|
`)==de){if(Te.ranges.length%Kl.text.length==0){Jt=[];for(var Pn=0;Pn<Kl.text.length;Pn++)Jt.push(st.splitLines(Kl.text[Pn]))}}else kt.length==Te.ranges.length&&ie.options.pasteLinesPerSelection&&(Jt=bt(kt,function(oi){return[oi]}));for(var qt=ie.curOp.updateInput,Vn=Te.ranges.length-1;Vn>=0;Vn--){var zn=Te.ranges[Vn],yr=zn.from(),Lr=zn.to();zn.empty()&&(ke&&ke>0?yr=rn(yr.line,yr.ch-ke):ie.state.overwrite&&!Bt?Lr=rn(Lr.line,Math.min(cn(st,Lr.line).text.length,Lr.ch+wt(kt).length)):Bt&&Kl&&Kl.lineWise&&Kl.text.join(`
|
|
|
`)==kt.join(`
|
|
|
`)&&(yr=Lr=rn(yr.line,0)));var Hr={from:yr,to:Lr,text:Jt?Jt[Vn%Jt.length]:kt,origin:Re||(Bt?"paste":ie.state.cutIncoming>Ct?"cut":"+input")};Za(ie.doc,Hr),kr(ie,"inputRead",ie,Hr)}de&&!Bt&&rg(ie,de),Sc(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=qt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function ng(ie,de){var ke=ie.clipboardData&&ie.clipboardData.getData("Text");if(ke)return ie.preventDefault(),!de.isReadOnly()&&!de.options.disableInput&&vn(de,function(){return mf(de,ke,0,null,"paste")}),!0}function rg(ie,de){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ke=ie.doc.sel,Te=ke.ranges.length-1;Te>=0;Te--){var Re=ke.ranges[Te];if(!(Re.head.ch>100||Te&&ke.ranges[Te-1].head.line==Re.head.line)){var st=ie.getModeAt(Re.head),Ct=!1;if(st.electricChars){for(var Bt=0;Bt<st.electricChars.length;Bt++)if(de.indexOf(st.electricChars.charAt(Bt))>-1){Ct=Bs(ie,Re.head.line,"smart");break}}else st.electricInput&&st.electricInput.test(cn(ie.doc,Re.head.line).text.slice(0,Re.head.ch))&&(Ct=Bs(ie,Re.head.line,"smart"));Ct&&kr(ie,"electricInput",ie,Re.head.line)}}}function ig(ie){for(var de=[],ke=[],Te=0;Te<ie.doc.sel.ranges.length;Te++){var Re=ie.doc.sel.ranges[Te].head.line,st={anchor:rn(Re,0),head:rn(Re+1,0)};ke.push(st),de.push(ie.getRange(st.anchor,st.head))}return{text:de,ranges:ke}}function og(ie,de,ke,Te){ie.setAttribute("autocorrect",ke?"":"off"),ie.setAttribute("autocapitalize",Te?"":"off"),ie.setAttribute("spellcheck",!!de)}function ag(){var ie=Oe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),de=Oe("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,ke=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(Te,Re){var st=this.options,Ct=st[Te];st[Te]==Re&&Te!="mode"||(st[Te]=Re,de.hasOwnProperty(Te)&&Wn(this,de[Te])(this,Re,Ct),Ft(this,"optionChange",this,Te))},getOption:function(Te){return this.options[Te]},getDoc:function(){return this.doc},addKeyMap:function(Te,Re){this.state.keyMaps[Re?"push":"unshift"](Ec(Te))},removeKeyMap:function(Te){for(var Re=this.state.keyMaps,st=0;st<Re.length;++st)if(Re[st]==Te||Re[st].name==Te)return Re.splice(st,1),!0},addOverlay:Un(function(Te,Re){var st=Te.token?Te:ie.getMode(this.options,Te);if(st.startState)throw new Error("Overlays may not be stateful.");it(this.state.overlays,{mode:st,modeSpec:Te,opaque:Re&&Re.opaque,priority:Re&&Re.priority||0},function(Ct){return Ct.priority}),this.state.modeGen++,xa(this)}),removeOverlay:Un(function(Te){for(var Re=this.state.overlays,st=0;st<Re.length;++st){var Ct=Re[st].modeSpec;if(Ct==Te||typeof Te=="string"&&Ct.name==Te){Re.splice(st,1),this.state.modeGen++,xa(this);return}}}),indentLine:Un(function(Te,Re,st){typeof Re!="string"&&typeof Re!="number"&&(Re==null?Re=this.options.smartIndent?"smart":"prev":Re=Re?"add":"subtract"),Kn(this.doc,Te)&&Bs(this,Te,Re,st)}),indentSelection:Un(function(Te){for(var Re=this.doc.sel.ranges,st=-1,Ct=0;Ct<Re.length;Ct++){var Bt=Re[Ct];if(Bt.empty())Bt.head.line>st&&(Bs(this,Bt.head.line,Te,!0),st=Bt.head.line,Ct==this.doc.sel.primIndex&&Sc(this));else{var kt=Bt.from(),Jt=Bt.to(),Pn=Math.max(st,kt.line);st=Math.min(this.lastLine(),Jt.line-(Jt.ch?0:1))+1;for(var qt=Pn;qt<st;++qt)Bs(this,qt,Te);var Vn=this.doc.sel.ranges;kt.ch==0&&Re.length==Vn.length&&Vn[Ct].from().ch>0&&pa(this.doc,Ct,new ii(kt,Vn[Ct].to()),ft)}}}),getTokenAt:function(Te,Re){return fr(this,Te,Re)},getLineTokens:function(Te,Re){return fr(this,rn(Te),Re,!0)},getTokenTypeAt:function(Te){Te=Tn(this.doc,Te);var Re=Ur(this,cn(this.doc,Te.line)),st=0,Ct=(Re.length-1)/2,Bt=Te.ch,kt;if(Bt==0)kt=Re[2];else for(;;){var Jt=st+Ct>>1;if((Jt?Re[Jt*2-1]:0)>=Bt)Ct=Jt;else if(Re[Jt*2+1]<Bt)st=Jt+1;else{kt=Re[Jt*2+2];break}}var Pn=kt?kt.indexOf("overlay "):-1;return Pn<0?kt:Pn==0?null:kt.slice(0,Pn-1)},getModeAt:function(Te){var Re=this.doc.mode;return Re.innerMode?ie.innerMode(Re,this.getTokenAt(Te).state).mode:Re},getHelper:function(Te,Re){return this.getHelpers(Te,Re)[0]},getHelpers:function(Te,Re){var st=[];if(!ke.hasOwnProperty(Re))return st;var Ct=ke[Re],Bt=this.getModeAt(Te);if(typeof Bt[Re]=="string")Ct[Bt[Re]]&&st.push(Ct[Bt[Re]]);else if(Bt[Re])for(var kt=0;kt<Bt[Re].length;kt++){var Jt=Ct[Bt[Re][kt]];Jt&&st.push(Jt)}else Bt.helperType&&Ct[Bt.helperType]?st.push(Ct[Bt.helperType]):Ct[Bt.name]&&st.push(Ct[Bt.name]);for(var Pn=0;Pn<Ct._global.length;Pn++){var qt=Ct._global[Pn];qt.pred(Bt,this)&&dt(st,qt.val)==-1&&st.push(qt.val)}return st},getStateAfter:function(Te,Re){var st=this.doc;return Te=Ln(st,Te==null?st.first+st.size-1:Te),Br(this,Te+1,Re).state},cursorCoords:function(Te,Re){var st,Ct=this.doc.sel.primary();return Te==null?st=Ct.head:typeof Te=="object"?st=Tn(this.doc,Te):st=Te?Ct.from():Ct.to(),Da(this,st,Re||"page")},charCoords:function(Te,Re){return Rl(this,Tn(this.doc,Te),Re||"page")},coordsChar:function(Te,Re){return Te=Wu(this,Te,Re||"page"),Kc(this,Te.left,Te.top)},lineAtHeight:function(Te,Re){return Te=Wu(this,{top:Te,left:0},Re||"page").top,En(this.doc,Te+this.display.viewOffset)},heightAtLine:function(Te,Re,st){var Ct=!1,Bt;if(typeof Te=="number"){var kt=this.doc.first+this.doc.size-1;Te<this.doc.first?Te=this.doc.first:Te>kt&&(Te=kt,Ct=!0),Bt=cn(this.doc,Te)}else Bt=Te;return Ua(this,Bt,{top:0,left:0},Re||"page",st||Ct).top+(Ct?this.doc.height-ro(Bt):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(Te,Re,st,Ct,Bt){var kt=this.display;Te=Da(this,Tn(this.doc,Te));var Jt=Te.bottom,Pn=Te.left;if(Re.style.position="absolute",Re.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Re),kt.sizer.appendChild(Re),Ct=="over")Jt=Te.top;else if(Ct=="above"||Ct=="near"){var qt=Math.max(kt.wrapper.clientHeight,this.doc.height),Vn=Math.max(kt.sizer.clientWidth,kt.lineSpace.clientWidth);(Ct=="above"||Te.bottom+Re.offsetHeight>qt)&&Te.top>Re.offsetHeight?Jt=Te.top-Re.offsetHeight:Te.bottom+Re.offsetHeight<=qt&&(Jt=Te.bottom),Pn+Re.offsetWidth>Vn&&(Pn=Vn-Re.offsetWidth)}Re.style.top=Jt+"px",Re.style.left=Re.style.right="",Bt=="right"?(Pn=kt.sizer.clientWidth-Re.offsetWidth,Re.style.right="0px"):(Bt=="left"?Pn=0:Bt=="middle"&&(Pn=(kt.sizer.clientWidth-Re.offsetWidth)/2),Re.style.left=Pn+"px"),st&&Kh(this,{left:Pn,top:Jt,right:Pn+Re.offsetWidth,bottom:Jt+Re.offsetHeight})},triggerOnKeyDown:Un(Xp),triggerOnKeyPress:Un(sc),triggerOnKeyUp:Jp,triggerOnMouseDown:Un(lc),execCommand:function(Te){if(Ns.hasOwnProperty(Te))return Ns[Te].call(null,this)},triggerElectric:Un(function(Te){rg(this,Te)}),findPosH:function(Te,Re,st,Ct){var Bt=1;Re<0&&(Bt=-1,Re=-Re);for(var kt=Tn(this.doc,Te),Jt=0;Jt<Re&&(kt=vf(this.doc,kt,Bt,st,Ct),!kt.hitSide);++Jt);return kt},moveH:Un(function(Te,Re){var st=this;this.extendSelectionsBy(function(Ct){return st.display.shift||st.doc.extend||Ct.empty()?vf(st.doc,Ct.head,Te,Re,st.options.rtlMoveVisually):Te<0?Ct.from():Ct.to()},vt)}),deleteH:Un(function(Te,Re){var st=this.doc.sel,Ct=this.doc;st.somethingSelected()?Ct.replaceSelection("",null,"+delete"):ol(this,function(Bt){var kt=vf(Ct,Bt.head,Te,Re,!1);return Te<0?{from:kt,to:Bt.head}:{from:Bt.head,to:kt}})}),findPosV:function(Te,Re,st,Ct){var Bt=1,kt=Ct;Re<0&&(Bt=-1,Re=-Re);for(var Jt=Tn(this.doc,Te),Pn=0;Pn<Re;++Pn){var qt=Da(this,Jt,"div");if(kt==null?kt=qt.left:qt.left=kt,Jt=wh(this,qt,Bt,st),Jt.hitSide)break}return Jt},moveV:Un(function(Te,Re){var st=this,Ct=this.doc,Bt=[],kt=!this.display.shift&&!Ct.extend&&Ct.sel.somethingSelected();if(Ct.extendSelectionsBy(function(Pn){if(kt)return Te<0?Pn.from():Pn.to();var qt=Da(st,Pn.head,"div");Pn.goalColumn!=null&&(qt.left=Pn.goalColumn),Bt.push(qt.left);var Vn=wh(st,qt,Te,Re);return Re=="page"&&Pn==Ct.sel.primary()&&Ed(st,Rl(st,Vn,"div").top-qt.top),Vn},vt),Bt.length)for(var Jt=0;Jt<Ct.sel.ranges.length;Jt++)Ct.sel.ranges[Jt].goalColumn=Bt[Jt]}),findWordAt:function(Te){var Re=this.doc,st=cn(Re,Te.line).text,Ct=Te.ch,Bt=Te.ch;if(st){var kt=this.getHelper(Te,"wordChars");(Te.sticky=="before"||Bt==st.length)&&Ct?--Ct:++Bt;for(var Jt=st.charAt(Ct),Pn=Je(Jt,kt)?function(qt){return Je(qt,kt)}:/\s/.test(Jt)?function(qt){return/\s/.test(qt)}:function(qt){return!/\s/.test(qt)&&!Je(qt)};Ct>0&&Pn(st.charAt(Ct-1));)--Ct;for(;Bt<st.length&&Pn(st.charAt(Bt));)++Bt}return new ii(rn(Te.line,Ct),rn(Te.line,Bt))},toggleOverwrite:function(Te){Te!=null&&Te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$e(this.display.cursorDiv,"CodeMirror-overwrite"):Ie(this.display.cursorDiv,"CodeMirror-overwrite"),Ft(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ue()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Un(function(Te,Re){Yc(this,Te,Re)}),getScrollInfo:function(){var Te=this.display.scroller;return{left:Te.scrollLeft,top:Te.scrollTop,height:Te.scrollHeight-Ws(this)-this.display.barHeight,width:Te.scrollWidth-Ws(this)-this.display.barWidth,clientHeight:Hc(this),clientWidth:dl(this)}},scrollIntoView:Un(function(Te,Re){Te==null?(Te={from:this.doc.sel.primary().head,to:null},Re==null&&(Re=this.options.cursorScrollMargin)):typeof Te=="number"?Te={from:rn(Te,0),to:null}:Te.from==null&&(Te={from:Te,to:null}),Te.to||(Te.to=Te.from),Te.margin=Re||0,Te.from.line!=null?Jo(this,Te):sf(this,Te.from,Te.to,Te.margin)}),setSize:Un(function(Te,Re){var st=this,Ct=function(kt){return typeof kt=="number"||/^\d+$/.test(String(kt))?kt+"px":kt};Te!=null&&(this.display.wrapper.style.width=Ct(Te)),Re!=null&&(this.display.wrapper.style.height=Ct(Re)),this.options.lineWrapping&&_a(this);var Bt=this.display.viewFrom;this.doc.iter(Bt,this.display.viewTo,function(kt){if(kt.widgets){for(var Jt=0;Jt<kt.widgets.length;Jt++)if(kt.widgets[Jt].noHScroll){Mo(st,Bt,"widget");break}}++Bt}),this.curOp.forceUpdate=!0,Ft(this,"refresh",this)}),operation:function(Te){return vn(this,Te)},startOperation:function(){return fl(this)},endOperation:function(){return bc(this)},refresh:Un(function(){var Te=this.display.cachedTextHeight;xa(this),this.curOp.forceUpdate=!0,Ha(this),Yc(this,this.doc.scrollLeft,this.doc.scrollTop),di(this.display),(Te==null||Math.abs(Te-Uu(this.display))>.5||this.options.lineWrapping)&&Gi(this),Ft(this,"refresh",this)}),swapDoc:Un(function(Te){var Re=this.doc;return Re.cm=null,this.state.selectingText&&this.state.selectingText(),eo(this,Te),Ha(this),this.display.input.reset(),Yc(this,Te.scrollLeft,Te.scrollTop),this.curOp.forceScroll=!0,kr(this,"swapDoc",this,Re),Re}),phrase:function(Te){var Re=this.options.phrases;return Re&&Object.prototype.hasOwnProperty.call(Re,Te)?Re[Te]:Te},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Cn(ie),ie.registerHelper=function(Te,Re,st){ke.hasOwnProperty(Te)||(ke[Te]=ie[Te]={_global:[]}),ke[Te][Re]=st},ie.registerGlobalHelper=function(Te,Re,st,Ct){ie.registerHelper(Te,Re,Ct),ke[Te]._global.push({pred:st,val:Ct})}}function vf(ie,de,ke,Te,Re){var st=de,Ct=ke,Bt=cn(ie,de.line),kt=Re&&ie.direction=="rtl"?-ke:ke;function Jt(){var Fi=de.line+kt;return Fi<ie.first||Fi>=ie.first+ie.size?!1:(de=new rn(Fi,de.ch,de.sticky),Bt=cn(ie,Fi))}function Pn(Fi){var xi;if(Te=="codepoint"){var Wi=Bt.text.charCodeAt(de.ch+(Te>0?0:-1));isNaN(Wi)?xi=null:xi=new rn(de.line,Math.max(0,Math.min(Bt.text.length,de.ch+ke*(Wi>=55296&&Wi<56320?2:1))),-ke)}else Re?xi=Fa(ie.cm,Bt,de,ke):xi=cs(Bt,de,ke);if(xi==null)if(!Fi&&Jt())de=na(Re,ie.cm,Bt,de.line,kt);else return!1;else de=xi;return!0}if(Te=="char"||Te=="codepoint")Pn();else if(Te=="column")Pn(!0);else if(Te=="word"||Te=="group")for(var qt=null,Vn=Te=="group",zn=ie.cm&&ie.cm.getHelper(de,"wordChars"),yr=!0;!(ke<0&&!Pn(!yr));yr=!1){var Lr=Bt.text.charAt(de.ch)||`
|
|
|
`,Hr=Je(Lr,zn)?"w":Vn&&Lr==`
|
|
|
`?"n":!Vn||/\s/.test(Lr)?null:"p";if(Vn&&!yr&&!Hr&&(Hr="s"),qt&&qt!=Hr){ke<0&&(ke=1,Pn(),de.sticky="after");break}if(Hr&&(qt=Hr),ke>0&&!Pn(!yr))break}var oi=eu(ie,de,st,Ct,!0);return nn(st,oi)&&(oi.hitSide=!0),oi}function wh(ie,de,ke,Te){var Re=ie.doc,st=de.left,Ct;if(Te=="page"){var Bt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),kt=Math.max(Bt-.5*Uu(ie.display),3);Ct=(ke>0?de.bottom:de.top)+ke*kt}else Te=="line"&&(Ct=ke>0?de.bottom+3:de.top-3);for(var Jt;Jt=Kc(ie,st,Ct),!!Jt.outside;){if(ke<0?Ct<=0:Ct>=Re.height){Jt.hitSide=!0;break}Ct+=ke*5}return Jt}var Ba=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ot,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ba.prototype.init=function(ie){var de=this,ke=this,Te=ke.cm,Re=ke.div=ie.lineDiv;og(Re,Te.options.spellcheck,Te.options.autocorrect,Te.options.autocapitalize);function st(Bt){for(var kt=Bt.target;kt;kt=kt.parentNode){if(kt==Re)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(kt.className))break}return!1}Rt(Re,"paste",function(Bt){!st(Bt)||Qt(Te,Bt)||ng(Bt,Te)||ge<=11&&setTimeout(Wn(Te,function(){return de.updateFromDOM()}),20)}),Rt(Re,"compositionstart",function(Bt){de.composing={data:Bt.data,done:!1}}),Rt(Re,"compositionupdate",function(Bt){de.composing||(de.composing={data:Bt.data,done:!1})}),Rt(Re,"compositionend",function(Bt){de.composing&&(Bt.data!=de.composing.data&&de.readFromDOMSoon(),de.composing.done=!0)}),Rt(Re,"touchstart",function(){return ke.forceCompositionEnd()}),Rt(Re,"input",function(){de.composing||de.readFromDOMSoon()});function Ct(Bt){if(!(!st(Bt)||Qt(Te,Bt))){if(Te.somethingSelected())$h({lineWise:!1,text:Te.getSelections()}),Bt.type=="cut"&&Te.replaceSelection("",null,"cut");else if(Te.options.lineWiseCopyCut){var kt=ig(Te);$h({lineWise:!0,text:kt.text}),Bt.type=="cut"&&Te.operation(function(){Te.setSelections(kt.ranges,0,ft),Te.replaceSelection("",null,"cut")})}else return;if(Bt.clipboardData){Bt.clipboardData.clearData();var Jt=Kl.text.join(`
|
|
|
`);if(Bt.clipboardData.setData("Text",Jt),Bt.clipboardData.getData("Text")==Jt){Bt.preventDefault();return}}var Pn=ag(),qt=Pn.firstChild;Te.display.lineSpace.insertBefore(Pn,Te.display.lineSpace.firstChild),qt.value=Kl.text.join(`
|
|
|
`);var Vn=document.activeElement;lt(qt),setTimeout(function(){Te.display.lineSpace.removeChild(Pn),Vn.focus(),Vn==Re&&ke.showPrimarySelection()},50)}}Rt(Re,"copy",Ct),Rt(Re,"cut",Ct)},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,ke=de.doc.sel.primary(),Te=ke.from(),Re=ke.to();if(de.display.viewTo==de.display.viewFrom||Te.line>=de.display.viewTo||Re.line<de.display.viewFrom){ie.removeAllRanges();return}var st=yf(de,ie.anchorNode,ie.anchorOffset),Ct=yf(de,ie.focusNode,ie.focusOffset);if(!(st&&!st.bad&&Ct&&!Ct.bad&&bn(yn(st,Ct),Te)==0&&bn(gn(st,Ct),Re)==0)){var Bt=de.display.view,kt=Te.line>=de.display.viewFrom&&ip(de,Te)||{node:Bt[0].measure.map[2],offset:0},Jt=Re.line<de.display.viewTo&&ip(de,Re);if(!Jt){var Pn=Bt[Bt.length-1].measure,qt=Pn.maps?Pn.maps[Pn.maps.length-1]:Pn.map;Jt={node:qt[qt.length-1],offset:qt[qt.length-2]-qt[qt.length-3]}}if(!kt||!Jt){ie.removeAllRanges();return}var Vn=ie.rangeCount&&ie.getRangeAt(0),zn;try{zn=ze(kt.node,kt.offset,Jt.offset,Jt.node)}catch(yr){}zn&&(!He&&de.state.focused?(ie.collapse(kt.node,kt.offset),zn.collapsed||(ie.removeAllRanges(),ie.addRange(zn))):(ie.removeAllRanges(),ie.addRange(zn)),Vn&&ie.anchorNode==null?ie.addRange(Vn):He&&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){Fe(this.cm.display.cursorDiv,ie.cursors),Fe(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 _e(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():vn(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&&Ae&&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 ke=yf(de,ie.anchorNode,ie.anchorOffset),Te=yf(de,ie.focusNode,ie.focusOffset);ke&&Te&&vn(de,function(){va(de.doc,Co(ke,Te),ft),(ke.bad||Te.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,ke=ie.doc.sel.primary(),Te=ke.from(),Re=ke.to();if(Te.ch==0&&Te.line>ie.firstLine()&&(Te=rn(Te.line-1,cn(ie.doc,Te.line-1).length)),Re.ch==cn(ie.doc,Re.line).text.length&&Re.line<ie.lastLine()&&(Re=rn(Re.line+1,0)),Te.line<de.viewFrom||Re.line>de.viewTo-1)return!1;var st,Ct,Bt;Te.line==de.viewFrom||(st=Hs(ie,Te.line))==0?(Ct=Ht(de.view[0].line),Bt=de.view[0].node):(Ct=Ht(de.view[st].line),Bt=de.view[st-1].node.nextSibling);var kt=Hs(ie,Re.line),Jt,Pn;if(kt==de.view.length-1?(Jt=de.viewTo-1,Pn=de.lineDiv.lastChild):(Jt=Ht(de.view[kt+1].line)-1,Pn=de.view[kt+1].node.previousSibling),!Bt)return!1;for(var qt=ie.doc.splitLines(zd(ie,Bt,Pn,Ct,Jt)),Vn=xn(ie.doc,rn(Ct,0),rn(Jt,cn(ie.doc,Jt).text.length));qt.length>1&&Vn.length>1;)if(wt(qt)==wt(Vn))qt.pop(),Vn.pop(),Jt--;else if(qt[0]==Vn[0])qt.shift(),Vn.shift(),Ct++;else break;for(var zn=0,yr=0,Lr=qt[0],Hr=Vn[0],oi=Math.min(Lr.length,Hr.length);zn<oi&&Lr.charCodeAt(zn)==Hr.charCodeAt(zn);)++zn;for(var Fi=wt(qt),xi=wt(Vn),Wi=Math.min(Fi.length-(qt.length==1?zn:0),xi.length-(Vn.length==1?zn:0));yr<Wi&&Fi.charCodeAt(Fi.length-yr-1)==xi.charCodeAt(xi.length-yr-1);)++yr;if(qt.length==1&&Vn.length==1&&Ct==Te.line)for(;zn&&zn>Te.ch&&Fi.charCodeAt(Fi.length-yr-1)==xi.charCodeAt(xi.length-yr-1);)zn--,yr++;qt[qt.length-1]=Fi.slice(0,Fi.length-yr).replace(/^\u200b+/,""),qt[0]=qt[0].slice(zn).replace(/\u200b+$/,"");var So=rn(Ct,zn),vi=rn(Jt,Vn.length?wt(Vn).length-yr:0);if(qt.length>1||qt[0]||bn(So,vi))return Vu(ie.doc,qt,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())&&vn(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 ke=vc(ie,de.line);if(!ke||ke.hidden)return null;var Te=cn(ie.doc,de.line),Re=Uc(ke,Te,de.line),st=Kt(Te,ie.doc.direction),Ct="left";if(st){var Bt=pt(st,de.ch);Ct=Bt%2?"right":"left"}var kt=Zc(Re.map,de.ch,Ct);return kt.offset=kt.collapse=="right"?kt.end:kt.start,kt}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,ke,Te,Re){var st="",Ct=!1,Bt=ie.doc.lineSeparator(),kt=!1;function Jt(zn){return function(yr){return yr.id==zn}}function Pn(){Ct&&(st+=Bt,kt&&(st+=Bt),Ct=kt=!1)}function qt(zn){zn&&(Pn(),st+=zn)}function Vn(zn){if(zn.nodeType==1){var yr=zn.getAttribute("cm-text");if(yr){qt(yr);return}var Lr=zn.getAttribute("cm-marker"),Hr;if(Lr){var oi=ie.findMarks(rn(Te,0),rn(Re+1,0),Jt(+Lr));oi.length&&(Hr=oi[0].find(0))&&qt(xn(ie.doc,Hr.from,Hr.to).join(Bt));return}if(zn.getAttribute("contenteditable")=="false")return;var Fi=/^(pre|div|p|li|table|br)$/i.test(zn.nodeName);if(!/^br$/i.test(zn.nodeName)&&zn.textContent.length==0)return;Fi&&Pn();for(var xi=0;xi<zn.childNodes.length;xi++)Vn(zn.childNodes[xi]);/^(pre|p)$/i.test(zn.nodeName)&&(kt=!0),Fi&&(Ct=!0)}else zn.nodeType==3&&qt(zn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Vn(de),de!=ke;)de=de.nextSibling,kt=!1;return st}function yf(ie,de,ke){var Te;if(de==ie.display.lineDiv){if(Te=ie.display.lineDiv.childNodes[ke],!Te)return Rd(ie.clipPos(rn(ie.display.viewTo-1)),!0);de=null,ke=0}else for(Te=de;;Te=Te.parentNode){if(!Te||Te==ie.display.lineDiv)return null;if(Te.parentNode&&Te.parentNode==ie.display.lineDiv)break}for(var Re=0;Re<ie.display.view.length;Re++){var st=ie.display.view[Re];if(st.node==Te)return hm(st,de,ke)}}function hm(ie,de,ke){var Te=ie.text.firstChild,Re=!1;if(!de||!_e(Te,de))return Rd(rn(Ht(ie.line),0),!0);if(de==Te&&(Re=!0,de=Te.childNodes[ke],ke=0,!de)){var st=ie.rest?wt(ie.rest):ie.line;return Rd(rn(Ht(st),st.text.length),Re)}var Ct=de.nodeType==3?de:null,Bt=de;for(!Ct&&de.childNodes.length==1&&de.firstChild.nodeType==3&&(Ct=de.firstChild,ke&&(ke=Ct.nodeValue.length));Bt.parentNode!=Te;)Bt=Bt.parentNode;var kt=ie.measure,Jt=kt.maps;function Pn(Hr,oi,Fi){for(var xi=-1;xi<(Jt?Jt.length:0);xi++)for(var Wi=xi<0?kt.map:Jt[xi],So=0;So<Wi.length;So+=3){var vi=Wi[So+2];if(vi==Hr||vi==oi){var Bo=Ht(xi<0?ie.line:ie.rest[xi]),$a=Wi[So]+Fi;return(Fi<0||vi!=Hr)&&($a=Wi[So+(Fi?1:0)]),rn(Bo,$a)}}}var qt=Pn(Ct,Bt,ke);if(qt)return Rd(qt,Re);for(var Vn=Bt.nextSibling,zn=Ct?Ct.nodeValue.length-ke:0;Vn;Vn=Vn.nextSibling){if(qt=Pn(Vn,Vn.firstChild,0),qt)return Rd(rn(qt.line,qt.ch-zn),Re);zn+=Vn.textContent.length}for(var yr=Bt.previousSibling,Lr=ke;yr;yr=yr.previousSibling){if(qt=Pn(yr,yr.firstChild,-1),qt)return Rd(rn(qt.line,qt.ch+Lr),Re);Lr+=yr.textContent.length}}var Ts=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new ot,this.hasSelection=!1,this.composing=null};Ts.prototype.init=function(ie){var de=this,ke=this,Te=this.cm;this.createField(ie);var Re=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),fe&&(Re.style.width="0px"),Rt(Re,"input",function(){Ne&&ge>=9&&de.hasSelection&&(de.hasSelection=null),ke.poll()}),Rt(Re,"paste",function(Ct){Qt(Te,Ct)||ng(Ct,Te)||(Te.state.pasteIncoming=+new Date,ke.fastPoll())});function st(Ct){if(!Qt(Te,Ct)){if(Te.somethingSelected())$h({lineWise:!1,text:Te.getSelections()});else if(Te.options.lineWiseCopyCut){var Bt=ig(Te);$h({lineWise:!0,text:Bt.text}),Ct.type=="cut"?Te.setSelections(Bt.ranges,null,ft):(ke.prevInput="",Re.value=Bt.text.join(`
|
|
|
`),lt(Re))}else return;Ct.type=="cut"&&(Te.state.cutIncoming=+new Date)}}Rt(Re,"cut",st),Rt(Re,"copy",st),Rt(ie.scroller,"paste",function(Ct){if(!(nl(ie,Ct)||Qt(Te,Ct))){if(!Re.dispatchEvent){Te.state.pasteIncoming=+new Date,ke.focus();return}var Bt=new Event("paste");Bt.clipboardData=Ct.clipboardData,Re.dispatchEvent(Bt)}}),Rt(ie.lineSpace,"selectstart",function(Ct){nl(ie,Ct)||Bn(Ct)}),Rt(Re,"compositionstart",function(){var Ct=Te.getCursor("from");ke.composing&&ke.composing.range.clear(),ke.composing={start:Ct,range:Te.markText(Ct,Te.getCursor("to"),{className:"CodeMirror-composing"})}}),Rt(Re,"compositionend",function(){ke.composing&&(ke.poll(),ke.composing.range.clear(),ke.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,ke=ie.doc,Te=Vc(ie);if(ie.options.moveInputWithCursor){var Re=Da(ie,ke.sel.primary().head,"div"),st=de.wrapper.getBoundingClientRect(),Ct=de.lineDiv.getBoundingClientRect();Te.teTop=Math.max(0,Math.min(de.wrapper.clientHeight-10,Re.top+Ct.top-st.top)),Te.teLeft=Math.max(0,Math.min(de.wrapper.clientWidth-10,Re.left+Ct.left-st.left))}return Te},Ts.prototype.showSelection=function(ie){var de=this.cm,ke=de.display;Fe(ke.cursorDiv,ie.cursors),Fe(ke.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 ke=de.getSelection();this.textarea.value=ke,de.state.focused&<(this.textarea),Ne&&ge>=9&&(this.hasSelection=ke)}else ie||(this.prevInput=this.textarea.value="",Ne&&ge>=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||Ue()!=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 ke(){var Te=de.poll();!Te&&!ie?(ie=!0,de.polling.set(60,ke)):(de.pollingFast=!1,de.slowPoll())}de.polling.set(20,ke)},Ts.prototype.poll=function(){var ie=this,de=this.cm,ke=this.textarea,Te=this.prevInput;if(this.contextMenuPending||!de.state.focused||at(ke)&&!Te&&!this.composing||de.isReadOnly()||de.options.disableInput||de.state.keySeq)return!1;var Re=ke.value;if(Re==Te&&!de.somethingSelected())return!1;if(Ne&&ge>=9&&this.hasSelection===Re||ae&&/[\uf700-\uf7ff]/.test(Re))return de.display.input.reset(),!1;if(de.doc.sel==de.display.selForContextMenu){var st=Re.charCodeAt(0);if(st==8203&&!Te&&(Te="\u200B"),st==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ct=0,Bt=Math.min(Te.length,Re.length);Ct<Bt&&Te.charCodeAt(Ct)==Re.charCodeAt(Ct);)++Ct;return vn(de,function(){mf(de,Re.slice(Ct),Te.length-Ct,null,ie.composing?"*compose":null),Re.length>1e3||Re.indexOf(`
|
|
|
`)>-1?ke.value=ie.prevInput="":ie.prevInput=Re,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(){Ne&&ge>=9&&(this.hasSelection=null),this.fastPoll()},Ts.prototype.onContextMenu=function(ie){var de=this,ke=de.cm,Te=ke.display,Re=de.textarea;de.contextMenuPending&&de.contextMenuPending();var st=rl(ke,ie),Ct=Te.scroller.scrollTop;if(!st||ye)return;var Bt=ke.options.resetSelectionOnContextMenu;Bt&&ke.doc.sel.contains(st)==-1&&Wn(ke,va)(ke.doc,Co(st),ft);var kt=Re.style.cssText,Jt=de.wrapper.style.cssText,Pn=de.wrapper.offsetParent.getBoundingClientRect();de.wrapper.style.cssText="position: static",Re.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: `+(Ne?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var qt;ce&&(qt=window.scrollY),Te.input.focus(),ce&&window.scrollTo(null,qt),Te.input.reset(),ke.somethingSelected()||(Re.value=de.prevInput=" "),de.contextMenuPending=zn,Te.selForContextMenu=ke.doc.sel,clearTimeout(Te.detectingSelectAll);function Vn(){if(Re.selectionStart!=null){var Lr=ke.somethingSelected(),Hr="\u200B"+(Lr?Re.value:"");Re.value="\u21DA",Re.value=Hr,de.prevInput=Lr?"":"\u200B",Re.selectionStart=1,Re.selectionEnd=Hr.length,Te.selForContextMenu=ke.doc.sel}}function zn(){if(de.contextMenuPending==zn&&(de.contextMenuPending=!1,de.wrapper.style.cssText=Jt,Re.style.cssText=kt,Ne&&ge<9&&Te.scrollbars.setScrollTop(Te.scroller.scrollTop=Ct),Re.selectionStart!=null)){(!Ne||Ne&&ge<9)&&Vn();var Lr=0,Hr=function(){Te.selForContextMenu==ke.doc.sel&&Re.selectionStart==0&&Re.selectionEnd>0&&de.prevInput=="\u200B"?Wn(ke,ra)(ke):Lr++<10?Te.detectingSelectAll=setTimeout(Hr,500):(Te.selForContextMenu=null,Te.input.reset())};Te.detectingSelectAll=setTimeout(Hr,200)}}if(Ne&&ge>=9&&Vn(),Ee){cr(ie);var yr=function(){sn(window,"mouseup",yr),setTimeout(zn,20)};Rt(window,"mouseup",yr)}else setTimeout(zn,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 ke=Ue();de.autofocus=ke==ie||ie.getAttribute("autofocus")!=null&&ke==document.body}function Te(){ie.value=Bt.getValue()}var Re;if(ie.form&&(Rt(ie.form,"submit",Te),!de.leaveSubmitMethodAlone)){var st=ie.form;Re=st.submit;try{var Ct=st.submit=function(){Te(),st.submit=Re,st.submit(),st.submit=Ct}}catch(kt){}}de.finishInit=function(kt){kt.save=Te,kt.getTextArea=function(){return ie},kt.toTextArea=function(){kt.toTextArea=isNaN,Te(),ie.parentNode.removeChild(kt.getWrapperElement()),ie.style.display="",ie.form&&(sn(ie.form,"submit",Te),!de.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Re))}},ie.style.display="none";var Bt=ia(function(kt){return ie.parentNode.insertBefore(kt,ie.nextSibling)},de);return Bt}function Wd(ie){ie.off=sn,ie.on=Rt,ie.wheelEventPixels=zi,ie.Doc=Ls,ie.splitLines=Cr,ie.countColumn=qe,ie.findColumn=Tt,ie.isWordChar=Ye,ie.Pass=xt,ie.signal=Ft,ie.Line=Qi,ie.changeEnd=qo,ie.scrollbarModel=lf,ie.Pos=rn,ie.cmpPos=bn,ie.modes=ur,ie.mimeModes=or,ie.resolveMode=Jn,ie.getMode=_t,ie.modeExtensions=Gt,ie.extendMode=Pt,ie.copyState=ln,ie.startState=Vt,ie.innerMode=pn,ie.commands=Ns,ie.keyMap=ml,ie.keyName=kd,ie.isModifierKey=yh,ie.lookupKey=Zl,ie.normalizeKeyMap=Dd,ie.StringStream=Dt,ie.SharedTextMarker=Xu,ie.TextMarker=hn,ie.LineWidget=vs,ie.e_preventDefault=Bn,ie.e_stopPropagation=tr,ie.e_stop=cr,ie.addClass=$e,ie.contains=_e,ie.rmClass=Ie,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)&&dt($c,Sf)<0&&(ia.prototype[Sf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Ls.prototype[Sf]));return Cn(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=Hn,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(kn,fn,We){(function(He){He(We(89780),We(15525),We(98101))})(function(He){"use strict";He.defineMode("markdown",function(mt,oe){var Ze=He.getMode(mt,"text/html"),Ne=Ze.name=="null";function ge(qe){if(He.findModeByName){var ot=He.findModeByName(qe);ot&&(qe=ot.mime||ot.mimes[0])}var dt=He.getMode(mt,qe);return dt.name=="null"?null:dt}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 Pe in ce)ce.hasOwnProperty(Pe)&&oe.tokenTypeOverrides[Pe]&&(ce[Pe]=oe.tokenTypeOverrides[Pe]);var Ae=/^([*\-_])(?:\s*\1){2,}\s*$/,ye=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,De=/^\[(x| )\](?=\s)/i,me=oe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,we=/^ {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(qe,ot,dt){return ot.f=ot.inline=dt,dt(qe,ot)}function ue(qe,ot,dt){return ot.f=ot.block=dt,dt(qe,ot)}function pe(qe){return!qe||!/\S/.test(qe.string)}function Ee(qe){if(qe.linkTitle=!1,qe.linkHref=!1,qe.linkText=!1,qe.em=!1,qe.strong=!1,qe.strikethrough=!1,qe.quote=0,qe.indentedCode=!1,qe.f==Ie){var ot=Ne;if(!ot){var dt=He.innerMode(Ze,qe.htmlState);ot=dt.mode.name=="xml"&&dt.state.tagStart===null&&!dt.state.context&&dt.state.tokenize.isInText}ot&&(qe.f=je,qe.block=be,qe.htmlState=null)}return qe.trailingSpace=0,qe.trailingSpaceNewLine=!1,qe.prevLine=qe.thisLine,qe.thisLine={stream:null},null}function be(qe,ot){var dt=qe.column()===ot.indentation,St=pe(ot.prevLine.stream),xt=ot.indentedCode,ft=ot.prevLine.hr,gt=ot.list!==!1,vt=(ot.listStack[ot.listStack.length-1]||0)+3;ot.indentedCode=!1;var Tt=ot.indentation;if(ot.indentationDiff===null&&(ot.indentationDiff=ot.indentation,gt)){for(ot.list=null;Tt<ot.listStack[ot.listStack.length-1];)ot.listStack.pop(),ot.listStack.length?ot.indentation=ot.listStack[ot.listStack.length-1]:ot.list=!1;ot.list!==!1&&(ot.indentationDiff=Tt-ot.listStack[ot.listStack.length-1])}var Et=!St&&!ft&&!ot.prevLine.header&&(!gt||!xt)&&!ot.prevLine.fencedCodeEnd,Zt=(ot.list===!1||ft||St)&&ot.indentation<=vt&&qe.match(Ae),wt=null;if(ot.indentationDiff>=4&&(xt||ot.prevLine.fencedCodeEnd||ot.prevLine.header||St))return qe.skipToEnd(),ot.indentedCode=!0,ce.code;if(qe.eatSpace())return null;if(dt&&ot.indentation<=vt&&(wt=qe.match(me))&&wt[1].length<=6)return ot.quote=0,ot.header=wt[1].length,ot.thisLine.header=!0,oe.highlightFormatting&&(ot.formatting="header"),ot.f=ot.inline,Fe(ot);if(ot.indentation<=vt&&qe.eat(">"))return ot.quote=dt?1:ot.quote+1,oe.highlightFormatting&&(ot.formatting="quote"),qe.eatSpace(),Fe(ot);if(!Zt&&!ot.setext&&dt&&ot.indentation<=vt&&(wt=qe.match(ye))){var bt=wt[1]?"ol":"ul";return ot.indentation=Tt+qe.current().length,ot.list=!0,ot.quote=0,ot.listStack.push(ot.indentation),ot.em=!1,ot.strong=!1,ot.code=!1,ot.strikethrough=!1,oe.taskLists&&qe.match(De,!1)&&(ot.taskList=!0),ot.f=ot.inline,oe.highlightFormatting&&(ot.formatting=["list","list-"+bt]),Fe(ot)}else{if(dt&&ot.indentation<=vt&&(wt=qe.match(z,!0)))return ot.quote=0,ot.fencedEndRE=new RegExp(wt[1]+"+ *$"),ot.localMode=oe.fencedCodeBlockHighlighting&&ge(wt[2]||oe.fencedCodeBlockDefaultMode),ot.localMode&&(ot.localState=He.startState(ot.localMode)),ot.f=ot.block=Le,oe.highlightFormatting&&(ot.formatting="code-block"),ot.code=-1,Fe(ot);if(ot.setext||(!Et||!gt)&&!ot.quote&&ot.list===!1&&!ot.code&&!Zt&&!ee.test(qe.string)&&(wt=qe.lookAhead(1))&&(wt=wt.match(we)))return ot.setext?(ot.header=ot.setext,ot.setext=0,qe.skipToEnd(),oe.highlightFormatting&&(ot.formatting="header")):(ot.header=wt[0].charAt(0)=="="?1:2,ot.setext=ot.header),ot.thisLine.header=!0,ot.f=ot.inline,Fe(ot);if(Zt)return qe.skipToEnd(),ot.hr=!0,ot.thisLine.hr=!0,ce.hr;if(qe.peek()==="[")return le(qe,ot,et)}return le(qe,ot,ot.inline)}function Ie(qe,ot){var dt=Ze.token(qe,ot.htmlState);if(!Ne){var St=He.innerMode(Ze,ot.htmlState);(St.mode.name=="xml"&&St.state.tagStart===null&&!St.state.context&&St.state.tokenize.isInText||ot.md_inside&&qe.current().indexOf(">")>-1)&&(ot.f=je,ot.block=be,ot.htmlState=null)}return dt}function Le(qe,ot){var dt=ot.listStack[ot.listStack.length-1]||0,St=ot.indentation<dt,xt=dt+3;if(ot.fencedEndRE&&ot.indentation<=xt&&(St||qe.match(ot.fencedEndRE))){oe.highlightFormatting&&(ot.formatting="code-block");var ft;return St||(ft=Fe(ot)),ot.localMode=ot.localState=null,ot.block=be,ot.f=je,ot.fencedEndRE=null,ot.code=0,ot.thisLine.fencedCodeEnd=!0,St?ue(qe,ot,ot.block):ft}else return ot.localMode?ot.localMode.token(qe,ot.localState):(qe.skipToEnd(),ce.code)}function Fe(qe){var ot=[];if(qe.formatting){ot.push(ce.formatting),typeof qe.formatting=="string"&&(qe.formatting=[qe.formatting]);for(var dt=0;dt<qe.formatting.length;dt++)ot.push(ce.formatting+"-"+qe.formatting[dt]),qe.formatting[dt]==="header"&&ot.push(ce.formatting+"-"+qe.formatting[dt]+"-"+qe.header),qe.formatting[dt]==="quote"&&(!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=qe.quote?ot.push(ce.formatting+"-"+qe.formatting[dt]+"-"+qe.quote):ot.push("error"))}if(qe.taskOpen)return ot.push("meta"),ot.length?ot.join(" "):null;if(qe.taskClosed)return ot.push("property"),ot.length?ot.join(" "):null;if(qe.linkHref?ot.push(ce.linkHref,"url"):(qe.strong&&ot.push(ce.strong),qe.em&&ot.push(ce.em),qe.strikethrough&&ot.push(ce.strikethrough),qe.emoji&&ot.push(ce.emoji),qe.linkText&&ot.push(ce.linkText),qe.code&&ot.push(ce.code),qe.image&&ot.push(ce.image),qe.imageAltText&&ot.push(ce.imageAltText,"link"),qe.imageMarker&&ot.push(ce.imageMarker)),qe.header&&ot.push(ce.header,ce.header+"-"+qe.header),qe.quote&&(ot.push(ce.quote),!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=qe.quote?ot.push(ce.quote+"-"+qe.quote):ot.push(ce.quote+"-"+oe.maxBlockquoteDepth)),qe.list!==!1){var St=(qe.listStack.length-1)%3;St?St===1?ot.push(ce.list2):ot.push(ce.list3):ot.push(ce.list1)}return qe.trailingSpaceNewLine?ot.push("trailing-space-new-line"):qe.trailingSpace&&ot.push("trailing-space-"+(qe.trailingSpace%2?"a":"b")),ot.length?ot.join(" "):null}function Oe(qe,ot){if(qe.match(fe,!0))return Fe(ot)}function je(qe,ot){var dt=ot.text(qe,ot);if(typeof dt!="undefined")return dt;if(ot.list)return ot.list=null,Fe(ot);if(ot.taskList){var St=qe.match(De,!0)[1]===" ";return St?ot.taskOpen=!0:ot.taskClosed=!0,oe.highlightFormatting&&(ot.formatting="task"),ot.taskList=!1,Fe(ot)}if(ot.taskOpen=!1,ot.taskClosed=!1,ot.header&&qe.match(/^#+$/,!0))return oe.highlightFormatting&&(ot.formatting="header"),Fe(ot);var xt=qe.next();if(ot.linkTitle){ot.linkTitle=!1;var ft=xt;xt==="("&&(ft=")"),ft=(ft+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var gt="^\\s*(?:[^"+ft+"\\\\]+|\\\\\\\\|\\\\.)"+ft;if(qe.match(new RegExp(gt),!0))return ce.linkHref}if(xt==="`"){var vt=ot.formatting;oe.highlightFormatting&&(ot.formatting="code"),qe.eatWhile("`");var Tt=qe.current().length;if(ot.code==0&&(!ot.quote||Tt==1))return ot.code=Tt,Fe(ot);if(Tt==ot.code){var Et=Fe(ot);return ot.code=0,Et}else return ot.formatting=vt,Fe(ot)}else if(ot.code)return Fe(ot);if(xt==="\\"&&(qe.next(),oe.highlightFormatting)){var Zt=Fe(ot),wt=ce.formatting+"-escape";return Zt?Zt+" "+wt:wt}if(xt==="!"&&qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ot.imageMarker=!0,ot.image=!0,oe.highlightFormatting&&(ot.formatting="image"),Fe(ot);if(xt==="["&&ot.imageMarker&&qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ot.imageMarker=!1,ot.imageAltText=!0,oe.highlightFormatting&&(ot.formatting="image"),Fe(ot);if(xt==="]"&&ot.imageAltText){oe.highlightFormatting&&(ot.formatting="image");var Zt=Fe(ot);return ot.imageAltText=!1,ot.image=!1,ot.inline=ot.f=_e,Zt}if(xt==="["&&!ot.image)return ot.linkText&&qe.match(/^.*?\]/)||(ot.linkText=!0,oe.highlightFormatting&&(ot.formatting="link")),Fe(ot);if(xt==="]"&&ot.linkText){oe.highlightFormatting&&(ot.formatting="link");var Zt=Fe(ot);return ot.linkText=!1,ot.inline=ot.f=qe.match(/\(.*?\)| ?\[.*?\]/,!1)?_e:je,Zt}if(xt==="<"&&qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ot.f=ot.inline=ze,oe.highlightFormatting&&(ot.formatting="link");var Zt=Fe(ot);return Zt?Zt+=" ":Zt="",Zt+ce.linkInline}if(xt==="<"&&qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ot.f=ot.inline=ze,oe.highlightFormatting&&(ot.formatting="link");var Zt=Fe(ot);return Zt?Zt+=" ":Zt="",Zt+ce.linkEmail}if(oe.xml&&xt==="<"&&qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var bt=qe.string.indexOf(">",qe.pos);if(bt!=-1){var it=qe.string.substring(qe.start,bt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(it)&&(ot.md_inside=!0)}return qe.backUp(1),ot.htmlState=He.startState(Ze),ue(qe,ot,Ie)}if(oe.xml&&xt==="<"&&qe.match(/^\/\w*?>/))return ot.md_inside=!1,"tag";if(xt==="*"||xt==="_"){for(var nt=1,xe=qe.pos==1?" ":qe.string.charAt(qe.pos-2);nt<3&&qe.eat(xt);)nt++;var Ce=qe.peek()||" ",Ye=!/\s/.test(Ce)&&(!ae.test(Ce)||/\s/.test(xe)||ae.test(xe)),Je=!/\s/.test(xe)&&(!ae.test(xe)||/\s/.test(Ce)||ae.test(Ce)),Me=null,Ge=null;if(nt%2&&(!ot.em&&Ye&&(xt==="*"||!Je||ae.test(xe))?Me=!0:ot.em==xt&&Je&&(xt==="*"||!Ye||ae.test(Ce))&&(Me=!1)),nt>1&&(!ot.strong&&Ye&&(xt==="*"||!Je||ae.test(xe))?Ge=!0:ot.strong==xt&&Je&&(xt==="*"||!Ye||ae.test(Ce))&&(Ge=!1)),Ge!=null||Me!=null){oe.highlightFormatting&&(ot.formatting=Me==null?"strong":Ge==null?"em":"strong em"),Me===!0&&(ot.em=xt),Ge===!0&&(ot.strong=xt);var Et=Fe(ot);return Me===!1&&(ot.em=!1),Ge===!1&&(ot.strong=!1),Et}}else if(xt===" "&&(qe.eat("*")||qe.eat("_"))){if(qe.peek()===" ")return Fe(ot);qe.backUp(1)}if(oe.strikethrough){if(xt==="~"&&qe.eatWhile(xt)){if(ot.strikethrough){oe.highlightFormatting&&(ot.formatting="strikethrough");var Et=Fe(ot);return ot.strikethrough=!1,Et}else if(qe.match(/^[^\s]/,!1))return ot.strikethrough=!0,oe.highlightFormatting&&(ot.formatting="strikethrough"),Fe(ot)}else if(xt===" "&&qe.match(/^~~/,!0)){if(qe.peek()===" ")return Fe(ot);qe.backUp(2)}}if(oe.emoji&&xt===":"&&qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ot.emoji=!0,oe.highlightFormatting&&(ot.formatting="emoji");var Ke=Fe(ot);return ot.emoji=!1,Ke}return xt===" "&&(qe.match(/^ +$/,!1)?ot.trailingSpace++:ot.trailingSpace&&(ot.trailingSpaceNewLine=!0)),Fe(ot)}function ze(qe,ot){var dt=qe.next();if(dt===">"){ot.f=ot.inline=je,oe.highlightFormatting&&(ot.formatting="link");var St=Fe(ot);return St?St+=" ":St="",St+ce.linkInline}return qe.match(/^[^>]+/,!0),ce.linkInline}function _e(qe,ot){if(qe.eatSpace())return null;var dt=qe.next();return dt==="("||dt==="["?(ot.f=ot.inline=$e(dt==="("?")":"]"),oe.highlightFormatting&&(ot.formatting="link-string"),ot.linkHref=!0,Fe(ot)):"error"}var Ue={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function $e(qe){return function(ot,dt){var St=ot.next();if(St===qe){dt.f=dt.inline=je,oe.highlightFormatting&&(dt.formatting="link-string");var xt=Fe(dt);return dt.linkHref=!1,xt}return ot.match(Ue[qe]),dt.linkHref=!0,Fe(dt)}}function et(qe,ot){return qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(ot.f=lt,qe.next(),oe.highlightFormatting&&(ot.formatting="link"),ot.linkText=!0,Fe(ot)):le(qe,ot,je)}function lt(qe,ot){if(qe.match(/^\]:/,!0)){ot.f=ot.inline=ut,oe.highlightFormatting&&(ot.formatting="link");var dt=Fe(ot);return ot.linkText=!1,dt}return qe.match(/^([^\]\\]|\\.)+/,!0),ce.linkText}function ut(qe,ot){return qe.eatSpace()?null:(qe.match(/^[^\s]+/,!0),qe.peek()===void 0?ot.linkTitle=!0:qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ot.f=ot.inline=je,ce.linkHref+" url")}var yt={startState:function(){return{f:be,prevLine:{stream:null},thisLine:{stream:null},block:be,htmlState:null,indentation:0,inline:je,text:Oe,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(qe){return{f:qe.f,prevLine:qe.prevLine,thisLine:qe.thisLine,block:qe.block,htmlState:qe.htmlState&&He.copyState(Ze,qe.htmlState),indentation:qe.indentation,localMode:qe.localMode,localState:qe.localMode?He.copyState(qe.localMode,qe.localState):null,inline:qe.inline,text:qe.text,formatting:!1,linkText:qe.linkText,linkTitle:qe.linkTitle,linkHref:qe.linkHref,code:qe.code,em:qe.em,strong:qe.strong,strikethrough:qe.strikethrough,emoji:qe.emoji,header:qe.header,setext:qe.setext,hr:qe.hr,taskList:qe.taskList,list:qe.list,listStack:qe.listStack.slice(0),quote:qe.quote,indentedCode:qe.indentedCode,trailingSpace:qe.trailingSpace,trailingSpaceNewLine:qe.trailingSpaceNewLine,md_inside:qe.md_inside,fencedEndRE:qe.fencedEndRE}},token:function(qe,ot){if(ot.formatting=!1,qe!=ot.thisLine.stream){if(ot.header=0,ot.hr=!1,qe.match(/^\s*$/,!0))return Ee(ot),null;if(ot.prevLine=ot.thisLine,ot.thisLine={stream:qe},ot.taskList=!1,ot.trailingSpace=0,ot.trailingSpaceNewLine=!1,!ot.localState&&(ot.f=ot.block,ot.f!=Ie)){var dt=qe.match(/^\s*/,!0)[0].replace(/\t/g,re).length;if(ot.indentation=dt,ot.indentationDiff=null,dt>0)return null}}return ot.f(qe,ot)},innerMode:function(qe){return qe.block==Ie?{state:qe.htmlState,mode:Ze}:qe.localState?{state:qe.localState,mode:qe.localMode}:{state:qe,mode:yt}},indent:function(qe,ot,dt){return qe.block==Ie&&Ze.indent?Ze.indent(qe.htmlState,ot,dt):qe.localState&&qe.localMode.indent?qe.localMode.indent(qe.localState,ot,dt):He.Pass},blankLine:Ee,getType:Fe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return yt},"xml"),He.defineMIME("text/markdown","markdown"),He.defineMIME("text/x-markdown","markdown")})},98101:function(kn,fn,We){(function(He){He(We(89780))})(function(He){"use strict";He.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 mt=0;mt<He.modeInfo.length;mt++){var oe=He.modeInfo[mt];oe.mimes&&(oe.mime=oe.mimes[0])}He.findModeByMIME=function(Ze){Ze=Ze.toLowerCase();for(var Ne=0;Ne<He.modeInfo.length;Ne++){var ge=He.modeInfo[Ne];if(ge.mime==Ze)return ge;if(ge.mimes){for(var ce=0;ce<ge.mimes.length;ce++)if(ge.mimes[ce]==Ze)return ge}}if(/\+xml$/.test(Ze))return He.findModeByMIME("application/xml");if(/\+json$/.test(Ze))return He.findModeByMIME("application/json")},He.findModeByExtension=function(Ze){Ze=Ze.toLowerCase();for(var Ne=0;Ne<He.modeInfo.length;Ne++){var ge=He.modeInfo[Ne];if(ge.ext){for(var ce=0;ce<ge.ext.length;ce++)if(ge.ext[ce]==Ze)return ge}}},He.findModeByFileName=function(Ze){for(var Ne=0;Ne<He.modeInfo.length;Ne++){var ge=He.modeInfo[Ne];if(ge.file&&ge.file.test(Ze))return ge}var ce=Ze.lastIndexOf("."),Pe=ce>-1&&Ze.substring(ce+1,Ze.length);if(Pe)return He.findModeByExtension(Pe)},He.findModeByName=function(Ze){Ze=Ze.toLowerCase();for(var Ne=0;Ne<He.modeInfo.length;Ne++){var ge=He.modeInfo[Ne];if(ge.name.toLowerCase()==Ze)return ge;if(ge.alias){for(var ce=0;ce<ge.alias.length;ce++)if(ge.alias[ce].toLowerCase()==Ze)return ge}}}})},67549:function(kn,fn,We){(function(He){He(We(89780))})(function(He){"use strict";He.defineMode("stex",function(mt,oe){"use strict";function Ze(fe,z){fe.cmdState.push(z)}function Ne(fe){return fe.cmdState.length>0?fe.cmdState[fe.cmdState.length-1]:null}function ge(fe){var z=fe.cmdState.pop();z&&z.closeBracket()}function ce(fe){for(var z=fe.cmdState,ee=z.length-1;ee>=0;ee--){var ae=z[ee];if(ae.name!="DEFAULT")return ae}return{styleIdentifier:function(){return null}}}function Pe(fe,z,ee){return function(){this.name=fe,this.bracketNo=0,this.style=z,this.styles=ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ae={};Ae.importmodule=Pe("importmodule","tag",["string","builtin"]),Ae.documentclass=Pe("documentclass","tag",["","atom"]),Ae.usepackage=Pe("usepackage","tag",["atom"]),Ae.begin=Pe("begin","tag",["atom"]),Ae.end=Pe("end","tag",["atom"]),Ae.label=Pe("label","tag",["atom"]),Ae.ref=Pe("ref","tag",["atom"]),Ae.eqref=Pe("eqref","tag",["atom"]),Ae.cite=Pe("cite","tag",["atom"]),Ae.bibitem=Pe("bibitem","tag",["atom"]),Ae.Bibitem=Pe("Bibitem","tag",["atom"]),Ae.RBibitem=Pe("RBibitem","tag",["atom"]),Ae.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ye(fe,z){fe.f=z}function De(fe,z){var ee;if(fe.match(/^\\[a-zA-Z@]+/)){var ae=fe.current().slice(1);return ee=Ae.hasOwnProperty(ae)?Ae[ae]:Ae.DEFAULT,ee=new ee,Ze(z,ee),ye(z,we),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=Ne(z),ee)ee.closeBracket(re),ye(z,we);else return"error";return"bracket"}else return re=="{"||re=="["?(ee=Ae.DEFAULT,ee=new ee,Ze(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,De),"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 we(fe,z){var ee=fe.peek(),ae;return ee=="{"||ee=="["?(ae=Ne(z),ae.openBracket(ee),fe.eat(ee),ye(z,De),"bracket"):/[ \t\r]/.test(ee)?(fe.eat(ee),null):(ye(z,De),ge(z),De(fe,z))}return{startState:function(){var fe=oe.inMathMode?function(z,ee){return me(z,ee)}:De;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=De,fe.cmdState.length=0},lineComment:"%"}}),He.defineMIME("text/x-stex","stex"),He.defineMIME("text/x-latex","stex")})},15525:function(kn,fn,We){(function(He){He(We(89780))})(function(He){"use strict";var mt={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};He.defineMode("xml",function(Ze,Ne){var ge=Ze.indentUnit,ce={},Pe=Ne.htmlMode?mt:oe;for(var Ae in Pe)ce[Ae]=Pe[Ae];for(var Ae in Ne)ce[Ae]=Ne[Ae];var ye,De;function me(ze,_e){function Ue(lt){return _e.tokenize=lt,lt(ze,_e)}var $e=ze.next();if($e=="<")return ze.eat("!")?ze.eat("[")?ze.match("CDATA[")?Ue(z("atom","]]>")):null:ze.match("--")?Ue(z("comment","-->")):ze.match("DOCTYPE",!0,!0)?(ze.eatWhile(/[\w\._\-]/),Ue(ee(1))):null:ze.eat("?")?(ze.eatWhile(/[\w\._\-]/),_e.tokenize=z("meta","?>"),"meta"):(ye=ze.eat("/")?"closeTag":"openTag",_e.tokenize=we,"tag bracket");if($e=="&"){var et;return ze.eat("#")?ze.eat("x")?et=ze.eatWhile(/[a-fA-F\d]/)&&ze.eat(";"):et=ze.eatWhile(/[\d]/)&&ze.eat(";"):et=ze.eatWhile(/[\w\.\-:]/)&&ze.eat(";"),et?"atom":"error"}else return ze.eatWhile(/[^&<]/),null}me.isInText=!0;function we(ze,_e){var Ue=ze.next();if(Ue==">"||Ue=="/"&&ze.eat(">"))return _e.tokenize=me,ye=Ue==">"?"endTag":"selfcloseTag","tag bracket";if(Ue=="=")return ye="equals",null;if(Ue=="<"){_e.tokenize=me,_e.state=ue,_e.tagName=_e.tagStart=null;var $e=_e.tokenize(ze,_e);return $e?$e+" tag error":"tag error"}else return/[\'\"]/.test(Ue)?(_e.tokenize=fe(Ue),_e.stringStartCol=ze.column(),_e.tokenize(ze,_e)):(ze.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function fe(ze){var _e=function(Ue,$e){for(;!Ue.eol();)if(Ue.next()==ze){$e.tokenize=we;break}return"string"};return _e.isInAttribute=!0,_e}function z(ze,_e){return function(Ue,$e){for(;!Ue.eol();){if(Ue.match(_e)){$e.tokenize=me;break}Ue.next()}return ze}}function ee(ze){return function(_e,Ue){for(var $e;($e=_e.next())!=null;){if($e=="<")return Ue.tokenize=ee(ze+1),Ue.tokenize(_e,Ue);if($e==">")if(ze==1){Ue.tokenize=me;break}else return Ue.tokenize=ee(ze-1),Ue.tokenize(_e,Ue)}return"meta"}}function ae(ze,_e,Ue){this.prev=ze.context,this.tagName=_e,this.indent=ze.indented,this.startOfLine=Ue,(ce.doNotIndent.hasOwnProperty(_e)||ze.context&&ze.context.noIndent)&&(this.noIndent=!0)}function re(ze){ze.context&&(ze.context=ze.context.prev)}function le(ze,_e){for(var Ue;;){if(!ze.context||(Ue=ze.context.tagName,!ce.contextGrabbers.hasOwnProperty(Ue)||!ce.contextGrabbers[Ue].hasOwnProperty(_e)))return;re(ze)}}function ue(ze,_e,Ue){return ze=="openTag"?(Ue.tagStart=_e.column(),pe):ze=="closeTag"?Ee:ue}function pe(ze,_e,Ue){return ze=="word"?(Ue.tagName=_e.current(),De="tag",Le):ce.allowMissingTagName&&ze=="endTag"?(De="tag bracket",Le(ze,_e,Ue)):(De="error",pe)}function Ee(ze,_e,Ue){if(ze=="word"){var $e=_e.current();return Ue.context&&Ue.context.tagName!=$e&&ce.implicitlyClosed.hasOwnProperty(Ue.context.tagName)&&re(Ue),Ue.context&&Ue.context.tagName==$e||ce.matchClosing===!1?(De="tag",be):(De="tag error",Ie)}else return ce.allowMissingTagName&&ze=="endTag"?(De="tag bracket",be(ze,_e,Ue)):(De="error",Ie)}function be(ze,_e,Ue){return ze!="endTag"?(De="error",be):(re(Ue),ue)}function Ie(ze,_e,Ue){return De="error",be(ze,_e,Ue)}function Le(ze,_e,Ue){if(ze=="word")return De="attribute",Fe;if(ze=="endTag"||ze=="selfcloseTag"){var $e=Ue.tagName,et=Ue.tagStart;return Ue.tagName=Ue.tagStart=null,ze=="selfcloseTag"||ce.autoSelfClosers.hasOwnProperty($e)?le(Ue,$e):(le(Ue,$e),Ue.context=new ae(Ue,$e,et==Ue.indented)),ue}return De="error",Le}function Fe(ze,_e,Ue){return ze=="equals"?Oe:(ce.allowMissing||(De="error"),Le(ze,_e,Ue))}function Oe(ze,_e,Ue){return ze=="string"?je:ze=="word"&&ce.allowUnquoted?(De="string",Le):(De="error",Le(ze,_e,Ue))}function je(ze,_e,Ue){return ze=="string"?je:Le(ze,_e,Ue)}return{startState:function(ze){var _e={tokenize:me,state:ue,indented:ze||0,tagName:null,tagStart:null,context:null};return ze!=null&&(_e.baseIndent=ze),_e},token:function(ze,_e){if(!_e.tagName&&ze.sol()&&(_e.indented=ze.indentation()),ze.eatSpace())return null;ye=null;var Ue=_e.tokenize(ze,_e);return(Ue||ye)&&Ue!="comment"&&(De=null,_e.state=_e.state(ye||Ue,ze,_e),De&&(Ue=De=="error"?Ue+" error":De)),Ue},indent:function(ze,_e,Ue){var $e=ze.context;if(ze.tokenize.isInAttribute)return ze.tagStart==ze.indented?ze.stringStartCol+1:ze.indented+ge;if($e&&$e.noIndent)return He.Pass;if(ze.tokenize!=we&&ze.tokenize!=me)return Ue?Ue.match(/^(\s*)/)[0].length:0;if(ze.tagName)return ce.multilineTagIndentPastTag!==!1?ze.tagStart+ze.tagName.length+2:ze.tagStart+ge*(ce.multilineTagIndentFactor||1);if(ce.alignCDATA&&/<!\[CDATA\[/.test(_e))return 0;var et=_e&&/^<(\/)?([\w_:\.-]*)/.exec(_e);if(et&&et[1])for(;$e;)if($e.tagName==et[2]){$e=$e.prev;break}else if(ce.implicitlyClosed.hasOwnProperty($e.tagName))$e=$e.prev;else break;else if(et)for(;$e;){var lt=ce.contextGrabbers[$e.tagName];if(lt&<.hasOwnProperty(et[2]))$e=$e.prev;else break}for(;$e&&$e.prev&&!$e.startOfLine;)$e=$e.prev;return $e?$e.indent+ge:ze.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ce.htmlMode?"html":"xml",helperType:ce.htmlMode?"html":"xml",skipAttribute:function(ze){ze.state==Oe&&(ze.state=Le)},xmlCurrentTag:function(ze){return ze.tagName?{name:ze.tagName,close:ze.type=="closeTag"}:null},xmlCurrentContext:function(ze){for(var _e=[],Ue=ze.context;Ue;Ue=Ue.prev)Ue.tagName&&_e.push(Ue.tagName);return _e.reverse()}}}),He.defineMIME("text/xml","xml"),He.defineMIME("application/xml","xml"),He.mimeModes.hasOwnProperty("text/html")||He.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(kn,fn,We){"use strict";We.d(fn,{$u:function(){return Ae},BD:function(){return nt},E9:function(){return Pe},FF:function(){return $r},FJ:function(){return ue},Hn:function(){return le},KX:function(){return Ee},NB:function(){return ht},S0:function(){return wt},UL:function(){return ye},Vk:function(){return re},Vm:function(){return pt},YI:function(){return bt},ZA:function(){return oe},Zt:function(){return De},al:function(){return Me},bn:function(){return Je},bx:function(){return xe},g2:function(){return it},h1:function(){return Oe},hD:function(){return Cn},l4:function(){return ge},rU:function(){return At},s_:function(){return Ce},uz:function(){return Qe},z6:function(){return me}}),kn=We.hmd(kn),function(){var at;function wi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function ui(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:wi(a)}}function Dn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var ur=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},or;if(typeof Object.setPrototypeOf=="function")or=Object.setPrototypeOf;else{var vr;e:{var Hn={a:!0},Jn={};try{Jn.__proto__=Hn,vr=Jn.a;break e}catch(a){}vr=!1}or=vr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var _t=or;function Gt(a,y){if(a.prototype=ur(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 Pt=typeof We.g!="undefined"&&We.g!=null?We.g:self,ln=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 Vt(a,y){if(y){var x=Pt;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})}}Vt("Object.assign",function(a){return a||ln}),Vt("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 Dt=typeof globalThis=="object"&&globalThis||typeof We.g=="object"&&We.g.global===We.g&&We.g||typeof self=="object"&&self.self===self&&self||{};Dt.requestAnimationFrame===void 0&&(Dt.setImmediate===void 0?Dt.requestAnimationFrame=function(a){Dt.setTimeout(a,0)}:Dt.requestAnimationFrame=Dt.setImmediate);function cn(){}function xn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Dt.clearTimeout(x),x=Nn(function(){x=-1,a.apply(b,E)},y)}}function Nn(a,y){return Dt.setTimeout(a,y)}function Zn(a){return Dt.document.createElement(a)}function Ht(a){throw Error(a)}function En(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Ht(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),Ht(x+" is not in the range "+y+": "+a)}function nr(a){Dt.console&&Dt.console.log(a)}function rn(a){return typeof a=="object"&&a!==null}function bn(a){return Array.isArray(a)||Dt.NodeList&&a instanceof Dt.NodeList||Dt.HTMLCollection&&a instanceof Dt.HTMLCollection}function nn(a){return Array.prototype.slice.call(a)}function wn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Ht("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function gn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Ht("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function yn(){var a=Br.pop();return a===void 0?[]:a}function Ln(a){a.length=0,Br.push(a)}function Tn(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(rn(a)&&a.constructor)return Tn(a.constructor);return typeof a}function In(a){var y=a;return rn(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 Gn(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 mr(a,y,x){Object.defineProperty(Wo.prototype,a,{get:y,set:x})}function mn(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 Pr=Dt.navigator!==void 0&&0<Dt.navigator.userAgent.indexOf("Trident/7"),Ur=Dt.navigator!==void 0&&Dt.navigator.platform!==void 0&&Dt.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Br=[];Object.freeze([]),cn.className="Util",cn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",cn.adym="gojs.net",cn.vfo="28e645fdb266",cn.className="Util";function Sn(a,y,x){pi(this),this.j=a,this.xa=y,this.o=x}Sn.prototype.toString=function(){return"EnumValue."+this.xa};function Yn(a,y){return y==null||y===""?null:a[y]}Pt.Object.defineProperties(Sn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Sn.className="EnumValue";function dr(){this.ew=[]}dr.prototype.toString=function(){return this.ew.join("")},dr.prototype.add=function(a){a!==""&&this.ew.push(a)},dr.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){Dt.console&&Dt.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 Ir(){}Ir.prototype.reset=function(){},Ir.prototype.next=function(){return!1},Ir.prototype.Ad=function(){return!1},Ir.prototype.first=function(){return null},Ir.prototype.any=function(){return!1},Ir.prototype.all=function(){return!0},Ir.prototype.each=function(){return this},Ir.prototype.map=function(){return this},Ir.prototype.filter=function(){return this},Ir.prototype.de=function(){},Ir.prototype.toString=function(){return"EmptyIterator"},Pt.Object.defineProperties(Ir.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Ir.prototype.first=Ir.prototype.first,Ir.prototype.hasNext=Ir.prototype.Ad,Ir.prototype.next=Ir.prototype.next,Ir.prototype.reset=Ir.prototype.reset;var Zr=null;Ir.className="EmptyIterator",Zr=new Ir;function zr(a){this.key=-1,this.value=a}zr.prototype.reset=function(){this.key=-1},zr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},zr.prototype.Ad=function(){return this.next()},zr.prototype.first=function(){return this.key=0,this.value},zr.prototype.any=function(a){return this.key=-1,a(this.value)},zr.prototype.all=function(a){return this.key=-1,a(this.value)},zr.prototype.each=function(a){return this.key=-1,a(this.value),this},zr.prototype.map=function(a){return new zr(a(this.value))},zr.prototype.filter=function(a){return a(this.value)?new zr(this.value):Zr},zr.prototype.de=function(){this.value=null},zr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Pt.Object.defineProperties(zr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),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="SingletonIterator";function Er(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Er.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Er.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},Er.prototype.Ad=function(){return this.next()},Er.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},Er.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},Er.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},Er.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},Er.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 Fn,a.s=x,a.xb(),a.iterator},Er.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 Fn,a.s=x,a.xb(),a.iterator},Er.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Er.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Pt.Object.defineProperties(Er.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}}}),Er.prototype.first=Er.prototype.first,Er.prototype.hasNext=Er.prototype.Ad,Er.prototype.next=Er.prototype.next,Er.prototype.reset=Er.prototype.reset,Er.className="ListIterator";function Vr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Vr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Vr.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)},Vr.prototype.Ad=function(){return this.next()},Vr.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},Vr.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},Vr.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},Vr.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},Vr.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 Fn,a.s=x,a.xb(),a.iterator},Vr.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 Fn,a.s=x,a.xb(),a.iterator},Vr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Vr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Pt.Object.defineProperties(Vr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Vr.prototype.first=Vr.prototype.first,Vr.prototype.hasNext=Vr.prototype.Ad,Vr.prototype.next=Vr.prototype.next,Vr.prototype.reset=Vr.prototype.reset,Vr.className="ListIteratorBackwards";function Fn(a){pi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Ht("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}at=Fn.prototype,at.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return this._isFrozen=!1,this},at.toString=function(){return"List()#"+Qr(this)},at.add=function(a){return a===null?this:(this._isFrozen&&En(this,a),this.s.push(a),this.xb(),this)},at.push=function(a){this.add(a)},at.addAll=function(a){if(a===null)return this;this._isFrozen&&En(this);var y=this.s;if(bn(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},at.clear=function(){this._isFrozen&&En(this),this.s.length=0,this.xb()},at.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},at.has=function(a){return this.contains(a)},at.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},at.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Kn(a,"0 <= i < length",Fn,"elt:i"),y[a]},at.get=function(a){return this.M(a)},at.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Kn(a,"0 <= i < length",Fn,"setElt:i"),this._isFrozen&&En(this,a),x[a]=y},at.set=function(a,y){this.cd(a,y)},at.first=function(){var a=this.s;return a.length===0?null:a[0]},at.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},at.pop=function(){this._isFrozen&&En(this);var a=this.s;return 0<a.length?a.pop():null},Fn.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},Fn.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},Fn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Fn.prototype.map=function(a){for(var y=new Fn,x=[],b=this.s,E=b.length,te=0;te<E;te++)x.push(a(b[te]));return y.s=x,y.xb(),y},Fn.prototype.filter=function(a){for(var y=new Fn,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},at=Fn.prototype,at.Gb=function(a,y){0>a&&Kn(a,">= 0",Fn,"insertAt:i"),this._isFrozen&&En(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},at.remove=function(a){if(a===null)return!1;this._isFrozen&&En(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)},at.delete=function(a){return this.remove(a)},at.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Kn(a,"0 <= i < length",Fn,"removeAt:i"),this._isFrozen&&En(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},at.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&&En(this);for(var E=a,te=y+1;te<b;)x[E++]=x[te++];return x.length=b-(y-a+1),this.xb(),this},Fn.prototype.copy=function(){var a=new Fn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},at=Fn.prototype,at.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},at.Iv=function(){for(var a=new On,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},at.sort=function(a){return this._isFrozen&&En(this),this.s.sort(a),this.xb(),this},at.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&En(this);var te=x-y;if(1>=te)return this;if((0>y||y>=E-1)&&Kn(y,"0 <= from < length",Fn,"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},at.reverse=function(){return this._isFrozen&&En(this),this.s.reverse(),this.xb(),this},Pt.Object.defineProperties(Fn.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 Zr;var a=this.Sa;return a!==null?(a.reset(),a):new Er(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Zr;var a=this.Hg;return a!==null?(a.reset(),a):new Vr(this)}}}),Fn.prototype.reverse=Fn.prototype.reverse,Fn.prototype.sortRange=Fn.prototype.zi,Fn.prototype.sort=Fn.prototype.sort,Fn.prototype.toSet=Fn.prototype.Iv,Fn.prototype.toArray=Fn.prototype.Fa,Fn.prototype.removeRange=Fn.prototype.removeRange,Fn.prototype.removeAt=Fn.prototype.mb,Fn.prototype.delete=Fn.prototype.delete,Fn.prototype.remove=Fn.prototype.remove,Fn.prototype.insertAt=Fn.prototype.Gb,Fn.prototype.pop=Fn.prototype.pop,Fn.prototype.last=Fn.prototype.jc,Fn.prototype.first=Fn.prototype.first,Fn.prototype.set=Fn.prototype.set,Fn.prototype.setElt=Fn.prototype.cd,Fn.prototype.get=Fn.prototype.get,Fn.prototype.elt=Fn.prototype.M,Fn.prototype.indexOf=Fn.prototype.indexOf,Fn.prototype.has=Fn.prototype.has,Fn.prototype.contains=Fn.prototype.contains,Fn.prototype.clear=Fn.prototype.clear,Fn.prototype.addAll=Fn.prototype.addAll,Fn.prototype.push=Fn.prototype.push,Fn.prototype.add=Fn.prototype.add,Fn.prototype.thaw=Fn.prototype.ka,Fn.prototype.freeze=Fn.prototype.freeze,Fn.className="List";function Mi(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Mi.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Mi.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)},Mi.prototype.Ad=function(){return this.next()},Mi.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},Mi.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},Mi.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},Mi.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},Mi.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Fn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Mi.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Fn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Mi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Mi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Pt.Object.defineProperties(Mi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Mi.prototype.first=Mi.prototype.first,Mi.prototype.hasNext=Mi.prototype.Ad,Mi.prototype.next=Mi.prototype.next,Mi.prototype.reset=Mi.prototype.reset,Mi.className="SetIterator";function On(a){pi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Ht("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}at=On.prototype,at.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return this._isFrozen=!1,this},at.toString=function(){return"Set()#"+Qr(this)},at.add=function(a){if(a===null)return this;this._isFrozen&&En(this,a);var y=a;return rn(a)&&(y=Ni(a)),this.Tb[y]===void 0&&(this.Sb++,a=new bi(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},at.addAll=function(a){if(a===null)return this;if(this._isFrozen&&En(this),bn(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},at.contains=function(a){if(a===null)return!1;var y=a;return rn(a)&&(y=Qr(a),y===void 0)?!1:this.Tb[y]!==void 0},at.has=function(a){return this.contains(a)},at.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},at.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},at.first=function(){var a=this.ea;return a===null?null:a.value},On.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},On.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},On.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},On.prototype.map=function(a){for(var y=new On,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},On.prototype.filter=function(a){for(var y=new On,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},at=On.prototype,at.remove=function(a){if(a===null)return!1;this._isFrozen&&En(this,a);var y=a;if(rn(a)&&(y=Qr(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},at.delete=function(a){return this.remove(a)},at.hp=function(a){if(a===null)return this;if(this._isFrozen&&En(this),bn(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},at.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&En(this);var y=new On;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},at.clear=function(){this._isFrozen&&En(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},On.prototype.copy=function(){var a=new On,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},On.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},On.prototype.Hv=function(){var a=new Fn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function pi(a){a.__gohashid=Xi++}function Ni(a){var y=a.__gohashid;return y===void 0&&(y=Xi++,a.__gohashid=y),y}function Qr(a){return a.__gohashid}Pt.Object.defineProperties(On.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Zr;var a=this.Sa;return a!==null?(a.reset(),a):new Mi(this)}}}),On.prototype.toList=On.prototype.Hv,On.prototype.toArray=On.prototype.Fa,On.prototype.clear=On.prototype.clear,On.prototype.retainAll=On.prototype.pA,On.prototype.removeAll=On.prototype.hp,On.prototype.delete=On.prototype.delete,On.prototype.remove=On.prototype.remove,On.prototype.first=On.prototype.first,On.prototype.containsAny=On.prototype.Ty,On.prototype.containsAll=On.prototype.Sy,On.prototype.has=On.prototype.has,On.prototype.contains=On.prototype.contains,On.prototype.addAll=On.prototype.addAll,On.prototype.add=On.prototype.add,On.prototype.thaw=On.prototype.ka,On.prototype.freeze=On.prototype.freeze;var Xi=1;On.className="Set",On.uniqueHash=pi,On.hashIdUnique=Ni,On.hashId=Qr;function Ti(a){this.ma=a,this.qa=a.Ja,this.sa=null}Ti.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Ti.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)},Ti.prototype.Ad=function(){return this.next()},Ti.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},Ti.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},Ti.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},Ti.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},Ti.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Fn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Ti.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Fn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Ti.prototype.de=function(){this.value=this.key=null,this.qa=-1},Ti.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Pt.Object.defineProperties(Ti.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ti.prototype.first=Ti.prototype.first,Ti.prototype.hasNext=Ti.prototype.Ad,Ti.prototype.next=Ti.prototype.next,Ti.prototype.reset=Ti.prototype.reset,Ti.className="MapKeySetIterator";function Rr(a){On.call(this),pi(this),this._isFrozen=!0,this.ma=a}Gt(Rr,On),at=Rr.prototype,at.freeze=function(){return this},at.ka=function(){return this},at.toString=function(){return"MapKeySet("+this.ma.toString()+")"},at.add=function(){Ht("This Set is read-only: "+this.toString())},at.contains=function(a){return this.ma.contains(a)},at.has=function(a){return this.contains(a)},at.remove=function(){Ht("This Set is read-only: "+this.toString())},at.delete=function(a){return this.remove(a)},at.clear=function(){Ht("This Set is read-only: "+this.toString())},at.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Rr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Rr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Rr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Rr.prototype.map=function(a){for(var y=new On,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Rr.prototype.filter=function(a){for(var y=new On,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Rr.prototype.copy=function(){return new Rr(this.ma)},Rr.prototype.Iv=function(){var a=new On,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Rr.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},Rr.prototype.Hv=function(){var a=new Fn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Pt.Object.defineProperties(Rr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Zr:new Ti(this.ma)}}}),Rr.prototype.toList=Rr.prototype.Hv,Rr.prototype.toArray=Rr.prototype.Fa,Rr.prototype.toSet=Rr.prototype.Iv,Rr.prototype.first=Rr.prototype.first,Rr.prototype.clear=Rr.prototype.clear,Rr.prototype.delete=Rr.prototype.delete,Rr.prototype.remove=Rr.prototype.remove,Rr.prototype.has=Rr.prototype.has,Rr.prototype.contains=Rr.prototype.contains,Rr.prototype.add=Rr.prototype.add,Rr.prototype.thaw=Rr.prototype.ka,Rr.prototype.freeze=Rr.prototype.freeze,Rr.className="MapKeySet";function Wr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Wr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Wr.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)},Wr.prototype.Ad=function(){return this.next()},Wr.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},Wr.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},Wr.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},Wr.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},Wr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Fn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Wr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Fn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Wr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Wr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Pt.Object.defineProperties(Wr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Wr.prototype.first=Wr.prototype.first,Wr.prototype.hasNext=Wr.prototype.Ad,Wr.prototype.next=Wr.prototype.next,Wr.prototype.reset=Wr.prototype.reset,Wr.className="MapValueSetIterator";function bi(a,y){this.key=a,this.value=y,this.ll=this.va=null}bi.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},bi.className="KeyValuePair";function Di(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Di.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Di.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)},Di.prototype.Ad=function(){return this.next()},Di.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},Di.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},Di.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},Di.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},Di.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Fn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Di.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Fn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Di.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Di.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Pt.Object.defineProperties(Di.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Di.prototype.first=Di.prototype.first,Di.prototype.hasNext=Di.prototype.Ad,Di.prototype.next=Di.prototype.next,Di.prototype.reset=Di.prototype.reset,Di.className="MapIterator";function pr(a){pi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Ht("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}at=pr.prototype,at.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return this._isFrozen=!1,this},at.toString=function(){return"Map()#"+Qr(this)},at.add=function(a,y){this._isFrozen&&En(this,a);var x=a;rn(a)&&(x=Ni(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new bi(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},at.set=function(a,y){return this.add(a,y)},at.addAll=function(a){if(a===null)return this;if(bn(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},at.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},at=pr.prototype,at.contains=function(a){var y=a;return rn(a)&&(y=Qr(a),y===void 0)?!1:this.Tb[y]!==void 0},at.has=function(a){return this.contains(a)},at.I=function(a){var y=a;return rn(a)&&(y=Qr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},at.get=function(a){return this.I(a)},at.remove=function(a){if(a===null)return!1;this._isFrozen&&En(this,a);var y=a;if(rn(a)&&(y=Qr(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},at.delete=function(a){return this.remove(a)},at.clear=function(){this._isFrozen&&En(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 bi(E.key,E.value),x++}return y},pr.prototype.Lf=function(){return new Rr(this)},Pt.Object.defineProperties(pr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Zr;var a=this.Sa;return a!==null?(a.reset(),a):new Di(this)}},iteratorKeys:{get:function(){return 0>=this.count?Zr:new Ti(this)}},iteratorValues:{get:function(){if(0>=this.count)return Zr;var a=this.jf;return a!==null?(a.reset(),a):new Wr(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 Lt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Ht("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Li,so,Pi,wo,po;Lt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Lt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Lt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Lt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Lt.prototype.copy=function(){var a=new Lt;return a.x=this.x,a.y=this.y,a},at=Lt.prototype,at.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},at.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this};function Eo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Lt(x,E)}return new Lt}function yi(a){return a.x.toString()+" "+a.y.toString()}at.toString=function(){return"Point("+this.x+","+this.y+")"},at.D=function(a){return a instanceof Lt?this.x===a.x&&this.y===a.y:!1},at.hi=function(a,y){return this.x===a&&this.y===y},at.Xa=function(a){return tn.B(this.x,a.x)&&tn.B(this.y,a.y)},at.add=function(a){return this.x+=a.x,this.y+=a.y,this},at.re=function(a){return this.x-=a.x,this.y-=a.y,this},at.offset=function(a,y){return this.x+=a,this.y+=y,this},Lt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},at=Lt.prototype,at.scale=function(a,y){return this.x*=a,this.y*=y,this},at.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},at.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},at.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},at.ab=function(a){return si(a.x-this.x,a.y-this.y)},at.direction=function(a,y){return si(a-this.x,y-this.y)};function si(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}at.Ry=function(a,y){return tn.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},at.fA=function(a,y,x,b){return tn.qh(a,y,x,b,this.x,this.y,this),this},at.gA=function(a,y){return tn.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},at.uA=function(a,y,x,b){return tn.No(this.x,this.y,a,y,x,b,this),this},at.vA=function(a,y){return tn.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},at.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},at.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},at.transform=function(a){return a.Ga(this),this};function ei(a,y){return y.Cd(a),a}function Ji(a,y,x,b,E,te){var ne=E-x,se=te-b,he=ne*ne+se*se;x-=a,b-=y;var ve=-x*ne-b*se;return 0>=ve||ve>=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 no(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Yr(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)}at.w=function(){return isFinite(this.x)&&isFinite(this.y)},Lt.alloc=function(){var a=Kr.pop();return a===void 0?new Lt:a},Lt.allocAt=function(a,y){var x=Kr.pop();return x===void 0?new Lt(a,y):(x.x=a,x.y=y,x)},Lt.free=function(a){Kr.push(a)},Lt.prototype.isReal=Lt.prototype.w,Lt.prototype.setSpot=Lt.prototype.yi,Lt.prototype.setRectSpot=Lt.prototype.xi,Lt.prototype.snapToGridPoint=Lt.prototype.vA,Lt.prototype.snapToGrid=Lt.prototype.uA,Lt.prototype.projectOntoLineSegmentPoint=Lt.prototype.gA,Lt.prototype.projectOntoLineSegment=Lt.prototype.fA,Lt.intersectingLineSegments=function(a,y,x,b,E,te,ne,se){return tn.Rl(a,y,x,b,E,te,ne,se)},Lt.prototype.compareWithLineSegmentPoint=Lt.prototype.Ry,Lt.compareWithLineSegment=function(a,y,x,b,E,te){return tn.Fl(a,y,x,b,E,te)},Lt.prototype.direction=Lt.prototype.direction,Lt.prototype.directionPoint=Lt.prototype.ab,Lt.prototype.normalize=Lt.prototype.normalize,Lt.prototype.distanceSquared=Lt.prototype.zd,Lt.prototype.distanceSquaredPoint=Lt.prototype.Bf,Lt.prototype.scale=Lt.prototype.scale,Lt.prototype.rotate=Lt.prototype.rotate,Lt.prototype.offset=Lt.prototype.offset,Lt.prototype.subtract=Lt.prototype.re,Lt.prototype.add=Lt.prototype.add,Lt.prototype.equalsApprox=Lt.prototype.Xa,Lt.prototype.equalTo=Lt.prototype.hi,Lt.prototype.equals=Lt.prototype.D,Lt.prototype.set=Lt.prototype.set,Lt.prototype.setTo=Lt.prototype.sg;var Kr=[];Lt.className="Point",Lt.parse=Eo,Lt.stringify=yi,Lt.distanceLineSegmentSquared=Ji,Lt.distanceSquared=no,Lt.direction=Yr,Lt.Origin=Li=new Lt(0,0).ja(),Lt.InfiniteTopLeft=so=new Lt(-1/0,-1/0).ja(),Lt.InfiniteBottomRight=Pi=new Lt(1/0,1/0).ja(),Lt.SixPoint=wo=new Lt(6,6).ja(),Lt.NoPoint=po=new Lt(NaN,NaN).ja(),Lt.parse=Eo,Lt.stringify=yi,Lt.distanceLineSegmentSquared=Ji,Lt.distanceSquared=no,Lt.direction=Yr;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):Ht("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ci,ro,Do,lo,Qi,Oo,ko;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},at=qn.prototype,at.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},at.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return Object.isFrozen(this)&&Ht("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()}at.toString=function(){return"Size("+this.width+","+this.height+")"},at.D=function(a){return a instanceof qn?this.width===a.width&&this.height===a.height:!1},at.hi=function(a,y){return this.width===a&&this.height===y},at.Xa=function(a){return tn.B(this.width,a.width)&&tn.B(this.height,a.height)},at.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},at.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=ci=new qn(0,0).ja(),qn.OneSize=ro=new qn(1,1).ja(),qn.SixSize=Do=new qn(6,6).ja(),qn.EightSize=lo=new qn(8,8).ja(),qn.TenSize=Qi=new qn(10,10).ja(),qn.InfiniteSize=Oo=new qn(1/0,1/0).ja(),qn.NoSize=ko=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 Lt?(x=a.x,a=a.y,y instanceof Lt?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof qn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Ht("Incorrect second argument supplied to Rect constructor "+y)):Ht("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}at=Mn.prototype,at.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},at.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}at.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},at.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},at.dd=function(a){return this.x=a.x,this.y=a.y,this},at.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},at=Mn.prototype,at.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},at.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return Object.isFrozen(this)&&Ht("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()}at.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},at.D=function(a){return a instanceof Mn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},at.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},at.Xa=function(a){return tn.B(this.x,a.x)&&tn.B(this.y,a.y)&&tn.B(this.width,a.width)&&tn.B(this.height,a.height)};function bo(a,y){return tn.$(a.x,y.x)&&tn.$(a.y,y.y)&&tn.$(a.width,y.width)&&tn.$(a.height,y.height)}at.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},at.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},at.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},at.offset=function(a,y){return this.x+=a,this.y+=y,this},at.Bc=function(a,y){return io(this,y,a,y,a)},at.Co=function(a){return io(this,a.top,a.right,a.bottom,a.left)},at.Fv=function(a){return io(this,-a.top,-a.right,-a.bottom,-a.left)},at.Hz=function(a,y,x,b){return io(this,a,y,x,b)};function io(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}at.Ex=function(a){return da(this,a.x,a.y,a.width,a.height)},at.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}at.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},at.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))}at.Ye=function(a){return $i(this,a.x,a.y,0,0)},at.ed=function(a){return $i(this,a.x,a.y,a.width,a.height)},at.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),$i(this,a,y,x,b)};function $i(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}at.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 Io(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)}at.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},at.Mz=function(){return this.width===0&&this.height===0},Mn.alloc=function(){var a=ao.pop();return a===void 0?new Mn:a},Mn.allocAt=function(a,y,x,b){var E=ao.pop();return E===void 0?new Mn(a,y,x,b):E.h(a,y,x,b)},Mn.free=function(a){ao.push(a)},Pt.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 Lt(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 Lt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),Mn.prototype.isEmpty=Mn.prototype.Mz,Mn.prototype.isReal=Mn.prototype.w,Mn.intersectsLineSegment=function(a,y,x,b,E,te,ne,se){return tn.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,co=null,ao=[];Mn.className="Rect",Mn.parse=fu,Mn.stringify=xs,Mn.contains=Io,Mn.intersects=ws,Mn.ZeroRect=Ci=new Mn(0,0,0,0).ja(),Mn.NoRect=co=new Mn(NaN,NaN,NaN,NaN).ja(),Mn.parse=fu,Mn.stringify=xs,Mn.contains=Io,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):Ht("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},at=kr.prototype,at.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},at.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return Object.isFrozen(this)&&Ht("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()}at.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},at.D=function(a){return a instanceof kr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},at.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},at.Xa=function(a){return tn.B(this.top,a.top)&&tn.B(this.right,a.right)&&tn.B(this.bottom,a.bottom)&&tn.B(this.left,a.left)},at.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,Ri,mc,tl,nl,ks,Eu,Ru,Ws,dl,Hc,hh,Uc,Gh,Gc,vc,zu,jl,dh,Zc,yc,oo,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},at=wr.prototype,at.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},at.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return Object.isFrozen(this)&&Ht("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 Ri;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 oo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var te=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(te=parseFloat(b));for(var ne=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ne=parseFloat(b)),new 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()}at.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(Ri)?"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(oo)?"Default":"None"},at.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},at.gv=function(){return new wr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},at.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},at.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},at.Mc=function(){return isNaN(this.x)||isNaN(this.y)},at.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},at.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},at.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=oo=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=Ri=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 mi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}mi.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},mi.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},mi.prototype.copy=function(){var a=new mi;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},mi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},mi.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},mi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},mi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},mi.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},mi.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},mi.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},mi.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},at=mi.prototype,at.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},at.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},at.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)},at.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))},at.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))},at.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,ve=this.dx,Se=this.dy,Be=y*te+x*se+ve,Xe=y*ne+x*he+Se,tt=b*te+x*se+ve,rt=b*ne+x*he+Se;return x=y*te+E*se+ve,y=y*ne+E*he+Se,te=b*te+E*se+ve,b=b*ne+E*he+Se,E=Math.min(Be,tt),Be=Math.max(Be,tt),tt=Math.min(Xe,rt),Xe=Math.max(Xe,rt),E=Math.min(E,x),Be=Math.max(Be,x),tt=Math.min(tt,y),Xe=Math.max(Xe,y),E=Math.min(E,te),Be=Math.max(Be,te),tt=Math.min(tt,b),Xe=Math.max(Xe,b),a.h(E,tt,Be-E,Xe-tt),a},mi.alloc=function(){var a=fh.pop();return a===void 0?new mi:a},mi.free=function(a){fh.push(a)},mi.prototype.transformRect=mi.prototype.pp,mi.prototype.transformPoint=mi.prototype.Ga,mi.prototype.scale=mi.prototype.scale,mi.prototype.translate=mi.prototype.translate,mi.prototype.rotate=mi.prototype.rotate,mi.prototype.invert=mi.prototype.Vj,mi.prototype.multiplyInverted=mi.prototype.bv,mi.prototype.multiply=mi.prototype.multiply,mi.prototype.reset=mi.prototype.reset,mi.prototype.isIdentity=mi.prototype.ws,mi.prototype.equals=mi.prototype.D,mi.prototype.setTransform=mi.prototype.setTransform,mi.prototype.set=mi.prototype.set;var fh=[];mi.className="Transform",mi.xF="54a702f3e53909c447824c6706603faf4c";var tn={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=tn.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);tn.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 ve=y,Se=b;else ve=b,Se=y;if(a===x)return ve<=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,ve-=E,ve<=ne&&ne<=Se))if(he-se>Se-ve)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,ve,Se,Be){if(tn.Yb(a,y,ne,se,Be,x,b)&&tn.Yb(a,y,ne,se,Be,E,te))return tn.Yb(a,y,ne,se,Be,ve,Se);var Xe=(a+x)/2,tt=(y+b)/2,rt=(x+E)/2,ct=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Xe+rt)/2,x=(tt+ct)/2,rt=(rt+E)/2,ct=(ct+te)/2;var Nt=(b+rt)/2,Mt=(x+ct)/2;return tn.cs(a,y,Xe,tt,b,x,Nt,Mt,he,ve,Se,Be)||tn.cs(Nt,Mt,rt,ct,E,te,ne,se,he,ve,Se,Be)},ax:function(a,y,x,b,E,te,ne,se,he){var ve=(x+E)/2,Se=(b+te)/2;return he.h((((a+x)/2+ve)/2+(ve+(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,ve=(b+te)/2;return Yr(((a+x)/2+he)/2,((y+b)/2+ve)/2,(he+(E+ne)/2)/2,(ve+(te+se)/2)/2)},Dl:function(a,y,x,b,E,te,ne,se,he,ve){if(tn.Yb(a,y,ne,se,he,x,b)&&tn.Yb(a,y,ne,se,he,E,te))$i(ve,a,y,0,0),$i(ve,ne,se,0,0);else{var Se=(a+x)/2,Be=(y+b)/2,Xe=(x+E)/2,tt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Se+Xe)/2,x=(Be+tt)/2,Xe=(Xe+E)/2,tt=(tt+te)/2;var rt=(b+Xe)/2,ct=(x+tt)/2;tn.Dl(a,y,Se,Be,b,x,rt,ct,he,ve),tn.Dl(rt,ct,Xe,tt,E,te,ne,se,he,ve)}return ve},Qe:function(a,y,x,b,E,te,ne,se,he,ve){if(tn.Yb(a,y,ne,se,he,x,b)&&tn.Yb(a,y,ne,se,he,E,te))ve.length===0&&(ve.push(a),ve.push(y)),ve.push(ne),ve.push(se);else{var Se=(a+x)/2,Be=(y+b)/2,Xe=(x+E)/2,tt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Se+Xe)/2,x=(Be+tt)/2,Xe=(Xe+E)/2,tt=(tt+te)/2;var rt=(b+Xe)/2,ct=(x+tt)/2;tn.Qe(a,y,Se,Be,b,x,rt,ct,he,ve),tn.Qe(rt,ct,Xe,tt,E,te,ne,se,he,ve)}return ve},jv:function(a,y,x,b,E,te,ne,se,he,ve){if(tn.Yb(a,y,E,te,ve,x,b))return tn.Yb(a,y,E,te,ve,se,he);var Se=(a+x)/2,Be=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Xe=(Se+x)/2,tt=(Be+b)/2;return tn.jv(a,y,Se,Be,Xe,tt,ne,se,he,ve)||tn.jv(Xe,tt,x,b,E,te,ne,se,he,ve)},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(tn.Yb(a,y,E,te,ne,x,b))$i(se,a,y,0,0),$i(se,E,te,0,0);else{var he=(a+x)/2,ve=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Se=(he+x)/2,Be=(ve+b)/2;tn.iv(a,y,he,ve,Se,Be,ne,se),tn.iv(Se,Be,x,b,E,te,ne,se)}return se},ep:function(a,y,x,b,E,te,ne,se){if(tn.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,ve=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Se=(he+x)/2,Be=(ve+b)/2;tn.ep(a,y,he,ve,Se,Be,ne,se),tn.ep(Se,Be,x,b,E,te,ne,se)}return se},Eo:function(a,y,x,b,E,te,ne,se,he,ve,Se,Be,Xe,tt){if(tn.Yb(a,y,ne,se,Xe,x,b)&&tn.Yb(a,y,ne,se,Xe,E,te))return!tn.Rl(a,y,ne,se,he,ve,Se,Be)||(Xe=(a-ne)*(ve-Be)-(y-se)*(he-Se),Xe===0)?!1:(tt.h(((a*se-y*ne)*(he-Se)-(a-ne)*(he*Be-ve*Se))/Xe,((a*se-y*ne)*(ve-Be)-(y-se)*(he*Be-ve*Se))/Xe),!0);var rt=(a+x)/2,ct=(y+b)/2,Nt=(x+E)/2,Mt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+Nt)/2,x=(ct+Mt)/2,Nt=(Nt+E)/2,Mt=(Mt+te)/2;var zt=(b+Nt)/2,Ut=(x+Mt)/2,Yt=1/0,$t=!1,dn=0,ir=0;return tn.Eo(a,y,rt,ct,b,x,zt,Ut,he,ve,Se,Be,Xe,tt)&&(a=(tt.x-he)*(tt.x-he)+(tt.y-ve)*(tt.y-ve),a<Yt&&(Yt=a,$t=!0,dn=tt.x,ir=tt.y)),tn.Eo(zt,Ut,Nt,Mt,E,te,ne,se,he,ve,Se,Be,Xe,tt)&&(tt.x-he)*(tt.x-he)+(tt.y-ve)*(tt.y-ve)<Yt&&($t=!0,dn=tt.x,ir=tt.y),$t&&(tt.x=dn,tt.y=ir),$t},Fo:function(a,y,x,b,E,te,ne,se,he,ve,Se,Be,Xe){var tt=0;if(tn.Yb(a,y,ne,se,Xe,x,b)&&tn.Yb(a,y,ne,se,Xe,E,te)){if(Xe=(a-ne)*(ve-Be)-(y-se)*(he-Se),Xe===0)return tt;var rt=((a*se-y*ne)*(he-Se)-(a-ne)*(he*Be-ve*Se))/Xe,ct=((a*se-y*ne)*(ve-Be)-(y-se)*(he*Be-ve*Se))/Xe;if(rt>=Se)return tt;if((he>Se?he-Se:Se-he)<(ve>Be?ve-Be:Be-ve)){if(y<se?(he=y,a=se):(he=se,a=y),ct<he||ct>a)return tt}else if(a<ne?(he=a,a=ne):he=ne,rt<he||rt>a)return tt;0<Xe?tt++:0>Xe&&tt--}else{rt=(a+x)/2,ct=(y+b)/2;var Nt=(x+E)/2,Mt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+Nt)/2,x=(ct+Mt)/2,Nt=(Nt+E)/2,Mt=(Mt+te)/2;var zt=(b+Nt)/2,Ut=(x+Mt)/2;tt+=tn.Fo(a,y,rt,ct,b,x,zt,Ut,he,ve,Se,Be,Xe),tt+=tn.Fo(zt,Ut,Nt,Mt,E,te,ne,se,he,ve,Se,Be,Xe)}return tt},qh:function(a,y,x,b,E,te,ne){return tn.$(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)):tn.$(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 tn.B(a,x)&&tn.B(y,b)?(he.h(a,y),!1):tn.$(E,ne)?tn.$(a,x)?(tn.qh(a,y,x,b,E,te,he),!1):tn.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,he):(se=(se-te)/(ne-E),tn.$(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),tn.$(se,ne)?(tn.qh(a,y,x,b,E,te,he),!1):(E=(ne*a-se*E+te-y)/(ne-se),tn.$(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)):tn.qh(a,y,x,b,E,ne*(E-a)+y,he))))},MA:function(a,y,x,b,E){return tn.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,ve){function Se(Nt,Mt){var zt=(Nt-a)*(Nt-a)+(Mt-y)*(Mt-y);zt<Be&&(Be=zt,he.h(Nt,Mt))}var Be=1/0;Se(he.x,he.y);var Xe=0,tt=0,rt=0,ct=0;if(E<ne?(Xe=E,tt=ne):(Xe=ne,tt=E),te<se?(rt=E,ct=ne):(rt=ne,ct=E),Xe=(tt-Xe)/2+ve,ve=(ct-rt)/2+ve,E=(E+ne)/2,te=(te+se)/2,Xe===0||ve===0)return he;if(.5>(x>a?x-a:a-x)){if(Xe=1-(x-E)*(x-E)/(Xe*Xe),0>Xe)return he;Xe=Math.sqrt(Xe),b=-ve*Xe+te,Se(x,ve*Xe+te),Se(x,b)}else{if(x=(b-y)/(x-a),b=1/(Xe*Xe)+x*x/(ve*ve),se=2*x*(y-x*a)/(ve*ve)-2*x*te/(ve*ve)-2*E/(Xe*Xe),Xe=se*se-4*b*(2*x*a*te/(ve*ve)-2*y*te/(ve*ve)+te*te/(ve*ve)+E*E/(Xe*Xe)-1+(y-x*a)*(y-x*a)/(ve*ve)),0>Xe)return he;Xe=Math.sqrt(Xe),ve=(-se+Xe)/(2*b),Se(ve,x*ve-x*a+y),Xe=(-se-Xe)/(2*b),Se(Xe,x*Xe-x*a+y)}return he},Ff:function(a,y,x,b,E,te,ne,se,he){var ve=1e21,Se=a,Be=y;if(tn.Ve(a,y,a,b,E,te,ne,se,he)){var Xe=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te);Xe<ve&&(ve=Xe,Se=he.x,Be=he.y)}return tn.Ve(x,y,x,b,E,te,ne,se,he)&&(Xe=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),Xe<ve&&(ve=Xe,Se=he.x,Be=he.y)),tn.Ve(a,y,x,y,E,te,ne,se,he)&&(y=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),y<ve&&(ve=y,Se=he.x,Be=he.y)),tn.Ve(a,b,x,b,E,te,ne,se,he)&&(a=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),a<ve&&(ve=a,Se=he.x,Be=he.y)),he.h(Se,Be),1e21>ve},us:function(a,y,x){return tn.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,ve=y+b;return E===ne?(te<se?(ne=te,te=se):ne=se,a<=E&&E<=he&&ne<=ve&&te>=y):te===se?(E<ne?(se=E,E=ne):se=ne,y<=te&&te<=ve&&se<=he&&E>=a):!!(Io(a,y,x,b,E,te)||Io(a,y,x,b,ne,se)||tn.Rl(a,y,he,y,E,te,ne,se)||tn.Rl(he,y,he,ve,E,te,ne,se)||tn.Rl(he,ve,a,ve,E,te,ne,se)||tn.Rl(a,ve,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>=tn.Fl(a,y,x,b,E,te)*tn.Fl(a,y,x,b,ne,se)&&0>=tn.Fl(E,te,ne,se,a,y)*tn.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,ve=b;if(b=Math.min(2*ne,Math.abs(E-b)),1e-5>b)return he=ve+se*Math.min(b,he),se=a+x*Math.cos(ve),ve=y+x*Math.sin(ve),a+=x*Math.cos(he),y+=x*Math.sin(he),x=(se+a)/2,he=(ve+y)/2,te.push([se,ve,x,he,x,he,a,y]),te;for(;1e-5<b;)E=ve+se*Math.min(b,he),te.push(tn.Vy(x,ve,E,a,y)),b-=Math.abs(E-ve),ve=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,ve=ne*ne+he*he,Se=ve+ne*ne+he*se;return ve=4/3*(Math.sqrt(2*ve*Se)-Se)/(ne*se-he*ne),se=ne-ve*he,ne=he+ve*ne,he=-ne,ve=te+y,te=Math.cos(ve),ve=Math.sin(ve),[b+a*Math.cos(y),E+a*Math.sin(y),b+se*te-ne*ve,E+se*ve+ne*te,b+se*te-he*ve,E+se*ve+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,ve=ne===0?x:b;return(ne===0?E:te)&&(ve=-ve),ne=se,x=ne===0?x:b,(ne===0?E:te)&&(x=-x),tn.az(he,ne===0?a:y,ve,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 ve=0;9999999999>ve&&(y=.5*(se+he),!(y===se||y===he));++ve){var Se=a/(y+E),Be=ne/(y+te);if(Se=Se*Se+Be*Be-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};tn.za=tn.AA;function $n(a){pi(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 Fn:($n.V===null&&($n.V=new Fn().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)&&Ht("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 tn.B(this.startX,a.startX)&&tn.B(this.startY,a.startY)&&tn.B(this.endX,a.endX)&&tn.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&&tn.B(a.startX,y.startX)&&tn.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Mo&&tn.B(a.endX,y.endX)&&tn.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 ct>=Yt-1?!0:ve[ct+1].match($t)!==null}function b(){return ct++,ve[ct]}function E(qr){var Xr=parseFloat(b()),Yi=parseFloat(b());Nt===Nt.toLowerCase()&&(Xr=Ut.x+Xr,Yi=Ut.y+Yi),qr.h(Xr,Yi)}function te(){return E(Ut),Ut}function ne(){return E(zt),zt}function se(){var qr=Mt.toLowerCase();return qr!=="c"&&qr!=="s"&&qr!=="q"&&qr!=="t"?Ut:new Lt(2*Ut.x-zt.x,2*Ut.y-zt.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 ve=a.split(" ");for(a=0;a<ve.length;a++){var Se=ve[a];if(Se.match(/(\.[0-9]*)(\.)/gm)!==null){he=yn();for(var Be="",Xe=!1,tt=0;tt<Se.length;tt++){var rt=Se[tt];rt!=="."||Xe?rt==="."?(he.push(Be),Be="."):Be+=rt:(Xe=!0,Be+=rt)}for(he.push(Be),ve.splice(a,1),Se=0;Se<he.length;Se++)ve.splice(a+Se,0,he[Se]);a+=he.length-1,Ln(he)}}var ct=-1,Nt="",Mt="";he=new Lt(0,0);var zt=new Lt(0,0),Ut=new Lt(0,0),Yt=ve.length;a=D1(null),Xe=Be=Se=!1,tt=!0,rt=null;for(var $t=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ct>=Yt-1);)if(Mt=Nt,Nt=b(),Nt!=="")switch(Nt.toUpperCase()){case"X":tt=!0,Be=Se=!1;break;case"M":for(rt=te(),a.mc===null||tt===!0?(yp(a,rt.x,rt.y,Se,!Be,Xe),tt=!1):a.moveTo(rt.x,rt.y),he.assign(Ut);!x();)rt=te(),a.lineTo(rt.x,rt.y);break;case"L":for(;!x();)rt=te(),a.lineTo(rt.x,rt.y);break;case"H":for(;!x();)Ut=new Lt((Nt===Nt.toLowerCase()?Ut.x:0)+parseFloat(b()),Ut.y),a.lineTo(Ut.x,Ut.y);break;case"V":for(;!x();)Ut=new Lt(Ut.x,(Nt===Nt.toLowerCase()?Ut.y:0)+parseFloat(b())),a.lineTo(Ut.x,Ut.y);break;case"C":for(;!x();){rt=new Lt,E(rt);var dn=ne(),ir=te();Eh(a,rt.x,rt.y,dn.x,dn.y,ir.x,ir.y)}break;case"S":for(;!x();)rt=se(),dn=ne(),ir=te(),Eh(a,rt.x,rt.y,dn.x,dn.y,ir.x,ir.y);break;case"Q":for(;!x();)rt=ne(),dn=te(),Um(a,rt.x,rt.y,dn.x,dn.y);break;case"T":for(;!x();)zt=rt=se(),dn=te(),Um(a,rt.x,rt.y,dn.x,dn.y);break;case"B":for(;!x();){rt=parseFloat(b()),dn=parseFloat(b()),ir=parseFloat(b());var gr=parseFloat(b()),hr=parseFloat(b()),Qn=hr,jn=!1;x()||(Qn=parseFloat(b()),x()||(jn=parseFloat(b())!==0)),Nt===Nt.toLowerCase()&&(ir+=Ut.x,gr+=Ut.y),a.arcTo(rt,dn,ir,gr,hr,Qn,jn)}break;case"A":for(;!x();)rt=Math.abs(parseFloat(b())),dn=Math.abs(parseFloat(b())),ir=parseFloat(b()),hr=gr=!1,jn=Qn=0,Qn=b(),Qn.length===1?(gr=!!parseFloat(Qn),hr=!!parseFloat(b()),Qn=parseFloat(b())):Qn.length===2?(gr=!!parseFloat(Qn[0]),hr=!!parseFloat(Qn[1]),Qn=parseFloat(b())):(gr=!!parseFloat(Qn[0]),hr=!!parseFloat(Qn[1]),Qn=parseFloat(Qn.slice(2))),jn=parseFloat(b()),Nt===Nt.toLowerCase()&&(Qn=Ut.x+Qn,jn=Ut.y+jn),Ut.h(Qn,jn),Cx(a,rt,dn,ir,gr,hr,Qn,jn);break;case"Z":bx(a),Ut.assign(he);break;case"F":for(rt="",dn=1;ve[ct+dn];)if(ve[ct+dn]==="0")Xe=!0,dn++;else if(ve[ct+dn].match(/[Uu]/)!==null)dn++;else if(ve[ct+dn].match($t)===null)dn++;else{rt=ve[ct+dn];break}rt.match(/[Mm]/)?Se=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(rt="",dn=1;ve[ct+dn];)if(ve[ct+dn].match(/[Ff]/)!==null)dn++;else if(ve[ct+dn].match($t)===null)dn++;else{rt=ve[ct+dn];break}rt.match(/[Mm]/)?Be=!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=Lt.alloc(),E=0;E<x;E++){var te=a[E];b.x=te[0],b.y=te[1],y.Ga(b),te[0]=b.x,te[1]=b.y,b.x=te[2],b.y=te[3],y.Ga(b),te[2]=b.x,te[3]=b.y,b.x=te[4],b.y=te[5],y.Ga(b),te[4]=b.x,te[5]=b.y,b.x=te[6],b.y=te[7],y.Ga(b),te[6]=b.x,te[7]=b.y}Lt.free(b)},$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),$i(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):$i(y,a.od,a.pd,0,0),$i(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):$i(y,te.startX,te.startY,0,0);for(var ne=te.segments.s,se=ne.length,he=te.startX,ve=te.startY,Se=0;Se<se;Se++){var Be=ne[Se];switch(Be.type){case Mo:case xa:he=Be.endX,ve=Be.endY,$i(y,he,ve,0,0);break;case ss:tn.Dl(he,ve,Be.point1X,Be.point1Y,Be.point2X,Be.point2Y,Be.endX,Be.endY,.5,y),he=Be.endX,ve=Be.endY;break;case Pl:tn.iv(he,ve,Be.point1X,Be.point1Y,Be.endX,Be.endY,.5,y),he=Be.endX,ve=Be.endY;break;case ma:case zl:var Xe=Be.type===ma?rl(Be,te):Hs(Be,te,he,ve),tt=Xe.length;if(tt===0){he=Be.type===ma?Be.centerX:Be.endX,ve=Be.type===ma?Be.centerY:Be.endY,$i(y,he,ve,0,0);break}Be=null;for(var rt=0;rt<tt;rt++)Be=Xe[rt],tn.Dl(Be[0],Be[1],Be[2],Be[3],Be[4],Be[5],Be[6],Be[7],.5,y);Be!==null&&(he=Be[6],ve=Be[7]);break;default:Ht("Unknown Segment type: "+Be.type)}}}break;default:Ht("Unknown Geometry type: "+a.type)}}$n.prototype.normalize=function(){this._isFrozen&&En(this);var a=this.ix();return this.offset(-a.x,-a.y),new Lt(-a.x,-a.y)},$n.prototype.offset=function(a,y){return this._isFrozen&&En(this),this.transform(1,0,0,1,a,y),this},$n.prototype.scale=function(a,y){return this._isFrozen&&En(this),this.transform(a,0,0,y,0,0),this},$n.prototype.rotate=function(a,y,x){this._isFrozen&&En(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=mi.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),mi.free(b),this},at=$n.prototype,at.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,ve=he.length,Se=0;Se<ve;Se++){var Be=he[Se];ne=Be.startX,se=Be.startY,Be.startX=ne*a+se*x+E,Be.startY=ne*y+se*b+te,Be=Be.segments.s;for(var Xe=Be.length,tt=0;tt<Xe;tt++){var rt=Be[tt];switch(rt.type){case Mo:case xa:ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case ss:ne=rt.point1X,se=rt.point1Y,rt.point1X=ne*a+se*x+E,rt.point1Y=ne*y+se*b+te,ne=rt.point2X,se=rt.point2Y,rt.point2X=ne*a+se*x+E,rt.point2Y=ne*y+se*b+te,ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case Pl:ne=rt.point1X,se=rt.point1Y,rt.point1X=ne*a+se*x+E,rt.point1Y=ne*y+se*b+te,ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case ma:ne=rt.centerX,se=rt.centerY,rt.centerX=ne*a+se*x+E,rt.centerY=ne*y+se*b+te,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),rt.startAngle+=ne),0>a&&(rt.startAngle=180-rt.startAngle,rt.sweepAngle=-rt.sweepAngle),0>b&&(rt.startAngle=-rt.startAngle,rt.sweepAngle=-rt.sweepAngle),rt.radiusX*=Math.sqrt(a*a+x*x),rt.radiusY!==void 0&&(rt.radiusY*=Math.sqrt(y*y+b*b));break;case zl:if(ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te,rt.radiusX===0||rt.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),rt.xAxisRotation+=ne),0>a&&(rt.xAxisRotation=180-rt.xAxisRotation,rt.isClockwiseArc=!rt.isClockwiseArc),0>b&&(rt.xAxisRotation=-rt.xAxisRotation,rt.isClockwiseArc=!rt.isClockwiseArc),rt.radiusX*=Math.sqrt(a*a+x*x),rt.radiusY*=Math.sqrt(y*y+b*b);break;default:Ht("Unknown Segment type: "+rt.type)}}}}return this._isInvalidBounds=!0,this},at.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 tn.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,ve,Se,Be,Xe=a.figures.s,tt=Xe.length,rt=0;rt<tt;rt++){var ct=Xe[rt],Nt=!ct.isEvenOdd;if(ct.isFilled){if(b&&ct.ca(te,y,x))return!0;var Mt=ct.segments;he=ct.startX,ve=ct.startY;for(var zt=he,Ut=ve,Yt=Mt.s,$t=0;$t<=Mt.length;$t++){var dn=void 0;if($t!==Mt.length){dn=Yt[$t];var ir=dn.type;a=dn.endX,Be=dn.endY}else ir=Mo,a=zt,Be=Ut;switch(ir){case xa:if(zt=Uu(te,y,ne,y,he,ve,zt,Ut),isNaN(zt))return!0;se+=zt,zt=a,Ut=Be;break;case Mo:if(he=Uu(te,y,ne,y,he,ve,a,Be),isNaN(he))return!0;se+=he;break;case ss:Se=tn.Fo(he,ve,dn.point1X,dn.point1Y,dn.point2X,dn.point2Y,a,Be,ne,y,te,y,.5),se+=Se;break;case Pl:Se=tn.Fo(he,ve,(he+2*dn.point1X)/3,(ve+2*dn.point1Y)/3,(2*dn.point1X+a)/3,(2*dn.point1Y+Be)/3,a,Be,ne,y,te,y,.5),se+=Se;break;case ma:case zl:ir=dn.type===ma?rl(dn,ct):Hs(dn,ct,he,ve);var gr=ir.length;if(gr===0){if(he=Uu(te,y,ne,y,he,ve,dn.type===ma?dn.centerX:dn.endX,dn.type===ma?dn.centerY:dn.endY),isNaN(he))return!0;se+=he;break}dn=null;for(var hr=0;hr<gr;hr++){if(dn=ir[hr],hr===0){if(Se=Uu(te,y,ne,y,he,ve,dn[0],dn[1]),isNaN(Se))return!0;se+=Se}Se=tn.Fo(dn[0],dn[1],dn[2],dn[3],dn[4],dn[5],dn[6],dn[7],ne,y,te,y,.5),se+=Se}dn!==null&&(a=dn[6],Be=dn[7]);break;default:Ht("Unknown Segment type: "+dn.type)}he=a,ve=Be}if(Nt){if(se!==0)return!0}else if(se%2!==0)return!0;se=0}else if(ct.ca(te,y,E?x:x+2))return!0}return!1}function Uu(a,y,x,b,E,te,ne,se){if(tn.Yb(E,te,ne,se,.05,a,y))return NaN;var he=(a-x)*(te-se);if(he===0)return 0;var ve=((a*b-y*x)*(E-ne)-(a-x)*(E*se-te*ne))/he;if(y=(a*b-y*x)*(te-se)/he,ve>=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(ve<E||ve>ne)return 0}else if(ve<ne||ve>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}at.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Lt),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],ve=he.length;for(a=0;a<ve;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},at.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 ve=se[a];if(te+ve>=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+=ve}}return NaN},at.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],ve=he.length;for(a=0;a<ve;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},at.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=Lt.alloc();return tn.qh(y,x,b,E,te,a,se),a=se.x,te=se.y,Lt.free(se),Math.sqrt(((a-y)*(a-y)+(te-x)*(te-x))/ne)}}else if(this.type===$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 ve=Math.min(ne,he,se,E);if(ve===se)return b/te;if(ve===he)return(y+a)/te;if(ve===E)return(2*y+x-b)/te;if(ve===ne)return(2*y+2*x-a)/te}}else{y=this.flattenedSegments,x=this.flattenedLengths,te=this.flattenedTotalLength,b=Lt.alloc(),E=1/0,se=ne=0,he=y.length;for(var Se=ve=0,Be=0;Be<he;Be++)for(var Xe=y[Be],tt=x[Be],rt=Xe.length,ct=0;ct<rt;ct+=2){var Nt=Xe[ct],Mt=Xe[ct+1];if(ct!==0){tn.qh(ve,Se,Nt,Mt,a.x,a.y,b);var zt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);zt<E&&(E=zt,ne=se,ne+=Math.sqrt((b.x-ve)*(b.x-ve)+(b.y-Se)*(b.y-Se))),se+=tt[(ct-2)/2]}ve=Nt,Se=Mt}return Lt.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 Gi(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];tn.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 ve=E.segments.s,Se=ve.length,Be=0;Be<Se;Be++){var Xe=ve[Be];switch(Xe.type){case xa:4<=b.length&&(y.push(b),x.push(ph(b))),b=[],b.push(Xe.endX),b.push(Xe.endY),ne=Xe.endX,te=Xe.endY,se=ne,he=te;break;case Mo:b.push(Xe.endX),b.push(Xe.endY),ne=Xe.endX,te=Xe.endY;break;case ss:tn.Qe(ne,te,Xe.point1X,Xe.point1Y,Xe.point2X,Xe.point2Y,Xe.endX,Xe.endY,.5,b),ne=Xe.endX,te=Xe.endY;break;case Pl:tn.ep(ne,te,Xe.point1X,Xe.point1Y,Xe.endX,Xe.endY,.5,b),ne=Xe.endX,te=Xe.endY;break;case ma:var tt=rl(Xe,E),rt=tt.length;if(rt===0){b.push(Xe.centerX),b.push(Xe.centerY),ne=Xe.centerX,te=Xe.centerY;break}for(var ct=0;ct<rt;ct++){var Nt=tt[ct];tn.Qe(ne,te,Nt[2],Nt[3],Nt[4],Nt[5],Nt[6],Nt[7],.5,b),ne=Nt[6],te=Nt[7]}break;case zl:if(tt=Hs(Xe,E,ne,te),rt=tt.length,ct=Xe.endX,Nt=Xe.endY,rt===0){b.push(ct),b.push(Nt),ne=ct,te=Nt;break}for(ct=0;ct<rt;ct++)Nt=tt[ct],tn.Qe(ne,te,Nt[2],Nt[3],Nt[4],Nt[5],Nt[6],Nt[7],.5,b),ne=Nt[6],te=Nt[7];break;default:Ht("Segment not of valid type: "+Xe.type)}Xe.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(no(x,b,ne,se))),x=ne,b=se}return y}at.add=function(a){return this.ee.add(a),this},at.pm=function(a,y,x,b,E,te,ne,se){return this._isFrozen&&En(this),this.fg=new wr(a,y,E,te).freeze(),this.gg=new wr(x,b,ne,se).freeze(),this},Pt.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&&En(this,a),this.na=a,a===$n.o?this.ee=new Fn:($n.V===null&&($n.V=new Fn().freeze()),this.ee=$n.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&En(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&En(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&En(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&En(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&En(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&En(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&En(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&En(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 Sn($n,"Line",0),$n.u=new Sn($n,"Rectangle",1),$n.F=new Sn($n,"Ellipse",2),$n.o=new Sn($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){pi(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Fn,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},at=Ga.prototype,at.Xa=function(a){if(!(a instanceof Ga&&tn.B(this.startX,a.startX)&&tn.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},at.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},at.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},at.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},at.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},at.add=function(a){return this.pl.add(a),this},at.ca=function(a,y,x){for(var b=this.startX,E=this.startY,te=b,ne=E,se=this.segments.s,he=se.length,ve=0;ve<he;ve++){var Se=se[ve];switch(Se.type){case xa:te=Se.endX,ne=Se.endY,b=Se.endX,E=Se.endY;break;case Mo:if(tn.Yb(b,E,Se.endX,Se.endY,x,a,y))return!0;b=Se.endX,E=Se.endY;break;case ss:if(tn.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(tn.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 Be=Se.type===ma?rl(Se,this):Hs(Se,this,b,E),Xe=Be.length,tt=Se.type===ma?Se.centerX:Se.endX,rt=Se.type===ma?Se.centerY:Se.endY;if(Xe===0){if(tn.Yb(b,E,tt,rt,x,a,y))return!0;b=tt,E=rt;break}for(tt=null,rt=0;rt<Xe;rt++)if(tt=Be[rt],rt===0&&tn.Yb(b,E,tt[0],tt[1],x,a,y)||tn.cs(tt[0],tt[1],tt[2],tt[3],tt[4],tt[5],tt[6],tt[7],.5,a,y,x))return!0;tt!==null&&(b=tt[6],E=tt[7]);break;default:Ht("Unknown Segment type: "+Se.type)}if(Se.isClosed&&(b!==te||E!==ne)&&tn.Yb(b,E,te,ne,x,a,y))return!0}return!1},Pt.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&&En(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&En(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&En(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&En(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&En(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&En(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Ga.prototype.add=Ga.prototype.add,Ga.prototype.equalsApprox=Ga.prototype.Xa,Ga.className="PathFigure";function Gi(a,y,x,b,E,te,ne,se){pi(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}Gi.prototype.copy=function(){var a=new Gi;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},at=Gi.prototype,at.Xa=function(a){if(!(a instanceof Gi)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case xa:case Mo:return tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY);case ss:return tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.point1X,a.point1X)&&tn.B(this.point1Y,a.point1Y)&&tn.B(this.point2X,a.point2X)&&tn.B(this.point2Y,a.point2Y);case Pl:return tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.point1X,a.point1X)&&tn.B(this.point1Y,a.point1Y);case ma:return tn.B(this.startAngle,a.startAngle)&&tn.B(this.sweepAngle,a.sweepAngle)&&tn.B(this.centerX,a.centerX)&&tn.B(this.centerY,a.centerY)&&tn.B(this.radiusX,a.radiusX)&&tn.B(this.radiusY,a.radiusY);case zl:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&tn.B(this.xAxisRotation,a.xAxisRotation)&&tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.radiusX,a.radiusX)&&tn.B(this.radiusY,a.radiusY);default:return!1}},at.qb=function(a){a.classType===Gi&&(this.type=a)},at.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":"")},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return this._isFrozen=!1,this},at.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=tn.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ne=mi.alloc();ne.reset(),x<b?ne.scale(1,b/x):ne.scale(x/b,1),$n.Ha(te,ne),mi.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(ct,Nt,Mt,zt){return(ct*zt<Nt*Mt?-1:1)*Math.acos((ct*Mt+Nt*zt)/(Math.sqrt(ct*ct+Nt*Nt)*Math.sqrt(Mt*Mt+zt*zt)))}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,ve=a.Dc,Se=a.Ec,Be=Math.cos(ne),Xe=Math.sin(ne),tt=Be*(x-ve)/2+Xe*(b-Se)/2;ne=-Xe*(x-ve)/2+Be*(b-Se)/2;var rt=tt*tt/(y*y)+ne*ne/(te*te);return 1<rt&&(y*=Math.sqrt(rt),te*=Math.sqrt(rt)),rt=(se===he?-1:1)*Math.sqrt((y*y*te*te-y*y*ne*ne-te*te*tt*tt)/(y*y*ne*ne+te*te*tt*tt)),isNaN(rt)&&(rt=0),se=rt*y*ne/te,rt=rt*-te*tt/y,isNaN(se)&&(se=0),isNaN(rt)&&(rt=0),x=(x+ve)/2+Be*se-Xe*rt,b=(b+Se)/2+Xe*se+Be*rt,Se=E(1,0,(tt-se)/y,(ne-rt)/te),Be=(tt-se)/y,ve=(ne-rt)/te,tt=(-tt-se)/y,se=(-ne-rt)/te,ne=E(Be,ve,tt,se),tt=(Be*tt+ve*se)/(Math.sqrt(Be*Be+ve*ve)*Math.sqrt(tt*tt+se*se)),-1>=tt?ne=Math.PI:1<=tt&&(ne=0),!he&&0<ne&&(ne-=2*Math.PI),he&&0>ne&&(ne+=2*Math.PI),he=y>te?1:y/te,tt=y>te?te/y:1,y=tn.jx(0,0,y>te?y:te,Se,Se+ne,!0),te=mi.alloc(),te.reset(),te.translate(x,b),te.rotate(a.Ne,0,0),te.scale(he,tt),$n.Ha(y,te),mi.free(te),a.ae=y,a.ae}Pt.Object.defineProperties(Gi.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&&En(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&En(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&En(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&En(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&En(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&En(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&En(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&En(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&En(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Kn(a,">= zero",Gi,"radiusX"),this._isFrozen&&En(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Kn(a,">= zero",Gi,"radiusY"),this._isFrozen&&En(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&En(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&&En(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&&En(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&&En(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&&En(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Gi.prototype.equalsApprox=Gi.prototype.Xa;var xa=new Sn(Gi,"Move",0),Mo=new Sn(Gi,"Line",1),ss=new Sn(Gi,"Bezier",2),Pl=new Sn(Gi,"QuadraticBezier",3),ma=new Sn(Gi,"Arc",4),zl=new Sn(Gi,"SvgArc",4);Gi.className="PathSegment",Gi.Move=xa,Gi.Line=Mo,Gi.Bezier=ss,Gi.QuadraticBezier=Pl,Gi.Arc=ma,Gi.SvgArc=zl;function bs(){this.H=null,this.xu=new Lt(0,0).freeze(),this.mt=new Lt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}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},Pt.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},Pt.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=rn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=rn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=rn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=rn(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+=In(this.object)),this.oldValue!==null&&(a+=" old: "+In(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+In(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))},Pt.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 Sn(Zo,"Transaction",-1),Ko=new Sn(Zo,"Property",0),fa=new Sn(Zo,"Insert",1),Oa=new Sn(Zo,"Remove",2);Zo.className="ChangedEvent",Zo.Transaction=il,Zo.Property=Ko,Zo.Insert=fa,Zo.Remove=Oa;function Ja(){this.o=new Fn().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()}},Pt.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 On,this.Jd=!1,this.u=new Fn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Fn().freeze(),this.hl=new Fn,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},at=Yo.prototype,at.Xw=function(a){this.Pt.add(a)},at.Rx=function(a){this.Pt.remove(a)},at.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},at.eb=function(a){return a===void 0&&(a=""),Xc(this,!0,a)},at.Kf=function(){return Xc(this,!1,"")};function Xc(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&nr("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}at.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){nr("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){nr("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||nr("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},Pt.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 Hi(){pi(this),this.H=Xu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new bs,this.Zr=-1}Hi.prototype.toString=function(){return this.name!==""?this.name+" Tool":Tn(this.constructor)},Hi.prototype.updateAdornments=function(){},Hi.prototype.canStart=function(){return this.isEnabled},Hi.prototype.doStart=function(){},Hi.prototype.doActivate=function(){this.isActive=!0},Hi.prototype.doDeactivate=function(){this.isActive=!1},Hi.prototype.doStop=function(){},Hi.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Hi.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Hi.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Hi.prototype.doMouseMove=function(){},Hi.prototype.doMouseUp=function(){this.stopTool()},Hi.prototype.doMouseWheel=function(){},Hi.prototype.canStartMultiTouch=function(){return!0},Hi.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Lt.allocAt(NaN,NaN)),b=y.So(1,Lt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,te=b.y-x.y;a.Jw=Math.sqrt(E*E+te*te),y.bubbles=!1}Lt.free(x),Lt.free(b)},Hi.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Lt.allocAt(NaN,NaN)),b=y.So(1,Lt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,te=b.y-x.y;te=Math.sqrt(E*E+te*te)/a.Jw,E=new Lt((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),te*=a.Bw;var ne=a.commandHandler;if(te!==a.scale&&ne.canResetZoom(te)){var se=a.zoomPoint;a.zoomPoint=E,ne.resetZoom(te),a.zoomPoint=se}y.bubbles=!1}Lt.free(x),Lt.free(b)},Hi.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Hi.prototype.doKeyUp=function(){},Hi.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Hi.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Hi.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Ur?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||(Ur?y.meta:y.control)||y.shift||a.clearSelection()}},Hi.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)}}}Hi.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}},Hi.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Hi.prototype.doCurrentObjectChanged=function(){},Hi.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)}}},Hi.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Hi.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Nn(function(){x.doWaitAfter(b)},a)},Hi.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Dt.clearTimeout(this.Zr),this.Zr=-1},Hi.prototype.doWaitAfter=function(){},Hi.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ki);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Hi.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},Pt.Object.defineProperties(Hi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof hn&&(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}}}),Hi.prototype.startTransaction=Hi.prototype.Ea,Hi.className="Tool";function Wo(){Hi.call(this),this.name="ToolManager",this.hb=new Fn,this.ob=new Fn,this.Hb=new Fn,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}Gt(Wo,Hi),Wo.prototype.initializeStandardTools=function(){},Wo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ki&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},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 Ki&&(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 Ki)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},Wo.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ki){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Si&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Dt.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Nn(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&&(Dt.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ki?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Si&&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)},Pt.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 Ki?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),Wo.prototype.replaceStandardTool=Wo.prototype.gb;var Zh=new Sn(Wo,"WheelScroll",0),Kh=new Sn(Wo,"WheelZoom",1),Kf=new Sn(Wo,"WheelNone",2),Ed=new Sn(Wo,"GestureZoom",3),Sc=new Sn(Wo,"GestureCancel",4),Yc=new Sn(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(){Hi.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Lt(NaN,NaN),this.Fr=new Lt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new On().freeze(),this.ia=new de,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Gu;Gt(Jo,Hi),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,(Ur?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),un=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,un=this,An=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 Lt(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),An!==null&&(An.currentCursor=""),un=An=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=Hi.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=un;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 Lt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function xc(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function Au(a,y,x){var b=a.diagram,E=a.startPoint,te=Lt.alloc();te.assign(b.lastInput.documentPoint),a.moveParts(y,te.re(E),x),Lt.free(te),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(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&&un===null)return;var se=b!==null?b.part:null;if(se===null||x.handlesDragDropForTopLevelParts&&se.isTopLevel&&!(se instanceof ni)){var he=x.mouseDragOver;he!==null&&(he(E),ne=!0)}if(!a.isActive&&un===null||(a.doDragOver(y,b),!a.isActive&&un===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 Ki||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&&un===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 ni)&&(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(ve){return b.findValidLinkablePort(ve,x)});a=Lt.alloc();var te=1/0,ne=null;for(E=E.iterator;E.next();){var se=E.value;if(se.part!==null){var he=se.ga(Ri,a);he=y.Bf(he),he<te&&(ne=se,te=he)}}return Lt.free(a),ne}function fl(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var te=null,ne=null;x.fromNode===null&&(te=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)):ti(E,ne,te,he,se):ti(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||un!==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||un!==null){for(a=Mn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof sr&&It(x,b,a);Mn.free(a)}}}function Kp(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof ni||(x=a.mouseDrop,x!==null&&x(y))}function It(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&&Wt(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(un===null)return!1;var b=un.diagram;x instanceof hn||(x=null);var E=An;return x!==E&&(E!==null&&E!==b&&(E.ug(),un.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),An=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(un===null)return!1;var b=An,E=un.diagram;if(x===null)return un.doCancel(),!0;if(x!==b){var te=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&te!==null)return b.ug(),un.isDragOutStarted=!1,te.doSimulatedDragLeave(),!1;An=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 Lt),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=un,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Wt(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||(Ur?!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 un},Jo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=un;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=un,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Jo.prototype.doSimulatedDragLeave=function(){var a=un;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Jo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=un;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=un;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 On;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),bc(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function 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 ve=he.value;if(ve.isVisible()){var Se=ve.location;ve=Se.x,Se=Se.y,isNaN(ve)||isNaN(Se)||(ve<b&&(b=ve),Se<E&&(E=Se),ve>ne&&(ne=ve),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=Lt.alloc(),he=y.iterator;he.next();)ve=he.value,ve instanceof _n&&ve.canCopy()&&(Se=x.I(ve),Se!==null&&(Se.points=ve.points,Lh(Se,te.x-b,te.y-E),Se.suspendsRouting=!0,ne.add(Se,a.Pd())));for(y=y.iterator;y.next();)ve=y.value,ve.Zc()&&ve.canCopy()&&(he=x.I(ve),he!==null&&(ve=ve.location,se.h(te.x-(b-ve.x),te.y-(E-ve.y)),he.location=se,he.Va(),ne.add(he,a.Pd(se))));Lt.free(se),a.copiedParts=ne,sf(a,ne.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Lh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}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 Lt},Pt.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 un=null,An=null;Jo.className="DraggingTool",Gu=new Fn,mr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Wo.prototype.doCancel=function(){un!==null&&un.doCancel(),Hi.prototype.doCancel.call(this)};function vn(){Hi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new _n,y=new gi;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new gi,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new sr,y=new gi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ro,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new sr,y=new gi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ro,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}Gt(vn,Hi),vn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},vn.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=Ri,te=Lt.alloc(),x.location=y.ga(Ri,te),Lt.free(te),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},vn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ro,y.fromSpot=ua,y.toSpot=ua),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},vn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},vn.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)}},vn.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},vn.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(Be){return E.findValidLinkablePort(Be,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(Ri,Lt.alloc()),ve=x.x-he.x,Se=x.y-he.y;Lt.free(he),he=ve*ve+Se*Se,he<b&&(ve=this.validPortsCache.I(ne),ve!==null?ve&&(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},vn.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},vn.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},vn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},vn.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},vn.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)},vn.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new On;return b.add(a),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))))}vn.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 On,b.add(y),a=Rn(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 On,b.add(y),a=rr(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 Rn(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&&Rn(a,y,ne,b,E)))return!0}return!1}function rr(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&&rr(a,y,se,b,E))return!0}}return!1}Pt.Object.defineProperties(vn.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}}}),vn.className="LinkingBaseTool";function lr(){vn.call(this),this.name="Linking",this.V={},this.F=null,this.K=ar,this.Xd=null}Gt(lr,vn),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===ar||x===jr){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===ar||x===Tr)&&(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(){vn.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(){},Pt.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 ar=new Sn(lr,"Either",0),jr=new Sn(lr,"ForwardsOnly",0),Tr=new Sn(lr,"BackwardsOnly",0);lr.className="LinkingTool",lr.Either=ar,lr.ForwardsOnly=jr,lr.BackwardsOnly=Tr;function Sr(){vn.call(this),this.name="Relinking";var a=new gi;a.figure="Diamond",a.desiredSize=lo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new gi,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}Gt(Sr,vn),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 Ki;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 Ki&&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=ci),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ci),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(){vn.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 ti(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)}Pt.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 Ki))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Sr.className="RelinkingTool",mr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),mr("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Mr(){Hi.call(this),this.name="LinkReshaping";var a=new gi;a.figure="Rectangle",a.desiredSize=Do,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new gi,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 Lt,this.Yq=new Fn}Gt(Mr,Hi),Mr.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Jr},Mr.prototype.om=function(a,y){a.reshapingBehavior=y},Mr.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)}},Mr.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Ki,E.type=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 ve=y.i(x+1);tn.B(he.x,ve.x)&&tn.B(he.y,ve.y)&&(ve=y.i(x-1)),tn.B(he.x,ve.x)?(this.om(se,ki),se.cursor="n-resize"):tn.B(he.y,ve.y)&&(this.om(se,di),se.cursor="w-resize")}else ne===te-1&&b?(he=y.i(te-1),ve=y.i(te),tn.B(he.x,ve.x)&&tn.B(he.y,ve.y)&&(he=y.i(te+1)),tn.B(he.x,ve.x)?(this.om(se,ki),se.cursor="n-resize"):tn.B(he.y,ve.y)&&(this.om(se,di),se.cursor="w-resize")):ne!==te&&(this.om(se,Zi),se.cursor="move");E.add(se)}E.adornedObject=a}return E},Mr.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Mr.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Mr.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},Mr.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}}},Mr.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Mr.prototype.stopTransaction=function(){var a=this.diagram,y=Hi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Mr.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Mr.prototype.getResegmentingPoint=function(){return this.handle.ga(Ri)},Mr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Mr.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&&(_r(this,ne,b,E,te,!0)||_r(this,ne,b,E,te,!1))){var se=y.points.copy();_r(this,ne,b,E,te,!0)?(se.cd(x-2,new Lt(ne.x,(te.y+ne.y)/2)),se.cd(x+1,new Lt(te.x,(te.y+ne.y)/2))):(se.cd(x-2,new Lt((te.x+ne.x)/2,ne.y)),se.cd(x+1,new Lt((te.x+ne.x)/2,te.y))),se.mb(x),se.mb(x-1),y.points=se,y.Wb()}else ne=y.i(x+2),Math.abs(E.x-te.x)<this.resegmentingDistance&&Math.abs(E.y-te.y)<this.resegmentingDistance&&(_r(this,b,E,te,ne,!0)||_r(this,b,E,te,ne,!1))&&(se=y.points.copy(),_r(this,b,E,te,ne,!0)?(se.cd(x-1,new Lt(b.x,(b.y+ne.y)/2)),se.cd(x+2,new Lt(ne.x,(b.y+ne.y)/2))):(se.cd(x-1,new Lt((b.x+ne.x)/2,b.y)),se.cd(x+2,new Lt((b.x+ne.x)/2,ne.y))),se.mb(x+1),se.mb(x),y.points=se,y.Wb())}}else ne=Lt.alloc(),tn.qh(b.x,b.y,te.x,te.y,E.x,E.y,ne)&&ne.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Lt.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function _r(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}Mr.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===ki?(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===ki?(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);tn.B(te.x,E.x)&&tn.B(E.y,ne.y)?(tn.B(te.x,y.i(b-2).x)&&!tn.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),tn.B(ne.y,y.i(b+2).y)&&!tn.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)):tn.B(te.y,E.y)&&tn.B(E.x,ne.x)?(tn.B(te.y,y.i(b-2).y)&&!tn.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),tn.B(ne.x,y.i(b+2).x)&&!tn.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):tn.B(te.x,E.x)&&tn.B(E.x,ne.x)?(tn.B(te.x,y.i(b-2).x)&&!tn.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),tn.B(ne.x,y.i(b+2).x)&&!tn.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):tn.B(te.y,E.y)&&tn.B(E.y,ne.y)&&(tn.B(te.y,y.i(b-2).y)&&!tn.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),tn.B(ne.y,y.i(b+2).y)&&!tn.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(Ri,Lt.alloc()),b=y.getLinkPointFromPoint(b,E,te,a,!0,Lt.alloc()),y.L(0,b.x,b.y),Lt.free(te),Lt.free(b)),b=y.toNode,E=y.toPort,b!==null&&(te=b.findVisibleNode(),te!==null&&te!==b&&(b=te,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(Ri,Lt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Lt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Lt.free(x),Lt.free(a));y.zf()},Mr.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Zi:return a;case ki:return new Lt(y.i(x).x,a.y);case di:return new Lt(a.x,y.i(x).y);default:case Jr:return y.i(x)}},Pt.Object.defineProperties(Mr.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ki))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Mr.prototype.setReshapingBehavior=Mr.prototype.om,Mr.prototype.getReshapingBehavior=Mr.prototype.Ru;var Jr=new Sn(Mr,"None",0),di=new Sn(Mr,"Horizontal",1),ki=new Sn(Mr,"Vertical",2),Zi=new Sn(Mr,"All",3);Mr.className="LinkReshapingTool",Mr.None=Jr,Mr.Horizontal=di,Mr.Vertical=ki,Mr.All=Zi,mr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ri(){Hi.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 gi;a.alignmentFocus=Ri,a.figure="Rectangle",a.desiredSize=Do,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Lt,this.Dw=new qn,this.Tn=new Lt,this.rt=new qn(0,0),this.qt=new qn(1/0,1/0),this.pt=new qn(1,1)}Gt(ri,Hi),ri.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)}},ri.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ki,y.type=Xn.Spot,y.locationSpot=Ri;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},ri.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ri.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=Ri),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)}},ri.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},ri.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))},ri.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ri.prototype.stopTransaction=function(){var a=this.diagram,y=Hi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ri.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ri.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Lt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),a.bd(),Lt.free(E)}},ri.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Lt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),Lt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ri.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 ni){var b=new Fn;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()}},ri.prototype.computeResize=function(a,y,x,b,E,te){y.Mc()&&(y=Ri);var ne=this.adornedObject.naturalBounds,se=ne.x,he=ne.y,ve=ne.x+ne.width,Se=ne.y+ne.height,Be=1;if(!te){Be=ne.width;var Xe=ne.height;0>=Be&&(Be=1),0>=Xe&&(Xe=1),Be=Xe/Be}return Xe=Lt.alloc(),tn.No(a.x,a.y,se,he,E.width,E.height,Xe),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Xe.x,ve-b.width),a.x=Math.min(a.x,ve-x.width),a.width=Math.max(ve-a.x,x.width),a.y=Math.max(Xe.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(Be*a.width,b.height),x.height),a.width=a.height/Be):(a.width=Math.max(Math.min(a.height/Be,b.width),x.width),a.height=Be*a.width),a.x=ve-a.width,a.y=Se-a.height)):1<=y.y?(a.x=Math.max(Xe.x,ve-b.width),a.x=Math.min(a.x,ve-x.width),a.width=Math.max(ve-a.x,x.width),a.height=Math.max(Math.min(Xe.y-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Be*a.width,b.height),x.height),a.width=a.height/Be):(a.width=Math.max(Math.min(a.height/Be,b.width),x.width),a.height=Be*a.width),a.x=ve-a.width)):(a.x=Math.max(Xe.x,ve-b.width),a.x=Math.min(a.x,ve-x.width),a.width=ve-a.x,te||(a.height=Math.max(Math.min(Be*a.width,b.height),x.height),a.width=a.height/Be,a.y=he+.5*(Se-he-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Xe.x-se,b.width),x.width),a.y=Math.max(Xe.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(Be*a.width,b.height),x.height),a.width=a.height/Be):(a.width=Math.max(Math.min(a.height/Be,b.width),x.width),a.height=Be*a.width),a.y=Se-a.height)):1<=y.y?(a.width=Math.max(Math.min(Xe.x-se,b.width),x.width),a.height=Math.max(Math.min(Xe.y-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Be*a.width,b.height),x.height),a.width=a.height/Be):(a.width=Math.max(Math.min(a.height/Be,b.width),x.width),a.height=Be*a.width))):(a.width=Math.max(Math.min(Xe.x-se,b.width),x.width),te||(a.height=Math.max(Math.min(Be*a.width,b.height),x.height),a.width=a.height/Be,a.y=he+.5*(Se-he-a.height))):0>=y.y?(a.y=Math.max(Xe.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/Be,b.width),x.width),a.height=Be*a.width,a.x=se+.5*(ve-se-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Xe.y-he,b.height),x.height),te||(a.width=Math.max(Math.min(a.height/Be,b.width),x.width),a.height=Be*a.width,a.x=se+.5*(ve-se-a.width))),Lt.free(Xe),a},ri.prototype.computeReshape=function(){var a=zn;return this.adornedObject instanceof gi&&(a=E0(this.adornedObject)),!(a===yr||this.diagram.lastInput.shift)},ri.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},ri.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},ri.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},Pt.Object.defineProperties(ri.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Ki))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ki)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),ri.className="ResizingTool",mr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Oi(){Hi.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Lt,this.ue=null;var a=new gi;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 Lt(NaN,NaN),this.u=0,this.F=50}Gt(Oi,Hi),Oi.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)}},Oi.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ki,y.type=Xn.Position,y.locationSpot=Ri;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},Oi.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},Oi.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)},Oi.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(Ri)},Oi.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)},Oi.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Lt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Oi.prototype.stopTransaction=function(){var a=this.diagram,y=Hi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Oi.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Oi.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Oi.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()},Oi.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()}},Oi.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},Pt.Object.defineProperties(Oi.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ki))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ki)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Oi.className="RotatingTool",mr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function mo(){Hi.call(this),this.name="ClickSelecting"}Gt(mo,Hi),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 hi(){Hi.call(this),this.name="Action",this.pk=null}Gt(hi,Hi),hi.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},hi.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()},hi.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))}},hi.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()},hi.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())},hi.prototype.doStop=function(){this.pk=null},hi.className="ActionTool";function Ei(){Hi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Lt(0,0)}Gt(Ei,Hi),Ei.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Ei.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Ei.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Nr)x.Zc()&&(Su(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);rn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var te=Lt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Qf(this.diagram,b,a,te),b.location=te,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Lt.free(te)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Pt.Object.defineProperties(Ei.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Ei.className="ClickCreatingTool";function li(){Hi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Nr;a.layerName="Tool",a.selectable=!1;var y=new gi;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Gt(li,Hi),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),Ur?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 Fn,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)}},Pt.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 Gr(){Hi.call(this),this.name="Panning",this.Xt=new Lt,this.xy=new Lt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Dt.document,"scroll",a.Kw,!1),a.stopTool()}}Gt(Gr,Hi),Gr.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())},Gr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Dt.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Gr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Gr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Gr.prototype.doMouseMove=function(){this.move()},Gr.prototype.doMouseUp=function(){this.move(),this.stopTool()},Gr.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)}},Pt.Object.defineProperties(Gr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Gr.className="PanningTool",mr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),mr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),mr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),mr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),mr("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Si(){this.F=this.u=this.j=this.o=null}Pt.Object.defineProperties(Si.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}}}),Si.className="HTMLInfo";function zi(a,y,x){this.text=a,this.hx=y,this.visible=x}zi.className="ContextMenuButtonInfo";function _i(){Hi.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Lt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Gt(_i,Hi);function qi(a){var y=new Si;y.show=function(E,te,ne){ne.showDefaultContextMenu()},y.hide=function(E,te){te.hideDefaultContextMenu()},jo=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");Dt.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",ii,!1),b.addEventListener(y,"selectstart",ii,!1),b.addEventListener(x,"contextmenu",ii,!1)),y.className="goCXforeground",x.className="goCXbackground",Dt.document.body&&(Dt.document.body.appendChild(y),Dt.document.body.appendChild(x)),xo=y,Ta=x,ka=!0}function ii(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 hn||(a instanceof qt?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(Hi.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ki){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&yo(this)},_i.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ki){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}yo(this)};function yo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Si||(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=jo,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof qt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ki&&!a.currentContextMenu.visible&&a.stopTool()}}_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 Ki){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Si&&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 Ki?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Si&&(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 Fn;return y.add(new zi("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new zi("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new zi("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new zi("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new zi("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new zi("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new zi("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new zi("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new zi("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new zi("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new zi("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new zi("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new zi("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===jo){xo.style.display="none",Ta.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Ta,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Pt.Object.defineProperties(_i.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ki?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return ka===!1&&jo===null&&ia&&qi(this),jo},set:function(a){a===null&&(ka=!0),jo=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var jo=null,ka=!1,Ta=null,xo=null;_i.className="ContextMenuTool",mr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Ui(){Hi.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 Si,this.kt=null,Xo(this,this.j)}Gt(Ui,Hi);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(Vi)):E==="Tab"?(a.acceptText(eo),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 Ui)if(te.state===Cs)x.style.border="3px solid red",x.focus();else{var ne=b.ga(Ri),se=E.position,he=E.scale,ve=b.Df()*he;ve<te.minimumEditorScale&&(ve=te.minimumEditorScale);var Se=b.naturalBounds.width*ve+6,Be=b.naturalBounds.height*ve+2,Xe=(ne.x-se.x)*he;ne=(ne.y-se.y)*he,se=b.verticalAlignment,he=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ve,Be=se.y*Be-se.y*he+se.offsetY-(.5*Be-.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*ve+"%",x.style.lineHeight="normal",x.style.width=Se+"px",x.style.left=(Xe-Se/2|0)-1+"px",x.style.top=(ne+Be|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=ve,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)}}}Ui.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},Ui.prototype.doStart=function(){Us=this,this.textBlock!==null&&this.doActivate()},Ui.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}}}},Ui.prototype.doCancel=function(){this.stopTool()},Ui.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Ui.prototype.doMouseDown=function(){this.isActive&&this.acceptText(is)},Ui.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 Vi:case eo:(Vi!==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))}}Ui.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)},Ui.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Ui.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)},Ui.prototype.doStop=function(){Us=null},Ui.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)))},Ui.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Pt.Object.defineProperties(Ui.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)}}}),Ui.prototype.measureTemporaryTextBlock=Ui.prototype.Lx;var wa=new Sn(Ui,"LostFocus",0),is=new Sn(Ui,"MouseDown",1),eo=new Sn(Ui,"Tab",2),Vi=new Sn(Ui,"Enter",3),to=new Sn(Ui,"SingleClick",0),Bi=new Sn(Ui,"SingleClickSelected",1),Qo=new Sn(Ui,"DoubleClick",2),Ii=new Sn(Ui,"StateNone",0),vo=new Sn(Ui,"StateActive",1),Ho=new Sn(Ui,"StateEditing",2),Uo=new Sn(Ui,"StateValidating",3),Cs=new Sn(Ui,"StateInvalid",4),ls=new Sn(Ui,"StateValidated",5),Us=null;Ui.className="TextEditingTool",Ui.LostFocus=wa,Ui.MouseDown=is,Ui.Tab=eo,Ui.Enter=Vi,Ui.SingleClick=to,Ui.SingleClickSelected=Bi,Ui.DoubleClick=Qo,Ui.StateNone=Ii,Ui.StateActive=vo,Ui.StateEditing=Ho,Ui.StateValidating=Uo,Ui.StateInvalid=Cs,Ui.StateValidated=ls,mr("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 On,this.ce=new ra,this.ce.Yd=this,this.Ei=new On,this.pu=new On,this.Sr=new On,this.pr=new On,a&&Object.assign(this,a)}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),Dt.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)}at=ea.prototype,at.fv=function(a){return this.ce.fv(a)},at.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 qt&&he.diagram!==null||he instanceof hn){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)),Dt.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Dt.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}at.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)},at.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))},at.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),va(this,a))},at.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 No(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],ve=y[1],Se=y[2];return y=y[3],se===0||se===100?(te=he,ne=ve):(Se===0||Se===100)&&(he=te,ve=ne),180<Math.abs(he-te)&&(he>te?te+=360:he+=360),te=E(x,te,he-te,b)%360,ne=E(x,ne,ve-ne,b),se=E(x,se,Se-se,b),x=E(x,a,y-a,b),"hsla("+te+", "+ne+"%, "+se+"%, "+x+")"}function pl(){function a(x,b,E,te,ne,se){x.position=new Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}var y=new 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 Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("location",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!0):x.location=new Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("position:placeholder",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!1):x.position=new Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("position:nodeCollapse",function(x,b,E,te,ne,se){var he=x.actualBounds,ve=E.actualBounds;E=ve.x+ve.width/2-he.width/2,he=ve.y+ve.height/2-he.height/2,ne<se?x.mm(te(ne,b.x,E-b.x,se),te(ne,b.y,he-b.y,se),!1):x.position=new Lt(te(ne,b.x,E-b.x,se),te(ne,b.y,he-b.y,se))}),y.add("desiredSize",function(x,b,E,te,ne,se){x.desiredSize=new 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}Pt.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 Sn(ea,"Default",1),eu=new Sn(ea,"AnimateLocations",2),Hl=new Sn(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 On,this.Ut=new On,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}at=ra.prototype,at.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 hn?a=x:x instanceof qt&&(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)},at.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},at.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof hn?this.H=a:a instanceof qt&&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 hn&&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,ve=se.end;he[x]===void 0&&(he[x]=ya(b)),ve[x]=ya(E)}else he={},ve={},he[x]=ya(b),ve[x]=ya(E),se=he.position,y instanceof qt&&se instanceof Lt&&!se.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&se.assign(ve.position),se=new Vu(he,ve,te),ne.add(y,se);ne=he[x],ne instanceof Lt&&!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 Lt||a instanceof qn?a.copy():a}at.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},at.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 qt&&te.diagram===null)){var ne=b.value,se=E?ne.end:ne.start;ne=E?ne.start:ne.end;var he=Wl,ve;for(ve in ne)ve==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||he.get(ve)===null||he.get(ve)(te,se[ve],ne[ve],a.Lp,y,x,a)}}}at.stop=function(){return this.bc?(this.Ml(!0),this):this},at.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,ve=E?se.start:se.end,Se=se.Ku,Be;for(Be in ve)if(te.get(Be)!==null){var Xe=Be;!se.Hu||Xe!=="position:nodeCollapse"&&Xe!=="position:placeholder"||(Xe="position"),te.get(Xe)(ne,he[Be],Se[Be]!==void 0?Se[Be]:se.Hu?he[Be]:ve[Be],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(Be=x.pr.iterator;Be.next();)E=Be.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())}},at.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof ni&&(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 Lt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof ni)for(a=a.memberParts;a.next();)b=a.value,b instanceof sr&&this.Cj(b,y)},at.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof ni&&(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 ni)for(a=a.memberParts;a.next();)b=a.value,b instanceof sr&&this.Aj(b,y)}},at.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Pt.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:Ht("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))}Pt.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 Sn(Al,"Default",1),us=new Sn(Al,"Immediate",2),Ca=new Sn(Al,"Bundled",3);Al.className="AnimationTrigger",Al.Default=ba,Al.Immediate=us,Al.Bundled=Ca;function Vo(a){pi(this),this.H=null,this.Pa=new Fn,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)}at=Vo.prototype,at.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},at.Xe=function(a){this.H=a},at.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 ni?E++:he instanceof sr?b++:he instanceof _n?te++:he instanceof Ki?ne++:x++}if(se="",0<x&&(se+=x+" Parts "),0<b&&(se+=b+" Nodes "),0<E&&(se+=E+" Groups "),0<te&&(se+=te+" Links "),0<ne&&(se+=ne+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,se+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&Qr(b)&&(se+=" #"+Qr(b)),x instanceof sr?se+=" "+In(b):x instanceof _n&&(se+=" "+In(x.fromNode)+" "+In(x.toNode));return y+" "+this.Pa.count+": "+se},at.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=Lt.alloc(),te=this.Pa.s,ne=te.length;ne--;){var se=te[ne];if((b!==!0||td(se)!==!1)&&se.isVisible()&&(E.assign(a),ei(E,se.oe),se=se.ic(E,y,x),se!==null&&(y!==null&&(se=y(se)),se!==null&&(x===null||x(se)))))return Lt.free(E),se}return Lt.free(E),null},at.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Fn||b instanceof On||(b=new On),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var te=Lt.alloc(),ne=this.Pa.s,se=ne.length;se--;){var he=ne[se];if((E!==!0||td(he)!==!1)&&he.isVisible()){te.assign(a),ei(te,he.oe);var ve=he;he.ji(te,y,x,b)&&(y!==null&&(ve=y(ve)),ve===null||x!==null&&!x(ve)||b.add(ve))}}return Lt.free(te),b},at.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 Fn||E instanceof On||(E=new On),this.Uh===!1)return E;var te=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(te=!0);for(var ne=this.Pa.s,se=ne.length;se--;){var he=ne[se];if((te!==!0||td(he)!==!1)&&he.isVisible()){var ve=he;he.Cf(a,y,x,b,E)&&(y!==null&&(ve=y(ve)),ve===null||x!==null&&!x(ve)||E.add(ve))}}return E},at.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 ve=se[he];if((ne!==!0||td(ve)!==!1)&&te(ve)&&ve.isVisible()){var Se=ve;ve.Cf(a,y,x,b,E)&&(y!==null&&(Se=y(Se)),Se===null||x!==null&&!x(Se)||E.add(Se))}}return E},at.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 Fn||E instanceof On)&&(te=E),E=!0),te instanceof Fn||te instanceof On||(te=new On),this.Uh===!1)return te;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var se=Lt.alloc(),he=Lt.alloc(),ve=this.Pa.s,Se=ve.length;Se--;){var Be=ve[Se];if((ne!==!0||td(Be)!==!1)&&Be.isVisible()){se.assign(a),ei(se,Be.oe),he.h(a.x+y,a.y),ei(he,Be.oe);var Xe=Be;Be.og(se,he,x,b,E,te)&&(x!==null&&(Xe=x(Xe)),Xe===null||b!==null&&!b(Xe)||te.add(Xe))}}return Lt.free(se),Lt.free(he),te},at.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=yn();for(var E=yn(),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 Ki&&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}at.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,ve=Mn.alloc(),Se=0;Se<te;Se++){var Be=E[Se];b.contains(Be)&&a.Oj(y,Be,x,se,he,ve,!1)}Mn.free(ve),y.globalAlpha=ne}}}at.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))}},at.g=function(a,y,x,b,E){var te=this.diagram;te!==null&&te.cb(Ko,a,this,y,x,b,E)},at.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},at.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 ni&&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}Pt.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===""&&Ht("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Ht("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 hn(a,y){if(hm||(Ts(),hm=!0),pi(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(Dt.document,"DOMContentLoaded",b,!1),x.setRTL()};Dt.document.body!==null?this.setRTL():x.addEventListener(Dt.document,"DOMContentLoaded",b,!1)}this.ol=null,rp.add("Model",ho);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"||Dt.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 Fn,a.pj=new pr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Lt(NaN,NaN).freeze(),a.du=new Lt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Lt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new mi,a.zu=new Lt(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=oo,a.Fg=Bs,a.pq=oo,a.yt=Xa,a.Bt=Xa,a.Fc=!0,a.pn=!1,a.De=new On,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 On,a.Ht=!0,a.uu=wh,a.pw=!1,a.wu=mf,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new pr,a.Xn=new Fn,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 On().freeze(),a.Nt=999999999,a.nw=new On().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new On,a.ow=new On,a.Xh=null,a.aw=new qn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Lt,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","",In)),y.add(x),a.ny=y,a.Lg.add("",y),y=new sr,x=new Lo,x.stroke="brown",x.bind(new Pa("text","",In)),y.add(x),a.Lg.add("Comment",y),y=new sr,y.selectable=!1,y.avoidable=!1,x=new gi,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 ni,y.selectionObjectName="GROUPPANEL",y.type=Xn.Vertical,x=new Lo,x.font="bold 12pt sans-serif",x.bind(new Pa("text","",In)),y.add(x),x=new Xn(Xn.Auto),x.name="GROUPPANEL";var b=new gi;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 gi,x.isPanelMain=!0,y.add(x),x=new gi,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 gi,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ki,y.type=Xn.Auto,x=new gi,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 Ki,y.type=Xn.Link,x=new gi,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 ho,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=po,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new Lt,a.zy=500,a.wp=new Lt,a.wq=!1}hn.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 On().freeze(),a.nw=new On().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var te=[],ne=a.Wa.length;if(y){for(y=0;y<ne;y++)for(var se=a.Wa.s[y].parts;se.next();){var he=se.value;he!==E&&he.data===null&&te.push(he)}for(y=0;y<te.length;y++)a.remove(te[y])}for(y=0;y<ne;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),mp(),a.Og.clear(),Br=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),te}function Qc(){return null}hn.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()},hn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Dt.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},hn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Dt.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||Ur||(y=11)}this.Db=y,this.Gw=!0},hn.prototype.qb=function(a){a.classType===hn&&(this.autoScale=a)},hn.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||Ht("Diagram setup requires an argument DIV."),a.Ka!==null&&Ht("Diagram has already completed setup."),typeof y=="string"?a.Ka=Dt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Ht("No DIV or DIV id supplied: "+y),a.Ka===null&&Ht("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Ht("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Dt.ResizeObserver){var x=xn(function(){a.$b()},250);a.ol=new Dt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Dt.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=Dt.go;var E=new yu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Dt.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=xn(function(){a.Yh=null,a.N()},300),a.Ov=xn(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,ve=0;se.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(he=0<ne.deltaX?1:-1),ne.deltaY!==0&&(ve=0<ne.deltaY?1:-1),se.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-he:-ve):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(he=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(ve=0<ne.wheelDeltaY?-1:1),se.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-he:-ve):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 ve=he;he=Dd(a,ne,!0,!1,!0,ve),yh(a,ne,he),he.targetDiagram=Fd(ne,ne.target),he.targetObject=null,ve||he.clone(a.bq),ve=a.uw,se=se?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(ve.x-ne.screenX)>se||Math.abs(ve.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=Dt.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 ve=a,Se=ne;he&&he.H&&(Se=ne,ve=he.H),se.targetDiagram=ve,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 ve=Dt.document.elementFromPoint(ne.clientX,ne.clientY)||null;ve!==null&&ve.shadowRoot!==void 0&&ve.shadowRoot!==null&&(ve=ve.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),ve!==null&&ve.H instanceof hn&&ve.H!==a&&yh(ve.H,ne,he),ve===null&&(ve=ne.target),yh(a,ne,he),he.clickCount=a.yq,he.targetDiagram=Fd(ne,ve),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)}}hn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},hn.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(Dt,"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))}hn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Dt.devicePixelRatio||1},hn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},hn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},hn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},hn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},hn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},hn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},hn.prototype.doFocus=function(){this.focus()},hn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Dt.scrollX||Dt.pageXOffset,y=Dt.scrollY||Dt.pageYOffset;this.ta.focus(),Dt.scrollTo(a,y)}},hn.prototype.Oy=function(){this.H.R("GainedFocus")},hn.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 gi;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new gi,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new gi,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new gi,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new gi,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new gi,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)}hn.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,ve=b.height+te.top+te.bottom,Se=b.right+te.right;te=b.bottom+te.bottom;var Be=E.x;b=E.y;var Xe=E.width,tt=E.height,rt=E.right,ct=E.bottom;E=this.scale;var Nt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Nt=Nt+a.scrollWidth-a.clientWidth;break;case"reverse":Nt=a.scrollWidth-Nt-a.clientWidth}var Mt=Nt;Xe<he||tt<ve?(Nt=Lt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Mt&&(Nt.x=Mt/E+ne,this.ju=Mt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Nt.y=a.scrollTop/E+se,this.lu=a.scrollTop),this.position=Nt,Lt.free(Nt),this.Ee=this.qr=!1):(Nt=Lt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Be&&(this.position=Nt.h(Mt+ne,this.position.y)),Se>rt&&(this.position=Nt.h(-(y.scrollWidth-this.Aa)+Mt-this.Aa/E+Se,this.position.y))),a.vy&&this.allowVerticalScroll&&(se<b&&(this.position=Nt.h(this.position.x,a.scrollTop+se)),te>ct&&(this.position=Nt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+te))),Lt.free(Nt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,Se=b.right,rt=E.right,te=b.bottom,ct=E.bottom,ne=b.x,Be=E.x,se=b.y,b=E.y,Xe>=he&&ne>=Be&&Se<=rt&&(x.style.width="1px"),tt>=ve&&se>=b&&te<=ct&&(x.style.height="1px"))}},hn.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 ve=ne[he];ve.isInDocumentBounds&&ve.isVisible()&&(ve=ve.actualBounds,ve.w()&&(x?(x=!1,y.assign(ve)):y.ed(ve)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}hn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(bn(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=Lt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Mn.allocAt(0,0,b.width,b.height);var E=Lt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Mn.free(b),Lt.free(E),Lt.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()?Ri:he),pf(a,a.documentBounds,E,ne,se,y),y=a.scale,a.scale=te,a.vb=!1,te=a.viewportBounds,tn.B(te.x,x)&&tn.B(te.y,b)&&tn.B(te.width,E)&&tn.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}hn.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},at=hn.prototype,at.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 Lt(a.x,a.y)}},at.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Lt(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},at.zz=function(a){if(a instanceof qt){this.eq=a;var y=Lt.alloc();this.fq=this.op(a.ga(Xa,y)),Lt.free(y)}else this.eq=null,this.fq=po};function pf(a,y,x,b,E,te){var ne=Lt.allocAt(a.pa.x,a.pa.y),se=ne.x,he=ne.y;if(a.eq!==null){var ve=Lt.alloc();ve=a.eq.ga(Xa,ve),se=ve.x-a.fq.x/a.scale,he=ve.y-a.fq.y/a.scale,E=ua,Lt.free(ve)}(te||a.scrollMode===xh)&&(E.sb()&&(x>y.width&&(se=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(he=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,te=x-y.width,x<y.width+E.left+E.right?(se=Math.min(se+x/2,y.right+Math.max(te,E.right)-x/2),se=Math.max(se,y.left-Math.max(te,E.left)+x/2),se-=x/2):se>y.left?se=y.left:se<y.right-x&&(se=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(he=Math.min(he+b/2,y.bottom+Math.max(x,E.bottom)-b/2),he=Math.max(he,y.top-Math.max(x,E.top)+b/2),he-=b/2):he>y.top?he=y.top:he<y.bottom-b&&(he=y.bottom-b)),ne.x=isFinite(se)?se:-a.yb.left,ne.y=isFinite(he)?he:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),gs(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),lc(a),Lt.free(ne)}at.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},at.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}at.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 Fn||E instanceof On||(E=new On),cs(a),a=a.Wa.iteratorBackwards;a.next();){var te=a.value;te.visible&&!te.isTemporary&&te.ji(y,x,b,E)}return E}at.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Fn||b instanceof On||(b=new On),cs(this);for(var E=this.Wa.iteratorBackwards;E.next();){var te=E.value;te.visible&&te.ji(a,y,x,b)}return b},at.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)},at.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Fn||E instanceof On||(E=new On),cs(this);for(var te=this.Wa.iteratorBackwards;te.next();){var ne=te.value;ne.visible&&ne.Cf(a,y,x,b,E)}return E},at.Nu=function(a,y,x,b,E,te){var ne=new On;cs(this);for(var se=this.Wa.iteratorBackwards;se.next();){var he=se.value;he.visible&&he.Nu(a,y,x,b,ne,E,te)}return ne};function vh(a,y,x,b,E){var te=null;for(te===void 0&&(te=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Fn||E instanceof On||(E=new On),cs(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,te,x,b,E)}return E}at.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)},at.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 Fn||E instanceof On)&&(te=E),E=!0),te instanceof Fn||te instanceof On||(te=new On),cs(this);for(var ne=this.Wa.iteratorBackwards;ne.next();){var se=ne.value;se.visible&&se.og(a,y,x,b,E,te)}return te};function _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 Fn||E instanceof On)&&(te=E),E=!0),te instanceof Fn||te instanceof On||(te=new On),cs(a),a=a.Wa.iteratorBackwards;a.next();){var se=a.value;se.visible&&!se.isTemporary&&se.og(y,x,ne,b,E,te)}return te}hn.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),Ur&&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,Ur&&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)}hn.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)},hn.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)},hn.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)},hn.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)},hn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Lt(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?ei(new Lt(y,a),this.Ab):new Lt(y,a)};function yh(a,y,x){var b=a.ta,E=a.Aa,te=a.ya,ne=0,se=0;b!==null&&(b=b.getBoundingClientRect(),ne=y.clientX-E/b.width*b.left,se=y.clientY-te/b.height*b.top),x.viewPoint.h(ne,se),a.Ab!==null?(y=Lt.allocAt(ne,se),a.Ab.Cd(y),x.documentPoint.assign(y),Lt.free(y)):x.documentPoint.h(ne,se)}function 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))}}hn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function kd(a){a.ld||cs(a),a.Va()}hn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},at=hn.prototype,at.Pz=function(){return this.kg},at.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,ol(this),this.hf=!1,this.du=new Lt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Nn(function(){b.ld=!1,Ps(y,"Model"),a(b)},1)},at.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Dt.requestAnimationFrame(function(){y.kg&&y.bd()})}},at.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 On,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof ni&&b.U&65536&&(b.U=b.U^65536)})}}at.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof ni||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof ni&&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 Ki&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function na(a,y){for(var x=yn(),b=yn(),E=y.memberParts;E.next();){var te=E.value;te.isVisible()&&(te instanceof ni?(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)}at.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},at.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Ht("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&&(mi.prototype.Cd=mi.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,ve=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(-ve,-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&&(mi.prototype.Cd=mi.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,ve){if(a.Ka!==null){a.ta===null&&Ht("No canvas specified"),ne===void 0&&(ne=null),se===void 0&&(se=null),he===void 0&&(he=!1),ve===void 0&&(ve=!1),ru(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var Se=a.Ca;a.Ca=E;var Be=a.Wa.s,Xe=Be.length;try{var tt=new Mn(te.x,te.y,b.width/E,b.height/E),rt=tt.copy();rt.Co(x),sc(a,rt),cs(a),a.Fd(Be,Xe,a,tt),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 ct=a.Mb;y.scale(ct,ct);var Nt=mi.alloc();Nt.reset(),Nt.translate(x.left,x.top),Nt.scale(E),te.x===0&&te.y===0||Nt.translate(-te.x,-te.y),y.setTransform(Nt.m11,Nt.m12,Nt.m21,Nt.m22,Nt.dx,Nt.dy),y.yc(),y instanceof Ml&&Jy(y,Nt.m11,Nt.m12,Nt.m21,Nt.m22,Nt.dx,Nt.dy),mi.free(Nt),Ns(a,y),y.globalAlpha=a.pb;var Mt=a.Qj("Grid");if(ne){var zt=new On,Ut=ne.iterator;for(Ut.reset();Ut.next();){var Yt=Ut.value;Yt instanceof Nr&&(ve||Yt.layer!==Mt)&&(Yt.Gj(),zt.add(Yt))}for(ve=0;ve<Xe;ve++)gl(Be[ve],y,a,zt,he);zt.each(function(dn){return dn.Gj()})}else for(zt=0;zt<Xe;zt++){var $t=Be[zt];$t===Mt?ve&&$t.gc(y,a,!0):$t.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(Be,Xe,a,a.viewportBounds),sc(a),a.ib instanceof Ml&&(a.ib.Nj.PA(),a.redraw())}}}at.Gf=function(a){return this.Rg[a]},at.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},at.Tx=function(){this.Rg=new Fr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Ur||Pr),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))}at.Ql=function(a){return this.on[a]},at.sA=function(a,y){this.on[a]=y},at.Sx=function(){this.on=new Fr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},at.set=function(a){return Object.assign(this,a),this},at.Du=function(a){return this.nm(a)},at.nm=function(a){return nu(this,a),this};function nu(a,y){var x=a instanceof Xn,b=a instanceof hn,E;for(E in y){E===""&&Ht("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])),rn(te)?ne=E.substr(se+1):Ht("Unable to find object named: "+he+" in "+a.toString()+" when trying to set property: "+E)}}if(ne[0]!=="_"&&!Gn(te,ne))if(b&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(b&&ne==="Changed"){a.Pe(y[ne]);continue}else if(b&&Gn(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 Ht('Trying to set undefined property "'+ne+'" on object: '+te.toString());te[ne]=y[E],ne[0]==="_"&&te instanceof qt&&te.Vw(ne)}}at.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()}},at.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")},hn.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 ve=70*ne,Se=Math.max(te,0),Be=Math.max(y,0),Xe=Math.floor(E-Se),tt=Math.floor(se-Be);a.drawImage(b.Oa,Se,Be,Xe,tt,0,0,Xe,tt),Wd(this.Yf,this)&&a.clearRect(0,0,he,ve),b=yn(),a=yn(),tt=Math.abs(te),Xe=Math.abs(y);var rt=Se===0?0:E-tt;Se=Lt.allocAt(rt,0),tt=Lt.allocAt(tt+rt,se),a.push(new Mn(Math.min(Se.x,tt.x),Math.min(Se.y,tt.y),Math.abs(Se.x-tt.x),Math.abs(Se.y-tt.y)));var ct=this.Ab;if(ct.reset(),ct.scale(ne,ne),this.Ca!==1&&ct.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&ct.translate(-ne.x,-ne.y),ei(Se,ct),ei(tt,ct),b.push(new Mn(Math.min(Se.x,tt.x),Math.min(Se.y,tt.y),Math.abs(Se.x-tt.x),Math.abs(Se.y-tt.y))),rt=Be===0?0:se-Xe,Se.h(0,rt),tt.h(E,Xe+rt),a.push(new Mn(Math.min(Se.x,tt.x),Math.min(Se.y,tt.y),Math.abs(Se.x-tt.x),Math.abs(Se.y-tt.y))),ei(Se,ct),ei(tt,ct),b.push(new Mn(Math.min(Se.x,tt.x),Math.min(Se.y,tt.y),Math.abs(Se.x-tt.x),Math.abs(Se.y-tt.y))),Wd(this.Yf,this)&&(E=0<te?0:-te,se=0<y?0:-y,Se.h(E,se),tt.h(he+E,ve+se),a.push(new Mn(Math.min(Se.x,tt.x),Math.min(Se.y,tt.y),Math.abs(Se.x-tt.x),Math.abs(Se.y-tt.y))),ei(Se,ct),ei(tt,ct),b.push(new Mn(Math.min(Se.x,tt.x),Math.min(Se.y,tt.y),Math.abs(Se.x-tt.x),Math.abs(Se.y-tt.y)))),Lt.free(Se),Lt.free(tt),Ec(this,!1,!0),this.Ka===null&&Ht("No div specified"),this.ta===null&&Ht("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,ve=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,-ve),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){ve=vs(ne,E),Be=ne.Zq,Be.length=0,Se=this.scale,Xe=Mn.alloc(),tt=ne.Pa.s,ct=tt.length,rt=he.length;for(var Nt=0;Nt<ct;Nt++){var Mt=tt[Nt],zt=Xd(Mt,Mt.actualBounds);e:{for(var Ut=2/Se,Yt=4/Se,$t=0;$t<rt;$t++){var dn=he[$t];if(dn.width!==0&&dn.height!==0&&zt.Vu(dn.x-Ut,dn.y-Ut,dn.width+Yt,dn.height+Yt)){zt=!0;break e}}zt=!1}zt&&ne.Oj(E,Mt,this,Be,Se,Xe,!0)}Mn.free(Xe),E.globalAlpha=ve}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,ve=E.clientHeight||b+se,Se=a.viewportBounds;E=Se.x;var Be=Se.y,Xe=Se.width,tt=Se.height;if((he!==x+ne||ve!==b+se)&&(a.gf=!1,a.Be=!1,se=ne=0,a.Aa=he,a.ya=ve,te=a.pn=!0,lc(a)),!a.hf||!a.viewportBounds.w())return!0;var rt=a.ku,ct=a.hu;if(a.Ee=!1,!(te||a.gf||a.Be||a.mn||a.nn))return!0;var Nt=a.documentBounds,Mt=0,zt=0,Ut=0,Yt=0,$t=Se.width,dn=Se.height,ir=a.rj;a.contentAlignment.sb()?(Nt.width>$t&&(Mt=ir.left,zt=ir.right),Nt.height>dn&&(Ut=ir.top,Yt=ir.bottom)):(Mt=ir.left,zt=ir.right,Ut=ir.top,Yt=ir.bottom);var gr=Nt.width+Mt+zt,hr=Nt.height+Ut+Yt;ir=a.scale;var Qn=gr>he/ir,jn=hr>ve/ir;if(!(te||a.gf||a.Be||Qn||jn))return!0;Mt=Nt.x-Mt,he=Se.x,zt=Nt.right+zt,ve=Se.right+ne,Ut=Nt.y-Ut;var qr=Se.y;Nt=Nt.bottom+Yt,Se=Se.bottom+se;var Xr="1px";if(Yt="1px",a.scrollMode===xh&&(Qn||jn)&&(Qn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Qn=1,Mt+1<he&&(Qn=Math.max((he-Mt)*ir+a.Aa,Qn)),zt>ve+1&&(Qn=Math.max((zt-ve)*ir+a.Aa,Qn)),$t+ne+1<gr&&(Qn=Math.max((gr-$t)*ir+a.Aa,Qn)),Xr=Qn.toString()+"px"),jn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Qn=1,Ut+1<qr&&(Qn=Math.max((qr-Ut)*ir+a.ya,Qn)),Nt>Se+1&&(Qn=Math.max((Nt-Se)*ir+a.ya,Qn)),dn+se+1<hr&&(Qn=Math.max((hr-dn)*ir+a.ya,Qn)),Yt=Qn.toString()+"px")),Qn=Xr!=="1px",jn=Yt!=="1px",Qn&&jn||!Qn&&!jn||(jn&&(ve-=a.Db),Qn&&(Se-=a.Db),gr<$t+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,Mt+1<he&&(ne=Math.max((he-Mt)*ir+a.Aa,ne)),zt>ve+1&&(ne=Math.max((zt-ve)*ir+a.Aa,ne)),$t+1<gr&&(ne=Math.max((gr-$t)*ir+a.Aa,ne)),Xr=ne.toString()+"px"),Qn=Xr!=="1px",ne=a.ya,Qn!==a.Be&&(ne=Qn?a.ya-a.Db:a.ya+a.Db),hr<dn+se||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(se=1,Ut+1<qr&&(se=Math.max((qr-Ut)*ir+ne,se)),Nt>Se+1&&(se=Math.max((Nt-Se)*ir+ne,se)),dn+1<hr&&(se=Math.max((hr-dn)*ir+ne,se)),Yt=se.toString()+"px"),jn=Yt!=="1px"),a.qr&&Qn===a.Be&&jn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Qn!==a.Be&&(Xr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),te=!0),a.Be=Qn,ct.style.width=Xr,jn!==a.gf&&(Yt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),te=!0,a.tn&&(se=Lt.alloc(),jn?(y.style.left=a.Db+"px",a.position=se.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=se.h(a.pa.x-a.Db/a.scale,a.pa.y)),Lt.free(se))),te&&lc(a),a.gf=jn,ct.style.height=Yt,a.gu=!0,te&&(a.pn=!0),y=rt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&($t+1<gr?y=(a.position.x-Mt)*ir:Mt+1<he?y=rt.scrollWidth-rt.clientWidth:zt>ve+1&&(y=a.position.x*ir)),a.tn)switch(a.bu){case"negative":y=-(rt.scrollWidth-y-rt.clientWidth);break;case"reverse":y=rt.scrollWidth-y-rt.clientWidth}return rt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(dn+1<hr?rt.scrollTop=(a.position.y-Ut)*ir:Ut+1<qr?rt.scrollTop=rt.scrollHeight-rt.clientHeight:Nt>Se+1&&(rt.scrollTop=a.position.y*ir)),he=a.Aa,ve=a.ya,rt.style.width=he+(a.gf?a.Db:0)+"px",rt.style.height=ve+(a.Be?a.Db:0)+"px",x!==he||b!==ve||a.animationManager.zb?(x=Mn.allocAt(E,Be,Xe,tt),a.onViewportBoundsChanged(x,a.viewportBounds,ir,te),Mn.free(x),!1):!0}at=hn.prototype,at.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Ht("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&&Ht('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)}},at.oi=function(a){this.partManager.oi(a);var y=this;Zd(a,function(x){Id(y,x)}),(a instanceof Ki||a instanceof ni&&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()},at.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()},at.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))}at.Is=function(a,y){if(y===void 0&&(y=!1),bn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new On,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},at.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},hn.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(bn(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 ni&&(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 Ki||y.add(x,a.Pd(E,x,x.location))}function ac(a,y,x,b,E){if(y!==null&&y.count!==0){var te=Lt.alloc(),ne=Lt.alloc();ne.assign(x),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(x=a.Mr)||_f(a,y);for(var se=yn(),he=yn(),ve=y.iterator,Se=Lt.alloc();ve.next();){var Be=ve.key,Xe=ve.value;if(Be.Zc()){var tt=Xp(a,Be,y);tt!==null?se.push(new ie(Be,Xe,tt)):(!E||Be.canMove())&&(tt=Xe.point,te.assign(tt),a.computeMove(Be,te.add(ne),b,Se),Be.location=Se,Xe.shifted===void 0&&(Xe.shifted=new Lt),Xe.shifted.assign(Se.re(tt)))}else ve.key instanceof _n&&he.push(ve.sa)}for(Lt.free(Se),E=se.length,ve=0;ve<E;ve++)Be=se[ve],te.assign(Be.info.point),Be.Su.shifted===void 0&&(Be.Su.shifted=new Lt),Be.node.location=te.add(Be.Su.shifted);for(E=Lt.alloc(),ve=Lt.alloc(),Be=he.length,Xe=0;Xe<Be;Xe++){var rt=he[Xe];if(tt=rt.key,tt instanceof _n)if(tt.suspendsRouting){tt.Tg=null,Se=tt.fromNode;var ct=tt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ct=rt.value.point,tt.dragComputation===null)y.add(tt,a.Pd(b,tt,ne)),Lh(tt,ne.x-ct.x,ne.y-ct.y);else{rt=Lt.allocAt(0,0),(Se=tt.i(0))&&Se.w()&&rt.assign(Se);var Nt=Se=Lt.alloc().assign(rt).add(ne);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Nt=Lt.alloc(),Qf(a,tt,Se,Nt,b)),Se.assign(tt.dragComputation(tt,Se,Nt)).re(rt),y.add(tt,a.Pd(b,tt,Se)),Lh(tt,Se.x-ct.x,Se.y-ct.y),Lt.free(rt),Lt.free(Se),Nt!==Se&&Lt.free(Nt)}else Se!==null&&(E.assign(Se.location),Nt=y.I(Se),Nt!==null&&E.re(Nt.point)),ct!==null&&(ve.assign(ct.location),Nt=y.I(ct),Nt!==null&&ve.re(Nt.point)),Se!==null&&ct!==null?E.Xa(ve)?(Se=rt.value.point,ct=te,ct.assign(E),ct.re(Se),y.add(tt,a.Pd(b,tt,E)),Lh(tt,ct.x,ct.y)):(tt.suspendsRouting=!1,tt.bb()):(rt=rt.value.point,Se=Se!==null?E:ct!==null?ve:ne,y.add(tt,a.Pd(b,tt,Se)),Lh(tt,Se.x-rt.x,Se.y-rt.y))}else(tt.fromNode===null||tt.toNode===null)&&(Se=rt.value.point,y.add(tt,a.Pd(b,tt,ne)),Lh(tt,ne.x-Se.x,ne.y-Se.y))}Lt.free(te),Lt.free(ne),Lt.free(E),Lt.free(ve),Ln(se),Ln(he),x||(cs(a),Jh(a,y))}}hn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Lt),b.assign(y),a===null)return b;var E=y,te=x.isGridSnapEnabled;te&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Lt.alloc(),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,ve=he.x;return isNaN(ve)&&(ve=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,ve)),Math.max(ne,Math.min(x.y,he))),E!==y&&Lt.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=Lt.allocAt(0,0),te.yi(0,0,a,y,E),tn.No(x.x,x.y,se+te.x,ne+te.y,a,y,b),Lt.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}at=hn.prototype,at.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 Lt(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&&Ht("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Ht("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Ht("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Ht("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&&Ht("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}at.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},at.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},at.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},at.kA=function(a){if(a.diagram!==this&&Ht("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()}}},at.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},at.Yw=function(a){return this.pf===null&&(this.pf=new Fn),this.pf.add(a),this.model.Pe(a),this},at.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},at.Pe=function(a){return this.zg===null&&(this.zg=new Fn),this.zg.add(a),this},at.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},at.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)},at.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)},at.g=function(a,y,x,b,E){this.cb(Ko,a,this,y,x,b,E)},hn.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(Ro(E,a.propertyName,a.I(y)),E instanceof qt){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 qt){y?ne.pc(se):ne.Gb(se,he);var ve=ne.part;ve!==null&&ve.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 hn?typeof se=="number"&&he instanceof Vo&&(y?this.Wa.mb(se):(he.Xe(this),this.Wa.Gb(se,he))):Ht("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Oa){var Be=a.object,Xe=a.oldParam,tt=a.oldValue;if(Be instanceof Xn)typeof Xe=="number"&&tt instanceof qt?y?Be.Gb(Xe,tt):Be.pc(Xe):typeof Xe=="number"&&tt instanceof ja&&(tt.isRow?h1(Be,Xe,y?tt:void 0):d1(Be,Xe,y?tt:void 0));else if(Be instanceof Vo){var rt=a.newParam===!0;typeof Xe=="number"&&tt instanceof Nr&&(y?0>Be.Pa.indexOf(tt)&&Be.oi(Xe,tt,rt):(tt.isSelected=!1,tt.isHighlighted=!1,tt.Wb(),Be.pc(rt?Xe:-1,tt,rt)))}else Be instanceof hn?typeof Xe=="number"&&tt instanceof Vo&&(y?(tt.Xe(this),this.Wa.Gb(Xe,tt)):this.Wa.mb(Xe)):Ht("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==il&&Ht("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},hn.prototype.Ea=function(a){return this.undoManager.Ea(a)},hn.prototype.eb=function(a){return this.undoManager.eb(a)},hn.prototype.Kf=function(){return this.undoManager.Kf()},hn.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}},hn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},hn.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,ve=a.contentAlignment;isNaN(se)&&(ve.$c()?ve.Hf(Ru)?se=0:ve.Hf(Ws)&&(se=te-1):se=ve.sb()?ve.x*(te-1):te/2),isNaN(he)&&(ve.$c()?ve.Hf(Eu)?he=0:ve.Hf(dl)&&(he=ne-1):he=ve.sb()?ve.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),te=Lt.allocAt(a.pa.x+se/y-se/x,a.pa.y+he/y-he/x),a.position=te,Lt.free(te),a.Ca=x,lc(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Gl(a,!1),b.zb&&(ps(b)||b.ce.add(b.H,"scale",y,a.Ca))}}hn.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 ve=ne[he],Se=Math.abs(ve.interval);2>Se||(m0(ve.figure)?te=te*Se/tn.vx(te,Se):E=E*Se/tn.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=Lt.alloc(),tn.No(a,ne,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),qn.free(b),x.part.location=y,Lt.free(y)}}hn.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)}},hn.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))},hn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),bn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Nr||Ht("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||Ht("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},hn.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()}},at=hn.prototype,at.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},at.Jz=function(a){a=new On().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof Nr||Ht("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},at.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,te=Lt.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=te.h(x.x,E.y):y==="left"?this.position=te.h(E.x,x.y):y==="down"?this.position=te.h(x.x,E.bottom-x.height):y==="right"&&(this.position=te.h(E.right-x.width,x.y)),Lt.free(te);return}Ht("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):Ht("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Lt.free(te)},at.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)},at.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},at.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)},at.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,ve=y.m22,Se=y.dx,Be=y.dy,Xe=x*ne+b*he+Se;y=x*se+b*ve+Be;var tt=E*ne+b*he+Se;return a=E*se+b*ve+Be,b=x*ne+te*he+Se,x=x*se+te*ve+Be,ne=E*ne+te*he+Se,E=E*se+te*ve+Be,te=Math.min(Xe,tt),Xe=Math.max(Xe,tt),tt=Math.min(y,a),y=Math.max(y,a),te=Math.min(te,b),Xe=Math.max(Xe,b),tt=Math.min(tt,x),y=Math.max(y,x),te=Math.min(te,ne),Xe=Math.max(Xe,ne),tt=Math.min(tt,E),y=Math.max(y,E),new Mn(te,tt,Xe-te,y-tt)},at.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),ei(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 ho}hn.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;Nn(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 On&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function _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 On&&x.Bg.remove(a),mp(b));break}}}}}hn.prototype.Wd=function(){this.partManager.Wd()},hn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},hn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},hn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},hn.prototype.Vb=function(a){return this.partManager.Vb(a)},hn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},at=hn.prototype,at.Lc=function(a){return this.partManager.Lc(a)},at.ii=function(a){return this.partManager.ii(a)},at.Kc=function(a){return this.partManager.Kc(a)},at.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:Dn(ui(y)))},at.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:Dn(ui(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())}at.Va=function(){if(this.Zi){var a=Mn.alloc();$p(this,this.computeBounds(a)),Mn.free(a)}},at.rz=function(){for(var a=new On,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},at.qz=function(){return this.ai.iterator},at.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)}}at.yz=function(){for(var a=new Fn,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 Fn;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;Ht("Unknown DiagramEvent name: "+y)}at.Bj=function(a,y){return a=qf(this,a),a!==null&&a.add(y),this},at.am=function(a,y){a=qf(this,a),a!==null&&a.remove(y)},at.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}at.Yj=function(a,y){return tp(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},hn.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 ni)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)}hn.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=Nn(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))}hn.prototype.ug=function(){this.vk!==-1&&(Dt.clearTimeout(this.vk),this.vk=-1)},hn.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=Lt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var ne=Math.max(this.scrollHorizontalLineChange,1);ne|=0,te.x-=ne,a.x<b.x+x.left/2&&(te.x-=ne),a.x<b.x+x.left/4&&(te.x-=4*ne)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,te.x+=ne,a.x>b.x+b.width-x.right/2&&(te.x+=ne),a.x>b.x+b.width-x.right/4&&(te.x+=4*ne));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,te.y-=ne,a.y<b.y+x.top/2&&(te.y-=ne),a.y<b.y+x.top/4&&(te.y-=4*ne)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,te.y+=ne,a.y>b.y+b.height-x.bottom/2&&(te.y+=ne),a.y>b.y+b.height-x.bottom/4&&(te.y+=4*ne)),te.Xa(Li)||(y=new Lt(y.x+te.x/E,y.y+te.y/E)),Mn.free(b),Lt.free(te),y},at=hn.prototype,at.Cs=function(){return null},at.av=function(){return null},at.bs=function(a,y){this.pj.add(a,y)},at.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof ni&&(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-ve>he?y(x,E,se):Dt.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,ve=+new Date;return Dt.requestAnimationFrame(function(){b()}),null}at.Wz=function(a){return ia?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},at.Jx=function(a){return a===void 0&&(a={}),gf(this,this.Xz,a)},at.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"&&Ht('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"&&Ht("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,ve=y.padding===void 0?1:y.padding,Se=y.background||null,Be=y.omitTemporary;Be===void 0&&(Be=!0);var Xe=y.document||document,tt=y.elementFinished||null,rt=y.showTemporary;rt===void 0&&(rt=!Be),y=y.showGrid,y===void 0&&(y=rt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ve=="number"?ve=new kr(ve):ve instanceof kr||Ht("MakeImage padding must be a Margin or a number."),ve.left=Math.max(ve.left,0),ve.right=Math.max(ve.right,0),ve.top=Math.max(ve.top,0),ve.bottom=Math.max(ve.bottom,0),a.ib.Vc(!0),Be=new yu(null,Xe,void 0,!0);var ct=Be.context;if(!(E||te||he||se))return Be.width=a.Aa+Math.ceil(ve.left+ve.right),Be.height=a.ya+Math.ceil(ve.top+ve.bottom),x==="SVG"?b===null?null:(b.resize(Be.width,Be.height,Be.width,Be.height),b.ownerDocument=Xe,b.hs=tt,Fa(a,b.context,ve,new qn(Be.width,Be.height),a.Ca,a.pa,he,Se,rt,y),b.context):(a.Xm=!1,Fa(a,ct,ve,new qn(Be.width,Be.height),a.Ca,a.pa,he,Se,rt,y),a.Xm=!0,Be.context);var Nt=a.Pp,Mt=a.documentBounds.copy();if(Mt.Fv(a.yb),rt)for(var zt=a.Wa.s,Ut=zt.length,Yt=0;Yt<Ut;Yt++){var $t=zt[Yt];if($t.visible&&$t.isTemporary){$t=$t.Pa.s;for(var dn=$t.length,ir=0;ir<dn;ir++){var gr=$t[ir];gr.isInDocumentBounds&&gr.isVisible()&&(gr=gr.actualBounds,gr.w()&&Mt.ed(gr))}}}if(zt=new Lt(Mt.x,Mt.y),he!==null){for(Ut=new Mn(0,0,0,0),Yt=!0,$t=he.iterator,$t.reset();$t.next();)dn=$t.value,dn instanceof Nr&&(ir=dn.layer,ir!==null&&!ir.visible||ir!==null&&!rt&&ir.isTemporary||!dn.isVisible()||(dn=dn.actualBounds,dn.w()&&(Yt?(Yt=!1,Ut.assign(dn)):Ut.ed(dn))));Mt.width=Ut.width,Mt.height=Ut.height,zt.x=Ut.x,zt.y=Ut.y}return se!==null&&se.w()&&(zt=se,te||(te=Nt)),Ut=se=0,ve!==null&&(se=ve.left+ve.right,Ut=ve.top+ve.bottom),Yt=$t=0,E!==null&&($t=E.width,Yt=E.height,isFinite($t)&&($t=Math.max(0,$t-se)),isFinite(Yt)&&(Yt=Math.max(0,Yt-Ut))),E!==null&&te!==null?(te==="NaN"&&(te=Nt),E.w()?(E=$t,Mt=Yt):isNaN(Yt)?(E=$t,Mt=Mt.height*te):(E=Mt.width*te,Mt=Yt)):E!==null?E.w()?(te=Math.min($t/Mt.width,Yt/Mt.height),E=$t,Mt=Yt):isNaN(Yt)?(te=$t/Mt.width,E=$t,Mt=Mt.height*te):(te=Yt/Mt.height,E=Mt.width*te,Mt=Yt):te!==null?te==="NaN"&&ne.w()?(te=Math.min((ne.width-se)/Mt.width,(ne.height-Ut)/Mt.height),te>Nt?(te=Nt,E=Mt.width,Mt=Mt.height):(E=ne.width,Mt=ne.height)):(E=Mt.width*te,Mt=Mt.height*te):(te=Nt,E=Mt.width,Mt=Mt.height),ve!==null?(E+=se,Mt+=Ut):ve=new kr(0),ne!==null&&(Nt=ne.width,ne=ne.height,isNaN(Nt)&&(Nt=2e3),isNaN(ne)&&(ne=2e3),isFinite(Nt)&&(E=Math.min(E,Nt)),isFinite(ne)&&(Mt=Math.min(Mt,ne))),Be.width=Math.ceil(E),Be.height=Math.ceil(Mt),x==="SVG"?b===null?null:(b.resize(Be.width,Be.height,Be.width,Be.height),b.ownerDocument=Xe,b.hs=tt,Fa(a,b.context,ve,new qn(Math.ceil(E),Math.ceil(Mt)),te,zt,he,Se,rt,y),b.context):(a.Xm=!1,Fa(a,ct,ve,new qn(Math.ceil(E),Math.ceil(Mt)),te,zt,he,Se,rt,y),a.Xm=!0,Be.context)}Pt.Object.defineProperties(hn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Re||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new uc(this,Dt.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,Dt.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(Dt,"resize",this.Ov,!1),this.removeEventListener(Dt,"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",hn,"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",hn,"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",hn,"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",hn,"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&&Ht("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(Dt,"pointermove",this.dk,!0),this.addEventListener(Dt,"pointerdown",this.ui,!0),this.addEventListener(Dt,"pointerup",this.fk,!0),this.addEventListener(Dt,"pointerout",this.ek,!0),this.addEventListener(Dt,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Dt,"wheel",this.$j,!0),this.addEventListener(Dt,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Dt,"pointermove",this.dk,!0),this.removeEventListener(Dt,"pointerdown",this.ui,!0),this.removeEventListener(Dt,"pointerup",this.fk,!0),this.removeEventListener(Dt,"pointerout",this.ek,!0),this.removeEventListener(Dt,"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(Dt,"wheel",this.$j,!0),this.removeEventListener(Dt,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=Lt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),gs(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?lc(this):(this.vb=!0,a=this.scale,pf(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Lt.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=df(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=df(this)),a.type!==Xn.Grid&&Ht("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||Ht("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()||Ht("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()||Ht("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",hn,"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",hn,"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&&Ht("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&&Ht("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))}}}),Pt.Object.defineProperties(hn,{licenseKey:{get:function(){return sg.jc()},set:function(a){sg.add(a.replace(/\s/g,""))}},version:{get:function(){return Rd}}}),hn.prototype.makeImageData=hn.prototype.Jx,hn.prototype.makeImage=hn.prototype.Wz,hn.prototype.cacheGroupExternalLinks=hn.prototype.Fu,hn.prototype.addRenderer=hn.prototype.bs,hn.prototype.makeSVG=hn.prototype.av,hn.prototype.makeSvg=hn.prototype.Cs,hn.prototype.stopAutoScroll=hn.prototype.ug,hn.prototype.doAutoScroll=hn.prototype.gs,hn.prototype.isUnoccupied=hn.prototype.Yj,hn.prototype.raiseDiagramEvent=hn.prototype.R,hn.prototype.removeDiagramListener=hn.prototype.am,hn.prototype.addDiagramListener=hn.prototype.Bj,hn.prototype.findTreeRoots=hn.prototype.yz,hn.prototype.layoutDiagram=hn.prototype.Uz,hn.prototype.findTopLevelGroups=hn.prototype.qz,hn.prototype.findTopLevelNodesAndLinks=hn.prototype.rz,hn.prototype.ensureBounds=hn.prototype.Va,hn.prototype.findLinksByExample=hn.prototype.ls,hn.prototype.findNodesByExample=hn.prototype.ms,hn.prototype.findLinkForData=hn.prototype.Kc,hn.prototype.findNodeForData=hn.prototype.ii,hn.prototype.findPartForData=hn.prototype.Lc,hn.prototype.findLinkForKey=hn.prototype.findLinkForKey,hn.prototype.findNodeForKey=hn.prototype.Vb,hn.prototype.findPartForKey=hn.prototype.findPartForKey,hn.prototype.rebuildParts=hn.prototype.Wd,hn.prototype.transformViewToDoc=hn.prototype.Ps,hn.prototype.transformRectDocToView=hn.prototype.zA,hn.prototype.transformDocToView=hn.prototype.op,hn.prototype.centerRect=hn.prototype.es,hn.prototype.scrollToRect=hn.prototype.tv,hn.prototype.scroll=hn.prototype.scroll,hn.prototype.highlightCollection=hn.prototype.Jz,hn.prototype.highlight=hn.prototype.Iz,hn.prototype.selectCollection=hn.prototype.rA,hn.prototype.select=hn.prototype.select,hn.prototype.updateAllRelationshipsFromData=hn.prototype.rp,hn.prototype.updateAllTargetBindings=hn.prototype.updateAllTargetBindings,hn.prototype.commit=hn.prototype.commit,hn.prototype.rollbackTransaction=hn.prototype.Kf,hn.prototype.commitTransaction=hn.prototype.eb,hn.prototype.startTransaction=hn.prototype.Ea,hn.prototype.raiseChanged=hn.prototype.g,hn.prototype.raiseChangedEvent=hn.prototype.cb,hn.prototype.removeChangedListener=hn.prototype.ik,hn.prototype.addChangedListener=hn.prototype.Pe,hn.prototype.removeModelChangedListener=hn.prototype.mA,hn.prototype.addModelChangedListener=hn.prototype.Yw,hn.prototype.findLayer=hn.prototype.Qj,hn.prototype.removeLayer=hn.prototype.kA,hn.prototype.addLayerAfter=hn.prototype.Cy,hn.prototype.addLayerBefore=hn.prototype.Ww,hn.prototype.addLayer=hn.prototype.Al,hn.prototype.moveParts=hn.prototype.moveParts,hn.prototype.copyParts=hn.prototype.Kj,hn.prototype.removeParts=hn.prototype.Is,hn.prototype.remove=hn.prototype.remove,hn.prototype.add=hn.prototype.add,hn.prototype.clearDelayedGeometries=hn.prototype.bx,hn.prototype.setProperties=hn.prototype.nm,hn.prototype.attach=hn.prototype.Du,hn.prototype.set=hn.prototype.set,hn.prototype.resetInputOptions=hn.prototype.Sx,hn.prototype.setInputOption=hn.prototype.sA,hn.prototype.getInputOption=hn.prototype.Ql,hn.prototype.resetRenderingHints=hn.prototype.Tx,hn.prototype.setRenderingHint=hn.prototype.Xx,hn.prototype.getRenderingHint=hn.prototype.Gf,hn.prototype.maybeUpdate=hn.prototype.bd,hn.prototype.requestUpdate=hn.prototype.$b,hn.prototype.delayInitialization=hn.prototype.Xy,hn.prototype.isUpdateRequested=hn.prototype.Pz,hn.prototype.invalidateDocumentBounds=hn.prototype.Ya,hn.prototype.findObjectsNear=hn.prototype.og,hn.prototype.findPartsNear=hn.prototype.mz,hn.prototype.findObjectsIn=hn.prototype.Cf,hn.prototype.findPartsIn=hn.prototype.ux,hn.prototype.findObjectsAt=hn.prototype.ji,hn.prototype.findPartsAt=hn.prototype.lz,hn.prototype.findObjectAt=hn.prototype.ic,hn.prototype.findPartAt=hn.prototype.Ol,hn.prototype.focusObject=hn.prototype.zz,hn.prototype.alignDocument=hn.prototype.Jy,hn.prototype.zoomToRect=hn.prototype.BA,hn.prototype.zoomToFit=hn.prototype.zoomToFit,hn.prototype.diagramScroll=hn.prototype.kx,hn.prototype.focus=hn.prototype.focus;var rp=new pr,cm=null,ia=Dt.document!==void 0,jd=null,_h="",Bs=new Sn(hn,"None",0),Kl=new Sn(hn,"Uniform",1),$h=new Sn(hn,"UniformToFill",2),mf=new Sn(hn,"CycleAll",10),ng=new Sn(hn,"CycleNotDirected",11),rg=new Sn(hn,"CycleNotDirectedFast",12),ig=new Sn(hn,"CycleNotUndirected",13),og=new Sn(hn,"CycleDestinationTree",14),ag=new Sn(hn,"CycleSourceTree",15),xh=new Sn(hn,"DocumentScroll",1),vf=new Sn(hn,"InfiniteScroll",2),wh=new Sn(hn,"TreeParentCollapsed",21),Ba=new Sn(hn,"AllParentsCollapsed",22),ip=new Sn(hn,"AnyParentsCollapsed",23),sg=new Fn,Rd="2.3.10",zd="image",yf=null,hm=!1;function Ts(){if(ia){var a=Dt.document.createElement("canvas"),y=a.getContext("2d"),x=mn("7ca11abfd022028846");y[x]=mn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",cn.Dx+"4ae6247590da4bb21c324ba3a84e385776",mi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",tn.za],E=1;5>E;E++)y[mn("7ca11abfd7330390")](mn(b[E-1]),10,15*E);for(y[x]=mn("39f046ebb36e4b"),x=1;5>x;x++)y[mn("7ca11abfd7330390")](mn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(mi.prototype.Cd=mi.prototype.Eu),yf=a}}hn.className="Diagram",hn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Dt.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof hn?y.H:null},hn.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},hn.useDOM=function(a){ia=a?Dt.document!==void 0:!1},hn.isUsingDOM=function(){return ia},hn.None=Bs,hn.Uniform=Kl,hn.UniformToFill=$h,hn.CycleAll=mf,hn.CycleNotDirected=ng,hn.CycleNotDirectedFast=rg,hn.CycleNotUndirected=ig,hn.CycleDestinationTree=og,hn.CycleSourceTree=ag,hn.DocumentScroll=xh,hn.InfiniteScroll=vf,hn.TreeParentCollapsed=wh,hn.AllParentsCollapsed=Ba,hn.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=Dt[mn("76a715b2f73f148a")][mn("72ba13b5")]||"";if(a.Rc=!0,ia){var b=hn[mn("76a115b6ed251eaf4692")];if(b)for(var E=sg.iterator;E.next()&&(b=E.value,b=mn(b).split(mn("39e9")),!(6>b.length));){var te=mn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ne=mn(cn[mn("6cae19")]).split(".");if(te[0]>ne[0]||te[0]===ne[0]&&te[1]>=ne[1]){var se=Dt[mn("74a900bae4370f8b51")][mn("6fbb13a1c2311e8a57")].toLowerCase();if(ne=se[mn("73a612b6fb191d")](mn("3aad1ab6e022098b4dc4")),te=mn(b[2]),-1<ne&&(se=se[mn("73a612b6fb191d")](te.toLowerCase()+"/"),a.Rc=!(-1<se&&se<ne),!a.Rc))break;for(ne=x[mn("76ad18b4f73e")],se=x[mn("73a612b6fb191d")](mn("35e7"))+2;se<ne;se++)y+=x[se];if(ne=y[mn("73a612b6fb191d")](te),0>ne&&te!==mn("7da71ca0ad381e90")&&(ne=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>ne&&(ne=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>ne&&(ne=y[mn("73a612b6fb191d")](mn("2bfa41fdb3784bca12"))),0>ne&&(ne=x[mn("73a612b6fb191d")](mn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[mn("73a612b6fb191d")](mn("35"))||y[mn("73a612b6fb191d")](mn("35"))===-1),!a.Rc||x[mn("73a612b6fb191d")](mn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[mn("73a612b6fb191d")](te)),!a.Rc)||(ne=Dt[mn("76a715b2f73f148a")][mn("69ad17a1e03e")],se=ne[mn("73a612b6fb191d")](mn("7fb002b6ed25128b4da25b2e")),-1<se&&(a.Rc=!(ne[mn("73a612b6fb191d")](te)>se),!a.Rc)))break;if(te[0]==="#"){ne=Dt.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[mn("79a417a0f0181a8946")]=b,Dt.document[mn("78a712aa")]){Dt.document[mn("78a712aa")][mn("7bb806b6ed32388c4a875b")](ne),he=Dt.getComputedStyle(ne).getPropertyValue(mn("78a704b7e62456904c9b12701b6532a8"));var ve=Dt.getComputedStyle(ne).getPropertyValue(mn("75b817b0ea2202"));if(Dt.document[mn("78a712aa")][mn("68ad1bbcf533388c4a875b")](ne),he){if(ne=Dt[mn("77a902b0eb1b1e804a8a")],ve==="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(mn("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[mn("76ad18b4f73e")],E=x[mn("73a612b6fb191d")](mn("35e7"))+2;E<Se;E++)y+=x[E];x=y[mn("73a612b6fb191d")](mn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[mn("73a612b6fb191d")](mn("35")))}}}return 0<a.Rc&&a!==a.wy}dm.className="DiagramHelper";function $c(a){this.j=a===void 0?new Lt:a,this.o=new Lt}Pt.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 Lt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},de.className="DraggingOptions";function ke(a,y){if(typeof a=="string"||Dt.Element&&a instanceof Element)var x=hn.call(this,a)||this;else x=hn.call(this)||this,y=a;return Te(x),y&&x.nm(y),x}Gt(ke,hn);function Te(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Cl,a.layout=new ds}ke.prototype.reset=function(){hn.prototype.reset.call(this),Te(this)},ke.className="Palette";function Re(a,y){if(typeof a=="string"||Dt.Element&&a instanceof Element)var x=hn.call(this,a)||this;else x=hn.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 gi;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 Bt,x.toolManager.mouseMoveTools),x.click=function(){var te=b.observed;if(te!==null){var ne=te.viewportBounds,se=b.lastInput.documentPoint;te.position=new Lt(se.x-ne.width/2,se.y-ne.height/2)}},x.Pf=function(){b.Ya(),Ct(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&&Ct(b)},x.autoScale=Kl,x.vb=!1,y&&Object.assign(x,y),x}Gt(Re,hn),Re.prototype.computePixelRatio=function(){return 1},Re.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(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),st(this)}finally{this.ta=a,this.ib=y}}}hn.prototype.redraw.call(this)},Re.prototype.gc=function(){if(this.Ka===null&&Ht("No div specified"),this.ta===null&&Ht("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?st(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function st(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=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 ve=se.diagram.grid.part;if(!x&&se.isTemporary)b&&ve.layer===se&&(se=vs(se,E),ve.gc(E,he),E.globalAlpha=se);else{for(var Se=vs(se,E),Be=he.scale,Xe=Mn.alloc(),tt=se.Pa.s,rt=tt.length,ct=0;ct<rt;ct++){var Nt=tt[ct];(b||Nt!==ve)&&se.Oj(E,Nt,he,null,Be,Xe,!1)}Mn.free(Xe),E.globalAlpha=Se}}}}}function Ct(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 gi&&(b.strokeWidth=a),y.location=new Lt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Re.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Ci;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Re.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Re.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Ct(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))},Pt.Object.defineProperties(Re.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Re&&Ht("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),Ct(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),Ct(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),Re.className="Overview";function Bt(){Jo.call(this),this.j=null}Gt(Bt,Jo),Bt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Lt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Lt(a.x-this.j.x,a.y-this.j.y)),!0)},Bt.prototype.doActivate=function(){this.j=null,Jo.prototype.doActivate.call(this)},Bt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Bt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new Lt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Lt(a.x-this.j.x,a.y-this.j.y)}}},Bt.className="OverviewDraggingTool";function kt(){pi(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}kt.prototype.toString=function(){return"CommandHandler"},kt.prototype.Xe=function(a){this.H=a},kt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Ur?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()},kt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},kt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Wo&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},kt.prototype.canStopCommand=function(){return!0},kt.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=""}},kt.prototype.canSelectAll=function(){return this.diagram.allowSelect},kt.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new On,x=a.selection.iterator;x.next();)nd(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},kt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},kt.prototype.copySelection=function(){var a=this.diagram,y=new On;for(a=a.selection.iterator;a.next();)nd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},kt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},kt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},kt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},kt.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 Fn,x.addAll(te),jd=x,_h=y.model.dataFormat}}y.R("ClipboardChanged",x)},kt.prototype.pasteFromClipboard=function(){var a=new On,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},kt.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var te=this.computeEffectiveCollection(y.selection,y.Wm);ac(y,te,new Lt(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},kt.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)},kt.prototype.undo=function(){this.diagram.undoManager.undo()},kt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},kt.prototype.redo=function(){this.diagram.undoManager.redo()},kt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},kt.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))},kt.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)},kt.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))},kt.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)},kt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},kt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},kt.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)},kt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},kt.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=Jt(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 ni)||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 ni&&!he.isSubGraphExpanded&&(he.isSubGraphExpanded=!0)):(he instanceof Nr&&y.es(he.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){Nn(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 Jt(a,y,x){if(y.isVisible())return x;if(y instanceof Ki)Jt(a,y.adornedPart,x);else if(y instanceof _n){var b=y.fromNode;b!==null&&Jt(a,b,x),y=y.toNode,y!==null&&Jt(a,y,x)}else y instanceof sr&&(b=y.labeledLink,b!==null&&Jt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Jt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Jt(a,y,x));return x}kt.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)},kt.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 Fn;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")}},kt.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},kt.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 Fn;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")}},kt.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},kt.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 Fn,te=a.selection.iterator;te.next();){var ne=te.value;ne.Zc()&&ne.canGroup()&&E.add(ne)}for(var se=new Fn,he=E.iterator;he.next();){var ve=he.value;te=!1;for(var Se=E.iterator;Se.next();)if(ve.Td(Se.value)){te=!0;break}te||se.add(ve)}if(0<se.count){var Be=se.first().containingGroup;if(Be!==null)for(;Be!==null;){E=!1;for(var Xe=se.iterator;Xe.next();)if(!Xe.value.Td(Be)){E=!0;break}if(E)Be=Be.containingGroup;else break}if(x instanceof ni)Su(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var tt=y.copyNodeData(x);rn(tt)&&(y.xf(tt),b=a.ii(tt))}if(b!==null){Be!==null&&this.isValidMember(Be,b)&&(b.containingGroup=Be);for(var rt=se.iterator;rt.next();){var ct=rt.value;this.isValidMember(b,ct)&&(ct.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},kt.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=yn();for(a=a.iterator;a.next();){var x=a.value;x instanceof _n||y.push(x)}a=new On,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],te=!0,ne=0;ne<x;ne++)if(E.Td(y[ne])){te=!1;break}te&&a.add(E)}return Ln(y),a}kt.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},kt.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 Fn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var te=E.value;te instanceof ni&&te.canUngroup()&&b.add(te)}var ne=new Fn;if(0<b.count){y.clearSelection(!0);for(var se=b.iterator;se.next();){var he=se.value;he.expandSubGraph();var ve=he.containingGroup,Se=ve!==null&&ve.data!==null?x.wa(ve.data):void 0;ne.addAll(he.memberParts);for(var Be=ne.iterator;Be.next();){var Xe=Be.value;if(Xe.isSelected=!0,!(Xe instanceof _n)){var tt=Xe.data;tt!==null?x.mp(tt,Se):Xe.containingGroup=ve}}y.remove(he)}}y.R("SelectionUngrouped",b,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},kt.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 ni))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ni&&y.canUngroup())return!0;return!1},kt.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},kt.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 Fn;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 ni&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},kt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof ni&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ni&&y.isSubGraphExpanded)return!0;return!1},kt.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 Fn;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 ni&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},kt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof ni&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ni&&!y.isSubGraphExpanded)return!0;return!1},kt.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)}},kt.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},kt.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 qt?E=a.ga(Ri):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Lt(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,Co(x,!1,a)}},kt.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)},kt.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},Pt.Object.defineProperties(kt.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||Ht("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}}}),kt.className="CommandHandler",Qc=function(){return new kt};function qt(){pi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Lt(NaN,NaN).freeze(),this.jd=ko,this.Ab=new mi,this.wh=new mi,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=oo,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Vn,zn,yr,Lr,Hr,oi,Fi,xi,Wi,So;qt.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=nn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},qt.prototype.Vw=function(a){var y=this.Dh;if(bn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},qt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},qt.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},qt.prototype.copy=function(){return this.clone()},at=qt.prototype,at.qb=function(a){a.classType===_n?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Ht("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===qt&&(this.stretch=a)},at.toString=function(){return Tn(this.constructor)+"#"+Qr(this)},at.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())}at.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}},at.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)&&Bo(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 Bo(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))}}at.ks=function(a){return this.bindingId===a?this:null},at.g=function(a,y,x){this.cb(Ko,a,this,y,x)},at.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 mi);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))}at.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Ji(a.x,a.y,0,0,0,b.height)<=y||Ji(a.x,a.y,0,b.height,b.width,b.height)<=y||Ji(a.x,a.y,b.width,b.height,b.width,0)<=y||Ji(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},at.se=function(){return!0},at.ca=function(a){var y=Lt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Lt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),te=b.Ql("extraTouchArea"),ne=te/2,se=this.naturalBounds;b=this.Df()*b.scale;var he=1/b;if(se.width*b<E&&se.height*b<E)return a=Io(x.x-ne*he,x.y-ne*he,x.width+te*he,x.height+te*he,y.x,y.y),Lt.free(y),a}return E=!1,(this instanceof Ki||this instanceof gi?Io(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Lt.free(y),E},at.gh=function(a){var y=this.naturalBounds;return Io(0,0,y.width,y.height,a.x,a.y)},at.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=Lt.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),Lt.free(E),Mn.free(y),b},at.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Lt.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),Lt.free(E),b},at.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Lt.allocAt(0,0),E=Lt.allocAt(0,x.height),te=Lt.allocAt(x.width,x.height),ne=Lt.allocAt(x.width,0),se=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(te))||a.ca(y.Ga(ne)))se=!0;else{x=Mn.allocAt(0,0,x.width,x.height);var he=Lt.allocAt(a.x,a.y);x.ca(y.Cd(he))?se=!0:(he.h(a.x,a.bottom),x.ca(y.Cd(he))?se=!0:(he.h(a.right,a.bottom),x.ca(y.Cd(he))?se=!0:(he.h(a.right,a.y),x.ca(y.Cd(he))&&(se=!0)))),Lt.free(he),Mn.free(x),!se&&(tn.us(a,b,E)||tn.us(a,E,te)||tn.us(a,te,ne)||tn.us(a,ne,b))&&(se=!0)}return Lt.free(b),Lt.free(E),Lt.free(te),Lt.free(ne),se},at.ga=function(a,y){if(y===void 0&&(y=new Lt),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},at.mi=function(a){a===void 0&&(a=new Mn);var y=this.naturalBounds,x=this.oe,b=Lt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),$i(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),$i(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),$i(a,b.x,b.y,0,0),Lt.free(b),a},at.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},at.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},at.qs=function(a,y){return y===void 0&&(y=new Lt),y.assign(a),this.oe.Cd(y),y},at.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},at.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,ve=-te.m21*ne,Se=te.m11*ne,Be=ne*(te.m21*te.dy-te.m22*te.dx),Xe=ne*(te.m12*te.dx-te.m11*te.dy);return this.areaBackground!==null?(te=this.actualBounds,tn.Ff(te.left,te.top,te.right,te.bottom,a,y,x,b,E)):(ne=a*se+y*ve+Be,a=a*he+y*Se+Xe,y=x*se+b*ve+Be,x=x*he+b*Se+Xe,E.h(0,0),b=this.naturalBounds,x=tn.Ff(0,0,b.width,b.height,ne,a,y,x,E),E.transform(te),x)},qt.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 zn: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 Lr:isFinite(a)&&a>x&&(E=a),ne=0,se&&(y=1/0);break;case Hr: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()||Ht("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ia(this,!1)}},qt.prototype.Wl=function(){},qt.prototype.Dd=function(){return!1},qt.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()||Ht("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(te,this.Ib),Mc(this,!1),Mn.free(te)},at=qt.prototype,at.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=zn),y){case zn:(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 Lr:Ia(a,!0),a.measure(b,te,0,0);break;case Hr:Ia(a,!0),a.measure(x,E,0,0)}}}at.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)))},at.Pn=function(a){this.portId!==null&&(z0(a,!0),a instanceof sr&&Z1(a,this))},at.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,ve=this.areaBackground,Se=this.Ma;ve===null&&Se===null||a.yc(),ve!==null&&(sa(this,a,ve,!0,!0,he,se),ve instanceof uo&&ve.type===su?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(ve)):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),ve=this.part,he=!1;var Be=0;ve&&y.Gf("drawShadows")&&(he=ve.isShadowed)&&(Se=ve.shadowOffset,Be=Math.max(Se.y,Se.x)*y.scale*y.Mb),Se=this.Dd();var Xe;if(!(Xe=y.$i||!Se)){var tt=this.naturalBounds;Xe=this.wh;var rt=Xe.m11,ct=Xe.m21,Nt=Xe.dx,Mt=Xe.m12,zt=Xe.m22,Ut=Xe.dy,Yt,$t=Yt=0;Xe=Yt*rt+$t*ct+Nt;var dn=Yt*Mt+$t*zt+Ut;Yt=tt.width+Be,$t=0;var ir=Yt*rt+$t*ct+Nt;Yt=Yt*Mt+$t*zt+Ut,$t=Math.min(Xe,ir);var gr=Math.min(dn,Yt),hr=Math.max(Xe+0,ir)-$t,Qn=Math.max(dn+0,Yt)-gr;Xe=$t,dn=gr,Yt=tt.width+Be,$t=tt.height+Be,ir=Yt*rt+$t*ct+Nt,Yt=Yt*Mt+$t*zt+Ut,$t=Math.min(Xe,ir),gr=Math.min(dn,Yt),hr=Math.max(Xe+hr,ir)-$t,Qn=Math.max(dn+Qn,Yt)-gr,Xe=$t,dn=gr,Yt=0,$t=tt.height+Be,ir=Yt*rt+$t*ct+Nt,Yt=Yt*Mt+$t*zt+Ut,$t=Math.min(Xe,ir),gr=Math.min(dn,Yt),hr=Math.max(Xe+hr,ir)-$t,Qn=Math.max(dn+Qn,Yt)-gr,Xe=$t,dn=gr,Be=y.viewportBounds,tt=Be.x,rt=Be.y,Xe=!(Xe>Be.width+tt||tt>hr+Xe||dn>Be.height+rt||rt>Qn+dn)}if(Xe){if(Xe=(this.l&256)!==0,a.clipInsteadOfFill&&(Xe=!1),this instanceof Lo&&(a.font=this.font),Xe){if(dn=se.se()?se.naturalBounds:se.actualBounds,hr=Math.max(ne.x,dn.x),Qn=Math.max(ne.y,dn.y),Be=Math.min(ne.right,dn.right)-hr,tt=Math.min(ne.bottom,dn.bottom)-Qn,rt=this.tb,rt!==null&&(hr=rt.x,Qn=rt.y,Be=rt.width,tt=rt.height),hr>ne.width+ne.x||ne.x>dn.width+dn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(hr,Qn,Be,tt),a.clip()}if(Se){if(!ve.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}he&&(dn=ve.shadowOffset,a.Ev(dn.x*y.scale*this.scale*y.Mb,dn.y*y.scale*this.scale*y.Mb,ve.shadowBlur),qc(a),a.shadowColor=ve.shadowColor)}he&&this.shadowVisible===!0?qc(a):he&&this.shadowVisible===!1&&Lc(a),ve=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Vl(this,a,ve,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,ve,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),Xe&&(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)}at.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 ve=ne.copy().Vj();y.rb.ha=[ve.m11,ve.m12,ve.m21,ve.m22,ve.dx,ve.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&&(ve=x.computePixelRatio(),ve="drop-shadow("+y.shadowOffsetX/ve+"px "+y.shadowOffsetY/ve+"px "+y.shadowBlur/ve/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",ve),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",ve)),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,ve=a.svg,!te&&ve!==null&&se!==ve&&ve.parentNode===a.panel.svg?(a.svg.replaceWith(se),a.svg=se,se!==null&&a.$o(y,b,he,se),al(y,ve),!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)}at.$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=ui(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()}}at.hh=function(){},at.lv=function(){this.Uc=!0},at.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 gi){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},at.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 ve=a.kq();if(se=te.width,he=te.height,E?(se=ne.width,he=ne.height):b||(se+=ve,he+=ve),(te=y instanceof Gd)&&x.xe&&(x.type===hp||x.yk===se&&x.ft===he))var Se=x.xe;else{var Be=0,Xe=0,tt=0,rt=0,ct=0,Nt=0;if(Nt=ct=0,E?(ct=ne.x,Nt=ne.y):b||(ct-=ve/2,Nt-=ve/2),Be=x.start.x*se+x.start.offsetX,Xe=x.start.y*he+x.start.offsetY,tt=x.end.x*se+x.end.offsetX,rt=x.end.y*he+x.end.offsetY,Be+=ct,tt+=ct,Xe+=Nt,rt+=Nt,x.type===th)Se=y.createLinearGradient(Be,Xe,tt,rt);else if(x.type===su)Nt=isNaN(x.endRadius)?Math.max(se,he)/2:x.endRadius,isNaN(x.startRadius)?(ct=0,Nt=Math.max(se,he)/2):ct=x.startRadius,Se=y.createRadialGradient(Be,Xe,ct,tt,rt,Nt);else if(x.type===hp)try{Se=y.createPattern(x.pattern,"repeat")}catch(zt){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 Mt=a.diagram;Mt!==null&&x.yk===-1&&Nn(function(){Mt.redraw()},600)}}b?y.fillStyle=Se:y.strokeStyle=Se}}}at.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},at.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},at.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)))}at.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=Lt.alloc();te.yi(y,x,b,E,Ri),a.rotate(this.Kb,te.x,te.y),Lt.free(te)}},at.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()}},at.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)}}at.Uk=function(){!(this.l&2048)&&(vu(this,!0),ou(this,!0))},at.Wu=function(){ou(this,!0)},at.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===oi?b!==null?b.type===Xn.Spot&&b.Pb()===a?as(a,Vn,y):(x=b.defaultStretch,x===oi?as(a,zn,y):as(a,x,y)):as(a,zn,y):as(a,x,y)}function Yu(a,y,x,b){var E=a.stretch;if(E!==oi)return as(a,E,b);var te=E=null;switch(y.stretch){case Hr:te=!0;break;case Vn:te=!0}switch(x.stretch){case Lr:E=!0;break;case Vn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Lr||y===Vn),te===null&&(te=y===Hr||y===Vn),E===!0&&te===!0?as(a,Vn,b):E===!0?as(a,Lr,b):te===!0?as(a,Hr,b):as(a,zn,b)}function as(a,y,x){if(x)return y;if(y===zn||(x=a.desiredSize,x.w()))return zn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Lr)return zn;if(y===Vn)return Hr}else{if(y===Hr)return zn;if(y===Vn)return Lr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Hr)return zn;if(y===Vn)return Lr}else{if(y===Lr)return zn;if(y===Vn)return Hr}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}at.Gj=function(){this.svg=null},at.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},at.Av=function(){},at.zv=function(a){return this.pa=a,Gs(this),!0},at.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},at.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))}at.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)&&Ht("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Fn),this.localBindings.add(E),this},at.set=function(a){return Object.assign(this,a),this},at.Du=function(a){return r0(this,a),this},at.apply=function(a){return a(this),this},at.nm=function(a){return nu(this,a),this},at.pz=function(){return this.ih()},at.ih=function(){for(var a=this instanceof Xn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},at.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=nn(arguments),b=te(x),rn(b)||Ht('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Dt.go[a]}if(b===null&&(E!=null&&E.constructor||Ht("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 hn&&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?Ht("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 gi)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:Ht("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 Gi&&(y=Yn(Gi,y),y!==null&&(a.type=y));else if(y instanceof qt)a instanceof Xn||Ht("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):Ht("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Sn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ka)a.type=y;else if(y instanceof Pa)a instanceof qt||a instanceof ja?a.bind(y):Ht("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Al)a instanceof qt?a.Jv(y):Ht("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):Ht("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Gi)a instanceof Ga?a.segments.add(y):Ht("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Go)a instanceof hn||a instanceof ni?a.layout=y:Ht("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)&&Ht("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)&&Ht("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 Ht('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}Pt.Object.defineProperties(qt.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:oi},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",qt,"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 Lt(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Ht("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 gi&&this.qc(),this.g("desiredSize",b,a),ys(this)&&(a=this.part,a!==null&&(Bo(this,a,"width"),Bo(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 gi&&this.qc(),this.g("desiredSize",y,a),ys(this)&&(a=this.part,a!==null&&Bo(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 gi&&this.qc(),this.g("desiredSize",y,a),ys(this)&&(a=this.part,a!==null&&Bo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ci},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:Oo},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:zn},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()&&Ht("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",qt,"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",qt,"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",qt,"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",qt,"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||Ht("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",qt,"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",qt,"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",qt,"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",qt,"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))}}}),qt.prototype.trigger=qt.prototype.Jv,qt.prototype.findBindingPanel=qt.prototype.ih,qt.prototype.findTemplateBinder=qt.prototype.pz,qt.prototype.setProperties=qt.prototype.nm,qt.prototype.apply=qt.prototype.apply,qt.prototype.attach=qt.prototype.Du,qt.prototype.set=qt.prototype.set,qt.prototype.isEnabledObject=qt.prototype.If,qt.prototype.isVisibleObject=qt.prototype.Ed,qt.prototype.isContainedBy=qt.prototype.rg,qt.prototype.getNearestIntersectionPoint=qt.prototype.rs,qt.prototype.getLocalPoint=qt.prototype.qs,qt.prototype.getDocumentScale=qt.prototype.Df,qt.prototype.getDocumentAngle=qt.prototype.li,qt.prototype.getDocumentBounds=qt.prototype.mi,qt.prototype.getDocumentPoint=qt.prototype.ga,qt.prototype.intersectsRect=qt.prototype.Yc,qt.prototype.containedInRect=qt.prototype.fh,qt.prototype.containsRect=qt.prototype.Re,qt.prototype.containsPoint=qt.prototype.ca,qt.prototype.raiseChanged=qt.prototype.g,qt.prototype.raiseChangedEvent=qt.prototype.cb,qt.prototype.addCopyProperty=qt.prototype.Vw;var op=null;qt.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(gi,{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 gi)){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 gi&&(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 gi){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 gi){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 gi){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 gi))){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(gi,{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 Ki&&(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(gi,{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 Ki&&(x=x.adornedPart),x instanceof ni){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(Ki,Xn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Lt(0,3),shadowBlur:5},au(gi,{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(Ki,Xn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Lt(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=Lr;var y=a.fb("ButtonBorder");return y instanceof gi&&(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(gi,{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 gi&&(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(gi,{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}),qt.None=zn=new Sn(qt,"None",0),qt.Default=oi=new Sn(qt,"Default",0),qt.Vertical=Hr=new Sn(qt,"Vertical",4),qt.Horizontal=Lr=new Sn(qt,"Horizontal",5),qt.Fill=Vn=new Sn(qt,"Fill",3),qt.Uniform=yr=new Sn(qt,"Uniform",1),qt.UniformToFill=Fi=new Sn(qt,"UniformToFill",2),qt.FlipVertical=xi=new Sn(qt,"FlipVertical",1),qt.FlipHorizontal=Wi=new Sn(qt,"FlipHorizontal",2),qt.FlipBoth=So=new Sn(qt,"FlipBoth",3),qt.make=au,qt.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},qt.defineBuilder=bh,qt.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 qt))return y&&b.set(y),b;Ht('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},qt.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=ci,this.o=Oo,this.hg=oi,this.ob=this.Bi=1,this.Pf=zn,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=oo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}lg.prototype.copy=function(){var a=new lg;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},lg.className="LinkSettings";function 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?Dt.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),rn(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},Pt.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+")")}at=Ml.prototype,at.arc=function(a,y,x,b,E,te,ne,se){var he=2*Math.PI,ve=he-1e-6,Se=x*Math.cos(b),Be=x*Math.sin(b),Xe=a+Se,tt=y+Be,rt=te?0:1;b=te?b-E:E-b,(1e-6<Math.abs(ne-Xe)||1e-6<Math.abs(se-tt))&&this.path.push(["L",Xe,+tt]),0>b&&(b=b%he+he),b>ve?(this.path.push(["A",x,x,0,1,rt,a-Se,y-Be]),this.path.push(["A",x,x,0,1,rt,Xe,tt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),rt,a+x*Math.cos(E),y+x*Math.sin(E)])},at.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},at.Se=function(a){this.addPath(this.path,this.rb,a||0)},at.bezierCurveTo=function(a,y,x,b,E,te){this.path.push(["C",a,y,x,b,E,te])},at.clearRect=function(){},at.clip=function(){this.Yl.clipPath=!0},at.closePath=function(){this.path.push(["z"])},at.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},at.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+")"},at.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)}at.drawImage=function(a,y,x,b,E,te,ne,se,he){var ve="";a instanceof HTMLCanvasElement&&(ve=a.toDataURL()),a instanceof HTMLImageElement&&(ve=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:ve},tn.$(b,se)&&tn.$(E,he)?ve.toLowerCase().indexOf(".svg")===-1&&ve.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)},at.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),i0(this,this.Yl)},at.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},at.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)},at.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))},at.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])},at.lineTo=function(a,y){this.path.push(["L",a,y])},at.moveTo=function(a,y){this.path.push(["M",a,y])},at.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},at.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"])},at.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},at.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())},at.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]+")"}at.scale=function(a,y){this.rb.scale(a,y)},at.translate=function(a,y){this.rb.translate(a,y)},at.transform=function(){},at.yc=function(){},at.stroke=function(){qy(this,this.Yl)},at.jk=function(){this.clipInsteadOfFill||this.stroke()},at.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},at.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(ve,Se){return ve.offset>Se.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",te[E]));return a.svg.appendChild(x),"url(#"+b+")"}at.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var te=nn(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}at.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}at.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},at.fs=function(){this.Ct=!1},at.Vc=function(){},at.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",hn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new uc(this,Dt.document));var y=new uc(this,Dt.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)},hn.prototype.makeSvg=hn.prototype.Cs,hn.prototype.av=function(a){return this.Cs(a)},hn.prototype.makeSVG=hn.prototype.av;function yu(a,y,x,b){this.ownerDocument=y=y===void 0?Dt.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},Pt.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&&Ht("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 mi,this.isTemporary=!!x}at=Gd.prototype,at.Wx=function(a){this.Z.imageSmoothingEnabled=a},at.arc=function(a,y,x,b,E,te){this.Z.arc(a,y,x,b,E,te)},at.beginPath=function(){this.Z.beginPath()},at.Se=function(){},at.bezierCurveTo=function(a,y,x,b,E,te){this.Z.bezierCurveTo(a,y,x,b,E,te)},at.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},at.clip=function(){this.Z.clip()},at.closePath=function(){this.Z.closePath()},at.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},at.createPattern=function(a,y){return this.Z.createPattern(a,y)},at.createRadialGradient=function(a,y,x,b,E,te){return this.Z.createRadialGradient(a,y,x,b,E,te)},at.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)},at.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},at.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},at.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},at.fillText=function(a,y,x){this.Z.fillText(a,y,x)},at.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},at.lineTo=function(a,y){this.Z.lineTo(a,y)},at.measureText=function(a){return this.Z.measureText(a)},at.moveTo=function(a,y){this.Z.moveTo(a,y)},at.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},at.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},at.restore=function(){this.Z.restore()},at.save=function(){this.yc(),this.Z.save()},Gd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},at=Gd.prototype,at.setTransform=function(a,y,x,b,E,te){this.El.setTransform(a,y,x,b,E,te)},at.scale=function(a,y){this.El.scale(a,y)},at.translate=function(a,y){this.El.translate(a,y)},at.stroke=function(){this.Z.stroke()},at.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}},at.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},at.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)},at.jk=function(){this.Hm||this.stroke()},at.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},at.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},at.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},at.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},at.Hs=function(){},Pt.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),pi(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=Ri: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},at=uo.prototype,at.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},at.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},at.qb=function(a){a.classType===uo&&(this.type=a)},at.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+")"},at.addColorStop=function(a,y){return this._isFrozen&&En(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},at.Vz=function(a,y){if(this._isFrozen&&En(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)}at.Wy=function(a,y){if(this._isFrozen&&En(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)+")"}at.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:Ht("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||Ht("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}Pt.Object.defineProperties(uo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&En(this,a),this.na=a,this.start.Mc()&&(a===th?this.start=Cl:a===su&&(this.start=Ri)),this.end.Mc()&&(a===th?this.end=nl:a===su&&(this.end=Ri)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&En(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&En(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&En(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&En(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&&En(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&&En(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&En(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 Sn(uo,"Solid",0);var th;uo.Linear=th=new Sn(uo,"Linear",1);var su;uo.Radial=su=new Sn(uo,"Radial",2);var hp;uo.Pattern=hp=new Sn(uo,"Pattern",4);var dp;uo.Lab=dp=new Sn(uo,"Lab",5);var r1;uo.HSL=r1=new Sn(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(){},Pt.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"}Gt(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 ve=b[he];if(ve.visible||ve===a){var Se=ve.margin,Be=Se.right+Se.left;Se=Se.top+Se.bottom,ve.measure(y,x,te,ne);var Xe=ve.measuredBounds;Be=Math.max(Xe.width+Be,0),Se=Math.max(Xe.height+Se,0),Xe=ve.position.x;var tt=ve.position.y;isFinite(Xe)||(Xe=0),isFinite(tt)||(tt=0),ve instanceof gi&&ve.isGeometryPositioned&&(ve=ve.strokeWidth/2,Xe-=ve,tt-=ve),$i(E,Xe,tt,Be,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,ve=te.position.y;if(he=isNaN(he)?-a:he-a,ve=isNaN(ve)?-x:ve-x,te instanceof gi&&te.isGeometryPositioned){var Se=te.strokeWidth/2;he-=Se,ve-=Se}te.visible&&te.arrange(he+se.left,ve+se.top,ne.width,ne.height)}};function ym(){this.xa="Base"}Gt(ym,Ka),ym.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;y=yn(),te=nh(a);for(var he=0;he<se;he++){var ve=b[he];if(ve.visible||ve===te){var Se=sl(ve,!1);if(Se!==zn&&Se!==Lr)y.push(ve);else{ve.measure(1/0,x,0,ne),Se=ve.margin,ve=ve.measuredBounds;var Be=Math.max(ve.height+Se.top+Se.bottom,0);E.width+=Math.max(ve.width+Se.right+Se.left,0),E.height=Math.max(E.height,Be)}}}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 ve=te,Se=y[he];if(Se.visible){var Be=Se.measuredBounds,Xe=Se.margin,tt=Xe.top+Xe.bottom,rt=te+E.bottom,ct=Be.height,Nt=sl(Se,!1);(isNaN(Se.desiredSize.height)&&Nt===Vn||Nt===Hr)&&(ct=Math.max(x.height-tt-rt,0)),tt=ct+tt+rt,rt=Se.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=Ri),ne&&(se-=Be.width+Xe.left+Xe.right),Se.arrange(se+rt.offsetX+Xe.left,ve+rt.offsetY+Xe.top+(x.height*rt.y-tt*rt.y),Be.width,ct),ne||(se+=Be.width+Xe.left+Xe.right)}}};function Sm(){this.xa="Base"}Gt(Sm,Ka),Sm.prototype.measure=function(a,y,x,b,E,te){var ne=b.length;x=yn();for(var se=nh(a),he=0;he<ne;he++){var ve=b[he];if(ve.visible||ve===se){var Se=sl(ve,!1);if(Se!==zn&&Se!==Hr)x.push(ve);else{var Be=ve.margin;Se=Be.right+Be.left,Be=Be.top+Be.bottom,ve.measure(y,1/0,te,0),ve=ve.measuredBounds,ha(E,Math.max(E.width,Math.max(ve.width+Se,0)),E.height+Math.max(ve.height+Be,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)&&(ve=he.margin,ne=ve.right+ve.left,ve=ve.top+ve.bottom,he.measure(y,1/0,te,0),he=he.measuredBounds,ve=Math.max(he.height+ve,0),E.width=Math.max(E.width,Math.max(he.width+ne,0)),E.height+=ve);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 ve=te,Se=y[he];if(Se.visible){var Be=Se.measuredBounds,Xe=Se.margin,tt=Xe.left+Xe.right,rt=te+E.right,ct=Be.width,Nt=sl(Se,!1);(isNaN(Se.desiredSize.width)&&Nt===Vn||Nt===Lr)&&(ct=Math.max(x.width-tt-rt,0)),tt=ct+tt+rt,rt=Se.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=Ri),ne&&(se-=Be.height+Xe.bottom+Xe.top),Se.arrange(ve+rt.offsetX+Xe.left+(x.width*rt.x-tt*rt.x),se+rt.offsetY+Xe.top,ct,Be.height),ne||(se+=Be.height+Xe.bottom+Xe.top)}}};function xm(){this.xa="Base"}Gt(xm,Ka),xm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,he=a.Pb(),ve=he.margin,Se=ve.right+ve.left,Be=ve.top+ve.bottom;he.measure(y,x,te,ne);var Xe=he.measuredBounds;te=Xe.width,ne=Xe.height;var tt=Math.max(te+Se,0),rt=Math.max(ne+Be,0),ct=a.isClipping,Nt=Mn.allocAt(-ve.left,-ve.top,tt,rt),Mt=Mn.allocAt(0,0,te,ne);p0(he,Mt,!0),te=Mt.width,ne=Mt.height;for(var zt=!0,Ut=nh(a),Yt=0;Yt<se;Yt++){var $t=b[Yt];Xe=y;var dn=x;if($t!==he&&($t.visible||$t===Ut)){ve=$t.margin;var ir=ve.left,gr=ve.top;switch(tt=ve.right+ve.left,rt=ve.top+ve.bottom,ve=sl($t,!1),ve){case Vn:Xe=te,dn=ne,gr=ir=rt=tt=0;break;case Lr:Xe=te,ir=tt=0;break;case Hr:dn=ne,gr=rt=0}$t.measure(Xe,dn,0,0),Xe=$t.measuredBounds,tt=Math.max(Xe.width+tt,0),rt=Math.max(Xe.height+rt,0),ve=$t.alignment,ve.Xb()&&(ve=a.defaultAlignment),ve.sb()||(ve=Ri);var hr=$t.alignmentFocus;if(hr.Xb()&&(hr=Ri),dn=null,$t instanceof Xn&&$t.$e!==""&&(dn=$t.fb($t.$e),dn===$t&&(dn=null)),ir=Mt.x-ir,gr=Mt.y-gr,dn!==null){for($t.arrange(0,0,Xe.width,Xe.height),Xe=dn.actualBounds,Xe=Lt.allocAt(Xe.x+(hr.x*Xe.width-hr.offsetX),Xe.y+(hr.y*Xe.height-hr.offsetY)),dn=dn.panel;dn!==$t;)dn.transform.Ga(Xe),dn=dn.panel;ir+=ve.x*te+ve.offsetX-Xe.x,gr+=ve.y*ne+ve.offsetY-Xe.y,Lt.free(Xe)}else ir+=ve.x*te+ve.offsetX-(hr.x*Xe.width+hr.offsetX),gr+=ve.y*ne+ve.offsetY-(hr.y*Xe.height+hr.offsetY);zt?(zt=!1,E.h(ir,gr,tt,rt)):$i(E,ir,gr,tt,rt)}}switch(zt?E.assign(Nt):ct?E.Uu(Mt.x,Mt.y,Mt.width,Mt.height):$i(E,Nt.x,Nt.y,Nt.width,Nt.height),Mn.free(Nt),Mn.free(Mt),ve=he.stretch,ve===oi&&(ve=sl(he,!1)),ve){case zn:return;case Vn:if(!isFinite(y)&&!isFinite(x))return;break;case Lr:if(!isFinite(y))return;break;case Hr:if(!isFinite(x))return}for(Xe=he.measuredBounds,te=Xe.width,ne=Xe.height,tt=Math.max(te+Se,0),rt=Math.max(ne+Be,0),ve=he.margin,Mt=Mn.allocAt(-ve.left,-ve.top,tt,rt),p0(he,Mt,!0),te=Mt.width,ne=Mt.height,y=0;y<se;y++)x=b[y],x===he||!x.visible&&x!==Ut||(ve=x.margin,tt=ve.right+ve.left,rt=ve.top+ve.bottom,Xe=x.measuredBounds,tt=Math.max(Xe.width+tt,0),rt=Math.max(Xe.height+rt,0),Se=x.alignment,Se.Xb()&&(Se=a.defaultAlignment),Se.sb()||(Se=Ri),x=x.alignmentFocus,x.Xb()&&(x=Ri),zt?(zt=!1,E.h(Se.x*te+Se.offsetX-(x.x*Xe.width+x.offsetX)-ve.left,Se.y*ne+Se.offsetY-(x.y*Xe.height+x.offsetY)-ve.top,tt,rt)):$i(E,Se.x*te+Se.offsetX-(x.x*Xe.width+x.offsetX)-ve.left,Se.y*ne+Se.offsetY-(x.y*Xe.height+x.offsetY)-ve.top,tt,rt));zt?E.assign(Nt):ct?E.Uu(Mt.x,Mt.y,Mt.width,Mt.height):$i(E,Nt.x,Nt.y,Nt.width,Nt.height),Mn.free(Mt)},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 ve=te-x.x,Se=he-x.y;for(E.arrange(ve,Se,ne,se),ne=Mn.allocAt(0,0,ne,se),p0(E,ne,!1),se=0;se<b;se++){var Be=y[se];if(Be!==E){ve=Be.measuredBounds;var Xe=ve.width,tt=ve.height;Se=Be.alignment,Se.Xb()&&(Se=a.defaultAlignment),Se.sb()||(Se=Ri);var rt=Be.alignmentFocus;if(rt.Xb()&&(rt=Ri),ve=null,Be instanceof Xn&&Be.$e!==""&&(ve=Be.fb(Be.$e),ve===Be&&(ve=null)),ve!==null){var ct=ve.actualBounds;for(rt=Lt.allocAt(ct.x+(rt.x*ct.width-rt.offsetX),ct.y+(rt.y*ct.height-rt.offsetY)),ve=ve.panel;ve!==Be;)ve.transform.Ga(rt),ve=ve.panel;ve=Se.x*ne.width+Se.offsetX-rt.x,Se=Se.y*ne.height+Se.offsetY-rt.y,Lt.free(rt)}else ve=Se.x*ne.width+Se.offsetX-(rt.x*Xe+rt.offsetX),Se=Se.y*ne.height+Se.offsetY-(rt.y*tt+rt.offsetY);ve+=ne.x-x.x,Se+=ne.y-x.y,Be.visible&&Be.arrange(te+ve,he+Se,Xe,tt)}}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"}Gt(wm,Ka),wm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,he=a.Pb(),ve=he.margin,Se=y,Be=x,Xe=ve.right+ve.left,tt=ve.top+ve.bottom;he.measure(y,x,te,ne),ve=he.measuredBounds;var rt=0,ct=null;he instanceof gi&&(ct=he,rt=ct.strokeWidth*ct.scale);var Nt=Math.max(ve.width+Xe,0);ve=Math.max(ve.height+tt,0);var Mt=y0(he),zt=Mt.x*Nt+Mt.offsetX;Mt=Mt.y*ve+Mt.offsetY;var Ut=S0(he),Yt=Ut.x*Nt+Ut.offsetX;for(Ut=Ut.y*ve+Ut.offsetY,isFinite(y)&&(Se=Math.max(Math.abs(zt-Yt)-rt,0)),isFinite(x)&&(Be=Math.max(Math.abs(Mt-Ut)-rt,0)),rt=qn.alloc(),rt.h(0,0),a=nh(a),Ut=0;Ut<se;Ut++)Mt=b[Ut],Mt===he||!Mt.visible&&Mt!==a||(ve=Mt.margin,Nt=ve.right+ve.left,zt=ve.top+ve.bottom,Mt.measure(Se,Be,0,0),ve=Mt.measuredBounds,Nt=Math.max(ve.width+Nt,0),ve=Math.max(ve.height+zt,0),rt.h(Math.max(Nt,rt.width),Math.max(ve,rt.height)));if(se===1)E.width=Nt,E.height=ve,qn.free(rt);else{switch(Mt=y0(he),Ut=S0(he),se=b=0,Ut.x!==Mt.x&&Ut.y!==Mt.y&&(b=rt.width/Math.abs(Ut.x-Mt.x),se=rt.height/Math.abs(Ut.y-Mt.y)),qn.free(rt),rt=0,ct!==null&&(rt=ct.strokeWidth*ct.scale,E0(ct)===yr&&(b=se=Math.max(b,se))),b+=Math.abs(Mt.offsetX)+Math.abs(Ut.offsetX)+rt,se+=Math.abs(Mt.offsetY)+Math.abs(Ut.offsetY)+rt,ct=he.stretch,ct===oi&&(ct=sl(he,!1)),ct){case zn:ne=te=0;break;case Vn:isFinite(y)&&(b=y),isFinite(x)&&(se=x);break;case Lr:isFinite(y)&&(b=y),ne=0;break;case Hr:te=0,isFinite(x)&&(se=x)}he.Uj(),he.measure(b,se,te,ne),E.width=he.measuredBounds.width+Xe,E.height=he.measuredBounds.height+tt}},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,ve=he.left;he=he.top,b.arrange(ve+se,he+ne,E.width,E.height);var Se=y0(b),Be=S0(b),Xe=Se.y*E.height+Se.offsetY,tt=Be.x*E.width+Be.offsetX;for(Be=Be.y*E.height+Be.offsetY,te.x=Se.x*E.width+Se.offsetX,te.y=Xe,$i(te,tt,Be,0,0),te.x+=se+ve,te.y+=ne+he,E=0;E<x;E++)se=y[E],se!==b&&(ve=se.measuredBounds,ne=se.margin,he=Math.max(ve.width+ne.right+ne.left,0),Se=Math.max(ve.height+ne.top+ne.bottom,0),Xe=se.alignment,Xe.Xb()&&(Xe=a.defaultAlignment),Xe.sb()||(Xe=Ri),he=te.width*Xe.x+Xe.offsetX-he*Xe.x+ne.left+te.x,ne=te.height*Xe.y+Xe.offsetY-Se*Xe.y+ne.top+te.y,se.visible&&(Io(te.x,te.y,te.width,te.height,he,ne,ve.width,ve.height)?se.arrange(he,ne,ve.width,ve.height):se.arrange(he,ne,ve.width,ve.height,new Mn(te.x,te.y,te.width,te.height))));Mn.free(te)};function bm(){this.xa="Base",this.name="Table"}Gt(bm,Ka),bm.prototype.measure=function(a,y,x,b,E){for(var te=b.length,ne=yn(),se=yn(),he=0;he<te;he++){var ve=b[he],Se=ve instanceof Xn?ve:null;if(Se!==null&&Ph(Se)&&ve.visible){se.push(Se);for(var Be=Se.O.s,Xe=Be.length,tt=0;tt<Xe;tt++){var rt=Be[tt];Se.type===Xn.TableRow?rt.row=ve.row:Se.type===Xn.TableColumn&&(rt.column=ve.column),ne.push(rt)}}else ne.push(ve)}te=ne.length,te===0&&(a.Fb(0),a.Eb(0));for(var ct=[],Nt=0;Nt<te;Nt++){var Mt=ne[Nt];Mt.visible&&(Ia(Mt,!0),Mc(Mt,!0),ct[Mt.row]||(ct[Mt.row]=[]),ct[Mt.row][Mt.column]||(ct[Mt.row][Mt.column]=[]),ct[Mt.row][Mt.column].push(Mt))}Ln(ne);var zt=yn(),Ut=yn(),Yt=yn(),$t={count:0},dn={count:0},ir=y,gr=x,hr=a.rowDefs,Qn=a.colDefs,jn=null;te=hr.length;for(var qr=0;qr<te;qr++)jn=hr[qr],jn!==void 0&&(jn.actual=0);te=Qn.length;for(var Xr=0;Xr<te;Xr++)jn=Qn[Xr],jn!==void 0&&(jn.actual=0);for(var Yi=ct.length,Po=0,qa=0;qa<Yi;qa++)ct[qa]&&(Po=Math.max(Po,ct[qa].length));var rs=Math.min(a.topIndex,Yi-1),js=Math.min(a.leftIndex,Po-1),es=0;Yi=ct.length;for(var Nh=nh(a),Ea=0;Ea<Yi;Ea++)if(ct[Ea]){Po=ct[Ea].length;var qu=a.Fb(Ea);qu.actual=0;for(var Rs=qu.oc=0;Rs<Po;Rs++)if(ct[Ea][Rs]){var Bh=a.Eb(Rs);zt[Rs]===void 0&&(Bh.actual=0,Bh.oc=0,zt[Rs]=!0);for(var _l=ct[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||Ut.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===zn||dc||Ea<rs||Rs<js||($t[Rs]!==void 0||zs!==Vn&&zs!==Lr||($t[Rs]=-1,$t.count++),dn[Ea]!==void 0||zs!==Vn&&zs!==Hr||(dn[Ea]=-1,dn.count++),Yt.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===zn||zs===Lr)){jn=a.Fb(Ea);var pd=jn.Wc();es=Math.max(Ol-jn.actual,0),es+pd>gr&&(es=Math.max(gr-pd,0));var Kv=jn.oa===0;jn.oc=jn.oc+es,jn.actual=jn.oa+es,gr=Math.max(gr-(es+(Kv?pd:0)),0)}if(Sl.columnSpan===1&&(zs===zn||zs===Hr)){jn=a.Eb(Rs);var $g=jn.Wc();es=Math.max($d-jn.actual,0),es+$g>ir&&(es=Math.max(ir-$g,0));var Hy=jn.oa===0;jn.oc=jn.oc+es,jn.actual=jn.oa+es,ir=Math.max(ir-(es+(Hy?$g:0)),0)}fd&&Sl.Uj()}}}}}Ln(zt);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=gr=Math.max(x-oh,0),Ih=ir;te=Yt.length;for(var wl=0;wl<te;wl++){var fc=Yt[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;$t[fc.column]=ah.oc===0&&$t[fc.column]!==void 0?Math.max(jp.width+qd,$t[fc.column]):null,dn[fc.row]=Vv.oc===0&&dn[fc.row]!==void 0?Math.max(jp.height+pc,dn[fc.row]):null}var jf=0,Rp=0,Iu;for(Iu in dn)Iu!=="count"&&(jf+=dn[Iu]);for(Iu in $t)Iu!=="count"&&(Rp+=$t[Iu]);for(var fs=qn.alloc(),qg=0;qg<te;qg++){var $s=Yt[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)&&$t[$s.column]!==null?Rp===0?sh=el.actual+ir:sh=$t[$s.column]/Rp*Ih:$t[$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(gr)&&dn[$s.row]!==null?jf===0?jh=Aa.actual+gr:jh=dn[$s.row]/jf*zc:dn[$s.row]!==null?jh=gr:jh=Aa.actual||gr,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 Lr:fs.height=Math.max(fs.height,Aa.actual+gr);break;case Hr: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(gr)&&(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,gr=Math.max(gr-es,0),dn[$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),$t[$s.column]===null&&(Ih=Math.max(Ih-es,0))}}Ln(Yt);var lh=qn.alloc(),nc=yn(),du=yn();if(te=Ut.length,te!==0){for(var vd=0;vd<Yi;vd++)if(ct[vd]){Po=ct[vd].length;var Wp=a.Fb(vd);nc[vd]=Wp.actual;for(var yd=0;yd<Po;yd++)if(ct[vd][yd]){var Yv=a.Eb(yd);du[yd]=Yv.actual}}}for(var Hp=0;Hp<te;Hp++){var ca=Ut[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 Lr:du[Cu.index]!==0&&(fs.width=Math.min(fs.width,du[Cu.index]));break;case Hr: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++)jn=a.Fb(ca.row+Rh),es=0,es=zs===Vn||zs===Hr?Math.max(jn.minimum,nc[ca.row+Rh]===0?jn.maximum:Math.min(nc[ca.row+Rh],jn.maximum)):Math.max(jn.minimum,isNaN(jn.Hc)?jn.maximum:Math.min(jn.Hc,jn.maximum)),lh.height+=es,kl+=jn.minimum;for(var Pu=1;Pu<ca.columnSpan&&!(ca.column+Pu>=a.columnCount);Pu++)jn=a.Eb(ca.column+Pu),es=0,es=zs===Vn||zs===Lr?Math.max(jn.minimum,du[ca.column+Pu]===0?jn.maximum:Math.min(du[ca.column+Pu],jn.maximum)):Math.max(jn.minimum,isNaN(jn.Hc)?jn.maximum:Math.min(jn.Hc,jn.maximum)),lh.width+=es,Jv+=jn.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++)jn=a.Fb(ca.row+Zp),xd+=jn.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++){jn=a.Fb(ca.row+uh);var Hh=jn.oa||0,rf=Wh(ca,jn,Wc);jn.actual=Math.min(jn.maximum,Hh+rf),jn.oa!==Hh&&(zh-=jn.oa-Hh)}for(;0<zh;){var rc=jn.oa||0;if(isNaN(jn.height)&&jn.maximum>rc&&(jn.actual=Math.min(jn.maximum,rc+zh),jn.oa!==rc&&(zh-=jn.oa-rc)),jn.index===0)break;jn=a.Fb(jn.index-1)}}for(var zf=0,Uh=0;Uh<ca.columnSpan&&!(ca.column+Uh>=a.columnCount);Uh++)jn=a.Eb(ca.column+Uh),zf+=jn.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++){jn=a.Eb(ca.column+of);var tm=jn.oa||0,Zy=ch(ca,jn,Gy);jn.actual=Math.min(jn.maximum,tm+Zy),jn.oa!==tm&&(Wf-=jn.oa-tm)}for(;0<Wf;){var Qv=jn.oa||0;if(isNaN(jn.width)&&jn.maximum>Qv&&(jn.actual=Math.min(jn.maximum,Qv+Wf),jn.oa!==Qv&&(Wf-=jn.oa-Qv)),jn.index===0)break;jn=a.Eb(jn.index-1)}}}}Ln(Ut),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&&(jn=a.Eb($v),isFinite(jn.width)?(nm+=jn.width,nm+=jn.Wc()):Om(jn)===pg?(nm+=jn.oa,nm+=jn.Wc()):jn.oa!==0&&(Rc+=jn.oa,Rc+=jn.Wc()));isFinite(_v.width)?Hf=Math.min(_v.width,gx.width):Hf=zs!==zn&&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&&(jn=a.Eb(qv),isFinite(jn.width)||Om(jn)===pg||(jn.actual=jn.oa*$x),jn.position=E.width,jn.oa!==0&&(E.width+=jn.oa,E.width+=jn.Wc()));te=a.rowCount;for(var e0=0;e0<te;e0++)hr[e0]!==void 0&&(jn=a.Fb(e0),isFinite(jn.height)?(rm+=jn.height,rm+=jn.Wc()):Om(jn)===pg?(rm+=jn.oa,rm+=jn.Wc()):jn.oa!==0&&(oh+=jn.oa,oh+=jn.Wc()));isFinite(_v.height)?Uf=Math.min(_v.height,gx.height):Uf=zs!==zn&&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&&(jn=a.Fb(t0),isFinite(jn.height)||Om(jn)===pg||(jn.actual=jn.oa*qx),jn.position=E.height,jn.oa!==0&&(E.height+=jn.oa,E.height+=jn.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,jn=a.Fb(im.row),Xy=jn.actual):(jn=a.Eb(im.column),Vy=jn.actual,Xy=E.height),im.measuredBounds.h(0,0,Vy,Xy),Ia(im,!1)}Ln(se),a.inRowsCols=ct},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,ve=ne.length,Se=0,Be=0;Be<ve;Be++)ne[Be]&&(Se=Math.max(Se,ne[Be].length));he=a.rowDefs,se=a.colDefs;var Xe=Be=0,tt=Math.min(a.topIndex,ve-1);if(0<he.length){for(;tt!==ve&&(he[tt]===void 0||he[tt].oa===0);)tt++;tt=Math.max(Math.min(tt,ve-1),0),Be=-he[tt].position}var rt=Math.min(a.leftIndex,Se-1);if(0<se.length){for(;rt!==Se&&(se[rt]===void 0||se[rt].oa===0);)rt++;rt=Math.max(Math.min(rt,Se-1),0),Xe=-se[rt].position}for(var ct=0,Nt=0;ct!==ve&&he[ct]===void 0;)ct++;for(;Nt!==ve&&se[Nt]===void 0;)Nt++;Se=a.part,a.Fb(ct),a.Eb(Nt);for(var Mt=0;Mt<y.length;Mt++){var zt=y[Mt];if(zt instanceof Xn&&zt.visible&&Ph(zt)){if(zt.type===Xn.TableRow){se=a.Fb(zt.row);var Ut=a.Eb(Nt)}else se=a.Fb(ct),Ut=a.Eb(zt.column);he=se.position+Be+E,se.oa!==0&&(he+=se.Io(Math.max(ct,tt))),se=Ut.position+Xe+te,Ut.oa!==0&&(se+=Ut.Io(Math.max(Nt,rt))),Ut=zt.measuredBounds,zt.Uk(),zt.actualBounds.ka();var Yt=zt.actualBounds,$t=Mn.allocAt(Yt.x,Yt.y,Yt.width,Yt.height);Yt.x=zt.type===Xn.TableRow?te:se,Yt.y=zt.type===Xn.TableColumn?E:he,Yt.width=Ut.width,Yt.height=Ut.height,zt.actualBounds.freeze(),Mc(zt,!1),bo($t,Yt)||Se===null||(Se.oh(),zt.Pn(Se)),Mn.free($t)}}for(Mt=qn.alloc(),zt=0;zt<ve;zt++)if(ne[zt]){for(Se=ne[zt].length,Ut=a.Fb(zt),he=Ut.position+Be+E,Ut.oa!==0&&(he+=Ut.Io(Math.max(ct,tt))),Yt=0;Yt<Se;Yt++)if(ne[zt][Yt]){$t=a.Eb(Yt),se=$t.position+Xe+te,$t.oa!==0&&(se+=$t.Io(Math.max(Nt,rt)));for(var dn=ne[zt][Yt],ir=dn.length,gr=0;gr<ir;gr++){var hr=dn[gr],Qn=hr.measuredBounds;Mt.h(0,0);for(var jn=1;jn<hr.rowSpan&&!(zt+jn>=a.rowCount);jn++){var qr=a.Fb(zt+jn);qr.oa!==0&&(Mt.height+=qr.total)}for(jn=1;jn<hr.columnSpan&&!(Yt+jn>=a.columnCount);jn++)qr=a.Eb(Yt+jn),qr.oa!==0&&(Mt.width+=qr.total);var Xr=$t.oa+Mt.width,Yi=Ut.oa+Mt.height;jn=se,qr=he;var Po=Xr,qa=Yi,rs=se,js=he,es=Xr,Nh=Yi;se+Xr>x.width&&(es=Math.max(x.width-se,0)),he+Yi>x.height&&(Nh=Math.max(x.height-he,0));var Ea=hr.alignment;if(Ea.Xb()){Ea=a.defaultAlignment,Ea.sb()||(Ea=Ri);var qu=Ea.x,Rs=Ea.y,Bh=Ea.offsetX;Ea=Ea.offsetY;var _l=$t.alignment,bu=Ut.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,Ut,$t,!1);!isNaN(hr.desiredSize.width)||ec!==Vn&&ec!==Lr||(_l=Math.max(Xr-Sl,0)),!isNaN(hr.desiredSize.height)||ec!==Vn&&ec!==Hr||(bu=Math.max(Yi-fd,0)),Xr=hr.maxSize,Yi=hr.minSize,_l=Math.min(Xr.width,_l),bu=Math.min(Xr.height,bu),_l=Math.max(Yi.width,_l),bu=Math.max(Yi.height,bu),Xr=bu+fd,jn+=Po*qu-(_l+Sl)*qu+Bh+Fl.left,qr+=qa*Rs-Xr*Rs+Ea+Fl.top,hr.visible&&(Io(rs,js,es,Nh,jn,qr,Qn.width,Qn.height)?hr.arrange(jn,qr,_l,bu):hr.arrange(jn,qr,_l,bu,new Mn(rs,js,es,Nh)))}}}for(qn.free(Mt),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"}Gt(Cm,Ka),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Pm(){this.xa="Base"}Gt(Pm,Ka),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Em(){this.xa="Base"}Gt(Em,Ka),Em.prototype.measure=function(a,y,x,b,E,te,ne){1<b.length&&Ht("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,ve=he.right+he.left;if(he=he.top+he.bottom,isFinite(y)||isFinite(x)){var Se=b.scale,Be=se.width;se=se.height;var Xe=Math.max(y-ve,0),tt=Math.max(x-he,0),rt=1;a.viewboxStretch===yr?Be!==0&&se!==0&&(rt=Math.min(Xe/Be,tt/se)):Be!==0&&se!==0&&(rt=Math.max(Xe/Be,tt/se)),rt===0&&(rt=1e-4),b.Ca*=rt,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+ve,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=Ri),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"}Gt(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,ve=Math.ceil(se/E),Se=Math.ceil(he/b),Be=a.gridOrigin,Xe=Be.x;Be=Be.y,y.save(),y.beginPath(),y.rect(0,0,se,he),y.clip(),y.Se();for(var tt=[],rt=a.O.s,ct=rt.length,Nt=0;Nt<ct;Nt++){var Mt=rt[Nt],zt=[];if(tt.push(zt),Mt.visible){var Ut=Mt.interval;if(!(0>Ut)){Mt=m0(Mt.figure);for(var Yt=0;Yt<ct;Yt++)if(Yt!==Nt){var $t=rt[Yt];$t.visible&&m0($t.figure)===Mt&&($t=$t.interval,$t>Ut&&zt.push($t))}}}}for(rt=a.O.s,ct=rt.length,Nt=0;Nt<ct;Nt++){var dn=rt[Nt];if(dn.visible&&(zt=dn.interval||1,Mt=Math.abs(zt),!(2>E*Mt*x))){if(Ut=dn.segmentIndex,(!isFinite(Ut)||isNaN(Ut))&&(Ut=0),0>Ut&&(Ut=Mt-Math.min(-Ut,Mt)),Ut=Math.round(Ut%Mt),Mt=dn.opacity,Yt=1,Mt!==1){if(Mt===0)continue;Yt=y.globalAlpha,y.globalAlpha=Yt*Mt}$t=tt[Nt];var ir=!1,gr=dn.strokeDashArray;if(gr!==null&&(ir=!0,y.js(gr,dn.strokeDashOffset)),dn.figure==="LineV"&&dn.stroke!==null&&0<dn.strokeWidth){for(y.lineWidth=dn.strokeWidth,sa(a,y,dn.stroke,!1,!1,te,ne),y.beginPath(),gr=dn=Math.floor((Xe-E)/E);gr<=dn+ve;gr++){var hr=gr*E+Xe;0<=hr&&hr<=se&&Am(gr,zt,Ut,$t)&&(y.moveTo(hr,0),y.lineTo(hr,he))}y.stroke(),y.Se()}else if(dn.figure==="LineH"&&dn.stroke!==null&&0<dn.strokeWidth){for(y.lineWidth=dn.strokeWidth,sa(a,y,dn.stroke,!1,!1,te,ne),y.beginPath(),gr=dn=Math.floor((Be-b)/b);gr<=dn+Se;gr++)hr=gr*b+Be,0<=hr&&hr<=he&&Am(gr,zt,Ut,$t)&&(y.moveTo(0,hr),y.lineTo(se,hr));y.stroke(),y.Se()}else if(dn.figure==="BarV"&&dn.fill!==null)for(sa(a,y,dn.fill,!0,!1,te,ne),dn=dn.width,isNaN(dn)&&(dn=E),hr=gr=Math.floor((Xe-E)/E);hr<=gr+ve;hr++){var Qn=hr*E+Xe;0<=Qn+dn&&Qn<=se&&Am(hr,zt,Ut,$t)&&y.fillRect(Qn,0,dn,he)}else if(dn.figure==="BarH"&&dn.fill!==null)for(sa(a,y,dn.fill,!0,!1,te,ne),dn=dn.height,isNaN(dn)&&(dn=b),hr=gr=Math.floor((Be-b)/b);hr<=gr+Se;hr++)Qn=hr*b+Be,0<=Qn+dn&&Qn<=he&&Am(hr,zt,Ut,$t)&&y.fillRect(0,Qn,se,dn);ir&&y.fs(),Mt!==1&&(y.globalAlpha=Yt)}}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"}Gt(Mm,Ka),Mm.prototype.measure=function(a,y,x,b,E){var te=b.length;if(a instanceof Ki||a instanceof _n){var ne=null,se=null;if(a instanceof _n&&(ne=a),a instanceof Ki&&(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 ve=a instanceof Ki?null:ne.path;y=ne.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var Se=he.points,Be=ne.pointsCount;se!==null?se.Ul(!1):ne!==null&&ne.Ul(!1),se=y.width;var Xe=y.height,tt=a.j;if(tt.length=0,ve!==null){i1(a,se,Xe,ve);var rt=ve.measuredBounds;x.ed(rt),tt.push(rt)}rt=mi.alloc();for(var ct=Lt.alloc(),Nt=Lt.alloc(),Mt=0;Mt<te;Mt++){var zt=b[Mt];if(zt!==ve)if(zt.isPanelMain&&zt instanceof gi){i1(a,se,Xe,zt);var Ut=zt.measuredBounds;x.ed(Ut),tt.push(Ut)}else if(2>Be)zt.measure(1/0,1/0,0,0),Ut=zt.measuredBounds,x.ed(Ut),tt.push(Ut);else{var Yt=zt.segmentIndex,$t=zt.segmentFraction,dn=zt.alignmentFocus;dn.Mc()&&(dn=Ri);var ir=zt.segmentOrientation,gr=zt.segmentOffset;if(isNaN(Yt)){var hr=he.ua;Ut=yn(),hr.Qu($t,Ut);var Qn=Lt.allocAt(Ut[0],Ut[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=Ut[2],ir!==Xs){var jn=he.computeAngle(zt,ir,hr);zt.Kb=jn}jn=Qn.x-y.x;var qr=Qn.y-y.y;Lt.free(Qn),Ln(Ut)}else if(Yt<-Be||Yt>=Be)Ut=Lt.alloc(),he.vg(),he.computeMidPoint(Ut),hr=he.midAngle,ir!==Xs&&(jn=he.computeAngle(zt,ir,hr),zt.Kb=jn),jn=Ut.x-y.x,qr=Ut.y-y.y,Lt.free(Ut);else{if(jn=0,0<=Yt?(qr=Se.M(Yt),Ut=Yt<Be-1?Se.M(Yt+1):qr):(jn=Be+Yt,qr=Se.M(jn),Ut=0<jn?Se.M(jn-1):qr),qr.Xa(Ut)){0<=Yt?(hr=0<Yt?Se.M(Yt-1):qr,jn=Yt<Be-2?Se.M(Yt+2):Ut):(hr=jn<Be-1?Se.M(jn+1):qr,jn=1<jn?Se.M(jn-2):Ut),Qn=hr.Bf(qr);var Xr=Ut.Bf(jn);hr=Qn>Xr+10?0<=Yt?hr.ab(qr):qr.ab(hr):Xr>Qn+10?0<=Yt?Ut.ab(jn):jn.ab(Ut):0<=Yt?hr.ab(jn):jn.ab(hr)}else hr=0<=Yt?qr.ab(Ut):Ut.ab(qr);ir!==Xs&&(jn=he.computeAngle(zt,ir,hr),zt.Kb=jn),jn=qr.x+(Ut.x-qr.x)*$t-y.x,qr=qr.y+(Ut.y-qr.y)*$t-y.y}zt.measure(1/0,1/0,0,0),Ut=zt.measuredBounds,Qn=zt.naturalBounds;var Yi=0;zt instanceof gi&&(Yi=zt.strokeWidth),Xr=Qn.width+Yi;var Po=Qn.height+Yi;rt.reset(),rt.translate(-Ut.x,-Ut.y),rt.scale(zt.scale,zt.scale),rt.rotate(ir===Xs?zt.angle:hr,Xr/2,Po/2),ir!==Pg&&ir!==Ag||rt.rotate(90,Xr/2,Po/2),ir!==Eg&&ir!==Mg||rt.rotate(-90,Xr/2,Po/2),ir===rv&&(45<hr&&135>hr||225<hr&&315>hr)&&rt.rotate(-hr,Xr/2,Po/2),Qn=new Mn(0,0,Xr,Po),ct.xi(Qn,dn),rt.Ga(ct),dn=-ct.x+Yi/2*zt.scale,zt=-ct.y+Yi/2*zt.scale,Nt.assign(gr),Yi=isNaN(gr.x);var qa=isNaN(gr.y);if(Yi||qa){Xr=Xr/2+3,Po=Po/2+3;var rs=45<=hr&&135>=hr,js=225<=hr&&315>=hr;ir===Xs&&(rs||js)?(Nt.x=qa?Xr:gr.y,Nt.y=Yi?Po:gr.x,rs?0<=Yt||isNaN(Yt)&&.5>$t||!Yi||(Nt.y=-Po):js&&((0<=Yt||isNaN(Yt)&&.5>$t)&&Yi&&(Nt.y=-Po),qa&&(Nt.x=-Xr))):(Yi&&(Nt.x=0<=Yt||isNaN(Yt)&&.5>$t?Xr:-Xr),qa&&(Nt.y=-Po),Nt.rotate(hr))}else Nt.rotate(hr);jn+=Nt.x,qr+=Nt.y,Qn.set(Ut),Qn.h(jn+dn,qr+zt,Ut.width,Ut.height),tt.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),mi.free(rt),Lt.free(ct),Lt.free(Nt)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ki||a instanceof _n){var b=a,E=null;a instanceof Ki&&(E=a,b=E.adornedPart);var te=a instanceof Ki?null:b.path,ne=a.j;if(ne.length!==0){var se=0;if(te!==null&&se<ne.length){var he=ne[se];se++,te.arrange(he.x-a.jg.x,he.y-a.jg.y,he.width,he.height)}for(he=0;he<x;he++){var ve=y[he];if(ve!==te&&se<ne.length){var Se=ne[se];se++,ve.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 Be=a;ne=te.value,se=ne.segmentIndex,he=ne.segmentFraction;var Xe=ne.alignmentFocus;if(ve=ne.segmentOrientation,Se=ne.segmentOffset,isNaN(se)){var tt=Be.ua,rt=yn();tt.Qu(he,rt);var ct=Lt.allocAt(rt[0],rt[1]);ct.add(Be.i(0)),tt.type===$n.j||(tt=tt.figures.first()),ct.offset(-tt.startX,-tt.startY),tt=rt[2],ve!==Xs&&(Be=Be.computeAngle(ne,ve,tt),ne.angle=Be),Be=ct.x;var Nt=ct.y;Lt.free(ct),Ln(rt)}else if(se<-x||se>=x)rt=Lt.alloc(),tt=Be,Nt=rt,tt.vg(),tt.computeMidPoint(Nt),tt=Be.midAngle,ve!==Xs&&(Be=Be.computeAngle(ne,ve,tt),ne.angle=Be),Be=rt.x,Nt=rt.y,Lt.free(rt);else{if(ct=0,0<=se?(rt=y.s[se],Nt=se<x-1?y.s[se+1]:rt):(ct=x+se,rt=y.s[ct],Nt=0<ct?y.s[ct-1]:rt),rt.Xa(Nt)){0<=se?(tt=0<se?y.s[se-1]:rt,ct=se<x-2?y.s[se+2]:Nt):(tt=ct<x-1?y.s[ct+1]:rt,ct=1<ct?y.s[ct-2]:Nt);var Mt=tt.Bf(rt),zt=Nt.Bf(ct);tt=Mt>zt+10?0<=se?tt.ab(rt):rt.ab(tt):zt>Mt+10?0<=se?Nt.ab(ct):ct.ab(Nt):0<=se?tt.ab(ct):ct.ab(tt)}else tt=0<=se?rt.ab(Nt):Nt.ab(rt);ve!==Xs&&(Be=Be.computeAngle(ne,ve,tt),ne.angle=Be),Be=rt.x+(Nt.x-rt.x)*he,Nt=rt.y+(Nt.y-rt.y)*he}if(Xe.ys())ne.location=new Lt(Be,Nt);else{Xe.Mc()&&(Xe=Ri),rt=mi.alloc(),rt.reset(),rt.scale(ne.scale,ne.scale),rt.rotate(ne.angle,0,0);var Ut=ne.naturalBounds;ct=Mn.allocAt(0,0,Ut.width,Ut.height),Mt=Lt.alloc(),Mt.xi(ct,Xe),rt.Ga(Mt),Xe=-Mt.x,zt=-Mt.y;var Yt=Ut.width,$t=Ut.height;Ut=Lt.alloc(),Ut.assign(Se);var dn=isNaN(Se.x),ir=isNaN(Se.y);if(dn||ir){Yt=Yt/2+3,$t=$t/2+3;var gr=45<=tt&&135>=tt,hr=225<=tt&&315>=tt;ve===Xs&&(gr||hr)?(Ut.x=ir?Yt:Se.y,Ut.y=dn?$t:Se.x,gr?0<=se||isNaN(se)&&.5>he||!dn||(Ut.y=-$t):hr&&((0<=se||isNaN(se)&&.5>he)&&dn&&(Ut.y=-$t),ir&&(Ut.x=-Yt))):(dn&&(Ut.x=0<=se||isNaN(se)&&.5>he?Yt:-Yt),ir&&(Ut.y=-$t),Ut.rotate(tt))}else Ut.rotate(tt);Be+=Ut.x,Nt+=Ut.y,rt.pp(ct),Xe+=ct.x,zt+=ct.y,se=Lt.allocAt(Be+Xe,Nt+zt),ne.move(se),Lt.free(se),Lt.free(Ut),Lt.free(Mt),Mn.free(ct),mi.free(rt)}}E!==null?E.Ul(!1):b.Ul(!1),b=k1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Lt.free(b)}};function i1(a,y,x,b){if(Xl(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Ki&&a.type===Xn.Link&&a.adornedObject instanceof gi&&(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 Ki&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Ia(b,!1)}}function dg(){this.xa="Base"}Gt(dg,Ka),dg.prototype.measure=function(a,y,x,b,E,te,ne){var se=a.Pb();a.graduatedBounds=[];var he=se.margin,ve=he.right+he.left,Se=he.top+he.bottom;se.measure(y,x,te,ne);var Be=se.measuredBounds,Xe=new Mn(-he.left,-he.top,Math.max(Be.width+ve,0),Math.max(Be.height+Se,0));a.graduatedBounds.push(Xe),E.assign(Xe);for(var tt=se.geometry,rt=se.strokeWidth,ct=tt.flattenedSegments,Nt=tt.flattenedLengths,Mt=tt.flattenedTotalLength,zt=ct.length,Ut=0,Yt=0,$t=yn(),dn=0;dn<zt;dn++){var ir=ct[dn],gr=[];Yt=Ut=0;for(var hr=ir.length,Qn=0;Qn<hr;Qn+=2){var jn=ir[Qn],qr=ir[Qn+1];if(Qn!==0){var Xr=180*Math.atan2(qr-Yt,jn-Ut)/Math.PI;0>Xr&&(Xr+=360),gr.push(Xr)}Ut=jn,Yt=qr}$t.push(gr)}if(a.graduatedIntervals===null){for(var Yi=[],Po=a.O.s,qa=Po.length,rs=0;rs<qa;rs++){var js=Po[rs],es=[];if(Yi.push(es),js.visible){var Nh=js.interval;if(!(0>Nh)){for(var Ea=0;Ea<qa;Ea++)if(Ea!==rs){var qu=Po[Ea];if(qu.visible&&js.constructor===qu.constructor){var Rs=qu.interval;Rs>Nh&&es.push(Rs)}}}}}a.graduatedIntervals=Yi}var Bh=a.graduatedIntervals,_l=a.O.s,bu=_l.length,Fl=0,Sl=0,fd=Mt;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*Mt/a.graduatedRange&&Dl.graduatedSkip===null)){var Bf=Nt[0][0],dc=0,xl=0;Sl=Mt*Dl.graduatedStart-1e-4,fd=Mt*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 gi&&!Dl.graduatedSkip(Ol,Dl))&&(Fl=(Ol-a.graduatedMin)*Mt/a.graduatedRange,Fl>Mt&&(Fl=Mt),Sl<=Fl&&Fl<=fd)){for(var zc=$t[dc][xl],Ih=Nt[dc][xl];dc<Nt.length;){for(;Fl>Bf&&xl<Nt[dc].length-1;)xl++,zc=$t[dc][xl],Ih=Nt[dc][xl],Bf+=Ih;if(Fl<=Bf)break;dc++,xl=0,zc=$t[dc][xl],Ih=Nt[dc][xl],Bf+=Ih}var wl=ct[dc],fc=wl[2*xl],Vv=wl[2*xl+1],ah=(Fl-(Bf-Ih))/Ih,jp=new Lt(fc+(wl[2*xl+2]-fc)*ah+rt/2-tt.bounds.x,Vv+(wl[2*xl+3]-Vv)*ah+rt/2-tt.bounds.y);jp.scale(se.scale,se.scale);e:{var tc=zc,qd=$t[dc];if(!(.5005>ah&&.4995<ah)){var pc=tc;if(.5>ah?0<xl?pc=qd[xl-1]:tn.$(wl[0],wl[wl.length-2])&&tn.$(wl[1],wl[wl.length-1])&&(pc=qd[qd.length-1]):.5<ah&&(xl+1<qd.length?pc=qd[xl+1]:tn.$(wl[0],wl[wl.length-2])&&tn.$(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($t);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 gi){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=Lt.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)}Lt.free(bl),sh.graduatedBounds!==null&&sh.graduatedBounds.push(du),$i(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=mi.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=Lt.alloc();Uh.xi(zf,Rh),rc.Ga(Uh);var Wf=-Uh.x,Gy=-Uh.y,ch=Lt.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),Lt.free(ch),Lt.free(Uh),Mn.free(zf),mi.free(rc)}Cu.graduatedBounds!==null&&Cu.graduatedBounds.push(Sd),$i(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,ve=0;ve<he;ve++){var Se=y[ve];se=E[ve],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,ve=a.graduatedMarks,Se=he.length,Be=0;Be<Se;Be++){var Xe=he[Be],tt=ve[Be],rt=tt.length;if(Xe.visible&&Xe!==te&&tt.length!==0){if(Xe instanceof gi){if(!(2>a.graduatedTickUnit*Xe.interval*te.geometry.flattenedTotalLength/a.graduatedRange*ne&&Xe.graduatedSkip===null)){var ct=Xe.measuredBounds,Nt=Xe.strokeWidth*Xe.scale,Mt=Xe.alignmentFocus;Mt.Mc()&&(Mt=Cl);for(var zt=0;zt<rt;zt++){var Ut=tt[zt].$l,Yt=tt[zt].angle,$t=Mt,dn=Xe.Ab;dn.reset(),dn.translate(Ut.x+se.x,Ut.y+se.y),dn.rotate(Yt+Xe.angle,0,0),dn.translate(-ct.width*$t.x+$t.offsetX+Nt/2,-ct.height*$t.y+$t.offsetY+Nt/2),dn.scale(Xe.scale,Xe.scale),vu(Xe,!1),Xe.wh.set(Xe.Ab),Xe.Kk=Xe.scale,ou(Xe,!1),Xe.gc(y,x),E&&(a.svg.appendChild(Xe.svg),Xe.svg=null),Xe.Ab.reset()}}}else if(Xe instanceof Lo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Lo),ct=a.temporaryTextBlock,S1(ct,Xe),Nt=0;Nt<rt;Nt++)Mt=tt[Nt],Mt.actualBounds&&Mt.measuredBounds&&Mt.naturalBounds&&(ct.ec=Mt.text||"",ct.Kb=Mt.Sz||0,ct.Gc=Mt.lineCount||0,zt=Mt.lines,zt!==void 0&&(ct.Cb=zt[0],ct.Ih=zt[1],ct.df=zt[2],ct.Le=zt[3],ct.Qc=zt[4],ct.Qb=zt[5],ct.ze=zt[6]),Mt.naturalBounds&&(ct.dc=Mt.naturalBounds),Mt.actualBounds&&(zt=Mt.actualBounds,ct.arrange(zt.x,zt.y,zt.width,zt.height)),zt=Mt.actualBounds,ct.arrange(zt.x,zt.y,zt.width,zt.height),Ut=Mt.measuredBounds,Mt=Mt.naturalBounds,Yt=ct.Ab,Yt.reset(),Yt.translate(zt.x+se.x,zt.y+se.y),Yt.translate(-Ut.x,-Ut.y),ct.no(Yt,Mt.x,Mt.y,Mt.width,Mt.height),vu(ct,!1),ct.wh.set(ct.Ab),ct.Kk=ct.scale,ou(ct,!1),ct.Ng=Xe.part,ct.Me=Xe.panel,ct.gc(y,x),ct.Me=null,ct.Ng=null,E&&(a.svg.appendChild(ct.svg),ct.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Xn(a,y){if(qt.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&&Ht("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Xn.Grid?1048576:0),this.O=new Fn,this.yb=Es,this.Tm=oo,this.Uf=oi,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)}Gt(Xn,qt),Xn.prototype.cloneProtected=function(a){qt.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){qt.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=qt.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},at=Xn.prototype,at.toString=function(){return"Panel("+this.type.name+")#"+Qr(this)},at.Pn=function(a){qt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},at.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 ve=b[he];if(ve!==void 0&&ve.actual!==0)if(se)se=!1;else{if(x){if(ve.position>ne.height)continue}else if(ve.position>ne.width)continue;var Se=ve.separatorStrokeWidth;isNaN(Se)&&(Se=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Be=ve.separatorStroke;if(Be===null&&(Be=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),Se!==0&&Be!==null){sa(a,y,Be,!1,!1,ne,te),Be=!1;var Xe=ve.separatorDashArray;Xe===null&&(Xe=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Xe!==null&&(Be=!0,y.js(Xe,0)),y.beginPath(),Xe=ve.position+Se,x?Xe>ne.height&&(Se-=Xe-ne.height):Xe>ne.width&&(Se-=Xe-ne.width),ve=ve.position+Se/2,y.lineWidth=Se,Se=a.yb,x?(ve+=Se.top,Xe=ne.width-Se.right,y.moveTo(Se.left,ve),y.lineTo(Xe,ve)):(ve+=Se.left,Xe=ne.height-Se.bottom,y.moveTo(ve,Se.top),y.lineTo(ve,Xe)),y.stroke(),y.Se(),Be&&y.fs()}}}}function Lm(a,y,x,b,E){for(var te=b.length,ne=a.actualBounds,se=a.naturalBounds,he=a1(a,!0),ve=a1(a,!1),Se=0;Se<te;Se++){var Be=b[Se];if(Be!==void 0&&Be.background!==null&&Be.coversSeparators!==E&&Be.actual!==0){var Xe=x?ne.height:ne.width;if(!(Be.position>Xe)){var tt=Be.Wc(),rt=Be.separatorStrokeWidth;isNaN(rt)&&(rt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ct=Be.separatorStroke;ct===null&&(ct=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ct===null||Be.index===(x?he:ve))&&(rt=0),tt-=rt,rt=Be.position+rt,tt+=Be.actual,rt+tt>Xe&&(tt=Xe-rt),0>=tt||(Xe=a.yb,sa(a,y,Be.background,!0,!1,se,ne),x?y.fillRect(Xe.left,rt+Xe.top,ne.width-(Xe.left+Xe.right),tt):y.fillRect(rt+Xe.left,Xe.top,tt,ne.height-(Xe.top+Xe.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"}at.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},at.kk=function(a,y,x){if(!qt.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},at.nk=function(){return!0},at.$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 qt.prototype.$o.call(this,a,y,x,b)},at.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,ve=-ne.m12*se,Se=-ne.m21*se,Be=ne.m11*se,Xe=se*(ne.m21*ne.dy-ne.m22*ne.dx),tt=se*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,tn.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,x,b,E);if(this.background!==null)return te=a*he+y*Se+Xe,se=a*ve+y*Be+tt,a=x*he+b*Se+Xe,he=x*ve+b*Be+tt,E.h(0,0),x=this.naturalBounds,te=tn.Ff(0,0,x.width,x.height,te,se,a,he,E),E.transform(ne),te;te||(he=1,Se=ve=0,Be=1,tt=Xe=0),se=a*he+y*Se+Xe,a=a*ve+y*Be+tt,he=x*he+b*Se+Xe,x=x*ve+b*Be+tt,E.h(he,x),b=(he-se)*(he-se)+(x-a)*(x-a),ve=!1,Be=this.O.s,tt=Be.length,Se=Lt.alloc(),Xe=null,y=1/0;var rt=null,ct=this.isClipping&&this.na===Xn.Spot;ct&&(rt=Lt.alloc(),Xe=this.Pb(),(ve=Xe.Sj(se,a,he,x,rt))&&(y=(se-rt.x)*(se-rt.x)+(a-rt.y)*(a-rt.y)));for(var Nt=0;Nt<tt;Nt++){var Mt=Be[Nt];Mt.visible&&Mt!==Xe&&Mt.Sj(se,a,he,x,Se)&&(ve=!0,Mt=(se-Se.x)*(se-Se.x)+(a-Se.y)*(a-Se.y),Mt<b&&(b=Mt,E.set(Se)))}return ct&&(y>b&&E.set(rt),Lt.free(rt)),Lt.free(Se),te&&E.transform(ne),ve},at.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();qt.prototype.Gj.call(this)},at.v=function(a){if(!Xl(this)){qt.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!==zn)&&E.v(!0)}}}},at.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()}},at.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()}},at.Wu=function(){ou(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},at.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 ve=this.O.s;ve.length!==0&&this.na.measure(this,a,y,ve,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)},at.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}at.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=zn),a){case zn:(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 Lr:this.v(!0),this.measure(x+se,te+ne,0,0);break;case Hr:this.v(!0),this.measure(y+se,b+ne,0,0)}}this.na.arrange(this,E,this.jg)}},at.gh=function(a){var y=this.naturalBounds,x=nh(this);if(Io(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Lt.allocAt(0,0);b--;){var te=y[b];if((te.visible||te===x)&&(ei(E.set(a),te.transform),te.ca(E)))return Lt.free(E),!0}return Lt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},at.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},at.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)}}at.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}at.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 gi&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}at.se=function(){return!(this.type===Xn.TableRow||this.type===Xn.TableColumn)};function Ph(a){return a.type===Xn.TableRow||a.type===Xn.TableColumn}at.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:ei(Lt.allocAt(a.x,a.y),this.transform),se=this.diagram,he=10,ve=5;if(se!==null&&(he=se.Ql("extraTouchArea"),ve=he/2),Io(-(ve*E),-(ve*E),b.width+he*E,b.height+he*E,ne.x,ne.y)){if(!this.isAtomic){E=this.O.s;var Se=E.length;if(se=Lt.alloc(),ve=(he=this.isClipping&&this.na===Xn.Spot)?this.Pb():null,he&&(ve.se()?ei(se.set(a),ve.transform):se.set(a),!ve.ca(se)))return Lt.free(se),te||Lt.free(ne),null;for(var Be=nh(this);Se--;){var Xe=E[Se];if((Xe.visible||Xe===Be)&&(Xe.se()?ei(se.set(a),Xe.transform):se.set(a),!he||Xe!==ve)){var tt=null;if(Xe instanceof Xn?tt=Xe.ic(se,y,x):Xe.pickable===!0&&Xe.ca(se)&&(tt=Xe),tt!==null&&(y!==null&&(tt=y(tt)),tt!==null&&(x===null||x(tt))))return Lt.free(se),te||Lt.free(ne),tt}}Lt.free(se)}return this.background===null&&this.areaBackground===null?(te||Lt.free(ne),null):(a=Io(0,0,b.width,b.height,ne.x,ne.y)?this:null,te||Lt.free(ne),a)}return te||Lt.free(ne),null},at.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:ei(Lt.allocAt(a.x,a.y),this.transform);if(E=Io(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,ve=Lt.alloc(),Se=nh(this);he--;){var Be=se[he];if(Be.visible||Be===Se){Be.se()?ei(ve.set(a),Be.transform):ve.set(a);var Xe=Be;Be=Be instanceof Xn?Be:null,(Be!==null?Be.ji(ve,y,x,b):Xe.ca(ve))&&Xe.pickable!==!1&&(y!==null&&(Xe=y(Xe)),Xe===null||x!==null&&!x(Xe)||b.add(Xe))}}Lt.free(ve)}return te||Lt.free(ne),E&&(this.background!==null||this.areaBackground!==null)}return te||Lt.free(ne),!1},at.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=mi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return v0(this,y,x,E),te===void 0&&mi.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var se=nh(this),he=this.O.s,ve=he.length;ve--;){var Se=he[ve];if(Se.visible||Se===se){var Be=Se.actualBounds,Xe=this.naturalBounds;Be.x>Xe.width||Be.y>Xe.height||0>Be.x+Be.width||0>Be.y+Be.height||(Be=Se,Se=Se instanceof Xn?Se:null,Xe=mi.alloc(),Xe.set(ne),(Se!==null?Se.Cf(a,y,x,b,E,Xe):$a(Be,a,b,Xe))&&(y!==null&&(Be=y(Be)),Be===null||x!==null&&!x(Be)||E.add(Be)),mi.free(Xe))}}return te===void 0&&mi.free(ne),b}return te===void 0&&mi.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))}}}at.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:ei(Lt.allocAt(a.x,a.y),this.transform),ve=se?y:ei(Lt.allocAt(y.x,y.y),this.transform),Se=he.Bf(ve),Be=0<he.x&&he.x<ne.width&&0<he.y&&he.y<ne.height||Ji(he.x,he.y,0,0,0,ne.height)<=Se||Ji(he.x,he.y,0,ne.height,ne.width,ne.height)<=Se||Ji(he.x,he.y,ne.width,ne.height,ne.width,0)<=Se||Ji(he.x,he.y,ne.width,0,0,0)<=Se;if(ne=he.zd(0,0)<=Se&&he.zd(0,ne.height)<=Se&&he.zd(ne.width,0)<=Se&&he.zd(ne.width,ne.height)<=Se,se||(Lt.free(he),Lt.free(ve)),Be){if(!this.isAtomic){he=Lt.alloc(),ve=Lt.alloc(),Se=nh(this);for(var Xe=this.O.s,tt=Xe.length;tt--;){var rt=Xe[tt];if(rt.visible||rt===Se){var ct=rt.actualBounds,Nt=this.naturalBounds;(!se||!(ct.x>Nt.width||ct.y>Nt.height||0>ct.x+ct.width||0>ct.y+ct.height))&&(rt.se()?(ct=rt.transform,ei(he.set(a),ct),ei(ve.set(y),ct)):(he.set(a),ve.set(y)),ct=rt,rt=rt instanceof Xn?rt:null,(rt!==null?rt.og(he,ve,x,b,E,te):ct.tx(he,ve,E))&&(x!==null&&(ct=x(ct)),ct===null||b!==null&&!b(ct)||te.add(ct)))}}Lt.free(he),Lt.free(ve)}return E?Be:ne}return!1};function y0(a){var y=null;return a instanceof gi&&(y=a.spot1,y===oo&&(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 gi&&(y=a.spot2,y===oo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ks),y}at.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},at.M=function(a){return this.O.M(a)},at.Gb=function(a,y){y instanceof Nr&&Ht("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Ht("Cannot make a Panel contain itself: "+this.toString()),Ht("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Ht("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 gi||Ht("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Xn.Graduated||y instanceof gi||y instanceof Lo||Ht("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 Ht("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}at.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)},at.mb=function(a){0<=a&&this.pc(a,!0)},at.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))},at.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]},at.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()}}at.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]},at.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()}}at.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},at.Hy=function(a,y){return(a=this.Fb(a))&&Dm(a,new ja(y)),this},at.By=function(a,y){return(a=this.Eb(a))&&Dm(a,new ja(y)),this},at.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},at.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},at.Fz=function(a,y){if(y===void 0&&(y=new Lt(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)},at.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&&Ht("Template cannot have .data be non-null: "+a),a.allBindings=y=new Fn;else if(y._isFrozen)return;var x=new Fn;x0(a,!1),a.qm(a,function(ve,Se){Se.th();var Be=Se.localBindings;if(Be!==null)for(xf(Se,!1),Be=Be.iterator;Be.next();){var Xe=Be.value;Xe.mode===Bg&&xf(Se,!0);var tt=Xe.sourceName;tt!==null&&(tt==="/"&&x0(ve,!0),tt=MS(Xe,ve,Se),tt!==null&&(x.add(tt),tt.srcBindings===null&&(tt.srcBindings=new Fn),tt.srcBindings.add(Xe))),y.add(Xe)}if(Se instanceof Xn&&Se.type===Xn.Table){if(0<Se.rowCount){for(ve=Se.rowDefs,Be=ve.length,Xe=0;Xe<Be;Xe++)if(tt=ve[Xe],tt!==void 0&&tt.be!==null)for(var rt=tt.be.iterator;rt.next();){var ct=rt.value;ct.xd=tt,ct.to=2,ct.wl=tt.index,y.add(ct)}}if(0<Se.columnCount){for(Se=Se.colDefs,ve=Se.length,Be=0;Be<ve;Be++)if(Xe=Se[Be],Xe!==void 0&&Xe.be!==null)for(tt=Xe.be.iterator;tt.next();)rt=tt.value,rt.xd=Xe,rt.to=1,rt.wl=Xe.index,y.add(rt)}}});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 Fn),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):nr('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+E.toString())),te instanceof ja?(ne=Qr(te.panel),E.Ai=ne===void 0?-1:ne,te.panel.bindingId=E.Ai):te instanceof qt?(ne=Qr(te),E.Ai=ne===void 0?-1:ne,te.bindingId=E.Ai):Ht("Unknown type of binding target: "+te)}y.freeze(),a instanceof Nr&&a.Zc()&&a.Va()}at.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},at.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)}}},at.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 gi&&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}at.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),ve=he!==se;ve||(se=C0(a,se),ve=C0(a,he)!==se),ve?(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;Ht("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,nr('No item template Panel found for category "'+y+'" on '+a),nr(" Using default item template."),a=new Xn,y=new Lo,y.bind(new Pa("text","",In)),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)}Pt.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)||Ht("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)||Ht("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||Ht("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()||Ht("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&&Bo(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&&Bo(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)&&Ht("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)&&Ht("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 Ki);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)&&Ht("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 ni&&(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))}}}),Pt.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){pi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=oo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=P0,this.hg=oi,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=nn(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=nn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}at=ja.prototype,at.qb=function(a){a.classType===ja&&(this.sizing=a)},at.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Qr(this)},at.wi=function(a){this.Me=a},at.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)},at.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)},at.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}at.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)&&Ht("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Fn),this.be.add(E),this},Pt.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)||Ht("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 Sn(ja,"Default",0),pg=new Sn(ja,"None",1),km=new Sn(ja,"ProportionalExtra",2);ja.className="RowColumnDefinition",ja.Default=P0,ja.None=pg,ja.ProportionalExtra=km;function gi(a,y){qt.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)}Gt(gi,qt),gi.prototype.cloneProtected=function(a){qt.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=nn(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())}at=gi.prototype,at.th=function(){qt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},at.qb=function(a){a===zn||a===yr||a===Fi||a===oi?this.geometryStretch=a:qt.prototype.qb.call(this,a)},at.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Qr(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],ve,Se,Be,Xe,tt,rt,ct=0,Nt=yn(),Mt=2;Mt<E;Mt+=2)ve=x[Mt],Se=x[Mt+1],Be=ve-se,se=Se-he,Be===0&&(Be=.001),Xe=se/Be,tt=Math.atan2(se,Be),rt=Math.sqrt(Be*Be+se*se),Nt.push([Be,tt,Xe,rt]),ct+=rt,se=ve,he=Se;se=x[0],he=x[1],Be=b.measuredBounds.width,b instanceof gi&&(Be-=b.strokeWidth),1>Be&&(Be=1),E=x=Be,ve=ne/2,Se=ve!==0,Mt=0,rt=Nt[Mt],Be=rt[0],tt=rt[1],Xe=rt[2],rt=rt[3];for(var zt=0;.1<=ct;){if(zt===0&&(Se?(E=x,E-=ve,ct-=ve,Se=!1):E=x,E===0&&(E=1)),E>ct){Ln(Nt);return}E>rt?(zt=E-rt,E=rt):zt=0;var Ut=Math.sqrt(E*E/(1+Xe*Xe));if(0>Be&&(Ut=-Ut),se+=Ut,he+=Xe*Ut,a.translate(se,he),a.rotate(tt),a.translate(-(ne/2),-(te/2)),zt===0&&b.hh(a,y),a.translate(ne/2,te/2),a.rotate(-tt),a.translate(-se,-he),ct-=E,rt-=E,zt!==0){if(Mt++,Mt===Nt.length){Ln(Nt);return}rt=Nt[Mt],Be=rt[0],tt=rt[1],Xe=rt[2],rt=rt[3],E=zt}}Ln(Nt)}}at.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 Ki&&se.category==="Selection"&&se.adornedObject instanceof gi&&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 ve=E.startX;he=E.startY;var Se=E.endX,Be=E.endY;E=Math.min(ve,Se);var Xe=Math.min(he,Be);ve=Math.abs(Se-ve),he=Math.abs(Be-he),a.beginPath(),a.rect(E,Xe,ve,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)ve=E.startX,he=E.startY,Se=E.endX,Be=E.endY,E=Math.abs(Se-ve)/2,Xe=Math.abs(Be-he)/2,ve=Math.min(ve,Se)+E,he=Math.min(he,Be)+Xe,a.beginPath(),a.moveTo(ve,he-Xe),a.bezierCurveTo(ve+tn.wg*E,he-Xe,ve+E,he-tn.wg*Xe,ve+E,he),a.bezierCurveTo(ve+E,he+tn.wg*Xe,ve+tn.wg*E,he+Xe,ve,he+Xe),a.bezierCurveTo(ve-tn.wg*E,he+Xe,ve-E,he+tn.wg*Xe,ve-E,he),a.bezierCurveTo(ve-E,he-tn.wg*Xe,ve-tn.wg*E,he-Xe,ve,he-Xe),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,Xe=0;Xe<he;Xe++){ve=E.s[Xe],a.beginPath(),a.moveTo(ve.startX,ve.startY),Se=ve.segments.s,Be=Se.length;for(var tt=null,rt=0;rt<Be;rt++){var ct=Se[rt];switch(ct.type){case xa:a.moveTo(ct.endX,ct.endY);break;case Mo:a.lineTo(ct.endX,ct.endY);break;case ss:a.bezierCurveTo(ct.point1X,ct.point1Y,ct.point2X,ct.point2Y,ct.endX,ct.endY);break;case Pl:a.quadraticCurveTo(ct.point1X,ct.point1Y,ct.endX,ct.endY);break;case ma:if(ct.radiusX===ct.radiusY){var Nt=Math.PI/180;a.arc(ct.point1X,ct.point1Y,ct.radiusX,ct.startAngle*Nt,(ct.startAngle+ct.sweepAngle)*Nt,0>ct.sweepAngle,tt!==null?tt.endX:ve.startX,tt!==null?tt.endY:ve.startY)}else if(tt=rl(ct,ve),Nt=tt.length,Nt===0)a.lineTo(ct.centerX,ct.centerY);else for(var Mt=0;Mt<Nt;Mt++){var zt=tt[Mt];Mt===0&&a.lineTo(zt[0],zt[1]),a.bezierCurveTo(zt[2],zt[3],zt[4],zt[5],zt[6],zt[7])}break;case zl:if(Mt=Nt=0,tt!==null&&tt.type===ma){if(tt=rl(tt,ve),zt=tt.length,zt===0){a.lineTo(ct.endX,ct.endY);break}tt=tt[zt-1]||null,tt!==null&&(Nt=tt[6],Mt=tt[7])}else Nt=tt!==null?tt.endX:ve.startX,Mt=tt!==null?tt.endY:ve.startY;if(tt=Hs(ct,ve,Nt,Mt),Nt=tt.length,Nt===0){a.lineTo(ct.endX,ct.endY);break}for(Mt=0;Mt<Nt;Mt++)zt=tt[Mt],a.bezierCurveTo(zt[2],zt[3],zt[4],zt[5],zt[6],zt[7]);break;default:Ht("Segment not of valid type: "+ct.type)}ct.isClosed&&a.closePath(),tt=ct}Se=ve.isFilled,te?ve.isShadowed?(Se===!0&&b!=="transparent"&&b!==null&&a.ng(b,ve.isEvenOdd),x!==null&&(Se&&se&&Lc(a),a.jk(),Se&&se&&qc(a))):(Lc(a),Se&&b!=="transparent"&&b!==null&&a.ng(b,ve.isEvenOdd),x!==null&&a.jk(),qc(a)):(Se&&b!==null&&a.ng(b,ve.isEvenOdd),x!==null&&a.jk()),a.Se(Xe)}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=yn(),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,Xe=E,ve=se.segments.s,Se=ve.length,Be=0;Be<Se;Be++){switch(rt=ve[Be],rt.type){case xa:fp(a,y,b,x),b.length=0,b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY,he=ne,Xe=E;break;case Mo:b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break;case ss:tn.Qe(ne,E,rt.point1X,rt.point1Y,rt.point2X,rt.point2Y,rt.endX,rt.endY,.5,b),ne=rt.endX,E=rt.endY;break;case Pl:tn.ep(ne,E,rt.point1X,rt.point1Y,rt.endX,rt.endY,.5,b),ne=rt.endX,E=rt.endY;break;case ma:if(ct=rl(rt,se),tt=ct.length,tt===0){b.push(rt.centerX),b.push(rt.centerY),ne=rt.centerX,E=rt.centerY;break}for(Nt=0;Nt<tt;Nt++)Mt=ct[Nt],tn.Qe(ne,E,Mt[2],Mt[3],Mt[4],Mt[5],Mt[6],Mt[7],.5,b),ne=Mt[6],E=Mt[7];break;case zl:if(ct=Hs(rt,se,ne,E),tt=ct.length,tt===0){b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break}for(Nt=0;Nt<tt;Nt++)Mt=ct[Nt],tn.Qe(ne,E,Mt[2],Mt[3],Mt[4],Mt[5],Mt[6],Mt[7],.5,b),ne=Mt[6],E=Mt[7];break;default:Ht("Segment not of valid type: "+rt.type)}rt.isClosed&&(b.push(he),b.push(Xe),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 Gi(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++)Xe=te[he],tn.Qe(ne,E,Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7],.5,b),ne=Xe[6],E=Xe[7];fp(a,y,b,x)}Ln(b),a.restore(),a.Vc(!1)}}}},at.kk=function(a,y,x){return!qt.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)},at.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:qt.prototype.nk.call(this,a)},at.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)}},at.ga=function(a,y){if(y===void 0&&(y=new Lt),a instanceof wr){a.Mc()&&Ht("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},at.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=Lt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),$i(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),$i(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),$i(a,b.x,b.y,0,0),Mn.free(y),Lt.free(b),a},at.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),tn.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);Ht("Unknown Geometry type: "+x.type)},at.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 ve=tn.Ze[se];typeof ve=="string"&&(ve=tn.Ze[ve]),typeof ve=="function"?(he=ve(null,100,100),A0[se]=he):Ht("Unsupported Figure: "+se)}ne=he.bounds}se=ne.width,he=ne.height,ve=ne.width;var Se=ne.height;switch(sl(this,!0)){case zn:b=x=0;break;case Vn:ve=Math.max(a-te,0),Se=Math.max(y-te,0);break;case Lr:ve=Math.max(a-te,0),b=0;break;case Hr:x=0,Se=Math.max(y-te,0)}isFinite(E.width)&&(ve=E.width),isFinite(E.height)&&(Se=E.height);var Be=this.maxSize,Xe=this.minSize;switch(x=Math.max(x-te,Xe.width),b=Math.max(b-te,Xe.height),ve=Math.min(Be.width,ve),Se=Math.min(Be.height,Se),ve=isFinite(ve)?Math.max(x,ve):Math.max(se,x),Se=isFinite(Se)?Math.max(b,Se):Math.max(he,b),x=E0(this),x){case zn:break;case Vn:se=ve,he=Se;break;case yr:x=Math.min(ve/se,Se/he),isFinite(x)||(x=1),se*=x,he*=x;break;default:Ht(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&&tn.$(this.ua.Sk,a-te)&&tn.$(this.ua.Rk,y-te)||(this.ua=gi.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),ve+te,Se+te),E.w()?(ve=E.width,Se=E.height,ve=Math.min(Be.width,ve),Se=Math.min(Be.height,Se),ve=Math.max(Xe.width,ve),Se=Math.max(Xe.height,Se),this.dc.h(0,0,ve,Se)):this.dc.assign(ne)};function E0(a){var y=a.geometryStretch;return a.Rd!==null?y===oi?Vn:y:y===oi?A0[a.figure].defaultStretch:y}at.eh=function(a,y,x,b){Is(this,a,y,x,b)},at.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},at.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,ve=-te.m21*ne,Se=te.m11*ne,Be=ne*(te.m21*te.dy-te.m22*te.dx),Xe=ne*(te.m12*te.dx-te.m11*te.dy);te=a*se+y*ve+Be,ne=a*he+y*Se+Xe,se=x*se+b*ve+Be,he=x*he+b*Se+Xe,Be=this.ig/2,ve=this.ua,ve===null&&(this.measure(1/0,1/0),ve=this.ua);var tt=ve.bounds;if(Se=!1,ve.type===$n.j)if(1.5>=this.strokeWidth)Se=tn.Ve(ve.startX,ve.startY,ve.endX,ve.endY,te,ne,se,he,E);else{if(ve.startX===ve.endX?(b=Be,Se=0):(y=(ve.endY-ve.startY)/(ve.endX-ve.startX),Se=Be/Math.sqrt(1+y*y),b=Se*y),y=yn(),a=new Lt,tn.Ve(ve.startX+b,ve.startY+Se,ve.endX+b,ve.endY+Se,te,ne,se,he,a)&&y.push(a),a=new Lt,tn.Ve(ve.startX-b,ve.startY-Se,ve.endX-b,ve.endY-Se,te,ne,se,he,a)&&y.push(a),a=new Lt,tn.Ve(ve.startX+b,ve.startY+Se,ve.startX-b,ve.startY-Se,te,ne,se,he,a)&&y.push(a),a=new Lt,tn.Ve(ve.endX+b,ve.endY+Se,ve.endX-b,ve.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(ve.type===$n.u)Se=tn.Ff(tt.x-Be,tt.y-Be,tt.x+tt.width+Be,tt.y+tt.height+Be,te,ne,se,he,E);else if(ve.type===$n.F){y=Mn.allocAt(tt.x,tt.y,tt.width,tt.height).Bc(Be,Be);e:if(y.width===0)Se=tn.Ve(y.x,y.y,y.x,y.y+y.height,te,ne,se,he,E);else if(y.height===0)Se=tn.Ve(y.x,y.y,y.x+y.width,y.y,te,ne,se,he,E);else{if(a=y.width/2,ve=y.height/2,b=y.x+a,Se=y.y+ve,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+ve*ve-he*he){E.x=NaN,E.y=NaN,Se=!1;break e}Be=Math.sqrt(a*a*x*x+ve*ve-he*he),se=(-(a*a*x*he)+a*ve*Be)/(ve*ve+a*a*x*x)+b,a=(-(a*a*x*he)-a*ve*Be)/(ve*ve+a*a*x*x)+b,ve=x*(se-b)+he+Se,he=x*(a-b)+he+Se,Math.abs((te-se)*(te-se))+Math.abs((ne-ve)*(ne-ve))<Math.abs((te-a)*(te-a))+Math.abs((ne-he)*(ne-he))?(E.x=se,E.y=ve):(E.x=a,E.y=he)}else{if(se=ve*ve,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(ve.type===$n.o){Xe=Lt.alloc();var rt=se-te,ct=he-ne,Nt=rt*rt+ct*ct,Mt=te,zt=ne;if(0<Nt&&tt.contains(Mt,zt)&&(Xe.x=Mt,Xe.y=zt,this.ca(Xe)))for(rt!==0&&.5>Math.abs(rt)?(ct*=.5/rt,rt=.5):ct!==0&&.5>Math.abs(ct)&&(rt*=.5/ct,ct=.5),Mt-=rt,zt-=ct;tt.contains(Mt,zt);)Mt-=rt,zt-=ct;for(E.x=se,E.y=he,ct=0;ct<ve.figures.count;ct++){var Ut=ve.figures.s[ct],Yt=Ut.isFilled?Mt:te,$t=Ut.isFilled?zt:ne,dn=Ut.segments;tt=Ut.startX,rt=Ut.startY;for(var ir=tt,gr=rt,hr=0;hr<dn.count;hr++){var Qn=dn.s[hr],jn=Qn.type,qr=Qn.endX,Xr=Qn.endY,Yi=!1;switch(jn){case xa:ir=qr,gr=Xr;break;case Mo:Yi=Bm(tt,rt,qr,Xr,Yt,$t,se,he,Xe);break;case ss:Yi=tn.Eo(tt,rt,Qn.point1X,Qn.point1Y,Qn.point2X,Qn.point2Y,qr,Xr,Yt,$t,se,he,.6,Xe);break;case Pl:Yi=tn.Eo(tt,rt,tt+2/3*(Qn.point1X-tt),rt+2/3*(Qn.point1Y-rt),qr+2/3*(Qn.point1X-qr),Xr+2/3*(Qn.point1Y-Xr),qr,Xr,Yt,$t,se,he,.6,Xe);break;case ma:case zl:jn=Qn.type===ma?rl(Qn,Ut):Hs(Qn,Ut,tt,rt);var Po=jn.length;if(Po===0){Yi=Bm(tt,rt,Qn.type===ma?Qn.centerX:Qn.endX,Qn.type===ma?Qn.centerY:Qn.endY,Yt,$t,se,he,Xe);break}for(Xr=null,qr=0;qr<Po;qr++){if(Xr=jn[qr],qr===0&&Bm(tt,rt,Xr[0],Xr[1],Yt,$t,se,he,Xe)){var qa=Nm(Yt,$t,Xe,Nt,E);qa<Nt&&(Nt=qa,Se=!0)}tn.Eo(Xr[0],Xr[1],Xr[2],Xr[3],Xr[4],Xr[5],Xr[6],Xr[7],Yt,$t,se,he,.6,Xe)&&(qa=Nm(Yt,$t,Xe,Nt,E),qa<Nt&&(Nt=qa,Se=!0))}qr=Xr[6],Xr=Xr[7];break;default:Ht("Unknown Segment type: "+jn)}tt=qr,rt=Xr,Yi&&(Yi=Nm(Yt,$t,Xe,Nt,E),Yi<Nt&&(Nt=Yi,Se=!0)),Qn.isClosed&&(qr=ir,Xr=gr,Bm(tt,rt,qr,Xr,Yt,$t,se,he,Xe)&&(Qn=Nm(Yt,$t,Xe,Nt,E),Qn<Nt&&(Nt=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*Be,E.y-=ne*Be,Lt.free(Xe)}else Ht("Unknown Geometry type: "+ve.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(tn.$(a,x)&&tn.$(y,b)||tn.$(E,ne)&&tn.$(te,se))return!1;var ve=!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||tn.$(he.y,a))&&(he.y<y||tn.$(he.y,y))&&(ve=!0)):(y=a<x?a:x,a=a<x?x:a,(he.x>y||tn.$(he.x,y))&&(he.x<a||tn.$(he.x,a))&&(ve=!0)),ve)}at.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,te=Lt.alloc();return te.h(x.x-b,x.y-b),a.ca(y.Ga(te))&&(te.h(x.x-b,x.bottom+b),a.ca(y.Ga(te))&&(te.h(x.right+b,x.bottom+b),a.ca(y.Ga(te))&&(te.h(x.right+b,x.y-b),a.ca(y.Ga(te))&&(E=!0)))),Lt.free(te),E},at.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=mi.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,te=a.top;a=a.bottom;var ne=Lt.alloc();if(ne.h(b,te),x.Ga(ne),this.gh(ne,!0)||(ne.h(E,te),x.Ga(ne),this.gh(ne,!0))||(ne.h(b,a),x.Ga(ne),this.gh(ne,!0))||(ne.h(E,a),x.Ga(ne),this.gh(ne,!0)))return Lt.free(ne),!0;var se=Lt.alloc(),he=Lt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),se.x=E,se.y=te,se.transform(x),ne.x=b,ne.y=te,ne.transform(x),y=!1,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)))),Lt.free(ne),mi.free(x),Lt.free(se),Lt.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)}at.tx=function(a,y,x){function b(Nt,Mt){for(var zt=Nt.length,Ut=0;Ut<zt;Ut+=2)if(Mt.zd(Nt[Ut],Nt[Ut+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,ve=ne.x+ne.width;if(ne=ne.y+ne.height,no(a.x,a.y,se,he)<=E&&no(a.x,a.y,ve,he)<=E&&no(a.x,a.y,se,ne)<=E&&no(a.x,a.y,ve,ne)<=E)return!0}if(se=y.startX,he=y.startY,ve=y.endX,ne=y.endY,y.type===$n.j){if(x=(se-ve)*(a.x-ve)+(he-ne)*(a.y-ne),Ji(a.x,a.y,se,he,ve,ne)<=(0<=(ve-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=Ji(a.x,a.y,se,he,se,ne)<=E||Ji(a.x,a.y,se,he,ve,he)<=E||Ji(a.x,a.y,ve,he,ve,ne)<=E||Ji(a.x,a.y,se,ne,ve,ne)<=E),y;if(y.type===$n.F){y=a.x-(se+ve)/2,te=a.y-(he+ne)/2;var Se=Math.abs(ve-se)/2,Be=Math.abs(ne-he)/2;if(Se===0||Be===0)return Ji(a.x,a.y,se,he,ve,ne)<=E;if(x){if(a=tn.$y(Se,Be,y,te),a*a<=E)return!0}else return!(no(y,te,-Se,0)>=E||no(y,te,0,-Be)>=E||no(y,te,0,Be)>=E||no(y,te,Se,0)>=E)}else if(y.type===$n.o){if(ve=y.bounds,te=ve.x,se=ve.y,he=ve.x+ve.width,ve=ve.y+ve.height,a.x>he&&a.x<te&&a.y>ve&&a.y<se&&Ji(a.x,a.y,te,se,te,ve)>E&&Ji(a.x,a.y,te,se,he,se)>E&&Ji(a.x,a.y,he,ve,te,ve)>E&&Ji(a.x,a.y,he,ve,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,ve=0;ve<he;ve++)switch(Be=se[ve],Be.type){case xa:case Mo:if(ne=Be.endX,Se=Be.endY,a.zd(ne,Se)>E)return!1;break;case ss:var Xe=yn();if(tn.Qe(ne,Se,Be.point1X,Be.point1Y,Be.point2X,Be.point2Y,Be.endX,Be.endY,.8,Xe),ne=b(Xe,a),Ln(Xe),ne||(ne=Be.endX,Se=Be.endY,a.zd(ne,Se)>E))return!1;break;case Pl:if(Xe=yn(),tn.ep(ne,Se,Be.point1X,Be.point1Y,Be.endX,Be.endY,.8,Xe),ne=b(Xe,a),Ln(Xe),ne||(ne=Be.endX,Se=Be.endY,a.zd(ne,Se)>E))return!1;break;case ma:case zl:Xe=Be.type===ma?rl(Be,te):Hs(Be,te,ne,Se);var tt=Xe.length;if(tt===0){if(ne=Be.type===ma?Be.centerX:Be.endX,Se=Be.type===ma?Be.centerY:Be.endY,a.zd(ne,Se)>E)return!1;break}Be=null;for(var rt=yn(),ct=0;ct<tt;ct++)if(Be=Xe[ct],rt.length=0,tn.Qe(Be[0],Be[1],Be[2],Be[3],Be[4],Be[5],Be[6],Be[7],.8,rt),b(rt,a))return Ln(rt),!1;Ln(rt),Be!==null&&(ne=Be[6],Se=Be[7]);break;default:Ht("Unknown Segment type: "+Be.type)}}return!0}}}return!1},at.qc=function(){this.ua=null},at.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)))}gi.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Fc[a.toArrow];else a.fromArrow!=="None"?b=Fc[a.fromArrow]:(b=tn.Ze[a.figure],typeof b=="string"&&(b=tn.Ze[b]),b===void 0&&Ht("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=tn.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 tn.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=$n.parse(tn.um[b],!1),Fc[b]=a,x!==b&&(Fc[x]=b),b}}return typeof y=="string"?y:y instanceof $n?a:null}Pt.Object.defineProperties(gi.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&&Bo(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=Lt.allocAt(-y.x,-y.y),Lt.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&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",gi,"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"',gi,"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"',gi,"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)||Ht("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=tn.Ze[a];typeof x=="function"?x=a:(x=tn.Ze[a.toLowerCase()])||Ht("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?Ht("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?Ht("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new qh),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:oo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Kd(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:oo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),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:oi},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))}}}),gi.prototype.intersectsRect=gi.prototype.Yc,gi.prototype.containedInRect=gi.prototype.fh,gi.prototype.getNearestIntersectionPoint=gi.prototype.rs,gi.prototype.getDocumentBounds=gi.prototype.mi,gi.prototype.getDocumentPoint=gi.prototype.ga;var Fc=new Fr,A0=new Fr;gi.className="Shape",gi.getFigureGenerators=function(){var a=new pr,y;for(y in tn.Ze)y!==y.toLowerCase()&&a.add(y,tn.Ze[y]);return a.freeze(),a},gi.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=tn.Ze;b[a]=y,b[x]=a},gi.getArrowheadGeometries=function(){var a=new pr;for(b in tn.um)if(Fc[b]===void 0){var y=$n.parse(tn.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},gi.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=$n.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Ht("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=oi,this.gg=this.fg=oo}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 qt.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}Gt(Lo,qt),Lo.prototype.cloneProtected=function(a){qt.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())}at=Lo.prototype,at.th=function(){qt.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}at.qb=function(a){a.classType===Lo?this.wrap=a:qt.prototype.qb.call(this,a)},at.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},at.v=function(){qt.prototype.v.call(this)},at.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 ve=this.isStrikethrough;sa(this,a,this.xc,!0,!1,x,b),(he||ve)&&sa(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var Se=this.oe,Be=Se.dx-(ne*Se.m21+Se.dx);Se=Se.dy-(ne*Se.m22+Se.dy);var Xe=y.scale;switch(8>(Be*Be+Se*Se)*Xe*Xe&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ml&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Be=this.spacingBelow,this.flip){case Wi:a.translate(E,0),a.scale(-1,1);break;case xi: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,Xe=(y+ne+Be)*Se,te>Xe&&(b=this.verticalAlignment,b=b.y*te-b.y*Xe+b.offsetY),Se===1&&this.ze!==null)Be=this.Cb,Be>E&&(Be=E),this.Oj(this.ze,a,0,b+y,E,ne,Be,x,se,he,ve);else if(this.Qc!==null&&this.Qb!==null)for(Xe=0;Xe<Se;Xe++){var tt=this.Qc[Xe];tt>E&&(tt=E),b+=y,this.Oj(this.Qb[Xe],a,0,b,E,ne,tt,x,se,he,ve),b+=ne+Be}switch(this.flip){case Wi:a.scale(-1,1),a.translate(-E,0);break;case xi:a.scale(1,-1),a.translate(0,-te);break;case So:a.scale(-1,-1),a.translate(-E,-te)}}},at.Oj=function(a,y,x,b,E,te,ne,se,he,ve,Se){var Be=0;if(se)he==="left"?Be=0:he==="right"?Be=E-ne:he==="center"&&(Be=(E-ne)/2),y.fillRect(x+Be,b+.25*te,ne,1);else{if(he==="left"?Be=0:he==="right"?Be=E:he==="center"&&(Be=E/2),E=Im!==null?Im(this,te):.75*te,y.fillText(a,x+Be,b+E),a=te/20|0,a===0&&(a=1),he==="right"?Be-=ne:he==="center"&&(Be-=ne/2),ve){se=jm!==null?jm(this,te):.8*te,he=x+Be,ve=b+se,E=x+Be+ne,se=b+se;var Xe=a;y.beginPath(),y.lineWidth=Xe,y.moveTo(he,ve),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+Be,te=Se,x=x+Be+ne,ne=Se,Be=a,y.beginPath(),y.lineWidth=Be,y.moveTo(b,te),y.lineTo(x,ne),y.stroke(),y.Se(),y instanceof Ml&&y.ad.classList.add("gojs-td"))}},at.kk=function(a,y,x){if(!qt.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},at.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:qt.prototype.nk.call(this,a)},at.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)}},at.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 ve=te.indexOf(`
|
|
|
`,se);ve===-1&&(ve=te.length,he=!0),se=te.substr(se,ve-se),this.formatting===vg&&(se=se.trim()),ne=Math.max(ne,Du(se)),se=ve+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,ve=this.spacingAbove+this.spacingBelow,ve=Math.max(0,mg(this)+ve),he=Math.min(this.maxLines-1,Math.max(Math.floor(he/ve+.01)-1,0)),!(he+1>=this.Qb.length))){for(this.l|=16777216,ve=this.Qb[he],y=Math.max(1,a-y);Du(ve)>y&&1<ve.length;)ve=ve.substr(0,ve.length-1);ve+=yg,y=Du(ve),this.Qb[he]=ve,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)},at.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 ve=Du(y);if(he===0||ve<=x)a.Cb=Math.max(a.Cb,ve),gg(a,y,a.Cb),b!==null&&b.h(ve,se);else{for(te=pp(a,ne),ne=ne.substr(te.length),y=pp(a,ne),ve=Du(te+y);0<y.length&&ve<=x;)te+=y,ne=ne.substr(y.length),y=pp(a,ne),ve=te+y,E&&(ve=ve.trim()),ve=Du(ve);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 Be=1;for(ve=Du(y.substr(0,Be)),Se=0;ve<=x;)Be++,Se=ve,ve=Du(y.substr(0,Be));if(Be===1){var Xe=ve;te=Math.max(te,ve)}else Xe=Se,te=Math.max(te,Se);if(Be--,1>Be&&(Be=1),gg(a,y.substr(0,Be),Xe),he++,y=y.substr(Be),a.Gc+he>a.maxLines)break}for(Se=pp(a,ne),ve=Du(y+Se);0<Se.length&&ve<=x;)y+=Se,ne=ne.substr(Se.length),Se=pp(a,ne),ve=y+Se,E&&(ve=ve.trim()),ve=Du(ve);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),Se.length===0?(Be=ve,te=Math.max(te,ve)):(Be=Se=Du(y),te=Math.max(te,Se)),gg(a,y,Be),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}Pt.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:zn},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 Sn(Lo,"None",0),b1=new Sn(Lo,"WrapFit",1),F0=new Sn(Lo,"WrapDesiredSize",2),C1=new Sn(Lo,"WrapBreakAll",3),D0=new Sn(Lo,"OverflowClip",0),Rm=new Sn(Lo,"OverflowEllipsis",1),vg=new Sn(Lo,"FormatTrim",0),P1=new Sn(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=zn,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){qt.call(this),this.Eg=null,this.qo="",this.Xg=co,this.Nk=Vn,this.Zg=this.Hd=null,this.Mk=Ri,this.Xf=zn,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;Gt(ul,qt),ul.prototype.cloneProtected=function(a){qt.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===zn||a===yr||a===Fi?this.imageStretch=a:qt.prototype.qb.call(this,a)},ul.prototype.toString=function(){return"Picture("+this.source+")#"+Qr(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=yn();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 ve=he,Se=se;this.sourceRect.w()&&(te=this.Xg.x,ne=this.Xg.y,he=this.Xg.width,se=this.Xg.height);var Be=he,Xe=se,tt=this.Nk,rt=this.Mk;switch(tt){case zn:if(this.sourceRect.w())break;Be>=b.width&&(te=te+rt.offsetX+(Be*rt.x-b.width*rt.x)),Xe>=b.height&&(ne=ne+rt.offsetY+(Xe*rt.y-b.height*rt.y)),he=Math.min(b.width,Be),se=Math.min(b.height,Xe);break;case Vn:Be=b.width,Xe=b.height;break;case yr:case Fi:tt===yr?(tt=Math.min(b.height/Xe,b.width/Be),Be*=tt,Xe*=tt):tt===Fi&&(tt=Math.max(b.height/Xe,b.width/Be),Be*=tt,Xe*=tt,Be>=b.width&&(te=(te+rt.offsetX+(Be*rt.x-b.width*rt.x)/Be)*he),Xe>=b.height&&(ne=(ne+rt.offsetY+(Xe*rt.y-b.height*rt.y)/Xe)*se),he*=1/(Be/b.width),se*=1/(Xe/b.height),Be=b.width,Xe=b.height)}tt=this.Df()*y.scale;var ct=Be*tt*Xe*tt,Nt=he*se/ct,Mt=x.__goCache;tt=null;var zt=wx;if(!E){if(x.sq&&Mt!==void 0&&4<ct&&Nt>zt*zt)for(Mt.gi===null&&(T1(Mt,4,ve,Se,x),T1(Mt,16,ve,Se,x)),E=Mt.gi,ve=E.length,Se=0;Se<ve&&E[Se].ratio*E[Se].ratio<Nt;Se++)tt=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(Ut){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Ut){this.vl=!0}}if(this.vl)return}}switch(E=Be<b.width?rt.offsetX+(b.width*rt.x-Be*rt.x):0,rt=Xe<b.height?rt.offsetY+(b.height*rt.y-Xe*rt.y):0,this.flip){case Wi:a.translate(Math.min(b.width,Be),0),a.scale(-1,1);break;case xi:a.translate(0,Math.min(b.height,Xe)),a.scale(1,-1);break;case So:a.translate(Math.min(b.width,Be),Math.min(b.height,Xe)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Mt!==void 0&&tt!==null&&tt.ratio!==1){a.save(),y=tt.ratio;try{a.drawImage(tt.source,te/y,ne/y,Math.min(tt.source.width,he/y),Math.min(tt.source.height,se/y),E,rt,Math.min(b.width,Be),Math.min(b.height,Xe)),a instanceof Ml&&(this.bt=[te/y,ne/y,Math.min(tt.source.width,he/y),Math.min(tt.source.height,se/y),E,rt,Math.min(b.width,Be),Math.min(b.height,Xe)])}catch(Ut){this.en=!1}a.restore()}else try{a.drawImage(x,te,ne,he,se,E,rt,Math.min(b.width,Be),Math.min(b.height,Xe)),a instanceof Ml&&(this.bt=[te,ne,he,se,E,rt,Math.min(b.width,Be),Math.min(b.height,Xe)])}catch(Ut){this.en=!1}switch(this.flip){case Wi:a.scale(-1,1),a.translate(-Math.min(b.width,Be),0);break;case xi:a.scale(1,-1),a.translate(0,-Math.min(b.height,Xe));break;case So:a.scale(-1,-1),a.translate(-Math.min(b.width,Be),-Math.min(b.height,Xe))}}}}},ul.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,te=sl(this,!0),ne=this.Eg,se=this.qn,he=0,ve=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,ve=se?+ne.height:ne.naturalHeight),isFinite(E.width)||te===Vn||te===Lr?(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===Hr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=ve)),b=0):ne!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ve),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)},Pt.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||Ht("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 On),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 Gi(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 Gi(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 Gi(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 Gi(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 Gi(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 Gi(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=tn.Ze;b[a]=y,b[x]=a}Os("Rectangle",function(a,y,x){a="r"+y+","+x;var b=tn.Mf[a];return b!==void 0||(b=new $n($n.u),b.endX=y,b.endY=x,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.Nf++)),b}),Os("Square",function(a,y,x){a="s"+y+","+x;var b=tn.Mf[a];return b!==void 0||(b=new $n($n.u),b.endX=y,b.endY=x,b.defaultStretch=yr,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.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=tn.Mf[b];if(E!==void 0)return E;var te=a*tn.wg;return E=new $n().add(new Ga(a,0,!0).add(new Gi(Mo,y-a,0)).add(new Gi(ss,y,a,y-te,0,y,te)).add(new Gi(Mo,y,x-a)).add(new Gi(ss,y-a,x,y,x-te,y-te,x)).add(new Gi(Mo,a,x)).add(new Gi(ss,0,x-a,te,x,0,x-te)).add(new Gi(Mo,0,a)).add(new Gi(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)),tn.Nf<tn.vm&&(tn.Mf[b]=E,tn.Nf++),E}),Os("Border","RoundedRectangle"),Os("Ellipse",function(a,y,x){a="e"+y+","+x;var b=tn.Mf[a];return b!==void 0||(b=new $n($n.F),b.endX=y,b.endY=x,b.spot1=Wu,b.spot2=Rl,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.Nf++)),b}),Os("Circle",function(a,y,x){a="c"+y+","+x;var b=tn.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,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.Nf++)),b}),Os("TriangleRight",function(a,y,x){return new $n().add(new Ga(0,0).add(new Gi(Mo,y,.5*x)).add(new Gi(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 Gi(Mo,y,0)).add(new Gi(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 Gi(Mo,0,.5*x)).add(new Gi(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 Gi(Mo,0,x)).add(new Gi(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 Gi(Mo,0,.5*x)).add(new Gi(Mo,.5*y,x)).add(new Gi(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 Gi(Mo,y,x/2)).add(new Gi(xa,y/2,0)).add(new Gi(Mo,y/2,x)))}),Os("XLine",function(a,y,x){return new $n().add(new Ga(0,x,!1).add(new Gi(Mo,y,0)).add(new Gi(xa,0,0)).add(new Gi(Mo,y,x)))}),Os("LineRight",function(a,y,x){return new $n().add(new Ga(.25*y,0,!1).add(new Gi(Mo,.75*y,.5*x)).add(new Gi(Mo,.25*y,x)))}),Os("LineDown",function(a,y,x){return new $n().add(new Ga(0,.25*x,!1).add(new Gi(Mo,.5*y,.75*x)).add(new Gi(Mo,y,.25*x)))}),Os("LineLeft",function(a,y,x){return new $n().add(new Ga(.75*y,0,!1).add(new Gi(Mo,.25*y,.5*x)).add(new Gi(Mo,.75*y,x)))}),Os("LineUp",function(a,y,x){return new $n().add(new Ga(0,.75*x,!1).add(new Gi(Mo,.5*y,.25*x)).add(new Gi(Mo,y,.75*x)))}),tn.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=ko,this.ir=null,this.jr="",this.lr=oo,this.Gq="",this.Hq=Xa,this.Pq=so,this.Kq=Pi,this.Up=null,this.Cq=127,this.zr=wo,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 Lt(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)}Gt(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},at=Nr.prototype,at.Af=function(a){Xn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},at.toString=function(){var a=Tn(this.constructor)+"#"+Qr(this);return this.data!==null&&(a+="("+In(this.data)+")"),a};function cl(a){a.P===null?a.P=new B0:a.P.nc&&(a.P=a.P.copy())}at.th=function(){Xn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},at.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))},at.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=yn();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 ni?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ki))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 mi);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=Ri;this.locationSpot.sb()&&(te=this.locationSpot);var ne=Lt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ne.yi(x.x,x.y,x.width,x.height,te),y.Lb!==null&&y.Lb.Ga(ne),ne.offset(-y.measuredBounds.x,-y.measuredBounds.y),te=y.panel;te!==null&&te!==this;)te.Lb!==null&&te.Lb.Ga(ne),ne.offset(-te.measuredBounds.x,-te.measuredBounds.y),te=te.panel;else ne.yi(y,x,b,E,te);a.rotate(this.Kb,ne.x,ne.y),Lt.free(ne)}},Nr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Nr.prototype.moveTo=function(a,y,x){a=Lt.allocAt(a,y),this.move(a,x),Lt.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 Lt),x=x.Mc()?Ri: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=Lt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof gi?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()||tn.B(y.width,a.width)&&tn.B(y.height,a.height)||0<=this.vw&&this.C(16),Mn.free(y),R0(this,!1)}},at=Nr.prototype,at.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())}},at.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 Lt(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 Ki||(y=y.animationManager,y.zb&&Ku(y,a,new Lt(b,E),x))}at.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)},at.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,Lt.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 Ki||Ku(x,a,new Lt(te,ne),y),b||y.x===te&&y.y===ne||a.g("position",new Lt(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}at.si=function(){return!0},at.Zc=function(){return!0},at.ph=function(){return!1},at.Dd=function(){return!0};function j0(a,y,x,b){y.constructor===a.constructor||H1||(H1=!0,nr('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),nr(" Old class: "+Tn(a.constructor)+", new class: "+Tn(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,ve=!1;a instanceof sr&&(se=a.isTreeLeaf,he=a.isTreeExpanded,ve=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=ve?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}at=Nr.prototype,at.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}at.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},at.N=function(){var a=this.diagram;a!==null&&!Zs(this)&&!ed(this)&&this.isVisible()&&this.Ib.w()&&a.N(Xd(this,this.Ib))},at.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))},at.Vo=function(a){a||(a=this.Ah,a!==null&&K0(a,this))},at.Wo=function(a){a||(a=this.Ah,a!==null&&V0(a,this))},at.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},at.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}at.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}at.Td=function(a){return a instanceof ni?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}at.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof ni&&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 ni&&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 Ki)){if(a.add(y),y instanceof sr){if(x&&y instanceof ni)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,ve=se.toNode;he=he===null||a.contains(he),ve=ve===null||a.contains(ve),(E?he&&ve:he||ve)&&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)}}Pt.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?Zr: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 Ki?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:so},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 Ki)){var te=x.model.undoManager;te.isEnabled&&!te.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Ki?this instanceof Ki&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(te=x.model,te.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Su(x),x=x.copy(),x!==null&&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:ko},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),cl(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(cl(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(cl(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:oo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),cl(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&Ht("Cannot make a Group a member of itself: "+this.toString()),Ht("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 ni&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?K0(a,this):this instanceof ni&&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 ni){for(x=new On,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 Ht("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:wo},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 Ki(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)}Gt(Ki,Nr),Ki.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ki.prototype.updateRelationshipsFromData=function(){},Ki.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof _n&&y instanceof gi){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 gi&&(E.ua=a)}}},Ki.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Zs(a))},Ki.prototype.Zc=function(){return!1},Ki.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)},Ki.prototype.updateAdornments=function(){},Ki.prototype.Lj=function(){},Pt.Object.defineProperties(Ki.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Ki.className="Adornment";function 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 Fn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Gt(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())},at=sr.prototype,at.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())}at.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 On),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}at.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=G1(this,a,y,x),a!==null&&a.Sl()},at.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)},at.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)}}at.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 On,y=new On;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 Er(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},at=sr.prototype,at.Mo=function(a){a===void 0&&(a=null);var y=new Er(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},at.Sd=function(a){a===void 0&&(a=null);var y=new Er(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},at.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new On,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new On,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new zr(x):Zr},at.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new On,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new zr(x):Zr},at.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new On,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new zr(x):Zr},at.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Er(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},at.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Er(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)},at=sr.prototype,at.Vo=function(a){Nr.prototype.Vo.call(this,a),a||(Sg(this),a=this.Yk,a!==null&&eS(a,this))},at.Wo=function(a){Nr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},at.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)},at.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=yn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Ln(x)}}}at.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},at.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}},at.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},at.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},at.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},at.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new On;return a(this,y),y},at.uz=function(){return Y1(this,this)};function Y1(a,y){return y=y.pg(),y===null?0:1+Y1(a,y)}at.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Er(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},at.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 Fn,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 Fn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new zr(x):Zr},at.wz=function(a){a===void 0&&(a=1/0);var y=new On;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 On;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===wh),y.Ue=!1}};function J1(a,y,x,b,E,te,ne){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 ve=se.value;if(ve.isTreeLink&&(ve=ve.To(a),ve!==null&&ve!==a)){var Se=y.contains(ve);if(Se||y.add(ve),ne){var Be=x?ve.Oo():ve.Po();he.uv=a,Be.all(function(Xe){return function(tt){return tt===Xe.uv||!tt.isTreeExpanded}}(he))&&b.Aj(ve,E),ve.oh(),ve.Zb(!1)}ve.isTreeExpanded&&(ve.wasTreeExpanded=ve.isTreeExpanded,Se||Q1(ve,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 On;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(),ve={};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 Be=x?Se.Oo():Se.Po();ve.vv=a,Be.all(function(Xe){return function(tt){return tt===Xe.vv||!tt.isTreeExpanded}}(ve))&&E.Cj(Se,te)}(2<b||Se.wasTreeExpanded)&&(Se.wasTreeExpanded=!1,_1(Se,y,x,b-1,E,te,ne))}ve={vv:ve.vv}}a.isTreeExpanded=!0}Pt.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 Sn(sr,"SpreadingNone",10),Ym=new Sn(sr,"SpreadingEvenly",11),Z0=new Sn(sr,"SpreadingPacked",12);sr.className="Node",sr.SpreadingNone=Ex,sr.SpreadingEvenly=Ym,sr.SpreadingPacked=Z0;function ni(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 On,this.$a=null,this.Sc=new Go,this.Sc.group=this,this.gl=new On,this.tb=this.$p=null,y&&Object.assign(this,y)}Gt(ni,sr),ni.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())},at=ni.prototype,at.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)}},at.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&&Ht("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&&Ht("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)},at.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 gi&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},at.eh=function(a,y,x,b){this.nf=this.$a,sr.prototype.eh.call(this,a,y,x,b)},at.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof _n||y.Va()}),sr.prototype.Va.call(this)},at.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 ni&&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 ni&&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())}at.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)},ni.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},ni.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},ni.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))},at=ni.prototype,at.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()))}}},at.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new On,b=y.iterator;b.next();){var E=b.value;if(E instanceof sr)for(E=E.linksConnected;E.next();){var te=E.value;y.contains(te)||x.add(te)}}return a&&(this.$p=x),x.iterator},at.iz=function(){var a=this.Rj();a.add(this);for(var y=new On,x=a.iterator;x.next();){var b=x.value;if(b instanceof 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},at.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new On;return a(this,y),y},at.Rj=function(){var a=new On;return nd(a,this,!0,0,!0),a.remove(this),a},at.Zb=function(a){sr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},ni.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 ni&&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}ni.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 ni&&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}ni.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,te=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===te||isNaN(x)&&isNaN(te))){for(b=E-(isNaN(b)?0:b),x=te-(isNaN(x)?0:x),te=Lt.alloc(),sr.prototype.move.call(this,a,y),a=new On,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());Lt.free(te)}},Pt.Object.defineProperties(ni.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&&Ht("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)}}}),ni.prototype.expandSubGraph=ni.prototype.expandSubGraph,ni.prototype.collapseSubGraph=ni.prototype.collapseSubGraph,ni.prototype.findSubGraphParts=ni.prototype.Rj,ni.prototype.findContainingGroupChain=ni.prototype.hz,ni.prototype.findExternalNodesConnected=ni.prototype.iz,ni.prototype.findExternalLinksConnected=ni.prototype.Lu,ni.prototype.ensureBounds=ni.prototype.Va,ni.className="Group";function Vs(a){qt.call(this),this.yb=Es,this.ko=new Mn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Gt(Vs,qt),Vs.prototype.cloneProtected=function(a){qt.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 Io(0,0,y.width,y.height,a.x,a.y)},Vs.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof ni||a instanceof Ki)||Ht("Placeholder is not inside a Group or Adornment."),a instanceof ni){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=Lt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Lt.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,te=a.adornedObject;a.angle=te.li();var ne=0;te instanceof gi&&(ne=te.strokeWidth);var se=te.Df(),he=te.naturalBounds,ve=(he.width+ne)*se;ne=(he.height+ne)*se,a.type!==Xn.Link&&(se=te.ga(a.category==="Selection"?Xa:a.locationSpot,Lt.alloc()),a.location=se,Lt.free(se)),isNaN(ve)||isNaN(ne)?(a=te.ga(Xa,Lt.alloc()),ve=Mn.allocAt(a.x,a.y,0,0),ve.Ye(te.ga(ks,a)),ve.Ye(te.ga(Bl,a)),ve.Ye(te.ga(tl,a)),ha(y,ve.width+b||0,ve.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Lt.free(a),Mn.free(ve)):(ha(y,ve+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 ni&&!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 ni&&!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 ni&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Vs.prototype.computeMemberBounds=function(a){if(!(this.part instanceof ni))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},Pt.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 Fn().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 Lt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Gt(_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())},at=_n.prototype,at.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)},at.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&&Ht("Unknown Link enum value for a Link property: "+a):Nr.prototype.qb.call(this,a)},at.Xc=function(){this.ba===null&&(this.ba=new lg)},at.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)))},at.zv=function(){return!1},at.Av=function(){},at.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=tn.bp(y),90<a&&270>a&&(a-=180);break;case Ag:a=tn.bp(y+90),90<a&&270>a&&(a-=180);break;case Mg:a=tn.bp(y-90),90<a&&270>a&&(a-=180);break;case rv:if(a=tn.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return tn.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}at=_n.prototype,at.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Nr.prototype.oh.call(this)},at.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},at.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function eS(a,y){a.wd===null&&(a.wd=new On),a.wd.add(y),a.v()}at.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)}},at.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)}},at.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=Lt.allocAt(x.x+b,x.y+E),Nr.prototype.move.call(this,a,!1),Lt.free(a)),Lh(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},_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(po),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 tn.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),tn.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),tn.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)},at=_n.prototype,at.i=function(a){return this.Nb.s[a]},at.dd=function(a,y){this.Nb.cd(a,y)},at.L=function(a,y,x){this.Nb.cd(a,new Lt(y,x))},at.Kz=function(a,y){this.Nb.Gb(a,y)},at.m=function(a,y,x){this.Nb.Gb(a,new Lt(y,x))},at.ne=function(a){this.Nb.add(a)},at.yf=function(a,y){this.Nb.add(new Lt(a,y))},at.pv=function(a){this.Nb.mb(a)},at.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 Fn,te=a.Nb.iterator;te.next();){var ne=te.value;E.add(new Lt(ne.x+y,ne.y+x).freeze())}E.freeze(),te=a.Nb,a.Nb=E,ne=a.diagram,isNaN(y)||isNaN(x)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),Gs(a)),b?Jm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&No(ne.animationManager,a,E),a.g("points",te,E)}}at.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},at.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,ve=he.length,Se=0;Se<ve;Se++){var Be=he[Se];ne=Math.min(Be.x,ne),se=Math.min(Be.y,se),Be.freeze()}if(y.freeze(),ve===te){for(te=0;te<ve;te++)if(Se=E[te],Be=he[te],Se.x-x!==Be.x-ne||Se.y-b!==Be.y-se){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&No(x.animationManager,this,y),Jm(this),this.g("points",a,y)}},at.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))}at.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())}},at.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=ci,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=ci,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),ve=y===E&&y!==null,Se=this.isOrthogonal,Be=this.curve===Jl;this.Wf=ve&&!Se?Be=!0:!1;var Xe=this.computeAdjusting()===Xs||ve;if(!Se&&!ve&&se&&he){if(se=!1,!Xe&&3<=te&&(Xe=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),se=this.adjustPoints(0,Xe,te-1,he))&&(Xe=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Xe,te-1,he)),!se)if(this.Fj(),Be){te=this.getLinkPoint(a,y,ne,!0,!1,b,E),Xe=this.getLinkPoint(b,E,x,!1,!1,a,y),se=Xe.x-te.x,he=Xe.y-te.y,ve=this.computeCurviness(),Be=Se=0;var tt=te.x+se/3,rt=te.y+he/3,ct=tt,Nt=rt;tn.B(he,0)?Nt=0<se?Nt-ve:Nt+ve:(Se=-se/he,Be=Math.sqrt(ve*ve/(Se*Se+1)),0>ve&&(Be=-Be),ct=(0>he?-1:1)*Be+tt,Nt=Se*(ct-tt)+rt),tt=te.x+2*se/3,rt=te.y+2*he/3;var Mt=tt,zt=rt;tn.B(he,0)?zt=0<se?zt-ve:zt+ve:(Mt=(0>he?-1:1)*Be+tt,zt=Se*(Mt-tt)+rt),this.Fj(),this.ne(te),this.yf(ct,Nt),this.yf(Mt,zt),this.ne(Xe),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,Xe=E,b=this.getLinkPoint(a,y,ne,!0,!1,te,Xe),E=this.getLinkPoint(te,Xe,x,!1,!1,a,y),this.hasCurviness()?(Xe=E.x-b.x,x=E.y-b.y,ne=this.computeCurviness(),a=b.x+Xe/2,y=b.y+x/2,te=a,se=y,tn.B(x,0)?se=0<Xe?se-ne:se+ne:(Xe=-Xe/x,te=Math.sqrt(ne*ne/(Xe*Xe+1)),0>ne&&(te=-te),te=(0>x?-1:1)*te+a,se=Xe*(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),Xe.mi(se),ve=se.ca(b),(he||ve)&&(ne=y.ga(_m(ne),new Lt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,E,!0,ne)),x=Xe.ga(_m(x),new Lt),this.dd(1,this.getLinkPointFromPoint(te,Xe,x,b,!1,x))),Mn.free(se))}else{Be=this.isAvoiding,Xe&&(Se&&Be||ve)&&this.Fj();var Ut=ve?this.computeCurviness():0;Be=this.getLinkPoint(a,y,ne,!0,Se,b,E),tt=ct=rt=0,(Se||!se||ve)&&(Nt=this.computeEndSegmentLength(a,y,ne,!0),tt=this.getLinkDirection(a,y,Be,ne,!0,Se,b,E),ve&&(se||ne.D(x)||!Se&&ne.x+x.x===1&&ne.y+x.y===1)&&(tt-=Se?90:30,0>Ut&&(tt-=180)),0>tt?tt+=360:360<=tt&&(tt-=360),ve&&(Nt+=Math.abs(Ut)*(Se?1:2)),tt===0?rt=Nt:tt===90?ct=Nt:tt===180?rt=-Nt:tt===270?ct=-Nt:(rt=Nt*Math.cos(tt*Math.PI/180),ct=Nt*Math.sin(tt*Math.PI/180)),ne.Mc()&&ve&&(Nt=y.ga(Ri,Lt.alloc()),Mt=Lt.allocAt(Nt.x+1e3*rt,Nt.y+1e3*ct),this.getLinkPointFromPoint(a,y,Nt,Mt,!0,Be),Lt.free(Nt),Lt.free(Mt))),Nt=this.getLinkPoint(b,E,x,!1,Se,a,y);var Yt=zt=Mt=0;if(Se||!he||ve){var $t=this.computeEndSegmentLength(b,E,x,!1);Yt=this.getLinkDirection(b,E,Nt,x,!1,Se,a,y),ve&&(he||ne.D(x)||!Se&&ne.x+x.x===1&&ne.y+x.y===1)&&(Yt+=Se?0:30,0>Ut&&(Yt+=180)),0>Yt?Yt+=360:360<=Yt&&(Yt-=360),ve&&($t+=Math.abs(Ut)*(Se?1:2)),Yt===0?Mt=$t:Yt===90?zt=$t:Yt===180?Mt=-$t:Yt===270?zt=-$t:(Mt=$t*Math.cos(Yt*Math.PI/180),zt=$t*Math.sin(Yt*Math.PI/180)),x.Mc()&&ve&&(x=E.ga(Ri,Lt.alloc()),ne=Lt.allocAt(x.x+1e3*Mt,x.y+1e3*zt),this.getLinkPointFromPoint(b,E,x,ne,!1,Nt),Lt.free(x),Lt.free(ne))}x=Be,(Se||!se||ve)&&(x=new Lt(Be.x+rt,Be.y+ct)),ne=Nt,(Se||!he||ve)&&(ne=new Lt(Nt.x+Mt,Nt.y+zt)),!Xe&&!Se&&se&&3<te&&this.adjustPoints(0,Be,te-2,ne)?this.dd(te-1,Nt):!Xe&&!Se&&he&&3<te&&this.adjustPoints(1,x,te-1,Nt)?this.dd(0,Be):!Xe&&(Se?6<=te:4<te)&&this.adjustPoints(1,x,te-2,ne)?(this.dd(0,Be),this.dd(te-1,Nt)):(this.Fj(),this.ne(Be),(Se||!se||ve)&&this.ne(x),Se&&this.addOrthoPoints(x,tt,ne,Yt,a,b),(Se||!he||ve)&&this.ne(ne),this.ne(Nt))}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 Lt),a===null||y===null)return te.assign(x),te;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var ne=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*E;var se=-a.m12*E,he=-a.m21*E,ve=a.m11*E,Se=E*(a.m21*a.dy-a.m22*a.dx),Be=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ne+b.y*he+Se,b=b.x*se+b.y*ve+Be,ne=x.x*ne+x.y*he+Se,x=x.x*se+x.y*ve+Be}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 Lt),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 ve=Qm(this,ne);if(ve!==null&&he.Gl<ve.Gl){he=Lt.alloc(),ve=Lt.alloc();var Se=new Mn(y.ga(Xa,he),y.ga(ks,ve)),Be=this.computeSpot(!b,ne);a=this.getLinkPoint(te,ne,Be,!b,E,a,y,ve),(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),Lt.free(he),Lt.free(ve)}}return se}}return x=y.ga(_m(x),Lt.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=Lt.alloc(),ne=ne.ga(_m(he),te),E&&(ne=X0(x,ne)),Lt.free(te)),this.getLinkPointFromPoint(a,y,x,ne,b,se),Lt.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(Ri,Lt.alloc()),this.pointsCount>(te?6:2)?(se=E?this.i(1):this.i(this.pointsCount-2),se=te?X0(he,se.copy()):x):(x=Lt.alloc(),se=se.ga(Ri,x),Lt.free(x)),x=Math.abs(se.x-he.x)>Math.abs(se.y-he.y)?se.x>=he.x?0:180:se.y>=he.y?90:270,Lt.free(he),he=x}return b.Mc()&&ne.Td(a)&&(he+=180,360<=he&&(he-=360)),xp(b)||(a=y.li(),a===0)||(45<=a&&135>a?he+=90:135<=a&&225>a?he+=180:225<=a&&315>a&&(he+=270),360<=he&&(he-=360)),he},_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=Ri:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===oo?ua:y)):(a=y||this.toPort,a===null?a=Ri:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===oo?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:Ri}_n.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Xs&&4<this.pointsCount?this.computeMidPoint(new Lt):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(Ri))},_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=mi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return v0(this,y,x,E),te===void 0&&mi.free(ne),!0;if(this.Yc(a,ne)){var se=!1;if(!this.isAtomic)for(var he=this.O.s,ve=he.length;ve--;){var Se=he[ve];if(Se.visible||Se===this.locationObject){var Be=Se.actualBounds,Xe=this.naturalBounds;if(!(Be.x>Xe.width||Be.y>Xe.height||0>Be.x+Be.width||0>Be.y+Be.height)){if(Be=mi.alloc(),Be.set(ne),Se instanceof Xn)se=Se.Cf(a,y,x,b,E,Be);else if(this.path===Se){if(Se instanceof gi)if(se=a,Xe=b,Se.pickable===!1)se=!1;else if(Be.multiply(Se.transform),Xe)e:{var tt=se,rt=Be;if(Se.fh(tt,rt))se=!0;else{if(rt===void 0&&(rt=Se.transform,tt.Re(Se.actualBounds))){se=!0;break e}se=tt.left,Xe=tt.right;var ct=tt.top;tt=tt.bottom;var Nt=Lt.alloc(),Mt=Lt.alloc(),zt=Lt.alloc(),Ut=mi.alloc();Ut.set(rt),Ut.bv(Se.transform),Ut.Vj(),Mt.x=Xe,Mt.y=ct,Mt.transform(Ut),Nt.x=se,Nt.y=ct,Nt.transform(Ut),rt=!1,Vd(Se,Nt,Mt,zt)?rt=!0:(Nt.x=Xe,Nt.y=tt,Nt.transform(Ut),Vd(Se,Nt,Mt,zt)?rt=!0:(Mt.x=se,Mt.y=tt,Mt.transform(Ut),Vd(Se,Nt,Mt,zt)?rt=!0:(Nt.x=se,Nt.y=ct,Nt.transform(Ut),Vd(Se,Nt,Mt,zt)&&(rt=!0)))),mi.free(Ut),Lt.free(Nt),Lt.free(Mt),Lt.free(zt),se=rt}}else se=Se.fh(se,Be)}else se=$a(Se,a,b,Be);se&&(Xe=Se,y!==null&&(Xe=y(Se)),Xe&&(x===null||x(Xe))&&E.add(Xe)),mi.free(Be)}}}return te===void 0&&mi.free(ne),se||this.background!==null||this.areaBackground!==null}return te===void 0&&mi.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(Ri).ab(x.ga(Ri))/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=yn(),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,ve=Math.sqrt(se*se+he*he);if(!tn.$(ve,0)){if(tn.$(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 Be=y.y;se=b.x-ne;var Xe=b.y-Be;for(he=Math.sqrt(se*se+Xe*Xe),tn.$(se,0)?Xe=0>Xe?-Math.PI/2:Math.PI/2:(Xe=Math.atan(Xe/Math.abs(se)),0>se&&(Xe=Math.PI-Xe)),ve=he/ve,Se=Xe-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),tn.$(y,0)||(tn.$(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*=ve,this.L(a,ne+y*Math.cos(se),Be+y*Math.sin(se)));this.dd(x,b)}}return!0;case tv:if(te=this.i(a),Be=this.i(x),!te.Xa(y)||!Be.Xa(b)){E=te.x,te=te.y,ne=Be.x,Be=Be.y,ve=(ne-E)*(ne-E)+(Be-te)*(Be-te),se=y.x,Se=y.y,he=b.x,Xe=b.y;var tt=1;if(he-se!==0){var rt=(Xe-Se)/(he-se);tt=Math.sqrt(1+1/(rt*rt))}else rt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ct=y.x,Nt=y.y,Mt=.5;ve!==0&&(Mt=((E-ct)*(E-ne)+(te-Nt)*(te-Be))/ve);var zt=E+Mt*(ne-E),Ut=te+Mt*(Be-te);y=Math.sqrt((ct-zt)*(ct-zt)+(Nt-Ut)*(Nt-Ut)),Nt<rt*(ct-zt)+Ut&&(y=-y),0<rt&&(y=-y),ct=se+Mt*(he-se),Mt=Se+Mt*(Xe-Se),rt!==0?(y=ct+y/tt,this.L(a,y,Mt-(y-ct)/rt)):this.L(a,ct,Mt+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,Be=se,ve=Se,tn.B(E.y,te.y)?tn.B(te.x,ne.x)?Se=y.y:tn.B(te.y,ne.y)&&(se=y.x):tn.B(E.x,te.x)&&(tn.B(te.y,ne.y)?se=y.x:tn.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,Xe=Se,tn.B(E.y,te.y)?tn.B(te.x,ne.x)?Se=b.y:tn.B(te.y,ne.y)&&(se=b.x):tn.B(E.x,te.x)&&(tn.B(te.y,ne.y)?se=b.x:tn.B(te.x,ne.x)&&(Se=b.y)),this.L(x-1,se,Se),Y0(this))){this.L(a+1,Be,ve),this.L(x-1,he,Xe),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 ve=Lt.alloc(),Se=Lt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&he.right>a.x||b===90&&x.y>a.y&&he.right>a.x?(ve.h(x.x,a.y),Se.h(x.x,(a.y+x.y)/2),b===180?(ve.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),Se.x=ve.x,Se.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ve.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=ve.x,Se.y=x.y):b===0&&a.x<he.left&&a.y>he.top&&a.y<he.bottom&&(ve.x=a.x,ve.y=a.y<x.y?Math.min(x.y,he.top):Math.max(x.y,he.bottom),Se.y=ve.y)):(ve.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))?ve.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ve.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,he.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ve.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,he.top),!0)),Se.x=x.x,Se.y=ve.y),ve.y>se.top&&ve.y<se.bottom&&(x.x>=se.left&&x.x<=a.x||a.x<=he.right&&a.x>=x.x?(b===90||b===270)&&(ve.h(Math.max((a.x+x.x)/2,a.x),a.y),Se.h(ve.x,x.y)):(ve.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=ve.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?(ve.h(x.x,a.y),Se.h(x.x,(a.y+x.y)/2),b===0?(ve.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),Se.x=ve.x,Se.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ve.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=ve.x,Se.y=x.y):b===180&&a.x>he.right&&a.y>he.top&&a.y<he.bottom&&(ve.x=a.x,ve.y=a.y<x.y?Math.min(x.y,he.top):Math.max(x.y,he.bottom),Se.y=ve.y)):(ve.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))?ve.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ve.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,he.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ve.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,he.top),!0)),Se.x=x.x,Se.y=ve.y),ve.y>se.top&&ve.y<se.bottom&&(x.x<=se.right&&x.x>=a.x||a.x>=he.left&&a.x<=x.x?(b===90||b===270)&&(ve.h(Math.min((a.x+x.x)/2,a.x),a.y),Se.h(ve.x,x.y)):(ve.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=ve.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?(ve.h(a.x,x.y),Se.h((a.x+x.x)/2,x.y),b===270?(ve.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),Se.x=x.x,Se.y=ve.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ve.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=ve.y):b===90&&a.y<he.top&&a.x>he.left&&a.x<he.right&&(ve.x=a.x<x.x?Math.min(x.x,he.left):Math.max(x.x,he.right),ve.y=a.y,Se.x=ve.x)):(ve.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))?ve.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ve.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,he.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ve.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,he.left),x.y,!1)),Se.x=ve.x,Se.y=x.y),ve.x>se.left&&ve.x<se.right&&(x.y>=se.top&&x.y<=a.y||a.y<=he.bottom&&a.y>=x.y?(b===0||b===180)&&(ve.h(a.x,Math.max((a.y+x.y)/2,a.y)),Se.h(x.x,ve.y)):(ve.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=ve.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?(ve.h(a.x,x.y),Se.h((a.x+x.x)/2,x.y),b===90?(ve.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),Se.x=x.x,Se.y=ve.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ve.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=ve.y):b===270&&a.y>he.bottom&&a.x>he.left&&a.x<he.right&&(ve.x=a.x<x.x?Math.min(x.x,he.left):Math.max(x.x,he.right),ve.y=a.y,Se.x=ve.x)):(ve.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))?ve.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ve.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,he.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ve.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,he.left),x.y,!1)),Se.x=ve.x,Se.y=x.y),ve.x>se.left&&ve.x<se.right&&(x.y<=se.bottom&&x.y>=a.y||a.y>=he.top&&a.y<=x.y?(b===0||b===180)&&(ve.h(a.x,Math.min((a.y+x.y)/2,a.y)),Se.h(x.x,ve.y)):(ve.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=ve.x,Se.y=x.y)));var Be=x;if(this.isAvoiding){var Xe=this.diagram;if(Xe===null||E===te||this.layer.isTemporary||!ep(Xe)||se.ca(Be)&&!te.Td(E)||he.ca(a)&&!E.Td(te))y=!1;else{var tt=tp(Xe,!0,this.containingGroup,null);if(this.segmentIndex!==17&&tt.Yj(Math.min(a.x,ve.x),Math.min(a.y,ve.y),Math.abs(a.x-ve.x),Math.abs(a.y-ve.y))&&tt.Yj(Math.min(ve.x,Se.x),Math.min(ve.y,Se.y),Math.abs(ve.x-Se.x),Math.abs(ve.y-Se.y))&&tt.Yj(Math.min(Se.x,Be.x),Math.min(Se.y,Be.y),Math.abs(Se.x-Be.x),Math.abs(Se.y-Be.y)))y=!1;else{E=a,te=Be;var rt=x=null;if(Xe.isVirtualized){Xe=tt.bounds.copy(),Xe.Bc(-tt.Ho,-tt.Go);var ct=Lt.alloc();bp(tt,a.x,a.y)||(tn.Ff(Xe.x,Xe.y,Xe.x+Xe.width,Xe.y+Xe.height,a.x,a.y,ve.x,ve.y,ct)?(x=a=ct.copy(),y=ct.ab(ve)):tn.Ff(Xe.x,Xe.y,Xe.x+Xe.width,Xe.y+Xe.height,ve.x,ve.y,Se.x,Se.y,ct)?(x=a=ct.copy(),y=ct.ab(Se)):tn.Ff(Xe.x,Xe.y,Xe.x+Xe.width,Xe.y+Xe.height,Se.x,Se.y,Be.x,Be.y,ct)&&(x=a=ct.copy(),y=ct.ab(Be))),bp(tt,Be.x,Be.y)||(tn.Ff(Xe.x,Xe.y,Xe.x+Xe.width,Xe.y+Xe.height,Be.x,Be.y,Se.x,Se.y,ct)?(rt=Be=ct.copy(),b=Se.ab(ct)):tn.Ff(Xe.x,Xe.y,Xe.x+Xe.width,Xe.y+Xe.height,Se.x,Se.y,ve.x,ve.y,ct)?(rt=Be=ct.copy(),b=ve.ab(ct)):tn.Ff(Xe.x,Xe.y,Xe.x+Xe.width,Xe.y+Xe.height,ve.x,ve.y,a.x,a.y,ct)&&(rt=Be=ct.copy(),b=a.ab(ct))),Lt.free(ct)}se=se.copy().ed(he),se.Bc(tt.Ho*tt.Os,tt.Go*tt.Os),aS(tt,a,y,Be,b,se,!0),he=Oc(tt,Be.x,Be.y),!tt.abort&&he>=Cp&&(oS(tt),se.Bc(tt.Ho*tt.Hx,tt.Go*tt.Ix),aS(tt,a,y,Be,b,se,!1),he=Oc(tt,Be.x,Be.y)),!tt.abort&&he<Cp&&Oc(tt,Be.x,Be.y)!==Fh?(J0(this,tt,Be.x,Be.y,b,!0,ne),se=this.i(2),4>this.pointsCount?(y===0||y===180?(se.x=a.x,se.y=Be.y):(se.x=Be.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?tn.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)):tn.B(se.y,ne.y)?(Math.abs(a.y-se.y)<=tt.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)&&(tn.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)):tn.B(se.x,ne.x)?(Math.abs(a.x-se.x)<=tt.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)),rt!==null&&(b===0||b===180?this.yf(te.x,rt.y):this.yf(rt.x,te.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ve.copy()),this.ne(Se.copy())),Lt.free(ve),Lt.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,ve=Oc(y,x,b),Se=x,Be=b;for(E===0?Se+=se:E===90?Be+=he:E===180?Se-=se:Be-=he,E!==ne&&ve>Jd&&Oc(y,Se,Be)!==ve-1&&(Oc(y,x-se,b)===ve-1?(E=180,Se=x-se,Be=b):Oc(y,x+se,b)===ve-1?(E=0,Se=x+se,Be=b):Oc(y,x,b-he)===ve-1?(E=270,Se=x,Be=b-he):Oc(y,x,b+he)===ve-1&&(E=90,Se=x,Be=b+he));ve>Jd&&Oc(y,Se,Be)===ve-1;)x=Se,b=Be,E===0?Se+=se:E===90?Be+=he:E===180?Se-=se:Be-=he,--ve;te?ve>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),ve>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)===ve-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)===ve-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=Ji(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=Ji(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 gi&&(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&&!tn.$(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&&!tn.$(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=Lt.allocAt(b,he),x=Lt.alloc(),x.assign(this.i(1)),te=Lt.allocAt(b,he),E=Lt.allocAt(b,he),ne=this.i(0);for(var ve,Se=this.smoothness/3,Be=1;Be<this.pointsCount-1;Be++){ve=this.i(Be);var Xe=ne,tt=ve,rt=this.i(Q0(this,ve,Be,!1));if((!tn.$(Xe.x,tt.x)||!tn.$(tt.x,rt.x))&&(!tn.$(Xe.y,tt.y)||!tn.$(tt.y,rt.y))){var ct=Se;isNaN(ct)&&(ct=this.smoothness/3);var Nt=Xe.x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-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=Lt.alloc(),te.assign(this.i(0)),E=Lt.alloc(),E.assign(te),ne=this.computeCorner(),Be=1,ve=0;Be<y;){if(Be=Q0(this,te,Be,1<Be),Se=this.i(Be),Be>=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(ve===0)for(Be=1;Be<y;)E.assign(te),Se=this.i(Be++),Ef(this,se,-b,-he,te,Se,x),te.assign(Se);break}if(ve=Q0(this,Se,Be+1,Be<y-3),Be=-b,Nt=-he,Xe=Se,Mt=this.i(ve),ct=x,tn.B(te.y,Xe.y)&&tn.B(Xe.x,Mt.x))if(rt=Math.min(ne,Math.abs(Xe.x-E.x)/2),rt=Ut=Math.min(rt,Math.abs(Mt.y-Xe.y)/2),tn.B(rt,0))Ef(this,se,Be,Nt,te,Xe,ct),te.assign(Xe);else{var Yt=Xe.x,$t=Xe.y;tt=Yt,zt=$t,Xe.x>te.x?Yt=Xe.x-rt:Yt=Xe.x+rt,Mt.y>Xe.y?zt=Xe.y+Ut:zt=Xe.y-Ut,Mt=Lt.allocAt(Yt,$t),Ef(this,se,Be,Nt,te,Mt,ct),Lt.free(Mt),Um(se,Xe.x+Be,Xe.y+Nt,tt+Be,zt+Nt),te.h(tt,zt)}else tn.B(te.x,Xe.x)&&tn.B(Xe.y,Mt.y)?(rt=Math.min(ne,Math.abs(Xe.y-E.y)/2),rt=Ut=Math.min(rt,Math.abs(Mt.x-Xe.x)/2),tn.B(Ut,0)?(Ef(this,se,Be,Nt,te,Xe,ct),te.assign(Xe)):(Yt=Xe.x,$t=Xe.y,tt=Yt,zt=$t,Xe.y>te.y?$t=Xe.y-rt:$t=Xe.y+rt,Mt.x>Xe.x?tt=Xe.x+Ut:tt=Xe.x-Ut,Mt=Lt.allocAt(Yt,$t),Ef(this,se,Be,Nt,te,Mt,ct),Lt.free(Mt),Um(se,Xe.x+Be,Xe.y+Nt,tt+Be,zt+Nt),te.h(tt,zt))):(Ef(this,se,Be,Nt,te,Xe,ct),te.assign(Xe));E.assign(Se),Be=ve}Lt.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),tn.$(a,0)?y:tn.$(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;tn.$(y.x,te.x)&&tn.$(y.y,te.y);){if(x>=E)return E-1;te=a.i(x++)}if(!tn.$(y.x,te.x)&&!tn.$(y.y,te.y))return x-1;for(var ne=te;tn.$(y.x,te.x)&&tn.$(te.x,ne.x)&&(!b||(y.y>=te.y?te.y>=ne.y:te.y<=ne.y))||tn.$(y.y,te.y)&&tn.$(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=[],ve=0;if(a.isVisible()&&(ve=Ax(a,E,te,he)),0<ve){if(tn.B(E.y,te.y))if(E.x<te.x)for(var Se=0;Se<ve;){var Be=Math.max(E.x,Math.min(he[Se++]-se,te.x-ne));y.lineTo(Be+x,te.y+b);for(var Xe=Be+x,tt=Math.min(Be+ne,te.x);Se<ve&&(Be=he[Se],Be<tt+ne);)Se++,tt=Math.min(Be+se,te.x);Be=te.y-ne+b,tt+=x;var rt=te.y+b;a.curve===Th?yp(y,tt,rt,!1):Eh(y,Xe,Be,tt,Be,tt,rt)}else for(--ve;0<=ve;){for(Se=Math.min(E.x,Math.max(he[ve--]+se,te.x+ne)),y.lineTo(Se+x,te.y+b),Xe=Se+x,Be=Math.max(Se-ne,te.x);0<=ve&&(Se=he[ve],Se>Be-ne);)ve--,Be=Math.max(Se-se,te.x);Se=te.y-ne+b,Be+=x,tt=te.y+b,a.curve===Th?yp(y,Be,tt,!1):Eh(y,Xe,Se,Be,Se,Be,tt)}else if(tn.B(E.x,te.x))if(E.y<te.y)for(Se=0;Se<ve;){for(Be=Math.max(E.y,Math.min(he[Se++]-se,te.y-ne)),y.lineTo(te.x+x,Be+b),Xe=Be+b,Be=Math.min(Be+ne,te.y);Se<ve&&(tt=he[Se],tt<Be+ne);)Se++,Be=Math.min(tt+se,te.y);tt=te.x-ne+x,rt=te.x+x,Be+=b,a.curve===Th?yp(y,rt,Be,!1):Eh(y,tt,Xe,tt,Be,rt,Be)}else for(--ve;0<=ve;){for(Se=Math.min(E.y,Math.max(he[ve--]+se,te.y+ne)),y.lineTo(te.x+x,Se+b),Xe=Se+b,Se=Math.max(Se-ne,te.y);0<=ve&&(Be=he[ve],Be>Se-ne);)ve--,Se=Math.max(Be-se,te.y);Be=te.x-ne+x,tt=te.x+x,Se+=b,a.curve===Th?yp(y,tt,Se,!1):Eh(y,Be,Xe,Be,Se,tt,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,Be){return Se-Be}),b.length;if(he.isVisible()&&Yd(he)){var ve=he.routeBounds;ve.w()&&a.routeBounds.Yc(ve)&&!a.usesSamePort(he)&&(ve=he.path,ve!==null&&ve.Ed()&&Mx(y,x,b,he))}}}}}return 0<b.length&&b.sort(function(Se,Be){return Se-Be}),b.length}function Mx(a,y,x,b){for(var E=tn.B(a.y,y.y),te=b.pointsCount,ne=b.i(0),se=Lt.alloc(),he=1;he<te;he++){var ve=b.i(he);if(he<te-1){var Se=b.i(he+1);if(ne.y===ve.y&&ve.y===Se.y){if(ve.x>ne.x&&Se.x>=ve.x||ve.x<ne.x&&Se.x<=ve.x)continue}else if(ne.x===ve.x&&ve.x===Se.x&&(ve.y>ne.y&&Se.y>=ve.y||ve.y<ne.y&&Se.y<=ve.y))continue}e:{Se=a.x;var Be=a.y,Xe=y.x,tt=y.y,rt=ne.x;ne=ne.y;var ct=ve.x,Nt=ve.y;if(tn.B(Se,Xe)){if(!tn.B(Be,tt)&&tn.B(ne,Nt)&&Math.min(Be,tt)<ne&&Math.max(Be,tt)>ne&&Math.min(rt,ct)<Se&&Math.max(rt,ct)>Se&&!tn.B(rt,ct)){se.x=Se,se.y=ne,Se=!0;break e}}else if(tn.B(Be,tt)&&tn.B(rt,ct)&&Math.min(Se,Xe)<rt&&Math.max(Se,Xe)>rt&&Math.min(ne,Nt)<Be&&Math.max(ne,Nt)>Be&&!tn.B(ne,Nt)){se.x=rt,se.y=Be,Se=!0;break e}se.x=0,se.y=0,Se=!1}Se&&(E?x.push(se.x):x.push(se.y)),ne=ve}Lt.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 ve=ne[he];(ve.ef===y&&ve.ff===b&&ve.uf===x&&ve.vf===E||ve.ef===x&&ve.ff===E&&ve.uf===y&&ve.vf===b)&&(te===null?te=ve:(a===null&&(a=[],a.push(te)),a.push(ve)))}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&&(gn(y.links,a),y.Sl()))}_n.prototype.ph=function(){return!0},Pt.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:oo},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Ll(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&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:oo},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Ll(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&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?Zr: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 gi?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),tn.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);tn.Dl(E.x,E.y,ne.x,ne.y,se.x,se.y,he.x,he.y,.5,a),y=Math.min(he.x,y),x=Math.min(he.y,x),E=he}else for(E=this.i(0),te=this.i(1),y=Math.min(E.x,te.x),x=Math.min(E.y,te.y),a.h(E.x,E.y,0,0),a.Ye(te),E=2;E<b;E++)te=this.i(E),y=Math.min(te.x,y),x=Math.min(te.y,x),a.Ye(te);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Lt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||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);tn.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):tn.$(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 Fn,b=0;b<a.length/2;b++)E=new Lt(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var te=a[E];if(!rn(te)||typeof te.x!="number"||isNaN(te.x)||typeof te.y!="number"||isNaN(te.y)){b=!1;break}}if(b)for(x=new Fn,b=0;b<a.length;b++)E=a[b],x.add(new Lt(E.x,E.y).freeze())}}else if(a instanceof Fn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Ht("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&&No(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 Sn(_n,"Normal",1),Lx=new Sn(_n,"Orthogonal",2),Tx=new Sn(_n,"AvoidsNodes",6),nS=new Sn(_n,"AvoidsNodesStraight",7),Xs=new Sn(_n,"None",0),Jl=new Sn(_n,"Bezier",9),Th=new Sn(_n,"JumpGap",10),wp=new Sn(_n,"JumpOver",11),bg=new Sn(_n,"End",17),ev=new Sn(_n,"Scale",18),tv=new Sn(_n,"Stretch",19),Cg=new Sn(_n,"OrientAlong",21),Pg=new Sn(_n,"OrientPlus90",22),Eg=new Sn(_n,"OrientMinus90",23),$0=new Sn(_n,"OrientOpposite",24),nv=new Sn(_n,"OrientUpright",25),Ag=new Sn(_n,"OrientPlus90Upright",26),Mg=new Sn(_n,"OrientMinus90Upright",27),rv=new Sn(_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){pi(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){pi(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}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 ve=y|0,Se=x|0,Be=a.ac[ve][Se];if(Be>=Jd&&Be<Cp)for(E?Se+=b:ve+=b,Be+=1;te<=ve&&ve<=ne&&se<=Se&&Se<=he&&!(Be>=a.ac[ve][Se]);)a.ac[ve][Se]=Be,Be+=1,E?Se+=b:ve+=b;if(ve=E?Se:ve,E)if(0<b)for(x+=b;x<ve;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>ve;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<ve;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>ve;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 ve=Fh,Se=Jd;for(a.ac[y][x]=Se;ve===Fh&&y>te&&y<ne&&x>se&&x<he;)Se+=1,a.ac[y][x]=Se,E?x+=b:y+=b,ve=a.ac[y][x]}function av(a,y,x,b,E,te,ne,se,he){y|=0,x|=0;var ve=Fh,Se=Cp;for(a.ac[y][x]=Se;ve===Fh&&y>te&&y<ne&&x>se&&x<he;)a.ac[y][x]=Se,E?x+=b:y+=b,ve=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 ve=b.x,Se=b.y;if(bp(a,ve,Se))if(ve-=a.Nd,ve/=a.rc,Se-=a.Od,Se/=a.sc,1>=Math.abs(se-ve)&&1>=Math.abs(he-Se))a.abort=!0;else{var Be=te.x;b=te.y,y=te.x+te.width;var Xe=te.y+te.height;Be-=a.Nd,Be/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Xe-=a.Od,Xe/=a.sc,te=Math.max(0,Math.min(a.di,Be|0)),y=Math.min(a.di,Math.max(0,y|0)),Be=Math.max(0,Math.min(a.ei,b|0)),Xe=Math.min(a.ei,Math.max(0,Xe|0)),b=a.ac,se|=0,he|=0,ve|=0,Se|=0;var tt=x===0||x===90?1:-1;if(x=x===90||x===270,b[se][he]===Fh?(ov(a,se,he,tt,x,te,y,Be,Xe),ov(a,se,he,1,!x,te,y,Be,Xe),ov(a,se,he,-1,!x,te,y,Be,Xe)):ov(a,se,he,tt,x,se,he,se,he),b[ve][Se]===Fh?(av(a,ve,Se,E===0||E===90?1:-1,E===90||E===270,te,y,Be,Xe),av(a,ve,Se,1,!(E===90||E===270),te,y,Be,Xe),av(a,ve,Se,-1,!(E===90||E===270),te,y,Be,Xe)):av(a,ve,Se,tt,x,ve,Se,ve,Se),x=yn(),ne&&sS(a,ve,Se,E,se,he,x))for((x[0]!==ve||x[1]!==Se)&&(x.unshift(Se),x.unshift(ve)),(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],ve=x[te+1];y>E?E++:y<E?E--:ve>ne?ne++:ve<ne&&ne--,b[E][ne]=a++,E!==y||ne!==ve;);else kc(a,se,he,1,!1,te,y,Be,Xe),kc(a,se,he,-1,!1,te,y,Be,Xe),kc(a,se,he,1,!0,te,y,Be,Xe),kc(a,se,he,-1,!0,te,y,Be,Xe);Ln(x)}}}}function sS(a,y,x,b,E,te,ne){for(var se=a.ac,he=y,ve=x;;){if(he===E&&ve===te)return!0;var Se=he,Be=ve;if(b===0)if(Se<E)Se++;else break;else if(b===90)if(Be<te)Be++;else break;else if(b===180)if(Se>E)Se--;else break;else if(Be>te)Be--;else break;var Xe=se[Se][Be];if(Xe===0||Xe===ey)break;he=Se,ve=Be}for(;;){if(Se=b,Be=he,Xe=ve,b===0?Xe<te?(Se=90,Xe++):Xe>te&&(Se=270,Xe--):b===90?Be<E?(Se=0,Be++):Be>E&&(Se=180,Be--):b===180?Xe<te?(Se=90,Xe++):Xe>te&&(Se=270,Xe--):Be<E?(Se=0,Be++):Be>E&&(Se=180,Be--),Be=se[Be][Xe],Se!==b&&Be!==0&&Be!==ey){if(ne.push(he),ne.push(ve),sS(a,he,ve,Se,E,te,ne))return!0;ne.pop(),ne.pop()}if(se[he][ve]=ey,b===0){if(he===y)return!1;he--}else if(b===90){if(ve===x)return!1;ve--}else if(b===180){if(he===y)return!1;he++}else{if(ve===x)return!1;ve++}}}Pt.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(){pi(this),this.port=this.node=null,this.pe=[],this.ap=!1}Lf.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
|
`+b.toString())}return y};function 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 ni?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,Lt.alloc()),he=a.port.ga(ks,Lt.alloc());for(E=Mn.allocAt(se.x,se.y,0,0),E.Ye(he),Lt.free(se),Lt.free(he),se=Lt.allocAt(E.x+E.width/2,E.y+E.height/2),he=a.port.li(),ne=ne.iterator;ne.next();){var ve=ne.value;if(ve.isVisible()&&ve.fromPort!==ve.toPort){var Se=ve.fromPort===a.port||ve.fromNode!==null&&ve.fromNode.Td(b),Be=ve.computeSpot(Se,a.port);if(Be.$c()&&(Se=Se?ve.toPort:ve.fromPort,Se!==null)){var Xe=Se.part;if(Xe!==null){var tt=Xe.findVisibleNode();tt!==null&&tt!==Xe&&(Xe=tt,Se=Xe.port),Se=ve.computeOtherPoint(Xe,Se),Xe=se.ab(Se),Xe-=he,0>Xe?Xe+=360:360<=Xe&&(Xe-=360),Be=Fx(E,Be,Xe,ve.isOrthogonal),Be===0?(Be=4,180<Xe&&(Xe-=360)):Be===90?(Be=8,270<Xe&&(Xe-=360)):Be===180?Be=2:(Be=1,90>Xe&&(Xe+=360)),tt=a.pe[te],tt===void 0?(tt=new ty(ve,Xe,Be),a.pe[te]=tt):(tt.link=ve,tt.angle=Xe,tt.Nc=Be),tt.hv.set(Se),te++}}}}for(Lt.free(se),a.pe.sort(Lf.prototype.j),he=a.pe.length,b=-1,te=se=0;te<he;te++)ne=a.pe[te],ne!==void 0&&(ne.Nc!==b&&(b=ne.Nc,se=0),ne.Uo=se,se++);for(b=-1,se=0,te=he-1;0<=te;te--)he=a.pe[te],he!==void 0&&(he.Nc!==b&&(b=he.Nc,se=he.Uo+1),he.Gl=se);if(te=a.pe,Be=a.port,b=a.node.portSpreading,se=Lt.alloc(),he=Lt.alloc(),ne=Lt.alloc(),ve=Lt.alloc(),Be.ga(Xa,se),Be.ga(Bl,he),Be.ga(ks,ne),Be.ga(tl,ve),tt=Xe=Se=Be=0,b===Z0)for(var rt=0;rt<te.length;rt++){var ct=te[rt];if(ct!==null){var Nt=ct.link.computeThickness();switch(ct.Nc){case 8:Xe+=Nt;break;case 2:tt+=Nt;break;case 1:Be+=Nt;break;default:case 4:Se+=Nt}}}var Mt=rt=0,zt=1,Ut=ct=0;for(Nt=0;Nt<te.length;Nt++){var Yt=te[Nt];if(Yt!==null){if(rt!==Yt.Nc){switch(rt=Yt.Nc,rt){case 8:var $t=ne;Mt=ve;break;case 2:$t=ve,Mt=se;break;case 1:$t=se,Mt=he;break;default:case 4:$t=he,Mt=ne}switch(ct=Mt.x-$t.x,Ut=Mt.y-$t.y,rt){case 8:Xe>Math.abs(ct)?(zt=Math.abs(ct)/Xe,Xe=Math.abs(ct)):zt=1;break;case 2:tt>Math.abs(Ut)?(zt=Math.abs(Ut)/tt,tt=Math.abs(Ut)):zt=1;break;case 1:Be>Math.abs(ct)?(zt=Math.abs(ct)/Be,Be=Math.abs(ct)):zt=1;break;default:case 4:Se>Math.abs(Ut)?(zt=Math.abs(Ut)/Se,Se=Math.abs(Ut)):zt=1}Mt=0}var dn=Yt.Zo;if(b===Z0){switch(Yt=Yt.link.computeThickness(),Yt*=zt,dn.set($t),rt){case 8:dn.x=$t.x+ct/2+Xe/2-Mt-Yt/2;break;case 2:dn.y=$t.y+Ut/2+tt/2-Mt-Yt/2;break;case 1:dn.x=$t.x+ct/2-Be/2+Mt+Yt/2;break;default:case 4:dn.y=$t.y+Ut/2-Se/2+Mt+Yt/2}Mt+=Yt}else{var ir=.5;b===Ym&&(ir=(Yt.Uo+1)/(Yt.Gl+1)),dn.x=$t.x+ct*ir,dn.y=$t.y+Ut*ir}}}for(Lt.free(se),Lt.free(he),Lt.free(ne),Lt.free(ve),$t=a.pe,te=0;te<$t.length;te++)b=$t[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 Lt,this.Gl=this.Uo=0,this.Zo=new Lt,this.Ju=0}ty.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},ty.className="LinkInfo";function Go(a){pi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Lt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}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=Tn(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 hn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof ni?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 On;a instanceof hn?(rd(this,y,a.nodes,!0,this.rh,!0,!1,!0),rd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof ni?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,ve=he.width;he=he.height,se.moveTo(b,E),se instanceof ni&&(se.rh=!1),b+=Math.max(ve,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,ve=he.width;he=he.height,se.moveTo(x,b),se instanceof ni&&(se.rh=!1),x+=Math.max(ve,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 ni&&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 ni&&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 On;return a instanceof hn?(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 ni?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},Pt.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){pi(this),this.Sc=a,this.wf=new On,this.ye=new On,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 On,this.ye=new On,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 ni&&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},at=To.prototype,at.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},at.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},at.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}at.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},at.ki=function(a){return a===null?null:this.Es.I(a)},at.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}}at.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},at.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))}at.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},at.Lo=function(a){return a===null?null:this.zs.I(a)},at.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},at.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))}},at.Ko=function(){for(var a=yn(),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=yn(),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=yn(),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=yn(),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 Fn;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 On,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},Pt.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){pi(this),this.ob=a,this.j=new Mn(0,0,10,10).freeze(),this.o=new Lt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Fn,this.mg=new Fn}Va.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Fn,this.mg=new Fn},Va.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Qr(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;rn(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 ni)){x=Mn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Ri);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}Pt.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 ni)&&(a=a.locationObject.ga(Ri),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(te/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new On,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new On,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new On,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new Fn,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){pi(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#"+Qr(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},Pt.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)}Gt(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:Ht("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 ni)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,ve=Mn.alloc(),Se=Math.max(this.cellSize.width,1);if(!isFinite(Se))for(var Be=Se=0;Be<E.length;Be++){var Xe=this.ni(E[Be],ve);Se=Math.max(Se,Xe.width)}if(Se=Math.max(Se+se,1),Be=Math.max(this.cellSize.height,1),!isFinite(Be))for(Xe=Be=0;Xe<E.length;Xe++){var tt=this.ni(E[Xe],ve);Be=Math.max(Be,tt.height)}Be=Math.max(Be+he,1),Xe=this.arrangement;for(var rt=tt=this.arrangementOrigin.x,ct=this.arrangementOrigin.y,Nt=0,Mt=0,zt=0;zt<E.length;zt++){var Ut=E[zt],Yt=this.ni(Ut,ve),$t=Math.ceil((Yt.width+se)/Se)*Se,dn=Math.ceil((Yt.height+he)/Be)*Be;switch(Xe){case Ju:var ir=Math.abs(rt-Yt.width);break;default:ir=rt+Yt.width}switch((0<te&&Nt>te-1||0<ne&&0<Nt&&ir-tt>ne)&&(b.push(new Mn(0,ct,ne+se,Mt)),Nt=0,rt=tt,ct+=Mt,Mt=0),Mt=Math.max(Mt,dn),Xe){case Ju:Yt=-Yt.width;break;default:Yt=0}switch(Ut.moveTo(rt+Yt,ct),Xe){case Ju:rt-=$t;break;default:rt+=$t}Nt++}b.push(new Mn(0,ct,ne+se,Mt)),Mn.free(ve);break;case Dg:for(he=ne,Se=te,Be=y,Xe=x,ne=Mn.alloc(),tt=Math.max(this.cellSize.width,1),te=ct=ve=0,se=Lt.alloc(),rt=0;rt<E.length;rt++)Mt=E[rt],Nt=this.ni(Mt,ne),Mt=Ah(Mt,Mt.locationObject,Mt.locationSpot,se),ve=Math.max(ve,Mt.x),ct=Math.max(ct,Nt.width-Mt.x),te=Math.max(te,Mt.y);switch(rt=this.arrangement,rt){case Ju:ve+=Be;break;default:ct+=Be}tt=isFinite(tt)?Math.max(tt+Be,1):Math.max(ve+ct,1);var gr=Mt=this.arrangementOrigin.x;for(zt=this.arrangementOrigin.y,ct=0,he>=ve&&(he-=ve),ve=Ut=0,$t=Math.max(this.cellSize.height,1),Yt=te=0,dn=!0,Nt=Lt.alloc(),ir=0;ir<E.length;ir++){var hr=E[ir],Qn=this.ni(hr,ne),jn=Ah(hr,hr.locationObject,hr.locationSpot,se);if(0<ct)switch(rt){case Ju:gr=(gr-Mt-(Qn.width-jn.x))/tt,gr=tn.$(Math.round(gr),gr)?Math.round(gr):Math.floor(gr),gr=gr*tt+Mt;break;default:gr=(gr-Mt+jn.x)/tt,gr=tn.$(Math.round(gr),gr)?Math.round(gr):Math.ceil(gr),gr=gr*tt+Mt}else switch(rt){case Ju:Ut=gr+jn.x+Qn.width;break;default:Ut=gr-jn.x}switch(rt){case Ju:var qr=-(gr+jn.x)+Ut;break;default:qr=gr+Qn.width-jn.x-Ut}if(0<Se&&ct>Se-1||0<he&&0<ct&&qr>he){for(b.push(new Mn(0,dn?zt-te:zt,he+Be,Yt+te+Xe)),gr=0;gr<ct&&ir!==ct;gr++){qr=E[ir-ct+gr];var Xr=Ah(qr,qr.locationObject,qr.locationSpot,Nt);qr.moveTo(qr.position.x,qr.position.y+te-Xr.y)}Yt+=Xe,zt=dn?zt+Yt:zt+(Yt+te),ct=Yt=te=0,gr=Mt,dn=!1}switch(gr===Mt&&(ve=rt===Ju?Math.max(ve,Qn.width-jn.x):Math.min(ve,-jn.x)),te=Math.max(te,jn.y),Yt=Math.max(Yt,Qn.height-jn.y),isFinite($t)&&(Yt=Math.max(Yt,Math.max(Qn.height,$t)-jn.y)),dn?hr.moveTo(gr-jn.x,zt-jn.y):hr.moveTo(gr-jn.x,zt),rt){case Ju:gr-=jn.x+Be;break;default:gr+=Qn.width-jn.x+Be}ct++}if(b.push(new Mn(0,zt,he+Be,(dn?Yt:Yt+te)+Xe)),E.length!==ct)for(he=0;he<ct;he++)Se=E[E.length-ct+he],Be=Ah(Se,Se.locationObject,Se.locationSpot,se),Se.moveTo(Se.position.x,Se.position.y+te-Be.y);if(Lt.free(se),Lt.free(Nt),rt===Ju)for(E=0;E<b.length;E++)te=b[E],te.width+=ve,te.x-=ve;else for(E=0;E<b.length;E++)te=b[E],te.x>ve&&(te.width+=te.x-ve,te.x=ve);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 Lt(E+y/2-(te+E),ne-x/2)):this.commitLayers(b,new Lt(E-y/2,ne-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},ds.prototype.commitLayers=function(){};function cS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Pt.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 Sn(ds,"Position",0),Dg=new Sn(ds,"Location",1),lv=new Sn(ds,"LeftToRight",2),Ju=new Sn(ds,"RightToLeft",3),ay=new Sn(ds,"Forward",4),uv=new Sn(ds,"Reverse",5),Og=new Sn(ds,"Ascending",6),cv=new Sn(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 ho(){this.On=new On,this.Dn=new On,this.Pa=new On,this.cf=new pr,this.bf=new pr,this.aj=new pr,this.H=null,this.tp=!1}at=ho.prototype,at.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},at.Xe=function(a){this.H=a},at.oi=function(a){if(a instanceof sr){if(this.On.add(a),a instanceof ni){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 Ki||this.Pa.add(a);y=a.data,y===null||a instanceof Ki||(a instanceof _n?this.bf.add(y,a):this.cf.add(y,a))},at.pc=function(a){if(a.Ej(),a instanceof sr){if(this.On.remove(a),a instanceof ni){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 Ki||this.Pa.remove(a);y=a.data,y===null||a instanceof Ki||(a instanceof _n?this.bf.remove(y):this.cf.remove(y))},at.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 ni)&&Ht('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 ni||Ht('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||Ht('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=yn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=yn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=yn(),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)}},ho.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},ho.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)}}ho.prototype.insertLink=function(){return null},ho.prototype.resolveReferencesForData=function(){},ho.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,nr('No Group template found for category "'+x+'"'),nr(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(pS||(pS=!0,nr('No Node template found for category "'+x+'"'),nr(" Using default node template")),y=a.ny))),y}ho.prototype.getLinkCategoryForData=function(){return""},ho.prototype.setLinkCategoryForData=function(){},ho.prototype.setFromNodeForLink=function(){},ho.prototype.setToNodeForLink=function(){},ho.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,nr('No Link template found for category "'+a+'"'),nr(" Using default link template")),x=y.my)),x},ho.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},ho.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},ho.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Yh(this.diagram,a,!1),this.unresolveReferencesForPart(a))},ho.prototype.unresolveReferencesForPart=function(){},ho.prototype.removeDataForLink=function(){},ho.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},ho.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)},ho.prototype.findLinkForKey=function(){return null},at=ho.prototype,at.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},at.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof sr?a:null)},at.Kc=function(a){return a===null?null:this.bf.I(a)},at.ms=function(a){for(var y=0;y<arguments.length;++y);y=new On;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var te=0;te<arguments.length;te++){var ne=arguments[te];if(rn(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator},at.ls=function(a){for(var y=0;y<arguments.length;++y);y=new On;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var te=0;te<arguments.length;te++){var ne=arguments[te];if(rn(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(bn(te)){if(!bn(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(rn(y)&&rn(x)){if(!sy(a,y,x))return!1}else if(y!==x)return!1;return!0}ho.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"&&rn(ne)&&hS(this,ne),y.isModified=!0}else if(x===Oa){var se=a.oldValue;b==="nodeDataArray"&&rn(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,ve=a.object;ve===y.model?(he==="nodeKeyProperty"||he==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ve,he),y.isModified=!0}else if(x===fa||x===Oa){var Se=a.change===fa,Be=Se?a.newParam:a.oldParam,Xe=Se?a.newValue:a.oldValue,tt=this.aj.I(a.object);if(Array.isArray(tt))for(a=0;a<tt.length;a++){var rt=tt[a];if(Se)Tm(rt,Xe,Be,!0);else if(!(0>Be)){var ct=Be+fg(rt);rt.pc(ct,!0),w0(rt,ct,Be)}}y.isModified=!0}}finally{y.aa=!0}}}}},ho.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)},ho.prototype.rp=function(){for(var a=this.H.model,y=new On,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(ne){ne.data===null||y.contains(ne.data)||E.push(ne.data)}),this.parts.each(function(ne){ne.data===null||y.contains(ne.data)||E.push(ne.data)}),E.forEach(function(ne){ES(a,ne,!1)}),b=0;b<x.length;b++){var te=x[b];this.Lc(te)===null&&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()},ho.prototype.refreshDataBoundLinks=function(){},ho.prototype.updateRelationshipsFromData=function(){},ho.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=yn()),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(bn(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(bn(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}}}}ho.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new pr;if(bn(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 On;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 ve=se.pg();ve!==null&&(ve=b.I(ve),ve!==null?(x.qe(he.data,x.wa(ve.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(Be){Be.key.data!==null&&Se.add(Be.key.data,Be.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 ni&&te instanceof ni)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}ho.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),rn(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)),rn(E)&&(x.data=E)));return x},Pt.Object.defineProperties(ho.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}}}),ho.prototype.updateAllRelationshipsFromData=ho.prototype.rp,ho.prototype.findLinksByExample=ho.prototype.ls,ho.prototype.findNodesByExample=ho.prototype.ms,ho.prototype.findLinkForData=ho.prototype.Kc,ho.prototype.findNodeForData=ho.prototype.ii,ho.prototype.findPartForData=ho.prototype.Lc,ho.prototype.findNodeForKey=ho.prototype.Vb,ho.prototype.removeModeledPart=ho.prototype.ip,ho.prototype.removeModeledParts=ho.prototype.Gs,ho.prototype.rebuildParts=ho.prototype.Wd;var pS=!1,gS=!1,mS=!1;ho.className="PartManager";function ns(a){ho.apply(this,arguments)}Gt(ns,ho),ns.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},ns.prototype.addModeledParts=function(a){for(ho.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=ho.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(ho.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 ve=this.Kc(a.object);if(ve!==null){var Se=a.newValue;typeof Se=="string"&&(ve.fromPortId=Se)}}else if(E==="linkToPortId"){var Be=this.Kc(a.object);if(Be!==null){var Xe=a.newValue;typeof Xe=="string"&&(Be.toPortId=Xe)}}else if(E==="nodeGroupKey"){var tt=this.Lc(a.object);if(tt!==null){var rt=a.newValue;if(rt!==void 0){var ct=this.Vb(rt);ct instanceof ni?tt.containingGroup=ct:tt.containingGroup=null}else tt.containingGroup=null}}else if(E==="linkLabelKeys"){var Nt=this.Kc(a.object);if(Nt!==null){var Mt=a.oldValue,zt=a.newValue;Array.isArray(Mt)&&Mt.forEach(function(jn){0<=zt.indexOf(jn)||(jn=y.Vb(jn),jn!==null&&(jn.labeledLink=null))}),Array.isArray(zt)&&zt.forEach(function(jn){jn=y.Vb(jn),jn!==null&&(jn.labeledLink=Nt)})}}else if(E==="linkCategory"){var Ut=this.Kc(a.object),Yt=a.newValue;Ut!==null&&typeof Yt=="string"&&(Ut.category=Yt)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===fa){var $t=a.newValue;if(E==="linkDataArray"&&typeof $t=="object"&&$t!==null)yS(this,$t);else if(E==="linkLabelKeys"&&od($t)){var dn=this.Kc(a.object),ir=this.Vb($t);dn!==null&&ir!==null&&(ir.labeledLink=dn)}x.isModified=!0}else if(b===Oa){var gr=a.oldValue;if(E==="linkDataArray"&&typeof gr=="object"&&gr!==null)this.ip(gr);else if(E==="linkLabelKeys"&&od(gr)){var hr=this.Vb(gr);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 On,b=y.linkDataArray;b.forEach(function(te){x.add(te)});var E=[];this.links.each(function(te){te.data===null||x.contains(te.data)||E.push(te.data)}),E.forEach(function(te){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 On().addAll(y);var ne=new On;a.labelNodes.each(function(se){se.data!==null&&(se=b.wa(se.data),se!==void 0&&ne.add(se))}),y=ne.copy(),y.hp(E),E=E.copy(),E.hp(ne),(0<y.count||0<E.count)&&(y.each(function(se){se=x.Vb(se),se!==null&&se.labeledLink===a&&(se.labeledLink=null)}),E.each(function(se){se=x.Vb(se),se!==null&&se.labeledLink!==a&&(se.labeledLink=a)}))}}else!(a instanceof Ki)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof ni)&&(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 ni&&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 ni&&(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 ni)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=ho.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(){ho.apply(this,arguments),this.Sg=null}Gt(uu,ho);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(ho.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),ve=a.newValue;if(he!==null&&typeof ve=="string"){var Se=he.kh();Se!==null&&(Se.category=ve)}}y.isModified=!0}}else if(x===Ko){var Be=a.propertyName;a.object===y.model&&Be==="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){ho.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 On,this.il=new On,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,pi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new 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 Fn,this.Wg=!1,this.o=null,this.undoManager=new Yo,a!==void 0&&(bn(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)+":"+In(E)}}return y},xr.prototype.xA=function(a){a.change!==il&&Ht("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 On,te=new On,ne=new On,se=this.vh;a.changes.each(function(Be){Be.model===x&&(Be.modelChange==="nodeDataArray"?Be.change===fa?E.add(Be.newValue):Be.change===Oa&&ne.add(Be.oldValue):x.lb(Be.object)?te.add(Be.object):Be.change!==Ko||x.modelData!==Be.object&&Be.propertyName!=="modelData"?Be.object!==null&&(se&&se.contains(Be.object)?se.get(Be.object).each(function(Xe){x.lb(Xe)&&te.add(Xe)}):Be.object instanceof xr||x.ri()&&x.Jc(Be.object)||bS(x,Be.object).each(function(Xe){te.add(Xe)})):b=!0)});var he=this.il;he.clear(),E.each(function(Be){he.add(x.wa(Be)),y||te.add(Be)});var ve=this.kl;ve.clear(),ne.each(function(Be){ve.add(x.wa(Be)),y&&te.add(Be)}),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<ve.count&&(Se===null&&(Se={}),y?Se.insertedNodeKeys=ve.Fa():Se.removedNodeKeys=ve.Fa()),ve.clear(),he.clear(),Se},xr.prototype.cloneDeep=function(a){return Pp(this,a,!0)};function Pp(a,y,x,b,E,te){function ne(Be,Xe){se?(Be.__gohashid===void 0&&te.push(Be),b.set(Be,Xe)):(Be=Xi++,b.set(Be,Xe),E.set(Be,y))}if(!rn(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 ve=he.key;if(he.value===y&&(ve=b.get(ve)))return ve}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 Lt||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 Sn)return y;if(y instanceof Fn)he=new Fn().addAll(Pp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof On)he=new On().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(Be){delete Be.__gohashid}),he}at=xr.prototype,at.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},at.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},at.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,rn(y)&&(a.dm(y),a.modelData=y)}at.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)},at.kv=function(a){xS(this,a),a=a.nodeDataArray,bn(a)&&(this.dm(a),this.nodeDataArray=a)};function wS(a,y){function x(E,te){if((te=te.part)&&(te=te.data,E!==te)){var ne=b.get(E);ne===null?(ne=new On,ne.add(te),b.add(E,ne)):ne.add(te)}}var b=a.vh;b===null&&(b=new 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 On,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(rn(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}at.Pv=function(a,y){var x=this,b=!1,E=new On,te=new On,ne=new On,se=this.vh;a.changes.each(function(Se){Se.model===x&&(Se.modelChange==="nodeDataArray"?Se.change===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(Be){x.lb(Be)&&te.add(Be)}):Se.object instanceof xr||x.ri()&&x.Jc(Se.object)||bS(x,Se.object).each(function(Be){te.add(Be)})):b=!0)});var he=this.il;he.clear(),E.each(function(Se){he.add(x.wa(Se)),y||te.add(Se)});var ve=this.kl;return ve.clear(),ne.each(function(Se){ve.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<ve.count&&(a+=(y?this.Wv:this.Yv)+id(this,ve.Fa(),!0)),ve.clear(),he.clear(),a},at.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)&&Ht("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)},at.$x=function(a,y){a.change!==il&&Ht("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 }'},at.yA=function(a,y){return this.$x(a,y)},at.np=function(a){return a===void 0&&(a=Ng(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},at.toJSON=function(a){return this.np(a)},at.Zw=function(a){var y=null;if(typeof a=="string")try{y=Dt.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Ht("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Ht("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},at.Ky=function(a){return this.Zw(a)},xr.constructGraphLinksModel=function(){return new xr},at=xr.prototype,at.dm=function(a){if(bn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(rn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Ht("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(rn(a)){for(y in a)if(x=a[y],rn(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 Fn,b=0;b<x.length/2;b++)E.add(new Lt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Ox(a)}return a},at.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()):bn(a)?id(this,a):rn(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 dr;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 Lt)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 Sn&&(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 Fn){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 Lt(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,rn(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}at.Pe=function(a){return this.Lt.add(a),this},at.ik=function(a){this.Lt.remove(a)},at.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)},at.cb=function(a,y,x,b,E,te,ne){Ra(this,"",a,y,x,b,E,te,ne)},at.g=function(a,y,x,b,E){Ra(this,"",Ko,a,this,y,x,b,E)},at.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 ve=new Zo;ve.model=a,ve.change=x,ve.modelChange=y,ve.propertyName=b,ve.object=E,ve.oldValue=te,ve.oldParam=se,ve.newValue=ne,ve.newParam=he,a.ds(ve)}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)),Ro(x,b,E)}else a.change===fa?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,rn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&gn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&wn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!bn(b)&&a.propertyName&&(b=Sa(a.object,a.propertyName)),bn(b)&&typeof x=="number"&&(a=a.newValue,y?gn(b,x):wn(b,x,a))):Ht("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Oa?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,rn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&wn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&gn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!bn(b)&&a.propertyName&&(b=Sa(a.object,a.propertyName)),bn(b)&&typeof x=="number"&&(a=a.oldValue,y?wn(b,x,a):gn(b,x))):Ht("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==il&&Ht("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}},at=xr.prototype,at.La=function(a,y){y===void 0&&(y=""),Ra(this,"SourceChanged",il,y,a,null,null)},at.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Sa(a,y),y!==void 0)){if(od(y))return y;Ht("Key value for node data "+a+" is not a number or a string: "+y)}}},at.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&&(Ro(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 Ro(a,x,y)}};function od(a){return typeof a=="number"||typeof a=="string"}at.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},at.hc=function(a){return a===null&&Ht("Model.findNodeDataForKey:key must not be null"),a!==void 0&&od(a)?this.kb.I(a):null},at.$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))){Ro(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Ro(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Ro(a,y,x)}}}}},at.xf=function(a){a!==null&&(Ni(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&&Ht("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,wn(a.Tc,b,y)),Ra(a,"nodeDataArray",fa,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}at.Fy=function(a){if(bn(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)},at.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;gn(a.Tc,b)}Ra(a,"nodeDataArray",Oa,"nodeDataArray",a,y,null,b,null),a.qp(y)}at.nA=function(a){if(bn(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)},at.$z=function(a){if(a!==this.nodeDataArray&&bn(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()}},at.jp=function(a,y){y!==void 0&&(a=kg(this,a),a instanceof On&&this.Vf.add(y,a))},at.Lv=function(){},at.fm=function(){},at.em=function(){},at.qp=function(){};function Qu(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new On,a.Vf.add(y,b)),b.add(x)}}function _u(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof On&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function kg(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof On?a:null)}at.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),rn(a)&&pi(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 pi(b),b}if(x&&rn(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)),Ro(x,b,te)}return pi(x),x}return y instanceof Lt||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 qt&&(AS=!0,nr('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),nr(" Is that really your intent?"));var b=Sa(a,y);b!==x&&(Ro(a,y,x),this.Fs(a,y,b,x))},at=xr.prototype,at.set=function(a,y,x){this.setDataProperty(a,y,x)},at.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])}},at.Ay=function(a,y){this.ts(a,-1,y)},at.ts=function(a,y,x){0>y&&(y=a.length),wn(a,y,x),Ra(this,"",fa,"",a,null,x,null,y)},at.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Ht("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];gn(a,y),Ra(this,"",Oa,"",a,x,null,y,null)},at.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;Ht("getCategoryForNodeData found a non-string category for "+a+": "+y)},at.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&&(Ro(a,x,y),Ra(this,"nodeCategory",Ko,x,a,b,y))}else Ro(a,x,y)}},at.lm=function(a,y){this.jm(y,this.Ro(a))},at.Tl=function(){return!1},at.Wj=function(){return!1},at.ri=function(){return!1},at.xs=function(){return!1},at.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]:Dt.go!==void 0&&Dt.go[a]?Dt.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 Ro(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){}}Pt.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===""&&Ht("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Ht("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];rn(E)||Ht("Model.nodeDataArray must only contain Objects, not: "+E),Ni(E)}for(this.Tc=a,b=new Fn,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=Dt.JSON.parse(a)}catch(te){}else typeof a=="object"?x=a:Ht("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=Dt[b])),typeof E=="function"&&(a=new E)}catch(te){}a===null||a instanceof xr?y=a:Ht("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=Ro,Ou.Brush=uo,Ou.ChangedEvent=Zo,Ou.Geometry=$n,Ou.Margin=kr,Ou.Panel=Xn,Ou.Point=Lt,Ou.Rect=Mn,Ou.Size=qn,Ou.Spot=wr,Ou.Transaction=Ja,Ou.UndoManager=Yo;function Pa(a,y,x,b){pi(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=LS,this.wk=null):(this.el=Bg,this.wk=b),this.st=new On}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},at=Pa.prototype,at.qb=function(a){a.classType===Pa&&(this.mode=a)},at.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return this._isFrozen=!1,this},at.Kx=function(a){return a===void 0&&(a=null),this.mode=Bg,this.backConverter=a,this},at.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},at.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)}at.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==="")nr("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!==""&&Ro(a,x,te);else try{if(x!==""){var ne=E(te,a);Ro(a,x,ne)}else E(te,a)}catch(se){}}}},at.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):Ro(y,x,ne);else if(he!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ve=b.itemIndex,Se=b.panel.itemArray;he.ov(Se,ve),he.ts(Se,ve,ne)}}else try{if(x!==""){var Be=te(ne,y,he);he!==null?he.setDataProperty(y,x,Be):Ro(y,x,Be)}else{var Xe=te(ne,y,he);if(Xe!==void 0&&he!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var tt=b.itemIndex,rt=b.panel.itemArray;he.ov(rt,tt),he.ts(rt,tt,Xe)}}}catch(ct){}}finally{this.st.remove(a)}}}},Pt.Object.defineProperties(Pa.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&En(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&En(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&En(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&En(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&En(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&En(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&En(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&En(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 Sn(Pa,"OneWay",1),Bg=new Sn(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=In,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 On,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&&(bn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Gt(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},at=ji.prototype,at.clear=function(){xr.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},at.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)+":"+In(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},at.Qv=function(a,y){this.linkKeyProperty===""&&Ht("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 On,te=new On,ne=new On,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(Be){b.Jc(Be)&&te.add(Be)}):Se.object instanceof xr||b.lb(Se.object)||TS(b,Se.object).each(function(Be){te.add(Be)})))});var he=this.il;he.clear(),E.each(function(Se){he.add(b.Ac(Se)),y||te.add(Se)});var ve=this.kl;return ve.clear(),ne.each(function(Se){ve.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<ve.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ve.Fa():x.removedLinkKeys=ve.Fa()),ve.clear(),he.clear(),x},at.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},at.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)},at.Rv=function(){var a=xr.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+id(this,this.linkDataArray,!0);return a+y},at.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 On,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];fv(a,y,E,E,x)}return x}at.Pv=function(a,y){this.linkKeyProperty===""&&Ht("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 On,te=new On,ne=new On,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(Be){b.Jc(Be)&&te.add(Be)}):Se.object instanceof xr||b.lb(Se.object)||TS(b,Se.object).each(function(Be){te.add(Be)})))});var he=this.il;he.clear(),E.each(function(Se){he.add(b.Ac(Se)),y||te.add(Se)});var ve=this.kl;return ve.clear(),ne.each(function(Se){ve.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<ve.count&&(a+=(y?this.Vv:this.Xv)+id(this,ve.Fa(),!0)),ve.clear(),he.clear(),a},at.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)&&Ht("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),Ro(x,b,E);return}}else if(a.change===fa){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,rn(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,rn(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)}},at=ji.prototype,at.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),Ro(x,this.nodeKeyProperty,a),this.xf(x))}return a}},at.yx=function(a){return Ql(this,a,!0)},at.wv=function(a,y){Ep(this,a,y,!0)},at.Bx=function(a){return Ql(this,a,!1)},at.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;Ht((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),Ro(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 Ro(y,E,x)}}at.zx=function(a){return gv(this,a,!0)},at.xv=function(a,y){Ap(this,a,y,!0)},at.Cx=function(a){return gv(this,a,!1)},at.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&&(Ro(y,E,x),Ra(a,b?"linkFromPortId":"linkToPortId",Ko,E,y,te,x),typeof E=="string"&&a.La(y,E))}else Ro(y,E,x)}}at.Ef=function(a){if(a===null)return mv;var y=this.je;return y===""?mv:(a=Sa(a,y),a===void 0?mv:a)},at.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(Ro(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 Ro(a,x,y)}},at.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 Ht(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},at.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&&Ht(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},at.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Sa(a,y),y!==void 0)){if(od(y))return y;Ht("Key value for link data "+a+" is not a number or a string: "+y)}}},at.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&&(Ro(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 Ro(a,x,y)}},at.jh=function(a){return a===null&&Ht("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&od(a)?this.wb.I(a):null},at.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))){Ro(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ro(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ro(a,y,x)}}}}},at.Jc=function(a){return a===null?!1:this.$f.contains(a)},at.fi=function(a){a!==null&&(Ni(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&&Ht("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)}at.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)},at.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)}at.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)},at.Zz=function(a){if(this.linkKeyProperty===""&&Ht("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&bn(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)}at.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):pv(this,a,!0),rn(a)&&(pi(a),this.lf!==""&&Ro(a,this.lf,void 0),this.mf!==""&&Ro(a,this.mf,void 0),this.je!==""&&Ro(a,this.je,[])),a},at.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Sa(a,y)},at.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Sa(a,y),y!==void 0)){if(od(y))return y;Ht("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},at.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),Ro(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 Ro(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||Ro(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&&(Ro(a,y,x),this.Fs(a,y,b,x))},at=ji.prototype,at.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])}},at.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;Ro(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,Ro(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,ve=0;ve<se;ve++)ne[ve]===E&&(ne[ve]=te,Ra(this,"linkLabelKeys",fa,he,b,E,te,ve,ve))}},at.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Ro(a,b,x),Ra(this,"nodeGroupKey",Ko,b,a,y,x),typeof b=="string"&&this.La(a,b)}},at.Lv=function(){xr.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},at.fm=function(a){xr.prototype.fm.call(this,a),a=this.wa(a);var y=kg(this,a);if(y!==null){var x=yn();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)}},at.em=function(a){xr.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Qu(this,y,a)},at.qp=function(a){xr.prototype.qp.call(this,a);var y=this.lh(a);_u(this,y,a)},at.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;Ht("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&&(Ro(a,x,y),Ra(this,"linkCategory",Ko,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ro(a,x,y)}},ji.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},at=ji.prototype,at.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))}at.Wj=function(){return!0},at.ri=function(){return!0},at.xs=function(){return!0},at.Xj=function(){return!0},Pt.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];rn(E)||Ht("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),Ni(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Fn,E=0;E<x;E++){var te=a[E],ne=this.Ac(te);ne===void 0||this.wb.I(ne)!==null?b.add(te):this.wb.add(ne,te)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),te=this.Ac(E),te!==void 0&&this.wb.add(te,E)}for(b=new On,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,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&&(bn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Gt(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},at=Qs.prototype,at.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)+":"+In(E)}}return y},at.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},at.gp=function(a){xr.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},at.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Ht("applyIncrementalJson cannot change Model properties"),xr.prototype.fp.call(this,a)},at.Vl=function(a){return a},at.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Sa(a,y),y!==void 0)){if(od(y))return y;Ht("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},at.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),Ro(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 Ro(a,x,y)}},at.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Sa(a,y),y===void 0)?"":typeof y=="string"?y:(Ht("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&&(Ro(a,x,y),Ra(this,"parentLinkCategory",Ko,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ro(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||Ro(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&&(Ro(a,y,x),this.Fs(a,y,b,x))},at=Qs.prototype,at.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)},at.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Ro(a,b,x),Ra(this,"nodeParentKey",Ko,b,a,y,x),typeof b=="string"&&this.La(a,b)}},at.fm=function(a){xr.prototype.fm.call(this,a),a=this.wa(a);var y=kg(this,a);if(y!==null){var x=yn();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)}},at.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)},at.qp=function(a){xr.prototype.qp.call(this,a);var y=this.mh(a);_u(this,y,a)},at.lm=function(a,y){xr.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},at.Tl=function(){return!0},at.xs=function(){return!0},Pt.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 Lt,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)}Gt($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 Fn;y.addAll(a.iterator),a=new Fn;var x=new Fn,b=this.sort(y),E,te,ne=this.Jp,se=this.arrangement,he=this.nodeDiameterFormula,ve=this.radius;(!isFinite(ve)||0>=ve)&&(ve=NaN);var Se=this.aspectRatio;(!isFinite(Se)||0>=Se)&&(Se=1);var Be=this.startAngle;isFinite(Be)||(Be=0);var Xe=this.sweepAngle;if((!isFinite(Xe)||360<Xe||1>Xe)&&(Xe=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 Fn,b.addAll(a),b.addAll(x)):(this.arrangement===Nu&&x.reverse(),b=new Fn,b.addAll(x),b.addAll(a))}he=b.length;for(var tt=te=E=0;tt<b.length;tt++){var rt=Be+Xe*te*(this.direction===_s?1:-1)/he,ct=b.M(tt).diameter;isNaN(ct)&&(ct=ld(b.M(tt),rt)),360>Xe&&(tt===0||tt===b.length-1)&&(ct/=2),E+=ct,te++}if(isNaN(ve)||se===Nu){if(isNaN(y)&&(y=6),se!==ku&&se!==Nu){for(te=-1/0,ne=0;ne<he;ne++)tt=b.M(ne),E=b.M(ne===he-1?0:ne+1),isNaN(tt.diameter)&&ld(tt,0),isNaN(E.diameter)&&ld(E,0),te=Math.max(te,(tt.diameter+E.diameter)/2);ne=te+y,se===Dh?ve=(te+y)/(2*Math.PI/he):ve=vv(this,ne*(360<=Xe?he:he-1),Se,Be*Math.PI/180,Xe*Math.PI/180)}else ve=vv(this,E+(360<=Xe?he:he-1)*(se!==Nu?y:1.6*y),Se,Be*Math.PI/180,Xe*Math.PI/180);te=ve*Se}else if(te=ve*Se,tt=py(this,ve,te,Be*Math.PI/180,Xe*Math.PI/180),isNaN(y))(se===ku||se===Nu)&&(y=(tt-E)/(360<=Xe?he:he-1));else if(se===ku||se===Nu)tt=(tt-E)/(360<=Xe?he:he-1),tt<y?(ve=vv(this,E+y*(360<=Xe?he:he-1),Se,Be*Math.PI/180,Xe*Math.PI/180),te=ve*Se):y=tt;else{for(ne=-1/0,E=0;E<he;E++)rt=b.M(E),ct=b.M(E===he-1?0:E+1),isNaN(rt.diameter)&&ld(rt,0),isNaN(ct.diameter)&&ld(ct,0),ne=Math.max(ne,(rt.diameter+ct.diameter)/2);ne+=y,E=vv(this,ne*(360<=Xe?he:he-1),Se,Be*Math.PI/180,Xe*Math.PI/180),E>ve?(ve=E,te=ve*Se):ne=tt/(360<=Xe?he:he-1)}if(this.kw=se,this.lc=ve,this.Zm=Se,this.lw=Be,this.Wp=Xe,this.Ti=y,this.me=te,this.Jp=ne,y=b,b=this.kw,se=this.lc,ve=this.lw,Se=this.Wp,Be=this.Ti,Xe=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,Xe,ve,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,Xe,ve,Be+(y+he)/2)/Math.PI;break;case Dh:ne=Se/y.length}if(this.direction===Qd){switch(b){case ad:Rg(this,a,ve,sd);break;case ku:jg(this,a,ve,sd);break;case Dh:Ig(this,a,Se/2,ve,sd)}switch(b){case ad:Rg(this,x,ve+ne,_s);break;case ku:jg(this,x,ve+ne,_s);break;case Dh:Ig(this,x,Se/2,ve+ne,_s)}}else{switch(b){case ad:Rg(this,x,ve,sd);break;case ku:jg(this,x,ve,sd);break;case Dh:Ig(this,x,Se/2,ve,sd)}switch(b){case ad:Rg(this,a,ve+ne,_s);break;case ku:jg(this,a,ve+ne,_s);break;case Dh:Ig(this,a,Se/2,ve+ne,_s)}}}else switch(b){case ad:Rg(this,y,ve,this.direction);break;case ku:jg(this,y,ve,this.direction);break;case Dh:Ig(this,y,Se,ve,this.direction);break;case Nu:kS(this,y,Se,ve,this.direction)}else kS(this,y,Se,ve-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 ve=b+(E===_s?he*x/(360<=te?se:se-1):-(he*x)/se),Se=y.M(he),Be=ne*Math.tan(ve)/a;Be=Math.sqrt((ne*ne+a*a*Be*Be)/(1+Be*Be)),Se.centerX=Be*Math.cos(ve),Se.centerY=Be*Math.sin(ve),Se.actualAngle=180*ve/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 ve=y.M(he),Se=y.M(he===se-1?0:he+1),Be=te*Math.sin(x);ve.centerX=E*Math.cos(x),ve.centerY=Be,ve.actualAngle=180*x/Math.PI,isNaN(ve.diameter)&&ld(ve,0),isNaN(Se.diameter)&&ld(Se,0),ve=yv(a,E,te,b===_s?x:-x,(ve.diameter+Se.diameter)/2+ne),x+=b===_s?ve:-ve}}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 ve=y.M(he);ve.centerX=E*Math.cos(x),ve.centerY=te*Math.sin(x),ve.actualAngle=180*x/Math.PI,ve=yv(a,E,te,b===_s?x:-x,ne),x+=b===_s?ve:-ve}}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),ve=a.me*Math.sin(b*Math.PI/180),Se=y.Fa();if(Se.length===3)Se[0].centerX=te,Se[0].centerY=0,Se[1].centerX=Se[0].centerX-Se[0].width/2-Se[1].width/2-ne,Se[1].y=Se[0].y,Se[2].centerX=(Se[0].centerX+Se[1].centerX)/2,Se[2].y=Se[0].y-Se[2].height-ne;else if(Se.length===4)Se[0].centerX=te,Se[0].centerY=0,Se[2].centerX=-Se[0].centerX,Se[2].centerY=Se[0].centerY,Se[1].centerX=0,Se[1].y=Math.min(Se[0].y,Se[2].y)-Se[1].height-ne,Se[3].centerX=0,Se[3].y=Math.max(Se[0].y+Se[0].height+ne,Se[2].y+Se[2].height+ne);else{te=Lt.alloc();for(var Be=0;Be<Se.length&&(Se[Be].centerX=he,Se[Be].centerY=ve,!(Be>=Se.length-1));Be++)IS(a,he,ve,Se,Be,E,te)||jS(a,he,ve,Se,Be,E,te),he=te.x,ve=te.y;if(Lt.free(te),a.mj++,!(23<a.mj)){he=Se[0].centerX,ve=Se[0].centerY,te=Se[Se.length-1].centerX,Be=Se[Se.length-1].centerY;var Xe=Math.abs(he-te)-((Se[0].width+Se[Se.length-1].width)/2+ne),tt=Math.abs(ve-Be)-((Se[0].height+Se[Se.length-1].height)/2+ne);ne=0,1>Math.abs(tt)?Math.abs(he-te)<(Se[0].width+Se[Se.length-1].width)/2&&(ne=0):ne=0<tt?tt:1>Math.abs(Xe)?0:Xe,he=Math.abs(te)>Math.abs(Be)?0<te!=ve>Be:0<Be!=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),ve=ne*Math.sin(b*Math.PI/180),Se=Lt.alloc(),Be=y.Fa(),Xe=0;Xe<Be.length&&(Be[Xe].centerX=he,Be[Xe].centerY=ve,!(Xe>=Be.length-1));Xe++)IS(a,he,ve,Be,Xe,E,Se)||jS(a,he,ve,Be,Xe,E,Se),he=Se.x,ve=Se.y;if(Lt.free(Se),a.mj++,!(23<a.mj)){if(he=Math.atan2(ve,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<Be.length;he++)ne.mk[he]=Be[he].bounds.x,ne.tm[he]=Be[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,ve=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=ve,!1;Se=!0}}else if(te=y-a,te<-se){if(te=y+a,te>se)return ne.x=te,ne.y=ve,!1;Se=!0}return ve=Math.sqrt(1-Math.min(1,te*te/(se*se)))*he,0>x!==Se&&(ve=-ve),Math.abs(x-ve)>(b[E].height+b[E+1].height)/2?(ne.x=te,ne.y=ve,!1):(ne.x=te,ne.y=ve,!0)}function jS(a,y,x,b,E,te,ne){var se=a.lc,he=a.me,ve=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=ve,ne.y=te;return}b=!0}}else if(te=x+a,te>he){if(te=x-a,te<-he){ne.x=ve,ne.y=te;return}b=!0}ve=Math.sqrt(1-Math.min(1,te*te/(he*he)))*se,0>y!==b&&(ve=-ve),ne.x=ve,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 Lt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},$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,ve=0;ve<=te;ve++){b!==void 0&&E!==void 0?he=b+ve*E/te:he=ve*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:Ht("Invalid sorting type.")}return a};function Nx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Fn;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 Fn;for(var he=0,ve=0;ve<y.length;ve++){var Se=y[ve].length;if(Se===1)b.push(ve);else if(Se===0)E.add(a.M(ve));else{if(he===0)x.push(ve);else{for(var Be=Se=1/0,Xe=-1,tt=[],rt=0;rt<x.length;rt++)0>y[x[rt]].indexOf(x[rt===x.length-1?0:rt+1])&&tt.push(rt===x.length-1?0:rt+1);if(tt.length===0)for(rt=0;rt<x.length;rt++)tt.push(rt);for(rt=0;rt<tt.length;rt++){for(var ct=tt[rt],Nt=y[ve],Mt=0,zt=0;zt<ne.length;zt++){var Ut=te[ne[zt]],Yt=te[se[zt]];if(Ut<Yt){var $t=Ut;Ut=Yt}else $t=Yt;if($t<ct&&ct<=Ut)for(Yt=0;Yt<Nt.length;Yt++){var dn=Nt[Yt];0>x.indexOf(dn)||$t<te[dn]&&te[dn]<Ut||$t===te[dn]||Ut===te[dn]||Mt++}else for(Yt=0;Yt<Nt.length;Yt++)dn=Nt[Yt],0>x.indexOf(dn)||$t<te[dn]&&te[dn]<Ut&&$t!==te[dn]&&Ut!==te[dn]&&Mt++}for(Nt=Mt,zt=Mt=0;zt<y[ve].length;zt++)$t=x.indexOf(y[ve][zt]),0<=$t&&($t=Math.abs(ct-($t>=ct?$t+1:$t)),Mt+=$t<x.length+1-$t?$t:x.length+1-$t);for(zt=0;zt<ne.length;zt++)$t=te[ne[zt]],Ut=te[se[zt]],$t>=ct&&$t++,Ut>=ct&&Ut++,$t>Ut&&(Yt=Ut,Ut=$t,$t=Yt),Ut-$t<(x.length+2)/2==($t<ct&&ct<=Ut)&&Mt++;(Nt<Se||Nt===Se&&Mt<Be)&&(Se=Nt,Be=Mt,Xe=ct)}for(x.splice(Xe,0,ve),Se=0;Se<x.length;Se++)te[x[Se]]=Se;for(Se=0;Se<y[ve].length;Se++)Be=y[ve][Se],0<=x.indexOf(Be)&&(ne.push(ve),se.push(Be))}he++}}for(ne=x.length;;){for(te=!0,se=0;se<b.length;se++)if(he=b[se],ve=y[he][0],Se=x.indexOf(ve),0<=Se){for(Xe=Be=0;Xe<y[ve].length;Xe++)tt=x.indexOf(y[ve][Xe]),0>tt||tt===Se||(rt=tt>Se?tt-Se:Se-tt,Be+=tt<Se!=rt>ne-rt?1:-1);x.splice(0>Be?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},Pt.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 Sn($o,"ConstantSpacing",0),ad=new Sn($o,"ConstantDistance",1),Dh=new Sn($o,"ConstantAngle",2),Nu=new Sn($o,"Packed",3),_s=new Sn($o,"Clockwise",4),sd=new Sn($o,"Counterclockwise",5),Qd=new Sn($o,"BidirectionalLeft",6),Mp=new Sn($o,"BidirectionalRight",7),Sv=new Sn($o,"Forwards",8),xv=new Sn($o,"Reverse",9),wv=new Sn($o,"Ascending",10),bv=new Sn($o,"Descending",11),Lp=new Sn($o,"Optimized",12),Cv=new Sn($o,"Pythagorean",13),Tf=new Sn($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)}Gt(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}Gt(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}Pt.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)}Gt(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)}Gt(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 ve=yn(),Se=0;Se<se+y.vertexes.count+2;Se++)ve[Se]=null;se=0,ne.reset();for(var Be=Mn.alloc();ne.next();)if(Se=ne.value,this.computeBounds(Se,Be),he)he=!1,E=Be.x+Be.width/2,te=Be.y+Be.height/2,ve[0]=new Lt(Be.x+Be.width+b.width,Be.y),ve[1]=new Lt(Be.x,Be.y+Be.height+b.height),se=2;else{var Xe=zS(ve,se,E,te,Be.width,Be.height,b),tt=ve[Xe],rt=new Lt(tt.x+Be.width+b.width,tt.y),ct=new Lt(tt.x,tt.y+Be.height+b.height);for(Xe+1<se&&ve.splice(Xe+1,0,null),ve[Xe]=rt,ve[Xe+1]=ct,se++,Xe=tt.x-Be.x,tt=tt.y-Be.y,Se=Se.vertexes.iterator;Se.next();)rt=Se.value,rt.centerX+=Xe,rt.centerY+=tt}for(Mn.free(Be),Se=y.vertexes.iterator;Se.next();)ne=Se.value,Xe=ne.bounds,2>se?(E=Xe.x+Xe.width/2,te=Xe.y+Xe.height/2,ve[0]=new Lt(Xe.x+Xe.width+b.width,Xe.y),ve[1]=new Lt(Xe.x,Xe.y+Xe.height+b.height),se=2):(he=zS(ve,se,E,te,Xe.width,Xe.height,b),Be=ve[he],tt=new Lt(Be.x+Xe.width+b.width,Be.y),Xe=new Lt(Be.x,Be.y+Xe.height+b.height),he+1<se&&ve.splice(he+1,0,null),ve[he]=tt,ve[he+1]=Xe,se++,ne.centerX=Be.x+ne.width/2,ne.centerY=Be.y+ne.height/2);for(Ln(ve),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 Fn),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 Fn,E.Hj=se),se.add(ne),E.Vd--,E.sh+=ne.sh):ne.network===b&&(se=ne.Hj,se===null&&(se=new Fn,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,tn.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 ve=se=0,Se=he.count-ne;Se<he.count;Se++){var Be=he.M(Se),Xe=null;for(te=Be.edges.iterator;te.next();){var tt=te.value;if(tt.Ax(Be)===E){Xe=tt;break}}Xe!==null&&(ve+=Xe.length,se+=Be.width*Be.height)}te=E.centerX,he=E.centerY,Se=E.width,Be=E.height,Xe=E.focus,tt=Se*Be,1>tt&&(tt=1),se=tn.sqrt((se+tt+ve*ve*4/(ne*ne))/tt),ne=(se-1)*Se/2,se=(se-1)*Be/2,E.bounds=new Mn(te-Xe.x-ne,he-Xe.y-se,Se+2*ne,Be+2*se),E.focus=new Lt(Xe.x+ne,Xe.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 Lt(te,ne),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,te=y.width,ne=y.height;y.We!==null&&0<y.We.count&&(ne=y.We.M(0),te=ne.Ss,ne=ne.Qs),te=tn.sqrt(te*te+ne*ne)/2;for(var se=!1,he=ne=0,ve=0,Se=y.vertexes.iterator;Se.next();){var Be=Se.value;1>=Be.Vd?he++:(se=!0,ve++,ne+=Math.atan2(y.centerY-Be.centerY,y.centerX-Be.centerX))}if(he!==0){for(0<ve&&(ne/=ve),ve=y=0,y=se?2*Math.PI/(he+1):2*Math.PI/he,he%2===0&&(ve=y/2),1<x.count&&x.sort(function(tt,rt){return tt===null||rt===null||tt===rt?0:rt.width*rt.height-tt.width*tt.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,Be=he.edges.iterator;Be.next();){Se=Be.value;break}Be=he.width;var Xe=he.height;Be=tn.sqrt(Be*Be+Xe*Xe)/2,Se=te+Se.length+Be,Be=ne+(y*(se/2>>1)+ve)*(se%2===0?1:-1),he.centerX=b+Se*Math.cos(Be),he.centerY=E+Se*Math.sin(Be),se++}}}}function zS(a,y,x,b,E,te,ne){var se=9e19,he=-1,ve=0;e:for(;ve<y;ve++){var Se=a[ve],Be=Se.x-x,Xe=Se.y-b;if(Be=Be*Be+Xe*Xe,Be<se){for(Xe=ve-1;0<=Xe;Xe--)if(a[Xe].y>Se.y&&a[Xe].x-Se.x<E+ne.width)continue e;for(Xe=ve+1;Xe<y;Xe++)if(a[Xe].x>Se.x&&a[Xe].y-Se.y<te+ne.height)continue e;he=ve,se=Be}}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,tn.sqrt(x*x+a*a)):a+x<y?(b=b+E-ne,a=a+x-y,tn.sqrt(b*b+a*a)):ne-(b+E):b>ne+se?a>y+te?(x=b-ne-se,a=a-y-te,tn.sqrt(x*x+a*a)):a+x<y?(b=b-ne-se,a=a+x-y,tn.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(ct,Nt){return ct===null||Nt===null||ct===Nt?0:ct.centerX-Nt.centerX}):y.sort(function(ct,Nt){return ct===null||Nt===null||ct===Nt?0:ct.centerY-Nt.centerY}),x=a.Zf;var ve=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),ve=ne.charge*a.electricalFieldY(he,Se),b+=ne.mass*a.gravitationalFieldX(he,Se),ve+=ne.mass*a.gravitationalFieldY(he,Se),ne.forceX+=b,ne.forceY+=ve;for(var Be=te+1;Be<y.length;Be++){var Xe=y[Be];if(Xe!==ne){b=Xe.bounds,se=Xe.focus,ve=b.x+se.x;var tt=b.y+se.y;if(he-ve>x||ve-he>x){if(E)break}else if(Se-tt>x||tt-Se>x){if(!E)break}else{var rt=WS(ne,Xe);1>rt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new Ev),rt=b.random(),se=b.random(),he>ve?(b=Math.abs(Xe.bounds.right-ne.bounds.x),b=(1+b)*rt):he<ve?(b=Math.abs(Xe.bounds.x-ne.bounds.right),b=-(1+b)*rt):(b=Math.max(Xe.width,ne.width),b=(1+b)*rt-b/2),Se>tt?(ve=Math.abs(Xe.bounds.bottom-ne.bounds.y),ve=(1+ve)*se):he<ve?(ve=Math.abs(Xe.bounds.y-ne.bounds.bottom),ve=-(1+ve)*se):(ve=Math.max(Xe.height,ne.height),ve=(1+ve)*se-ve/2)):(se=-(ne.charge*Xe.charge)/(rt*rt),b=(ve-he)/rt*se,ve=(tt-Se)/rt*se),ne.forceX+=b,ne.forceY+=ve,Xe.forceX-=b,Xe.forceY-=ve}}}}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,Be=te.focus,he=Se.x+Be.x,Se=Se.y+Be.y,Be=WS(x,te),1>Be?(Be=a.randomNumberGenerator,Be===null&&(a.randomNumberGenerator=Be=new Ev),se=Be.random(),Be=Be.random(),b=(b>he?1:-1)*(1+(te.width>x.width?te.width:x.width))*se,ve=(ne>Se?1:-1)*(1+(te.height>x.height?te.height:x.height))*Be):(se=se.stiffness*(Be-se.length),b=(he-b)/Be*se,ve=(Se-ne)/Be*se),x.forceX+=b,x.forceY+=ve,te.forceX-=b,te.forceY-=ve;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}Ss.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},Ss.prototype.moveFixedVertex=function(){},Ss.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ss.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=oo,y.toSpot=oo)}},Ss.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=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},Pt.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"&&Ht('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)}Gt(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}Gt(Hg,Va),Pt.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}Gt(Ug,Tl),Pt.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 fo(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 Lt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Gt(fo,Go),fo.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},fo.prototype.qb=function(a){a.classType===fo?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:Ht("Unknown enum value: "+a):Go.prototype.qb.call(this,a)},fo.prototype.createNetwork=function(){return new Dp(this)},fo.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,ve=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 Be=se.fromNode;he=se.toNode;for(var Xe=se.fromPort;Xe!==null&&!Xe.Ed();)Xe=Xe.panel;for(se=se.toPort;se!==null&&!se.Ed();)se=se.panel;if(b.rev){ve=Be;var tt=Xe;Be=he,Xe=se,he=ve,se=tt}var rt=E.focus;ve=te.focus;var ct=b.rev?te.bounds:E.bounds;tt=Lt.alloc(),Se!==Be?ct.w()&&Be.isVisible()?Be.actualBounds.w()?(Ah(Be,Xe,Ri,tt),tt.x+=Be.actualBounds.x-ct.x,tt.y+=Be.actualBounds.y-ct.y):(Ah(Be,Xe,Ri,tt),tt.w()||tt.assign(rt)):tt.assign(rt):ct.w()?(Ah(Be,Xe,Ri,tt),tt.w()||tt.assign(rt)):tt.assign(rt),Be=b.rev?E.bounds:te.bounds,Se=Lt.alloc(),ne!==he?Be.w()&&he.isVisible()?he.actualBounds.w()?(Ah(he,se,Ri,Se),Se.x+=he.actualBounds.x-Be.x,Se.y+=he.actualBounds.y-Be.y):(Ah(he,se,Ri,Se),Se.w()||Se.assign(ve)):Se.assign(ve):Be.w()?(Ah(he,se,Ri,Se),Se.w()||Se.assign(ve)):Se.assign(ve),this.K===90||this.K===270?(ne=Math.round((tt.x-rt.x)/this.kc),he=tt.x,se=Math.round((Se.x-ve.x)/this.kc),ve=Se.x):(ne=Math.round((tt.y-rt.y)/this.kc),he=tt.y,se=Math.round((Se.y-ve.y)/this.kc),ve=Se.y),Lt.free(tt),Lt.free(Se),b.portFromColOffset=ne,b.portFromPos=he,b.portToColOffset=se,b.portToPos=ve}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(tt=E.layer,Se=te.layer,Be=0,ct=b.link,ct!==null){var Nt=ct.fromPort,Mt=ct.toPort;if(Nt!==null&&Mt!==null){var zt=ct.fromNode;if(Xe=ct.toNode,zt!==null&&Xe!==null){var Ut=Tv(this,!0),Yt=Tv(this,!1),$t=this.setsPortSpots?Ut:ct.computeSpot(!0,Nt);rt=this.setsPortSpots?Yt:ct.computeSpot(!1,Mt);var dn=ct.isOrthogonal;$t.$c()&&$t.Hf(Yt)&&rt.$c()&&rt.Hf(Ut)?Be=0:(Ut=ct.getLinkPoint(zt,Nt,$t,!0,dn,Xe,Mt,Lt.alloc()),Yt=ct.getLinkDirection(zt,Nt,Ut,$t,!0,dn,Xe,Mt),Lt.free(Ut),$t.ys()||Yt!==_S(this,b,!0)?this.setsPortSpots&&zt!==null&&zt.ports.count===1&&b.rev&&(Be+=1):Be+=1,$t=ct.getLinkPoint(Xe,Mt,rt,!1,dn,zt,Nt,Lt.alloc()),ct=ct.getLinkDirection(Xe,Mt,$t,rt,!1,dn,zt,Nt),Lt.free($t),rt.ys()||ct!==_S(this,b,!1)?this.setsPortSpots&&Xe!==null&&Xe.ports.count===1&&b.rev&&(Be+=2):Be+=2)}}}if(Xe=Be,Be=Xe===1||Xe===3,(Xe=Xe===2||Xe===3)&&(rt=a.createVertex(),rt.node=null,rt.Dj=1,rt.layer=tt,rt.near=E,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ne,E.portToColOffset=0,E.portFromPos=he,E.portToPos=0,E=rt),ct=1,Be&&ct--,tt-Se>ct&&0<tt){for(b.valid=!1,rt=a.createVertex(),rt.node=null,rt.Dj=2,rt.layer=tt-1,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Xe?0:ne,E.portToColOffset=0,E.portFromPos=Xe?0:he,E.portToPos=0,E=rt,tt--;tt-Se>ct&&0<tt;)rt=a.createVertex(),rt.node=null,rt.Dj=3,rt.layer=tt-1,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=rt,tt--;E=a.Zj(rt,te,b.link),E.valid=!Be,Be&&(rt.near=te),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=se,E.portFromPos=0,E.portToPos=ve}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},fo.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}fo.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},fo.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],ve=he.near;if(ve!==null&&ve.layer===he.layer)if(he=ve.index,he>ne)for(var Se=ne+1;Se<he;Se++){var Be=b[Se];Be.near===ve&&Be.Dj===ve.Dj||se++}else for(Se=ne-1;Se>he;Se--)Be=b[Se],Be.near===ve&&Be.Dj===ve.Dj||se++;var Xe;if(0<=x)for(he=b[ne].sourceEdgesArrayAccess,ve=0;ve<he.length;ve++){var tt=he[ve];if(tt.valid&&tt.fromVertex.layer!==y)for(Be=tt.fromVertex.index,Se=tt.portToPos,tt=tt.portFromPos,Xe=ve+1;Xe<he.length;Xe++){var rt=he[Xe];if(rt.valid&&rt.fromVertex.layer!==y){var ct=rt.fromVertex.index,Nt=rt.portToPos;rt=rt.portFromPos,Se<Nt&&(Be>ct||Be===ct&&tt>rt)&&se++,Nt<Se&&(ct>Be||ct===Be&&rt>tt)&&se++}}}if(0>=x){for(he=b[ne].destinationEdgesArrayAccess,ve=0;ve<he.length;ve++)if(tt=he[ve],tt.valid&&tt.toVertex.layer!==y)for(Be=tt.toVertex.index,Se=tt.portToPos,tt=tt.portFromPos,Xe=ve+1;Xe<he.length;Xe++)rt=he[Xe],rt.valid&&rt.toVertex.layer!==y&&(ct=rt.toVertex.index,Nt=rt.portToPos,rt=rt.portFromPos,tt<rt&&(Be>ct||Be===ct&&Se>Nt)&&se++,rt<tt&&(ct>Be||ct===Be&&Nt>Se)&&se++)}for(te[ne*E+ne]=se,he=ne+1;he<E;he++){var Mt=0,zt=0;if(0<=x){se=b[ne].sourceEdgesArrayAccess;var Ut=b[he].sourceEdgesArrayAccess;for(ve=0;ve<se.length;ve++)if(tt=se[ve],tt.valid&&tt.fromVertex.layer!==y)for(Be=tt.fromVertex.index,tt=tt.portFromPos,Xe=0;Xe<Ut.length;Xe++)rt=Ut[Xe],rt.valid&&rt.fromVertex.layer!==y&&(ct=rt.fromVertex.index,rt=rt.portFromPos,(Be<ct||Be===ct&&tt<rt)&&zt++,(ct<Be||ct===Be&&rt<tt)&&Mt++)}if(0>=x){for(se=b[ne].destinationEdgesArrayAccess,Ut=b[he].destinationEdgesArrayAccess,ve=0;ve<se.length;ve++)if(tt=se[ve],tt.valid&&tt.toVertex.layer!==y)for(Be=tt.toVertex.index,Se=tt.portToPos,Xe=0;Xe<Ut.length;Xe++)rt=Ut[Xe],rt.valid&&rt.toVertex.layer!==y&&(ct=rt.toVertex.index,Nt=rt.portToPos,(Be<ct||Be===ct&&Se<Nt)&&zt++,(ct<Be||ct===Be&&Nt<Se)&&Mt++)}te[ne*E+he]=Mt,te[he*E+ne]=zt}}return cd(a,y,b),te}fo.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 ve=te[he].destinationEdgesArrayAccess;if(ve!==null)for(var Se=0;Se<ve.length;Se++){var Be=ve[Se];if(Be.valid&&Be.toVertex.layer!==E){var Xe=Be.fromVertex.column+Be.portFromColOffset,tt=Be.toVertex.column+Be.portToColOffset;se+=(Math.abs(Xe-tt)+1)*gy(Be)}}}cd(b,E,te),y+=se}return y}fo.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 ve=null;0<=x&&(ve=se.destinationEdgesArrayAccess);var Se=0,Be=0,Xe=se.near;if(Xe!==null&&Xe.layer===se.layer&&(Se+=Xe.column-1,Be++),he!==null)for(Xe=0;Xe<he.length;Xe++){se=he[Xe];var tt=se.fromVertex;se.valid&&!se.rev&&tt.layer!==y&&(Se+=tt.column,Be++)}if(ve!==null)for(he=0;he<ve.length;he++)se=ve[he],Xe=se.toVertex,se.valid&&!se.rev&&Xe.layer!==y&&(Se+=Xe.column,Be++);te[ne]=Be===0?-1:Se/Be}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 ve=null;0<=x&&(ve=se.destinationEdgesArrayAccess);var Se=0,Be=[],Xe=se.near;if(Xe!==null&&Xe.layer===se.layer&&(Be[Se]=Xe.column-1,Se++),se=void 0,he!==null)for(Xe=0;Xe<he.length;Xe++){se=he[Xe];var tt=se.fromVertex;se.valid&&!se.rev&&tt.layer!==y&&(Be[Se]=tt.column+se.portFromColOffset,Se++)}if(ve!==null)for(he=0;he<ve.length;he++)se=ve[he],Xe=se.toVertex,se.valid&&!se.rev&&Xe.layer!==y&&(Be[Se]=Xe.column+se.portToColOffset,Se++);Se===0?te[ne]=-1:(Be.sort(function(rt,ct){return rt-ct}),ve=Se>>1,te[ne]=Se&1?Be[ve]:Be[ve-1]+Be[ve]>>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,ve=y.layer-he.layer;se=a.linkMinLength(se),ve===se&&Gg(a,he,x,b,E,te)}if(te)for(ne=y.sourceEdges;ne.next();)se=ne.value,he=se.fromVertex,ve=he.layer-y.layer,se=a.linkMinLength(se),ve===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)}}fo.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,ve=se.destinationEdges;ve.next();)ve.value.toVertex.valid&&he++;ve=0;for(var Se=se.sourceEdges;Se.next();)Se.value.fromVertex.valid&&ve++;(E===null||te<he-ve)&&(E=se,te=he-ve)}}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++}fo.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 ve=ne.value;if(ve.component===1){var Se=0,Be=!1,Xe=ve.sourceEdgesArrayAccess;E=Xe.length;for(var tt=0;tt<E;tt++){var rt=Xe[tt],ct=rt.fromVertex;Se+=1,ct.component!==1&&(te+=1,ct=ct.layer-ve.layer,rt=a.linkMinLength(rt),b=Math.min(b,ct-rt))}for(Xe=ve.destinationEdgesArrayAccess,E=Xe.length,tt=0;tt<E;tt++)rt=Xe[tt].toVertex,--Se,rt.component!==1?--te:Be=!0;(he===null||Se<se)&&!Be&&(he=ve,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(ve=0,Se=!1,Xe=ne.sourceEdgesArrayAccess,Be=Xe.length,tt=0;tt<Be;tt++)rt=Xe[tt].fromVertex,ve+=1,rt.component!==1?b+=1:Se=!0;for(Xe=ne.destinationEdgesArrayAccess,Be=Xe.length,tt=0;tt<Be;tt++)rt=Xe[tt],ct=rt.toVertex,--ve,ct.component!==1&&(--b,ct=ne.layer-ct.layer,rt=a.linkMinLength(rt),E=Math.min(E,ct-rt));(se===null||ve>te)&&!Se&&(se=ne,te=ve)}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}fo.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))}fo.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,ve=!0;ve;)for(ve=!1,te=0;te<E-1;te++){var Se=x[b[te].index*E+b[te+1].index],Be=x[b[te+1].index*E+b[te].index],Xe=0,tt=0,rt=b[te].column,ct=b[te+1].column,Nt=a.nodeMinColumnSpace(b[te],!0),Mt=a.nodeMinColumnSpace(b[te],!1),zt=a.nodeMinColumnSpace(b[te+1],!0),Ut=a.nodeMinColumnSpace(b[te+1],!1);Nt=rt-Nt+zt,Mt=ct-Mt+Ut;var Yt=b[te].sourceEdges.iterator;for(Yt.reset();Yt.next();)if(zt=Yt.value,Ut=zt.fromVertex,zt.valid&&Ut.layer===y){for(zt=0;b[zt]!==Ut;)zt++;zt<te&&(Xe+=2*(te-zt),tt+=2*(te+1-zt)),zt===te+1&&(Xe+=1),zt>te+1&&(Xe+=4*(zt-te),tt+=4*(zt-(te+1)))}for(Yt=b[te].destinationEdges.iterator,Yt.reset();Yt.next();)if(zt=Yt.value,Ut=zt.toVertex,zt.valid&&Ut.layer===y){for(zt=0;b[zt]!==Ut;)zt++;zt===te+1&&(tt+=1)}for(Yt=b[te+1].sourceEdges.iterator,Yt.reset();Yt.next();)if(zt=Yt.value,Ut=zt.fromVertex,zt.valid&&Ut.layer===y){for(zt=0;b[zt]!==Ut;)zt++;zt<te&&(Xe+=2*(te+1-zt),tt+=2*(te-zt)),zt===te&&(tt+=1),zt>te+1&&(Xe+=4*(zt-(te+1)),tt+=4*(zt-te))}for(Yt=b[te+1].destinationEdges.iterator,Yt.reset();Yt.next();)if(zt=Yt.value,Ut=zt.toVertex,zt.valid&&Ut.layer===y){for(zt=0;b[zt]!==Ut;)zt++;zt===te&&(Xe+=1)}zt=Ut=0,Yt=ne[b[te].index];var $t=se[b[te].index],dn=ne[b[te+1].index],ir=se[b[te+1].index];Yt!==-1&&(Ut+=Math.abs(Yt-rt),zt+=Math.abs(Yt-Mt)),$t!==-1&&(Ut+=Math.abs($t-rt),zt+=Math.abs($t-Mt)),dn!==-1&&(Ut+=Math.abs(dn-ct),zt+=Math.abs(dn-Nt)),ir!==-1&&(Ut+=Math.abs(ir-ct),zt+=Math.abs(ir-Nt)),(tt<Xe-.5||tt===Xe&&Be<Se-.5||tt===Xe&&Be===Se&&zt<Ut-.5)&&(ve=he=!0,b[te].column=Mt,b[te+1].column=Nt,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}fo.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,ve=!0;ve;)for(ve=!1,b=0;b<te;b++){var Se=E[b].column,Be=a.nodeMinColumnSpace(E[b],!0),Xe=a.nodeMinColumnSpace(E[b],!1),tt=0;0>b-1||Se-E[b-1].column-1>Be+a.nodeMinColumnSpace(E[b-1],!1)?tt=Se-1:tt=Se,Be=b+1>=te||E[b+1].column-Se-1>Xe+a.nodeMinColumnSpace(E[b+1],!0)?Se+1:Se;var rt=Xe=0,ct=0;if(0>=x)for(var Nt=E[b].sourceEdges.iterator;Nt.next();){var Mt=Nt.value,zt=Mt.fromVertex;if(Mt.valid&&zt.layer!==y){var Ut=gy(Mt),Yt=Mt.portFromColOffset;Mt=Mt.portToColOffset,zt=zt.column,Xe+=(Math.abs(Se+Mt-(zt+Yt))+1)*Ut,rt+=(Math.abs(tt+Mt-(zt+Yt))+1)*Ut,ct+=(Math.abs(Be+Mt-(zt+Yt))+1)*Ut}}if(0<=x)for(Nt=E[b].destinationEdges.iterator;Nt.next();)Mt=Nt.value,zt=Mt.toVertex,Mt.valid&&zt.layer!==y&&(Ut=gy(Mt),Yt=Mt.portFromColOffset,Mt=Mt.portToColOffset,zt=zt.column,Xe+=(Math.abs(Se+Yt-(zt+Mt))+1)*Ut,rt+=(Math.abs(tt+Yt-(zt+Mt))+1)*Ut,ct+=(Math.abs(Be+Yt-(zt+Mt))+1)*Ut);Mt=Yt=Ut=0,Nt=ne[E[b].index],zt=se[E[b].index],Nt!==-1&&(Ut+=Math.abs(Nt-Se),Yt+=Math.abs(Nt-tt),Mt+=Math.abs(Nt-Be)),zt!==-1&&(Ut+=Math.abs(zt-Se),Yt+=Math.abs(zt-tt),Mt+=Math.abs(zt-Be)),rt<Xe||rt===Xe&&Yt<Ut?(ve=he=!0,E[b].column=tt):(ct<Xe||ct===Xe&&Mt<Ut)&&(ve=he=!0,E[b].column=Be)}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),ve=a.nodeMinColumnSpace(b[x],!1),Se=0;if(ne[x]===-1)if(x===0&&x===E-1)Se=se;else if(x===0){var Be=b[x+1].column;Be-se===ve+a.nodeMinColumnSpace(b[x+1],!0)?Se=se-1:Se=se}else x===E-1?(Be=b[x-1].column,Se=se-Be===he+a.nodeMinColumnSpace(b[x-1],!1)?se+1:se):(Be=b[x-1].column,he=Be+a.nodeMinColumnSpace(b[x-1],!1)+he+1,Be=b[x+1].column,ve=Be-a.nodeMinColumnSpace(b[x+1],!0)-ve-1,Se=(he+ve)/2|0);else x===0&&x===E-1?Se=ne[x]:x===0?(Be=b[x+1].column,ve=Be-a.nodeMinColumnSpace(b[x+1],!0)-ve-1,Se=Math.min(ne[x],ve)):x===E-1?(Be=b[x-1].column,he=Be+a.nodeMinColumnSpace(b[x-1],!1)+he+1,Se=Math.max(ne[x],he)):(Be=b[x-1].column,he=Be+a.nodeMinColumnSpace(b[x-1],!1)+he+1,Be=b[x+1].column,ve=Be-a.nodeMinColumnSpace(b[x+1],!0)-ve-1,he<ne[x]&&ne[x]<ve?Se=ne[x]:he>=ne[x]?Se=he:ve<=ne[x]&&(Se=ve));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=yn(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new On,Kx(y,x);var te=null,ne=null,se=null,he=null,ve=(a.ve&1)!==0,Se=(a.ve&2)!==0,Be=(a.ve&4)!==0,Xe=(a.ve&8)!==0;for(ve&&(a.verticalAlignment(y,x,!0),te=Lv(a,y,!0,!1)),y.reverse(),Be&&(a.verticalAlignment(y,x,!1),se=Lv(a,y,!1,!1)),b=ui(y),E=b.next();!E.done;E=b.next())E.value.reverse();Xe&&(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(tt){var rt=yn();ve&&rt.push(te.get(tt)),Se&&rt.push(ne.get(tt)),Be&&rt.push(se.get(tt)),Xe&&rt.push(he.get(tt)),rt.sort(function(Nt,Mt){return Nt-Mt});var ct=rt.length;ct=(rt[Math.floor((ct-1)/2)]+rt[Math.ceil((ct-1)/2)])/2,Ln(rt),tt.zc=ct})}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 ve=se[he];e:{if(ve.node===null){var Se=My(ve);if(0<Se.length){Se=Se[0].node===null;break e}}Se=!1}var Be=Se;if(he===se.length-1||Be){for(Se=ne.length-1,Be&&(Se=My(ve)[0].index);te<=he;){if(ve=se[te],!ve.bo){Be=[];for(var Xe=ui(ve.sourceEdgesArrayAccess),tt=Xe.next();!tt.done;tt=Xe.next())tt=tt.value,tt.valid&&Be.push(tt);ve.bo=Be}for(ve=ui(ve.bo),Be=ve.next();!Be.done;Be=ve.next())Be=Be.value,Xe=Be.fromVertex.index,(Xe<E||Xe>Se)&&y.add(Be);te++}E=Se}}}fo.prototype.verticalAlignment=function(a,y,x){Vx(a),a=ui(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=ui(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(Be,Xe){return Be.vi-Xe.vi});var he=(se-1)/2;for(se=Math.floor(he),he=Math.ceil(he);se<=he;se++)if(te.align===te){var ve=ne[se],Se=void 0;Se=x?Nv(ve,te):Nv(te,ve),!y.contains(Se)&&E<ve.vi&&(ve.align=te,te.root=ve.root,te.align=ve.root,E=ve.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=ui(y),ne=te.next();!ne.done;ne=te.next()){var se=ui(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=ui(y),se=te.next();!se.done;se=te.next()){se=ui(se.value);for(var he=se.next();!he.done;he=se.next())if(he=he.value,he.root===he){for(var ve=0,Se=he;Se.align!==he;){var Be=Se.align,Xe=ne?Se.width:Se.height,tt=ne?Be.width:Be.height;if(x){var rt=Nv(Se,Be),ct=rt.portFromPos,Nt=rt.portToPos;rt.link!==null&&(Se.node&&Se.node!==rt.link.fromNode&&(ct=ne?Se.focusX:Se.focusY),Be.node&&Be.node!==rt.link.toNode&&(Nt=ne?Be.focusX:Be.focusY))}else rt=Nv(Be,Se),ct=rt.portToPos,Nt=rt.portFromPos,rt.link!==null&&(Se.node&&Se.node!==rt.link.toNode&&(ct=ne?Se.focusX:Se.focusY),Be.node&&Be.node!==rt.link.fromNode&&(Nt=ne?Be.focusX:Be.focusY));Xe=b?Se.qg+(Xe-ct)-(tt-Nt):Se.qg+ct-Nt,Be.qg=Xe,ve=Math.min(ve,Xe),Se=Se.align}Se=he;do Se.qg=Se.qg-ve,Se=Se.align;while(Se!==he)}}for(x=ui(y),ne=x.next();!ne.done;ne=x.next())for(te=ui(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=ui(y),ne=y.next();!ne.done;ne=y.next())for(x=ui(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&&Ht("Could not determine previous vertex in layer"),y[x][a-1]}fo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=yn(),E=yn(),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(ve){ve.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}fo.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}fo.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,ve=he.layer,Se=he.column|0;b?(ne=y.x+this.kc*Se,ve=this.Kd[ve]):(ne=this.Kd[ve],ve=y.y+this.kc*Se),he.centerX=ne,he.centerY=ve,x&&isFinite(he.zc)&&(b?he.node?he.x=y.x+he.zc:he.centerX=y.x+he.zc:he.node?he.y=y.y+he.zc:he.centerY=y.y+he.zc),te=Math.min(he.x,te),E=Math.min(he.y,E),b?(ne=te,se=Math.max(se,he.bounds.right)):(ne=E,se=Math.max(se,he.bounds.bottom))}for(this.xw=se-ne,te=y.x-te,y=y.y-E,this.Rf=new Lt(x&&b?0:te,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=te,x.y+=y,x.commit()},fo.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)},fo.prototype.commitLayers=function(){},fo.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 ve=y.computeSpot(!0,ne);he=y.computeSpot(!1,se);var Se=x.fromVertex,Be=x.toVertex;if(x.valid)y.curve===Jl&&y.pointsCount===4&&(Se.column===Be.column&&this.alignOption===0?(x=y.getLinkPoint(E,ne,ve,!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&&ve===ua&&(b=!0),se!==null&&he===ua&&(x=!0),(b||x)&&(he=null,b&&(he=y.getLinkPointFromPoint(E,ne,ne.ga(Ri),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(Ri),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===Be.layer)y.zf();else{var Xe=!1,tt=!1,rt=this.ie,ct=y.firstPickIndex+1;if(y.isOrthogonal){tt=!0;var Nt=y.pointsCount;4<Nt&&y.points.removeRange(2,Nt-3)}else if(y.curve===Jl)Xe=!0,Nt=y.pointsCount,4<Nt&&y.points.removeRange(2,Nt-3),Nt===4&&(ct=2);else{Nt=y.pointsCount;var Mt=ve===ua,zt=he===ua;2<Nt&&Mt&&zt?y.points.removeRange(1,Nt-2):3<Nt&&Mt&&!zt?y.points.removeRange(1,Nt-3):3<Nt&&!Mt&&zt?y.points.removeRange(2,Nt-2):4<Nt&&!Mt&&!zt&&y.points.removeRange(2,Nt-3)}if(x.rev){for(;Be!==null&&Se!==Be;){var Ut=Nt=null;for(Mt=Be.sourceEdges.iterator;Mt.next()&&(zt=Mt.value,zt.link!==x.link||(Nt=zt.fromVertex,Ut=zt.toVertex,Nt.node!==null)););if(Nt===null)break;if(Nt!==Se){Mt=y.i(ct-1).x,zt=y.i(ct-1).y;var Yt=Nt.centerX,$t=Nt.centerY;if(tt)this.K===180||this.K===0?ct===y.firstPickIndex+1?(y.m(ct++,Mt,zt),y.m(ct++,Mt,$t)):(Ut!==null?Ut.centerY:zt)!==$t&&(Ut=this.Ta[Nt.layer-1]+this.Rf.x,y.m(ct++,Ut,zt),y.m(ct++,Ut,$t)):ct===y.firstPickIndex+1?(y.m(ct++,Mt,zt),y.m(ct++,Yt,zt)):(Ut!==null?Ut.centerX:Mt)!==Yt&&(Ut=this.Ta[Nt.layer-1]+this.Rf.y,y.m(ct++,Mt,Ut),y.m(ct++,Yt,Ut));else if(ct===y.firstPickIndex+1){Ut=Math.max(10,this.he[Be.layer]);var dn=Math.max(10,this.Ld[Be.layer]);if(Xe)this.K===180?Yt<=Be.bounds.x?(Be=Be.bounds.x,y.m(ct++,Be-Ut,$t),y.m(ct++,Be,$t),y.m(ct++,Be+dn,$t)):(y.m(ct++,Yt-Ut,$t),y.m(ct++,Yt,$t),y.m(ct++,Yt+dn,$t)):this.K===90?$t>=Be.bounds.bottom?(Be=Be.bounds.y+Be.bounds.height,y.m(ct++,Yt,Be+dn),y.m(ct++,Yt,Be),y.m(ct++,Yt,Be-Ut)):(y.m(ct++,Yt,$t+dn),y.m(ct++,Yt,$t),y.m(ct++,Yt,$t-Ut)):this.K===270?$t<=Be.bounds.y?(Be=Be.bounds.y,y.m(ct++,Yt,Be-Ut),y.m(ct++,Yt,Be),y.m(ct++,Yt,Be+dn)):(y.m(ct++,Yt,$t-Ut),y.m(ct++,Yt,$t),y.m(ct++,Yt,$t+dn)):this.K===0&&(Yt>=Be.bounds.right?(Be=Be.bounds.x+Be.bounds.width,y.m(ct++,Be+dn,$t),y.m(ct++,Be,$t),y.m(ct++,Be-Ut,$t)):(y.m(ct++,Yt+dn,$t),y.m(ct++,Yt,$t),y.m(ct++,Yt-Ut,$t)));else{y.m(ct++,Mt,zt);var ir=0;this.K===180||this.K===0?((this.K===180?Yt>=Be.bounds.right:Yt<=Be.bounds.x)&&(ir=(this.K===0?-Ut:dn)/2),y.m(ct++,Mt+ir,$t)):((this.K===270?$t>=Be.bounds.bottom:$t<=Be.bounds.y)&&(ir=(this.K===90?-Ut:dn)/2),y.m(ct++,Yt,zt+ir)),y.m(ct++,Yt,$t)}}else Ut=Math.max(10,this.he[Nt.layer]),dn=Math.max(10,this.Ld[Nt.layer]),Xe?this.K===180?(y.m(ct++,Yt-Ut-rt,$t),y.m(ct++,Math.min(Yt-Ut+rt/2,Yt),$t),y.m(ct++,Yt,$t),y.m(ct++,Yt,$t),y.m(ct++,Math.max(Yt+dn-rt/2,Yt),$t),y.m(ct++,Yt+dn+rt,$t)):this.K===90?(y.m(ct++,Yt,$t+dn+rt),y.m(ct++,Yt,Math.max($t+dn-rt/2,$t)),y.m(ct++,Yt,$t),y.m(ct++,Yt,$t),y.m(ct++,Yt,Math.min($t-Ut+rt/2,$t)),y.m(ct++,Yt,$t-Ut-rt)):this.K===270?(y.m(ct++,Yt,$t-Ut-rt),y.m(ct++,Yt,Math.min($t-Ut+rt/2,$t)),y.m(ct++,Yt,$t),y.m(ct++,Yt,$t),y.m(ct++,Yt,Math.max($t+dn-rt/2,$t)),y.m(ct++,Yt,$t+dn+rt)):(y.m(ct++,Yt+dn+rt,$t),y.m(ct++,Math.max(Yt+dn-rt/2,Yt),$t),y.m(ct++,Yt,$t),y.m(ct++,Yt,$t),y.m(ct++,Math.min(Yt-Ut+rt/2,Yt),$t),y.m(ct++,Yt-Ut-rt,$t)):y.m(ct++,Yt,$t)}Be=Nt}(se===null||ve!==ua||tt)&&(Mt=y.i(ct-1).x,zt=y.i(ct-1).y,Yt=y.i(ct).x,$t=y.i(ct).y,tt?(rt=this.Ld[Se.layer],this.K===180||this.K===0?(tt=zt,tt>=Se.bounds.y&&tt<=Se.bounds.bottom&&(this.K===180?Yt>=Se.bounds.x:Yt<=Se.bounds.right)&&(Be=Se.centerX+(this.K===180?-rt:rt),tt<Se.bounds.y+Se.bounds.height/2?tt=Se.bounds.y-this.kc/2:tt=Se.bounds.bottom+this.kc/2,y.m(ct++,Be,zt),y.m(ct++,Be,tt)),y.m(ct++,Yt,tt)):(tt=Mt,tt>=Se.bounds.x&&tt<=Se.bounds.right&&(this.K===270?$t>=Se.bounds.y:$t<=Se.bounds.bottom)&&(Be=Se.centerY+(this.K===270?-rt:rt),tt<Se.bounds.x+Se.bounds.width/2?tt=Se.bounds.x-this.kc/2:tt=Se.bounds.right+this.kc/2,y.m(ct++,Mt,Be),y.m(ct++,tt,Be)),y.m(ct++,tt,$t)),y.m(ct++,Yt,$t)):Xe?(Ut=Math.max(10,this.he[Se.layer]),dn=Math.max(10,this.Ld[Se.layer]),this.K===180&&Yt>=Se.bounds.x?(Be=Se.bounds.x+Se.bounds.width,y.L(ct-2,Be,zt),y.L(ct-1,Be+dn,zt)):this.K===90&&$t<=Se.bounds.bottom?(Be=Se.bounds.y,y.L(ct-2,Mt,Be),y.L(ct-1,Mt,Be-Ut)):this.K===270&&$t>=Se.bounds.y?(Be=Se.bounds.y+Se.bounds.height,y.L(ct-2,Mt,Be),y.L(ct-1,Mt,Be+dn)):this.K===0&&Yt<=Se.bounds.right&&(Be=Se.bounds.x,y.L(ct-2,Be,zt),y.L(ct-1,Be-Ut,zt))):(Ut=Math.max(10,this.he[Se.layer]),dn=Math.max(10,this.Ld[Se.layer]),tt=0,this.K===180||this.K===0?((this.K===180?Yt<=Se.bounds.x:Yt>=Se.bounds.right)&&(tt=(this.K===0?dn:-Ut)/2),y.m(ct++,Yt+tt,zt)):((this.K===270?$t<=Se.bounds.y:$t>=Se.bounds.bottom)&&(tt=(this.K===90?dn:-Ut)/2),y.m(ct++,Mt,$t+tt)),y.m(ct++,Yt,$t)))}else{for(;Se!==null&&Se!==Be;){for(Ut=Nt=null,Se=Se.destinationEdges.iterator;Se.next()&&(Mt=Se.value,Mt.link!==x.link||(Nt=Mt.toVertex,Ut=Mt.fromVertex,Ut.node!==null&&(Ut=null),Nt.node!==null)););if(Nt===null)break;Nt!==Be&&(Mt=y.i(ct-1).x,zt=y.i(ct-1).y,Yt=Nt.centerX,$t=Nt.centerY,tt?this.K===180||this.K===0?(Ut!==null?Ut.centerY:zt)!==$t&&(Ut=this.Ta[Nt.layer]+this.Rf.x,ct===y.firstPickIndex+1&&(Ut=this.K===0?Math.max(Ut,Mt):Math.min(Ut,Mt)),y.m(ct++,Ut,zt),y.m(ct++,Ut,$t)):(Ut!==null?Ut.centerX:Mt)!==Yt&&(Ut=this.Ta[Nt.layer]+this.Rf.y,ct===y.firstPickIndex+1&&(Ut=this.K===90?Math.max(Ut,zt):Math.min(Ut,zt)),y.m(ct++,Mt,Ut),y.m(ct++,Yt,Ut)):(Ut=Math.max(10,this.he[Nt.layer]),dn=Math.max(10,this.Ld[Nt.layer]),Xe?this.K===180?(y.m(ct++,Yt+dn+rt,$t),y.m(ct++,Math.max(Yt+dn-rt/2,Yt),$t),y.m(ct++,Yt,$t),y.m(ct++,Yt,$t),y.m(ct++,Math.min(Yt-Ut+rt/2,Yt),$t),y.m(ct++,Yt-Ut-rt,$t)):this.K===90?(y.m(ct++,Yt,$t-Ut-rt),y.m(ct++,Yt,Math.min($t-Ut+rt/2,$t)),y.m(ct++,Yt,$t),y.m(ct++,Yt,$t),y.m(ct++,Yt,Math.max($t+dn-rt/2,$t)),y.m(ct++,Yt,$t+dn+rt)):this.K===270?(y.m(ct++,Yt,$t+dn+rt),y.m(ct++,Yt,Math.max($t+dn-rt/2,$t)),y.m(ct++,Yt,$t),y.m(ct++,Yt,$t),y.m(ct++,Yt,Math.min($t-Ut+rt/2,$t)),y.m(ct++,Yt,$t-Ut-rt)):(y.m(ct++,Yt-Ut-rt,$t),y.m(ct++,Math.min(Yt-Ut+rt/2,Yt),$t),y.m(ct++,Yt,$t),y.m(ct++,Yt,$t),y.m(ct++,Math.max(Yt+dn-rt/2,Yt),$t),y.m(ct++,Yt+dn+rt,$t)):this.K===180?(y.m(ct++,Yt+dn,$t),y.m(ct++,Yt-Ut,$t)):this.K===90?(y.m(ct++,Yt,$t-Ut),y.m(ct++,Yt,$t+dn)):this.K===270?(y.m(ct++,Yt,$t+dn),y.m(ct++,Yt,$t-Ut)):(y.m(ct++,Yt-Ut,$t),y.m(ct++,Yt+dn,$t)))),Se=Nt}tt&&(Mt=y.i(ct-1).x,zt=y.i(ct-1).y,Yt=y.i(ct).x,$t=y.i(ct).y,this.K===180||this.K===0?zt!==$t&&(Ut=this.K===0?Math.min(Math.max((Yt+Mt)/2,this.Ta[Be.layer]+this.Rf.x),Yt):Math.max(Math.min((Yt+Mt)/2,this.Ta[Be.layer]+this.Rf.x),Yt),y.m(ct++,Ut,zt),y.m(ct++,Ut,$t)):Mt!==Yt&&(Ut=this.K===90?Math.min(Math.max(($t+zt)/2,this.Ta[Be.layer]+this.Rf.y),$t):Math.max(Math.min(($t+zt)/2,this.Ta[Be.layer]+this.Rf.y),$t),y.m(ct++,Mt,Ut),y.m(ct++,Yt,Ut)))}b!==null&&Xe&&4<=y.pointsCount&&(ne!==null&&(ne=ve===ua?y.getLinkPointFromPoint(E,ne,ne.ga(Ri),y.i(3),!0):y.i(0),ve===ua&&(ve=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+ve.x)/2,ve.y),y.L(2,b.x,(ve.y+b.y)/2)):(y.L(1,ve.x,(ne.y+ve.y)/2),y.L(2,(ve.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(Ri),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()},fo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Fn,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),ve=b.i(b.pointsCount-1);if(se.first=he.x*he.x+he.y,se.jc=ve.x*ve.x+ve.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),ve=b.i(E+2);var Se=0;he.y<te.y?Se=ve.y<te.y?3:te.x<ne.x?2:1:he.y>te.y&&(Se=ve.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++)ve=x[he],ve.jc!==se&&(Se++,se=ve.jc);this.zi(x,this.Ux,te,te+ne);var Be=1;for(se=x[te].first,he=te;he<E;he++)ve=x[he],ve.first!==se&&(Be++,se=ve.first);for(he=!0,ve=Be,Se<Be?(he=!1,ve=Se,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,Se=0,Be=te;Be<E;Be++){var Xe=x[Be];(he?Xe.first:Xe.jc)!==se&&(Se++,se=he?Xe.first:Xe.jc);var tt=Xe.link;te=tt.i(Xe.index),ne=tt.i(Xe.index+1);var rt=this.linkSpacing*(Se-(ve-1)/2);y++,tt.uh(),tt.L(Xe.index,te.x,te.y+rt),tt.L(Xe.index+1,ne.x,ne.y+rt),tt.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),ve=b.i(b.pointsCount-1),se.first=he.x+he.y*he.y,se.jc=ve.x+ve.y*ve.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),ve=b.i(E+2),Se=0,he.x<te.x?Se=ve.x<te.x?3:te.y<ne.y?2:1:he.x>te.x&&(Se=ve.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++)ve=x[he],ve.jc!==se&&(Se++,se=ve.jc);for(this.zi(x,this.Ux,te,te+ne),Be=1,se=x[te].first,he=te;he<E;he++)ve=x[he],ve.first!==se&&(Be++,se=ve.first);for(he=!0,ve=Be,Se<Be?(he=!1,ve=Se,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,Se=0,Be=te;Be<E;Be++)Xe=x[Be],(he?Xe.first:Xe.jc)!==se&&(Se++,se=he?Xe.first:Xe.jc),tt=Xe.link,te=tt.i(Xe.index),ne=tt.i(Xe.index+1),rt=this.linkSpacing*(Se-(ve-1)/2),y++,tt.uh(),tt.L(Xe.index,te.x+rt,te.y),tt.L(Xe.index+1,ne.x+rt,ne.y),tt.zf()}te=E}a=b}}}},at=fo.prototype,at.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},at.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},at.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},at.B=function(a,y){return a-=y,-1<a&&1>a},at.zi=function(a,y,x,b){var E=a.length,te=b-x;if(!(1>=te))if((0>x||x>=E-1)&&Ht("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}Pt.Object.defineProperties(fo.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()):Ht("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 Sn(fo,"CycleDepthFirst",0),xy=new Sn(fo,"CycleGreedy",1),Zg=new Sn(fo,"CycleFromLayers",2),Dv=new Sn(fo,"LayerOptimalLinkLength",0),wy=new Sn(fo,"LayerLongestPathSink",1),by=new Sn(fo,"LayerLongestPathSource",2),Ov=new Sn(fo,"InitDepthFirstOut",0),Cy=new Sn(fo,"InitDepthFirstIn",1),Py=new Sn(fo,"InitNaive",2),Ey=new Sn(fo,"AggressiveNone",0),kv=new Sn(fo,"AggressiveLess",1),Ay=new Sn(fo,"AggressiveMore",2),Yx=8;fo.className="LayeredDigraphLayout",fo.CycleDepthFirst=Fv,fo.CycleGreedy=xy,fo.CycleFromLayers=Zg,fo.LayerOptimalLinkLength=Dv,fo.LayerLongestPathSink=wy,fo.LayerLongestPathSource=by,fo.InitDepthFirstOut=Ov,fo.InitDepthFirstIn=Cy,fo.InitNaive=Py,fo.AggressiveNone=Ey,fo.AggressiveLess=kv,fo.AggressiveMore=Ay,fo.PackNone=0,fo.PackExpand=1,fo.PackStraighten=2,fo.PackMedian=4,fo.PackAll=15,fo.AlignNone=0,fo.AlignUpperLeft=1,fo.AlignUpperRight=2,fo.AlignLowerLeft=4,fo.AlignLowerRight=8,fo.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)}Gt(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}Gt(hu,Va);function ix(a,y){return a.index-y.index}function Nv(a,y){if(!a.$n){for(var x=[],b=ui(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=ui(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Ht("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=ui(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=ui(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},Pt.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}Gt(Kg,Tl),Pt.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 Ai(a){Go.call(this),this.Ub=new On,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)}Gt(Ai,Go),Ai.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)},Ai.prototype.qb=function(a){a.classType===Ai?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:Ht("Unknown enum value: "+a):Go.prototype.qb.call(this,a)},Ai.prototype.createNetwork=function(){return new Nf(this)},Ai.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 hn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof ni?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Ai.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 hn&&(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 On,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 On,this.isValidLayout=!0};function Qx(a){var y=new On;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Ai.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:Ht("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:Ht("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 Fn,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 Fn,b=y.sourceVertexes;b.next();)E=b.value,ax(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Ht("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}Ai.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}}Ai.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])}}Ai.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])}}Ai.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:Ht("Unhandled sorting value "+a.sorting.toString())}},Ai.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ai.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 ve=a.node.Mu();ve.next();){var Se=ve.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}Ai.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,ve=a.comments,Se=ve.length,Be=Lt.alloc(),Xe=0;Xe<Se;Xe++){var tt=ve[Xe],rt=tt.measuredBounds;if(b&&!ne||!te&&!x&&ne||te&&x&&ne){if(135<E&&!te||x&&se)if(0<=a.commentMargin)for(Be.h(a.bounds.x-a.commentMargin-rt.width,a.bounds.y+he),tt.move(Be),tt=tt.Sd();tt.next();){var ct=tt.value;ct.fromSpot=La,ct.toSpot=Ya}else for(Be.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+he),tt.move(Be),tt=tt.Sd();tt.next();)ct=tt.value,ct.fromSpot=Ya,ct.toSpot=La;else if(0<=a.commentMargin)for(Be.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+he),tt.move(Be),tt=tt.Sd();tt.next();)ct=tt.value,ct.fromSpot=Ya,ct.toSpot=La;else for(Be.h(a.bounds.x+a.commentMargin-rt.width,a.bounds.y+he),tt.move(Be),tt=tt.Sd();tt.next();)ct=tt.value,ct.fromSpot=La,ct.toSpot=Ya;he=0<=a.commentSpacing?he+(rt.height+a.commentSpacing):he+(a.commentSpacing-rt.height)}else{if(135<E&&!te||!x&&se)if(0<=a.commentMargin)for(Be.h(a.bounds.x+he,a.bounds.y-a.commentMargin-rt.height),tt.move(Be),tt=tt.Sd();tt.next();)ct=tt.value,ct.fromSpot=ga,ct.toSpot=Ua;else for(Be.h(a.bounds.x+he,a.bounds.y+2*a.focus.y-a.commentMargin),tt.move(Be),tt=tt.Sd();tt.next();)ct=tt.value,ct.fromSpot=Ua,ct.toSpot=ga;else if(0<=a.commentMargin)for(Be.h(a.bounds.x+he,a.bounds.y+2*a.focus.y+a.commentMargin),tt.move(Be),tt=tt.Sd();tt.next();)ct=tt.value,ct.fromSpot=Ua,ct.toSpot=ga;else for(Be.h(a.bounds.x+he,a.bounds.y+a.commentMargin-rt.height),tt.move(Be),tt=tt.Sd();tt.next();)ct=tt.value,ct.fromSpot=ga,ct.toSpot=Ua;he=0<=a.commentSpacing?he+(rt.width+a.commentSpacing):he+(a.commentSpacing-rt.width)}}if(Lt.free(Be),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)}},Ai.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 ve=he===Ic,Se=dd(he),Be=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Xe=a.nodeSpacing,tt=this.computeNodeIndent(a),rt=a.rowSpacing,ct=0;(b||ve||a.hm||a.im&&a.maxGenerationCount===1)&&(ct=Math.max(0,a.rowIndent)),b=a.width;var Nt=a.height,Mt=0,zt=0,Ut=0,Yt=null,$t=null,dn=0,ir=0,gr=0,hr=0,Qn=0,jn=0,qr=0,Xr=0;if(Se&&!Vg(he)&&135<E&&ne.reverse(),Vg(he))if(1<se)for(var Yi=0;Yi<se;Yi++)Yi%2===0&&Yi!==se-1&&(Xr=Math.max(Xr,y?ne[Yi].Da.width:ne[Yi].Da.height));else se===1&&(Xr=y?ne[0].Da.width:ne[0].Da.height);if(Se){switch(he){case Oh:zt=135>E?hx(this,a,ne,Xr,Mt,zt):dx(this,a,ne,Xr,Mt,zt),Xr=zt.x,Mt=zt.width,zt=zt.height;break;case kh:for(Yt=0;Yt<se;Yt++)$t=ne[Yt],Be=$t.Da,Ut=jn===0?0:rt,y?($t.S.h(te-Be.width,hr+Ut),Mt=Math.max(Mt,Be.width),zt=Math.max(zt,hr+Ut+Be.height),hr+=Ut+Be.height):($t.S.h(gr+Ut,te-Be.height),Mt=Math.max(Mt,gr+Ut+Be.width),zt=Math.max(zt,Be.height),gr+=Ut+Be.width),jn++;break;case ih:for(Yt=0;Yt<se;Yt++)$t=ne[Yt],te=$t.Da,Be=jn===0?0:rt,y?($t.S.h(Xe/2+a.focus.x,hr+Be),Mt=Math.max(Mt,te.width),zt=Math.max(zt,hr+Be+te.height),hr+=Be+te.height):($t.S.h(gr+Be,Xe/2+a.focus.y),Mt=Math.max(Mt,gr+Be+te.width),zt=Math.max(zt,te.height),gr+=Be+te.width),jn++}Yt=yl(this,2),$t=yl(this,2),y?(Yt[0].h(0,0),Yt[1].h(0,zt),$t[0].h(Mt,0)):(Yt[0].h(0,0),Yt[1].h(Mt,0),$t[0].h(0,zt)),$t[1].h(Mt,zt)}else for(Yi=0;Yi<se;Yi++){var Po=ne[Yi],qa=Po.Da;if(y){0<Be&&0<jn&&gr+Xe+qa.width>Be&&(gr<te&&_d(a,he,te-gr,0,qr,Yi-1),Qn++,jn=0,qr=Yi,Ut=zt,gr=0,hr=135<E?-zt-rt:zt+rt),Iv(this,Po,0,hr);var rs=0;if(jn===0)Yt=Po.Yo,$t=Po.kp,dn=qa.width,ir=qa.height,(Yt===null||$t===null||E!==Bu(Po))&&(Yt=yl(this,2),$t=yl(this,2),Yt[0].h(0,0),Yt[1].h(0,ir),$t[0].h(dn,0),$t[1].h(dn,ir));else{var js=yn();ir=fx(this,a,Po,Yt,$t,dn,ir,js),rs=ir.x,Yt=js[0],$t=js[1],dn=ir.width,ir=ir.height,Ln(js),gr<qa.width&&0>rs&&(Df(a,-rs,0,qr,Yi-1),jv(Yt,-rs,0),jv($t,-rs,0),rs=0)}Po.S.h(rs,hr),Mt=Math.max(Mt,dn),zt=Math.max(zt,Ut+(Qn===0?0:rt)+qa.height),gr=dn}else 0<Be&&0<jn&&hr+Xe+qa.height>Be&&(hr<te&&_d(a,he,0,te-hr,qr,Yi-1),Qn++,jn=0,qr=Yi,Ut=Mt,hr=0,gr=135<E?-Mt-rt:Mt+rt),Iv(this,Po,gr,0),rs=0,jn===0?(Yt=Po.Yo,$t=Po.kp,dn=qa.width,ir=qa.height,(Yt===null||$t===null||E!==Bu(Po))&&(Yt=yl(this,2),$t=yl(this,2),Yt[0].h(0,0),Yt[1].h(dn,0),$t[0].h(0,ir),$t[1].h(dn,ir))):(js=yn(),ir=fx(this,a,Po,Yt,$t,dn,ir,js),rs=ir.x,Yt=js[0],$t=js[1],dn=ir.width,ir=ir.height,Ln(js),hr<qa.height&&0>rs&&(Df(a,0,-rs,qr,Yi-1),jv(Yt,0,-rs),jv($t,0,-rs),rs=0)),Po.S.h(gr,rs),zt=Math.max(zt,ir),Mt=Math.max(Mt,Ut+(Qn===0?0:rt)+qa.width),hr=ir;jn++}switch(0<Qn&&(y?(zt+=Math.max(0,x),gr<Mt&&_d(a,he,Mt-gr,0,qr,se-1),0<ct&&(ve||Df(a,ct,0,0,se-1),Mt+=ct)):(Mt+=Math.max(0,x),hr<zt&&_d(a,he,0,zt-hr,qr,se-1),0<ct&&(ve||Df(a,0,ct,0,se-1),zt+=ct))),ct=ve=0,he){case kp:y?ve+=Mt/2-a.focus.x-tt/2:ct+=zt/2-a.focus.y-tt/2;break;case kf:0<Qn?y?ve+=Mt/2-a.focus.x-tt/2:ct+=zt/2-a.focus.y-tt/2:y?(Xr=ne[0].S.x+ne[0].la.x,ve+=Xr+(ne[se-1].S.x+ne[se-1].la.x+2*ne[se-1].focus.x-Xr)/2-a.focus.x-tt/2):(Xr=ne[0].S.y+ne[0].la.y,ct+=Xr+(ne[se-1].S.y+ne[se-1].la.y+2*ne[se-1].focus.y-Xr)/2-a.focus.y-tt/2);break;case Bc:y?(ve-=tt,Mt+=tt):(ct-=tt,zt+=tt);break;case Ic:y?(ve+=Mt-a.width+tt,Mt+=tt):(ct+=zt-a.height+tt,zt+=tt);break;case Oh:y?1<se?ve+=Xr+Xe/2-a.focus.x:ve+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<se?ct+=Xr+Xe/2-a.focus.y:ct+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case kh:y?ve+=Mt+Xe/2-a.focus.x:ct+=zt+Xe/2-a.focus.y;break;case ih:break;default:zt=this.customAlignment(a,ve,ct,Mt,zt),ve=zt[0],ct=zt[1],Mt=zt[2],zt=zt[3]}for(tt=0;tt<se;tt++)Xr=ne[tt],y?Xr.S.h(Xr.S.x+Xr.la.x-ve,Xr.S.y+(135<E?(Se?-zt:-Xr.Da.height)+Xr.la.y-x:Nt+x+Xr.la.y)):Xr.S.h(Xr.S.x+(135<E?(Se?-Mt:-Xr.Da.width)+Xr.la.x-x:b+x+Xr.la.x),Xr.S.y+Xr.la.y-ct);if(se=ne=0,Se?y?(Mt=Fy(a,Mt,ve),0>ve&&(ve=0),135<E&&(ct+=zt+x),zt+=Nt+x,he===ih&&(ne+=Xe/2+a.focus.x),se+=Nt+x):(135<E&&(ve+=Mt+x),Mt+=b+x,zt=Dy(a,zt,ct),0>ct&&(ct=0),he===ih&&(se+=Xe/2+a.focus.y),ne+=b+x):y?(a.comments===null?b>Mt&&(Mt=Oy(he,b-Mt,0),ne=Mt.x,se=Mt.y,Mt=b,ve=0):Mt=Fy(a,Mt,ve),0>ve&&(ne-=ve,ve=0),135<E&&(ct+=zt+x),zt=Math.max(Math.max(zt,Nt),zt+Nt+x),se+=Nt+x):(135<E&&(ve+=Mt+x),Mt=Math.max(Math.max(Mt,b),Mt+b+x),a.comments===null?Nt>zt&&(zt=Oy(he,0,Nt-zt),ne=zt.x,se=zt.y,zt=Nt,ct=0):zt=Dy(a,zt,ct),0>ct&&(se-=ct,ct=0),ne+=b+x),0<Qn)E=yl(this,4),Qn=yl(this,4),y?(E[2].h(0,Nt+x),E[3].h(E[2].x,zt),Qn[2].h(Mt,E[2].y),Qn[3].h(Qn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Mt,E[2].y),Qn[2].h(E[2].x,zt),Qn[3].h(E[3].x,Qn[2].y));else{for(E=yl(this,Yt.length+2),Qn=yl(this,$t.length+2),he=0;he<Yt.length;he++)Se=Yt[he],E[he+2].h(Se.x+ne,Se.y+se);for(he=0;he<$t.length;he++)Se=$t[he],Qn[he+2].h(Se.x+ne,Se.y+se)}y?(E[0].h(ve,0),E[1].h(E[0].x,Nt),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(ve+b,0),Qn[1].h(Qn[0].x,Nt),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,ct),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,ct+Nt),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,Yt),$u(this,$t),a.Yo=E,a.kp=Qn,a.la.h(ve,ct),a.Da.h(Mt,zt)}break;default:Ht("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 ve=y.alignment,Se=ve===Bc,Be=ve===Ic;se=dd(ve);var Xe=Math.max(0,y.breadthLimit);he=a.computeLayerSpacing(y);var tt=y.nodeSpacing,rt=a.computeNodeIndent(y),ct=Se||Be?0:rt/2,Nt=y.rowSpacing,Mt=0;(Se||Be||y.hm||y.im&&y.maxGenerationCount===1)&&(Mt=Math.max(0,y.rowIndent)),Se=y.width;var zt=y.height,Ut=0,Yt=0,$t=0,dn=0,ir=0,gr=0,hr=0,Qn=0,jn=0,qr=0;if(se&&!Vg(ve)&&135<b&&E.reverse(),Vg(ve))if(1<ne)for(var Xr=0;Xr<ne;Xr++){var Yi=E[Xr],Po=Yi.Da;Xr%2===0&&Xr!==ne-1?jn=Math.max(jn,(x?Po.width:Po.height)+a.computeBusNodeSpacing(Yi)-tt):Xr%2!==0&&(qr=Math.max(qr,(x?Po.width:Po.height)+a.computeBusNodeSpacing(Yi)-tt))}else ne===1&&(jn=x?E[0].Da.width:E[0].Da.height);if(se)switch(ve){case Oh:case jc:Yt=135>b?hx(a,y,E,jn,Ut,Yt):dx(a,y,E,jn,Ut,Yt),jn=Yt.x,Ut=Yt.width,Yt=Yt.height;break;case kh:for(Xe=0;Xe<ne;Xe++)ct=E[Xe],$t=ct.Da,qr=hr===0?0:Nt,x?(ct.S.h(te-$t.width,ir+qr),Ut=Math.max(Ut,$t.width),Yt=Math.max(Yt,ir+qr+$t.height),ir+=qr+$t.height):(ct.S.h(dn+qr,te-$t.height),Ut=Math.max(Ut,dn+qr+$t.width),Yt=Math.max(Yt,$t.height),dn+=qr+$t.width),hr++;break;case ih:for(te=0;te<ne;te++)Xe=E[te],ct=Xe.Da,$t=hr===0?0:Nt,x?(Xe.S.h(tt/2+y.focus.x,ir+$t),Ut=Math.max(Ut,ct.width),Yt=Math.max(Yt,ir+$t+ct.height),ir+=$t+ct.height):(Xe.S.h(dn+$t,tt/2+y.focus.y),Ut=Math.max(Ut,dn+$t+ct.width),Yt=Math.max(Yt,ct.height),dn+=$t+ct.width),hr++}else for(qr=0;qr<ne;qr++)Xr=E[qr],Yi=Xr.Da,x?(0<Xe&&0<hr&&dn+tt+Yi.width>Xe&&(dn<te&&_d(y,ve,te-dn,0,Qn,qr-1),gr++,hr=0,Qn=qr,$t=Yt,dn=0,ir=135<b?-Yt-Nt:Yt+Nt),Po=hr===0?ct:tt,Iv(a,Xr,0,ir),Xr.S.h(dn+Po,ir),Ut=Math.max(Ut,dn+Po+Yi.width),Yt=Math.max(Yt,$t+(gr===0?0:Nt)+Yi.height),dn+=Po+Yi.width):(0<Xe&&0<hr&&ir+tt+Yi.height>Xe&&(ir<te&&_d(y,ve,0,te-ir,Qn,qr-1),gr++,hr=0,Qn=qr,$t=Ut,ir=0,dn=135<b?-Ut-Nt:Ut+Nt),Po=hr===0?ct:tt,Iv(a,Xr,dn,0),Xr.S.h(dn,ir+Po),Yt=Math.max(Yt,ir+Po+Yi.height),Ut=Math.max(Ut,$t+(gr===0?0:Nt)+Yi.width),ir+=Po+Yi.height),hr++;switch(0<gr&&(x?(Yt+=Math.max(0,he),dn<Ut&&_d(y,ve,Ut-dn,0,Qn,ne-1),0<Mt&&(Be||Df(y,Mt,0,0,ne-1),Ut+=Mt)):(Ut+=Math.max(0,he),ir<Yt&&_d(y,ve,0,Yt-ir,Qn,ne-1),0<Mt&&(Be||Df(y,0,Mt,0,ne-1),Yt+=Mt))),Mt=Be=0,ve){case kp:x?Be+=Ut/2-y.focus.x-rt/2:Mt+=Yt/2-y.focus.y-rt/2;break;case kf:0<gr?x?Be+=Ut/2-y.focus.x-rt/2:Mt+=Yt/2-y.focus.y-rt/2:x?(a=E[0].S.x+E[0].la.x,Be+=a+(E[ne-1].S.x+E[ne-1].la.x+2*E[ne-1].focus.x-a)/2-y.focus.x-rt/2):(a=E[0].S.y+E[0].la.y,Mt+=a+(E[ne-1].S.y+E[ne-1].la.y+2*E[ne-1].focus.y-a)/2-y.focus.y-rt/2);break;case Bc:x?(Be-=rt,Ut+=rt):(Mt-=rt,Yt+=rt);break;case Ic:x?(Be+=Ut-y.width+rt,Ut+=rt):(Mt+=Yt-y.height+rt,Yt+=rt);break;case Oh:case jc:x?1<ne?Be+=jn+tt/2-y.focus.x:Be+=E[0].focus.x-y.focus.x+E[0].la.x:1<ne?Mt+=jn+tt/2-y.focus.y:Mt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case kh:x?Be+=Ut+tt/2-y.focus.x:Mt+=Yt+tt/2-y.focus.y;break;case ih:break;default:a=a.customAlignment(y,Be,Mt,Ut,Yt),Be=a[0],Mt=a[1],Ut=a[2],Yt=a[3]}for(a=0;a<ne;a++)rt=E[a],x?rt.S.h(rt.S.x+rt.la.x-Be,rt.S.y+(135<b?(se?-Yt:-rt.Da.height)+rt.la.y-he:zt+he+rt.la.y)):rt.S.h(rt.S.x+(135<b?(se?-Ut:-rt.Da.width)+rt.la.x-he:Se+he+rt.la.x),rt.S.y+rt.la.y-Mt);x?(Ut=Fy(y,Ut,Be),0>Be&&(Be=0),135<b&&(Mt+=Yt+he),Yt=Math.max(Math.max(Yt,zt),Yt+zt+he)):(135<b&&(Be+=Ut+he),Ut=Math.max(Math.max(Ut,Se),Ut+Se+he),Yt=Dy(y,Yt,Mt),0>Mt&&(Mt=0)),y.la.h(Be,Mt),y.Da.h(Ut,Yt)}}Ai.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,ve=Bu(y)===90,Se=0,Be=0,Xe=0,tt=0;tt<ne;tt++)if(!(tt%2!==0||1<ne&&tt===ne-1)){var rt=x[tt],ct=rt.Da,Nt=Se===0?0:he;if(ve){var Mt=a.computeBusNodeSpacing(rt)-se;rt.S.h(b-(ct.width+Mt),Xe+Nt),E=Math.max(E,ct.width+Mt),te=Math.max(te,Xe+Nt+ct.height),Xe+=Nt+ct.height}else Mt=a.computeBusNodeSpacing(rt)-se,rt.S.h(Be+Nt,b-(ct.height+Mt)),te=Math.max(te,ct.height+Mt),E=Math.max(E,Be+Nt+ct.width),Be+=Nt+ct.width;Se++}for(Se=0,rt=Be,tt=Xe,ve?(Be=b+se,Xe=0):(Be=0,Xe=b+se),ct=0;ct<ne;ct++)if(ct%2!==0){Nt=x[ct],Mt=Nt.Da;var zt=Se===0?0:he;if(ve){var Ut=a.computeBusNodeSpacing(Nt)-se;Nt.S.h(Be+Ut,Xe+zt),E=Math.max(E,Be+Mt.width+Ut),te=Math.max(te,Xe+zt+Mt.height),Xe+=zt+Mt.height}else Ut=a.computeBusNodeSpacing(Nt)-se,Nt.S.h(Be+zt,Xe+Ut),E=Math.max(E,Be+zt+Mt.width),te=Math.max(te,Xe+Mt.height+Ut),Be+=zt+Mt.width;Se++}return 1<ne&&ne%2===1&&(x=x[ne-1],ne=x.Da,a=a.computeBusLastRowSpacing(x,ve?Math.max(Math.abs(tt),Math.abs(Xe)):Math.max(Math.abs(rt),Math.abs(Be))),ve?(x.S.h(b+se/2-x.focus.x-x.la.x,te+a),ve=b+se/2-x.focus.x-x.la.x,E=Math.max(E,ve+ne.width),0>ve&&(E-=ve),te=Math.max(te,Math.max(tt,Xe)+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(rt,Be)+a+ne.width),Xe=b+se/2-x.focus.y-x.la.y,te=Math.max(te,Xe+ne.height),0>Xe&&(te-=Xe),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,ve=Bu(y)===270,Se=0,Be=0,Xe=0,tt=0;tt<ne;tt++)if(!(tt%2!==0||1<ne&&tt===ne-1)){var rt=x[tt],ct=rt.Da,Nt=Se===0?0:he;if(ve){var Mt=a.computeBusNodeSpacing(rt)-se;Xe-=Nt+ct.height,rt.S.h(b-(ct.width+Mt),Xe),E=Math.max(E,ct.width+Mt),te=Math.max(te,Math.abs(Xe))}else Mt=a.computeBusNodeSpacing(rt)-se,Be-=Nt+ct.width,rt.S.h(Be,b-(ct.height+Mt)),te=Math.max(te,ct.height+Mt),E=Math.max(E,Math.abs(Be));Se++}for(Se=0,rt=Be,tt=Xe,ve?(Be=b+se,Xe=0):(Be=0,Xe=b+se),ct=0;ct<ne;ct++)if(ct%2!==0){Nt=x[ct],Mt=Nt.Da;var zt=Se===0?0:he;if(ve){var Ut=a.computeBusNodeSpacing(Nt)-se;Xe-=zt+Mt.height,Nt.S.h(Be+Ut,Xe),E=Math.max(E,Be+Mt.width+Ut),te=Math.max(te,Math.abs(Xe))}else Ut=a.computeBusNodeSpacing(Nt)-se,Be-=zt+Mt.width,Nt.S.h(Be,Xe+Ut),te=Math.max(te,Xe+Mt.height+Ut),E=Math.max(E,Math.abs(Be));Se++}for(1<ne&&ne%2===1&&(he=x[ne-1],Se=he.Da,a=a.computeBusLastRowSpacing(he,ve?Math.max(Math.abs(tt),Math.abs(Xe)):Math.max(Math.abs(rt),Math.abs(Be))),ve?(he.S.h(b+se/2-he.focus.x-he.la.x,-te-Se.height-a),Be=b+se/2-he.focus.x-he.la.x,E=Math.max(E,Be+Se.width),0>Be&&(E-=Be),te=Math.max(te,Math.abs(Math.min(tt,Xe))+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(rt,Be))+a+Se.width),Xe=b+se/2-he.focus.y-he.la.y,te=Math.max(te,Xe+Se.height),0>Xe&&(te-=Xe),0>he.S.y&&(b=Bv(y,he.S.y,!0,b,se)))),y=0;y<ne;y++)se=x[y],ve?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)}Ai.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Ai.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:Ht("Unhandled alignment value "+a.toString())}return new Lt(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:Ht("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),ve=he===90||he===270,Se=y.nodeSpacing;y=b;var Be=E;b=te;var Xe=ne,tt=x.Yo,rt=x.kp;ne=x.Da;var ct=ve?Math.max(Xe,ne.height):Math.max(b,ne.width);if((tt===null||he!==Bu(x))&&(tt=yl(a,2),rt=yl(a,2),ve?(tt[0].h(0,0),tt[1].h(0,ne.height),rt[0].h(ne.width,0),rt[1].h(rt[0].x,tt[1].y)):(tt[0].h(0,0),tt[1].h(ne.width,0),rt[0].h(0,ne.height),rt[1].h(tt[1].x,rt[0].y))),ve){if(Xe=9999999,!(Be===null||2>Be.length||tt===null||2>tt.length))for(E=x=0;x<Be.length&&E<tt.length;){te=Be[x];var Nt=tt[E];he=Nt.x,ve=Nt.y,he+=b;var Mt=te;x+1<Be.length&&(Mt=Be[x+1]);var zt=Nt;Nt=zt.x,zt=zt.y,E+1<tt.length&&(zt=tt[E+1],Nt=zt.x,zt=zt.y,Nt+=b);var Ut=Xe;te.y===ve?Ut=he-te.x:te.y>ve&&te.y<zt?Ut=he+(te.y-ve)/(zt-ve)*(Nt-he)-te.x:ve>te.y&&ve<Mt.y&&(Ut=he-(te.x+(ve-te.y)/(Mt.y-te.y)*(Mt.x-te.x))),Ut<Xe&&(Xe=Ut),Mt.y<=te.y?x++:zt<=ve?E++:(Mt.y<=zt&&x++,zt<=Mt.y&&E++)}if(Xe=b-Xe,Xe+=Se,x=tt,E=Xe,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;)ve=x[te++],Se[b++].h(ve.x+E,ve.y);for(;he<y.length;)ve=y[he++],Se[b++].h(ve.x,ve.y);for(he=y[y.length-1].y;te<x.length&&x[te].y<=he;)te++;for(;te<x.length&&x[te].y>he;)ve=x[te++],Se[b++].h(ve.x+E,ve.y);for(x=yl(a,b),he=0;he<b;he++)x[he].assign(Se[he]);$u(a,Se),b=x}if(te=rt,he=Xe,Be===null||2>Be.length||te===null||2>te.length)E=null;else{for(Se=yl(a,Be.length+te.length),E=ve=x=0;x<Be.length&&Be[x].y<te[0].y;)Mt=Be[x++],Se[E++].h(Mt.x,Mt.y);for(;ve<te.length;)Mt=te[ve++],Se[E++].h(Mt.x+he,Mt.y);for(te=te[te.length-1].y;x<Be.length&&Be[x].y<=te;)x++;for(;x<Be.length&&Be[x].y>te;)he=Be[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,Xe)+ne.width,ne=ct,$u(a,y),$u(a,tt),$u(a,Be),$u(a,rt),se[0]=b,se[1]=E,new Mn(Xe,0,te,ne)}if(b=9999999,!(Be===null||2>Be.length||tt===null||2>tt.length))for(E=x=0;x<Be.length&&E<tt.length;)te=Be[x],Nt=tt[E],he=Nt.x,ve=Nt.y,ve+=Xe,Mt=te,x+1<Be.length&&(Mt=Be[x+1]),zt=Nt,Nt=zt.x,zt=zt.y,E+1<tt.length&&(zt=tt[E+1],Nt=zt.x,zt=zt.y,zt+=Xe),Ut=b,te.x===he?Ut=ve-te.y:te.x>he&&te.x<Nt?Ut=ve+(te.x-he)/(Nt-he)*(zt-ve)-te.y:he>te.x&&he<Mt.x&&(Ut=ve-(te.y+(he-te.x)/(Mt.x-te.x)*(Mt.y-te.y))),Ut<b&&(b=Ut),Mt.x<=te.x?x++:Nt<=he?E++:(Mt.x<=Nt&&x++,Nt<=Mt.x&&E++);if(Xe-=b,Xe+=Se,x=tt,E=Xe,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;)ve=x[te++],Se[b++].h(ve.x,ve.y+E);for(;he<y.length;)ve=y[he++],Se[b++].h(ve.x,ve.y);for(he=y[y.length-1].x;te<x.length&&x[te].x<=he;)te++;for(;te<x.length&&x[te].x>he;)ve=x[te++],Se[b++].h(ve.x,ve.y+E);for(x=yl(a,b),he=0;he<b;he++)x[he].assign(Se[he]);$u(a,Se),b=x}if(te=rt,he=Xe,Be===null||2>Be.length||te===null||2>te.length)E=null;else{for(Se=yl(a,Be.length+te.length),E=ve=x=0;x<Be.length&&Be[x].x<te[0].x;)Mt=Be[x++],Se[E++].h(Mt.x,Mt.y);for(;ve<te.length;)Mt=te[ve++],Se[E++].h(Mt.x,Mt.y+he);for(te=te[te.length-1].x;x<Be.length&&Be[x].x<=te;)x++;for(;x<Be.length&&Be[x].x>te;)he=Be[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=ct,ne=Math.max(0,Xe)+ne.height,$u(a,y),$u(a,tt),$u(a,Be),$u(a,rt),se[0]=b,se[1]=E,new Mn(Xe,0,te,ne)}function yl(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Lt;return a}function $u(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Ai.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:Ht("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:Ht("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)}}}Ai.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Ai.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Ai.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 Lt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Lt(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,te=0,this.angle===180||this.angle===270)for(var ne=0;ne<a.length;ne++)te+=a[ne]+y[ne];for(ne=0;ne<a.length;ne++){var se=a[ne]+y[ne];this.angle===270?(te-=se,E.push(new 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)}},Ai.prototype.commitLayers=function(){},Ai.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ai.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])}}Ai.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}Ai.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},Ai.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)},Pt.Object.defineProperties(Ai.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()):Ht("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 Sn(Ai,"PathDefault",-1),Nc=new Sn(Ai,"PathDestination",0),Of=new Sn(Ai,"PathSource",1),Op=new Sn(Ai,"SortingForwards",10),Xg=new Sn(Ai,"SortingReverse",11),Yg=new Sn(Ai,"SortingAscending",12),Jg=new Sn(Ai,"SortingDescending",13),kp=new Sn(Ai,"AlignmentCenterSubtrees",20),kf=new Sn(Ai,"AlignmentCenterChildren",21),Bc=new Sn(Ai,"AlignmentStart",22),Ic=new Sn(Ai,"AlignmentEnd",23),Oh=new Sn(Ai,"AlignmentBus",24),jc=new Sn(Ai,"AlignmentBusBranching",25),kh=new Sn(Ai,"AlignmentTopLeftBus",26),ih=new Sn(Ai,"AlignmentBottomRightBus",27),zv=new Sn(Ai,"CompactionNone",30),Qg=new Sn(Ai,"CompactionBlock",31),Wv=new Sn(Ai,"StyleLayered",40),Ny=new Sn(Ai,"StyleLastParents",41),By=new Sn(Ai,"StyleAlternating",42),Iy=new Sn(Ai,"StyleRootOnly",43),Hv=new Sn(Ai,"ArrangementVertical",50),jy=new Sn(Ai,"ArrangementHorizontal",51),Uv=new Sn(Ai,"ArrangementFixedRoots",52),Ry=new Sn(Ai,"LayerIndividual",60),zy=new Sn(Ai,"LayerSiblings",61),Gv=new Sn(Ai,"LayerUniform",62);Ai.className="TreeLayout",Ai.PathDefault=Rv,Ai.PathDestination=Nc,Ai.PathSource=Of,Ai.SortingForwards=Op,Ai.SortingReverse=Xg,Ai.SortingAscending=Yg,Ai.SortingDescending=Jg,Ai.AlignmentCenterSubtrees=kp,Ai.AlignmentCenterChildren=kf,Ai.AlignmentStart=Bc,Ai.AlignmentEnd=Ic,Ai.AlignmentBus=Oh,Ai.AlignmentBusBranching=jc,Ai.AlignmentTopLeftBus=kh,Ai.AlignmentBottomRightBus=ih,Ai.CompactionNone=zv,Ai.CompactionBlock=Qg,Ai.StyleLayered=Wv,Ai.StyleLastParents=Ny,Ai.StyleAlternating=By,Ai.StyleRootOnly=Iy,Ai.ArrangementVertical=Hv,Ai.ArrangementHorizontal=jy,Ai.ArrangementFixedRoots=Uv,Ai.LayerIndividual=Ry,Ai.LayerSiblings=zy,Ai.LayerUniform=Gv;function Nf(a){To.call(this,a)}Gt(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 Lt(0,0),this.Da=new qn(0,0),this.la=new Lt(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=oo,this.wr=!0,this.Dp=oo}Gt(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)},Pt.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 Lt(0,0)}Gt(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:Ht("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,ve=a.isOrthogonal,Se;if(a.uh(),ve||he){for(Se=2;4<a.pointsCount;)a.pv(2);var Be=a.i(1),Xe=a.i(2)}else{for(Se=1;3<a.pointsCount;)a.pv(1);Be=a.i(0),Xe=a.i(a.pointsCount-1)}var tt=a.i(a.pointsCount-1);te===0?(x.alignment===Ic?(te=b.bottom+E.y,E.y===0&&Be.y>tt.y+x.rowIndent&&(te=Math.min(te,Math.max(Be.y,te-y.computeNodeIndent(x))))):x.alignment===Bc?(te=b.top+E.y,E.y===0&&Be.y<tt.y-x.rowIndent&&(te=Math.max(te,Math.min(Be.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,Be.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,Xe.x,te)):(ve&&(a.m(Se,b.right+ne/2,Be.y),Se++),a.m(Se,b.right+ne/2,te),Se++,a.m(Se,b.right+ne+E.x-(ve?se/2:se),te),Se++,ve&&a.m(Se,a.i(Se-1).x,Xe.y))):te===90?(x.alignment===Ic?(te=b.right+E.x,E.x===0&&Be.x>tt.x+x.rowIndent&&(te=Math.min(te,Math.max(Be.x,te-y.computeNodeIndent(x))))):x.alignment===Bc?(te=b.left+E.x,E.x===0&&Be.x<tt.x-x.rowIndent&&(te=Math.max(te,Math.min(Be.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,Be.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,Xe.y)):(ve&&(a.m(Se,Be.x,b.bottom+ne/2),Se++),a.m(Se,te,b.bottom+ne/2),Se++,a.m(Se,te,b.bottom+ne+E.y-(ve?se/2:se)),Se++,ve&&a.m(Se,Xe.x,a.i(Se-1).y))):te===180?(x.alignment===Ic?(te=b.bottom+E.y,E.y===0&&Be.y>tt.y+x.rowIndent&&(te=Math.min(te,Math.max(Be.y,te-y.computeNodeIndent(x))))):x.alignment===Bc?(te=b.top+E.y,E.y===0&&Be.y<tt.y-x.rowIndent&&(te=Math.max(te,Math.min(Be.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,Be.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,Xe.x,te)):(ve&&(a.m(Se,b.left-ne/2,Be.y),Se++),a.m(Se,b.left-ne/2,te),Se++,a.m(Se,b.left-ne+E.x+(ve?se/2:se),te),Se++,ve&&a.m(Se,a.i(Se-1).x,Xe.y))):te===270?(x.alignment===Ic?(te=b.right+E.x,E.x===0&&Be.x>tt.x+x.rowIndent&&(te=Math.min(te,Math.max(Be.x,te-y.computeNodeIndent(x))))):x.alignment===Bc?(te=b.left+E.x,E.x===0&&Be.x<tt.x-x.rowIndent&&(te=Math.max(te,Math.min(Be.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,Be.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,Xe.y)):(ve&&(a.m(Se,Be.x,b.top-ne/2),Se++),a.m(Se,te,b.top-ne/2),Se++,a.m(Se,te,b.top-ne+E.y+(ve?se/2:se)),Se++,ve&&a.m(Se,Xe.x,a.i(Se-1).y))):Ht("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()))}}},Pt.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 hi,this.mouseDownTools),this.gb("Relinking",new Sr,this.mouseDownTools),this.gb("LinkReshaping",new Mr,this.mouseDownTools),this.gb("Rotating",new Oi,this.mouseDownTools),this.gb("Resizing",new ri,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 Gr,this.mouseMoveTools),this.gb("ContextMenu",new _i,this.mouseUpTools),this.gb("TextEditing",new Ui,this.mouseUpTools),this.gb("ClickCreating",new Ei,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=Dt.go,Wy={get licenseKey(){return hn.licenseKey},set licenseKey(a){hn.licenseKey=a},get version(){return hn.version},Group:ni,EnumValue:Sn,List:Fn,Set:On,Map:pr,Point:Lt,Size:qn,Rect:Mn,Margin:kr,Spot:wr,Geometry:$n,PathFigure:Ga,PathSegment:Gi,InputEvent:bs,DiagramEvent:Vc,ChangedEvent:Zo,Model:xr,GraphLinksModel:ji,TreeModel:Qs,Binding:Pa,Transaction:Ja,UndoManager:Yo,CommandHandler:kt,Tool:Hi,DraggingTool:Jo,DraggingInfo:$c,DraggingOptions:de,LinkingBaseTool:vn,LinkingTool:lr,RelinkingTool:Sr,LinkReshapingTool:Mr,ResizingTool:ri,RotatingTool:Oi,ClickSelectingTool:mo,ActionTool:hi,ClickCreatingTool:Ei,HTMLInfo:Si,ContextMenuTool:_i,DragSelectingTool:li,PanningTool:Gr,TextEditingTool:Ui,ToolManager:Wo,Animation:ra,AnimationManager:ea,AnimationTrigger:Al,Layer:Vo,Diagram:hn,Palette:ke,Overview:Re,Brush:uo,GraphObject:qt,Panel:Xn,RowColumnDefinition:ja,Shape:gi,TextBlock:Lo,Picture:ul,Part:Nr,Adornment:Ki,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:fo,LayeredDigraphNetwork:Dp,LayeredDigraphVertex:hu,LayeredDigraphEdge:Kg,TreeLayout:Ai,TreeNetwork:Nf,TreeVertex:wu,TreeEdge:Np};typeof Zv=="object"&&Zv.version&&nr("WARNING: a `go` object on the root object is already defined. "+("Debug"in Zv?"debug ":"")+"version: "+Zv.version+", replaced with version: "+Wy.version),hn.prototype.go=Wy,Dt.go=Wy,typeof kn.exports=="object"&&(kn.exports=typeof We.g!="undefined"?We.g.go:self.go)}();var He=typeof We.g!="undefined"?We.g.go:self.go;const mt=typeof We.g!="undefined"?We.g.go:self.go,oe=mt.Group,Ze=mt.EnumValue,Ne=mt.List,ge=mt.Set,ce=mt.Map,Pe=mt.Point,Ae=mt.Size,ye=mt.Rect,De=mt.Margin,me=mt.Spot,we=mt.Geometry,fe=mt.PathFigure,z=mt.PathSegment,ee=mt.InputEvent,ae=mt.DiagramEvent,re=mt.ChangedEvent,le=mt.Model,ue=mt.GraphLinksModel,pe=mt.TreeModel,Ee=mt.Binding,be=mt.Transaction,Ie=mt.UndoManager,Le=mt.CommandHandler,Fe=mt.Tool,Oe=mt.DraggingTool,je=mt.DraggingInfo,ze=mt.LinkingBaseTool,_e=mt.LinkingTool,Ue=mt.RelinkingTool,$e=mt.LinkReshapingTool,et=mt.ResizingTool,lt=mt.RotatingTool,ut=mt.ClickSelectingTool,yt=mt.ActionTool,qe=mt.ClickCreatingTool,ot=mt.HTMLInfo,dt=mt.ContextMenuTool,St=mt.DragSelectingTool,xt=mt.PanningTool,ft=mt.TextEditingTool,gt=mt.ToolManager,vt=mt.Animation,Tt=mt.AnimationManager,Et=mt.AnimationTrigger,Zt=mt.Layer,wt=mt.Diagram,bt=mt.Palette,it=mt.Overview,nt=mt.Brush,xe=mt.GraphObject,Ce=mt.Panel,Ye=mt.RowColumnDefinition,Je=mt.Shape,Me=mt.TextBlock,Ge=mt.TextBlockMetrics,Ke=mt.Picture,Ve=mt.Part,Qe=mt.Adornment,ht=mt.Node,At=mt.Link,pt=mt.Placeholder,Ot=mt.Layout,Kt=mt.LayoutNetwork,jt=mt.LayoutVertex,Rt=mt.LayoutEdge,Xt=mt.GridLayout,sn=mt.PanelLayout,Ft=mt.CircularLayout,Qt=mt.CircularNetwork,en=mt.CircularVertex,on=mt.CircularEdge,Cn=mt.ForceDirectedLayout,Bn=mt.ForceDirectedNetwork,tr=mt.ForceDirectedVertex,er=mt.ForceDirectedEdge,cr=mt.LayeredDigraphLayout,Ar=mt.LayeredDigraphNetwork,Dr=mt.LayeredDigraphVertex,Or=mt.LayeredDigraphEdge,$r=mt.TreeLayout,ai=mt.TreeNetwork,br=mt.TreeVertex,fi=mt.TreeEdge,Cr=mt.version},2859:function(kn,fn,We){"use strict";We.d(fn,{hP:function(){return it}});var He=function(nt,xe){return(He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ce,Ye){Ce.__proto__=Ye}||function(Ce,Ye){for(var Je in Ye)Object.prototype.hasOwnProperty.call(Ye,Je)&&(Ce[Je]=Ye[Je])})(nt,xe)};function mt(nt,xe){function Ce(){this.constructor=nt}He(nt,xe),nt.prototype=xe===null?Object.create(xe):(Ce.prototype=xe.prototype,new Ce)}function oe(nt,xe,Ce,Ye){return new(Ce||(Ce=Promise))(function(Je,Me){function Ge(Qe){try{Ve(Ye.next(Qe))}catch(ht){Me(ht)}}function Ke(Qe){try{Ve(Ye.throw(Qe))}catch(ht){Me(ht)}}function Ve(Qe){var ht;Qe.done?Je(Qe.value):(ht=Qe.value,ht instanceof Ce?ht:new Ce(function(At){At(ht)})).then(Ge,Ke)}Ve((Ye=Ye.apply(nt,xe||[])).next())})}function Ze(nt,xe){var Ce,Ye,Je,Me,Ge={label:0,sent:function(){if(1&Je[0])throw Je[1];return Je[1]},trys:[],ops:[]};return Me={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(Me[Symbol.iterator]=function(){return this}),Me;function Ke(Ve){return function(Qe){return function(ht){if(Ce)throw new TypeError("Generator is already executing.");for(;Ge;)try{if(Ce=1,Ye&&(Je=2&ht[0]?Ye.return:ht[0]?Ye.throw||((Je=Ye.return)&&Je.call(Ye),0):Ye.next)&&!(Je=Je.call(Ye,ht[1])).done)return Je;switch(Ye=0,Je&&(ht=[2&ht[0],Je.value]),ht[0]){case 0:case 1:Je=ht;break;case 4:return Ge.label++,{value:ht[1],done:!1};case 5:Ge.label++,Ye=ht[1],ht=[0];continue;case 7:ht=Ge.ops.pop(),Ge.trys.pop();continue;default:if(Je=Ge.trys,!((Je=Je.length>0&&Je[Je.length-1])||ht[0]!==6&&ht[0]!==2)){Ge=0;continue}if(ht[0]===3&&(!Je||ht[1]>Je[0]&&ht[1]<Je[3])){Ge.label=ht[1];break}if(ht[0]===6&&Ge.label<Je[1]){Ge.label=Je[1],Je=ht;break}if(Je&&Ge.label<Je[2]){Ge.label=Je[2],Ge.ops.push(ht);break}Je[2]&&Ge.ops.pop(),Ge.trys.pop();continue}ht=xe.call(nt,Ge)}catch(At){ht=[6,At],Ye=0}finally{Ce=Je=0}if(5&ht[0])throw ht[1];return{value:ht[0]?ht[1]:void 0,done:!0}}([Ve,Qe])}}}function Ne(){for(var nt=0,xe=0,Ce=arguments.length;xe<Ce;xe++)nt+=arguments[xe].length;var Ye=Array(nt),Je=0;for(xe=0;xe<Ce;xe++)for(var Me=arguments[xe],Ge=0,Ke=Me.length;Ge<Ke;Ge++,Je++)Ye[Je]=Me[Ge];return Ye}var ge=function(){function nt(){}return nt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},nt.setAttributes=function(xe,Ce){for(var Ye=0,Je=Ce;Ye<Je.length;Ye++){var Me=Je[Ye],Ge=Me[0],Ke=Me[1];xe.setAttribute(Ge,Ke)}},nt.createRect=function(xe,Ce,Ye){var Je=document.createElementNS("http://www.w3.org/2000/svg","rect");return Je.setAttribute("width",xe.toString()),Je.setAttribute("height",Ce.toString()),Ye&&nt.setAttributes(Je,Ye),Je},nt.createLine=function(xe,Ce,Ye,Je,Me){var Ge=document.createElementNS("http://www.w3.org/2000/svg","line");return Ge.setAttribute("x1",xe.toString()),Ge.setAttribute("y1",Ce.toString()),Ge.setAttribute("x2",Ye.toString()),Ge.setAttribute("y2",Je.toString()),Me&&nt.setAttributes(Ge,Me),Ge},nt.createPolygon=function(xe,Ce){var Ye=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ye.setAttribute("points",xe),Ce&&nt.setAttributes(Ye,Ce),Ye},nt.createCircle=function(xe,Ce){var Ye=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ye.setAttribute("cx",(xe/2).toString()),Ye.setAttribute("cy",(xe/2).toString()),Ye.setAttribute("r",xe.toString()),Ce&&nt.setAttributes(Ye,Ce),Ye},nt.createEllipse=function(xe,Ce,Ye){var Je=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Je.setAttribute("cx",(xe/2).toString()),Je.setAttribute("cy",(Ce/2).toString()),Je.setAttribute("rx",(xe/2).toString()),Je.setAttribute("ry",(Ce/2).toString()),Ye&&nt.setAttributes(Je,Ye),Je},nt.createGroup=function(xe){var Ce=document.createElementNS("http://www.w3.org/2000/svg","g");return xe&&nt.setAttributes(Ce,xe),Ce},nt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},nt.createMarker=function(xe,Ce,Ye,Je,Me,Ge,Ke){var Ve=document.createElementNS("http://www.w3.org/2000/svg","marker");return nt.setAttributes(Ve,[["id",xe],["orient",Ce],["markerWidth",Ye.toString()],["markerHeight",Je.toString()],["refX",Me.toString()],["refY",Ge.toString()]]),Ve.appendChild(Ke),Ve},nt.createText=function(xe){var Ce=document.createElementNS("http://www.w3.org/2000/svg","text");return Ce.setAttribute("x","0"),Ce.setAttribute("y","0"),xe&&nt.setAttributes(Ce,xe),Ce},nt.createTSpan=function(xe,Ce){var Ye=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ye.textContent=xe,Ce&&nt.setAttributes(Ye,Ce),Ye},nt.createImage=function(xe){var Ce=document.createElementNS("http://www.w3.org/2000/svg","image");return xe&&nt.setAttributes(Ce,xe),Ce},nt.createPoint=function(xe,Ce){var Ye=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ye.x=xe,Ye.y=Ce,Ye},nt.createPath=function(xe,Ce){var Ye=document.createElementNS("http://www.w3.org/2000/svg","path");return Ye.setAttribute("d",xe),Ce&&nt.setAttributes(Ye,Ce),Ye},nt}(),ce=function(){function nt(){}return nt.addKey=function(xe){nt.key=xe},Object.defineProperty(nt,"isLicensed",{get:function(){return!!nt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(nt.key)},enumerable:!1,configurable:!0}),nt}(),Pe=function(){function nt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return nt.prototype.rasterize=function(xe,Ce,Ye){var Je=this;return new Promise(function(Me){var Ge=Ye!==void 0?Ye:document.createElement("canvas");xe===null&&(Je.markersOnly=!0,Je.naturalSize=!1);var Ke=document.createElementNS("http://www.w3.org/2000/svg","svg");Ke.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ke.setAttribute("width",Ce.width.baseVal.valueAsString),Ke.setAttribute("height",Ce.height.baseVal.valueAsString),Ke.setAttribute("viewBox","0 0 "+Ce.viewBox.baseVal.width.toString()+" "+Ce.viewBox.baseVal.height.toString()),Ke.innerHTML=Ce.innerHTML,Je.naturalSize===!0?(Ke.width.baseVal.value=xe.naturalWidth,Ke.height.baseVal.value=xe.naturalHeight):Je.width!==void 0&&Je.height!==void 0&&(Ke.width.baseVal.value=Je.width,Ke.height.baseVal.value=Je.height),Ge.width=Ke.width.baseVal.value,Ge.height=Ke.height.baseVal.value;var Ve=Ke.outerHTML,Qe=Ge.getContext("2d");Je.markersOnly!==!0&&Qe.drawImage(xe,0,0,Ge.width,Ge.height);var ht=window.URL,At=new Image(Ge.width,Ge.height);At.setAttribute("crossOrigin","anonymous");var pt=new Blob([Ve],{type:"image/svg+xml"}),Ot=ht.createObjectURL(pt);At.onload=function(){Qe.drawImage(At,0,0),ht.revokeObjectURL(Ot);var Kt=Ge.toDataURL(Je.imageType,Je.imageQuality);Me(Kt)},At.src=Ot})},nt}(),Ae=function(){},ye=function(){function nt(xe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+xe+"_"}return Object.defineProperty(nt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(nt.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(nt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),nt.prototype.addClass=function(xe){return this.styleSheet===void 0&&this.addStyleSheet(),xe.name=""+this.classNamePrefix+xe.localName,this.classes.push(xe),this.styleSheet.sheet.insertRule("."+xe.name+" {"+xe.style+"}",this.styleSheet.sheet.cssRules.length),xe},nt.prototype.addRule=function(xe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(xe),this.styleSheet.sheet.insertRule(xe.selector+" {"+xe.style+"}",this.styleSheet.sheet.cssRules.length)},nt.prototype.addStyleSheet=function(){var xe;this.styleSheet=document.createElement("style"),((xe=this.styleSheetRoot)!==null&&xe!==void 0?xe:document.head).appendChild(this.styleSheet),this.addRule(new De("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new De("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new De("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new me("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new me("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},nt.prototype.removeStyleSheet=function(){var xe;this.styleSheet&&(((xe=this.styleSheetRoot)!==null&&xe!==void 0?xe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},nt}(),De=function(nt,xe){this.selector=nt,this.style=xe},me=function(nt,xe){this.localName=nt,this.style=xe},we=function(){function nt(xe,Ce,Ye,Je,Me){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=xe,this.displayMode=Ce,this.markerItems=Ye,this.uiStyleSettings=Je,this.styles=Me,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return nt.prototype.show=function(xe){var Ce=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xe,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(Me){var Ge=document.createElement("div");Ge.className=""+Ce.toolbarButtonStyleClass.name,Ge.setAttribute("data-type-name",Me.typeName),Ge.innerHTML=Me.icon,Ge.addEventListener("click",function(){Ce.markerToolbarButtonClicked(Ge,Me)}),Ce.buttons.push(Ge),Ce.markerButtons.push(Ge)}),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 Je=document.createElement("div");Je.className=this.toolbarBlockStyleClass.name,Je.style.whiteSpace="nowrap",Je.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Je),this.addActionButton(Je,'<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(Je,'<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()},nt.prototype.addButtonClickListener=function(xe){this.buttonClickListeners.push(xe)},nt.prototype.removeButtonClickListener=function(xe){this.buttonClickListeners.indexOf(xe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(xe),1)},nt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},nt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var xe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Ce=0;Ce<this.markerButtons.length;Ce++)Ce<xe||Ce===xe&&this.markerButtons.length-1===xe?this.markerButtonBlock.appendChild(this.markerButtons[Ce]):(Ce===xe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Ce]))}},nt.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")},nt.prototype.resetButtonStyles=function(){var xe=this;this.buttons.forEach(function(Ce){Ce.className=Ce.className.replace(xe.uiStyleSettings.toolbarButtonStyleColorsClassName?xe.uiStyleSettings.toolbarButtonStyleColorsClassName:xe.toolbarButtonStyleColorsClass.name,"").trim(),Ce.className=Ce.className.replace(xe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?xe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:xe.toolbarActiveButtonStyleColorsClass.name,"").trim(),Ce.className+=" "+(xe.uiStyleSettings.toolbarButtonStyleColorsClassName?xe.uiStyleSettings.toolbarButtonStyleColorsClassName:xe.toolbarButtonStyleColorsClass.name)})},nt.prototype.addActionButton=function(xe,Ce,Ye){var Je=this,Me=document.createElement("div");switch(Me.className=""+this.toolbarButtonStyleClass.name,Me.innerHTML=Ce,Me.setAttribute("data-action",Ye),Me.addEventListener("click",function(){Je.actionToolbarButtonClicked(Me,Ye)}),Ye){case"select":Me.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Me.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Me.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Me.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Me.style.fill=this.uiStyleSettings.closeButtonColor}xe.appendChild(Me),this.buttons.push(Me)},nt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new me("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 me("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new me("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new me("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 me("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new me("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
padding: `+xe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new me("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new me("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new De("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new De("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},nt.prototype.markerToolbarButtonClicked=function(xe,Ce){this.setActiveButton(xe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ye){return Ye("marker",Ce)}),this.markerButtonOverflowBlock.style.display="none"},nt.prototype.actionToolbarButtonClicked=function(xe,Ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ye){return Ye("action",Ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},nt.prototype.setActiveButton=function(xe){this.resetButtonStyles(),xe.className=xe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},nt.prototype.setActiveMarkerButton=function(xe){var Ce=this.markerButtons.find(function(Ye){return Ye.getAttribute("data-type-name")===xe});Ce&&this.setActiveButton(Ce)},nt.prototype.setCurrentMarker=function(xe){var Ce=this;this.currentMarker=xe,this.buttons.filter(function(Ye){return/delete|notes/.test(Ye.getAttribute("data-action"))}).forEach(function(Ye){Ce.currentMarker===void 0?(Ye.style.fillOpacity="0.4",Ye.style.pointerEvents="none"):(Ye.style.fillOpacity="1",Ye.style.pointerEvents="all")})},nt}(),fe=function(){function nt(xe,Ce,Ye,Je){this.panels=[],this.panelButtons=[],this.markerjsContainer=xe,this.displayMode=Ce,this.uiStyleSettings=Ye,this.styles=Je,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return nt.prototype.addStyles=function(){var xe;this.toolboxStyleClass=this.styles.addClass(new me("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 me("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var Ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new me("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new me("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new me("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 me("toolbox-panel-row_colors",`
|
|
|
background-color: `+((xe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&xe!==void 0?xe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new me("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ce)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ce)+`px;
|
|
|
padding: `+Ce+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new me("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new me("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new De("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new De("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},nt.prototype.show=function(xe){var Ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Ce!==void 0?Ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},nt.prototype.setPanelButtons=function(xe){var Ce,Ye,Je=this;this.panels=xe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Ce=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Ce!==void 0?Ce: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(Me){var Ge;Me.uiStyleSettings=Je.uiStyleSettings;var Ke=document.createElement("div");Ke.className=Je.toolboxButtonStyleClass.name+" "+((Ge=Je.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ge!==void 0?Ge:Je.toolboxButtonStyleColorsClass.name),Ke.innerHTML=Me.icon,Ke.title=Me.title,Ke.addEventListener("click",function(){Je.panelButtonClick(Me)}),Je.panelButtons.push(Ke),Je.buttonRow.appendChild(Ke)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},nt.prototype.panelButtonClick=function(xe){var Ce=this,Ye=-1;if(xe!==this.activePanel){Ye=this.panels.indexOf(xe),this.panelRow.innerHTML="";var Je=xe.getUi();Je.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Je),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=xe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Ce.displayMode==="inline"?Ce.panelRow.style.display="none":Ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Me,Ge){var Ke,Ve;Me.className=Ce.toolboxButtonStyleClass.name+" "+(Ge===Ye?""+((Ke=Ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ke!==void 0?Ke:Ce.toolboxActiveButtonStyleColorsClass.name):""+((Ve=Ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ve!==void 0?Ve:Ce.toolboxButtonStyleColorsClass.name))})},nt}(),z=function(nt,xe){this.title=nt,this.icon=xe},ee=function(nt){function xe(Ce,Ye,Je,Me){var Ge=nt.call(this,Ce,Me||'<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 Ge.colors=[],Ge.addTransparent=!1,Ge.colorBoxes=[],Ge.colors=Ye,Ge.currentColor=Je,Ge.setCurrentColor=Ge.setCurrentColor.bind(Ge),Ge.getColorBox=Ge.getColorBox.bind(Ge),Ge}return mt(xe,nt),xe.prototype.getUi=function(){var Ce=this,Ye=document.createElement("div");return Ye.style.overflow="hidden",Ye.style.whiteSpace="nowrap",this.colors.forEach(function(Je){var Me=Ce.getColorBox(Je);Ye.appendChild(Me),Ce.colorBoxes.push(Me)}),Ye},xe.prototype.getColorBox=function(Ce){var Ye=this,Je=this.uiStyleSettings.toolbarHeight/4,Me=this.uiStyleSettings.toolbarHeight-Je,Ge=document.createElement("div");Ge.style.display="inline-block",Ge.style.boxSizing="content-box",Ge.style.width=Me-2+"px",Ge.style.height=Me-2+"px",Ge.style.padding="1px",Ge.style.marginRight="2px",Ge.style.marginBottom="2px",Ge.style.borderWidth="2px",Ge.style.borderStyle="solid",Ge.style.borderRadius=(Me+2)/2+"px",Ge.style.borderColor=Ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ge.addEventListener("click",function(){Ye.setCurrentColor(Ce,Ge)});var Ke=document.createElement("div");return Ke.style.display="inline-block",Ke.style.width=Me-2+"px",Ke.style.height=Me-2+"px",Ke.style.backgroundColor=Ce,Ke.style.borderRadius=Me/2+"px",Ce==="transparent"&&(Ke.style.fill=this.uiStyleSettings.toolboxAccentColor,Ke.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>`),Ge.appendChild(Ke),Ge},xe.prototype.setCurrentColor=function(Ce,Ye){var Je=this;this.currentColor=Ce,this.colorBoxes.forEach(function(Me){Me.style.borderColor=Me===Ye?Je.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Ce)},xe}(z),ae=function(){function nt(xe,Ce,Ye){this._state="new",this._isSelected=!1,this._container=xe,this._overlayContainer=Ce,this.globalSettings=Ye,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(nt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),nt.prototype.ownsTarget=function(xe){return!1},Object.defineProperty(nt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),nt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},nt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},nt.prototype.pointerDown=function(xe,Ce){},nt.prototype.dblClick=function(xe,Ce){},nt.prototype.manipulate=function(xe){},nt.prototype.pointerUp=function(xe){this.stateChanged()},nt.prototype.dispose=function(){},nt.prototype.addMarkerVisualToContainer=function(xe){this.container.childNodes.length>0?this.container.insertBefore(xe,this.container.childNodes[0]):this.container.appendChild(xe)},nt.prototype.getState=function(){return{typeName:nt.typeName,state:this.state,notes:this.notes}},nt.prototype.restoreState=function(xe){this._state=xe.state,this.notes=xe.notes},nt.prototype.scale=function(xe,Ce){},nt.prototype.colorChanged=function(xe){this.onColorChanged&&this.onColorChanged(xe),this.stateChanged()},nt.prototype.fillColorChanged=function(xe){this.onFillColorChanged&&this.onFillColorChanged(xe),this.stateChanged()},nt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var xe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),xe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(xe)&&this.onStateChanged(this)}},nt.typeName="MarkerBase",nt}(),re=function(){function nt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return nt.prototype.findGripByVisual=function(xe){return this.topLeft.ownsTarget(xe)?this.topLeft:this.topCenter.ownsTarget(xe)?this.topCenter:this.topRight.ownsTarget(xe)?this.topRight:this.centerLeft.ownsTarget(xe)?this.centerLeft:this.centerRight.ownsTarget(xe)?this.centerRight:this.bottomLeft.ownsTarget(xe)?this.bottomLeft:this.bottomCenter.ownsTarget(xe)?this.bottomCenter:this.bottomRight.ownsTarget(xe)?this.bottomRight:void 0},nt}(),le=function(){function nt(){this.GRIP_SIZE=10,this.visual=ge.createGroup(),this.visual.appendChild(ge.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ge.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return nt.prototype.ownsTarget=function(xe){return xe===this.visual||xe===this.visual.childNodes[0]||xe===this.visual.childNodes[1]},nt}(),ue=function(){function nt(){}return nt.toITransformMatrix=function(xe){return{a:xe.a,b:xe.b,c:xe.c,d:xe.d,e:xe.e,f:xe.f}},nt.toSVGMatrix=function(xe,Ce){return xe.a=Ce.a,xe.b=Ce.b,xe.c=Ce.c,xe.d=Ce.d,xe.e=Ce.e,xe.f=Ce.f,xe},nt}(),pe=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.left=0,Me.top=0,Me.width=0,Me.height=0,Me.defaultSize={x:50,y:20},Me.offsetX=0,Me.offsetY=0,Me.rotationAngle=0,Me.CB_DISTANCE=10,Me._suppressMarkerCreateEvent=!1,Me.container.transform.baseVal.appendItem(ge.createTransform()),Me.setupControlBox(),Me}return mt(xe,nt),Object.defineProperty(xe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"visual",{get:function(){return this._visual},set:function(Ce){this._visual=Ce;var Ye=ge.createTransform();this._visual.transform.baseVal.appendItem(Ye)},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(Ce){return!!nt.prototype.ownsTarget.call(this,Ce)||!!(this.controlGrips.findGripByVisual(Ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ce))},xe.prototype.pointerDown=function(Ce,Ye){nt.prototype.pointerDown.call(this,Ce,Ye),this.state==="new"&&(this.left=Ce.x,this.top=Ce.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Je=this.unrotatePoint(Ce);if(this.manipulationStartX=Je.x,this.manipulationStartY=Je.y,this.offsetX=Je.x-this.left,this.offsetY=Je.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 Me=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Me.x-this.width/2,this.top=Me.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ge=this.container.transform.baseVal.getItem(0);Ge.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ge,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},xe.prototype.pointerUp=function(Ce){var Ye=this.state;nt.prototype.pointerUp.call(this,Ce),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Ce),this._state="select",Ye==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},xe.prototype.moveVisual=function(Ce){this.visual.style.transform="translate("+Ce.x+"px, "+Ce.y+"px)"},xe.prototype.manipulate=function(Ce){var Ye=this.unrotatePoint(Ce);this.state==="creating"?this.resize(Ce):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(Ce)},xe.prototype.resize=function(Ce){var Ye=this.manipulationStartLeft,Je=this.manipulationStartWidth,Me=this.manipulationStartTop,Ge=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ye=this.manipulationStartLeft+Ce.x-this.manipulationStartX,Je=this.manipulationStartWidth+this.manipulationStartLeft-Ye;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Je=this.manipulationStartWidth+Ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Me=this.manipulationStartTop+Ce.y-this.manipulationStartY,Ge=this.manipulationStartHeight+this.manipulationStartTop-Me;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ge=this.manipulationStartHeight+Ce.y-this.manipulationStartY}Je>=0?(this.left=Ye,this.width=Je):(this.left=Ye+Je,this.width=-Je),Ge>=0?(this.top=Me,this.height=Ge):(this.top=Me+Ge,this.height=-Ge),this.setSize()},xe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},xe.prototype.rotate=function(Ce){if(Math.abs(Ce.x-this.centerX)>.1){var Ye=Math.sign(Ce.x-this.centerX);this.rotationAngle=180*Math.atan((Ce.y-this.centerY)/(Ce.x-this.centerX))/Math.PI+90*Ye,this.applyRotation()}},xe.prototype.applyRotation=function(){var Ce=this.container.transform.baseVal.getItem(0);Ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ce,0)},xe.prototype.rotatePoint=function(Ce){if(this.rotationAngle===0)return Ce;var Ye=this.container.getCTM(),Je=ge.createPoint(Ce.x,Ce.y);return{x:(Je=Je.matrixTransform(Ye)).x,y:Je.y}},xe.prototype.unrotatePoint=function(Ce){if(this.rotationAngle===0)return Ce;var Ye=this.container.getCTM();Ye=Ye.inverse();var Je=ge.createPoint(Ce.x,Ce.y);return{x:(Je=Je.matrixTransform(Ye)).x,y:Je.y}},xe.prototype.select=function(){nt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xe.prototype.deselect=function(){nt.prototype.deselect.call(this),this.controlBox.style.display="none"},xe.prototype.setupControlBox=function(){this.controlBox=ge.createGroup();var Ce=ge.createTransform();Ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Ce),this.container.appendChild(this.controlBox),this.controlRect=ge.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=ge.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new re,this.addControlGrips(),this.controlBox.style.display="none"},xe.prototype.adjustControlBox=function(){var Ce=this.controlBox.transform.baseVal.getItem(0);Ce.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Ce,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()},xe.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()},xe.prototype.createGrip=function(){var Ce=new le;return Ce.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(Ce.visual),Ce},xe.prototype.positionGrips=function(){var Ce=this.controlGrips.topLeft.GRIP_SIZE,Ye=-Ce/2,Je=Ye,Me=(this.width+this.CB_DISTANCE)/2-Ce/2,Ge=(this.height+this.CB_DISTANCE)/2-Ce/2,Ke=this.height+this.CB_DISTANCE-Ce/2,Ve=this.width+this.CB_DISTANCE-Ce/2;this.positionGrip(this.controlGrips.topLeft.visual,Ye,Je),this.positionGrip(this.controlGrips.topCenter.visual,Me,Je),this.positionGrip(this.controlGrips.topRight.visual,Ve,Je),this.positionGrip(this.controlGrips.centerLeft.visual,Ye,Ge),this.positionGrip(this.controlGrips.centerRight.visual,Ve,Ge),this.positionGrip(this.controlGrips.bottomLeft.visual,Ye,Ke),this.positionGrip(this.controlGrips.bottomCenter.visual,Me,Ke),this.positionGrip(this.controlGrips.bottomRight.visual,Ve,Ke),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Me,Je-3*this.CB_DISTANCE)},xe.prototype.positionGrip=function(Ce,Ye,Je){var Me=Ce.transform.baseVal.getItem(0);Me.setTranslate(Ye,Je),Ce.transform.baseVal.replaceItem(Me,0)},xe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},xe.prototype.showControlBox=function(){this.controlBox.style.display=""},xe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ue.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ue.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},nt.prototype.getState.call(this))},xe.prototype.restoreState=function(Ce){nt.prototype.restoreState.call(this,Ce);var Ye=Ce;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(ue.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ye.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ue.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ye.containerTransformMatrix))},xe.prototype.scale=function(Ce,Ye){nt.prototype.scale.call(this,Ce,Ye);var Je=this.rotatePoint({x:this.left,y:this.top}),Me=this.unrotatePoint({x:Je.x*Ce,y:Je.y*Ye});this.left=Me.x,this.top=Me.y,this.width=this.width*Ce,this.height=this.height*Ye,this.adjustControlBox()},xe}(ae),Ee=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.fillColor="transparent",Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.opacity=1,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setFillColor=Me.setFillColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.createVisual=Me.createVisual.bind(Me),Me}return mt(xe,nt),xe.prototype.ownsTarget=function(Ce){return!(!nt.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual)},xe.prototype.createVisual=function(){this.visual=ge.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},xe.prototype.pointerDown=function(Ce,Ye){nt.prototype.pointerDown.call(this,Ce,Ye),this.state==="new"&&(this.createVisual(),this.moveVisual(Ce),this._state="creating")},xe.prototype.manipulate=function(Ce){nt.prototype.manipulate.call(this,Ce)},xe.prototype.resize=function(Ce){nt.prototype.resize.call(this,Ce),this.setSize()},xe.prototype.setSize=function(){nt.prototype.setSize.call(this),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},xe.prototype.pointerUp=function(Ce){nt.prototype.pointerUp.call(this,Ce),this.setSize()},xe.prototype.setStrokeColor=function(Ce){this.strokeColor=Ce,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ce),this.stateChanged()},xe.prototype.setFillColor=function(Ce){this.fillColor=Ce,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},xe.prototype.setStrokeWidth=function(Ce){this.strokeWidth=Ce,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(Ce){this.strokeDasharray=Ce,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},nt.prototype.getState.call(this))},xe.prototype.restoreState=function(Ce){var Ye=Ce;this.fillColor=Ye.fillColor,this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.opacity=Ye.opacity,this.createVisual(),nt.prototype.restoreState.call(this,Ce),this.setSize()},xe.prototype.scale=function(Ce,Ye){nt.prototype.scale.call(this,Ce,Ye),this.setSize()},xe.title="Rectangle marker",xe}(pe),be=function(nt){function xe(Ce,Ye,Je,Me){var Ge=nt.call(this,Ce,Me||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ge.widths=[],Ge.widthBoxes=[],Ge.widths=Ye,Ge.currentWidth=Je,Ge.setCurrentWidth=Ge.setCurrentWidth.bind(Ge),Ge}return mt(xe,nt),xe.prototype.getUi=function(){var Ce=this,Ye=document.createElement("div");return Ye.style.display="flex",Ye.style.overflow="hidden",Ye.style.flexGrow="2",this.widths.forEach(function(Je){var Me=document.createElement("div");Me.style.display="flex",Me.style.flexGrow="2",Me.style.alignItems="center",Me.style.justifyContent="space-between",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.borderColor=Je===Ce.currentWidth?Ce.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){Ce.setCurrentWidth(Je,Me)}),Ye.appendChild(Me);var Ge=document.createElement("div");Ge.innerText=Je.toString(),Ge.style.marginRight="5px",Me.appendChild(Ge);var Ke=document.createElement("div");Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.display="flex",Ke.style.alignItems="center";var Ve=document.createElement("hr");Ve.style.minWidth="20px",Ve.style.border="0px",Ve.style.borderTop=Je+"px solid "+Ce.uiStyleSettings.toolboxColor,Ve.style.flexGrow="2",Ke.appendChild(Ve),Me.appendChild(Ke),Ce.widthBoxes.push(Me)}),Ye},xe.prototype.setCurrentWidth=function(Ce,Ye){var Je=this;this.currentWidth=Ce,this.widthBoxes.forEach(function(Me){Me.style.borderColor=Me===Ye?Je.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},xe}(z),Ie=function(nt){function xe(Ce,Ye,Je,Me){var Ge=nt.call(this,Ce,Me||'<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 Ge.styles=[],Ge.styleBoxes=[],Ge.styles=Ye,Ge.currentStyle=Je,Ge.setCurrentStyle=Ge.setCurrentStyle.bind(Ge),Ge}return mt(xe,nt),xe.prototype.getUi=function(){var Ce=this,Ye=document.createElement("div");return Ye.style.display="flex",Ye.style.overflow="hidden",Ye.style.flexGrow="2",this.styles.forEach(function(Je){var Me=document.createElement("div");Me.style.display="flex",Me.style.alignItems="center",Me.style.justifyContent="space-between",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.overflow="hidden",Me.style.maxWidth=100/Ce.styles.length-5+"%",Me.style.borderColor=Je===Ce.currentStyle?Ce.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){Ce.setCurrentStyle(Je,Me)}),Ye.appendChild(Me);var Ge=document.createElement("div");Ge.style.minHeight="20px",Ge.style.flexGrow="2",Ge.style.overflow="hidden";var Ke=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Ce.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Je!==""?'stroke-dasharray="'+Je+'"':"")+` />
|
|
|
</svg>`;Ge.innerHTML=Ke,Me.appendChild(Ge),Ce.styleBoxes.push(Me)}),Ye},xe.prototype.setCurrentStyle=function(Ce,Ye){var Je=this;this.currentStyle=Ce,this.styleBoxes.forEach(function(Me){Me.style.borderColor=Me===Ye?Je.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},xe}(z),Le=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.strokeColor=Je.defaultColor,Me.strokeWidth=Je.defaultStrokeWidth,Me.strokeDasharray=Je.defaultStrokeDasharray,Me.strokePanel=new ee("Line color",Je.defaultColorSet,Je.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.strokeWidthPanel=new be("Line width",Je.defaultStrokeWidths,Je.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Ie("Line style",Je.defaultStrokeDasharrays,Je.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me}return mt(xe,nt),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=nt.prototype.getState.call(this);return Ce.typeName=xe.typeName,Ce},xe.typeName="FrameMarker",xe.title="Frame marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',xe}(Ee),Fe=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"},Oe=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.x1=0,Me.y1=0,Me.x2=0,Me.y2=0,Me.defaultLength=50,Me.manipulationStartX=0,Me.manipulationStartY=0,Me.manipulationStartX1=0,Me.manipulationStartY1=0,Me.manipulationStartX2=0,Me.manipulationStartY2=0,Me.setupControlBox(),Me}return mt(xe,nt),xe.prototype.ownsTarget=function(Ce){return!!nt.prototype.ownsTarget.call(this,Ce)||!(!this.grip1.ownsTarget(Ce)&&!this.grip2.ownsTarget(Ce))},xe.prototype.pointerDown=function(Ce,Ye){nt.prototype.pointerDown.call(this,Ce,Ye),this.manipulationStartX=Ce.x,this.manipulationStartY=Ce.y,this.state==="new"&&(this.x1=Ce.x,this.y1=Ce.y,this.x2=Ce.x,this.y2=Ce.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")},xe.prototype.pointerUp=function(Ce){var Ye=this.state;nt.prototype.pointerUp.call(this,Ce),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(Ce),this._state="select",Ye==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},xe.prototype.adjustVisual=function(){},xe.prototype.manipulate=function(Ce){this.state==="creating"?this.resize(Ce):this.state==="move"?(this.x1=this.manipulationStartX1+Ce.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Ce.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Ce.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Ce.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Ce)},xe.prototype.resize=function(Ce){switch(this.activeGrip){case this.grip1:this.x1=Ce.x,this.y1=Ce.y;break;case this.grip2:case void 0:this.x2=Ce.x,this.y2=Ce.y}this.adjustVisual(),this.adjustControlBox()},xe.prototype.select=function(){nt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xe.prototype.deselect=function(){nt.prototype.deselect.call(this),this.controlBox.style.display="none"},xe.prototype.setupControlBox=function(){this.controlBox=ge.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},xe.prototype.adjustControlBox=function(){this.positionGrips()},xe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},xe.prototype.createGrip=function(){var Ce=new le;return Ce.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(Ce.visual),Ce},xe.prototype.positionGrips=function(){var Ce=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Ce/2,this.y1-Ce/2),this.positionGrip(this.grip2.visual,this.x2-Ce/2,this.y2-Ce/2)},xe.prototype.positionGrip=function(Ce,Ye,Je){var Me=Ce.transform.baseVal.getItem(0);Me.setTranslate(Ye,Je),Ce.transform.baseVal.replaceItem(Me,0)},xe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},nt.prototype.getState.call(this))},xe.prototype.restoreState=function(Ce){nt.prototype.restoreState.call(this,Ce);var Ye=Ce;this.x1=Ye.x1,this.y1=Ye.y1,this.x2=Ye.x2,this.y2=Ye.y2},xe.prototype.scale=function(Ce,Ye){nt.prototype.scale.call(this,Ce,Ye),this.x1=this.x1*Ce,this.y1=this.y1*Ye,this.x2=this.x2*Ce,this.y2=this.y2*Ye,this.adjustVisual(),this.adjustControlBox()},xe}(ae),je=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.strokeColor=Je.defaultColor,Me.strokeWidth=Je.defaultStrokeWidth,Me.strokeDasharray=Je.defaultStrokeDasharray,Me.strokePanel=new ee("Line color",Je.defaultColorSet,Je.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.strokeWidthPanel=new be("Line width",Je.defaultStrokeWidths,Je.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Ie("Line style",Je.defaultStrokeDasharrays,Je.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me}return mt(xe,nt),xe.prototype.ownsTarget=function(Ce){return!(!nt.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual&&Ce!==this.selectorLine&&Ce!==this.visibleLine)},xe.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorLine=ge.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ge.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},xe.prototype.pointerDown=function(Ce,Ye){nt.prototype.pointerDown.call(this,Ce,Ye),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},xe.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),ge.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xe.prototype.setStrokeColor=function(Ce){this.strokeColor=Ce,this.adjustVisual(),this.colorChanged(Ce)},xe.prototype.setStrokeWidth=function(Ce){this.strokeWidth=Ce,this.adjustVisual()},xe.prototype.setStrokeDasharray=function(Ce){this.strokeDasharray=Ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},nt.prototype.getState.call(this));return Ce.typeName=xe.typeName,Ce},xe.prototype.restoreState=function(Ce){nt.prototype.restoreState.call(this,Ce);var Ye=Ce;this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.createVisual(),this.adjustVisual()},xe.typeName="LineMarker",xe.title="Line marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',xe}(Oe),ze=function(nt){function xe(Ce,Ye,Je,Me){var Ge=nt.call(this,Ce,Me||'<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 Ge.fonts=[],Ge.fontBoxes=[],Ge.fonts=Ye,Ge.currentFont=Je,Ge.setCurrentFont=Ge.setCurrentFont.bind(Ge),Ge}return mt(xe,nt),xe.prototype.getUi=function(){var Ce=this,Ye=document.createElement("div");return Ye.style.overflow="hidden",Ye.style.flexGrow="2",this.fonts.forEach(function(Je){var Me=document.createElement("div");Me.style.display="inline-block",Me.style.alignItems="center",Me.style.justifyContent="space-between",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.overflow="hidden",Me.style.maxWidth=100/Ce.fonts.length-5+"%",Me.style.borderColor=Je===Ce.currentFont?Ce.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){Ce.setCurrentFont(Je,Me)}),Ye.appendChild(Me);var Ge=document.createElement("div");Ge.style.display="flex",Ge.style.minHeight="20px",Ge.style.flexGrow="2",Ge.style.fontFamily=Je,Ge.style.overflow="hidden";var Ke=document.createElement("div");Ke.style.whiteSpace="nowrap",Ke.style.overflow="hidden",Ke.style.textOverflow="ellipsis",Ke.innerHTML="The quick brown fox jumps over the lazy dog",Ge.appendChild(Ke),Me.appendChild(Ge),Ce.fontBoxes.push(Me)}),Ye},xe.prototype.setCurrentFont=function(Ce,Ye){var Je=this;this.currentFont=Ce,this.fontBoxes.forEach(function(Me){Me.style.borderColor=Me===Ye?Je.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},xe}(z),_e=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.color="transparent",Me.padding=5,Me.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Me.text=Me.DEFAULT_TEXT,Me.isMoved=!1,Me.color=Je.defaultColor,Me.fontFamily=Je.defaultFontFamily,Me.defaultSize={x:100,y:30},Me.setColor=Me.setColor.bind(Me),Me.setFont=Me.setFont.bind(Me),Me.renderText=Me.renderText.bind(Me),Me.sizeText=Me.sizeText.bind(Me),Me.textEditDivClicked=Me.textEditDivClicked.bind(Me),Me.showTextEditor=Me.showTextEditor.bind(Me),Me.setSize=Me.setSize.bind(Me),Me.positionTextEditor=Me.positionTextEditor.bind(Me),Me.colorPanel=new ee("Color",Je.defaultColorSet,Je.defaultColor),Me.colorPanel.onColorChanged=Me.setColor,Me.fontFamilyPanel=new ze("Font",Je.defaultFontFamilies,Je.defaultFontFamily),Me.fontFamilyPanel.onFontChanged=Me.setFont,Me}return mt(xe,nt),xe.prototype.ownsTarget=function(Ce){if(nt.prototype.ownsTarget.call(this,Ce)||Ce===this.visual||Ce===this.textElement||Ce===this.bgRectangle)return!0;var Ye=!1;return this.textElement.childNodes.forEach(function(Je){Je===Ce&&(Ye=!0)}),Ye},xe.prototype.createVisual=function(){this.visual=ge.createGroup(),this.bgRectangle=ge.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ge.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},xe.prototype.pointerDown=function(Ce,Ye){nt.prototype.pointerDown.call(this,Ce,Ye),this.isMoved=!1,this.pointerDownPoint=Ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ce),this._state="creating")},xe.prototype.renderText=function(){var Ce=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){Ce.textElement.appendChild(ge.createTSpan(Ye.trim()===""?" ":Ye.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},xe.prototype.getTextScale=function(){var Ce=this.textElement.getBBox(),Ye=1;if(Ce.width>0&&Ce.height>0){var Je=(1*this.width-this.width*this.padding*2/100)/Ce.width,Me=(1*this.height-this.height*this.padding*2/100)/Ce.height;Ye=Math.min(Je,Me)}return Ye},xe.prototype.getTextPosition=function(Ce){var Ye=this.textElement.getBBox(),Je=0,Me=0;return Ye.width>0&&Ye.height>0&&(Je=(this.width-Ye.width*Ce)/2,Me=this.height/2-Ye.height*Ce/2),{x:Je,y:Me}},xe.prototype.sizeText=function(){var Ce=this.textElement.getBBox(),Ye=this.getTextScale(),Je=this.getTextPosition(Ye);Je.y-=Ce.y*Ye,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Je.x+"px, "+Je.y+"px) scale("+Ye+", "+Ye+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Je.x,Je.y),this.textElement.transform.baseVal.getItem(1).setScale(Ye,Ye))},xe.prototype.manipulate=function(Ce){nt.prototype.manipulate.call(this,Ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ce.x-this.pointerDownPoint.x)>5||Math.abs(Ce.y-this.pointerDownPoint.y)>5)},xe.prototype.resize=function(Ce){nt.prototype.resize.call(this,Ce),this.isMoved=!0,this.setSize(),this.sizeText()},xe.prototype.setSize=function(){nt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},xe.prototype.pointerUp=function(Ce){var Ye=this.state;Ye==="creating"&&(this._suppressMarkerCreateEvent=!0),nt.prototype.pointerUp.call(this,Ce),this.setSize(),(Ye==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},xe.prototype.showTextEditor=function(){var Ce=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(Ce.textEditor.style.fontSize);Ce.textEditor.clientWidth>=Number.parseInt(Ce.textEditor.style.maxWidth)&&Ye>.9;)Ye-=.1,Ce.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 Je=Ye.clipboardData.getData("text"),Me=window.getSelection();if(!Me.rangeCount)return!1;Me.deleteFromDocument(),Me.getRangeAt(0).insertNode(document.createTextNode(Je)),Ye.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Ce.textEditDivClicked(Ce.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},xe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Ce=this.getTextScale(),Ye=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Je=this.textElement.getBBox(),Me={x:Je.width*Ce,y:Je.height*Ce};Ye.x-=Me.x/2,Ye.y-=Me.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*Ce,12)+"px",this.textElement.style.display="none"}},xe.prototype.textEditDivClicked=function(Ce){this.text=Ce.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},xe.prototype.select=function(){nt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},xe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),nt.prototype.deselect.call(this)},xe.prototype.dblClick=function(Ce,Ye){nt.prototype.dblClick.call(this,Ce,Ye),this.showTextEditor()},xe.prototype.setColor=function(Ce){this.textElement&&ge.setAttributes(this.textElement,[["fill",Ce]]),this.color=Ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Ce)},xe.prototype.setFont=function(Ce){this.textElement&&ge.setAttributes(this.textElement,[["font-family",Ce]]),this.fontFamily=Ce,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},xe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},xe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},nt.prototype.getState.call(this));return Ce.typeName=xe.typeName,Ce},xe.prototype.restoreState=function(Ce){var Ye=Ce;this.color=Ye.color,this.fontFamily=Ye.fontFamily,this.padding=Ye.padding,this.text=Ye.text,this.createVisual(),nt.prototype.restoreState.call(this,Ce),this.setSize()},xe.prototype.scale=function(Ce,Ye){nt.prototype.scale.call(this,Ce,Ye),this.setSize(),this.sizeText(),this.positionTextEditor()},xe.typeName="TextMarker",xe.title="Text marker",xe.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>',xe}(pe),Ue=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.color="transparent",Me.lineWidth=3,Me.drawing=!1,Me.pixelRatio=1,Me.color=Je.defaultColor,Me.lineWidth=Je.defaultStrokeWidth,Me.pixelRatio=Je.freehandPixelRatio,Me.setColor=Me.setColor.bind(Me),Me.addCanvas=Me.addCanvas.bind(Me),Me.finishCreation=Me.finishCreation.bind(Me),Me.setLineWidth=Me.setLineWidth.bind(Me),Me.colorPanel=new ee("Color",Je.defaultColorSet,Je.defaultColor),Me.colorPanel.onColorChanged=Me.setColor,Me.lineWidthPanel=new be("Line width",Je.defaultStrokeWidths,Je.defaultStrokeWidth),Me.lineWidthPanel.onWidthChanged=Me.setLineWidth,Me}return mt(xe,nt),xe.prototype.ownsTarget=function(Ce){return!(!nt.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual&&Ce!==this.drawingImage)},xe.prototype.createVisual=function(){this.visual=ge.createGroup(),this.drawingImage=ge.createImage(),this.visual.appendChild(this.drawingImage);var Ce=ge.createTransform();this.visual.transform.baseVal.appendItem(Ce),this.addMarkerVisualToContainer(this.visual)},xe.prototype.pointerDown=function(Ce,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(Ce.x,Ce.y),this.drawing=!0):nt.prototype.pointerDown.call(this,Ce,Ye)},xe.prototype.manipulate=function(Ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Ce.x,Ce.y),this.canvasContext.stroke()):nt.prototype.manipulate.call(this,Ce)},xe.prototype.resize=function(Ce){nt.prototype.resize.call(this,Ce),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},xe.prototype.pointerUp=function(Ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):nt.prototype.pointerUp.call(this,Ce)},xe.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)},xe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),nt.prototype.select.call(this)},xe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),nt.prototype.deselect.call(this)},xe.prototype.finishCreation=function(){for(var Ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ye=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Je=Ye[0],Me=Ye[1],Ge=Ye[2],Ke=Ye[3],Ve=!1,Qe=0;Qe<this.canvasElement.height;Qe++)for(var ht=0;ht<this.canvasElement.width;ht++)Ce.data[Qe*this.canvasElement.width*4+4*ht+3]>0&&(Ve=!0,Qe<Me&&(Me=Qe),ht<Je&&(Je=ht),Qe>Ke&&(Ke=Qe),ht>Ge&&(Ge=ht));if(Ve){this.left=Je/this.pixelRatio,this.top=Me/this.pixelRatio,this.width=(Ge-Je)/this.pixelRatio,this.height=(Ke-Me)/this.pixelRatio;var At=document.createElement("canvas");At.width=Ge-Je,At.height=Ke-Me,At.getContext("2d").putImageData(this.canvasContext.getImageData(Je,Me,Ge-Je,Ke-Me),0,0),this.drawingImgUrl=At.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},xe.prototype.setDrawingImage=function(){ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},xe.prototype.setColor=function(Ce){this.color=Ce,this.colorChanged(Ce)},xe.prototype.setLineWidth=function(Ce){this.lineWidth=Ce},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=Object.assign({drawingImgUrl:this.drawingImgUrl},nt.prototype.getState.call(this));return Ce.typeName=xe.typeName,Ce},xe.prototype.restoreState=function(Ce){this.createVisual(),nt.prototype.restoreState.call(this,Ce),this.drawingImgUrl=Ce.drawingImgUrl,this.setDrawingImage()},xe.prototype.scale=function(Ce,Ye){nt.prototype.scale.call(this,Ce,Ye),this.setDrawingImage()},xe.typeName="FreehandMarker",xe.title="Freehand marker",xe.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>',xe}(pe),$e=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Je||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Me.typeBoxes=[],Me.currentType=Ye,Me.setCurrentType=Me.setCurrentType.bind(Me),Me}return mt(xe,nt),xe.prototype.getUi=function(){var Ce=this,Ye=document.createElement("div");Ye.style.display="flex",Ye.style.overflow="hidden",Ye.style.flexGrow="2";for(var Je=function(Ke){var Ve="both";switch(Ke){case 0:Ve="both";break;case 1:Ve="start";break;case 2:Ve="end";break;case 3:Ve="none"}var Qe=document.createElement("div");if(Qe.style.display="flex",Qe.style.flexGrow="2",Qe.style.alignItems="center",Qe.style.justifyContent="space-between",Qe.style.padding="5px",Qe.style.borderWidth="2px",Qe.style.borderStyle="solid",Qe.style.borderColor=Ve===Me.currentType?Me.uiStyleSettings.toolboxAccentColor:"transparent",Qe.addEventListener("click",function(){Ce.setCurrentType(Ve,Qe)}),Ye.appendChild(Qe),Ve==="both"||Ve==="start"){var ht=document.createElement("div");ht.style.display="flex",ht.style.alignItems="center",ht.style.minHeight="20px",ht.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="`+(Me.uiStyleSettings!==void 0?Me.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,ht.style.marginLeft="5px",Qe.appendChild(ht)}var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.minHeight="20px",At.style.flexGrow="2";var pt=document.createElement("hr");if(pt.style.minWidth="20px",pt.style.border="0px",pt.style.borderTop="3px solid "+(Me.uiStyleSettings!==void 0?Me.uiStyleSettings.toolboxColor:"#eeeeee"),pt.style.flexGrow="2",At.appendChild(pt),Qe.appendChild(At),Ve==="both"||Ve==="end"){var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.alignItems="center",Ot.style.minHeight="20px",Ot.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="`+(Me.uiStyleSettings!==void 0?Me.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ot.style.marginRight="5px",Qe.appendChild(Ot)}Me.typeBoxes.push(Qe)},Me=this,Ge=0;Ge<4;Ge++)Je(Ge);return Ye},xe.prototype.setCurrentType=function(Ce,Ye){var Je=this;this.currentType=Ce,this.typeBoxes.forEach(function(Me){Me.style.borderColor=Me===Ye?Je.uiStyleSettings!==void 0?Je.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},xe}(z),et=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.arrowType="end",Me.arrowBaseHeight=10,Me.arrowBaseWidth=10,Me.getArrowPoints=Me.getArrowPoints.bind(Me),Me.setArrowType=Me.setArrowType.bind(Me),Me.arrowTypePanel=new $e("Arrow type","end"),Me.arrowTypePanel.onArrowTypeChanged=Me.setArrowType,Me}return mt(xe,nt),xe.prototype.ownsTarget=function(Ce){return!(!nt.prototype.ownsTarget.call(this,Ce)&&Ce!==this.arrow1&&Ce!==this.arrow2)},xe.prototype.getArrowPoints=function(Ce,Ye){var Je=this.arrowBaseWidth+2*this.strokeWidth,Me=this.arrowBaseHeight+2*this.strokeWidth;return Ce-Je/2+","+(Ye+Me/2)+" "+Ce+","+(Ye-Me/2)+" "+(Ce+Je/2)+","+(Ye+Me/2)},xe.prototype.createTips=function(){this.arrow1=ge.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ge.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow2)},xe.prototype.pointerDown=function(Ce,Ye){nt.prototype.pointerDown.call(this,Ce,Ye),this.state==="creating"&&this.createTips()},xe.prototype.adjustVisual=function(){if(nt.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",ge.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ge.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Ce=0;Math.abs(this.x1-this.x2)>.1&&(Ce=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(Ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ye,0);var Je=this.arrow2.transform.baseVal.getItem(0);Je.setRotate(Ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Je,0)}},xe.prototype.setArrowType=function(Ce){this.arrowType=Ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=Object.assign({arrowType:this.arrowType},nt.prototype.getState.call(this));return Ce.typeName=xe.typeName,Ce},xe.prototype.restoreState=function(Ce){nt.prototype.restoreState.call(this,Ce);var Ye=Ce;this.arrowType=Ye.arrowType,this.createTips(),this.adjustVisual()},xe.typeName="ArrowMarker",xe.title="Arrow marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',xe}(je),lt=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.fillColor=Je.defaultFillColor,Me.strokeWidth=0,Me.fillPanel=new ee("Color",Je.defaultColorSet,Je.defaultFillColor),Me.fillPanel.onColorChanged=Me.setFillColor,Me}return mt(xe,nt),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=nt.prototype.getState.call(this);return Ce.typeName=xe.typeName,Ce},xe.typeName="CoverMarker",xe.title="Cover marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',xe}(Ee),ut=function(nt){function xe(Ce,Ye,Je,Me){var Ge=nt.call(this,Ce,Me||'<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 Ge.opacities=[],Ge.opacityBoxes=[],Ge.opacities=Ye,Ge.currentOpacity=Je,Ge.setCurrentOpacity=Ge.setCurrentOpacity.bind(Ge),Ge}return mt(xe,nt),xe.prototype.getUi=function(){var Ce=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(Je){var Me=document.createElement("div");Me.style.display="flex",Me.style.alignItems="center",Me.style.justifyContent="center",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.borderColor=Je===Ce.currentOpacity?Ce.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){Ce.setCurrentOpacity(Je,Me)}),Ye.appendChild(Me);var Ge=document.createElement("div");Ge.innerText=100*Je+"%",Me.appendChild(Ge),Ce.opacityBoxes.push(Me)}),Ye},xe.prototype.setCurrentOpacity=function(Ce,Ye){var Je=this;this.currentOpacity=Ce,this.opacityBoxes.forEach(function(Me){Me.style.borderColor=Me===Ye?Je.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},xe}(z),yt=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.setOpacity=Me.setOpacity.bind(Me),Me.fillColor=Je.defaultHighlightColor,Me.strokeWidth=0,Me.opacity=Je.defaultHighlightOpacity,Me.fillPanel=new ee("Color",Je.defaultColorSet,Me.fillColor),Me.fillPanel.onColorChanged=Me.setFillColor,Me.opacityPanel=new ut("Opacity",Je.defaultOpacitySteps,Me.opacity),Me.opacityPanel.onOpacityChanged=Me.setOpacity,Me}return mt(xe,nt),xe.prototype.setOpacity=function(Ce){this.opacity=Ce,this.visual&&ge.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=nt.prototype.getState.call(this);return Ce.typeName=xe.typeName,Ce},xe.typeName="HighlightMarker",xe.title="Highlight marker",xe.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>',xe}(lt),qe='<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>',ot='<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>',dt=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.bgColor="transparent",Me.tipPosition={x:0,y:0},Me.tipBase1Position={x:0,y:0},Me.tipBase2Position={x:0,y:0},Me.tipMoving=!1,Me.color=Je.defaultStrokeColor,Me.bgColor=Je.defaultFillColor,Me.fontFamily=Je.defaultFontFamily,Me.defaultSize={x:100,y:30},Me.setBgColor=Me.setBgColor.bind(Me),Me.getTipPoints=Me.getTipPoints.bind(Me),Me.positionTip=Me.positionTip.bind(Me),Me.setTipPoints=Me.setTipPoints.bind(Me),Me.colorPanel=new ee("Text color",Je.defaultColorSet,Me.color,qe),Me.colorPanel.onColorChanged=Me.setColor,Me.bgColorPanel=new ee("Fill color",Je.defaultColorSet,Me.bgColor,ot),Me.bgColorPanel.onColorChanged=Me.setBgColor,Me.fontFamilyPanel=new ze("Font",Je.defaultFontFamilies,Je.defaultFontFamily),Me.fontFamilyPanel.onFontChanged=Me.setFont,Me.tipGrip=new le,Me.tipGrip.visual.transform.baseVal.appendItem(ge.createTransform()),Me.controlBox.appendChild(Me.tipGrip.visual),Me}return mt(xe,nt),xe.prototype.ownsTarget=function(Ce){return nt.prototype.ownsTarget.call(this,Ce)||this.tipGrip.ownsTarget(Ce)||this.tip===Ce},xe.prototype.createTip=function(){ge.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ge.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},xe.prototype.pointerDown=function(Ce,Ye){this.state==="new"&&nt.prototype.pointerDown.call(this,Ce,Ye),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ye)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):nt.prototype.pointerDown.call(this,Ce,Ye)},xe.prototype.pointerUp=function(Ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,nt.prototype.pointerUp.call(this,Ce);else{var Ye=this.state==="creating";nt.prototype.pointerUp.call(this,Ce),this.setTipPoints(Ye),this.positionTip()}},xe.prototype.manipulate=function(Ce){if(this.tipMoving){var Ye=this.unrotatePoint(Ce);this.tipPosition={x:Ye.x-this.manipulationStartLeft,y:Ye.y-this.manipulationStartTop},this.positionTip()}else nt.prototype.manipulate.call(this,Ce)},xe.prototype.setBgColor=function(Ce){this.bgRectangle&&this.tip&&(ge.setAttributes(this.bgRectangle,[["fill",Ce]]),ge.setAttributes(this.tip,[["fill",Ce]])),this.bgColor=Ce,this.fillColorChanged(Ce)},xe.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},xe.prototype.setTipPoints=function(Ce){Ce===void 0&&(Ce=!1);var Ye=Math.min(this.height/2,15),Je=this.height/5;Ce&&(this.tipPosition={x:Ye+Je/2,y:this.height+20});var Me=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Me<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Je=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:Ye,y:0},this.tipBase2Position={x:Ye+Je,y:0}):(this.tipBase1Position={x:0,y:Ye},this.tipBase2Position={x:0,y:Ye+Je}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Me<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Je=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ye-Je,y:0},this.tipBase2Position={x:this.width-Ye,y:0}):(this.tipBase1Position={x:this.width,y:Ye},this.tipBase2Position={x:this.width,y:Ye+Je}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Me<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Je=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ye-Je,y:this.height},this.tipBase2Position={x:this.width-Ye,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ye-Je},this.tipBase2Position={x:this.width,y:this.height-Ye}):Me<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Je=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:Ye,y:this.height},this.tipBase2Position={x:Ye+Je,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ye},this.tipBase2Position={x:0,y:this.height-Ye-Je})},xe.prototype.resize=function(Ce){nt.prototype.resize.call(this,Ce),this.positionTip()},xe.prototype.positionTip=function(){ge.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Ce=this.tipGrip.visual.transform.baseVal.getItem(0);Ce.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Ce,0)},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xe.prototype.select=function(){this.positionTip(),nt.prototype.select.call(this)},xe.prototype.getState=function(){var Ce=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},nt.prototype.getState.call(this));return Ce.typeName=xe.typeName,Ce},xe.prototype.restoreState=function(Ce){var Ye=Ce;this.bgColor=Ye.bgColor,this.tipPosition=Ye.tipPosition,nt.prototype.restoreState.call(this,Ce),this.createTip(),this.setTipPoints()},xe.prototype.scale=function(Ce,Ye){nt.prototype.scale.call(this,Ce,Ye),this.tipPosition={x:this.tipPosition.x*Ce,y:this.tipPosition.y*Ye},this.positionTip()},xe.typeName="CalloutMarker",xe.title="Callout marker",xe.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>',xe}(_e),St=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.fillColor="transparent",Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.opacity=1,Me.strokeColor=Je.defaultColor,Me.strokeWidth=Je.defaultStrokeWidth,Me.strokeDasharray=Je.defaultStrokeDasharray,Me.fillColor=Je.defaultFillColor,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setFillColor=Me.setFillColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.setOpacity=Me.setOpacity.bind(Me),Me.createVisual=Me.createVisual.bind(Me),Me.strokePanel=new ee("Line color",Ne(Je.defaultColorSet,["transparent"]),Je.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.fillPanel=new ee("Fill color",Ne(Je.defaultColorSet,["transparent"]),Me.fillColor,ot),Me.fillPanel.onColorChanged=Me.setFillColor,Me.strokeWidthPanel=new be("Line width",Je.defaultStrokeWidths,Je.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Ie("Line style",Je.defaultStrokeDasharrays,Je.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me.opacityPanel=new ut("Opacity",Je.defaultOpacitySteps,Me.opacity),Me.opacityPanel.onOpacityChanged=Me.setOpacity,Me}return mt(xe,nt),xe.prototype.ownsTarget=function(Ce){return!(!nt.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual)},xe.prototype.createVisual=function(){this.visual=ge.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},xe.prototype.pointerDown=function(Ce,Ye){nt.prototype.pointerDown.call(this,Ce,Ye),this.state==="new"&&(this.createVisual(),this.moveVisual(Ce),this._state="creating")},xe.prototype.manipulate=function(Ce){nt.prototype.manipulate.call(this,Ce)},xe.prototype.resize=function(Ce){nt.prototype.resize.call(this,Ce),this.setSize()},xe.prototype.setSize=function(){nt.prototype.setSize.call(this),ge.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},xe.prototype.pointerUp=function(Ce){nt.prototype.pointerUp.call(this,Ce),this.setSize()},xe.prototype.setStrokeColor=function(Ce){this.strokeColor=Ce,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ce),this.stateChanged()},xe.prototype.setFillColor=function(Ce){this.fillColor=Ce,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Ce),this.stateChanged()},xe.prototype.setStrokeWidth=function(Ce){this.strokeWidth=Ce,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(Ce){this.strokeDasharray=Ce,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xe.prototype.setOpacity=function(Ce){this.opacity=Ce,this.visual&&ge.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},nt.prototype.getState.call(this));return Ce.typeName=xe.typeName,Ce},xe.prototype.restoreState=function(Ce){var Ye=Ce;this.fillColor=Ye.fillColor,this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.opacity=Ye.opacity,this.createVisual(),nt.prototype.restoreState.call(this,Ce),this.setSize()},xe.prototype.scale=function(Ce,Ye){nt.prototype.scale.call(this,Ce,Ye),this.setSize()},xe.typeName="EllipseMarker",xe.title="Ellipse marker",xe.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>',xe}(pe),xt=function(nt){function xe(Ce,Ye,Je){return nt.call(this,Ce,Ye,Je)||this}return mt(xe,nt),Object.defineProperty(xe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(Ce){return!(!nt.prototype.ownsTarget.call(this,Ce)&&Ce!==this.tip1&&Ce!==this.tip2)},xe.prototype.createTips=function(){this.tip1=ge.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ge.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.tip2)},xe.prototype.pointerDown=function(Ce,Ye){nt.prototype.pointerDown.call(this,Ce,Ye),this.state==="creating"&&this.createTips()},xe.prototype.adjustVisual=function(){if(nt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ge.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var Ce=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(Ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ye,0);var Je=this.tip2.transform.baseVal.getItem(0);Je.setRotate(Ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Je,0)}},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=nt.prototype.getState.call(this);return Ce.typeName=xe.typeName,Ce},xe.prototype.restoreState=function(Ce){nt.prototype.restoreState.call(this,Ce),this.createTips(),this.adjustVisual()},xe.typeName="MeasurementMarker",xe.title="Measurement marker",xe.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>',xe}(je),ft=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.strokePanel.colors=Je.defaultColorSet,Me.fillColor="transparent",Me}return mt(xe,nt),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=nt.prototype.getState.call(this);return Ce.typeName=xe.typeName,Ce},xe.typeName="EllipseFrameMarker",xe.title="Ellipse frame marker",xe.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>',xe}(St),gt=function(){function nt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(nt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),nt.prototype.addUndoStep=function(xe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(xe)||(this.undoStack.push(xe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(xe)&&this.redoStack.splice(0,this.redoStack.length))},nt.prototype.replaceLastUndoStep=function(xe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=xe)},nt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},nt.prototype.undo=function(){if(this.undoStack.length>1){var xe=this.undoStack.pop();return xe!==void 0&&this.redoStack.push(xe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},nt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},nt}(),vt=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.curveX=0,Me.curveY=0,Me.manipulationStartCurveX=0,Me.manipulationStartCurveY=0,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.positionGrips=Me.positionGrips.bind(Me),Me.addControlGrips=Me.addControlGrips.bind(Me),Me.adjustVisual=Me.adjustVisual.bind(Me),Me.setupControlBox=Me.setupControlBox.bind(Me),Me.resize=Me.resize.bind(Me),Me.strokeColor=Je.defaultColor,Me.strokeWidth=Je.defaultStrokeWidth,Me.strokeDasharray=Je.defaultStrokeDasharray,Me.strokePanel=new ee("Line color",Je.defaultColorSet,Je.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.strokeWidthPanel=new be("Line width",Je.defaultStrokeWidths,Je.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Ie("Line style",Je.defaultStrokeDasharrays,Je.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me}return mt(xe,nt),xe.prototype.ownsTarget=function(Ce){return!(!nt.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual&&Ce!==this.selectorCurve&&Ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(Ce))},xe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},xe.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorCurve=ge.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ge.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},xe.prototype.pointerDown=function(Ce,Ye){nt.prototype.pointerDown.call(this,Ce,Ye),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Ce.x,this.curveY=Ce.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ye)&&(this.activeGrip=this.curveGrip,this._state="resize")},xe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ge.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xe.prototype.setupControlBox=function(){nt.prototype.setupControlBox.call(this),this.curveControlLine1=ge.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ge.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},xe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,nt.prototype.addControlGrips.call(this)},xe.prototype.positionGrips=function(){nt.prototype.positionGrips.call(this);var Ce=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Ce/2,this.curveY-Ce/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()))},xe.prototype.manipulate=function(Ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Ce.y-this.manipulationStartY),nt.prototype.manipulate.call(this,Ce)},xe.prototype.resize=function(Ce){this.activeGrip===this.curveGrip&&(this.curveX=Ce.x,this.curveY=Ce.y),nt.prototype.resize.call(this,Ce),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},xe.prototype.setStrokeColor=function(Ce){this.strokeColor=Ce,this.adjustVisual(),this.colorChanged(Ce)},xe.prototype.setStrokeWidth=function(Ce){this.strokeWidth=Ce,this.adjustVisual()},xe.prototype.setStrokeDasharray=function(Ce){this.strokeDasharray=Ce,this.adjustVisual()},xe.prototype.scale=function(Ce,Ye){this.curveX=this.curveX*Ce,this.curveY=this.curveY*Ye,nt.prototype.scale.call(this,Ce,Ye)},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},nt.prototype.getState.call(this));return Ce.typeName=xe.typeName,Ce},xe.prototype.restoreState=function(Ce){nt.prototype.restoreState.call(this,Ce);var Ye=Ce;this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.curveX=Ye.curveX,this.curveY=Ye.curveY,this.createVisual(),this.adjustVisual()},xe.typeName="CurveMarker",xe.title="Curve marker",xe.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>',xe}(Oe),Tt=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,Ye,Je)||this;return Me.fillColor="transparent",Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.textColor="transparent",Me.fontSize="1rem",Me.isMoved=!1,Me.captionText="Caption",Me.PADDING=5,Me.captionBoxWidth=0,Me.captionBoxHeight=0,Me.strokeColor=Je.defaultColor,Me.strokeWidth=Je.defaultStrokeWidth,Me.strokeDasharray=Je.defaultStrokeDasharray,Me.fillColor=Je.defaultFillColor,Me.textColor=Je.defaultStrokeColor,Me.fontFamily=Je.defaultFontFamily,Me.fontSize=Je.defaultCaptionFontSize,Me.captionText=Je.defaultCaptionText,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setFillColor=Me.setFillColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.createVisual=Me.createVisual.bind(Me),Me.sizeCaption=Me.sizeCaption.bind(Me),Me.setCaptionText=Me.setCaptionText.bind(Me),Me.showTextEditor=Me.showTextEditor.bind(Me),Me.positionTextEditor=Me.positionTextEditor.bind(Me),Me.finishTextEditing=Me.finishTextEditing.bind(Me),Me.setFont=Me.setFont.bind(Me),Me.setTextColor=Me.setTextColor.bind(Me),Me.strokePanel=new ee("Line color",Ne(Je.defaultColorSet,["transparent"]),Me.strokeColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.fillPanel=new ee("Fill color",Ne(Je.defaultColorSet,["transparent"]),Me.fillColor,ot),Me.fillPanel.onColorChanged=Me.setFillColor,Me.strokeWidthPanel=new be("Line width",Je.defaultStrokeWidths,Je.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Ie("Line style",Je.defaultStrokeDasharrays,Je.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me.fontFamilyPanel=new ze("Font",Je.defaultFontFamilies,Je.defaultFontFamily),Me.fontFamilyPanel.onFontChanged=Me.setFont,Me.textColorPanel=new ee("Text color",Je.defaultColorSet,Me.textColor,qe),Me.textColorPanel.onColorChanged=Me.setTextColor,Me}return mt(xe,nt),xe.prototype.ownsTarget=function(Ce){return!(!nt.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual&&Ce!==this.frame&&Ce!==this.captionBg&&Ce!==this.captionElement)},xe.prototype.createVisual=function(){this.visual=ge.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ge.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ge.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=ge.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},xe.prototype.setCaptionText=function(Ce){this.captionText=Ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},xe.prototype.pointerDown=function(Ce,Ye){nt.prototype.pointerDown.call(this,Ce,Ye),this.isMoved=!1,this.pointerDownPoint=Ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ce),this._state="creating")},xe.prototype.manipulate=function(Ce){nt.prototype.manipulate.call(this,Ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ce.x-this.pointerDownPoint.x)>5||Math.abs(Ce.y-this.pointerDownPoint.y)>5)},xe.prototype.resize=function(Ce){nt.prototype.resize.call(this,Ce),this.setSize()},xe.prototype.sizeCaption=function(){var Ce=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Ce.width+2*this.PADDING,this.captionBoxHeight=Ce.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ge.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),ge.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},xe.prototype.showTextEditor=function(){var Ce=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"&&Ce.finishTextEditing(Ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ye){Ye.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Ce.finishTextEditing(Ce.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Ce.finishTextEditing(Ce.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},xe.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"))},xe.prototype.finishTextEditing=function(Ce){this.setCaptionText(Ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},xe.prototype.setFont=function(Ce){this.captionElement&&ge.setAttributes(this.captionElement,[["font-family",Ce]]),this.fontFamily=Ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},xe.prototype.setTextColor=function(Ce){this.captionElement&&ge.setAttributes(this.captionElement,[["fill",Ce]]),this.textColor=Ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},xe.prototype.setSize=function(){nt.prototype.setSize.call(this),ge.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},xe.prototype.pointerUp=function(Ce){nt.prototype.pointerUp.call(this,Ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},xe.prototype.dblClick=function(Ce,Ye){nt.prototype.dblClick.call(this,Ce,Ye),this.showTextEditor()},xe.prototype.setStrokeColor=function(Ce){this.strokeColor=Ce,this.frame&&ge.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Ce),this.stateChanged()},xe.prototype.setFillColor=function(Ce){this.fillColor=Ce,this.captionBg&&ge.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Ce),this.stateChanged()},xe.prototype.setStrokeWidth=function(Ce){this.strokeWidth=Ce,this.frame&&ge.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(Ce){this.strokeDasharray=Ce,this.frame&&ge.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var Ce=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},nt.prototype.getState.call(this));return Ce.typeName=this.typeName,Ce},xe.prototype.restoreState=function(Ce){var Ye=Ce;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(),nt.prototype.restoreState.call(this,Ce),this.setSize()},xe.prototype.scale=function(Ce,Ye){nt.prototype.scale.call(this,Ce,Ye),this.setSize()},xe.typeName="CaptionFrameMarker",xe.title="Caption frame marker",xe.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>',xe}(pe),Et=function(){function nt(xe,Ce){Ce===void 0&&(Ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=xe,this.cancelable=Ce}return Object.defineProperty(nt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),nt.prototype.preventDefault=function(){this._defaultPrevented=!0},nt}(),Zt=function(nt){function xe(Ce,Ye,Je){var Me=nt.call(this,Ce,!1)||this;return Me.dataUrl=Ye,Me.state=Je,Me}return mt(xe,nt),xe}(Et),wt=function(nt){function xe(Ce,Ye,Je){Je===void 0&&(Je=!1);var Me=nt.call(this,Ce,Je)||this;return Me.marker=Ye,Me}return mt(xe,nt),xe}(Et),bt=function(){function nt(){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 nt.prototype.addEventListener=function(xe,Ce){this[xe].push(Ce)},nt.prototype.removeEventListener=function(xe,Ce){var Ye=this[xe].indexOf(Ce);Ye>-1&&this[xe].splice(Ye,1)},nt}(),it=function(){function nt(xe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Fe,this._isOpen=!1,this.undoRedoManager=new gt,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 bt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=nt.instanceCounter++,this.styles=new ye(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=xe,this.targetRoot=document.body,this.width=xe.clientWidth,this.height=xe.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(nt.prototype,"ALL_MARKER_TYPES",{get:function(){return[Le,Ue,et,_e,ft,St,yt,dt,xt,lt,je,vt,Tt]},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Le,Ue,et,_e,St,yt,dt]},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Le,Ue,et,_e,yt]},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(xe){var Ce=this;this._availableMarkerTypes.splice(0),xe.forEach(function(Ye){if(typeof Ye=="string"){var Je=Ce.ALL_MARKER_TYPES.find(function(Me){return Me.typeName===Ye});Je!==void 0&&Ce._availableMarkerTypes.push(Je)}else Ce._availableMarkerTypes.push(Ye)})},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(xe){this._zoomLevel=xe,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(nt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),nt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ce.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},nt.prototype.show=function(){var xe=this;this.styles.styleSheetRoot===void 0&&Ae.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ae.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Ce){return Ce(new Et(xe))})},nt.prototype.render=function(){return oe(this,void 0,void 0,function(){var xe;return Ze(this,function(Ce){switch(Ce.label){case 0:return this.setCurrentMarker(),(xe=new Pe).naturalSize=this.renderAtNaturalSize,xe.imageType=this.renderImageType,xe.imageQuality=this.renderImageQuality,xe.markersOnly=this.renderMarkersOnly,xe.width=this.renderWidth,xe.height=this.renderHeight,[4,xe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Ce.sent(),[4,xe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Ce.sent()]}})})},nt.prototype.close=function(xe){var Ce=this;if(xe===void 0&&(xe=!1),this.isOpen){var Ye=!1;xe||this.eventListeners.beforeclose.forEach(function(Je){var Me=new Et(Ce,!0);Je(Me),Me.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(Je){return Je(new Et(Ce))}),this.detachEvents(),this._isOpen=!1)}},nt.prototype.addMarkersToToolbar=function(){for(var xe,Ce=[],Ye=0;Ye<arguments.length;Ye++)Ce[Ye]=arguments[Ye];(xe=this._availableMarkerTypes).push.apply(xe,Ce)},nt.prototype.addRenderEventListener=function(xe){this.addEventListener("render",function(Ce){xe(Ce.dataUrl,Ce.state)})},nt.prototype.removeRenderEventListener=function(xe){},nt.prototype.addCloseEventListener=function(xe){this.addEventListener("close",function(){xe()})},nt.prototype.removeCloseEventListener=function(xe){},nt.prototype.setupResizeObserver=function(){var xe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){xe.resize(xe.target.clientWidth,xe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return xe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},nt.prototype.onPopupTargetResize=function(){var xe=1*this.target.clientWidth/this.target.clientHeight,Ce=this.editorCanvas.clientWidth/xe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*xe:this.editorCanvas.clientWidth,Ye=Ce<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/xe;this.resize(Ce,Ye)},nt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},nt.prototype.resize=function(xe,Ce){this._isResizing=!0;var Ye=xe/this.imageWidth,Je=Ce/this.imageHeight;this.imageWidth=Math.round(xe),this.imageHeight=Math.round(Ce),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,Je),this._isResizing=!1},nt.prototype.scaleMarkers=function(xe,Ce){var Ye,Je=this;this._currentMarker&&this._currentMarker instanceof _e?this._currentMarker.scale(xe,Ce):(Ye=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Me){Me!==Je._currentMarker&&Me.scale(xe,Ce)}),Ye!==void 0&&this.setCurrentMarker(Ye)},nt.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"},nt.prototype.setTopLeft=function(){var xe=this.editingTarget.getBoundingClientRect(),Ce=this.editorCanvas.getBoundingClientRect();this.left=xe.left-Ce.left,this.top=xe.top-Ce.top},nt.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)},nt.prototype.addDefs=function(){for(var xe,Ce=[],Ye=0;Ye<arguments.length;Ye++)Ce[Ye]=arguments[Ye];this.defs=ge.createDefs(),this.addDefsToImage(),(xe=this.defs).append.apply(xe,Ce)},nt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},nt.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)},nt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},nt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},nt.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)},nt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},nt.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)},nt.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 xe=document.createElement("a");xe.href="https://markerjs.com/",xe.target="_blank",xe.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>',xe.title="Powered by marker.js",xe.style.display="grid",xe.style.alignItems="center",xe.style.justifyItems="center",xe.style.padding="3px",xe.style.width="20px",xe.style.height="20px",this.logoUI.appendChild(xe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},nt.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")},nt.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"},nt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},nt.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 xe=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=xe+"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 we(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new fe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},nt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},nt.prototype.removeMarker=function(xe){this.markerImage.removeChild(xe.container),this.markers.indexOf(xe)>-1&&this.markers.splice(this.markers.indexOf(xe),1),xe.dispose()},nt.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())},nt.prototype.toolbarButtonClicked=function(xe,Ce){if(xe==="marker"&&Ce!==void 0)this.createNewMarker(Ce);else if(xe==="action")switch(Ce){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()}},nt.prototype.deleteSelectedMarker=function(){var xe=this;if(this._currentMarker!==void 0){var Ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Je){var Me=new wt(xe,xe._currentMarker,!0);Je(Me),Me.defaultPrevented&&(Ce=!0)}),!Ce){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(Je){return Je(new wt(xe,Ye))})}}},nt.prototype.clear=function(){var xe=this,Ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ge){var Ke=new wt(xe,void 0,!0);Ge(Ke),Ke.defaultPrevented&&(Ce=!0)}),!Ce)){this.setCurrentMarker();for(var Ye=function(Ge){var Ke=Je.markers[Ge];Je.setCurrentMarker(Je.markers[Ge]),Je._currentMarker.dispose(),Je.markerImage.removeChild(Je._currentMarker.container),Je.markers.splice(Je.markers.indexOf(Je._currentMarker),1),Je.eventListeners.markerdelete.forEach(function(Ve){return Ve(new wt(xe,Ke))})},Je=this,Me=this.markers.length-1;Me>=0;Me--)Ye(Me);this.addUndoStep()}},Object.defineProperty(nt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),nt.prototype.showNotesEditor=function(){var xe;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=(xe=this._currentMarker.notes)!==null&&xe!==void 0?xe:"",this.overlayContainer.appendChild(this.notesArea))},nt.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)},nt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},nt.prototype.addUndoStep=function(){var xe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Ce=this.getState(),Ye=this.undoRedoManager.getLastUndoStep();if(!Ye||Ye.width===Ce.width&&Ye.height===Ce.height){var Je=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Ce),Je<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Me){return Me(new Et(xe))})}else this.undoRedoManager.replaceLastUndoStep(Ce),this.eventListeners.statechange.forEach(function(Me){return Me(new Et(xe))})}},nt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},nt.prototype.undoStep=function(){var xe=this,Ce=this.undoRedoManager.undo();Ce!==void 0&&(this.restoreState(Ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ye){return Ye(new Et(xe))}))},nt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},nt.prototype.redoStep=function(){var xe=this,Ce=this.undoRedoManager.redo();Ce!==void 0&&(this.restoreState(Ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ye){return Ye(new Et(xe))}))},nt.prototype.stepZoom=function(){var xe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=xe<this.zoomSteps.length-1?this.zoomSteps[xe+1]:this.zoomSteps[0]},nt.prototype.panTo=function(xe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-xe.x,top:this.prevPanPoint.y-xe.y}),this.prevPanPoint=xe},nt.prototype.startRenderAndClose=function(){return oe(this,void 0,void 0,function(){var xe,Ce,Ye=this;return Ze(this,function(Je){switch(Je.label){case 0:return[4,this.render()];case 1:return xe=Je.sent(),Ce=this.getState(),this.eventListeners.render.forEach(function(Me){return Me(new Zt(Ye,xe,Ce))}),this.close(!0),[2]}})})},nt.prototype.getState=function(xe){xe===!0&&this.setCurrentMarker();var Ce={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ye){return Ce.markers.push(Ye.getState())}),Ce},nt.prototype.restoreState=function(xe){var Ce=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);xe.markers.forEach(function(Ye){var Je=Ce._availableMarkerTypes.find(function(Ge){return Ge.typeName===Ye.typeName});if(Je!==void 0){var Me=Ce.addNewMarker(Je);Me.restoreState(Ye),Ce.markers.push(Me)}}),xe.width&&xe.height&&(xe.width!==this.imageWidth||xe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/xe.width,this.imageHeight/xe.height),this.eventListeners.restorestate.forEach(function(Ye){return Ye(new Et(Ce))})},nt.prototype.addNewMarker=function(xe){var Ce=ge.createGroup();return this.markerImage.appendChild(Ce),new xe(Ce,this.overlayContainer,this.settings)},nt.prototype.createNewMarker=function(xe){var Ce,Ye=this;(Ce=typeof xe=="string"?this._availableMarkerTypes.find(function(Je){return Je.typeName===xe}):xe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Ce),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(Ce.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Je){return Je(new wt(Ye,Ye._currentMarker))}))},nt.prototype.markerCreated=function(xe){var Ce=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(xe),this.setCurrentMarker(xe),xe instanceof Ue&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ue):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ye){return Ye(new wt(Ce,Ce._currentMarker))})},nt.prototype.colorChanged=function(xe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=xe,this.settings.defaultStrokeColor=xe)},nt.prototype.fillColorChanged=function(xe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=xe)},nt.prototype.markerStateChanged=function(xe){var Ce=this;this.eventListeners.markerchange.forEach(function(Ye){return Ye(new wt(Ce,xe))})},nt.prototype.setCurrentMarker=function(xe){var Ce=this;this._currentMarker!==xe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ye){return Ye(new wt(Ce,Ce._currentMarker))})),this._currentMarker=xe,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 wt(Ce,Ce._currentMarker))}))},nt.prototype.onPointerDown=function(xe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||xe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Ce=this.markers.find(function(Ye){return Ye.ownsTarget(xe.target)});Ce!==void 0?(this.setCurrentMarker(Ce),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xe.clientX,xe.clientY),xe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:xe.clientX,y:xe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xe.clientX,xe.clientY))},nt.prototype.onDblClick=function(xe){if(this._isFocused||this.focus(),this.mode==="select"){var Ce=this.markers.find(function(Ye){return Ye.ownsTarget(xe.target)});Ce!==void 0&&Ce!==this._currentMarker&&this.setCurrentMarker(Ce),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(xe.clientX,xe.clientY),xe.target):this.setCurrentMarker()}},nt.prototype.onPointerMove=function(xe){this.touchPoints!==1&&xe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||xe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(xe.clientX,xe.clientY)):this.zoomLevel>1&&this.panTo({x:xe.clientX,y:xe.clientY}))},nt.prototype.onPointerUp=function(xe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(xe.clientX,xe.clientY)),this.isDragging=!1,this.addUndoStep()},nt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},nt.prototype.onKeyUp=function(xe){this._currentMarker===void 0||this.notesArea!==void 0||xe.key!=="Delete"&&xe.key!=="Backspace"||this.deleteSelectedMarker()},nt.prototype.clientToLocalCoordinates=function(xe,Ce){var Ye=this.markerImage.getBoundingClientRect();return{x:(xe-Ye.left)/this.zoomLevel,y:(Ce-Ye.top)/this.zoomLevel}},nt.prototype.onWindowResize=function(){this.positionUI()},nt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var xe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=xe+"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()},nt.prototype.addLicenseKey=function(xe){ce.addKey(xe)},nt.prototype.addEventListener=function(xe,Ce){this.eventListeners.addEventListener(xe,Ce)},nt.prototype.removeEventListener=function(xe,Ce){this.eventListeners.removeEventListener(xe,Ce)},nt.prototype.renderState=function(xe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(xe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(nt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),nt.prototype.focus=function(){var xe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Ce){return Ce(new Et(xe))}))},nt.prototype.blur=function(){var xe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Ce){return Ce(new Et(xe))}))},nt.instanceCounter=0,nt}()},17115:function(kn,fn,We){"use strict";We.d(fn,{ZP:function(){return ce}});var He=We(33606),mt=We(59301),oe=We(47273),Ze=0,Ne=(0,oe.Z)();function ge(){var Pe;return Ne?(Pe=Ze,Ze+=1):Pe="TEST_OR_SSR",Pe}function ce(Pe){var Ae=mt.useState(),ye=(0,He.Z)(Ae,2),De=ye[0],me=ye[1];return mt.useEffect(function(){me("rc_select_".concat(ge()))},[]),Pe||De}},77861:function(kn,fn,We){"use strict";We.d(fn,{Ac:function(){return Ot},Xo:function(){return er},Wx:function(){return Ar},ZP:function(){return pn},lk:function(){return pe}});var He=We(92413),mt=We(26407),oe=We(400),Ze=We(33708),Ne=We(33606),ge=We(37061),ce=We(39559),Pe=We(18929),Ae=We(48736),ye=We(59301),De=We(92310),me=We.n(De),we=We(34280),fe=We(49658),z=We(10228),ee=We(8654),ae=function(Dt){var cn=Dt.className,xn=Dt.customizeIcon,Nn=Dt.customizeIconProps,Zn=Dt.onMouseDown,Ht=Dt.onClick,En=Dt.children,Kn;return typeof xn=="function"?Kn=xn(Nn):Kn=xn,ye.createElement("span",{className:cn,onMouseDown:function(rn){rn.preventDefault(),Zn&&Zn(rn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ht,"aria-hidden":!0},Kn!==void 0?Kn:ye.createElement("span",{className:me()(cn.split(/\s+/).map(function(nr){return"".concat(nr,"-icon")}))},En))},re=ae;function le(Vt,Dt,cn,xn,Nn){var Zn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ht=arguments.length>6?arguments[6]:void 0,En=arguments.length>7?arguments[7]:void 0,Kn=ye.useMemo(function(){if((0,ce.Z)(xn)==="object")return xn.clearIcon;if(Nn)return Nn},[xn,Nn]),nr=ye.useMemo(function(){return!!(!Zn&&xn&&(cn.length||Ht)&&!(En==="combobox"&&Ht===""))},[xn,Zn,cn.length,Ht,En]);return{allowClear:nr,clearIcon:ye.createElement(re,{className:"".concat(Vt,"-clear"),onMouseDown:Dt,customizeIcon:Kn},"\xD7")}}var ue=ye.createContext(null);function pe(){return ye.useContext(ue)}function Ee(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Dt=ye.useState(!1),cn=(0,Ne.Z)(Dt,2),xn=cn[0],Nn=cn[1],Zn=ye.useRef(null),Ht=function(){window.clearTimeout(Zn.current)};ye.useEffect(function(){return Ht},[]);var En=function(nr,rn){Ht(),Zn.current=window.setTimeout(function(){Nn(nr),rn&&rn()},Vt)};return[xn,En,Ht]}function be(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Dt=ye.useRef(null),cn=ye.useRef(null);ye.useEffect(function(){return function(){window.clearTimeout(cn.current)}},[]);function xn(Nn){(Nn||Dt.current===null)&&(Dt.current=Nn),window.clearTimeout(cn.current),cn.current=window.setTimeout(function(){Dt.current=null},Vt)}return[function(){return Dt.current},xn]}function Ie(Vt,Dt,cn,xn){var Nn=ye.useRef(null);Nn.current={open:Dt,triggerOpen:cn,customizedTrigger:xn},ye.useEffect(function(){function Zn(Ht){var En;if(!((En=Nn.current)!==null&&En!==void 0&&En.customizedTrigger)){var Kn=Ht.target;Kn.shadowRoot&&Ht.composed&&(Kn=Ht.composedPath()[0]||Kn),Nn.current.open&&Vt().filter(function(nr){return nr}).every(function(nr){return!nr.contains(Kn)&&nr!==Kn})&&Nn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Zn),function(){return window.removeEventListener("mousedown",Zn)}},[])}var Le=We(26112),Fe=We(11780),Oe=function(Dt,cn){var xn,Nn,Zn=Dt.prefixCls,Ht=Dt.id,En=Dt.inputElement,Kn=Dt.disabled,nr=Dt.tabIndex,rn=Dt.autoFocus,bn=Dt.autoComplete,nn=Dt.editable,wn=Dt.activeDescendantId,gn=Dt.value,yn=Dt.maxLength,Ln=Dt.onKeyDown,Tn=Dt.onMouseDown,In=Dt.onChange,Gn=Dt.onPaste,mr=Dt.onCompositionStart,mn=Dt.onCompositionEnd,Pr=Dt.open,Ur=Dt.attrs,Br=En||ye.createElement("input",null),Sn=Br,Yn=Sn.ref,dr=Sn.props,Fr=dr.onKeyDown,fr=dr.onChange,Ir=dr.onMouseDown,Zr=dr.onCompositionStart,zr=dr.onCompositionEnd,Er=dr.style;return(0,Ae.Kp)(!("maxLength"in Br.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Br=ye.cloneElement(Br,(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({type:"search"},dr),{},{id:Ht,ref:(0,ee.sQ)(cn,Yn),disabled:Kn,tabIndex:nr,autoComplete:bn||"off",autoFocus:rn,className:me()("".concat(Zn,"-selection-search-input"),(xn=Br)===null||xn===void 0||(Nn=xn.props)===null||Nn===void 0?void 0:Nn.className),role:"combobox","aria-label":"Search","aria-expanded":Pr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ht,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ht,"_list"),"aria-activedescendant":Pr?wn:void 0},Ur),{},{value:nn?gn:"",maxLength:yn,readOnly:!nn,unselectable:nn?null:"on",style:(0,Ze.Z)((0,Ze.Z)({},Er),{},{opacity:nn?null:0}),onKeyDown:function(Fn){Ln(Fn),Fr&&Fr(Fn)},onMouseDown:function(Fn){Tn(Fn),Ir&&Ir(Fn)},onChange:function(Fn){In(Fn),fr&&fr(Fn)},onCompositionStart:function(Fn){mr(Fn),Zr&&Zr(Fn)},onCompositionEnd:function(Fn){mn(Fn),zr&&zr(Fn)},onPaste:Gn})),Br},je=ye.forwardRef(Oe);je.displayName="Input";var ze=je;function _e(Vt){return Array.isArray(Vt)?Vt:Vt!==void 0?[Vt]:[]}var Ue=typeof window!="undefined"&&window.document&&window.document.documentElement,$e=Ue;function et(Vt){return Vt!=null}function lt(Vt){return!Vt&&Vt!==0}function ut(Vt){return["string","number"].includes((0,ce.Z)(Vt))}function yt(Vt){var Dt=void 0;return Vt&&(ut(Vt.title)?Dt=Vt.title.toString():ut(Vt.label)&&(Dt=Vt.label.toString())),Dt}function qe(Vt,Dt){$e?ye.useLayoutEffect(Vt,Dt):ye.useEffect(Vt,Dt)}function ot(Vt){var Dt;return(Dt=Vt.key)!==null&&Dt!==void 0?Dt:Vt.value}var dt=function(Dt){Dt.preventDefault(),Dt.stopPropagation()},St=function(Dt){var cn=Dt.id,xn=Dt.prefixCls,Nn=Dt.values,Zn=Dt.open,Ht=Dt.searchValue,En=Dt.autoClearSearchValue,Kn=Dt.inputRef,nr=Dt.placeholder,rn=Dt.disabled,bn=Dt.mode,nn=Dt.showSearch,wn=Dt.autoFocus,gn=Dt.autoComplete,yn=Dt.activeDescendantId,Ln=Dt.tabIndex,Tn=Dt.removeIcon,In=Dt.maxTagCount,Gn=Dt.maxTagTextLength,mr=Dt.maxTagPlaceholder,mn=mr===void 0?function(Li){return"+ ".concat(Li.length," ...")}:mr,Pr=Dt.tagRender,Ur=Dt.onToggleOpen,Br=Dt.onRemove,Sn=Dt.onInputChange,Yn=Dt.onInputPaste,dr=Dt.onInputKeyDown,Fr=Dt.onInputMouseDown,fr=Dt.onInputCompositionStart,Ir=Dt.onInputCompositionEnd,Zr=ye.useRef(null),zr=(0,ye.useState)(0),Er=(0,Ne.Z)(zr,2),Vr=Er[0],Fn=Er[1],Mi=(0,ye.useState)(!1),On=(0,Ne.Z)(Mi,2),pi=On[0],Ni=On[1],Qr="".concat(xn,"-selection"),Xi=Zn||bn==="multiple"&&En===!1||bn==="tags"?Ht:"",Ti=bn==="tags"||bn==="multiple"&&En===!1||nn&&(Zn||pi);qe(function(){Fn(Zr.current.scrollWidth)},[Xi]);function Rr(Li,so,Pi,wo,po){return ye.createElement("span",{className:me()("".concat(Qr,"-item"),(0,oe.Z)({},"".concat(Qr,"-item-disabled"),Pi)),title:yt(Li)},ye.createElement("span",{className:"".concat(Qr,"-item-content")},so),wo&&ye.createElement(re,{className:"".concat(Qr,"-item-remove"),onMouseDown:dt,onClick:po,customizeIcon:Tn},"\xD7"))}function Wr(Li,so,Pi,wo,po){var Eo=function(si){dt(si),Ur(!Zn)};return ye.createElement("span",{onMouseDown:Eo},Pr({label:so,value:Li,disabled:Pi,closable:wo,onClose:po}))}function bi(Li){var so=Li.disabled,Pi=Li.label,wo=Li.value,po=!rn&&!so,Eo=Pi;if(typeof Gn=="number"&&(typeof Pi=="string"||typeof Pi=="number")){var yi=String(Eo);yi.length>Gn&&(Eo="".concat(yi.slice(0,Gn),"..."))}var si=function(Ji){Ji&&Ji.stopPropagation(),Br(Li)};return typeof Pr=="function"?Wr(wo,Eo,so,po,si):Rr(Li,Eo,so,po,si)}function Di(Li){var so=typeof mn=="function"?mn(Li):mn;return Rr({title:so},so,!1)}var pr=ye.createElement("div",{className:"".concat(Qr,"-search"),style:{width:Vr},onFocus:function(){Ni(!0)},onBlur:function(){Ni(!1)}},ye.createElement(ze,{ref:Kn,open:Zn,prefixCls:xn,id:cn,inputElement:null,disabled:rn,autoFocus:wn,autoComplete:gn,editable:Ti,activeDescendantId:yn,value:Xi,onKeyDown:dr,onMouseDown:Fr,onChange:Sn,onPaste:Yn,onCompositionStart:fr,onCompositionEnd:Ir,tabIndex:Ln,attrs:(0,Le.Z)(Dt,!0)}),ye.createElement("span",{ref:Zr,className:"".concat(Qr,"-search-mirror"),"aria-hidden":!0},Xi,"\xA0")),Lt=ye.createElement(Fe.Z,{prefixCls:"".concat(Qr,"-overflow"),data:Nn,renderItem:bi,renderRest:Di,suffix:pr,itemKey:ot,maxCount:In});return ye.createElement(ye.Fragment,null,Lt,!Nn.length&&!Xi&&ye.createElement("span",{className:"".concat(Qr,"-placeholder")},nr))},xt=St,ft=function(Dt){var cn=Dt.inputElement,xn=Dt.prefixCls,Nn=Dt.id,Zn=Dt.inputRef,Ht=Dt.disabled,En=Dt.autoFocus,Kn=Dt.autoComplete,nr=Dt.activeDescendantId,rn=Dt.mode,bn=Dt.open,nn=Dt.values,wn=Dt.placeholder,gn=Dt.tabIndex,yn=Dt.showSearch,Ln=Dt.searchValue,Tn=Dt.activeValue,In=Dt.maxLength,Gn=Dt.onInputKeyDown,mr=Dt.onInputMouseDown,mn=Dt.onInputChange,Pr=Dt.onInputPaste,Ur=Dt.onInputCompositionStart,Br=Dt.onInputCompositionEnd,Sn=Dt.title,Yn=ye.useState(!1),dr=(0,Ne.Z)(Yn,2),Fr=dr[0],fr=dr[1],Ir=rn==="combobox",Zr=Ir||yn,zr=nn[0],Er=Ln||"";Ir&&Tn&&!Fr&&(Er=Tn),ye.useEffect(function(){Ir&&fr(!1)},[Ir,Tn]);var Vr=rn!=="combobox"&&!bn&&!yn?!1:!!Er,Fn=Sn===void 0?yt(zr):Sn,Mi=function(){if(zr)return null;var pi=Vr?{visibility:"hidden"}:void 0;return ye.createElement("span",{className:"".concat(xn,"-selection-placeholder"),style:pi},wn)};return ye.createElement(ye.Fragment,null,ye.createElement("span",{className:"".concat(xn,"-selection-search")},ye.createElement(ze,{ref:Zn,prefixCls:xn,id:Nn,open:bn,inputElement:cn,disabled:Ht,autoFocus:En,autoComplete:Kn,editable:Zr,activeDescendantId:nr,value:Er,onKeyDown:Gn,onMouseDown:mr,onChange:function(pi){fr(!0),mn(pi)},onPaste:Pr,onCompositionStart:Ur,onCompositionEnd:Br,tabIndex:gn,attrs:(0,Le.Z)(Dt,!0),maxLength:Ir?In:void 0})),!Ir&&zr?ye.createElement("span",{className:"".concat(xn,"-selection-item"),title:Fn,style:Vr?{visibility:"hidden"}:void 0},zr.label):null,Mi())},gt=ft;function vt(Vt){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(Vt)}var Tt=function(Dt,cn){var xn=(0,ye.useRef)(null),Nn=(0,ye.useRef)(!1),Zn=Dt.prefixCls,Ht=Dt.open,En=Dt.mode,Kn=Dt.showSearch,nr=Dt.tokenWithEnter,rn=Dt.autoClearSearchValue,bn=Dt.onSearch,nn=Dt.onSearchSubmit,wn=Dt.onToggleOpen,gn=Dt.onInputKeyDown,yn=Dt.domRef;ye.useImperativeHandle(cn,function(){return{focus:function(){xn.current.focus()},blur:function(){xn.current.blur()}}});var Ln=be(0),Tn=(0,Ne.Z)(Ln,2),In=Tn[0],Gn=Tn[1],mr=function(Er){var Vr=Er.which;(Vr===z.Z.UP||Vr===z.Z.DOWN)&&Er.preventDefault(),gn&&gn(Er),Vr===z.Z.ENTER&&En==="tags"&&!Nn.current&&!Ht&&(nn==null||nn(Er.target.value)),vt(Vr)&&wn(!0)},mn=function(){Gn(!0)},Pr=(0,ye.useRef)(null),Ur=function(Er){bn(Er,!0,Nn.current)!==!1&&wn(!0)},Br=function(){Nn.current=!0},Sn=function(Er){Nn.current=!1,En!=="combobox"&&Ur(Er.target.value)},Yn=function(Er){var Vr=Er.target.value;if(nr&&Pr.current&&/[\r\n]/.test(Pr.current)){var Fn=Pr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Vr=Vr.replace(Fn,Pr.current)}Pr.current=null,Ur(Vr)},dr=function(Er){var Vr=Er.clipboardData,Fn=Vr.getData("text");Pr.current=Fn},Fr=function(Er){var Vr=Er.target;if(Vr!==xn.current){var Fn=document.body.style.msTouchAction!==void 0;Fn?setTimeout(function(){xn.current.focus()}):xn.current.focus()}},fr=function(Er){var Vr=In();Er.target!==xn.current&&!Vr&&En!=="combobox"&&Er.preventDefault(),(En!=="combobox"&&(!Kn||!Vr)||!Ht)&&(Ht&&rn!==!1&&bn("",!0,!1),wn())},Ir={inputRef:xn,onInputKeyDown:mr,onInputMouseDown:mn,onInputChange:Yn,onInputPaste:dr,onInputCompositionStart:Br,onInputCompositionEnd:Sn},Zr=En==="multiple"||En==="tags"?ye.createElement(xt,(0,He.Z)({},Dt,Ir)):ye.createElement(gt,(0,He.Z)({},Dt,Ir));return ye.createElement("div",{ref:yn,className:"".concat(Zn,"-selector"),onClick:Fr,onMouseDown:fr},Zr)},Et=ye.forwardRef(Tt);Et.displayName="Selector";var Zt=Et,wt=We(35593),bt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],it=function(Dt){var cn=Dt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:cn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:cn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:cn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:cn,adjustY:1},htmlRegion:"scroll"}}},nt=function(Dt,cn){var xn=Dt.prefixCls,Nn=Dt.disabled,Zn=Dt.visible,Ht=Dt.children,En=Dt.popupElement,Kn=Dt.animation,nr=Dt.transitionName,rn=Dt.dropdownStyle,bn=Dt.dropdownClassName,nn=Dt.direction,wn=nn===void 0?"ltr":nn,gn=Dt.placement,yn=Dt.builtinPlacements,Ln=Dt.dropdownMatchSelectWidth,Tn=Dt.dropdownRender,In=Dt.dropdownAlign,Gn=Dt.getPopupContainer,mr=Dt.empty,mn=Dt.getTriggerDOMNode,Pr=Dt.onPopupVisibleChange,Ur=Dt.onPopupMouseEnter,Br=(0,ge.Z)(Dt,bt),Sn="".concat(xn,"-dropdown"),Yn=En;Tn&&(Yn=Tn(En));var dr=ye.useMemo(function(){return yn||it(Ln)},[yn,Ln]),Fr=Kn?"".concat(Sn,"-").concat(Kn):nr,fr=typeof Ln=="number",Ir=ye.useMemo(function(){return fr?null:Ln===!1?"minWidth":"width"},[Ln,fr]),Zr=rn;fr&&(Zr=(0,Ze.Z)((0,Ze.Z)({},Zr),{},{width:Ln}));var zr=ye.useRef(null);return ye.useImperativeHandle(cn,function(){return{getPopupElement:function(){return zr.current}}}),ye.createElement(wt.Z,(0,He.Z)({},Br,{showAction:Pr?["click"]:[],hideAction:Pr?["click"]:[],popupPlacement:gn||(wn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:dr,prefixCls:Sn,popupTransitionName:Fr,popup:ye.createElement("div",{ref:zr,onMouseEnter:Ur},Yn),stretch:Ir,popupAlign:In,popupVisible:Zn,getPopupContainer:Gn,popupClassName:me()(bn,(0,oe.Z)({},"".concat(Sn,"-empty"),mr)),popupStyle:Zr,getTriggerDOMNode:mn,onPopupVisibleChange:Pr}),Ht)},xe=ye.forwardRef(nt);xe.displayName="SelectTrigger";var Ce=xe,Ye=We(34589);function Je(Vt,Dt){var cn=Vt.key,xn;return"value"in Vt&&(xn=Vt.value),cn!=null?cn:xn!==void 0?xn:"rc-index-key-".concat(Dt)}function Me(Vt,Dt){var cn=Vt||{},xn=cn.label,Nn=cn.value,Zn=cn.options,Ht=cn.groupLabel,En=xn||(Dt?"children":"label");return{label:En,value:Nn||"value",options:Zn||"options",groupLabel:Ht||En}}function Ge(Vt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},cn=Dt.fieldNames,xn=Dt.childrenAsData,Nn=[],Zn=Me(cn,!1),Ht=Zn.label,En=Zn.value,Kn=Zn.options,nr=Zn.groupLabel;function rn(bn,nn){bn.forEach(function(wn){if(nn||!(Kn in wn)){var gn=wn[En];Nn.push({key:Je(wn,Nn.length),groupOption:nn,data:wn,label:wn[Ht],value:gn})}else{var yn=wn[nr];yn===void 0&&xn&&(yn=wn.label),Nn.push({key:Je(wn,Nn.length),group:!0,data:wn,label:yn}),rn(wn[Kn],!0)}})}return rn(Vt,!1),Nn}function Ke(Vt){var Dt=(0,Ze.Z)({},Vt);return"props"in Dt||Object.defineProperty(Dt,"props",{get:function(){return(0,Ae.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Dt}}),Dt}function Ve(Vt,Dt){if(!Dt||!Dt.length)return null;var cn=!1;function xn(Zn,Ht){var En=(0,Ye.Z)(Ht),Kn=En[0],nr=En.slice(1);if(!Kn)return[Zn];var rn=Zn.split(Kn);return cn=cn||rn.length>1,rn.reduce(function(bn,nn){return[].concat((0,mt.Z)(bn),(0,mt.Z)(xn(nn,nr)))},[]).filter(function(bn){return bn})}var Nn=xn(Vt,Dt);return cn?Nn:null}var Qe=["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"],ht=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function At(Vt){return Vt==="tags"||Vt==="multiple"}var pt=ye.forwardRef(function(Vt,Dt){var cn,xn,Nn=Vt.id,Zn=Vt.prefixCls,Ht=Vt.className,En=Vt.showSearch,Kn=Vt.tagRender,nr=Vt.direction,rn=Vt.omitDomProps,bn=Vt.displayValues,nn=Vt.onDisplayValuesChange,wn=Vt.emptyOptions,gn=Vt.notFoundContent,yn=gn===void 0?"Not Found":gn,Ln=Vt.onClear,Tn=Vt.mode,In=Vt.disabled,Gn=Vt.loading,mr=Vt.getInputElement,mn=Vt.getRawInputElement,Pr=Vt.open,Ur=Vt.defaultOpen,Br=Vt.onDropdownVisibleChange,Sn=Vt.activeValue,Yn=Vt.onActiveValueChange,dr=Vt.activeDescendantId,Fr=Vt.searchValue,fr=Vt.autoClearSearchValue,Ir=Vt.onSearch,Zr=Vt.onSearchSplit,zr=Vt.tokenSeparators,Er=Vt.allowClear,Vr=Vt.suffixIcon,Fn=Vt.clearIcon,Mi=Vt.OptionList,On=Vt.animation,pi=Vt.transitionName,Ni=Vt.dropdownStyle,Qr=Vt.dropdownClassName,Xi=Vt.dropdownMatchSelectWidth,Ti=Vt.dropdownRender,Rr=Vt.dropdownAlign,Wr=Vt.placement,bi=Vt.builtinPlacements,Di=Vt.getPopupContainer,pr=Vt.showAction,Lt=pr===void 0?[]:pr,Li=Vt.onFocus,so=Vt.onBlur,Pi=Vt.onKeyUp,wo=Vt.onKeyDown,po=Vt.onMouseDown,Eo=(0,ge.Z)(Vt,Qe),yi=At(Tn),si=(En!==void 0?En:yi)||Tn==="combobox",ei=(0,Ze.Z)({},Eo);ht.forEach(function(oo){delete ei[oo]}),rn==null||rn.forEach(function(oo){delete ei[oo]});var Ji=ye.useState(!1),no=(0,Ne.Z)(Ji,2),Yr=no[0],Kr=no[1];ye.useEffect(function(){Kr((0,fe.Z)())},[]);var qn=ye.useRef(null),ci=ye.useRef(null),ro=ye.useRef(null),Do=ye.useRef(null),lo=ye.useRef(null),Qi=Ee(),Oo=(0,Ne.Z)(Qi,3),ko=Oo[0],oa=Oo[1],la=Oo[2];ye.useImperativeHandle(Dt,function(){var oo,zo;return{focus:(oo=Do.current)===null||oo===void 0?void 0:oo.focus,blur:(zo=Do.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 oo;if(Tn!=="combobox")return Fr;var zo=(oo=bn[0])===null||oo===void 0?void 0:oo.value;return typeof zo=="string"||typeof zo=="number"?String(zo):""},[Fr,Tn,bn]),Mn=Tn==="combobox"&&typeof mr=="function"&&mr()||null,ha=typeof mn=="function"&&mn(),fu=(0,ee.x1)(ci,ha==null||(cn=ha.props)===null||cn===void 0?void 0:cn.ref),xs=ye.useState(!1),bo=(0,Ne.Z)(xs,2),io=bo[0],da=bo[1];(0,we.Z)(function(){da(!0)},[]);var Ao=(0,Pe.Z)(!1,{defaultValue:Ur,value:Pr}),$i=(0,Ne.Z)(Ao,2),Io=$i[0],ws=$i[1],Ci=io?Io:!1,co=!yn&&wn;(In||co&&Ci&&Tn==="combobox")&&(Ci=!1);var ao=co?!1:Ci,kr=ye.useCallback(function(oo){var zo=oo!==void 0?oo:!Ci;In||(ws(zo),Ci!==zo&&(Br==null||Br(zo)))},[In,Ci,ws,Br]),za=ye.useMemo(function(){return(zr||[]).some(function(oo){return[`
|
|
|
`,`\r
|
|
|
`].includes(oo)})},[zr]),Wa=function(zo,As,_a){var Ha=!0,ga=zo;Yn==null||Yn(null);var La=_a?null:Ve(zo,zr);return Tn!=="combobox"&&La&&(ga="",Zr==null||Zr(La),kr(!1),Ha=!1),Ir&&Ma!==ga&&Ir(ga,{source:As?"typing":"effect"}),Ha},Es=function(zo){!zo||!zo.trim()||Ir(zo,{source:"submit"})};ye.useEffect(function(){!Ci&&!yi&&Tn!=="combobox"&&Wa("",!1,!1)},[Ci]),ye.useEffect(function(){Io&&In&&ws(!1),In&&oa(!1)},[In]);var Nl=be(),$l=(0,Ne.Z)(Nl,2),wr=$l[0],ua=$l[1],Xa=function(zo){var As=wr(),_a=zo.which;if(_a===z.Z.ENTER&&(Tn!=="combobox"&&zo.preventDefault(),Ci||kr(!0)),ua(!!Ma),_a===z.Z.BACKSPACE&&!As&&yi&&!Ma&&bn.length){for(var Ha=(0,mt.Z)(bn),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&&nn(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))}wo==null||wo.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=bn.filter(function(_a){return _a!==zo});nn(As,{type:"remove",values:[zo]})},Il=ye.useRef(!1),Ri=function(){oa(!0),In||(Li&&!Il.current&&Li.apply(void 0,arguments),Lt.includes("focus")&&kr(!0)),Il.current=!0},mc=function(){oa(!1,function(){Il.current=!1,kr(!1)}),!In&&(Ma&&(Tn==="tags"?Ir(Ma,{source:"submit"}):Tn==="multiple"&&Ir("",{source:"blur"})),so&&so.apply(void 0,arguments))},tl=[];ye.useEffect(function(){return function(){tl.forEach(function(oo){return clearTimeout(oo)}),tl.splice(0,tl.length)}},[]);var nl=function(zo){var As,_a=zo.target,Ha=(As=ro.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(),!Yr&&!Ha.contains(document.activeElement)){var Rl;(Rl=Do.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];po==null||po.apply(void 0,[zo].concat(Ya))},ks=ye.useState({}),Eu=(0,Ne.Z)(ks,2),Ru=Eu[1];function Ws(){Ru({})}var dl;ha&&(dl=function(zo){kr(zo)}),Ie(function(){var oo;return[qn.current,(oo=ro.current)===null||oo===void 0?void 0:oo.getPopupElement()]},ao,kr,!!ha);var Hc=ye.useMemo(function(){return(0,Ze.Z)((0,Ze.Z)({},Vt),{},{notFoundContent:yn,open:Ci,triggerOpen:ao,id:Nn,showSearch:si,multiple:yi,toggleOpen:kr})},[Vt,yn,ao,Ci,Nn,si,yi,kr]),hh=!!Vr||Gn,Uc;hh&&(Uc=ye.createElement(re,{className:me()("".concat(Zn,"-arrow"),(0,oe.Z)({},"".concat(Zn,"-arrow-loading"),Gn)),customizeIcon:Vr,customizeIconProps:{loading:Gn,searchValue:Ma,open:Ci,focused:ko,showSearch:si}}));var Gh=function(){var zo;Ln==null||Ln(),(zo=Do.current)===null||zo===void 0||zo.focus(),nn([],{type:"clear",values:bn}),Wa("",!1,!1)},Gc=le(Zn,Gh,bn,Er,Fn,In,Ma,Tn),vc=Gc.allowClear,zu=Gc.clearIcon,jl=ye.createElement(Mi,{ref:lo}),dh=me()(Zn,Ht,(xn={},(0,oe.Z)(xn,"".concat(Zn,"-focused"),ko),(0,oe.Z)(xn,"".concat(Zn,"-multiple"),yi),(0,oe.Z)(xn,"".concat(Zn,"-single"),!yi),(0,oe.Z)(xn,"".concat(Zn,"-allow-clear"),Er),(0,oe.Z)(xn,"".concat(Zn,"-show-arrow"),hh),(0,oe.Z)(xn,"".concat(Zn,"-disabled"),In),(0,oe.Z)(xn,"".concat(Zn,"-loading"),Gn),(0,oe.Z)(xn,"".concat(Zn,"-open"),Ci),(0,oe.Z)(xn,"".concat(Zn,"-customize-input"),Mn),(0,oe.Z)(xn,"".concat(Zn,"-show-search"),si),xn)),Zc=ye.createElement(Ce,{ref:ro,disabled:In,prefixCls:Zn,visible:ao,popupElement:jl,animation:On,transitionName:pi,dropdownStyle:Ni,dropdownClassName:Qr,direction:nr,dropdownMatchSelectWidth:Xi,dropdownRender:Ti,dropdownAlign:Rr,placement:Wr,builtinPlacements:bi,getPopupContainer:Di,empty:wn,getTriggerDOMNode:function(){return ci.current},onPopupVisibleChange:dl,onPopupMouseEnter:Ws},ha?ye.cloneElement(ha,{ref:fu}):ye.createElement(Zt,(0,He.Z)({},Vt,{domRef:ci,prefixCls:Zn,inputElement:Mn,ref:Do,id:Nn,showSearch:si,autoClearSearchValue:fr,mode:Tn,activeDescendantId:dr,tagRender:Kn,values:bn,open:Ci,onToggleOpen:kr,activeValue:Sn,searchValue:Ma,onSearch:Wa,onSearchSubmit:Es,onRemove:Bl,tokenWithEnter:za}))),yc;return ha?yc=Zc:yc=ye.createElement("div",(0,He.Z)({className:dh},ei,{ref:qn,onMouseDown:nl,onKeyDown:Xa,onKeyUp:Cl,onFocus:Ri,onBlur:mc}),ko&&!Ci&&ye.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(bn.map(function(oo){var zo=oo.label,As=oo.value;return["number","string"].includes((0,ce.Z)(zo))?zo:As}).join(", "))),Zc,Uc,vc&&zu),ye.createElement(ue.Provider,{value:Hc},yc)}),Ot=pt,Kt=function(Vt,Dt){var cn=ye.useRef({values:new Map,options:new Map}),xn=ye.useMemo(function(){var Zn=cn.current,Ht=Zn.values,En=Zn.options,Kn=Vt.map(function(bn){if(bn.label===void 0){var nn;return(0,Ze.Z)((0,Ze.Z)({},bn),{},{label:(nn=Ht.get(bn.value))===null||nn===void 0?void 0:nn.label})}return bn}),nr=new Map,rn=new Map;return Kn.forEach(function(bn){nr.set(bn.value,bn),rn.set(bn.value,Dt.get(bn.value)||En.get(bn.value))}),cn.current.values=nr,cn.current.options=rn,Kn},[Vt,Dt]),Nn=ye.useCallback(function(Zn){return Dt.get(Zn)||cn.current.options.get(Zn)},[Dt]);return[xn,Nn]};function jt(Vt,Dt){return _e(Vt).join("").toUpperCase().includes(Dt)}var Rt=function(Vt,Dt,cn,xn,Nn){return ye.useMemo(function(){if(!cn||xn===!1)return Vt;var Zn=Dt.options,Ht=Dt.label,En=Dt.value,Kn=[],nr=typeof xn=="function",rn=cn.toUpperCase(),bn=nr?xn:function(wn,gn){return Nn?jt(gn[Nn],rn):gn[Zn]?jt(gn[Ht!=="children"?Ht:"label"],rn):jt(gn[En],rn)},nn=nr?function(wn){return Ke(wn)}:function(wn){return wn};return Vt.forEach(function(wn){if(wn[Zn]){var gn=bn(cn,nn(wn));if(gn)Kn.push(wn);else{var yn=wn[Zn].filter(function(Ln){return bn(cn,nn(Ln))});yn.length&&Kn.push((0,Ze.Z)((0,Ze.Z)({},wn),{},(0,oe.Z)({},Zn,yn)))}return}bn(cn,nn(wn))&&Kn.push(wn)}),Kn},[Vt,xn,Nn,cn,Dt])},Xt=We(17115),sn=We(11592),Ft=["children","value"],Qt=["children"];function en(Vt){var Dt=Vt,cn=Dt.key,xn=Dt.props,Nn=xn.children,Zn=xn.value,Ht=(0,ge.Z)(xn,Ft);return(0,Ze.Z)({key:cn,value:Zn!==void 0?Zn:cn,children:Nn},Ht)}function on(Vt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,sn.Z)(Vt).map(function(cn,xn){if(!ye.isValidElement(cn)||!cn.type)return null;var Nn=cn,Zn=Nn.type.isSelectOptGroup,Ht=Nn.key,En=Nn.props,Kn=En.children,nr=(0,ge.Z)(En,Qt);return Dt||!Zn?en(cn):(0,Ze.Z)((0,Ze.Z)({key:"__RC_SELECT_GRP__".concat(Ht===null?xn:Ht,"__"),label:Ht},nr),{},{options:on(Kn)})}).filter(function(cn){return cn})}function Cn(Vt,Dt,cn,xn,Nn){return ye.useMemo(function(){var Zn=Vt,Ht=!Vt;Ht&&(Zn=on(Dt));var En=new Map,Kn=new Map,nr=function(nn,wn,gn){gn&&typeof gn=="string"&&nn.set(wn[gn],wn)};function rn(bn){for(var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wn=0;wn<bn.length;wn+=1){var gn=bn[wn];!gn[cn.options]||nn?(En.set(gn[cn.value],gn),nr(Kn,gn,cn.label),nr(Kn,gn,xn),nr(Kn,gn,Nn)):rn(gn[cn.options],!0)}}return rn(Zn),{options:Zn,valueOptions:En,labelOptions:Kn}},[Vt,Dt,cn,xn,Nn])}function Bn(Vt){var Dt=ye.useRef();Dt.current=Vt;var cn=ye.useCallback(function(){return Dt.current.apply(Dt,arguments)},[]);return cn}var tr=function(){return null};tr.isSelectOptGroup=!0;var er=tr,cr=function(){return null};cr.isSelectOption=!0;var Ar=cr,Dr=We(80547),Or=We(2738),$r=We(4409),ai=ye.createContext(null),br=ai;function fi(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Cr=["disabled","title","children","style","className"];function at(Vt){return typeof Vt=="string"||typeof Vt=="number"}var wi=function(Dt,cn){var xn=pe(),Nn=xn.prefixCls,Zn=xn.id,Ht=xn.open,En=xn.multiple,Kn=xn.mode,nr=xn.searchValue,rn=xn.toggleOpen,bn=xn.notFoundContent,nn=xn.onPopupScroll,wn=ye.useContext(br),gn=wn.flattenOptions,yn=wn.onActiveValue,Ln=wn.defaultActiveFirstOption,Tn=wn.onSelect,In=wn.menuItemSelectedIcon,Gn=wn.rawValues,mr=wn.fieldNames,mn=wn.virtual,Pr=wn.direction,Ur=wn.listHeight,Br=wn.listItemHeight,Sn="".concat(Nn,"-item"),Yn=(0,Dr.Z)(function(){return gn},[Ht,gn],function(Rr,Wr){return Wr[0]&&Rr[1]!==Wr[1]}),dr=ye.useRef(null),Fr=function(Wr){Wr.preventDefault()},fr=function(Wr){dr.current&&dr.current.scrollTo(typeof Wr=="number"?{index:Wr}:Wr)},Ir=function(Wr){for(var bi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Di=Yn.length,pr=0;pr<Di;pr+=1){var Lt=(Wr+pr*bi+Di)%Di,Li=Yn[Lt],so=Li.group,Pi=Li.data;if(!so&&!Pi.disabled)return Lt}return-1},Zr=ye.useState(function(){return Ir(0)}),zr=(0,Ne.Z)(Zr,2),Er=zr[0],Vr=zr[1],Fn=function(Wr){var bi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Vr(Wr);var Di={source:bi?"keyboard":"mouse"},pr=Yn[Wr];if(!pr){yn(null,-1,Di);return}yn(pr.value,Wr,Di)};(0,ye.useEffect)(function(){Fn(Ln!==!1?Ir(0):-1)},[Yn.length,nr]);var Mi=ye.useCallback(function(Rr){return Gn.has(Rr)&&Kn!=="combobox"},[Kn,(0,mt.Z)(Gn).toString(),Gn.size]);(0,ye.useEffect)(function(){var Rr=setTimeout(function(){if(!En&&Ht&&Gn.size===1){var bi=Array.from(Gn)[0],Di=Yn.findIndex(function(pr){var Lt=pr.data;return Lt.value===bi});Di!==-1&&(Fn(Di),fr(Di))}});if(Ht){var Wr;(Wr=dr.current)===null||Wr===void 0||Wr.scrollTo(void 0)}return function(){return clearTimeout(Rr)}},[Ht,nr,gn.length]);var On=function(Wr){Wr!==void 0&&Tn(Wr,{selected:!Gn.has(Wr)}),En||rn(!1)};if(ye.useImperativeHandle(cn,function(){return{onKeyDown:function(Wr){var bi=Wr.which,Di=Wr.ctrlKey;switch(bi){case z.Z.N:case z.Z.P:case z.Z.UP:case z.Z.DOWN:{var pr=0;if(bi===z.Z.UP?pr=-1:bi===z.Z.DOWN?pr=1:fi()&&Di&&(bi===z.Z.N?pr=1:bi===z.Z.P&&(pr=-1)),pr!==0){var Lt=Ir(Er+pr,pr);fr(Lt),Fn(Lt,!0)}break}case z.Z.ENTER:{var Li=Yn[Er];Li&&!Li.data.disabled?On(Li.value):On(void 0),Ht&&Wr.preventDefault();break}case z.Z.ESC:rn(!1),Ht&&Wr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Wr){fr(Wr)}}}),Yn.length===0)return ye.createElement("div",{role:"listbox",id:"".concat(Zn,"_list"),className:"".concat(Sn,"-empty"),onMouseDown:Fr},bn);var pi=Object.keys(mr).map(function(Rr){return mr[Rr]}),Ni=function(Wr){return Wr.label};function Qr(Rr,Wr){var bi=Rr.group;return{role:bi?"presentation":"option",id:"".concat(Zn,"_list_").concat(Wr)}}var Xi=function(Wr){var bi=Yn[Wr];if(!bi)return null;var Di=bi.data||{},pr=Di.value,Lt=bi.group,Li=(0,Le.Z)(Di,!0),so=Ni(bi);return bi?ye.createElement("div",(0,He.Z)({"aria-label":typeof so=="string"&&!Lt?so:null},Li,{key:Wr},Qr(bi,Wr),{"aria-selected":Mi(pr)}),pr):null},Ti={role:"listbox",id:"".concat(Zn,"_list")};return ye.createElement(ye.Fragment,null,mn&&ye.createElement("div",(0,He.Z)({},Ti,{style:{height:0,width:0,overflow:"hidden"}}),Xi(Er-1),Xi(Er),Xi(Er+1)),ye.createElement($r.Z,{itemKey:"key",ref:dr,data:Yn,height:Ur,itemHeight:Br,fullHeight:!1,onMouseDown:Fr,onScroll:nn,virtual:mn,direction:Pr,innerProps:mn?null:Ti},function(Rr,Wr){var bi,Di=Rr.group,pr=Rr.groupOption,Lt=Rr.data,Li=Rr.label,so=Rr.value,Pi=Lt.key;if(Di){var wo,po=(wo=Lt.title)!==null&&wo!==void 0?wo:at(Li)?Li.toString():void 0;return ye.createElement("div",{className:me()(Sn,"".concat(Sn,"-group")),title:po},Li!==void 0?Li:Pi)}var Eo=Lt.disabled,yi=Lt.title,si=Lt.children,ei=Lt.style,Ji=Lt.className,no=(0,ge.Z)(Lt,Cr),Yr=(0,Or.Z)(no,pi),Kr=Mi(so),qn="".concat(Sn,"-option"),ci=me()(Sn,qn,Ji,(bi={},(0,oe.Z)(bi,"".concat(qn,"-grouped"),pr),(0,oe.Z)(bi,"".concat(qn,"-active"),Er===Wr&&!Eo),(0,oe.Z)(bi,"".concat(qn,"-disabled"),Eo),(0,oe.Z)(bi,"".concat(qn,"-selected"),Kr),bi)),ro=Ni(Rr),Do=!In||typeof In=="function"||Kr,lo=typeof ro=="number"?ro:ro||so,Qi=at(lo)?lo.toString():void 0;return yi!==void 0&&(Qi=yi),ye.createElement("div",(0,He.Z)({},(0,Le.Z)(Yr),mn?{}:Qr(Rr,Wr),{"aria-selected":Kr,className:ci,title:Qi,onMouseMove:function(){Er===Wr||Eo||Fn(Wr)},onClick:function(){Eo||On(so)},style:ei}),ye.createElement("div",{className:"".concat(qn,"-content")},lo),ye.isValidElement(In)||Kr,Do&&ye.createElement(re,{className:"".concat(Sn,"-option-state"),customizeIcon:In,customizeIconProps:{isSelected:Kr}},Kr?"\u2713":null))}))},ui=ye.forwardRef(wi);ui.displayName="OptionList";var Dn=ui;function ur(Vt){var Dt=Vt.mode,cn=Vt.options,xn=Vt.children,Nn=Vt.backfill,Zn=Vt.allowClear,Ht=Vt.placeholder,En=Vt.getInputElement,Kn=Vt.showSearch,nr=Vt.onSearch,rn=Vt.defaultOpen,bn=Vt.autoFocus,nn=Vt.labelInValue,wn=Vt.value,gn=Vt.inputValue,yn=Vt.optionLabelProp,Ln=isMultiple(Dt),Tn=Kn!==void 0?Kn:Ln||Dt==="combobox",In=cn||convertChildrenToData(xn);if(warning(Dt!=="tags"||In.every(function(Pr){return!Pr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Dt==="tags"||Dt==="combobox"){var Gn=In.some(function(Pr){return Pr.options?Pr.options.some(function(Ur){return typeof("value"in Ur?Ur.value:Ur.key)=="number"}):typeof("value"in Pr?Pr.value:Pr.key)=="number"});warning(!Gn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Dt!=="combobox"||!yn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Dt==="combobox"||!Nn,"`backfill` only works with `combobox` mode."),warning(Dt==="combobox"||!En,"`getInputElement` only work with `combobox` mode."),noteOnce(Dt!=="combobox"||!En||!Zn||!Ht,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),nr&&!Tn&&Dt!=="combobox"&&Dt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!rn||bn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),wn!=null){var mr=toArray(wn);warning(!nn||mr.every(function(Pr){return _typeof(Pr)==="object"&&("key"in Pr||"value"in Pr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ln||Array.isArray(wn),"`value` should be array when `mode` is `multiple` or `tags`")}if(xn){var mn=null;toNodeArray(xn).some(function(Pr){if(!React.isValidElement(Pr)||!Pr.type)return!1;var Ur=Pr,Br=Ur.type;if(Br.isSelectOption)return!1;if(Br.isSelectOptGroup){var Sn=toNodeArray(Pr.props.children).every(function(Yn){return!React.isValidElement(Yn)||!Pr.type||Yn.type.isSelectOption?!0:(mn=Yn.type,!1)});return!Sn}return mn=Br,!0}),mn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(mn.displayName||mn.name||mn,"`.")),warning(gn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function or(Vt,Dt){if(Vt){var cn=function xn(Nn){for(var Zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=0;Ht<Nn.length;Ht++){var En=Nn[Ht];if(En[Dt==null?void 0:Dt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Zn&&Array.isArray(En[Dt==null?void 0:Dt.options])&&xn(En[Dt==null?void 0:Dt.options],!0))break}};cn(Vt)}}var vr=null,Hn=["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"],Jn=["inputValue"];function _t(Vt){return!Vt||(0,ce.Z)(Vt)!=="object"}var Gt=ye.forwardRef(function(Vt,Dt){var cn=Vt.id,xn=Vt.mode,Nn=Vt.prefixCls,Zn=Nn===void 0?"rc-select":Nn,Ht=Vt.backfill,En=Vt.fieldNames,Kn=Vt.inputValue,nr=Vt.searchValue,rn=Vt.onSearch,bn=Vt.autoClearSearchValue,nn=bn===void 0?!0:bn,wn=Vt.onSelect,gn=Vt.onDeselect,yn=Vt.dropdownMatchSelectWidth,Ln=yn===void 0?!0:yn,Tn=Vt.filterOption,In=Vt.filterSort,Gn=Vt.optionFilterProp,mr=Vt.optionLabelProp,mn=Vt.options,Pr=Vt.children,Ur=Vt.defaultActiveFirstOption,Br=Vt.menuItemSelectedIcon,Sn=Vt.virtual,Yn=Vt.direction,dr=Vt.listHeight,Fr=dr===void 0?200:dr,fr=Vt.listItemHeight,Ir=fr===void 0?20:fr,Zr=Vt.value,zr=Vt.defaultValue,Er=Vt.labelInValue,Vr=Vt.onChange,Fn=(0,ge.Z)(Vt,Hn),Mi=(0,Xt.ZP)(cn),On=At(xn),pi=!!(!mn&&Pr),Ni=ye.useMemo(function(){return Tn===void 0&&xn==="combobox"?!1:Tn},[Tn,xn]),Qr=ye.useMemo(function(){return Me(En,pi)},[JSON.stringify(En),pi]),Xi=(0,Pe.Z)("",{value:nr!==void 0?nr:Kn,postState:function(co){return co||""}}),Ti=(0,Ne.Z)(Xi,2),Rr=Ti[0],Wr=Ti[1],bi=Cn(mn,Pr,Qr,Gn,mr),Di=bi.valueOptions,pr=bi.labelOptions,Lt=bi.options,Li=ye.useCallback(function(Ci){var co=_e(Ci);return co.map(function(ao){var kr,za,Wa,Es,Nl;if(_t(ao))kr=ao;else{var $l;Wa=ao.key,za=ao.label,kr=($l=ao.value)!==null&&$l!==void 0?$l:Wa}var wr=Di.get(kr);if(wr){var ua;if(za===void 0&&(za=wr==null?void 0:wr[mr||Qr.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}})},[Qr,mr,Di]),so=(0,Pe.Z)(zr,{value:Zr}),Pi=(0,Ne.Z)(so,2),wo=Pi[0],po=Pi[1],Eo=ye.useMemo(function(){var Ci,co=Li(wo);return xn==="combobox"&<((Ci=co[0])===null||Ci===void 0?void 0:Ci.value)?[]:co},[wo,Li,xn]),yi=Kt(Eo,Di),si=(0,Ne.Z)(yi,2),ei=si[0],Ji=si[1],no=ye.useMemo(function(){if(!xn&&ei.length===1){var Ci=ei[0];if(Ci.value===null&&(Ci.label===null||Ci.label===void 0))return[]}return ei.map(function(co){var ao;return(0,Ze.Z)((0,Ze.Z)({},co),{},{label:(ao=co.label)!==null&&ao!==void 0?ao:co.value})})},[xn,ei]),Yr=ye.useMemo(function(){return new Set(ei.map(function(Ci){return Ci.value}))},[ei]);ye.useEffect(function(){if(xn==="combobox"){var Ci,co=(Ci=ei[0])===null||Ci===void 0?void 0:Ci.value;Wr(et(co)?String(co):"")}},[ei]);var Kr=Bn(function(Ci,co){var ao,kr=co!=null?co:Ci;return ao={},(0,oe.Z)(ao,Qr.value,Ci),(0,oe.Z)(ao,Qr.label,kr),ao}),qn=ye.useMemo(function(){if(xn!=="tags")return Lt;var Ci=(0,mt.Z)(Lt),co=function(kr){return Di.has(kr)};return(0,mt.Z)(ei).sort(function(ao,kr){return ao.value<kr.value?-1:1}).forEach(function(ao){var kr=ao.value;co(kr)||Ci.push(Kr(kr,ao.label))}),Ci},[Kr,Lt,Di,ei,xn]),ci=Rt(qn,Qr,Rr,Ni,Gn),ro=ye.useMemo(function(){return xn!=="tags"||!Rr||ci.some(function(Ci){return Ci[Gn||"value"]===Rr})||ci.some(function(Ci){return Ci[Qr.value]===Rr})?ci:[Kr(Rr)].concat((0,mt.Z)(ci))},[Kr,Gn,xn,ci,Rr,Qr]),Do=ye.useMemo(function(){return In?(0,mt.Z)(ro).sort(function(Ci,co){return In(Ci,co)}):ro},[ro,In]),lo=ye.useMemo(function(){return Ge(Do,{fieldNames:Qr,childrenAsData:pi})},[Do,Qr,pi]),Qi=function(co){var ao=Li(co);if(po(ao),Vr&&(ao.length!==ei.length||ao.some(function(Wa,Es){var Nl;return((Nl=ei[Es])===null||Nl===void 0?void 0:Nl.value)!==(Wa==null?void 0:Wa.value)}))){var kr=Er?ao:ao.map(function(Wa){return Wa.value}),za=ao.map(function(Wa){return Ke(Ji(Wa.value))});Vr(On?kr:kr[0],On?za:za[0])}},Oo=ye.useState(null),ko=(0,Ne.Z)(Oo,2),oa=ko[0],la=ko[1],Ma=ye.useState(0),Mn=(0,Ne.Z)(Ma,2),ha=Mn[0],fu=Mn[1],xs=Ur!==void 0?Ur:xn!=="combobox",bo=ye.useCallback(function(Ci,co){var ao=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},kr=ao.source,za=kr===void 0?"keyboard":kr;fu(co),Ht&&xn==="combobox"&&Ci!==null&&za==="keyboard"&&la(String(Ci))},[Ht,xn]),io=function(co,ao,kr){var za=function(){var Il,Ri=Ji(co);return[Er?{label:Ri==null?void 0:Ri[Qr.label],value:co,key:(Il=Ri==null?void 0:Ri.key)!==null&&Il!==void 0?Il:co}:co,Ke(Ri)]};if(ao&&wn){var Wa=za(),Es=(0,Ne.Z)(Wa,2),Nl=Es[0],$l=Es[1];wn(Nl,$l)}else if(!ao&&gn&&kr!=="clear"){var wr=za(),ua=(0,Ne.Z)(wr,2),Xa=ua[0],Cl=ua[1];gn(Xa,Cl)}},da=Bn(function(Ci,co){var ao,kr=On?co.selected:!0;kr?ao=On?[].concat((0,mt.Z)(ei),[Ci]):[Ci]:ao=ei.filter(function(za){return za.value!==Ci}),Qi(ao),io(Ci,kr),xn==="combobox"?la(""):(!At||nn)&&(Wr(""),la(""))}),Ao=function(co,ao){Qi(co);var kr=ao.type,za=ao.values;(kr==="remove"||kr==="clear")&&za.forEach(function(Wa){io(Wa.value,!1,kr)})},$i=function(co,ao){if(Wr(co),la(null),ao.source==="submit"){var kr=(co||"").trim();if(kr){var za=Array.from(new Set([].concat((0,mt.Z)(Yr),[kr])));Qi(za),io(kr,!0),Wr("")}return}ao.source!=="blur"&&(xn==="combobox"&&Qi(co),rn==null||rn(co))},Io=function(co){var ao=co;xn!=="tags"&&(ao=co.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,mt.Z)(Yr),(0,mt.Z)(ao))));Qi(kr),kr.forEach(function(za){io(za,!0)})},ws=ye.useMemo(function(){var Ci=Sn!==!1&&Ln!==!1;return(0,Ze.Z)((0,Ze.Z)({},bi),{},{flattenOptions:lo,onActiveValue:bo,defaultActiveFirstOption:xs,onSelect:da,menuItemSelectedIcon:Br,rawValues:Yr,fieldNames:Qr,virtual:Ci,direction:Yn,listHeight:Fr,listItemHeight:Ir,childrenAsData:pi})},[bi,lo,bo,xs,da,Br,Yr,Qr,Sn,Ln,Fr,Ir,pi]);return ye.createElement(br.Provider,{value:ws},ye.createElement(Ot,(0,He.Z)({},Fn,{id:Mi,prefixCls:Zn,ref:Dt,omitDomProps:Jn,mode:xn,displayValues:no,onDisplayValuesChange:Ao,direction:Yn,searchValue:Rr,onSearch:$i,autoClearSearchValue:nn,onSearchSplit:Io,dropdownMatchSelectWidth:Ln,OptionList:Dn,emptyOptions:!lo.length,activeValue:oa,activeDescendantId:"".concat(Mi,"_list_").concat(ha)})))}),Pt=Gt;Pt.Option=Ar,Pt.OptGroup=er;var ln=Pt,pn=ln},9296:function(kn,fn,We){"use strict";We.r(fn),We.d(fn,{ResizableTextArea:function(){return je},default:function(){return lt}});var He=We(92413),mt=We(33708),oe=We(400),Ze=We(39559),Ne=We(33606),ge=We(37061),ce=We(26407),Pe=We(92310),Ae=We.n(Pe),ye=We(93681),De=We(5643),me=We(18929),we=We(59301),fe=We(29301),z=We(34280),ee=We(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(ut){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=ut.getAttribute("id")||ut.getAttribute("data-reactid")||ut.getAttribute("name");if(yt&&le[qe])return le[qe];var ot=window.getComputedStyle(ut),dt=ot.getPropertyValue("box-sizing")||ot.getPropertyValue("-moz-box-sizing")||ot.getPropertyValue("-webkit-box-sizing"),St=parseFloat(ot.getPropertyValue("padding-bottom"))+parseFloat(ot.getPropertyValue("padding-top")),xt=parseFloat(ot.getPropertyValue("border-bottom-width"))+parseFloat(ot.getPropertyValue("border-top-width")),ft=re.map(function(vt){return"".concat(vt,":").concat(ot.getPropertyValue(vt))}).join(";"),gt={sizingStyle:ft,paddingSize:St,borderSize:xt,boxSizing:dt};return yt&&qe&&(le[qe]=gt),gt}function Ee(ut){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ot=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)),ut.getAttribute("wrap")?ue.setAttribute("wrap",ut.getAttribute("wrap")):ue.removeAttribute("wrap");var dt=pe(ut,yt),St=dt.paddingSize,xt=dt.borderSize,ft=dt.boxSizing,gt=dt.sizingStyle;ue.setAttribute("style","".concat(gt,";").concat(ae)),ue.value=ut.value||ut.placeholder||"";var vt=void 0,Tt=void 0,Et,Zt=ue.scrollHeight;if(ft==="border-box"?Zt+=xt:ft==="content-box"&&(Zt-=St),qe!==null||ot!==null){ue.value=" ";var wt=ue.scrollHeight-St;qe!==null&&(vt=wt*qe,ft==="border-box"&&(vt=vt+St+xt),Zt=Math.max(vt,Zt)),ot!==null&&(Tt=wt*ot,ft==="border-box"&&(Tt=Tt+St+xt),Et=Zt>Tt?"":"hidden",Zt=Math.min(Tt,Zt))}var bt={height:Zt,overflowY:Et,resize:"none"};return vt&&(bt.minHeight=vt),Tt&&(bt.maxHeight=Tt),bt}var be=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ie=0,Le=1,Fe=2,Oe=we.forwardRef(function(ut,yt){var qe=ut,ot=qe.prefixCls,dt=qe.onPressEnter,St=qe.defaultValue,xt=qe.value,ft=qe.autoSize,gt=qe.onResize,vt=qe.className,Tt=qe.style,Et=qe.disabled,Zt=qe.onChange,wt=qe.onInternalAutoSize,bt=(0,ge.Z)(qe,be),it=(0,me.Z)(St,{value:xt,postState:function(er){return er!=null?er:""}}),nt=(0,Ne.Z)(it,2),xe=nt[0],Ce=nt[1],Ye=function(er){Ce(er.target.value),Zt==null||Zt(er)},Je=we.useRef();we.useImperativeHandle(yt,function(){return{textArea:Je.current}});var Me=we.useMemo(function(){return ft&&(0,Ze.Z)(ft)==="object"?[ft.minRows,ft.maxRows]:[]},[ft]),Ge=(0,Ne.Z)(Me,2),Ke=Ge[0],Ve=Ge[1],Qe=!!ft,ht=function(){try{if(document.activeElement===Je.current){var er=Je.current,cr=er.selectionStart,Ar=er.selectionEnd,Dr=er.scrollTop;Je.current.setSelectionRange(cr,Ar),Je.current.scrollTop=Dr}}catch(Or){}},At=we.useState(Fe),pt=(0,Ne.Z)(At,2),Ot=pt[0],Kt=pt[1],jt=we.useState(),Rt=(0,Ne.Z)(jt,2),Xt=Rt[0],sn=Rt[1],Ft=function(){Kt(Ie)};(0,z.Z)(function(){Qe&&Ft()},[xt,Ke,Ve,Qe]),(0,z.Z)(function(){if(Ot===Ie)Kt(Le);else if(Ot===Le){var tr=Ee(Je.current,!1,Ke,Ve);Kt(Fe),sn(tr)}else ht()},[Ot]);var Qt=we.useRef(),en=function(){ee.Z.cancel(Qt.current)},on=function(er){Ot===Fe&&(gt==null||gt(er),ft&&(en(),Qt.current=(0,ee.Z)(function(){Ft()})))};we.useEffect(function(){return en},[]);var Cn=Qe?Xt:null,Bn=(0,mt.Z)((0,mt.Z)({},Tt),Cn);return(Ot===Ie||Ot===Le)&&(Bn.overflowY="hidden",Bn.overflowX="hidden"),we.createElement(fe.Z,{onResize:on,disabled:!(ft||gt)},we.createElement("textarea",(0,He.Z)({},bt,{ref:Je,style:Bn,className:Ae()(ot,vt,(0,oe.Z)({},"".concat(ot,"-disabled"),Et)),disabled:Et,value:xe,onChange:Ye})))}),je=Oe,ze=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function _e(ut,yt){return(0,ce.Z)(ut||"").slice(0,yt).join("")}function Ue(ut,yt,qe,ot){var dt=qe;return ut?dt=_e(qe,ot):(0,ce.Z)(yt||"").length<qe.length&&(0,ce.Z)(qe||"").length>ot&&(dt=yt),dt}var $e=we.forwardRef(function(ut,yt){var qe,ot=ut.defaultValue,dt=ut.value,St=ut.onFocus,xt=ut.onBlur,ft=ut.onChange,gt=ut.allowClear,vt=ut.maxLength,Tt=ut.onCompositionStart,Et=ut.onCompositionEnd,Zt=ut.suffix,wt=ut.prefixCls,bt=wt===void 0?"rc-textarea":wt,it=ut.classes,nt=ut.showCount,xe=ut.className,Ce=ut.style,Ye=ut.disabled,Je=ut.hidden,Me=ut.classNames,Ge=ut.styles,Ke=ut.onResize,Ve=(0,ge.Z)(ut,ze),Qe=(0,me.Z)(ot,{value:dt,defaultValue:ot}),ht=(0,Ne.Z)(Qe,2),At=ht[0],pt=ht[1],Ot=(0,we.useRef)(null),Kt=we.useState(!1),jt=(0,Ne.Z)(Kt,2),Rt=jt[0],Xt=jt[1],sn=we.useState(!1),Ft=(0,Ne.Z)(sn,2),Qt=Ft[0],en=Ft[1],on=we.useRef(),Cn=we.useRef(0),Bn=we.useState(null),tr=(0,Ne.Z)(Bn,2),er=tr[0],cr=tr[1],Ar=function(){var _t;(_t=Ot.current)===null||_t===void 0||_t.textArea.focus()};(0,we.useImperativeHandle)(yt,function(){return{resizableTextArea:Ot.current,focus:Ar,blur:function(){var _t;(_t=Ot.current)===null||_t===void 0||_t.textArea.blur()}}}),(0,we.useEffect)(function(){Xt(function(Jn){return!Ye&&Jn})},[Ye]);var Dr=Number(vt)>0,Or=function(_t){en(!0),on.current=At,Cn.current=_t.currentTarget.selectionStart,Tt==null||Tt(_t)},$r=function(_t){en(!1);var Gt=_t.currentTarget.value;if(Dr){var Pt,ln=Cn.current>=vt+1||Cn.current===((Pt=on.current)===null||Pt===void 0?void 0:Pt.length);Gt=Ue(ln,on.current,Gt,vt)}Gt!==At&&(pt(Gt),(0,De.rJ)(_t.currentTarget,_t,ft,Gt)),Et==null||Et(_t)},ai=function(_t){var Gt=_t.target.value;if(!Qt&&Dr){var Pt=_t.target.selectionStart>=vt+1||_t.target.selectionStart===Gt.length||!_t.target.selectionStart;Gt=Ue(Pt,At,Gt,vt)}pt(Gt),(0,De.rJ)(_t.currentTarget,_t,ft,Gt)},br=function(_t){var Gt=Ve.onPressEnter,Pt=Ve.onKeyDown;_t.key==="Enter"&&Gt&&Gt(_t),Pt==null||Pt(_t)},fi=function(_t){Xt(!0),St==null||St(_t)},Cr=function(_t){Xt(!1),xt==null||xt(_t)},at=function(_t){var Gt;pt(""),Ar(),(0,De.rJ)((Gt=Ot.current)===null||Gt===void 0?void 0:Gt.textArea,_t,ft)},wi=(0,De.D7)(At);!Qt&&Dr&&dt==null&&(wi=_e(wi,vt));var ui=Zt,Dn;if(nt){var ur=(0,ce.Z)(wi).length;(0,Ze.Z)(nt)==="object"?Dn=nt.formatter({value:wi,count:ur,maxLength:vt}):Dn="".concat(ur).concat(Dr?" / ".concat(vt):""),ui=we.createElement(we.Fragment,null,ui,we.createElement("span",{className:Ae()("".concat(bt,"-data-count"),Me==null?void 0:Me.count),style:Ge==null?void 0:Ge.count},Dn))}var or=function(_t){var Gt;Ke==null||Ke(_t),(Gt=Ot.current)!==null&&Gt!==void 0&&Gt.textArea.style.height&&cr(!0)},vr=!Ve.autoSize&&!nt&&!gt,Hn=we.createElement(ye.BaseInput,{value:wi,allowClear:gt,handleReset:at,suffix:ui,prefixCls:bt,classes:{affixWrapper:Ae()(it==null?void 0:it.affixWrapper,(qe={},(0,oe.Z)(qe,"".concat(bt,"-show-count"),nt),(0,oe.Z)(qe,"".concat(bt,"-textarea-allow-clear"),gt),qe))},disabled:Ye,focused:Rt,className:xe,style:(0,mt.Z)((0,mt.Z)({},Ce),er&&!vr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Dn=="string"?Dn:void 0}},hidden:Je,inputElement:we.createElement(je,(0,He.Z)({},Ve,{onKeyDown:br,onChange:ai,onFocus:fi,onBlur:Cr,onCompositionStart:Or,onCompositionEnd:$r,className:Me==null?void 0:Me.textarea,style:(0,mt.Z)((0,mt.Z)({},Ge==null?void 0:Ge.textarea),{},{resize:Ce==null?void 0:Ce.resize}),disabled:Ye,prefixCls:bt,onResize:or,ref:Ot}))});return Hn}),et=$e,lt=et},39417:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Le}});var He=We(92413),mt=We(400),oe=We(37061),Ze=We(33708),Ne=We(6909),ge=We(4771),ce=We(25314),Pe=We(9427),Ae=We(25440),ye=We(92310),De=We.n(ye),me=We(26112),we=We(59301),fe=We(39378),z=function(Oe){for(var je=Oe.prefixCls,ze=Oe.level,_e=Oe.isStart,Ue=Oe.isEnd,$e="".concat(je,"-indent-unit"),et=[],lt=0;lt<ze;lt+=1){var ut;et.push(we.createElement("span",{key:lt,className:De()($e,(ut={},(0,mt.Z)(ut,"".concat($e,"-start"),_e[lt]),(0,mt.Z)(ut,"".concat($e,"-end"),Ue[lt]),ut))}))}return we.createElement("span",{"aria-hidden":"true",className:"".concat(je,"-indent")},et)},ee=we.memo(z),ae=We(67841),re=We(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",Ee="---",be=function(Fe){(0,Pe.Z)(je,Fe);var Oe=(0,Ae.Z)(je);function je(){var ze;(0,Ne.Z)(this,je);for(var _e=arguments.length,Ue=new Array(_e),$e=0;$e<_e;$e++)Ue[$e]=arguments[$e];return ze=Oe.call.apply(Oe,[this].concat(Ue)),ze.state={dragNodeHighlight:!1},ze.selectHandle=void 0,ze.cacheIndent=void 0,ze.onSelectorClick=function(et){var lt=ze.props.context.onNodeClick;lt(et,(0,re.F)(ze.props)),ze.isSelectable()?ze.onSelect(et):ze.onCheck(et)},ze.onSelectorDoubleClick=function(et){var lt=ze.props.context.onNodeDoubleClick;lt(et,(0,re.F)(ze.props))},ze.onSelect=function(et){if(!ze.isDisabled()){var lt=ze.props.context.onNodeSelect;lt(et,(0,re.F)(ze.props))}},ze.onCheck=function(et){if(!ze.isDisabled()){var lt=ze.props,ut=lt.disableCheckbox,yt=lt.checked,qe=ze.props.context.onNodeCheck;if(!(!ze.isCheckable()||ut)){var ot=!yt;qe(et,(0,re.F)(ze.props),ot)}}},ze.onMouseEnter=function(et){var lt=ze.props.context.onNodeMouseEnter;lt(et,(0,re.F)(ze.props))},ze.onMouseLeave=function(et){var lt=ze.props.context.onNodeMouseLeave;lt(et,(0,re.F)(ze.props))},ze.onContextMenu=function(et){var lt=ze.props.context.onNodeContextMenu;lt(et,(0,re.F)(ze.props))},ze.onDragStart=function(et){var lt=ze.props.context.onNodeDragStart;et.stopPropagation(),ze.setState({dragNodeHighlight:!0}),lt(et,(0,ce.Z)(ze));try{et.dataTransfer.setData("text/plain","")}catch(ut){}},ze.onDragEnter=function(et){var lt=ze.props.context.onNodeDragEnter;et.preventDefault(),et.stopPropagation(),lt(et,(0,ce.Z)(ze))},ze.onDragOver=function(et){var lt=ze.props.context.onNodeDragOver;et.preventDefault(),et.stopPropagation(),lt(et,(0,ce.Z)(ze))},ze.onDragLeave=function(et){var lt=ze.props.context.onNodeDragLeave;et.stopPropagation(),lt(et,(0,ce.Z)(ze))},ze.onDragEnd=function(et){var lt=ze.props.context.onNodeDragEnd;et.stopPropagation(),ze.setState({dragNodeHighlight:!1}),lt(et,(0,ce.Z)(ze))},ze.onDrop=function(et){var lt=ze.props.context.onNodeDrop;et.preventDefault(),et.stopPropagation(),ze.setState({dragNodeHighlight:!1}),lt(et,(0,ce.Z)(ze))},ze.onExpand=function(et){var lt=ze.props,ut=lt.loading,yt=lt.context.onNodeExpand;ut||yt(et,(0,re.F)(ze.props))},ze.setSelectHandle=function(et){ze.selectHandle=et},ze.getNodeState=function(){var et=ze.props.expanded;return ze.isLeaf()?null:et?ue:pe},ze.hasChildren=function(){var et=ze.props.eventKey,lt=ze.props.context.keyEntities,ut=(0,ae.Z)(lt,et)||{},yt=ut.children;return!!(yt||[]).length},ze.isLeaf=function(){var et=ze.props,lt=et.isLeaf,ut=et.loaded,yt=ze.props.context.loadData,qe=ze.hasChildren();return lt===!1?!1:lt||!yt&&!qe||yt&&ut&&!qe},ze.isDisabled=function(){var et=ze.props.disabled,lt=ze.props.context.disabled;return!!(lt||et)},ze.isCheckable=function(){var et=ze.props.checkable,lt=ze.props.context.checkable;return!lt||et===!1?!1:lt},ze.syncLoadData=function(et){var lt=et.expanded,ut=et.loading,yt=et.loaded,qe=ze.props.context,ot=qe.loadData,dt=qe.onNodeLoad;ut||ot&<&&!ze.isLeaf()&&!ze.hasChildren()&&!yt&&dt((0,re.F)(ze.props))},ze.isDraggable=function(){var et=ze.props,lt=et.data,ut=et.context.draggable;return!!(ut&&(!ut.nodeDraggable||ut.nodeDraggable(lt)))},ze.renderDragHandler=function(){var et=ze.props.context,lt=et.draggable,ut=et.prefixCls;return lt!=null&<.icon?we.createElement("span",{className:"".concat(ut,"-draggable-icon")},lt.icon):null},ze.renderSwitcherIconDom=function(et){var lt=ze.props.switcherIcon,ut=ze.props.context.switcherIcon,yt=lt||ut;return typeof yt=="function"?yt((0,Ze.Z)((0,Ze.Z)({},ze.props),{},{isLeaf:et})):yt},ze.renderSwitcher=function(){var et=ze.props.expanded,lt=ze.props.context.prefixCls;if(ze.isLeaf()){var ut=ze.renderSwitcherIconDom(!0);return ut!==!1?we.createElement("span",{className:De()("".concat(lt,"-switcher"),"".concat(lt,"-switcher-noop"))},ut):null}var yt=De()("".concat(lt,"-switcher"),"".concat(lt,"-switcher_").concat(et?ue:pe)),qe=ze.renderSwitcherIconDom(!1);return qe!==!1?we.createElement("span",{onClick:ze.onExpand,className:yt},qe):null},ze.renderCheckbox=function(){var et=ze.props,lt=et.checked,ut=et.halfChecked,yt=et.disableCheckbox,qe=ze.props.context.prefixCls,ot=ze.isDisabled(),dt=ze.isCheckable();if(!dt)return null;var St=typeof dt!="boolean"?dt:null;return we.createElement("span",{className:De()("".concat(qe,"-checkbox"),lt&&"".concat(qe,"-checkbox-checked"),!lt&&ut&&"".concat(qe,"-checkbox-indeterminate"),(ot||yt)&&"".concat(qe,"-checkbox-disabled")),onClick:ze.onCheck},St)},ze.renderIcon=function(){var et=ze.props.loading,lt=ze.props.context.prefixCls;return we.createElement("span",{className:De()("".concat(lt,"-iconEle"),"".concat(lt,"-icon__").concat(ze.getNodeState()||"docu"),et&&"".concat(lt,"-icon_loading"))})},ze.renderSelector=function(){var et=ze.state.dragNodeHighlight,lt=ze.props,ut=lt.title,yt=ut===void 0?Ee:ut,qe=lt.selected,ot=lt.icon,dt=lt.loading,St=lt.data,xt=ze.props.context,ft=xt.prefixCls,gt=xt.showIcon,vt=xt.icon,Tt=xt.loadData,Et=xt.titleRender,Zt=ze.isDisabled(),wt="".concat(ft,"-node-content-wrapper"),bt;if(gt){var it=ot||vt;bt=it?we.createElement("span",{className:De()("".concat(ft,"-iconEle"),"".concat(ft,"-icon__customize"))},typeof it=="function"?it(ze.props):it):ze.renderIcon()}else Tt&&dt&&(bt=ze.renderIcon());var nt;typeof yt=="function"?nt=yt(St):Et?nt=Et(St):nt=yt;var xe=we.createElement("span",{className:"".concat(ft,"-title")},nt);return we.createElement("span",{ref:ze.setSelectHandle,title:typeof yt=="string"?yt:"",className:De()("".concat(wt),"".concat(wt,"-").concat(ze.getNodeState()||"normal"),!Zt&&(qe||et)&&"".concat(ft,"-node-selected")),onMouseEnter:ze.onMouseEnter,onMouseLeave:ze.onMouseLeave,onContextMenu:ze.onContextMenu,onClick:ze.onSelectorClick,onDoubleClick:ze.onSelectorDoubleClick},bt,xe,ze.renderDropIndicator())},ze.renderDropIndicator=function(){var et=ze.props,lt=et.disabled,ut=et.eventKey,yt=ze.props.context,qe=yt.draggable,ot=yt.dropLevelOffset,dt=yt.dropPosition,St=yt.prefixCls,xt=yt.indent,ft=yt.dropIndicatorRender,gt=yt.dragOverNodeKey,vt=yt.direction,Tt=!!qe,Et=!lt&&Tt&>===ut,Zt=xt!=null?xt:ze.cacheIndent;return ze.cacheIndent=xt,Et?ft({dropPosition:dt,dropLevelOffset:ot,indent:Zt,prefixCls:St,direction:vt}):null},ze}return(0,ge.Z)(je,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var _e=this.props.selectable,Ue=this.props.context.selectable;return typeof _e=="boolean"?_e:Ue}},{key:"render",value:function(){var _e,Ue=this.props,$e=Ue.eventKey,et=Ue.className,lt=Ue.style,ut=Ue.dragOver,yt=Ue.dragOverGapTop,qe=Ue.dragOverGapBottom,ot=Ue.isLeaf,dt=Ue.isStart,St=Ue.isEnd,xt=Ue.expanded,ft=Ue.selected,gt=Ue.checked,vt=Ue.halfChecked,Tt=Ue.loading,Et=Ue.domRef,Zt=Ue.active,wt=Ue.data,bt=Ue.onMouseMove,it=Ue.selectable,nt=(0,oe.Z)(Ue,le),xe=this.props.context,Ce=xe.prefixCls,Ye=xe.filterTreeNode,Je=xe.keyEntities,Me=xe.dropContainerKey,Ge=xe.dropTargetKey,Ke=xe.draggingNodeKey,Ve=this.isDisabled(),Qe=(0,me.Z)(nt,{aria:!0,data:!0}),ht=(0,ae.Z)(Je,$e)||{},At=ht.level,pt=St[St.length-1],Ot=this.isDraggable(),Kt=!Ve&&Ot,jt=Ke===$e,Rt=it!==void 0?{"aria-selected":!!it}:void 0;return we.createElement("div",(0,He.Z)({ref:Et,className:De()(et,"".concat(Ce,"-treenode"),(_e={},(0,mt.Z)(_e,"".concat(Ce,"-treenode-disabled"),Ve),(0,mt.Z)(_e,"".concat(Ce,"-treenode-switcher-").concat(xt?"open":"close"),!ot),(0,mt.Z)(_e,"".concat(Ce,"-treenode-checkbox-checked"),gt),(0,mt.Z)(_e,"".concat(Ce,"-treenode-checkbox-indeterminate"),vt),(0,mt.Z)(_e,"".concat(Ce,"-treenode-selected"),ft),(0,mt.Z)(_e,"".concat(Ce,"-treenode-loading"),Tt),(0,mt.Z)(_e,"".concat(Ce,"-treenode-active"),Zt),(0,mt.Z)(_e,"".concat(Ce,"-treenode-leaf-last"),pt),(0,mt.Z)(_e,"".concat(Ce,"-treenode-draggable"),Ot),(0,mt.Z)(_e,"dragging",jt),(0,mt.Z)(_e,"drop-target",Ge===$e),(0,mt.Z)(_e,"drop-container",Me===$e),(0,mt.Z)(_e,"drag-over",!Ve&&ut),(0,mt.Z)(_e,"drag-over-gap-top",!Ve&&yt),(0,mt.Z)(_e,"drag-over-gap-bottom",!Ve&&qe),(0,mt.Z)(_e,"filter-node",Ye&&Ye((0,re.F)(this.props))),_e)),style:lt,draggable:Kt,"aria-grabbed":jt,onDragStart:Kt?this.onDragStart:void 0,onDragEnter:Ot?this.onDragEnter:void 0,onDragOver:Ot?this.onDragOver:void 0,onDragLeave:Ot?this.onDragLeave:void 0,onDrop:Ot?this.onDrop:void 0,onDragEnd:Ot?this.onDragEnd:void 0,onMouseMove:bt},Rt,Qe),we.createElement(ee,{prefixCls:Ce,level:At,isStart:dt,isEnd:St}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),je}(we.Component),Ie=function(Oe){return we.createElement(fe.k.Consumer,null,function(je){return we.createElement(be,(0,He.Z)({},Oe,{context:je}))})};Ie.displayName="TreeNode",Ie.isTreeNode=1;var Le=Ie},39378:function(kn,fn,We){"use strict";We.d(fn,{k:function(){return mt}});var He=We(59301),mt=He.createContext(null)},23130:function(kn,fn,We){"use strict";We.d(fn,{O:function(){return Le.Z},Z:function(){return xe}});var He=We(92413),mt=We(400),oe=We(39559),Ze=We(33708),Ne=We(26407),ge=We(6909),ce=We(4771),Pe=We(25314),Ae=We(9427),ye=We(25440),De=We(92310),me=We.n(De),we=We(10228),fe=We(26112),z=We(48736),ee=We(59301),ae=We(39378);function re(Ce){var Ye=Ce.dropPosition,Je=Ce.dropLevelOffset,Me=Ce.indent,Ge={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ye){case-1:Ge.top=0,Ge.left=-Je*Me;break;case 1:Ge.bottom=0,Ge.left=-Je*Me;break;case 0:Ge.bottom=0,Ge.left=Me;break}return ee.createElement("div",{style:Ge})}function le(Ce){if(Ce==null)throw new TypeError("Cannot destructure "+Ce)}var ue=We(33606),pe=We(37061),Ee=We(34280),be=We(4409),Ie=We(77900),Le=We(39417);function Fe(Ce,Ye){var Je=ee.useState(!1),Me=(0,ue.Z)(Je,2),Ge=Me[0],Ke=Me[1];ee.useLayoutEffect(function(){if(Ge)return Ce(),function(){Ye()}},[Ge]),ee.useLayoutEffect(function(){return Ke(!0),function(){Ke(!1)}},[])}var Oe=We(71430),je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ze=function(Ye,Je){var Me=Ye.className,Ge=Ye.style,Ke=Ye.motion,Ve=Ye.motionNodes,Qe=Ye.motionType,ht=Ye.onMotionStart,At=Ye.onMotionEnd,pt=Ye.active,Ot=Ye.treeNodeRequiredProps,Kt=(0,pe.Z)(Ye,je),jt=ee.useState(!0),Rt=(0,ue.Z)(jt,2),Xt=Rt[0],sn=Rt[1],Ft=ee.useContext(ae.k),Qt=Ft.prefixCls,en=Ve&&Qe!=="hide";(0,Ee.Z)(function(){Ve&&en!==Xt&&sn(en)},[Ve]);var on=function(){Ve&&ht()},Cn=ee.useRef(!1),Bn=function(){Ve&&!Cn.current&&(Cn.current=!0,At())};Fe(on,Bn);var tr=function(cr){en===cr&&Bn()};return Ve?ee.createElement(Ie.default,(0,He.Z)({ref:Je,visible:Xt},Ke,{motionAppear:Qe==="show",onVisibleChanged:tr}),function(er,cr){var Ar=er.className,Dr=er.style;return ee.createElement("div",{ref:cr,className:me()("".concat(Qt,"-treenode-motion"),Ar),style:Dr},Ve.map(function(Or){var $r=(0,He.Z)({},(le(Or.data),Or.data)),ai=Or.title,br=Or.key,fi=Or.isStart,Cr=Or.isEnd;delete $r.children;var at=(0,Oe.H8)(br,Ot);return ee.createElement(Le.Z,(0,He.Z)({},$r,at,{title:ai,active:pt,data:Or.data,key:br,isStart:fi,isEnd:Cr}))}))}):ee.createElement(Le.Z,(0,He.Z)({domRef:Je,className:Me,style:Ge},Kt,{active:pt}))};ze.displayName="MotionTreeNode";var _e=ee.forwardRef(ze),Ue=_e;function $e(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Je=Ce.length,Me=Ye.length;if(Math.abs(Je-Me)!==1)return{add:!1,key:null};function Ge(Ke,Ve){var Qe=new Map;Ke.forEach(function(At){Qe.set(At,!0)});var ht=Ve.filter(function(At){return!Qe.has(At)});return ht.length===1?ht[0]:null}return Je<Me?{add:!0,key:Ge(Ce,Ye)}:{add:!1,key:Ge(Ye,Ce)}}function et(Ce,Ye,Je){var Me=Ce.findIndex(function(Qe){return Qe.key===Je}),Ge=Ce[Me+1],Ke=Ye.findIndex(function(Qe){return Qe.key===Je});if(Ge){var Ve=Ye.findIndex(function(Qe){return Qe.key===Ge.key});return Ye.slice(Ke+1,Ve)}return Ye.slice(Ke+1)}var lt=["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"],ut={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},yt=function(){},qe="RC_TREE_MOTION_".concat(Math.random()),ot={key:qe},dt={key:qe,level:0,index:0,pos:"0",node:ot,nodes:[ot]},St={parent:null,children:[],pos:dt.pos,data:ot,title:null,key:qe,isStart:[],isEnd:[]};function xt(Ce,Ye,Je,Me){return Ye===!1||!Je?Ce:Ce.slice(0,Math.ceil(Je/Me)+1)}function ft(Ce){var Ye=Ce.key,Je=Ce.pos;return(0,Oe.km)(Ye,Je)}function gt(Ce){for(var Ye=String(Ce.data.key),Je=Ce;Je.parent;)Je=Je.parent,Ye="".concat(Je.data.key," > ").concat(Ye);return Ye}var vt=ee.forwardRef(function(Ce,Ye){var Je=Ce.prefixCls,Me=Ce.data,Ge=Ce.selectable,Ke=Ce.checkable,Ve=Ce.expandedKeys,Qe=Ce.selectedKeys,ht=Ce.checkedKeys,At=Ce.loadedKeys,pt=Ce.loadingKeys,Ot=Ce.halfCheckedKeys,Kt=Ce.keyEntities,jt=Ce.disabled,Rt=Ce.dragging,Xt=Ce.dragOverNodeKey,sn=Ce.dropPosition,Ft=Ce.motion,Qt=Ce.height,en=Ce.itemHeight,on=Ce.virtual,Cn=Ce.focusable,Bn=Ce.activeItem,tr=Ce.focused,er=Ce.tabIndex,cr=Ce.onKeyDown,Ar=Ce.onFocus,Dr=Ce.onBlur,Or=Ce.onActiveChange,$r=Ce.onListChangeStart,ai=Ce.onListChangeEnd,br=(0,pe.Z)(Ce,lt),fi=ee.useRef(null),Cr=ee.useRef(null);ee.useImperativeHandle(Ye,function(){return{scrollTo:function(bn){fi.current.scrollTo(bn)},getIndentWidth:function(){return Cr.current.offsetWidth}}});var at=ee.useState(Ve),wi=(0,ue.Z)(at,2),ui=wi[0],Dn=wi[1],ur=ee.useState(Me),or=(0,ue.Z)(ur,2),vr=or[0],Hn=or[1],Jn=ee.useState(Me),_t=(0,ue.Z)(Jn,2),Gt=_t[0],Pt=_t[1],ln=ee.useState([]),pn=(0,ue.Z)(ln,2),Vt=pn[0],Dt=pn[1],cn=ee.useState(null),xn=(0,ue.Z)(cn,2),Nn=xn[0],Zn=xn[1],Ht=ee.useRef(Me);Ht.current=Me;function En(){var rn=Ht.current;Hn(rn),Pt(rn),Dt([]),Zn(null),ai()}(0,Ee.Z)(function(){Dn(Ve);var rn=$e(ui,Ve);if(rn.key!==null)if(rn.add){var bn=vr.findIndex(function(Tn){var In=Tn.key;return In===rn.key}),nn=xt(et(vr,Me,rn.key),on,Qt,en),wn=vr.slice();wn.splice(bn+1,0,St),Pt(wn),Dt(nn),Zn("show")}else{var gn=Me.findIndex(function(Tn){var In=Tn.key;return In===rn.key}),yn=xt(et(Me,vr,rn.key),on,Qt,en),Ln=Me.slice();Ln.splice(gn+1,0,St),Pt(Ln),Dt(yn),Zn("hide")}else vr!==Me&&(Hn(Me),Pt(Me))},[Ve,Me]),ee.useEffect(function(){Rt||En()},[Rt]);var Kn=Ft?Gt:Me,nr={expandedKeys:Ve,selectedKeys:Qe,loadedKeys:At,loadingKeys:pt,checkedKeys:ht,halfCheckedKeys:Ot,dragOverNodeKey:Xt,dropPosition:sn,keyEntities:Kt};return ee.createElement(ee.Fragment,null,tr&&Bn&&ee.createElement("span",{style:ut,"aria-live":"assertive"},gt(Bn)),ee.createElement("div",null,ee.createElement("input",{style:ut,disabled:Cn===!1||jt,tabIndex:Cn!==!1?er:null,onKeyDown:cr,onFocus:Ar,onBlur:Dr,value:"",onChange:yt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(Je,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(Je,"-indent")},ee.createElement("div",{ref:Cr,className:"".concat(Je,"-indent-unit")}))),ee.createElement(be.Z,(0,He.Z)({},br,{data:Kn,itemKey:ft,height:Qt,fullHeight:!1,virtual:on,itemHeight:en,prefixCls:"".concat(Je,"-list"),ref:fi,onVisibleChange:function(bn,nn){var wn=new Set(bn),gn=nn.filter(function(yn){return!wn.has(yn)});gn.some(function(yn){return ft(yn)===qe})&&En()}}),function(rn){var bn=rn.pos,nn=(0,He.Z)({},(le(rn.data),rn.data)),wn=rn.title,gn=rn.key,yn=rn.isStart,Ln=rn.isEnd,Tn=(0,Oe.km)(gn,bn);delete nn.key,delete nn.children;var In=(0,Oe.H8)(Tn,nr);return ee.createElement(Ue,(0,He.Z)({},nn,In,{title:wn,active:!!Bn&&gn===Bn.key,pos:bn,data:rn.data,isStart:yn,isEnd:Ln,motion:Ft,motionNodes:gn===qe?Vt:null,motionType:Nn,onMotionStart:$r,onMotionEnd:En,treeNodeRequiredProps:nr,onMouseMove:function(){Or(null)}}))}))});vt.displayName="NodeList";var Tt=vt,Et=We(35654),Zt=We(90782),wt=We(67841),bt=10,it=function(Ce){(0,Ae.Z)(Je,Ce);var Ye=(0,ye.Z)(Je);function Je(){var Me;(0,ge.Z)(this,Je);for(var Ge=arguments.length,Ke=new Array(Ge),Ve=0;Ve<Ge;Ve++)Ke[Ve]=arguments[Ve];return Me=Ye.call.apply(Ye,[this].concat(Ke)),Me.destroyed=!1,Me.delayedDragEnterLogic=void 0,Me.loadingRetryTimes={},Me.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,Oe.w$)()},Me.dragStartMousePosition=null,Me.dragNode=void 0,Me.currentMouseOverDroppableNodeKey=null,Me.listRef=ee.createRef(),Me.onNodeDragStart=function(Qe,ht){var At=Me.state,pt=At.expandedKeys,Ot=At.keyEntities,Kt=Me.props.onDragStart,jt=ht.props.eventKey;Me.dragNode=ht,Me.dragStartMousePosition={x:Qe.clientX,y:Qe.clientY};var Rt=(0,Et._5)(pt,jt);Me.setState({draggingNodeKey:jt,dragChildrenKeys:(0,Et.wA)(jt,Ot),indent:Me.listRef.current.getIndentWidth()}),Me.setExpandedKeys(Rt),window.addEventListener("dragend",Me.onWindowDragEnd),Kt==null||Kt({event:Qe,node:(0,Oe.F)(ht.props)})},Me.onNodeDragEnter=function(Qe,ht){var At=Me.state,pt=At.expandedKeys,Ot=At.keyEntities,Kt=At.dragChildrenKeys,jt=At.flattenNodes,Rt=At.indent,Xt=Me.props,sn=Xt.onDragEnter,Ft=Xt.onExpand,Qt=Xt.allowDrop,en=Xt.direction,on=ht.props,Cn=on.pos,Bn=on.eventKey,tr=(0,Pe.Z)(Me),er=tr.dragNode;if(Me.currentMouseOverDroppableNodeKey!==Bn&&(Me.currentMouseOverDroppableNodeKey=Bn),!er){Me.resetDragState();return}var cr=(0,Et.OM)(Qe,er,ht,Rt,Me.dragStartMousePosition,Qt,jt,Ot,pt,en),Ar=cr.dropPosition,Dr=cr.dropLevelOffset,Or=cr.dropTargetKey,$r=cr.dropContainerKey,ai=cr.dropTargetPos,br=cr.dropAllowed,fi=cr.dragOverNodeKey;if(Kt.indexOf(Or)!==-1||!br){Me.resetDragState();return}if(Me.delayedDragEnterLogic||(Me.delayedDragEnterLogic={}),Object.keys(Me.delayedDragEnterLogic).forEach(function(Cr){clearTimeout(Me.delayedDragEnterLogic[Cr])}),er.props.eventKey!==ht.props.eventKey&&(Qe.persist(),Me.delayedDragEnterLogic[Cn]=window.setTimeout(function(){if(Me.state.draggingNodeKey!==null){var Cr=(0,Ne.Z)(pt),at=(0,wt.Z)(Ot,ht.props.eventKey);at&&(at.children||[]).length&&(Cr=(0,Et.L0)(pt,ht.props.eventKey)),"expandedKeys"in Me.props||Me.setExpandedKeys(Cr),Ft==null||Ft(Cr,{node:(0,Oe.F)(ht.props),expanded:!0,nativeEvent:Qe.nativeEvent})}},800)),er.props.eventKey===Or&&Dr===0){Me.resetDragState();return}Me.setState({dragOverNodeKey:fi,dropPosition:Ar,dropLevelOffset:Dr,dropTargetKey:Or,dropContainerKey:$r,dropTargetPos:ai,dropAllowed:br}),sn==null||sn({event:Qe,node:(0,Oe.F)(ht.props),expandedKeys:pt})},Me.onNodeDragOver=function(Qe,ht){var At=Me.state,pt=At.dragChildrenKeys,Ot=At.flattenNodes,Kt=At.keyEntities,jt=At.expandedKeys,Rt=At.indent,Xt=Me.props,sn=Xt.onDragOver,Ft=Xt.allowDrop,Qt=Xt.direction,en=(0,Pe.Z)(Me),on=en.dragNode;if(on){var Cn=(0,Et.OM)(Qe,on,ht,Rt,Me.dragStartMousePosition,Ft,Ot,Kt,jt,Qt),Bn=Cn.dropPosition,tr=Cn.dropLevelOffset,er=Cn.dropTargetKey,cr=Cn.dropContainerKey,Ar=Cn.dropAllowed,Dr=Cn.dropTargetPos,Or=Cn.dragOverNodeKey;pt.indexOf(er)!==-1||!Ar||(on.props.eventKey===er&&tr===0?Me.state.dropPosition===null&&Me.state.dropLevelOffset===null&&Me.state.dropTargetKey===null&&Me.state.dropContainerKey===null&&Me.state.dropTargetPos===null&&Me.state.dropAllowed===!1&&Me.state.dragOverNodeKey===null||Me.resetDragState():Bn===Me.state.dropPosition&&tr===Me.state.dropLevelOffset&&er===Me.state.dropTargetKey&&cr===Me.state.dropContainerKey&&Dr===Me.state.dropTargetPos&&Ar===Me.state.dropAllowed&&Or===Me.state.dragOverNodeKey||Me.setState({dropPosition:Bn,dropLevelOffset:tr,dropTargetKey:er,dropContainerKey:cr,dropTargetPos:Dr,dropAllowed:Ar,dragOverNodeKey:Or}),sn==null||sn({event:Qe,node:(0,Oe.F)(ht.props)}))}},Me.onNodeDragLeave=function(Qe,ht){Me.currentMouseOverDroppableNodeKey===ht.props.eventKey&&!Qe.currentTarget.contains(Qe.relatedTarget)&&(Me.resetDragState(),Me.currentMouseOverDroppableNodeKey=null);var At=Me.props.onDragLeave;At==null||At({event:Qe,node:(0,Oe.F)(ht.props)})},Me.onWindowDragEnd=function(Qe){Me.onNodeDragEnd(Qe,null,!0),window.removeEventListener("dragend",Me.onWindowDragEnd)},Me.onNodeDragEnd=function(Qe,ht){var At=Me.props.onDragEnd;Me.setState({dragOverNodeKey:null}),Me.cleanDragState(),At==null||At({event:Qe,node:(0,Oe.F)(ht.props)}),Me.dragNode=null,window.removeEventListener("dragend",Me.onWindowDragEnd)},Me.onNodeDrop=function(Qe,ht){var At,pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ot=Me.state,Kt=Ot.dragChildrenKeys,jt=Ot.dropPosition,Rt=Ot.dropTargetKey,Xt=Ot.dropTargetPos,sn=Ot.dropAllowed;if(sn){var Ft=Me.props.onDrop;if(Me.setState({dragOverNodeKey:null}),Me.cleanDragState(),Rt!==null){var Qt=(0,Ze.Z)((0,Ze.Z)({},(0,Oe.H8)(Rt,Me.getTreeNodeRequiredProps())),{},{active:((At=Me.getActiveItem())===null||At===void 0?void 0:At.key)===Rt,data:(0,wt.Z)(Me.state.keyEntities,Rt).node}),en=Kt.indexOf(Rt)!==-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,Et.yx)(Xt),Cn={event:Qe,node:(0,Oe.F)(Qt),dragNode:Me.dragNode?(0,Oe.F)(Me.dragNode.props):null,dragNodesKeys:[Me.dragNode.props.eventKey].concat(Kt),dropToGap:jt!==0,dropPosition:jt+Number(on[on.length-1])};pt||Ft==null||Ft(Cn),Me.dragNode=null}}},Me.cleanDragState=function(){var Qe=Me.state.draggingNodeKey;Qe!==null&&Me.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Me.dragStartMousePosition=null,Me.currentMouseOverDroppableNodeKey=null},Me.triggerExpandActionExpand=function(Qe,ht){var At=Me.state,pt=At.expandedKeys,Ot=At.flattenNodes,Kt=ht.expanded,jt=ht.key,Rt=ht.isLeaf;if(!(Rt||Qe.shiftKey||Qe.metaKey||Qe.ctrlKey)){var Xt=Ot.filter(function(Ft){return Ft.key===jt})[0],sn=(0,Oe.F)((0,Ze.Z)((0,Ze.Z)({},(0,Oe.H8)(jt,Me.getTreeNodeRequiredProps())),{},{data:Xt.data}));Me.setExpandedKeys(Kt?(0,Et._5)(pt,jt):(0,Et.L0)(pt,jt)),Me.onNodeExpand(Qe,sn)}},Me.onNodeClick=function(Qe,ht){var At=Me.props,pt=At.onClick,Ot=At.expandAction;Ot==="click"&&Me.triggerExpandActionExpand(Qe,ht),pt==null||pt(Qe,ht)},Me.onNodeDoubleClick=function(Qe,ht){var At=Me.props,pt=At.onDoubleClick,Ot=At.expandAction;Ot==="doubleClick"&&Me.triggerExpandActionExpand(Qe,ht),pt==null||pt(Qe,ht)},Me.onNodeSelect=function(Qe,ht){var At=Me.state.selectedKeys,pt=Me.state,Ot=pt.keyEntities,Kt=pt.fieldNames,jt=Me.props,Rt=jt.onSelect,Xt=jt.multiple,sn=ht.selected,Ft=ht[Kt.key],Qt=!sn;Qt?Xt?At=(0,Et.L0)(At,Ft):At=[Ft]:At=(0,Et._5)(At,Ft);var en=At.map(function(on){var Cn=(0,wt.Z)(Ot,on);return Cn?Cn.node:null}).filter(function(on){return on});Me.setUncontrolledState({selectedKeys:At}),Rt==null||Rt(At,{event:"select",selected:Qt,node:ht,selectedNodes:en,nativeEvent:Qe.nativeEvent})},Me.onNodeCheck=function(Qe,ht,At){var pt=Me.state,Ot=pt.keyEntities,Kt=pt.checkedKeys,jt=pt.halfCheckedKeys,Rt=Me.props,Xt=Rt.checkStrictly,sn=Rt.onCheck,Ft=ht.key,Qt,en={event:"check",node:ht,checked:At,nativeEvent:Qe.nativeEvent};if(Xt){var on=At?(0,Et.L0)(Kt,Ft):(0,Et._5)(Kt,Ft),Cn=(0,Et._5)(jt,Ft);Qt={checked:on,halfChecked:Cn},en.checkedNodes=on.map(function(Dr){return(0,wt.Z)(Ot,Dr)}).filter(function(Dr){return Dr}).map(function(Dr){return Dr.node}),Me.setUncontrolledState({checkedKeys:on})}else{var Bn=(0,Zt.S)([].concat((0,Ne.Z)(Kt),[Ft]),!0,Ot),tr=Bn.checkedKeys,er=Bn.halfCheckedKeys;if(!At){var cr=new Set(tr);cr.delete(Ft);var Ar=(0,Zt.S)(Array.from(cr),{checked:!1,halfCheckedKeys:er},Ot);tr=Ar.checkedKeys,er=Ar.halfCheckedKeys}Qt=tr,en.checkedNodes=[],en.checkedNodesPositions=[],en.halfCheckedKeys=er,tr.forEach(function(Dr){var Or=(0,wt.Z)(Ot,Dr);if(Or){var $r=Or.node,ai=Or.pos;en.checkedNodes.push($r),en.checkedNodesPositions.push({node:$r,pos:ai})}}),Me.setUncontrolledState({checkedKeys:tr},!1,{halfCheckedKeys:er})}sn==null||sn(Qt,en)},Me.onNodeLoad=function(Qe){var ht=Qe.key,At=new Promise(function(pt,Ot){Me.setState(function(Kt){var jt=Kt.loadedKeys,Rt=jt===void 0?[]:jt,Xt=Kt.loadingKeys,sn=Xt===void 0?[]:Xt,Ft=Me.props,Qt=Ft.loadData,en=Ft.onLoad;if(!Qt||Rt.indexOf(ht)!==-1||sn.indexOf(ht)!==-1)return null;var on=Qt(Qe);return on.then(function(){var Cn=Me.state.loadedKeys,Bn=(0,Et.L0)(Cn,ht);en==null||en(Bn,{event:"load",node:Qe}),Me.setUncontrolledState({loadedKeys:Bn}),Me.setState(function(tr){return{loadingKeys:(0,Et._5)(tr.loadingKeys,ht)}}),pt()}).catch(function(Cn){if(Me.setState(function(tr){return{loadingKeys:(0,Et._5)(tr.loadingKeys,ht)}}),Me.loadingRetryTimes[ht]=(Me.loadingRetryTimes[ht]||0)+1,Me.loadingRetryTimes[ht]>=bt){var Bn=Me.state.loadedKeys;(0,z.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Me.setUncontrolledState({loadedKeys:(0,Et.L0)(Bn,ht)}),pt()}Ot(Cn)}),{loadingKeys:(0,Et.L0)(sn,ht)}})});return At.catch(function(){}),At},Me.onNodeMouseEnter=function(Qe,ht){var At=Me.props.onMouseEnter;At==null||At({event:Qe,node:ht})},Me.onNodeMouseLeave=function(Qe,ht){var At=Me.props.onMouseLeave;At==null||At({event:Qe,node:ht})},Me.onNodeContextMenu=function(Qe,ht){var At=Me.props.onRightClick;At&&(Qe.preventDefault(),At({event:Qe,node:ht}))},Me.onFocus=function(){var Qe=Me.props.onFocus;Me.setState({focused:!0});for(var ht=arguments.length,At=new Array(ht),pt=0;pt<ht;pt++)At[pt]=arguments[pt];Qe==null||Qe.apply(void 0,At)},Me.onBlur=function(){var Qe=Me.props.onBlur;Me.setState({focused:!1}),Me.onActiveChange(null);for(var ht=arguments.length,At=new Array(ht),pt=0;pt<ht;pt++)At[pt]=arguments[pt];Qe==null||Qe.apply(void 0,At)},Me.getTreeNodeRequiredProps=function(){var Qe=Me.state,ht=Qe.expandedKeys,At=Qe.selectedKeys,pt=Qe.loadedKeys,Ot=Qe.loadingKeys,Kt=Qe.checkedKeys,jt=Qe.halfCheckedKeys,Rt=Qe.dragOverNodeKey,Xt=Qe.dropPosition,sn=Qe.keyEntities;return{expandedKeys:ht||[],selectedKeys:At||[],loadedKeys:pt||[],loadingKeys:Ot||[],checkedKeys:Kt||[],halfCheckedKeys:jt||[],dragOverNodeKey:Rt,dropPosition:Xt,keyEntities:sn}},Me.setExpandedKeys=function(Qe){var ht=Me.state,At=ht.treeData,pt=ht.fieldNames,Ot=(0,Oe.oH)(At,Qe,pt);Me.setUncontrolledState({expandedKeys:Qe,flattenNodes:Ot},!0)},Me.onNodeExpand=function(Qe,ht){var At=Me.state.expandedKeys,pt=Me.state,Ot=pt.listChanging,Kt=pt.fieldNames,jt=Me.props,Rt=jt.onExpand,Xt=jt.loadData,sn=ht.expanded,Ft=ht[Kt.key];if(!Ot){var Qt=At.indexOf(Ft),en=!sn;if((0,z.ZP)(sn&&Qt!==-1||!sn&&Qt===-1,"Expand state not sync with index check"),en?At=(0,Et.L0)(At,Ft):At=(0,Et._5)(At,Ft),Me.setExpandedKeys(At),Rt==null||Rt(At,{node:ht,expanded:en,nativeEvent:Qe.nativeEvent}),en&&Xt){var on=Me.onNodeLoad(ht);on&&on.then(function(){var Cn=(0,Oe.oH)(Me.state.treeData,At,Kt);Me.setUncontrolledState({flattenNodes:Cn})}).catch(function(){var Cn=Me.state.expandedKeys,Bn=(0,Et._5)(Cn,Ft);Me.setExpandedKeys(Bn)})}}},Me.onListChangeStart=function(){Me.setUncontrolledState({listChanging:!0})},Me.onListChangeEnd=function(){setTimeout(function(){Me.setUncontrolledState({listChanging:!1})})},Me.onActiveChange=function(Qe){var ht=Me.state.activeKey,At=Me.props.onActiveChange;ht!==Qe&&(Me.setState({activeKey:Qe}),Qe!==null&&Me.scrollTo({key:Qe}),At==null||At(Qe))},Me.getActiveItem=function(){var Qe=Me.state,ht=Qe.activeKey,At=Qe.flattenNodes;return ht===null?null:At.find(function(pt){var Ot=pt.key;return Ot===ht})||null},Me.offsetActiveKey=function(Qe){var ht=Me.state,At=ht.flattenNodes,pt=ht.activeKey,Ot=At.findIndex(function(Rt){var Xt=Rt.key;return Xt===pt});Ot===-1&&Qe<0&&(Ot=At.length),Ot=(Ot+Qe+At.length)%At.length;var Kt=At[Ot];if(Kt){var jt=Kt.key;Me.onActiveChange(jt)}else Me.onActiveChange(null)},Me.onKeyDown=function(Qe){var ht=Me.state,At=ht.activeKey,pt=ht.expandedKeys,Ot=ht.checkedKeys,Kt=ht.fieldNames,jt=Me.props,Rt=jt.onKeyDown,Xt=jt.checkable,sn=jt.selectable;switch(Qe.which){case we.Z.UP:{Me.offsetActiveKey(-1),Qe.preventDefault();break}case we.Z.DOWN:{Me.offsetActiveKey(1),Qe.preventDefault();break}}var Ft=Me.getActiveItem();if(Ft&&Ft.data){var Qt=Me.getTreeNodeRequiredProps(),en=Ft.data.isLeaf===!1||!!(Ft.data[Kt.children]||[]).length,on=(0,Oe.F)((0,Ze.Z)((0,Ze.Z)({},(0,Oe.H8)(At,Qt)),{},{data:Ft.data,active:!0}));switch(Qe.which){case we.Z.LEFT:{en&&pt.includes(At)?Me.onNodeExpand({},on):Ft.parent&&Me.onActiveChange(Ft.parent.key),Qe.preventDefault();break}case we.Z.RIGHT:{en&&!pt.includes(At)?Me.onNodeExpand({},on):Ft.children&&Ft.children.length&&Me.onActiveChange(Ft.children[0].key),Qe.preventDefault();break}case we.Z.ENTER:case we.Z.SPACE:{Xt&&!on.disabled&&on.checkable!==!1&&!on.disableCheckbox?Me.onNodeCheck({},on,!Ot.includes(At)):!Xt&&sn&&!on.disabled&&on.selectable!==!1&&Me.onNodeSelect({},on);break}}}Rt==null||Rt(Qe)},Me.setUncontrolledState=function(Qe){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Me.destroyed){var pt=!1,Ot=!0,Kt={};Object.keys(Qe).forEach(function(jt){if(jt in Me.props){Ot=!1;return}pt=!0,Kt[jt]=Qe[jt]}),pt&&(!ht||Ot)&&Me.setState((0,Ze.Z)((0,Ze.Z)({},Kt),At))}},Me.scrollTo=function(Qe){Me.listRef.current.scrollTo(Qe)},Me}return(0,ce.Z)(Je,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ge=this.props.activeKey;Ge!==void 0&&Ge!==this.state.activeKey&&(this.setState({activeKey:Ge}),Ge!==null&&this.scrollTo({key:Ge}))}},{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 Ge,Ke=this.state,Ve=Ke.focused,Qe=Ke.flattenNodes,ht=Ke.keyEntities,At=Ke.draggingNodeKey,pt=Ke.activeKey,Ot=Ke.dropLevelOffset,Kt=Ke.dropContainerKey,jt=Ke.dropTargetKey,Rt=Ke.dropPosition,Xt=Ke.dragOverNodeKey,sn=Ke.indent,Ft=this.props,Qt=Ft.prefixCls,en=Ft.className,on=Ft.style,Cn=Ft.showLine,Bn=Ft.focusable,tr=Ft.tabIndex,er=tr===void 0?0:tr,cr=Ft.selectable,Ar=Ft.showIcon,Dr=Ft.icon,Or=Ft.switcherIcon,$r=Ft.draggable,ai=Ft.checkable,br=Ft.checkStrictly,fi=Ft.disabled,Cr=Ft.motion,at=Ft.loadData,wi=Ft.filterTreeNode,ui=Ft.height,Dn=Ft.itemHeight,ur=Ft.virtual,or=Ft.titleRender,vr=Ft.dropIndicatorRender,Hn=Ft.onContextMenu,Jn=Ft.onScroll,_t=Ft.direction,Gt=Ft.rootClassName,Pt=Ft.rootStyle,ln=(0,fe.Z)(this.props,{aria:!0,data:!0}),pn;return $r&&((0,oe.Z)($r)==="object"?pn=$r:typeof $r=="function"?pn={nodeDraggable:$r}:pn={}),ee.createElement(ae.k.Provider,{value:{prefixCls:Qt,selectable:cr,showIcon:Ar,icon:Dr,switcherIcon:Or,draggable:pn,draggingNodeKey:At,checkable:ai,checkStrictly:br,disabled:fi,keyEntities:ht,dropLevelOffset:Ot,dropContainerKey:Kt,dropTargetKey:jt,dropPosition:Rt,dragOverNodeKey:Xt,indent:sn,direction:_t,dropIndicatorRender:vr,loadData:at,filterTreeNode:wi,titleRender:or,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()(Qt,en,Gt,(Ge={},(0,mt.Z)(Ge,"".concat(Qt,"-show-line"),Cn),(0,mt.Z)(Ge,"".concat(Qt,"-focused"),Ve),(0,mt.Z)(Ge,"".concat(Qt,"-active-focused"),pt!==null),Ge)),style:Pt},ee.createElement(Tt,(0,He.Z)({ref:this.listRef,prefixCls:Qt,style:on,data:Qe,disabled:fi,selectable:cr,checkable:!!ai,motion:Cr,dragging:At!==null,height:ui,itemHeight:Dn,virtual:ur,focusable:Bn,focused:Ve,tabIndex:er,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Hn,onScroll:Jn},this.getTreeNodeRequiredProps(),ln))))}}],[{key:"getDerivedStateFromProps",value:function(Ge,Ke){var Ve=Ke.prevProps,Qe={prevProps:Ge};function ht(Bn){return!Ve&&Bn in Ge||Ve&&Ve[Bn]!==Ge[Bn]}var At,pt=Ke.fieldNames;if(ht("fieldNames")&&(pt=(0,Oe.w$)(Ge.fieldNames),Qe.fieldNames=pt),ht("treeData")?At=Ge.treeData:ht("children")&&((0,z.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),At=(0,Oe.zn)(Ge.children)),At){Qe.treeData=At;var Ot=(0,Oe.I8)(At,{fieldNames:pt});Qe.keyEntities=(0,Ze.Z)((0,mt.Z)({},qe,dt),Ot.keyEntities)}var Kt=Qe.keyEntities||Ke.keyEntities;if(ht("expandedKeys")||Ve&&ht("autoExpandParent"))Qe.expandedKeys=Ge.autoExpandParent||!Ve&&Ge.defaultExpandParent?(0,Et.r7)(Ge.expandedKeys,Kt):Ge.expandedKeys;else if(!Ve&&Ge.defaultExpandAll){var jt=(0,Ze.Z)({},Kt);delete jt[qe],Qe.expandedKeys=Object.keys(jt).map(function(Bn){return jt[Bn].key})}else!Ve&&Ge.defaultExpandedKeys&&(Qe.expandedKeys=Ge.autoExpandParent||Ge.defaultExpandParent?(0,Et.r7)(Ge.defaultExpandedKeys,Kt):Ge.defaultExpandedKeys);if(Qe.expandedKeys||delete Qe.expandedKeys,At||Qe.expandedKeys){var Rt=(0,Oe.oH)(At||Ke.treeData,Qe.expandedKeys||Ke.expandedKeys,pt);Qe.flattenNodes=Rt}if(Ge.selectable&&(ht("selectedKeys")?Qe.selectedKeys=(0,Et.BT)(Ge.selectedKeys,Ge):!Ve&&Ge.defaultSelectedKeys&&(Qe.selectedKeys=(0,Et.BT)(Ge.defaultSelectedKeys,Ge))),Ge.checkable){var Xt;if(ht("checkedKeys")?Xt=(0,Et.E6)(Ge.checkedKeys)||{}:!Ve&&Ge.defaultCheckedKeys?Xt=(0,Et.E6)(Ge.defaultCheckedKeys)||{}:At&&(Xt=(0,Et.E6)(Ge.checkedKeys)||{checkedKeys:Ke.checkedKeys,halfCheckedKeys:Ke.halfCheckedKeys}),Xt){var sn=Xt,Ft=sn.checkedKeys,Qt=Ft===void 0?[]:Ft,en=sn.halfCheckedKeys,on=en===void 0?[]:en;if(!Ge.checkStrictly){var Cn=(0,Zt.S)(Qt,!0,Kt);Qt=Cn.checkedKeys,on=Cn.halfCheckedKeys}Qe.checkedKeys=Qt,Qe.halfCheckedKeys=on}}return ht("loadedKeys")&&(Qe.loadedKeys=Ge.loadedKeys),Qe}}]),Je}(ee.Component);it.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},it.TreeNode=Le.Z;var nt=it,xe=nt},35654:function(kn,fn,We){"use strict";We.d(fn,{BT:function(){return ee},E6:function(){return le},L0:function(){return ye},OM:function(){return z},_5:function(){return Ae},r7:function(){return ue},wA:function(){return me},yx:function(){return De}});var He=We(26407),mt=We(39559),oe=We(48736),Ze=We(59301),Ne=We(39417),ge=We(67841),ce=We(71430),Pe=null;function Ae(pe,Ee){if(!pe)return[];var be=pe.slice(),Ie=be.indexOf(Ee);return Ie>=0&&be.splice(Ie,1),be}function ye(pe,Ee){var be=(pe||[]).slice();return be.indexOf(Ee)===-1&&be.push(Ee),be}function De(pe){return pe.split("-")}function me(pe,Ee){var be=[],Ie=(0,ge.Z)(Ee,pe);function Le(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Fe.forEach(function(Oe){var je=Oe.key,ze=Oe.children;be.push(je),Le(ze)})}return Le(Ie.children),be}function we(pe){if(pe.parent){var Ee=De(pe.pos);return Number(Ee[Ee.length-1])===pe.parent.children.length-1}return!1}function fe(pe){var Ee=De(pe.pos);return Number(Ee[Ee.length-1])===0}function z(pe,Ee,be,Ie,Le,Fe,Oe,je,ze,_e){var Ue,$e=pe.clientX,et=pe.clientY,lt=pe.target.getBoundingClientRect(),ut=lt.top,yt=lt.height,qe=(_e==="rtl"?-1:1)*(((Le==null?void 0:Le.x)||0)-$e),ot=(qe-12)/Ie,dt=(0,ge.Z)(je,be.props.eventKey);if(et<ut+yt/2){var St=Oe.findIndex(function(xe){return xe.key===dt.key}),xt=St<=0?0:St-1,ft=Oe[xt].key;dt=(0,ge.Z)(je,ft)}var gt=dt.key,vt=dt,Tt=dt.key,Et=0,Zt=0;if(!ze.includes(gt))for(var wt=0;wt<ot&&we(dt);wt+=1)dt=dt.parent,Zt+=1;var bt=Ee.props.data,it=dt.node,nt=!0;return fe(dt)&&dt.level===0&&et<ut+yt/2&&Fe({dragNode:bt,dropNode:it,dropPosition:-1})&&dt.key===be.props.eventKey?Et=-1:(vt.children||[]).length&&ze.includes(Tt)?Fe({dragNode:bt,dropNode:it,dropPosition:0})?Et=0:nt=!1:Zt===0?ot>-1.5?Fe({dragNode:bt,dropNode:it,dropPosition:1})?Et=1:nt=!1:Fe({dragNode:bt,dropNode:it,dropPosition:0})?Et=0:Fe({dragNode:bt,dropNode:it,dropPosition:1})?Et=1:nt=!1:Fe({dragNode:bt,dropNode:it,dropPosition:1})?Et=1:nt=!1,{dropPosition:Et,dropLevelOffset:Zt,dropTargetKey:dt.key,dropTargetPos:dt.pos,dragOverNodeKey:Tt,dropContainerKey:Et===0?null:((Ue=dt.parent)===null||Ue===void 0?void 0:Ue.key)||null,dropAllowed:nt}}function ee(pe,Ee){if(pe){var be=Ee.multiple;return be?pe.slice():pe.length?[pe[0]]:pe}}var ae=function(Ee){return Ee};function re(pe,Ee){if(!pe)return[];var be=Ee||{},Ie=be.processProps,Le=Ie===void 0?ae:Ie,Fe=Array.isArray(pe)?pe:[pe];return Fe.map(function(Oe){var je=Oe.children,ze=_objectWithoutProperties(Oe,Pe),_e=re(je,Ee);return React.createElement(TreeNode,_extends({key:ze.key},Le(ze)),_e)})}function le(pe){if(!pe)return null;var Ee;if(Array.isArray(pe))Ee={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,mt.Z)(pe)==="object")Ee={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 Ee}function ue(pe,Ee){var be=new Set;function Ie(Le){if(!be.has(Le)){var Fe=(0,ge.Z)(Ee,Le);if(Fe){be.add(Le);var Oe=Fe.parent,je=Fe.node;je.disabled||Oe&&Ie(Oe.key)}}}return(pe||[]).forEach(function(Le){Ie(Le)}),(0,He.Z)(be)}},90782:function(kn,fn,We){"use strict";We.d(fn,{S:function(){return ce}});var He=We(48736),mt=We(67841);function oe(Pe,Ae){var ye=new Set;return Pe.forEach(function(De){Ae.has(De)||ye.add(De)}),ye}function Ze(Pe){var Ae=Pe||{},ye=Ae.disabled,De=Ae.disableCheckbox,me=Ae.checkable;return!!(ye||De)||me===!1}function Ne(Pe,Ae,ye,De){for(var me=new Set(Pe),we=new Set,fe=0;fe<=ye;fe+=1){var z=Ae.get(fe)||new Set;z.forEach(function(le){var ue=le.key,pe=le.node,Ee=le.children,be=Ee===void 0?[]:Ee;me.has(ue)&&!De(pe)&&be.filter(function(Ie){return!De(Ie.node)}).forEach(function(Ie){me.add(Ie.key)})})}for(var ee=new Set,ae=ye;ae>=0;ae-=1){var re=Ae.get(ae)||new Set;re.forEach(function(le){var ue=le.parent,pe=le.node;if(!(De(pe)||!le.parent||ee.has(le.parent.key))){if(De(le.parent.node)){ee.add(ue.key);return}var Ee=!0,be=!1;(ue.children||[]).filter(function(Ie){return!De(Ie.node)}).forEach(function(Ie){var Le=Ie.key,Fe=me.has(Le);Ee&&!Fe&&(Ee=!1),!be&&(Fe||we.has(Le))&&(be=!0)}),Ee&&me.add(ue.key),be&&we.add(ue.key),ee.add(ue.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(oe(we,me))}}function ge(Pe,Ae,ye,De,me){for(var we=new Set(Pe),fe=new Set(Ae),z=0;z<=De;z+=1){var ee=ye.get(z)||new Set;ee.forEach(function(ue){var pe=ue.key,Ee=ue.node,be=ue.children,Ie=be===void 0?[]:be;!we.has(pe)&&!fe.has(pe)&&!me(Ee)&&Ie.filter(function(Le){return!me(Le.node)}).forEach(function(Le){we.delete(Le.key)})})}fe=new Set;for(var ae=new Set,re=De;re>=0;re-=1){var le=ye.get(re)||new Set;le.forEach(function(ue){var pe=ue.parent,Ee=ue.node;if(!(me(Ee)||!ue.parent||ae.has(ue.parent.key))){if(me(ue.parent.node)){ae.add(pe.key);return}var be=!0,Ie=!1;(pe.children||[]).filter(function(Le){return!me(Le.node)}).forEach(function(Le){var Fe=Le.key,Oe=we.has(Fe);be&&!Oe&&(be=!1),!Ie&&(Oe||fe.has(Fe))&&(Ie=!0)}),be||we.delete(pe.key),Ie&&fe.add(pe.key),ae.add(pe.key)}})}return{checkedKeys:Array.from(we),halfCheckedKeys:Array.from(oe(fe,we))}}function ce(Pe,Ae,ye,De){var me=[],we;De?we=De:we=Ze;var fe=new Set(Pe.filter(function(re){var le=!!(0,mt.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,He.ZP)(!me.length,"Tree missing follow keys: ".concat(me.slice(0,100).map(function(re){return"'".concat(re,"'")}).join(", ")));var ae;return Ae===!0?ae=Ne(fe,z,ee,we):ae=ge(fe,Ae.halfCheckedKeys,z,ee,we),ae}},67841:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return He}});function He(mt,oe){return mt[oe]}},71430:function(kn,fn,We){"use strict";We.d(fn,{F:function(){return ue},H8:function(){return le},I8:function(){return re},km:function(){return me},oH:function(){return ee},w$:function(){return we},zn:function(){return z}});var He=We(39559),mt=We(26407),oe=We(33708),Ze=We(37061),Ne=We(11592),ge=We(2738),ce=We(48736),Pe=We(67841),Ae=["children"];function ye(pe,Ee){return"".concat(pe,"-").concat(Ee)}function De(pe){return pe&&pe.type&&pe.type.isTreeNode}function me(pe,Ee){return pe!=null?pe:Ee}function we(pe){var Ee=pe||{},be=Ee.title,Ie=Ee._title,Le=Ee.key,Fe=Ee.children,Oe=be||"title";return{title:Oe,_title:Ie||[Oe],key:Le||"key",children:Fe||"children"}}function fe(pe,Ee){var be=new Map;function Ie(Le){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Le||[]).forEach(function(Oe){var je=Oe[Ee.key],ze=Oe[Ee.children];warning(je!=null,"Tree node must have a certain key: [".concat(Fe).concat(je,"]"));var _e=String(je);warning(!be.has(_e)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(_e)),be.set(_e,!0),Ie(ze,"".concat(Fe).concat(_e," > "))})}Ie(pe)}function z(pe){function Ee(be){var Ie=(0,Ne.Z)(be);return Ie.map(function(Le){if(!De(Le))return(0,ce.ZP)(!Le,"Tree/TreeNode can only accept TreeNode as children."),null;var Fe=Le.key,Oe=Le.props,je=Oe.children,ze=(0,Ze.Z)(Oe,Ae),_e=(0,oe.Z)({key:Fe},ze),Ue=Ee(je);return Ue.length&&(_e.children=Ue),_e}).filter(function(Le){return Le})}return Ee(pe)}function ee(pe,Ee,be){var Ie=we(be),Le=Ie._title,Fe=Ie.key,Oe=Ie.children,je=new Set(Ee===!0?[]:Ee),ze=[];function _e(Ue){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ue.map(function(et,lt){for(var ut=ye($e?$e.pos:"0",lt),yt=me(et[Fe],ut),qe,ot=0;ot<Le.length;ot+=1){var dt=Le[ot];if(et[dt]!==void 0){qe=et[dt];break}}var St=(0,oe.Z)((0,oe.Z)({},(0,ge.Z)(et,[].concat((0,mt.Z)(Le),[Fe,Oe]))),{},{title:qe,key:yt,parent:$e,pos:ut,children:null,data:et,isStart:[].concat((0,mt.Z)($e?$e.isStart:[]),[lt===0]),isEnd:[].concat((0,mt.Z)($e?$e.isEnd:[]),[lt===Ue.length-1])});return ze.push(St),Ee===!0||je.has(yt)?St.children=_e(et[Oe]||[],St):St.children=[],St})}return _e(pe),ze}function ae(pe,Ee,be){var Ie={};(0,He.Z)(be)==="object"?Ie=be:Ie={externalGetKey:be},Ie=Ie||{};var Le=Ie,Fe=Le.childrenPropName,Oe=Le.externalGetKey,je=Le.fieldNames,ze=we(je),_e=ze.key,Ue=ze.children,$e=Fe||Ue,et;Oe?typeof Oe=="string"?et=function(yt){return yt[Oe]}:typeof Oe=="function"&&(et=function(yt){return Oe(yt)}):et=function(yt,qe){return me(yt[_e],qe)};function lt(ut,yt,qe,ot){var dt=ut?ut[$e]:pe,St=ut?ye(qe.pos,yt):"0",xt=ut?[].concat((0,mt.Z)(ot),[ut]):[];if(ut){var ft=et(ut,St),gt={node:ut,index:yt,pos:St,key:ft,parentPos:qe.node?qe.pos:null,level:qe.level+1,nodes:xt};Ee(gt)}dt&&dt.forEach(function(vt,Tt){lt(vt,Tt,{node:ut,pos:St,level:qe?qe.level+1:-1},xt)})}lt(null)}function re(pe){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=Ee.initWrapper,Ie=Ee.processEntity,Le=Ee.onProcessFinished,Fe=Ee.externalGetKey,Oe=Ee.childrenPropName,je=Ee.fieldNames,ze=arguments.length>2?arguments[2]:void 0,_e=Fe||ze,Ue={},$e={},et={posEntities:Ue,keyEntities:$e};return be&&(et=be(et)||et),ae(pe,function(lt){var ut=lt.node,yt=lt.index,qe=lt.pos,ot=lt.key,dt=lt.parentPos,St=lt.level,xt=lt.nodes,ft={node:ut,nodes:xt,index:yt,key:ot,pos:qe,level:St},gt=me(ot,qe);Ue[qe]=ft,$e[gt]=ft,ft.parent=Ue[dt],ft.parent&&(ft.parent.children=ft.parent.children||[],ft.parent.children.push(ft)),Ie&&Ie(ft,et)},{externalGetKey:_e,childrenPropName:Oe,fieldNames:je}),Le&&Le(et),et}function le(pe,Ee){var be=Ee.expandedKeys,Ie=Ee.selectedKeys,Le=Ee.loadedKeys,Fe=Ee.loadingKeys,Oe=Ee.checkedKeys,je=Ee.halfCheckedKeys,ze=Ee.dragOverNodeKey,_e=Ee.dropPosition,Ue=Ee.keyEntities,$e=(0,Pe.Z)(Ue,pe),et={eventKey:pe,expanded:be.indexOf(pe)!==-1,selected:Ie.indexOf(pe)!==-1,loaded:Le.indexOf(pe)!==-1,loading:Fe.indexOf(pe)!==-1,checked:Oe.indexOf(pe)!==-1,halfChecked:je.indexOf(pe)!==-1,pos:String($e?$e.pos:""),dragOver:ze===pe&&_e===0,dragOverGapTop:ze===pe&&_e===-1,dragOverGapBottom:ze===pe&&_e===1};return et}function ue(pe){var Ee=pe.data,be=pe.expanded,Ie=pe.selected,Le=pe.checked,Fe=pe.loaded,Oe=pe.loading,je=pe.halfChecked,ze=pe.dragOver,_e=pe.dragOverGapTop,Ue=pe.dragOverGapBottom,$e=pe.pos,et=pe.active,lt=pe.eventKey,ut=(0,oe.Z)((0,oe.Z)({},Ee),{},{expanded:be,selected:Ie,checked:Le,loaded:Fe,loading:Oe,halfChecked:je,dragOver:ze,dragOverGapTop:_e,dragOverGapBottom:Ue,pos:$e,active:et,key:lt});return"props"in ut||Object.defineProperty(ut,"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}}),ut}},8224:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return mt}});var He=We(4676);function mt(oe,Ze,Ne,ge){var ce=He.unstable_batchedUpdates?function(Ae){He.unstable_batchedUpdates(Ne,Ae)}:Ne;return oe!=null&&oe.addEventListener&&oe.addEventListener(Ze,ce,ge),{remove:function(){oe!=null&&oe.removeEventListener&&oe.removeEventListener(Ze,ce,ge)}}}},55468:function(kn,fn,We){"use strict";We.d(fn,{g1:function(){return De},os:function(){return we}});var He=/margin|padding|width|height|max|min|offset/,mt={left:!0,top:!0},oe={cssFloat:1,styleFloat:1,float:1};function Ze(fe){return fe.nodeType===1?fe.ownerDocument.defaultView.getComputedStyle(fe,null):{}}function Ne(fe,z,ee){if(z=z.toLowerCase(),ee==="auto"){if(z==="height")return fe.offsetHeight;if(z==="width")return fe.offsetWidth}return z in mt||(mt[z]=He.test(z)),mt[z]?parseFloat(ee)||0:ee}function ge(fe,z){var ee=arguments.length,ae=Ze(fe);return z=oe[z]?"cssFloat"in fe.style?"cssFloat":"styleFloat":z,ee===1?ae:Ne(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"&&He.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 Ze(fe)}function Pe(fe){return fe===document.body?document.documentElement.clientWidth:fe.offsetWidth}function Ae(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 De(){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 we(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(kn,fn,We){"use strict";We.d(fn,{G:function(){return Ze}});var He=We(47273),mt=function(ge){if((0,He.Z)()&&window.document.documentElement){var ce=Array.isArray(ge)?ge:[ge],Pe=window.document.documentElement;return ce.some(function(Ae){return Ae in Pe.style})}return!1},oe=function(ge,ce){if(!mt(ge))return!1;var Pe=document.createElement("div"),Ae=Pe.style[ge];return Pe.style[ge]=ce,Pe.style[ge]!==Ae};function Ze(Ne,ge){return!Array.isArray(Ne)&&ge!==void 0?oe(Ne,ge):mt(Ne)}},4409:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return nt}});var He=We(92413),mt=We(39559),oe=We(33708),Ze=We(400),Ne=We(33606),ge=We(37061),ce=We(92310),Pe=We.n(ce),Ae=We(29301),ye=We(70425),De=We(34280),me=We(59301),we=We(4676),fe=me.forwardRef(function(xe,Ce){var Ye=xe.height,Je=xe.offsetY,Me=xe.offsetX,Ge=xe.children,Ke=xe.prefixCls,Ve=xe.onInnerResize,Qe=xe.innerProps,ht=xe.rtl,At=xe.extra,pt={},Ot={display:"flex",flexDirection:"column"};return Je!==void 0&&(pt={height:Ye,position:"relative",overflow:"hidden"},Ot=(0,oe.Z)((0,oe.Z)({},Ot),{},(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({transform:"translateY(".concat(Je,"px)")},ht?"marginRight":"marginLeft",-Me),"position","absolute"),"left",0),"right",0),"top",0))),me.createElement("div",{style:pt},me.createElement(Ae.Z,{onResize:function(jt){var Rt=jt.offsetHeight;Rt&&Ve&&Ve()}},me.createElement("div",(0,He.Z)({style:Ot,className:Pe()((0,Ze.Z)({},"".concat(Ke,"-holder-inner"),Ke)),ref:Ce},Qe),Ge,At)))});fe.displayName="Filler";var z=fe;function ee(xe){var Ce=xe.children,Ye=xe.setRef,Je=me.useCallback(function(Me){Ye(Me)},[]);return me.cloneElement(Ce,{ref:Je})}function ae(xe,Ce,Ye,Je,Me,Ge,Ke,Ve){var Qe=Ve.getKey;return xe.slice(Ce,Ye+1).map(function(ht,At){var pt=Ce+At,Ot=Ke(ht,pt,{style:{width:Je},offsetX:Me}),Kt=Qe(ht);return me.createElement(ee,{key:Kt,setRef:function(Rt){return Ge(ht,Rt)}},Ot)})}function re(xe,Ce,Ye,Je){var Me=Ye-xe,Ge=Ce-Ye,Ke=Math.min(Me,Ge)*2;if(Je<=Ke){var Ve=Math.floor(Je/2);return Je%2?Ye+Ve+1:Ye-Ve}return Me>Ge?Ye-(Je-Ge):Ye+(Je-Me)}function le(xe,Ce,Ye){var Je=xe.length,Me=Ce.length,Ge,Ke;if(Je===0&&Me===0)return null;Je<Me?(Ge=xe,Ke=Ce):(Ge=Ce,Ke=xe);var Ve={__EMPTY_ITEM__:!0};function Qe(jt){return jt!==void 0?Ye(jt):Ve}for(var ht=null,At=Math.abs(Je-Me)!==1,pt=0;pt<Ke.length;pt+=1){var Ot=Qe(Ge[pt]),Kt=Qe(Ke[pt]);if(Ot!==Kt){ht=pt,At=At||Ot!==Qe(Ke[pt+1]);break}}return ht===null?null:{index:ht,multiple:At}}function ue(xe,Ce,Ye){var Je=me.useState(xe),Me=(0,Ne.Z)(Je,2),Ge=Me[0],Ke=Me[1],Ve=me.useState(null),Qe=(0,Ne.Z)(Ve,2),ht=Qe[0],At=Qe[1];return me.useEffect(function(){var pt=le(Ge||[],xe||[],Ce);(pt==null?void 0:pt.index)!==void 0&&(Ye==null||Ye(pt.index),At(xe[pt.index])),Ke(xe)},[xe]),[ht]}var pe=We(16089),Ee=(typeof navigator=="undefined"?"undefined":(0,mt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),be=Ee,Ie=function(xe,Ce,Ye,Je){var Me=(0,me.useRef)(!1),Ge=(0,me.useRef)(null);function Ke(){clearTimeout(Ge.current),Me.current=!0,Ge.current=setTimeout(function(){Me.current=!1},50)}var Ve=(0,me.useRef)({top:xe,bottom:Ce,left:Ye,right:Je});return Ve.current.top=xe,Ve.current.bottom=Ce,Ve.current.left=Ye,Ve.current.right=Je,function(Qe,ht){var At=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,pt=Qe?ht<0&&Ve.current.left||ht>0&&Ve.current.right:ht<0&&Ve.current.top||ht>0&&Ve.current.bottom;return At&&pt?(clearTimeout(Ge.current),Me.current=!1):(!pt||Me.current)&&Ke(),!Me.current&&pt}};function Le(xe,Ce,Ye,Je,Me,Ge,Ke){var Ve=(0,me.useRef)(0),Qe=(0,me.useRef)(null),ht=(0,me.useRef)(null),At=(0,me.useRef)(!1),pt=Ie(Ce,Ye,Je,Me);function Ot(Ft,Qt){if(pe.Z.cancel(Qe.current),!pt(!1,Qt)){var en=Ft;if(!en._virtualHandled)en._virtualHandled=!0;else return;Ve.current+=Qt,ht.current=Qt,be||en.preventDefault(),Qe.current=(0,pe.Z)(function(){var on=At.current?10:1;Ke(Ve.current*on,!1),Ve.current=0})}}function Kt(Ft,Qt){Ke(Qt,!0),be||Ft.preventDefault()}var jt=(0,me.useRef)(null),Rt=(0,me.useRef)(null);function Xt(Ft){if(xe){pe.Z.cancel(Rt.current),Rt.current=(0,pe.Z)(function(){jt.current=null},2);var Qt=Ft.deltaX,en=Ft.deltaY,on=Ft.shiftKey,Cn=Qt,Bn=en;(jt.current==="sx"||!jt.current&&on&&en&&!Qt)&&(Cn=en,Bn=0,jt.current="sx");var tr=Math.abs(Cn),er=Math.abs(Bn);jt.current===null&&(jt.current=Ge&&tr>er?"x":"y"),jt.current==="y"?Ot(Ft,Bn):Kt(Ft,Cn)}}function sn(Ft){xe&&(At.current=Ft.detail===ht.current)}return[Xt,sn]}function Fe(xe,Ce,Ye,Je){var Me=me.useMemo(function(){return[new Map,[]]},[xe,Ye.id,Je]),Ge=(0,Ne.Z)(Me,2),Ke=Ge[0],Ve=Ge[1],Qe=function(At){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:At,Ot=Ke.get(At),Kt=Ke.get(pt);if(Ot===void 0||Kt===void 0)for(var jt=xe.length,Rt=Ve.length;Rt<jt;Rt+=1){var Xt,sn=xe[Rt],Ft=Ce(sn);Ke.set(Ft,Rt);var Qt=(Xt=Ye.get(Ft))!==null&&Xt!==void 0?Xt:Je;if(Ve[Rt]=(Ve[Rt-1]||0)+Qt,Ft===At&&(Ot=Rt),Ft===pt&&(Kt=Rt),Ot!==void 0&&Kt!==void 0)break}return{top:Ve[Ot-1]||0,bottom:Ve[Kt]}};return Qe}var Oe=We(76846),je=We(6909),ze=We(4771),_e=function(){function xe(){(0,je.Z)(this,xe),(0,Ze.Z)(this,"maps",void 0),(0,Ze.Z)(this,"id",0),(0,Ze.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,ze.Z)(xe,[{key:"set",value:function(Ye,Je){this.maps[Ye]=Je,this.id+=1,this.diffKeys.add(Ye)}},{key:"get",value:function(Ye){return this.maps[Ye]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),xe}(),Ue=_e;function $e(xe){var Ce=parseFloat(xe);return isNaN(Ce)?0:Ce}function et(xe,Ce,Ye){var Je=me.useState(0),Me=(0,Ne.Z)(Je,2),Ge=Me[0],Ke=Me[1],Ve=(0,me.useRef)(new Map),Qe=(0,me.useRef)(new Ue),ht=(0,me.useRef)(0);function At(){ht.current+=1}function pt(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;At();var jt=function(){var sn=!1;Ve.current.forEach(function(Ft,Qt){if(Ft&&Ft.offsetParent){var en=(0,Oe.ZP)(Ft),on=en.offsetHeight,Cn=getComputedStyle(en),Bn=Cn.marginTop,tr=Cn.marginBottom,er=$e(Bn),cr=$e(tr),Ar=on+er+cr;Qe.current.get(Qt)!==Ar&&(Qe.current.set(Qt,Ar),sn=!0)}}),sn&&Ke(function(Ft){return Ft+1})};if(Kt)jt();else{ht.current+=1;var Rt=ht.current;Promise.resolve().then(function(){Rt===ht.current&&jt()})}}function Ot(Kt,jt){var Rt=xe(Kt),Xt=Ve.current.get(Rt);jt?(Ve.current.set(Rt,jt),pt()):Ve.current.delete(Rt),!Xt!=!jt&&(jt?Ce==null||Ce(Kt):Ye==null||Ye(Kt))}return(0,me.useEffect)(function(){return At},[]),[Ot,pt,Qe.current,Ge]}var lt=14/15;function ut(xe,Ce,Ye){var Je=(0,me.useRef)(!1),Me=(0,me.useRef)(0),Ge=(0,me.useRef)(0),Ke=(0,me.useRef)(null),Ve=(0,me.useRef)(null),Qe,ht=function(Kt){if(Je.current){var jt=Math.ceil(Kt.touches[0].pageX),Rt=Math.ceil(Kt.touches[0].pageY),Xt=Me.current-jt,sn=Ge.current-Rt,Ft=Math.abs(Xt)>Math.abs(sn);Ft?Me.current=jt:Ge.current=Rt;var Qt=Ye(Ft,Ft?Xt:sn,!1,Kt);Qt&&Kt.preventDefault(),clearInterval(Ve.current),Qt&&(Ve.current=setInterval(function(){Ft?Xt*=lt:sn*=lt;var en=Math.floor(Ft?Xt:sn);(!Ye(Ft,en,!0)||Math.abs(en)<=.1)&&clearInterval(Ve.current)},16))}},At=function(){Je.current=!1,Qe()},pt=function(Kt){Qe(),Kt.touches.length===1&&!Je.current&&(Je.current=!0,Me.current=Math.ceil(Kt.touches[0].pageX),Ge.current=Math.ceil(Kt.touches[0].pageY),Ke.current=Kt.target,Ke.current.addEventListener("touchmove",ht,{passive:!1}),Ke.current.addEventListener("touchend",At,{passive:!0}))};Qe=function(){Ke.current&&(Ke.current.removeEventListener("touchmove",ht),Ke.current.removeEventListener("touchend",At))},(0,De.Z)(function(){return xe&&Ce.current.addEventListener("touchstart",pt,{passive:!0}),function(){var Ot;(Ot=Ce.current)===null||Ot===void 0||Ot.removeEventListener("touchstart",pt),Qe(),clearInterval(Ve.current)}},[xe])}function yt(xe){return Math.floor(Math.pow(xe,.5))}function qe(xe,Ce){var Ye="touches"in xe?xe.touches[0]:xe;return Ye[Ce?"pageX":"pageY"]-window[Ce?"scrollX":"scrollY"]}function ot(xe,Ce,Ye){me.useEffect(function(){var Je=Ce.current;if(xe&&Je){var Me=!1,Ge,Ke,Ve=function(){pe.Z.cancel(Ge)},Qe=function Ot(){Ve(),Ge=(0,pe.Z)(function(){Ye(Ke),Ot()})},ht=function(Kt){if(!Kt.target.draggable){var jt=Kt;jt._virtualHandled||(jt._virtualHandled=!0,Me=!0)}},At=function(){Me=!1,Ve()},pt=function(Kt){if(Me){var jt=qe(Kt,!1),Rt=Je.getBoundingClientRect(),Xt=Rt.top,sn=Rt.bottom;if(jt<=Xt){var Ft=Xt-jt;Ke=-yt(Ft),Qe()}else if(jt>=sn){var Qt=jt-sn;Ke=yt(Qt),Qe()}else Ve()}};return Je.addEventListener("mousedown",ht),Je.ownerDocument.addEventListener("mouseup",At),Je.ownerDocument.addEventListener("mousemove",pt),function(){Je.removeEventListener("mousedown",ht),Je.ownerDocument.removeEventListener("mouseup",At),Je.ownerDocument.removeEventListener("mousemove",pt),Ve()}}},[xe])}var dt=10;function St(xe,Ce,Ye,Je,Me,Ge,Ke,Ve){var Qe=me.useRef(),ht=me.useState(null),At=(0,Ne.Z)(ht,2),pt=At[0],Ot=At[1];return(0,De.Z)(function(){if(pt&&pt.times<dt){if(!xe.current){Ot(function(at){return(0,oe.Z)({},at)});return}Ge();var Kt=pt.targetAlign,jt=pt.originAlign,Rt=pt.index,Xt=pt.offset,sn=xe.current.clientHeight,Ft=!1,Qt=Kt,en=null;if(sn){for(var on=Kt||jt,Cn=0,Bn=0,tr=0,er=Math.min(Ce.length-1,Rt),cr=0;cr<=er;cr+=1){var Ar=Me(Ce[cr]);Bn=Cn;var Dr=Ye.get(Ar);tr=Bn+(Dr===void 0?Je:Dr),Cn=tr}for(var Or=on==="top"?Xt:sn-Xt,$r=er;$r>=0;$r-=1){var ai=Me(Ce[$r]),br=Ye.get(ai);if(br===void 0){Ft=!0;break}if(Or-=br,Or<=0)break}switch(on){case"top":en=Bn-Xt;break;case"bottom":en=tr-sn+Xt;break;default:{var fi=xe.current.scrollTop,Cr=fi+sn;Bn<fi?Qt="top":tr>Cr&&(Qt="bottom")}}en!==null&&Ke(en),en!==pt.lastTop&&(Ft=!0)}Ft&&Ot((0,oe.Z)((0,oe.Z)({},pt),{},{times:pt.times+1,targetAlign:Qt,lastTop:en}))}},[pt,xe.current]),function(Kt){if(Kt==null){Ve();return}if(pe.Z.cancel(Qe.current),typeof Kt=="number")Ke(Kt);else if(Kt&&(0,mt.Z)(Kt)==="object"){var jt,Rt=Kt.align;"index"in Kt?jt=Kt.index:jt=Ce.findIndex(function(Ft){return Me(Ft)===Kt.key});var Xt=Kt.offset,sn=Xt===void 0?0:Xt;Ot({times:0,index:jt,offset:sn,originAlign:Rt})}}}var xt=me.forwardRef(function(xe,Ce){var Ye=xe.prefixCls,Je=xe.rtl,Me=xe.scrollOffset,Ge=xe.scrollRange,Ke=xe.onStartMove,Ve=xe.onStopMove,Qe=xe.onScroll,ht=xe.horizontal,At=xe.spinSize,pt=xe.containerSize,Ot=xe.style,Kt=xe.thumbStyle,jt=xe.showScrollBar,Rt=me.useState(!1),Xt=(0,Ne.Z)(Rt,2),sn=Xt[0],Ft=Xt[1],Qt=me.useState(null),en=(0,Ne.Z)(Qt,2),on=en[0],Cn=en[1],Bn=me.useState(null),tr=(0,Ne.Z)(Bn,2),er=tr[0],cr=tr[1],Ar=!Je,Dr=me.useRef(),Or=me.useRef(),$r=me.useState(jt),ai=(0,Ne.Z)($r,2),br=ai[0],fi=ai[1],Cr=me.useRef(),at=function(){jt===!0||jt===!1||(clearTimeout(Cr.current),fi(!0),Cr.current=setTimeout(function(){fi(!1)},3e3))},wi=Ge-pt||0,ui=pt-At||0,Dn=me.useMemo(function(){if(Me===0||wi===0)return 0;var ln=Me/wi;return ln*ui},[Me,wi,ui]),ur=function(pn){pn.stopPropagation(),pn.preventDefault()},or=me.useRef({top:Dn,dragging:sn,pageY:on,startTop:er});or.current={top:Dn,dragging:sn,pageY:on,startTop:er};var vr=function(pn){Ft(!0),Cn(qe(pn,ht)),cr(or.current.top),Ke(),pn.stopPropagation(),pn.preventDefault()};me.useEffect(function(){var ln=function(cn){cn.preventDefault()},pn=Dr.current,Vt=Or.current;return pn.addEventListener("touchstart",ln,{passive:!1}),Vt.addEventListener("touchstart",vr,{passive:!1}),function(){pn.removeEventListener("touchstart",ln),Vt.removeEventListener("touchstart",vr)}},[]);var Hn=me.useRef();Hn.current=wi;var Jn=me.useRef();Jn.current=ui,me.useEffect(function(){if(sn){var ln,pn=function(cn){var xn=or.current,Nn=xn.dragging,Zn=xn.pageY,Ht=xn.startTop;pe.Z.cancel(ln);var En=Dr.current.getBoundingClientRect(),Kn=pt/(ht?En.width:En.height);if(Nn){var nr=(qe(cn,ht)-Zn)*Kn,rn=Ht;!Ar&&ht?rn-=nr:rn+=nr;var bn=Hn.current,nn=Jn.current,wn=nn?rn/nn:0,gn=Math.ceil(wn*bn);gn=Math.max(gn,0),gn=Math.min(gn,bn),ln=(0,pe.Z)(function(){Qe(gn,ht)})}},Vt=function(){Ft(!1),Ve()};return window.addEventListener("mousemove",pn,{passive:!0}),window.addEventListener("touchmove",pn,{passive:!0}),window.addEventListener("mouseup",Vt,{passive:!0}),window.addEventListener("touchend",Vt,{passive:!0}),function(){window.removeEventListener("mousemove",pn),window.removeEventListener("touchmove",pn),window.removeEventListener("mouseup",Vt),window.removeEventListener("touchend",Vt),pe.Z.cancel(ln)}}},[sn]),me.useEffect(function(){return at(),function(){clearTimeout(Cr.current)}},[Me]),me.useImperativeHandle(Ce,function(){return{delayHidden:at}});var _t="".concat(Ye,"-scrollbar"),Gt={position:"absolute",visibility:br?null:"hidden"},Pt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ht?(Gt.height=8,Gt.left=0,Gt.right=0,Gt.bottom=0,Pt.height="100%",Pt.width=At,Ar?Pt.left=Dn:Pt.right=Dn):(Gt.width=8,Gt.top=0,Gt.bottom=0,Ar?Gt.right=0:Gt.left=0,Pt.width="100%",Pt.height=At,Pt.top=Dn),me.createElement("div",{ref:Dr,className:Pe()(_t,(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},"".concat(_t,"-horizontal"),ht),"".concat(_t,"-vertical"),!ht),"".concat(_t,"-visible"),br)),style:(0,oe.Z)((0,oe.Z)({},Gt),Ot),onMouseDown:ur,onMouseMove:at},me.createElement("div",{ref:Or,className:Pe()("".concat(_t,"-thumb"),(0,Ze.Z)({},"".concat(_t,"-thumb-moving"),sn)),style:(0,oe.Z)((0,oe.Z)({},Pt),Kt),onMouseDown:vr}))}),ft=xt,gt=20;function vt(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ye=xe/Ce*xe;return isNaN(Ye)&&(Ye=0),Ye=Math.max(Ye,gt),Math.floor(Ye)}var Tt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Et=[],Zt={overflowY:"auto",overflowAnchor:"none"};function wt(xe,Ce){var Ye=xe.prefixCls,Je=Ye===void 0?"rc-virtual-list":Ye,Me=xe.className,Ge=xe.height,Ke=xe.itemHeight,Ve=xe.fullHeight,Qe=Ve===void 0?!0:Ve,ht=xe.style,At=xe.data,pt=xe.children,Ot=xe.itemKey,Kt=xe.virtual,jt=xe.direction,Rt=xe.scrollWidth,Xt=xe.component,sn=Xt===void 0?"div":Xt,Ft=xe.onScroll,Qt=xe.onVirtualScroll,en=xe.onVisibleChange,on=xe.innerProps,Cn=xe.extraRender,Bn=xe.styles,tr=xe.showScrollBar,er=tr===void 0?"optional":tr,cr=(0,ge.Z)(xe,Tt),Ar=me.useCallback(function(yi){return typeof Ot=="function"?Ot(yi):yi==null?void 0:yi[Ot]},[Ot]),Dr=et(Ar,null,null),Or=(0,Ne.Z)(Dr,4),$r=Or[0],ai=Or[1],br=Or[2],fi=Or[3],Cr=!!(Kt!==!1&&Ge&&Ke),at=me.useMemo(function(){return Object.values(br.maps).reduce(function(yi,si){return yi+si},0)},[br.id,br.maps]),wi=Cr&&At&&(Math.max(Ke*At.length,at)>Ge||!!Rt),ui=jt==="rtl",Dn=Pe()(Je,(0,Ze.Z)({},"".concat(Je,"-rtl"),ui),Me),ur=At||Et,or=(0,me.useRef)(),vr=(0,me.useRef)(),Hn=(0,me.useRef)(),Jn=(0,me.useState)(0),_t=(0,Ne.Z)(Jn,2),Gt=_t[0],Pt=_t[1],ln=(0,me.useState)(0),pn=(0,Ne.Z)(ln,2),Vt=pn[0],Dt=pn[1],cn=(0,me.useState)(!1),xn=(0,Ne.Z)(cn,2),Nn=xn[0],Zn=xn[1],Ht=function(){Zn(!0)},En=function(){Zn(!1)},Kn={getKey:Ar};function nr(yi){Pt(function(si){var ei;typeof yi=="function"?ei=yi(si):ei=yi;var Ji=Zr(ei);return or.current.scrollTop=Ji,Ji})}var rn=(0,me.useRef)({start:0,end:ur.length}),bn=(0,me.useRef)(),nn=ue(ur,Ar),wn=(0,Ne.Z)(nn,1),gn=wn[0];bn.current=gn;var yn=me.useMemo(function(){if(!Cr)return{scrollHeight:void 0,start:0,end:ur.length-1,offset:void 0};if(!wi){var yi;return{scrollHeight:((yi=vr.current)===null||yi===void 0?void 0:yi.offsetHeight)||0,start:0,end:ur.length-1,offset:void 0}}for(var si=0,ei,Ji,no,Yr=ur.length,Kr=0;Kr<Yr;Kr+=1){var qn=ur[Kr],ci=Ar(qn),ro=br.get(ci),Do=si+(ro===void 0?Ke:ro);Do>=Gt&&ei===void 0&&(ei=Kr,Ji=si),Do>Gt+Ge&&no===void 0&&(no=Kr),si=Do}return ei===void 0&&(ei=0,Ji=0,no=Math.ceil(Ge/Ke)),no===void 0&&(no=ur.length-1),no=Math.min(no+1,ur.length-1),{scrollHeight:si,start:ei,end:no,offset:Ji}},[wi,Cr,Gt,ur,fi,Ge]),Ln=yn.scrollHeight,Tn=yn.start,In=yn.end,Gn=yn.offset;rn.current.start=Tn,rn.current.end=In,me.useLayoutEffect(function(){var yi=br.getRecord();if(yi.size===1){var si=Array.from(yi)[0],ei=Ar(ur[Tn]);if(ei===si){var Ji=br.get(si),no=Ji-Ke;nr(function(Yr){return Yr+no})}}br.resetRecord()},[Ln]);var mr=me.useState({width:0,height:Ge}),mn=(0,Ne.Z)(mr,2),Pr=mn[0],Ur=mn[1],Br=function(si){Ur({width:si.offsetWidth,height:si.offsetHeight})},Sn=(0,me.useRef)(),Yn=(0,me.useRef)(),dr=me.useMemo(function(){return vt(Pr.width,Rt)},[Pr.width,Rt]),Fr=me.useMemo(function(){return vt(Pr.height,Ln)},[Pr.height,Ln]),fr=Ln-Ge,Ir=(0,me.useRef)(fr);Ir.current=fr;function Zr(yi){var si=yi;return Number.isNaN(Ir.current)||(si=Math.min(si,Ir.current)),si=Math.max(si,0),si}var zr=Gt<=0,Er=Gt>=fr,Vr=Vt<=0,Fn=Vt>=Rt,Mi=Ie(zr,Er,Vr,Fn),On=function(){return{x:ui?-Vt:Vt,y:Gt}},pi=(0,me.useRef)(On()),Ni=(0,ye.useEvent)(function(yi){if(Qt){var si=(0,oe.Z)((0,oe.Z)({},On()),yi);(pi.current.x!==si.x||pi.current.y!==si.y)&&(Qt(si),pi.current=si)}});function Qr(yi,si){var ei=yi;si?((0,we.flushSync)(function(){Dt(ei)}),Ni()):nr(ei)}function Xi(yi){var si=yi.currentTarget.scrollTop;si!==Gt&&nr(si),Ft==null||Ft(yi),Ni()}var Ti=function(si){var ei=si,Ji=Rt?Rt-Pr.width:0;return ei=Math.max(ei,0),ei=Math.min(ei,Ji),ei},Rr=(0,ye.useEvent)(function(yi,si){si?((0,we.flushSync)(function(){Dt(function(ei){var Ji=ei+(ui?-yi:yi);return Ti(Ji)})}),Ni()):nr(function(ei){var Ji=ei+yi;return Ji})}),Wr=Le(Cr,zr,Er,Vr,Fn,!!Rt,Rr),bi=(0,Ne.Z)(Wr,2),Di=bi[0],pr=bi[1];ut(Cr,or,function(yi,si,ei,Ji){var no=Ji;return Mi(yi,si,ei)?!1:!no||!no._virtualHandled?(no&&(no._virtualHandled=!0),Di({preventDefault:function(){},deltaX:yi?si:0,deltaY:yi?0:si}),!0):!1}),ot(wi,or,function(yi){nr(function(si){return si+yi})}),(0,De.Z)(function(){function yi(ei){var Ji=zr&&ei.detail<0,no=Er&&ei.detail>0;Cr&&!Ji&&!no&&ei.preventDefault()}var si=or.current;return si.addEventListener("wheel",Di,{passive:!1}),si.addEventListener("DOMMouseScroll",pr,{passive:!0}),si.addEventListener("MozMousePixelScroll",yi,{passive:!1}),function(){si.removeEventListener("wheel",Di),si.removeEventListener("DOMMouseScroll",pr),si.removeEventListener("MozMousePixelScroll",yi)}},[Cr,zr,Er]),(0,De.Z)(function(){if(Rt){var yi=Ti(Vt);Dt(yi),Ni({x:yi})}},[Pr.width,Rt]);var Lt=function(){var si,ei;(si=Sn.current)===null||si===void 0||si.delayHidden(),(ei=Yn.current)===null||ei===void 0||ei.delayHidden()},Li=St(or,ur,br,Ke,Ar,function(){return ai(!0)},nr,Lt);me.useImperativeHandle(Ce,function(){return{nativeElement:Hn.current,getScrollInfo:On,scrollTo:function(si){function ei(Ji){return Ji&&(0,mt.Z)(Ji)==="object"&&("left"in Ji||"top"in Ji)}ei(si)?(si.left!==void 0&&Dt(Ti(si.left)),Li(si.top)):Li(si)}}}),(0,De.Z)(function(){if(en){var yi=ur.slice(Tn,In+1);en(yi,ur)}},[Tn,In,ur]);var so=Fe(ur,Ar,br,Ke),Pi=Cn==null?void 0:Cn({start:Tn,end:In,virtual:wi,offsetX:Vt,offsetY:Gn,rtl:ui,getSize:so}),wo=ae(ur,Tn,In,Rt,Vt,$r,pt,Kn),po=null;Ge&&(po=(0,oe.Z)((0,Ze.Z)({},Qe?"height":"maxHeight",Ge),Zt),Cr&&(po.overflowY="hidden",Rt&&(po.overflowX="hidden"),Nn&&(po.pointerEvents="none")));var Eo={};return ui&&(Eo.dir="rtl"),me.createElement("div",(0,He.Z)({ref:Hn,style:(0,oe.Z)((0,oe.Z)({},ht),{},{position:"relative"}),className:Dn},Eo,cr),me.createElement(Ae.Z,{onResize:Br},me.createElement(sn,{className:"".concat(Je,"-holder"),style:po,ref:or,onScroll:Xi,onMouseEnter:Lt},me.createElement(z,{prefixCls:Je,height:Ln,offsetX:Vt,offsetY:Gn,scrollWidth:Rt,onInnerResize:ai,ref:vr,innerProps:on,rtl:ui,extra:Pi},wo))),wi&&Ln>Ge&&me.createElement(ft,{ref:Sn,prefixCls:Je,scrollOffset:Gt,scrollRange:Ln,rtl:ui,onScroll:Qr,onStartMove:Ht,onStopMove:En,spinSize:Fr,containerSize:Pr.height,style:Bn==null?void 0:Bn.verticalScrollBar,thumbStyle:Bn==null?void 0:Bn.verticalScrollBarThumb,showScrollBar:er}),wi&&Rt>Pr.width&&me.createElement(ft,{ref:Yn,prefixCls:Je,scrollOffset:Vt,scrollRange:Rt,rtl:ui,onScroll:Qr,onStartMove:Ht,onStopMove:En,spinSize:dr,containerSize:Pr.width,horizontal:!0,style:Bn==null?void 0:Bn.horizontalScrollBar,thumbStyle:Bn==null?void 0:Bn.horizontalScrollBarThumb,showScrollBar:er}))}var bt=me.forwardRef(wt);bt.displayName="List";var it=bt,nt=it},25510:function(kn){"use strict";kn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0b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Pw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/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+5QpgKYAln2s68EQBLM2AhWX9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ARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(kn,fn,We){"use strict";kn.exports=We.p+"static/AssistantCode3.a8740efb.jpeg"},51941:function(kn){"use strict";kn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJUAAABtCAYAAACoYyM7AAAgAElEQVR4Xmy9aY+dZ5Ildu5+35s7k0tmcifFRRtLovYqlbYqVVVX9/R0owEb408GZgD/AP8EfzI8gA1/M+AP88GAYbQNT89MV6lLJVWV9l2iSIrimjuXZO6Zd9+McyLizSvBrCJEMu99l+eJJ5YTJyIyLz977NR/+2//3W//7h/+q/9m377JJ3qdbr7b6yKTyaCfyaLf7yGDLjL9DPrZLIA+MugD4J8zAHpAv49+n3/uA9ksMvoZ/9qzj/Ab/b4+l8ny2/bzDL+rz2XBr+u6/Z7uYPfP6DvodoFsBplszu7T4zP19B0+R9afq9/r68l03V6f/7f78bvps3aRzeTQz+SAflfPleF76ud9XVsPnc37u/L9uqjt1tFutZHP5ZDL5XTdfCGPTD6nz+t/vBcfgNfJ2JPYb7sP/5jpZwHe25/HPsYfxBrZOtga2Xf0Ulowrgefx9ctm/M7+0e0hhn7CN8ow33xNdKNtFv+Ky4aT8m7akHtOflZ7RnX2vaI381m7b103X4H2Sw/nN24c+f2//t//If//X/7H/7H/3Al87/8+//+3//X/+a/e/PQ1NHzvVa92O93/eXtgSRg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Ao0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(kn,fn,We){"use strict";We.d(fn,{Z:function(){return Pe}});const He=Ae=>typeof Ae=="object"&&Ae!=null&&Ae.nodeType===1,mt=(Ae,ye)=>(!ye||Ae!=="hidden")&&Ae!=="visible"&&Ae!=="clip",oe=(Ae,ye)=>{if(Ae.clientHeight<Ae.scrollHeight||Ae.clientWidth<Ae.scrollWidth){const De=getComputedStyle(Ae,null);return mt(De.overflowY,ye)||mt(De.overflowX,ye)||(me=>{const we=(fe=>{if(!fe.ownerDocument||!fe.ownerDocument.defaultView)return null;try{return fe.ownerDocument.defaultView.frameElement}catch(z){return null}})(me);return!!we&&(we.clientHeight<me.scrollHeight||we.clientWidth<me.scrollWidth)})(Ae)}return!1},Ze=(Ae,ye,De,me,we,fe,z,ee)=>fe<Ae&&z>ye||fe>Ae&&z<ye?0:fe<=Ae&&ee<=De||z>=ye&&ee>=De?fe-Ae-me:z>ye&&ee<De||fe<Ae&&ee>De?z-ye+we:0,Ne=Ae=>{const ye=Ae.parentElement;return ye==null?Ae.getRootNode().host||null:ye},ge=(Ae,ye)=>{var De,me,we,fe;if(typeof document=="undefined")return[];const{scrollMode:z,block:ee,inline:ae,boundary:re,skipOverflowHiddenElements:le}=ye,ue=typeof re=="function"?re:xt=>xt!==re;if(!He(Ae))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,Ee=[];let be=Ae;for(;He(be)&&ue(be);){if(be=Ne(be),be===pe){Ee.push(be);break}be!=null&&be===document.body&&oe(be)&&!oe(document.documentElement)||be!=null&&oe(be,le)&&Ee.push(be)}const Ie=(me=(De=window.visualViewport)==null?void 0:De.width)!=null?me:innerWidth,Le=(fe=(we=window.visualViewport)==null?void 0:we.height)!=null?fe:innerHeight,{scrollX:Fe,scrollY:Oe}=window,{height:je,width:ze,top:_e,right:Ue,bottom:$e,left:et}=Ae.getBoundingClientRect(),{top:lt,right:ut,bottom:yt,left:qe}=(xt=>{const ft=window.getComputedStyle(xt);return{top:parseFloat(ft.scrollMarginTop)||0,right:parseFloat(ft.scrollMarginRight)||0,bottom:parseFloat(ft.scrollMarginBottom)||0,left:parseFloat(ft.scrollMarginLeft)||0}})(Ae);let ot=ee==="start"||ee==="nearest"?_e-lt:ee==="end"?$e+yt:_e+je/2-lt+yt,dt=ae==="center"?et+ze/2-qe+ut:ae==="end"?Ue+ut:et-qe;const St=[];for(let xt=0;xt<Ee.length;xt++){const ft=Ee[xt],{height:gt,width:vt,top:Tt,right:Et,bottom:Zt,left:wt}=ft.getBoundingClientRect();if(z==="if-needed"&&_e>=0&&et>=0&&$e<=Le&&Ue<=Ie&&(ft===pe&&!oe(ft)||_e>=Tt&&$e<=Zt&&et>=wt&&Ue<=Et))return St;const bt=getComputedStyle(ft),it=parseInt(bt.borderLeftWidth,10),nt=parseInt(bt.borderTopWidth,10),xe=parseInt(bt.borderRightWidth,10),Ce=parseInt(bt.borderBottomWidth,10);let Ye=0,Je=0;const Me="offsetWidth"in ft?ft.offsetWidth-ft.clientWidth-it-xe:0,Ge="offsetHeight"in ft?ft.offsetHeight-ft.clientHeight-nt-Ce:0,Ke="offsetWidth"in ft?ft.offsetWidth===0?0:vt/ft.offsetWidth:0,Ve="offsetHeight"in ft?ft.offsetHeight===0?0:gt/ft.offsetHeight:0;if(pe===ft)Ye=ee==="start"?ot:ee==="end"?ot-Le:ee==="nearest"?Ze(Oe,Oe+Le,Le,nt,Ce,Oe+ot,Oe+ot+je,je):ot-Le/2,Je=ae==="start"?dt:ae==="center"?dt-Ie/2:ae==="end"?dt-Ie:Ze(Fe,Fe+Ie,Ie,it,xe,Fe+dt,Fe+dt+ze,ze),Ye=Math.max(0,Ye+Oe),Je=Math.max(0,Je+Fe);else{Ye=ee==="start"?ot-Tt-nt:ee==="end"?ot-Zt+Ce+Ge:ee==="nearest"?Ze(Tt,Zt,gt,nt,Ce+Ge,ot,ot+je,je):ot-(Tt+gt/2)+Ge/2,Je=ae==="start"?dt-wt-it:ae==="center"?dt-(wt+vt/2)+Me/2:ae==="end"?dt-Et+xe+Me:Ze(wt,Et,vt,it,xe+Me,dt,dt+ze,ze);const{scrollLeft:Qe,scrollTop:ht}=ft;Ye=Ve===0?0:Math.max(0,Math.min(ht+Ye/Ve,ft.scrollHeight-gt/Ve+Ge)),Je=Ke===0?0:Math.max(0,Math.min(Qe+Je/Ke,ft.scrollWidth-vt/Ke+Me)),ot+=ht-Ye,dt+=Qe-Je}St.push({el:ft,top:Ye,left:Je})}return St},ce=Ae=>Ae===!1?{block:"end",inline:"nearest"}:(ye=>ye===Object(ye)&&Object.keys(ye).length!==0)(Ae)?Ae:{block:"start",inline:"nearest"};function Pe(Ae,ye){if(!Ae.isConnected||!(we=>{let fe=we;for(;fe&&fe.parentNode;){if(fe.parentNode===document)return!0;fe=fe.parentNode instanceof ShadowRoot?fe.parentNode.host:fe.parentNode}return!1})(Ae))return;const De=(we=>{const fe=window.getComputedStyle(we);return{top:parseFloat(fe.scrollMarginTop)||0,right:parseFloat(fe.scrollMarginRight)||0,bottom:parseFloat(fe.scrollMarginBottom)||0,left:parseFloat(fe.scrollMarginLeft)||0}})(Ae);if((we=>typeof we=="object"&&typeof we.behavior=="function")(ye))return ye.behavior(ge(Ae,ye));const me=typeof ye=="boolean"||ye==null?void 0:ye.behavior;for(const{el:we,top:fe,left:z}of ge(Ae,ce(ye))){const ee=fe-De.top+De.bottom,ae=z-De.left+De.right;we.scroll({top:ee,left:ae,behavior:me})}}}}]);
|